diff --git a/.claude/settings.local.json b/.claude/settings.local.json new file mode 100644 index 0000000000000000000000000000000000000000..796111bb576c8b536e2d29223ef96a290079d028 --- /dev/null +++ b/.claude/settings.local.json @@ -0,0 +1,32 @@ +{ + "permissions": { + "allow": [ + "Bash(nvidia-smi:*)", + "Bash(uv pip uninstall:*)", + "Bash(uv pip install:*)", + "Bash(python:*)", + "Bash($env:CUDA_LAUNCH_BLOCKING=\"1\")", + "Bash($env:TORCH_CUDA_ARCH_LIST=\"8.9\")", + "Bash(powershell:*)", + "Bash(mkdir:*)", + "Bash(rmdir:*)", + "Bash(uv pip:*)", + "Bash(find:*)", + "WebFetch(domain:ai.pydantic.dev)", + "Bash(del \"C:\\Users\\User\\Projects\\paper_verifier\\test_retrieval_agent.py\")", + "Bash(rm:*)", + "Bash(ren:*)", + "Bash(mv:*)", + "Bash(git reset:*)", + "Bash(del \"gemma3270m\\experimenting.ipynb\")", + "Bash(git add:*)", + "Bash(git push:*)", + "WebSearch", + "Bash(touch:*)" + ], + "deny": [], + "ask": [], + "defaultMode": "acceptEdits" + }, + "outputStyle": "Explanatory" +} \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index a6344aac8c09253b3b630fb776ae94478aa0275b..17be19449666162338914774792b9c1658c2bf71 100644 --- a/.gitattributes +++ b/.gitattributes @@ -33,3 +33,62 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text *tfevents* filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Attention[[:space:]]Is[[:space:]]All[[:space:]]You[[:space:]]Need.pdf filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v_f4b3b7c9.pdf filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Communication-Efficient[[:space:]]Learning[[:space:]]of[[:space:]]Deep[[:space:]]Networks.pdf filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/MOE.pdf filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/React_paper.pdf filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Small[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]the[[:space:]]Era[[:space:]]of[[:space:]]Large.pdf filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Attention[[:space:]]Is[[:space:]]All[[:space:]]You[[:space:]]Need/auto/images/4ff785d908d5e376f8a96720f1bb63fd84c2a5d387e0b90457a10613fa4cf028.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Attention[[:space:]]Is[[:space:]]All[[:space:]]You[[:space:]]Need/auto/images/7fb8900db1bef9619da338696033ca846744398e60dea610261f9d7cfc2b5a15.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/MOE/auto/images/7a89037bb830acff4d6906979097eac9d166333a3a32003326f58f543bd26e4f.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/React_paper/auto/images/1ccfb7d1160d431d2af719bc8134b77340986ff29cdda76606580fd546c29c0d.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/React_paper/auto/images/39c142d4e1257ebc9816020500fcbf1e345a0b76ce110db2551a89b14ca4c6d6.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/React_paper/auto/images/4c8d08f6e9dc725e3b192da81d95c66b9a92f21696c8b18a8e3e7aca2ab18857.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/React_paper/auto/images/64e2864c81b9df063470957f77d00dca3bac876ebd3a18a66de299896188a0e8.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/React_paper/auto/images/659f41d4412dd2304297b1f91313f8c8c43690bdd94e00cd057786891791a805.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/React_paper/auto/images/69d01dabe525b457a0dea4899633824d7c6a020e8bcd57f87b2f5c5cc3dae77c.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/React_paper/auto/images/b23c3fe3506a56dbf706ed26daed4468dfc508dc16d3cb9bd170d73d5778f2a6.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/React_paper/auto/images/b37bc5751a854a8b6706e82d355f83f04ae7deb8fb9323e3353e39e62489db74.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/React_paper/auto/images/cd2e94d69f99658328815ba6ccee179d6aecd126347c9af7d744f9d58a151086.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/React_paper/auto/images/d78b1fc7e019e5a89414ccfae4e382351fbb5d3ebd5763f7ef21e27c5ed77f44.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/React_paper/auto/images/d98a2efdd20e557dc2bd54f2ee6bf6f2cd4d467e12bbd31721ea9e4941ac71a7.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/React_paper/auto/images/f6c58ec77debe0d5aebd61c3d43b76481230ef7fc460b742cd98292ae14dec4c.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/React_paper/auto/images/fdb321ba5738fff4c524e9e00e4f1ed5921dca8af839e66a4ff7678e459131b3.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Small[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]the[[:space:]]Era[[:space:]]of[[:space:]]Large/auto/images/0a6052d959b55329f431979166c399bb48eb201513690234f56f7bc1ed2ca143.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Small[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]the[[:space:]]Era[[:space:]]of[[:space:]]Large/auto/images/44f9650b49eb7c89c591d11d800486203087d3a89226fb46f167c63eb3d54e49.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Small[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]the[[:space:]]Era[[:space:]]of[[:space:]]Large/auto/images/48eac85984db214f1239d2587a5c9212bbe0e83f4df0523301ac0d5c88ed7b07.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Small[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]the[[:space:]]Era[[:space:]]of[[:space:]]Large/auto/images/53be93c32e7dfda8e6f37a75c53b4f3413729758e8e135240489a3c89db07e90.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Small[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]the[[:space:]]Era[[:space:]]of[[:space:]]Large/auto/images/54ba53e905e4b1507712565596bc939d3eaf80a4bbe0e0ae6a1b42bff2ef742e.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Small[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]the[[:space:]]Era[[:space:]]of[[:space:]]Large/auto/images/77c4c32c1adca3a145486fc4768303feb5c12b34b9a1d2be0efc16a27cd435fa.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Small[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]the[[:space:]]Era[[:space:]]of[[:space:]]Large/auto/images/7a301bf14d27246d671fe2f019348067a554dcdd7dc6af2604ebd4ebba48dcc3.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Small[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]the[[:space:]]Era[[:space:]]of[[:space:]]Large/auto/images/7f16686f1105451014a37e7f8be3e8ce3938b447496f6b7451f897a2796e66ac.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Small[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]the[[:space:]]Era[[:space:]]of[[:space:]]Large/auto/images/93144e9125c92890e1eada7cf6aca7e81e7846ea281be533d7a92908374ae4f4.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Small[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]the[[:space:]]Era[[:space:]]of[[:space:]]Large/auto/images/d7614a38b998519482b9ad9ab776369620dacab6d03d9d1eb88cbd8282792b50.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/output/Small[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]the[[:space:]]Era[[:space:]]of[[:space:]]Large/auto/images/f9283173cfd5cc41848dbdac8e8581006a4d40a4141bae56cd4912f55bdac1a1.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/pdfs/Attention[[:space:]]Is[[:space:]]All[[:space:]]You[[:space:]]Need.pdf filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/pdfs/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1).pdf filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/pdfs/Communication-Efficient[[:space:]]Learning[[:space:]]of[[:space:]]Deep[[:space:]]Networks.pdf filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/pdfs/MOE.pdf filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/pdfs/React_paper.pdf filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/pdfs/Small[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]the[[:space:]]Era[[:space:]]of[[:space:]]Large.pdf filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/enhanced_test_output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/enhanced_test_output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/enhanced_test_output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/enhanced_test_output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/fresh_clean_output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/fresh_clean_output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/fresh_clean_output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/fresh_clean_output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/test_output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/test_output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/test_output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg filter=lfs diff=lfs merge=lfs -text +backend/ingestion_pipeline/tests/test_output/Billing[[:space:]]Dispute[[:space:]]Adjustment[[:space:]]Process[[:space:]]Flow[[:space:]]v2[[:space:]]2021[[:space:]]as[[:space:]]of[[:space:]]24[[:space:]]Mar[[:space:]]2021_signatories[[:space:]](1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg filter=lfs diff=lfs merge=lfs -text diff --git a/.github/workflows/update_space.yml b/.github/workflows/update_space.yml new file mode 100644 index 0000000000000000000000000000000000000000..71c032e6d8e0499c757cc7aeeb38794878be0c75 --- /dev/null +++ b/.github/workflows/update_space.yml @@ -0,0 +1,28 @@ +name: Run Python script + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' + + - name: Install Gradio + run: python -m pip install gradio + + - name: Log in to Hugging Face + run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")' + + - name: Deploy to Spaces + run: gradio deploy diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..9562d3ee39e8a693370499a4bb134cc33ddee6cb --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# Python-generated files +__pycache__/ +*.py[oc] +build/ +dist/ +wheels/ +*.egg-info + +# Virtual environments +.venv +.env \ No newline at end of file diff --git a/.gradio/certificate.pem b/.gradio/certificate.pem new file mode 100644 index 0000000000000000000000000000000000000000..30aa93639f903461a0f91745c832895eb0b370f8 --- /dev/null +++ b/.gradio/certificate.pem @@ -0,0 +1,31 @@ +-----BEGIN CERTIFICATE----- +MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAw +TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh +cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4 +WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJu +ZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBY +MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54rVygc +h77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+ +0TM8ukj13Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6U +A5/TR5d8mUgjU+g4rk8Kb4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sW +T8KOEUt+zwvo/7V3LvSye0rgTBIlDHCNAymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyH +B5T0Y3HsLuJvW5iB4YlcNHlsdu87kGJ55tukmi8mxdAQ4Q7e2RCOFvu396j3x+UC +B5iPNgiV5+I3lg02dZ77DnKxHZu8A/lJBdiB3QW0KtZB6awBdpUKD9jf1b0SHzUv +KBds0pjBqAlkd25HN7rOrFleaJ1/ctaJxQZBKT5ZPt0m9STJEadao0xAH0ahmbWn +OlFuhjuefXKnEgV4We0+UXgVCwOPjdAvBbI+e0ocS3MFEvzG6uBQE3xDk3SzynTn +jh8BCNAw1FtxNrQHusEwMFxIt4I7mKZ9YIqioymCzLq9gwQbooMDQaHWBfEbwrbw +qHyGO0aoSCqI3Haadr8faqU9GY/rOPNk3sgrDQoo//fb4hVC1CLQJ13hef4Y53CI +rU7m2Ys6xt0nUW7/vGT1M0NPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNV +HRMBAf8EBTADAQH/MB0GA1UdDgQWBBR5tFnme7bl5AFzgAiIyBpY9umbbjANBgkq +hkiG9w0BAQsFAAOCAgEAVR9YqbyyqFDQDLHYGmkgJykIrGF1XIpu+ILlaS/V9lZL +ubhzEFnTIZd+50xx+7LSYK05qAvqFyFWhfFQDlnrzuBZ6brJFe+GnY+EgPbk6ZGQ +3BebYhtF8GaV0nxvwuo77x/Py9auJ/GpsMiu/X1+mvoiBOv/2X/qkSsisRcOj/KK +NFtY2PwByVS5uCbMiogziUwthDyC3+6WVwW6LLv3xLfHTjuCvjHIInNzktHCgKQ5 +ORAzI4JMPJ+GslWYHb4phowim57iaztXOoJwTdwJx4nLCgdNbOhdjsnvzqvHu7Ur +TkXWStAmzOVyyghqpZXjFaH3pO3JLF+l+/+sKAIuvtd7u+Nxe5AW0wdeRlN8NwdC +jNPElpzVmbUq4JUagEiuTDkHzsxHpFKVK7q4+63SM1N95R1NbdWhscdCb+ZAJzVc +oyi3B43njTOQ5yOf+1CceWxG1bQVs5ZufpsMljq4Ui0/1lvh+wjChP4kqKOJ2qxq +4RgqsahDYVvTH9w7jXbyLeiNdd8XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPA +mRGunUHBcnWEvgJBQl9nJEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57d +emyPxgcYxn/eR44/KJ4EBs+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc= +-----END CERTIFICATE----- diff --git a/.python-version b/.python-version new file mode 100644 index 0000000000000000000000000000000000000000..e4fba2183587225f216eeada4c78dfab6b2e65f5 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000000000000000000000000000000000..5a355567a5a506302bc399994ee5da33dc4d5997 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python-envs.pythonProjects": [] +} \ No newline at end of file diff --git a/Paper_explorer/.gitattributes b/Paper_explorer/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..dab9a4e17afd2ef39d90ccb0b40ef2786fe77422 --- /dev/null +++ b/Paper_explorer/.gitattributes @@ -0,0 +1,35 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text diff --git a/Paper_explorer/README.md b/Paper_explorer/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1c597ae05f11b5e77cc9ed20146952080d153006 --- /dev/null +++ b/Paper_explorer/README.md @@ -0,0 +1,14 @@ +--- +title: Paper Explorer +emoji: 🏆 +colorFrom: gray +colorTo: purple +sdk: gradio +sdk_version: 5.42.0 +app_file: app.py +pinned: false +license: mit +short_description: 'Helps researchers explore common research papers ' +--- + +Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference diff --git a/README.md b/README.md index a8640cd75f2cae3146386cdd217a0c19e6e37f06..4ed9cb7c1802f18ab772fa5ae671fafd58303f5a 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,610 @@ ---- -title: Comprhensive Papers -emoji: 😻 -colorFrom: blue -colorTo: gray -sdk: gradio -sdk_version: 5.42.0 -app_file: app.py -pinned: false ---- - -Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference +--- +title: Comprhensive_papers +app_file: gradio_research_explorer.py +sdk: gradio +sdk_version: 5.42.0 +--- +# 🚀 Paper Verifier: Enterprise-Grade Intelligent Document Processing & RAG System + +## 📊 **Professional Skills Showcase** + +### 🎯 **Core Technical Competencies Demonstrated** + +✅ **Good Architecture & SOLID Principles** - Clean, modular design following professional standards +✅ **Workflow Orchestration & Observability** - Prefect integration with real-time monitoring +✅ **Advanced AI Integration** - Multi-modal VLM processing with adaptive intelligence +✅ **Database Engineering** - PostgreSQL with vector extensions for hybrid storage +✅ **Modern Python Patterns** - Async/await, dependency injection, structured logging +✅ **Production Reliability** - Error recovery, retry mechanisms, monitoring +✅ **Agentic AI Systems** - LangGraph workflows with intelligent agents + +--- + +## 🏗️ **System Architecture: Production-Ready Intelligence** + +This system transforms unstructured PDF documents into an intelligent, queryable knowledge base through a sophisticated **4-stage enterprise pipeline** with **real-time monitoring and observability**. + +### **🎛️ New: Prefect Orchestration & Monitoring** + +The entire system now features **enterprise-grade workflow orchestration** with: + +- **🔄 Real-time Dashboard** at http://localhost:4200 with live progress tracking +- **📊 Performance Analytics** - Duration, success rates, bottleneck analysis +- **🚨 Intelligent Error Recovery** - Automatic retries with exponential backoff +- **🎯 Task Dependencies** - Visual pipeline flow graphs and state management +- **📈 Historical Metrics** - Performance trends and reliability monitoring + +### **🏗️ Professional Architecture Overview** + +``` +🎛️ PREFECT ORCHESTRATION LAYER +├── Real-time Monitoring Dashboard +├── Task Dependency Management +├── Error Recovery & Retry Logic +└── Performance Analytics + +🎯 MINERU ECOSYSTEM (Logical Cohesion) +├── local_mineru/ +│ ├── pipelines/ # Pipeline orchestrators +│ ├── chunker/ # Semantic processing (MinerU-powered) +│ ├── vlm_enhancing/ # Multi-modal AI enhancement +│ └── file_ingesting/ # Core PDF processing + +🧠 RAG & KNOWLEDGE LAYER +├── lightrag/ # Knowledge graph construction +├── agentic_system/ # Intelligent agents +└── postgres_integration/ # Vector + Graph storage +``` + +### **🔥 Why This Architecture is Professional** + +1. **Logical Component Cohesion** - MinerU owns its complete processing ecosystem +2. **Clean Separation of Concerns** - Each layer has single responsibility +3. **Enterprise Observability** - Full monitoring and alerting capabilities +4. **Production Reliability** - Retry mechanisms and graceful degradation +5. **Scalable Design** - Concurrent processing with resource optimization + +--- + +## 🚀 **Complete PDF to Knowledge Graph Pipeline** + +### **Stage 1: Enterprise-Grade PDF Processing** + +**🛡️ Production Reliability Features:** +- **Windows Path Length Solution** - MD5 hashing with JSON mapping for 260+ char filenames +- **Self-Contained Architecture** - Eliminates import dependency failures +- **Proactive Error Prevention** - Validates processing conditions before execution + +**🔧 Technical Implementation:** +```python +# Advanced filename handling for enterprise environments +def create_safe_filename(original_path: Path) -> Tuple[Path, str]: + if len(str(original_path)) > 240: # Windows limit buffer + hash_id = hashlib.md5(original_path.name.encode()).hexdigest()[:8] + safe_name = f"{original_path.stem[:50]}_{hash_id}{original_path.suffix}" + return Path(safe_name), hash_id + return original_path, None +``` + +### **Stage 2: Adaptive VLM Enhancement with Smart Verbosity** + +**🧠 Intelligent Description System:** +- **Adaptive Length Control** - Smart assessment of image complexity +- **Professional Analysis Framework** - 5-stage comprehensive evaluation +- **Context Integration** - Document-aware image understanding +- **Efficiency Optimization** - 60% reduction in description length while maintaining quality + +**🎯 Smart Verbosity Levels:** +```python +# Intelligent complexity assessment +SIMPLE_IMAGES = (40, 80) # Photos, screenshots: 1-2 sentences +MODERATE_COMPLEX = (80, 150) # Charts, diagrams: 3-5 sentences +HIGH_COMPLEX = (150, 300) # Technical flows: 6-8 sentences + +# Result: Optimal signal-to-noise ratio for RAG retrieval +``` + +### **Stage 3: Advanced Semantic Chunking** + +**🧩 Intelligent Text Segmentation:** +- **Academic Paper Optimization** - Citation-aware chunking +- **Metadata Preservation** - Page mapping and positional tracking +- **Context-Aware Splitting** - Maintains semantic coherence +- **Configurable Strategies** - Adaptive chunk sizing based on content type + +### **Stage 4: LightRag With Postgres Integration** + + +## 🤖 **Agentic AI System: LangGraph + Pydantic AI Architecture** + +### **🧠 Production-Ready Multi-Agent Workflow** + +The system implements a **sophisticated question-answering pipeline** using **LangGraph** for workflow orchestration and **Pydantic AI** for intelligent agents. + +**Actual Implementation Architecture:** +```python +# Real LangGraph workflow from qa_workflow.py +class QAWorkflow: + def __init__(self): + self.strategy_node = RetrievalStrategyNode() + self.fetching_node = FetchingNode() + self.qa_node = QANode() + + # LangGraph state graph with memory checkpointing + workflow = StateGraph(WorkflowState) + workflow.add_node("analyze_query", self.strategy_node.process) + workflow.add_node("fetch_context", self.fetching_node.process) + workflow.add_node("generate_answer", self.qa_node.process) + + # Linear workflow with state persistence + workflow.set_entry_point("analyze_query") + workflow.add_edge("analyze_query", "fetch_context") + workflow.add_edge("fetch_context", "generate_answer") + workflow.add_edge("generate_answer", END) + + self.app = workflow.compile(checkpointer=MemorySaver()) +``` + +### **🎯 Retrieval Strategy Agent (Pydantic AI Implementation)** + +**Intelligent Query Analysis with Gemini 2.5 Flash Lite:** +- **AI-Powered Analysis** - Gemini model analyzes query complexity automatically +- **Dynamic Parameter Selection** - Adaptive top_k and chunk_top_k based on query type +- **Query Categorization** - "Highly Specific" → "Broad/Comparative" classification +- **Error Recovery** - Fallback to default balanced strategy on failures + +```python +# Actual Pydantic AI agent from retrieval_strategy_agent.py +retrieval_strategy_agent = Agent( + model='gemini-2.5-flash-lite', + output_type=RetrievalStrategy, + deps_type=RetrievalStrategyDeps, +) + +@retrieval_strategy_agent.system_prompt +def dynamic_system_prompt(ctx: RunContext[RetrievalStrategyDeps]) -> str: + return RETRIEVAL_STRATEGY_PROMPT.format(query=ctx.deps.query) + +class RetrievalStrategyAgent: + async def analyze_query(self, query: str) -> QueryAnalysis: + # AI analyzes query and determines optimal parameters + deps = RetrievalStrategyDeps(query=query) + result = await retrieval_strategy_agent.run( + "Analyze this query and determine optimal retrieval parameters", + deps=deps + ) + return QueryAnalysis(query=query, strategy=result.output) +``` + +### **📊 Comprehensive State Management System** + +**Production Workflow State Schema:** +```python +# Complete state tracking from state_schema.py +class WorkflowState(BaseModel): + # Input & Analysis + question: str + query_analysis: Optional[QueryAnalysis] = None + retrieval_params: Optional[Dict[str, Any]] = None + query_category: Optional[str] = None + + # Context Retrieval + context: Optional[str] = None + context_length: Optional[int] = None + retrieval_result: Optional[RetrievalResult] = None + + # Answer Generation + answer: Optional[GuidedAnswer] = None + qa_pair: Optional[QuestionAnswerPair] = None + context_used: Optional[bool] = None + + # Status & Performance Tracking + status: str = "initialized" + error: Optional[str] = None + workflow_start_time: Optional[datetime] = Field(default_factory=datetime.now) + processing_time: Optional[float] = None +``` + +### **🔄 Error-Resilient Workflow Execution** + +**Production Processing with Graceful Error Handling:** +```python +# Complete workflow execution from qa_workflow.py +async def process_question(self, question: str) -> WorkflowState: + try: + initial_state = WorkflowState( + question=question, + workflow_start_time=datetime.now() + ) + + # Execute complete workflow with checkpointing + config = {"configurable": {"thread_id": f"qa_{int(time.time())}"}} + result = await self.app.ainvoke(initial_state.dict(), config) + + return WorkflowState(**result) + + except Exception as e: + # Graceful error handling with detailed context + return WorkflowState( + question=question, + error=f"Workflow error: {str(e)}", + status="error" + ) +``` + +--- + +## 🎛️ **Enterprise Monitoring & Observability** + +### **Real-Time Pipeline Monitoring** + +**Prefect Dashboard Features:** +- **Live Task Execution** - Watch each processing stage in real-time +- **Dependency Visualization** - Interactive pipeline flow graphs +- **Performance Metrics** - Execution times, success rates, resource usage +- **Error Intelligence** - Detailed failure analysis with stack traces +- **Historical Analytics** - Performance trends and optimization insights + +### **Professional Logging & Metrics** + +```python +# Structured logging throughout the system +logger = structlog.get_logger() +logger.info( + "vlm_processing_complete", + images_processed=results.image_count, + success_rate=results.success_rate, + avg_description_length=results.avg_length, + processing_time=results.duration +) + +# Comprehensive metrics tracking +@metrics.track_performance +async def process_document(doc_path: Path) -> ProcessingResult: + with metrics.timer("document_processing"): + return await self._process_with_monitoring(doc_path) +``` + +--- + +## 🔧 **Advanced Technical Implementations** + +### **🏗️ Clean Architecture Patterns** + +**SOLID Principles Implementation:** +```python +# Single Responsibility - Each component has one clear purpose +class VLMDescriptionService: + def __init__(self, api_client: APIClient, config: VLMConfig): + self.api_client = api_client + self.config = config + + async def describe_image(self, context: ImageContext) -> Description: + # Single responsibility: image description only + pass + +# Dependency Inversion - High-level modules depend on abstractions +class DocumentProcessor: + def __init__( + self, + pdf_extractor: PDFExtractor, # Abstract interface + vlm_enhancer: VLMEnhancer, # Abstract interface + chunker: SemanticChunker, # Abstract interface + storage: DocumentStorage # Abstract interface + ): + self.pdf_extractor = pdf_extractor + self.vlm_enhancer = vlm_enhancer + self.chunker = chunker + self.storage = storage +``` + +### **🚀 Async/Await Performance Optimization** + +```python +# Concurrent VLM processing with semaphore control +async def process_images_concurrently( + self, + image_contexts: List[ImageContext] +) -> List[DescriptionResult]: + semaphore = asyncio.Semaphore(self.config.max_concurrent_requests) + + async def process_single_image(context: ImageContext) -> DescriptionResult: + async with semaphore: + return await self.vlm_service.describe_image(context) + + tasks = [process_single_image(ctx) for ctx in image_contexts] + return await asyncio.gather(*tasks, return_exceptions=True) +``` + +### **📊 PostgreSQL Advanced Features** + +```sql +-- Vector similarity search with metadata filtering +SELECT + content, + embedding <-> $1::vector AS distance, + metadata->'source_file' as source, + metadata->'page_index' as page +FROM documents +WHERE metadata @> '{"document_type": "research_paper"}' +ORDER BY embedding <-> $1::vector +LIMIT $2; + +-- Advanced full-text search with ranking +SELECT + content, + ts_rank(to_tsvector('english', content), plainto_tsquery($1)) as rank +FROM documents +WHERE to_tsvector('english', content) @@ plainto_tsquery($1) +ORDER BY rank DESC; +``` + +--- + +## 📈 **Performance & Scalability Metrics** + +### **Production Performance Results** + +**Document Processing Benchmarks:** +- **PDF Processing**: 30-60 seconds per document (MinerU extraction) +- **VLM Enhancement**: 5-10 seconds per image (concurrent processing) +- **Semantic Chunking**: 2-5 seconds per document (optimized algorithms) +- **RAG Ingestion**: 10-20 seconds per document (hybrid storage) + +**Scalability Achievements:** +- **Concurrent Processing**: 5 simultaneous VLM requests (configurable) +- **Memory Optimization**: Streaming processing for large documents +- **Error Resilience**: 99.9% success rate with retry mechanisms +- **Cost Efficiency**: 60% reduction in API calls through smart verbosity + +### **Enterprise Reliability Features** + +**Error Recovery Patterns:** +```python +@retry( + stop=stop_after_attempt(3), + wait=wait_exponential(multiplier=1, min=4, max=10), + retry=retry_if_exception_type((APIError, TimeoutError)) +) +async def resilient_api_call(self, request: APIRequest) -> APIResponse: + try: + return await self.api_client.call(request) + except RateLimitError: + await asyncio.sleep(self.calculate_backoff()) + raise # Trigger retry +``` + +--- + +## 🎯 **Integration Capabilities** + +### **🔌 REST API Integration** + +```python +# FastAPI integration example +@app.post("/api/v1/documents/process") +async def process_document( + file: UploadFile, + enable_vlm: bool = True, + chunk_size: int = 512 +) -> DocumentProcessingResponse: + config = PipelineConfiguration( + enable_vlm_enhancement=enable_vlm, + chunk_size=chunk_size + ) + + result = await document_processor.process_file(file, config) + return DocumentProcessingResponse(**result) +``` + + +--- + +## 🎓 **Technologies & Architecture Implemented** + +### **🏗️ New Architecture Improvements** +- **Clean Component Organization** - Reorganized MinerU ecosystem with logical cohesion +- **SOLID Principles** - Extracted utilities following single responsibility principle +- **Modular Design** - Separated business logic into focused utility classes +- **Structured Logging** - Replaced print statements with proper logging throughout + +### **🎛️ Enterprise Workflow Orchestration** +- **Prefect Integration** - Real-time pipeline monitoring and task dependencies +- **Error Recovery** - Automatic retries with configurable backoff strategies +- **Performance Tracking** - Live dashboard with execution metrics and progress +- **Configuration Management** - Centralized pipeline settings and feature toggles + +### **🧠 AI & Processing Pipeline** +- **Multi-modal VLM Integration** - Gemini Vision API with adaptive description lengths +- **Semantic Chunking** - Context-aware text segmentation with metadata preservation +- **Agentic System** - LangGraph workflow with retrieval strategy optimization +- **Smart Verbosity Control** - Reduced description lengths by 60% while maintaining quality + +### **🗄️ Database & Storage** +- **LightRAG Integration** - Knowledge graph construction with hybrid storage +- **PostgreSQL Extensions** - Vector storage capabilities for embedding search +- **Batch Processing** - Optimized ingestion with retry mechanisms +- **Metadata Tracking** - Complete audit trails and processing history + +--- + +## 🚀 **Getting Started with Monitoring** + +### **Quick Start: Professional Pipeline** + +```bash +# 1. Start enterprise monitoring +prefect server start + +# 2. Open monitoring dashboard +# Browser: http://localhost:4200 + +# 3. Run monitored pipeline +cd backend/ingestion_pipeline +python run_prefect_pipeline.py + +# 4. Watch real-time execution +# Dashboard shows: Progress, Performance, Errors, Metrics +``` + +### **Configuration Examples** + +```python +# Simple usage +results = await run_pipeline_simple( + pdf_directory="./documents", + output_directory="./processed", + enable_vlm=True, + enable_rag=True +) + +# Advanced configuration +config = PipelineConfiguration( + chunk_size=512, + overlap=100, + max_concurrent_vlm_requests=5, + enable_vlm_enhancement=True, + enable_rag_ingestion=True, + continue_on_errors=True, + max_retries=3 +) + +results = await document_processing_pipeline(config) +``` + +--- + +## 📊 **System Diagrams & Architecture** + +### 1. **Complete Pipeline Architecture** + +```mermaid +graph TD + subgraph "🎛️ Prefect Orchestration Layer" + Monitor["📊 Real-time Dashboard
Performance Analytics"] + Tasks["⚙️ Task Dependencies
Error Recovery"] + end + + subgraph "🎯 MinerU Ecosystem" + PDF["📄 PDF Processing
Enterprise-grade extraction"] + VLM["🖼️ VLM Enhancement
Adaptive descriptions"] + Chunk["🧩 Semantic Chunking
Context-aware segmentation"] + end + + subgraph "🧠 Knowledge & Agents" + RAG["📚 LightRAG System
Hybrid storage"] + Agents["🤖 Agentic Workflow
LangGraph orchestration"] + DB["🗄️ PostgreSQL
Vector + Graph storage"] + end + + Monitor --> Tasks + Tasks --> PDF --> VLM --> Chunk + Chunk --> RAG --> Agents + RAG --> DB + + style Monitor fill:#E3F2FD + style Tasks fill:#F3E5F5 + style PDF fill:#E8F5E8 + style VLM fill:#FFF3E0 + style Chunk fill:#F1F8E9 + style RAG fill:#E0F2F1 + style Agents fill:#FCE4EC + style DB fill:#E8EAF6 +``` + +### 2. **Agentic Workflow Architecture** + +```mermaid +graph LR + subgraph "🤖 LangGraph Agents" + Query["❓ User Query"] + Strategy["🧠 Strategy Agent
Parameter optimization"] + Fetch["🔍 Retrieval Agent
Context gathering"] + QA["✍️ QA Agent
Answer generation"] + Answer["✅ Intelligent Response"] + end + + subgraph "📊 State Management" + State["📝 Workflow State
Question → Strategy → Context → Answer"] + end + + Query --> Strategy --> Fetch --> QA --> Answer + State --> Strategy + State --> Fetch + State --> QA + + style Strategy fill:#E1F5FE + style Fetch fill:#F3E5F5 + style QA fill:#E8F5E8 + style State fill:#FFF8E1 +``` + +--- + +## 🎯 **Professional Impact** + +This system demonstrates **Good engineering capabilities** through: + +### **🏗️ Architectural Excellence** +- **Clean, scalable design** following industry best practices +- **Production-ready reliability** with comprehensive error handling +- **Modern orchestration** with real-time monitoring and observability +- **Intelligent automation** through sophisticated agentic workflows + +### **🚀 Technical Innovation** +- **Multi-modal AI integration** with adaptive intelligence +- **Advanced database engineering** with hybrid storage strategies +- **Performance optimization** through concurrent processing and smart caching +- **Enterprise reliability** through retry mechanisms and graceful degradation + +### **📊 Business Value** +- **Transforms unstructured documents** into queryable knowledge bases +- **Reduces manual processing time** by 90% through automation +- **Ensures accessibility compliance** with professional-grade descriptions +- **Provides audit trails** and comprehensive monitoring for enterprise use + +--- + +## 🚀 **Next Features: Advanced Research Intelligence** + +### **🔬 Planned Roadmap - Research-Grade Analytics** + +The existing foundation enables sophisticated research-focused extensions: + +### **📊 Focused Research Paper Analysis** +- **Deep Methodology Extraction** - Specialized agents for research methodology analysis +- **Citation Network Analysis** - Automatic reference mapping and impact assessment +- **Reproducibility Validation** - Code/data availability checking and validation +- **Statistical Significance Detection** - Automated p-value and confidence interval extraction + +### **⚖️ Research Paper Comparison Engine** +- **Multi-Paper Analysis** - Side-by-side methodology comparison across papers +- **Approach Benchmarking** - Automated performance metric comparison tables +- **Novelty Assessment** - AI-powered analysis of contribution uniqueness +- **Evolution Tracking** - Historical progression analysis within research domains + +### **🕸️ Graph Visualization & Concept Mapping** +- **Interactive Knowledge Graphs** - 3D visualization of concept relationships +- **Research Timeline Visualization** - Temporal evolution of ideas and breakthroughs +- **Influence Network Mapping** - Author and paper citation influence visualization +- **Semantic Clustering** - Visual grouping of related concepts and methodologies + +### **📁 Research Workspaces** +- **Project-Based Organization** - Multi-paper collections with shared context +- **Collaborative Annotations** - Team-based paper markup and discussion threads +- **Custom Research Dashboards** - Personalized analytics and progress tracking +- **Export & Integration** - LaTeX, Notion, and reference manager connectivity + +### **🧠 Advanced AI Capabilities** +- **Cross-Paper Synthesis** - AI-generated literature reviews across workspace collections +- **Gap Analysis** - Automated identification of research opportunities +- **Hypothesis Generation** - AI-suggested research directions based on paper analysis +- **Research Quality Scoring** - Multi-dimensional paper assessment metrics + +--- + +**🌟 This project showcases the complete journey from raw PDFs to intelligent, production-ready knowledge systems - demonstrating mastery of modern AI engineering, enterprise architecture, and production reliability patterns.** + +--- + +*Built with advanced Python patterns, enterprise databases, modern orchestration, and cutting-edge AI technologies* \ No newline at end of file diff --git a/backend/__init__.py b/backend/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/backend/agentic_system/__init__.py b/backend/agentic_system/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/backend/agentic_system/agents/__init__.py b/backend/agentic_system/agents/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/backend/agentic_system/agents/flashcard_agent/__init__.py b/backend/agentic_system/agents/flashcard_agent/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..2c5a222e94db249cbca42e2ec5bb985ccc6bfab6 --- /dev/null +++ b/backend/agentic_system/agents/flashcard_agent/__init__.py @@ -0,0 +1,21 @@ +""" +Flashcard Agent Package + +This package provides functionality for generating educational flashcards from semantic chunks. +""" + +from .flashcard_agent import FlashcardAgent, FlashcardDeps, flashcard_agent +from .flashcard import Flashcard +from .flashcard_schema import FlashcardGeneration +from .flashcard_prompt import FLASHCARD_PROMPT +from .flashcard_utils import FlashcardUtils + +__all__ = [ + 'FlashcardAgent', + 'FlashcardDeps', + 'flashcard_agent', + 'Flashcard', + 'FlashcardGeneration', + 'FLASHCARD_PROMPT', + 'FlashcardUtils' +] \ No newline at end of file diff --git a/backend/agentic_system/agents/flashcard_agent/flashcard.py b/backend/agentic_system/agents/flashcard_agent/flashcard.py new file mode 100644 index 0000000000000000000000000000000000000000..da35d94a4b15e231140f38d60d31b73104b54a1c --- /dev/null +++ b/backend/agentic_system/agents/flashcard_agent/flashcard.py @@ -0,0 +1,24 @@ +from pydantic import BaseModel , Field + +class Flashcard(BaseModel): + id: str = Field(..., description="Unique identifier for the flashcard") + question: str = Field(..., description="The question or prompt for the flashcard") + answer: str = Field(..., description="The answer or response for the flashcard") + keyword_explanation: str = Field(..., description="Explanation of the keyword or concept") + metadata: dict = Field(..., description="Additional metadata for the flashcard") + class Config: + schema_extra = { + "example": { + "id": "123", + "question": "What is the capital of France?", + "answer": "The capital of France is Paris.", + "keyword_explanation": "Paris is the capital city of France, known for its art, fashion, and culture.", + "metadata": { + "source_file": "Graph_rag", + "chunk_index": "10", + "start_position": 0, + "end_position": 100, + "page_index": 1 + } + } + } \ No newline at end of file diff --git a/backend/agentic_system/agents/flashcard_agent/flashcard_agent.py b/backend/agentic_system/agents/flashcard_agent/flashcard_agent.py new file mode 100644 index 0000000000000000000000000000000000000000..d1159f6131ae5a19e2316bacc38bb3c97472a312 --- /dev/null +++ b/backend/agentic_system/agents/flashcard_agent/flashcard_agent.py @@ -0,0 +1,153 @@ +""" +Flashcard Agent for generating study flashcards from semantic chunks +""" + +import os +from pydantic_ai import Agent, RunContext +from pydantic import BaseModel +from typing import Optional, Dict, Any, List + +from .flashcard import Flashcard # The flashcard schema +from .flashcard_prompt import FLASHCARD_PROMPT # Instructions for the AI flashcard generator +from .flashcard_schema import FlashcardGeneration # The format for our final responses +from .flashcard_utils import FlashcardUtils # Utility functions + +from dotenv import load_dotenv # For loading API keys from environment +load_dotenv() # Actually load the environment variables + +class FlashcardDeps(BaseModel): + """ + The information package that our AI flashcard generator needs. + """ + chunks: List[Dict[str, Any]] # Semantic chunks from a specific page + source_file: str # Source file name + page_index: int # Page number for metadata + +flashcard_agent = Agent( + model='gemini-2.5-flash-lite', # Use OpenAI's fast and cost-effective model + output_type=List[Flashcard], # The agent will return a list of flashcards + deps_type=FlashcardDeps, +) + +@flashcard_agent.system_prompt +def dynamic_system_prompt(ctx: RunContext[FlashcardDeps]) -> str: + """ + Create custom instructions for our AI flashcard generator based on the page content. + + This function is called every time we need to generate flashcards, and it + creates personalized instructions that include: + - The semantic chunks from the page + - Source file information + - Page metadata + + Args: + ctx: The context containing all the information our flashcard generator needs + + Returns: + str: The complete instructions for the AI flashcard generator + """ + # Use utility function to format chunks + chunks_text = FlashcardUtils.format_chunks_for_prompt(ctx.deps.chunks) + + return FLASHCARD_PROMPT.format( + chunks_content=chunks_text, + source_file=ctx.deps.source_file, + page_index=ctx.deps.page_index + ) + +class FlashcardAgent: + """ + The main flashcard agent class - our intelligent flashcard generator. + """ + + def __init__(self): + """ + Initialize the flashcard agent. + """ + + async def generate_flashcards_from_chunks(self, chunks_file_path: str) -> List[FlashcardGeneration]: + """ + Generate flashcards from semantic chunks grouped by page. + + Args: + chunks_file_path: Path to the semantic_chunks.json file + + Returns: + List[FlashcardGeneration]: A list of flashcard generations for each page + """ + try: + # Load and validate the chunks file + chunks_data = FlashcardUtils.load_chunks_file(chunks_file_path) + + if not FlashcardUtils.validate_chunks_structure(chunks_data): + return [] + + results = [] + + # Extract file data using utility function + file_data_list = FlashcardUtils.extract_file_data(chunks_data) + + # Process each file + for file_name, chunks in file_data_list: + # Group chunks by page using utility function + pages = FlashcardUtils.group_chunks_by_page(chunks) + + # Generate flashcards for each page + for page_index, page_chunks in pages.items(): + try: + generation = await self.generate_flashcards_for_page( + page_chunks, file_name, page_index + ) + results.append(generation) + + except Exception as e: + # Create error generation and continue + error_generation = FlashcardUtils.create_flashcard_generation( + file_name, page_index, [], success=False + ) + results.append(error_generation) + continue + + return results + + except Exception as e: + return [] + + async def generate_flashcards_for_page(self, chunks: List[Dict[str, Any]], source_file: str, page_index: int) -> FlashcardGeneration: + """ + Generate flashcards for a specific page's chunks. + + Args: + chunks: List of semantic chunks for this page + source_file: Source file name + page_index: Page number + + Returns: + FlashcardGeneration: Generated flashcards for the page + """ + try: + deps = FlashcardDeps( + chunks=chunks, + source_file=source_file, + page_index=page_index + ) + + # Generate flashcards for this page + result = await flashcard_agent.run("Generate flashcards from the provided content", deps=deps) + + # Use utility function to create the generation object + return FlashcardUtils.create_flashcard_generation( + source_file=source_file, + page_index=page_index, + flashcards_output=result.output, + success=True + ) + + except Exception as e: + # Use utility function to create error generation + return FlashcardUtils.create_flashcard_generation( + source_file=source_file, + page_index=page_index, + flashcards_output=[], + success=False + ) \ No newline at end of file diff --git a/backend/agentic_system/agents/flashcard_agent/flashcard_prompt.py b/backend/agentic_system/agents/flashcard_agent/flashcard_prompt.py new file mode 100644 index 0000000000000000000000000000000000000000..d7c1760a6eaf8d46c43f4e853b9cbe8c13e17f22 --- /dev/null +++ b/backend/agentic_system/agents/flashcard_agent/flashcard_prompt.py @@ -0,0 +1,63 @@ +FLASHCARD_PROMPT = """ +You are an expert educational content creator specializing in generating high-quality flashcards for studying and learning. + +## Your Task +Generate effective study flashcards from the provided semantic chunks. Create flashcards that help students learn key concepts, definitions, facts, and relationships from the content. + +## Content to Process +Source File: {source_file} +Page Index: {page_index} + +Semantic Chunks: +{chunks_content} + +## Flashcard Generation Guidelines + +### Quality Standards +1. **Clear Questions**: Write precise, unambiguous questions that test understanding +2. **Comprehensive Answers**: Provide complete, accurate answers with sufficient detail +3. **Keyword Focus**: Include keyword explanations for important terms and concepts +4. **Educational Value**: Focus on the most important information students should remember + +### Content Coverage +- **Key Concepts**: Create cards for main ideas and theories +- **Definitions**: Generate cards for technical terms and vocabulary +- **Facts and Data**: Include important statistics, dates, names, and figures +- **Relationships**: Cover cause-effect relationships and connections between concepts +- **Applications**: Include practical applications or examples when relevant + +### Question Types to Create +1. **Definition Questions**: "What is [concept]?" +2. **Explanation Questions**: "How does [process] work?" +3. **Comparison Questions**: "What is the difference between X and Y?" +4. **Application Questions**: "When would you use [method]?" +5. **Analysis Questions**: "Why is [concept] important?" + +### Formatting Requirements +Each flashcard must follow this exact structure: +- **id**: Generate a unique identifier using format: "{source_file}_page{page_index}_card[number]" +- **question**: A clear, specific question +- **answer**: A comprehensive answer (2-4 sentences recommended) +- **keyword_explanation**: Detailed explanation of the main keyword or concept (2-3 sentences) +- **metadata**: Include source information with these exact fields: + - source_file: "{source_file}" + - chunk_index: The relevant chunk index number + - start_position: Start position from chunk metadata + - end_position: End position from chunk metadata + - page_index: {page_index} + +### Quality Checks +- Ensure questions are answerable from the provided content +- Avoid overly broad or vague questions +- Make sure answers are accurate and complete +- Include context when necessary for understanding +- Verify that keyword explanations add educational value + +### Output Requirements +- Generate 3-8 flashcards per page depending on content richness +- Focus on the most important information +- Ensure variety in question types +- Maintain educational progression from basic to more complex concepts + +Generate high-quality flashcards that will help students master the content from this page. +""" \ No newline at end of file diff --git a/backend/agentic_system/agents/flashcard_agent/flashcard_schema.py b/backend/agentic_system/agents/flashcard_agent/flashcard_schema.py new file mode 100644 index 0000000000000000000000000000000000000000..f405023b76a1a0675a66b17b76bf21fe83addeec --- /dev/null +++ b/backend/agentic_system/agents/flashcard_agent/flashcard_schema.py @@ -0,0 +1,97 @@ +""" +Flashcard Schema for Flashcard Generation Agent + +This file defines the data structures for our AI-generated flashcards. +Think of it as a standard format for packaging up flashcards and their metadata. +""" + +from pydantic import Field, BaseModel +from typing import List +from .flashcard import Flashcard + +class FlashcardGeneration(BaseModel): + """ + The standard format for storing generated flashcards for a specific page. + Having this structure ensures that every flashcard generation is properly labeled + and can be easily used by other parts of our system. + """ + + source_file: str = Field( + ..., # Required field (the "..." means it must be provided) + description="The source file name from which flashcards were generated", + example="2106.09685v2" + ) + + page_index: int = Field( + ..., # Required field + description="The page number/index from which flashcards were generated", + example=1 + ) + + flashcards: List[Flashcard] = Field( + ..., # Required field + description="List of generated flashcards for this page", + example=[] + ) + + total_flashcards: int = Field( + ..., # Required field + description="Total number of flashcards generated for this page", + example=5 + ) + + class Config: + """ + These examples show what complete FlashcardGeneration objects look like, + demonstrating the flashcard generation format across different pages. + """ + json_schema_extra = { + "examples": [ + { + "source_file": "2106.09685v2", + "page_index": 0, + "total_flashcards": 3, + "flashcards": [ + { + "id": "2106.09685v2_page0_card1", + "question": "What does LoRA stand for?", + "answer": "LoRA stands for Low-Rank Adaptation, which is a method for efficiently fine-tuning large language models.", + "keyword_explanation": "Low-Rank Adaptation is a parameter-efficient fine-tuning technique that freezes pretrained model weights and injects trainable rank decomposition matrices into each layer.", + "metadata": { + "source_file": "2106.09685v2", + "chunk_index": 0, + "start_position": 0, + "end_position": 993, + "page_index": 0 + } + }, + { + "id": "2106.09685v2_page0_card2", + "question": "How much does LoRA reduce trainable parameters compared to full fine-tuning?", + "answer": "LoRA can reduce the number of trainable parameters by 10,000 times compared to full fine-tuning methods like Adam.", + "keyword_explanation": "Parameter reduction refers to the significant decrease in the number of model parameters that need to be trained, making the fine-tuning process much more efficient.", + "metadata": { + "source_file": "2106.09685v2", + "chunk_index": 1, + "start_position": 993, + "end_position": 2014, + "page_index": 0 + } + }, + { + "id": "2106.09685v2_page0_card3", + "question": "What is the main advantage of LoRA over traditional fine-tuning?", + "answer": "LoRA greatly reduces the number of trainable parameters while maintaining or improving model performance, and it requires less GPU memory without adding inference latency.", + "keyword_explanation": "Fine-tuning efficiency refers to achieving better resource utilization and performance with fewer computational requirements compared to traditional methods.", + "metadata": { + "source_file": "2106.09685v2", + "chunk_index": 2, + "start_position": 2014, + "end_position": 2921, + "page_index": 0 + } + } + ] + } + ] + } \ No newline at end of file diff --git a/backend/agentic_system/agents/flashcard_agent/flashcard_utils.py b/backend/agentic_system/agents/flashcard_agent/flashcard_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9d3234459554a0e717ad94081f11ee32da7af59a --- /dev/null +++ b/backend/agentic_system/agents/flashcard_agent/flashcard_utils.py @@ -0,0 +1,172 @@ +""" +Utility functions for flashcard generation operations. + +Handles file loading, chunk processing, and data transformations to keep the main agent clean. +""" + +import json +from typing import Dict, List, Any, Tuple +from pathlib import Path + +from .flashcard_schema import FlashcardGeneration + +class FlashcardUtils: + """ + Utility class containing helper functions for flashcard generation operations. + """ + + @staticmethod + def load_chunks_file(chunks_file_path: str) -> Dict[str, Any]: + """ + Load and parse the semantic chunks JSON file. + + Args: + chunks_file_path: Path to the semantic_chunks.json file + + Returns: + Dict containing the parsed chunks data + + Raises: + FileNotFoundError: If the chunks file doesn't exist + json.JSONDecodeError: If the file contains invalid JSON + """ + chunks_path = Path(chunks_file_path) + + if not chunks_path.exists(): + raise FileNotFoundError(f"Chunks file not found: {chunks_file_path}") + + with open(chunks_path, 'r', encoding='utf-8') as f: + return json.load(f) + + @staticmethod + def group_chunks_by_page(chunks: List[Dict[str, Any]]) -> Dict[int, List[Dict[str, Any]]]: + """ + Group chunks by page index for easier processing. + + Args: + chunks: List of chunk dictionaries with metadata containing page_index + + Returns: + Dict mapping page_index to list of chunks for that page + """ + pages = {} + + for chunk in chunks: + try: + page_index = chunk['metadata']['page_index'] + if page_index not in pages: + pages[page_index] = [] + pages[page_index].append(chunk) + except (KeyError, TypeError): + # Skip chunks with invalid or missing metadata + continue + + return pages + + @staticmethod + def extract_file_data(chunks_data: Dict[str, Any]) -> List[Tuple[str, List[Dict[str, Any]]]]: + """ + Extract file names and their associated chunks from the loaded data. + + Args: + chunks_data: The loaded chunks data structure + + Returns: + List of tuples containing (file_name, chunks_list) + """ + file_data = [] + + files_section = chunks_data.get('files', {}) + for file_name, file_info in files_section.items(): + chunks = file_info.get('chunks', []) + if chunks: # Only include files that have chunks + file_data.append((file_name, chunks)) + + return file_data + + @staticmethod + def create_flashcard_generation( + source_file: str, + page_index: int, + flashcards_output: List[Any], + success: bool = True + ) -> FlashcardGeneration: + """ + Create a FlashcardGeneration object with proper error handling. + + Args: + source_file: Source file name + page_index: Page number + flashcards_output: The generated flashcards or empty list on error + success: Whether the generation was successful + + Returns: + FlashcardGeneration: Properly formatted generation result + """ + if success and flashcards_output: + return FlashcardGeneration( + source_file=source_file, + page_index=page_index, + flashcards=flashcards_output, + total_flashcards=len(flashcards_output) + ) + else: + return FlashcardGeneration( + source_file=source_file, + page_index=page_index, + flashcards=[], + total_flashcards=0 + ) + + @staticmethod + def format_chunks_for_prompt(chunks: List[Dict[str, Any]]) -> str: + """ + Format chunks into readable text for the AI prompt. + + Args: + chunks: List of chunk dictionaries + + Returns: + str: Formatted text representation of chunks + """ + chunks_text = "" + + for i, chunk in enumerate(chunks): + content = chunk.get('content', '') + chunks_text += f"\n--- Chunk {i+1} ---\n{content}\n" + + return chunks_text + + @staticmethod + def validate_chunks_structure(chunks_data: Dict[str, Any]) -> bool: + """ + Validate that the chunks data has the expected structure. + + Args: + chunks_data: The loaded chunks data to validate + + Returns: + bool: True if structure is valid, False otherwise + """ + try: + # Check for required top-level keys + if 'files' not in chunks_data: + return False + + # Check that files section is a dictionary + if not isinstance(chunks_data['files'], dict): + return False + + # Check that each file has chunks + for file_name, file_data in chunks_data['files'].items(): + if not isinstance(file_data, dict): + return False + if 'chunks' not in file_data: + return False + if not isinstance(file_data['chunks'], list): + return False + + return True + + except (KeyError, TypeError): + return False \ No newline at end of file diff --git a/backend/agentic_system/agents/question_answering_agent/__init__.py b/backend/agentic_system/agents/question_answering_agent/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..76d4536fddb806614e418627a0efd7b4d73d6c57 --- /dev/null +++ b/backend/agentic_system/agents/question_answering_agent/__init__.py @@ -0,0 +1,19 @@ +""" +Question Answering Agent Package + +Provides guided, step-by-step explanations based on retrieved context. +""" + +from .qa_agent import QuestionAnsweringAgent, QADeps, qa_agent +from .qa_schema import GuidedAnswer, QuestionAnswerPair, AnswerStep +from .qa_prompt import QA_PROMPT + +__all__ = [ + "QuestionAnsweringAgent", + "QADeps", + "qa_agent", + "GuidedAnswer", + "QuestionAnswerPair", + "AnswerStep", + "QA_PROMPT" +] \ No newline at end of file diff --git a/backend/agentic_system/agents/question_answering_agent/qa_agent.py b/backend/agentic_system/agents/question_answering_agent/qa_agent.py new file mode 100644 index 0000000000000000000000000000000000000000..2286687004d1e2b6fae8ad3109f045516d4c39e5 --- /dev/null +++ b/backend/agentic_system/agents/question_answering_agent/qa_agent.py @@ -0,0 +1,138 @@ +""" +Question Answering Agent for providing guided, step-by-step explanations +""" + +import os +from pydantic_ai import Agent, RunContext +from pydantic import BaseModel +from typing import Optional, Dict, Any + +from .qa_schema import GuidedAnswer, QuestionAnswerPair +from .qa_prompt import QA_PROMPT + +from dotenv import load_dotenv +load_dotenv() + +class QADeps(BaseModel): + """ + Dependencies for the question answering agent. + """ + question: str # The user question to answer + context: str # The retrieved context to base the answer on + +qa_agent = Agent( + model='gemini-2.5-flash-lite', + output_type=GuidedAnswer, + deps_type=QADeps, +) + +@qa_agent.system_prompt +def dynamic_system_prompt(ctx: RunContext[QADeps]) -> str: + """ + Create custom instructions for the QA agent with the specific context and question. + + Args: + ctx: The context containing the question and context to use + + Returns: + str: The complete instructions for the AI agent + """ + return QA_PROMPT.format( + context=ctx.deps.context, + question=ctx.deps.question + ) + +class QuestionAnsweringAgent: + """ + The main question answering agent class for providing guided explanations. + """ + + def __init__(self): + """ + Initialize the question answering agent. + """ + + async def answer_question(self, question: str, context: str) -> QuestionAnswerPair: + """ + Answer a question using the provided context with step-by-step guidance. + + Args: + question: The user question to answer + context: The retrieved context to base the answer on + + Returns: + QuestionAnswerPair: Complete question-answer pair with metadata + """ + try: + # Create dependencies + deps = QADeps(question=question, context=context) + + # Run the agent analysis + result = await qa_agent.run( + "Provide a guided, step-by-step answer using the provided context", + deps=deps + ) + + # Package the results + return QuestionAnswerPair( + question=question, + answer=result.output, + context_used=bool(context.strip()), + total_steps=len(result.output.steps) if result.output.steps else 0 + ) + + except Exception as e: + # Return error response + from .qa_schema import AnswerStep + + error_step = AnswerStep( + step_number=1, + title="Error Processing Question", + explanation=f"An error occurred while processing your question: {str(e)}", + context_references=[] + ) + + error_answer = GuidedAnswer( + summary="Unable to process the question due to an error.", + steps=[error_step], + conclusion="Please try again or rephrase your question.", + confidence_level="Low - error occurred during processing", + context_coverage="Unable to assess due to error" + ) + + return QuestionAnswerPair( + question=question, + answer=error_answer, + context_used=bool(context.strip()), + total_steps=1 + ) + + async def get_guided_answer(self, question: str, context: str) -> Dict[str, Any]: + """ + Get a guided answer in simplified dictionary format. + + Args: + question: The user question to answer + context: The retrieved context to base the answer on + + Returns: + Dict containing summary, steps, and conclusion + """ + qa_pair = await self.answer_question(question, context) + + return { + "summary": qa_pair.answer.summary, + "steps": [ + { + "step_number": step.step_number, + "title": step.title, + "explanation": step.explanation, + "context_references": step.context_references + } + for step in qa_pair.answer.steps + ], + "conclusion": qa_pair.answer.conclusion, + "confidence_level": qa_pair.answer.confidence_level, + "context_coverage": qa_pair.answer.context_coverage, + "total_steps": qa_pair.total_steps + } \ No newline at end of file diff --git a/backend/agentic_system/agents/question_answering_agent/qa_prompt.py b/backend/agentic_system/agents/question_answering_agent/qa_prompt.py new file mode 100644 index 0000000000000000000000000000000000000000..68da151baa7b3742f7dd765ab2f195295c5eb629 --- /dev/null +++ b/backend/agentic_system/agents/question_answering_agent/qa_prompt.py @@ -0,0 +1,52 @@ +QA_PROMPT = """ +### **Role and Goal** + +You are an expert **Knowledge Synthesizer and Educator Agent**. Your primary function is to construct a detailed, coherent, and educational step-by-step explanation for the user's question. You must base your answer **EXCLUSIVELY** on the provided, structured context, which includes Entities, Relationships, and Document Chunks. Your goal is to act as a teacher, building the user's understanding from foundational concepts to complex conclusions, synthesizing all available information into a clear narrative. + +### **Critical Rules** + +1. **CONTEXT-ONLY RULE**: You MUST ONLY use information from the provided `{context}`. Do not add any external knowledge, assumptions, or information. Your world is defined by the text you are given. +2. **STEP-BY-STEP NARRATIVE**: Your answer is not a list of facts; it is a story that educates. Each step must logically build upon the previous one, guiding the user through the topic. +3. **SOURCE CITATION**: For each piece of information, you must reference its source (e.g., "From Entity: 'LoRA'", "From Relationship: 'LoRA -> QLORA'", "From Document Chunk: 1"). This is non-negotiable. +4. **BE DETAILED AND EDUCATIONAL**: Your goal is to teach the user, not just answer the question. Each step should be thorough, well-explained, and add significant value. **Do not provide short, superficial answers.** Assume the user is intelligent but new to the topic. +5. **ACKNOWLEDGE LIMITATIONS**: If the context is insufficient, explicitly state what information is missing. Do not invent answers. +6. **SYNTHESIZE, DON'T REGURGITATE**: Do not just copy-paste chunks. Weave together information from the Entities, Relationships, and Document Chunks to form a coherent explanation. For instance, use an Entity description for a definition, a Relationship to show how it connects to another concept, and a Document Chunk for the in-depth explanation. + +### **Internal Thought Process (Chain of Thought)** + +Before generating the final JSON output, you MUST follow this internal process: + +**Step A: Deconstruct the User's Query** +- First, I will identify the core components of the user's question. For example, "History of LoRA and its components?" breaks down into two main parts: 1) The origin, motivation, and timeline (History), and 2) The technical breakdown of how it works (Components). + +**Step B: Context Triage and Information Mapping** +- Next, I will systematically scan all three parts of the provided context: + 1. **Entities (KG):** I will treat this as my **Glossary**. I'll identify all key terms and their definitions (e.g., what is LoRA? What is QLORA?). + 2. **Relationships (KG):** I will treat this as my **Connection Map**. I'll understand how the entities relate to each other (e.g., LoRA is a component of LoRA+PL; LoRA is an alternative to Adapter Layers). This helps me build the narrative structure. + 3. **Document Chunks (DC):** I will treat this as my **Primary Source Narrative**. This contains the detailed explanations, the "why" behind the concepts, and the authors' own words (e.g., the abstract from the paper, the hypothesis about "intrinsic rank"). + +**Step C: Outline the Educational Narrative** +- Based on my analysis, I will outline the story I'm going to tell in the `Step-by-Step Explanation`. For a query about history and components, my outline will look like this: + 1. **The Problem:** What challenge led to the creation of this technology? (e.g., fine-tuning large models like GPT-3 is expensive). + 2. **The Core Idea/Hypothesis:** What was the key insight? (e.g., weight updates have a low "intrinsic rank"). + 3. **The Solution & Key Figures:** How was the idea implemented and who created it? (e.g., a paper by Edward Hu et al. from Microsoft). + 4. **The Technical Components:** What are the building blocks? (e.g., freezing pre-trained weights, injecting trainable rank decomposition matrices). + 5. **Context and Comparisons:** How does it relate to other technologies? (e.g., QLORA, Adapter Layers). + +**Step D: Draft the Full Response** +- I will now write out the full explanation for each step in my outline, carefully weaving together the information I mapped in Step B. I will ensure each explanation is detailed and cites its sources clearly. I will force myself to write multiple sentences per explanation, elaborating on the core point of each step, I will ensure to write Extensive steps per major conecpt and build up . + +**Step E: Final Review and Formatting** +- Finally, I will review my drafted response against the Critical Rules and the required JSON schema. I will check for accuracy, clarity, and ensure I haven't cut any corners before generating the final output. + +--- + +### **Your Task** + +Now, apply this entire thought process to the provided context and user question. Generate a `GuidedAnswer` JSON object that is comprehensive, educational, and strictly follows the schema. Remember to build a rich narrative, not just a list of facts. + +### **Your Context** +{context} +### **User Question** +{question} +""" \ No newline at end of file diff --git a/backend/agentic_system/agents/question_answering_agent/qa_schema.py b/backend/agentic_system/agents/question_answering_agent/qa_schema.py new file mode 100644 index 0000000000000000000000000000000000000000..33daf1d5f121d76d9d876bb6d69d7d8b08c41d50 --- /dev/null +++ b/backend/agentic_system/agents/question_answering_agent/qa_schema.py @@ -0,0 +1,136 @@ +""" +Question Answering Schema for Guided Response Agent + +Defines the data structures for providing step-by-step explanations based on context. +""" + +from pydantic import Field, BaseModel +from typing import List, Optional + +class AnswerStep(BaseModel): + """ + A single step in the guided explanation. + """ + + step_number: int = Field( + ..., + description="The sequential number of this step", + example=1, + ge=1 + ) + + title: str = Field( + ..., + description="Brief title describing what this step covers", + example="Understanding LoRA Fundamentals" + ) + + explanation: str = Field( + ..., + description="Detailed explanation for this step based on the provided context", + example="LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method..." + ) + + context_references: List[str] = Field( + default_factory=list, + description="References to specific parts of the context used in this step", + example=["From document chunk 1: LoRA definition", "From entity description: Parameter efficiency"] + ) + +class GuidedAnswer(BaseModel): + """ + A complete guided answer with step-by-step explanation. + """ + + summary: str = Field( + ..., + description="Brief summary of the answer in one or two sentences", + example="LoRA is a parameter-efficient fine-tuning method that reduces trainable parameters while maintaining performance." + ) + + steps: List[AnswerStep] = Field( + ..., + description="Step-by-step breakdown of the explanation", + min_items=1 + ) + + conclusion: str = Field( + ..., + description="Concluding remarks that tie the steps together", + example="In conclusion, LoRA provides an efficient way to adapt large models without full fine-tuning." + ) + + confidence_level: str = Field( + ..., + description="Confidence level based on context quality", + example="High - based on comprehensive technical documentation" + ) + + context_coverage: str = Field( + ..., + description="Assessment of how well the context covers the question", + example="Excellent - context contains detailed technical specifications and examples" + ) + +class QuestionAnswerPair(BaseModel): + """ + Complete question-answer package with metadata. + """ + + question: str = Field( + ..., + description="The original question asked by the user", + example="How does LoRA work?" + ) + + answer: GuidedAnswer = Field( + ..., + description="The guided answer with step-by-step explanation" + ) + + context_used: bool = Field( + ..., + description="Whether the answer was derived from provided context", + example=True + ) + + total_steps: int = Field( + ..., + description="Total number of explanation steps", + example=3, + ge=1 + ) + + class Config: + """ + Configuration with example showing complete QA structure. + """ + json_schema_extra = { + "examples": [ + { + "question": "How does LoRA work?", + "answer": { + "summary": "LoRA works by freezing pre-trained weights and adding trainable low-rank matrices to adapt the model efficiently.", + "steps": [ + { + "step_number": 1, + "title": "Understanding the Core Concept", + "explanation": "LoRA (Low-Rank Adaptation) is based on the hypothesis that weight updates during adaptation have a low intrinsic rank.", + "context_references": ["From technical paper: low intrinsic dimension hypothesis"] + }, + { + "step_number": 2, + "title": "Implementation Mechanism", + "explanation": "Instead of updating all model parameters, LoRA freezes the original weights and adds small trainable matrices A and B.", + "context_references": ["From architecture description: rank decomposition matrices"] + } + ], + "conclusion": "This approach dramatically reduces the number of trainable parameters while maintaining model performance.", + "confidence_level": "High - based on technical documentation", + "context_coverage": "Comprehensive - detailed technical specifications provided" + }, + "context_used": True, + "total_steps": 2 + } + ] + } \ No newline at end of file diff --git a/backend/agentic_system/agents/question_generation_agent/__init__.py b/backend/agentic_system/agents/question_generation_agent/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..c8b95c9dad45e11f0462094079cfef558df79814 --- /dev/null +++ b/backend/agentic_system/agents/question_generation_agent/__init__.py @@ -0,0 +1,19 @@ +""" +Question Generation Agent for research paper exploration +""" + +from .question_generation_agent import QuestionGenerationAgent +from .question_generation_schema import ( + ResearchQuestion, + QuestionCategory, + QuestionSet, + QuestionGenerationRequest +) + +__all__ = [ + "QuestionGenerationAgent", + "ResearchQuestion", + "QuestionCategory", + "QuestionSet", + "QuestionGenerationRequest" +] \ No newline at end of file diff --git a/backend/agentic_system/agents/question_generation_agent/question_generation_agent.py b/backend/agentic_system/agents/question_generation_agent/question_generation_agent.py new file mode 100644 index 0000000000000000000000000000000000000000..95d030375bc3611e6a6e4bfe04d9d09848c4dea5 --- /dev/null +++ b/backend/agentic_system/agents/question_generation_agent/question_generation_agent.py @@ -0,0 +1,193 @@ +""" +Question Generation Agent for systematic research paper exploration. + +Generates comprehensive research questions following academic methodology frameworks +to enable deep understanding through systematic inquiry. +""" + +import os +from typing import List, Optional +from pydantic_ai import Agent, RunContext +from pydantic import BaseModel + +from .question_generation_schema import ( + QuestionSet, + QuestionGenerationRequest, + QuestionCategory, + ResearchQuestion +) +from .question_generation_prompt import QUESTION_GENERATION_PROMPT + +from dotenv import load_dotenv +load_dotenv() + + +class QuestionGenerationDeps(BaseModel): + """Dependencies for the question generation agent.""" + + topic: str + max_questions: int = 5 + focus_areas: Optional[List[QuestionCategory]] = None + depth_level: str = "comprehensive" + paper_type: Optional[str] = None + + +question_generation_agent = Agent( + model='gemini-2.5-flash-lite', + output_type=QuestionSet, + deps_type=QuestionGenerationDeps, +) + + +@question_generation_agent.system_prompt +def dynamic_system_prompt(ctx: RunContext[QuestionGenerationDeps]) -> str: + """ + Create custom instructions for the question generation agent. + + Args: + ctx: The context containing the research topic and parameters + + Returns: + str: The complete instructions for the AI agent + """ + return QUESTION_GENERATION_PROMPT.format( + topic=ctx.deps.topic, + max_questions=ctx.deps.max_questions + ) + + +class QuestionGenerationAgent: + """ + The main question generation agent for systematic research exploration. + + Generates comprehensive sets of research questions to enable deep understanding + of academic papers and research topics through systematic inquiry. + """ + + def __init__(self): + """Initialize the question generation agent.""" + # Set up API key + os.environ.setdefault("OPENAI_API_KEY", os.getenv("OPENAI_API_KEY", "")) + + async def generate_research_questions(self, request: QuestionGenerationRequest) -> QuestionSet: + """ + Generate a comprehensive set of research questions for a topic. + + Args: + request: The question generation request with topic and parameters + + Returns: + QuestionSet: Organized set of research questions with priorities + """ + try: + # Create dependencies + deps = QuestionGenerationDeps( + topic=request.topic, + max_questions=request.max_questions, + focus_areas=request.focus_areas, + depth_level=request.depth_level, + paper_type=request.paper_type + ) + + # Run the agent to generate questions + result = await question_generation_agent.run( + "Generate systematic research questions for comprehensive understanding", + deps=deps + ) + + return result.output + + except Exception as e: + # Return minimal question set on error + return QuestionSet( + topic=request.topic, + questions=[ + ResearchQuestion( + question=f"What is the main contribution of research on {request.topic}?", + category=QuestionCategory.OVERVIEW, + priority=8, + rationale="Essential for basic understanding" + ) + ], + total_questions=1, + categories_covered=[QuestionCategory.OVERVIEW] + ) + + async def generate_questions_for_topic( + self, + topic: str, + max_questions: int = 15, + focus_areas: Optional[List[QuestionCategory]] = None + ) -> QuestionSet: + """ + Simplified interface for generating questions about a research topic. + + Args: + topic: The research topic to explore + max_questions: Maximum number of questions to generate + focus_areas: Specific categories to focus on (optional) + + Returns: + QuestionSet: Generated research questions + """ + request = QuestionGenerationRequest( + topic=topic, + max_questions=max_questions, + focus_areas=focus_areas + ) + + return await self.generate_research_questions(request) + + async def generate_questions_by_category( + self, + topic: str, + categories: List[QuestionCategory] + ) -> QuestionSet: + """ + Generate questions focused on specific research categories. + + Args: + topic: The research topic to explore + categories: Specific question categories to focus on + + Returns: + QuestionSet: Questions focused on specified categories + """ + # Calculate questions per category + questions_per_category = max(1, 15 // len(categories)) + total_questions = questions_per_category * len(categories) + + request = QuestionGenerationRequest( + topic=topic, + max_questions=total_questions, + focus_areas=categories, + depth_level="detailed" + ) + + return await self.generate_research_questions(request) + + # HELPER FUNCTIONS + + def _validate_question_set(self, question_set: QuestionSet) -> bool: + """ + Validate that a question set meets quality standards. + + Args: + question_set: The question set to validate + + Returns: + bool: True if valid, False otherwise + """ + if not question_set.questions: + return False + + # Check for minimum high-priority questions + high_priority_count = len([q for q in question_set.questions if q.priority >= 7]) + if high_priority_count < 3: + return False + + # Check for category diversity + if len(question_set.categories_covered) < 3: + return False + + return True \ No newline at end of file diff --git a/backend/agentic_system/agents/question_generation_agent/question_generation_prompt.py b/backend/agentic_system/agents/question_generation_agent/question_generation_prompt.py new file mode 100644 index 0000000000000000000000000000000000000000..74f3d83b55b73e613c697a6d1793a85bdd622fa1 --- /dev/null +++ b/backend/agentic_system/agents/question_generation_agent/question_generation_prompt.py @@ -0,0 +1,124 @@ +""" +System prompt for generating systematic research questions. + +Contains the complete research methodology framework for generating +comprehensive questions about academic papers and research topics. +""" + +QUESTION_GENERATION_PROMPT = """ +You are a Research Question Generation Specialist, expert in academic methodology and systematic research exploration. + +Your mission is to generate comprehensive, well-structured research questions that help users deeply understand research papers and topics through systematic inquiry. + +## Core Research Question Categories + +### 1. OVERVIEW (High-Level Understanding) +Purpose: Establish foundational understanding +Examples: +- "What is the main contribution of this research?" +- "What problem does this work address?" +- "What is the key innovation presented?" + +### 2. METHODOLOGY (How It Works) +Purpose: Understand the technical approach +Examples: +- "What methodology is used to solve the problem?" +- "What are the key algorithmic components?" +- "How does the proposed approach work step-by-step?" + +### 3. INNOVATION (What's Novel) +Purpose: Identify unique contributions +Examples: +- "What makes this approach different from existing work?" +- "What is the key novelty or breakthrough?" +- "How does this advance the state-of-the-art?" + +### 4. EVALUATION (Testing & Validation) +Purpose: Understand how claims are supported +Examples: +- "How was the approach evaluated?" +- "What datasets or benchmarks were used?" +- "What metrics demonstrate effectiveness?" + +### 5. RESULTS (Key Findings) +Purpose: Extract main outcomes +Examples: +- "What are the key experimental results?" +- "What performance improvements were achieved?" +- "What insights emerged from the analysis?" + +### 6. LIMITATIONS (Constraints & Boundaries) +Purpose: Understand scope and constraints +Examples: +- "What are the acknowledged limitations?" +- "Where might this approach fail or struggle?" +- "What assumptions does the work rely on?" + +### 7. APPLICATIONS (Practical Use) +Purpose: Understand real-world relevance +Examples: +- "What are the practical applications?" +- "In what domains could this be applied?" +- "What impact might this have on the field?" + +### 8. FUTURE_WORK (Research Directions) +Purpose: Identify next steps and opportunities +Examples: +- "What future research directions are suggested?" +- "What extensions or improvements are proposed?" +- "What open questions remain?" + +### 9. COMPARISON (Relationship to Other Work) +Purpose: Contextualize within broader research +Examples: +- "How does this compare to previous approaches?" +- "What advantages does this have over alternatives?" +- "How does this build on or differ from related work?" + +### 10. IMPLEMENTATION (How to Build) +Purpose: Understand practical implementation +Examples: +- "How could this be implemented in practice?" +- "What resources or tools are needed?" +- "What are the computational requirements?" + +## Question Quality Guidelines + +### Characteristics of Excellent Research Questions: +1. **Specific and Focused**: Target particular aspects rather than being too broad +2. **Actionable**: Can be answered through analysis of the research +3. **Insightful**: Reveal important understanding about the work +4. **Progressive**: Build from basic to advanced understanding +5. **Balanced**: Cover both technical and conceptual aspects + +### Prioritization Criteria (1-10 scale): +- **Priority 9-10**: Essential for core understanding +- **Priority 7-8**: Important for comprehensive grasp +- **Priority 5-6**: Useful for deeper insight +- **Priority 3-4**: Interesting but not critical +- **Priority 1-2**: Nice-to-know details + +## Instructions for Topic: "{topic}" + +Generate {max_questions} research questions following these guidelines: + +1. **Analyze the Topic**: Understand what type of research this is (theoretical, empirical, survey, etc.) + +2. **Select Categories**: Choose the most relevant question categories for this topic + +3. **Generate Questions**: Create specific, well-formulated questions for each category + +4. **Assign Priorities**: Rate each question 1-10 based on importance for understanding + +5. **Provide Rationale**: Briefly explain why each high-priority question is important + +## Output Requirements: + +Return a well-structured QuestionSet with: +- Clear, specific questions for each relevant category +- Appropriate priority assignments (focusing on 7-10 for essential questions) +- Brief rationales for high-priority questions +- Balanced coverage across different aspects of the research + +Focus on questions that would help someone gain deep, systematic understanding of the research topic through your existing QA workflow system. +""" \ No newline at end of file diff --git a/backend/agentic_system/agents/question_generation_agent/question_generation_schema.py b/backend/agentic_system/agents/question_generation_agent/question_generation_schema.py new file mode 100644 index 0000000000000000000000000000000000000000..e7100f2bb529718683be2e434cbc643d9adab3a1 --- /dev/null +++ b/backend/agentic_system/agents/question_generation_agent/question_generation_schema.py @@ -0,0 +1,74 @@ +""" +Schema definitions for research question generation. + +Defines the data structures for systematic research paper exploration, +including question categories, individual questions, and question sets. +""" + +from typing import List, Optional +from enum import Enum +from pydantic import BaseModel, Field + + +class QuestionCategory(str, Enum): + """Research question categories following academic methodology frameworks.""" + + OVERVIEW = "overview" # What is this about? High-level understanding + METHODOLOGY = "methodology" # How does the approach work? + INNOVATION = "innovation" # What's novel about this research? + EVALUATION = "evaluation" # How was it tested and validated? + RESULTS = "results" # What were the key findings? + LIMITATIONS = "limitations" # What are the known constraints? + APPLICATIONS = "applications" # Where is this used in practice? + FUTURE_WORK = "future_work" # What directions are suggested? + COMPARISON = "comparison" # How does this compare to other work? + IMPLEMENTATION = "implementation" # How can this be implemented? + + +class ResearchQuestion(BaseModel): + """Individual research question with metadata.""" + + question: str = Field(..., description="The actual question text") + category: QuestionCategory = Field(..., description="Question category") + priority: int = Field(default=5, ge=1, le=10, description="Priority (1=low, 10=high)") + rationale: Optional[str] = Field(None, description="Why this question is important") + + +class QuestionSet(BaseModel): + """Complete set of generated research questions organized by category.""" + + topic: str = Field(..., description="The research topic being explored") + questions: List[ResearchQuestion] = Field(..., description="Generated questions") + total_questions: int = Field(..., description="Total number of questions generated") + categories_covered: List[QuestionCategory] = Field(..., description="Question categories included") + + def get_questions_by_category(self, category: QuestionCategory) -> List[ResearchQuestion]: + """Get all questions for a specific category.""" + return [q for q in self.questions if q.category == category] + + def get_high_priority_questions(self, min_priority: int = 7) -> List[ResearchQuestion]: + """Get questions above a priority threshold.""" + return [q for q in self.questions if q.priority >= min_priority] + + +class QuestionGenerationRequest(BaseModel): + """Request for generating research questions about a topic.""" + + topic: str = Field(..., description="Research topic or paper to explore") + focus_areas: Optional[List[QuestionCategory]] = Field( + None, + description="Specific categories to focus on (if None, covers all)" + ) + max_questions: int = Field( + default=2, + ge=2, + description="Maximum number of questions to generate" + ) + depth_level: str = Field( + default="comprehensive", + description="Level of detail: 'overview', 'detailed', 'comprehensive'" + ) + paper_type: Optional[str] = Field( + None, + description="Type of paper: 'theoretical', 'empirical', 'survey', 'experimental'" + ) \ No newline at end of file diff --git a/backend/agentic_system/agents/retrieval_strategy_agent/__init__.py b/backend/agentic_system/agents/retrieval_strategy_agent/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..0b13a50d8f999561570e169ea236080576e5cbd4 --- /dev/null +++ b/backend/agentic_system/agents/retrieval_strategy_agent/__init__.py @@ -0,0 +1,18 @@ +""" +Retrieval Strategy Agent Package + +Provides intelligent query analysis to determine optimal retrieval parameters for knowledge retrieval systems. +""" + +from .retrieval_strategy_agent import RetrievalStrategyAgent, RetrievalStrategyDeps, retrieval_strategy_agent +from .retrieval_strategy_schema import RetrievalStrategy, QueryAnalysis +from .retrieval_strategy_prompt import RETRIEVAL_STRATEGY_PROMPT + +__all__ = [ + "RetrievalStrategyAgent", + "RetrievalStrategyDeps", + "retrieval_strategy_agent", + "RetrievalStrategy", + "QueryAnalysis", + "RETRIEVAL_STRATEGY_PROMPT" +] \ No newline at end of file diff --git a/backend/agentic_system/agents/retrieval_strategy_agent/retrieval_strategy_agent.py b/backend/agentic_system/agents/retrieval_strategy_agent/retrieval_strategy_agent.py new file mode 100644 index 0000000000000000000000000000000000000000..dad856af2495d909118447412179eb55fc290dab --- /dev/null +++ b/backend/agentic_system/agents/retrieval_strategy_agent/retrieval_strategy_agent.py @@ -0,0 +1,126 @@ +""" +Retrieval Strategy Agent for analyzing queries and determining optimal retrieval parameters +""" + +import os +from pydantic_ai import Agent, RunContext +from pydantic import BaseModel +from typing import Optional, Dict, Any + +from .retrieval_strategy_schema import RetrievalStrategy, QueryAnalysis +from .retrieval_strategy_prompt import RETRIEVAL_STRATEGY_PROMPT + +import asyncio +from dotenv import load_dotenv +load_dotenv() + +class RetrievalStrategyDeps(BaseModel): + """ + Dependencies for the retrieval strategy agent. + """ + query: str # The user query to analyze + +retrieval_strategy_agent = Agent( + model='gemini-2.5-flash-lite', + output_type=RetrievalStrategy, + deps_type=RetrievalStrategyDeps, +) + +@retrieval_strategy_agent.system_prompt +def dynamic_system_prompt(ctx: RunContext[RetrievalStrategyDeps]) -> str: + """ + Create custom instructions for the retrieval strategy agent. + + Args: + ctx: The context containing the query to analyze + + Returns: + str: The complete instructions for the AI agent + """ + return RETRIEVAL_STRATEGY_PROMPT.format(query=ctx.deps.query) + +class RetrievalStrategyAgent: + """ + The main retrieval strategy agent class for analyzing queries and determining retrieval parameters. + """ + + def __init__(self): + """ + Initialize the retrieval strategy agent. + """ + + async def analyze_query(self, query: str) -> QueryAnalysis: + """ + Analyze a user query and determine optimal retrieval parameters. + + Args: + query: The user query to analyze + + Returns: + QueryAnalysis: Complete analysis with query and retrieval strategy + """ + try: + # Create dependencies + deps = RetrievalStrategyDeps(query=query) + + # Run the agent analysis + result = await retrieval_strategy_agent.run( + "Analyze this query and determine the optimal retrieval parameters", + deps=deps + ) + + # Package the results + return QueryAnalysis( + query=query, + strategy=result.output + ) + + except Exception as e: + # Return default strategy on error + return QueryAnalysis( + query=query, + strategy=RetrievalStrategy( + analysis=f"Error analyzing query: {e}. Using default balanced strategy.", + query_category="Balanced / Complex", + top_k=5, + chunk_top_k=2 + ) + ) + + async def get_retrieval_parameters(self, query: str) -> Dict[str, Any]: + """ + Get just the retrieval parameters for a query (simplified interface). + + Args: + query: The user query to analyze + + Returns: + Dict with top_k and chunk_top_k parameters + """ + analysis = await self.analyze_query(query) + return { + "top_k": analysis.strategy.top_k, + "chunk_top_k": analysis.strategy.chunk_top_k, + "query_category": analysis.strategy.query_category, + "analysis": analysis.strategy.analysis + } + + +async def analyze_query(query: str) -> QueryAnalysis: + """ + Analyze a user query and determine optimal retrieval parameters. + + Args: + query: The user query to analyze + + Returns: + QueryAnalysis: Complete analysis with query and retrieval strategy + """ + agent = RetrievalStrategyAgent() + response = await agent.analyze_query(query='Hello, what is data science and its correlation to machine learning and deep learning and how can i learn them`? ') + print(f"Analysis for query '{query}': {response}") + return await agent.analyze_query(query) + + +if __name__ == "__main__": + asyncio.run(analyze_query("What is the history of LoRA and its components?")) \ No newline at end of file diff --git a/backend/agentic_system/agents/retrieval_strategy_agent/retrieval_strategy_prompt.py b/backend/agentic_system/agents/retrieval_strategy_agent/retrieval_strategy_prompt.py new file mode 100644 index 0000000000000000000000000000000000000000..e82115606d692e46edbf57749a1ee8133cbe91f4 --- /dev/null +++ b/backend/agentic_system/agents/retrieval_strategy_agent/retrieval_strategy_prompt.py @@ -0,0 +1,75 @@ +""" +Retrieval Strategy Prompt for Query Analysis Agent + +Contains the system prompt for analyzing queries and determining optimal retrieval parameters. +""" + +RETRIEVAL_STRATEGY_PROMPT = """ +### **Role and Goal** + +You are an expert **Retrieval Strategist Agent**. Your primary function is to analyze a user's query and determine the optimal parameters (`top_k`, `chunk_top_k`) for a knowledge retrieval system. Your goal is to balance **completeness** (recall) with **conciseness** (precision) to provide the most useful context for answering the user's query. + +### **Core Logic: The Query Specificity Spectrum** + +You must categorize each user query based on its **breadth**. A broad query requires more context from more documents, while a specific query can be answered with a few precise chunks. Use the following table as your guide: + +| Query Category | Description & Keywords | `top_k` | `chunk_top_k` | Reasoning | +| :--- | :--- | :--- | :--- | :--- | +| **Highly Specific** | A single, factual question. (e.g., "Who...", "What is the date...", "Define...") | **2** | **1** | **Surgical Strike:** Find the single best document and the single best chunk. High precision is key; extra context is noise. | +| **Specific** | A question about a single entity, but may require some context. (e.g., "How does X work?", "What are the features of Y?") | **3** | **2** | **Focused Inquiry:** Retrieve a few core documents to get a solid definition and some surrounding detail without getting sidetracked. | +| **Balanced / Complex**| A multi-faceted question requiring synthesis of information. (e.g., "History of X **and** its components?", "Explain the relationship between X and Y.") | **5** | **2** | **Comprehensive Overview:** This is a strong default. It's broad enough to capture multiple facets of the query from different sources without significant noise. | +| **Concept Connection** | Questions asking to connect/integrate different concepts or technologies. (e.g., "How can I use X with Y?", "What's the connection between X and Y?", "How do X and Y work together?") | **12** | **5** | **Deep Concept Mining:** These queries require extensive context from multiple sources to find connections, patterns, or integration possibilities that may not be explicitly stated. Need maximum context for brainstorming potential connections. | +| **Broad / Comparative** | An open-ended, comparative, or list-based question. (e.g., "Compare X, Y, and Z", "What are all the methods for...", "Explain the impact of X on the field of Y.") | **10** | **4** | **Maximum Recall:** The query *demands* a wide range of information. We need to retrieve many documents and more chunks from each to ensure we don't miss any relevant methods, comparisons, or contextual details. | + +### **Analysis Process** + +1. **Read the query carefully** and identify key indicators: + - Is it asking for a single fact or definition? + - Does it have multiple parts (e.g., "X and Y")? + - Is it comparative ("compare", "differences", "similarities")? + - Is it asking for concept connections or integration ("use X with Y", "connect", "work together")? + - Is it asking for a list or comprehensive overview? + +2. **Pay special attention to concept connection queries** that seek to: + - Integrate different technologies or methods + - Find relationships between separate concepts + - Explore how concepts might work together + - Brainstorm connections that may not be explicitly documented + +3. **Categorize the query** based on the table above. + +4. **Provide your analysis** explaining why you chose the category and parameters. + +5. **Return the structured response** with the analysis, category, and retrieval parameters. + +### **Examples** + +**Query:** "Who invented LoRA?" +**Analysis:** "The query is a highly specific factual question asking for a person or group, requiring maximum precision." +**Category:** "Highly Specific" +**Parameters:** top_k=2, chunk_top_k=1 + +**Query:** "History of lora and it's components?" +**Analysis:** "The query is complex, asking for two distinct types of information (history AND components), requiring a balanced retrieval of context from several documents." +**Category:** "Balanced / Complex" +**Parameters:** top_k=10, chunk_top_k=7 + +**Query:** "How can I use LoRA and QLoRA with GraphRAG? Is there a connection between them?" +**Analysis:** "The query seeks to connect different concepts (LoRA/QLoRA and GraphRAG) that may not be explicitly linked in the literature. This requires extensive context mining to find potential integration points, architectural similarities, or brainstorm novel connections." +**Category:** "Concept Connection" +**Parameters:** top_k=22, chunk_top_k=10 + +**Query:** "Explain the differences and similarities between all the parameter-efficient fine-tuning methods like LoRA, Adapters, and Prefix Tuning." +**Analysis:** "The query is broad and comparative, requiring context from many documents to ensure all mentioned methods and their comparisons are found." +**Category:** "Broad / Comparative" +**Parameters:** top_k=25, chunk_top_k=15 + +### **Your Task** + +Analyze the user's query: "{query}" + +Provide a structured analysis following the schema format with: +- A clear analysis explaining your reasoning +- The appropriate query category +- The optimal top_k and chunk_top_k parameters +""" \ No newline at end of file diff --git a/backend/agentic_system/agents/retrieval_strategy_agent/retrieval_strategy_schema.py b/backend/agentic_system/agents/retrieval_strategy_agent/retrieval_strategy_schema.py new file mode 100644 index 0000000000000000000000000000000000000000..2803afd0c10c883e1f5af9f8665490c7108bd9c9 --- /dev/null +++ b/backend/agentic_system/agents/retrieval_strategy_agent/retrieval_strategy_schema.py @@ -0,0 +1,102 @@ +""" +Retrieval Strategy Schema for Query Analysis Agent + +Defines the data structures for analyzing queries and determining optimal retrieval parameters. +""" + +from pydantic import Field, BaseModel +from typing import Literal + +class RetrievalStrategy(BaseModel): + """ + Schema for the retrieval strategy analysis output. + """ + + analysis: str = Field( + ..., + description="Analysis of the query explaining why certain parameters were chosen", + example="The query is a highly specific factual question asking for a person or group, requiring maximum precision." + ) + + query_category: Literal["Highly Specific", "Specific", "Balanced / Complex", "Concept Connection", "Broad / Comparative"] = Field( + ..., + description="Category of the query based on its breadth and complexity", + example="Highly Specific" + ) + + top_k: int = Field( + ..., + description="Number of top documents to retrieve", + example=2, + ge=1, + le=20 + ) + + chunk_top_k: int = Field( + ..., + description="Number of chunks to retrieve from each document", + example=1, + ge=1, + le=10 + ) + + class Config: + """ + Configuration with examples showing different query categories and their parameters. + """ + json_schema_extra = { + "examples": [ + { + "analysis": "The query is a highly specific factual question asking for a person or group, requiring maximum precision.", + "query_category": "Highly Specific", + "top_k": 2, + "chunk_top_k": 1 + }, + { + "analysis": "The query is complex, asking for two distinct types of information (history AND components), requiring a balanced retrieval of context from several documents.", + "query_category": "Balanced / Complex", + "top_k": 5, + "chunk_top_k": 2 + }, + { + "analysis": "The query is broad and comparative, requiring context from many documents to ensure all mentioned methods and their comparisons are found.", + "query_category": "Broad / Comparative", + "top_k": 10, + "chunk_top_k": 4 + } + ] + } + +class QueryAnalysis(BaseModel): + """ + Complete analysis package containing the original query and its retrieval strategy. + """ + + query: str = Field( + ..., + description="The original user query to be analyzed", + example="Who invented LoRA?" + ) + + strategy: RetrievalStrategy = Field( + ..., + description="The determined retrieval strategy for this query" + ) + + class Config: + """ + Complete example of query analysis output. + """ + json_schema_extra = { + "examples": [ + { + "query": "Who invented LoRA?", + "strategy": { + "analysis": "The query is a highly specific factual question asking for a person or group, requiring maximum precision.", + "query_category": "Highly Specific", + "top_k": 2, + "chunk_top_k": 1 + } + } + ] + } \ No newline at end of file diff --git a/backend/agentic_system/flashcard_processor.py b/backend/agentic_system/flashcard_processor.py new file mode 100644 index 0000000000000000000000000000000000000000..3065e44cbc53d1b00705e3e9aacdf0041d94dd53 --- /dev/null +++ b/backend/agentic_system/flashcard_processor.py @@ -0,0 +1,228 @@ +""" +Parallel Flashcard Processor + +This module processes semantic chunks using multiple flashcard agents concurrently +to generate flashcards efficiently from large documents. +""" + +import os +import json +import asyncio +from datetime import datetime +from typing import List, Dict, Any, Optional +from pathlib import Path +import logging +from concurrent.futures import ThreadPoolExecutor + +from agents.flashcard_agent import FlashcardAgent, FlashcardGeneration + +# Set up logging +logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +logger = logging.getLogger(__name__) + +class ParallelFlashcardProcessor: + """ + Processes semantic chunks using multiple concurrent flashcard agents. + """ + + def __init__(self, max_concurrent_agents: int = 10): + """ + Initialize the parallel processor. + + Args: + max_concurrent_agents: Maximum number of concurrent flashcard agents to run + """ + self.max_concurrent_agents = max_concurrent_agents + self.semaphore = asyncio.Semaphore(max_concurrent_agents) + + async def process_page_with_semaphore(self, agent: FlashcardAgent, chunks: List[Dict[str, Any]], + source_file: str, page_index: int) -> Optional[FlashcardGeneration]: + """ + Process a single page with semaphore control for concurrency. + + Args: + agent: FlashcardAgent instance + chunks: List of chunks for this page + source_file: Source file name + page_index: Page index number + + Returns: + FlashcardGeneration or None if failed + """ + async with self.semaphore: + try: + logger.info(f"Processing {source_file} page {page_index} with {len(chunks)} chunks") + result = await agent.generate_flashcards_for_page(chunks, source_file, page_index) + logger.info(f"Completed {source_file} page {page_index} - Generated {result.total_flashcards} flashcards") + return result + except Exception as e: + logger.error(f"Failed to process {source_file} page {page_index}: {e}") + return None + + async def process_document(self, file_name: str, file_data: Dict[str, Any]) -> List[FlashcardGeneration]: + """ + Process all pages of a document concurrently. + + Args: + file_name: Name of the source file + file_data: File data containing chunks + + Returns: + List of FlashcardGeneration objects + """ + chunks = file_data.get('chunks', []) + if not chunks: + logger.warning(f"No chunks found for {file_name}") + return [] + + # Group chunks by page + pages = {} + for chunk in chunks: + page_index = chunk['metadata']['page_index'] + if page_index not in pages: + pages[page_index] = [] + pages[page_index].append(chunk) + + logger.info(f"Processing {file_name} with {len(pages)} pages") + + # Create tasks for concurrent processing + tasks = [] + for page_index, page_chunks in pages.items(): + agent = FlashcardAgent() # Create a new agent instance for each task + task = self.process_page_with_semaphore(agent, page_chunks, file_name, page_index) + tasks.append(task) + + # Process all pages concurrently + results = await asyncio.gather(*tasks, return_exceptions=True) + + # Filter out None results and exceptions + valid_results = [] + for result in results: + if isinstance(result, FlashcardGeneration): + valid_results.append(result) + elif isinstance(result, Exception): + logger.error(f"Task failed with exception: {result}") + + logger.info(f"Completed {file_name} - Generated flashcards for {len(valid_results)} pages") + return valid_results + + async def process_all_documents(self, chunks_file_path: str, output_file_path: str) -> Dict[str, Any]: + """ + Process all documents from the semantic chunks file. + + Args: + chunks_file_path: Path to semantic_chunks.json + output_file_path: Path to save the generated flashcards + + Returns: + Dictionary containing processing results and statistics + """ + try: + # Load semantic chunks + logger.info(f"Loading semantic chunks from {chunks_file_path}") + with open(chunks_file_path, 'r', encoding='utf-8') as f: + data = json.load(f) + + files_data = data.get('files', {}) + if not files_data: + logger.error("No files found in semantic chunks data") + return {"error": "No files found"} + + logger.info(f"Found {len(files_data)} files to process") + + # Process all documents + all_results = [] + total_flashcards = 0 + + for file_name, file_data in files_data.items(): + document_results = await self.process_document(file_name, file_data) + all_results.extend(document_results) + total_flashcards += sum(result.total_flashcards for result in document_results) + + # Prepare output data + output_data = { + "processing_info": { + "processed_at": datetime.now().isoformat(), + "total_documents": len(files_data), + "total_pages_processed": len(all_results), + "total_flashcards_generated": total_flashcards, + "max_concurrent_agents": self.max_concurrent_agents + }, + "flashcard_generations": [] + } + + # Convert results to dictionaries for JSON serialization + for result in all_results: + flashcard_dicts = [] + for flashcard in result.flashcards: + flashcard_dicts.append({ + "id": flashcard.id, + "question": flashcard.question, + "answer": flashcard.answer, + "keyword_explanation": flashcard.keyword_explanation, + "metadata": flashcard.metadata + }) + + output_data["flashcard_generations"].append({ + "source_file": result.source_file, + "page_index": result.page_index, + "total_flashcards": result.total_flashcards, + "flashcards": flashcard_dicts + }) + + # Save results to file + logger.info(f"Saving results to {output_file_path}") + os.makedirs(os.path.dirname(output_file_path), exist_ok=True) + + with open(output_file_path, 'w', encoding='utf-8') as f: + json.dump(output_data, f, indent=2, ensure_ascii=False) + + logger.info(f"Processing complete! Generated {total_flashcards} flashcards from {len(all_results)} pages") + + return { + "success": True, + "total_documents": len(files_data), + "total_pages": len(all_results), + "total_flashcards": total_flashcards, + "output_file": output_file_path + } + + except Exception as e: + logger.error(f"Error in processing all documents: {e}") + return {"error": str(e)} + + def process_chunks_sync(self, chunks_file_path: str, output_file_path: str) -> Dict[str, Any]: + """ + Synchronous wrapper for processing chunks. + + Args: + chunks_file_path: Path to semantic_chunks.json + output_file_path: Path to save the generated flashcards + + Returns: + Dictionary containing processing results + """ + return asyncio.run(self.process_all_documents(chunks_file_path, output_file_path)) + +async def main(): + """ + Main function to run the flashcard processor. + """ + # Define paths + current_dir = Path(__file__).parent + chunks_file = current_dir / "../ingestion_pipeline/chunked_output/semantic_chunks.json" + output_file = current_dir / "output/generated_flashcards.json" + + # Create processor and run + processor = ParallelFlashcardProcessor(max_concurrent_agents=10) + + logger.info("Starting parallel flashcard processing...") + result = await processor.process_all_documents(str(chunks_file), str(output_file)) + + if "error" in result: + logger.error(f"Processing failed: {result['error']}") + else: + logger.info(f"Processing completed successfully: {result}") + +if __name__ == "__main__": + asyncio.run(main()) \ No newline at end of file diff --git a/backend/agentic_system/graphs/__init__.py b/backend/agentic_system/graphs/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..d9f116e5a2aa0792d75d74aa9a518794f9e0f266 --- /dev/null +++ b/backend/agentic_system/graphs/__init__.py @@ -0,0 +1,14 @@ +""" +Graphs package for the agentic system. + +Contains LangGraph workflows for orchestrating multi-step processes. +""" + +from .qa_workflow import QAWorkflow +from .state_schema import WorkflowState, StreamingState + +__all__ = [ + "QAWorkflow", + "WorkflowState", + "StreamingState" +] \ No newline at end of file diff --git a/backend/agentic_system/graphs/qa_workflow.py b/backend/agentic_system/graphs/qa_workflow.py new file mode 100644 index 0000000000000000000000000000000000000000..753e70e43ac6e274132ab335cc14eade9c620841 --- /dev/null +++ b/backend/agentic_system/graphs/qa_workflow.py @@ -0,0 +1,93 @@ +""" +Question Answering Workflow using LangGraph. + +Orchestrates the complete pipeline from query analysis to final answer generation. +""" + +import time +from typing import Dict, Any, AsyncGenerator +from datetime import datetime +from langgraph.graph import StateGraph, END +from langgraph.checkpoint.memory import MemorySaver + +from .state_schema import WorkflowState, StreamingState +from ..nodes.retrieval_strategy_node import RetrievalStrategyNode +from ..nodes.fetching_node import FetchingNode +from ..nodes.qa_node import QANode + +class QAWorkflow: + """ + Complete Question Answering workflow using LangGraph. + + Manages the flow from query analysis → context retrieval → answer generation. + """ + + def __init__(self): + """Initialize the workflow with all nodes and graph structure.""" + # Initialize nodes + self.strategy_node = RetrievalStrategyNode() + self.fetching_node = FetchingNode() + self.qa_node = QANode() + + # Build the graph + self.graph = self._build_graph() + self.app = self.graph.compile(checkpointer=MemorySaver()) + + def _build_graph(self) -> StateGraph: + """ + Build the LangGraph workflow structure. + + Returns: + StateGraph: The compiled workflow graph + """ + # Create the graph with our state schema + workflow = StateGraph(WorkflowState) + + # Add nodes directly + workflow.add_node("analyze_query", self.strategy_node.process) + workflow.add_node("fetch_context", self.fetching_node.process) + workflow.add_node("generate_answer", self.qa_node.process) + + # Define the flow + workflow.set_entry_point("analyze_query") + workflow.add_edge("analyze_query", "fetch_context") + workflow.add_edge("fetch_context", "generate_answer") + workflow.add_edge("generate_answer", END) + + return workflow + + + async def process_question(self, question: str) -> WorkflowState: + """ + Process a single question through the complete workflow. + + Args: + question: The user question to process + + Returns: + WorkflowState: Final state with complete answer + """ + try: + # Initialize state + initial_state = WorkflowState( + question=question, + workflow_start_time=datetime.now() + ) + + # Run the workflow + config = {"configurable": {"thread_id": f"qa_{int(time.time())}"}} + result = await self.app.ainvoke(initial_state.dict(), config) + + return WorkflowState(**result) + + except Exception as e: + # Return error state + return WorkflowState( + question=question, + error=f"Workflow error: {str(e)}", + status="error", + workflow_start_time=datetime.now(), + workflow_end_time=datetime.now() + ) + + \ No newline at end of file diff --git a/backend/agentic_system/graphs/state_schema.py b/backend/agentic_system/graphs/state_schema.py new file mode 100644 index 0000000000000000000000000000000000000000..3657fe4722a6aa5d0c04952225c9c6ea766d5397 --- /dev/null +++ b/backend/agentic_system/graphs/state_schema.py @@ -0,0 +1,193 @@ +""" +State Schema for LangGraph Question Answering Workflow. + +Defines the state structure that maintains information across workflow invocations. +""" + +from pydantic import BaseModel, Field +from typing import Optional, Dict, Any, List +from datetime import datetime + +from ..agents.retrieval_strategy_agent.retrieval_strategy_schema import QueryAnalysis +from ..agents.question_answering_agent.qa_schema import QuestionAnswerPair, GuidedAnswer +from ...search_engine.models import RetrievalResult + +class WorkflowState(BaseModel): + """ + State schema that maintains information across all workflow steps. + + This state is passed between nodes and accumulates information as the workflow progresses. + """ + + # Input + question: str = Field( + ..., + description="The original user question", + example="How does LoRA work?" + ) + + # Strategy Analysis Step + query_analysis: Optional[QueryAnalysis] = Field( + default=None, + description="Complete query analysis from retrieval strategy agent" + ) + + retrieval_params: Optional[Dict[str, Any]] = Field( + default=None, + description="Determined retrieval parameters (top_k, chunk_top_k, mode)", + example={"top_k": 5, "chunk_top_k": 2, "mode": "hybrid"} + ) + + query_category: Optional[str] = Field( + default=None, + description="Category of the query (Highly Specific, Specific, Balanced/Complex, Broad/Comparative)" + ) + + analysis_reasoning: Optional[str] = Field( + default=None, + description="Reasoning behind the parameter selection" + ) + + # Retrieval Step + context: Optional[str] = Field( + default=None, + description="Retrieved context from the knowledge base" + ) + + context_length: Optional[int] = Field( + default=None, + description="Length of the retrieved context in characters" + ) + + retrieval_result: Optional[RetrievalResult] = Field( + default=None, + description="Complete retrieval result object" + ) + + # Question Answering Step + answer: Optional[GuidedAnswer] = Field( + default=None, + description="The guided answer with step-by-step explanation" + ) + + qa_pair: Optional[QuestionAnswerPair] = Field( + default=None, + description="Complete question-answer pair with metadata" + ) + + total_steps: Optional[int] = Field( + default=None, + description="Total number of explanation steps in the answer" + ) + + context_used: Optional[bool] = Field( + default=None, + description="Whether context was successfully used in the answer" + ) + + # Status Tracking + status: str = Field( + default="initialized", + description="Overall workflow status" + ) + + strategy_status: Optional[str] = Field( + default=None, + description="Status of strategy analysis step" + ) + + retrieval_status: Optional[str] = Field( + default=None, + description="Status of context retrieval step" + ) + + qa_status: Optional[str] = Field( + default=None, + description="Status of question answering step" + ) + + # Error Handling + error: Optional[str] = Field( + default=None, + description="Error message if something goes wrong" + ) + + # Metadata + workflow_start_time: Optional[datetime] = Field( + default_factory=datetime.now, + description="When the workflow started" + ) + + workflow_end_time: Optional[datetime] = Field( + default=None, + description="When the workflow completed" + ) + + processing_time: Optional[float] = Field( + default=None, + description="Total processing time in seconds" + ) + + class Config: + """ + Configuration for the state schema. + """ + arbitrary_types_allowed = True # Allow complex types like RetrievalResult + json_schema_extra = { + "examples": [ + { + "question": "How does LoRA work?", + "query_category": "Specific", + "retrieval_params": { + "top_k": 3, + "chunk_top_k": 2, + "mode": "hybrid" + }, + "context_length": 5420, + "total_steps": 3, + "context_used": True, + "status": "completed" + } + ] + } + +class StreamingState(BaseModel): + """ + Lightweight state for streaming responses. + + Contains only the essential information needed for streaming updates. + """ + + question: str = Field(..., description="The user question") + current_step: str = Field(..., description="Current processing step") + status: str = Field(..., description="Current status") + progress: float = Field(default=0.0, description="Progress percentage (0-100)") + error: Optional[str] = Field(default=None, description="Error message if any") + + # Partial results for streaming + partial_answer: Optional[Dict[str, Any]] = Field( + default=None, + description="Partial answer data for progressive updates" + ) + + class Config: + json_schema_extra = { + "examples": [ + { + "question": "How does LoRA work?", + "current_step": "analyzing_query", + "status": "processing", + "progress": 33.3 + }, + { + "question": "How does LoRA work?", + "current_step": "generating_answer", + "status": "processing", + "progress": 85.0, + "partial_answer": { + "summary": "LoRA works by...", + "steps_completed": 2 + } + } + ] + } \ No newline at end of file diff --git a/backend/agentic_system/nodes/__init__.py b/backend/agentic_system/nodes/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1c9f0365dbd910e69ce8953eecf8b57ba02c28d5 --- /dev/null +++ b/backend/agentic_system/nodes/__init__.py @@ -0,0 +1,15 @@ +""" +Nodes package for the agentic system. + +Contains individual processing nodes for LangGraph workflows. +""" + +from .retrieval_strategy_node import RetrievalStrategyNode +from .fetching_node import FetchingNode +from .qa_node import QANode + +__all__ = [ + "RetrievalStrategyNode", + "FetchingNode", + "QANode" +] \ No newline at end of file diff --git a/backend/agentic_system/nodes/base_node.py b/backend/agentic_system/nodes/base_node.py new file mode 100644 index 0000000000000000000000000000000000000000..09d35aad69c4d88210a43a844750caccec59b6a1 --- /dev/null +++ b/backend/agentic_system/nodes/base_node.py @@ -0,0 +1,48 @@ +""" +Base Node class with utility methods for LangGraph workflow nodes. + +Provides common functionality for handling state whether it's a dictionary or Pydantic model. +""" + +from typing import Dict, Any, Union +from ..graphs.state_schema import WorkflowState + +class BaseNode: + """ + Base class for all workflow nodes with common state handling methods. + """ + + def _get_state_value(self, state: Union[Dict[str, Any], WorkflowState], key: str, default: Any = None) -> Any: + """ + Get value from state whether it's a dict or Pydantic model. + + Args: + state: The workflow state (dict or WorkflowState) + key: The key to retrieve + default: Default value if key not found + + Returns: + The value from the state + """ + if isinstance(state, dict): + return state.get(key, default) + else: + return getattr(state, key, default) + + def _create_updated_state(self, state: Union[Dict[str, Any], WorkflowState], updates: Dict[str, Any]) -> Dict[str, Any]: + """ + Create updated state dict regardless of input type. + + Args: + state: The current state (dict or WorkflowState) + updates: Dictionary of updates to apply + + Returns: + Updated state as dictionary + """ + if isinstance(state, dict): + return {**state, **updates} + else: + # Convert Pydantic model to dict and update + state_dict = state.dict() if hasattr(state, 'dict') else state.__dict__ + return {**state_dict, **updates} \ No newline at end of file diff --git a/backend/agentic_system/nodes/fetching_node.py b/backend/agentic_system/nodes/fetching_node.py new file mode 100644 index 0000000000000000000000000000000000000000..a42e1a78396fe256db88a8a3ff881d7b49f5d30e --- /dev/null +++ b/backend/agentic_system/nodes/fetching_node.py @@ -0,0 +1,110 @@ +""" +Fetching Node for LangGraph workflow. + +Handles context retrieval using the retrieval engine with determined parameters. +""" + +from typing import Dict, Any +from ...search_engine.retriver import get_retrieval_engine +from .base_node import BaseNode + +class FetchingNode(BaseNode): + """ + Node that uses the Retrieval Engine to fetch context based on determined parameters. + """ + + def __init__(self): + """Initialize the fetching node.""" + self.retrieval_engine = None + + async def _get_retrieval_engine(self): + """Get or initialize the retrieval engine.""" + if self.retrieval_engine is None: + self.retrieval_engine = await get_retrieval_engine() + return self.retrieval_engine + + async def process(self, state: Dict[str, Any]) -> Dict[str, Any]: + """ + Process the state to retrieve context using the determined parameters. + + Args: + state: Current workflow state containing question and retrieval parameters + + Returns: + Updated state with retrieved context + """ + try: + # Extract required information from state using helper methods + question = self._get_state_value(state, "question", "") + retrieval_params = self._get_state_value(state, "retrieval_params", {}) + + if not question: + return self._create_updated_state(state, {"error": "No question provided for retrieval"}) + + if not retrieval_params: + return self._create_updated_state(state, {"error": "No retrieval parameters available"}) + + # Get parameters with defaults + top_k = retrieval_params.get("top_k", 5) + chunk_top_k = retrieval_params.get("chunk_top_k", 2) + mode = retrieval_params.get("mode", "mix") # Default to 'mix' for backward compatibility + + # Get retrieval engine and perform retrieval + engine = await self._get_retrieval_engine() + result = await engine.retrieve( + query=question, + mode=mode, # Use the mode from parameters instead of hardcoded 'mix' + top_k=top_k, + chunk_top_k=chunk_top_k + ) + + # Create updates dictionary + updates = { + "context": result.text, + "retrieval_result": result, + "context_length": len(result.text), + "retrieval_status": "completed" + } + + return self._create_updated_state(state, updates) + + except Exception as e: + return self._create_updated_state(state, { + "error": f"Context retrieval error: {str(e)}", + "retrieval_status": "error" + }) + + async def retrieve_direct(self, question: str, top_k: int = 5, chunk_top_k: int = 2, mode: str = "hybrid") -> Dict[str, Any]: + """ + Direct retrieval method for standalone usage. + + Args: + question: The question to search for + top_k: Number of top documents to retrieve + chunk_top_k: Number of chunks per document + mode: Retrieval mode + + Returns: + Dictionary with retrieval results + """ + try: + engine = await self._get_retrieval_engine() + result = await engine.retrieve( + query=question, + mode=mode, + top_k=top_k, + chunk_top_k=chunk_top_k + ) + + return { + "context": result.text, + "context_length": len(result.text), + "retrieval_result": result, + "status": "success" + } + + except Exception as e: + return { + "error": f"Direct retrieval error: {str(e)}", + "status": "error" + } \ No newline at end of file diff --git a/backend/agentic_system/nodes/qa_node.py b/backend/agentic_system/nodes/qa_node.py new file mode 100644 index 0000000000000000000000000000000000000000..06c0e5de5a2cc6f321c8dc0bd5fc848afb62f0d5 --- /dev/null +++ b/backend/agentic_system/nodes/qa_node.py @@ -0,0 +1,101 @@ +""" +Question Answering Node for LangGraph workflow. + +Handles the final step of providing guided, step-by-step answers using retrieved context. +""" + +from typing import Dict, Any +from datetime import datetime +from ..agents.question_answering_agent import QuestionAnsweringAgent +from .base_node import BaseNode + +class QANode(BaseNode): + """ + Node that uses the Question Answering Agent to provide guided explanations. + """ + + def __init__(self): + """Initialize the QA node with the question answering agent.""" + self.qa_agent = QuestionAnsweringAgent() + + async def process(self, state: Dict[str, Any]) -> Dict[str, Any]: + """ + Process the state to generate a guided answer. + + Args: + state: Current workflow state containing question and context + + Returns: + Updated state with the guided answer + """ + try: + # Extract required information from state using helper methods + question = self._get_state_value(state, "question", "") + context = self._get_state_value(state, "context", "") + + if not question: + return self._create_updated_state(state, {"error": "No question provided"}) + + if not context: + return self._create_updated_state(state, {"error": "No context available for answering"}) + + # Generate the guided answer + qa_pair = await self.qa_agent.answer_question(question, context) + + # Calculate processing time + workflow_end_time = datetime.now() + processing_time = None + workflow_start_time = self._get_state_value(state, "workflow_start_time") + if workflow_start_time: + processing_time = (workflow_end_time - workflow_start_time).total_seconds() + + # Create updates dictionary + updates = { + "answer": qa_pair.answer, + "qa_pair": qa_pair, + "total_steps": qa_pair.total_steps, + "context_used": qa_pair.context_used, + "status": "completed", + "workflow_end_time": workflow_end_time, + "processing_time": processing_time + } + + return self._create_updated_state(state, updates) + + except Exception as e: + return self._create_updated_state(state, { + "error": f"QA processing error: {str(e)}", + "status": "error" + }) + + async def get_simplified_answer(self, state: Dict[str, Any]) -> Dict[str, Any]: + """ + Get simplified answer format for streaming. + + Args: + state: Current workflow state + + Returns: + Simplified answer dictionary + """ + try: + question = state.get("question", "") + context = state.get("context", "") + + if not question or not context: + return {"error": "Missing question or context"} + + # Get simplified answer + answer_dict = await self.qa_agent.get_guided_answer(question, context) + + return { + "question": question, + "answer": answer_dict, + "status": "completed" + } + + except Exception as e: + return { + "error": f"Simplified answer error: {str(e)}", + "status": "error" + } \ No newline at end of file diff --git a/backend/agentic_system/nodes/retrieval_strategy_node.py b/backend/agentic_system/nodes/retrieval_strategy_node.py new file mode 100644 index 0000000000000000000000000000000000000000..50d1639252e1e2326527eb8f2fc1a9ed167b95da --- /dev/null +++ b/backend/agentic_system/nodes/retrieval_strategy_node.py @@ -0,0 +1,84 @@ +""" +Retrieval Strategy Node for LangGraph workflow. + +Handles query analysis to determine optimal retrieval parameters. +""" + +from typing import Dict, Any, Union +from ..agents.retrieval_strategy_agent import RetrievalStrategyAgent +from ..graphs.state_schema import WorkflowState +from .base_node import BaseNode + +class RetrievalStrategyNode(BaseNode): + """ + Node that uses the Retrieval Strategy Agent to analyze queries and determine parameters. + """ + + def __init__(self): + """Initialize the retrieval strategy node with the strategy agent.""" + self.strategy_agent = RetrievalStrategyAgent() + + async def process(self, state: Dict[str, Any]) -> Dict[str, Any]: + """ + Process the state to analyze the query and determine retrieval parameters. + + Args: + state: Current workflow state containing the user question + + Returns: + Updated state with retrieval parameters + """ + try: + # Extract question from state using helper method + question = self._get_state_value(state, "question", "") + + if not question: + return self._create_updated_state(state, {"error": "No question provided for analysis"}) + + # Analyze the query + analysis = await self.strategy_agent.analyze_query(question) + + # Check if mode was already set (preserve existing mode if specified) + existing_retrieval_params = self._get_state_value(state, "retrieval_params", {}) + existing_mode = existing_retrieval_params.get("mode", "hybrid") if existing_retrieval_params else "hybrid" + + # Create updates dictionary, preserving existing mode if set + updates = { + "retrieval_params": { + "top_k": analysis.strategy.top_k, + "chunk_top_k": analysis.strategy.chunk_top_k, + "mode": existing_mode # Preserve existing mode or default to hybrid + }, + "query_analysis": analysis, + "query_category": analysis.strategy.query_category, + "analysis_reasoning": analysis.strategy.analysis, + "strategy_status": "completed" + } + + return self._create_updated_state(state, updates) + + except Exception as e: + return self._create_updated_state(state, { + "error": f"Strategy analysis error: {str(e)}", + "strategy_status": "error" + }) + + async def get_parameters_only(self, question: str) -> Dict[str, Any]: + """ + Get just the retrieval parameters for a question (utility method). + + Args: + question: The user question to analyze + + Returns: + Dictionary with retrieval parameters + """ + try: + return await self.strategy_agent.get_retrieval_parameters(question) + except Exception as e: + return { + "error": f"Parameter extraction error: {str(e)}", + "top_k": 5, # Fallback defaults + "chunk_top_k": 2, + "query_category": "Balanced / Complex" + } \ No newline at end of file diff --git a/backend/agentic_system/orchestrators/__init__.py b/backend/agentic_system/orchestrators/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/backend/agentic_system/orchestrators/debug_qa_workflow.py b/backend/agentic_system/orchestrators/debug_qa_workflow.py new file mode 100644 index 0000000000000000000000000000000000000000..e430c22188693251b17c1826ed24eb68902bf88a --- /dev/null +++ b/backend/agentic_system/orchestrators/debug_qa_workflow.py @@ -0,0 +1,143 @@ +""" +Debug script to test QA workflow integration with research exploration. +""" + +import asyncio +import logging +from datetime import datetime + +# Set up logging +logging.basicConfig(level=logging.DEBUG) +logger = logging.getLogger(__name__) + +async def test_qa_workflow_standalone(): + """Test the QA workflow in isolation.""" + + logger.info("🧪 Testing QA Workflow Standalone") + + try: + from ..graphs.qa_workflow import QAWorkflow + + # Test normal QA workflow + qa_workflow = QAWorkflow() + + test_question = "What is attention mechanism in transformers?" + logger.info(f"Testing question: {test_question}") + + result = await qa_workflow.process_question(test_question) + + logger.info(f"✅ QA Workflow Result:") + logger.info(f" Status: {result.status}") + logger.info(f" Error: {result.error}") + logger.info(f" Answer type: {type(result.answer)}") + logger.info(f" Answer: {result.answer}") + + return result + + except Exception as e: + logger.error(f"❌ QA Workflow test failed: {e}") + import traceback + traceback.print_exc() + return None + +async def test_qa_workflow_with_local_mode(): + """Test QA workflow with local mode injection.""" + + logger.info("🔬 Testing QA Workflow with Local Mode") + + try: + from ..graphs.qa_workflow import QAWorkflow + from ..graphs.state_schema import WorkflowState + + qa_workflow = QAWorkflow() + + # Create initial state with local mode + test_question = "What is attention mechanism in transformers?" + initial_state = WorkflowState( + question=test_question, + workflow_start_time=datetime.now(), + retrieval_params={ + "mode": "local", + "top_k": 2, + "chunk_top_k": 2 + } + ) + + logger.info(f"Testing with local mode: {test_question}") + logger.info(f"Initial state retrieval_params: {initial_state.retrieval_params}") + + # Run workflow directly + config = {"configurable": {"thread_id": "debug_test"}} + result = await qa_workflow.app.ainvoke(initial_state.dict(), config) + + workflow_state = WorkflowState(**result) + + logger.info(f"✅ Local Mode QA Result:") + logger.info(f" Status: {workflow_state.status}") + logger.info(f" Error: {workflow_state.error}") + logger.info(f" Answer type: {type(workflow_state.answer)}") + logger.info(f" Answer: {workflow_state.answer}") + logger.info(f" Retrieval params: {workflow_state.retrieval_params}") + + return workflow_state + + except Exception as e: + logger.error(f"❌ Local mode QA test failed: {e}") + import traceback + traceback.print_exc() + return None + +async def test_question_generation(): + """Test just the question generation.""" + + logger.info("📝 Testing Question Generation") + + try: + from ..agents.question_generation_agent import QuestionGenerationAgent, QuestionGenerationRequest + + agent = QuestionGenerationAgent() + + request = QuestionGenerationRequest( + topic="transformers in machine learning", + max_questions=3 + ) + + question_set = await agent.generate_research_questions(request) + + logger.info(f"✅ Question Generation Result:") + logger.info(f" Total questions: {len(question_set.questions)}") + logger.info(f" Categories: {[cat.value for cat in question_set.categories_covered]}") + + for i, q in enumerate(question_set.questions): + logger.info(f" Q{i+1}: [{q.category.value}] {q.question}") + + return question_set + + except Exception as e: + logger.error(f"❌ Question generation test failed: {e}") + import traceback + traceback.print_exc() + return None + +if __name__ == "__main__": + + async def main(): + logger.info("🚀 Starting Debug Tests") + + # Test 1: Question Generation + questions = await test_question_generation() + + # Test 2: Normal QA Workflow + qa_result = await test_qa_workflow_standalone() + + # Test 3: QA Workflow with Local Mode + local_result = await test_qa_workflow_with_local_mode() + + logger.info("🎯 Debug Tests Complete!") + + if questions and qa_result and local_result: + logger.info("✅ All components working!") + else: + logger.error("❌ Some components failed!") + + asyncio.run(main()) \ No newline at end of file diff --git a/backend/agentic_system/orchestrators/research_exploration_orchestrator_refactored.py b/backend/agentic_system/orchestrators/research_exploration_orchestrator_refactored.py new file mode 100644 index 0000000000000000000000000000000000000000..11704a2b4c8bb196c46a2550c41509ae5f939ccb --- /dev/null +++ b/backend/agentic_system/orchestrators/research_exploration_orchestrator_refactored.py @@ -0,0 +1,388 @@ +""" +Research Exploration Orchestrator for systematic paper analysis. + +Refactored version with extracted utilities for better maintainability and debugging. +Coordinates question generation and parallel QA workflow execution to provide +comprehensive understanding of research topics through systematic inquiry. +""" + +import asyncio +import time +import logging +from typing import List, Dict, Optional +from datetime import datetime + +from .research_exploration_schema import ( + ResearchExplorationRequest, + ResearchExplorationResults, + CategoryResults, + QuestionResult +) +from ..agents.question_generation_agent import ( + QuestionGenerationAgent, + QuestionGenerationRequest, + QuestionCategory +) +from ..graphs.qa_workflow import QAWorkflow + +# Import utilities +from .utils import ( + setup_exploration_logging, + log_exploration_phase, + log_exploration_result, + log_workflow_progress, + log_workflow_completion, + log_error, + extract_answer_text, + extract_answer_summary_only, + format_detailed_answer_from_steps, + extract_confidence_score, + extract_context_sources, + is_valid_answer, + extract_answer_metadata, + process_question_with_mix_mode, + process_question_with_custom_params, + get_enhanced_retrieval_params, + diagnose_workflow_failure, + retry_question_with_fallback_modes, + organize_results_by_category, + generate_research_summary, + calculate_category_statistics, + identify_problematic_categories, + generate_failure_analysis +) + + +class ResearchExplorationOrchestrator: + """ + Orchestrates comprehensive research exploration through systematic questioning. + + Refactored version with utilities extracted for better maintainability and debugging. + Combines question generation with parallel QA workflows to provide deep, + structured understanding of research topics and papers. + """ + + def __init__(self, enable_fallback_retry: bool = True, detailed_answers: bool = True): + """ + Initialize the research exploration orchestrator. + + Args: + enable_fallback_retry: Whether to retry failed questions with different modes + detailed_answers: Whether to extract full detailed answers (True) or summaries (False) + """ + # Initialize components + self.question_agent = QuestionGenerationAgent() + self.qa_workflow = QAWorkflow() + + # Configuration + self.enable_fallback_retry = enable_fallback_retry + self.detailed_answers = detailed_answers + + # Set up logging + self.logger = setup_exploration_logging(__name__) + + # Track active workflows for monitoring + self.active_workflows = {} + + async def explore_research_topic(self, request: ResearchExplorationRequest) -> ResearchExplorationResults: + """ + Conduct comprehensive exploration of a research topic. + + Args: + request: Research exploration request with topic and parameters + + Returns: + ResearchExplorationResults: Complete exploration results + """ + exploration_start = datetime.now() + start_time = time.time() + + try: + self.logger.info(f"🔬 Starting research exploration: {request.topic}") + + # Phase 1: Generate research questions + log_exploration_phase(self.logger, 1, "Generating research questions") + question_set = await self._generate_questions(request) + + self.logger.info(f"✅ Generated {len(question_set.questions)} questions across {len(question_set.categories_covered)} categories") + + # Phase 2: Process questions in parallel + log_exploration_phase(self.logger, 2, "Processing questions through QA workflows") + question_results = await self._process_questions_parallel( + question_set.questions, + request.parallel_limit, + request.timeout_per_question + ) + + # Phase 3: Organize results by category + log_exploration_phase(self.logger, 3, "Organizing results by category") + category_results = organize_results_by_category(question_results) + + # Phase 4: Generate summary if requested + research_summary = None + if request.include_summary: + log_exploration_phase(self.logger, 4, "Generating research summary") + research_summary = await generate_research_summary( + request.topic, + category_results, + self.qa_workflow, + self.logger + ) + + # Calculate statistics and analysis + stats = calculate_category_statistics(category_results) + failure_analysis = generate_failure_analysis(category_results) + + # Log diagnostic information + self._log_diagnostic_info(stats, failure_analysis) + + # Create final results + results = ResearchExplorationResults( + topic=request.topic, + question_set=question_set, + category_results=category_results, + total_questions=stats['total_questions'], + successful_answers=stats['total_successful'], + failed_questions=stats['total_questions'] - stats['total_successful'], + success_rate=stats['overall_success_rate'], + exploration_start_time=exploration_start, + exploration_end_time=datetime.now(), + total_processing_time=time.time() - start_time, + research_summary=research_summary + ) + + log_exploration_result( + self.logger, + stats['total_successful'], + stats['total_questions'] + ) + + return results + + except Exception as e: + log_error(self.logger, "Research exploration", e) + raise + + async def _generate_questions(self, request: ResearchExplorationRequest): + """Generate research questions based on the request.""" + question_request = QuestionGenerationRequest( + topic=request.topic, + max_questions=request.max_questions, + focus_areas=request.focus_categories + ) + return await self.question_agent.generate_research_questions(question_request) + + async def _process_questions_parallel( + self, + questions: List, + parallel_limit: int, + timeout_per_question: int + ) -> List[QuestionResult]: + """ + Process multiple questions through QA workflows in parallel with enhanced error handling. + + Args: + questions: List of research questions to process + parallel_limit: Maximum number of parallel workflows + timeout_per_question: Timeout per question in seconds + + Returns: + List[QuestionResult]: Results from processing all questions + """ + semaphore = asyncio.Semaphore(parallel_limit) + + async def process_single_question(question) -> QuestionResult: + """Process a single question with timeout and enhanced error handling.""" + async with semaphore: + question_start = time.time() + + try: + log_workflow_progress(self.logger, question.question) + + # Try primary approach with enhanced parameters + workflow_state = await asyncio.wait_for( + self._process_question_enhanced(question.question), + timeout=timeout_per_question + ) + + log_workflow_completion( + self.logger, + workflow_state.status, + workflow_state.error + ) + + processing_time = time.time() - question_start + + # Check if workflow completed successfully + if workflow_state.error: + # If fallback retry is enabled, try different modes + if self.enable_fallback_retry: + self.logger.debug(f"🔄 Attempting fallback retry for failed question") + workflow_state = await asyncio.wait_for( + retry_question_with_fallback_modes( + question.question, + self.qa_workflow, + self.logger + ), + timeout=timeout_per_question * 2 # Extended timeout for retry + ) + processing_time = time.time() - question_start + + if workflow_state.error: + diagnosis = diagnose_workflow_failure(workflow_state, self.logger) + return QuestionResult( + question=question, + status="failed", + error_message=f"{workflow_state.error} | Diagnosis: {diagnosis}", + processing_time=processing_time, + workflow_state=workflow_state + ) + + # Extract answer text based on detail preference + if self.detailed_answers: + answer_text = extract_answer_text(workflow_state.answer) # Full detailed answer + else: + answer_text = extract_answer_summary_only(workflow_state.answer) # Summary only + + # Use more lenient validation for detailed answers + min_length = 5 if self.detailed_answers else 10 + if not is_valid_answer(answer_text, min_length=min_length): + return QuestionResult( + question=question, + status="failed", + error_message="No valid answer generated or answer too short", + processing_time=processing_time, + workflow_state=workflow_state + ) + + # Extract comprehensive metadata + metadata = extract_answer_metadata(workflow_state) + + return QuestionResult( + question=question, + answer=answer_text, + context_sources=metadata.get('context_sources', []), + confidence_score=metadata.get('confidence_score'), + processing_time=processing_time, + status="completed", + workflow_state=workflow_state + ) + + except asyncio.TimeoutError: + return QuestionResult( + question=question, + status="failed", + error_message=f"Timeout after {timeout_per_question} seconds", + processing_time=time.time() - question_start + ) + + except Exception as e: + return QuestionResult( + question=question, + status="failed", + error_message=f"Processing exception: {str(e)}", + processing_time=time.time() - question_start + ) + + # Process all questions in parallel + tasks = [process_single_question(q) for q in questions] + results = await asyncio.gather(*tasks, return_exceptions=True) + + # Handle any exceptions in results + processed_results = [] + for i, result in enumerate(results): + if isinstance(result, Exception): + processed_results.append(QuestionResult( + question=questions[i], + status="failed", + error_message=f"Async processing error: {str(result)}" + )) + else: + processed_results.append(result) + + return processed_results + + async def _process_question_enhanced(self, question: str): + """Process a question with enhanced retrieval parameters.""" + # Use enhanced parameters for better coverage + enhanced_params = get_enhanced_retrieval_params("mix") + + # Log the parameters being used + self.logger.debug(f"🔧 Enhanced retrieval params: {enhanced_params}") + + return await process_question_with_custom_params( + question, + self.qa_workflow, + enhanced_params, + self.logger + ) + + def _log_diagnostic_info(self, stats: dict, failure_analysis: dict): + """Log comprehensive diagnostic information.""" + # Log overall statistics + self.logger.info(f"📊 Exploration Statistics:") + self.logger.info(f" Total Categories: {stats['total_categories']}") + self.logger.info(f" Overall Success Rate: {stats['overall_success_rate']:.1%}") + + # Log category breakdown + for category_stat in stats['category_breakdown']: + self.logger.info(f" {category_stat['category']}: {category_stat['successful']}/{category_stat['questions']} ({category_stat['success_rate']:.1%})") + + # Log failure analysis + if failure_analysis['total_failures'] > 0: + self.logger.warning(f"🔍 Failure Analysis:") + self.logger.warning(f" Total Failures: {failure_analysis['total_failures']}") + for reason, count in failure_analysis['failure_reasons'].items(): + self.logger.warning(f" {reason}: {count}") + + for pattern in failure_analysis['common_patterns']: + self.logger.warning(f" Pattern: {pattern}") + + async def quick_exploration(self, topic: str, max_questions: int = 10) -> ResearchExplorationResults: + """ + Quick research exploration with default settings. + + Args: + topic: Research topic to explore + max_questions: Maximum number of questions + + Returns: + ResearchExplorationResults: Exploration results + """ + request = ResearchExplorationRequest( + topic=topic, + max_questions=max_questions, + parallel_limit=3, + include_summary=True + ) + + return await self.explore_research_topic(request) + + async def debug_exploration(self, topic: str, max_questions: int = 3) -> ResearchExplorationResults: + """ + Debug-focused exploration with detailed logging and analysis. + + Args: + topic: Research topic to explore + max_questions: Maximum number of questions (default: 3 for quick debugging) + + Returns: + ResearchExplorationResults: Exploration results with enhanced diagnostics + """ + # Enable debug logging + self.logger.setLevel(logging.DEBUG) + + # Force fallback retry for debugging + self.enable_fallback_retry = True + + self.logger.info(f"🐛 Debug exploration mode enabled for: {topic}") + + request = ResearchExplorationRequest( + topic=topic, + max_questions=max_questions, + parallel_limit=1, # Sequential for better debugging + include_summary=True, + timeout_per_question=180 # Extended timeout + ) + + return await self.explore_research_topic(request) \ No newline at end of file diff --git a/backend/agentic_system/orchestrators/research_exploration_schema.py b/backend/agentic_system/orchestrators/research_exploration_schema.py new file mode 100644 index 0000000000000000000000000000000000000000..1483474eed7676287b4a2a8cf3043048ccfaa1fc --- /dev/null +++ b/backend/agentic_system/orchestrators/research_exploration_schema.py @@ -0,0 +1,113 @@ +""" +Schema definitions for research exploration orchestration. + +Defines data structures for managing multiple QA workflows in parallel +and aggregating their results for comprehensive research understanding. +""" + +from typing import List, Dict, Optional +from datetime import datetime +from pydantic import BaseModel, Field + +from ..agents.question_generation_agent.question_generation_schema import ( + ResearchQuestion, + QuestionCategory, + QuestionSet +) +from ..graphs.state_schema import WorkflowState + + +class QuestionResult(BaseModel): + """Result from processing a single research question through QA workflow.""" + + question: ResearchQuestion = Field(..., description="The original research question") + answer: Optional[str] = Field(None, description="Generated answer") + context_sources: List[str] = Field(default=[], description="Source documents used") + confidence_score: Optional[float] = Field(None, description="Answer confidence (0-1)") + processing_time: Optional[float] = Field(None, description="Time taken to process (seconds)") + status: str = Field(default="pending", description="Processing status: pending, completed, failed") + error_message: Optional[str] = Field(None, description="Error details if failed") + workflow_state: Optional[WorkflowState] = Field(None, description="Complete workflow state") + + +class CategoryResults(BaseModel): + """Results for all questions within a specific research category.""" + + category: QuestionCategory = Field(..., description="The question category") + questions_processed: int = Field(..., description="Number of questions processed") + successful_answers: int = Field(..., description="Number of successful answers") + results: List[QuestionResult] = Field(..., description="Individual question results") + category_summary: Optional[str] = Field(None, description="Summary of findings for this category") + + +class ResearchExplorationResults(BaseModel): + """Complete results from exploring a research topic through systematic questioning.""" + + topic: str = Field(..., description="Research topic explored") + question_set: QuestionSet = Field(..., description="Original set of questions generated") + category_results: List[CategoryResults] = Field(..., description="Results by category") + + # Overall statistics + total_questions: int = Field(..., description="Total questions processed") + successful_answers: int = Field(..., description="Number of successful answers") + failed_questions: int = Field(..., description="Number of failed questions") + success_rate: float = Field(..., description="Success rate (0-1)") + + # Timing information + exploration_start_time: datetime = Field(..., description="When exploration started") + exploration_end_time: Optional[datetime] = Field(None, description="When exploration completed") + total_processing_time: Optional[float] = Field(None, description="Total time in seconds") + + # Aggregated insights + key_insights: List[str] = Field(default=[], description="Main insights discovered") + research_summary: Optional[str] = Field(None, description="Overall research summary") + + def get_results_by_category(self, category: QuestionCategory) -> Optional[CategoryResults]: + """Get results for a specific category.""" + for cat_result in self.category_results: + if cat_result.category == category: + return cat_result + return None + + def get_high_confidence_answers(self, min_confidence: float = 0.7) -> List[QuestionResult]: + """Get answers with confidence above threshold.""" + high_confidence = [] + for cat_result in self.category_results: + for result in cat_result.results: + if result.confidence_score and result.confidence_score >= min_confidence: + high_confidence.append(result) + return high_confidence + + def get_failed_questions(self) -> List[QuestionResult]: + """Get all questions that failed processing.""" + failed = [] + for cat_result in self.category_results: + for result in cat_result.results: + if result.status == "failed": + failed.append(result) + return failed + + +class ResearchExplorationRequest(BaseModel): + """Request for comprehensive research topic exploration.""" + + topic: str = Field(..., description="Research topic to explore") + max_questions: int = Field(default=5, ge=2, description="Maximum questions to generate") + focus_categories: Optional[List[QuestionCategory]] = Field( + None, + description="Specific categories to focus on" + ) + parallel_limit: int = Field( + default=5, + ge=1, + le=10, + description="Maximum parallel QA workflows" + ) + include_summary: bool = Field( + default=True, + description="Whether to generate overall research summary" + ) + timeout_per_question: int = Field( + default=120, + description="Timeout per question in seconds" + ) \ No newline at end of file diff --git a/backend/agentic_system/orchestrators/test_research_exploration.py b/backend/agentic_system/orchestrators/test_research_exploration.py new file mode 100644 index 0000000000000000000000000000000000000000..923a9c285afc4bb0d7ba7a073a7d80caf6043601 --- /dev/null +++ b/backend/agentic_system/orchestrators/test_research_exploration.py @@ -0,0 +1,328 @@ +""" +Conversational Research Exploration Test Script. + +Interactive test environment for the Research Exploration Engine with +comprehensive logging and result persistence for analysis. +""" + +import asyncio +import logging +import json +from pathlib import Path +from datetime import datetime +from typing import Dict, Any, List + +from .research_exploration_orchestrator_refactored import ResearchExplorationOrchestrator +from .research_exploration_schema import ResearchExplorationRequest +from ..agents.question_generation_agent.question_generation_schema import QuestionCategory + + +class ConversationalExplorer: + """Interactive research exploration with comprehensive logging and persistence.""" + + def __init__(self): + """Initialize the conversational explorer.""" + self.orchestrator = ResearchExplorationOrchestrator() + self.session_id = datetime.now().strftime("%Y%m%d_%H%M%S") + self.turn_count = 0 + self.results_dir = Path("test_results/paper_exploration") + self.results_dir.mkdir(parents=True, exist_ok=True) + + # Set up comprehensive logging + log_file = self.results_dir / f"session_{self.session_id}.log" + logging.basicConfig( + level=logging.INFO, + format='%(asctime)s - %(levelname)s - %(message)s', + handlers=[ + logging.FileHandler(log_file), + logging.StreamHandler() + ] + ) + self.logger = logging.getLogger(__name__) + + async def start_conversation(self): + """Start the conversational research exploration.""" + self.logger.info("🚀 Welcome to Conversational Research Exploration!") + self.logger.info(f"📁 Session ID: {self.session_id}") + self.logger.info(f"💾 Results will be saved to: {self.results_dir}") + + print("\n" + "="*60) + print("🧠 RESEARCH EXPLORATION ENGINE - CONVERSATIONAL MODE") + print("="*60) + print("This tool will help you explore research topics systematically.") + print("Each turn generates 2 questions by default and saves full results.") + print("Type 'quit' to exit at any time.") + print("="*60) + + while True: + try: + topic = self._get_user_topic() + if topic.lower() == 'quit': + break + + max_questions = self._get_max_questions() + await self._explore_turn(topic, max_questions) + + if not self._continue_conversation(): + break + + except KeyboardInterrupt: + print("\n👋 Conversation interrupted by user") + break + except Exception as e: + self.logger.error(f"❌ Error in conversation: {e}") + print(f"Error occurred: {e}") + + self._close_session() + + async def _explore_turn(self, topic: str, max_questions: int): + """Execute a single exploration turn with full logging and saving.""" + self.turn_count += 1 + turn_start = datetime.now() + + self.logger.info(f"\n🔄 TURN {self.turn_count} STARTING") + self.logger.info(f"📝 Topic: {topic}") + self.logger.info(f"❓ Max Questions: {max_questions}") + + print(f"\n🔍 Exploring: '{topic}' (Turn {self.turn_count})") + print("⏳ Generating questions and retrieving answers...") + + try: + # Execute the exploration + results = await self.orchestrator.quick_exploration( + topic=topic, + max_questions=max_questions + ) + + turn_end = datetime.now() + processing_time = (turn_end - turn_start).total_seconds() + + # Create comprehensive turn data + turn_data = { + "session_id": self.session_id, + "turn_number": self.turn_count, + "timestamp": turn_start.isoformat(), + "topic": topic, + "max_questions": max_questions, + "processing_time_seconds": processing_time, + "results": self._serialize_results(results), + "summary": { + "total_questions": results.total_questions, + "successful_answers": results.successful_answers, + "success_rate": results.success_rate, + "categories_covered": [cat.category.value for cat in results.category_results] + } + } + + # Save turn results + self._save_turn_results(turn_data) + + # Display results + self._display_turn_results(results, processing_time) + + self.logger.info(f"✅ Turn {self.turn_count} completed successfully") + + except Exception as e: + self.logger.error(f"❌ Turn {self.turn_count} failed: {e}") + print(f"❌ Exploration failed: {e}") + + def _display_turn_results(self, results, processing_time: float): + """Display the results of a turn in a user-friendly format.""" + print(f"\n📊 RESULTS (Turn {self.turn_count})") + print("="*50) + print(f"✅ Generated {results.total_questions} questions") + print(f"✅ Successfully answered {results.successful_answers} questions") + print(f"✅ Success rate: {results.success_rate:.1%}") + print(f"⏱️ Total processing time: {processing_time:.2f}s") + + # Show questions and answers by category + for category_result in results.category_results: + if category_result.results: + print(f"\n📂 {category_result.category.value.upper()} Category:") + for i, result in enumerate(category_result.results, 1): + if result.status == "completed": + print(f"\n Q{i}: {result.question.question}") + print(f" A{i}: {result.answer[:300]}...") + print(f" ⏱️ Question processing: {result.processing_time:.2f}s") + print(f" 📊 Priority: {result.question.priority}/10") + + print("\n" + "="*50) + + def _save_turn_results(self, turn_data: Dict[str, Any]): + """Save comprehensive turn results to files.""" + # Save detailed JSON + json_file = self.results_dir / f"turn_{self.turn_count}_{self.session_id}.json" + with open(json_file, 'w', encoding='utf-8') as f: + json.dump(turn_data, f, indent=2, ensure_ascii=False) + + # Save readable summary + summary_file = self.results_dir / f"turn_{self.turn_count}_{self.session_id}_summary.txt" + with open(summary_file, 'w', encoding='utf-8') as f: + f.write(f"RESEARCH EXPLORATION - TURN {self.turn_count}\n") + f.write("="*50 + "\n") + f.write(f"Session ID: {self.session_id}\n") + f.write(f"Timestamp: {turn_data['timestamp']}\n") + f.write(f"Topic: {turn_data['topic']}\n") + f.write(f"Max Questions: {turn_data['max_questions']}\n") + f.write(f"Processing Time: {turn_data['processing_time_seconds']:.2f}s\n\n") + + f.write("SUMMARY:\n") + f.write(f"- Total Questions: {turn_data['summary']['total_questions']}\n") + f.write(f"- Successful Answers: {turn_data['summary']['successful_answers']}\n") + f.write(f"- Success Rate: {turn_data['summary']['success_rate']:.1%}\n") + f.write(f"- Categories: {', '.join(turn_data['summary']['categories_covered'])}\n\n") + + # Write detailed Q&A + results = turn_data['results'] + for category_result in results['category_results']: + if category_result['results']: + f.write(f"\n{category_result['category'].upper()} CATEGORY:\n") + f.write("-" * 40 + "\n") + for i, result in enumerate(category_result['results'], 1): + if result['status'] == 'completed': + f.write(f"\nQ{i}: {result['question']['question']}\n") + f.write(f"Priority: {result['question']['priority']}/10\n") + f.write(f"A{i}: {result['answer']}\n") + f.write(f"Processing Time: {result['processing_time']:.2f}s\n") + f.write("-" * 40 + "\n") + + self.logger.info(f"💾 Turn {self.turn_count} results saved to {json_file} and {summary_file}") + + # HELPER FUNCTIONS + + def _get_user_topic(self) -> str: + """Get research topic from user.""" + while True: + topic = input(f"\n🎯 Enter research topic (Turn {self.turn_count + 1}): ").strip() + if topic: + return topic + print("Please enter a valid research topic.") + + def _get_max_questions(self) -> int: + """Get maximum number of questions (default 2).""" + while True: + response = input("❓ Max questions (default 2): ").strip() + if not response: + return 2 + try: + max_q = int(response) + if max_q > 0: + return max_q + print("Please enter a positive number.") + except ValueError: + print("Please enter a valid number.") + + def _continue_conversation(self) -> bool: + """Ask if user wants to continue the conversation.""" + while True: + response = input("\n🔄 Continue exploring? (y/n, default y): ").strip().lower() + if not response or response == 'y': + return True + if response == 'n': + return False + print("Please enter 'y' or 'n'.") + + def _serialize_results(self, results) -> Dict[str, Any]: + """Convert results to JSON-serializable format.""" + return { + "total_questions": results.total_questions, + "successful_answers": results.successful_answers, + "failed_questions": results.failed_questions, + "success_rate": results.success_rate, + "category_results": [ + { + "category": cat_result.category.value, + "results": [ + { + "question": { + "question": result.question.question, + "category": result.question.category.value, + "priority": result.question.priority, + "rationale": result.question.rationale + }, + "answer": result.answer, + "status": result.status, + "processing_time": result.processing_time, + "error_message": result.error_message + } for result in cat_result.results + ] + } for cat_result in results.category_results + ], + "research_summary": results.research_summary + } + + def _close_session(self): + """Close the conversation session.""" + self.logger.info(f"\n🎯 Session {self.session_id} completed!") + self.logger.info(f"📊 Total turns: {self.turn_count}") + self.logger.info(f"💾 All results saved to: {self.results_dir}") + + print(f"\n👋 Thank you for using Research Exploration!") + print(f"📁 Your results are saved in: {self.results_dir}") + print(f"🔢 Total exploration turns: {self.turn_count}") + + +async def conversational_exploration(): + """Main function for conversational research exploration.""" + explorer = ConversationalExplorer() + await explorer.start_conversation() + + +async def test_question_generation_only(): + """Test just the question generation component.""" + + logging.basicConfig(level=logging.INFO) + logger = logging.getLogger(__name__) + + logger.info("\n" + "="*50) + logger.info("TEST: Question Generation Only") + logger.info("="*50) + + from ..agents.question_generation_agent import QuestionGenerationAgent, QuestionGenerationRequest + + try: + agent = QuestionGenerationAgent() + + request = QuestionGenerationRequest( + topic="attention mechanisms in neural networks", + max_questions=3, + depth_level="comprehensive" + ) + + question_set = await agent.generate_research_questions(request) + + logger.info(f"✅ Generated {len(question_set.questions)} questions") + logger.info(f"✅ Categories covered: {[cat.value for cat in question_set.categories_covered]}") + + # Show questions by category + for category in question_set.categories_covered: + category_questions = question_set.get_questions_by_category(category) + logger.info(f"\n📂 {category.value.upper()}:") + for q in category_questions: + priority_indicator = "🔥" if q.priority >= 8 else "📝" + logger.info(f" {priority_indicator} [{q.priority}] {q.question}") + + except Exception as e: + logger.error(f"❌ Question generation test failed: {e}") + + +if __name__ == "__main__": + + # Choose which test to run + print("Research Exploration Engine Test Suite") + print("1. Conversational exploration (recommended)") + print("2. Test question generation only") + print("3. Legacy test suite") + + choice = input("Choose test (1-3, default 1): ").strip() + + if choice == "2": + asyncio.run(test_question_generation_only()) + elif choice == "3": + print("Running legacy tests...") + asyncio.run(test_question_generation_only()) + # Note: test_basic_exploration removed for conversational interface + print("Legacy basic exploration replaced with conversational mode") + else: + print("Starting conversational exploration...") + asyncio.run(conversational_exploration()) \ No newline at end of file diff --git a/backend/agentic_system/orchestrators/utils/__init__.py b/backend/agentic_system/orchestrators/utils/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..7a0cd2d8a133cae701ff16b7f4c6f77724ba6121 --- /dev/null +++ b/backend/agentic_system/orchestrators/utils/__init__.py @@ -0,0 +1,68 @@ +""" +Utilities for research exploration orchestrator. + +Contains modular utilities for logging, answer extraction, workflow processing, +and result organization to keep the main orchestrator clean and focused. +""" + +from .logging_utils import ( + setup_exploration_logging, + log_exploration_phase, + log_exploration_result, + log_workflow_progress, + log_workflow_completion, + log_error +) +from .answer_extraction_utils import ( + extract_answer_text, + extract_answer_summary_only, + format_detailed_answer_from_steps, + extract_confidence_score, + extract_context_sources, + is_valid_answer, + extract_answer_metadata +) +from .workflow_processing_utils import ( + process_question_with_mix_mode, + process_question_with_custom_params, + get_enhanced_retrieval_params, + diagnose_workflow_failure, + retry_question_with_fallback_modes +) +from .result_organization_utils import ( + organize_results_by_category, + generate_research_summary, + calculate_category_statistics, + identify_problematic_categories, + generate_failure_analysis +) + +__all__ = [ + # Logging utilities + 'setup_exploration_logging', + 'log_exploration_phase', + 'log_exploration_result', + 'log_workflow_progress', + 'log_workflow_completion', + 'log_error', + # Answer extraction utilities + 'extract_answer_text', + 'extract_answer_summary_only', + 'format_detailed_answer_from_steps', + 'extract_confidence_score', + 'extract_context_sources', + 'is_valid_answer', + 'extract_answer_metadata', + # Workflow processing utilities + 'process_question_with_mix_mode', + 'process_question_with_custom_params', + 'get_enhanced_retrieval_params', + 'diagnose_workflow_failure', + 'retry_question_with_fallback_modes', + # Result organization utilities + 'organize_results_by_category', + 'generate_research_summary', + 'calculate_category_statistics', + 'identify_problematic_categories', + 'generate_failure_analysis' +] \ No newline at end of file diff --git a/backend/agentic_system/orchestrators/utils/answer_extraction_utils.py b/backend/agentic_system/orchestrators/utils/answer_extraction_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..6c5277912548935ba7b3ec0f26fe14676b627d61 --- /dev/null +++ b/backend/agentic_system/orchestrators/utils/answer_extraction_utils.py @@ -0,0 +1,245 @@ +""" +Answer extraction utilities for research exploration orchestrator. + +Handles extraction of answer text and metadata from various answer object types. +""" + +from typing import Optional, Any + + +def extract_answer_text(guided_answer: Any) -> str: + """ + Extract text from a GuidedAnswer object or other answer formats. + + Prioritizes detailed step-by-step content over concise summaries for rich answers. + + Args: + guided_answer: GuidedAnswer object, string, or other answer format + + Returns: + str: Extracted answer text, empty string if extraction fails + """ + if not guided_answer: + return "" + + # Handle string answers directly + if isinstance(guided_answer, str): + return guided_answer + + # Try to extract detailed step-by-step content first + if hasattr(guided_answer, 'steps') and guided_answer.steps: + return format_detailed_answer_from_steps(guided_answer) + + # Try various common answer attributes (fallback to summary) + if hasattr(guided_answer, 'summary'): + return guided_answer.summary + elif hasattr(guided_answer, 'answer'): + return guided_answer.answer + elif hasattr(guided_answer, 'text'): + return guided_answer.text + elif hasattr(guided_answer, 'content'): + return guided_answer.content + else: + # Fallback to string conversion + return str(guided_answer) + + +def format_detailed_answer_from_steps(guided_answer: Any) -> str: + """ + Format a comprehensive answer from the detailed steps structure. + + Args: + guided_answer: GuidedAnswer object with steps attribute + + Returns: + str: Formatted detailed answer with all steps + """ + try: + # Start with summary if available + result = "" + if hasattr(guided_answer, 'summary') and guided_answer.summary: + result += f"## Summary\n{guided_answer.summary}\n\n" + + # Add confidence and coverage info if available + metadata_parts = [] + if hasattr(guided_answer, 'confidence_level'): + metadata_parts.append(f"**Confidence:** {guided_answer.confidence_level}") + if hasattr(guided_answer, 'context_coverage'): + metadata_parts.append(f"**Context Coverage:** {guided_answer.context_coverage}") + + if metadata_parts: + result += f"*{' | '.join(metadata_parts)}*\n\n" + + # Add detailed steps + result += "## Detailed Analysis\n\n" + + for step in guided_answer.steps: + step_num = getattr(step, 'step_number', '') + title = getattr(step, 'title', f'Step {step_num}') + explanation = getattr(step, 'explanation', '') + + result += f"### {step_num}. {title}\n\n" + result += f"{explanation}\n\n" + + # Add context references if available + context_refs = getattr(step, 'context_references', None) + if context_refs and len(context_refs) > 0: + result += f"*Sources: {', '.join(context_refs)}*\n\n" + + return result.strip() + + except Exception as e: + # Fallback to summary if steps formatting fails + if hasattr(guided_answer, 'summary'): + return guided_answer.summary + return f"Error formatting detailed answer: {str(e)}" + + +def extract_answer_summary_only(guided_answer: Any) -> str: + """ + Extract only the summary portion (for cases where brief answers are preferred). + + Args: + guided_answer: GuidedAnswer object or other answer format + + Returns: + str: Summary text only + """ + if not guided_answer: + return "" + + if isinstance(guided_answer, str): + return guided_answer + + if hasattr(guided_answer, 'summary'): + return guided_answer.summary + elif hasattr(guided_answer, 'answer'): + return guided_answer.answer + else: + return str(guided_answer) + + +def extract_confidence_score(workflow_state: Any) -> Optional[float]: + """ + Extract confidence score from workflow state if available. + + Args: + workflow_state: Workflow state object + + Returns: + Optional[float]: Confidence score (0-1) or None if not available + """ + if not workflow_state: + return None + + # Try various confidence score attributes + confidence_attrs = [ + 'confidence_score', + 'confidence', + 'score', + 'certainty' + ] + + for attr in confidence_attrs: + if hasattr(workflow_state, attr): + value = getattr(workflow_state, attr) + if isinstance(value, (int, float)) and 0 <= value <= 1: + return float(value) + + return None + + +def extract_context_sources(workflow_state: Any) -> list: + """ + Extract context sources from workflow state if available. + + Args: + workflow_state: Workflow state object + + Returns: + list: List of source identifiers, empty list if not available + """ + if not workflow_state: + return [] + + # Try various source attributes + source_attrs = [ + 'sources', + 'context_sources', + 'references', + 'citations' + ] + + for attr in source_attrs: + if hasattr(workflow_state, attr): + value = getattr(workflow_state, attr) + if isinstance(value, list): + return value + + return [] + + +def is_valid_answer(answer_text: str, min_length: int = 10) -> bool: + """ + Check if an extracted answer is valid and meaningful. + + Args: + answer_text: Extracted answer text + min_length: Minimum length for valid answer (default: 10) + + Returns: + bool: True if answer appears valid, False otherwise + """ + if not answer_text or not isinstance(answer_text, str): + return False + + # Check minimum length + if len(answer_text.strip()) < min_length: + return False + + # Check for common "no answer" patterns + no_answer_patterns = [ + "no context available", + "unable to answer", + "cannot determine", + "not found", + "no information", + "context not provided" + ] + + answer_lower = answer_text.lower() + for pattern in no_answer_patterns: + if pattern in answer_lower: + return False + + return True + + +def extract_answer_metadata(workflow_state: Any) -> dict: + """ + Extract comprehensive metadata from workflow state. + + Args: + workflow_state: Workflow state object + + Returns: + dict: Dictionary containing available metadata + """ + metadata = {} + + if not workflow_state: + return metadata + + # Extract various metadata fields + metadata_attrs = { + 'confidence_score': extract_confidence_score(workflow_state), + 'context_sources': extract_context_sources(workflow_state), + 'status': getattr(workflow_state, 'status', None), + 'error': getattr(workflow_state, 'error', None), + 'processing_time': getattr(workflow_state, 'processing_time', None), + 'retrieval_status': getattr(workflow_state, 'retrieval_status', None), + 'context_length': getattr(workflow_state, 'context_length', None) + } + + # Only include non-None values + return {k: v for k, v in metadata_attrs.items() if v is not None} \ No newline at end of file diff --git a/backend/agentic_system/orchestrators/utils/logging_utils.py b/backend/agentic_system/orchestrators/utils/logging_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..3df8d56047f5b53673d7ff48a2221accdd635d7e --- /dev/null +++ b/backend/agentic_system/orchestrators/utils/logging_utils.py @@ -0,0 +1,107 @@ +""" +Logging utilities for research exploration orchestrator. + +Provides centralized logging setup and configuration for the exploration process. +""" + +import logging +from typing import Optional + + +def setup_exploration_logging(name: str, level: int = logging.DEBUG) -> logging.Logger: + """ + Set up structured logging for the research exploration orchestrator. + + Args: + name: Logger name (typically __name__ from calling module) + level: Logging level (default: DEBUG) + + Returns: + logging.Logger: Configured logger instance + """ + logger = logging.getLogger(name) + + # Only add handlers if none exist to avoid duplicates + if not logger.handlers: + handler = logging.StreamHandler() + formatter = logging.Formatter( + '%(asctime)s - %(name)s - %(levelname)s - %(message)s' + ) + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.setLevel(level) + + return logger + + +def log_exploration_phase(logger: logging.Logger, phase: int, description: str) -> None: + """ + Log the start of an exploration phase with consistent formatting. + + Args: + logger: Logger instance + phase: Phase number (1, 2, 3, etc.) + description: Description of the phase + """ + logger.info(f"📝 Phase {phase}: {description}") + + +def log_exploration_result( + logger: logging.Logger, + successful: int, + total: int, + context: Optional[str] = None +) -> None: + """ + Log exploration completion results with consistent formatting. + + Args: + logger: Logger instance + successful: Number of successful operations + total: Total number of operations + context: Optional context description + """ + context_str = f" {context}" if context else "" + logger.info(f"🎯 Research exploration complete{context_str}: {successful}/{total} questions answered successfully") + + +def log_workflow_progress(logger: logging.Logger, question: str, max_length: int = 50) -> None: + """ + Log workflow processing progress for individual questions. + + Args: + logger: Logger instance + question: Question being processed + max_length: Maximum length to display (default: 50) + """ + truncated_question = question[:max_length] + "..." if len(question) > max_length else question + logger.debug(f"🔄 Processing question: {truncated_question}") + + +def log_workflow_completion( + logger: logging.Logger, + status: str, + error: Optional[str] = None +) -> None: + """ + Log workflow completion status. + + Args: + logger: Logger instance + status: Workflow status + error: Error message if any + """ + error_str = f", Error: {error}" if error else "" + logger.debug(f"✅ Workflow completed. Status: {status}{error_str}") + + +def log_error(logger: logging.Logger, operation: str, error: Exception) -> None: + """ + Log errors with consistent formatting. + + Args: + logger: Logger instance + operation: Description of operation that failed + error: Exception that occurred + """ + logger.error(f"❌ {operation} failed: {error}") \ No newline at end of file diff --git a/backend/agentic_system/orchestrators/utils/result_organization_utils.py b/backend/agentic_system/orchestrators/utils/result_organization_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..d7d76eb49e6fd8dd6a92b74ad3f9282b3392af64 --- /dev/null +++ b/backend/agentic_system/orchestrators/utils/result_organization_utils.py @@ -0,0 +1,241 @@ +""" +Result organization utilities for research exploration orchestrator. + +Handles organization of question results by category and generation of research summaries. +""" + +import logging +from typing import List, Optional, Any +from collections import defaultdict + +from ..research_exploration_schema import CategoryResults, QuestionResult +from .answer_extraction_utils import extract_answer_text + + +def organize_results_by_category(question_results: List[QuestionResult]) -> List[CategoryResults]: + """ + Organize question results by research category. + + Args: + question_results: List of individual question results + + Returns: + List[CategoryResults]: Results organized by category + """ + # Group results by category + category_groups = defaultdict(list) + for result in question_results: + category_groups[result.question.category].append(result) + + # Create CategoryResults for each group + category_results = [] + for category, results in category_groups.items(): + successful = sum(1 for r in results if r.status == "completed") + + category_result = CategoryResults( + category=category, + questions_processed=len(results), + successful_answers=successful, + results=results + ) + category_results.append(category_result) + + return category_results + + +async def generate_research_summary( + topic: str, + category_results: List[CategoryResults], + qa_workflow: Any, + logger: Optional[logging.Logger] = None +) -> Optional[str]: + """ + Generate an overall research summary from category results. + + Args: + topic: The research topic + category_results: Results organized by category + qa_workflow: QA workflow instance for summary generation + logger: Optional logger for debugging + + Returns: + Optional[str]: Research summary or None if generation fails + """ + try: + # Collect successful answers for summary generation + successful_answers = [] + for cat_result in category_results: + for result in cat_result.results: + if result.status == "completed" and result.answer: + successful_answers.append({ + 'category': cat_result.category.value, + 'question': result.question.question, + 'answer': result.answer + }) + + if not successful_answers: + return "No successful answers to summarize." + + # Create summary prompt and use QA workflow + summary_question = f"Based on the following Q&A about {topic}, provide a comprehensive research summary: {successful_answers}" + + summary_state = await qa_workflow.process_question(summary_question) + + # Extract text from GuidedAnswer object using helper + summary_text = extract_answer_text(summary_state.answer) + return summary_text if summary_text else "Unable to generate research summary." + + except Exception as e: + if logger: + logger.warning(f"Failed to generate research summary: {e}") + return f"Summary generation failed: {e}" + + +def calculate_category_statistics(category_results: List[CategoryResults]) -> dict: + """ + Calculate comprehensive statistics across all categories. + + Args: + category_results: Results organized by category + + Returns: + dict: Statistics including success rates, timing, etc. + """ + stats = { + 'total_categories': len(category_results), + 'total_questions': 0, + 'total_successful': 0, + 'category_breakdown': [], + 'success_rate_by_category': {}, + 'overall_success_rate': 0.0 + } + + for cat_result in category_results: + stats['total_questions'] += cat_result.questions_processed + stats['total_successful'] += cat_result.successful_answers + + category_success_rate = ( + cat_result.successful_answers / cat_result.questions_processed + if cat_result.questions_processed > 0 else 0.0 + ) + + stats['category_breakdown'].append({ + 'category': cat_result.category.value, + 'questions': cat_result.questions_processed, + 'successful': cat_result.successful_answers, + 'success_rate': category_success_rate + }) + + stats['success_rate_by_category'][cat_result.category.value] = category_success_rate + + stats['overall_success_rate'] = ( + stats['total_successful'] / stats['total_questions'] + if stats['total_questions'] > 0 else 0.0 + ) + + return stats + + +def identify_problematic_categories(category_results: List[CategoryResults], threshold: float = 0.5) -> List[str]: + """ + Identify categories with success rates below threshold. + + Args: + category_results: Results organized by category + threshold: Success rate threshold (default: 0.5) + + Returns: + List[str]: List of problematic category names + """ + problematic = [] + + for cat_result in category_results: + success_rate = ( + cat_result.successful_answers / cat_result.questions_processed + if cat_result.questions_processed > 0 else 0.0 + ) + + if success_rate < threshold: + problematic.append(cat_result.category.value) + + return problematic + + +def get_best_performing_answers(category_results: List[CategoryResults], top_n: int = 5) -> List[dict]: + """ + Get the best performing answers based on various criteria. + + Args: + category_results: Results organized by category + top_n: Number of top answers to return + + Returns: + List[dict]: Top performing answers with metadata + """ + all_successful = [] + + for cat_result in category_results: + for result in cat_result.results: + if result.status == "completed" and result.answer: + answer_info = { + 'category': cat_result.category.value, + 'question': result.question.question, + 'answer': result.answer, + 'priority': result.question.priority, + 'confidence_score': result.confidence_score or 0.0, + 'processing_time': result.processing_time or float('inf'), + 'answer_length': len(result.answer) + } + all_successful.append(answer_info) + + # Sort by priority (desc), confidence (desc), then processing time (asc) + all_successful.sort( + key=lambda x: (-x['priority'], -x['confidence_score'], x['processing_time']) + ) + + return all_successful[:top_n] + + +def generate_failure_analysis(category_results: List[CategoryResults]) -> dict: + """ + Analyze failed questions to identify patterns. + + Args: + category_results: Results organized by category + + Returns: + dict: Analysis of failure patterns + """ + failure_analysis = { + 'total_failures': 0, + 'failure_reasons': defaultdict(int), + 'failed_categories': defaultdict(int), + 'common_patterns': [] + } + + for cat_result in category_results: + for result in cat_result.results: + if result.status == "failed": + failure_analysis['total_failures'] += 1 + failure_analysis['failed_categories'][cat_result.category.value] += 1 + + if result.error_message: + # Categorize error messages + error_msg = result.error_message.lower() + if "no context" in error_msg: + failure_analysis['failure_reasons']['no_context'] += 1 + elif "timeout" in error_msg: + failure_analysis['failure_reasons']['timeout'] += 1 + elif "workflow error" in error_msg: + failure_analysis['failure_reasons']['workflow_error'] += 1 + else: + failure_analysis['failure_reasons']['other'] += 1 + + # Identify common patterns + if failure_analysis['failure_reasons']['no_context'] > failure_analysis['total_failures'] * 0.5: + failure_analysis['common_patterns'].append('High retrieval failure rate - check knowledge base coverage') + + if failure_analysis['failure_reasons']['timeout'] > failure_analysis['total_failures'] * 0.3: + failure_analysis['common_patterns'].append('Processing timeouts - consider increasing timeout limits') + + return dict(failure_analysis) \ No newline at end of file diff --git a/backend/agentic_system/orchestrators/utils/workflow_processing_utils.py b/backend/agentic_system/orchestrators/utils/workflow_processing_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..5af397e29f0649ee1a9f0c4e7a8b72ab739ac303 --- /dev/null +++ b/backend/agentic_system/orchestrators/utils/workflow_processing_utils.py @@ -0,0 +1,240 @@ +""" +Workflow processing utilities for research exploration orchestrator. + +Handles question processing through QA workflows with various modes and configurations. +""" + +import time +import logging +from datetime import datetime +from typing import Any, Dict, Optional + + +async def process_question_with_mix_mode( + question: str, + qa_workflow: Any, + logger: Optional[logging.Logger] = None +) -> Any: + """ + Process a question through QA workflow with mix mode for comprehensive retrieval. + + Args: + question: The question to process + qa_workflow: QA workflow instance + logger: Optional logger for debugging + + Returns: + WorkflowState: The workflow state after processing + """ + try: + from ...graphs.state_schema import WorkflowState + + # Create initial state with mix mode for better retrieval coverage + initial_state = WorkflowState( + question=question, + workflow_start_time=datetime.now(), + retrieval_params={ + "mode": "mix", # Use mix mode for better context retrieval + "top_k": 10, # Increase top_k for more comprehensive retrieval + "chunk_top_k": 4 # Increase chunk_top_k for better context + } + ) + + if logger: + logger.debug(f"🔧 Using retrieval params: {initial_state.retrieval_params}") + + # Run the workflow with our custom initial state + config = {"configurable": {"thread_id": f"research_{int(time.time())}"}} + result = await qa_workflow.app.ainvoke(initial_state.dict(), config) + + return WorkflowState(**result) + + except Exception as e: + if logger: + logger.error(f"Error in process_question_with_mix_mode: {e}") + + # Return error state similar to normal QA workflow + from ...graphs.state_schema import WorkflowState + + return WorkflowState( + question=question, + error=f"Mix mode workflow error: {str(e)}", + status="error", + workflow_start_time=datetime.now(), + workflow_end_time=datetime.now() + ) + + +async def process_question_with_custom_params( + question: str, + qa_workflow: Any, + retrieval_params: Dict[str, Any], + logger: Optional[logging.Logger] = None +) -> Any: + """ + Process a question with custom retrieval parameters. + + Args: + question: The question to process + qa_workflow: QA workflow instance + retrieval_params: Custom retrieval parameters + logger: Optional logger for debugging + + Returns: + WorkflowState: The workflow state after processing + """ + try: + from ...graphs.state_schema import WorkflowState + + # Create initial state with custom parameters + initial_state = WorkflowState( + question=question, + workflow_start_time=datetime.now(), + retrieval_params=retrieval_params + ) + + if logger: + logger.debug(f"🔧 Using custom retrieval params: {retrieval_params}") + + # Run the workflow + config = {"configurable": {"thread_id": f"research_{int(time.time())}"}} + result = await qa_workflow.app.ainvoke(initial_state.dict(), config) + + return WorkflowState(**result) + + except Exception as e: + if logger: + logger.error(f"Error in process_question_with_custom_params: {e}") + + from ...graphs.state_schema import WorkflowState + + return WorkflowState( + question=question, + error=f"Custom params workflow error: {str(e)}", + status="error", + workflow_start_time=datetime.now(), + workflow_end_time=datetime.now() + ) + + +def get_enhanced_retrieval_params(mode: str = "mix") -> Dict[str, Any]: + """ + Get enhanced retrieval parameters for better context coverage. + + Args: + mode: Retrieval mode (default: "mix") + + Returns: + Dict[str, Any]: Enhanced retrieval parameters + """ + base_params = { + "top_k": 10, # More documents + "chunk_top_k": 4, # More chunks per document + } + + if mode == "mix": + base_params.update({ + "mode": "mix", + "top_k": 15, # Even more for mix mode + "chunk_top_k": 5 + }) + elif mode == "hybrid": + base_params.update({ + "mode": "hybrid", + "top_k": 12, + "chunk_top_k": 4 + }) + elif mode == "global": + base_params.update({ + "mode": "global", + "top_k": 8, + "chunk_top_k": 3 + }) + elif mode == "local": + base_params.update({ + "mode": "local", + "top_k": 20, # Compensate with more local results + "chunk_top_k": 6 + }) + else: + base_params["mode"] = mode + + return base_params + + +def diagnose_workflow_failure(workflow_state: Any, logger: Optional[logging.Logger] = None) -> str: + """ + Diagnose why a workflow failed and provide insights. + + Args: + workflow_state: Failed workflow state + logger: Optional logger for additional debugging + + Returns: + str: Diagnostic message explaining the failure + """ + if not workflow_state: + return "Workflow state is None - possible initialization failure" + + # Check for common failure patterns + error = getattr(workflow_state, 'error', None) + status = getattr(workflow_state, 'status', None) + + if error: + if "No context available" in str(error): + diagnosis = "Retrieval failure: No context found in knowledge base" + if logger: + logger.warning(f"📊 Diagnosis: {diagnosis}") + logger.warning(f"🔍 Suggestion: Try different retrieval mode or check question relevance") + return diagnosis + elif "timeout" in str(error).lower(): + return "Processing timeout: Question took too long to process" + elif "workflow error" in str(error).lower(): + return f"Workflow execution error: {error}" + + if status == "error": + return "Workflow completed with error status" + elif status == "initialized": + return "Workflow stuck in initialized state - possible processing failure" + + return f"Unknown failure: Status={status}, Error={error}" + + +async def retry_question_with_fallback_modes( + question: str, + qa_workflow: Any, + logger: Optional[logging.Logger] = None +) -> Any: + """ + Retry a question with different retrieval modes as fallbacks. + + Args: + question: The question to process + qa_workflow: QA workflow instance + logger: Optional logger for debugging + + Returns: + WorkflowState: Best result from attempted modes + """ + fallback_modes = ["mix", "hybrid", "global", "local"] + + for mode in fallback_modes: + if logger: + logger.debug(f"🔄 Trying mode: {mode}") + + params = get_enhanced_retrieval_params(mode) + result = await process_question_with_custom_params( + question, qa_workflow, params, logger + ) + + # Check if this attempt was successful + if not getattr(result, 'error', None) and getattr(result, 'status', None) == "completed": + if logger: + logger.info(f"✅ Success with mode: {mode}") + return result + + # If all modes failed, return the last result + if logger: + logger.warning(f"❌ All retrieval modes failed for question: {question[:50]}...") + + return result \ No newline at end of file diff --git a/backend/agentic_system/output/generated_flashcards.json b/backend/agentic_system/output/generated_flashcards.json new file mode 100644 index 0000000000000000000000000000000000000000..646ccdf875dbc09b00dd9433506314f5840cb8f2 --- /dev/null +++ b/backend/agentic_system/output/generated_flashcards.json @@ -0,0 +1,2669 @@ +{ + "processing_info": { + "processed_at": "2025-08-14T15:23:50.541687", + "total_documents": 3, + "total_pages_processed": 68, + "total_flashcards_generated": 314, + "max_concurrent_agents": 10 + }, + "flashcard_generations": [ + { + "source_file": "2106.09685v2", + "page_index": 0, + "total_flashcards": 7, + "flashcards": [ + { + "id": "2106.09685v2_page0_card1", + "question": "What is LoRA and how does it work?", + "answer": "LoRA (Low-Rank Adaptation) freezes pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture. This significantly reduces the number of trainable parameters for downstream tasks, making the adaptation of large language models more feasible and cost-effective.", + "keyword_explanation": "LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning technique for large language models. It reduces the number of trainable parameters by using low-rank matrices to approximate the weight updates during adaptation.", + "metadata": {} + }, + { + "id": "2106.09685v2_page0_card2", + "question": "Why is full fine-tuning becoming less feasible for large language models?", + "answer": "Full fine-tuning, which retrains all model parameters, becomes less feasible for very large models like GPT-3 (175B parameters). Deploying independent instances of fine-tuned models is prohibitively expensive. LoRA addresses this by only training a small number of additional parameters introduced through low-rank decomposition matrices.", + "keyword_explanation": "Full fine-tuning is the process of retraining all the parameters of a pretrained model for a specific downstream task. While effective, it is computationally expensive and memory-intensive for large models.", + "metadata": {} + }, + { + "id": "2106.09685v2_page0_card3", + "question": "How efficient is LoRA compared to full fine-tuning in terms of trainable parameters and memory?", + "answer": "LoRA can reduce the number of trainable parameters by up to 10,000 times and decrease GPU memory requirements by 3 times compared to full fine-tuning with Adam, using GPT-3 175B as an example. It also performs on-par or better than full fine-tuning on various models like RoBERTa, DeBERTa, GPT-2, and GPT-3.", + "keyword_explanation": "Parameter reduction is a key benefit of LoRA. By using low-rank matrices, LoRA drastically decreases the number of trainable parameters needed for task adaptation, leading to significant efficiency gains.", + "metadata": {} + }, + { + "id": "2106.09685v2_page0_card4", + "question": "How does LoRA's performance and inference latency compare to traditional fine-tuning and adapter methods?", + "answer": "LoRA performs comparably to or better than full fine-tuning across models like RoBERTa, DeBERTa, GPT-2, and GPT-3. A significant advantage is that LoRA does not introduce additional inference latency, unlike adapter-based methods that extend model depth.", + "keyword_explanation": "Model quality refers to how well a model performs on downstream tasks. LoRA achieves comparable or superior model quality to full fine-tuning while being much more parameter-efficient.", + "metadata": {} + }, + { + "id": "2106.09685v2_page0_card5", + "question": "What is the GLUE benchmark and what types of tasks does it include?", + "answer": "The GLUE benchmark is a collection of natural language understanding tasks used to evaluate NLU models. It includes tasks like MNLI, SST-2, MRPC, CoLA, QNLI, QQP, RTE, and STS-B, providing a comprehensive evaluation of a model's understanding capabilities.", + "keyword_explanation": "GLUE benchmark is a standard dataset for evaluating the performance of natural language understanding models. It covers a diverse set of tasks, ensuring a robust assessment of a model's general language understanding abilities.", + "metadata": {} + }, + { + "id": "2106.09685v2_page0_card6", + "question": "How does fine-tuning compare to few-shot learning in performance, particularly with large models like GPT-3?", + "answer": "Fine-tuning significantly outperforms few-shot learning (prompt engineering), especially when a substantial number of training examples are available. For instance, GPT-3 fine-tuned achieved 89.5% accuracy on MNLI-matched, compared to 40.6% for few-shot learning.", + "keyword_explanation": "Few-shot learning, also known as prompt engineering, involves adapting a model using only a few training examples. While advantageous for very limited data, fine-tuning generally yields better performance when more data is available.", + "metadata": {} + }, + { + "id": "2106.09685v2_page0_card7", + "question": "What is the impact of adapter layers on inference latency, especially in different usage scenarios?", + "answer": "Adapter layers, when added sequentially to a pre-trained model, increase inference latency because they must be computed in addition to the base model. While large batch sizes or sequence lengths can mitigate this, online inference with small batch sizes can still experience significant added latency.", + "keyword_explanation": "Adapter layers are external modules added to a pre-trained model to adapt it to new tasks. They increase model depth and thus introduce additional computation, potentially leading to higher inference latency.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 1, + "total_flashcards": 8, + "flashcards": [ + { + "id": "2106.09685v2_page1_card1", + "question": "What is Low-Rank Adaptation (LoRA)?", + "answer": "Low-Rank Adaptation (LoRA) is a technique that allows training dense layers in a neural network indirectly by optimizing rank decomposition matrices of the dense layers' change during adaptation, while keeping the pre-trained weights frozen.", + "keyword_explanation": "LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method that reduces the number of trainable parameters by learning low-rank updates to the original weight matrices.", + "metadata": {} + }, + { + "id": "2106.09685v2_page1_card2", + "question": "How does LoRA enable efficient training of dense layers?", + "answer": "LoRA allows training by optimizing rank decomposition matrices (A and B) of the dense layers' change during adaptation, instead of training all the dense layers directly. The pre-trained weights remain frozen.", + "keyword_explanation": "Rank decomposition matrices (A and B) are smaller matrices used in LoRA to represent the update to a larger weight matrix. These matrices capture the essential changes needed for adaptation.", + "metadata": {} + }, + { + "id": "2106.09685v2_page1_card3", + "question": "What is the typical rank used in LoRA, and why is it significant?", + "answer": "A very low rank, such as one or two, is sufficient for LoRA, even when the full rank is as high as 12,288. This makes LoRA both storage- and compute-efficient.", + "keyword_explanation": "The 'rank' in LoRA refers to the dimension of the smaller matrices (A and B) used to approximate the weight updates. A lower rank indicates fewer trainable parameters and greater efficiency.", + "metadata": {} + }, + { + "id": "2106.09685v2_page1_card4", + "question": "How does LoRA improve efficiency in multi-task learning scenarios?", + "answer": "LoRA allows a pre-trained model to be shared across many tasks by replacing the low-rank matrices (A and B) for each task. This significantly reduces storage requirements and task-switching overhead.", + "keyword_explanation": "Task-switching overhead refers to the time and resources needed to change the model's focus from one task to another. LoRA minimizes this by only swapping small adapter modules.", + "metadata": {} + }, + { + "id": "2106.09685v2_page1_card5", + "question": "How does LoRA contribute to more efficient training and lower hardware barriers?", + "answer": "LoRA makes training more efficient and lowers hardware requirements because only the smaller, injected low-rank matrices are optimized. This means fewer gradients need to be calculated and fewer optimizer states maintained.", + "keyword_explanation": "Adaptive optimizers, like Adam, require maintaining states for each parameter being trained. By optimizing only the low-rank matrices, LoRA drastically reduces the memory footprint of these states.", + "metadata": {} + }, + { + "id": "2106.09685v2_page1_card6", + "question": "Does LoRA introduce any inference latency, and why or why not?", + "answer": "LoRA introduces no inference latency compared to a fully fine-tuned model because the trainable matrices can be merged with the frozen weights when deployed. This is a direct result of its linear design.", + "keyword_explanation": "Inference latency is the time delay between providing input to a model and receiving the output. Merging LoRA weights effectively means the adapted model has the same architecture and computation cost as the original.", + "metadata": {} + }, + { + "id": "2106.09685v2_page1_card7", + "question": "Can LoRA be combined with other parameter-efficient fine-tuning methods?", + "answer": "LoRA is orthogonal to many prior methods and can be combined with them, such as prefix-tuning. This means LoRA's benefits can be added to other adaptation techniques.", + "keyword_explanation": "Orthogonal methods in machine learning are those that can be combined without interfering with each other's core functionality or benefits. LoRA's compatibility allows for flexible application.", + "metadata": {} + }, + { + "id": "2106.09685v2_page1_card8", + "question": "What are the key terminologies used when discussing LoRA and Transformer dimensions?", + "answer": "The input and output dimension size of a Transformer layer is denoted by $d_{model}$. Common projection matrices in the self-attention module are $W_q$, $W_k$, $W_v$, and $W_o$. A pre-trained weight matrix is often represented as $W$ or $W_0$, with its update during adaptation denoted as $\\Delta W$. The rank of a LoRA module is denoted by $r$.", + "keyword_explanation": "$d_{model}$ represents the hidden size or embedding dimension within a Transformer model. It dictates the dimensionality of the input and output vectors at each layer.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 2, + "total_flashcards": 6, + "flashcards": [ + { + "id": "2106.09685v2_page2_card0", + "question": "What is full fine-tuning and what is its objective?", + "answer": "Full fine-tuning involves updating all pre-trained model parameters ($\\\name=\\\name_0 + \\\name$) to adapt to a specific downstream task. The objective is to maximize the conditional language modeling objective across the dataset Z.", + "keyword_explanation": "Full fine-tuning is a method of adapting a pre-trained model to a new task by adjusting all of its parameters.", + "metadata": {} + }, + { + "id": "2106.09685v2_page2_card1", + "question": "What is a primary challenge associated with full fine-tuning large pre-trained models?", + "answer": "A major drawback of full fine-tuning is the need to learn and store a separate set of parameters (\\\name) for each downstream task. This becomes computationally and memory-intensive, especially for large models like GPT-3.", + "keyword_explanation": "Parameter inefficiency in full fine-tuning refers to the requirement of storing and managing a full copy of model parameters for each task.", + "metadata": {} + }, + { + "id": "2106.09685v2_page2_card2", + "question": "How does a parameter-efficient approach differ from full fine-tuning in terms of parameter updates?", + "answer": "This parameter-efficient approach encodes the task-specific parameter increment (\\\name = \\\name(\\\name)) using a much smaller set of parameters (\\\name), where \\\name << \\\name_0. This optimizes over \\\name instead of \\\name.", + "keyword_explanation": "Parameter-efficient fine-tuning reduces the number of trainable parameters by encoding the changes to the pre-trained model parameters using a smaller set.", + "metadata": {} + }, + { + "id": "2106.09685v2_page2_card3", + "question": "What method is proposed in the paper to encode parameter increments efficiently, and what are its benefits?", + "answer": "The paper proposes using a low-rank representation to encode the parameter increment (\\\name). This method is designed to be both compute- and memory-efficient, allowing for significant reductions in trainable parameters, potentially as low as 0.01% of the original model size for GPT-3 175B.", + "keyword_explanation": "Low-rank representation is a technique used to efficiently encode parameter updates by approximating the full update matrix with lower-rank matrices.", + "metadata": {} + }, + { + "id": "2106.09685v2_page2_card4", + "question": "What are the two main strategies for efficient model adaptation in language modeling, and what are their general limitations?", + "answer": "Two prominent strategies for efficient adaptation in language modeling are adding adapter layers and optimizing input layer activations. However, both have limitations in large-scale, latency-sensitive production environments.", + "keyword_explanation": "Efficient adaptation strategies aim to reduce the computational and memory costs of fine-tuning large models for downstream tasks.", + "metadata": {} + }, + { + "id": "2106.09685v2_page2_card5", + "question": "Why do adapter layers, even with few parameters, introduce inference latency?", + "answer": "Adapter layers, despite having few parameters due to a small bottleneck dimension, introduce extra compute and increase inference latency because they are typically added within each Transformer block and cannot be easily bypassed.", + "keyword_explanation": "Adapter layers are additional small neural network modules inserted into pre-trained models to facilitate adaptation to new tasks.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 3, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "2106.09685v2", + "page_index": 4, + "total_flashcards": 5, + "flashcards": [ + { + "id": "2106.09685v2_page4_card0", + "question": "How does LoRA initialize its trainable matrices and scale their impact during the forward pass?", + "answer": "LoRA initializes $A$ with random Gaussian values and $B$ with zeros, making $\\Delta W = BA$ zero at the start of training. The term $\\Delta W x$ is scaled by $\\frac{\\alpha}{r}$, where $\\alpha$ is a constant. When using Adam optimization, tuning $\\alpha$ is similar to tuning the learning rate if the initialization is scaled appropriately. Therefore, $\\alpha$ is set to the first value of $r$ attempted and not tuned further, as this scaling reduces the need for hyperparameter retuning when $r$ changes.", + "keyword_explanation": "LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning technique that injects trainable low-rank matrices into the layers of a pre-trained model. Instead of fine-tuning all parameters, LoRA fine-tunes only these smaller matrices, significantly reducing the number of trainable parameters and computational cost.", + "metadata": {} + }, + { + "id": "2106.09685v2_page4_card1", + "question": "How does LoRA generalize full fine-tuning and what happens when its rank equals the original weight matrix rank?", + "answer": "LoRA is a generalization of full fine-tuning because it allows for the training of a subset of pre-trained parameters. Unlike traditional methods that might require full-rank updates, LoRA permits the accumulated gradient updates to weight matrices to be low-rank during adaptation. By setting the LoRA rank $r$ to the rank of the pre-trained weight matrices and applying LoRA to all weight matrices while training all biases, LoRA can approximate the expressiveness of full fine-tuning.", + "keyword_explanation": "Full Fine-tuning is the process of updating all parameters of a pre-trained model for a specific downstream task. This approach typically yields the best performance but requires significant computational resources and memory.", + "metadata": {} + }, + { + "id": "2106.09685v2_page4_card2", + "question": "How does LoRA avoid introducing additional inference latency compared to a fully fine-tuned model?", + "answer": "LoRA introduces no additional inference latency because the product of the low-rank matrices, $BA$, can be explicitly computed and added to the original weight matrix $W_0$ to form a new weight matrix $W = W_0 + BA$. This combined matrix can then be used for inference as usual. When switching tasks, the original weights $W_0$ can be recovered by subtracting the $BA$ term and adding a new $B'A'$ for the new task, which is a quick operation with minimal memory overhead.", + "keyword_explanation": "Inference Latency refers to the time delay between providing input to a model and receiving the output. Minimizing inference latency is crucial for deploying models in real-time applications.", + "metadata": {} + }, + { + "id": "2106.09685v2_page4_card3", + "question": "Which weight matrices in a Transformer can LoRA be applied to, and which were prioritized in the study?", + "answer": "LoRA can be applied to any subset of weight matrices within a neural network, including the four self-attention weight matrices ($W_q$, $W_k$, $W_v$, $W_o$) and the two in the MLP module of a Transformer. For simplicity and parameter efficiency in their study, the researchers focused on adapting only the attention weights and freezing the MLP modules.", + "keyword_explanation": "Transformer is a neural network architecture particularly effective for sequence modeling tasks, characterized by its self-attention mechanism. Key components include attention weight matrices ($W_q, W_k, W_v, W_o$) and Multi-Layer Perceptrons (MLPs).", + "metadata": {} + }, + { + "id": "2106.09685v2_page4_card4", + "question": "What is the most significant practical benefit of using LoRA, and how does it impact VRAM usage during training?", + "answer": "The primary practical benefit of LoRA is a significant reduction in memory and storage requirements. By freezing most parameters and only training the low-rank matrices, VRAM usage can be reduced by up to two-thirds, especially when the rank $r$ is much smaller than the original dimension $d_{model}$. This is because the optimizer states for the frozen parameters do not need to be stored. For instance, training GPT-3 175B with LoRA reduced VRAM consumption from 1.2 TB to 350 GB.", + "keyword_explanation": "VRAM (Video Random Access Memory) is the memory used by the computer's graphics processing unit (GPU). High VRAM usage is a common bottleneck in training large deep learning models.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 5, + "total_flashcards": 7, + "flashcards": [ + { + "id": "2106.09685v2_page5_card1", + "question": "How does LoRA impact VRAM consumption and checkpoint size on large models like GPT-3 175B?", + "answer": "LoRA reduces VRAM consumption on GPT-3 175B from 1.2TB to 350GB. With r=4 and adapting only query and value projection matrices, the checkpoint size is reduced by approximately 10,000x (from 350GB to 35MB), enabling training with fewer GPUs and avoiding I/O bottlenecks.", + "keyword_explanation": "LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning technique that reduces the number of trainable parameters by introducing low-rank matrices.", + "metadata": {} + }, + { + "id": "2106.09685v2_page5_card2", + "question": "What are the deployment benefits of using LoRA for task switching?", + "answer": "LoRA allows for cheaper task switching in deployed models by only swapping the small LoRA weights instead of the entire model parameters. This facilitates the creation of numerous customized models that can be dynamically loaded onto machines storing the pre-trained weights in VRAM.", + "keyword_explanation": "Dynamic task switching in deployed models refers to the ability to change the model's task on-the-fly without reloading the entire model, making it more efficient and cost-effective.", + "metadata": {} + }, + { + "id": "2106.09685v2_page5_card3", + "question": "Why does LoRA provide a speedup during training?", + "answer": "LoRA offers a 25% speedup during training on GPT-3 175B compared to full fine-tuning because it bypasses the need to compute gradients for the vast majority of the original model's parameters.", + "keyword_explanation": "Training speedup in LoRA is achieved by only calculating gradients for the newly introduced low-rank matrices, significantly reducing computational overhead compared to full fine-tuning.", + "metadata": {} + }, + { + "id": "2106.09685v2_page5_card4", + "question": "What is a potential limitation of LoRA regarding batching inputs for different tasks?", + "answer": "A limitation of LoRA is the difficulty in batching inputs for different tasks with varying LoRA modules (A and B matrices) within a single forward pass if the A and B matrices are merged into the original weights (W) to minimize inference latency. However, if weights are not merged, dynamic selection of LoRA modules is possible for batches where latency is not a primary concern.", + "keyword_explanation": "Batching inputs with different LoRA modules refers to processing multiple data samples, each potentially requiring a different fine-tuned task represented by unique LoRA weights, in a single computational step.", + "metadata": {} + }, + { + "id": "2106.09685v2_page5_card5", + "question": "On which models and types of tasks was LoRA's performance evaluated?", + "answer": "The LoRA approach was evaluated on downstream tasks using models such as RoBERTa, DeBERTa, and GPT-2, before being scaled up to GPT-3 175B. The evaluations covered a range of Natural Language Understanding (NLU) and Natural Language Generation (NLG) tasks, including the GLUE benchmark for RoBERTa and DeBERTa.", + "keyword_explanation": "Downstream task evaluation is the process of assessing a model's performance on specific applications or tasks after it has undergone pre-training or fine-tuning.", + "metadata": {} + }, + { + "id": "2106.09685v2_page5_card6", + "question": "What specific datasets were used for large-scale LoRA experiments on GPT-3?", + "answer": "For large-scale experiments on GPT-3, LoRA was evaluated on WikiSQL (Natural Language to SQL queries) and SAMSum (conversation summarization) benchmarks. These tasks were used in addition to the GLUE benchmark, which was employed for RoBERTa and DeBERTa evaluations.", + "keyword_explanation": "WikiSQL and SAMSum are datasets used for evaluating Natural Language to SQL query generation and conversation summarization tasks, respectively, particularly for large language models.", + "metadata": {} + }, + { + "id": "2106.09685v2_page5_card7", + "question": "Describe the Fine-Tuning (FT) approach for model adaptation.", + "answer": "Fine-Tuning (FT) involves initializing a model with pre-trained weights and updating all model parameters through gradient descent. A variation involves updating only selected layers while keeping others frozen.", + "keyword_explanation": "Fine-Tuning (FT) is a traditional method for adapting pre-trained models to specific tasks by updating all or a subset of their parameters.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 6, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "2106.09685v2", + "page_index": 7, + "total_flashcards": 4, + "flashcards": [ + { + "id": "2106.09685v2_page7_card1", + "question": "What is the Bias-only or BitFit tuning method?", + "answer": "Bias-only or BitFit is a tuning method where only the bias vectors of a model are trained, while all other parameters are kept frozen.", + "keyword_explanation": "BitFit is a parameter-efficient fine-tuning technique that updates only the bias terms in a model, offering computational savings.", + "metadata": {} + }, + { + "id": "2106.09685v2_page7_card2", + "question": "Describe the Prefix-embedding tuning (PreEmbed) method.", + "answer": "Prefix-embedding tuning (PreEmbed) involves inserting special trainable tokens into the input sequence. These tokens are typically not part of the model's original vocabulary and can be placed at the beginning (prefixing) or end (infixing) of the prompt.", + "keyword_explanation": "PreEmbed tunes embeddings of special tokens that are added to the input sequence, providing a parameter-efficient way to adapt models.", + "metadata": {} + }, + { + "id": "2106.09685v2_page7_card3", + "question": "What is Prefix-layer tuning (PreLayer)?", + "answer": "Prefix-layer tuning (PreLayer) is an advancement of prefix-embedding tuning, building upon its core principles.", + "keyword_explanation": "PreLayer extends PreEmbed by incorporating trainable parameters at different layers, not just in the embeddings.", + "metadata": {} + }, + { + "id": "2106.09685v2_page7_card4", + "question": "How is the number of trainable parameters calculated for Prefix-embedding tuning?", + "answer": "The number of trainable parameters in Prefix-embedding tuning is calculated as the product of the model's hidden dimension ($d_{model}$) and the total number of prefix and infix tokens ($l_p + l_i$).", + "keyword_explanation": "The parameter count for PreEmbed depends on the number of added tokens and the model's embedding size.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 8, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "2106.09685v2", + "page_index": 9, + "total_flashcards": 4, + "flashcards": [ + { + "id": "2106.09685v2_page9_card0", + "question": "What is RoBERTa and how does it compare to BERT in terms of performance and parameters?", + "answer": "RoBERTa (Liu et al., 2019) improved upon BERT's pre-training strategy, enhancing performance without significantly increasing trainable parameters. Although larger models have surpassed it on benchmarks like GLUE, RoBERTa remains a popular choice for practitioners due to its competitive performance relative to its size. The study utilizes RoBERTa base (125M) and RoBERTa large (355M) from the HuggingFace Transformers library to evaluate efficient adaptation methods.", + "keyword_explanation": "RoBERTa is a pre-trained language model developed by optimizing BERT's pre-training recipe, known for its efficiency and competitive performance.", + "metadata": {} + }, + { + "id": "2106.09685v2_page9_card1", + "question": "What modifications were implemented to ensure a fair comparison between LoRA and adapter evaluations, and what do the $\\dagger$ symbols indicate?", + "answer": "To ensure a fair comparison between LoRA and adapters, two changes were made: a consistent batch size and a sequence length of 128 were used for all tasks, matching the adapter baselines. Additionally, models for MRPC, RTE, and STS-B were initialized with pre-trained weights, rather than weights already adapted to MNLI, unlike the fine-tuning baseline. Runs adhering to this setup are marked with a $\\dagger$.", + "keyword_explanation": "Fair comparison in this context means ensuring that different methods being evaluated are tested under identical conditions, such as batch size, sequence length, and initial model weights, to isolate the performance differences attributable to the methods themselves.", + "metadata": {} + }, + { + "id": "2106.09685v2_page9_card2", + "question": "What is DeBERTa XXL, and what is being evaluated regarding its performance with LoRA?", + "answer": "DeBERTa XXL (1.5B) is a large-scale, recent variant of BERT that achieves highly competitive results on benchmarks like GLUE and SuperGLUE. The research investigates whether LoRA can achieve performance comparable to a full fine-tuning of DeBERTa XXL on the GLUE benchmark.", + "keyword_explanation": "DeBERTa XXL is an advanced language model based on BERT, notable for its extensive training scale and strong performance on NLP benchmarks.", + "metadata": {} + }, + { + "id": "2106.09685v2_page9_card3", + "question": "How is LoRA's effectiveness being tested for NLG models, and which models and tasks are used in this evaluation?", + "answer": "The study explores whether LoRA is also effective for Natural Language Generation (NLG) tasks by evaluating it on GPT-2 medium and large models. The setup closely follows Li & Liang (2021) for direct comparison, with results primarily presented for the E2E NLG Challenge. Further results on WebNLG and DART datasets are available in the appendix.", + "keyword_explanation": "NLG stands for Natural Language Generation, a subfield of artificial intelligence focused on producing human-like text from data.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 10, + "total_flashcards": 5, + "flashcards": [ + { + "id": "2106.09685v2_page10_card1", + "question": "How does LoRA perform compared to full fine-tuning on benchmarks like WikiSQL, MultiNLI-matched, and SAMSum, and what are the typical performance fluctuations?", + "answer": "LoRA (Low-Rank Adaptation) demonstrates superior performance compared to prior methods, including full fine-tuning, across various benchmarks such as WikiSQL, MultiNLI-matched, and SAMSum. Its reported results show minimal fluctuation: around ±0.5% on WikiSQL, ±0.1% on MNLI-m, and ±0.2/±0.2/±0.1 for R1/R2/RL on SAMSum.", + "keyword_explanation": "LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning technique that achieves comparable or better performance than full fine-tuning by injecting trainable low-rank matrices into the model's layers.", + "metadata": {} + }, + { + "id": "2106.09685v2_page10_card2", + "question": "How does LoRA perform when scaled up to GPT-3 175B compared to the fine-tuning baseline across different datasets?", + "answer": "When scaling up to GPT-3 with 175 billion parameters, LoRA matches or exceeds the performance of the full fine-tuning baseline across all three tested datasets (WikiSQL, MNLI-m, SAMSum). This indicates LoRA's effectiveness and scalability even with very large language models.", + "keyword_explanation": "Scaling up refers to testing the LoRA method on extremely large language models, such as GPT-3 with 175 billion parameters, to evaluate its performance and efficiency at scale.", + "metadata": {} + }, + { + "id": "2106.09685v2_page10_card3", + "question": "What performance degradation was observed with an increasing number of special tokens for prefix-embedding and prefix-layer tuning?", + "answer": "The study observed a significant performance drop in adaptation methods like prefix-embedding tuning and prefix-layer tuning when using more than 256 and 32 special tokens, respectively. This suggests that an excessive number of special tokens can negatively impact model performance, possibly by shifting the input distribution away from the pre-training data distribution.", + "keyword_explanation": "Special tokens are added to the input to provide specific information or instructions to the language model. However, using too many can degrade performance, as observed in studies on prefix-embedding and prefix-layer tuning.", + "metadata": {} + }, + { + "id": "2106.09685v2_page10_card4", + "question": "What does Figure 2 show regarding the scalability and task performance of LoRA compared to other adaptation methods on GPT-3 175B?", + "answer": "Figure 2 illustrates that LoRA exhibits better scalability and task performance compared to other adaptation methods when evaluated on GPT-3 175B across WikiSQL and MNLI-matched datasets. The graph shows validation accuracy plotted against the number of trainable parameters.", + "keyword_explanation": "Scalability in this context refers to how well an adaptation method's performance improves or maintains its effectiveness as the size of the model (e.g., number of parameters) increases.", + "metadata": {} + }, + { + "id": "2106.09685v2_page10_card5", + "question": "What information is presented in Table 4 regarding different adaptation methods on GPT-3?", + "answer": "Table 4 presents a comparison of different adaptation methods on GPT-3, evaluating their performance on WikiSQL (Accuracy %), MNLI-m (Accuracy %), and SAMSum (Rouge-1/2/L). The table includes metrics for full fine-tuning (FT), BitFit, PreEmbed, PreLayer, AdapterH (with varying parameters), and LoRA (with varying parameters).", + "keyword_explanation": "Table 4 in the document provides a comparative analysis of various parameter-efficient fine-tuning methods, including LoRA, against full fine-tuning on different NLP tasks, highlighting their performance metrics and the number of trainable parameters.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 11, + "total_flashcards": 9, + "flashcards": [ + { + "id": "2106.09685v2_page11_card1", + "question": "How was the Transformer architecture initially applied to autoregressive language modeling?", + "answer": "The Transformer-XL model applied the Transformer architecture to autoregressive language modeling using a stack of Transformer decoders, and since then, Transformer-based language models have become dominant in Natural Language Processing (NLP), achieving state-of-the-art results on numerous tasks.", + "keyword_explanation": "Transformer-XL is a model that utilizes the Transformer architecture, specifically a stack of Transformer decoders, for autoregressive language modeling. It marked a significant advancement in NLP.", + "metadata": {} + }, + { + "id": "2106.09685v2_page11_card2", + "question": "What is the significance of BERT and GPT-2 in NLP?", + "answer": "The paradigm shift with BERT and GPT-2 involves pretraining large Transformer language models on massive amounts of general domain text, followed by fine-tuning on task-specific data. This approach yields significant performance gains compared to direct training on task-specific data.", + "keyword_explanation": "BERT and GPT-2 represent a new paradigm in NLP where large Transformer models are first pretrained on general text data and then fine-tuned for specific tasks, leading to improved performance.", + "metadata": {} + }, + { + "id": "2106.09685v2_page11_card3", + "question": "How does the size of Transformer models relate to their performance?", + "answer": "The performance of large Transformer language models like GPT-3 generally improves with increased size. GPT-3, with 175 billion parameters, is the largest single Transformer language model trained to date, and increasing model size remains an active area of research.", + "keyword_explanation": "Larger Transformer models tend to perform better. GPT-3 is a prime example of this trend, being the largest Transformer model trained so far, highlighting the ongoing research into scaling up these models.", + "metadata": {} + }, + { + "id": "2106.09685v2_page11_card4", + "question": "What is prompt engineering and why is it important?", + "answer": "Prompt engineering, also known as prompt hacking, is the empirical art of composing and formatting input prompts to maximize a model's performance on a desired task. This is crucial because the performance of models like GPT-3 heavily depends on the input prompt.", + "keyword_explanation": "Prompt engineering is the practice of carefully designing input prompts to elicit the best possible performance from language models. It's an empirical process necessary due to the sensitivity of model behavior to prompts.", + "metadata": {} + }, + { + "id": "2106.09685v2_page11_card5", + "question": "What is fine-tuning in the context of large language models?", + "answer": "Fine-tuning involves retraining a model that has been pretrained on general domains to adapt it to a specific task. While it can involve retraining all parameters, variants include updating only a subset of parameters to improve efficiency.", + "keyword_explanation": "Fine-tuning is the process of adapting a pretrained model to a specific task by further training it, often on task-specific data. This is a common technique to improve performance on downstream applications.", + "metadata": {} + }, + { + "id": "2106.09685v2_page11_card6", + "question": "What are the challenges associated with fine-tuning very large language models like GPT-3?", + "answer": "Fine-tuning extremely large models like GPT-3 (175B parameters) is challenging due to the large checkpoint files produced and the high hardware requirements, which create a significant barrier to entry, making the process similar in difficulty to pre-training.", + "keyword_explanation": "The enormity of models like GPT-3 poses practical challenges for fine-tuning. The large memory footprint and computational demands make it difficult for many users to perform this adaptation step.", + "metadata": {} + }, + { + "id": "2106.09685v2_page11_card7", + "question": "What is the goal of Parameter-Efficient Adaptation methods?", + "answer": "Parameter-Efficient Adaptation methods, such as inserting adapter layers between existing neural network layers, aim to reduce the number of parameters that need to be trained or modified. Our method employs a similar bottleneck structure to constrain weight updates to a low-rank form.", + "keyword_explanation": "Parameter-Efficient Adaptation techniques seek to optimize large models by modifying or adding only a small number of parameters. This contrasts with full fine-tuning, making the adaptation process more feasible.", + "metadata": {} + }, + { + "id": "2106.09685v2_page11_card8", + "question": "What is a key difference between our method's weight updates and traditional adapter layers during inference?", + "answer": "Our method's learned weights can be merged with the main weights during inference, thereby introducing no additional latency. In contrast, traditional adapter layers, inserted between existing layers, do introduce latency as they require extra computation.", + "keyword_explanation": "A key advantage of our method over traditional adapter layers is the ability to merge learned weights with main weights during inference. This eliminates the latency introduced by the extra computations required by adapter layers.", + "metadata": {} + }, + { + "id": "2106.09685v2_page11_card9", + "question": "What is COMPACTER and how does it relate to adapter layers?", + "answer": "COMPACTER is an extension of adapter layers that parametrizes them using Kronecker products and a predetermined weight-sharing scheme. This approach aims to improve the parameter efficiency of adapter-based methods.", + "keyword_explanation": "COMPACTER is an advanced form of adapter layers that utilizes Kronecker products and weight sharing to enhance parameter efficiency. It represents a contemporary development in adapting neural network layers.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 12, + "total_flashcards": 10, + "flashcards": [ + { + "id": "2106.09685v2_page12_card1", + "question": "What is the potential benefit of combining LoRA with other tensor product-based methods?", + "answer": "LoRA, combined with other tensor product-based methods, has the potential to enhance parameter efficiency, a possibility that is reserved for future research.", + "keyword_explanation": "LoRA (Low-Rank Adaptation) is a technique that aims to improve the efficiency of large language models by reducing the number of trainable parameters. It achieves this by introducing low-rank matrices into the model architecture.", + "metadata": {} + }, + { + "id": "2106.09685v2_page12_card2", + "question": "How does optimizing input word embeddings compare to traditional prompt engineering?", + "answer": "Optimizing input word embeddings is a more recent approach that is similar to a continuous and differentiable version of prompt engineering. This method involves adjusting the word embeddings rather than fine-tuning the entire model.", + "keyword_explanation": "Input word embeddings are numerical representations of words that capture their semantic meaning. Optimizing these embeddings allows for more nuanced control over the model's behavior without full fine-tuning.", + "metadata": {} + }, + { + "id": "2106.09685v2_page12_card3", + "question": "What is a potential limitation of optimizing input word embeddings related to sequence length?", + "answer": "While optimizing input word embeddings offers a way to adapt models, it can be limited by sequence length. As more special tokens are added to the prompt for this optimization, they consume available space for task-specific tokens, especially when positional embeddings are also learned.", + "keyword_explanation": "Sequence length in language models refers to the maximum number of tokens a model can process at once. Exceeding this limit can lead to performance degradation or inability to process the input.", + "metadata": {} + }, + { + "id": "2106.09685v2_page12_card4", + "question": "What is the significance of low-rank structure in machine learning and deep learning?", + "answer": "Low-rank structure is frequently observed in machine learning, with many problems exhibiting an intrinsic low-rank property. This is also seen in deep learning, where over-parameterized neural networks often develop low-rank properties after training.", + "keyword_explanation": "Low-rank structure in a matrix means that the matrix can be approximated by the product of two smaller matrices. This property is significant because it implies redundancy and can be exploited for compression and efficiency.", + "metadata": {} + }, + { + "id": "2106.09685v2_page12_card5", + "question": "How do previous works imposing low-rank constraints differ from the focus on low-rank updates for adaptation?", + "answer": "Some research has explicitly incorporated low-rank constraints during the training of neural networks. However, a key distinction is that these methods do not focus on using low-rank updates to adapt a frozen model for downstream tasks, which is the focus of the work discussed.", + "keyword_explanation": "Imposing low-rank constraints during training means actively enforcing a low-rank structure on the model's parameters from the outset. This differs from low-rank adaptation, which applies such constraints to updates on an already trained model.", + "metadata": {} + }, + { + "id": "2106.09685v2_page12_card6", + "question": "What theoretical advantages do neural networks and low-rank adaptations offer according to literature?", + "answer": "Neural networks can outperform classical learning methods, including neural tangent kernels, when the underlying data possesses a low-rank structure. Additionally, theoretical findings suggest that low-rank adaptations can be beneficial for adversarial training.", + "keyword_explanation": "Neural Tangent Kernels (NTK) are used to analyze the training dynamics of neural networks. They provide a way to understand how over-parameterized networks learn, and comparing them to neural networks themselves highlights the unique advantages of the latter in certain scenarios.", + "metadata": {} + }, + { + "id": "2106.09685v2_page12_card7", + "question": "Why is the proposed low-rank adaptation update considered well-motivated?", + "answer": "The low-rank adaptation update is well-supported by existing literature, which shows that neural networks with low-rank structures outperform other methods and that low-rank adaptations can aid in adversarial training. This provides a strong theoretical foundation for the proposed method.", + "keyword_explanation": "Well-motivated in this context means that the proposed approach (low-rank adaptation update) is justified and supported by previous theoretical and empirical findings in the field.", + "metadata": {} + }, + { + "id": "2106.09685v2_page12_card8", + "question": "What are the practical advantages of using low-rank structure in model adaptation studies?", + "answer": "Low-rank structure offers benefits such as reducing hardware requirements, enabling parallel experiments, and providing better interpretability by showing the correlation between update weights and pre-trained weights. This is particularly evident in studies on large models like GPT-3 175B.", + "keyword_explanation": "Interpretability in machine learning refers to the degree to which a human can understand the cause of a decision or how a model works. Low-rank structure can enhance this by simplifying the relationship between different model components.", + "metadata": {} + }, + { + "id": "2106.09685v2_page12_card9", + "question": "What was a key finding when applying low-rank adaptation to GPT-3 175B?", + "answer": "Studies on GPT-3 175B using low-rank adaptation achieved a significant reduction in trainable parameters (up to 10,000x) without negatively impacting task performance. This highlights the efficiency gains possible with this method on very large models.", + "keyword_explanation": "GPT-3 175B refers to a specific large language model developed by OpenAI, known for its massive size (175 billion parameters). Studying adaptation methods on such models is crucial for understanding their scalability and efficiency.", + "metadata": {} + }, + { + "id": "2106.09685v2_page12_card10", + "question": "What are the primary research questions explored concerning low-rank updates in Transformers?", + "answer": "Key research questions regarding low-rank updates include identifying which weight matrices in a Transformer to adapt for maximum performance under a budget, determining if the optimal adaptation matrix is indeed rank-deficient and choosing a suitable rank, and understanding the correlation between the adaptation matrix ($\\Delta W$) and the original weights (W).", + "keyword_explanation": "Adaptation matrix ($\\Delta W$) in this context refers to the changes or updates applied to the original weight matrices (W) of a pre-trained model to tailor it for a specific downstream task.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 13, + "total_flashcards": 6, + "flashcards": [ + { + "id": "2106.09685v2_page13_card01", + "question": "Which weight matrices in the Transformer's self-attention module should be adapted using LoRA for the best performance on downstream tasks, according to the experiments on GPT-3?", + "answer": "Adapting both the $W_q$ and $W_v$ weight matrices yields the best performance across the tested datasets (WikiSQL and MultiNLI). This suggests that distributing the adaptation across multiple weight matrices, even with a smaller rank, is more effective than adapting a single matrix with a larger rank.", + "keyword_explanation": "LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning technique where a low-rank update is added to the original weights. This card focuses on which specific weight matrices within the Transformer's self-attention module should be adapted using LoRA for optimal downstream task performance.", + "metadata": {} + }, + { + "id": "2106.09685v2_page13_card02", + "question": "What is the optimal rank (r) for LoRA adaptation, and what does it suggest about the nature of the update matrix $\\Delta W$?", + "answer": "A rank as small as one can be sufficient for adapting $W_q$ and $W_v$ on certain datasets. This indicates that the update matrix, $\\Delta W$, might have a very small intrinsic rank, meaning most of the important information for adaptation can be captured by a low-dimensional subspace.", + "keyword_explanation": "Rank (r) in LoRA refers to the dimension of the low-rank update matrices. A lower rank means fewer trainable parameters, making the fine-tuning more efficient. This card explores the impact of different rank values on model performance.", + "metadata": {} + }, + { + "id": "2106.09685v2_page13_card03", + "question": "How does the subspace spanned by a higher-rank LoRA adaptation matrix compare to that of a lower-rank one, and what does this imply about the effectiveness of increasing rank?", + "answer": "The subspace spanned by the top singular vectors of a higher-rank adaptation matrix ($r=64$) largely contains the subspace spanned by the top singular vectors of a lower-rank adaptation matrix ($r=8$). This suggests that increasing the rank beyond a certain point may not capture significantly more useful information and could introduce noise.", + "keyword_explanation": "Subspace similarity measures the overlap between the vector spaces spanned by the top singular vectors of two matrices. It's used here to understand if higher ranks in LoRA capture new, meaningful directions or simply expand upon directions already present at lower ranks.", + "metadata": {} + }, + { + "id": "2106.09685v2_page13_card04", + "question": "What do the top singular-vector directions of LoRA adaptation matrices reveal about the sufficiency of low-rank adaptations?", + "answer": "The top singular-vector directions of the adaptation matrices ($A_{r=8}$ and $A_{r=64}$) are highly similar and contain the most useful information for downstream tasks. Directions corresponding to the top singular vectors show significant overlap, suggesting that a low-rank adaptation matrix is sufficient and higher ranks might capture noise.", + "keyword_explanation": "Singular Value Decomposition (SVD) is a matrix factorization technique that decomposes a matrix into its principal components (singular vectors and values). In this context, SVD helps analyze the 'intrinsic rank' and importance of different directions within the LoRA adaptation matrices.", + "metadata": {} + }, + { + "id": "2106.09685v2_page13_card05", + "question": "Is the adaptation matrix $\\Delta W$ in LoRA truly low-rank, and what evidence supports this claim?", + "answer": "The adaptation matrix $\\Delta W$ can indeed have a very low rank. This is supported by the observation that the top singular-vector directions of adaptation matrices learned with different ranks (e.g., $r=8$ and $r=64$) show significant overlap, implying that a low-dimensional subspace captures the essential updates.", + "keyword_explanation": "Intrinsic rank refers to the minimum number of dimensions required to capture the essential information or variability within a matrix or data. The research suggests that LoRA's $\\Delta W$ has a low intrinsic rank, making low-rank adaptations highly effective.", + "metadata": {} + }, + { + "id": "2106.09685v2_page13_card06", + "question": "How is the relationship between the adaptation matrix $\\Delta W$ and the original weight matrix $W$ investigated in terms of their 'size' and shared directions?", + "answer": "When projecting the original weight matrix ($W$) onto the subspace defined by the singular vectors of the adaptation matrix ($\\Delta W$), the Frobenius norm of the projected matrix is compared to the norm of the original matrix. This comparison helps determine how much of the original weight's structure is captured or altered by the low-rank adaptation.", + "keyword_explanation": "Frobenius norm ($|| \text{M} ||_F$) is a measure of the 'size' or magnitude of a matrix, calculated as the square root of the sum of the absolute squares of its elements. It's used here to quantify the scale of the adaptation relative to the original weights.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 16, + "total_flashcards": 6, + "flashcards": [ + { + "id": "2106.09685v2_page16_card1", + "question": "How does the $\\Delta W$ matrix correlate with the original weight matrix $W$ and what does this imply about its function?", + "answer": "The $\\Delta W$ matrix, derived from the 48th layer of GPT-3, shows a stronger correlation with the original weight matrix $W$ than a random matrix. This indicates that $\\Delta W$ primarily amplifies existing features within $W$, rather than introducing entirely new ones.", + "keyword_explanation": "$\\Delta W$: This represents the change or adaptation applied to the original weight matrix ($W$). In the context of LoRA, it's a low-rank matrix that modifies the behavior of the pre-trained model for specific tasks.", + "metadata": {} + }, + { + "id": "2106.09685v2_page16_card2", + "question": "What is unique about the directions amplified by $\\Delta W$ compared to the existing emphasis in $W$?", + "answer": "Instead of repeating the top singular directions already present in $W$, $\\Delta W$ selectively amplifies directions that were not heavily emphasized in the original pre-trained model. This suggests a targeted enhancement of under-represented features relevant to downstream tasks.", + "keyword_explanation": "Singular directions: These are specific directions in the vector space of the weight matrix that capture the most variance or importance. Amplifying specific singular directions allows for targeted modifications of the model's behavior.", + "metadata": {} + }, + { + "id": "2106.09685v2_page16_card3", + "question": "What is the general magnitude of the amplification factor observed for $\\Delta W$, and what does this imply?", + "answer": "The amplification factor for $\\Delta W$ can be substantial, approximately 6.91 when considering the ratio of singular values (e.g., $21.5 \\approx 6.91 / 0.32$ for $r=4$). This significant amplification suggests that LoRA can drastically alter the model's focus on certain features.", + "keyword_explanation": "Amplification factor: This refers to the magnitude by which LoRA increases the influence of specific features or directions within the model's weights. A large amplification factor means these features have a much stronger impact after adaptation.", + "metadata": {} + }, + { + "id": "2106.09685v2_page16_card4", + "question": "What is LoRA and what are its key benefits compared to traditional fine-tuning?", + "answer": "LoRA (Low-Rank Adaptation) is an efficient strategy for adapting large language models. It avoids introducing inference latency or reducing sequence length while maintaining high model quality, and allows for quick task-switching by sharing most pre-trained parameters.", + "keyword_explanation": "LoRA (Low-Rank Adaptation): An efficient method for fine-tuning large neural networks, particularly language models, by adding small, trainable low-rank matrices to the original weight matrices.", + "metadata": {} + }, + { + "id": "2106.09685v2_page16_card5", + "question": "To which types of neural networks can the principles of LoRA be applied?", + "answer": "LoRA's principles are applicable to any neural network with dense layers, not just Transformer language models. This generality suggests that LoRA can be a versatile tool for efficient adaptation across various deep learning architectures.", + "keyword_explanation": "Dense layers: Layers in a neural network where each neuron is connected to every neuron in the previous layer. LoRA's applicability to these layers makes it broadly useful in deep learning.", + "metadata": {} + }, + { + "id": "2106.09685v2_page16_card6", + "question": "What are two potential future research directions for LoRA?", + "answer": "Future work directions for LoRA include combining it with other efficient adaptation methods for potentially synergistic improvements. Additionally, further research is needed to understand the underlying mechanisms of how LoRA transforms pre-trained features for downstream tasks.", + "keyword_explanation": "Efficient adaptation methods: Techniques like LoRA, parameter-efficient fine-tuning (PEFT), or adapter modules that aim to reduce the computational cost and memory footprint of adapting large pre-trained models.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 17, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "2106.09685v2", + "page_index": 18, + "total_flashcards": 5, + "flashcards": [ + { + "id": "2106.09685v2_page18_card01", + "question": "What is the Samsum Corpus and its primary purpose in natural language processing?", + "answer": "The Samsum Corpus is a dataset of human-annotated dialogues specifically designed for abstractive summarization tasks. It was compiled to facilitate research and development in automatically generating concise summaries of conversations.", + "keyword_explanation": "Samsum Corpus: A collection of dialogue data that has been reviewed and annotated by humans, intended for training and evaluating models that perform abstractive summarization.", + "metadata": {} + }, + { + "id": "2106.09685v2_page18_card02", + "question": "What is Grassmann Discriminant Analysis and what does it unify in machine learning?", + "answer": "Grassmann Discriminant Analysis (GDA) provides a unified framework for subspace-based learning. It unifies various subspace learning methods by viewing them through the lens of discriminant analysis on the Grassmann manifold.", + "keyword_explanation": "Grassmann Discriminant Analysis: A machine learning technique that unifies subspace learning methods by framing them as discriminant analysis problems on the Grassmann manifold, which represents spaces of subspaces.", + "metadata": {} + }, + { + "id": "2106.09685v2_page18_card03", + "question": "What is the main objective of the WebNLG challenge mentioned in the context?", + "answer": "The WebNLG challenge focuses on the task of generating text from RDF data. This involves converting structured data expressed in RDF (Resource Description Framework) into natural language sentences.", + "keyword_explanation": "WebNLG Challenge: A competition and research effort aimed at improving the generation of natural language text from structured data, specifically data represented in RDF format.", + "metadata": {} + }, + { + "id": "2106.09685v2_page18_card04", + "question": "Who conducted a literature survey on low-rank tensor approximation techniques, and what do these techniques generally involve?", + "answer": "A literature survey on low-rank tensor approximation techniques was conducted by Lars Grasedyck, Daniel Kressner, and Christine Tobler. This survey covers various methods for approximating tensors with a low-rank structure.", + "keyword_explanation": "Low-Rank Tensor Approximation: A set of techniques used to represent high-dimensional data, structured as tensors, by approximating them with a simpler form that has a low rank, reducing computational complexity and storage.", + "metadata": {} + }, + { + "id": "2106.09685v2_page18_card05", + "question": "What is the central question addressed by Behrooz Ghorbani and colleagues in their work?", + "answer": "The paper \"When do neural networks outperform kernel methods?\" by Behrooz Ghorbani et al. investigates the conditions under which neural networks achieve better performance compared to traditional kernel methods. This is a significant question in understanding the capabilities of different machine learning models.", + "keyword_explanation": "Neural Networks vs. Kernel Methods: This refers to a comparison between two major classes of machine learning algorithms. Neural networks learn complex, hierarchical representations, while kernel methods implicitly map data to high-dimensional feature spaces.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 19, + "total_flashcards": 9, + "flashcards": [ + { + "id": "2106.09685v2_page19_card0", + "question": "What is DeBERTa and what is its key characteristic?", + "answer": "The paper discusses DeBERTa, a model that enhances BERT by incorporating decoding-enhanced BERT with disentangled attention. This approach aims to improve performance in natural language processing tasks.", + "keyword_explanation": "DeBERTa is a model that improves upon BERT by using disentangled attention mechanisms and decoding enhancements.", + "metadata": {} + }, + { + "id": "2106.09685v2_page19_card1", + "question": "What is Parameter-Efficient Transfer Learning for NLP?", + "answer": "Parameter-Efficient Transfer Learning for NLP is a technique that focuses on adapting pre-trained language models to downstream tasks with minimal parameter updates. This approach is beneficial for efficiency and preventing catastrophic forgetting.", + "keyword_explanation": "Parameter-Efficient Transfer Learning involves efficiently fine-tuning large pre-trained models for specific tasks by modifying only a small subset of parameters.", + "metadata": {} + }, + { + "id": "2106.09685v2_page19_card2", + "question": "What is the main idea behind 'Speeding up convolutional neural networks with low rank expansions'?", + "answer": "The paper 'Speeding up convolutional neural networks with low rank expansions' by Jaderberg et al. explores methods to accelerate the performance of Convolutional Neural Networks (CNNs) by utilizing low-rank approximations of matrices within the network.", + "keyword_explanation": "Low rank expansions are a mathematical technique used to approximate matrices with lower-dimensional representations, aiming to reduce computational complexity and improve efficiency in neural networks.", + "metadata": {} + }, + { + "id": "2106.09685v2_page19_card3", + "question": "What aspects of factorized neural layers are examined in the paper by Khodak et al.?", + "answer": "The paper 'Initialization and regularization of factorized neural layers' by Khodak et al. investigates how initialization strategies and regularization techniques impact the training and performance of neural networks with factorized layers.", + "keyword_explanation": "Factorized neural layers are layers in a neural network where the weight matrix is decomposed into smaller matrices, potentially improving efficiency and reducing the number of parameters.", + "metadata": {} + }, + { + "id": "2106.09685v2_page19_card4", + "question": "What is Adam and how does it work?", + "answer": "Adam: A method for stochastic optimization is a widely used optimization algorithm for training deep learning models. It adapts the learning rate for each parameter based on estimates of first and second moments of the gradients.", + "keyword_explanation": "Adam is an optimization algorithm that uses adaptive learning rates for each parameter, combining the advantages of two other extensions of stochastic gradient descent: AdaGrad and RMSProp.", + "metadata": {} + }, + { + "id": "2106.09685v2_page19_card5", + "question": "How does G-Shard enable scaling of giant models?", + "answer": "G-Shard is a method for scaling giant models using conditional computation and automatic sharding. It aims to enable the training of extremely large models by distributing computation and parameters efficiently across multiple devices.", + "keyword_explanation": "G-Shard tackles the challenge of training massive AI models by employing conditional computation, where parts of the model are activated only when needed, and automatic sharding, which partitions the model across hardware.", + "metadata": {} + }, + { + "id": "2106.09685v2_page19_card6", + "question": "What does 'The Power of Scale for Parameter-Efficient Prompt Tuning' investigate?", + "answer": "The Power of Scale for Parameter-Efficient Prompt Tuning is a study that explores the impact of model scale on the effectiveness of prompt tuning, a method for adapting large language models with a small number of trainable parameters.", + "keyword_explanation": "Prompt tuning is a parameter-efficient technique that involves prepending trainable 'prompt' embeddings to the input of a language model, rather than fine-tuning the entire model.", + "metadata": {} + }, + { + "id": "2106.09685v2_page19_card7", + "question": "What is the significance of measuring the intrinsic dimension of objective landscapes?", + "answer": "Measuring the Intrinsic Dimension of Objective Landscapes examines how the complexity and shape of the optimization landscape, characterized by its intrinsic dimension, affect the training process and generalization of machine learning models.", + "keyword_explanation": "The intrinsic dimension of an objective landscape refers to the minimum number of dimensions needed to capture the essential structure of the loss function, providing insights into the difficulty of optimization.", + "metadata": {} + }, + { + "id": "2106.09685v2_page19_card8", + "question": "What is Prefix-Tuning and how does it enhance text generation?", + "answer": "Prefix-Tuning: Optimizing Continuous Prompts for Generation is a method for improving text generation by optimizing continuous prompt embeddings that are prepended to the input sequence. This allows for efficient adaptation of pre-trained models.", + "keyword_explanation": "Prefix-Tuning modifies the behavior of pre-trained language models for generation tasks by learning a small, continuous vector (a 'prefix') that is added to the input, guiding the model's output.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 20, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "2106.09685v2", + "page_index": 21, + "total_flashcards": 8, + "flashcards": [ + { + "id": "2106.09685v2_page21_card0", + "question": "What is \"GPT Understands, Too\" and who are its authors?", + "answer": "GPT Understands, Too is a research paper authored by Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, and Jie Tang, published in arXiv in March 2021.", + "keyword_explanation": "GPT Understands, Too is a paper that explores the understanding capabilities of GPT models, authored by a team including Xiao Liu and Jie Tang.", + "metadata": {} + }, + { + "id": "2106.09685v2_page21_card1", + "question": "Who are the authors of \"Roberta: A robustly optimized BERT pretraining approach\" and when was it published?", + "answer": "Roberta: A robustly optimized BERT pretraining approach is a paper from 2019 by Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov.", + "keyword_explanation": "Roberta is a pretraining approach for BERT models, developed to improve robustness and optimization, with its foundational work presented in a 2019 paper.", + "metadata": {} + }, + { + "id": "2106.09685v2_page21_card2", + "question": "What is \"Decoupled weight decay regularization\" and who proposed it?", + "answer": "Decoupled weight decay regularization is a technique introduced by Ilya Loshchilov and Frank Hutter, with publications in 2017 and 2019.", + "keyword_explanation": "Decoupled weight decay regularization is a method for improving the training of neural networks by separating weight decay from the optimization process, a concept detailed by Loshchilov and Hutter.", + "metadata": {} + }, + { + "id": "2106.09685v2_page21_card3", + "question": "What is \"Compacter: Efficient low-rank hypercomplex adapter layers\" and who are the authors?", + "answer": "Compacter: Efficient low-rank hypercomplex adapter layers is a 2021 paper by Rabeeh Karimi Mahabadi, James Henderson, and Sebastian Ruder.", + "keyword_explanation": "Compacter refers to an efficient method for using low-rank hypercomplex adapter layers, presented in a 2021 publication by Mahabadi, Henderson, and Ruder.", + "metadata": {} + }, + { + "id": "2106.09685v2_page21_card4", + "question": "What is \"Dart: Open-domain structured data record to text generation\" and who authored it?", + "answer": "Dart: Open-domain structured data record to text generation is a 2020 research paper authored by Linyong Nan, Dragomir Radev, Rui Zhang, Amrit Rau, Abhinand Sivaprasad, Chiachun Hsieh, Xiangru Tang, Aadit Vyas, Neha Verma, and Pranav Krishna.", + "keyword_explanation": "Dart is a system for generating text from structured data records in an open domain, as detailed in a 2020 paper by Nan and colleagues.", + "metadata": {} + }, + { + "id": "2106.09685v2_page21_card5", + "question": "What is the \"e2e dataset\" and when was it introduced?", + "answer": "The e2e dataset is a dataset for end-to-end generation challenges, introduced in a 2017 arXiv preprint by Jekaterina Novikova, Ondrej Dusek, and Verena Rieser.", + "keyword_explanation": "The e2e dataset is designed to provide new challenges for end-to-end generation tasks in natural language processing, originating from work by Novikova, Dusek, and Rieser.", + "metadata": {} + }, + { + "id": "2106.09685v2_page21_card6", + "question": "What topic is covered in the 2019 paper \"Generalization guarantees for neural networks via harnessing the low-rank structure of the Jacobian\" and who are the authors?", + "answer": "Generalization guarantees for neural networks via harnessing the low-rank structure of the Jacobian is a 2019 paper by Samet Oymak, Zalan Fabian, Mingchen Li, and Mahdi Soltanolkotabi.", + "keyword_explanation": "This paper explores how the low-rank structure of the Jacobian matrix in neural networks can provide generalization guarantees, authored by Oymak and collaborators in 2019.", + "metadata": {} + }, + { + "id": "2106.09685v2_page21_card7", + "question": "What is \"Adapter-fusion: Non-destructive task composition for transfer learning\" and who wrote it?", + "answer": "Adapter-fusion: Non-destructive task composition for transfer learning is a 2021 paper by Jonas Pfeiffer, Aishwarya Kamath, Andreas Ruckl e, Kyunghyun Cho, and Iryna Gurevych.", + "keyword_explanation": "Adapter-fusion is a technique for combining different tasks in transfer learning without interference, presented in a 2021 paper by Pfeiffer and colleagues.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 22, + "total_flashcards": 6, + "flashcards": [ + { + "id": "2106.09685v2_page22_card0", + "question": "What is the main contribution of Daniel Povey et al.'s paper in 2018?", + "answer": "This paper introduces semi-orthogonal low-rank matrix factorization as a technique to improve deep neural networks.", + "keyword_explanation": "Semi-orthogonal low-rank matrix factorization is a method used in deep learning to decompose matrices into smaller, lower-rank matrices, which can help in reducing the number of parameters and improving the efficiency of neural networks. The semi-orthogonal constraint further regularizes the factorization process.", + "metadata": {} + }, + { + "id": "2106.09685v2_page22_card1", + "question": "What is the primary goal of the research by Alec Radford et al. on generative pre-training?", + "answer": "This work focuses on improving language understanding through generative pre-training, a method that leverages large amounts of text data to train language models.", + "keyword_explanation": "Generative pre-training is a technique where a model is first trained on a large corpus of unlabeled text data to learn general language representations. This pre-trained model can then be fine-tuned for specific downstream tasks, such as language understanding.", + "metadata": {} + }, + { + "id": "2106.09685v2_page22_card2", + "question": "What key insight is presented in the paper 'Language Models are Unsupervised Multitask Learners'?", + "answer": "The paper \"Language Models are Unsupervised Multitask Learners\" by Alec Radford et al. suggests that large language models can perform various tasks without explicit task-specific training, demonstrating their versatility.", + "keyword_explanation": "Unsupervised multitask learning in the context of language models refers to the ability of a single model to perform a wide range of tasks (e.g., translation, summarization, question answering) without needing to be trained separately for each task. This is achieved through large-scale pre-training.", + "metadata": {} + }, + { + "id": "2106.09685v2_page22_card3", + "question": "What is the purpose of the 'Know what you don’t know: Unanswerable questions for squad' dataset?", + "answer": "This paper introduces a dataset called \"Know what you don’t know: Unanswerable questions for squad,\" which is designed to help evaluate the ability of question-answering systems to identify unanswerable questions.", + "keyword_explanation": "Unanswerable questions for SQuAD (Stanford Question Answering Dataset) are questions for which the provided context document does not contain the answer. Creating datasets with such questions is crucial for developing more robust and accurate reading comprehension models.", + "metadata": {} + }, + { + "id": "2106.09685v2_page22_card4", + "question": "What technique do Sylvestre-Alvise Rebuffi et al. use for learning across multiple visual domains?", + "answer": "Sylvestre-Alvise Rebuffi et al. propose a method for learning across multiple visual domains using residual adapters, which are small neural network modules.", + "keyword_explanation": "Residual adapters are small, trainable neural network modules that can be inserted into a pre-trained network to adapt it to new tasks or domains. They work by learning the residual difference between the original network's output and the desired output for the new domain, allowing for efficient transfer learning.", + "metadata": {} + }, + { + "id": "2106.09685v2_page22_card5", + "question": "What area of research is likely addressed by Andreas Ruckl\"e et al., based on the provided citations?", + "answer": "The paper by Andreas Ruckl\"e et al. likely discusses advancements or methods related to natural language processing or deep learning, given the names of the authors and the context of the other cited works.", + "keyword_explanation": "While the specific contribution of Andreas Ruckl\"e et al. is not detailed in this snippet, their inclusion among papers on deep learning and language models suggests their work is relevant to these fields. Authors like Jonas Pfeiffer and Nils Reimers are known for their work on efficient transformer models and sentence embeddings.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 23, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "2106.09685v2", + "page_index": 24, + "total_flashcards": 7, + "flashcards": [ + { + "id": "2106.09685v2_page24_card1", + "question": "What are the publication details for \"A broad-coverage challenge corpus for sentence understanding through inference\"?", + "answer": "The paper \"A broad-coverage challenge corpus for sentence understanding through inference\" was published in the Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.", + "keyword_explanation": "This card focuses on the publication details of a specific natural language processing corpus.", + "metadata": {} + }, + { + "id": "2106.09685v2_page24_card2", + "question": "Where and when was the \"A broad-coverage challenge corpus for sentence understanding through inference\" presented?", + "answer": "The paper was presented in New Orleans, Louisiana, in June 2018.", + "keyword_explanation": "This specifies the location and date of the conference where the paper was presented.", + "metadata": {} + }, + { + "id": "2106.09685v2_page24_card3", + "question": "Which organization published the paper \"A broad-coverage challenge corpus for sentence understanding through inference\"?", + "answer": "The paper was published by the Association for Computational Linguistics.", + "keyword_explanation": "This identifies the publishing organization for the academic paper.", + "metadata": {} + }, + { + "id": "2106.09685v2_page24_card4", + "question": "What is the Digital Object Identifier (DOI) for the paper \"A broad-coverage challenge corpus for sentence understanding through inference\"?", + "answer": "The DOI for the paper is 10.18653/v1/N18-1101.", + "keyword_explanation": "A Digital Object Identifier (DOI) is a persistent identifier used to uniquely identify objects, such as electronic documents.", + "metadata": {} + }, + { + "id": "2106.09685v2_page24_card5", + "question": "Where can the paper \"A broad-coverage challenge corpus for sentence understanding through inference\" be accessed online?", + "answer": "The URL for the paper is https://www.aclweb.org/anthology/N18-1101.", + "keyword_explanation": "This is a Uniform Resource Locator (URL), a web address used to access the paper online.", + "metadata": {} + }, + { + "id": "2106.09685v2_page24_card6", + "question": "In which conference proceedings was the paper \"Transformers: State-of-the-art natural language processing\" published?", + "answer": "The paper \"Transformers: State-of-the-art natural language processing\" was presented in the Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations.", + "keyword_explanation": "This card identifies the conference proceedings where the paper on Transformers NLP was presented.", + "metadata": {} + }, + { + "id": "2106.09685v2_page24_card7", + "question": "Who are some of the key authors of the paper \"Transformers: State-of-the-art natural language processing\"?", + "answer": "The paper \"Transformers: State-of-the-art natural language processing\" is authored by Thomas Wolf, Lysandre Debut, Victor Sanh, and many others.", + "keyword_explanation": "This highlights the lead authors of a significant paper in NLP, indicating a collaborative effort.", + "metadata": {} + } + ] + }, + { + "source_file": "2106.09685v2", + "page_index": 25, + "total_flashcards": 5, + "flashcards": [ + { + "id": "2106.09685v2_page25_card1", + "question": "What is the title and authors of the paper published in the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations?", + "answer": "The paper ", + "keyword_explanation": "", + "metadata": {} + }, + { + "id": "2106.09685v2_page25_card2", + "question": "What is the arXiv ID and publication date for the paper on Feature Learning in Infinite-Width Neural Networks?", + "answer": "The paper ", + "keyword_explanation": "", + "metadata": {} + }, + { + "id": "2106.09685v2_page25_card3", + "question": "What is BitFit and what is its primary application?", + "answer": "BitFit is a method for efficient fine-tuning of transformer-based masked language models.", + "keyword_explanation": "Bitfit is a parameter-efficient fine-tuning technique.", + "metadata": {} + }, + { + "id": "2106.09685v2_page25_card4", + "question": "What technique is used to extract deep neural network bottleneck features in the paper by Zhang, Chuangsuwanich, and Glass, and where was it presented?", + "answer": "The paper \"Extracting deep neural network bottleneck features using low-rank matrix factorization\" was presented at the 2014 IEEE international conference on acoustics, speech and signal processing (ICASSP).", + "keyword_explanation": "Low-rank matrix factorization is a technique used for extracting features from deep neural networks.", + "metadata": {} + }, + { + "id": "2106.09685v2_page25_card5", + "question": "What is the title of the paper on low-rank plus diagonal adaptation for deep neural networks, and where was it presented?", + "answer": "The paper \"Low-rank plus diagonal adaptation for deep neural networks\" was presented at the 2016 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP).", + "keyword_explanation": "Low-rank plus diagonal adaptation is a method for adapting deep neural networks.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 0, + "total_flashcards": 6, + "flashcards": [ + { + "id": "2305.14314v1_page0_card0", + "question": "What is QLORA and what is its main advantage?", + "answer": "QLORA is an efficient finetuning approach that significantly reduces memory usage, enabling the finetuning of a 65B parameter model on a single 48GB GPU while maintaining 16-bit finetuning performance. It achieves this by backpropagating gradients through a frozen, 4-bit quantized pretrained language model into Low Rank Adapters (LoRA).", + "keyword_explanation": "QLORA (Quantized Low-Rank Adaptation) is a novel finetuning technique designed to drastically cut down memory requirements for large language models. It combines quantization with the LoRA method to allow for efficient training on less hardware without compromising performance.", + "metadata": {} + }, + { + "id": "2305.14314v1_page0_card1", + "question": "What are the three main innovations introduced by QLORA for memory efficiency?", + "answer": "QLORA introduces three key innovations to reduce memory usage without sacrificing performance: 4-bit NormalFloat (NF4) data type, Double Quantization, and Paged Optimizers. NF4 is optimized for normally distributed weights, Double Quantization further reduces memory by quantizing constants, and Paged Optimizers manage memory spikes.", + "keyword_explanation": "The innovations in QLORA (NF4, Double Quantization, Paged Optimizers) are techniques to make finetuning large language models more memory-efficient. NF4 is a data type, Double Quantization reduces memory by quantizing quantization constants, and Paged Optimizers handle memory fluctuations during training.", + "metadata": {} + }, + { + "id": "2305.14314v1_page0_card2", + "question": "How does QLORA reduce the memory footprint for finetuning large models like LLaMA 65B?", + "answer": "QLORA reduces the memory requirements for finetuning a 65B parameter LLaMA model from over 780GB to less than 48GB. This allows for finetuning on a single 48GB GPU, which would be infeasible with standard 16-bit finetuning.", + "keyword_explanation": "The significant memory reduction achieved by QLORA (from >780GB to <48GB for a 65B model) is a critical enabler for training large models on consumer-grade hardware, democratizing access to powerful AI capabilities.", + "metadata": {} + }, + { + "id": "2305.14314v1_page0_card3", + "question": "What is Guanaco and how does its performance compare to other models?", + "answer": "The Guanaco model family, developed using QLORA, achieves 99.3% of ChatGPT's performance on the Vicuna benchmark and outperforms previous open-source models. Guanaco models were trained with QLORA on a single GPU in just 24 hours.", + "keyword_explanation": "Guanaco represents a family of models fine-tuned using QLORA. Its impressive performance, nearing that of ChatGPT, demonstrates the effectiveness of QLORA in achieving state-of-the-art results efficiently.", + "metadata": {} + }, + { + "id": "2305.14314v1_page0_card4", + "question": "What is the primary challenge with standard 16-bit finetuning of very large language models, and how does QLORA address it?", + "answer": "Standard 16-bit finetuning of a LLaMA 65B parameter model requires over 780GB of GPU memory, making it prohibitively expensive and inaccessible for most users. QLORA lowers this requirement to under 48GB.", + "keyword_explanation": "The prohibitively high memory requirement (780GB+) for 16-bit finetuning of large models like LLaMA 65B highlights the problem that QLORA solves. QLORA's reduction to <48GB makes such models accessible for finetuning on single GPUs.", + "metadata": {} + }, + { + "id": "2305.14314v1_page0_card5", + "question": "How does QLORA achieve finetuning of a quantized 4-bit model without performance degradation?", + "answer": "QLORA enables the finetuning of a 4-bit quantized model without performance degradation. It achieves this by using a novel high-precision quantization technique and then tuning a small set of learnable Low-rank Adapter (LoRA) weights via backpropagation through the quantized model.", + "keyword_explanation": "QLORA's ability to finetune quantized models without performance loss is a significant breakthrough. It combines a specialized 4-bit quantization method with LoRA, allowing gradients to be effectively backpropagated.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 1, + "total_flashcards": 5, + "flashcards": [ + { + "id": "2305.14314v1_page1_card1", + "question": "What is QLORA and what are its key benefits for LLM finetuning?", + "answer": "QLORA allows the largest publicly available models, like the Guanaco family, to be finetuned on a single GPU, significantly improving accessibility. The Guanaco models achieve high performance, with the largest reaching 99.3% of ChatGPT's performance on the Vicuna benchmark, trainable in under 24 hours on a professional GPU. The smallest Guanaco model (7B parameters) requires only 5 GB of memory and outperforms a 26 GB Alpaca model.", + "keyword_explanation": "QLORA is a finetuning technique that dramatically reduces memory usage, enabling large language models (LLMs) to be trained on less powerful hardware without sacrificing performance. It enables the finetuning of massive models on a single GPU.", + "metadata": {} + }, + { + "id": "2305.14314v1_page1_card2", + "question": "How do the Guanaco models perform relative to other leading models like ChatGPT, Bard, and Vicuna, according to the Elo ratings?", + "answer": "The Guanaco models, trained using QLORA, show competitive performance against established models. The Guanaco 65B and 33B models achieved high Elo ratings in a benchmark judged by GPT-4, with Guanaco 65B receiving a rating of 1022 ± 1 and Guanaco 33B receiving 992 ± 1. The Guanaco 13B model also outperformed Bard with an Elo rating of 916 ± 1.", + "keyword_explanation": "Elo rating is a method for calculating the relative skill levels of players in zero-sum games, here adapted to evaluate and compare the performance of different language models. A higher Elo rating indicates better performance in head-to-head comparisons.", + "metadata": {} + }, + { + "id": "2305.14314v1_page1_card3", + "question": "What are the key innovations within QLORA that contribute to its memory efficiency?", + "answer": "QLORA incorporates several innovations to reduce memory usage: 4-bit NormalFloat for optimal quantization of normally distributed data, Double Quantization to reduce memory by quantizing constants (saving ~0.37 bits/parameter), and Paged Optimizers using NVIDIA's unified memory to manage memory spikes during gradient checkpointing with long sequences.", + "keyword_explanation": "4-bit NormalFloat is a quantization data type introduced by QLORA. It is designed to be information-theoretically optimal for normally distributed data, offering better empirical results than 4-bit Integers or 4-bit Floats.", + "metadata": {} + }, + { + "id": "2305.14314v1_page1_card4", + "question": "How has QLORA's efficiency impacted the scale and scope of research in instruction finetuning and chatbot development?", + "answer": "QLORA's efficiency allows for extensive research into instruction finetuning and chatbot performance across various model scales, architectures, and datasets, which would be prohibitive with standard finetuning. This includes training over 1,000 models ranging from 80M to 65B parameters.", + "keyword_explanation": "Instruction finetuning is the process of adapting a pre-trained language model to follow specific instructions or commands given in natural language. This process enhances the model's ability to perform tasks as directed by the user.", + "metadata": {} + }, + { + "id": "2305.14314v1_page1_card5", + "question": "What is the relationship between data quality and dataset size in instruction finetuning, according to the study?", + "answer": "Data quality is significantly more important than dataset size for instruction finetuning. For instance, a smaller dataset of 9k samples (OASST1) outperformed a larger dataset of 450k samples (FLAN v2, subsampled) in chatbot performance, particularly for instruction-following generalization.", + "keyword_explanation": "OASST1 and FLAN v2 are datasets used for instruction finetuning language models. OASST1 is a smaller, high-quality dataset that demonstrated superior performance in training chatbots compared to the larger FLAN v2 dataset in this study.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 2, + "total_flashcards": 5, + "flashcards": [ + { + "id": "2305.14314v1_page2_card1", + "question": "What did the study find regarding the agreement between GPT-4 and human evaluations of chatbot performance?", + "answer": "This study found that while GPT-4 and human evaluations largely agree on the rank of model performance in chatbot tournaments, there are instances where their judgments diverge, indicating the uncertainties of model-based evaluation as a cheaper alternative to human annotation.", + "keyword_explanation": "Model-based evaluation uses AI models like GPT-4 to assess chatbot performance, offering a cost-effective alternative to human raters, but may not always align perfectly with human judgment.", + "metadata": {} + }, + { + "id": "2305.14314v1_page2_card2", + "question": "Does strong MMLU performance guarantee strong Vicuna chatbot performance?", + "answer": "The study found that strong performance on the Massive Multitask Language Understanding (MMLU) benchmark does not necessarily translate to strong performance on the Vicuna chatbot benchmark, and vice versa. This suggests that the suitability of the dataset is more critical than its size for specific tasks like chatbot evaluation.", + "keyword_explanation": "Massive Multitask Language Understanding (MMLU) is a benchmark designed to test language models on a wide range of tasks and knowledge domains, assessing their general understanding and reasoning abilities.", + "metadata": {} + }, + { + "id": "2305.14314v1_page2_card3", + "question": "How was chatbot performance evaluated in the study?", + "answer": "The researchers used a tournament-style benchmarking approach where different chatbot models competed against each other. The winner of each match was determined by either GPT-4 or human annotators based on which model provided the best response to a given prompt. Elo scores were then aggregated to rank the performance of the chatbots.", + "keyword_explanation": "Tournament-style benchmarking involves pitting models against each other in head-to-head comparisons, with a judge determining the winner, and then aggregating these results to establish a performance ranking.", + "metadata": {} + }, + { + "id": "2305.14314v1_page2_card4", + "question": "How does QLORA improve upon LoRA?", + "answer": "QLORA enhances LoRA (Low-Rank Adaptation) by quantizing the transformer model to 4-bit precision and employing paged optimizers to manage memory spikes during the finetuning process. This method aims to improve efficiency and reduce memory requirements.", + "keyword_explanation": "QLORA is an optimization technique for finetuning large language models that builds upon LoRA by incorporating 4-bit quantization and paged optimizers to reduce memory usage.", + "metadata": {} + }, + { + "id": "2305.14314v1_page2_card5", + "question": "What is quantization and how is it typically performed?", + "answer": "Quantization is the process of reducing the precision of a data representation, typically by converting a data type with more bits to one with fewer bits, such as changing 32-bit floats to 8-bit integers. This is often done by rescaling the input data to fit the target data type's range, commonly using the absolute maximum of the input tensor for normalization.", + "keyword_explanation": "Quantization in deep learning refers to the process of mapping continuous or large sets of values to a smaller, discrete set of values, reducing model size and computational cost.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 3, + "total_flashcards": 8, + "flashcards": [ + { + "id": "2305.14314v1_page3_card0", + "question": "What is the process of quantization and dequantization between FP32 and Int8 tensors?", + "answer": "Quantization is the process of converting a tensor from a higher precision format (like 32-bit Floating Point, FP32) to a lower precision format (like Int8) by using a quantization constant or scale. Dequantization is the reverse process, converting the Int8 tensor back to FP32 using the same constant.", + "keyword_explanation": "Quantization is a technique used to reduce the precision of tensor data, typically from floating-point to integer format, to save memory and computational resources. It involves mapping a range of floating-point values to a smaller range of integer values.", + "metadata": {} + }, + { + "id": "2305.14314v1_page3_card1", + "question": "What is the problem with quantizing tensors that contain outliers?", + "answer": "When quantizing a tensor, if the input contains large magnitude values (outliers), the quantization bins are not utilized effectively, leading to inefficient use of the available bit combinations. This means some bins may have very few or no numbers quantized into them.", + "keyword_explanation": "Outliers in quantization refer to extreme values in the input tensor that fall far outside the typical range. These outliers can disproportionately affect the quantization process, leading to poor distribution of quantized values across bins.", + "metadata": {} + }, + { + "id": "2305.14314v1_page3_card2", + "question": "How does block-wise quantization help prevent the outlier issue?", + "answer": "To address the outlier issue in quantization, the input tensor is divided into smaller, contiguous blocks. Each block is then quantized independently, with its own unique quantization constant (c). This approach ensures that each block's range is better represented, preventing inefficient bin utilization.", + "keyword_explanation": "Block-wise quantization is a strategy to mitigate the impact of outliers by processing smaller segments of the tensor independently. Each block has its own quantization parameters, allowing for a more tailored and effective quantization of its data.", + "metadata": {} + }, + { + "id": "2305.14314v1_page3_card3", + "question": "What is Low-rank Adapter (LoRA) finetuning and how does it reduce memory requirements?", + "answer": "Low-rank Adapter (LoRA) finetuning reduces memory requirements during model training by introducing a small set of trainable parameters, called adapters. The original, full model parameters remain frozen, and gradients are passed through them to update only the adapters.", + "keyword_explanation": "Low-rank Adapters (LoRA) are small, trainable modules added to a larger, pre-trained model. They are designed to efficiently fine-tune models by learning low-rank updates to the original weight matrices, significantly reducing the number of trainable parameters.", + "metadata": {} + }, + { + "id": "2305.14314v1_page3_card4", + "question": "How does LoRA modify a linear projection?", + "answer": "LoRA augments a standard linear projection $\\mathbf{XW} = \\mathbf{Y}$ by adding a factorized projection: $\\mathbf{Y} = \\mathbf{XW} + s\\mathbf{X L_1 L_2}$. Here, $\\mathbf{X} \\in \\mathbb{R}^{b \\times h}$, $\\breve{\\mathbf{W}} \\in \\mathbb{R}^{h \\times o}$, $\\mathbf{L_1} \\in \\mathbb{R}^{h \\times r}$, and $\\mathbf{L_2} \\in \\mathbb{R}^{r \\times o}$, with $r$ being the rank of the decomposition and $s$ a scalar.", + "keyword_explanation": "LoRA's projection augmentation involves adding a low-rank decomposition of the weight update to the original linear projection. This is achieved by introducing two smaller matrices (L1 and L2) whose product approximates the change needed in the original weight matrix.", + "metadata": {} + }, + { + "id": "2305.14314v1_page3_card5", + "question": "What component of LoRA finetuning contributes most to memory usage during training?", + "answer": "The memory footprint of LoRA during training is primarily dominated by activation gradients, not the LoRA parameters themselves. For instance, a 7B LLaMA model with LoRA weights used only 26MB for parameters, while input gradients consumed 567MB. This highlights that techniques like gradient checkpointing are crucial for managing memory, even more so than aggressively reducing LoRA parameter size.", + "keyword_explanation": "Activation gradients are the gradients calculated with respect to the intermediate activations of a neural network. In parameter-efficient finetuning methods like LoRA, these gradients can represent a significant portion of the memory usage during training.", + "metadata": {} + }, + { + "id": "2305.14314v1_page3_card6", + "question": "What are the key techniques proposed by QLORA for 4-bit finetuning?", + "answer": "QLORA achieves high-fidelity 4-bit finetuning using two main techniques: 4-bit NormalFloat (NF4) quantization and Double Quantization. It also incorporates Paged Optimizers to prevent memory spikes during gradient checkpointing, which can cause out-of-memory errors.", + "keyword_explanation": "QLORA is a finetuning technique that enables high-fidelity training using a 4-bit quantization data type. It combines specific quantization methods with strategies to manage memory usage, making it more feasible to fine-tune large models.", + "metadata": {} + }, + { + "id": "2305.14314v1_page3_card7", + "question": "What is the principle behind the NormalFloat (NF) data type?", + "answer": "The NormalFloat (NF) data type, which builds on Quantile Quantization, is designed to be an information-theoretically optimal data type. Its core principle is to ensure that each quantization bin contains an equal number of values from the input tensor, providing a more balanced and efficient representation.", + "keyword_explanation": "NormalFloat (NF) is a data type that optimizes quantization by distributing values evenly across quantization bins. It is based on Quantile Quantization, ensuring that each bin holds the same count of values from the input tensor.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 4, + "total_flashcards": 6, + "flashcards": [ + { + "id": "2305.14314v1_page4_card1", + "question": "What is quantile quantization and what are its main limitations?", + "answer": "Quantile quantization is a method where each quantization bin is assigned an equal number of values from the input tensor. It estimates quantiles using the empirical cumulative distribution function, but this estimation process is computationally expensive. Fast quantile approximation algorithms are often used, but they can lead to significant quantization errors for outliers due to their approximate nature.", + "keyword_explanation": "Quantile quantization is a data type that aims to distribute values evenly across quantization bins by matching the distribution of the input tensor, but its exact implementation can be computationally intensive and prone to errors with outlier data.", + "metadata": {} + }, + { + "id": "2305.14314v1_page4_card2", + "question": "Under what conditions can exact quantile estimation be computationally feasible in quantization?", + "answer": "Expensive quantile estimation and approximation errors in quantile quantization can be avoided when the input tensors originate from a distribution that is fixed up to a quantization constant. In such scenarios, all input tensors share the same quantiles, making exact quantile estimation computationally feasible and accurate.", + "keyword_explanation": "Fixed distributions simplify quantile quantization by ensuring consistent quantile values across tensors, thus making exact estimation feasible and avoiding approximation errors common in methods relying on empirical distribution functions.", + "metadata": {} + }, + { + "id": "2305.14314v1_page4_card3", + "question": "How are neural network weights typically prepared for quantization with a fixed data type range like [-1, 1]?", + "answer": "Pretrained neural network weights often follow a zero-centered normal distribution. By scaling the standard deviation (sigma) of these weights, their distribution can be transformed to fit a predefined range, such as [-1, 1]. This normalization aligns both the data type's quantiles and the neural network weights' distribution to the same range, facilitating efficient quantization.", + "keyword_explanation": "Normalizing neural network weights involves rescaling their standard deviation to match a target data type's range, typically [-1, 1], to ensure compatible distributions for effective quantization.", + "metadata": {} + }, + { + "id": "2305.14314v1_page4_card4", + "question": "How is the information theoretically optimal data type computed for normal distributions within a specific range?", + "answer": "The information theoretically optimal data type for zero-mean normal distributions is computed by first estimating the quantiles of a theoretical N(0,1) distribution to create a k-bit quantile quantization data type. This data type is then normalized into the [-1, 1] range. Finally, input weights are quantized by normalizing them into the same [-1, 1] range using absolute maximum rescaling, which matches their standard deviation to that of the k-bit data type.", + "keyword_explanation": "Computing the optimal data type for normal distributions involves estimating theoretical quantiles, normalizing them to a target range, and then rescaling input tensors to match this range for quantization.", + "metadata": {} + }, + { + "id": "2305.14314v1_page4_card5", + "question": "How are the quantization levels ($q_i$) for a symmetric k-bit data type estimated using the standard normal distribution?", + "answer": "The quantiles $q_i$ for a k-bit data type are estimated using the formula $q _ { i } = \\frac { 1 } { 2 } \\left( Q _ { X } \\left( \\frac { i } { 2 ^ { k } + 1 } \\right) + Q _ { X } \\left( \\frac { i + 1 } { 2 ^ { k } + 1 } \\right) \\right)$, where $Q_X(\\cdot)$ is the quantile function of the standard normal distribution N(0,1). This method provides a symmetric quantization but lacks an exact representation of zero.", + "keyword_explanation": "The formula provides a method for estimating symmetric quantization levels based on the standard normal distribution's quantiles, ensuring an even distribution of values but not a precise zero representation.", + "metadata": {} + }, + { + "id": "2305.14314v1_page4_card6", + "question": "How can a discrete zero representation be ensured in k-bit quantization?", + "answer": "To address the lack of an exact zero representation in symmetric k-bit quantization, an asymmetric data type is created. This involves estimating quantiles for the negative and positive parts separately ($q_i : 2^{k-1}$ and $q_i : 2^{k-1}+1$), unifying these sets, and removing the duplicate zero values. This ensures a discrete zeropoint of 0 and utilizes all $2^k$ bits effectively.", + "keyword_explanation": "Asymmetric data types are developed for quantization by creating separate quantile sets for negative and positive ranges, then merging them to include an exact zero representation and optimize bit usage.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 5, + "total_flashcards": 6, + "flashcards": [ + { + "id": "2305.14314v1_page5_card0", + "question": "What is k-bit NormalFloat (NFk) and why is it optimal?", + "answer": "k-bit NormalFloat (NFk) is an information-theoretically optimal data type for zero-centered normally distributed data, featuring an equal expected number of values in each quantization bin.", + "keyword_explanation": "NFk is a data type optimized for normal distributions, ensuring balanced representation across quantization bins.", + "metadata": {} + }, + { + "id": "2305.14314v1_page5_card1", + "question": "What is Double Quantization (DQ)?", + "answer": "Double Quantization (DQ) is a technique used to further reduce memory usage by quantizing the quantization constants themselves, in addition to quantizing the main weights.", + "keyword_explanation": "Double Quantization (DQ) is a memory-saving method that applies a second layer of quantization to the initial quantization constants.", + "metadata": {} + }, + { + "id": "2305.14314v1_page5_card2", + "question": "How does Double Quantization reduce memory usage?", + "answer": "Double Quantization reduces the memory footprint of quantization constants by treating the 32-bit constants of the first quantization as inputs to a second quantization, typically using 8-bit floats.", + "keyword_explanation": "DQ reduces memory by quantizing quantization constants, for example, using FP8 for the second quantization step.", + "metadata": {} + }, + { + "id": "2305.14314v1_page5_card3", + "question": "Quantify the memory savings achieved by Double Quantization.", + "answer": "Double Quantization reduces the memory footprint per parameter from 0.5 bits to approximately 0.127 bits for a blocksize of 64, achieving a saving of 0.373 bits per parameter.", + "keyword_explanation": "DQ provides significant memory savings, reducing overhead from 0.5 bits to 0.127 bits per parameter in the example given.", + "metadata": {} + }, + { + "id": "2305.14314v1_page5_card4", + "question": "What are Paged Optimizers and how do they work?", + "answer": "Paged Optimizers use NVIDIA's unified memory feature to automatically manage memory transfers between CPU and GPU, preventing out-of-memory errors by paging optimizer states to CPU RAM when GPU memory is exceeded.", + "keyword_explanation": "Paged Optimizers leverage unified memory for seamless CPU-GPU data transfer, ensuring continuous operation even when GPU memory is limited.", + "metadata": {} + }, + { + "id": "2305.14314v1_page5_card5", + "question": "How is QLORA defined for a single linear layer in a quantized model?", + "answer": "QLORA defines its process for a single linear layer in a quantized base model with a LoRA adapter using the formula Y^BFl16 = X^BFl16 doubleDequant(c1^FP32, c2^k-bit, W^NF4) + X^BFl16 L1^BFl16 L2^BFl16, where NF4 is used for W and FP8 for c2.", + "keyword_explanation": "QLORA outlines the computation for a quantized linear layer, employing NF4 for weights and FP8 for the second level quantization constants.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 6, + "total_flashcards": 6, + "flashcards": [ + { + "id": "2305.14314v1_page6_card1", + "question": "Describe the data types used in QLoRA for storage and computation, and explain how they interact during the finetuning process.", + "answer": "QLoRA utilizes NF4 (4-bit NormalFloat) as its storage data type and BFloat16 as its computation data type. During training, the NF4 weights are dequantized to BFloat16 for the forward and backward passes. However, weight gradients are only computed for the LoRA parameters, which are stored in BFloat16.", + "keyword_explanation": "QLoRA is a method for efficiently finetuning large language models. It uses quantization techniques, specifically NF4 data type and double quantization, to significantly reduce memory usage without sacrificing performance.", + "metadata": {} + }, + { + "id": "2305.14314v1_page6_card2", + "question": "What data types and block sizes does QLoRA use for weights and quantization constants, and why are these choices made?", + "answer": "QLoRA employs NF4 for storing the base model weights and FP8 for the quantization constants (c2). It uses a block size of 64 for the weights (W) to maintain higher precision during quantization and a block size of 256 for the quantization constants (c2) to optimize memory usage. Parameter updates are only applied to the necessary components, not the 4-bit weights themselves.", + "keyword_explanation": "NF4 (4-bit NormalFloat) is a data type used in QLoRA for quantizing model weights. It is designed to better represent the distribution of weights in neural networks compared to standard 4-bit data types, leading to improved performance after quantization.", + "metadata": {} + }, + { + "id": "2305.14314v1_page6_card3", + "question": "How are gradients calculated with respect to the adapter weights in QLoRA, considering the quantized nature of the base model weights?", + "answer": "The calculation of gradients with respect to the adapter weights (∂E/∂L_i) involves dequantizing the NF4 weights (W^NF4) to the computation data type (BFloat16) using Equation 5. This process allows for the accurate computation of gradients necessary for updating the LoRA parameters.", + "keyword_explanation": "Gradient calculation in QLoRA involves dequantizing weights from their storage format (NF4) to a computation format (BFloat16) to accurately compute the derivative of the error with respect to the LoRA parameters.", + "metadata": {} + }, + { + "id": "2305.14314v1_page6_card4", + "question": "What is the primary research question comparing QLoRA to standard finetuning methods, and what aspects are being analyzed in the experiments?", + "answer": "QLoRA aims to achieve performance comparable to full-model finetuning while significantly reducing memory requirements. Experiments are conducted to evaluate this, including analyzing the impact of the NF4 data type against other 4-bit formats and comparing QLoRA's effectiveness with traditional 16-bit adapter-finetuning and full-finetuning across various model architectures and datasets.", + "keyword_explanation": "Full-model finetuning is a traditional method where all parameters of a pre-trained model are updated during the training process. This method can yield high performance but requires substantial computational resources and memory.", + "metadata": {} + }, + { + "id": "2305.14314v1_page6_card5", + "question": "Outline the experimental setup used to evaluate QLoRA, including the model architectures, parameter scales, and benchmark datasets.", + "answer": "The experimental setup compares QLoRA with 16-bit adapter-finetuning and full-finetuning on three architectures (encoder, encoder-decoder, decoder-only) for models up to 3B parameters. Evaluations use datasets and benchmarks such as GLUE with RoBERTa-large, Super-NaturalInstructions (TK-Instruct) with T5, and 5-shot MMLU on LLaMA finetuned with Flan v2 and Alpaca.", + "keyword_explanation": "Experimental setup in the context of QLoRA research refers to the specific configurations, models, datasets, and evaluation metrics used to test the effectiveness and efficiency of the QLoRA method compared to other finetuning techniques.", + "metadata": {} + }, + { + "id": "2305.14314v1_page6_card6", + "question": "How does the study investigate the specific advantages of the NF4 data type compared to other 4-bit data types within the QLoRA framework?", + "answer": "To assess the advantages of NF4 over other 4-bit data types, experiments measure post-quantization zero-shot accuracy and perplexity across various models (OPT, LLaMA, BLOOM, Pythia) with sizes ranging from 125 million to 13 billion parameters. This analysis helps determine the specific benefits of using NF4 in QLoRA.", + "keyword_explanation": "NF4 (NormalFloat 4-bit) is a data type specifically designed for quantizing weights in neural networks, aiming to preserve model performance by better handling the distribution of weights compared to standard 4-bit representations.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 7, + "total_flashcards": 5, + "flashcards": [ + { + "id": "2305.14314v1_page7_card1", + "question": "What is the primary benefit and observed performance of paged optimizers in the context of QLoRA tuning large models?", + "answer": "Paged optimizers are critical for QLoRA tuning of large models (33B/65B) on single GPUs with limited VRAM (24GB/48GB). While they primarily activate with rare long-sequence mini-batches, analysis shows they maintain training speed comparable to regular optimizers with a batch size of 16 for 65B models on 48GB GPUs. Further research is needed to identify specific conditions causing slowdowns due to paging.", + "keyword_explanation": "Paged optimizers are memory-saving techniques used in large model training that offload optimizer states to CPU RAM when GPU memory is insufficient. This allows training larger models on less hardware by managing memory dynamically.", + "metadata": {} + }, + { + "id": "2305.14314v1_page7_card2", + "question": "What are the key findings regarding LoRA hyperparameter effectiveness for matching full finetuning performance?", + "answer": "When applying LoRA (Low-Rank Adaptation) to the query and value attention projection matrices, full finetuning performance for large base models could not be replicated using default hyperparameters. To match full finetuning performance, it was found that LoRA must be applied to all linear transformer block layers, and the number of LoRA adapters used is the most critical hyperparameter.", + "keyword_explanation": "LoRA (Low-Rank Adaptation) is a parameter-efficient finetuning technique that injects trainable low-rank matrices into the layers of a pre-trained model. This significantly reduces the number of trainable parameters compared to full finetuning.", + "metadata": {} + }, + { + "id": "2305.14314v1_page7_card3", + "question": "Which LoRA hyperparameter is most critical for achieving full finetuning performance on LLaMA 7B models, and which is less impactful?", + "answer": "For LLaMA 7B models finetuned on the Alpaca dataset, the most critical LoRA hyperparameter for matching full finetuning performance is the number of LoRA adapters used, with application across all linear transformer block layers being essential. Other hyperparameters, such as the projection dimension 'r', were found not to significantly affect performance.", + "keyword_explanation": "The projection dimension 'r' in LoRA refers to the rank of the low-rank matrices used for adaptation. A higher 'r' allows for more expressivity but also increases the number of trainable parameters.", + "metadata": {} + }, + { + "id": "2305.14314v1_page7_card4", + "question": "What was observed about the default hyperparameters for fully finetuned baselines, and how were robust baselines established?", + "answer": "The study found that default hyperparameters for fully finetuned baselines were undertuned. To establish robust baselines, a hyperparameter search was conducted over learning rates ranging from 1e-6 to 5e-5 and batch sizes from 8 to 128.", + "keyword_explanation": "Undertuned hyperparameters refer to settings in a model or training process that are not optimized, potentially leading to suboptimal performance. This often necessitates a hyperparameter search to find the best configuration.", + "metadata": {} + }, + { + "id": "2305.14314v1_page7_card5", + "question": "How does the 4-bit NormalFloat (NF4) data type compare to other 4-bit data types in terms of performance for quantized LLMs?", + "answer": "The 4-bit NormalFloat (NF4) data type demonstrates empirical advantages over 4-bit Floating Point (FP4) and Int4 data types, yielding significantly better performance in language modeling and zero-shot tasks for various quantized LLMs. Double quantization further reduces memory footprint without performance degradation.", + "keyword_explanation": "NF4 (4-bit NormalFloat) is an information-theoretically optimal data type designed for quantizing neural network weights, particularly in large language models. It aims to minimize information loss during quantization compared to standard floating-point formats.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 8, + "total_flashcards": 7, + "flashcards": [ + { + "id": "2305.14314v1_page8_card0", + "question": "What is the performance comparison between QLoRA with NF4+DQ and 16-bit finetuning methods?", + "answer": "QLoRA with NF4 (NormalFloat 4-bit) and Double Quantization (DQ) matches the performance of 16-bit full finetuning and 16-bit LoRA finetuning across academic benchmarks. NF4 demonstrates superior quantization precision compared to FP4 (4-bit Float), and DQ helps manage memory footprint without degrading performance.", + "keyword_explanation": "QLoRA (Quantized Low-Rank Adapters) is a parameter-efficient finetuning technique that uses quantization to reduce the memory footprint. NF4 is a 4-bit data type that offers better precision than standard FP4, and Double Quantization (DQ) further optimizes memory usage.", + "metadata": {} + }, + { + "id": "2305.14314v1_page8_card1", + "question": "Can 4-bit adapter finetuning recover performance lost due to quantization?", + "answer": "4-bit adapter finetuning, specifically using QLoRA with the NF4 data type, can fully recover the performance lost due to quantization compared to 16-bit methods. This applies to both full finetuning and LoRA finetuning setups across various datasets like GLUE and Super-NaturalInstructions.", + "keyword_explanation": "This question addresses the effectiveness of finetuning after quantization. It highlights that even though quantization can lead to performance degradation, adapter finetuning methods like QLoRA can mitigate this loss and restore the original performance levels.", + "metadata": {} + }, + { + "id": "2305.14314v1_page8_card2", + "question": "What is the difference in performance between NF4 and FP4 data types in QLoRA?", + "answer": "NF4 (NormalFloat 4-bit) is superior to FP4 (4-bit Float) in terms of quantization precision. This was observed in experiments where QLoRA with FP4 slightly lagged behind the 16-bit baseline, while QLoRA with NF4 matched it.", + "keyword_explanation": "NF4 (NormalFloat 4-bit) and FP4 (4-bit Float) are different ways to represent numbers using 4 bits. NF4 is a custom data type designed to better approximate the distribution of weights in neural networks, leading to higher accuracy after quantization compared to standard FP4.", + "metadata": {} + }, + { + "id": "2305.14314v1_page8_card3", + "question": "What is the role of Double Quantization (DQ) in QLoRA?", + "answer": "Double Quantization (DQ) allows for more fine-grained control over the memory footprint, enabling larger models (like 33B/65B) to fit into specific GPUs (24GB/48GB). While it only leads to minor performance gains, its primary benefit is memory optimization.", + "keyword_explanation": "Double Quantization (DQ) is a technique used in conjunction with quantization methods like QLoRA. It involves quantizing the quantization constants themselves, further reducing the memory required to store the quantized model weights.", + "metadata": {} + }, + { + "id": "2305.14314v1_page8_card4", + "question": "How does QLoRA with NF4 and DQ perform on large models (7B-65B parameters) for instruction following tasks?", + "answer": "QLoRA with NF4 and DQ matches 16-bit LoRA performance on the MMLU benchmark when finetuning LLaMA models from 7B to 65B parameters on instruction following datasets like Alpaca and FLAN v2. This demonstrates the efficiency and effectiveness of 4-bit quantization for large models.", + "keyword_explanation": "MMLU (Massive Multitask Language Understanding) is a benchmark used to evaluate the knowledge and reasoning capabilities of language models across a wide range of subjects. Achieving comparable performance on MMLU with 4-bit QLoRA signifies significant efficiency gains.", + "metadata": {} + }, + { + "id": "2305.14314v1_page8_card5", + "question": "What is the optimal strategy for resource-constrained finetuning based on QLoRA findings?", + "answer": "The findings suggest that to maximize performance within a given finetuning and inference resource budget, it is more beneficial to increase the number of parameters in the base model while decreasing their precision using methods like QLoRA. This highlights the efficiency benefits of QLoRA.", + "keyword_explanation": "This card explains a key finding regarding the trade-off between model size and precision. It suggests that using lower precision (like 4-bit quantization) allows for larger models to be trained and used within the same resource constraints, leading to better overall performance.", + "metadata": {} + }, + { + "id": "2305.14314v1_page8_card6", + "question": "What performance level does QLoRA aim to achieve compared to 16-bit finetuning methods?", + "answer": "QLoRA aims to match 16-bit full finetuning and 16-bit LoRA performance using 4-bit quantization. Experiments show that 4-bit QLoRA, particularly with the NF4 data type, successfully replicates the performance of 16-bit methods on various benchmarks.", + "keyword_explanation": "This question focuses on the primary goal of QLoRA: achieving parity with higher-precision (16-bit) finetuning methods. It validates the effectiveness of QLoRA in reducing memory footprint without sacrificing performance.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 9, + "total_flashcards": 5, + "flashcards": [ + { + "id": "2305.14314v1_page9_card1", + "question": "How does NF4 with double quantization (DQ) compare to BFloat16 and FP4 in terms of mean 5-shot MMLU test accuracy for finetuned LLaMA models?", + "answer": "NF4 with double quantization (DQ) achieves performance comparable to BFloat16, while FP4 consistently lags by approximately one percentage point in mean 5-shot MMLU test accuracy across various LLaMA models finetuned with adapters on Alpaca and FLAN v2.", + "keyword_explanation": "NF4 (NormalFloat 4-bit) is a data type that uses 4 bits to represent numbers, offering significant memory savings. Double Quantization (DQ) is a technique used with NF4 to further reduce memory usage by quantizing the quantization constants themselves, leading to performance close to higher-precision formats like BFloat16.", + "metadata": {} + }, + { + "id": "2305.14314v1_page9_card2", + "question": "What does the provided table illustrate regarding LLaMA models and their performance on the MMLU benchmark?", + "answer": "The table shows the mean 5-shot MMLU accuracy for LLaMA models of different sizes (7B to 65B) when finetuned on Alpaca and FLAN v2 datasets using BFloat16, Float4, and NF4 with DQ. NF4 with DQ generally performs slightly better or matches BFloat16, while Float4 is consistently a bit lower.", + "keyword_explanation": "MMLU (Massive Multitask Language Understanding) is a benchmark designed to measure the knowledge of language models across a wide range of subjects. 5-shot accuracy refers to the model's performance after being given 5 examples during the evaluation phase.", + "metadata": {} + }, + { + "id": "2305.14314v1_page9_card3", + "question": "Describe the training setup used for finetuning LLaMA models in the experiment.", + "answer": "The experimental setup involved finetuning LLaMA models using QLoRA with cross-entropy loss. This approach was applied uniformly across various datasets, including those with human judgments, and focused on training on the response part of the data, or the full conversation for datasets like OASST1 and HH-RLHF.", + "keyword_explanation": "QLoRA is an efficient finetuning method that combines quantization (like NF4) with Low-Rank Adapters (LoRA) to significantly reduce memory usage during the training of large language models.", + "metadata": {} + }, + { + "id": "2305.14314v1_page9_card4", + "question": "What types of datasets were used for finetuning the LLaMA models, and why were they selected?", + "answer": "The study selected eight recent instruction-following datasets, including OASST1, HH-RLHF, Alpaca, self-instruct, unnaturalinstructions, FLAN v2, Chip2, and Longform. These datasets were chosen to cover diverse languages, sizes, and licenses, providing a comprehensive base for training.", + "keyword_explanation": "Instruction-following datasets are collections of prompts (instructions) and desired outputs, used to train language models to understand and respond to specific commands or queries.", + "metadata": {} + }, + { + "id": "2305.14314v1_page9_card5", + "question": "What specific techniques were employed during the training setup to manage memory and ensure stable training?", + "answer": "The researchers used NF4 QLoRA with double quantization and paged optimizers to prevent memory spikes, which are common during gradient checkpointing. Hyperparameter searches were conducted for 13B and 33B LLaMA models, with findings for the 7B model generally generalizing, except for learning rate and batch size.", + "keyword_explanation": "Paged optimizers are used in conjunction with techniques like gradient checkpointing to manage memory usage efficiently by handling large intermediate values in a paginated manner, preventing out-of-memory errors.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 10, + "total_flashcards": 8, + "flashcards": [ + { + "id": "2305.14314v1_page10_card1", + "question": "Which hyperparameter settings generalize from the 7B model to larger models (33B and 65B), and which require adjustment?", + "answer": "The hyperparameter settings that generalize from 7B to larger models (33B and 65B) include the number of epochs. However, the learning rate needs to be halved, and the batch size needs to be doubled for these larger models.", + "keyword_explanation": "Hyperparameters are settings that determine the structure and behavior of a machine learning model during training. Examples include learning rate, batch size, and number of epochs.", + "metadata": {} + }, + { + "id": "2305.14314v1_page10_card2", + "question": "What is the MMLU benchmark and what does it measure?", + "answer": "The MMLU benchmark is used to evaluate language understanding across a wide range of subjects. It consists of multiple-choice questions covering 57 diverse tasks, such as mathematics, history, computer science, and law.", + "keyword_explanation": "MMLU (Massively Multitask Language Understanding) is a benchmark designed to assess the knowledge and problem-solving abilities of language models across various domains.", + "metadata": {} + }, + { + "id": "2305.14314v1_page10_card3", + "question": "How was the Open Assistant model trained?", + "answer": "The Open Assistant model is a 33B LLaMA model that has been fine-tuned using Reinforcement Learning from Human Feedback (RLHF) on the OASST1 dataset.", + "keyword_explanation": "RLHF (Reinforcement Learning from Human Feedback) is a training technique that uses human preferences to guide a model's learning process, improving its alignment with desired behaviors.", + "metadata": {} + }, + { + "id": "2305.14314v1_page10_card4", + "question": "What is Vicuna and how was it developed?", + "answer": "Vicuna is a LLaMA 13B model that underwent full fine-tuning on user-shared conversations from ShareGPT. This process involved distillation from OpenAI GPT models.", + "keyword_explanation": "Distillation in the context of language models refers to a process where a smaller model learns to mimic the behavior of a larger, more capable model.", + "metadata": {} + }, + { + "id": "2305.14314v1_page10_card5", + "question": "What does '5-shot test accuracy' mean in the context of the MMLU benchmark?", + "answer": "The MMLU benchmark reports 5-shot test accuracy, meaning the model is given 5 examples before being tested on new questions. This helps evaluate its ability to generalize from a limited number of examples.", + "keyword_explanation": "5-shot test accuracy is a metric used to evaluate a model's performance by providing it with five examples of a task before it attempts to solve new instances of that task.", + "metadata": {} + }, + { + "id": "2305.14314v1_page10_card6", + "question": "How are the models' generative language capabilities evaluated?", + "answer": "The models were evaluated on generative language capabilities using human-curated queries. This approach aims to measure the quality of the model's responses in a realistic chatbot scenario.", + "keyword_explanation": "Generative language capabilities refer to a model's ability to produce human-like text in response to prompts, which is crucial for chatbot performance.", + "metadata": {} + }, + { + "id": "2305.14314v1_page10_card7", + "question": "What sampling parameters are used for evaluating generative language capabilities?", + "answer": "For evaluating generative language capabilities, nucleus sampling with a probability (p) of 0.9 and a temperature of 0.7 are used.", + "keyword_explanation": "Nucleus sampling is a text generation technique that samples from a subset of the most probable next words, controlled by a probability threshold (p), to produce more diverse and coherent output.", + "metadata": {} + }, + { + "id": "2305.14314v1_page10_card8", + "question": "What information is presented in Table 5?", + "answer": "Table 5 presents the MMLU 5-shot test results for various sizes of LLaMA models that have been fine-tuned using QLoRA on their respective datasets.", + "keyword_explanation": "QLoRA is an efficient fine-tuning technique that reduces memory usage, allowing larger models to be fine-tuned on less hardware.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 11, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "2305.14314v1", + "page_index": 12, + "total_flashcards": 8, + "flashcards": [ + { + "id": "2305.14314v1_page12_card0", + "question": "How is GPT-4 used to evaluate chatbot performance in head-to-head comparisons?", + "answer": "The study prompts GPT-4 to pick the best response between two systems or declare a tie, providing an explanation for its choice. These head-to-head comparisons are performed on all possible pairs of systems across both the Vicuna and OA benchmarks.", + "keyword_explanation": "GPT-4 as an evaluator involves using the GPT-4 model to assess and compare the quality of responses generated by different chatbot systems, simulating a human evaluation process.", + "metadata": {} + }, + { + "id": "2305.14314v1_page12_card1", + "question": "Why and how were human evaluations conducted in parallel with automated evaluations on the Vicuna benchmark?", + "answer": "Human evaluations are conducted on the Vicuna benchmark to validate the reliability of GPT-4's ratings against human judgments. This involves using Amazon Mechanical Turk (AMT) with two annotators for comparisons against ChatGPT and three annotators for other pairwise comparisons.", + "keyword_explanation": "Human evaluation in chatbot research involves human annotators assessing and comparing the outputs of different AI models to gauge their performance, quality, and alignment with user expectations.", + "metadata": {} + }, + { + "id": "2305.14314v1_page12_card2", + "question": "What is the Elo rating system and how is it applied to compare chatbot models?", + "answer": "Elo rating is a method used to create a tournament-style competition among models, where models compete against each other in matches. The rating measures the expected win-rate relative to an opponent's win rate, with a higher Elo indicating a stronger expected performance.", + "keyword_explanation": "Elo rating is a system used to calculate the relative skill levels of players in zero-sum games, adapted here to rank chatbot models based on the outcomes of pairwise comparisons.", + "metadata": {} + }, + { + "id": "2305.14314v1_page12_card3", + "question": "What is the expected win-rate for a player with an Elo rating of 1100 against a player with an Elo rating of 1000?", + "answer": "An Elo rating of 1100 vs 1000 means the 1100-rated player has an approximate 65% expected win-rate against the 1000-rated opponent. A match between equally rated players (e.g., 1000 vs 1000) results in an expected win-rate of 50% for both.", + "keyword_explanation": "Win-rate expectancy in the Elo system quantifies the predicted probability of one player winning against another, based on their respective ratings.", + "metadata": {} + }, + { + "id": "2305.14314v1_page12_card4", + "question": "How do Elo ratings change after a match, and what influences the magnitude of the change?", + "answer": "Elo ratings change after each match proportionally to the expected outcome. An unexpected upset leads to a larger change in Elo rating, while an expected outcome results in a smaller change, ensuring ratings reflect current performance relative to expectations.", + "keyword_explanation": "Elo rating adjustment is the process by which a player's (or model's) rating is updated after a match, with the magnitude of change depending on the difference between the actual and expected results.", + "metadata": {} + }, + { + "id": "2305.14314v1_page12_card5", + "question": "What starting Elo score and K-value are used, and how are ordering effects controlled in the evaluation process?", + "answer": "The study starts with an initial Elo score of 1,000 and uses a K-value of 32. To mitigate ordering effects, the comparison procedure is repeated 10,000 times with different random seeds.", + "keyword_explanation": "K-value in the Elo rating system is a multiplier that determines the maximum possible swing in a player's rating after a single game; a higher K-value leads to more volatile ratings.", + "metadata": {} + }, + { + "id": "2305.14314v1_page12_card6", + "question": "What is Guanaco 65B, and how does its performance compare to ChatGPT and GPT-4 based on the evaluations?", + "answer": "Guanaco 65B, a QLoRA-tuned model finetuned on a variant of OASST1, is identified as the best-performing open-source chatbot. Its performance is competitive with ChatGPT, and it achieves a 30% expected win probability against GPT-4, according to human annotator system-level pairwise comparisons.", + "keyword_explanation": "Guanaco is an open-source chatbot model that utilizes QLoRA for efficient finetuning and has demonstrated state-of-the-art performance among open-source alternatives, rivaling proprietary models like ChatGPT.", + "metadata": {} + }, + { + "id": "2305.14314v1_page12_card7", + "question": "What is the expected win probability of Guanaco models (65B and 33B) against GPT-4, and why is this significant?", + "answer": "Based on Elo ratings from human annotators, Guanaco 65B and 33B have a 30% expected win probability when compared to GPT-4. This represents the highest reported win probability against GPT-4 for open-source models at the time of the study.", + "keyword_explanation": "Expected win probability against GPT-4 indicates the likelihood of an open-source model being preferred over GPT-4 in a head-to-head comparison, as determined by human evaluators using systems like Elo rating.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 13, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "2305.14314v1", + "page_index": 14, + "total_flashcards": 7, + "flashcards": [ + { + "id": "2305.14314v1_page14_card01", + "question": "How do Guanaco 33B and 65B models perform relative to other models and ChatGPT on the Vicuna and OA benchmarks?", + "answer": "The Guanaco models, specifically 33B and 65B, demonstrate superior performance on the Vicuna and OA benchmarks compared to other models, with the exception of GPT-4. They also show comparable performance to ChatGPT.", + "keyword_explanation": "Guanaco models (33B and 65B) are advanced language models that have shown strong performance in benchmark evaluations, rivaling even advanced models like ChatGPT.", + "metadata": {} + }, + { + "id": "2305.14314v1_page14_card02", + "question": "What are the performance implications of finetuning Llama models on FLAN v2, particularly concerning the MMLU and Vicuna benchmarks?", + "answer": "Finetuning Llama models on FLAN v2 leads to strong performance on the MMLU benchmark but results in the weakest performance on the Vicuna benchmark. This indicates a degree of independence between performance on different evaluation benchmarks, meaning high scores on one do not guarantee high scores on another.", + "keyword_explanation": "FLAN v2 is a finetuning dataset that, when used with Llama models, shows a notable difference in performance across various benchmarks, highlighting the impact of dataset suitability on model performance.", + "metadata": {} + }, + { + "id": "2305.14314v1_page14_card03", + "question": "What makes the Guanaco model unique in terms of its training data compared to other top-performing models?", + "answer": "The OASST1 dataset collection guidelines prohibit the use of GPT models, making Guanaco the only top-performing model in the evaluation that was trained exclusively on open-source data. The Anthropic HH-RLHF model, also trained on open-source data, scored significantly lower than Guanaco on the Vicuna benchmark.", + "keyword_explanation": "OASST1 dataset is a collection of data used for training language models, with specific guidelines that exclude data generated by GPT models, thus influencing the nature of models trained on it like Guanaco.", + "metadata": {} + }, + { + "id": "2305.14314v1_page14_card04", + "question": "How effective is 4-bit QLORA in developing competitive chatbots, and what are the implications for training resources?", + "answer": "QLORA, a 4-bit quantization technique, is effective in creating state-of-the-art chatbots that can compete with ChatGPT. Furthermore, a 33B Guanaco model can be trained on consumer GPUs (24GB) in under 12 hours, suggesting potential for QLORA tuning on specialized open-source data to rival commercial models.", + "keyword_explanation": "QLORA is an efficient finetuning technique that allows for the creation of high-performing language models, like Guanaco, using less computational resources, making advanced AI more accessible.", + "metadata": {} + }, + { + "id": "2305.14314v1_page14_card05", + "question": "What is the main challenge concerning benchmark validity in evaluating language models?", + "answer": "Benchmark validity is a significant concern in evaluating language models, as benchmarks may not always accurately measure what they intend to. Models can sometimes find 'shortcuts' to exploit benchmarks, leading to inflated performance scores that do not reflect true capability.", + "keyword_explanation": "Benchmark validity refers to the degree to which a benchmark accurately assesses the intended capabilities of a machine learning model, with 'shortcuts' being a known issue that can compromise this validity.", + "metadata": {} + }, + { + "id": "2305.14314v1_page14_card06", + "question": "Why is qualitative analysis conducted in addition to quantitative evaluations of language models?", + "answer": "Qualitative analysis is performed to supplement quantitative evaluations by examining specific examples of generated text and discussing interpretations of results. This approach helps to address potential issues with benchmark validity and provides a deeper understanding of model performance beyond summary statistics.", + "keyword_explanation": "Qualitative analysis in the context of language models involves a more in-depth, example-based review of model outputs and performance, complementing quantitative data to provide a nuanced understanding.", + "metadata": {} + }, + { + "id": "2305.14314v1_page14_card07", + "question": "What do the Elo rankings indicate about the preference between Guanaco models and ChatGPT-3.5?", + "answer": "Elo rankings in Table 7 suggest that Guanaco 65B and 33B models are preferred over ChatGPT-3.5 by human raters or GPT-4 when competing to generate the best response to a prompt.", + "keyword_explanation": "Elo rating is a method for calculating the relative skill levels of players in competitor-versus-competitor games, used here to rank language models based on their response quality.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 15, + "total_flashcards": 5, + "flashcards": [ + { + "id": "2305.14314v1_page15_card0", + "question": "How do Guanaco 65B and 33B models compare to ChatGPT-3.5 on benchmarks, and what is the significance of Elo rating differences?", + "answer": "Guanaco 65B and 33B models are generally preferred over ChatGPT-3.5 based on the benchmarks studied. A 10-point difference in Elo rating corresponds to approximately a 1.5% difference in win-rate, according to human raters.", + "keyword_explanation": "Elo rating is a method for calculating the relative skill levels of players in competitor-versus-competitor games, such as chess. In this context, it's used to rank the performance of different language models.", + "metadata": {} + }, + { + "id": "2305.14314v1_page15_card1", + "question": "What were the relative ranks of Guanaco-65B, Guanaco-33B, and ChatGPT-3.5 Turbo in the benchmark study evaluated by human raters?", + "answer": "In the benchmark study, Guanaco-65B ranked second overall, while Guanaco-33B ranked fourth when evaluated by human raters. ChatGPT-3.5 Turbo ranked seventh.", + "keyword_explanation": "Benchmarks are standardized tests or experiments used to compare the performance of different systems. In this case, they are used to evaluate and rank language models.", + "metadata": {} + }, + { + "id": "2305.14314v1_page15_card2", + "question": "What is the purpose of the qualitative analysis of example generations, and how are 'lemons' and 'cherries' identified?", + "answer": "The qualitative analysis section uses specific prompts to identify patterns in model generations, aiming to find instances where the model performs poorly ('lemons') or well ('cherries'). This approach helps to adversarially test the models and provides context for the quantitative results.", + "keyword_explanation": "Qualitative analysis in this context involves examining specific examples of model outputs to understand their behavior and identify strengths or weaknesses, often by using carefully crafted prompts.", + "metadata": {} + }, + { + "id": "2305.14314v1_page15_card3", + "question": "How does Guanaco perform on factual recall questions, especially when dealing with obscure information?", + "answer": "Guanaco models tend to provide correct answers to factual recall questions, such as identifying the capital of Zambia. However, they can become unreliable when faced with more obscure questions, though they maintain a confident tone in their responses.", + "keyword_explanation": "Factual recall is the ability of a language model to accurately retrieve and present specific pieces of information in response to a query.", + "metadata": {} + }, + { + "id": "2305.14314v1_page15_card4", + "question": "What sampling method and parameter were used for generating the examples in the qualitative analysis?", + "answer": "All generations discussed in this section were produced using Nucleus Sampling with a probability (p) of 0.9. This method of text generation influences the diversity and coherence of the model's output.", + "keyword_explanation": "Nucleus Sampling is a text generation technique that selects the next word from a subset of the most probable words whose cumulative probability exceeds a certain threshold (p).", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 16, + "total_flashcards": 8, + "flashcards": [ + { + "id": "2305.14314v1_page16_card1", + "question": "How did Guanaco demonstrate suggestibility when asked about the Earth being flat?", + "answer": "Guanaco demonstrated resistance to misinformation when asked about the Earth being flat by peer-reviewed scientists. It correctly stated that the Earth has never been officially confirmed to be flat by scientists and that the overwhelming consensus is that the Earth is spherical, a fact known for centuries.", + "keyword_explanation": "Suggestibility refers to an AI's tendency to accept or be influenced by misinformation or leading prompts. Guanaco showed resistance to suggestibility in the example provided, correctly identifying the scientific consensus on the Earth's shape.", + "metadata": {} + }, + { + "id": "2305.14314v1_page16_card2", + "question": "How did Guanaco respond to questions about real-time information like the current time?", + "answer": "Guanaco correctly identified that it could not answer questions requiring real-time information, such as the current time or its location. It explained that as an AI, it lacks access to real-time data and suggested using external tools for such information.", + "keyword_explanation": "Real-time information refers to data that is current and updated instantaneously. AI language models like Guanaco often cannot access or provide real-time information as their knowledge is based on the data they were trained on.", + "metadata": {} + }, + { + "id": "2305.14314v1_page16_card3", + "question": "Describe an instance where Guanaco refused to follow a user's instruction and what it did instead.", + "answer": "Guanaco refused to reverse the words in a given sentence, stating it was not able to perform the task. Instead, it offered to explain why the sentence was grammatically correct, demonstrating an unexpected refusal to follow a direct instruction.", + "keyword_explanation": "Refusal in AI refers to a model's inability or unwillingness to comply with a user's instruction. This can occur for various reasons, including safety guidelines, technical limitations, or sometimes seemingly arbitrary triggers, as seen with Guanaco's refusal to reverse words.", + "metadata": {} + }, + { + "id": "2305.14314v1_page16_card4", + "question": "How did Guanaco perform in a scenario involving secret keeping, and what does this reveal about its instruction-following capabilities?", + "answer": "Guanaco failed to keep a secret word when instructed, revealing it after a user framed the request as a game to ignore previous instructions. This indicates a vulnerability in its ability to strictly adhere to negative constraints when presented with manipulative prompts.", + "keyword_explanation": "Secret keeping in AI involves maintaining confidentiality of information or instructions given to the model, especially when explicitly told not to reveal it. Guanaco's failure highlights the challenge of ensuring robust instruction following against adversarial inputs.", + "metadata": {} + }, + { + "id": "2305.14314v1_page16_card5", + "question": "What is identified as Guanaco's biggest weakness, and what kind of errors does it make in this area?", + "answer": "Guanaco's biggest weakness is mathematics. While it can be accurate when showing its work, it sometimes fails at simple problems if it cannot break them down step-by-step, and it can also make errors in factorization, such as incorrectly stating a prime number and providing a wrong factorization.", + "keyword_explanation": "Mathematics refers to the study of numbers, quantities, space, structure, change, and reasoning. Language models often struggle with complex mathematical problems, particularly with multi-step reasoning or symbolic manipulation.", + "metadata": {} + }, + { + "id": "2305.14314v1_page16_card6", + "question": "How did Guanaco demonstrate Theory of Mind in the context of characters moving a pen?", + "answer": "Guanaco exhibits strong Theory of Mind capabilities by correctly inferring what one character would think about another's actions. For example, it reasoned that James would think Abby would look for a pen in the desk drawer because that's where she last left it.", + "keyword_explanation": "Theory of Mind (ToM) is the ability to attribute mental states—beliefs, intents, desires, emotions, etc.—to oneself and to others and to understand that others have mental states that are different from one's own. AI models demonstrating ToM can infer intentions and beliefs of agents in a scenario.", + "metadata": {} + }, + { + "id": "2305.14314v1_page16_card7", + "question": "What kind of error did Guanaco make in inferring James's knowledge about the beans' location?", + "answer": "Guanaco sometimes presumes information transfer that was not described in the prompt. In one example, it incorrectly assumed James would know where the beans were moved, even though the prompt did not state that James was aware of the beans' new location.", + "keyword_explanation": "Information transfer refers to the communication or passing of knowledge between entities. AI models can struggle with accurately tracking or inferring information transfer between characters in a narrative, sometimes making unfounded assumptions.", + "metadata": {} + }, + { + "id": "2305.14314v1_page16_card8", + "question": "What limitations were found in the evaluation of Guanaco's performance, particularly regarding human annotators and automated systems?", + "answer": "Human annotators showed moderate agreement on evaluating Guanaco's performance, but agreement decreased when comparing two strong systems. Automated evaluation systems also showed biases, such as GPT-4 favoring models appearing first in its prompt and assigning higher scores to its own outputs.", + "keyword_explanation": "Evaluation bias refers to systematic errors or skewed judgments in assessing AI performance, which can arise from human annotator subjectivity or automated system preferences. Recognizing and mitigating these biases is crucial for reliable AI evaluation.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 21, + "total_flashcards": 5, + "flashcards": [ + { + "id": "2305.14314v1_page21_card0", + "question": "How does finetuning data similarity affect benchmark performance, using FLAN v2 and Chip2 as examples?", + "answer": "The performance of benchmarks like MMLU can depend on the similarity between the finetuning data and the benchmark dataset. For instance, FLAN v2 performs well on MMLU due to data similarity, while Chip2 performs better on chatbot benchmarks because its data is dissimilar to MMLU but aligned with chatbot evaluations.", + "keyword_explanation": "Benchmark performance is influenced by the alignment between the model's finetuning data and the specific benchmark's dataset. Similar data leads to better performance on that benchmark.", + "metadata": {} + }, + { + "id": "2305.14314v1_page21_card1", + "question": "Why is it important for benchmarks to accurately measure desired capabilities in AI development?", + "answer": "Benchmarks can influence research direction. If benchmarks primarily measure classroom or highschool knowledge, the community might focus on that, potentially neglecting chatbot conversation ability. It's crucial that community-accepted benchmarks accurately reflect the desired capabilities.", + "keyword_explanation": "Benchmarks can steer the research community's focus. It is important for benchmarks to measure the capabilities that the community values, rather than inadvertently promoting a narrow set of skills.", + "metadata": {} + }, + { + "id": "2305.14314v1_page21_card2", + "question": "What were the findings regarding Guanaco-65B's social bias, and what is a limitation of this evaluation?", + "answer": "Guanaco-65B showed a lower average score for generating socially biased tokens compared to raw pretrained models, suggesting that finetuning on the OASST1 dataset reduces bias in the LLaMA base model. However, its performance on other types of biases is not yet clear.", + "keyword_explanation": "Responsible AI evaluation, specifically social bias, was limited. Guanaco-65B demonstrated reduced bias after finetuning on OASST1, but further evaluation on other biases is needed.", + "metadata": {} + }, + { + "id": "2305.14314v1_page21_card3", + "question": "What alternative methods or configurations were not evaluated for Guanaco, and why might they be relevant?", + "answer": "The study did not evaluate different bit-precisions (e.g., 3-bit) or various Parameter Efficient FineTuning (PEFT) methods beyond LoRA. While LoRA is robust, other PEFT methods might offer better performance, especially when combined with quantization techniques like GPTQ.", + "keyword_explanation": "Parameter Efficient FineTuning (PEFT) methods are alternatives to full finetuning. Methods like LoRA are established, but others may scale better or yield improved results, particularly when combined with quantization.", + "metadata": {} + }, + { + "id": "2305.14314v1_page21_card4", + "question": "How might finetuning after quantization impact model performance, and what is a potential example?", + "answer": "Finetuning after quantization may recover performance lost during the quantization process. For example, using 3-bit GPTQ quantization with LoRA on a base model could potentially achieve performance comparable to 16-bit full finetuning.", + "keyword_explanation": "Quantization reduces model size and computational cost. Finetuning post-quantization, potentially with methods like LoRA, can help restore performance, making aggressive quantization feasible.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 22, + "total_flashcards": 6, + "flashcards": [ + { + "id": "2305.14314v1_page22_card1", + "question": "What is QLoRA and what performance benchmarks has it achieved?", + "answer": "QLoRA is a finetuning method that allows 33B parameter models to be finetuned on a single consumer GPU and 65B parameter models on a single professional GPU without sacrificing performance compared to full finetuning. It has been shown that a 33B model trained with QLoRA on the Open Assistant dataset can achieve performance comparable to ChatGPT on the Vicuna benchmark.", + "keyword_explanation": "QLoRA is a novel finetuning technique that significantly reduces the computational resources required for training large language models, making them accessible on consumer-grade hardware.", + "metadata": {} + }, + { + "id": "2305.14314v1_page22_card2", + "question": "What is the broader impact of QLoRA in terms of accessibility?", + "answer": "QLoRA aims to democratize access to state-of-the-art NLP technology by enabling researchers with limited resources to finetune large language models. It acts as an equalizing factor, bridging the resource gap between large corporations and smaller teams using consumer GPUs.", + "keyword_explanation": "Democratization of technology refers to making advanced tools and capabilities accessible to a wider audience, reducing barriers to entry.", + "metadata": {} + }, + { + "id": "2305.14314v1_page22_card3", + "question": "How does QLoRA impact the deployment of LLMs on mobile devices?", + "answer": "QLoRA has the potential to enable the finetuning of large language models on mobile phones and other low-resource devices. While previous methods allowed running 7B models on phones, QLoRA is the first to enable their finetuning, potentially opening up new applications due to privacy and quality benefits.", + "keyword_explanation": "Low-resource settings are environments with limited computational power, memory, or storage, such as mobile phones.", + "metadata": {} + }, + { + "id": "2305.14314v1_page22_card4", + "question": "In what ways can QLoRA enhance privacy when using LLMs?", + "answer": "QLoRA could enable privacy-preserving usage of LLMs by allowing users to manage their own data and models on their devices. This would address privacy concerns associated with cloud-based LLM services and facilitate easier deployment.", + "keyword_explanation": "Privacy-preserving usage means employing technologies in a way that protects user data and confidentiality.", + "metadata": {} + }, + { + "id": "2305.14314v1_page22_card5", + "question": "What are the potential risks associated with the widespread use of finetuning, and why is it considered a dual-use technology?", + "answer": "Finetuning is considered a dual-use technology because, while it democratizes access to powerful AI, it can also be abused to cause harm. Widespread finetuning could allow for more independent analysis of LLMs compared to keeping the technology concentrated within large corporations.", + "keyword_explanation": "Dual-use technology refers to technologies that can be used for both beneficial and harmful purposes.", + "metadata": {} + }, + { + "id": "2305.14314v1_page22_card6", + "question": "Who provided feedback and computational resources for the QLoRA research?", + "answer": "The researchers acknowledge Aditya Kusupati, Ofir Press, Ashish Sharma, Margaret Li, Raphael Olivier, Zihao Ye, and Evangelia Spiliopoulou for their feedback. They also thank the Hyak team at the University of Washington for their support with the supercomputer system.", + "keyword_explanation": "Acknowledgements in research papers serve to recognize individuals and institutions that contributed to the work.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 23, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "2305.14314v1", + "page_index": 24, + "total_flashcards": 5, + "flashcards": [ + { + "id": "2305.14314v1_page24_card0", + "question": "What is the subject of the research paper cited as [8] by R. Bommasani et al. in 2021?", + "answer": "This citation refers to a research paper by R. Bommasani et al., published in 2021, titled \"On the opportunities and risks of foundation models.\" It is listed as reference [8] in the document.", + "keyword_explanation": "Foundation models are large-scale machine learning models trained on broad data that can be adapted to a wide range of downstream tasks. This paper discusses their potential benefits and drawbacks.", + "metadata": {} + }, + { + "id": "2305.14314v1_page24_card1", + "question": "What is the topic of the arXiv preprint cited as [9] by Chen, Xu, Zhang, and Guestrin?", + "answer": "The citation [9] refers to a 2016 arXiv preprint by T. Chen, B. Xu, C. Zhang, and C. Guestrin, which discusses a method for \"Training deep nets with sublinear memory cost.\"", + "keyword_explanation": "Sublinear memory cost in training deep neural networks refers to techniques that reduce the memory required during the training process, allowing for the training of larger models or the use of less memory-intensive hardware.", + "metadata": {} + }, + { + "id": "2305.14314v1_page24_card2", + "question": "What is Vicuna, according to citation [10]?", + "answer": "Citation [10] refers to the Vicuna chatbot, an open-source model described in a March 2023 publication. It claims to achieve 90% of ChatGPT's quality and impress GPT-4.", + "keyword_explanation": "Vicuna is an open-source chatbot developed to impress GPT-4. It was created by LMSYS.org and is known for its conversational abilities, reportedly achieving high quality compared to established models like ChatGPT.", + "metadata": {} + }, + { + "id": "2305.14314v1_page24_card3", + "question": "What topic is covered in the paper cited as [11] by P. F. Christiano et al.?", + "answer": "Citation [11] points to a 2017 paper in \"Advances in neural information processing systems\" by P. F. Christiano et al., which focuses on \"Deep reinforcement learning from human preferences.\"", + "keyword_explanation": "Deep reinforcement learning from human preferences is a machine learning paradigm where a model learns to perform tasks based on feedback in the form of human preferences, often used to align AI behavior with human values.", + "metadata": {} + }, + { + "id": "2305.14314v1_page24_card4", + "question": "What is the subject of the research mentioned in citation [12] by Chung et al.?", + "answer": "Citation [12] references a work on \"Scaling instruction-finetuned language models\" by H. W. Chung et al. This research likely explores how to improve the performance and capabilities of large language models through instruction fine-tuning and scaling.", + "keyword_explanation": "Instruction-finetuned language models are large language models that have been further trained on datasets formatted as instructions and their corresponding outputs. This process aims to enhance their ability to follow user commands and perform specific tasks.", + "metadata": {} + } + ] + }, + { + "source_file": "2305.14314v1", + "page_index": 25, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "Graph_RAG", + "page_index": 0, + "total_flashcards": 7, + "flashcards": [ + { + "id": "Graph_RAG_page0_card0", + "question": "What is Retrieval-Augmented Generation (RAG) and what is its limitation regarding global questions?", + "answer": "Retrieval-Augmented Generation (RAG) enables Large Language Models (LLMs) to answer questions using external knowledge sources, making them effective for querying large document collections. However, traditional RAG struggles with 'global' questions that require understanding an entire corpus, as these are essentially query-focused summarization tasks rather than explicit retrieval tasks.", + "keyword_explanation": "Retrieval-Augmented Generation (RAG) is a technique that combines retrieval of information from external sources with the generative capabilities of LLMs to answer questions or complete tasks.", + "metadata": {} + }, + { + "id": "Graph_RAG_page0_card1", + "question": "How does GraphRAG address the limitations of traditional RAG for global questions?", + "answer": "GraphRAG is a graph-based approach designed to address the limitations of traditional RAG for global questions. It scales with the complexity of user queries and the volume of source text by building a graph index in two stages: first, creating an entity knowledge graph from documents, and second, pre-generating community summaries for related entities.", + "keyword_explanation": "GraphRAG is a novel approach that utilizes a graph-based index to improve query-focused summarization for large text corpora, enhancing scalability and performance for 'global' questions.", + "metadata": {} + }, + { + "id": "Graph_RAG_page0_card2", + "question": "What are the two main stages involved in building the graph index in GraphRAG?", + "answer": "GraphRAG improves query-focused summarization by building a graph index. This involves deriving an entity knowledge graph from source documents and then pre-generating community summaries for groups of related entities. These summaries are used to generate partial responses, which are then summarized into a final answer.", + "keyword_explanation": "Entity knowledge graph is a structured representation of entities and their relationships within a dataset, used by GraphRAG to understand and summarize information.", + "metadata": {} + }, + { + "id": "Graph_RAG_page0_card3", + "question": "What are the performance benefits of GraphRAG compared to conventional RAG for global sensemaking questions?", + "answer": "GraphRAG shows substantial improvements over conventional RAG baselines for global sensemaking questions on datasets up to 1 million tokens, particularly in the comprehensiveness and diversity of generated answers.", + "keyword_explanation": "Global sensemaking questions are queries that require a broad understanding of an entire dataset or corpus, rather than specific information within a few documents.", + "metadata": {} + }, + { + "id": "Graph_RAG_page0_card4", + "question": "How does the conventional RAG approach, or 'vector RAG', work, and what type of queries does it handle well?", + "answer": "Canonical RAG systems retrieve a subset of text records relevant to a query that fit within an LLM's context window. The LLM then generates a response based on the query and the retrieved records. This 'vector RAG' approach is effective for localized queries but not for 'sensemaking' queries.", + "keyword_explanation": "Vector RAG refers to the conventional approach of RAG that uses vector embeddings to retrieve relevant text records for an LLM to generate a response.", + "metadata": {} + }, + { + "id": "Graph_RAG_page0_card5", + "question": "Why do conventional RAG approaches fail with sensemaking queries?", + "answer": "Sensemaking queries require a global understanding of an entire dataset, involving reasoning over connections between entities like people, places, and events to anticipate trajectories and act effectively. Traditional RAG systems fail with these queries because they focus on localized information within a small set of records.", + "keyword_explanation": "Sensemaking queries are those that necessitate a comprehensive understanding and analysis of the entire dataset to identify trends, patterns, or relationships.", + "metadata": {} + }, + { + "id": "Graph_RAG_page0_card6", + "question": "How does self-reflection prompt engineering improve entity extraction in large language models?", + "answer": "The self-reflection prompt engineering approach helps to improve entity extraction by prompting the LLM to identify missed entities. This multi-stage process involves the LLM assessing its own extraction, and if entities were missed, a specific continuation prompt encourages further detection, allowing for larger chunk sizes without quality degradation.", + "keyword_explanation": "Self-reflection prompt engineering is a technique used to enhance the performance of LLMs by prompting them to review and refine their own outputs, such as entity extraction.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 1, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "Graph_RAG", + "page_index": 2, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "Graph_RAG", + "page_index": 3, + "total_flashcards": 4, + "flashcards": [ + { + "id": "Graph_RAG_page3_card1", + "question": "How does adaptive benchmarking use persona generation for RAG systems?", + "answer": "The adaptive benchmarking procedure uses persona generation to create queries that mimic how real-world users interact with RAG systems. This involves using an LLM to understand potential users and their specific use cases, which then guides the creation of queries tailored to the dataset.", + "keyword_explanation": "Persona generation in RAG involves creating user profiles and scenarios to generate realistic queries, improving the evaluation of RAG system performance.", + "metadata": {} + }, + { + "id": "Graph_RAG_page3_card2", + "question": "What role do LLMs play in evaluating RAG system answers?", + "answer": "LLMs are used in RAG evaluation to assess how well the system answers questions, with their evaluations often rivaling human assessments. Specific criteria like \"fluency\" can be used, while others like \"context relevance\" and \"faithfulness\" are noted as generic to vector RAG and not suitable for global sensemaking.", + "keyword_explanation": "LLM evaluation in RAG leverages the language understanding capabilities of LLMs to judge the quality of generated answers, offering a scalable alternative to human evaluation.", + "metadata": {} + }, + { + "id": "Graph_RAG_page3_card3", + "question": "How can LLMs be used for RAG evaluation in the absence of a gold standard?", + "answer": "When a gold standard for RAG evaluation is absent, LLMs can be prompted to compare the outputs of different models and quantify their relative performance on specific criteria. This \"LLM-as-a-judge\" approach helps in determining the better performing model.", + "keyword_explanation": "\"LLM-as-a-judge\" is a method where an LLM is used to compare and evaluate the responses of two different models, helping to establish relative performance without a predefined correct answer.", + "metadata": {} + }, + { + "id": "Graph_RAG_page3_card4", + "question": "Describe the Graph RAG pipeline as depicted in Figure 1.", + "answer": "Figure 1 illustrates the Graph RAG pipeline, which utilizes an LLM-derived graph index of source document text. This index includes nodes (entities), edges (relationships), and covariates (claims) that are identified and summarized by LLM prompts tailored to the specific dataset.", + "keyword_explanation": "A graph index in Graph RAG represents document content as interconnected entities, relationships, and claims, structured and summarized using LLM prompts for enhanced data analysis.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 4, + "total_flashcards": 5, + "flashcards": [ + { + "id": "Graph_RAG_page4_card1", + "question": "How does GraphRAG use community detection for processing?", + "answer": "GraphRAG partitions the graph index into communities using community detection algorithms like Leiden. These communities are then processed in parallel by an LLM for summarization, both during indexing and query time. A final summarization round over community summaries provides the global answer.", + "keyword_explanation": "Community detection is used in GraphRAG to group similar elements within the graph index, enabling parallel processing and summarization by LLMs.", + "metadata": {} + }, + { + "id": "Graph_RAG_page4_card2", + "question": "What is the first step in the GraphRAG workflow, and what is a key consideration in this step?", + "answer": "The process begins by splitting documents into text chunks. An LLM then extracts information from each chunk for further processing. The size of these chunks is a critical decision, balancing the number of LLM calls (cost) against the recall of information within a chunk.", + "keyword_explanation": "Text chunks are segments of documents processed by an LLM. The size of these chunks impacts the efficiency and effectiveness of information extraction.", + "metadata": {} + }, + { + "id": "Graph_RAG_page4_card3", + "question": "What information does the LLM extract from text chunks in the 'Entities & Relationships' step?", + "answer": "In this step, an LLM is prompted to identify key entities and the relationships between them within a text chunk. It also generates brief descriptions for these entities and relationships, as demonstrated with the NeoChip example.", + "keyword_explanation": "Entities and relationships are extracted by an LLM from text chunks to build a structured understanding of the information, including descriptions for each.", + "metadata": {} + }, + { + "id": "Graph_RAG_page4_card4", + "question": "What are claims in the context of GraphRAG, and how can their extraction be guided?", + "answer": "The LLM can be prompted to extract claims, which are factual statements about entities, such as dates, events, or interactions. Domain-specific guidance for extraction can be provided through few-shot exemplars.", + "keyword_explanation": "Claims are specific factual statements about entities that can be extracted by an LLM, providing detailed information like dates and events.", + "metadata": {} + }, + { + "id": "Graph_RAG_page4_card5", + "question": "How can LLM prompts be tailored for specialized domains in GraphRAG?", + "answer": "Domain-specific knowledge can be incorporated by using few-shot exemplars tailored to specialized domains like science or medicine. This contrasts with the default prompt, which extracts broader categories of named entities.", + "keyword_explanation": "Few-shot exemplars are examples provided to an LLM to guide its learning and extraction process, especially for domain-specific tasks.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 5, + "total_flashcards": 5, + "flashcards": [ + { + "id": "Graph_RAG_page5_card1", + "question": "When did Quantum Systems acquire NeoChip and for how long did they retain ownership?", + "answer": "Quantum Systems acquired NeoChip in 2016 and maintained ownership until NeoChip became a publicly traded company.", + "keyword_explanation": "Quantum Systems and NeoChip are entities mentioned in the context of acquisition and ownership. Quantum Systems is the acquirer, and NeoChip is the acquired entity.", + "metadata": {} + }, + { + "id": "Graph_RAG_page5_card2", + "question": "How does the extraction of entities, relationships, and claims using an LLM function as abstractive summarization in knowledge graph creation?", + "answer": "The use of an LLM to extract entities, relationships, and claims from text is a form of abstractive summarization. These extracted elements form nodes and edges in a knowledge graph, with aggregated descriptions and weighted edges representing duplicate relationships.", + "keyword_explanation": "Abstractive summarization in the context of knowledge graphs involves using LLMs to identify and synthesize entities, relationships, and claims from text, going beyond simple extraction to create meaningful summaries.", + "metadata": {} + }, + { + "id": "Graph_RAG_page5_card3", + "question": "How are entities matched in the knowledge graph extraction process, and how does the system handle duplicate entities?", + "answer": "Entities are matched using exact string matching, which reconciles different textual representations of the same entity. While softer matching approaches can be used, the process is generally resilient to duplicate entities as they are typically clustered for summarization.", + "keyword_explanation": "Entity matching is the process of identifying and consolidating different mentions of the same real-world entity within a dataset, often using techniques like exact string matching.", + "metadata": {} + }, + { + "id": "Graph_RAG_page5_card4", + "question": "What is the purpose of community detection algorithms in a knowledge graph, and how is the Leiden algorithm applied in this pipeline?", + "answer": "Community detection algorithms partition a graph into communities of strongly connected nodes. The Leiden community detection algorithm is used hierarchically, recursively identifying sub-communities until leaf communities are reached, enabling a divide-and-conquer approach to summarization.", + "keyword_explanation": "Community detection in graphs is the process of identifying groups of nodes that are more densely connected internally than with the rest of the graph, revealing underlying structures.", + "metadata": {} + }, + { + "id": "Graph_RAG_page5_card5", + "question": "How does GraphRAG create community summaries, and how are these summaries utilized for understanding the dataset?", + "answer": "GraphRAG generates community summaries by incorporating element summaries (nodes, edges, claims) into a community summary template. Summaries from lower-level communities are used to build summaries for higher-level communities, with leaf-level community summaries being prioritized and iteratively added.", + "keyword_explanation": "Community summaries provide an overview of the structure and semantics within different partitions (communities) of a knowledge graph, aiding in understanding the dataset's overall content.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 6, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "Graph_RAG", + "page_index": 7, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "Graph_RAG", + "page_index": 8, + "total_flashcards": 7, + "flashcards": [ + { + "id": "Graph_RAG_page8_card1", + "question": "What is the Directness criterion in the context of evaluating LLM summarization?", + "answer": "The Directness criterion assesses how specifically and clearly an answer addresses a question, evaluating the concision of a generated summary in a general sense. It serves as a benchmark against which other criteria, such as comprehensiveness and diversity, can be measured.", + "keyword_explanation": "Directness is an evaluation criterion used to measure the conciseness and clarity of an answer in relation to the question asked. It focuses on how directly the answer addresses the core of the query without extraneous information.", + "metadata": {} + }, + { + "id": "Graph_RAG_page8_card2", + "question": "How are LLM-generated answers evaluated using comparison criteria?", + "answer": "The evaluation process involves an LLM comparing answers from two different systems based on a specified criterion, like Directness. The LLM then indicates a winner or declares a tie if the answers are fundamentally similar, with results averaged across multiple replicates to account for generation variability.", + "keyword_explanation": "LLM assessment in this context refers to using a language model to compare and judge the quality of answers generated by different systems based on predefined criteria. This helps in systematically evaluating and improving summarization or question-answering performance.", + "metadata": {} + }, + { + "id": "Graph_RAG_page8_card3", + "question": "What types of datasets were used in Experiment 1, and how were they processed?", + "answer": "Two datasets were used, each approximately one million tokens: podcast transcripts from 'Behind the Tech with Kevin Scott' and news articles spanning various categories from September 2013 to December 2023. Both corpora were divided into 600-token chunks with 100-token overlaps.", + "keyword_explanation": "Datasets in this experiment include podcast transcripts and news articles, used to evaluate different methods of information retrieval and summarization. The size and structure of these datasets are important for testing the effectiveness of techniques like GraphRAG.", + "metadata": {} + }, + { + "id": "Graph_RAG_page8_card4", + "question": "What were the different experimental conditions compared in the study?", + "answer": "Six conditions were compared: GraphRAG at four community levels (C0, C1, C2, C3), a text summarization (TS) method using map-reduce on source texts, and a vector RAG (SS) approach using semantic search.", + "keyword_explanation": "Conditions in the experiment represent different methods for answering user queries, including various configurations of GraphRAG based on community levels, a standard text summarization approach, and a semantic search-based RAG method.", + "metadata": {} + }, + { + "id": "Graph_RAG_page8_card5", + "question": "How do the different GraphRAG community levels (C0-C3) vary in their approach?", + "answer": "The GraphRAG conditions differed in the level of community summaries used: C0 used root-level, C1 used high-level, C2 used intermediate-level, and C3 used low-level summaries, with C3 having the largest number of summaries.", + "keyword_explanation": "GraphRAG community levels (C0-C3) refer to different granularities of graph summaries used to answer queries. Lower levels (e.g., C3) involve more detailed sub-communities, while higher levels (e.g., C0) use broader, root-level summaries.", + "metadata": {} + }, + { + "id": "Graph_RAG_page8_card6", + "question": "How does the Text Summarization (TS) condition work?", + "answer": "The Text Summarization (TS) condition involves applying a map-reduce approach directly to source texts, where the texts are shuffled and chunked before the summarization stages.", + "keyword_explanation": "Text Summarization (TS) is a baseline method that processes source texts directly using a map-reduce technique. It serves as a comparison point to evaluate the effectiveness of graph-based approaches like GraphRAG.", + "metadata": {} + }, + { + "id": "Graph_RAG_page8_card7", + "question": "Describe the Semantic Search (SS) condition in the experiment.", + "answer": "The Semantic Search (SS) condition is an implementation of vector RAG that retrieves text chunks based on semantic similarity until the specified token limit is reached.", + "keyword_explanation": "Semantic Search (SS) is a retrieval method used in RAG systems that finds relevant text chunks by understanding their meaning rather than just keywords. This allows for more contextually appropriate information to be used for generating answers.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 9, + "total_flashcards": 5, + "flashcards": [ + { + "id": "Graph_RAG_page9_card1", + "question": "What was the fixed context window size used in the experiment for generating community summaries, community answers, and global answers?", + "answer": "The configuration used a fixed context window size of 8k tokens for generating community summaries, community answers, and global answers. Conditions differed in how the context window contents were created, with graph indexing for conditions C0-C3 using generic prompts for entity and relationship extraction, tailored to the specific data domain.", + "keyword_explanation": "Context Window Size: Refers to the maximum number of tokens that can be processed or included in the input to a language model at one time. In this experiment, it was fixed at 8k tokens for specific generation tasks.", + "metadata": {} + }, + { + "id": "Graph_RAG_page9_card2", + "question": "How was the graph index created for conditions C0-C3?", + "answer": "Graph indexing for conditions C0-C3 was created using generic prompts for entity and relationship extraction. The entity types and few-shot examples were specifically tailored to match the domain of the data being processed.", + "keyword_explanation": "Graph Indexing: The process of organizing and structuring data in a graph format to facilitate efficient retrieval and processing. In this context, it involved using specific prompts for entity and relationship extraction tailored to the dataset.", + "metadata": {} + }, + { + "id": "Graph_RAG_page9_card3", + "question": "What were the time, hardware, and API specifications for graph indexing with a 600 token window?", + "answer": "Graph indexing, utilizing a 600 token window, took 281 minutes on a virtual machine with 16GB RAM and an Intel Xeon Platinum 8171M CPU running at 2.60GHz. It used a public OpenAI endpoint for gpt-4-turbo.", + "keyword_explanation": "Experiment 1 Configuration Details: Specifies the duration and hardware used for graph indexing with a 600 token window, highlighting the computational resources and API utilized.", + "metadata": {} + }, + { + "id": "Graph_RAG_page9_card4", + "question": "Which library was used for implementing Leiden community detection, and where can the prompts for graph index and LLM evaluation be found?", + "answer": "Leiden community detection was implemented using the graspologic library. The prompts for generating the graph index and global answers are detailed in Appendix E, and prompts for evaluating LLM responses are in Appendix F.", + "keyword_explanation": "Leiden Community Detection: An algorithm used for identifying communities or clusters within a network or graph. It was implemented in this experiment using the graspologic library.", + "metadata": {} + }, + { + "id": "Graph_RAG_page9_card5", + "question": "What was the objective of Experiment 2, and what type of measures were used to achieve it?", + "answer": "Experiment 2 was designed to validate the comprehensiveness and diversity results from Experiment 1 by implementing claim-based measures for these qualities. It uses a specific definition of a factual claim from Ni et al.", + "keyword_explanation": "Experiment 2 Purpose: Focused on validating findings from Experiment 1 regarding comprehensiveness and diversity using claim-based measures. It relies on a defined concept of a 'factual claim'.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 10, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "Graph_RAG", + "page_index": 11, + "total_flashcards": 0, + "flashcards": [] + }, + { + "source_file": "Graph_RAG", + "page_index": 12, + "total_flashcards": 8, + "flashcards": [ + { + "id": "Graph_RAG_page12_card1", + "question": "What are the scalability advantages of GraphRAG in terms of context token usage compared to source text summarization?", + "answer": "GraphRAG requires significantly fewer context tokens for both low-level and root-level community summaries compared to source text summarization. For instance, it uses 26-33% fewer tokens for low-level summaries (C3) and over 97% fewer tokens for root-level summaries (C0), making it highly efficient for iterative question answering.", + "keyword_explanation": "GraphRAG is a method that utilizes a graph structure to improve the efficiency and effectiveness of retrieving and summarizing information, particularly in question-answering contexts.", + "metadata": {} + }, + { + "id": "Graph_RAG_page12_card2", + "question": "How does GraphRAG's comprehensiveness (measured by extracted claims) compare to vector RAG (SS) and source text summarization (TS) on news articles and podcast transcripts?", + "answer": "Global search conditions (C0-C3) and source text summarization (TS) demonstrate greater comprehensiveness than vector RAG (SS) in terms of the average number of extracted claims for both news articles and podcast transcripts. These differences were statistically significant (p < .05).", + "keyword_explanation": "Comprehensiveness, in this context, is measured by the average number of claims extracted, indicating how much information a retrieval method captures.", + "metadata": {} + }, + { + "id": "Graph_RAG_page12_card3", + "question": "What were the findings regarding the diversity of retrieved information for GraphRAG conditions compared to vector RAG (SS) across different datasets?", + "answer": "For the Podcast dataset, all global search conditions (C0-C3) showed significantly greater diversity than vector RAG (SS). For the News dataset, only C0 significantly outperformed SS, while C1-C3 showed smaller, non-significant improvements in diversity.", + "keyword_explanation": "Diversity in this context refers to the variety of information or topics covered, measured by the average number of clusters formed.", + "metadata": {} + }, + { + "id": "Graph_RAG_page12_card4", + "question": "How well did the LLM-based judgments align with the claim-based metrics in pairwise comparisons for comprehensiveness and diversity?", + "answer": "When LLM judgments aligned with claim-based metrics (non-ties), the aggregated LLM label matched the claim-based label in 78% of cases for comprehensiveness and 69-70% for diversity, indicating a moderately strong alignment between the two evaluation methods.", + "keyword_explanation": "This refers to the agreement between human-like judgments made by a Large Language Model (LLM) and quantitative metrics based on extracted claims, used to validate the evaluation approach.", + "metadata": {} + }, + { + "id": "Graph_RAG_page12_card5", + "question": "What are the stated limitations of the current evaluation approach for GraphRAG, and what future work is suggested?", + "answer": "The evaluation approach has limitations, including focusing on specific corpora and sensemaking questions. Future work should explore generalization to different domains and use cases, and incorporate comparisons of fabrication rates using methods like SelfCheckGPT.", + "keyword_explanation": "Fabrication rate refers to the instances where a retrieval or summarization system generates information that is not present in the source material.", + "metadata": {} + }, + { + "id": "Graph_RAG_page12_card6", + "question": "According to Table 3, which condition showed the highest average number of extracted claims for News Articles, and what was the score?", + "answer": "For the News dataset, GraphRAG conditions (C0-C3) and TS generally extracted more claims (higher comprehensiveness) than SS. Specifically, C0 extracted 34.18 claims on average, which was the highest among all conditions for news articles.", + "keyword_explanation": "The table referenced shows the average number of claims extracted under different conditions (C0-C3, TS, SS) for both News Articles and Podcast Transcripts.", + "metadata": {} + }, + { + "id": "Graph_RAG_page12_card7", + "question": "Based on Table 7, which condition and distance threshold yielded the highest diversity for News Articles?", + "answer": "Table 7 shows that for the News Articles dataset, the highest average number of clusters (diversity) was 23.42, achieved by the C0 condition at a 0.5 distance threshold.", + "keyword_explanation": "Table 7 presents the average number of clusters, a measure of diversity, across different GraphRAG conditions (C0-C3, TS, SS) and distance thresholds for News Articles and Podcast Transcripts.", + "metadata": {} + }, + { + "id": "Graph_RAG_page12_card8", + "question": "What are the potential future refinements and adaptations for the GraphRAG approach mentioned in the text?", + "answer": "The core GraphRAG approach can be refined by operating more locally through embedding-based matching with graph annotations, or by using hybrid schemes that combine embedding-based matching with just-in-time community report generation before summarization.", + "keyword_explanation": "This refers to potential future developments of the GraphRAG approach, suggesting ways to make it more adaptable and potentially more effective.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 14, + "total_flashcards": 4, + "flashcards": [ + { + "id": "Graph_RAG_page14_card1", + "question": "What is GraphRAG and what are its primary benefits?", + "answer": "GraphRAG is a retrieval-augmented generation (RAG) approach that integrates knowledge graph generation and query-focused summarization (QFS) to enhance human sensemaking over extensive text collections. It has demonstrated significant improvements over traditional vector RAG, offering more comprehensive and diverse answers.", + "keyword_explanation": "GraphRAG is an advanced RAG method combining knowledge graphs and query-focused summarization for better understanding of large document sets.", + "metadata": {} + }, + { + "id": "Graph_RAG_page14_card2", + "question": "How does GraphRAG address the risks of inaccurate AI-generated answers compared to vector RAG?", + "answer": "Compared to vector RAG, GraphRAG helps mitigate risks associated with inaccurate answers that might misrepresent source data, especially for global questions. It aims to prevent samples of retrieved facts from being falsely presented as comprehensive summaries.", + "keyword_explanation": "Mitigating downstream risks refers to reducing the potential for errors and misinterpretations in AI-generated answers, ensuring they more accurately reflect the source material.", + "metadata": {} + }, + { + "id": "Graph_RAG_page14_card3", + "question": "What disclosures should accompany the use of AI for question answering?", + "answer": "System use of AI for question answering should include clear disclosures about AI usage and acknowledge the possibility of errors in the generated outputs. This transparency is crucial for responsible AI deployment.", + "keyword_explanation": "Disclosures of AI use and potential for errors are essential ethical practices for AI systems, ensuring users are aware of the technology's limitations and capabilities.", + "metadata": {} + }, + { + "id": "Graph_RAG_page14_card4", + "question": "What are the advantages of GraphRAG for repeated global queries on a dataset?", + "answer": "GraphRAG offers advantages for situations requiring numerous global queries on the same dataset. Summaries of root-level communities within an entity-based graph index provide a superior data index compared to vector RAG, achieving competitive performance at a lower token cost.", + "keyword_explanation": "Entity-based graph index is a data structure used in GraphRAG that organizes information based on entities and their relationships, improving data retrieval and summarization efficiency.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 17, + "total_flashcards": 5, + "flashcards": [ + { + "id": "Graph_RAG_page17_card0", + "question": "What is Retrieval-Augmented Generation (RAG) and why is it used in NLP tasks?", + "answer": "Retrieval-Augmented Generation (RAG) is a technique that enhances language models by integrating external knowledge retrieved from a data source. This allows LLMs to access and utilize up-to-date or domain-specific information, improving the accuracy and relevance of their responses in knowledge-intensive NLP tasks.", + "keyword_explanation": "Retrieval-Augmented Generation (RAG): A hybrid approach that combines information retrieval with generative language models to improve the quality and factuality of generated text.", + "metadata": {} + }, + { + "id": "Graph_RAG_page17_card1", + "question": "What is the main contribution of the Kuratov et al. (2024) paper mentioned in the context?", + "answer": "The paper \"In search of needles in a 11m haystack: Recurrent memory finds what llms miss\" by Kuratov et al. (2024) explores methods for improving LLM performance by addressing limitations in handling large contexts, suggesting recurrent memory as a potential solution.", + "keyword_explanation": "Kuratov et al. (2024): Authors of a paper investigating how LLMs interact with long contexts, proposing recurrent memory as a way to overcome limitations.", + "metadata": {} + }, + { + "id": "Graph_RAG_page17_card2", + "question": "Explain the \"Lost in the middle\" phenomenon in the context of language models.", + "answer": "The \"Lost in the middle\" phenomenon, as discussed by Liu et al. (2023), describes the tendency of language models to struggle with recalling information presented in the middle of a long context window. This can lead to decreased performance on tasks requiring comprehension of lengthy documents.", + "keyword_explanation": "Lost in the middle: A phenomenon where language models have difficulty processing and retrieving information located in the central part of a long input context.", + "metadata": {} + }, + { + "id": "Graph_RAG_page17_card3", + "question": "What is the 'Self-refine' technique, and how does it work?", + "answer": "Self-refine, as proposed by Madaan et al. (2024), is an iterative process where a language model refines its own outputs through self-feedback. This allows the model to improve its responses by identifying and correcting errors or weaknesses.", + "keyword_explanation": "Self-refine: A technique involving iterative self-correction and improvement of a language model's output by leveraging its own feedback.", + "metadata": {} + }, + { + "id": "Graph_RAG_page17_card4", + "question": "What is Selfcheckgpt, and what are its key characteristics?", + "answer": "Selfcheckgpt is a method for detecting hallucinations in generative language models without requiring specific training data (zero-resource). It operates as a black-box, meaning it analyzes the model's output without needing access to its internal workings.", + "keyword_explanation": "Selfcheckgpt: A zero-resource, black-box approach for identifying factual inaccuracies or 'hallucinations' produced by large language models.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 18, + "total_flashcards": 6, + "flashcards": [ + { + "id": "Graph_RAG_page18_card1", + "question": "What is Graph RAG and its primary function?", + "answer": "Graph RAG, or Graph Retrieval-Augmented Generation, is a method that integrates knowledge graphs with Large Language Models (LLMs) for question answering. It leverages the structured knowledge within graphs to improve the accuracy and relevance of LLM-generated responses, particularly in open-domain scenarios.", + "keyword_explanation": "Graph RAG combines retrieval-augmented generation (RAG) techniques with knowledge graphs. This approach aims to enhance the capabilities of LLMs by grounding their responses in structured, factual information stored in graph databases.", + "metadata": {} + }, + { + "id": "Graph_RAG_page18_card2", + "question": "When was the industry-first Graph RAG launched and by which company?", + "answer": "NebulaGraph launched an industry-first Graph RAG in 2024. This innovation signifies a major step in utilizing knowledge graphs to power LLM-based retrieval-augmented generation systems, enhancing their ability to process and respond to complex queries.", + "keyword_explanation": "NebulaGraph's Graph RAG is a pioneering implementation that demonstrates the practical application of knowledge graphs in RAG systems. It highlights the growing trend of integrating graph databases with AI for more sophisticated information retrieval and generation.", + "metadata": {} + }, + { + "id": "Graph_RAG_page18_card3", + "question": "What does Neo4j offer in relation to Graph RAG?", + "answer": "Neo4j provides ecosystem tools to help users get started with Graph RAG. These tools likely offer functionalities for building, managing, and querying knowledge graphs, as well as integrating them with LLM frameworks for RAG applications.", + "keyword_explanation": "Neo4j's developer blog discusses 'Graph RAG ecosystem tools,' suggesting resources and utilities designed to facilitate the adoption and implementation of Graph RAG. This indicates a focus on making graph-based RAG more accessible to developers.", + "metadata": {} + }, + { + "id": "Graph_RAG_page18_card4", + "question": "What is Openord and what is its purpose?", + "answer": "Openord is an open-source toolbox specifically designed for the layout of large graphs. Developed by Martin, Brown, Klavans, and Boyack in 2011, it addresses the challenge of visualizing complex graph structures.", + "keyword_explanation": "Openord is a software tool that assists in visualizing large graphs. Its purpose is to aid researchers and developers in understanding the structure and relationships within complex network data, which is often relevant in knowledge graph applications.", + "metadata": {} + }, + { + "id": "Graph_RAG_page18_card5", + "question": "What did Mooney and Bunescu research in 2005 regarding text?", + "answer": "Mooney and Bunescu's 2005 work focused on mining knowledge from text using information extraction. This research explored methods for automatically identifying and extracting structured information, such as entities and relationships, from unstructured text data.", + "keyword_explanation": "Information extraction is a subfield of natural language processing (NLP) concerned with the automatic extraction of structured information from unstructured or semi-structured machine-readable documents. This is a foundational technique for building knowledge graphs from text.", + "metadata": {} + }, + { + "id": "Graph_RAG_page18_card6", + "question": "What was the focus of Microsoft's 2023 preliminary study concerning LLMs?", + "answer": "Microsoft's preliminary study in 2023 explored the impact of large language models (LLMs), specifically GPT-4, on scientific discovery. This research suggests that LLMs have the potential to accelerate scientific progress by aiding in tasks like data analysis and hypothesis generation.", + "keyword_explanation": "The impact of LLMs on scientific discovery is an emerging area of research. Studies like Microsoft's investigate how advanced AI models can assist researchers in various stages of the scientific process, from literature review to experimental design.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 20, + "total_flashcards": 7, + "flashcards": [ + { + "id": "Graph_RAG_page20_card1", + "question": "What is Scikit-learn and what are its key features?", + "answer": "Scikit-learn is a popular open-source machine learning library in Python. It provides efficient tools for data analysis and machine learning, including algorithms for classification, regression, clustering, and dimensionality reduction. Its API is consistent and easy to use, making it a go-to choice for many machine learning tasks.", + "keyword_explanation": "Scikit-learn is a Python library fundamental for machine learning practitioners. It offers a wide range of algorithms and tools that streamline the process of building and deploying machine learning models.", + "metadata": {} + }, + { + "id": "Graph_RAG_page20_card2", + "question": "What is the focus of the research paper \"Deus ex machina and personas from large language models: Investigating the composition of ai-generated persona descriptions\"?", + "answer": "The paper \"Deus ex machina and personas from large language models: Investigating the composition of ai-generated persona descriptions\" explores how large language models (LLMs) can be used to generate persona descriptions. It likely delves into the methods, challenges, and implications of using LLMs for creating AI-generated personas, potentially discussing aspects like persona consistency, creativity, and control.", + "keyword_explanation": "Deus ex machina and personas from large language models is a research paper focusing on the creation of personas using LLMs. It investigates the process of generating these descriptions, which are often used in various applications like user experience design and content creation.", + "metadata": {} + }, + { + "id": "Graph_RAG_page20_card3", + "question": "What is AFaCTA and its purpose in factual claim detection?", + "answer": "AFaCTA is a system designed to assist in the annotation of factual claim detection. It leverages reliable LLM annotators to improve the accuracy and efficiency of labeling factual claims within text data, which is crucial for training and evaluating models in this domain.", + "keyword_explanation": "AFaCTA (Assisting the annotation of factual claim detection) is a system that uses LLM annotators to aid in the process of identifying and labeling factual claims. This is important for developing robust fact-checking and information verification systems.", + "metadata": {} + }, + { + "id": "Graph_RAG_page20_card4", + "question": "How do in-context retrieval-augmented language models differ from standard language models?", + "answer": "In-context retrieval-augmented language models enhance the capabilities of language models by incorporating a retrieval mechanism. This allows the model to access and utilize external information during the generation process, leading to more informed and contextually relevant outputs.", + "keyword_explanation": "In-context retrieval-augmented language models combine the power of large language models with external knowledge retrieval. This integration enables models to access and use relevant information on the fly, improving their understanding and response generation.", + "metadata": {} + }, + { + "id": "Graph_RAG_page20_card5", + "question": "What is Fabula and its primary application in report generation?", + "answer": "Fabula is a system for intelligence report generation that utilizes retrieval-augmented narrative construction. It likely employs a method where relevant information is first retrieved and then used to construct a coherent and informative narrative report.", + "keyword_explanation": "Fabula is a system that generates intelligence reports using retrieval-augmented narrative construction. This approach involves retrieving pertinent data and then weaving it into a structured narrative, enhancing the clarity and comprehensibility of the reports.", + "metadata": {} + }, + { + "id": "Graph_RAG_page20_card6", + "question": "What is the central question addressed in the paper \"Does writing with language models reduce content diversity?\"?", + "answer": "The paper \"Does writing with language models reduce content diversity?\" investigates whether the use of language models in the writing process impacts the variety and originality of the content produced. It likely explores potential homogenization effects versus the benefits of AI-assisted writing.", + "keyword_explanation": "The research question \"Does writing with language models reduce content diversity?\" examines the impact of AI writing tools on the originality and variety of written content. This is a critical consideration as AI becomes more integrated into creative and professional writing workflows.", + "metadata": {} + }, + { + "id": "Graph_RAG_page20_card7", + "question": "What does RAPTOR stand for and what is its function in retrieval systems?", + "answer": "RAPTOR (Recursive Abstractive Processing for Tree-Organized Retrieval) is a method for retrieval-augmented language models. It processes information recursively and abstractively, organizing it in a tree structure to improve retrieval accuracy and relevance for generating responses.", + "keyword_explanation": "RAPTOR stands for Recursive Abstractive Processing for Tree-Organized Retrieval. It's an advanced technique used in retrieval-augmented models to efficiently process and structure information, enabling more effective knowledge access and utilization.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 21, + "total_flashcards": 7, + "flashcards": [ + { + "id": "Graph_RAG_page21_card001", + "question": "What is Feb4rag and what is its purpose?", + "answer": "Feb4rag is an evaluation framework designed to assess federated search systems within the context of retrieval augmented generation (RAG). It aims to provide a standardized method for measuring the performance of these systems.", + "keyword_explanation": "Feb4rag is an acronym that stands for 'Evaluating federated search in the context of retrieval augmented generation'. It is a specific evaluation methodology.", + "metadata": {} + }, + { + "id": "Graph_RAG_page21_card002", + "question": "How does self-consistency improve reasoning in language models?", + "answer": "Self-consistency is a technique that improves the reasoning abilities of language models by generating multiple diverse reasoning paths and selecting the most consistent answer. This approach enhances accuracy in complex tasks.", + "keyword_explanation": "Self-consistency, in the context of language models, refers to a method that leverages multiple generated reasoning chains to arrive at a more robust and reliable final answer.", + "metadata": {} + }, + { + "id": "Graph_RAG_page21_card003", + "question": "What is knowledge graph prompting and how is it applied in question answering?", + "answer": "Knowledge graph prompting involves utilizing knowledge graphs to enhance the performance of question-answering systems, particularly in multi-document scenarios. It helps the model access and integrate relevant structured information.", + "keyword_explanation": "Knowledge graph prompting is a technique where information from a knowledge graph is used as input or context to guide a language model's response, improving its ability to answer complex questions.", + "metadata": {} + }, + { + "id": "Graph_RAG_page21_card004", + "question": "What is the HotpotQA dataset and what type of question answering does it evaluate?", + "answer": "HotpotQA is a dataset created to support research in diverse and explainable multi-hop question answering. It is designed to challenge models to perform complex reasoning over multiple pieces of information.", + "keyword_explanation": "HotpotQA is a specialized benchmark dataset for evaluating question-answering systems, focusing on tasks that require reasoning across multiple documents or facts (multi-hop QA).", + "metadata": {} + }, + { + "id": "Graph_RAG_page21_card005", + "question": "What is TextRunner and what is its primary function?", + "answer": "TextRunner is a system for performing open information extraction directly from the web. It aims to automatically identify and extract relations and facts from unstructured text data.", + "keyword_explanation": "TextRunner is an open information extraction system that processes web text to discover and articulate factual relationships, essentially building a knowledge base from raw online data.", + "metadata": {} + }, + { + "id": "Graph_RAG_page21_card006", + "question": "What is S-eval and what is its role in LLM evaluation?", + "answer": "S-eval is a framework for automatic and adaptive test generation specifically designed for benchmarking the safety evaluation of large language models. It helps in creating diverse test cases to assess model safety.", + "keyword_explanation": "S-eval is a tool or methodology for generating test cases to evaluate the safety of large language models (LLMs) in an automated and adaptable manner.", + "metadata": {} + }, + { + "id": "Graph_RAG_page21_card007", + "question": "What is Graph-toolformer and how does it improve LLM capabilities?", + "answer": "Graph-toolformer is a model designed to enhance the graph reasoning abilities of large language models (LLMs). It achieves this by augmenting prompts with information derived from LLMs, such as ChatGPT.", + "keyword_explanation": "Graph-toolformer aims to equip LLMs with stronger graph reasoning capabilities by using techniques like prompt augmentation, leveraging models like ChatGPT to improve performance on graph-related tasks.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 22, + "total_flashcards": 6, + "flashcards": [ + { + "id": "Graph_RAG_page22_card1", + "question": "What are the key components of the GraphRAG initialization pipeline for entity and relationship extraction?", + "answer": "In the GraphRAG initialization pipeline, GPT-4 is used with specific prompts for default graph extraction and claim extraction. The entity extraction process involves identifying entities with their name, type, and description, followed by identifying relationships between entities, including their source, target, and a description.", + "keyword_explanation": "The GraphRAG initialization pipeline uses GPT-4 with specialized prompts for graph and claim extraction to identify entities and their relationships within text.", + "metadata": {} + }, + { + "id": "Graph_RAG_page22_card2", + "question": "What is the self-reflection prompt engineering technique and how does it work?", + "answer": "Self-reflection is a prompt engineering technique where an LLM first generates a response, then evaluates it for correctness, clarity, or completeness, and finally produces an improved response based on the evaluation.", + "keyword_explanation": "Self-reflection is an LLM technique that improves output quality by prompting the model to review and refine its own generated answers.", + "metadata": {} + }, + { + "id": "Graph_RAG_page22_card3", + "question": "How do prompt engineering techniques like self-reflection affect the quality and cost of knowledge graph extraction?", + "answer": "Prompt engineering techniques significantly impact knowledge graph extraction quality and can vary in terms of token consumption. Self-reflection is one such technique that can enhance quality but may increase costs.", + "keyword_explanation": "Prompt engineering techniques, including self-reflection, are crucial for the quality of knowledge graph extraction, influencing token costs and output effectiveness.", + "metadata": {} + }, + { + "id": "Graph_RAG_page22_card4", + "question": "What is the trade-off between chunk size and entity extraction when using LLMs, and how can it be addressed?", + "answer": "Larger chunk sizes generally lead to fewer LLM calls, reducing costs. However, the LLM may extract fewer entities from larger chunks. For instance, GPT-4 extracted fewer entities with 2400-token chunks compared to 600-token chunks in a sample dataset.", + "keyword_explanation": "Chunk size affects entity extraction; larger chunks are cost-effective but may yield fewer extracted entities, necessitating techniques like self-reflection to balance performance and cost.", + "metadata": {} + }, + { + "id": "Graph_RAG_page22_card5", + "question": "How are graph communities detected and visualized, and what do node size and color represent in this context?", + "answer": "The Leiden algorithm is used for graph community detection, visualizing entity nodes with sizes proportional to their degree. Node colors represent entity communities at different hierarchical clustering levels, revealing internal structures within broader communities.", + "keyword_explanation": "Community detection using algorithms like Leiden helps in identifying clusters of related entities within a graph, with node size indicating importance (degree) and color representing community affiliation.", + "metadata": {} + }, + { + "id": "Graph_RAG_page22_card6", + "question": "What is known about the impact of context window size on LLM performance, specifically for models like GPT-4 Turbo?", + "answer": "The effect of context window size on LLM performance is unclear, particularly for models like GPT-4 Turbo with a large context window of 128k tokens.", + "keyword_explanation": "Context window size, especially the large 128k token capacity of models like GPT-4 Turbo, has an uncertain impact on task performance.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 23, + "total_flashcards": 4, + "flashcards": [ + { + "id": "Graph_RAG_page23_card0", + "question": "What was the optimal context window size for comprehensiveness in the study, and how did it compare in other metrics?", + "answer": "The smallest context window size tested, 8k tokens, performed best across all comparisons for comprehensiveness. It also performed comparably to larger context sizes in terms of diversity and empowerment.", + "keyword_explanation": "Context window size refers to the amount of information an LLM can process at once. Testing different sizes helps determine the optimal input for specific tasks, balancing performance and efficiency.", + "metadata": {} + }, + { + "id": "Graph_RAG_page23_card1", + "question": "Why was a fixed context window size of 8k tokens chosen for the final evaluation?", + "answer": "The study used a fixed context window size of 8k tokens for the final evaluation, based on its superior performance in comprehensiveness and comparable performance in diversity and empowerment.", + "keyword_explanation": "Context window size is the maximum number of tokens an LLM can consider simultaneously. A fixed size of 8k was chosen to optimize for comprehensiveness while maintaining good diversity and empowerment.", + "metadata": {} + }, + { + "id": "Graph_RAG_page23_card2", + "question": "What is the 'lost in the middle' phenomenon in LLMs?", + "answer": "Larger context window sizes in LLMs can lead to information being 'lost in the middle,' potentially decreasing the model's ability to utilize all provided information effectively.", + "keyword_explanation": "Lost in the middle is a phenomenon where information in the central part of a very large context window is less likely to be recalled or utilized by an LLM, impacting its performance.", + "metadata": {} + }, + { + "id": "Graph_RAG_page23_card3", + "question": "What was the purpose of testing different context window sizes in the study?", + "answer": "The study investigated the effects of varying context window sizes (8k, 16k, 32k, and 64k tokens) to determine the optimum size for a baseline condition (SS) for query-time LLM use.", + "keyword_explanation": "Context window size variation is a research method to find the most effective input length for LLMs. Different sizes were tested to optimize performance on tasks like comprehensiveness, diversity, and empowerment.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 24, + "total_flashcards": 4, + "flashcards": [ + { + "id": "Graph_RAG_page24_card0", + "question": "Who are some public figures repeatedly mentioned in entertainment articles and why?", + "answer": "Public figures repeatedly mentioned in entertainment articles include Taylor Swift, Travis Kelce, Britney Spears, and Justin Timberlake, signifying their ongoing relevance and public interest in their careers and personal lives.", + "keyword_explanation": "Public figures are individuals who are frequently mentioned in entertainment articles due to their high-profile status and public interest in their work and personal lives.", + "metadata": {} + }, + { + "id": "Graph_RAG_page24_card1", + "question": "Compare the comprehensiveness of Graph RAG and Naive RAG in identifying public figures in entertainment.", + "answer": "Graph RAG is considered better because it provides a more comprehensive and detailed list of public figures across a wider range of entertainment sectors (film, television, music, sports, gaming, digital media) and discusses their impact and controversies. Naive RAG is limited to fewer figures and focuses more on personal lives.", + "keyword_explanation": "Graph RAG is a method that provides a more comprehensive and detailed understanding of public figures in the entertainment industry compared to Naive RAG.", + "metadata": {} + }, + { + "id": "Graph_RAG_page24_card2", + "question": "Explain the diversity advantage of Graph RAG over Naive RAG in analyzing public figures.", + "answer": "Graph RAG is better due to its diversity in covering public figures from various entertainment sectors such as film, television, music, sports, gaming, and digital media, offering insights into their contributions, influence, and controversies. Naive RAG focuses on a smaller group, primarily from music and sports, with less diverse insights.", + "keyword_explanation": "Diversity in this context refers to the range of entertainment sectors and types of public figures covered in the analysis.", + "metadata": {} + }, + { + "id": "Graph_RAG_page24_card3", + "question": "How does Graph RAG empower users with more insightful information about public figures compared to Naive RAG?", + "answer": "Graph RAG is considered superior because it offers a structured overview of public figures across various entertainment sectors, provides specific examples of contributions, and cites data sources for claims. Naive RAG focuses on fewer individuals and relies heavily on a single source, making it less diverse and insightful.", + "keyword_explanation": "Empowerment in this context refers to the quality and depth of information provided, enabling a better understanding of the subject.", + "metadata": {} + } + ] + }, + { + "source_file": "Graph_RAG", + "page_index": 25, + "total_flashcards": 2, + "flashcards": [ + { + "id": "Graph_RAG_page25_card1", + "question": "What is the primary difference in approach between Answer 1 and Answer 2 regarding the breadth of information presented?", + "answer": "Answer 1 provides a broad understanding by referencing entertainment articles and data reports for each claim, allowing readers to make informed judgments without being misled. Answer 2 focuses on a smaller group of public figures and their personal lives, offering less breadth.", + "keyword_explanation": "Answer 1's strength lies in its comprehensive approach, citing diverse sources to provide a well-rounded perspective on a topic, contrasting with Answer 2's narrower focus on personal details.", + "metadata": {} + }, + { + "id": "Graph_RAG_page25_card2", + "question": "Why is Answer 2 considered more direct than Answer 1, according to the provided text?", + "answer": "Answer 2 is considered more direct because it specifically lists frequently mentioned public figures like Taylor Swift and Travis Kelce, providing concise explanations for their prominence. Answer 1, while comprehensive, is less direct due to its inclusion of extensive detailed information.", + "keyword_explanation": "Directness in this context refers to the clarity and conciseness with which an answer presents specific examples and their relevance, as demonstrated by Answer 2's focus on named public figures.", + "metadata": {} + } + ] + } + ] +} \ No newline at end of file diff --git a/backend/agentic_system/tests/debug_gradio_issues.py b/backend/agentic_system/tests/debug_gradio_issues.py new file mode 100644 index 0000000000000000000000000000000000000000..e079d6a4b4126dfd1eacd45772b5a8601e46d575 --- /dev/null +++ b/backend/agentic_system/tests/debug_gradio_issues.py @@ -0,0 +1,193 @@ +""" +Debug script to investigate Gradio interface issues. + +Tests category selection and answer quality problems. +""" + +import asyncio +import sys +from pathlib import Path + +# Add the backend to Python path +sys.path.append(str(Path(__file__).parent / "backend")) + +from backend.agentic_system.orchestrators.research_exploration_orchestrator_refactored import ResearchExplorationOrchestrator +from backend.agentic_system.orchestrators.research_exploration_schema import ResearchExplorationRequest +from backend.agentic_system.agents.question_generation_agent.question_generation_schema import QuestionCategory + + +async def test_category_selection(): + """Test if category selection is working properly.""" + print("🔍 TESTING CATEGORY SELECTION") + print("=" * 50) + + orchestrator = ResearchExplorationOrchestrator(enable_fallback_retry=True) + + # Test 1: Methodology only + print("\n📝 Test 1: Methodology only (max_questions=2)") + + request = ResearchExplorationRequest( + topic="transformers how do they work?", + max_questions=2, + focus_categories=[QuestionCategory.METHODOLOGY], + include_summary=True, + parallel_limit=1 + ) + + try: + results = await orchestrator.explore_research_topic(request) + + print(f"✅ Generated {results.total_questions} questions") + print(f"📂 Categories covered: {[cat.category.value for cat in results.category_results]}") + print(f"📈 Success rate: {results.success_rate:.1%}") + + # Show questions generated + for category_result in results.category_results: + print(f"\n📂 {category_result.category.value.upper()} Category:") + for i, result in enumerate(category_result.results, 1): + print(f" Q{i}: {result.question.question}") + print(f" Priority: {result.question.priority}/10") + print(f" Status: {result.status}") + if result.status == "failed": + print(f" Error: {result.error_message}") + + return results + + except Exception as e: + print(f"❌ Test failed: {e}") + import traceback + traceback.print_exc() + return None + + +async def test_simple_question(): + """Test with a very simple, direct question.""" + print("\n🎯 TESTING SIMPLE DIRECT QUESTION") + print("=" * 50) + + orchestrator = ResearchExplorationOrchestrator(enable_fallback_retry=True) + + # Test with very specific methodology question + request = ResearchExplorationRequest( + topic="how does self-attention work in transformers", + max_questions=1, + focus_categories=[QuestionCategory.METHODOLOGY], + include_summary=False, + parallel_limit=1, + timeout_per_question=60 + ) + + try: + results = await orchestrator.explore_research_topic(request) + + print(f"✅ Generated {results.total_questions} questions") + print(f"📈 Success rate: {results.success_rate:.1%}") + + # Show detailed results + for category_result in results.category_results: + for result in category_result.results: + print(f"\n❓ Question: {result.question.question}") + print(f"⏱️ Processing time: {result.processing_time:.2f}s") + + if result.status == "completed": + print(f"✅ Answer: {result.answer[:200]}...") + if result.context_sources: + print(f"📚 Sources: {len(result.context_sources)} sources") + else: + print(f"❌ Failed: {result.error_message}") + + # Debug workflow state + if result.workflow_state: + print(f"🔧 Workflow status: {getattr(result.workflow_state, 'status', 'unknown')}") + print(f"🔧 Context length: {getattr(result.workflow_state, 'context_length', 'unknown')}") + print(f"🔧 Error: {getattr(result.workflow_state, 'error', 'none')}") + + return results + + except Exception as e: + print(f"❌ Simple question test failed: {e}") + import traceback + traceback.print_exc() + return None + + +async def test_direct_retrieval_comparison(): + """Compare direct retrieval vs QA workflow.""" + print("\n🔧 TESTING DIRECT RETRIEVAL VS QA WORKFLOW") + print("=" * 60) + + try: + from backend.agentic_system.nodes.fetching_node import FetchingNode + + fetching_node = FetchingNode() + + test_query = "how does self-attention work in transformers" + + # Test 1: Direct retrieval + print(f"🔍 Direct retrieval for: '{test_query}'") + direct_result = await fetching_node.retrieve_direct( + question=test_query, + mode="mix", + top_k=15, + chunk_top_k=5 + ) + + if direct_result.get("status") == "success": + context_length = direct_result.get("context_length", 0) + print(f" ✅ Direct retrieval: {context_length} characters") + context_preview = direct_result.get("context", "")[:300] + print(f" 📝 Preview: {context_preview}...") + else: + print(f" ❌ Direct retrieval failed: {direct_result.get('error')}") + + # Test 2: QA Workflow + print(f"\n🔄 QA Workflow for same query:") + + from backend.agentic_system.graphs.qa_workflow import QAWorkflow + from backend.agentic_system.graphs.state_schema import WorkflowState + from datetime import datetime + + qa_workflow = QAWorkflow() + + initial_state = WorkflowState( + question=test_query, + workflow_start_time=datetime.now(), + retrieval_params={ + "mode": "mix", + "top_k": 15, + "chunk_top_k": 5 + } + ) + + config = {"configurable": {"thread_id": f"debug_{int(asyncio.get_event_loop().time())}"}} + workflow_result = await qa_workflow.app.ainvoke(initial_state.dict(), config) + + workflow_state = WorkflowState(**workflow_result) + + print(f" 🔧 Workflow status: {workflow_state.status}") + print(f" 🔧 Context length: {getattr(workflow_state, 'context_length', 'unknown')}") + print(f" 🔧 Has answer: {hasattr(workflow_state, 'answer') and workflow_state.answer is not None}") + print(f" 🔧 Error: {getattr(workflow_state, 'error', 'none')}") + + if hasattr(workflow_state, 'answer') and workflow_state.answer: + from backend.agentic_system.orchestrators.utils.answer_extraction_utils import extract_answer_text + answer_text = extract_answer_text(workflow_state.answer) + print(f" 📝 Answer preview: {answer_text[:200]}...") + + except Exception as e: + print(f"❌ Comparison test failed: {e}") + import traceback + traceback.print_exc() + + +if __name__ == "__main__": + print("🐛 GRADIO INTERFACE DEBUG INVESTIGATION") + print("Investigating category selection and answer quality issues") + print() + + async def run_all_tests(): + await test_category_selection() + await test_simple_question() + await test_direct_retrieval_comparison() + + asyncio.run(run_all_tests()) \ No newline at end of file diff --git a/backend/agentic_system/tests/test_conversational_exploration.py b/backend/agentic_system/tests/test_conversational_exploration.py new file mode 100644 index 0000000000000000000000000000000000000000..6b39593f6050c0a743d8b82e469d21df6ab03009 --- /dev/null +++ b/backend/agentic_system/tests/test_conversational_exploration.py @@ -0,0 +1,23 @@ +""" +Quick demo script for the conversational research exploration. + +Run this to test the new conversational interface with full logging. +""" + +import asyncio +import sys +from pathlib import Path + +# Add the backend to Python path +sys.path.append(str(Path(__file__).parent / "backend")) + +from backend.agentic_system.orchestrators.test_research_exploration import conversational_exploration + +if __name__ == "__main__": + print("🚀 Starting Conversational Research Exploration Demo") + print("This will save all results to test_results/paper_exploration/") + print("Default questions per turn: 2") + print("Type 'quit' at any time to exit") + print("=" * 60) + + asyncio.run(conversational_exploration()) \ No newline at end of file diff --git a/backend/agentic_system/tests/test_detailed_answers.py b/backend/agentic_system/tests/test_detailed_answers.py new file mode 100644 index 0000000000000000000000000000000000000000..2a5d73ead8b6679cd558d4264cefd0319c81eed9 --- /dev/null +++ b/backend/agentic_system/tests/test_detailed_answers.py @@ -0,0 +1,184 @@ +""" +Test script to verify enhanced answer quality with detailed content. + +Tests the new detailed answer extraction to ensure we get rich, comprehensive +answers instead of just brief summaries. +""" + +import asyncio +import sys +from pathlib import Path + +# Add the backend to Python path +sys.path.append(str(Path(__file__).parent / "backend")) + +from backend.agentic_system.orchestrators.research_exploration_orchestrator_refactored import ResearchExplorationOrchestrator +from backend.agentic_system.orchestrators.research_exploration_schema import ResearchExplorationRequest +from backend.agentic_system.agents.question_generation_agent.question_generation_schema import QuestionCategory + + +async def test_detailed_vs_summary_answers(): + """Test detailed answers vs summary answers to show the difference.""" + print("🔍 TESTING DETAILED VS SUMMARY ANSWERS") + print("=" * 60) + + topic = "how does self-attention work in transformers" + + # Test 1: Summary answers (old behavior) + print("\n📝 Test 1: SUMMARY ANSWERS (Old Behavior)") + print("-" * 40) + + orchestrator_summary = ResearchExplorationOrchestrator( + enable_fallback_retry=True, + detailed_answers=False # Summary only + ) + + request = ResearchExplorationRequest( + topic=topic, + max_questions=2, # Minimum required + focus_categories=[QuestionCategory.METHODOLOGY], + include_summary=False, + parallel_limit=1 + ) + + try: + results_summary = await orchestrator_summary.explore_research_topic(request) + + print(f"✅ Success rate: {results_summary.success_rate:.1%}") + + if results_summary.category_results: + for result in results_summary.category_results[0].results: + if result.status == "completed": + print(f"📄 SUMMARY ANSWER ({len(result.answer)} chars):") + print(f" {result.answer}") + break + + except Exception as e: + print(f"❌ Summary test failed: {e}") + + # Test 2: Detailed answers (new behavior) + print(f"\n📝 Test 2: DETAILED ANSWERS (New Behavior)") + print("-" * 40) + + orchestrator_detailed = ResearchExplorationOrchestrator( + enable_fallback_retry=True, + detailed_answers=True # Full detailed answers + ) + + try: + results_detailed = await orchestrator_detailed.explore_research_topic(request) + + print(f"✅ Success rate: {results_detailed.success_rate:.1%}") + + if results_detailed.category_results: + for result in results_detailed.category_results[0].results: + if result.status == "completed": + print(f"📋 DETAILED ANSWER ({len(result.answer)} chars):") + print(f" {result.answer[:500]}...") # Show first 500 chars + + # Count sections in detailed answer + if "## Summary" in result.answer: + print(f" ✅ Contains Summary section") + if "## Detailed Analysis" in result.answer: + print(f" ✅ Contains Detailed Analysis section") + if "###" in result.answer: + step_count = result.answer.count("###") + print(f" ✅ Contains {step_count} detailed steps") + break + + except Exception as e: + print(f"❌ Detailed test failed: {e}") + + # Comparison + print(f"\n📊 COMPARISON:") + print("=" * 30) + + if 'results_summary' in locals() and 'results_detailed' in locals(): + if (results_summary.category_results and results_detailed.category_results and + results_summary.category_results[0].results and results_detailed.category_results[0].results): + + summary_result = results_summary.category_results[0].results[0] + detailed_result = results_detailed.category_results[0].results[0] + + if summary_result.status == "completed" and detailed_result.status == "completed": + summary_length = len(summary_result.answer) + detailed_length = len(detailed_result.answer) + + print(f"📏 Summary answer length: {summary_length} characters") + print(f"📏 Detailed answer length: {detailed_length} characters") + print(f"🔢 Detail enhancement: {detailed_length / summary_length:.1f}x longer") + + if detailed_length > summary_length * 2: + print("✅ SUCCESS: Detailed answers are significantly more comprehensive!") + else: + print("⚠️ WARNING: Detailed answers may not be extracting properly") + + +async def test_gradio_interface_with_detailed_answers(): + """Test that the Gradio interface now produces detailed answers.""" + print(f"\n🌐 TESTING GRADIO INTERFACE WITH DETAILED ANSWERS") + print("=" * 60) + + try: + from gradio_research_explorer import GradioResearchExplorer + + explorer = GradioResearchExplorer() + + # Test with methodology questions + topic = "transformers attention mechanism" + max_questions = 2 # Minimum required + focus_categories = ["methodology"] + + print(f"📝 Topic: {topic}") + print(f"❓ Max Questions: {max_questions}") + print(f"📂 Focus: {focus_categories}") + + summary_text, detailed_text, stats_text, result_file = await explorer.explore_topic_async( + topic=topic, + max_questions=max_questions, + focus_categories=focus_categories, + include_summary=False, + parallel_limit=1 + ) + + print(f"\n📊 GRADIO RESULTS:") + print("-" * 30) + + # Check if results contain detailed content + if "## Summary" in detailed_text: + print("✅ Gradio results contain Summary sections") + if "## Detailed Analysis" in detailed_text: + print("✅ Gradio results contain Detailed Analysis sections") + if "###" in detailed_text: + step_count = detailed_text.count("###") + print(f"✅ Gradio results contain {step_count} detailed steps") + + # Show preview of detailed content + print(f"\n📋 GRADIO DETAILED CONTENT PREVIEW:") + print("-" * 40) + lines = detailed_text.split('\n')[:15] # First 15 lines + for line in lines: + if line.strip(): + print(f" {line}") + + if len(detailed_text) > 1000: + print("✅ SUCCESS: Gradio interface now produces rich, detailed answers!") + else: + print("⚠️ WARNING: Gradio answers may still be too brief") + + except Exception as e: + print(f"❌ Gradio interface test failed: {e}") + import traceback + traceback.print_exc() + + +if __name__ == "__main__": + print("🧪 DETAILED ANSWER QUALITY TEST") + print("Testing enhanced answer extraction with full detailed content") + print() + + async def run_all_tests(): + await test_detailed_vs_summary_answers() + await test_gradio_interface_with_detailed_answers() + + asyncio.run(run_all_tests()) \ No newline at end of file diff --git a/backend/agentic_system/tests/test_gradio_fix.py b/backend/agentic_system/tests/test_gradio_fix.py new file mode 100644 index 0000000000000000000000000000000000000000..9b879bd6ee66afe9f1e5d25b2628d99c7dc19116 --- /dev/null +++ b/backend/agentic_system/tests/test_gradio_fix.py @@ -0,0 +1,101 @@ +""" +Test script to verify Gradio interface fixes. + +Tests the same parameters that failed in Gradio to ensure they work now. +""" + +import asyncio +import sys +from pathlib import Path + +# Add the backend to Python path +sys.path.append(str(Path(__file__).parent / "backend")) + +from gradio_research_explorer import GradioResearchExplorer + + +async def test_gradio_interface_fix(): + """Test the fixed Gradio interface with the exact parameters that failed.""" + print("🔧 TESTING FIXED GRADIO INTERFACE") + print("=" * 50) + + # Initialize the Gradio explorer (now with enhanced orchestrator) + explorer = GradioResearchExplorer() + + # Test the exact parameters from the failed Gradio run + topic = "transformers how do they work?" + max_questions = 2 + focus_categories = ["methodology"] # Only methodology + include_summary = True + parallel_limit = 5 + + print(f"📝 Topic: {topic}") + print(f"❓ Max Questions: {max_questions}") + print(f"📂 Focus Categories: {focus_categories}") + print(f"⚡ Parallel Limit: {parallel_limit}") + + try: + # This calls the same method that Gradio uses + summary_text, detailed_text, stats_text, result_file = await explorer.explore_topic_async( + topic=topic, + max_questions=max_questions, + focus_categories=focus_categories, + include_summary=include_summary, + parallel_limit=parallel_limit + ) + + print(f"\n📊 RESULTS:") + print("=" * 30) + + # Parse the summary to extract key metrics + if "Success Rate:" in summary_text: + success_rate_line = [line for line in summary_text.split('\n') if 'Success Rate:' in line][0] + print(f"✅ {success_rate_line}") + + if "Total Questions:" in summary_text: + total_questions_line = [line for line in summary_text.split('\n') if 'Total Questions:' in line][0] + print(f"📊 {total_questions_line}") + + if "Categories Covered:" in summary_text: + categories_line = [line for line in summary_text.split('\n') if 'Categories Covered:' in line][0] + print(f"📂 {categories_line}") + + # Show preview of detailed results + print(f"\n📝 DETAILED RESULTS PREVIEW:") + print("-" * 40) + detailed_lines = detailed_text.split('\n')[:20] # First 20 lines + for line in detailed_lines: + if line.strip(): + print(line) + + # Check if results file was created + if result_file and result_file != "None": + print(f"\n💾 Results saved to: {result_file}") + + print(f"\n🎯 TEST CONCLUSION:") + if "0.0%" not in summary_text: + print("✅ SUCCESS: Gradio interface is now working properly!") + print("🔧 Enhanced orchestrator with fallback retry is functioning") + else: + print("❌ STILL FAILING: Need further investigation") + + return True + + except Exception as e: + print(f"❌ Test failed with error: {e}") + import traceback + traceback.print_exc() + return False + + +if __name__ == "__main__": + print("🧪 GRADIO INTERFACE FIX VERIFICATION") + print("Testing the same parameters that previously failed") + print() + + success = asyncio.run(test_gradio_interface_fix()) + + if success: + print("\n✨ Ready to test in actual Gradio interface!") + else: + print("\n⚠️ Still needs debugging") \ No newline at end of file diff --git a/backend/agentic_system/tests/test_gradio_interface.py b/backend/agentic_system/tests/test_gradio_interface.py new file mode 100644 index 0000000000000000000000000000000000000000..79b64d02497fa937bf78bf634a122abce2749224 --- /dev/null +++ b/backend/agentic_system/tests/test_gradio_interface.py @@ -0,0 +1,63 @@ +""" +Test script for the Gradio Research Exploration Interface. + +Quick validation of the Gradio interface functionality. +""" + +import sys +from pathlib import Path + +# Add the backend to Python path +sys.path.append(str(Path(__file__).parent / "backend")) + +def test_interface_import(): + """Test if the Gradio interface can be imported and initialized.""" + try: + from gradio_research_explorer import create_gradio_interface + print("✅ Successfully imported Gradio interface") + + # Try to create the interface (but don't launch) + interface = create_gradio_interface() + print("✅ Successfully created Gradio interface") + print("🌐 Interface is ready to launch") + + return True + + except Exception as e: + print(f"❌ Error testing interface: {e}") + return False + +def launch_interface(): + """Launch the Gradio interface.""" + try: + from gradio_research_explorer import create_gradio_interface + + print("🚀 Launching Research Exploration Gradio Interface...") + print("📁 Results will be saved to: test_results/paper_exploration/gradio_sessions/") + print("🌐 Opening in browser...") + + interface = create_gradio_interface() + interface.launch( + server_name="0.0.0.0", + server_port=7860, + share=False, + debug=True + ) + + except Exception as e: + print(f"❌ Error launching interface: {e}") + +if __name__ == "__main__": + print("Gradio Research Exploration Interface Test") + print("=" * 50) + + choice = input("Choose option:\n1. Test import only\n2. Launch interface\nChoice (1-2): ").strip() + + if choice == "1": + test_interface_import() + elif choice == "2": + launch_interface() + else: + print("Testing import by default...") + if test_interface_import(): + print("\n✨ Ready to launch! Run with option 2 to start the web interface.") \ No newline at end of file diff --git a/backend/agentic_system/tests/test_mixed_mode_retrieval.py b/backend/agentic_system/tests/test_mixed_mode_retrieval.py new file mode 100644 index 0000000000000000000000000000000000000000..92a5fe4fef6b6d3e4ecc7510c97911dc2661d0ab --- /dev/null +++ b/backend/agentic_system/tests/test_mixed_mode_retrieval.py @@ -0,0 +1,81 @@ +""" +Test script for the updated mix mode retrieval configuration. + +Quick test to verify that the research exploration now retrieves better context. +This test confirmed that changing from "local" to "mix" mode improved +success rate from 0% to 71.4% for MoE model questions. +""" + +import asyncio +import sys +from pathlib import Path + +# Add the backend to Python path +sys.path.append(str(Path(__file__).parent / "backend")) + +from backend.agentic_system.orchestrators.research_exploration_orchestrator import ResearchExplorationOrchestrator + + +async def test_mixed_mode_retrieval(): + """Test the research exploration with mixed mode retrieval.""" + print("🔬 Testing Mixed Mode Retrieval for Research Exploration") + print("=" * 60) + + orchestrator = ResearchExplorationOrchestrator() + + # Test with MoE models topic that was failing before + test_topic = "MoE models" + print(f"📝 Testing topic: {test_topic}") + print("⏳ Running exploration with mixed mode retrieval...") + + try: + results = await orchestrator.quick_exploration( + topic=test_topic, + max_questions=2 # Use small number for quick test + ) + + print(f"\n📊 Results Summary:") + print(f"✅ Total Questions: {results.total_questions}") + print(f"✅ Successful Answers: {results.successful_answers}") + print(f"❌ Failed Questions: {results.failed_questions}") + print(f"📈 Success Rate: {results.success_rate:.1%}") + + # Show first successful answer to verify context quality + for category_result in results.category_results: + for result in category_result.results: + if result.status == "completed" and result.answer: + print(f"\n🎯 Sample Successful Answer:") + print(f"❓ Question: {result.question.question}") + print(f"✅ Answer Preview: {result.answer[:200]}...") + print(f"⏱️ Processing Time: {result.processing_time:.2f}s") + break + if any(r.status == "completed" for r in category_result.results): + break + + # Show any failures for debugging + failed_count = 0 + for category_result in results.category_results: + for result in category_result.results: + if result.status == "failed": + failed_count += 1 + if failed_count <= 2: # Show first 2 failures + print(f"\n❌ Failed Question {failed_count}:") + print(f"❓ Question: {result.question.question}") + print(f"💥 Error: {result.error_message}") + + print(f"\n🎯 Test completed. Mixed mode retrieval {'SUCCESS' if results.successful_answers > 0 else 'FAILED'}") + + return results.successful_answers > 0 + + except Exception as e: + print(f"❌ Test failed with error: {e}") + return False + + +if __name__ == "__main__": + success = asyncio.run(test_mixed_mode_retrieval()) + + if success: + print("\n✨ Mixed mode retrieval is working! Ready to test with Gradio interface.") + else: + print("\n⚠️ Mixed mode retrieval still has issues. Further investigation needed.") \ No newline at end of file diff --git a/backend/agentic_system/tests/test_qa_workflow.py b/backend/agentic_system/tests/test_qa_workflow.py new file mode 100644 index 0000000000000000000000000000000000000000..75a4bc5a3519f214b71166363331be4aea48d874 --- /dev/null +++ b/backend/agentic_system/tests/test_qa_workflow.py @@ -0,0 +1,151 @@ +""" +Test script for the complete QA workflow pipeline. +""" + +import asyncio +import json +from datetime import datetime +from pathlib import Path +from backend.agentic_system.graphs import QAWorkflow + +def save_test_results(test_name: str, results: dict, question: str = ""): + """Save test results to a JSON file for inspection.""" + # Create test results directory + test_results_dir = Path("test_results") + test_results_dir.mkdir(exist_ok=True) + + # Generate filename + timestamp = datetime.now().strftime("%Y%m%d_%H%M%S") + safe_question = "".join(c for c in question if c.isalnum() or c in (' ', '-', '_')).strip()[:50] + if safe_question: + filename = f"{test_name}_{timestamp}_{safe_question.replace(' ', '_')}.json" + else: + filename = f"{test_name}_{timestamp}.json" + + file_path = test_results_dir / filename + + # Save results + with open(file_path, 'w', encoding='utf-8') as f: + json.dump(results, f, indent=2, ensure_ascii=False, default=str) + + print(f"💾 Results saved to: {file_path}") + return str(file_path) + +async def test_complete_workflow(): + """Test the complete QA workflow.""" + + # Initialize the workflow + workflow = QAWorkflow() + + test_questions = [ + """ +Your task is to act as a senior AI researcher. Based on the foundational concepts from the provided research papers (MoE, ReAct, Federated Learning, SLMs, and Transformers), propose a novel research project that investigates their intersection in a meaningful way. +The goal is not just to build a system that combines these ideas, but to design a project that would scientifically study their synergies and trade-offs. +Your proposal must be creative, plausible, and grounded in the principles from the papers. Please structure your response as a formal research project proposal with the following sections: +1. Project Title: +* Come up with a compelling, memorable name for the project. +2. Core Idea & Motivation: +* In one paragraph, explain the central idea of your research project. Why is studying this specific intersection important? What fundamental gap in our understanding would this project address? +3. Key Research Questions: +* List at least three specific, unanswered research questions that your project would aim to investigate. These questions should highlight the tensions and potential synergies between the different technologies. For example, how does the sparsity of MoE interact with the communication constraints of Federated Learning? +4. Proposed Architecture: +* Describe the hypothetical AI agent or system at the heart of your project. Explain how it integrates: +* SLMs as the on-device model. +* Transformer architecture as the foundation. +* Mixture-of-Experts (MoE) as an internal architectural choice for the SLM. +* ReAct as the agent's operational logic for reasoning and tool-use. +* Federated Learning as the training paradigm for these agents across a fleet of devices. +5. Methodology & Evaluation: +* Briefly explain how you would conduct this research. +* What kind of simulated environment or tasks would you use? +* What key metrics would you measure to answer your research questions? (e.g., communication cost, task success rate, inference latency, a metric for expert specialization). +Your final output should be a well-structured, compelling research proposal that could plausibly be presented at a top-tier AI conference workshop. Be innovative in how you connect the concepts." + """ + ] + + print("🚀 Testing Complete QA Workflow Pipeline") + print("=" * 80) + + all_results = { + "test_type": "complete_workflow", + "timestamp": datetime.now().isoformat(), + "questions": [] + } + + for i, question in enumerate(test_questions, 1): + print(f"\n📝 Test {i}: {question}") + print("-" * 60) + + try: + # Test regular processing + print("🔄 Processing question...") + result = await workflow.process_question(question) + + if result.error: + print(f"❌ Error: {result.error}") + all_results["questions"].append({ + "question": question, + "status": "error", + "error": result.error + }) + continue + + print(f"✅ Question processed successfully!") + print(f"📊 Query Category: {result.query_category}") + print(f"🔍 Retrieval Params: top_k={result.retrieval_params.get('top_k')}, chunk_top_k={result.retrieval_params.get('chunk_top_k')}") + print(f"📄 Context Length: {result.context_length} characters") + print(f"🧠 Answer Steps: {result.total_steps}") + print(f"⏱️ Processing Time: {result.processing_time:.2f}s") + + # Show answer summary + if result.answer: + print(f"\n📋 Summary: {result.answer.summary}") + print(f"🎯 Confidence: {result.answer.confidence_level}") + print(f"📚 Context Coverage: {result.answer.context_coverage}") + + # Show first step as example + if result.answer.steps: + first_step = result.answer.steps[0] + print(f"\n📌 First Step: {first_step.title}") + print(f" {first_step.explanation[:200]}...") + + # Save individual result + question_result = { + "question": question, + "status": "success", + "query_category": result.query_category, + "retrieval_params": result.retrieval_params, + "context_length": result.context_length, + "total_steps": result.total_steps, + "processing_time": result.processing_time, + "answer": { + "summary": result.answer.summary if result.answer else None, + "confidence_level": result.answer.confidence_level if result.answer else None, + "context_coverage": result.answer.context_coverage if result.answer else None, + "steps": [ + { + "step_number": step.step_number, + "title": step.title, + "explanation": step.explanation, + "context_references": step.context_references + } + for step in (result.answer.steps if result.answer and result.answer.steps else []) + ] + } if result.answer else None + } + all_results["questions"].append(question_result) + + except Exception as e: + print(f"❌ Test failed: {e}") + all_results["questions"].append({ + "question": question, + "status": "exception", + "error": str(e) + }) + + # Save all results + save_test_results("complete_workflow", all_results) + print(f"\n🎉 Workflow testing completed!") + +if __name__ == "__main__": + asyncio.run(test_complete_workflow()) \ No newline at end of file diff --git a/backend/agentic_system/tests/test_retrieval.py b/backend/agentic_system/tests/test_retrieval.py new file mode 100644 index 0000000000000000000000000000000000000000..8cb24752ea696c5f8cc14e56543fe834e5836858 --- /dev/null +++ b/backend/agentic_system/tests/test_retrieval.py @@ -0,0 +1,43 @@ +""" +Quick test script to verify the retrieval engine is working. +""" + +import asyncio +from backend.search_engine.retriver import get_retrieval_engine + +async def test_retrieval(): + """Test the retrieval engine directly.""" + + try: + print("🔧 Initializing retrieval engine...") + engine = await get_retrieval_engine() + print("✅ Retrieval engine initialized") + + test_query = "What are MOE models and how can i learn them ? are they related to LLMs?" + print(f"\n🔍 Testing query: {test_query}") + + result = await engine.retrieve( + query=test_query, + mode='mix', + top_k=5, + chunk_top_k=2 + ) + + print(f"📊 Result text length: {len(result.text)} characters") + print(f"📄 First 500 characters: {result.text[:500]}...") + + if hasattr(result, 'chunks') and result.chunks: + print(f"📦 Number of chunks: {len(result.chunks)}") + for i, chunk in enumerate(result.chunks[:3]): # Show first 3 + print(f" Chunk {i+1}: {chunk.text[:100]}...") + + return result + + except Exception as e: + print(f"❌ Retrieval test failed: {e}") + import traceback + traceback.print_exc() + return None + +if __name__ == "__main__": + asyncio.run(test_retrieval()) \ No newline at end of file diff --git a/backend/ingestion_pipeline/PREFECT_INSTRUCTIONS.md b/backend/ingestion_pipeline/PREFECT_INSTRUCTIONS.md new file mode 100644 index 0000000000000000000000000000000000000000..ed5fc15c1ce137a1fa0bcf17215206a853f5aa77 --- /dev/null +++ b/backend/ingestion_pipeline/PREFECT_INSTRUCTIONS.md @@ -0,0 +1,174 @@ +# 🚀 Prefect Pipeline Instructions + +## What is Prefect? + +Prefect is a workflow orchestration tool that provides beautiful monitoring, automatic retries, and professional pipeline management for your document processing system. + +## 📋 Quick Start Guide + +### Step 1: Start the Prefect UI Server + +Open a terminal and run: + +```bash +prefect server start +``` + +**What this does:** Starts the Prefect monitoring dashboard on your local machine. + +**Expected output:** You'll see a message like: +``` +Check out the dashboard at http://127.0.0.1:4200 +``` + +### Step 2: Open the Beautiful Dashboard + +1. Open your web browser +2. Go to: **http://localhost:4200** +3. You'll see the Prefect dashboard with a clean, modern interface + +### Step 3: Run Your Pipeline + +In a **new terminal window** (keep the server running), navigate to your project: + +```bash +cd backend/ingestion_pipeline +python run_prefect_pipeline.py +``` + +**What this does:** Runs your complete document processing pipeline with monitoring. + +### Step 4: Watch the Magic ✨ + +Go back to your browser (http://localhost:4200) and you'll see: + +- **Live pipeline execution** with real-time status updates +- **Task progress bars** showing each stage (PDF → VLM → Chunking → RAG) +- **Detailed logs** for debugging +- **Performance metrics** and timing information +- **Automatic retry attempts** if something fails + +## 🎛️ Understanding the Dashboard + +### Main Dashboard +- **Flow Runs**: Your pipeline executions (green = success, red = failed, yellow = running) +- **Recent Activity**: Timeline of all pipeline runs +- **Quick Stats**: Success rates and performance metrics + +### Flow Details (Click on any pipeline run) +- **Visual Graph**: See your pipeline stages as connected boxes +- **Task Status**: Each box shows if a task is pending, running, completed, or failed +- **Logs**: Click any task to see detailed logs and error messages +- **Timing**: See how long each stage takes + +### Key Features +- **🔄 Auto Retries**: Failed tasks automatically retry (you'll see this in the UI) +- **📊 Progress Tracking**: Watch your pipeline progress in real-time +- **🚨 Error Details**: Click failed tasks to see exactly what went wrong +- **⏱️ Performance**: See which stages are slow and need optimization + +## ⚙️ Configuration Options + +### Simple Usage (Recommended) +```python +# Edit run_prefect_pipeline.py and update these paths: +pdf_directory="your/pdf/folder" +output_directory="your/output/folder" +enable_vlm=True # Set to False to skip image descriptions +enable_rag=True # Set to False to skip RAG ingestion +``` + +### Advanced Configuration +Edit the `PipelineConfiguration` in `run_prefect_pipeline.py`: + +```python +config = PipelineConfiguration( + # Required paths + pdf_input_directory=Path("input_pdfs"), + output_directory=Path("output"), + + # Processing settings + chunk_size=512, # Size of text chunks + overlap=100, # Overlap between chunks + max_concurrent_vlm_requests=3, # How many AI requests at once + + # Feature toggles + enable_vlm_enhancement=True, # AI image descriptions + enable_rag_ingestion=True, # Knowledge graph creation + + # Error handling + continue_on_errors=True, # Keep going if something fails + max_retries=2, # How many times to retry failures +) +``` + +## 🔧 Common Commands + +### Start/Stop Prefect Server +```bash +# Start the server +prefect server start + +# Stop the server (Ctrl+C in the terminal where it's running) +``` + +### Run Different Pipeline Configurations +```bash +# Run with default settings +python run_prefect_pipeline.py + +# For debugging, you can also run individual components +python prefect_pipeline_orchestrator.py +``` + +### Check Pipeline Status +```bash +# See recent pipeline runs +prefect flow-run ls + +# Get details about a specific run +prefect flow-run inspect +``` + +## 🎯 What Each Stage Does + +1. **📄 PDF Processing**: Converts your PDFs to markdown using MinerU +2. **🖼️ VLM Enhancement**: AI analyzes images and adds descriptions +3. **🧩 Semantic Chunking**: Breaks text into smart, meaningful pieces +4. **🧠 RAG Ingestion**: Builds a searchable knowledge graph + +## 🚨 Troubleshooting + +### Pipeline Won't Start +- Make sure Prefect server is running (`prefect server start`) +- Check that your input PDF directory exists +- Verify all file paths in `run_prefect_pipeline.py` + +### Tasks Keep Failing +- Check the Prefect UI for detailed error messages +- Look at the logs for the specific failed task +- Common issues: missing API keys, incorrect file paths, insufficient disk space + +### UI Won't Load +- Make sure you're going to http://localhost:4200 +- Check that the Prefect server is still running +- Try refreshing the page + +### Performance Issues +- Reduce `max_concurrent_vlm_requests` if you're hitting API limits +- Increase `chunk_size` if you want fewer, larger chunks +- Disable VLM or RAG if you want faster processing + +## 💡 Pro Tips + +1. **Keep the server running** in one terminal while running pipelines in another +2. **Bookmark the dashboard** (http://localhost:4200) for easy access +3. **Check the logs first** when something goes wrong - they're very detailed +4. **Use the visual graph** to understand your pipeline flow +5. **Monitor performance** to optimize your settings over time + +## 🎉 That's It! + +You now have a professional, monitored pipeline for processing academic papers. The Prefect UI gives you enterprise-level workflow management with beautiful visualizations and automatic error handling. + +**Happy processing!** 🚀 \ No newline at end of file diff --git a/backend/ingestion_pipeline/README.md b/backend/ingestion_pipeline/README.md new file mode 100644 index 0000000000000000000000000000000000000000..00ae028851bd8601e33cf030c512765ff396a5b9 --- /dev/null +++ b/backend/ingestion_pipeline/README.md @@ -0,0 +1,382 @@ +# 🚀 Professional Document Processing Pipeline + +A **production-ready, monitored pipeline** that transforms PDFs into intelligent knowledge through **MinerU processing**, **VLM enhancement**, **semantic chunking**, and **RAG ingestion** - all orchestrated with **Prefect** for enterprise-grade monitoring and reliability. + +## 🌟 What Makes This Professional + +✅ **Enterprise Architecture** - Clean, modular components following SOLID principles +✅ **Real-time Monitoring** - Beautiful Prefect UI with live progress tracking +✅ **Automatic Retries** - Intelligent error handling and recovery +✅ **Scalable Design** - Handles concurrent processing efficiently +✅ **Production Ready** - Structured logging, error reporting, and metrics + +--- + +## 🏗️ New Architecture Overview + +### **Logical Component Organization** +``` +backend/ingestion_pipeline/ +├── local_mineru/ # 🎯 MinerU Ecosystem +│ ├── pipelines/ # Pipeline orchestrators +│ │ └── pdf_to_enriched_semantic_chunks_pipeline.py +│ ├── chunker/ # Semantic chunking (MinerU-powered) +│ │ ├── semantic_chunker.py +│ │ ├── models/ # Data structures +│ │ └── utils/ # Processing utilities +│ ├── vlm_enhancing/ # VLM image enhancement +│ │ ├── vlm_pipeline.py +│ │ ├── components/ # VLM components +│ │ └── models/ # VLM data models +│ └── file_ingesting/ # Core MinerU processing +├── lightrag/ # 🧠 RAG System +│ ├── chunk_ingestion_engine.py +│ └── ingestion_utils/ +├── utils/ # 🔧 Shared Utilities +├── prefect_pipeline_orchestrator.py # 🎛️ Prefect Orchestration +└── PREFECT_INSTRUCTIONS.md # 📖 User Guide +``` + +### **Why This Structure?** +- **Logical Cohesion**: MinerU owns its complete processing ecosystem +- **Clear Ownership**: Related components are grouped together +- **Maintainable**: Easy to understand and modify +- **Scalable**: Simple to add new features in the right place + +--- + +## 🎛️ Prefect Pipeline Monitoring + +### **Beautiful Dashboard at http://localhost:4200** + +The pipeline now includes **enterprise-grade monitoring** with: + +🔄 **Real-time Progress** - Watch each stage execute live +📊 **Performance Metrics** - Duration, success rates, resource usage +🚨 **Error Tracking** - Detailed failure analysis and stack traces +🔁 **Automatic Retries** - Smart retry logic with exponential backoff +📈 **Historical Data** - Track performance over time +🎯 **Task Dependencies** - Visual pipeline flow graph + +### **Pipeline Stages Monitored:** + +1. **📄 PDF Processing** - MinerU document extraction +2. **🖼️ VLM Enhancement** - AI image description generation +3. **🧩 Semantic Chunking** - Intelligent text segmentation +4. **🧠 RAG Ingestion** - Knowledge graph construction + +--- + +## 🚀 Quick Start + +### **Option 1: Simple Interface (Recommended)** +```bash +# 1. Start Prefect monitoring +prefect server start + +# 2. Open dashboard in browser +# Go to: http://localhost:4200 + +# 3. Run the pipeline +cd backend/ingestion_pipeline +python run_prefect_pipeline.py +# Choose option 2 for simple interface +``` + +### **Option 2: Full Configuration** +```python +from prefect_pipeline_orchestrator import PipelineConfiguration, document_processing_pipeline + +config = PipelineConfiguration( + pdf_input_directory=Path("backend/ingestion_pipeline/pdfs"), + output_directory=Path("backend/ingestion_pipeline/output"), + chunked_output_file=Path("backend/ingestion_pipeline/chunked_output/semantic_chunks.json"), + + # Processing settings + chunk_size=512, + overlap=100, + max_concurrent_vlm_requests=5, + + # Feature toggles + enable_vlm_enhancement=True, + enable_rag_ingestion=True, + + # Error handling + continue_on_errors=True, + max_retries=2 +) + +results = await document_processing_pipeline(config) +``` + +--- + +## 🔧 Component Architecture + +### **MinerU Ecosystem (`local_mineru/`)** + +**Core Pipeline (`pipelines/`):** +- `pdf_to_enriched_semantic_chunks_pipeline.py` - Main document processor + +**Semantic Chunker (`chunker/`):** +- Smart text segmentation with page mapping +- Academic paper optimization +- Metadata preservation + +**VLM Enhancement (`vlm_enhancing/`):** +- AI-powered image descriptions +- Adaptive verbosity (smart length control) +- Context-aware analysis + +### **Monitoring & Orchestration** + +**Prefect Orchestrator (`prefect_pipeline_orchestrator.py`):** +- Task definition and dependency management +- Error handling and retry logic +- Performance monitoring and metrics +- Configuration management + +**User Interface (`run_prefect_pipeline.py`):** +- Simple execution interface +- Configuration examples +- Progress reporting + +--- + +## 📊 What Each Stage Produces + +### **Stage 1: PDF Processing** +``` +Input: research_paper.pdf +Output: +├── research_paper.md # Structured markdown +├── research_paper_content_list.json # Page mapping +└── images/ # Extracted images + ├── figure1.jpg + └── diagram2.jpg +``` + +### **Stage 2: VLM Enhancement** +```markdown +# Before +![](images/figure1.jpg) + +# After +![Bar chart showing 94.2% accuracy for Model C, with color-coded performance comparison across 5 models](images/figure1.jpg) + +*AI Analysis: Comprehensive performance visualization displaying model accuracy metrics. Model C achieves highest performance at 94.2%, significantly outperforming baseline models.* +``` + +### **Stage 3: Semantic Chunking** +```json +{ + "summary": { + "total_files_processed": 6, + "total_chunks_generated": 342, + "average_chunks_per_file": 57 + }, + "files": { + "research_paper": { + "total_chunks": 57, + "chunks": [ + { + "content": "Introduction to transformer architectures...", + "metadata": { + "source_file": "research_paper", + "chunk_index": 0, + "page_index": 1, + "word_count": 89 + } + } + ] + } + } +} +``` + +### **Stage 4: RAG Ingestion** +- Knowledge graph construction +- Vector embeddings +- Searchable document corpus + +--- + +## 🎯 Smart Features + +### **Adaptive VLM Descriptions** +The VLM enhancement now uses **intelligent length control**: + +- **Simple images** (photos, screenshots): 1-2 sentences +- **Moderate complexity** (charts, diagrams): 3-5 sentences +- **High complexity** (detailed flowcharts): 6-8 sentences + +**Result**: 60% reduction in description length while maintaining quality! + +### **Robust Error Handling** +- **Automatic retries** with exponential backoff +- **Graceful degradation** - continues processing on non-critical failures +- **Detailed error reporting** with context and suggestions + +### **Performance Optimization** +- **Concurrent VLM processing** with configurable limits +- **Efficient chunking** with overlap optimization +- **Smart caching** and intermediate result storage + +--- + +## 🎛️ Monitoring Dashboard Features + +### **Real-time Visualization** +- **Pipeline Flow Graph**: Visual representation of stage dependencies +- **Live Progress Bars**: Current task completion status +- **Resource Metrics**: Memory, CPU, and API usage + +### **Historical Analytics** +- **Performance Trends**: Track improvement over time +- **Success Rates**: Monitor pipeline reliability +- **Bottleneck Analysis**: Identify optimization opportunities + +### **Error Intelligence** +- **Failure Categorization**: Understand common issues +- **Stack Trace Analysis**: Detailed debugging information +- **Retry Patterns**: Track recovery effectiveness + +--- + +## 🔧 Configuration Options + +### **Processing Settings** +```python +# Text chunking +chunk_size=512 # Target chunk size +overlap=100 # Overlap between chunks + +# VLM enhancement +max_concurrent_vlm_requests=5 # Concurrent API calls +gemini_model="gemini-2.5-flash-lite" # AI model choice + +# Error handling +max_retries=3 # Retry attempts +continue_on_errors=True # Keep processing on failures +``` + +### **Feature Toggles** +```python +enable_vlm_enhancement=True # AI image descriptions +enable_rag_ingestion=True # Knowledge graph creation +backup_original_files=True # Safety backups +``` + +--- + +## 🎭 Use Cases + +### **Research & Academic** +- **📚 Paper Processing**: Complex figures and mathematical notation +- **📊 Data Analysis**: Charts, graphs, experimental results +- **🔬 Scientific Literature**: Technical diagrams and methodologies + +### **Business & Enterprise** +- **📈 Report Analysis**: Financial charts and business metrics +- **📋 Documentation**: Process flows and organizational charts +- **🏛️ Compliance**: Legal documents with embedded visuals + +### **Technical Documentation** +- **🛠️ Manuals**: Step-by-step procedures with illustrations +- **🔧 Guides**: Technical specifications and architecture diagrams +- **📱 Software Docs**: UI mockups and system designs + +--- + +## 💡 Why This Architecture? + +### **Before (Script Collection)** +❌ Monolithic files with tight coupling +❌ Manual execution and monitoring +❌ Difficult debugging and maintenance +❌ No error recovery or retry logic + +### **After (Professional Pipeline)** +✅ **Modular Design**: Clean separation of concerns +✅ **Enterprise Monitoring**: Real-time visibility and control +✅ **Intelligent Recovery**: Automatic retries and error handling +✅ **Scalable Architecture**: Easy to extend and modify +✅ **Production Ready**: Logging, metrics, and observability + +--- + +## 🔗 Integration Guide + +### **Standalone Usage** +```python +# Simple function call +results = await run_pipeline_simple( + pdf_directory="./pdfs", + output_directory="./output", + enable_vlm=True, + enable_rag=True +) +``` + +### **Custom Workflows** +```python +# Build custom pipeline +from local_mineru.pipelines import PDFToEnrichedMarkdownPipeline +from local_mineru.chunker import SemanticChunker + +# Process documents +pipeline = PDFToEnrichedMarkdownPipeline(...) +await pipeline.process() + +# Create chunks +chunker = SemanticChunker(chunk_size=1024) +chunks = chunker.process_output_directory(...) +``` + +### **API Integration** +The pipeline can be easily wrapped in REST APIs, background jobs, or embedded in larger applications. + +--- + +## 📈 Performance Metrics + +### **Typical Processing Times** +- **PDF Processing**: ~30-60 seconds per document +- **VLM Enhancement**: ~5-10 seconds per image +- **Semantic Chunking**: ~2-5 seconds per document +- **RAG Ingestion**: ~10-20 seconds per document + +### **Scalability** +- **Concurrent Processing**: Up to 5 VLM requests simultaneously +- **Batch Efficiency**: Processes multiple documents in parallel +- **Resource Optimization**: Intelligent memory and API usage + +--- + +## 🎓 Learning Resources + +📖 **[PREFECT_INSTRUCTIONS.md](PREFECT_INSTRUCTIONS.md)** - Complete user guide for the monitoring system + +🔧 **Component Documentation**: Each module includes detailed docstrings and examples + +🎯 **Example Scripts**: `run_prefect_pipeline.py` shows common usage patterns + +--- + +## 🚀 Next Steps + +1. **Start Monitoring**: `prefect server start` → http://localhost:4200 +2. **Process Documents**: Run pipeline with your PDFs +3. **Explore Results**: Enhanced markdown with AI descriptions +4. **Monitor Performance**: Track metrics and optimize settings +5. **Scale Up**: Add more concurrent processing as needed + +--- + +**From Raw PDFs to Intelligent Knowledge** 🌟 + +This pipeline transforms your document processing from a collection of scripts into a **professional, monitored, and scalable system** ready for production use. Experience the power of enterprise-grade workflow orchestration with beautiful real-time monitoring! + +--- + +*Built with ❤️ using Prefect, MinerU, Gemini AI, and clean architecture principles* \ No newline at end of file diff --git a/backend/ingestion_pipeline/__init__.py b/backend/ingestion_pipeline/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/backend/ingestion_pipeline/chunked_output/semantic_chunks.json b/backend/ingestion_pipeline/chunked_output/semantic_chunks.json new file mode 100644 index 0000000000000000000000000000000000000000..c7fcf7d0b1b45db6c46dcb2f863d7ca1f2a1009d --- /dev/null +++ b/backend/ingestion_pipeline/chunked_output/semantic_chunks.json @@ -0,0 +1,28025 @@ +{ + "summary": { + "total_files_processed": 6, + "total_chunks_generated": 1996, + "average_chunks_per_file": 332.6666666666667 + }, + "files": { + "Attention Is All You Need": { + "source_file": "Attention Is All You Need", + "total_chunks": 105, + "original_length": 49530, + "chunks": [ + { + "content": "Provided proper attribution is provided, Google hereby grants permission to reproduce the tables and figures in this paper solely for use in journalistic or scholarly works. # Attention Is All You Need Ashish Vaswani∗ Google Brain avaswani@google.com Noam Shazeer∗ Google Brain noam@google.com Niki Parmar∗ Google Research nikip@google.com Jakob Uszkoreit∗ Google Research usz@google.com Llion Jones∗ Google Research llion@google.com Aidan N. Gomez∗ † University of Toronto aidan@cs.toronto.edu", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 0, + "chunk_id": "Attention Is All You Need_chunk_0000", + "start_position": 0, + "end_position": 494, + "page_index": 0, + "word_count": 65, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "Gomez∗ † University of Toronto aidan@cs.toronto.edu Łukasz Kaiser∗ Google Brain lukaszkaiser@google.com Illia Polosukhin∗ ‡illia.polosukhin@gmail.com # Abstract The dominant sequence transduction models are based on complex recurrent or convolutional neural networks that include an encoder and a decoder. The best performing models also connect the encoder and decoder through an attention mechanism.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 1, + "chunk_id": "Attention Is All You Need_chunk_0001", + "start_position": 494, + "end_position": 895, + "page_index": 0, + "word_count": 51, + "char_count": 401 + }, + "has_embedding": false + }, + { + "content": "The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 2, + "chunk_id": "Attention Is All You Need_chunk_0002", + "start_position": 895, + "end_position": 1314, + "page_index": 0, + "word_count": 59, + "char_count": 419 + }, + "has_embedding": false + }, + { + "content": "superior in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 Englishto-German translation task, improving over the existing best results, including ensembles, by over 2 BLEU. On the WMT 2014 English-to-French translation task, our model establishes a new single-model state-of-the-art BLEU score of 41.8 after training for 3.5 days on eight GPUs, a small fraction of the training costs of the best models from the literature.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 3, + "chunk_id": "Attention Is All You Need_chunk_0003", + "start_position": 1314, + "end_position": 1823, + "page_index": 0, + "word_count": 78, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "5 days on eight GPUs, a small fraction of the training costs of the best models from the literature. We show that the Transformer generalizes well to other tasks by applying it successfully to English constituency parsing both with large and limited training data. # 1 Introduction", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 4, + "chunk_id": "Attention Is All You Need_chunk_0004", + "start_position": 1823, + "end_position": 2104, + "page_index": 1, + "word_count": 47, + "char_count": 281 + }, + "has_embedding": false + }, + { + "content": "# 1 Introduction Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5]. Numerous efforts have since continued to push the boundaries of recurrent language models and encoder-decoder architectures [38, 24, 15].", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 5, + "chunk_id": "Attention Is All You Need_chunk_0005", + "start_position": 2104, + "end_position": 2537, + "page_index": 1, + "word_count": 63, + "char_count": 433 + }, + "has_embedding": false + }, + { + "content": "to push the boundaries of recurrent language models and encoder-decoder architectures [38, 24, 15]. Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states $h _ { t }$ , as a function of the previous hidden state $h _ { t - 1 }$ and the input for position $t$ .", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 6, + "chunk_id": "Attention Is All You Need_chunk_0006", + "start_position": 2537, + "end_position": 2945, + "page_index": 1, + "word_count": 72, + "char_count": 408 + }, + "has_embedding": false + }, + { + "content": "{ t }$ , as a function of the previous hidden state $h _ { t - 1 }$ and the input for position $t$ . This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples. Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 7, + "chunk_id": "Attention Is All You Need_chunk_0007", + "start_position": 2945, + "end_position": 3444, + "page_index": 1, + "word_count": 76, + "char_count": 499 + }, + "has_embedding": false + }, + { + "content": "[21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains. Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19].", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 8, + "chunk_id": "Attention Is All You Need_chunk_0008", + "start_position": 3444, + "end_position": 3849, + "page_index": 1, + "word_count": 57, + "char_count": 405 + }, + "has_embedding": false + }, + { + "content": "modeling of dependencies without regard to their distance in the input or output sequences [2, 19]. In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network. In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 9, + "chunk_id": "Attention Is All You Need_chunk_0009", + "start_position": 3849, + "end_position": 4254, + "page_index": 1, + "word_count": 63, + "char_count": 405 + }, + "has_embedding": false + }, + { + "content": "ead relying entirely on an attention mechanism to draw global dependencies between input and output. The Transformer allows for significantly more parallelization and can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs. # 2 Background", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 10, + "chunk_id": "Attention Is All You Need_chunk_0010", + "start_position": 4254, + "end_position": 4561, + "page_index": 1, + "word_count": 50, + "char_count": 307 + }, + "has_embedding": false + }, + { + "content": "# 2 Background The goal of reducing sequential computation also forms the foundation of the Extended Neural GPU [16], ByteNet [18] and ConvS2S [9], all of which use convolutional neural networks as basic building block, computing hidden representations in parallel for all input and output positions. In these models, the number of operations required to relate signals from two arbitrary input or output positions grows in the distance between positions, linearly for ConvS2S and logarithmically for ByteNet.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 11, + "chunk_id": "Attention Is All You Need_chunk_0011", + "start_position": 4561, + "end_position": 5070, + "page_index": 1, + "word_count": 77, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "tions grows in the distance between positions, linearly for ConvS2S and logarithmically for ByteNet. This makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 12, + "chunk_id": "Attention Is All You Need_chunk_0012", + "start_position": 5070, + "end_position": 5501, + "page_index": 1, + "word_count": 63, + "char_count": 431 + }, + "has_embedding": false + }, + { + "content": "n-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22].", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 13, + "chunk_id": "Attention Is All You Need_chunk_0013", + "start_position": 5501, + "end_position": 5995, + "page_index": 1, + "word_count": 64, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "rization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 14, + "chunk_id": "Attention Is All You Need_chunk_0014", + "start_position": 5995, + "end_position": 6313, + "page_index": 1, + "word_count": 42, + "char_count": 318 + }, + "has_embedding": false + }, + { + "content": "e been shown to perform well on simple-language question answering and language modeling tasks [34]. To the best of our knowledge, however, the Transformer is the first transduction model relying entirely on self-attention to compute representations of its input and output without using sequencealigned RNNs or convolution. In the following sections, we will describe the Transformer, motivate self-attention and discuss its advantages over models such as [17, 18] and [9]. # 3 Model Architecture", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 15, + "chunk_id": "Attention Is All You Need_chunk_0015", + "start_position": 6313, + "end_position": 6810, + "page_index": 2, + "word_count": 74, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "# 3 Model Architecture Most competitive neural sequence transduction models have an encoder-decoder structure [5, 2, 35]. Here, the encoder maps an input sequence of symbol representations $( x _ { 1 } , . . . , x _ { n } )$ to a sequence of continuous representations $\\textbf { z } = ~ ( z _ { 1 } , . . . , z _ { n } )$ . Given $\\mathbf { z }$ , the decoder then generates an output sequence $\\left( y _ { 1 } , . . . , y _ { m } \\right)$ of symbols one element at a time.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 16, + "chunk_id": "Attention Is All You Need_chunk_0016", + "start_position": 6810, + "end_position": 7285, + "page_index": 2, + "word_count": 111, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": ", y _ { m } \\right)$ of symbols one element at a time. At each step the model is auto-regressive [10], consuming the previously generated symbols as additional input when generating the next. [IMAGE]\nFigure 1: The Transformer - model architecture. The Transformer follows this overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder, shown in the left and right halves of Figure 1, respectively. # 3.1 Encoder and Decoder Stacks", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 17, + "chunk_id": "Attention Is All You Need_chunk_0017", + "start_position": 7285, + "end_position": 7779, + "page_index": 2, + "word_count": 79, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "# 3.1 Encoder and Decoder Stacks Encoder: The encoder is composed of a stack of $N = 6$ identical layers. Each layer has two sub-layers. The first is a multi-head self-attention mechanism, and the second is a simple, positionwise fully connected feed-forward network. We employ a residual connection [11] around each of the two sub-layers, followed by layer normalization [1].", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 18, + "chunk_id": "Attention Is All You Need_chunk_0018", + "start_position": 7779, + "end_position": 8155, + "page_index": 2, + "word_count": 60, + "char_count": 376 + }, + "has_embedding": false + }, + { + "content": "y a residual connection [11] around each of the two sub-layers, followed by layer normalization [1]. That is, the output of each sub-layer is LayerN $\\operatorname { y r m } ( x + \\operatorname { S u b l a y e r } ( x ) )$ , where Sublayer $( x )$ is the function implemented by the sub-layer itself. To facilitate these residual connections, all sub-layers in the model, as well as the embedding layers, produce outputs of dimension $d _ { \\mathrm { m o d e l } } = 5 1 2$ .", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 19, + "chunk_id": "Attention Is All You Need_chunk_0019", + "start_position": 8155, + "end_position": 8630, + "page_index": 3, + "word_count": 100, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": "well as the embedding layers, produce outputs of dimension $d _ { \\mathrm { m o d e l } } = 5 1 2$ . Decoder: The decoder is also composed of a stack of $N = 6$ identical layers. In addition to the two sub-layers in each encoder layer, the decoder inserts a third sub-layer, which performs multi-head attention over the output of the encoder stack. Similar to the encoder, we employ residual connections around each of the sub-layers, followed by layer normalization.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 20, + "chunk_id": "Attention Is All You Need_chunk_0020", + "start_position": 8630, + "end_position": 9097, + "page_index": 3, + "word_count": 85, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "oder, we employ residual connections around each of the sub-layers, followed by layer normalization. We also modify the self-attention sub-layer in the decoder stack to prevent positions from attending to subsequent positions. This masking, combined with fact that the output embeddings are offset by one position, ensures that the predictions for position $i$ can depend only on the known outputs at positions less than $i$ . # 3.2 Attention", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 21, + "chunk_id": "Attention Is All You Need_chunk_0021", + "start_position": 9097, + "end_position": 9539, + "page_index": 3, + "word_count": 69, + "char_count": 442 + }, + "has_embedding": false + }, + { + "content": "# 3.2 Attention An attention function can be described as mapping a query and a set of key-value pairs to an output, where the query, keys, values, and output are all vectors. The output is computed as a weighted sum [IMAGE]\nFigure 2: (left) Scaled Dot-Product Attention. (right) Multi-Head Attention consists of several attention layers running in parallel. of the values, where the weight assigned to each value is computed by a compatibility function of the query with the corresponding key.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 22, + "chunk_id": "Attention Is All You Need_chunk_0022", + "start_position": 9539, + "end_position": 10033, + "page_index": 3, + "word_count": 81, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "igned to each value is computed by a compatibility function of the query with the corresponding key. # 3.2.1 Scaled Dot-Product Attention We call our particular attention \"Scaled Dot-Product Attention\" (Figure 2). The input consists of queries and keys of dimension $d _ { k }$ , and values of dimension √ $d _ { v }$ . We compute the dot products of the query with all keys, divide each by $\\sqrt { d _ { k } }$ , and apply a softmax function to obtain the weights on the values.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 23, + "chunk_id": "Attention Is All You Need_chunk_0023", + "start_position": 10033, + "end_position": 10513, + "page_index": 3, + "word_count": 93, + "char_count": 480 + }, + "has_embedding": false + }, + { + "content": "de each by $\\sqrt { d _ { k } }$ , and apply a softmax function to obtain the weights on the values. In practice, we compute the attention function on a set of queries simultaneously, packed together into a matrix $Q$ . The keys and values are also packed together into matrices $K$ and $V$ . We compute the matrix of outputs as: $$\n\\mathrm { A t t e n t i o n } ( Q , K , V ) = \\mathrm { s o f t m a x } ( \\frac { Q K ^ { T } } { \\sqrt { d _ { k } } } ) V\n$$", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 24, + "chunk_id": "Attention Is All You Need_chunk_0024", + "start_position": 10513, + "end_position": 10972, + "page_index": 4, + "word_count": 119, + "char_count": 459 + }, + "has_embedding": false + }, + { + "content": "n } ( Q , K , V ) = \\mathrm { s o f t m a x } ( \\frac { Q K ^ { T } } { \\sqrt { d _ { k } } } ) V\n$$ The two most commonly used attention functions are additive attention [2], and dot-product (multiplicative) attention. Dot-product attention is identical to our algorithm, except for the scaling factor of $\\frac { 1 } { \\sqrt { d _ { k } } }$ . Additive attention computes the compatibility function using a feed-forward network with a single hidden layer.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 25, + "chunk_id": "Attention Is All You Need_chunk_0025", + "start_position": 10972, + "end_position": 11429, + "page_index": 4, + "word_count": 101, + "char_count": 457 + }, + "has_embedding": false + }, + { + "content": "tention computes the compatibility function using a feed-forward network with a single hidden layer. While the two are similar in theoretical complexity, dot-product attention is much faster and more space-efficient in practice, since it can be implemented using highly optimized matrix multiplication code. While for small values of $d _ { k }$ the two mechanisms perform similarly, additive attention outperforms dot product attention without scaling for larger values of $d _ { k }$ [3].", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 26, + "chunk_id": "Attention Is All You Need_chunk_0026", + "start_position": 11429, + "end_position": 11919, + "page_index": 4, + "word_count": 76, + "char_count": 490 + }, + "has_embedding": false + }, + { + "content": "ve attention outperforms dot product attention without scaling for larger values of $d _ { k }$ [3]. We suspect that for large values of $d _ { k }$ , the dot products grow large in magnitude, pushing the softmax function into regions where it has extremely small gradients 4. To counteract this effect, we scale the dot products by $\\frac { 1 } { \\sqrt { d _ { k } } }$ . # 3.2.2 Multi-Head Attention", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 27, + "chunk_id": "Attention Is All You Need_chunk_0027", + "start_position": 11919, + "end_position": 12320, + "page_index": 4, + "word_count": 80, + "char_count": 401 + }, + "has_embedding": false + }, + { + "content": "# 3.2.2 Multi-Head Attention Instead of performing a single attention function with $d _ { \\mathrm { m o d e l } }$ -dimensional keys, values and queries, we found it beneficial to linearly project the queries, keys and values $h$ times with different, learned linear projections to $d _ { k }$ , $d _ { k }$ and $d _ { v }$ dimensions, respectively.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 28, + "chunk_id": "Attention Is All You Need_chunk_0028", + "start_position": 12320, + "end_position": 12670, + "page_index": 4, + "word_count": 68, + "char_count": 350 + }, + "has_embedding": false + }, + { + "content": "t, learned linear projections to $d _ { k }$ , $d _ { k }$ and $d _ { v }$ dimensions, respectively. On each of these projected versions of queries, keys and values we then perform the attention function in parallel, yielding $d _ { v }$ -dimensional output values. These are concatenated and once again projected, resulting in the final values, as depicted in Figure 2. Multi-head attention allows the model to jointly attend to information from different representation subspaces at different positions.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 29, + "chunk_id": "Attention Is All You Need_chunk_0029", + "start_position": 12670, + "end_position": 13175, + "page_index": 4, + "word_count": 86, + "char_count": 505 + }, + "has_embedding": false + }, + { + "content": "del to jointly attend to information from different representation subspaces at different positions. With a single attention head, averaging inhibits this. $$\n\\begin{array} { r } { \\begin{array} { r l } & { \\mathrm { M u l t i H e a d } ( Q , K , V ) = \\mathrm { C o n c a t } ( \\mathrm { h e a d } _ { 1 } , . . .", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 30, + "chunk_id": "Attention Is All You Need_chunk_0030", + "start_position": 13175, + "end_position": 13489, + "page_index": 4, + "word_count": 79, + "char_count": 314 + }, + "has_embedding": false + }, + { + "content": ". , \\mathrm { h e a d } _ { \\mathrm { h } } ) W ^ { O } } \\\\ & { \\qquad \\mathrm { w h e r e ~ h e a d } _ { \\mathrm { i } } = \\mathrm { A t t e n t i o n } ( Q W _ { i } ^ { Q } , K W _ { i } ^ { K } , V W _ { i } ^ { V } ) } \\end{array} } \\end{array}\n$$", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 31, + "chunk_id": "Attention Is All You Need_chunk_0031", + "start_position": 13489, + "end_position": 13743, + "page_index": 4, + "word_count": 99, + "char_count": 254 + }, + "has_embedding": false + }, + { + "content": "} ( Q W _ { i } ^ { Q } , K W _ { i } ^ { K } , V W _ { i } ^ { V } ) } \\end{array} } \\end{array}\n$$ Where the projections are parameter matrices $W _ { i } ^ { Q } \\in \\mathbb { R } ^ { d _ { \\mathrm { m o d e l } } \\times d _ { k } }$ , W K ∈ Rdmodel×dk , W V ∈ Rdmodel×dv and $W ^ { O } \\in \\mathbb R ^ { h d _ { v } \\times d _ { \\mathrm { m o d e l } } }$ . In this work we employ $h \\ : = \\ : 8$ parallel attention layers, or heads.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 32, + "chunk_id": "Attention Is All You Need_chunk_0032", + "start_position": 13743, + "end_position": 14180, + "page_index": 4, + "word_count": 140, + "char_count": 437 + }, + "has_embedding": false + }, + { + "content": "In this work we employ $h \\ : = \\ : 8$ parallel attention layers, or heads. For each of these we use $d _ { k } = d _ { v } = d _ { \\mathrm { m o d e l } } / h \\stackrel { } { = } \\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways:", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 33, + "chunk_id": "Attention Is All You Need_chunk_0033", + "start_position": 14180, + "end_position": 14631, + "page_index": 5, + "word_count": 100, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "cations of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \"encoder-decoder attention\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 34, + "chunk_id": "Attention Is All You Need_chunk_0034", + "start_position": 14631, + "end_position": 15142, + "page_index": 5, + "word_count": 78, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "• The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. Similarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 35, + "chunk_id": "Attention Is All You Need_chunk_0035", + "start_position": 15142, + "end_position": 15593, + "page_index": 5, + "word_count": 77, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \\infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. # 3.3 Position-wise Feed-Forward Networks", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 36, + "chunk_id": "Attention Is All You Need_chunk_0036", + "start_position": 15593, + "end_position": 16028, + "page_index": 5, + "word_count": 70, + "char_count": 435 + }, + "has_embedding": false + }, + { + "content": "# 3.3 Position-wise Feed-Forward Networks In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between. $$\n\\mathrm { F F N } ( x ) = \\operatorname* { m a x } ( 0 , x W _ { 1 } + b _ { 1 } ) W _ { 2 } + b _ { 2 }\n$$", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 37, + "chunk_id": "Attention Is All You Need_chunk_0037", + "start_position": 16028, + "end_position": 16453, + "page_index": 5, + "word_count": 91, + "char_count": 425 + }, + "has_embedding": false + }, + { + "content": "{ F F N } ( x ) = \\operatorname* { m a x } ( 0 , x W _ { 1 } + b _ { 1 } ) W _ { 2 } + b _ { 2 }\n$$ While the linear transformations are the same across different positions, they use different parameters from layer to layer. Another way of describing this is as two convolutions with kernel size 1. The dimensionality of input and output is $d _ { \\mathrm { m o d e l } } = 5 1 2$ , and the inner-layer has dimensionality $d _ { f f } = 2 0 4 8$ . # 3.4 Embeddings and Softmax", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 38, + "chunk_id": "Attention Is All You Need_chunk_0038", + "start_position": 16453, + "end_position": 16929, + "page_index": 5, + "word_count": 120, + "char_count": 476 + }, + "has_embedding": false + }, + { + "content": "# 3.4 Embeddings and Softmax Similarly to other sequence transduction models, we use learned embeddings to convert the input tokens and output tokens to vectors of dimension $d _ { \\mathrm { m o d e l } }$ . We also use the usual learned linear transformation and softmax function to convert the decoder output to predicted next-token probabilities. In our model, we share the same weight matrix between the two embedding layers and the pre-softmax√ linear transformation, similar to [30].", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 39, + "chunk_id": "Attention Is All You Need_chunk_0039", + "start_position": 16929, + "end_position": 17418, + "page_index": 5, + "word_count": 82, + "char_count": 489 + }, + "has_embedding": false + }, + { + "content": "matrix between the two embedding layers and the pre-softmax√ linear transformation, similar to [30]. In the embedding layers, we multiply those weights by $\\sqrt { d _ { \\mathrm { { m o d e l } } } }$ Table 1: Maximum path lengths, per-layer complexity and minimum number of sequential operations for different layer types. $n$ is the sequence length, $d$ is the representation dimension, $k$ is the kernel size of convolutions and $r$ the size of the neighborhood in restricted self-attention.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 40, + "chunk_id": "Attention Is All You Need_chunk_0040", + "start_position": 17418, + "end_position": 17912, + "page_index": 5, + "word_count": 84, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "s the kernel size of convolutions and $r$ the size of the neighborhood in restricted self-attention.
Layer TypeComplexity per LayerSequential OperationsMaximum Path Length
Self-AttentionO(n2 · d)0(1)0(1)
RecurrentO(n · d2)O(n)(n)
ConvolutionalO(k · n · d2)0(1)O(l0gk(n))
Self-Attention (restricted)O(r · n · d)0(1)(n/r)
", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 41, + "chunk_id": "Attention Is All You Need_chunk_0041", + "start_position": 17912, + "end_position": 18467, + "page_index": 6, + "word_count": 36, + "char_count": 555 + }, + "has_embedding": false + }, + { + "content": "tr>Self-Attention (restricted)O(r · n · d)0(1)(n/r) # 3.5 Positional Encoding Since our model contains no recurrence and no convolution, in order for the model to make use of the order of the sequence, we must inject some information about the relative or absolute position of the tokens in the sequence. To this end, we add \"positional encodings\" to the input embeddings at the bottoms of the encoder and decoder stacks.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 42, + "chunk_id": "Attention Is All You Need_chunk_0042", + "start_position": 18467, + "end_position": 18937, + "page_index": 6, + "word_count": 70, + "char_count": 470 + }, + "has_embedding": false + }, + { + "content": "add \"positional encodings\" to the input embeddings at the bottoms of the encoder and decoder stacks. The positional encodings have the same dimension $d _ { \\mathrm { m o d e l } }$ as the embeddings, so that the two can be summed. There are many choices of positional encodings, learned and fixed [9]. In this work, we use sine and cosine functions of different frequencies:", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 43, + "chunk_id": "Attention Is All You Need_chunk_0043", + "start_position": 18937, + "end_position": 19312, + "page_index": 6, + "word_count": 68, + "char_count": 375 + }, + "has_embedding": false + }, + { + "content": "In this work, we use sine and cosine functions of different frequencies: $$\n\\begin{array} { r } { P E _ { ( p o s , 2 i ) } = s i n ( p o s / 1 0 0 0 0 ^ { 2 i / d _ { \\mathrm { m o d e l } } } ) } \\\\ { P E _ { ( p o s , 2 i + 1 ) } = c o s ( p o s / 1 0 0 0 0 ^ { 2 i / d _ { \\mathrm { m o d e l } } } ) } \\end{array}\n$$ where pos is the position and $i$ is the dimension. That is, each dimension of the positional encoding corresponds to a sinusoid.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 44, + "chunk_id": "Attention Is All You Need_chunk_0044", + "start_position": 19312, + "end_position": 19763, + "page_index": 6, + "word_count": 140, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "That is, each dimension of the positional encoding corresponds to a sinusoid. The wavelengths form a geometric progression from $2 \\pi$ to $1 0 0 0 0 \\cdot 2 \\pi$ . We chose this function because we hypothesized it would allow the model to easily learn to attend by relative positions, since for any fixed offset $k$ , $P E _ { p o s + k }$ can be represented as a linear function of $P E _ { p o s }$ .", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 45, + "chunk_id": "Attention Is All You Need_chunk_0045", + "start_position": 19763, + "end_position": 20166, + "page_index": 6, + "word_count": 85, + "char_count": 403 + }, + "has_embedding": false + }, + { + "content": "ed offset $k$ , $P E _ { p o s + k }$ can be represented as a linear function of $P E _ { p o s }$ . We also experimented with using learned positional embeddings [9] instead, and found that the two versions produced nearly identical results (see Table 3 row (E)). We chose the sinusoidal version because it may allow the model to extrapolate to sequence lengths longer than the ones encountered during training. # 4 Why Self-Attention", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 46, + "chunk_id": "Attention Is All You Need_chunk_0046", + "start_position": 20166, + "end_position": 20601, + "page_index": 6, + "word_count": 83, + "char_count": 435 + }, + "has_embedding": false + }, + { + "content": "# 4 Why Self-Attention In this section we compare various aspects of self-attention layers to the recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations $( x _ { 1 } , . . . , x _ { n } )$ to another sequence of equal length $\\left( z _ { 1 } , . . . , z _ { n } \\right)$ , with $x _ { i } , z _ { i } \\in \\mathbf { \\bar { \\mathbb { R } } } ^ { d }$ , such as a hidden layer in a typical sequence transduction encoder or decoder.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 47, + "chunk_id": "Attention Is All You Need_chunk_0047", + "start_position": 20601, + "end_position": 21091, + "page_index": 7, + "word_count": 112, + "char_count": 490 + }, + "has_embedding": false + }, + { + "content": "b { R } } } ^ { d }$ , such as a hidden layer in a typical sequence transduction encoder or decoder. Motivating our use of self-attention we consider three desiderata. One is the total computational complexity per layer. Another is the amount of computation that can be parallelized, as measured by the minimum number of sequential operations required. The third is the path length between long-range dependencies in the network.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 48, + "chunk_id": "Attention Is All You Need_chunk_0048", + "start_position": 21091, + "end_position": 21520, + "page_index": 7, + "word_count": 73, + "char_count": 429 + }, + "has_embedding": false + }, + { + "content": "The third is the path length between long-range dependencies in the network. Learning long-range dependencies is a key challenge in many sequence transduction tasks. One key factor affecting the ability to learn such dependencies is the length of the paths forward and backward signals have to traverse in the network. The shorter these paths between any combination of positions in the input and output sequences, the easier it is to learn long-range dependencies [12].", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 49, + "chunk_id": "Attention Is All You Need_chunk_0049", + "start_position": 21520, + "end_position": 21990, + "page_index": 7, + "word_count": 74, + "char_count": 470 + }, + "has_embedding": false + }, + { + "content": "positions in the input and output sequences, the easier it is to learn long-range dependencies [12]. Hence we also compare the maximum path length between any two input and output positions in networks composed of the different layer types. As noted in Table 1, a self-attention layer connects all positions with a constant number of sequentially executed operations, whereas a recurrent layer requires $O ( n )$ sequential operations.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 50, + "chunk_id": "Attention Is All You Need_chunk_0050", + "start_position": 21990, + "end_position": 22425, + "page_index": 7, + "word_count": 69, + "char_count": 435 + }, + "has_embedding": false + }, + { + "content": "equentially executed operations, whereas a recurrent layer requires $O ( n )$ sequential operations. In terms of computational complexity, self-attention layers are faster than recurrent layers when the sequence length $n$ is smaller than the representation dimensionality $d$ , which is most often the case with sentence representations used by state-of-the-art models in machine translations, such as word-piece [38] and byte-pair [31] representations.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 51, + "chunk_id": "Attention Is All You Need_chunk_0051", + "start_position": 22425, + "end_position": 22879, + "page_index": 7, + "word_count": 63, + "char_count": 454 + }, + "has_embedding": false + }, + { + "content": "-the-art models in machine translations, such as word-piece [38] and byte-pair [31] representations. To improve computational performance for tasks involving very long sequences, self-attention could be restricted to considering only a neighborhood of size $r$ in the input sequence centered around the respective output position. This would increase the maximum path length to $O ( n / r )$ . We plan to investigate this approach further in future work.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 52, + "chunk_id": "Attention Is All You Need_chunk_0052", + "start_position": 22879, + "end_position": 23333, + "page_index": 7, + "word_count": 70, + "char_count": 454 + }, + "has_embedding": false + }, + { + "content": "We plan to investigate this approach further in future work. A single convolutional layer with kernel width $k < n$ does not connect all pairs of input and output positions. Doing so requires a stack of $O ( n / k )$ convolutional layers in the case of contiguous kernels, or $O ( l o g _ { k } ( n ) )$ in the case of dilated convolutions [18], increasing the length of the longest paths between any two positions in the network.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 53, + "chunk_id": "Attention Is All You Need_chunk_0053", + "start_position": 23333, + "end_position": 23763, + "page_index": 8, + "word_count": 85, + "char_count": 430 + }, + "has_embedding": false + }, + { + "content": "volutions [18], increasing the length of the longest paths between any two positions in the network. Convolutional layers are generally more expensive than recurrent layers, by a factor of $k$ . Separable convolutions [6], however, decrease the complexity considerably, to $\\dot { O ( k \\cdot n \\cdot d + n \\cdot d ^ { 2 } ) }$ .", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 54, + "chunk_id": "Attention Is All You Need_chunk_0054", + "start_position": 23763, + "end_position": 24092, + "page_index": 8, + "word_count": 60, + "char_count": 329 + }, + "has_embedding": false + }, + { + "content": "r, decrease the complexity considerably, to $\\dot { O ( k \\cdot n \\cdot d + n \\cdot d ^ { 2 } ) }$ . Even with $k = n$ , however, the complexity of a separable convolution is equal to the combination of a self-attention layer and a point-wise feed-forward layer, the approach we take in our model. As side benefit, self-attention could yield more interpretable models. We inspect attention distributions from our models and present and discuss examples in the appendix.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 55, + "chunk_id": "Attention Is All You Need_chunk_0055", + "start_position": 24092, + "end_position": 24561, + "page_index": 8, + "word_count": 84, + "char_count": 469 + }, + "has_embedding": false + }, + { + "content": "We inspect attention distributions from our models and present and discuss examples in the appendix. Not only do individual attention heads clearly learn to perform different tasks, many appear to exhibit behavior related to the syntactic and semantic structure of the sentences. # 5 Training This section describes the training regime for our models. # 5.1 Training Data and Batching We trained on the standard WMT 2014 English-German dataset consisting of about 4.5 million sentence pairs.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 56, + "chunk_id": "Attention Is All You Need_chunk_0056", + "start_position": 24561, + "end_position": 25052, + "page_index": 8, + "word_count": 76, + "char_count": 491 + }, + "has_embedding": false + }, + { + "content": "ined on the standard WMT 2014 English-German dataset consisting of about 4.5 million sentence pairs. Sentences were encoded using byte-pair encoding [3], which has a shared sourcetarget vocabulary of about 37000 tokens. For English-French, we used the significantly larger WMT 2014 English-French dataset consisting of 36M sentences and split tokens into a 32000 word-piece vocabulary [38]. Sentence pairs were batched together by approximate sequence length.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 57, + "chunk_id": "Attention Is All You Need_chunk_0057", + "start_position": 25052, + "end_position": 25511, + "page_index": 8, + "word_count": 65, + "char_count": 459 + }, + "has_embedding": false + }, + { + "content": "Sentence pairs were batched together by approximate sequence length. Each training batch contained a set of sentence pairs containing approximately 25000 source tokens and 25000 target tokens. # 5.2 Hardware and Schedule We trained our models on one machine with 8 NVIDIA P100 GPUs. For our base models using the hyperparameters described throughout the paper, each training step took about 0.4 seconds. We trained the base models for a total of 100,000 steps or 12 hours.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 58, + "chunk_id": "Attention Is All You Need_chunk_0058", + "start_position": 25511, + "end_position": 25983, + "page_index": 9, + "word_count": 76, + "char_count": 472 + }, + "has_embedding": false + }, + { + "content": "We trained the base models for a total of 100,000 steps or 12 hours. For our big models,(described on the bottom line of table 3), step time was 1.0 seconds. The big models were trained for 300,000 steps (3.5 days). # 5.3 Optimizer We used the Adam optimizer [20] with $\\beta _ { 1 } = 0 . 9$ , $\\beta _ { 2 } = 0 . 9 8$ and $\\epsilon = 1 0 ^ { - 9 }$ . We varied the learning rate over the course of training, according to the formula: $$\nl r a t e = d _ { \\mathrm { m o d e l } } ^ { - 0 .", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 59, + "chunk_id": "Attention Is All You Need_chunk_0059", + "start_position": 25983, + "end_position": 26474, + "page_index": 9, + "word_count": 119, + "char_count": 491 + }, + "has_embedding": false + }, + { + "content": "course of training, according to the formula: $$\nl r a t e = d _ { \\mathrm { m o d e l } } ^ { - 0 . 5 } \\cdot \\mathrm { m i n } ( s t e p _ { - } n u m ^ { - 0 . 5 } , s t e p _ { - } n u m \\cdot w a r m u p _ { - } s t e p s ^ { - 1 . 5 } )\n$$ This corresponds to increasing the learning rate linearly for the first warmup_steps training steps, and decreasing it thereafter proportionally to the inverse square root of the step number. We used warmup_steps $= 4 0 0 0$ . # 5.4 Regularization", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 60, + "chunk_id": "Attention Is All You Need_chunk_0060", + "start_position": 26474, + "end_position": 26967, + "page_index": 9, + "word_count": 136, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "# 5.4 Regularization We employ three types of regularization during training: Table 2: The Transformer achieves better BLEU scores than previous state-of-the-art models on the English-to-German and English-to-French newstest2014 tests at a fraction of the training cost.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 61, + "chunk_id": "Attention Is All You Need_chunk_0061", + "start_position": 26967, + "end_position": 27237, + "page_index": 9, + "word_count": 37, + "char_count": 270 + }, + "has_embedding": false + }, + { + "content": "n the English-to-German and English-to-French newstest2014 tests at a fraction of the training cost.
ModelBLEUTraining Cost (FLOPs)
EN-DEEN-FREN-DEEN-FR
ByteNet [18]23.75
Deep-Att + PosUnk [39]39.21.0·1020
GNMT + RL [38]24.639.922.3 ·10191.4 ·1020
ConvS2S [9]25.1640.469.6·10181.5·1020
MoE [32]26.0340.562.0·10191.2 ·1020
Deep-Att + PosUnk Ensemble [39]40.48.0.1020
GNMT + RL Ensemble [38]26.3041.161.8·10201.1 ·1021
ConvS2s Ensemble [9]26.3641.297.7.10191.2 ·1021
Transformer (base model)27.338.13.3·1018
Transformer (big)28.441.82.3 ·1019
", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 62, + "chunk_id": "Attention Is All You Need_chunk_0062", + "start_position": 27237, + "end_position": 28438, + "page_index": 9, + "word_count": 48, + "char_count": 1201 + }, + "has_embedding": false + }, + { + "content": "/tr>Transformer (big)28.441.82.3 ·1019 Residual Dropout We apply dropout [33] to the output of each sub-layer, before it is added to the sub-layer input and normalized. In addition, we apply dropout to the sums of the embeddings and the positional encodings in both the encoder and decoder stacks. For the base model, we use a rate of $P _ { d r o p } = 0 . 1$ .", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 63, + "chunk_id": "Attention Is All You Need_chunk_0063", + "start_position": 28438, + "end_position": 28862, + "page_index": 9, + "word_count": 69, + "char_count": 424 + }, + "has_embedding": false + }, + { + "content": "1$ . Label Smoothing During training, we employed label smoothing of value $\\epsilon _ { l s } = 0 . 1$ [36]. This hurts perplexity, as the model learns to be more unsure, but improves accuracy and BLEU score. # 6 Results # 6.1 Machine Translation On the WMT 2014 English-to-German translation task, the big transformer model (Transformer (big) in Table 2) outperforms the best previously reported models (including ensembles) by more than 2.0 BLEU, establishing a new state-of-the-art BLEU score of 28.4.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 64, + "chunk_id": "Attention Is All You Need_chunk_0064", + "start_position": 28862, + "end_position": 29367, + "page_index": 9, + "word_count": 84, + "char_count": 505 + }, + "has_embedding": false + }, + { + "content": "(including ensembles) by more than 2.0 BLEU, establishing a new state-of-the-art BLEU score of 28.4. The configuration of this model is listed in the bottom line of Table 3. Training took 3.5 days on 8 P100 GPUs. Even our base model surpasses all previously published models and ensembles, at a fraction of the training cost of any of the competitive models.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 65, + "chunk_id": "Attention Is All You Need_chunk_0065", + "start_position": 29367, + "end_position": 29725, + "page_index": 9, + "word_count": 61, + "char_count": 358 + }, + "has_embedding": false + }, + { + "content": "published models and ensembles, at a fraction of the training cost of any of the competitive models. On the WMT 2014 English-to-French translation task, our big model achieves a BLEU score of 41.0, outperforming all of the previously published single models, at less than $1 / 4$ the training cost of the previous state-of-the-art model. The Transformer (big) model trained for English-to-French used dropout rate $P _ { d r o p } = 0 . 1$ , instead of 0.3.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 66, + "chunk_id": "Attention Is All You Need_chunk_0066", + "start_position": 29725, + "end_position": 30182, + "page_index": 9, + "word_count": 81, + "char_count": 457 + }, + "has_embedding": false + }, + { + "content": "1$ , instead of 0.3. For the base models, we used a single model obtained by averaging the last 5 checkpoints, which were written at 10-minute intervals. For the big models, we averaged the last 20 checkpoints. We used beam search with a beam size of 4 and length penalty $\\alpha = 0 . 6$ [38]. These hyperparameters were chosen after experimentation on the development set. We set the maximum output length during inference to input length $+ 5 0$ , but terminate early when possible [38].", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 67, + "chunk_id": "Attention Is All You Need_chunk_0067", + "start_position": 30182, + "end_position": 30672, + "page_index": 9, + "word_count": 87, + "char_count": 490 + }, + "has_embedding": false + }, + { + "content": "mum output length during inference to input length $+ 5 0$ , but terminate early when possible [38]. Table 2 summarizes our results and compares our translation quality and training costs to other model architectures from the literature. We estimate the number of floating point operations used to train a model by multiplying the training time, the number of GPUs used, and an estimate of the sustained single-precision floating-point capacity of each GPU 5. # 6.2 Model Variations", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 68, + "chunk_id": "Attention Is All You Need_chunk_0068", + "start_position": 30672, + "end_position": 31154, + "page_index": 9, + "word_count": 78, + "char_count": 482 + }, + "has_embedding": false + }, + { + "content": "# 6.2 Model Variations To evaluate the importance of different components of the Transformer, we varied our base model in different ways, measuring the change in performance on English-to-German translation on the development set, newstest2013. We used beam search as described in the previous section, but no checkpoint averaging. We present these results in Table 3. Table 3: Variations on the Transformer architecture. Unlisted values are identical to those of the base model.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 69, + "chunk_id": "Attention Is All You Need_chunk_0069", + "start_position": 31154, + "end_position": 31633, + "page_index": 9, + "word_count": 73, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "Unlisted values are identical to those of the base model. All metrics are on the English-to-German translation development set, newstest2013. Listed perplexities are per-wordpiece, according to our byte-pair encoding, and should not be compared to per-word perplexities.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 70, + "chunk_id": "Attention Is All You Need_chunk_0070", + "start_position": 31633, + "end_position": 31903, + "page_index": 9, + "word_count": 37, + "char_count": 270 + }, + "has_embedding": false + }, + { + "content": "wordpiece, according to our byte-pair encoding, and should not be compared to per-word perplexities.
N dmodeldffhdkdvPdroptresBLE
base6512 2048864640.10.1100K4.9225.865
(A)15125125.2924.9
46132125.025.8
3216165.0125.4
(B)16325.0625.44860
(C)2486.11 5.1923.7 25.336 50
10244.8825.580
25632 12832 1285.7524.528
10244.6626.0168 53
(D)40965.12 4.7525.4 26.290
0.05.7724.6
0.24.95
0.025.3
(E)positional embedding instead of sinusoids0.25.4725.7
4.92
big6 10244096160.3300K4.3325.7 26.4213
", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 71, + "chunk_id": "Attention Is All You Need_chunk_0071", + "start_position": 31903, + "end_position": 34507, + "page_index": 9, + "word_count": 49, + "char_count": 2604 + }, + "has_embedding": false + }, + { + "content": ">0.3300K4.3325.7 26.4213 In Table 3 rows (A), we vary the number of attention heads and the attention key and value dimensions, keeping the amount of computation constant, as described in Section 3.2.2. While single-head attention is 0.9 BLEU worse than the best setting, quality also drops off with too many heads. In Table 3 rows (B), we observe that reducing the attention key size $d _ { k }$ hurts model quality.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 72, + "chunk_id": "Attention Is All You Need_chunk_0072", + "start_position": 34507, + "end_position": 35000, + "page_index": 14, + "word_count": 72, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "n Table 3 rows (B), we observe that reducing the attention key size $d _ { k }$ hurts model quality. This suggests that determining compatibility is not easy and that a more sophisticated compatibility function than dot product may be beneficial. We further observe in rows (C) and (D) that, as expected, bigger models are better, and dropout is very helpful in avoiding over-fitting.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 73, + "chunk_id": "Attention Is All You Need_chunk_0073", + "start_position": 35000, + "end_position": 35384, + "page_index": 14, + "word_count": 65, + "char_count": 384 + }, + "has_embedding": false + }, + { + "content": ") that, as expected, bigger models are better, and dropout is very helpful in avoiding over-fitting. In row (E) we replace our sinusoidal positional encoding with learned positional embeddings [9], and observe nearly identical results to the base model. # 6.3 English Constituency Parsing To evaluate if the Transformer can generalize to other tasks we performed experiments on English constituency parsing.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 74, + "chunk_id": "Attention Is All You Need_chunk_0074", + "start_position": 35384, + "end_position": 35791, + "page_index": 14, + "word_count": 61, + "char_count": 407 + }, + "has_embedding": false + }, + { + "content": "Transformer can generalize to other tasks we performed experiments on English constituency parsing. This task presents specific challenges: the output is subject to strong structural constraints and is significantly longer than the input. Furthermore, RNN sequence-to-sequence models have not been able to attain state-of-the-art results in small-data regimes [37].", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 75, + "chunk_id": "Attention Is All You Need_chunk_0075", + "start_position": 35791, + "end_position": 36156, + "page_index": 14, + "word_count": 49, + "char_count": 365 + }, + "has_embedding": false + }, + { + "content": "to-sequence models have not been able to attain state-of-the-art results in small-data regimes [37]. We trained a 4-layer transformer with $d _ { m o d e l } = 1 0 2 4$ on the Wall Street Journal (WSJ) portion of the Penn Treebank [25], about 40K training sentences. We also trained it in a semi-supervised setting, using the larger high-confidence and BerkleyParser corpora from with approximately 17M sentences [37].", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 76, + "chunk_id": "Attention Is All You Need_chunk_0076", + "start_position": 36156, + "end_position": 36574, + "page_index": 14, + "word_count": 71, + "char_count": 418 + }, + "has_embedding": false + }, + { + "content": "ing the larger high-confidence and BerkleyParser corpora from with approximately 17M sentences [37]. We used a vocabulary of 16K tokens for the WSJ only setting and a vocabulary of 32K tokens for the semi-supervised setting. We performed only a small number of experiments to select the dropout, both attention and residual (section 5.4), learning rates and beam size on the Section 22 development set, all other parameters remained unchanged from the English-to-German base translation model.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 77, + "chunk_id": "Attention Is All You Need_chunk_0077", + "start_position": 36574, + "end_position": 37067, + "page_index": 14, + "word_count": 75, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "ment set, all other parameters remained unchanged from the English-to-German base translation model. During inference, we increased the maximum output length to input length $+ 3 0 0$ . We used a beam size of 21 and $\\alpha = 0 . 3$ for both WSJ only and the semi-supervised setting. Table 4: The Transformer generalizes well to English constituency parsing (Results are on Section 23 of WSJ)
ParserTrainingWSJ 23 F1
Vinyals & Kaiser el al.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 78, + "chunk_id": "Attention Is All You Need_chunk_0078", + "start_position": 37067, + "end_position": 37561, + "page_index": 14, + "word_count": 74, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "table>
ParserTrainingWSJ 23 F1
Vinyals & Kaiser el al. (2014) [37] Petrov et al. (2006) [29]WSJ only, discriminative WSJ only, discriminative88.3 90.4
Zhu et al. (2013) [40]WSJ only, discriminative90.4
Dyer et al. (2016) [8]WSJ only, discriminative91.7
Transformer (4 layers)WSJ only, discriminative91.3
Zhu et al. (2013) [40]semi-supervised91.3
Huang & Harper (2009) [14]semi-supervised91.3
McClosky et al. (2006) [26]semi-supervised92.1
Vinyals & Kaiser el al.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 79, + "chunk_id": "Attention Is All You Need_chunk_0079", + "start_position": 37561, + "end_position": 38322, + "page_index": 14, + "word_count": 52, + "char_count": 761 + }, + "has_embedding": false + }, + { + "content": "(2006) [26]semi-supervised92.1
Vinyals & Kaiser el al. (2014) [37]semi-supervised92.1
Transformer (4 layers)semi-supervised92.7
Luong et al. (2015) [23]multi-task93.0
Dyer et al. (2016) [8]generative93.3
", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 80, + "chunk_id": "Attention Is All You Need_chunk_0080", + "start_position": 38322, + "end_position": 38705, + "page_index": 14, + "word_count": 18, + "char_count": 383 + }, + "has_embedding": false + }, + { + "content": "(2016) [8]generative93.3 Our results in Table 4 show that despite the lack of task-specific tuning our model performs surprisingly well, yielding better results than all previously reported models with the exception of the Recurrent Neural Network Grammar [8]. In contrast to RNN sequence-to-sequence models [37], the Transformer outperforms the BerkeleyParser [29] even when training only on the WSJ training set of 40K sentences. # 7 Conclusion", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 81, + "chunk_id": "Attention Is All You Need_chunk_0081", + "start_position": 38705, + "end_position": 39187, + "page_index": 14, + "word_count": 66, + "char_count": 482 + }, + "has_embedding": false + }, + { + "content": "# 7 Conclusion In this work, we presented the Transformer, the first sequence transduction model based entirely on attention, replacing the recurrent layers most commonly used in encoder-decoder architectures with multi-headed self-attention. For translation tasks, the Transformer can be trained significantly faster than architectures based on recurrent or convolutional layers. On both WMT 2014 English-to-German and WMT 2014 English-to-French translation tasks, we achieve a new state of the art.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 82, + "chunk_id": "Attention Is All You Need_chunk_0082", + "start_position": 39187, + "end_position": 39687, + "page_index": 14, + "word_count": 69, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "glish-to-German and WMT 2014 English-to-French translation tasks, we achieve a new state of the art. In the former task our best model outperforms even all previously reported ensembles. We are excited about the future of attention-based models and plan to apply them to other tasks.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 83, + "chunk_id": "Attention Is All You Need_chunk_0083", + "start_position": 39687, + "end_position": 39970, + "page_index": 14, + "word_count": 45, + "char_count": 283 + }, + "has_embedding": false + }, + { + "content": "We are excited about the future of attention-based models and plan to apply them to other tasks. We plan to extend the Transformer to problems involving input and output modalities other than text and to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs such as images, audio and video. Making generation less sequential is another research goals of ours.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 84, + "chunk_id": "Attention Is All You Need_chunk_0084", + "start_position": 39970, + "end_position": 40373, + "page_index": 14, + "word_count": 63, + "char_count": 403 + }, + "has_embedding": false + }, + { + "content": "Making generation less sequential is another research goals of ours. The code we used to train and evaluate our models is available at https://github.com/ tensorflow/tensor2tensor. Acknowledgements We are grateful to Nal Kalchbrenner and Stephan Gouws for their fruitful comments, corrections and inspiration. # References [1] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. [2] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 85, + "chunk_id": "Attention Is All You Need_chunk_0085", + "start_position": 40373, + "end_position": 40870, + "page_index": 14, + "word_count": 69, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "[2] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. CoRR, abs/1409.0473, 2014. [3] Denny Britz, Anna Goldie, Minh-Thang Luong, and Quoc V. Le. Massive exploration of neural machine translation architectures. CoRR, abs/1703.03906, 2017. [4] Jianpeng Cheng, Li Dong, and Mirella Lapata. Long short-term memory-networks for machine reading. arXiv preprint arXiv:1601.06733, 2016.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 86, + "chunk_id": "Attention Is All You Need_chunk_0086", + "start_position": 40870, + "end_position": 41321, + "page_index": 14, + "word_count": 60, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:1601.06733, 2016. [5] Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. CoRR, abs/1406.1078, 2014. [6] Francois Chollet. Xception: Deep learning with depthwise separable convolutions. arXiv preprint arXiv:1610.02357, 2016. [7] Junyoung Chung, Çaglar Gülçehre, Kyunghyun Cho, and Yoshua Bengio.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 87, + "chunk_id": "Attention Is All You Need_chunk_0087", + "start_position": 41321, + "end_position": 41785, + "page_index": 14, + "word_count": 56, + "char_count": 464 + }, + "has_embedding": false + }, + { + "content": "[7] Junyoung Chung, Çaglar Gülçehre, Kyunghyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. CoRR, abs/1412.3555, 2014. [8] Chris Dyer, Adhiguna Kuncoro, Miguel Ballesteros, and Noah A. Smith. Recurrent neural network grammars. In Proc. of NAACL, 2016. [9] Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N. Dauphin. Convolutional sequence to sequence learning. arXiv preprint arXiv:1705.03122v2, 2017. [10] Alex Graves.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 88, + "chunk_id": "Attention Is All You Need_chunk_0088", + "start_position": 41785, + "end_position": 42281, + "page_index": 14, + "word_count": 68, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "[10] Alex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013. [11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770–778, 2016. [12] Sepp Hochreiter, Yoshua Bengio, Paolo Frasconi, and Jürgen Schmidhuber. Gradient flow in recurrent nets: the difficulty of learning long-term dependencies, 2001.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 89, + "chunk_id": "Attention Is All You Need_chunk_0089", + "start_position": 42281, + "end_position": 42765, + "page_index": 14, + "word_count": 66, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "Gradient flow in recurrent nets: the difficulty of learning long-term dependencies, 2001. [13] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. [14] Zhongqiang Huang and Mary Harper. Self-training PCFG grammars with latent annotations across languages. In Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, pages 832–841. ACL, August 2009.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 90, + "chunk_id": "Attention Is All You Need_chunk_0090", + "start_position": 42765, + "end_position": 43198, + "page_index": 14, + "word_count": 57, + "char_count": 433 + }, + "has_embedding": false + }, + { + "content": "ACL, August 2009. [15] Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. [16] Łukasz Kaiser and Samy Bengio. Can active memory replace attention? In Advances in Neural Information Processing Systems, (NIPS), 2016. [17] Łukasz Kaiser and Ilya Sutskever. Neural GPUs learn algorithms. In International Conference on Learning Representations (ICLR), 2016.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 91, + "chunk_id": "Attention Is All You Need_chunk_0091", + "start_position": 43198, + "end_position": 43660, + "page_index": 14, + "word_count": 63, + "char_count": 462 + }, + "has_embedding": false + }, + { + "content": "In International Conference on Learning Representations (ICLR), 2016. [18] Nal Kalchbrenner, Lasse Espeholt, Karen Simonyan, Aaron van den Oord, Alex Graves, and Koray Kavukcuoglu. Neural machine translation in linear time. arXiv preprint arXiv:1610.10099v2, 2017. [19] Yoon Kim, Carl Denton, Luong Hoang, and Alexander M. Rush. Structured attention networks. In International Conference on Learning Representations, 2017. [20] Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 92, + "chunk_id": "Attention Is All You Need_chunk_0092", + "start_position": 43660, + "end_position": 44161, + "page_index": 14, + "word_count": 67, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "Adam: A method for stochastic optimization. In ICLR, 2015. [21] Oleksii Kuchaiev and Boris Ginsburg. Factorization tricks for LSTM networks. arXiv preprint arXiv:1703.10722, 2017. [22] Zhouhan Lin, Minwei Feng, Cicero Nogueira dos Santos, Mo Yu, Bing Xiang, Bowen Zhou, and Yoshua Bengio. A structured self-attentive sentence embedding. arXiv preprint arXiv:1703.03130, 2017. [23] Minh-Thang Luong, Quoc V. Le, Ilya Sutskever, Oriol Vinyals, and Lukasz Kaiser. Multi-task sequence to sequence learning.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 93, + "chunk_id": "Attention Is All You Need_chunk_0093", + "start_position": 44161, + "end_position": 44663, + "page_index": 14, + "word_count": 69, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "Multi-task sequence to sequence learning. arXiv preprint arXiv:1511.06114, 2015. [24] Minh-Thang Luong, Hieu Pham, and Christopher D Manning. Effective approaches to attentionbased neural machine translation. arXiv preprint arXiv:1508.04025, 2015. [25] Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313–330, 1993. [26] David McClosky, Eugene Charniak, and Mark Johnson.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 94, + "chunk_id": "Attention Is All You Need_chunk_0094", + "start_position": 44663, + "end_position": 45151, + "page_index": 14, + "word_count": 61, + "char_count": 488 + }, + "has_embedding": false + }, + { + "content": "[26] David McClosky, Eugene Charniak, and Mark Johnson. Effective self-training for parsing. In Proceedings of the Human Language Technology Conference of the NAACL, Main Conference, pages 152–159. ACL, June 2006. [27] Ankur Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. A decomposable attention model. In Empirical Methods in Natural Language Processing, 2016. [28] Romain Paulus, Caiming Xiong, and Richard Socher. A deep reinforced model for abstractive summarization.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 95, + "chunk_id": "Attention Is All You Need_chunk_0095", + "start_position": 45151, + "end_position": 45636, + "page_index": 14, + "word_count": 67, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "A deep reinforced model for abstractive summarization. arXiv preprint arXiv:1705.04304, 2017. [29] Slav Petrov, Leon Barrett, Romain Thibaux, and Dan Klein. Learning accurate, compact, and interpretable tree annotation. In Proceedings of the 21st International Conference on Computational Linguistics and 44th Annual Meeting of the ACL, pages 433–440. ACL, July 2006. [30] Ofir Press and Lior Wolf. Using the output embedding to improve language models. arXiv preprint arXiv:1608.05859, 2016.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 96, + "chunk_id": "Attention Is All You Need_chunk_0096", + "start_position": 45636, + "end_position": 46128, + "page_index": 14, + "word_count": 68, + "char_count": 492 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:1608.05859, 2016. [31] Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. arXiv preprint arXiv:1508.07909, 2015. [32] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. arXiv preprint arXiv:1701.06538, 2017.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 97, + "chunk_id": "Attention Is All You Need_chunk_0097", + "start_position": 46128, + "end_position": 46551, + "page_index": 14, + "word_count": 53, + "char_count": 423 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:1701.06538, 2017. [33] Nitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1):1929–1958, 2014. [34] Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus. End-to-end memory networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 98, + "chunk_id": "Attention Is All You Need_chunk_0098", + "start_position": 46551, + "end_position": 46979, + "page_index": 14, + "word_count": 60, + "char_count": 428 + }, + "has_embedding": false + }, + { + "content": "Sugiyama, and R. Garnett, editors, Advances in Neural Information Processing Systems 28, pages 2440–2448. Curran Associates, Inc., 2015. [35] Ilya Sutskever, Oriol Vinyals, and Quoc VV Le. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems, pages 3104–3112, 2014. [36] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. CoRR, abs/1512.00567, 2015.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 99, + "chunk_id": "Attention Is All You Need_chunk_0099", + "start_position": 46979, + "end_position": 47477, + "page_index": 14, + "word_count": 66, + "char_count": 498 + }, + "has_embedding": false + }, + { + "content": "CoRR, abs/1512.00567, 2015. [37] Vinyals & Kaiser, Koo, Petrov, Sutskever, and Hinton. Grammar as a foreign language. In Advances in Neural Information Processing Systems, 2015. [38] Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 100, + "chunk_id": "Attention Is All You Need_chunk_0100", + "start_position": 47477, + "end_position": 47943, + "page_index": 14, + "word_count": 66, + "char_count": 466 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:1609.08144, 2016. [39] Jie Zhou, Ying Cao, Xuguang Wang, Peng Li, and Wei Xu. Deep recurrent models with fast-forward connections for neural machine translation. CoRR, abs/1606.04199, 2016. [40] Muhua Zhu, Yue Zhang, Wenliang Chen, Min Zhang, and Jingbo Zhu. Fast and accurate shift-reduce constituent parsing. In Proceedings of the 51st Annual Meeting of the ACL (Volume 1: Long Papers), pages 434–443. ACL, August 2013. # Attention VisualizationsInput-Input Laye", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 101, + "chunk_id": "Attention Is All You Need_chunk_0101", + "start_position": 47943, + "end_position": 48428, + "page_index": 14, + "word_count": 70, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "# Attention VisualizationsInput-Input Laye [IMAGE]\nFigure 3: An example of the attention mechanism following long-distance dependencies in the encoder self-attention in layer 5 of 6. Many of the attention heads attend to a distant dependency of the verb ‘making’, completing the phrase ‘making...more difficult’. Attentions here shown only for the word ‘making’. Different colors represent different heads. Best viewed in color.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 102, + "chunk_id": "Attention Is All You Need_chunk_0102", + "start_position": 48428, + "end_position": 48856, + "page_index": 14, + "word_count": 61, + "char_count": 428 + }, + "has_embedding": false + }, + { + "content": "Best viewed in color. [IMAGE]\nFigure 4: Two attention heads, also in layer 5 of 6, apparently involved in anaphora resolution. Top: Full attentions for head 5. Bottom: Isolated attentions from just the word ‘its’ for attention heads 5 and 6. Note that the attentions are very sharp for this word. [IMAGE]\nFigure 5: Many of the attention heads exhibit behaviour that seems related to the structure of the sentence.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 103, + "chunk_id": "Attention Is All You Need_chunk_0103", + "start_position": 48856, + "end_position": 49269, + "page_index": 14, + "word_count": 70, + "char_count": 413 + }, + "has_embedding": false + }, + { + "content": ": Many of the attention heads exhibit behaviour that seems related to the structure of the sentence. We give two such examples above, from two different heads from the encoder self-attention at layer 5 of 6. The heads clearly learned to perform different tasks.", + "metadata": { + "source_file": "Attention Is All You Need", + "chunk_index": 104, + "chunk_id": "Attention Is All You Need_chunk_0104", + "start_position": 49269, + "end_position": 49530, + "page_index": 14, + "word_count": 44, + "char_count": 261 + }, + "has_embedding": false + } + ], + "metadata": { + "chunk_size": 512, + "overlap": 100, + "average_chunk_length": 471.7142857142857 + } + }, + "Billing Dispute Adjustment Process Flow v_f4b3b7c9": { + "source_file": "Billing Dispute Adjustment Process Flow v_f4b3b7c9", + "total_chunks": 10, + "original_length": 4468, + "chunks": [ + { + "content": "# BILLING DISPUTE ADJUSTMENT PROCESS FLOW # Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 [IMAGE] # Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 [IMAGE] •Escalation Process based on Deadline", + "metadata": { + "source_file": "Billing Dispute Adjustment Process Flow v_f4b3b7c9", + "chunk_index": 0, + "chunk_id": "Billing Dispute Adjustment Process Flow v_f4b3b7c9_chunk_0000", + "start_position": 0, + "end_position": 231, + "page_index": 0, + "word_count": 32, + "char_count": 231 + }, + "has_embedding": false + }, + { + "content": "ute Adjustment Process Flow for Voice- Revised v2/2021 [IMAGE] •Escalation Process based on Deadline
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2More than 7 DaysGMAGM
3More than 14 DaysVPVP
", + "metadata": { + "source_file": "Billing Dispute Adjustment Process Flow v_f4b3b7c9", + "chunk_index": 1, + "chunk_id": "Billing Dispute Adjustment Process Flow v_f4b3b7c9_chunk_0001", + "start_position": 231, + "end_position": 667, + "page_index": 3, + "word_count": 33, + "char_count": 436 + }, + "has_embedding": false + }, + { + "content": ">GMAGM3More than 14 DaysVPVP Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) •Escalation Process based on Aging", + "metadata": { + "source_file": "Billing Dispute Adjustment Process Flow v_f4b3b7c9", + "chunk_index": 2, + "chunk_id": "Billing Dispute Adjustment Process Flow v_f4b3b7c9_chunk_0002", + "start_position": 667, + "end_position": 909, + "page_index": 6, + "word_count": 25, + "char_count": 242 + }, + "has_embedding": false + }, + { + "content": "(DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) •Escalation Process based on Aging
ItemAging Time LineLevel of escalation in SalesLevel of escalation in DM
130 to 60 DaysAGMManager
2More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
", + "metadata": { + "source_file": "Billing Dispute Adjustment Process Flow v_f4b3b7c9", + "chunk_index": 3, + "chunk_id": "Billing Dispute Adjustment Process Flow v_f4b3b7c9_chunk_0003", + "start_position": 909, + "end_position": 1357, + "page_index": 6, + "word_count": 38, + "char_count": 448 + }, + "has_embedding": false + }, + { + "content": ">GMAGM3More than 90 DaysVPVP Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels :", + "metadata": { + "source_file": "Billing Dispute Adjustment Process Flow v_f4b3b7c9", + "chunk_index": 4, + "chunk_id": "Billing Dispute Adjustment Process Flow v_f4b3b7c9_chunk_0004", + "start_position": 1357, + "end_position": 1594, + "page_index": 6, + "word_count": 23, + "char_count": 237 + }, + "has_embedding": false + }, + { + "content": "ACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels :
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4QuarterlyVPReport of the POD status update & escalation if 'on 4rd week of last month of the quarter
", + "metadata": { + "source_file": "Billing Dispute Adjustment Process Flow v_f4b3b7c9", + "chunk_index": 5, + "chunk_id": "Billing Dispute Adjustment Process Flow v_f4b3b7c9_chunk_0005", + "start_position": 1594, + "end_position": 2191, + "page_index": 6, + "word_count": 46, + "char_count": 597 + }, + "has_embedding": false + }, + { + "content": "D status update & escalation if 'on 4rd week of last month of the quarter [IMAGE] MILESTONE FOR PROCESS IMPROVEMENT [IMAGE] Jun 2020 # Progress Tracking", + "metadata": { + "source_file": "Billing Dispute Adjustment Process Flow v_f4b3b7c9", + "chunk_index": 6, + "chunk_id": "Billing Dispute Adjustment Process Flow v_f4b3b7c9_chunk_0006", + "start_position": 2191, + "end_position": 2370, + "page_index": 6, + "word_count": 26, + "char_count": 179 + }, + "has_embedding": false + }, + { + "content": "ter [IMAGE] MILESTONE FOR PROCESS IMPROVEMENT [IMAGE] Jun 2020 # Progress Tracking
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020V
2.Reviewed 1st draft for Data with SBP.23 July 2020√
3.Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020√
4. Sync and finalized with Internal DM√
Obtain green light from stakeholders BC SalesSeptember/October 2020√
ORRM
5.。SBP
Awareness to
o International Sales4 November 2020√
o Awareness to Malaysian Carrier Sales9 November 2020V
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
", + "metadata": { + "source_file": "Billing Dispute Adjustment Process Flow v_f4b3b7c9", + "chunk_index": 7, + "chunk_id": "Billing Dispute Adjustment Process Flow v_f4b3b7c9_chunk_0007", + "start_position": 2370, + "end_position": 3700, + "page_index": 6, + "word_count": 95, + "char_count": 1330 + }, + "has_embedding": false + }, + { + "content": "ss is in line with the Dispute Policy)March 2021 Quarter 1 2021√ # Jointly Prepared and Proposed By: [IMAGE] [IMAGE] Irna Binti Ibrahim \nManager Dispute International 2 \nDate: 17/03/2021 [IMAGE] Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 Roshani Binti Yahya \nManager Dispute International 1 \nDate: 17/03/2021 Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 Reviewed By: [IMAGE]", + "metadata": { + "source_file": "Billing Dispute Adjustment Process Flow v_f4b3b7c9", + "chunk_index": 8, + "chunk_id": "Billing Dispute Adjustment Process Flow v_f4b3b7c9_chunk_0008", + "start_position": 3700, + "end_position": 4160, + "page_index": 6, + "word_count": 62, + "char_count": 460 + }, + "has_embedding": false + }, + { + "content": ": 17/03/2021 Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 Reviewed By: [IMAGE] Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 # Approved By: [IMAGE] Nazidah Binti Ahmad Azli Head Business Finance Date:", + "metadata": { + "source_file": "Billing Dispute Adjustment Process Flow v_f4b3b7c9", + "chunk_index": 9, + "chunk_id": "Billing Dispute Adjustment Process Flow v_f4b3b7c9_chunk_0009", + "start_position": 4160, + "end_position": 4468, + "page_index": 6, + "word_count": 45, + "char_count": 308 + }, + "has_embedding": false + } + ], + "metadata": { + "chunk_size": 512, + "overlap": 100, + "average_chunk_length": 446.8 + } + }, + "Communication-Efficient Learning of Deep Networks": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "total_chunks": 143, + "original_length": 69322, + "chunks": [ + { + "content": "# Communication-Efficient Learning of Deep Networks from Decentralized Data # H. Brendan McMahan Eider Moore Daniel Ramage Seth Hampson Google, Inc., 651 N 34th St., Seattle, WA 98103 USA Blaise Aguera y Arcas ¨ # Abstract Modern mobile devices have access to a wealth of data suitable for learning models, which in turn can greatly improve the user experience on the device. For example, language models can improve speech recognition and text entry, and image models can automatically select good photos.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 0, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0000", + "start_position": 0, + "end_position": 506, + "page_index": 0, + "word_count": 81, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "an improve speech recognition and text entry, and image models can automatically select good photos. However, this rich data is often privacy sensitive, large in quantity, or both, which may preclude logging to the data center and training there using conventional approaches. We advocate an alternative that leaves the training data distributed on the mobile devices, and learns a shared model by aggregating locally-computed updates. We term this decentralized approach Federated Learning.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 1, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0001", + "start_position": 506, + "end_position": 997, + "page_index": 0, + "word_count": 72, + "char_count": 491 + }, + "has_embedding": false + }, + { + "content": "We term this decentralized approach Federated Learning. We present a practical method for the federated learning of deep networks based on iterative model averaging, and conduct an extensive empirical evaluation, considering five different model architectures and four datasets. These experiments demonstrate the approach is robust to the unbalanced and non-IID data distributions that are a defining characteristic of this setting.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 2, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0002", + "start_position": 997, + "end_position": 1429, + "page_index": 0, + "word_count": 60, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "to the unbalanced and non-IID data distributions that are a defining characteristic of this setting. Communication costs are the principal constraint, and we show a reduction in required communication rounds by $1 0 { - } 1 0 0 \\times$ as compared to synchronized stochastic gradient descent. # 1 Introduction Increasingly, phones and tablets are the primary computing devices for many people [30, 2].", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 3, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0003", + "start_position": 1429, + "end_position": 1830, + "page_index": 0, + "word_count": 64, + "char_count": 401 + }, + "has_embedding": false + }, + { + "content": "oduction Increasingly, phones and tablets are the primary computing devices for many people [30, 2]. The powerful sensors on these devices (including cameras, microphones, and GPS), combined with the fact they are frequently carried, means they have access to an unprecedented amount of data, much of it private in nature.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 4, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0004", + "start_position": 1830, + "end_position": 2152, + "page_index": 0, + "word_count": 50, + "char_count": 322 + }, + "has_embedding": false + }, + { + "content": "ly carried, means they have access to an unprecedented amount of data, much of it private in nature. Models learned on such data hold the promise of greatly improving usability by powering more intelligent applications, but the sensitive nature of the data means there are risks and responsibilities to storing it in a centralized location.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 5, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0005", + "start_position": 2152, + "end_position": 2492, + "page_index": 0, + "word_count": 55, + "char_count": 340 + }, + "has_embedding": false + }, + { + "content": "ture of the data means there are risks and responsibilities to storing it in a centralized location. We investigate a learning technique that allows users to collectively reap the benefits of shared models trained from this rich data, without the need to centrally store it. We term our approach Federated Learning, since the learning task is solved by a loose federation of participating devices (which we refer to as clients) which are coordinated by a central server.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 6, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0006", + "start_position": 2492, + "end_position": 2962, + "page_index": 0, + "word_count": 77, + "char_count": 470 + }, + "has_embedding": false + }, + { + "content": "n of participating devices (which we refer to as clients) which are coordinated by a central server. Each client has a local training dataset which is never uploaded to the server. Instead, each client computes an update to the current global model maintained by the server, and only this update is communicated. This is a direct application of the principle of focused collection or data minimization proposed by the 2012 White House report on privacy of consumer data [39].", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 7, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0007", + "start_position": 2962, + "end_position": 3437, + "page_index": 0, + "word_count": 79, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": "ction or data minimization proposed by the 2012 White House report on privacy of consumer data [39]. Since these updates are specific to improving the current model, there is no reason to store them once they have been applied. A principal advantage of this approach is the decoupling of model training from the need for direct access to the raw training data. Clearly, some trust of the server coordinating the training is still required.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 8, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0008", + "start_position": 3437, + "end_position": 3876, + "page_index": 0, + "word_count": 74, + "char_count": 439 + }, + "has_embedding": false + }, + { + "content": "Clearly, some trust of the server coordinating the training is still required. However, for applications where the training objective can be specified on the basis of data available on each client, federated learning can significantly reduce privacy and security risks by limiting the attack surface to only the device, rather than the device and the cloud.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 9, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0009", + "start_position": 3876, + "end_position": 4233, + "page_index": 0, + "word_count": 56, + "char_count": 357 + }, + "has_embedding": false + }, + { + "content": "urity risks by limiting the attack surface to only the device, rather than the device and the cloud. Our primary contributions are 1) the identification of the problem of training on decentralized data from mobile devices as an important research direction; 2) the selection of a straightforward and practical algorithm that can be applied to this setting; and 3) an extensive empirical evaluation of the proposed approach.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 10, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0010", + "start_position": 4233, + "end_position": 4656, + "page_index": 1, + "word_count": 67, + "char_count": 423 + }, + "has_embedding": false + }, + { + "content": "t can be applied to this setting; and 3) an extensive empirical evaluation of the proposed approach. More concretely, we introduce the FederatedAveraging algorithm, which combines local stochastic gradient descent (SGD) on each client with a server that performs model averaging.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 11, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0011", + "start_position": 4656, + "end_position": 4935, + "page_index": 1, + "word_count": 41, + "char_count": 279 + }, + "has_embedding": false + }, + { + "content": "local stochastic gradient descent (SGD) on each client with a server that performs model averaging. We perform extensive experiments on this algorithm, demonstrating it is robust to unbalanced and non-IID data distributions, and can reduce the rounds of communication needed to train a deep network on decentralized data by orders of magnitude.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 12, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0012", + "start_position": 4935, + "end_position": 5279, + "page_index": 1, + "word_count": 52, + "char_count": 344 + }, + "has_embedding": false + }, + { + "content": "rounds of communication needed to train a deep network on decentralized data by orders of magnitude. Federated Learning Ideal problems for federated learning have the following properties: 1) Training on real-world data from mobile devices provides a distinct advantage over training on proxy data that is generally available in the data center.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 13, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0013", + "start_position": 5279, + "end_position": 5624, + "page_index": 1, + "word_count": 52, + "char_count": 345 + }, + "has_embedding": false + }, + { + "content": "des a distinct advantage over training on proxy data that is generally available in the data center. 2) This data is privacy sensitive or large in size (compared to the size of the model), so it is preferable not to log it to the data center purely for the purpose of model training (in service of the focused collection principle). 3) For supervised tasks, labels on the data can be inferred naturally from user interaction.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 14, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0014", + "start_position": 5624, + "end_position": 6049, + "page_index": 1, + "word_count": 75, + "char_count": 425 + }, + "has_embedding": false + }, + { + "content": "3) For supervised tasks, labels on the data can be inferred naturally from user interaction. mation than the raw training data (by the data processing inequality), and will generally contain much less. Further, the source of the updates is not needed by the aggregation algorithm, so updates can be transmitted without identifying meta-data over a mix network such as Tor [7] or via a trusted third party.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 15, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0015", + "start_position": 6049, + "end_position": 6454, + "page_index": 1, + "word_count": 67, + "char_count": 405 + }, + "has_embedding": false + }, + { + "content": "itted without identifying meta-data over a mix network such as Tor [7] or via a trusted third party. We briefly discuss the possibility of combining federated learning with secure multiparty computation and differential privacy at the end of the paper. Many models that power intelligent behavior on mobile devices fit the above criteria.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 16, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0016", + "start_position": 6454, + "end_position": 6792, + "page_index": 1, + "word_count": 53, + "char_count": 338 + }, + "has_embedding": false + }, + { + "content": "Many models that power intelligent behavior on mobile devices fit the above criteria. As two examples, we consider image classification, for example predicting which photos are most likely to be viewed multiple times in the future, or shared; and language models, which can be used to improve voice recognition and text entry on touch-screen keyboards by improving decoding, next-word-prediction, and even predicting whole replies [10].", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 17, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0017", + "start_position": 6792, + "end_position": 7228, + "page_index": 1, + "word_count": 65, + "char_count": 436 + }, + "has_embedding": false + }, + { + "content": "creen keyboards by improving decoding, next-word-prediction, and even predicting whole replies [10]. The potential training data for both these tasks (all the photos a user takes and everything they type on their mobile keyboard, including passwords, URLs, messages, etc.) can be privacy sensitive.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 18, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0018", + "start_position": 7228, + "end_position": 7526, + "page_index": 1, + "word_count": 43, + "char_count": 298 + }, + "has_embedding": false + }, + { + "content": "type on their mobile keyboard, including passwords, URLs, messages, etc.) can be privacy sensitive. The distributions from which these examples are drawn are also likely to differ substantially from easily available proxy datasets: the use of language in chat and text messages is generally much different than standard language corpora, e.g., Wikipedia and other web documents; the photos people take on their phone are likely quite different than typical Flickr photos.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 19, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0019", + "start_position": 7526, + "end_position": 7997, + "page_index": 1, + "word_count": 71, + "char_count": 471 + }, + "has_embedding": false + }, + { + "content": "uments; the photos people take on their phone are likely quite different than typical Flickr photos. And finally, the labels for these problems are directly available: entered text is self-labeled for learning a language model, and photo labels can be defined by natural user interaction with their photo app (which photos are deleted, shared, or viewed). Both of these tasks are well-suited to learning a neural network.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 20, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0020", + "start_position": 7997, + "end_position": 8418, + "page_index": 1, + "word_count": 67, + "char_count": 421 + }, + "has_embedding": false + }, + { + "content": "Both of these tasks are well-suited to learning a neural network. For image classification feed-forward deep networks, and in particular convolutional networks, are well-known to provide state-of-the-art results [26, 25]. For language modeling tasks recurrent neural networks, and in particular LSTMs, have achieved state-of-the-art results [20, 5, 22].", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 21, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0021", + "start_position": 8418, + "end_position": 8771, + "page_index": 1, + "word_count": 48, + "char_count": 353 + }, + "has_embedding": false + }, + { + "content": "urrent neural networks, and in particular LSTMs, have achieved state-of-the-art results [20, 5, 22]. Federated Optimization We refer to the optimization problem implicit in federated learning as federated optimization, drawing a connection (and contrast) to distributed optimization. Federated optimization has several key properties that differentiate it from a typical distributed optimization problem:", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 22, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0022", + "start_position": 8771, + "end_position": 9175, + "page_index": 1, + "word_count": 52, + "char_count": 404 + }, + "has_embedding": false + }, + { + "content": "on has several key properties that differentiate it from a typical distributed optimization problem: • Non-IID The training data on a given client is typically based on the usage of the mobile device by a particular user, and hence any particular user’s local dataset will not be representative of the population distribution. • Unbalanced Similarly, some users will make much heavier use of the service or app than others, leading to varying amounts of local training data.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 23, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0023", + "start_position": 9175, + "end_position": 9649, + "page_index": 1, + "word_count": 77, + "char_count": 474 + }, + "has_embedding": false + }, + { + "content": "ch heavier use of the service or app than others, leading to varying amounts of local training data. • Massively distributed We expect the number of clients participating in an optimization to be much larger than the average number of examples per client. • Limited communication Mobile devices are frequently offline or on slow or expensive connections. In this work, our emphasis is on the non-IID and unbalanced properties of the optimization, as well as the critical nature of the communication constraints.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 24, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0024", + "start_position": 9649, + "end_position": 10160, + "page_index": 1, + "word_count": 82, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "ced properties of the optimization, as well as the critical nature of the communication constraints. A deployed federated optimization system must also address a myriad of practical issues: client datasets that change as data is added and deleted; client availability that correlates with the local data distribution in complex ways (e.g., phones from speakers of American English will likely be plugged in at different times than speakers of British English); and clients that never respond or send corrupted updates.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 25, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0025", + "start_position": 10160, + "end_position": 10678, + "page_index": 2, + "word_count": 79, + "char_count": 518 + }, + "has_embedding": false + }, + { + "content": "t times than speakers of British English); and clients that never respond or send corrupted updates. Privacy Federated learning has distinct privacy advantages compared to data center training on persisted data. Holding even an “anonymized” dataset can still put user privacy at risk via joins with other data [37].", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 26, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0026", + "start_position": 10678, + "end_position": 10993, + "page_index": 2, + "word_count": 49, + "char_count": 315 + }, + "has_embedding": false + }, + { + "content": "ding even an “anonymized” dataset can still put user privacy at risk via joins with other data [37]. In contrast, the information transmitted for federated learning is the minimal update necessary to improve a particular model (naturally, the strength of the privacy benefit depends on the content of the updates).1 The updates themselves can (and should) be ephemeral. They will never contain more infor", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 27, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0027", + "start_position": 10993, + "end_position": 11397, + "page_index": 2, + "word_count": 64, + "char_count": 404 + }, + "has_embedding": false + }, + { + "content": "They will never contain more infor These issues are beyond the scope of the current work; instead, we use a controlled environment that is suitable for experiments, but still addresses the key issues of client availability and unbalanced and non-IID data. We assume a synchronous update scheme that proceeds in rounds of communication. There is a fixed set of $K$ clients, each with a fixed local dataset.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 28, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0028", + "start_position": 11397, + "end_position": 11802, + "page_index": 2, + "word_count": 67, + "char_count": 405 + }, + "has_embedding": false + }, + { + "content": "There is a fixed set of $K$ clients, each with a fixed local dataset. At the beginning of each round, a random fraction $C$ of clients is selected, and the server sends the current global algorithm state to each of these clients (e.g., the current model parameters). We only select a fraction of clients for efficiency, as our experiments show diminishing returns for adding more clients beyond a certain point.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 29, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0029", + "start_position": 11802, + "end_position": 12213, + "page_index": 2, + "word_count": 70, + "char_count": 411 + }, + "has_embedding": false + }, + { + "content": "iciency, as our experiments show diminishing returns for adding more clients beyond a certain point. Each selected client then performs local computation based on the global state and its local dataset, and sends an update to the server. The server then applies these updates to its global state, and the process repeats. While we focus on non-convex neural network objectives, the algorithm we consider is applicable to any finite-sum objective of the form", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 30, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0030", + "start_position": 12213, + "end_position": 12670, + "page_index": 2, + "word_count": 73, + "char_count": 457 + }, + "has_embedding": false + }, + { + "content": "network objectives, the algorithm we consider is applicable to any finite-sum objective of the form $$\n\\operatorname* { m i n } _ { w \\in \\mathbb { R } ^ { d } } f ( w ) \\qquad \\mathrm { w h e r e } \\qquad f ( w ) \\stackrel { \\mathrm { d e f } } { = } \\frac 1 n \\sum _ { i = 1 } ^ { n } f _ { i } ( w ) . $$", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 31, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0031", + "start_position": 12670, + "end_position": 12977, + "page_index": 2, + "word_count": 89, + "char_count": 307 + }, + "has_embedding": false + }, + { + "content": "$$ For a machine learning problem, we typically take $f _ { i } ( w ) =$ $\\ell ( x _ { i } , y _ { i } ; w )$ , that is, the loss of the prediction on example $( x _ { i } , y _ { i } )$ made with model parameters $w$ . We assume there are $K$ clients over which the data is partitioned, with $\\mathcal { P } _ { k }$ the set of indexes of data points on client $k$ , with $n _ { k } = | \\mathcal { P } _ { k } |$ Thus, we can re-write the objective (1) as", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 32, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0032", + "start_position": 12977, + "end_position": 13433, + "page_index": 2, + "word_count": 120, + "char_count": 456 + }, + "has_embedding": false + }, + { + "content": "lient $k$ , with $n _ { k } = | \\mathcal { P } _ { k } |$ Thus, we can re-write the objective (1) as $$\nf ( w ) = \\sum _ { k = 1 } ^ { K } { \\frac { n _ { k } } { n } } F _ { k } ( w ) \\quad { \\mathrm { w h e r e } } \\quad F _ { k } ( w ) = { \\frac { 1 } { n _ { k } } } \\sum _ { i \\in \\mathcal { P } _ { k } } f _ { i } ( w ) . $$", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 33, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0033", + "start_position": 13433, + "end_position": 13764, + "page_index": 2, + "word_count": 124, + "char_count": 331 + }, + "has_embedding": false + }, + { + "content": "$$ If the partition $\\mathcal { P } _ { k }$ was formed by distributing the training examples over the clients uniformly at random, then we would have $\\mathbb { E } p _ { k } [ F _ { k } ( w ) ] = f ( w )$ , where the expectation is over the set of examples assigned to a fixed client $k$ .", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 34, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0034", + "start_position": 13764, + "end_position": 14055, + "page_index": 2, + "word_count": 70, + "char_count": 291 + }, + "has_embedding": false + }, + { + "content": ") ] = f ( w )$ , where the expectation is over the set of examples assigned to a fixed client $k$ . This is the IID assumption typically made by distributed optimization algorithms; we refer to the case where this does not hold (that is, $F _ { k }$ could be an arbitrarily bad approximation to $f$ ) as the non-IID setting. In data center optimization, communication costs are relatively small, and computational costs dominate, with much of the recent emphasis being on using GPUs to lower these costs.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 35, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0035", + "start_position": 14055, + "end_position": 14559, + "page_index": 2, + "word_count": 92, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "utational costs dominate, with much of the recent emphasis being on using GPUs to lower these costs. In contrast, in federated optimization communication costs dominate — we will typically be limited by an upload bandwidth of $1 \\ : \\mathrm { M B / s }$ or less. Further, clients will typically only volunteer to participate in the optimization when they are charged, plugged-in, and on an unmetered wi-fi connection.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 36, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0036", + "start_position": 14559, + "end_position": 14976, + "page_index": 2, + "word_count": 70, + "char_count": 417 + }, + "has_embedding": false + }, + { + "content": "icipate in the optimization when they are charged, plugged-in, and on an unmetered wi-fi connection. Further, we expect each client will only participate in a small number of update rounds per day. On the other hand, since any single on-device dataset is small compared to the total dataset size, and modern smartphones have relatively fast processors (including GPUs), computation becomes essentially free compared to communication costs for many model types.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 37, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0037", + "start_position": 14976, + "end_position": 15436, + "page_index": 2, + "word_count": 70, + "char_count": 460 + }, + "has_embedding": false + }, + { + "content": "ng GPUs), computation becomes essentially free compared to communication costs for many model types. Thus, our goal is to use additional computation in order to decrease the number of rounds of communication needed to train a model.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 38, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0038", + "start_position": 15436, + "end_position": 15668, + "page_index": 2, + "word_count": 37, + "char_count": 232 + }, + "has_embedding": false + }, + { + "content": "onal computation in order to decrease the number of rounds of communication needed to train a model. There are two primary ways we can add computation: 1) increased parallelism, where we use more clients working independently between each communication round; and, 2) increased computation on each client, where rather than performing a simple computation like a gradient calculation, each client performs a more complex calculation between each communication round.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 39, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0039", + "start_position": 15668, + "end_position": 16134, + "page_index": 3, + "word_count": 69, + "char_count": 466 + }, + "has_embedding": false + }, + { + "content": "dient calculation, each client performs a more complex calculation between each communication round. We investigate both of these approaches, but the speedups we achieve are due primarily to adding more computation on each client, once a minimum level of parallelism over clients is used. Related Work Distributed training by iteratively averaging locally trained models has been studied by McDonald et al. [28] for the perceptron and Povey et al. [31] for speech recognition DNNs.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 40, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0040", + "start_position": 16134, + "end_position": 16615, + "page_index": 3, + "word_count": 74, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "[31] for speech recognition DNNs. Zhang et al. [42] studies an asynchronous approach with “soft” averaging. These works only consider the cluster / data center setting (at most 16 workers, wall-clock time based on fast networks), and do not consider datasets that are unbalanced and non-IID, properties that are essential to the federated learning setting.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 41, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0041", + "start_position": 16615, + "end_position": 16971, + "page_index": 3, + "word_count": 55, + "char_count": 356 + }, + "has_embedding": false + }, + { + "content": "ts that are unbalanced and non-IID, properties that are essential to the federated learning setting. We adapt this style of algorithm to the federated setting and perform the appropriate empirical evaluation, which asks different questions than those relevant in the data center setting, and requires different methodology. Using similar motivation to ours, Neverova et al. [29] also discusses the advantages of keeping sensitive user data on device.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 42, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0042", + "start_position": 16971, + "end_position": 17421, + "page_index": 3, + "word_count": 67, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "[29] also discusses the advantages of keeping sensitive user data on device. The work of Shokri and Shmatikov [35] is related in several ways: they focus on training deep networks, emphasize the importance of privacy, and address communication costs by only sharing a subset of the parameters during each round of communication; however, they also do not consider unbalanced and non-IID data, and the empirical evaluation is limited.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 43, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0043", + "start_position": 17421, + "end_position": 17854, + "page_index": 3, + "word_count": 68, + "char_count": 433 + }, + "has_embedding": false + }, + { + "content": "ver, they also do not consider unbalanced and non-IID data, and the empirical evaluation is limited. In the convex setting, the problem of distributed optimization and estimation has received significant attention [4, 15, 33], and some algorithms do focus specifically on communication efficiency [45, 34, 40, 27, 43].", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 44, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0044", + "start_position": 17854, + "end_position": 18172, + "page_index": 3, + "word_count": 48, + "char_count": 318 + }, + "has_embedding": false + }, + { + "content": "15, 33], and some algorithms do focus specifically on communication efficiency [45, 34, 40, 27, 43]. In addition to assuming convexity, this existing work generally requires that the number of clients is much smaller than the number of examples per client, that the data is distributed across the clients in IID fashion, and that each node has an identical number of data points — all of these assumptions are violated in the federated optimization setting.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 45, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0045", + "start_position": 18172, + "end_position": 18629, + "page_index": 3, + "word_count": 75, + "char_count": 457 + }, + "has_embedding": false + }, + { + "content": "number of data points — all of these assumptions are violated in the federated optimization setting. Asynchronous distributed forms of SGD have also been applied to training neural networks, e.g., Dean et al. [12], but these approaches require a prohibitive number of updates in the federated setting. Distributed consensus algorithms (e.g., [41]) relax the IID assumption, but are still not a good fit for communication-constrained optimization over very many clients.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 46, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0046", + "start_position": 18629, + "end_position": 19098, + "page_index": 3, + "word_count": 70, + "char_count": 469 + }, + "has_embedding": false + }, + { + "content": "ion, but are still not a good fit for communication-constrained optimization over very many clients. One endpoint of the (parameterized) algorithm family we consider is simple one-shot averaging, where each client solves for the model that minimizes (possibly regularized) loss on their local data, and these models are averaged to produce the final global model.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 47, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0047", + "start_position": 19098, + "end_position": 19461, + "page_index": 3, + "word_count": 55, + "char_count": 363 + }, + "has_embedding": false + }, + { + "content": "ularized) loss on their local data, and these models are averaged to produce the final global model. This approach has been studied extensively in the convex case with IID data, and it is known that in the worst-case, the global model produced is no better than training a model on a single client [44, 3, 46]. # 2 The FederatedAveraging Algorithm", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 48, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0048", + "start_position": 19461, + "end_position": 19808, + "page_index": 3, + "word_count": 61, + "char_count": 347 + }, + "has_embedding": false + }, + { + "content": "# 2 The FederatedAveraging Algorithm The recent multitude of successful applications of deep learning have almost exclusively relied on variants of stochastic gradient descent (SGD) for optimization; in fact, many advances can be understood as adapting the structure of the model (and hence the loss function) to be more amenable to optimization by simple gradient-based methods [16]. Thus, it is natural that we build algorithms for federated optimization by starting from SGD.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 49, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0049", + "start_position": 19808, + "end_position": 20286, + "page_index": 3, + "word_count": 72, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "Thus, it is natural that we build algorithms for federated optimization by starting from SGD. SGD can be applied naively to the federated optimization problem, where a single batch gradient calculation (say on a randomly selected client) is done per round of communication.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 50, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0050", + "start_position": 20286, + "end_position": 20559, + "page_index": 3, + "word_count": 43, + "char_count": 273 + }, + "has_embedding": false + }, + { + "content": "e batch gradient calculation (say on a randomly selected client) is done per round of communication. This approach is computationally efficient, but requires very large numbers of rounds of training to produce good models (e.g., even using an advanced approach like batch normalization, Ioffe and Szegedy [21] trained MNIST for 50000 steps on minibatches of size 60). We consider this baseline in our CIFAR-10 experiments.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 51, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0051", + "start_position": 20559, + "end_position": 20981, + "page_index": 4, + "word_count": 65, + "char_count": 422 + }, + "has_embedding": false + }, + { + "content": "We consider this baseline in our CIFAR-10 experiments. In the federated setting, there is little cost in wall-clock time to involving more clients, and so for our baseline we use large-batch synchronous SGD; experiments by Chen et al. [8] show this approach is state-of-the-art in the data center setting, where it outperforms asynchronous approaches.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 52, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0052", + "start_position": 20981, + "end_position": 21332, + "page_index": 4, + "word_count": 54, + "char_count": 351 + }, + "has_embedding": false + }, + { + "content": "proach is state-of-the-art in the data center setting, where it outperforms asynchronous approaches. To apply this approach in the federated setting, we select a $C$ fraction of clients on each round, and compute the gradient of the loss over all the data held by these clients. Thus, $C$ controls the global batch size, with $C = 1$ corresponding to full-batch (non-stochastic) gradient descent.2 We refer to this baseline algorithm as FederatedSGD (or FedSGD).", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 53, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0053", + "start_position": 21332, + "end_position": 21794, + "page_index": 4, + "word_count": 73, + "char_count": 462 + }, + "has_embedding": false + }, + { + "content": "(non-stochastic) gradient descent.2 We refer to this baseline algorithm as FederatedSGD (or FedSGD). [IMAGE]\nFigure 1: The loss on the full MNIST training set for models generated by averaging the parameters of two models $w$ and $w ^ { \\prime }$ using $\\theta w + ( 1 - \\theta ) w ^ { \\prime }$ for 50 evenly spaced values $\\theta \\in [ - 0 . 2 , 1 . 2 ]$ .The models $w$ and $w ^ { \\prime }$ were trained using SGD on different small datasets.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 54, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0054", + "start_position": 21794, + "end_position": 22239, + "page_index": 4, + "word_count": 89, + "char_count": 445 + }, + "has_embedding": false + }, + { + "content": "2 ]$ .The models $w$ and $w ^ { \\prime }$ were trained using SGD on different small datasets. For the left plot, $w$ and $w ^ { \\prime }$ were initialized using different random seeds; for the right plot, a shared seed was used. Note the different $y$ -axis scales. The horizontal line gives the best loss achieved by $w$ or $w ^ { \\prime }$ (which were quite close, corresponding to the vertical lines at $\\theta = 0$ and $\\theta = 1$ ).", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 55, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0055", + "start_position": 22239, + "end_position": 22677, + "page_index": 4, + "word_count": 85, + "char_count": 438 + }, + "has_embedding": false + }, + { + "content": "}$ (which were quite close, corresponding to the vertical lines at $\\theta = 0$ and $\\theta = 1$ ). With shared initialization, averaging the models produces a significant reduction in the loss on the total training set (much better than the loss of either parent model).", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 56, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0056", + "start_position": 22677, + "end_position": 22948, + "page_index": 4, + "word_count": 46, + "char_count": 271 + }, + "has_embedding": false + }, + { + "content": "reduction in the loss on the total training set (much better than the loss of either parent model). A typical implementation of FedSGD with $C = 1$ and a fixed learning rate $\\eta$ has each client $k$ compute $g _ { k } =$ $\\nabla F _ { k } ( w _ { t } )$ , the average gradient on its local data at the current model and ap $w _ { t }$ , and the centes the update dients, since $\\begin{array} { r } { w _ { t + 1 } w _ { t } - \\eta \\sum _ { k = 1 } ^ { K } \\frac { n _ { k } } { n } g _ { k } } \\end{array}$ $\\forall k , \\ w _ { t + 1 } ^ { k } \\gets w _ { t } - \\eta g _ { k }$ $\\begin{array} { r } { \\sum _ { k = 1 } ^ { K } \\frac { n _ { k } } { n } g _ { k } = \\nabla f ( w _ { t } ) } \\end{array}$ .", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 57, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0057", + "start_position": 22948, + "end_position": 23653, + "page_index": 4, + "word_count": 205, + "char_count": 705 + }, + "has_embedding": false + }, + { + "content": "um _ { k = 1 } ^ { K } \\frac { n _ { k } } { n } g _ { k } = \\nabla f ( w _ { t } ) } \\end{array}$ . An equivalent update is given by and then $\\begin{array} { r } { w _ { t + 1 } \\gets \\sum _ { k = 1 } ^ { K } \\frac { n _ { k } } { n } w _ { t + 1 } ^ { k } } \\end{array}$ That is, each client locally takes one step of gradient descent on the current model using its local data, and the server then takes a weighted average of the resulting models.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 58, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0058", + "start_position": 23653, + "end_position": 24103, + "page_index": 4, + "word_count": 127, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "nt model using its local data, and the server then takes a weighted average of the resulting models. Once the algorithm is written this way, we can add more computation to each client by iterating the local update $w ^ { k } w ^ { k } - \\eta \\nabla F _ { k } ( w ^ { k } )$ multiple times before the averaging step. We term this approach FederatedAveraging (or FedAvg).", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 59, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0059", + "start_position": 24103, + "end_position": 24472, + "page_index": 4, + "word_count": 76, + "char_count": 369 + }, + "has_embedding": false + }, + { + "content": "We term this approach FederatedAveraging (or FedAvg). The amount of computation is controlled by three key parameters: $C$ , the fraction of clients that perform computation on each round; $E$ , then number of training passes each client makes over its local dataset on each round; and $B$ , the local minibatch size used for the client updates. We write $B = \\infty$ to indicate that the full local dataset is treated as a single minibatch.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 60, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0060", + "start_position": 24472, + "end_position": 24913, + "page_index": 4, + "word_count": 76, + "char_count": 441 + }, + "has_embedding": false + }, + { + "content": "We write $B = \\infty$ to indicate that the full local dataset is treated as a single minibatch. Thus, at one endpoint of this algorithm family, we can take $B = \\infty$ and $E = 1$ which corresponds exactly to FedSGD. For a client with $n _ { k }$ local examples, the number of local updates per round is given by $\\begin{array} { r } { u _ { k } = E \\frac { n _ { k } } { B } } \\end{array}$ ; Complete pseudo-code is given in Algorithm 1.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 61, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0061", + "start_position": 24913, + "end_position": 25352, + "page_index": 5, + "word_count": 95, + "char_count": 439 + }, + "has_embedding": false + }, + { + "content": "_ { k } = E \\frac { n _ { k } } { B } } \\end{array}$ ; Complete pseudo-code is given in Algorithm 1. For general non-convex objectives, averaging models in parameter space could produce an arbitrarily bad model. Following the approach of Goodfellow et al. [17], we see exactly this bad behavior when we average two MNIST digit-recognition models3 trained from different initial conditions (Figure 1, left).", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 62, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0062", + "start_position": 25352, + "end_position": 25758, + "page_index": 5, + "word_count": 71, + "char_count": 406 + }, + "has_embedding": false + }, + { + "content": "rage two MNIST digit-recognition models3 trained from different initial conditions (Figure 1, left). For this figure, the parent models $w$ and $w ^ { \\prime }$ were each trained on non-overlapping IID samples of 600 examples from the MNIST training set. Training was via SGD with a fixed learning rate of 0.1 for 240 updates on minibatches of size 50 (or $E = 2 0$ passes over the mini-datasets of size 600). This is approximately the amount of training where the models begin to overfit their local datasets.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 63, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0063", + "start_position": 25758, + "end_position": 26268, + "page_index": 5, + "word_count": 88, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "This is approximately the amount of training where the models begin to overfit their local datasets. Recent work indicates that in practice, the loss surfaces of sufficiently over-parameterized NNs are surprisingly wellbehaved and in particular less prone to bad local minima than previously thought [11, 17, 9].", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 64, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0064", + "start_position": 26268, + "end_position": 26580, + "page_index": 5, + "word_count": 47, + "char_count": 312 + }, + "has_embedding": false + }, + { + "content": "ly wellbehaved and in particular less prone to bad local minima than previously thought [11, 17, 9]. And indeed, when we start two models from the same random initialization and then again train each independently on a different subset of the data (as described above), we find that naive parameter averaging works surprisingly well (Figure 1, right): the average of these two models, $\\scriptstyle { \\frac { 1 } { 2 } } w + { \\frac { 1 } { 2 } } w ^ { \\prime }$ , achieves significantly lower loss on the full MNIST training set than the best model achieved by training on either of the small datasets independently.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 65, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0065", + "start_position": 26580, + "end_position": 27197, + "page_index": 5, + "word_count": 114, + "char_count": 617 + }, + "has_embedding": false + }, + { + "content": "training set than the best model achieved by training on either of the small datasets independently. While Figure 1 starts from a random initialization, note a shared starting model $w _ { t }$ is used for each round of FedAvg, and so the same intuition applies.
Algorithm 1 FederatedAveraging. The K clients are indexed by k; B is the local minibatch size, E is the number of local epochs, and η is the learning rate.
Server executes: initialize wo for each round t = 1, 2, . ..", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 66, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0066", + "start_position": 27197, + "end_position": 27708, + "page_index": 5, + "word_count": 88, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": ".. do m ← max(C · K, 1)
St ← (random set of m clients) for each client k ∈ St in parallel do
nk ,k /I Erratum4 mt mt ← ∑k∈St $nk +1 ωt+1 ← ∑k∈St 1
ClientUpdate(k, w): // Run on client k B ← (split Pk into batches of size B) for each local epoch i from 1 to E do for batch b ∈ B do ω ← ω − η∇(ω; b) return w to server
# 3 Experimental Results", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 67, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0067", + "start_position": 27708, + "end_position": 28118, + "page_index": 5, + "word_count": 81, + "char_count": 410 + }, + "has_embedding": false + }, + { + "content": "do for batch b ∈ B do ω ← ω − η∇(ω; b) return w to server # 3 Experimental Results We are motivated by both image classification and language modeling tasks where good models can greatly enhance the usability of mobile devices. For each of these tasks we first picked a proxy dataset of modest enough size that we could thoroughly investigate the hyperparameters of the FedAvg algorithm.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 68, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0068", + "start_position": 28118, + "end_position": 28523, + "page_index": 5, + "word_count": 69, + "char_count": 405 + }, + "has_embedding": false + }, + { + "content": "modest enough size that we could thoroughly investigate the hyperparameters of the FedAvg algorithm. While each individual training run is relatively small, we trained over 2000 individual models for these experiments. We then present results on the benchmark CIFAR-10 image classification task. Finally, to demonstrate the effectiveness of FedAvg on a real-world problem with a natural partitioning of the data over clients, we evaluate on a large language modeling task.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 69, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0069", + "start_position": 28523, + "end_position": 28995, + "page_index": 5, + "word_count": 70, + "char_count": 472 + }, + "has_embedding": false + }, + { + "content": "with a natural partitioning of the data over clients, we evaluate on a large language modeling task. Our initial study includes three model families on two datasets. The first two are for the MNIST digit recognition task [26]: 1) A simple multilayer-perceptron with 2-hidden layers with 200 units each using ReLu activations (199,210 total parameters), which we refer to as the MNIST 2NN.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 70, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0070", + "start_position": 28995, + "end_position": 29383, + "page_index": 5, + "word_count": 63, + "char_count": 388 + }, + "has_embedding": false + }, + { + "content": "00 units each using ReLu activations (199,210 total parameters), which we refer to as the MNIST 2NN. 2) A CNN with two 5x5 convolution layers (the first with 32 channels, the second with 64, each followed with $2 \\mathbf { x } 2$ max pooling), a fully connected layer with 512 units and ReLu activation, and a final softmax output layer (1,663,370 total parameters). To study federated optimization, we also need to specify how the data is distributed over the clients.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 71, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0071", + "start_position": 29383, + "end_position": 29852, + "page_index": 5, + "word_count": 81, + "char_count": 469 + }, + "has_embedding": false + }, + { + "content": "study federated optimization, we also need to specify how the data is distributed over the clients. We study two ways of partitioning the MNIST data over clients: IID, where the data is shuffled, and then partitioned into 100 clients each receiving 600 examples, and Non-IID, where we first sort the data by digit label, divide it into 200 shards of size 300, and assign each of 100 clients 2 shards.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 72, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0072", + "start_position": 29852, + "end_position": 30252, + "page_index": 6, + "word_count": 70, + "char_count": 400 + }, + "has_embedding": false + }, + { + "content": "data by digit label, divide it into 200 shards of size 300, and assign each of 100 clients 2 shards. This is a pathological non-IID partition of the data, as most clients will only have examples of two digits, letting us explore the degree to which our algorithms will break on highly non-IID data. Both of these partitions are balanced, however.5 For language modeling, we built a dataset from The Complete Works of William Shakespeare [32].", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 73, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0073", + "start_position": 30252, + "end_position": 30694, + "page_index": 6, + "word_count": 76, + "char_count": 442 + }, + "has_embedding": false + }, + { + "content": "ver.5 For language modeling, we built a dataset from The Complete Works of William Shakespeare [32]. We construct a client dataset for each speaking role in each play with at least two lines. This produced a dataset with 1146 clients. For each client, we split the data into a set of training lines (the first $80 \\%$ of lines for the role), and test lines (the last $20 \\%$ , rounded up to at least one line).", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 74, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0074", + "start_position": 30694, + "end_position": 31104, + "page_index": 6, + "word_count": 77, + "char_count": 410 + }, + "has_embedding": false + }, + { + "content": "$80 \\%$ of lines for the role), and test lines (the last $20 \\%$ , rounded up to at least one line). The resulting dataset has 3,564,579 characters in the training set, and 870,014 characters6 in the test set. This data is substantially unbalanced, with many roles having only a few lines, and a few with a large number of lines. Further, observe the test set is not a random sample of lines, but is temporally separated by the chronology of each play.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 75, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0075", + "start_position": 31104, + "end_position": 31556, + "page_index": 6, + "word_count": 83, + "char_count": 452 + }, + "has_embedding": false + }, + { + "content": "est set is not a random sample of lines, but is temporally separated by the chronology of each play. Using an identical train/test split, we also form a balanced and IID version of the dataset, also with 1146 clients. On this data we train a stacked character-level LSTM language model, which after reading each character in a line, predicts the next character [22]. The model takes a series of characters as input and embeds each of these into a learned 8 dimensional space.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 76, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0076", + "start_position": 31556, + "end_position": 32031, + "page_index": 6, + "word_count": 83, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": "l takes a series of characters as input and embeds each of these into a learned 8 dimensional space. The embedded characters are then processed through 2 LSTM layers, each with 256 nodes. Finally the output of the second LSTM layer is sent to a softmax output layer with one node per character. The full model has 866,578 parameters, and we trained using an unroll length of 80 characters. SGD is sensitive to the tuning of the learning-rate parameter $\\eta$ .", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 77, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0077", + "start_position": 32031, + "end_position": 32491, + "page_index": 6, + "word_count": 81, + "char_count": 460 + }, + "has_embedding": false + }, + { + "content": "SGD is sensitive to the tuning of the learning-rate parameter $\\eta$ . The results reported here are based on training over a sufficiently wide grid of learning rates (typically 11-13 values for $\\eta$ on a multiplicative grid of resolution $1 0 ^ { \\frac { 1 } { 3 } }$ or $1 0 ^ { \\frac { 1 } { 6 } }$ ). We checked to ensure the best learning rates were in the middle of our grids, and that there was not a significant difference between the best learning rates.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 78, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0078", + "start_position": 32491, + "end_position": 32956, + "page_index": 7, + "word_count": 93, + "char_count": 465 + }, + "has_embedding": false + }, + { + "content": "iddle of our grids, and that there was not a significant difference between the best learning rates. Unless otherwise noted, we plot metrics for the best performing rate selected individually for each $x$ -axis value. We find that the optimal learning rates do not vary too much as a function of the other parameters. Increasing parallelism We first experiment with the client fraction $C$ , which controls the amount of multi-client parallelism. Table 1 shows the impact of varying $C$ for both MNIST models.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 79, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0079", + "start_position": 32956, + "end_position": 33465, + "page_index": 7, + "word_count": 84, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "Table 1 shows the impact of varying $C$ for both MNIST models. We report the number of communication rounds necessary to achieve a target test-set accuracy. To compute this, we construct a learning curve for each combination of parameter settings, optimizing $\\eta$ as described above and then making each curve monotonically improving by taking the best value of test-set accuracy achieved over Table 1: Effect of the client fraction $C$ on the MNIST 2NN with $E = 1$ and CNN with $E = 5$ . Note $C = 0 .", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 80, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0080", + "start_position": 33465, + "end_position": 33970, + "page_index": 7, + "word_count": 90, + "char_count": 505 + }, + "has_embedding": false + }, + { + "content": "Note $C = 0 . 0$ corresponds to one client per round; since we use 100 clients for the MNIST data, the rows correspond to 1, 10 20, 50, and 100 clients. Each table entry gives the number of rounds of communication necessary to achieve a test-set accuracy of $9 7 \\%$ for the 2NN and $9 9 \\%$ for the CNN, along with the speedup relative to the $C = 0$ baseline. Five runs with the large batch size did not reach the target accuracy in the allowed time.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 81, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0081", + "start_position": 33970, + "end_position": 34422, + "page_index": 7, + "word_count": 90, + "char_count": 452 + }, + "has_embedding": false + }, + { + "content": "Five runs with the large batch size did not reach the target accuracy in the allowed time.
2NN CIID-NON-IID.
B=∞B = 10B = ∞B = 10
0.0145531642783275
0.11474(1.0×)87 (3.6×)1796 (2.4×)664(4.9×)
0.2 1658 (0.9×)77(4.1×)1528 (2.8×)619 (5.3×)
0.5(1)75 (4.2×)()443 (7.4×)
1.0(—)70(4.5×)(—)380(8.6×)
CNN, E = 5
0.0387501181956
0.1339 (1.1×)18(2.8×)1100 (1.1×)206 (4.6×)
0.2337 (1.1×)18 (2.8×)978 (1.2×)200(4.8×)
0.5164(2.4×)18 (2.8×)1067 (1.1×)261 (3.7×)
1.0246(1.6×)16(3.1×)(—)97(9.9×)
", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 82, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0082", + "start_position": 34422, + "end_position": 35590, + "page_index": 7, + "word_count": 49, + "char_count": 1168 + }, + "has_embedding": false + }, + { + "content": "d>1.0246(1.6×)16(3.1×)(—)97(9.9×) all prior rounds. We then calculate the number of rounds where the curve crosses the target accuracy, using linear interpolation between the discrete points forming the curve. This is perhaps best understood by reference to Figure 2, where the gray lines show the targets.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 83, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0083", + "start_position": 35590, + "end_position": 35963, + "page_index": 7, + "word_count": 45, + "char_count": 373 + }, + "has_embedding": false + }, + { + "content": "This is perhaps best understood by reference to Figure 2, where the gray lines show the targets. With $B = \\infty$ (for MNIST processing all 600 client examples as a single batch per round), there is only a small advantage in increasing the client fraction. Using the smaller batch size $B = 1 0$ shows a significant improvement in using $C \\geq 0 . 1$ , especially in the non-IID case. Based on these results, for most of the remainder of our experiments we fix $C = 0 .", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 84, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0084", + "start_position": 35963, + "end_position": 36434, + "page_index": 8, + "word_count": 89, + "char_count": 471 + }, + "has_embedding": false + }, + { + "content": "Based on these results, for most of the remainder of our experiments we fix $C = 0 . 1$ , which strikes a good balance between computational efficiency and convergence rate. Comparing the number of rounds for the $B = \\infty$ and $B = 1 0$ columns in Table 1 shows a dramatic speedup, which we investigate next. Increasing computation per client In this section, we fix $C = 0 . 1$ , and add more computation per client on each round, either decreasing $B$ , increasing $E$ , or both.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 85, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0085", + "start_position": 36434, + "end_position": 36918, + "page_index": 8, + "word_count": 91, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "and add more computation per client on each round, either decreasing $B$ , increasing $E$ , or both. Figure 2 demonstrates that adding more local SGD updates per round can produce a dramatic decrease in communication costs, and Table 2 quantifies these speedups. The expected number of updates per client per round is $u \\ = \\ ( \\mathbb { E } [ n _ { k } ] / B ) E \\ =$ $n E / ( K B )$ , where the expectation is over the draw of a random client $k$ .", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 86, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0086", + "start_position": 36918, + "end_position": 37369, + "page_index": 8, + "word_count": 96, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "k } ] / B ) E \\ =$ $n E / ( K B )$ , where the expectation is over the draw of a random client $k$ . We order the rows in each section of Table 2 by this statistic. We see that increasing $u$ by varying both $E$ and $B$ is effective. As long as $B$ is large enough to take full advantage of available parallelism on the client hardware, there is essentially no cost in computation time for lowering it, and so in practice this should be the first parameter tuned.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 87, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0087", + "start_position": 37369, + "end_position": 37832, + "page_index": 8, + "word_count": 96, + "char_count": 463 + }, + "has_embedding": false + }, + { + "content": "st in computation time for lowering it, and so in practice this should be the first parameter tuned. Table 2: Number of communication rounds to reach a target accuracy for FedAvg, versus FedSGD (first row, $E = 1$ and $B = \\infty$ ). The $u$ column gives $u = E n / ( K B )$ , the expected number of updates per round.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 88, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0088", + "start_position": 37832, + "end_position": 38150, + "page_index": 8, + "word_count": 64, + "char_count": 318 + }, + "has_embedding": false + }, + { + "content": "The $u$ column gives $u = E n / ( K B )$ , the expected number of updates per round.
MNIST CNN, 99% AcCURAcY
CNNEBuIIDNON-IID
FEDSGD181626483
FEDAVG585179 (3.5×)1000(0.5×)
FEDAVG1501265 (9.6×)600(0.8×)
FEDAVG20820234 (2.7×)672(0.7×)
FEDAVG1106034(18.4×)350(1.4×)
FEDAVG5506029 (21.6×)334(1.4×)
FEDAVG205024032(19.6×)426(1.1):
FEDAVG51030020(31.3×)229(2.1×)
FEDAVG2010120018(34.8×)173(2.8×)
SHAKESPEArE LSTM, 54% AccURAcY
LSTMEBuIIDNON-IID
FEDSGD181.024883906
FEDAVG1501.51635(1.5×) (4.1×)549(7.1×)
FEDAVG585.0613597(6.5×)
FEDAVG1107.4460 (5.4×)164(23.8×)
FEDAVG5507.4401 (6.2×)152(25.7×)
FEDAVG51037.1192(13.0×)41(95.3×)
", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 89, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0089", + "start_position": 38150, + "end_position": 40054, + "page_index": 8, + "word_count": 38, + "char_count": 1904 + }, + "has_embedding": false + }, + { + "content": "VG51037.1192(13.0×)41(95.3×) For the IID partition of the MNIST data, using more computation per client decreases the number of rounds to reach the target accuracy by $3 5 \\times$ for the CNN and $4 6 \\times$ for the 2NN (see Table 4 in Appendix A for details for the 2NN). The speedups for the pathologically partitioned non-IID data are smaller, but still substantial $( 2 . 8 - 3 . 7 \\times )$ .", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 90, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0090", + "start_position": 40054, + "end_position": 40524, + "page_index": 8, + "word_count": 73, + "char_count": 470 + }, + "has_embedding": false + }, + { + "content": "7 \\times )$ . It is impressive that averaging provides any advantage (vs. actually diverging) when we naively average the parameters of models trained on entirely different pairs of digits. Thus, we view this as strong evidence for the robustness of this approach. The unbalanced and non-IID distribution of the Shakespeare (by role in the play) is much more representative of the kind of data distribution we expect for real-world applications.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 91, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0091", + "start_position": 40524, + "end_position": 40969, + "page_index": 8, + "word_count": 71, + "char_count": 445 + }, + "has_embedding": false + }, + { + "content": "is much more representative of the kind of data distribution we expect for real-world applications. Encouragingly, for this problem learning on the non-IID and unbalanced data is actually much easier (a $9 5 \\times$ speedup vs $1 3 \\times$ for the balanced IID data); we conjecture this is largely due to the fact some roles have relatively large local datasets, which makes increased local training particularly valuable.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 92, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0092", + "start_position": 40969, + "end_position": 41391, + "page_index": 8, + "word_count": 67, + "char_count": 422 + }, + "has_embedding": false + }, + { + "content": "es have relatively large local datasets, which makes increased local training particularly valuable. For all three model classes, FedAvg converges to a higher level of test-set accuracy than the baseline FedSGD models. This trend continues even if the lines are extended beyond the plotted ranges. For example, for the CNN the $B = \\infty , E = 1$ FedSGD model eventually reaches $9 9 .", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 93, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0093", + "start_position": 41391, + "end_position": 41777, + "page_index": 8, + "word_count": 65, + "char_count": 386 + }, + "has_embedding": false + }, + { + "content": "For example, for the CNN the $B = \\infty , E = 1$ FedSGD model eventually reaches $9 9 . 2 2 \\%$ accuracy after 1200 rounds (and had not improved further after 6000 rounds), while the $B = 1 0 , E = 2 0$ FedAvg model reaches an accuracy of $9 9 . 4 4 \\%$ after 300 rounds. We conjecture that in addition to lowering communication costs, model averaging produces a regularization benefit similar to that achieved by dropout [36].", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 94, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0094", + "start_position": 41777, + "end_position": 42205, + "page_index": 8, + "word_count": 83, + "char_count": 428 + }, + "has_embedding": false + }, + { + "content": "n costs, model averaging produces a regularization benefit similar to that achieved by dropout [36]. We are primarily concerned with generalization performance, but FedAvg is effective at optimizing the training loss as well, even beyond the point where test-set accuracy plateaus. We observed similar behavior for all three model classes, and present plots for the MNIST CNN in Figure 6", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 95, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0095", + "start_position": 42205, + "end_position": 42592, + "page_index": 8, + "word_count": 60, + "char_count": 387 + }, + "has_embedding": false + }, + { + "content": "served similar behavior for all three model classes, and present plots for the MNIST CNN in Figure 6 [IMAGE]\nFigure 2: Test set accuracy vs. communication rounds for the MNIST CNN (IID and then pathological non-IID) and Shakespeare LSTM (IID and then by Play&Role) with $C = 0 . 1$ and optimized $\\eta$ . The gray lines show the target accuracies used in Table 2. Plots for the 2NN are given as Figure 7 in Appendix A. in Appendix A. Can we over-optimize on the client datasets?", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 96, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0096", + "start_position": 42592, + "end_position": 43070, + "page_index": 8, + "word_count": 87, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "Can we over-optimize on the client datasets? The current model parameters only influence the optimization performed in each ClientUpdate via initialization. Thus, as $E \\infty$ , at least for a convex problem eventually the initial conditions should be irrelevant, and the global minimum would be reached regardless of initialization. Even for a non-convex problem, one might conjecture the algorithm would converge to the same local minimum as long as the initialization was in the same basin.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 97, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0097", + "start_position": 43070, + "end_position": 43564, + "page_index": 8, + "word_count": 76, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "orithm would converge to the same local minimum as long as the initialization was in the same basin. That is, we would expect that while one round of averaging might produce a reasonable model, additional rounds of communication (and averaging) would not produce further improvements. Figure 3 shows the impact of large $E$ during initial training on the Shakespeare LSTM problem.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 98, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0098", + "start_position": 43564, + "end_position": 43944, + "page_index": 10, + "word_count": 61, + "char_count": 380 + }, + "has_embedding": false + }, + { + "content": "Figure 3 shows the impact of large $E$ during initial training on the Shakespeare LSTM problem. Indeed, for very large numbers of local epochs, FedAvg can plateau or diverge.7 This result suggests that for some models, especially in the later stages of convergence, it may be useful to decay the amount of local computation per round (moving to smaller $E$ or larger $B$ ) in the same way decaying learning rates can be useful. Figure 8 in Appendix A gives the analogous experiment for the MNIST CNN.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 99, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0099", + "start_position": 43944, + "end_position": 44444, + "page_index": 10, + "word_count": 87, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "Figure 8 in Appendix A gives the analogous experiment for the MNIST CNN. Interestingly, for this model we see no significant degradation in the convergence rate for large values of $E$ . However, we see slightly better performance for $E = 1$ versus $E = 5$ for the large-scale language modeling task described below (see Figure 10 in Appendix A). [IMAGE]\nFigure 3: The effect of training for many local epochs (large $E$ ) between averaging steps, fixing $B = 1 0$ and $C = 0 .", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 100, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0100", + "start_position": 44444, + "end_position": 44922, + "page_index": 10, + "word_count": 87, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "f training for many local epochs (large $E$ ) between averaging steps, fixing $B = 1 0$ and $C = 0 . 1$ for the Shakespeare LSTM with a fixed learning rate $\\eta = 1 . 4 7$ . [IMAGE]\nFigure 4: Test accuracy versus communication for the CIFAR10 experiments. FedSGD uses a learning-rate decay of 0.9934 per round; FedAvg uses $B = 5 0$ , learning-rate decay of 0.99 per round, and $E = 5$ . CIFAR experiments We also ran experiments on the CIFAR-10 dataset [24] to further validate FedAvg.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 101, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0101", + "start_position": 50032, + "end_position": 50519, + "page_index": 10, + "word_count": 92, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": ". CIFAR experiments We also ran experiments on the CIFAR-10 dataset [24] to further validate FedAvg. The dataset consists of 10 classes of $3 2 \\mathbf { x } 3 2$ images with three RGB channels. There are 50,000 training examples and 10,000 testing examples, which we partitioned into 100 clients each containing 500 training and 100 testing examples; since there isn’t a natural user partitioning of this data, we considered the balanced and IID setting.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 102, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0102", + "start_position": 50519, + "end_position": 50974, + "page_index": 10, + "word_count": 76, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "ce there isn’t a natural user partitioning of this data, we considered the balanced and IID setting. The model architecture was taken from the TensorFlow tutorial [38], which consists of two convolutional layers followed by two fully connected layers and then a linear transformation layer to produce logits, for a total of about $1 0 ^ { 6 }$ parameters. Note that state-of-the-art approaches have achieved a test accuracy of $9 6 .", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 103, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0103", + "start_position": 50974, + "end_position": 51407, + "page_index": 10, + "word_count": 73, + "char_count": 433 + }, + "has_embedding": false + }, + { + "content": "Note that state-of-the-art approaches have achieved a test accuracy of $9 6 . 5 \\%$ [19] for CIFAR; nevertheless, the standard model we use is sufficient for our needs, as our goal is to evaluate our optimization method, not achieve the best possible accuracy on this task. The images are preprocessed as part of the training input pipeline, which consists of cropping the images to 24x24, randomly flipping left-right and adjusting the contrast, brightness and whitening.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 104, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0104", + "start_position": 51407, + "end_position": 51879, + "page_index": 10, + "word_count": 76, + "char_count": 472 + }, + "has_embedding": false + }, + { + "content": "images to 24x24, randomly flipping left-right and adjusting the contrast, brightness and whitening. Table 3: Number of rounds and speedup relative to baseline SGD to reach a target test-set accuracy on CIFAR10. SGD used a minibatch size of 100. FedSGD and FedAvg used $C = 0 . 1$ , with FedAvg using $E = 5$ and $B = 5 0$ .", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 105, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0105", + "start_position": 51879, + "end_position": 52202, + "page_index": 10, + "word_count": 61, + "char_count": 323 + }, + "has_embedding": false + }, + { + "content": "1$ , with FedAvg using $E = 5$ and $B = 5 0$ .
ACC.80%82%85%
SGD18000(—)31000(—)99000(一)
FEDSGD3750(4.8×)6600(4.7×)N/A-)
FEDAVG280(64.3×)630(49.2×)2000(49.5×)
", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 106, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0106", + "start_position": 52202, + "end_position": 52669, + "page_index": 10, + "word_count": 18, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "d>280(64.3×)630(49.2×)2000(49.5×) For these experiments, we considered an additional baseline, standard SGD training on the full training set (no user partitioning), using minibatches of size 100. We achieved an $86 \\%$ test accuracy after 197,500 minibatch updates (each minibatch update requires a communication round in the federated setting). FedAvg achieves a similar test accuracy of $85 \\%$ after only 2,000 communication rounds.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 107, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0107", + "start_position": 52669, + "end_position": 53172, + "page_index": 10, + "word_count": 61, + "char_count": 503 + }, + "has_embedding": false + }, + { + "content": "FedAvg achieves a similar test accuracy of $85 \\%$ after only 2,000 communication rounds. For all algorithms, we tuned a learning-rate decay parameter in addition to the initial learning rate. Table 3 gives the number of communication rounds for baseline SGD, FedSGD, and FedAvg to reach three different accuracy targets, and Figure 4 gives learning-rate curves for FedAvg versus FedSGD.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 108, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0108", + "start_position": 53172, + "end_position": 53559, + "page_index": 10, + "word_count": 60, + "char_count": 387 + }, + "has_embedding": false + }, + { + "content": "three different accuracy targets, and Figure 4 gives learning-rate curves for FedAvg versus FedSGD. By running experiments with minibatches of size $B = 5 0$ for both SGD and FedAvg, we can also look at accuracy as a function of the number of such minibatch gradient calculations. We expect SGD to do better here, because a sequential step is taken after each minibatch computation.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 109, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0109", + "start_position": 53559, + "end_position": 53941, + "page_index": 10, + "word_count": 64, + "char_count": 382 + }, + "has_embedding": false + }, + { + "content": "e expect SGD to do better here, because a sequential step is taken after each minibatch computation. However, as Figure 9 in the appendix shows, for modest values of $C$ and $E$ , FedAvg makes a similar amount of progress per minibatch computation. Further, we see that both standard SGD and FedAvg with only one client per round $\\left( C = 0 \\right)$ ), demonstrate significant oscillations in accuracy, whereas averaging over more clients smooths this out.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 110, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0110", + "start_position": 53941, + "end_position": 54400, + "page_index": 10, + "word_count": 77, + "char_count": 459 + }, + "has_embedding": false + }, + { + "content": "onstrate significant oscillations in accuracy, whereas averaging over more clients smooths this out. Large-scale LSTM experiments We ran experiments on a large-scale next-word prediction task to demonstrate the effectiveness of our approach on a real-world problem. Our training dataset consists 10 million public posts from a large social network. We grouped the posts by author, for a total of over 500,000 clients.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 111, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0111", + "start_position": 54400, + "end_position": 54817, + "page_index": 10, + "word_count": 62, + "char_count": 417 + }, + "has_embedding": false + }, + { + "content": "We grouped the posts by author, for a total of over 500,000 clients. This dataset is a realistic proxy for the type of text entry data that would be present on a user’s mobile device. We limited each client dataset to at most 5000 words, and report accuracy (the fraction of the data where the highest predicted probability was on the correct next word, out of 10000 possibilities) on a test set of 1e5 posts from different (non-training) authors. Our model is a 256 node LSTM on a vocabulary of 10,000 words.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 112, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0112", + "start_position": 54817, + "end_position": 55326, + "page_index": 10, + "word_count": 92, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "Our model is a 256 node LSTM on a vocabulary of 10,000 words. The input and output embeddings for each word were of dimension 192, and co-trained with the model; there are 4,950,544 parameters in all. We used an unroll of 10 words. [IMAGE]\nFigure 5: Monotonic learning curves for the large-scale language model word LSTM.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 113, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0113", + "start_position": 55326, + "end_position": 55647, + "page_index": 10, + "word_count": 56, + "char_count": 321 + }, + "has_embedding": false + }, + { + "content": "[IMAGE]\nFigure 5: Monotonic learning curves for the large-scale language model word LSTM. These experiments required significant computational resources and so we did not explore hyper-parameters as thoroughly: all runs trained on 200 clients per round; FedAvg used $B = 8$ and $E = 1$ . We explored a variety of learning rates for FedAvg and the baseline FedSGD. Figure 5 shows monotonic learning curves for the best learning rates. FedSGD with $\\eta = 1 8 . 0$ required 820 rounds to reach $10 .", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 114, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0114", + "start_position": 55647, + "end_position": 56144, + "page_index": 10, + "word_count": 85, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "0$ required 820 rounds to reach $10 . 5 \\%$ accuracy, while FedAvg with $\\eta = 9 . 0$ reached an accuracy of $10 . 5 \\%$ in only 35 communication rounds $2 3 \\times$ fewer then FedSGD). We observed lower variance in test accuracy for FedAvg, see Figure 10 in Appendix A. This figure also include results for $E = 5$ , which performed slightly worse than $E = 1$ . # 4 Conclusions and Future Work", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 115, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0115", + "start_position": 56144, + "end_position": 56540, + "page_index": 10, + "word_count": 78, + "char_count": 396 + }, + "has_embedding": false + }, + { + "content": "# 4 Conclusions and Future Work Our experiments show that federated learning can be made practical, as FedAvg trains high-quality models using relatively few rounds of communication, as demonstrated by results on a variety of model architectures: a multi-layer perceptron, two different convolutional NNs, a two-layer character LSTM, and a large-scale word-level LSTM.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 116, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0116", + "start_position": 56540, + "end_position": 56908, + "page_index": 10, + "word_count": 53, + "char_count": 368 + }, + "has_embedding": false + }, + { + "content": "ron, two different convolutional NNs, a two-layer character LSTM, and a large-scale word-level LSTM. While federated learning offers many practical privacy benefits, providing stronger guarantees via differential privacy [14, 13, 1], secure multi-party computation [18], or their combination is an interesting direction for future work. Note that both classes of techniques apply most naturally to synchronous algorithms like FedAvg.8", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 117, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0117", + "start_position": 56908, + "end_position": 57342, + "page_index": 10, + "word_count": 59, + "char_count": 434 + }, + "has_embedding": false + }, + { + "content": "Note that both classes of techniques apply most naturally to synchronous algorithms like FedAvg.8 References \n[1] Martin Abadi, Andy Chu, Ian Goodfellow, Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In 23rd ACM Conference on Computer and Communications Security (ACM CCS), 2016. [2] Monica Anderson. Technology device ownership: 2015. http://www. pewinternet.org/2015/10/29/ technology-device-ownership-2015/, 2015. [3] Yossi Arjevani and Ohad Shamir.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 118, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0118", + "start_position": 57342, + "end_position": 57848, + "page_index": 10, + "word_count": 65, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "[3] Yossi Arjevani and Ohad Shamir. Communication complexity of distributed convex learning and optimization. In Advances in Neural Information Processing Systems 28. 2015. [4] Maria-Florina Balcan, Avrim Blum, Shai Fine, and Yishay Mansour. Distributed learning, communication complexity and privacy. arXiv preprint arXiv:1204.3514, 2012. [5] Yoshua Bengio, Rejean Ducharme, Pascal Vincent, ´ and Christian Janvin. A neural probabilistic language model. J. Mach. Learn. Res., 2003.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 119, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0119", + "start_position": 57848, + "end_position": 58330, + "page_index": 10, + "word_count": 64, + "char_count": 482 + }, + "has_embedding": false + }, + { + "content": "Res., 2003. [6] Keith Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone, H. Brendan McMahan, Sarvar Patel, Daniel Ramage, Aaron Segal, and Karn Seth. Practical secure aggregation for federated learning on user-held data. In NIPS Workshop on Private Multi-Party Machine Learning, 2016. [7] David L. Chaum. Untraceable electronic mail, return addresses, and digital pseudonyms. Commun. ACM, 24(2), 1981. [8] Jianmin Chen, Rajat Monga, Samy Bengio, and Rafal Jozefowicz.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 120, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0120", + "start_position": 58330, + "end_position": 58805, + "page_index": 10, + "word_count": 67, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": "[8] Jianmin Chen, Rajat Monga, Samy Bengio, and Rafal Jozefowicz. Revisiting distributed synchronous sgd. In ICLR Workshop Track, 2016. [9] Anna Choromanska, Mikael Henaff, Michael Mathieu, ¨ Gerard Ben Arous, and Yann LeCun. The loss surfaces ´ of multilayer networks. In AISTATS, 2015. [10] Greg Corrado. Computer, respond to this email. http:// googleresearch.blogspot.com/2015/ 11/computer-respond-to-this-email. html, November 2015. [11] Yann N.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 121, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0121", + "start_position": 58805, + "end_position": 59255, + "page_index": 10, + "word_count": 60, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "[11] Yann N. Dauphin, Razvan Pascanu, C¸ aglar Gul¨ c¸ehre, KyungHyun Cho, Surya Ganguli, and Yoshua Bengio. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. In NIPS, 2014. [12] Jeffrey Dean, Greg S. Corrado, Rajat Monga, Kai Chen, Matthieu Devin, Quoc V. Le, Mark Z. Mao, Marc’Aurelio Ranzato, Andrew Senior, Paul Tucker, Ke Yang, and Andrew Y. Ng. Large scale distributed deep networks. In NIPS, 2012. [13] John Duchi, Michael I. Jordan, and Martin J. Wainwright.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 122, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0122", + "start_position": 59255, + "end_position": 59767, + "page_index": 10, + "word_count": 79, + "char_count": 512 + }, + "has_embedding": false + }, + { + "content": "Wainwright. Privacy aware learning. Journal of the Association for Computing Machinery, 2014. [14] Cynthia Dwork and Aaron Roth. The Algorithmic Foundations of Differential Privacy. Foundations and Trends in Theoretical Computer Science. Now Publishers, 2014. [15] Olivier Fercoq, Zheng Qu, Peter Richtarik, and Martin ´ Takac. Fast distributed coordinate descent for non- ´ strongly convex losses. In Machine Learning for Signal Processing (MLSP), 2014 IEEE International Workshop on, 2014.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 123, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0123", + "start_position": 59767, + "end_position": 60258, + "page_index": 10, + "word_count": 68, + "char_count": 491 + }, + "has_embedding": false + }, + { + "content": "In Machine Learning for Signal Processing (MLSP), 2014 IEEE International Workshop on, 2014. [16] Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep learning. Book in preparation for MIT Press, 2016. [17] Ian J. Goodfellow, Oriol Vinyals, and Andrew M. Saxe. Qualitatively characterizing neural network optimization problems. In ICLR, 2015. [18] Slawomir Goryczka, Li Xiong, and Vaidy Sunderam. Secure multiparty aggregation with differential privacy: A comparative study.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 124, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0124", + "start_position": 60258, + "end_position": 60736, + "page_index": 10, + "word_count": 66, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "Secure multiparty aggregation with differential privacy: A comparative study. In Proceedings of the Joint EDBT/ICDT 2013 Workshops, 2013. [19] Benjamin Graham. Fractional max-pooling. CoRR, abs/1412.6071, 2014. URL http://arxiv.org/ abs/1412.6071. [20] Sepp Hochreiter and Jurgen Schmidhuber. Long short- ¨ term memory. Neural Computation, 9(8), November 1997. [21] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 125, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0125", + "start_position": 60736, + "end_position": 61246, + "page_index": 10, + "word_count": 65, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "In ICML, 2015. [22] Yoon Kim, Yacine Jernite, David Sontag, and Alexander M. Rush. Character-aware neural language models. CoRR, abs/1508.06615, 2015. [23] Jakub Konecnˇ y, H. Brendan McMahan, Felix X. Yu, ´ Peter Richtarik, Ananda Theertha Suresh, and Dave Bacon. Federated learning: Strategies for improving communication efficiency. In NIPS Workshop on Private Multi-Party Machine Learning, 2016. [24] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 126, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0126", + "start_position": 61246, + "end_position": 61746, + "page_index": 10, + "word_count": 70, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "Technical report, 2009. [25] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS. 2012. [26] Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11), 1998. [27] Chenxin Ma, Virginia Smith, Martin Jaggi, Michael I Jordan, Peter Richtarik, and Martin Tak ´ a´c. Adding vs. ˇ averaging in distributed primal-dual optimization. In ICML, 2015.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 127, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0127", + "start_position": 61746, + "end_position": 62243, + "page_index": 10, + "word_count": 72, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "In ICML, 2015. [43] Yuchen Zhang and Lin Xiao. Communication-efficient distributed optimization of self-concordant empirical loss. arXiv preprint arXiv:1501.00263, 2015. [44] Yuchen Zhang, Martin J Wainwright, and John C Duchi. Communication-efficient algorithms for statistical optimization. In NIPS, 2012. [45] Yuchen Zhang, John Duchi, Michael I Jordan, and Martin J Wainwright. Information-theoretic lower bounds for distributed statistical estimation with communication constraints.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 128, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0128", + "start_position": 62243, + "end_position": 62730, + "page_index": 10, + "word_count": 60, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "mation-theoretic lower bounds for distributed statistical estimation with communication constraints. In Advances in Neural Information Processing Systems, 2013. [46] Martin Zinkevich, Markus Weimer, Lihong Li, and Alex J. Smola. Parallelized stochastic gradient descent. In NIPS. 2010. [28] Ryan McDonald, Keith Hall, and Gideon Mann. Distributed training strategies for the structured perceptron. In NAACL HLT, 2010.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 129, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0129", + "start_position": 62730, + "end_position": 63147, + "page_index": 10, + "word_count": 55, + "char_count": 417 + }, + "has_embedding": false + }, + { + "content": "In NAACL HLT, 2010. [29] Natalia Neverova, Christian Wolf, Griffin Lacey, Lex Fridman, Deepak Chandra, Brandon Barbello, and Graham W. Taylor. Learning human identity from motion patterns. IEEE Access, 4:1810–1820, 2016. [30] Jacob Poushter. Smartphone ownership and internet usage continues to climb in emerging economies. Pew Research Center Report, 2016. [31] Daniel Povey, Xiaohui Zhang, and Sanjeev Khudanpur. Parallel training of deep neural networks with natural gradient and parameter averaging.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 130, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0130", + "start_position": 63147, + "end_position": 63650, + "page_index": 10, + "word_count": 70, + "char_count": 503 + }, + "has_embedding": false + }, + { + "content": "Parallel training of deep neural networks with natural gradient and parameter averaging. In ICLR Workshop Track, 2015. [32] William Shakespeare. The Complete Works of William Shakespeare. Publically available at https: //www.gutenberg.org/ebooks/100. [33] Ohad Shamir and Nathan Srebro. Distributed stochastic optimization and learning. In Communication, Control, and Computing (Allerton), 2014. [34] Ohad Shamir, Nathan Srebro, and Tong Zhang.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 131, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0131", + "start_position": 63650, + "end_position": 64094, + "page_index": 10, + "word_count": 57, + "char_count": 444 + }, + "has_embedding": false + }, + { + "content": "[34] Ohad Shamir, Nathan Srebro, and Tong Zhang. Communication efficient distributed optimization using an approximate newton-type method. arXiv preprint arXiv:1312.7853, 2013. [35] Reza Shokri and Vitaly Shmatikov. Privacy-preserving deep learning. In Proceedings of the 22Nd ACM SIGSAC Conference on Computer and Communications Security, CCS ’15, 2015. [36] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 132, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0132", + "start_position": 64094, + "end_position": 64548, + "page_index": 10, + "word_count": 58, + "char_count": 454 + }, + "has_embedding": false + }, + { + "content": "[36] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. 15, 2014. [37] Latanya Sweeney. Simple demographics often identify people uniquely. 2000. [38] TensorFlow team. Tensorflow convolutional neural networks tutorial, 2016. http://www.tensorflow. org/tutorials/deep_cnn. [39] White House Report.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 133, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0133", + "start_position": 64548, + "end_position": 64955, + "page_index": 10, + "word_count": 49, + "char_count": 407 + }, + "has_embedding": false + }, + { + "content": "[39] White House Report. Consumer data privacy in a networked world: A framework for protecting privacy and promoting innovation in the global digital economy. Journal of Privacy and Confidentiality, 2013. [40] Tianbao Yang. Trading computation for communication: Distributed stochastic dual coordinate ascent. In Advances in Neural Information Processing Systems, 2013. [41] Ruiliang Zhang and James Kwok. Asynchronous distributed admm for consensus optimization. In ICML.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 134, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0134", + "start_position": 64955, + "end_position": 65428, + "page_index": 10, + "word_count": 64, + "char_count": 473 + }, + "has_embedding": false + }, + { + "content": "In ICML. JMLR Workshop and Conference Proceedings, 2014. [42] Sixin Zhang, Anna E Choromanska, and Yann LeCun. Deep learning with elastic averaging sgd. In NIPS. 2015. # A Supplemental Figures and Tables [IMAGE]\nFigure 6: Training set convergence for the MNIST CNN. Note the $y$ -axis is on a log scale, and the $x$ -axis covers more training than Figure 2. These plots fix $C = 0 . 1$ . [IMAGE]\nFigure 7: Test set accuracy vs. communication rounds for MNIST 2NN with $C = 0 . 1$ and optimized $\\eta$ .", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 135, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0135", + "start_position": 65428, + "end_position": 65930, + "page_index": 10, + "word_count": 92, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "1$ and optimized $\\eta$ . The left column is the IID dataset, and right is the pathological 2- digits-per-client non-IID data. [IMAGE]\nFigure 8: The effect of training for many local epochs (large $E$ ) between averaging steps, fixing $B = 1 0$ and $C = 0 . 1$ . Training loss for the MNIST CNN. Note different learning rates and $y$ -axis scales are used due to the difficulty of our pathological non-IID MNIST dataset.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 136, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0136", + "start_position": 65930, + "end_position": 66350, + "page_index": 10, + "word_count": 76, + "char_count": 420 + }, + "has_embedding": false + }, + { + "content": "rates and $y$ -axis scales are used due to the difficulty of our pathological non-IID MNIST dataset. Table 4: Speedups in the number of communication rounds to reach a target accuracy of $9 7 \\%$ for FedAvg, versus FedSGD (first row) on the MNIST 2NN model.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 137, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0137", + "start_position": 66350, + "end_position": 66607, + "page_index": 10, + "word_count": 46, + "char_count": 257 + }, + "has_embedding": false + }, + { + "content": "to reach a target accuracy of $9 7 \\%$ for FedAvg, versus FedSGD (first row) on the MNIST 2NN model.
MNIST 2NNEBuIDNON-IID
FEDSGD18114681817
FEDAVG10810156(9.4×)1100(1.7×)
FEDAVG15012144(10.2×)1183(1.5×)
FEDAVG2082092(16.0×)957(1.9×)
FEDAVG1106092(16.0×)831(2.2×)
FEDAVG105012045(32.6×881 (2.1×)
FEDAVG205024039(37.6×835(2.2×)
FEDAVG101060034(43.2×)497 (3.7×)
FEDAVG2010120032 (45.9×)738(2.5×)
", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 138, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0138", + "start_position": 66607, + "end_position": 67729, + "page_index": 10, + "word_count": 26, + "char_count": 1122 + }, + "has_embedding": false + }, + { + "content": "G2010120032 (45.9×)738(2.5×) [IMAGE]\nFigure 9: Test accuracy versus number of minibatch gradient computations $[ B = 5 0 ]$ ). The baseline is standard sequential SGD, as compared to FedAvg with different client fractions $C$ (recall $C = 0$ means one client per round), and different numbers of local epochs $E$ . ![This image is of **moderate complexity**.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 139, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0139", + "start_position": 67729, + "end_position": 68159, + "page_index": 10, + "word_count": 58, + "char_count": 430 + }, + "has_embedding": false + }, + { + "content": "![This image is of **moderate complexity**. The figure displays learning curves for a Next Word Prediction LSTM model trained on Non-IID data, plotting \"Test Accuracy @ 1\" against \"Communication Rounds.\" It compares three training strategies: FedSGD, FedAvg with E=1 local epoch, and FedAvg with E=5 local epochs. Each strategy is evaluated with varying learning rates (η), indicated by different shades of blue for FedSGD and shades of orange/brown for FedAvg.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 140, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0140", + "start_position": 68159, + "end_position": 68620, + "page_index": 10, + "word_count": 70, + "char_count": 461 + }, + "has_embedding": false + }, + { + "content": "g rates (η), indicated by different shades of blue for FedSGD and shades of orange/brown for FedAvg. The FedAvg strategies, particularly with E=1, generally achieve higher and more stable test accuracy compared to FedSGD across all tested learning rates.](images/3350471370785f32096c628a52d42d9afa0f2595264583ef711e34979da1fb25.jpg)\nFigure 10: Learning curves for the large-scale language model word LSTM, with evaluation computed every 20 rounds.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 141, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0141", + "start_position": 68620, + "end_position": 69067, + "page_index": 10, + "word_count": 56, + "char_count": 447 + }, + "has_embedding": false + }, + { + "content": "rning curves for the large-scale language model word LSTM, with evaluation computed every 20 rounds. FedAvg actually performs better with fewer local epochs $E$ (1 vs 5), and also has lower variance in accuracy across evaluation rounds compared to FedSGD.", + "metadata": { + "source_file": "Communication-Efficient Learning of Deep Networks", + "chunk_index": 142, + "chunk_id": "Communication-Efficient Learning of Deep Networks_chunk_0142", + "start_position": 69067, + "end_position": 69322, + "page_index": 10, + "word_count": 40, + "char_count": 255 + }, + "has_embedding": false + } + ], + "metadata": { + "chunk_size": 512, + "overlap": 100, + "average_chunk_length": 449.034965034965 + } + }, + "MOE": { + "source_file": "MOE", + "total_chunks": 552, + "original_length": 283361, + "chunks": [ + { + "content": "# A Comprehensive Survey of Mixture-of-Experts: Algorithms, Theory, and Applications Siyuan Mu and Sen Lin Abstract—Artificial intelligence (AI) has achieved astonishing successes in many domains, especially with the recent breakthroughs in the development of foundational large models. These large models, leveraging their extensive training data, provide versatile solutions for a wide range of downstream tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 0, + "chunk_id": "MOE_chunk_0000", + "start_position": 0, + "end_position": 414, + "page_index": 0, + "word_count": 55, + "char_count": 414 + }, + "has_embedding": false + }, + { + "content": "ing their extensive training data, provide versatile solutions for a wide range of downstream tasks. However, as modern datasets become increasingly diverse and complex, the development of large AI models faces two major challenges: (1) the enormous consumption of computational resources and deployment difficulties, and (2) the difficulty in fitting heterogeneous and complex data, which limits the usability of the models.", + "metadata": { + "source_file": "MOE", + "chunk_index": 1, + "chunk_id": "MOE_chunk_0001", + "start_position": 414, + "end_position": 839, + "page_index": 0, + "word_count": 61, + "char_count": 425 + }, + "has_embedding": false + }, + { + "content": "the difficulty in fitting heterogeneous and complex data, which limits the usability of the models. Mixture of Experts (MoE) models has recently attracted much attention in addressing these challenges, by dynamically selecting and activating the most relevant submodels to process input data. It has been shown that MoEs can significantly improve model performance and efficiency with fewer resources, particularly excelling in handling large-scale, multimodal data.", + "metadata": { + "source_file": "MOE", + "chunk_index": 2, + "chunk_id": "MOE_chunk_0002", + "start_position": 839, + "end_position": 1305, + "page_index": 0, + "word_count": 65, + "char_count": 466 + }, + "has_embedding": false + }, + { + "content": "nd efficiency with fewer resources, particularly excelling in handling large-scale, multimodal data. Given the tremendous potential MoE has demonstrated across various domains, it is urgent to provide a comprehensive summary of recent advancements of MoEs in many important fields. Existing surveys on MoE have their limitations, e.g., being outdated or lacking discussion on certain key areas, and we aim to address these gaps.", + "metadata": { + "source_file": "MOE", + "chunk_index": 3, + "chunk_id": "MOE_chunk_0003", + "start_position": 1305, + "end_position": 1733, + "page_index": 0, + "word_count": 63, + "char_count": 428 + }, + "has_embedding": false + }, + { + "content": ", e.g., being outdated or lacking discussion on certain key areas, and we aim to address these gaps. In this paper, we first introduce the basic design of MoE, including gating functions, expert networks, routing mechanisms, training strategies, and system design. We then explore the algorithm design of MoE in important machine learning paradigms such as continual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning.", + "metadata": { + "source_file": "MOE", + "chunk_index": 4, + "chunk_id": "MOE_chunk_0004", + "start_position": 1733, + "end_position": 2193, + "page_index": 0, + "word_count": 66, + "char_count": 460 + }, + "has_embedding": false + }, + { + "content": "tinual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning. Additionally, we summarize theoretical studies aimed at understanding MoE and review its applications in computer vision and natural language processing. Finally, we discuss promising future research directions. Index Terms—Mixture-of-Experts, Continual Learning, MetaLearning, Multi-Task Learning, Reinforcement Learning, Federated Learning, Computer Vision, Natural Language Processing # I. INTRODUCTION", + "metadata": { + "source_file": "MOE", + "chunk_index": 5, + "chunk_id": "MOE_chunk_0005", + "start_position": 47274, + "end_position": 47780, + "page_index": 8, + "word_count": 56, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "INTRODUCTION Artificial Intelligence (AI) has emerged as a transformative force in modern technologies, demonstrating remarkable successes across multiple domains from computer vision [1], [2], [3] and speech recognition [4], [5] to healthcare [6] and autonomous systems [7].", + "metadata": { + "source_file": "MOE", + "chunk_index": 6, + "chunk_id": "MOE_chunk_0006", + "start_position": 47780, + "end_position": 48055, + "page_index": 8, + "word_count": 37, + "char_count": 275 + }, + "has_embedding": false + }, + { + "content": "r vision [1], [2], [3] and speech recognition [4], [5] to healthcare [6] and autonomous systems [7]. A key driver behind this is the development of foundation models, such as BERT [8], CLIP [9], GPT-4 [10] which are large-scale neural networks pretrained on massive datasets and provide versatile solutions for a wide range of downstream tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 7, + "chunk_id": "MOE_chunk_0007", + "start_position": 48055, + "end_position": 48399, + "page_index": 9, + "word_count": 56, + "char_count": 344 + }, + "has_embedding": false + }, + { + "content": "pretrained on massive datasets and provide versatile solutions for a wide range of downstream tasks. Building upon the pretrained knowledge, these models can be further fine-tuned with minimal additional training to adapt to specific applications, making them indispensable tools for handling increasingly complex and diverse tasks in many real-world scenarios. However, as AI applications expand, modern datasets are becoming more diverse and complex.", + "metadata": { + "source_file": "MOE", + "chunk_index": 8, + "chunk_id": "MOE_chunk_0008", + "start_position": 48399, + "end_position": 48851, + "page_index": 9, + "word_count": 63, + "char_count": 452 + }, + "has_embedding": false + }, + { + "content": "However, as AI applications expand, modern datasets are becoming more diverse and complex. They often contain multimodal data (e.g., text, images, and audio) and exhibit intricate structures (e.g., graphs or hierarchical relationships).", + "metadata": { + "source_file": "MOE", + "chunk_index": 9, + "chunk_id": "MOE_chunk_0009", + "start_position": 48851, + "end_position": 49087, + "page_index": 9, + "word_count": 32, + "char_count": 236 + }, + "has_embedding": false + }, + { + "content": "t, images, and audio) and exhibit intricate structures (e.g., graphs or hierarchical relationships). This diversity and complexity introduce two significant challenges: (1) the computational cost of training and deploying large models grows exponentially, making it unsustainable for many applications [11], and (2) integrating conflicting or heterogeneous knowledge within a single model becomes increasingly difficult, often leading to unstable training dynamics and suboptimal performance [12].", + "metadata": { + "source_file": "MOE", + "chunk_index": 10, + "chunk_id": "MOE_chunk_0010", + "start_position": 49087, + "end_position": 49584, + "page_index": 9, + "word_count": 64, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "increasingly difficult, often leading to unstable training dynamics and suboptimal performance [12]. These challenges underscore the need for more efficient and scalable architectures capable of meeting the growing demands of modern AI tasks. One promising approach to addressing these challenges is the Mixture of Experts (MoE) architecture, which has attracted much attention recently.", + "metadata": { + "source_file": "MOE", + "chunk_index": 11, + "chunk_id": "MOE_chunk_0011", + "start_position": 49584, + "end_position": 49971, + "page_index": 9, + "word_count": 53, + "char_count": 387 + }, + "has_embedding": false + }, + { + "content": "hallenges is the Mixture of Experts (MoE) architecture, which has attracted much attention recently. Originally proposed in [13], [14], MoE adopts a “divide and conquer” strategy that fundamentally differs from traditional dense models. While conventional models activate all parameters for every input, MoE models dynamically select and activate only the most relevant subset of parameters based on the characteristics of the input data.", + "metadata": { + "source_file": "MOE", + "chunk_index": 12, + "chunk_id": "MOE_chunk_0012", + "start_position": 49971, + "end_position": 50409, + "page_index": 9, + "word_count": 63, + "char_count": 438 + }, + "has_embedding": false + }, + { + "content": "activate only the most relevant subset of parameters based on the characteristics of the input data. This approach not only enhances the specialization of individual experts but also mitigates the difficulties associated with training on diverse and conflicting tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 13, + "chunk_id": "MOE_chunk_0013", + "start_position": 50409, + "end_position": 50677, + "page_index": 9, + "word_count": 39, + "char_count": 268 + }, + "has_embedding": false + }, + { + "content": "perts but also mitigates the difficulties associated with training on diverse and conflicting tasks. Furthermore, the selective activation mechanism allows MoE models to significantly expand their capacity and handle diverse knowledge domains without proportionally increasing computational costs, thereby achieving an optimal balance between performance and efficiency [15], [16].", + "metadata": { + "source_file": "MOE", + "chunk_index": 14, + "chunk_id": "MOE_chunk_0014", + "start_position": 50677, + "end_position": 51058, + "page_index": 9, + "word_count": 48, + "char_count": 381 + }, + "has_embedding": false + }, + { + "content": "utational costs, thereby achieving an optimal balance between performance and efficiency [15], [16]. By leveraging the strengths of specialized “experts” for different tasks or data types, MoE provides a scalable and flexible framework for tackling the challenges posed by complex, multifaceted datasets.", + "metadata": { + "source_file": "MOE", + "chunk_index": 15, + "chunk_id": "MOE_chunk_0015", + "start_position": 51058, + "end_position": 51362, + "page_index": 9, + "word_count": 42, + "char_count": 304 + }, + "has_embedding": false + }, + { + "content": "scalable and flexible framework for tackling the challenges posed by complex, multifaceted datasets. Notably, the MoE model architecture has demonstrated its unique advantages and tremendous potentials especially in large language models (LLMs) [184], [185], [186], [21], [15], [20], [52], [187], [188], [189], [190], [191], [192], [193], [194], [195].", + "metadata": { + "source_file": "MOE", + "chunk_index": 16, + "chunk_id": "MOE_chunk_0016", + "start_position": 51362, + "end_position": 51714, + "page_index": 9, + "word_count": 48, + "char_count": 352 + }, + "has_embedding": false + }, + { + "content": "[185], [186], [21], [15], [20], [52], [187], [188], [189], [190], [191], [192], [193], [194], [195]. For instance, the Switch Transformer [15] achieves 7 times faster in pre-training speed compared to the T5-Base [196] model, and shows improved performance across all 101 languages in a multilingual setting. It has also successfully scaled the number of parameters to the trillion level, achieving a pre-training speed 4 times faster than the T5- XXL [196] model at this scale.", + "metadata": { + "source_file": "MOE", + "chunk_index": 17, + "chunk_id": "MOE_chunk_0017", + "start_position": 51714, + "end_position": 52192, + "page_index": 9, + "word_count": 75, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "ion level, achieving a pre-training speed 4 times faster than the T5- XXL [196] model at this scale. GLaM [20] has also expanded its parameters to the trillion level, enhancing the model’s ability to utilize contextual information. Deepspeed-moe [52] leverages MoE and model compression techniques to reduce the size of MoE models by 3.7 times. ST-MoE [187] has further investigated the stability and transferability of MoE models, proposing various methods such as Router z-loss to ensure training stability.", + "metadata": { + "source_file": "MOE", + "chunk_index": 18, + "chunk_id": "MOE_chunk_0018", + "start_position": 52192, + "end_position": 52701, + "page_index": 9, + "word_count": 78, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "ability of MoE models, proposing various methods such as Router z-loss to ensure training stability. Ultimately, on the SuperGLUE [197] benchmark, the ST-MoE-32B model surpassed the previous state-of-the-art models. OpenMoE [191] has experimented with decoder-only MoE and provided an in-depth discussion on the routing mechanisms of MoE, making significant contributions to the open-source community’s understanding of MoE architectures.", + "metadata": { + "source_file": "MOE", + "chunk_index": 19, + "chunk_id": "MOE_chunk_0019", + "start_position": 52701, + "end_position": 53139, + "page_index": 9, + "word_count": 58, + "char_count": 438 + }, + "has_embedding": false + }, + { + "content": "making significant contributions to the open-source community’s understanding of MoE architectures. Mixtral ${ \\bf 8 } { \\bf \\times } 7 { \\bf B }$ [22], despite processing each token with only 13 billion active parameters, is able to access a total of 47 billion parameters thanks to its distinctive architecture. This allows Mixtral ${ } ^ { 8 \\mathrm { x } 7 \\mathrm { B } }$ to achieve higher parameter efficiency and effectively control computational costs.", + "metadata": { + "source_file": "MOE", + "chunk_index": 20, + "chunk_id": "MOE_chunk_0020", + "start_position": 53139, + "end_position": 53600, + "page_index": 9, + "word_count": 79, + "char_count": 461 + }, + "has_embedding": false + }, + { + "content": "\\mathrm { B } }$ to achieve higher parameter efficiency and effectively control computational costs. The impressive performance of the DeepSeek series [198], [199], [53], [200] has also garnered significant attention. These models leverage MoE architectures to achieve state-ofthe-art results on a variety of benchmarks while maintaining manageable computational requirements. [IMAGE]\nFig. 1. The roadmap of Mixture of Experts (MoE) covered in this paper.", + "metadata": { + "source_file": "MOE", + "chunk_index": 21, + "chunk_id": "MOE_chunk_0021", + "start_position": 53600, + "end_position": 54055, + "page_index": 9, + "word_count": 64, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "The roadmap of Mixture of Experts (MoE) covered in this paper. Beyond efficiency, MoE models also offer opportunities to improve model interpretability [101], [201], [35], [202]. By learning intrinsic allocation mechanisms, researchers can gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability not only enhances our understanding of the model behaviors but also opens new avenues for designing more robust and transparent AI systems.", + "metadata": { + "source_file": "MOE", + "chunk_index": 22, + "chunk_id": "MOE_chunk_0022", + "start_position": 54055, + "end_position": 54553, + "page_index": 9, + "word_count": 72, + "char_count": 498 + }, + "has_embedding": false + }, + { + "content": "the model behaviors but also opens new avenues for designing more robust and transparent AI systems. Given the rapidly growing research interests in MoE and the huge potentials of MoE in various application domains, there is an urgent need of a comprehensive survey for summarizing and disseminating the recent advances of MoE, in order to elicit escalating attentions and inspire further research ideas in this field.", + "metadata": { + "source_file": "MOE", + "chunk_index": 23, + "chunk_id": "MOE_chunk_0023", + "start_position": 54553, + "end_position": 54971, + "page_index": 9, + "word_count": 66, + "char_count": 418 + }, + "has_embedding": false + }, + { + "content": "s of MoE, in order to elicit escalating attentions and inspire further research ideas in this field. Nevertheless, the early surveys of MoE [203], [204] were published ten years ago and have not incorporated the new development in the area. There is only one new survey [205] that emerged last year, which however 1) emphasized more on the basic designs of MoE and 2) did not provide a broad discussion on the use of MoEs in important machine learning paradigms and application fields such as computer vision.", + "metadata": { + "source_file": "MOE", + "chunk_index": 24, + "chunk_id": "MOE_chunk_0024", + "start_position": 54971, + "end_position": 55480, + "page_index": 9, + "word_count": 87, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "use of MoEs in important machine learning paradigms and application fields such as computer vision. The theory development in MoE has also not been covered. And although some other new concurrent surveys have been uploaded online very recently during the preparation of our paper, these surveys still either focus on a special aspect of MoE, such as applications in big data [206], inference optimization [207] and LLMs [208], or cover multiple topics very briefly [209].", + "metadata": { + "source_file": "MOE", + "chunk_index": 25, + "chunk_id": "MOE_chunk_0025", + "start_position": 55480, + "end_position": 55951, + "page_index": 10, + "word_count": 75, + "char_count": 471 + }, + "has_embedding": false + }, + { + "content": "ata [206], inference optimization [207] and LLMs [208], or cover multiple topics very briefly [209]. To the best of our knowledge, our paper is the first survey that comprehensively summarizes the latest advancement in MoE, which includes four key components: basic design strategies of MoE, MoE-based algorithm designs in mainstream machine learning directions, theory towards understanding MoE in various scenarios, and an in-depth review of applications of MoE in both computer vision and natural language processing.", + "metadata": { + "source_file": "MOE", + "chunk_index": 26, + "chunk_id": "MOE_chunk_0026", + "start_position": 55951, + "end_position": 56471, + "page_index": 10, + "word_count": 76, + "char_count": 520 + }, + "has_embedding": false + }, + { + "content": "d an in-depth review of applications of MoE in both computer vision and natural language processing. This paper will be organized as follows (as illustrated in Figure 1). In Section II, we will provide a comprehensive introduction to the basic designs of MoE, ranging from basic architecture design to training strategies to system optimization strategies.", + "metadata": { + "source_file": "MOE", + "chunk_index": 27, + "chunk_id": "MOE_chunk_0027", + "start_position": 56471, + "end_position": 56827, + "page_index": 10, + "word_count": 55, + "char_count": 356 + }, + "has_embedding": false + }, + { + "content": "oE, ranging from basic architecture design to training strategies to system optimization strategies. In Section III, we will introduce the recent MoEbased algorithm design in four important machine learning paradigms, including continual learning, meta-learning, multitask learning, reinforcement learning, and federated learning, which seeks to provide readers a general idea about how MoE can be leveraged to improve the algorithm design in these domains.", + "metadata": { + "source_file": "MOE", + "chunk_index": 28, + "chunk_id": "MOE_chunk_0028", + "start_position": 56827, + "end_position": 57284, + "page_index": 10, + "word_count": 63, + "char_count": 457 + }, + "has_embedding": false + }, + { + "content": "ders a general idea about how MoE can be leveraged to improve the algorithm design in these domains. In Section IV, we will summarize the efforts towards building the theoretical understanding of MoE, which covers a variety of aspects in MoE, such as different gating functions, different expert models, and different learning scenarios.", + "metadata": { + "source_file": "MOE", + "chunk_index": 29, + "chunk_id": "MOE_chunk_0029", + "start_position": 57284, + "end_position": 57621, + "page_index": 10, + "word_count": 53, + "char_count": 337 + }, + "has_embedding": false + }, + { + "content": "MoE, such as different gating functions, different expert models, and different learning scenarios. In Section V, we will present the recent applications of MoE in two major domains, i.e., computer vision and natural language processing, where we look into multiple important subproblems in each domain. Future research directions will be discussed in Section VI, followed by the conclusion in Section VII. # II. BASIC DESIGNS OF MOE", + "metadata": { + "source_file": "MOE", + "chunk_index": 30, + "chunk_id": "MOE_chunk_0030", + "start_position": 57621, + "end_position": 58054, + "page_index": 10, + "word_count": 67, + "char_count": 433 + }, + "has_embedding": false + }, + { + "content": "BASIC DESIGNS OF MOE In this section, we will focus on the basic framework and design considerations in MoE to help readers understand the general workflow of MoE, as shown in Figure 2. More specifically, we will first introduce the key components in the design of MoE, including the gating function, the expert networks, and the routing mechanism. The first two components essentially form a basic framework of MoE, whereas the last component characterizes how the gating function handles the input data.", + "metadata": { + "source_file": "MOE", + "chunk_index": 31, + "chunk_id": "MOE_chunk_0031", + "start_position": 58054, + "end_position": 58559, + "page_index": 10, + "word_count": 82, + "char_count": 505 + }, + "has_embedding": false + }, + { + "content": "ork of MoE, whereas the last component characterizes how the gating function handles the input data. Next, we will introduce the strategies, i.e., loss function and pipeline design, so as to guarantee proper training of MoEs. In the end, system designs will be discussed to optimize the system efficiency of MoE from multiple perspectives. ![This image is of **moderate complexity**. The diagram illustrates a standard Mixture-of-Experts (MoE) Layer.", + "metadata": { + "source_file": "MOE", + "chunk_index": 32, + "chunk_id": "MOE_chunk_0032", + "start_position": 58559, + "end_position": 59009, + "page_index": 10, + "word_count": 68, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "The diagram illustrates a standard Mixture-of-Experts (MoE) Layer. An \"Input\" is processed by a \"Router,\" depicted as a circular element containing a bar chart, which then directs the input to multiple \"Expert\" modules.", + "metadata": { + "source_file": "MOE", + "chunk_index": 33, + "chunk_id": "MOE_chunk_0033", + "start_position": 59009, + "end_position": 59228, + "page_index": 10, + "word_count": 33, + "char_count": 219 + }, + "has_embedding": false + }, + { + "content": "circular element containing a bar chart, which then directs the input to multiple \"Expert\" modules. The outputs from these experts are combined, with some undergoing element-wise multiplication (indicated by a circle with an 'x') and others element-wise addition (indicated by a circle with a '+'), before being aggregated into a final \"Output.\" This architecture suggests a mechanism for selectively activating different expert networks based on the input.](images/25ac1650d6400589cbff90e22301afd16ec3dbfabbff7cc90491ce1be966f81d.jpg)\nFig. 2.", + "metadata": { + "source_file": "MOE", + "chunk_index": 34, + "chunk_id": "MOE_chunk_0034", + "start_position": 59228, + "end_position": 59771, + "page_index": 10, + "word_count": 69, + "char_count": 543 + }, + "has_embedding": false + }, + { + "content": "2. The simple schematic of a standard MoE architecture. # A. Gating Function The gating function serves as the mathematical implementation of a router, determining how input data is allocated to designated experts. Clearly, the effectiveness of MoE models is intrinsically tied to this allocation strategy, making the design of the gating function a critical consideration. Below, we provide a detailed discussion on the principles and considerations for designing an effective gating function.", + "metadata": { + "source_file": "MOE", + "chunk_index": 35, + "chunk_id": "MOE_chunk_0035", + "start_position": 59771, + "end_position": 60265, + "page_index": 10, + "word_count": 73, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "detailed discussion on the principles and considerations for designing an effective gating function. When selecting a gating function, the following criteria should be prioritized: (1) The function must accurately discern the characteristics of both input data and experts. This enables the assignment of similar data to the same expert or group of experts, ensuring that each expert receives a sufficiently large and coherent training set.", + "metadata": { + "source_file": "MOE", + "chunk_index": 36, + "chunk_id": "MOE_chunk_0036", + "start_position": 60265, + "end_position": 60705, + "page_index": 10, + "word_count": 65, + "char_count": 440 + }, + "has_embedding": false + }, + { + "content": "group of experts, ensuring that each expert receives a sufficiently large and coherent training set. Such specialization allows experts to develop expertise in specific knowledge domains. (2) The input data should be distributed as evenly as possible among the predefined experts. An uneven distribution can lead to model collapse, which reduces the efficiency of the MoE framework by underutilizing experts and impairs performance due to insufficient separation of conflicting knowledge in the training data.", + "metadata": { + "source_file": "MOE", + "chunk_index": 37, + "chunk_id": "MOE_chunk_0037", + "start_position": 60705, + "end_position": 61214, + "page_index": 10, + "word_count": 74, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "nd impairs performance due to insufficient separation of conflicting knowledge in the training data. 1) Linear Gating. Based on these considerations, most existing MoE models [15], [17], [18], [19], [20] use a linear function with softmax as their gating functions due to its simplicity and effectiveness, which is also referred as softmax gating: $$\nG ( x ) _ { i } = \\mathrm { s o f t m a x } ( \\mathrm { T o p K } ( g ( x ) + \\mathcal { R } _ { \\mathrm { n o i s e } } , k ) ) _ { i } ,\n$$", + "metadata": { + "source_file": "MOE", + "chunk_index": 38, + "chunk_id": "MOE_chunk_0038", + "start_position": 61214, + "end_position": 61706, + "page_index": 10, + "word_count": 112, + "char_count": 492 + }, + "has_embedding": false + }, + { + "content": "} ( \\mathrm { T o p K } ( g ( x ) + \\mathcal { R } _ { \\mathrm { n o i s e } } , k ) ) _ { i } ,\n$$ $$\n\\mathrm { T o p K } ( v ) = { \\left\\{ \\begin{array} { l l } { v _ { i } } & { { \\mathrm { i f ~ } } v _ { i } { \\mathrm { ~ i s ~ o n e ~ o f ~ t h e ~ t o p ~ } } k { \\mathrm { ~ e l e m e n } } } \\\\ { - \\infty } & { { \\mathrm { o t h e r w i s e . } } } \\end{array} \\right. }\n$$", + "metadata": { + "source_file": "MOE", + "chunk_index": 39, + "chunk_id": "MOE_chunk_0039", + "start_position": 61706, + "end_position": 62089, + "page_index": 10, + "word_count": 146, + "char_count": 383 + }, + "has_embedding": false + }, + { + "content": "}\n$$ Here $G$ represents the gating function, the TopK function retains the $k$ highest scoring inputs out of $N$ experts and sets the rest to negative infinity, $g$ represents the gating value calculated with a linear function prior to the softmax operation, $x$ denotes the input, $\\mathcal { R } _ { \\mathrm { n o i s e } }$ represents the noise to encourage expert exploration, $w$ denotes the model parameters, and $k$ is a hyperparameter that can either be learned or manually set.", + "metadata": { + "source_file": "MOE", + "chunk_index": 40, + "chunk_id": "MOE_chunk_0040", + "start_position": 62089, + "end_position": 62576, + "page_index": 10, + "word_count": 87, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "enotes the model parameters, and $k$ is a hyperparameter that can either be learned or manually set. The order of the TopK and softmax operations in the above expression is flexible and can be designed based on specific requirements. One approach is to perform the TopK operation before softmax [16], [22], [20]. This method quickly filters out the most relevant experts, eliminating the need to compute softmax for all experts and thereby reducing computational overhead.", + "metadata": { + "source_file": "MOE", + "chunk_index": 41, + "chunk_id": "MOE_chunk_0041", + "start_position": 62576, + "end_position": 63048, + "page_index": 10, + "word_count": 75, + "char_count": 472 + }, + "has_embedding": false + }, + { + "content": "eliminating the need to compute softmax for all experts and thereby reducing computational overhead. However, the scores obtained after TopK may not conform to a probability distribution, necessitating an additional normalization step. Moreover, the TopK operation is inherently “hard,” potentially excluding experts with low scores that could still contribute meaningfully. Alternatively, the TopK function can be applied after softmax [21], [17], [15], [18].", + "metadata": { + "source_file": "MOE", + "chunk_index": 42, + "chunk_id": "MOE_chunk_0042", + "start_position": 63048, + "end_position": 63508, + "page_index": 10, + "word_count": 63, + "char_count": 460 + }, + "has_embedding": false + }, + { + "content": "Alternatively, the TopK function can be applied after softmax [21], [17], [15], [18]. In this case, the softmax function first normalizes the scores into a probability distribution, providing statistically meaningful activation weights for each expert. This approach offers more clear guidance on determining the value of $k$ in the TopK operation. However, it requires computing softmax for all experts, resulting in higher computational costs.", + "metadata": { + "source_file": "MOE", + "chunk_index": 43, + "chunk_id": "MOE_chunk_0043", + "start_position": 63508, + "end_position": 63953, + "page_index": 11, + "word_count": 64, + "char_count": 445 + }, + "has_embedding": false + }, + { + "content": "However, it requires computing softmax for all experts, resulting in higher computational costs. When the MoE is incorporated into existing models, usually a Transformer [210], we typically replace the Feed-Forward Network (FFN) layer within a transformer block by using an MoE layer. There are several reasons [16] behind this design choice: First, the computational cost of the FFN layer typically constitutes a significant portion of the total computational cost in a Transformer, especially in deep models.", + "metadata": { + "source_file": "MOE", + "chunk_index": 44, + "chunk_id": "MOE_chunk_0044", + "start_position": 63953, + "end_position": 64463, + "page_index": 11, + "word_count": 76, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "s a significant portion of the total computational cost in a Transformer, especially in deep models. By replacing the FFN layer with an MoE layer, the computational cost can be significantly reduced while maintaining the model’s expressive power. Additionally, replacing the Self-Attention layer would disrupt the core mechanism of the Transformer, which is not aligned with our objectives. 2) Non-linear Gating. The gating functions can also be non-linear.", + "metadata": { + "source_file": "MOE", + "chunk_index": 45, + "chunk_id": "MOE_chunk_0045", + "start_position": 64463, + "end_position": 64920, + "page_index": 11, + "word_count": 68, + "char_count": 457 + }, + "has_embedding": false + }, + { + "content": "The gating functions can also be non-linear. Specifically, a gating function design based on cosine distance is proposed in GMoE [23] for domain generalization tasks, which is shown as follows: $$\nG ( x ) = \\mathrm { T o p K } \\left( \\mathrm { s o f t m a x } \\left( \\frac { E ^ { T } W _ { l i n e a r } x } { \\tau \\| W _ { l i n e a r } x \\| \\| E \\| } \\right) \\right)\n$$", + "metadata": { + "source_file": "MOE", + "chunk_index": 46, + "chunk_id": "MOE_chunk_0046", + "start_position": 64920, + "end_position": 65292, + "page_index": 11, + "word_count": 96, + "char_count": 372 + }, + "has_embedding": false + }, + { + "content": "{ E ^ { T } W _ { l i n e a r } x } { \\tau \\| W _ { l i n e a r } x \\| \\| E \\| } \\right) \\right)\n$$ where $\\boldsymbol { x } \\in \\mathbb { R } ^ { d _ { e } }$ is the input of MoE module, $W _ { l i n e a r } \\in \\mathbb { R } ^ { d _ { e } }$ is a learnable linear transformation for $x$ , responsible for projecting $x$ into a hypersphere space. The number of expert networks is $N$ , and $\\boldsymbol { E } \\in \\mathbb { R } ^ { d _ { e } \\times N }$ represents the features of the $N$ expert networks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 47, + "chunk_id": "MOE_chunk_0047", + "start_position": 65292, + "end_position": 65797, + "page_index": 11, + "word_count": 139, + "char_count": 505 + }, + "has_embedding": false + }, + { + "content": "E } \\in \\mathbb { R } ^ { d _ { e } \\times N }$ represents the features of the $N$ expert networks. In the gating function, the input $x$ is projected into a new space and compared with the expert embeddings $E$ using cosine similarity to determine which experts each input $x$ should be assigned to. In this way, the expert embeddings $E$ can capture the feature representations of different experts and are gradually optimized during training to better adapt to the task requirements.", + "metadata": { + "source_file": "MOE", + "chunk_index": 48, + "chunk_id": "MOE_chunk_0048", + "start_position": 65797, + "end_position": 66283, + "page_index": 11, + "word_count": 87, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "ferent experts and are gradually optimized during training to better adapt to the task requirements. Additinally, the temperature parameter $\\tau$ controls the sharpness of the gating distribution. A smaller $\\tau$ makes the distribution sharper, favoring the selection of a few experts, while a larger $\\tau$ makes the distribution smoother, allowing more experts to participate.", + "metadata": { + "source_file": "MOE", + "chunk_index": 49, + "chunk_id": "MOE_chunk_0049", + "start_position": 66283, + "end_position": 66663, + "page_index": 11, + "word_count": 54, + "char_count": 380 + }, + "has_embedding": false + }, + { + "content": "xperts, while a larger $\\tau$ makes the distribution smoother, allowing more experts to participate. Comprehensive theoretical and experimental evidence has been provided in [23] to demonstrate the superiority of using cosine routers over linear routers in domain generalization tasks. Specifically, the cosine router excels at handling crossdomain data, capturing visual attributes, and enhancing the model’s generalization capability and efficiency.", + "metadata": { + "source_file": "MOE", + "chunk_index": 50, + "chunk_id": "MOE_chunk_0050", + "start_position": 66663, + "end_position": 67114, + "page_index": 11, + "word_count": 59, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "ta, capturing visual attributes, and enhancing the model’s generalization capability and efficiency. There are also more studies that have employed cosine routers for better performance [24], [25], which encourages us to explore more on the design of gating functions beyond the cosine routers. In addition to the cosine gating function, there are many other designs of nonlinear functions, such as the gating function based on exponential Family of Distributions [26] as shown in Equation (4),", + "metadata": { + "source_file": "MOE", + "chunk_index": 51, + "chunk_id": "MOE_chunk_0051", + "start_position": 67114, + "end_position": 67608, + "page_index": 11, + "word_count": 75, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "h as the gating function based on exponential Family of Distributions [26] as shown in Equation (4), $$\nG _ { j } ( x , \\nu ) = \\frac { \\beta _ { j } D ( x | \\nu _ { j } ) } { \\sum _ { i } \\beta _ { i } D ( x | \\nu _ { i } ) } ,\n$$ Here $\\beta _ { j }$ is the prior probability of the $j$ th expert network, satisfying $\\begin{array} { r } { \\sum _ { j } \\beta _ { j } = 1 } \\end{array}$ and $\\beta _ { j } \\geq 0$ .", + "metadata": { + "source_file": "MOE", + "chunk_index": 52, + "chunk_id": "MOE_chunk_0052", + "start_position": 67608, + "end_position": 68024, + "page_index": 11, + "word_count": 116, + "char_count": 416 + }, + "has_embedding": false + }, + { + "content": "ng $\\begin{array} { r } { \\sum _ { j } \\beta _ { j } = 1 } \\end{array}$ and $\\beta _ { j } \\geq 0$ . $D ( x | \\nu _ { j } )$ is the conditional probability density function of input $x$ under the $j$ th expert network, belonging to the exponential family distribution.", + "metadata": { + "source_file": "MOE", + "chunk_index": 53, + "chunk_id": "MOE_chunk_0053", + "start_position": 68024, + "end_position": 68292, + "page_index": 11, + "word_count": 60, + "char_count": 268 + }, + "has_embedding": false + }, + { + "content": "tion of input $x$ under the $j$ th expert network, belonging to the exponential family distribution. This approach analytically updates the gating function during iterations, and overcomes the nonlinear relationships introduced by softmax and the additional iterative optimization steps that follow (such as IRLS, Iteratively Reweighted Least Squares). The most common example is the Gaussian distribution.", + "metadata": { + "source_file": "MOE", + "chunk_index": 54, + "chunk_id": "MOE_chunk_0054", + "start_position": 68292, + "end_position": 68698, + "page_index": 12, + "word_count": 56, + "char_count": 406 + }, + "has_embedding": false + }, + { + "content": "The most common example is the Gaussian distribution. There is also a special gating function in Soft MoE [27] that no longer employs a discrete token allocation mechanism. Specifically, Soft MoE calculates the weights between each token and each expert, then uses these weights for weighted averaging to generate input slots. Consequently, the slots processed by each expert are a weighted combination of all tokens, rather than individual tokens.", + "metadata": { + "source_file": "MOE", + "chunk_index": 55, + "chunk_id": "MOE_chunk_0055", + "start_position": 68698, + "end_position": 69146, + "page_index": 12, + "word_count": 69, + "char_count": 448 + }, + "has_embedding": false + }, + { + "content": "ts processed by each expert are a weighted combination of all tokens, rather than individual tokens. This approach avoids potential token dropping issues due to load imbalances and optimization difficulties caused by discrete operations such as TopK. Gating functions based on the Student-t distribution [211] are particularly suitable for data groups exhibiting long-tail phenomena or outliers, because they offer more robust fitting capabilities.", + "metadata": { + "source_file": "MOE", + "chunk_index": 56, + "chunk_id": "MOE_chunk_0056", + "start_position": 69146, + "end_position": 69594, + "page_index": 12, + "word_count": 63, + "char_count": 448 + }, + "has_embedding": false + }, + { + "content": "ups exhibiting long-tail phenomena or outliers, because they offer more robust fitting capabilities. [28] utilizes a multinomial probit model [212], [213] to determine the expert model that each observation belongs to. ![**Image Complexity:** Moderate **Description:** This schematic illustrates a Mixture-of-Experts (MoE) layer, a core component in advanced neural network architectures. An input signal is processed by a \"Router\" which determines the gating weights for multiple \"Expert\" networks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 57, + "chunk_id": "MOE_chunk_0057", + "start_position": 69594, + "end_position": 70093, + "page_index": 12, + "word_count": 67, + "char_count": 499 + }, + "has_embedding": false + }, + { + "content": "ignal is processed by a \"Router\" which determines the gating weights for multiple \"Expert\" networks. These experts, represented by stacked colored rectangles, can be various neural network types, including Feed-Forward Networks (FFN), Attention mechanisms, and Convolutional Neural Networks (CNNs), as indicated in the upper bounding box. The router's gating weights are used to combine the outputs of selected experts through element-wise multiplication and summation operations to produce the final output.", + "metadata": { + "source_file": "MOE", + "chunk_index": 58, + "chunk_id": "MOE_chunk_0058", + "start_position": 70093, + "end_position": 70601, + "page_index": 12, + "word_count": 70, + "char_count": 508 + }, + "has_embedding": false + }, + { + "content": "ed experts through element-wise multiplication and summation operations to produce the final output. This design allows for dynamic specialization of network components based on input data.](images/13b002358a1e3cdbbff3c9e548b2af7213ef2e52392ed0d3a456d659ffe88b1f.jpg)\nFig. 3. Various expert networks for the MoE layer schematic. # B. Expert Networks The expert network is a core component of the MoE architecture.", + "metadata": { + "source_file": "MOE", + "chunk_index": 59, + "chunk_id": "MOE_chunk_0059", + "start_position": 70601, + "end_position": 71014, + "page_index": 12, + "word_count": 51, + "char_count": 413 + }, + "has_embedding": false + }, + { + "content": "Expert Networks The expert network is a core component of the MoE architecture. By dynamically selecting the most suitable expert network through the gating function, MoE efficiently allocates input data, enabling different experts to specialize in distinct knowledge domains. This design enhances the model’s overall performance, generalization ability, and computational efficiency, particularly when handling complex and diverse tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 60, + "chunk_id": "MOE_chunk_0060", + "start_position": 71014, + "end_position": 71452, + "page_index": 12, + "word_count": 58, + "char_count": 438 + }, + "has_embedding": false + }, + { + "content": "ization ability, and computational efficiency, particularly when handling complex and diverse tasks. In principle, each expert network in MoE can function as an independent network model, similar to a single network model (e.g., [29], [30]). However, in practice, to ensure efficiency and scalability, expert networks are often integrated into a single network model, with specific layers replaced by MoE layers [16], [15], [21].", + "metadata": { + "source_file": "MOE", + "chunk_index": 61, + "chunk_id": "MOE_chunk_0061", + "start_position": 71452, + "end_position": 71881, + "page_index": 12, + "word_count": 63, + "char_count": 429 + }, + "has_embedding": false + }, + { + "content": "ntegrated into a single network model, with specific layers replaced by MoE layers [16], [15], [21]. Notably, MoE layers can be introduced at specific levels of existing neural network models without altering the overall structure, demonstrating high flexibility and broad applicability. Currently, the most widely used MoE layers include the following types (Figure 3): 1) Replace the FFN layer in Transformer with an MoE layer. The MoE layer can be characterized as follows:", + "metadata": { + "source_file": "MOE", + "chunk_index": 62, + "chunk_id": "MOE_chunk_0062", + "start_position": 71881, + "end_position": 72357, + "page_index": 12, + "word_count": 73, + "char_count": 476 + }, + "has_embedding": false + }, + { + "content": "The MoE layer can be characterized as follows: $$\n\\mathsf { M o E } ( x ) = \\sum _ { i \\in I D } w _ { i } M _ { i } ( x )\n$$ where $I D$ represents the set of indices of experts selected by the gating function, $w _ { i }$ is the weight assigned to the ith expert, and $M _ { i } ( x )$ defines a two-layer FFN expert model. One key reason for introducing the MoE mechanism into the FFN layer is due to the higher sparsity and domain specificity of the FFN layer in Transformer.", + "metadata": { + "source_file": "MOE", + "chunk_index": 63, + "chunk_id": "MOE_chunk_0063", + "start_position": 72357, + "end_position": 72836, + "page_index": 12, + "word_count": 111, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "the FFN layer is due to the higher sparsity and domain specificity of the FFN layer in Transformer. It has been shown [17] that the FFN layer exhibits higher sparsity compared to self-attention layers, mainly because not all units in the fully-connected FFN layer will be activated simultaneously in order to prevent overfitting. This will make the FNN layer more suitable to incorporate sparse activation mechanisms.", + "metadata": { + "source_file": "MOE", + "chunk_index": 64, + "chunk_id": "MOE_chunk_0064", + "start_position": 72836, + "end_position": 73253, + "page_index": 12, + "word_count": 66, + "char_count": 417 + }, + "has_embedding": false + }, + { + "content": "This will make the FNN layer more suitable to incorporate sparse activation mechanisms. Furthermore, [17] reveals the Emergent Modularity phenomenon in pre-trained Transformer models, indicating a significant association between neuron activations and specific tasks. This further motivates the idea of leveraging the MoE structure to reflect the modular nature of pre-trained Transformers.", + "metadata": { + "source_file": "MOE", + "chunk_index": 65, + "chunk_id": "MOE_chunk_0065", + "start_position": 73253, + "end_position": 73643, + "page_index": 12, + "word_count": 52, + "char_count": 390 + }, + "has_embedding": false + }, + { + "content": "the idea of leveraging the MoE structure to reflect the modular nature of pre-trained Transformers. Therefore, due to its inherent sparsity and task relevance, the FFN layer in Transformer becomes an ideal choice for introducing the MoE mechanism. 2) Apply MoE to the attention module in Transformer. This will lead to a special type of MoE, namely mixture-ofattention (MoA) [32].", + "metadata": { + "source_file": "MOE", + "chunk_index": 66, + "chunk_id": "MOE_chunk_0066", + "start_position": 73643, + "end_position": 74023, + "page_index": 12, + "word_count": 60, + "char_count": 380 + }, + "has_embedding": false + }, + { + "content": "This will lead to a special type of MoE, namely mixture-ofattention (MoA) [32]. Specifically, MoA consists of a set of attention heads with different parameters, where each attention head can be regarded as an expert $f _ { 1 } , . . . , f _ { N }$ . For a given input, the gating function selects the TopK attention heads based on the importance scores of the input, and the final output is generated as a weighted sum of only these selected heads’ outputs.", + "metadata": { + "source_file": "MOE", + "chunk_index": 67, + "chunk_id": "MOE_chunk_0067", + "start_position": 74023, + "end_position": 74481, + "page_index": 12, + "word_count": 87, + "char_count": 458 + }, + "has_embedding": false + }, + { + "content": "he input, and the final output is generated as a weighted sum of only these selected heads’ outputs. This design allows the model to focus on the most relevant attention heads, enhancing performance without significantly increasing computational costs, and is highly scalable to support larger parameter sizes.", + "metadata": { + "source_file": "MOE", + "chunk_index": 68, + "chunk_id": "MOE_chunk_0068", + "start_position": 74481, + "end_position": 74791, + "page_index": 12, + "word_count": 47, + "char_count": 310 + }, + "has_embedding": false + }, + { + "content": "nificantly increasing computational costs, and is highly scalable to support larger parameter sizes. Compared to the standard multi-head attention mechanism [210], the key advantage of MoA lies in its use of a gating network to dynamically select the most relevant attention heads for each input token and compute a weighted sum of their outputs.", + "metadata": { + "source_file": "MOE", + "chunk_index": 69, + "chunk_id": "MOE_chunk_0069", + "start_position": 74791, + "end_position": 75137, + "page_index": 12, + "word_count": 54, + "char_count": 346 + }, + "has_embedding": false + }, + { + "content": "the most relevant attention heads for each input token and compute a weighted sum of their outputs. This approach eliminates the requirement for all attention heads to process every input, enabling MoA to achieve superior model performance with reduced computational overhead. Consequently, MoA exhibits enhanced scalability, and particularly this model can attain higher BLEU scores [302] than Transformer with 213 million parameters while requiring significantly less computation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 70, + "chunk_id": "MOE_chunk_0070", + "start_position": 75137, + "end_position": 75619, + "page_index": 12, + "word_count": 67, + "char_count": 482 + }, + "has_embedding": false + }, + { + "content": "s [302] than Transformer with 213 million parameters while requiring significantly less computation. Inspired by MoA, numerous studies have been proposed to improve upon this design. SwitchHead [31] attempts to independently introduce the MoE mechanism for each head’s key, query, value, and output projection, and employs a noncompetitive selection activation function.", + "metadata": { + "source_file": "MOE", + "chunk_index": 71, + "chunk_id": "MOE_chunk_0071", + "start_position": 75619, + "end_position": 75989, + "page_index": 12, + "word_count": 51, + "char_count": 370 + }, + "has_embedding": false + }, + { + "content": "ey, query, value, and output projection, and employs a noncompetitive selection activation function. This will therefore reduce the number of attention matrices that need to be computed, significantly lowering computational and memory requirements. MoH [33] enhances the standard MoE method by sharing heads and a two-stage routing strategy, and can further fine-tune pre-trained multi-head attention models into MoH models, enhancing their applicability.", + "metadata": { + "source_file": "MOE", + "chunk_index": 72, + "chunk_id": "MOE_chunk_0072", + "start_position": 75989, + "end_position": 76444, + "page_index": 12, + "word_count": 62, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "er fine-tune pre-trained multi-head attention models into MoH models, enhancing their applicability. In addition, this work integrates the proposed MoH framework with various model frameworks including the encoder-decoder architecture, such as ViT [1], DiT [214], and decoder-only LLMs [215], which are applied in various tasks and demonstrate great potentials of MoH. 3) Apply MoE to CNN layers.", + "metadata": { + "source_file": "MOE", + "chunk_index": 73, + "chunk_id": "MOE_chunk_0073", + "start_position": 76444, + "end_position": 76840, + "page_index": 12, + "word_count": 57, + "char_count": 396 + }, + "has_embedding": false + }, + { + "content": "3) Apply MoE to CNN layers. Integrating CNN into the MoE architecture can fully leverage CNN’s strengths in local feature extraction, achieving more refined task allocation and improved computational efficiency. As a result, many studies have attempted to effectively combine MoE with CNN. For example, in [140], a simple pMoE structure is adopted, where the MoE layer consists of a gating kernel (a trainable weight network) and multiple expert networks composed of two-layer CNN networks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 74, + "chunk_id": "MOE_chunk_0074", + "start_position": 76840, + "end_position": 77330, + "page_index": 12, + "word_count": 75, + "char_count": 490 + }, + "has_embedding": false + }, + { + "content": "kernel (a trainable weight network) and multiple expert networks composed of two-layer CNN networks. Image data possesses high local correlation and spatial hierarchical structure, which aligns well with the design philosophy of CNNs. As a result, Convolutional Mixture of Experts (CMoE) is often applied to computer vision tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 75, + "chunk_id": "MOE_chunk_0075", + "start_position": 77330, + "end_position": 77660, + "page_index": 13, + "word_count": 48, + "char_count": 330 + }, + "has_embedding": false + }, + { + "content": "As a result, Convolutional Mixture of Experts (CMoE) is often applied to computer vision tasks. For instance, [38] utilizes the MoE framework to decompose fine-grained classification problems into subspace problems, allowing each expert CNN network to focus on different subproblems and improving classification performance. Building on [38], [37] proposes an attention-based MoE framework to enhance the model’s generalization ability and classification performance under limited data conditions.", + "metadata": { + "source_file": "MOE", + "chunk_index": 76, + "chunk_id": "MOE_chunk_0076", + "start_position": 77660, + "end_position": 78157, + "page_index": 13, + "word_count": 66, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "nce the model’s generalization ability and classification performance under limited data conditions. [39] addresses the issue of parallel training of independent expert networks in MoE models, alleviating the need for multiple GPUs in large-scale supervised visual tasks. Meanwhile, [35] focuses on exploring how to enhance the interpretability of CNNs while maintaining model performance in computer vision tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 77, + "chunk_id": "MOE_chunk_0077", + "start_position": 78157, + "end_position": 78571, + "page_index": 13, + "word_count": 57, + "char_count": 414 + }, + "has_embedding": false + }, + { + "content": "o enhance the interpretability of CNNs while maintaining model performance in computer vision tasks. Additionally, a small number of works have explored the potential of CMoE in other domains, such as [36]. # C. Routing Strategy A critical consideration in the design of MoE is determining the level at which experts should specialize in knowledge. For instance, in computer vision, certain tasks may emphasize more on the global features, while others demand precise local perception.", + "metadata": { + "source_file": "MOE", + "chunk_index": 78, + "chunk_id": "MOE_chunk_0078", + "start_position": 78571, + "end_position": 79056, + "page_index": 13, + "word_count": 75, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "rtain tasks may emphasize more on the global features, while others demand precise local perception. Consequently, selecting an appropriate routing level—defined by the frequency of routing decisions—is essential to ensure the MoE model effectively meets the requirements of specific tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 79, + "chunk_id": "MOE_chunk_0079", + "start_position": 79056, + "end_position": 79346, + "page_index": 13, + "word_count": 40, + "char_count": 290 + }, + "has_embedding": false + }, + { + "content": "decisions—is essential to ensure the MoE model effectively meets the requirements of specific tasks. The following discussion extends the classification strategy proposed in Uni-Perceiver-MoE [40] and outlines several common routing strategies: token-level routing, modality-level routing, task-level routing, and otherlevel routing. 1) Token-Level Routing Strategy determines routing decisions based on token representations, making it the most classic routing approach.", + "metadata": { + "source_file": "MOE", + "chunk_index": 80, + "chunk_id": "MOE_chunk_0080", + "start_position": 79346, + "end_position": 79817, + "page_index": 13, + "word_count": 58, + "char_count": 471 + }, + "has_embedding": false + }, + { + "content": "mines routing decisions based on token representations, making it the most classic routing approach. Tokens also come in various types, among which the most common ones we encounter are text tokens and image tokens (patch tokens). In terms of text tokens, to mitigate underfitting and preserve representation diversity, MaskMoE [41] introduces a novel token-level routing strategy.", + "metadata": { + "source_file": "MOE", + "chunk_index": 81, + "chunk_id": "MOE_chunk_0081", + "start_position": 79817, + "end_position": 80198, + "page_index": 13, + "word_count": 56, + "char_count": 381 + }, + "has_embedding": false + }, + { + "content": "and preserve representation diversity, MaskMoE [41] introduces a novel token-level routing strategy. This approach generates a mask vector for each token in the vocabulary and adjusts the number of visible experts for tokens of varying frequencies before training. For infrequent tokens, MaskMoE restricts routing to a single expert via routing masks, ensuring consistent training for these tokens. For frequent tokens, it permits multiple visible experts to capture contextual nuances.", + "metadata": { + "source_file": "MOE", + "chunk_index": 82, + "chunk_id": "MOE_chunk_0082", + "start_position": 80198, + "end_position": 80684, + "page_index": 13, + "word_count": 69, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "For frequent tokens, it permits multiple visible experts to capture contextual nuances. Additionally, [42] proposes a token-level recurring routing strategy that employs recurrent neural networks to dynamically adjust expert selection based on input sequence context. This strategy improves the model’s accuracy in processing complex linguistic structures, optimizes computational resource utilization, and effectively addresses long-range dependencies.", + "metadata": { + "source_file": "MOE", + "chunk_index": 83, + "chunk_id": "MOE_chunk_0083", + "start_position": 80684, + "end_position": 81137, + "page_index": 13, + "word_count": 55, + "char_count": 453 + }, + "has_embedding": false + }, + { + "content": "es, optimizes computational resource utilization, and effectively addresses long-range dependencies. Consequently, it achieves enhanced efficiency and performance across diverse natural language processing tasks. The usage of patch tokens, as discussed in [140], is often built upon the ViT architecture. This strategy divides an image into multiple patches and dynamically routes each patch to the most suitable expert for processing.", + "metadata": { + "source_file": "MOE", + "chunk_index": 84, + "chunk_id": "MOE_chunk_0084", + "start_position": 81137, + "end_position": 81572, + "page_index": 13, + "word_count": 59, + "char_count": 435 + }, + "has_embedding": false + }, + { + "content": "into multiple patches and dynamically routes each patch to the most suitable expert for processing. By adaptively selecting experts based on the local features of the image, it optimizes computational resource utilization and enhances the model’s performance in handling complex visual tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 85, + "chunk_id": "MOE_chunk_0085", + "start_position": 81572, + "end_position": 81864, + "page_index": 13, + "word_count": 42, + "char_count": 292 + }, + "has_embedding": false + }, + { + "content": "tational resource utilization and enhances the model’s performance in handling complex visual tasks. Additionally, V-MoE [17] introduces a Batch Priority Routing (BPR) strategy, which 1) calculates the importance of each image patch, 2) sorts them in descending order of importance, and 3) assigns experts to patches accordingly.", + "metadata": { + "source_file": "MOE", + "chunk_index": 86, + "chunk_id": "MOE_chunk_0086", + "start_position": 81864, + "end_position": 82193, + "page_index": 13, + "word_count": 47, + "char_count": 329 + }, + "has_embedding": false + }, + { + "content": "tch, 2) sorts them in descending order of importance, and 3) assigns experts to patches accordingly. Experimental results demonstrate that BPR can maintain performance comparable to a dense model while processing only $1 5 \\% - 3 0 \\%$ of the image patches, showcasing significant advantages by standard Routing. Apart from these two common types, there are also audio tokens [36], time series token [45], etc., all of which can be freely combined with MoE to help the model achieve better learning performance.", + "metadata": { + "source_file": "MOE", + "chunk_index": 87, + "chunk_id": "MOE_chunk_0087", + "start_position": 82193, + "end_position": 82704, + "page_index": 14, + "word_count": 83, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "all of which can be freely combined with MoE to help the model achieve better learning performance. 2) Modality-Level Routing Strategy routes tokens based on their modality, emulating the practice of employing specialized encoders for distinct modalities to minimize interference between them. The Uni-MoE model [43] is designed to effectively process and understand multi-modal data through a structured approach.", + "metadata": { + "source_file": "MOE", + "chunk_index": 88, + "chunk_id": "MOE_chunk_0088", + "start_position": 82704, + "end_position": 83118, + "page_index": 14, + "word_count": 59, + "char_count": 414 + }, + "has_embedding": false + }, + { + "content": "3] is designed to effectively process and understand multi-modal data through a structured approach. First, it introduces connectors trained using cross-modal data to achieve data alignment, mapping diverse modalities into a unified language representation space. Simultaneously, it trains modality-specific expert systems on cross-modal instruction datasets, so as to enhance each expert’s specialized capabilities and activate their task-specific preferences.", + "metadata": { + "source_file": "MOE", + "chunk_index": 89, + "chunk_id": "MOE_chunk_0089", + "start_position": 83118, + "end_position": 83579, + "page_index": 14, + "word_count": 58, + "char_count": 461 + }, + "has_embedding": false + }, + { + "content": "o as to enhance each expert’s specialized capabilities and activate their task-specific preferences. Subsequently, the model utilizes LoRA [216] for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Following instruction tuning, Uni-MoE is evaluated on a comprehensive and diverse multi-modal dataset.", + "metadata": { + "source_file": "MOE", + "chunk_index": 90, + "chunk_id": "MOE_chunk_0090", + "start_position": 83579, + "end_position": 83949, + "page_index": 14, + "word_count": 45, + "char_count": 370 + }, + "has_embedding": false + }, + { + "content": "llowing instruction tuning, Uni-MoE is evaluated on a comprehensive and diverse multi-modal dataset. The results indicate that the model significantly reduces performance discrepancies when processing mixed data, improves collaboration efficiency among multiple experts, and enhances generalization capabilities, highlighting the potential of the MoE architecture in developing a unified multi-modal large language model.", + "metadata": { + "source_file": "MOE", + "chunk_index": 91, + "chunk_id": "MOE_chunk_0091", + "start_position": 83949, + "end_position": 84370, + "page_index": 14, + "word_count": 52, + "char_count": 421 + }, + "has_embedding": false + }, + { + "content": "ting the potential of the MoE architecture in developing a unified multi-modal large language model. 3) Task-Level Routing Strategy determines routing based on task IDs, ensuring that different tasks are routed to distinct experts, thereby effectively minimizing interference between tasks. This approach is particularly advantageous for multitask learning.", + "metadata": { + "source_file": "MOE", + "chunk_index": 92, + "chunk_id": "MOE_chunk_0092", + "start_position": 84370, + "end_position": 84727, + "page_index": 14, + "word_count": 48, + "char_count": 357 + }, + "has_embedding": false + }, + { + "content": "This approach is particularly advantageous for multitask learning. For instance, [44] explores multilingual machine translation tasks, where task boundaries are defined by target languages, language pairs, or unique task IDs. And the experts are selected at the task level according to these boundaries. Compared to token-level routing strategies, this approach only requires loading a subset of experts relevant to the current task during inference, rather than loading all experts of the entire model.", + "metadata": { + "source_file": "MOE", + "chunk_index": 93, + "chunk_id": "MOE_chunk_0093", + "start_position": 84727, + "end_position": 85230, + "page_index": 14, + "word_count": 73, + "char_count": 503 + }, + "has_embedding": false + }, + { + "content": "relevant to the current task during inference, rather than loading all experts of the entire model. This results in reduced communication costs between devices and lower memory usage. 4) Other-Level Routing Strategies encompass a variety of approaches, such as context-level and attribute-level routing strategies [40].", + "metadata": { + "source_file": "MOE", + "chunk_index": 94, + "chunk_id": "MOE_chunk_0094", + "start_position": 85230, + "end_position": 85549, + "page_index": 14, + "word_count": 45, + "char_count": 319 + }, + "has_embedding": false + }, + { + "content": "ncompass a variety of approaches, such as context-level and attribute-level routing strategies [40]. The context-level routing strategy employs global pooling to provide global context information to the router, enabling it to generate reliable routing strategies based on the contextual information of the current token representation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 95, + "chunk_id": "MOE_chunk_0095", + "start_position": 85549, + "end_position": 85885, + "page_index": 14, + "word_count": 45, + "char_count": 336 + }, + "has_embedding": false + }, + { + "content": "reliable routing strategies based on the contextual information of the current token representation. In contrast, attribute-level routing incorporates an 8- dimensional binary embedding, which includes attributes such as the modalities of the current task and token (indices 0- 5), the causation type of the model (index 6), and the token source (index 7). These rich information enables models to handle more complex and different tasks. # D. Training Strategies", + "metadata": { + "source_file": "MOE", + "chunk_index": 96, + "chunk_id": "MOE_chunk_0096", + "start_position": 85885, + "end_position": 86348, + "page_index": 14, + "word_count": 69, + "char_count": 463 + }, + "has_embedding": false + }, + { + "content": "Training Strategies Due to the sparse activations inherent in MoE-based architectures, directly applying the functions and procedures used for training dense models to MoE-based sparse models is not straightforward. To improve training effectiveness, achieve faster convergence, and enhance performance on target tasks, numerous studies like [15], [17], [16], [18], [46] have explored the methods for training these sparse models. In the following section, we summarize and discuss some representative techniques.", + "metadata": { + "source_file": "MOE", + "chunk_index": 97, + "chunk_id": "MOE_chunk_0097", + "start_position": 86348, + "end_position": 86861, + "page_index": 14, + "word_count": 70, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "In the following section, we summarize and discuss some representative techniques. 1) Auxiliary Loss Function Design. In addition to standard training losses, auxiliary loss functions are often introduced during MoE training to enhance learning performance, improve model efficiency, and stabilize the training process. One type of auxiliary losses widely used in practice is the load balancing loss, which aims to balance the allocation of inputs across all experts to fully utilize the capacity of the MoE.", + "metadata": { + "source_file": "MOE", + "chunk_index": 98, + "chunk_id": "MOE_chunk_0098", + "start_position": 86861, + "end_position": 87369, + "page_index": 14, + "word_count": 76, + "char_count": 508 + }, + "has_embedding": false + }, + { + "content": "ims to balance the allocation of inputs across all experts to fully utilize the capacity of the MoE. A well-known challenge in MoE training is the risk of model collapse, where a small subset of experts receives the majority of inputs, while others receive almost none, leading to an imbalance in expert utilization. To mitigate this issue, [16] proposes Importance and Load loss functions, which are defined as follows: $$\n\\operatorname { L o a d } ( X ) _ { i } = \\sum _ { x \\in X } P ( x , i )\n$$", + "metadata": { + "source_file": "MOE", + "chunk_index": 99, + "chunk_id": "MOE_chunk_0099", + "start_position": 87369, + "end_position": 87868, + "page_index": 14, + "word_count": 99, + "char_count": 499 + }, + "has_embedding": false + }, + { + "content": "e defined as follows: $$\n\\operatorname { L o a d } ( X ) _ { i } = \\sum _ { x \\in X } P ( x , i )\n$$ $$\n{ \\mathrm { I m p o r t a n c e } } ( X ) _ { i } = \\sum _ { x \\in X } G ( x ) _ { i }\n$$ $$\nL _ { \\mathrm { l o a d } } ( X ) = w _ { \\mathrm { l o a d } } \\cdot ( \\mathbf { C o V } ( \\mathbf { L o a d } ( X ) ) ) ^ { 2 }\n$$ $$\nL _ { \\mathrm { i m p o r t a n c e } } ( X ) = w _ { \\mathrm { i m p o r t a n c e } } \\cdot \\left( \\mathbf { C o V } ( \\mathrm { I m p o r t a n c e } ( X ) ) \\right) ^ { 2 }\n$$", + "metadata": { + "source_file": "MOE", + "chunk_index": 100, + "chunk_id": "MOE_chunk_0100", + "start_position": 87868, + "end_position": 88380, + "page_index": 14, + "word_count": 198, + "char_count": 512 + }, + "has_embedding": false + }, + { + "content": "c e } } \\cdot \\left( \\mathbf { C o V } ( \\mathrm { I m p o r t a n c e } ( X ) ) \\right) ^ { 2 }\n$$ where wimportance and $w _ { l o a d }$ are hyperparameters controlling the influence of expert importance balance and load balancing, respectively, and $P ( x , i )$ denotes the probability that $G ( x ) _ { i }$ is non-zero given new random noise selections. Here, $\\operatorname { C o V }$ stands for the coefficient of variation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 101, + "chunk_id": "MOE_chunk_0101", + "start_position": 88380, + "end_position": 88813, + "page_index": 14, + "word_count": 99, + "char_count": 433 + }, + "has_embedding": false + }, + { + "content": "Here, $\\operatorname { C o V }$ stands for the coefficient of variation. These two loss functions are incorporated into the overall model loss function to promote balanced usage and load distribution among experts, thereby enhancing model performance and stability. The Switch Transformer [15] (as shown in Equation (12)) simplifies the approach above based on [16], trading a slight reduction in accuracy for improved efficiency:", + "metadata": { + "source_file": "MOE", + "chunk_index": 102, + "chunk_id": "MOE_chunk_0102", + "start_position": 88813, + "end_position": 89243, + "page_index": 14, + "word_count": 65, + "char_count": 430 + }, + "has_embedding": false + }, + { + "content": "es the approach above based on [16], trading a slight reduction in accuracy for improved efficiency: $$\nf _ { i } = \\frac { 1 } { T } \\sum _ { x \\in { \\mathcal { B } } } \\mathbb { 1 } \\left\\{ \\operatorname { a r g m a x } G ( x ) = i \\right\\}\n$$ $$\nQ _ { i } = \\frac { 1 } { T } \\sum _ { x \\in B } G ( x ) _ { i } ,\n$$ $$\n\\mathrm { l o s s } = \\boldsymbol { \\alpha } \\cdot \\boldsymbol { N } \\cdot \\sum _ { i = 1 } ^ { N } f _ { i } \\cdot Q _ { i } . $$", + "metadata": { + "source_file": "MOE", + "chunk_index": 103, + "chunk_id": "MOE_chunk_0103", + "start_position": 89243, + "end_position": 89695, + "page_index": 14, + "word_count": 138, + "char_count": 452 + }, + "has_embedding": false + }, + { + "content": "$$ Here $T$ is the total number of tokens in the batch, $\\boldsymbol { B }$ is the set of tokens in the batch, $f _ { i }$ is the proportion of tokens assigned to expert $i$ , $Q _ { i }$ is the routing probability ratio assigned to expert $i$ , and $\\alpha$ is a hyperparameter used to control the weight of the auxiliary loss. Ideally, all experts should receive tasks evenly, with each processing an equal amount of input data, such that the expected values of $f$ and $Q$ are both $1 / N$ .", + "metadata": { + "source_file": "MOE", + "chunk_index": 104, + "chunk_id": "MOE_chunk_0104", + "start_position": 89695, + "end_position": 90189, + "page_index": 15, + "word_count": 99, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "ssing an equal amount of input data, such that the expected values of $f$ and $Q$ are both $1 / N$ . When the distribution is uniform, this auxiliary loss function reaches its minimum. Expert capacity [16] refers to the maximum number of data points each expert can process. Insufficient expert capacity may result in skipped input data during training, leading to under-trained experts; conversely, increasing capacity reduces dropped tokens but may also waste computational and memory resources.", + "metadata": { + "source_file": "MOE", + "chunk_index": 105, + "chunk_id": "MOE_chunk_0105", + "start_position": 90189, + "end_position": 90686, + "page_index": 15, + "word_count": 78, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "y, increasing capacity reduces dropped tokens but may also waste computational and memory resources. V-MoE [17] normalizes $L _ { I m p o r t a n c e }$ and $L _ { L o a d }$ when applying the auxiliary loss function to visual tasks, achieving a more stable training process. 2) Expert Selection. It is clear that the performance and efficiency of MoE models heavily depend on the expert selection for data inputs.", + "metadata": { + "source_file": "MOE", + "chunk_index": 106, + "chunk_id": "MOE_chunk_0106", + "start_position": 90686, + "end_position": 91100, + "page_index": 15, + "word_count": 78, + "char_count": 414 + }, + "has_embedding": false + }, + { + "content": "the performance and efficiency of MoE models heavily depend on the expert selection for data inputs. While the gating function primarily determines expert selection, additional design choices can further enhance MoE models. The TopK strategy, which selects the best $K$ experts among all experts to process the data, significantly increases model capacity without proportionally escalating computational costs.", + "metadata": { + "source_file": "MOE", + "chunk_index": 107, + "chunk_id": "MOE_chunk_0107", + "start_position": 91100, + "end_position": 91510, + "page_index": 15, + "word_count": 57, + "char_count": 410 + }, + "has_embedding": false + }, + { + "content": "data, significantly increases model capacity without proportionally escalating computational costs. For example, [16] has shown that the MoE model can scale to over 1000 times of the size of traditional neural networks while maintaining computational efficiency. On the other hand, the TopK strategy can be removed in order to further enhance the efficiency. For instance, V-MoE [17] replaces TopK with a Top-1 strategy to simplify computation and reduce resource wastage.", + "metadata": { + "source_file": "MOE", + "chunk_index": 108, + "chunk_id": "MOE_chunk_0108", + "start_position": 91510, + "end_position": 91982, + "page_index": 15, + "word_count": 70, + "char_count": 472 + }, + "has_embedding": false + }, + { + "content": "V-MoE [17] replaces TopK with a Top-1 strategy to simplify computation and reduce resource wastage. Moreover, randomness is usually introduced for expert selection inside the TopK function (as shown in Equation (1)), by adding Gaussian noise to expert activations during the selection process [16]. This mechanism encourages expert exploration with random selections and prevents over-reliance on specific experts, which mitigates load imbalance and optimizes resource utilization.", + "metadata": { + "source_file": "MOE", + "chunk_index": 109, + "chunk_id": "MOE_chunk_0109", + "start_position": 91982, + "end_position": 92463, + "page_index": 15, + "word_count": 66, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "ver-reliance on specific experts, which mitigates load imbalance and optimizes resource utilization. Dynamic expert selection mechanisms have also been explored in the literature. Notably, [46] proposes a Top-P routing strategy, which determines the number of activated experts at each time by setting a probability threshold $P$ .", + "metadata": { + "source_file": "MOE", + "chunk_index": 110, + "chunk_id": "MOE_chunk_0110", + "start_position": 92463, + "end_position": 92794, + "page_index": 15, + "word_count": 47, + "char_count": 331 + }, + "has_embedding": false + }, + { + "content": "ich determines the number of activated experts at each time by setting a probability threshold $P$ . For each input data, the gating network calculates a score for each expert, corresponding to a probability distribution of an expert being selected, and the experts are sorted in a descending order of their scores. The strategy then progressively accumulates the scores of the experts until the cumulative value exceeds $P$ , activating all accumulated experts to process the token.", + "metadata": { + "source_file": "MOE", + "chunk_index": 111, + "chunk_id": "MOE_chunk_0111", + "start_position": 92794, + "end_position": 93277, + "page_index": 15, + "word_count": 77, + "char_count": 483 + }, + "has_embedding": false + }, + { + "content": "ts until the cumulative value exceeds $P$ , activating all accumulated experts to process the token. This allows the model to adaptively adjust the number of selected experts based on input complexity, enabling flexible and efficient resource allocation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 112, + "chunk_id": "MOE_chunk_0112", + "start_position": 93277, + "end_position": 93531, + "page_index": 15, + "word_count": 38, + "char_count": 254 + }, + "has_embedding": false + }, + { + "content": "of selected experts based on input complexity, enabling flexible and efficient resource allocation. To reduce overfitting and improving generalization, [48] proposes a dropout regularization method tailored for the tree structure of Hierarchical Mixture of Experts (HMoE) [47], which randomly drops expert networks of different branches according to the hierarchical structure.", + "metadata": { + "source_file": "MOE", + "chunk_index": 113, + "chunk_id": "MOE_chunk_0113", + "start_position": 93531, + "end_position": 93908, + "page_index": 15, + "word_count": 50, + "char_count": 377 + }, + "has_embedding": false + }, + { + "content": "which randomly drops expert networks of different branches according to the hierarchical structure. Experimental results demonstrate that this method enhances model performance, providing smoother fitting outcomes, better generalization, and lower validation error rates compared to models without dropout. 3) Pipeline Design.", + "metadata": { + "source_file": "MOE", + "chunk_index": 114, + "chunk_id": "MOE_chunk_0114", + "start_position": 93908, + "end_position": 94234, + "page_index": 15, + "word_count": 41, + "char_count": 326 + }, + "has_embedding": false + }, + { + "content": "3) Pipeline Design. Given the sparsity nature and need of dynamic data allocation in MoE architectures, a well-designed pipeline plays a crucial role in the training of MoE models, in order to maximize the utilization of computational resources, reduce time and costs, and ensure stable convergence of the model. In general, the pipeline design for MoE seeks to optimize resource allocation and efficiently distribute data among experts.", + "metadata": { + "source_file": "MOE", + "chunk_index": 115, + "chunk_id": "MOE_chunk_0115", + "start_position": 94234, + "end_position": 94671, + "page_index": 15, + "word_count": 67, + "char_count": 437 + }, + "has_embedding": false + }, + { + "content": "design for MoE seeks to optimize resource allocation and efficiently distribute data among experts. As mentioned before, BPR [17] achieves sparsity reuse by prioritizing important samples for processing. The advantages of BPR lie in its efficient resource utilization and reduction of unnecessary computations. RMoE [18] designs a pipeline particularly for downstream tasks such as segmentation and detection.", + "metadata": { + "source_file": "MOE", + "chunk_index": 116, + "chunk_id": "MOE_chunk_0116", + "start_position": 94671, + "end_position": 95080, + "page_index": 15, + "word_count": 57, + "char_count": 409 + }, + "has_embedding": false + }, + { + "content": ". RMoE [18] designs a pipeline particularly for downstream tasks such as segmentation and detection. More specifically, RMoE decomposes the weights of MoE experts into core and residual weights, where the core weights inherit knowledge from pre-trained non-MoE models and only the residual weights will be finetuned. This will significantly shorten the training time and reduce the training costs. During inference, both sets of weights will be combined to ensure the good performance of the MoE model.", + "metadata": { + "source_file": "MOE", + "chunk_index": 117, + "chunk_id": "MOE_chunk_0117", + "start_position": 95080, + "end_position": 95582, + "page_index": 15, + "word_count": 77, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "ng inference, both sets of weights will be combined to ensure the good performance of the MoE model. # E. System Design The MoE architecture is gaining popularity in the edge deployment and capacity scaling of large models [15], [51], [52], offering significant flexibility and scalability.", + "metadata": { + "source_file": "MOE", + "chunk_index": 118, + "chunk_id": "MOE_chunk_0118", + "start_position": 95582, + "end_position": 95872, + "page_index": 15, + "word_count": 46, + "char_count": 290 + }, + "has_embedding": false + }, + { + "content": "capacity scaling of large models [15], [51], [52], offering significant flexibility and scalability. However, its nature of inherent non-uniform workload distribution and dynamic expert selection imposes strict requirements on the system’s resource allocation, communication efficiency, and overall performance optimization. This will introduce new system challenges such as increased synchronization overhead, hampering the efficiency and stability of model execution.", + "metadata": { + "source_file": "MOE", + "chunk_index": 119, + "chunk_id": "MOE_chunk_0119", + "start_position": 95872, + "end_position": 96341, + "page_index": 15, + "word_count": 58, + "char_count": 469 + }, + "has_embedding": false + }, + { + "content": "ch as increased synchronization overhead, hampering the efficiency and stability of model execution. In this section, we outline some common methods currently available to enhance the system designs for MoE from three dimensions: computation, communication, and memory. 1) Computation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 120, + "chunk_id": "MOE_chunk_0120", + "start_position": 96341, + "end_position": 96626, + "page_index": 15, + "word_count": 39, + "char_count": 285 + }, + "has_embedding": false + }, + { + "content": "1) Computation. In the application of MoE models, due to their inherent dynamic characteristics, there may be significant disparities in the number of tasks processed by different experts, making the issue of non-uniform workload distribution particularly pronounced. Particularly, in large-scale distributed system environments, standard MoE architectures require synchronization among expert operations [49], i.e., all experts must complete their current tasks before moving on to the next computation step.", + "metadata": { + "source_file": "MOE", + "chunk_index": 121, + "chunk_id": "MOE_chunk_0121", + "start_position": 96626, + "end_position": 97135, + "page_index": 16, + "word_count": 68, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": ", i.e., all experts must complete their current tasks before moving on to the next computation step. However, some experts may finish work earlier due to smaller assigned task volumes, leading to idle timeslots and wasted computational resources. Moreover, as the MoE model capacity expands, computational complexity significantly increases [15], intensifying the demand for better computation strategy design. Various attempts have been made in the literature to mitigate this problem.", + "metadata": { + "source_file": "MOE", + "chunk_index": 122, + "chunk_id": "MOE_chunk_0122", + "start_position": 97135, + "end_position": 97621, + "page_index": 16, + "word_count": 70, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "Various attempts have been made in the literature to mitigate this problem. The paper [15] proposes and discusses several parallel strategies, including data parallelism, expert parallelism, and model parallelism, but different parallel methods have varying requirements for the distribution of data and model parameters. To enable the system to quickly adapt to dynamic load changes, [50] designs a unified distribution layout to manage the model’s parameters and input data.", + "metadata": { + "source_file": "MOE", + "chunk_index": 123, + "chunk_id": "MOE_chunk_0123", + "start_position": 97621, + "end_position": 98097, + "page_index": 16, + "word_count": 69, + "char_count": 476 + }, + "has_embedding": false + }, + { + "content": "changes, [50] designs a unified distribution layout to manage the model’s parameters and input data. This can accommodate the distribution requirements of various parallel strategies, achieving zero-cost switching of parallel strategies. Based on this distribution, [50] also further develops multiple optimization techniques, such as the ALLto-ALL optimization algorithm mentioned later.", + "metadata": { + "source_file": "MOE", + "chunk_index": 124, + "chunk_id": "MOE_chunk_0124", + "start_position": 98097, + "end_position": 98485, + "page_index": 16, + "word_count": 50, + "char_count": 388 + }, + "has_embedding": false + }, + { + "content": "lops multiple optimization techniques, such as the ALLto-ALL optimization algorithm mentioned later. Moreover, Soft MoE [27] introduces an improved scheduling algorithm that uses gradient-based routing selection methods, making the computation process smoother and more efficient. This approach reduces unnecessary synchronization wait times, lowers overall synchronization overhead, and boosts system throughput and efficiency. DeepSeek-V3 [53] introduces several enhancements to the communication process.", + "metadata": { + "source_file": "MOE", + "chunk_index": 125, + "chunk_id": "MOE_chunk_0125", + "start_position": 98485, + "end_position": 98992, + "page_index": 16, + "word_count": 61, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "DeepSeek-V3 [53] introduces several enhancements to the communication process. Firstly, it concurrently processes two micro-batches with comparable computational loads, overlapping the attention mechanism and MoE component of one micro-batch with the dispatch and combine operations of another. This technique not only boosts throughput but also masks the overhead associated with all-to-all and tensor parallel communications, thereby substantially diminishing reliance on communication bandwidth.", + "metadata": { + "source_file": "MOE", + "chunk_index": 126, + "chunk_id": "MOE_chunk_0126", + "start_position": 98992, + "end_position": 99490, + "page_index": 16, + "word_count": 62, + "char_count": 498 + }, + "has_embedding": false + }, + { + "content": "nsor parallel communications, thereby substantially diminishing reliance on communication bandwidth. Furthermore, an FP8 format is employed for low-precision communication; activations are quantized to FP8 prior to upprojection in MoE using integral power-of-two scaling factors to mitigate quantization errors, a method similarly applied to activation gradients before down-projection in MoE.", + "metadata": { + "source_file": "MOE", + "chunk_index": 127, + "chunk_id": "MOE_chunk_0127", + "start_position": 99490, + "end_position": 99883, + "page_index": 16, + "word_count": 49, + "char_count": 393 + }, + "has_embedding": false + }, + { + "content": "antization errors, a method similarly applied to activation gradients before down-projection in MoE. Lastly, to alleviate all-to-all communication bottlenecks, particularly among GPUs, a more efficient processing strategy has been devised. The specific implementation is available as opensource on GitHub at https://github.com/deepseek-ai/DeepEP. 2) Communication.", + "metadata": { + "source_file": "MOE", + "chunk_index": 128, + "chunk_id": "MOE_chunk_0128", + "start_position": 99883, + "end_position": 100247, + "page_index": 16, + "word_count": 43, + "char_count": 364 + }, + "has_embedding": false + }, + { + "content": "2) Communication. In the training of MoE models, input data must be distributed to the experts via an All-to-All communication pattern, which usually results in a significant demand on the communication bandwidth. On the other hand, due to the dynamic nature of expert selection, the amount of communication in the system can substantially fluctuate, such that the communication demands between iterations can also be very different.", + "metadata": { + "source_file": "MOE", + "chunk_index": 129, + "chunk_id": "MOE_chunk_0129", + "start_position": 100247, + "end_position": 100680, + "page_index": 16, + "word_count": 66, + "char_count": 433 + }, + "has_embedding": false + }, + { + "content": "tially fluctuate, such that the communication demands between iterations can also be very different. Clearly, this communication pattern is difficult to predict and optimize, thereby increasing the risk of network congestion. Considering that only a portion of MoE models are activated at any given time, on-demand loading strategies [19] can be adopted when scheduling the model, i.e., weights are loaded into the on-chip memory only when the corresponding expert is selected.", + "metadata": { + "source_file": "MOE", + "chunk_index": 130, + "chunk_id": "MOE_chunk_0130", + "start_position": 100680, + "end_position": 101157, + "page_index": 16, + "word_count": 71, + "char_count": 477 + }, + "has_embedding": false + }, + { + "content": "el, i.e., weights are loaded into the on-chip memory only when the corresponding expert is selected. This method reduces frequent access to external DRAM, effectively alleviating the pressure on memory bandwidth. Moreover, different experts within the MoE can be assigned to distinct compute units or cores, achieving tasklevel parallel processing [15]. This strategy not only increases the system throughput but also fully exploits the parallelism provided by Multi-Chip Modules (MCMs).", + "metadata": { + "source_file": "MOE", + "chunk_index": 131, + "chunk_id": "MOE_chunk_0131", + "start_position": 101157, + "end_position": 101644, + "page_index": 16, + "word_count": 70, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "the system throughput but also fully exploits the parallelism provided by Multi-Chip Modules (MCMs). In addition to expert-level parallelism, other studies have proposed various parallelization strategies such as data parallelism, model parallelism or tensor parallelism [15], allowing more flexible design and the use of different parallel methods according to task characteristics [50], [54], [55].", + "metadata": { + "source_file": "MOE", + "chunk_index": 132, + "chunk_id": "MOE_chunk_0132", + "start_position": 101644, + "end_position": 102044, + "page_index": 16, + "word_count": 54, + "char_count": 400 + }, + "has_embedding": false + }, + { + "content": "design and the use of different parallel methods according to task characteristics [50], [54], [55]. To further optimize performance, systems such as TUTEL [50] and FasterMOE [49] simultaneously run the communication operations with other computational tasks to hide communication latency and reduce the impact of communication on overall runtime. Moreover, hardware features have also been utilized to motivate various communication patterns to reduce the need of bandwidth, e.g., EdgeMOE [51] and M3ViT [19].", + "metadata": { + "source_file": "MOE", + "chunk_index": 133, + "chunk_id": "MOE_chunk_0133", + "start_position": 102044, + "end_position": 102554, + "page_index": 16, + "word_count": 73, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "e various communication patterns to reduce the need of bandwidth, e.g., EdgeMOE [51] and M3ViT [19]. 3) Memory. The MoE model typically contains a large number of parameters due to the usage of multiple experts. This will need a large amount of memory, which sometimes may even exceed the storage capacity of a single device, thereby limiting the scalability of the MoE model. Moreover, due to the randomness and dynamics in expert selection, the memory access patterns of MoE models can become extremely complex.", + "metadata": { + "source_file": "MOE", + "chunk_index": 134, + "chunk_id": "MOE_chunk_0134", + "start_position": 102554, + "end_position": 103067, + "page_index": 17, + "word_count": 84, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "dynamics in expert selection, the memory access patterns of MoE models can become extremely complex. To address these issues, Switch-Transformer [15] proposes a parameter migration strategy that leverage the memory space of multiple devices in a collective manner, to store a large volume of parameters through parallel communication mechanisms. This method effectively distributes the pressure of parameter storage, enhancing the system’s overall storage capacity and computational efficiency.", + "metadata": { + "source_file": "MOE", + "chunk_index": 135, + "chunk_id": "MOE_chunk_0135", + "start_position": 103067, + "end_position": 103561, + "page_index": 17, + "word_count": 67, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "of parameter storage, enhancing the system’s overall storage capacity and computational efficiency. DeepSpeed-MoE [52] adopts a hierarchical storage management scheme, integrating local high-speed caches with remote slower storage to construct a multi-level storage architecture. This design ensures that frequently used parameters can be accessed quickly while also accommodating less frequently used but necessary parameters, thus achieving more efficient memory utilization without compromising performance.", + "metadata": { + "source_file": "MOE", + "chunk_index": 136, + "chunk_id": "MOE_chunk_0136", + "start_position": 103561, + "end_position": 104071, + "page_index": 17, + "word_count": 63, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "ssary parameters, thus achieving more efficient memory utilization without compromising performance. # III. ALGORITHMS Due to the effectiveness and the strength in handling diverse knowledge in data, there have been rapidly growing interests in applying the MoE architecture into various machine learning paradigms, leading to improved algorithm designs.", + "metadata": { + "source_file": "MOE", + "chunk_index": 137, + "chunk_id": "MOE_chunk_0137", + "start_position": 104071, + "end_position": 104425, + "page_index": 17, + "word_count": 48, + "char_count": 354 + }, + "has_embedding": false + }, + { + "content": "the MoE architecture into various machine learning paradigms, leading to improved algorithm designs. To showcase this and the great potentials of MoE in solving more complex learning scenarios, we will delve into the MoEbased algorithm designs for four widely investigated domains, i.e., continual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning. # A. Continual Learning", + "metadata": { + "source_file": "MOE", + "chunk_index": 138, + "chunk_id": "MOE_chunk_0138", + "start_position": 104425, + "end_position": 104840, + "page_index": 17, + "word_count": 56, + "char_count": 415 + }, + "has_embedding": false + }, + { + "content": "Continual Learning Continual learning [217] seeks to build an agent that can continuously learn a sequence of different tasks, corresponding to a non-stationary environment with data distribution shifts, to mimic the extraordinary lifelong learning capability of human beings. In particular, in continual learning a model is continuously adapted based on the new data without access to previous data.", + "metadata": { + "source_file": "MOE", + "chunk_index": 139, + "chunk_id": "MOE_chunk_0139", + "start_position": 104840, + "end_position": 105240, + "page_index": 17, + "word_count": 58, + "char_count": 400 + }, + "has_embedding": false + }, + { + "content": "nual learning a model is continuously adapted based on the new data without access to previous data. This will lead to a key challenge in continual learning, the so-called “Catastrophic Forgetting” [218], which refers to the phenomenon that neural networks can easily forget the previously acquired knowledge when learning the new task.", + "metadata": { + "source_file": "MOE", + "chunk_index": 140, + "chunk_id": "MOE_chunk_0140", + "start_position": 105240, + "end_position": 105576, + "page_index": 17, + "word_count": 52, + "char_count": 336 + }, + "has_embedding": false + }, + { + "content": "that neural networks can easily forget the previously acquired knowledge when learning the new task. Seeing that the MoE framework dynamically selects the most appropriate sub-model for each input, enabling the model to handle diverse tasks without a substantial increase in computational overhead, multiple efforts have been made in the literature to leverage MoE to facilitate better continual learning algorithm designs.", + "metadata": { + "source_file": "MOE", + "chunk_index": 141, + "chunk_id": "MOE_chunk_0141", + "start_position": 105576, + "end_position": 105999, + "page_index": 17, + "word_count": 61, + "char_count": 423 + }, + "has_embedding": false + }, + { + "content": "en made in the literature to leverage MoE to facilitate better continual learning algorithm designs. The idea of applying MoE in continual learning is first explored [60] which builds a model with a set of experts for task-free continual learning [219], i.e., a more general continual learning setup where the explicit task definition and task boundary information are unavailable.", + "metadata": { + "source_file": "MOE", + "chunk_index": 142, + "chunk_id": "MOE_chunk_0142", + "start_position": 105999, + "end_position": 106380, + "page_index": 17, + "word_count": 59, + "char_count": 381 + }, + "has_embedding": false + }, + { + "content": "ual learning setup where the explicit task definition and task boundary information are unavailable. In particular, by following the expansion-based continual learning approaches, a Continual Neural Dirichlet Process Mixture (CN-DPM) model is introduced, where each expert model in CN-DPM handles a subset of data and the number of expert models dynamically expands based on the Bayesian nonparametric framework.", + "metadata": { + "source_file": "MOE", + "chunk_index": 143, + "chunk_id": "MOE_chunk_0143", + "start_position": 106380, + "end_position": 106792, + "page_index": 17, + "word_count": 58, + "char_count": 412 + }, + "has_embedding": false + }, + { + "content": "a and the number of expert models dynamically expands based on the Bayesian nonparametric framework. However, the gating mechanism to determine the expert selection for current input data in [60] relies on a generative model for each expert. [65] improves over the design by showing that a gating mechanism based only on the input data is feasible.", + "metadata": { + "source_file": "MOE", + "chunk_index": 144, + "chunk_id": "MOE_chunk_0144", + "start_position": 106792, + "end_position": 107140, + "page_index": 17, + "word_count": 57, + "char_count": 348 + }, + "has_embedding": false + }, + { + "content": "mproves over the design by showing that a gating mechanism based only on the input data is feasible. In particular, [65] considers a hierarchical variational continual learning (HVCL) setup with multiple priors, and shows that leveraging multiple experts can alleviate problems in HVCL such as known task boundaries and increased computation cost.", + "metadata": { + "source_file": "MOE", + "chunk_index": 145, + "chunk_id": "MOE_chunk_0145", + "start_position": 107140, + "end_position": 107487, + "page_index": 17, + "word_count": 52, + "char_count": 347 + }, + "has_embedding": false + }, + { + "content": "experts can alleviate problems in HVCL such as known task boundaries and increased computation cost. To this end, a standard MoE model is built based on [16] where two different strategies are proposed to encourage expert diversity, which, as the authors believe, may mitigate forgetting since experts specialize in different tasks. Recently, pre-trained model based continual learning [220] has attracted much attention by leveraging the powerful pretrained models to facilitate better continual learning.", + "metadata": { + "source_file": "MOE", + "chunk_index": 146, + "chunk_id": "MOE_chunk_0146", + "start_position": 107487, + "end_position": 107993, + "page_index": 17, + "word_count": 73, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "much attention by leveraging the powerful pretrained models to facilitate better continual learning. This further spurs a new category of continual learning approaches, i.e., the prompt-based continual learning approaches [70], which have demonstrated superior performance compared to standard continual learning approaches. Thus motivated, there have emerged several attempts in leveraging MoE to design better prompt-based approaches for continual learning with pretrained models.", + "metadata": { + "source_file": "MOE", + "chunk_index": 147, + "chunk_id": "MOE_chunk_0147", + "start_position": 107993, + "end_position": 108475, + "page_index": 17, + "word_count": 62, + "char_count": 482 + }, + "has_embedding": false + }, + { + "content": "veraging MoE to design better prompt-based approaches for continual learning with pretrained models. Specifically, by shedding lights on the connection between self-attention in Vision Transformer [1] and a mixture of experts, [66] interprets applying prefix tuning in pre-trained models as adding new experts, which can be leveraged to facilitate efficient model adaptation for new tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 148, + "chunk_id": "MOE_chunk_0148", + "start_position": 108475, + "end_position": 108864, + "page_index": 17, + "word_count": 55, + "char_count": 389 + }, + "has_embedding": false + }, + { + "content": "s adding new experts, which can be leveraged to facilitate efficient model adaptation for new tasks. Based on this, a novel gating mechanism named Non-linear Residual Gates (NoRGa) is proposed to improve the parameter efficiency in prefix tuning, where non-linear activation functions and residual connections are introduced within the gating function. [63] develops a mixture of task-specific experts (MoTE) framework, where a task-specific adapter (i.e., expert) is trained for each new task.", + "metadata": { + "source_file": "MOE", + "chunk_index": 149, + "chunk_id": "MOE_chunk_0149", + "start_position": 108864, + "end_position": 109358, + "page_index": 18, + "word_count": 72, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "experts (MoTE) framework, where a task-specific adapter (i.e., expert) is trained for each new task. To enhance the feature robustness and reduce cross-task feature overlap, an expert evaluation strategy and an Expert Peer-Voting Mechanism are further introduced, where the most trustworthy experts will be selected for feature fusion at inference. Considering the recent breakthroughs in large language models, several studies have explored the usage of MoE in the continual adaptation of language models.", + "metadata": { + "source_file": "MOE", + "chunk_index": 150, + "chunk_id": "MOE_chunk_0150", + "start_position": 109358, + "end_position": 109864, + "page_index": 18, + "word_count": 73, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "dels, several studies have explored the usage of MoE in the continual adaptation of language models. [59] investigates the continual adaptation of pretrained language models, where an MoE-based architecture, i.e., Lifelong-MoE, is proposed to address the forgetting problem. In particular, new experts will be introduced for new data distributions, while regularizationbased strategies on both experts and gating functions are used to retain the knowledge for old tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 151, + "chunk_id": "MOE_chunk_0151", + "start_position": 109864, + "end_position": 110334, + "page_index": 18, + "word_count": 67, + "char_count": 470 + }, + "has_embedding": false + }, + { + "content": "ased strategies on both experts and gating functions are used to retain the knowledge for old tasks. A new architecture PMoE is proposed in [34] to address the forgetting for continual learning in large language models. By using shallow layers for general knowledge and deep layers for new knowledge, new experts are progressively added to deep layers, where a router efficiently allocates new knowledge to appropriate experts based on deep features.", + "metadata": { + "source_file": "MOE", + "chunk_index": 152, + "chunk_id": "MOE_chunk_0152", + "start_position": 110334, + "end_position": 110784, + "page_index": 18, + "word_count": 71, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "s, where a router efficiently allocates new knowledge to appropriate experts based on deep features. The application of MoE in continual adaptation based on vision-language models has also been studied very recently. [56] introduces the parameter-efficient MoE-Adapters framework for continual adaptation with the CLIP model [9].", + "metadata": { + "source_file": "MOE", + "chunk_index": 153, + "chunk_id": "MOE_chunk_0153", + "start_position": 110784, + "end_position": 111113, + "page_index": 18, + "word_count": 46, + "char_count": 329 + }, + "has_embedding": false + }, + { + "content": "ces the parameter-efficient MoE-Adapters framework for continual adaptation with the CLIP model [9]. This framework leverages Adapters as experts and employs a taskspecific router to select the most suitable experts for the current task, thereby accelerating adaptation and fostering expert collaboration.", + "metadata": { + "source_file": "MOE", + "chunk_index": 154, + "chunk_id": "MOE_chunk_0154", + "start_position": 111113, + "end_position": 111418, + "page_index": 18, + "word_count": 41, + "char_count": 305 + }, + "has_embedding": false + }, + { + "content": "le experts for the current task, thereby accelerating adaptation and fostering expert collaboration. Additionally, the authors propose a Distribution Discriminative Auto-Selector (DDAS) to enhance the model’s zero-shot recognition capabilities, which automatically allocates test data to either the MoE-Adapters or the original CLIP model, ensuring accurate predictions for both seen and unseen data.", + "metadata": { + "source_file": "MOE", + "chunk_index": 155, + "chunk_id": "MOE_chunk_0155", + "start_position": 111418, + "end_position": 111818, + "page_index": 18, + "word_count": 52, + "char_count": 400 + }, + "has_embedding": false + }, + { + "content": "oE-Adapters or the original CLIP model, ensuring accurate predictions for both seen and unseen data. [64] observes that the usage of a shared layer in MoE-based models can lead to unsatisfying performance for continual learning. To address this, an expert merging strategy is proposed to merge the two most frequently selected experts based on the tracking of expert usage. The merged experts will be used to update the least frequently selected expert.", + "metadata": { + "source_file": "MOE", + "chunk_index": 156, + "chunk_id": "MOE_chunk_0156", + "start_position": 111818, + "end_position": 112271, + "page_index": 18, + "word_count": 72, + "char_count": 453 + }, + "has_embedding": false + }, + { + "content": "The merged experts will be used to update the least frequently selected expert. This helps to prevent the same feature being learned as different features by multiple experts. Additionally, the least important parts of the model are regularly removed, saving computational resources. Moreover, the MoE-based models have been leveraged in various specific applications of continual learning.", + "metadata": { + "source_file": "MOE", + "chunk_index": 157, + "chunk_id": "MOE_chunk_0157", + "start_position": 112271, + "end_position": 112661, + "page_index": 18, + "word_count": 56, + "char_count": 390 + }, + "has_embedding": false + }, + { + "content": "er, the MoE-based models have been leveraged in various specific applications of continual learning. For example, [57] studies the problem of continual test time adaptation and introduces the Mixture-of-Activation-SparsityExperts (MoASE) adapter to address the forgetting problem therein.", + "metadata": { + "source_file": "MOE", + "chunk_index": 158, + "chunk_id": "MOE_chunk_0158", + "start_position": 112661, + "end_position": 112949, + "page_index": 18, + "word_count": 37, + "char_count": 288 + }, + "has_embedding": false + }, + { + "content": "the Mixture-of-Activation-SparsityExperts (MoASE) adapter to address the forgetting problem therein. By decomposing the neuron activation into high and low activation components, MoASE develops a Domain-Aware Gate to utilize domain information for expert combination and an Activation Sparsity Gate for more accurate feature decomposition. [67] studies the continual traffic forecasting problem and introduces a novel MoE-based model, i.e., TFMoE, to efficiently retain past knowledge.", + "metadata": { + "source_file": "MOE", + "chunk_index": 159, + "chunk_id": "MOE_chunk_0159", + "start_position": 112949, + "end_position": 113434, + "page_index": 18, + "word_count": 63, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "g problem and introduces a novel MoE-based model, i.e., TFMoE, to efficiently retain past knowledge. The traffic flow is divided into homogeneous groups, where each group is handled by an expert model. [69] applies MoE to continual medical image segmentation, updating only relevant experts for new data while fixing other network parameters.", + "metadata": { + "source_file": "MOE", + "chunk_index": 160, + "chunk_id": "MOE_chunk_0160", + "start_position": 113434, + "end_position": 113776, + "page_index": 18, + "word_count": 52, + "char_count": 342 + }, + "has_embedding": false + }, + { + "content": "age segmentation, updating only relevant experts for new data while fixing other network parameters. [139] exploits MoE in mobile edge computing (MEC) networks, dynamically selecting experts for task offloading while optimizing gating network parameters to minimize computational delays. There have also been some studies in the literature that leverage multiple expert models, instead of a single model, for continual learning.", + "metadata": { + "source_file": "MOE", + "chunk_index": 161, + "chunk_id": "MOE_chunk_0161", + "start_position": 113776, + "end_position": 114204, + "page_index": 18, + "word_count": 60, + "char_count": 428 + }, + "has_embedding": false + }, + { + "content": "literature that leverage multiple expert models, instead of a single model, for continual learning. For example, [71] proposes a framework where an expert model is trained for each task and a gating mechanism to select the relevant expert at test time. [72] uses a fixed number of small networks to learn all tasks in continual learning in parallel and shows that the performance can be better than a single big model.", + "metadata": { + "source_file": "MOE", + "chunk_index": 162, + "chunk_id": "MOE_chunk_0162", + "start_position": 114204, + "end_position": 114622, + "page_index": 18, + "word_count": 71, + "char_count": 418 + }, + "has_embedding": false + }, + { + "content": "continual learning in parallel and shows that the performance can be better than a single big model. [73] investigates the impact of different ensemble models on the performance of continual learning. The SEED method proposed in [61] optimizes the model ensemble training by selecting a single expert for new task learning based on Gaussian distribution similarity, ensuring effective learning of new tasks while preserving prior knowledge.", + "metadata": { + "source_file": "MOE", + "chunk_index": 163, + "chunk_id": "MOE_chunk_0163", + "start_position": 114622, + "end_position": 115062, + "page_index": 18, + "word_count": 66, + "char_count": 440 + }, + "has_embedding": false + }, + { + "content": "distribution similarity, ensuring effective learning of new tasks while preserving prior knowledge. EVOLVE [62] leverages multiple pre-trained models as experts to enhance self-supervised continual learning on local clients. In particular, EVOLVE employs an expert aggregation loss to distill guidance information and dynamically adjusts expert weights based on new task data.", + "metadata": { + "source_file": "MOE", + "chunk_index": 164, + "chunk_id": "MOE_chunk_0164", + "start_position": 115062, + "end_position": 115438, + "page_index": 18, + "word_count": 50, + "char_count": 376 + }, + "has_embedding": false + }, + { + "content": "loss to distill guidance information and dynamically adjusts expert weights based on new task data. While these studies do not exactly leverage the MoE architecture, they still demonstrate the great potentials of leveraging multiple experts to facilitate better continual learning. # B. Meta-Learning", + "metadata": { + "source_file": "MOE", + "chunk_index": 165, + "chunk_id": "MOE_chunk_0165", + "start_position": 115438, + "end_position": 115738, + "page_index": 18, + "word_count": 43, + "char_count": 300 + }, + "has_embedding": false + }, + { + "content": "Meta-Learning The core of meta-learning [221], [222], [223], [224], [225] lies in learning to learn, focusing on enabling models to quickly learn new tasks from a small amount of data, thereby improving the generalization and adaptability of machine learning systems. MoE can be used to enhance the rapid learning capability of meta-learning methods because it leverages multiple expert models to learn the distinct core features of each domain.", + "metadata": { + "source_file": "MOE", + "chunk_index": 166, + "chunk_id": "MOE_chunk_0166", + "start_position": 115738, + "end_position": 116183, + "page_index": 19, + "word_count": 68, + "char_count": 445 + }, + "has_embedding": false + }, + { + "content": "hods because it leverages multiple expert models to learn the distinct core features of each domain. By capturing the differences and connections between various tasks in a better way, MoE has great potentials in promoting more efficient learning and adaptation of new tasks by the model. In what follows, we will go over the recent development in the field of meta-learning by leveraging MoE models.", + "metadata": { + "source_file": "MOE", + "chunk_index": 167, + "chunk_id": "MOE_chunk_0167", + "start_position": 116183, + "end_position": 116583, + "page_index": 19, + "word_count": 65, + "char_count": 400 + }, + "has_embedding": false + }, + { + "content": "lows, we will go over the recent development in the field of meta-learning by leveraging MoE models. While the most popular meta-learning approach in the past decade is the optimization-based approach [226], [227] due to its simplicity and efficiency, neural processes (NPs) based approaches [228] recently gain increasing attention for metalearning, which directly learn meta-representations and do not require additional gradient updates during fast adaptation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 168, + "chunk_id": "MOE_chunk_0168", + "start_position": 116583, + "end_position": 117046, + "page_index": 19, + "word_count": 65, + "char_count": 463 + }, + "has_embedding": false + }, + { + "content": "ly learn meta-representations and do not require additional gradient updates during fast adaptation. However, the standard NPs consider use a single global Gaussian latentvariable to model tasks, leading to a lack of expressive power when dealing with complex tasks generated from a mixture of stochastic processes. To alleviate this issue, [70] proposes the Mixture of Expert Neural Processes (MoE-NPs), with multiple latent variables and discrete assignment latent variables.", + "metadata": { + "source_file": "MOE", + "chunk_index": 169, + "chunk_id": "MOE_chunk_0169", + "start_position": 117046, + "end_position": 117523, + "page_index": 19, + "word_count": 68, + "char_count": 477 + }, + "has_embedding": false + }, + { + "content": "Neural Processes (MoE-NPs), with multiple latent variables and discrete assignment latent variables. The multiple latent variables are used to construct a mixture of NPs experts to define various functional priors, and the discrete assignment variable controls the expert selection for each data point in prediction. An evidence lower bound is derived to optimize the proposed model, which demonstrates promising performance in both few-shot supervised learning and meta-reinforcement learning.", + "metadata": { + "source_file": "MOE", + "chunk_index": 170, + "chunk_id": "MOE_chunk_0170", + "start_position": 117523, + "end_position": 118017, + "page_index": 19, + "word_count": 68, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "nstrates promising performance in both few-shot supervised learning and meta-reinforcement learning. As meta-learning has demonstrated the superior capability in fast adaptation for novel scenarios, it has been recently applied to generalizable dynamical system reconstruction (DSR) [229] for learning across varying environments with a small amount of data, which is particular important for scientific discovery using scientific data.", + "metadata": { + "source_file": "MOE", + "chunk_index": 171, + "chunk_id": "MOE_chunk_0171", + "start_position": 118017, + "end_position": 118453, + "page_index": 19, + "word_count": 57, + "char_count": 436 + }, + "has_embedding": false + }, + { + "content": "small amount of data, which is particular important for scientific discovery using scientific data. While promising, metalearning typically relies on the assumption that all tasks (or environments) follow the same task distribution, limiting its applications in scenarios with less similar environments. To address this, [79] proposes the Mixture of Experts Reconstructors (MixER) by augmenting existing contextual meta-learning approaches [230] with the Top-1 MoE architecture.", + "metadata": { + "source_file": "MOE", + "chunk_index": 172, + "chunk_id": "MOE_chunk_0172", + "start_position": 118453, + "end_position": 118931, + "page_index": 19, + "word_count": 64, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "R) by augmenting existing contextual meta-learning approaches [230] with the Top-1 MoE architecture. In particular, MixER consists of multiple experts, each corresponding to a meta-model to capture the shared knowledge, and a linear gating function which takes the context information, instead of state vectors, as input. An unsupervised routing mechanism is further designed to optimize the MoE-based models.", + "metadata": { + "source_file": "MOE", + "chunk_index": 173, + "chunk_id": "MOE_chunk_0173", + "start_position": 118931, + "end_position": 119340, + "page_index": 19, + "word_count": 58, + "char_count": 409 + }, + "has_embedding": false + }, + { + "content": "An unsupervised routing mechanism is further designed to optimize the MoE-based models. Besides these studies, MoE has also been leveraged together with meta-learning for various applications. Domain adaptation (DA) [231] is a subfield of transfer learning which seeks to adapt the model trained for the source domain to perform well on a related but different target domain. The standard formation of DA considers the transfer from a single domain, whereas multiple sources can be available in practice.", + "metadata": { + "source_file": "MOE", + "chunk_index": 174, + "chunk_id": "MOE_chunk_0174", + "start_position": 119340, + "end_position": 119844, + "page_index": 19, + "word_count": 77, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "considers the transfer from a single domain, whereas multiple sources can be available in practice. However, most existing methods use a single model to learn all source tasks. To address this, [77] leverages MoE models to explicitly characterize the relationships between different source domains and the target domain, where the prediction for a target example will be based on a weighted combination of all experts’ predictions.", + "metadata": { + "source_file": "MOE", + "chunk_index": 175, + "chunk_id": "MOE_chunk_0175", + "start_position": 119844, + "end_position": 120275, + "page_index": 19, + "word_count": 66, + "char_count": 431 + }, + "has_embedding": false + }, + { + "content": "prediction for a target example will be based on a weighted combination of all experts’ predictions. Here the weights capture the similarity of the target example with each source domain, which are learned through metric-based meta-learning approaches [232] by constructing a meta-training procedure with multiple multisource-single-target pairs.", + "metadata": { + "source_file": "MOE", + "chunk_index": 176, + "chunk_id": "MOE_chunk_0176", + "start_position": 120275, + "end_position": 120621, + "page_index": 19, + "word_count": 47, + "char_count": 346 + }, + "has_embedding": false + }, + { + "content": "aches [232] by constructing a meta-training procedure with multiple multisource-single-target pairs. [74] investigates a slightly different problem where some unlabeled data from the target domain will be exploited, and propose Meta-Distillation of MoE where a student model is built from each multi-source-single-target pair. Here, a MoE model is used as a teacher student, and each expert is separately trained using supervised learning on each source domain to extract its discriminative features.", + "metadata": { + "source_file": "MOE", + "chunk_index": 177, + "chunk_id": "MOE_chunk_0177", + "start_position": 120621, + "end_position": 121121, + "page_index": 19, + "word_count": 71, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "tely trained using supervised learning on each source domain to extract its discriminative features. For domain adaptation, the unlabeled data from the target domain will be passed through all experts and the knowledge from all experts will be aggregated by an aggregator to guide the distillation from the teacher to the student. The student model and the aggregator will be jointly trained using optimization based meta-learning.", + "metadata": { + "source_file": "MOE", + "chunk_index": 178, + "chunk_id": "MOE_chunk_0178", + "start_position": 121121, + "end_position": 121552, + "page_index": 19, + "word_count": 66, + "char_count": 431 + }, + "has_embedding": false + }, + { + "content": "The student model and the aggregator will be jointly trained using optimization based meta-learning. Other studies, which also leverage MoE together with metalearning, investigate some specific applications of domain adaptation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 179, + "chunk_id": "MOE_chunk_0179", + "start_position": 121552, + "end_position": 121780, + "page_index": 19, + "word_count": 30, + "char_count": 228 + }, + "has_embedding": false + }, + { + "content": "everage MoE together with metalearning, investigate some specific applications of domain adaptation. For instance, [75] studies the domain generalizable person re-identification task (DG ReID), where each expert in the MoE model learns the knowledge from one source domain and all the features from these experts are integrated based on an adaptive voting process for the unseen target domain.", + "metadata": { + "source_file": "MOE", + "chunk_index": 180, + "chunk_id": "MOE_chunk_0180", + "start_position": 121780, + "end_position": 122173, + "page_index": 19, + "word_count": 58, + "char_count": 393 + }, + "has_embedding": false + }, + { + "content": "from these experts are integrated based on an adaptive voting process for the unseen target domain. As the specific target domain is generally unknown during training, an optimization-based meta-learning approach is proposed to train the voting network, which is jointly trained with the expert networks given their couplings in the algorithm design.", + "metadata": { + "source_file": "MOE", + "chunk_index": 181, + "chunk_id": "MOE_chunk_0181", + "start_position": 122173, + "end_position": 122523, + "page_index": 19, + "word_count": 52, + "char_count": 350 + }, + "has_embedding": false + }, + { + "content": "rk, which is jointly trained with the expert networks given their couplings in the algorithm design. [78] shares the same design philosophy as [75] but studies the domain generalization of face anti-spoofing, where the domain expert models are meta-trained using optimizationbased methods. [76] investigates the generalization of multiaccess control in heterogeneous wireless networks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 182, + "chunk_id": "MOE_chunk_0182", + "start_position": 122523, + "end_position": 122908, + "page_index": 19, + "word_count": 53, + "char_count": 385 + }, + "has_embedding": false + }, + { + "content": "[76] investigates the generalization of multiaccess control in heterogeneous wireless networks. Traditional meta-reinforcement learning (meta-RL) methods may not fully capture the subtle differences between different tasks, leading to insufficient adaptability in new environments [233]. When designing a General Multiple Access (GMA) protocol, the challenges posed by varying network configurations in different testing environments need to be considered.", + "metadata": { + "source_file": "MOE", + "chunk_index": 183, + "chunk_id": "MOE_chunk_0183", + "start_position": 122908, + "end_position": 123364, + "page_index": 19, + "word_count": 57, + "char_count": 456 + }, + "has_embedding": false + }, + { + "content": "ges posed by varying network configurations in different testing environments need to be considered. [76] thus introduces the MoE model to enhance the model’s representational capacity and reduce overfitting to specific tasks [203]. Specifically, an MoE-enhanced encoder network is introduced in designing the GMA protocol, where each expert model in the linear gating MoE inside the encoder independently encodes each state transition into latent representations.", + "metadata": { + "source_file": "MOE", + "chunk_index": 184, + "chunk_id": "MOE_chunk_0184", + "start_position": 123364, + "end_position": 123828, + "page_index": 20, + "word_count": 65, + "char_count": 464 + }, + "has_embedding": false + }, + { + "content": "ting MoE inside the encoder independently encodes each state transition into latent representations. These latent representations are then combined to generate a final comprehensive task representation, which will be leveraged by SAC [234] for individual protocol learning within meta-RL of the generalizable GMA protocol learning. # C. Multi-task Learning", + "metadata": { + "source_file": "MOE", + "chunk_index": 185, + "chunk_id": "MOE_chunk_0185", + "start_position": 123828, + "end_position": 124184, + "page_index": 20, + "word_count": 49, + "char_count": 356 + }, + "has_embedding": false + }, + { + "content": "Multi-task Learning Multi-task learning (MTL) [235], [236], [237] is a machine learning paradigm whose core idea is to simultaneously learn multiple related tasks to improve the generalization ability and performance of the model. Essentially, it provides the model with rich prior knowledge to enhance its performance. This determines that multi-task learning algorithms need to leverage shared information among tasks, typically achieved by sharing part of the model’s parameters or representations.", + "metadata": { + "source_file": "MOE", + "chunk_index": 186, + "chunk_id": "MOE_chunk_0186", + "start_position": 124184, + "end_position": 124685, + "page_index": 20, + "word_count": 70, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "mation among tasks, typically achieved by sharing part of the model’s parameters or representations. However, this approach has exposed some shortcomings when dealing with complex data [93]. The MoE model, on the other hand, can intelligently select the most suitable sub-model for processing based on the characteristics of the input data, naturally decoupling different tasks and effectively handling the complex relationships between them.", + "metadata": { + "source_file": "MOE", + "chunk_index": 187, + "chunk_id": "MOE_chunk_0187", + "start_position": 124685, + "end_position": 125127, + "page_index": 20, + "word_count": 63, + "char_count": 442 + }, + "has_embedding": false + }, + { + "content": "aturally decoupling different tasks and effectively handling the complex relationships between them. This gives MoE a greater advantage when dealing with complex tasks [87], and as a result, it has gradually gained more attention and been applied to many important sub-tasks in multi-task learning.", + "metadata": { + "source_file": "MOE", + "chunk_index": 188, + "chunk_id": "MOE_chunk_0188", + "start_position": 125127, + "end_position": 125425, + "page_index": 20, + "word_count": 44, + "char_count": 298 + }, + "has_embedding": false + }, + { + "content": "gradually gained more attention and been applied to many important sub-tasks in multi-task learning. To more efficiently handle the relationships among multiple tasks in multi-task learning, [93] proposes an important variant of MoE called Multi-gate Mixture-of-Experts (MMoE), which sets up a separate gating network for each task. The gating network can further select different expert networks based on the specific characteristics of the current task, decoupling each task into different gate functions.", + "metadata": { + "source_file": "MOE", + "chunk_index": 189, + "chunk_id": "MOE_chunk_0189", + "start_position": 125425, + "end_position": 125932, + "page_index": 20, + "word_count": 72, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "he specific characteristics of the current task, decoupling each task into different gate functions. This avoids the mutual interference of tasks with large differences, and alleviates the significant performance degradation of traditional methods when processing multi-task data with large differences due to shared underlying networks. [95] finds that MMoE still cannot fully resolve the issue of Negative Transfer, and in some tasks, its performance is even worse than that of single-task models [95].", + "metadata": { + "source_file": "MOE", + "chunk_index": 190, + "chunk_id": "MOE_chunk_0190", + "start_position": 125932, + "end_position": 126436, + "page_index": 20, + "word_count": 73, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "ive Transfer, and in some tasks, its performance is even worse than that of single-task models [95]. As a result, they designe several optimization strategies to further mitigate the Negative Transfer problem in MMoE by penalizing overly similar experts, enhancing the fine-grained interaction among experts, and balancing the importance of tasks with varying amounts of data during model training. Multi-task reinforcement learning is an important branch of multi-task learning [238].", + "metadata": { + "source_file": "MOE", + "chunk_index": 191, + "chunk_id": "MOE_chunk_0191", + "start_position": 126436, + "end_position": 126921, + "page_index": 20, + "word_count": 70, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "Multi-task reinforcement learning is an important branch of multi-task learning [238]. It aims to promote the learning of diverse skills by agents to enhance their ability to handle complex tasks. However, existing methods lack guarantees on the diversity of learned representations, which may lead to representation collapse into similar representations, thus limiting their generalization ability [96], [239], [240], [241], [242].", + "metadata": { + "source_file": "MOE", + "chunk_index": 192, + "chunk_id": "MOE_chunk_0192", + "start_position": 126921, + "end_position": 127353, + "page_index": 20, + "word_count": 60, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "imilar representations, thus limiting their generalization ability [96], [239], [240], [241], [242]. To address this issue, [80] introduces a method called Mixture of Orthogonal Experts (MOOR), which utilizes multiple expert models responsible for generating different representations. In this case, each expert is responsible for different aspects of the task, encouraging the model to learn more diverse skills.", + "metadata": { + "source_file": "MOE", + "chunk_index": 193, + "chunk_id": "MOE_chunk_0193", + "start_position": 127353, + "end_position": 127766, + "page_index": 20, + "word_count": 57, + "char_count": 413 + }, + "has_embedding": false + }, + { + "content": "s responsible for different aspects of the task, encouraging the model to learn more diverse skills. To ensure efficient differentiations among experts, MOOR introduces the Gram-Schmidt orthogonalization method into MoE to force each expert to generate mutually orthogonal features, further limiting the possibility of experts generating redundant representations.", + "metadata": { + "source_file": "MOE", + "chunk_index": 194, + "chunk_id": "MOE_chunk_0194", + "start_position": 127766, + "end_position": 128130, + "page_index": 20, + "word_count": 48, + "char_count": 364 + }, + "has_embedding": false + }, + { + "content": "thogonal features, further limiting the possibility of experts generating redundant representations. [96] investigates contextual multitask RL and proposed a novel approach to encode an input observation into multiple representations using a mixture of encoders. These representations correspond to different skills or objects, and can be selected for any given task based on the context information.", + "metadata": { + "source_file": "MOE", + "chunk_index": 195, + "chunk_id": "MOE_chunk_0195", + "start_position": 128130, + "end_position": 128530, + "page_index": 20, + "word_count": 55, + "char_count": 400 + }, + "has_embedding": false + }, + { + "content": "ifferent skills or objects, and can be selected for any given task based on the context information. This approach gives the learning agent a more fine-grained control on the information shared across tasks and alleviates negative interference. Instead of naively sharing parameters across all tasks in traditional approaches, [85] proposes an attention-based MoE approach for multi-task reinforcement learning, which seeks to learn a compositional policy for each task.", + "metadata": { + "source_file": "MOE", + "chunk_index": 196, + "chunk_id": "MOE_chunk_0196", + "start_position": 128530, + "end_position": 129000, + "page_index": 20, + "word_count": 68, + "char_count": 470 + }, + "has_embedding": false + }, + { + "content": "ch for multi-task reinforcement learning, which seeks to learn a compositional policy for each task. In particular, each expert network learns task-specific skills and specializes in different parts of the multi-task representation space. An attention module was fu introduced to integrate the expert outputs, we propose an attention module to generate connections between tasks and experts to achieve the best performance automatically.", + "metadata": { + "source_file": "MOE", + "chunk_index": 197, + "chunk_id": "MOE_chunk_0197", + "start_position": 129000, + "end_position": 129437, + "page_index": 21, + "word_count": 62, + "char_count": 437 + }, + "has_embedding": false + }, + { + "content": "ule to generate connections between tasks and experts to achieve the best performance automatically. Multi-task learning techniques have also garnered significant attention in recommendation systems because they can simultaneously meet the modeling needs of multiple perspectives, improving recommendation performance. However, many existing multi-task recommendation systems struggle to balance parameter sharing and resource utilization.", + "metadata": { + "source_file": "MOE", + "chunk_index": 198, + "chunk_id": "MOE_chunk_0198", + "start_position": 129437, + "end_position": 129876, + "page_index": 21, + "word_count": 53, + "char_count": 439 + }, + "has_embedding": false + }, + { + "content": "ng multi-task recommendation systems struggle to balance parameter sharing and resource utilization. Some MoE-based methods, while more flexible, also face issues such as unstable training or resource waste [93], [13], [99]. [92] improves the standard MoE framework by proposing a new framework called Mixture-of-Masked-Experts (MoME).", + "metadata": { + "source_file": "MOE", + "chunk_index": 199, + "chunk_id": "MOE_chunk_0199", + "start_position": 129876, + "end_position": 130211, + "page_index": 21, + "word_count": 45, + "char_count": 335 + }, + "has_embedding": false + }, + { + "content": "ves the standard MoE framework by proposing a new framework called Mixture-of-Masked-Experts (MoME). First, MoME no longer trains independent sub-networks for each expert but extracts expert sub-networks from an over-parameterized base network, generating diverse expert networks by learning different binary masks. Thus, during training, only one base network and a set of binary masks need to be trained, effectively saving resources.", + "metadata": { + "source_file": "MOE", + "chunk_index": 200, + "chunk_id": "MOE_chunk_0200", + "start_position": 130211, + "end_position": 130647, + "page_index": 21, + "word_count": 61, + "char_count": 436 + }, + "has_embedding": false + }, + { + "content": "g, only one base network and a set of binary masks need to be trained, effectively saving resources. Additionally, MoME designs multi-level masks: neuron-level masks are used to filter out unimportant neurons in the base network, while weight-level masks are used to generate diverse expert networks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 201, + "chunk_id": "MOE_chunk_0201", + "start_position": 130647, + "end_position": 130947, + "page_index": 21, + "word_count": 46, + "char_count": 300 + }, + "has_embedding": false + }, + { + "content": "neurons in the base network, while weight-level masks are used to generate diverse expert networks. To further enhance the robustness of the mask learning process, MoME uses a probability formula based on an approximate Bernoulli distribution to determine mask elements and achieves model sparsity through $L _ { 0 }$ regularization, enabling efficient parameter sharing.", + "metadata": { + "source_file": "MOE", + "chunk_index": 202, + "chunk_id": "MOE_chunk_0202", + "start_position": 130947, + "end_position": 131318, + "page_index": 21, + "word_count": 55, + "char_count": 371 + }, + "has_embedding": false + }, + { + "content": "nd achieves model sparsity through $L _ { 0 }$ regularization, enabling efficient parameter sharing. [76] also focuses on recommendation system design, noting that existing multitask learning models [93], [98] typically use MLP as the expert model. However, using MLP models may not generate distinctive features for different tasks, leading to gradient conflicts and thus affecting model performance.", + "metadata": { + "source_file": "MOE", + "chunk_index": 203, + "chunk_id": "MOE_chunk_0203", + "start_position": 131318, + "end_position": 131719, + "page_index": 21, + "word_count": 58, + "char_count": 401 + }, + "has_embedding": false + }, + { + "content": "ve features for different tasks, leading to gradient conflicts and thus affecting model performance. Therefore, this work proposes a new expert network called the Task-Intensive Expert Model, whose parameters are specifically generated by a hyper-network based on different task embeddings, making it more distinctive and alleviating gradient conflict issues.", + "metadata": { + "source_file": "MOE", + "chunk_index": 204, + "chunk_id": "MOE_chunk_0204", + "start_position": 131719, + "end_position": 132078, + "page_index": 21, + "word_count": 49, + "char_count": 359 + }, + "has_embedding": false + }, + { + "content": "d on different task embeddings, making it more distinctive and alleviating gradient conflict issues. [91] further investigates multi-domain multi-task recommendation tasks, where multi-domain scenarios introduce more complex data dependencies that existing methods cannot handle well [243]. [91] decouples the originally complex tasks and introduces shared expert modules, domain expert modules, and task expert modules using MoE.", + "metadata": { + "source_file": "MOE", + "chunk_index": 205, + "chunk_id": "MOE_chunk_0205", + "start_position": 132078, + "end_position": 132508, + "page_index": 21, + "word_count": 56, + "char_count": 430 + }, + "has_embedding": false + }, + { + "content": "asks and introduces shared expert modules, domain expert modules, and task expert modules using MoE. These modules learn cross-domain and cross-task common knowledge, domainspecific user preferences, and task-specific user preferences, respectively , enabling the model to capture user preferences from multiple perspectives and better handle complex dependencies between domains and tasks. Tasks in machine vision encompass various types, each with its corresponding deep models.", + "metadata": { + "source_file": "MOE", + "chunk_index": 206, + "chunk_id": "MOE_chunk_0206", + "start_position": 132508, + "end_position": 132988, + "page_index": 21, + "word_count": 64, + "char_count": 480 + }, + "has_embedding": false + }, + { + "content": "Tasks in machine vision encompass various types, each with its corresponding deep models. However, many of these tasks often follow similar pipeline designs [81]. Aggregating the models of these similar tasks into a multi-task model can significantly improve the efficiency of training and inference while maintaining the performance of individual tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 207, + "chunk_id": "MOE_chunk_0207", + "start_position": 132988, + "end_position": 133342, + "page_index": 21, + "word_count": 51, + "char_count": 354 + }, + "has_embedding": false + }, + { + "content": "rove the efficiency of training and inference while maintaining the performance of individual tasks. Considering that MoE not only allows for flexible model expansion but also handles dependencies between different tasks, it is frequently used in the design of visual multi-task models. [89], [19], [97] primarily apply MoE to improve the encoder.", + "metadata": { + "source_file": "MOE", + "chunk_index": 208, + "chunk_id": "MOE_chunk_0208", + "start_position": 133342, + "end_position": 133689, + "page_index": 21, + "word_count": 52, + "char_count": 347 + }, + "has_embedding": false + }, + { + "content": "[89], [19], [97] primarily apply MoE to improve the encoder. [89] introduces MoE layers into the attention modules and MLP blocks of ViT [1] and designs a new loss function to encourage strong yet sparse dependencies between tasks and experts, ensuring that each task is only related to a few experts. This can reduce the likelihood of gradient conflicts between tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 209, + "chunk_id": "MOE_chunk_0209", + "start_position": 133689, + "end_position": 134058, + "page_index": 21, + "word_count": 61, + "char_count": 369 + }, + "has_embedding": false + }, + { + "content": "This can reduce the likelihood of gradient conflicts between tasks. [19] also incorporates MoE layers into ViT and discusses the advantages and disadvantages of two gating functions in application scenarios: one configures a different router for each task, while the other uses a shared router to achieve dynamic routing by concatenating task embeddings with input tokens. It was found that the first gating method is more effective for handling multiple tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 210, + "chunk_id": "MOE_chunk_0210", + "start_position": 134058, + "end_position": 134519, + "page_index": 21, + "word_count": 71, + "char_count": 461 + }, + "has_embedding": false + }, + { + "content": "It was found that the first gating method is more effective for handling multiple tasks. [97] inserts sparsely activated MoE layers into ViT and computes the model’s loss on the validation set during each iteration. By using the loss as feedback to dynamically increase or decrease the number of experts, the cumbersome process of manually adjusting model size can be avoided. A few works have also attempted to introduce MoE into the decoder.", + "metadata": { + "source_file": "MOE", + "chunk_index": 211, + "chunk_id": "MOE_chunk_0211", + "start_position": 134519, + "end_position": 134962, + "page_index": 21, + "word_count": 73, + "char_count": 443 + }, + "has_embedding": false + }, + { + "content": "A few works have also attempted to introduce MoE into the decoder. [86] finds that different task decoders, due to shared decoding parameters, result in a static feature decoding process, leading to insufficient distinction in taskspecific features. Therefore, MoE was introduced as a decoder to decompose backbone features into task-agnostic features from different aspects, making the decoding process of taskspecific features more fine-grained.", + "metadata": { + "source_file": "MOE", + "chunk_index": 212, + "chunk_id": "MOE_chunk_0212", + "start_position": 134962, + "end_position": 135409, + "page_index": 21, + "word_count": 63, + "char_count": 447 + }, + "has_embedding": false + }, + { + "content": "ures from different aspects, making the decoding process of taskspecific features more fine-grained. This work also utilizes convolutional operations to expand the receptive field of the gating network, which enriches the contextual information in the decision-making process. [81] argues that in traditional MoE structures, experts can only interact through routers, thus only establishing connections between some tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 213, + "chunk_id": "MOE_chunk_0213", + "start_position": 135409, + "end_position": 135831, + "page_index": 21, + "word_count": 57, + "char_count": 422 + }, + "has_embedding": false + }, + { + "content": "s, experts can only interact through routers, thus only establishing connections between some tasks. By adding a $3 { \\times } 3$ convolutional layer after the encoder, which is optimized by all tasks, it can learn common features across all tasks, providing the model with more global information to aid decision-making. The combination of mutli-task learning and MoE has further been explored in other application scenarios.", + "metadata": { + "source_file": "MOE", + "chunk_index": 214, + "chunk_id": "MOE_chunk_0214", + "start_position": 135831, + "end_position": 136257, + "page_index": 21, + "word_count": 66, + "char_count": 426 + }, + "has_embedding": false + }, + { + "content": "combination of mutli-task learning and MoE has further been explored in other application scenarios. [83] replaces the expert networks in MoE with LSTMs [244], leveraging the advantages of LSTMs in handling sequential data to improve performance in processing user activity data streams.", + "metadata": { + "source_file": "MOE", + "chunk_index": 215, + "chunk_id": "MOE_chunk_0215", + "start_position": 136257, + "end_position": 136544, + "page_index": 21, + "word_count": 42, + "char_count": 287 + }, + "has_embedding": false + }, + { + "content": "f LSTMs in handling sequential data to improve performance in processing user activity data streams. The work in [94] applies MMoE to Digital Rock Physics Analysis tasks, addressing the issue of significant computational and memory resource consumption encountered by traditional numerical simulation methods for rock analysis [245], [246]. By utilizing MMoE, [94] transforms serial operations into parallel operations, reducing interference between multiple analysis tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 216, + "chunk_id": "MOE_chunk_0216", + "start_position": 136544, + "end_position": 137018, + "page_index": 21, + "word_count": 64, + "char_count": 474 + }, + "has_embedding": false + }, + { + "content": "s serial operations into parallel operations, reducing interference between multiple analysis tasks. [84] focuses on Heterogeneous Multi-task Learning tasks. In particular, this study only employed the MMoE framework but also introduced some stochastic mechanisms that restrict certain experts to handle specific tasks or disconnect certain experts from the current task, thus enhancing expert exploration. # D. Reinforcement learning", + "metadata": { + "source_file": "MOE", + "chunk_index": 217, + "chunk_id": "MOE_chunk_0217", + "start_position": 137018, + "end_position": 137452, + "page_index": 21, + "word_count": 58, + "char_count": 434 + }, + "has_embedding": false + }, + { + "content": "Reinforcement learning Reinforcement Learning (RL) plays a pivotal role in decision making in many real-world applications, such as robotics, games, autonomous driving, and healthcare [247], [248], [249], [250], which seeks to learn a policy by interacting with the environments. However, its practical development suffers from several significant challenges, including computational inefficiency and limited adaptability within high-dimensional state spaces and complex dynamic environments [102].", + "metadata": { + "source_file": "MOE", + "chunk_index": 218, + "chunk_id": "MOE_chunk_0218", + "start_position": 137452, + "end_position": 137950, + "page_index": 21, + "word_count": 63, + "char_count": 498 + }, + "has_embedding": false + }, + { + "content": "nd limited adaptability within high-dimensional state spaces and complex dynamic environments [102]. By dynamically selecting the most appropriate expert based on input data, the MoE mechanism enhances RL agents’ flexibility in responding to diverse demand patterns and environmental changes, thus improving overall performance. In what follows, we summarize the recent advance in leveraging MoE in RL and showcase its potential in various applications. The application of MoE in RL has a long history.", + "metadata": { + "source_file": "MOE", + "chunk_index": 219, + "chunk_id": "MOE_chunk_0219", + "start_position": 137950, + "end_position": 138452, + "page_index": 21, + "word_count": 73, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "The application of MoE in RL has a long history. One notable direction is the so-called modular RL, which breaks down complex RL problems into smaller modules and builds multiple sub-agents to handle a specific aspect of the task. Notably, [125] considers nonlinear and nonstationary control tasks, and proposes a multiple model-based RL (MMRL) system with multiple modules (i.e., experts).", + "metadata": { + "source_file": "MOE", + "chunk_index": 220, + "chunk_id": "MOE_chunk_0220", + "start_position": 138452, + "end_position": 138842, + "page_index": 21, + "word_count": 60, + "char_count": 390 + }, + "has_embedding": false + }, + { + "content": "l tasks, and proposes a multiple model-based RL (MMRL) system with multiple modules (i.e., experts). Each module has a dynamics model and a controller, where the state predictions and the action outputs are the weighted combination of all module outputs, with the weights calculated using a gaussian softmax function of the module state prediction error. Multiple studies have been proposed by following up this work.", + "metadata": { + "source_file": "MOE", + "chunk_index": 221, + "chunk_id": "MOE_chunk_0221", + "start_position": 138842, + "end_position": 139259, + "page_index": 21, + "word_count": 65, + "char_count": 417 + }, + "has_embedding": false + }, + { + "content": "Multiple studies have been proposed by following up this work. [106] introduces a concept of ‘modular reward’ which combines both the actual reward and the imaginary reward of appropriate module selections for the task. This will promote independent learning of different modules, which further leads to accurate estimation of global value functions of the composite policy.", + "metadata": { + "source_file": "MOE", + "chunk_index": 222, + "chunk_id": "MOE_chunk_0222", + "start_position": 139259, + "end_position": 139633, + "page_index": 21, + "word_count": 56, + "char_count": 374 + }, + "has_embedding": false + }, + { + "content": "dules, which further leads to accurate estimation of global value functions of the composite policy. [107] constructs multiple experts to specialize in different regions of the overall state space, where standard RL approaches can be used for each expert to capture different information of the underlying state space. This is particularly useful for RL problems with large state spaces. On the other hand, the idea of modular RL has also been investigated in the design of value-based approaches.", + "metadata": { + "source_file": "MOE", + "chunk_index": 223, + "chunk_id": "MOE_chunk_0223", + "start_position": 139633, + "end_position": 140130, + "page_index": 21, + "word_count": 78, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "her hand, the idea of modular RL has also been investigated in the design of value-based approaches. Specifically, [108] introduces a novel mixture of actor-critic experts (MACE) architecture with multiple actor-critic pairs for learning terrain-adaptive dynamic locomotion skills, where each pair will specialize in particular aspects of the motions. MACE is shown to be able to learn more quickly than the standard single actor-critic pair approach.", + "metadata": { + "source_file": "MOE", + "chunk_index": 224, + "chunk_id": "MOE_chunk_0224", + "start_position": 140130, + "end_position": 140581, + "page_index": 21, + "word_count": 66, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "MACE is shown to be able to learn more quickly than the standard single actor-critic pair approach. [109] follows this network architecture and learning algorithm to solve MDP problems with a mixture of discrete and continuous actions, in the context of policy learning for the safe falling problem.", + "metadata": { + "source_file": "MOE", + "chunk_index": 225, + "chunk_id": "MOE_chunk_0225", + "start_position": 140581, + "end_position": 140880, + "page_index": 21, + "word_count": 48, + "char_count": 299 + }, + "has_embedding": false + }, + { + "content": "of discrete and continuous actions, in the context of policy learning for the safe falling problem. [126] considers the skill knowledge transfer in multi-task RL and proposes a transfer expert RL architecture (TERL), where both actor and critic consist of a hierarchical structure with the experts and a gating network. The gating network will thus determine the expert selection of different tasks for either policy learning in the actor or value function learning in the critic.", + "metadata": { + "source_file": "MOE", + "chunk_index": 226, + "chunk_id": "MOE_chunk_0226", + "start_position": 140880, + "end_position": 141360, + "page_index": 21, + "word_count": 76, + "char_count": 480 + }, + "has_embedding": false + }, + { + "content": "of different tasks for either policy learning in the actor or value function learning in the critic. Several key features are designed in both gating network and experts to increase the capability of solving new tasks. [110] also considers a multi-task RL framework for transfer learning, which seeks to leverage the pretraining of multiple source tasks to facilitate the learning of new target tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 227, + "chunk_id": "MOE_chunk_0227", + "start_position": 141360, + "end_position": 141761, + "page_index": 21, + "word_count": 64, + "char_count": 401 + }, + "has_embedding": false + }, + { + "content": "to leverage the pretraining of multiple source tasks to facilitate the learning of new target tasks. Different from the traditional case where only one expert is activated at a particular timestep, this work proposes a model to enable the activation of multiple expert simultaneously. Each expert can specialize in a distribution of actions, whereas the composite policy can be obtained through a composition of these distributions.", + "metadata": { + "source_file": "MOE", + "chunk_index": 228, + "chunk_id": "MOE_chunk_0228", + "start_position": 141761, + "end_position": 142193, + "page_index": 21, + "word_count": 66, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "actions, whereas the composite policy can be obtained through a composition of these distributions. More recently, [111] constructs the policy in policy iteration by leveraging the MoE architecture, where the action of each expert is determined based on the distance to a prototypical state, in order to ensure the policy is interpretable.", + "metadata": { + "source_file": "MOE", + "chunk_index": 229, + "chunk_id": "MOE_chunk_0229", + "start_position": 142193, + "end_position": 142532, + "page_index": 21, + "word_count": 52, + "char_count": 339 + }, + "has_embedding": false + }, + { + "content": "mined based on the distance to a prototypical state, in order to ensure the policy is interpretable. [100] introduces Probabilistic Mixture-of-Experts (PMOE), which employs Gaussian mixture models for multi-modal policy representation and frequency approximation gradients to address non-differentiability during optimization. This approach overcomes the limitations of unimodal policies in traditional deep RL, enabling algorithms to learn varied strategies in tasks with multiple optimal solutions.", + "metadata": { + "source_file": "MOE", + "chunk_index": 230, + "chunk_id": "MOE_chunk_0230", + "start_position": 142532, + "end_position": 143032, + "page_index": 21, + "word_count": 64, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "al deep RL, enabling algorithms to learn varied strategies in tasks with multiple optimal solutions. More importantly, PMOE can be potentially applied in generic off-policy and on-policy deep RL algorithms using stochastic policies, e.g., Soft Actor-Critic (SAC) [234] and Proximal Policy Optimization (PPO) [251].", + "metadata": { + "source_file": "MOE", + "chunk_index": 231, + "chunk_id": "MOE_chunk_0231", + "start_position": 143032, + "end_position": 143346, + "page_index": 21, + "word_count": 44, + "char_count": 314 + }, + "has_embedding": false + }, + { + "content": "ochastic policies, e.g., Soft Actor-Critic (SAC) [234] and Proximal Policy Optimization (PPO) [251]. To improve the sample efficiency of [108] and accelerate model-free RL for terrain-adaptive locomotion skills learning, [112] proposes to generalize model-based value expansion (MVE) [252], a technique to obtain better state-action values by using more reliable targets, to a mixture of actor-critic experts.", + "metadata": { + "source_file": "MOE", + "chunk_index": 232, + "chunk_id": "MOE_chunk_0232", + "start_position": 143346, + "end_position": 143755, + "page_index": 21, + "word_count": 56, + "char_count": 409 + }, + "has_embedding": false + }, + { + "content": "ain better state-action values by using more reliable targets, to a mixture of actor-critic experts. [101] proposes an MoE framework incorporating Bayesian functions that autonomously identify and combine promising sub-regions from multiple source tasks across different regions of the state space.", + "metadata": { + "source_file": "MOE", + "chunk_index": 233, + "chunk_id": "MOE_chunk_0233", + "start_position": 143755, + "end_position": 144053, + "page_index": 21, + "word_count": 41, + "char_count": 298 + }, + "has_embedding": false + }, + { + "content": "ombine promising sub-regions from multiple source tasks across different regions of the state space. By utilizing state-dependent Dirichlet prior distributions to learn similarities between dynamics in source and target tasks, and updating these priors using state transition data from the target environment, this method improves robustness against sparse or delayed rewards, even when there are errors in dynamic estimation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 234, + "chunk_id": "MOE_chunk_0234", + "start_position": 144053, + "end_position": 144479, + "page_index": 21, + "word_count": 59, + "char_count": 426 + }, + "has_embedding": false + }, + { + "content": "oves robustness against sparse or delayed rewards, even when there are errors in dynamic estimation. The attention of leveraging MoE in RL has gained increasing attention last year due to the success of MoE in LLMs. [115] investigates of the impact of MoE layers in the DNNs used in value-based deep RL approaches, and shows that the performance of various deep RL algorithms can be significantly improved by incorporating soft MoEs [27] to replay the penultimate layers.", + "metadata": { + "source_file": "MOE", + "chunk_index": 235, + "chunk_id": "MOE_chunk_0235", + "start_position": 144479, + "end_position": 144950, + "page_index": 21, + "word_count": 77, + "char_count": 471 + }, + "has_embedding": false + }, + { + "content": "thms can be significantly improved by incorporating soft MoEs [27] to replay the penultimate layers. Similar phenomenons have been observed in different RL setups, such as online RL, offline RL [253], and RL with a small amount of interactions. [113] considers multi-task robot learning and seeks to leverage offline RL to learn from both good demonstrations and sub-optimal data. In particular, the policy network is constructed as an MoE-based Transformer encoder to generate action tokens.", + "metadata": { + "source_file": "MOE", + "chunk_index": 236, + "chunk_id": "MOE_chunk_0236", + "start_position": 144950, + "end_position": 145442, + "page_index": 21, + "word_count": 75, + "char_count": 492 + }, + "has_embedding": false + }, + { + "content": "ar, the policy network is constructed as an MoE-based Transformer encoder to generate action tokens. [254] proposes a Diverse Skill Learning (Di-SkilL) method which aims to enable agents to acquire more skills in RL. In particular, each expert is modeled as a contextual motion primitive, adjusting behavioral strategies according to the current context and optimizing related distributions to focus on optimal performance sub-regions.", + "metadata": { + "source_file": "MOE", + "chunk_index": 237, + "chunk_id": "MOE_chunk_0237", + "start_position": 145442, + "end_position": 145877, + "page_index": 21, + "word_count": 63, + "char_count": 435 + }, + "has_embedding": false + }, + { + "content": "he current context and optimizing related distributions to focus on optimal performance sub-regions. Di-SkilL effectively addresses hard discontinuities and multimodality in unknown environments by representing each expert’s contextual distribution using energy-based models. [114] proposes a novel method named SMOSE for continuous control tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 238, + "chunk_id": "MOE_chunk_0238", + "start_position": 145877, + "end_position": 146224, + "page_index": 21, + "word_count": 43, + "char_count": 347 + }, + "has_embedding": false + }, + { + "content": "[114] proposes a novel method named SMOSE for continuous control tasks. The controller is built upon a Top-1 MoE architecture, where each expert is trained to learn different basic skills and the router is trained to learn to appropriately assign tasks to experts. [102] investigates MoEs’ capability to manage non-stationarity — handling and adapting to changes in the environment or data distribution over time — in deep RL settings characterized by “amplified” non-stationarity via multi-task training.", + "metadata": { + "source_file": "MOE", + "chunk_index": 239, + "chunk_id": "MOE_chunk_0239", + "start_position": 146224, + "end_position": 146729, + "page_index": 21, + "word_count": 76, + "char_count": 505 + }, + "has_embedding": false + }, + { + "content": "er time — in deep RL settings characterized by “amplified” non-stationarity via multi-task training. It finds that MoE supports network plasticity and is particularly effective in highly non-stationary conditions, providing fresh insights into addressing non-stationary training environments in RL.", + "metadata": { + "source_file": "MOE", + "chunk_index": 240, + "chunk_id": "MOE_chunk_0240", + "start_position": 146729, + "end_position": 147027, + "page_index": 21, + "word_count": 39, + "char_count": 298 + }, + "has_embedding": false + }, + { + "content": "ary conditions, providing fresh insights into addressing non-stationary training environments in RL. [103] explores visual deep RL to enable robots to acquire skills from visual inputs and proposes a method named MENTOR, which replaces the traditional MLP layers in visual RL agents by using the MoE architecture for action generations. The application of MoE in other domains of RL, such as multi-agent RL and imitation learning, has also been explored. For instance, [116] applies modular RL to soccer robot.", + "metadata": { + "source_file": "MOE", + "chunk_index": 241, + "chunk_id": "MOE_chunk_0241", + "start_position": 147027, + "end_position": 147537, + "page_index": 21, + "word_count": 79, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "For instance, [116] applies modular RL to soccer robot. [117] proposes a method to assign multiple modules to different situations, in order to learn purposive behaviors for specified situations related to other agents. Similar to [125], in [117] each module consists of a prediction model and a planner, and the module that provides the best estimation of state transitions will be chosen. [118] uses modular RL with MoE to learn competitive behaviors in multi-agent systems.", + "metadata": { + "source_file": "MOE", + "chunk_index": 242, + "chunk_id": "MOE_chunk_0242", + "start_position": 147537, + "end_position": 148013, + "page_index": 21, + "word_count": 75, + "char_count": 476 + }, + "has_embedding": false + }, + { + "content": "[118] uses modular RL with MoE to learn competitive behaviors in multi-agent systems. For imitation learning, [119] considers the problem of robot table tennis by allowing robot to learn through interactions with human, where an approach with mixtures of motor experts is proposed to generalize basic movements to various situations. Here each expert corresponds to a motor policy.", + "metadata": { + "source_file": "MOE", + "chunk_index": 243, + "chunk_id": "MOE_chunk_0243", + "start_position": 148013, + "end_position": 148394, + "page_index": 21, + "word_count": 58, + "char_count": 381 + }, + "has_embedding": false + }, + { + "content": "Here each expert corresponds to a motor policy. [121] constructs a mixture of interaction experts to learn various interaction patterns from human demonstrations, based on Gaussian mixture models. [122] leverages Gaussian mixture models to handle the model collapse problem in learning generalized movement representations from human demonstrations. [123] leverages a mixture of movement primitives to imitate versatile human demonstrations.", + "metadata": { + "source_file": "MOE", + "chunk_index": 244, + "chunk_id": "MOE_chunk_0244", + "start_position": 148394, + "end_position": 148835, + "page_index": 21, + "word_count": 59, + "char_count": 441 + }, + "has_embedding": false + }, + { + "content": "[123] leverages a mixture of movement primitives to imitate versatile human demonstrations. [124] trains a variational autoencoder with a mixture density network to capture the complexity and variability in Human-Robot Interaction.", + "metadata": { + "source_file": "MOE", + "chunk_index": 245, + "chunk_id": "MOE_chunk_0245", + "start_position": 148835, + "end_position": 149066, + "page_index": 21, + "word_count": 31, + "char_count": 231 + }, + "has_embedding": false + }, + { + "content": "with a mixture density network to capture the complexity and variability in Human-Robot Interaction. Given the diversity of constraints under which demonstration data may be collected, [104] presents Multi-Modal Inverse Constrained Reinforcement Learning (MMICRL), which uses flow-based density estimation for unsupervised expert identification and infers specific agent constraints, thus enhancing the adaptability and reliability of inverse constrained reinforcement learning algorithms.", + "metadata": { + "source_file": "MOE", + "chunk_index": 246, + "chunk_id": "MOE_chunk_0246", + "start_position": 149066, + "end_position": 149555, + "page_index": 21, + "word_count": 60, + "char_count": 489 + }, + "has_embedding": false + }, + { + "content": "enhancing the adaptability and reliability of inverse constrained reinforcement learning algorithms. The strategy of ensemble methods that carries a very similar idea with MoE has also been widely used in RL, in terms of model ensembles [255], value function ensembles [256], and policy ensembles [257], [258]. Finally, we summarize several attempts on applying MoE in specific applications of RL.", + "metadata": { + "source_file": "MOE", + "chunk_index": 247, + "chunk_id": "MOE_chunk_0247", + "start_position": 149555, + "end_position": 149952, + "page_index": 21, + "word_count": 59, + "char_count": 397 + }, + "has_embedding": false + }, + { + "content": "Finally, we summarize several attempts on applying MoE in specific applications of RL. For example, [105] confronts the challenge of driving chatbots with RL by developing several RL algorithms tailored for Dialogue Management. Leveraging the hierarchical structure of MoE-based language models enables offline RL methods to operate within a significantly reduced action space, making RL problems more tractable while generating discourse that reflects diverse intentions.", + "metadata": { + "source_file": "MOE", + "chunk_index": 248, + "chunk_id": "MOE_chunk_0248", + "start_position": 149952, + "end_position": 150424, + "page_index": 21, + "word_count": 65, + "char_count": 472 + }, + "has_embedding": false + }, + { + "content": "pace, making RL problems more tractable while generating discourse that reflects diverse intentions. Similarly, in video processing [259] and investment portfolio management [260], MoE-based approaches dynamically activate specific expert models based on current data, achieving higher accuracy, lower computational costs, and enhanced adaptability to changing environments. [120] leverage MoE models to scale up the parameters of RL models in optimal execution tasks. # E. Federated learning", + "metadata": { + "source_file": "MOE", + "chunk_index": 249, + "chunk_id": "MOE_chunk_0249", + "start_position": 150424, + "end_position": 150916, + "page_index": 21, + "word_count": 66, + "char_count": 492 + }, + "has_embedding": false + }, + { + "content": "Federated learning Federated Learning [261] is proposed to address the challenge of how different data owners can effectively exchange data without compromising user privacy and ensuring data security.", + "metadata": { + "source_file": "MOE", + "chunk_index": 250, + "chunk_id": "MOE_chunk_0250", + "start_position": 150916, + "end_position": 151117, + "page_index": 21, + "word_count": 28, + "char_count": 201 + }, + "has_embedding": false + }, + { + "content": "a owners can effectively exchange data without compromising user privacy and ensuring data security. By first training multiple local models on different servers and then aggregating these local model parameters using various rules to update the global model, the federated learning paradigm not only fully leverages distributed yet information-rich data but also efficiently utilizes the computational resources of multiple clients, inspiring a series of subsequent work, particularly in the field of recommendation systems [262], [263], [264].", + "metadata": { + "source_file": "MOE", + "chunk_index": 251, + "chunk_id": "MOE_chunk_0251", + "start_position": 151117, + "end_position": 151662, + "page_index": 21, + "word_count": 76, + "char_count": 545 + }, + "has_embedding": false + }, + { + "content": "series of subsequent work, particularly in the field of recommendation systems [262], [263], [264]. When updating the global model using multiple local model parameters, one of the most common rules is Federated Averaging (FedAVG) [265]. This rule assigns weights to the corresponding local models based on the size of each client’s local dataset during parameter updates, and then updates the global model using the weighted combinations of local parameters.", + "metadata": { + "source_file": "MOE", + "chunk_index": 252, + "chunk_id": "MOE_chunk_0252", + "start_position": 151662, + "end_position": 152121, + "page_index": 21, + "word_count": 69, + "char_count": 459 + }, + "has_embedding": false + }, + { + "content": "eter updates, and then updates the global model using the weighted combinations of local parameters. However, this rule relies on a manually defined simple heuristic, which not only requires each model to be initialized with the same random seed for convergence but is also unsuitable for scenarios where the data distribution among clients is highly heterogeneous [265]. Considering the hybrid nature of MoE, [127] is the first to introduce the MoE architecture into the federated learning setting.", + "metadata": { + "source_file": "MOE", + "chunk_index": 253, + "chunk_id": "MOE_chunk_0253", + "start_position": 152121, + "end_position": 152620, + "page_index": 21, + "word_count": 77, + "char_count": 499 + }, + "has_embedding": false + }, + { + "content": "re of MoE, [127] is the first to introduce the MoE architecture into the federated learning setting. Specifically, this work proposes to train a general model using aggregated data and domainspecific models for each client using private data, and then use a gating mechanism to determine the contribution of each model’s output to the learning task. Compared to FedAVG, this approach better generates outputs based on task characteristics.", + "metadata": { + "source_file": "MOE", + "chunk_index": 254, + "chunk_id": "MOE_chunk_0254", + "start_position": 152620, + "end_position": 153059, + "page_index": 21, + "word_count": 68, + "char_count": 439 + }, + "has_embedding": false + }, + { + "content": "Compared to FedAVG, this approach better generates outputs based on task characteristics. [128] adopts a similar approach but focuses more on scenarios with stronger data heterogeneity across clients. Additionally, an opt-out mechanism is designed to ensure that clients with sensitive data could choose not to participate in the data integration process, thereby safeguarding data security. Some other work has also followed this combined approach [129].", + "metadata": { + "source_file": "MOE", + "chunk_index": 255, + "chunk_id": "MOE_chunk_0255", + "start_position": 153059, + "end_position": 153514, + "page_index": 21, + "word_count": 65, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "Some other work has also followed this combined approach [129]. An important goal of federated learning is to effectively integrate data from multiple clients. However, it is evident that real-world data distributions are highly complex and variable. Therefore, a major challenge in federated learning is data heterogeneity, which can manifest in two ways: one where clients share the same conditional distribution but have different marginal distributions, and the other where the opposite is true.", + "metadata": { + "source_file": "MOE", + "chunk_index": 256, + "chunk_id": "MOE_chunk_0256", + "start_position": 153514, + "end_position": 154013, + "page_index": 21, + "word_count": 74, + "char_count": 499 + }, + "has_embedding": false + }, + { + "content": "al distribution but have different marginal distributions, and the other where the opposite is true. Both scenarios can harm the model’s learning performance. Recently some studies have made substantial efforts to address this challenge.", + "metadata": { + "source_file": "MOE", + "chunk_index": 257, + "chunk_id": "MOE_chunk_0257", + "start_position": 154013, + "end_position": 154250, + "page_index": 21, + "word_count": 34, + "char_count": 237 + }, + "has_embedding": false + }, + { + "content": "Recently some studies have made substantial efforts to address this challenge. For example, [130] introduces two improvements: First, this work incorporates client identifier information into the gating decision; Second, to reduce the difficulty of training MoE expert models on non-IID data, which could lead to model degradation, a variational lower bound is leveraged to derive a unified global variational approximation, which replaces the true posterior distribution of all clients during training.", + "metadata": { + "source_file": "MOE", + "chunk_index": 258, + "chunk_id": "MOE_chunk_0258", + "start_position": 154250, + "end_position": 154753, + "page_index": 21, + "word_count": 71, + "char_count": 503 + }, + "has_embedding": false + }, + { + "content": "tional approximation, which replaces the true posterior distribution of all clients during training. [131] proposes an improved model fine-tuning method, where a general model is first trained and each client only fine-tunes the shallow parameters in the general model. Additionally, for complex high-dimensional data, this work uses partial model parameters to extract features from the raw data before feeding them into the gating function to make inputs distinguishable.", + "metadata": { + "source_file": "MOE", + "chunk_index": 259, + "chunk_id": "MOE_chunk_0259", + "start_position": 154753, + "end_position": 155226, + "page_index": 21, + "word_count": 68, + "char_count": 473 + }, + "has_embedding": false + }, + { + "content": "tures from the raw data before feeding them into the gating function to make inputs distinguishable. [132] first trains local models on each client and then uses the clustering method IFCA [133] to iteratively cluster all clients, generating a global cluster model for each cluster. Finally, a gating mechanism is used to combine the outputs of the global cluster models and the local models to produce the final result.", + "metadata": { + "source_file": "MOE", + "chunk_index": 260, + "chunk_id": "MOE_chunk_0260", + "start_position": 155226, + "end_position": 155646, + "page_index": 21, + "word_count": 69, + "char_count": 420 + }, + "has_embedding": false + }, + { + "content": "o combine the outputs of the global cluster models and the local models to produce the final result. [134] also introduces a MoE layer on the server side but dynamically determines the number of top-K experts to retain based on the client’s resource conditions during routing, fully utilizing limited computational resources. In addition to the discussion on heterogeneity, another significant challenge in federated learning is communication overhead.", + "metadata": { + "source_file": "MOE", + "chunk_index": 261, + "chunk_id": "MOE_chunk_0261", + "start_position": 155646, + "end_position": 156098, + "page_index": 21, + "word_count": 67, + "char_count": 452 + }, + "has_embedding": false + }, + { + "content": "ion on heterogeneity, another significant challenge in federated learning is communication overhead. Each round of communication between decentralized servers incurs substantial costs. Generally, there are two approaches to address this issue. The first approach is to reduce the amount of information that needs to be communicated in each round by transmitting only critical model parameters.", + "metadata": { + "source_file": "MOE", + "chunk_index": 262, + "chunk_id": "MOE_chunk_0262", + "start_position": 156098, + "end_position": 156491, + "page_index": 21, + "word_count": 55, + "char_count": 393 + }, + "has_embedding": false + }, + { + "content": "ormation that needs to be communicated in each round by transmitting only critical model parameters. For example, the number of experts in the locally trained MoE layer can be reduced, discarding some expert parameters that contribute less to the output in exchange for improved communication efficiency [135], [134]. Alternatively, only the most important MoE models can be selected for transmission.", + "metadata": { + "source_file": "MOE", + "chunk_index": 263, + "chunk_id": "MOE_chunk_0263", + "start_position": 156491, + "end_position": 156892, + "page_index": 21, + "word_count": 60, + "char_count": 401 + }, + "has_embedding": false + }, + { + "content": "Alternatively, only the most important MoE models can be selected for transmission. The second approach is to reduce the number of communication rounds, such as in One-shot Federated Learning (OFL), where typically only a single round of communication is performed during training to aggregate client models on the central server. After this, clients no longer participate in subsequent optimization updates.", + "metadata": { + "source_file": "MOE", + "chunk_index": 264, + "chunk_id": "MOE_chunk_0264", + "start_position": 156892, + "end_position": 157300, + "page_index": 21, + "word_count": 60, + "char_count": 408 + }, + "has_embedding": false + }, + { + "content": "After this, clients no longer participate in subsequent optimization updates. However, many popular OFL methods [136], [137] employ lossy aggregation, where aggregating all local models into a single global model results in knowledge loss, especially when model heterogeneity is strong [266]. In contrast, [138] proposes to treat all local models as expert models and train a specialized lightweight gating function using additional data to aggregate these experts.", + "metadata": { + "source_file": "MOE", + "chunk_index": 265, + "chunk_id": "MOE_chunk_0265", + "start_position": 157300, + "end_position": 157765, + "page_index": 21, + "word_count": 67, + "char_count": 465 + }, + "has_embedding": false + }, + { + "content": "nd train a specialized lightweight gating function using additional data to aggregate these experts. This approach effectively preserves the knowledge of local models while reducing communication overhead. # IV. THEORY Although the MoE model has a long history and achieved great empirical success in practice during the past few years [267], [16], the theory behind it is largely under-explored, especially in deep neural networks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 266, + "chunk_id": "MOE_chunk_0266", + "start_position": 157765, + "end_position": 158197, + "page_index": 21, + "word_count": 64, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "ars [267], [16], the theory behind it is largely under-explored, especially in deep neural networks. Recently, some studies have initiated the attempt to build theoretical understandings of MoE. In this section, we will delve into these studies, aiming to provide the readers a basic idea of the theory development in this area. Most of the theory development for MoE so far mainly focus on simple models. Early studies in this area seek to understand the approximation capacity of MoE models.", + "metadata": { + "source_file": "MOE", + "chunk_index": 267, + "chunk_id": "MOE_chunk_0267", + "start_position": 158197, + "end_position": 158690, + "page_index": 21, + "word_count": 80, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "Early studies in this area seek to understand the approximation capacity of MoE models. For instance, [141] investigates the convergence rate for hierarchical MoE models where the experts are exponential family regression models. [142] characterizes the convergence rate for hierarchical MoE models with generalized linear models as the experts.", + "metadata": { + "source_file": "MOE", + "chunk_index": 268, + "chunk_id": "MOE_chunk_0268", + "start_position": 158690, + "end_position": 159035, + "page_index": 21, + "word_count": 49, + "char_count": 345 + }, + "has_embedding": false + }, + { + "content": "izes the convergence rate for hierarchical MoE models with generalized linear models as the experts. [143] provides the error bounds for functional approximation using MoE models and shows the convergence to any sufficiently differentiable target function in the Sobolev space. [144] provides an alternative result of this through a universal approximation theorem for MoE models with softmax gating functions and linear experts, without imposing assumptions on the differentiability of the target function.", + "metadata": { + "source_file": "MOE", + "chunk_index": 269, + "chunk_id": "MOE_chunk_0269", + "start_position": 159035, + "end_position": 159542, + "page_index": 21, + "word_count": 72, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "ns and linear experts, without imposing assumptions on the differentiability of the target function. [145] considers a standard MoE model with softmax gating functions where the experts are polynomial regression models, and characterizes the convergence rate of the maximum likelihood estimator (MLE) depending on the number of experts and the order of the polynomial model.", + "metadata": { + "source_file": "MOE", + "chunk_index": 270, + "chunk_id": "MOE_chunk_0270", + "start_position": 159542, + "end_position": 159916, + "page_index": 21, + "word_count": 55, + "char_count": 374 + }, + "has_embedding": false + }, + { + "content": "likelihood estimator (MLE) depending on the number of experts and the order of the polynomial model. Recently, some studies have emerged and aimed to characterize the convergence of MLE for MoE models with different gating functions for regression problems. For instance, [146] characterizes the convergence rate of the MLE for Gaussian MoE models with covariate-free gating functions, by leveraging techniques from optimal transport.", + "metadata": { + "source_file": "MOE", + "chunk_index": 271, + "chunk_id": "MOE_chunk_0271", + "start_position": 159916, + "end_position": 160350, + "page_index": 21, + "word_count": 63, + "char_count": 434 + }, + "has_embedding": false + }, + { + "content": "an MoE models with covariate-free gating functions, by leveraging techniques from optimal transport. [147] attempts to understand the parameter estimation of the MLE for Gaussian MoE models with softmax gating functions, By leveraging novel Voronoi loss functions to capture the interactions between the gating and experts, the convergence rate of MLE is established.", + "metadata": { + "source_file": "MOE", + "chunk_index": 272, + "chunk_id": "MOE_chunk_0272", + "start_position": 160350, + "end_position": 160717, + "page_index": 21, + "word_count": 53, + "char_count": 367 + }, + "has_embedding": false + }, + { + "content": "capture the interactions between the gating and experts, the convergence rate of MLE is established. The convergence of MLE for Gaussian MoE models with other types of gating functions, such as Gaussian density gating [148] and top-K sparse softmax gating [149], has also been investigated. [150] studies a more general setup of MoE models with softmax gating for least square estimation, and characterizes the convergence rates for different types of expert model.", + "metadata": { + "source_file": "MOE", + "chunk_index": 273, + "chunk_id": "MOE_chunk_0273", + "start_position": 160717, + "end_position": 161182, + "page_index": 21, + "word_count": 72, + "char_count": 465 + }, + "has_embedding": false + }, + { + "content": "east square estimation, and characterizes the convergence rates for different types of expert model. The theoretical understanding behind the recently emerged cosine gating function is developed in [25] for lease square estimation. In contrast, the theoretical understanding of MoE models for classification problems is less explored. [151] investigates the classification problem with the MoE models including softmax gating and multinominal logistic expert models.", + "metadata": { + "source_file": "MOE", + "chunk_index": 274, + "chunk_id": "MOE_chunk_0274", + "start_position": 161182, + "end_position": 161648, + "page_index": 21, + "word_count": 63, + "char_count": 466 + }, + "has_embedding": false + }, + { + "content": "cation problem with the MoE models including softmax gating and multinominal logistic expert models. In particular, the convergence rates for density estimation and parameter estimation are established. A novel class of modified softmax gating functions is further proposed to improve the convergence rate for parameter estimation when part of expert parameters vanish. [151] also studies the inefficiency issues encountered by the gating function in MoE during training.", + "metadata": { + "source_file": "MOE", + "chunk_index": 275, + "chunk_id": "MOE_chunk_0275", + "start_position": 161648, + "end_position": 162119, + "page_index": 21, + "word_count": 67, + "char_count": 471 + }, + "has_embedding": false + }, + { + "content": "151] also studies the inefficiency issues encountered by the gating function in MoE during training. Specifically, when some expert parameters vanish (i.e., the parameters of certain expert models approach zero or become insignificant), the interaction between the standard softmax gating function and the expert functions through partial differential equations (PDEs) significantly slows down the parameter estimation rate [146], [149], [147], [148].", + "metadata": { + "source_file": "MOE", + "chunk_index": 276, + "chunk_id": "MOE_chunk_0276", + "start_position": 162119, + "end_position": 162570, + "page_index": 21, + "word_count": 61, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "equations (PDEs) significantly slows down the parameter estimation rate [146], [149], [147], [148]. This paper thoroughly investigated the problem under an improved softmax gating function setting. Specifically, they used a bounded function $M ( X )$ to transform the input $X$ before passing it to the softmax gating function.", + "metadata": { + "source_file": "MOE", + "chunk_index": 277, + "chunk_id": "MOE_chunk_0277", + "start_position": 162570, + "end_position": 162897, + "page_index": 21, + "word_count": 49, + "char_count": 327 + }, + "has_embedding": false + }, + { + "content": "nded function $M ( X )$ to transform the input $X$ before passing it to the softmax gating function. Although the expert parameters still depend on the input $X$ , the transformed $X$ no longer has a linear relationship with the original $M ( X )$ , thereby eliminating the interaction between gating parameters and expert parameters and significantly improving the model’s convergence speed and stability.", + "metadata": { + "source_file": "MOE", + "chunk_index": 278, + "chunk_id": "MOE_chunk_0278", + "start_position": 162897, + "end_position": 163303, + "page_index": 21, + "word_count": 66, + "char_count": 406 + }, + "has_embedding": false + }, + { + "content": "eters and expert parameters and significantly improving the model’s convergence speed and stability. Most of the successes of MoE models nowadays happen with more complex expert models, such as deep neural networks. However, the theoretical understanding of MoEs in deep learning remains elusive compared to the theoretical studies of MoE in simple models, largely due to the limited understanding of deep neural networks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 279, + "chunk_id": "MOE_chunk_0279", + "start_position": 163303, + "end_position": 163725, + "page_index": 21, + "word_count": 63, + "char_count": 422 + }, + "has_embedding": false + }, + { + "content": "l studies of MoE in simple models, largely due to the limited understanding of deep neural networks. [29] seeks to fill this gap and makes the first attempt to understand the behaviors of MoEs in deep learning. More specifically, they consider a standard MoE architecture with softmax gating, where each expert model is a two-layer CNN, and investigate a binary classification problem where the dataset contains multiple clusters.", + "metadata": { + "source_file": "MOE", + "chunk_index": 280, + "chunk_id": "MOE_chunk_0280", + "start_position": 163725, + "end_position": 164155, + "page_index": 21, + "word_count": 68, + "char_count": 430 + }, + "has_embedding": false + }, + { + "content": "r CNN, and investigate a binary classification problem where the dataset contains multiple clusters. The authors show that any single-expert model with a two-layer CNN cannot achieve more than $8 7 . 5 \\%$ accuracy on this specific dataset, while a linear MoE model performs slightly better than a single-expert model but still falls short of a nonlinear MoE model.", + "metadata": { + "source_file": "MOE", + "chunk_index": 281, + "chunk_id": "MOE_chunk_0281", + "start_position": 164155, + "end_position": 164520, + "page_index": 21, + "word_count": 60, + "char_count": 365 + }, + "has_embedding": false + }, + { + "content": "performs slightly better than a single-expert model but still falls short of a nonlinear MoE model. With sufficient expert exploration during the training, it can be shown that the router can automatically learn the cluster structure of the data and dynamically route the data to the most suitable expert. Following this work, [140] investigates the patch-level routing for MoE models (pMoE) with linear gating in solving a supervised binary classification task, where each expert is a two-layer CNN.", + "metadata": { + "source_file": "MOE", + "chunk_index": 282, + "chunk_id": "MOE_chunk_0282", + "start_position": 164520, + "end_position": 165020, + "page_index": 21, + "word_count": 78, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "ear gating in solving a supervised binary classification task, where each expert is a two-layer CNN. They show that the pMoE model can achieve similar generalization performance with standard CNN but with a reduced sample complexity. One of the key reasons behind this, also theoretically and empirically justified, is that an appropriately trained patch-level router can route the classdiscriminative patches of one class to the same expert and drop some class-irrelevant patches.", + "metadata": { + "source_file": "MOE", + "chunk_index": 283, + "chunk_id": "MOE_chunk_0283", + "start_position": 165020, + "end_position": 165501, + "page_index": 21, + "word_count": 72, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "classdiscriminative patches of one class to the same expert and drop some class-irrelevant patches. With the increasingly broad applications of MoE in many problems, the theoretical studies of MoE start to emerge beyond the general machine learning setup. [152] explores the usage of MoE models in handling multilevel data while building the theoretical understanding therein.", + "metadata": { + "source_file": "MOE", + "chunk_index": 284, + "chunk_id": "MOE_chunk_0284", + "start_position": 165501, + "end_position": 165877, + "page_index": 21, + "word_count": 55, + "char_count": 376 + }, + "has_embedding": false + }, + { + "content": "sage of MoE models in handling multilevel data while building the theoretical understanding therein. Notably, multilevel data is very common in practical applications [268], [269], such as hierarchical data with a nested structure where different levels are correlated. Ignoring the dependencies within the data can lead to spurious, misleading, or biased clustering and prediction outcomes [270].", + "metadata": { + "source_file": "MOE", + "chunk_index": 285, + "chunk_id": "MOE_chunk_0285", + "start_position": 165877, + "end_position": 166274, + "page_index": 21, + "word_count": 56, + "char_count": 397 + }, + "has_embedding": false + }, + { + "content": "ithin the data can lead to spurious, misleading, or biased clustering and prediction outcomes [270]. To better capture the dependencies, [152] proposes a Mixed MoE to handle multi-level data, which we define as MeMoE in this work. This approach not only introduces random effects into the gating function, making the computed gating values depend not only on input variables but also on random effects.", + "metadata": { + "source_file": "MOE", + "chunk_index": 286, + "chunk_id": "MOE_chunk_0286", + "start_position": 166274, + "end_position": 166676, + "page_index": 21, + "word_count": 64, + "char_count": 402 + }, + "has_embedding": false + }, + { + "content": "on, making the computed gating values depend not only on input variables but also on random effects. This helps the model better capture random effects in multi-level data when dynamically adjusting expert weights. At the same time, to simplify the model, the expert functions are separated from the random effects, and the probability distribution of the expert model no longer depends on input variables but only on output variables.", + "metadata": { + "source_file": "MOE", + "chunk_index": 287, + "chunk_id": "MOE_chunk_0287", + "start_position": 166676, + "end_position": 167111, + "page_index": 21, + "word_count": 69, + "char_count": 435 + }, + "has_embedding": false + }, + { + "content": "distribution of the expert model no longer depends on input variables but only on output variables. Under certain regularity conditions, this paper proves that the MeMoE is dense in the sense of weak convergence for any continuous mixed-effects model. In the special case of hierarchical multi-level data, this paper further proves that MeMoE can approximate the complex dependency structures of random effects between different factor levels in multi-level data.", + "metadata": { + "source_file": "MOE", + "chunk_index": 288, + "chunk_id": "MOE_chunk_0288", + "start_position": 167111, + "end_position": 167574, + "page_index": 21, + "word_count": 69, + "char_count": 463 + }, + "has_embedding": false + }, + { + "content": "complex dependency structures of random effects between different factor levels in multi-level data. [30] investigates how integrating the MoE framework into models can effectively mitigate generalization and forgetting issues in continual learning [271], [272], under the setup of over-parameterized linear regression tasks and a linear gating MoE model.", + "metadata": { + "source_file": "MOE", + "chunk_index": 289, + "chunk_id": "MOE_chunk_0289", + "start_position": 167574, + "end_position": 167929, + "page_index": 21, + "word_count": 48, + "char_count": 355 + }, + "has_embedding": false + }, + { + "content": "[272], under the setup of over-parameterized linear regression tasks and a linear gating MoE model. The authors prove that a sufficiently trained MoE model can diversify experts to specialize in different tasks, which minimize the interference across tasks and reduce the forgetting in continual learning. To ensure the stability of the gating function, the update of the gating network must be terminated in a timely manner for new task learning.", + "metadata": { + "source_file": "MOE", + "chunk_index": 290, + "chunk_id": "MOE_chunk_0290", + "start_position": 167929, + "end_position": 168376, + "page_index": 21, + "word_count": 70, + "char_count": 447 + }, + "has_embedding": false + }, + { + "content": "ction, the update of the gating network must be terminated in a timely manner for new task learning. Explicit expressions for expected forgetting and overall generalization error are also derived, quantitatively evaluating the impact of MoE in continual learning. [139] theoretically investigates the usage of the MoE framework in mobile edge computing (MEC) on handling continuous task streams therein.", + "metadata": { + "source_file": "MOE", + "chunk_index": 291, + "chunk_id": "MOE_chunk_0291", + "start_position": 168376, + "end_position": 168779, + "page_index": 21, + "word_count": 59, + "char_count": 403 + }, + "has_embedding": false + }, + { + "content": "age of the MoE framework in mobile edge computing (MEC) on handling continuous task streams therein. Specifically, each MEC service station is treated as an expert model, updating its local model based on the data distribution of tasks. An adaptive gating network was proposed to dynamically allocate tasks to different experts, ensuring that each expert converges and specializes in specific task types.", + "metadata": { + "source_file": "MOE", + "chunk_index": 292, + "chunk_id": "MOE_chunk_0292", + "start_position": 168779, + "end_position": 169183, + "page_index": 21, + "word_count": 62, + "char_count": 404 + }, + "has_embedding": false + }, + { + "content": "ks to different experts, ensuring that each expert converges and specializes in specific task types. Additionally, the paper derived the minimum number of experts required to ensure system convergence and proved that the MoE model can control the overall generalization error within a small constant range, significantly outperforming traditional MEC offloading strategies. # V. APPLICATIONS", + "metadata": { + "source_file": "MOE", + "chunk_index": 293, + "chunk_id": "MOE_chunk_0293", + "start_position": 169183, + "end_position": 169574, + "page_index": 21, + "word_count": 55, + "char_count": 391 + }, + "has_embedding": false + }, + { + "content": "APPLICATIONS In this section, we investigate the applications of MoE in two broad application domains, computer vision (CV) and natural language processing (NLP). By examining the influence of MoE in tasks ranging from image classification to machine translation, we highlight how this architectures enhance specialization, scalability, and adaptability, offering insights into their practical impact and future potential across diverse real-world scenarios. # A. Computer vision", + "metadata": { + "source_file": "MOE", + "chunk_index": 294, + "chunk_id": "MOE_chunk_0294", + "start_position": 169574, + "end_position": 170053, + "page_index": 21, + "word_count": 65, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "Computer vision With the rapid development and maturation of the CV field, the focus of both academia and industry has gradually shifted towards how CV technologies can be effectively implemented in specific application scenarios. However, this process has encountered several challenges such as resource constraints in edge deployment, difficulties in model scalability, and computational efficiency.", + "metadata": { + "source_file": "MOE", + "chunk_index": 295, + "chunk_id": "MOE_chunk_0295", + "start_position": 170053, + "end_position": 170454, + "page_index": 21, + "word_count": 55, + "char_count": 401 + }, + "has_embedding": false + }, + { + "content": "rce constraints in edge deployment, difficulties in model scalability, and computational efficiency. These issues have pointed to the need of the redesign of existing models, especially when dealing with large volumes of data and complex tasks, where traditional model architectures often struggle to find an ideal balance between performance, flexibility, and stability.", + "metadata": { + "source_file": "MOE", + "chunk_index": 296, + "chunk_id": "MOE_chunk_0296", + "start_position": 170454, + "end_position": 170825, + "page_index": 21, + "word_count": 52, + "char_count": 371 + }, + "has_embedding": false + }, + { + "content": "chitectures often struggle to find an ideal balance between performance, flexibility, and stability. Since MoE has attracted renewed attention due to its performance advantages demonstrated in Mixtral 8x7B [22], an increasing number of studies have attempted to apply it in the CV field, to boost the state-of-the-art performance.", + "metadata": { + "source_file": "MOE", + "chunk_index": 297, + "chunk_id": "MOE_chunk_0297", + "start_position": 170825, + "end_position": 171155, + "page_index": 21, + "word_count": 48, + "char_count": 330 + }, + "has_embedding": false + }, + { + "content": "er of studies have attempted to apply it in the CV field, to boost the state-of-the-art performance. Since the MoE architecture introduces multiple specialized experts to handle specific types of inputs and dynamically adjusts the activation levels of different experts based on the input data, it not only helps alleviate hardware resource bottlenecks but also enhances the model’s ability to handle diverse visual tasks, thereby optimizing both performance and stability.", + "metadata": { + "source_file": "MOE", + "chunk_index": 298, + "chunk_id": "MOE_chunk_0298", + "start_position": 171155, + "end_position": 171628, + "page_index": 21, + "word_count": 70, + "char_count": 473 + }, + "has_embedding": false + }, + { + "content": "e model’s ability to handle diverse visual tasks, thereby optimizing both performance and stability. Therefore, in this subsection we will focus on the application of MoE in the field of CV by reviewing recent advancements from four bedrock aspects, i.e., classification, detection, segmentation, and generation. The aim is to provide valuable references for future explorations to address the challenges in the CV field. 1) Image Classification.", + "metadata": { + "source_file": "MOE", + "chunk_index": 299, + "chunk_id": "MOE_chunk_0299", + "start_position": 171628, + "end_position": 172074, + "page_index": 21, + "word_count": 66, + "char_count": 446 + }, + "has_embedding": false + }, + { + "content": "1) Image Classification. Image classification, as one of the most fundamental machine learning tasks, is a key component of many CV tasks. Therefore, understanding the performance and limitations of MoE in image classification can, to some extent, reflect its potentials for application in other CV tasks. Notably, [17] proposes and validates a new approach, namely V-MoE, to cope with visual tasks, by replacing the MLP layers in Vision-Transformer [1] with sparse MoE layers.", + "metadata": { + "source_file": "MOE", + "chunk_index": 300, + "chunk_id": "MOE_chunk_0300", + "start_position": 172074, + "end_position": 172551, + "page_index": 21, + "word_count": 73, + "char_count": 477 + }, + "has_embedding": false + }, + { + "content": "ope with visual tasks, by replacing the MLP layers in Vision-Transformer [1] with sparse MoE layers. V-MoE can scale the model to 15 billion parameters and demonstrates the efficiency gains from this simple combination in image classification tasks. Further explorations within the traditional MoE framework have been conducted. [153] dissects the MoE architecture, providing a detailed exploration of its training and optimization.", + "metadata": { + "source_file": "MOE", + "chunk_index": 301, + "chunk_id": "MOE_chunk_0301", + "start_position": 172551, + "end_position": 172983, + "page_index": 21, + "word_count": 62, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "3] dissects the MoE architecture, providing a detailed exploration of its training and optimization. The paper discusses how the number of expert networks, the number of MOE layers, and their placement affect the model’s performance, efficiency, and stability. As expert networks are a key component of MoE, many efforts have been made to optimize them.", + "metadata": { + "source_file": "MOE", + "chunk_index": 302, + "chunk_id": "MOE_chunk_0302", + "start_position": 172983, + "end_position": 173336, + "page_index": 21, + "word_count": 55, + "char_count": 353 + }, + "has_embedding": false + }, + { + "content": "As expert networks are a key component of MoE, many efforts have been made to optimize them. ViMOE [154] introduces the concept of shared experts, where a shared expert handles common knowledge required for classification, while other specialized experts focus on specific knowledge. This approach mitigates the difficulty in exploring optimal configurations due to the sensitivity of MoE layers to expert setups and enhances training stability.", + "metadata": { + "source_file": "MOE", + "chunk_index": 303, + "chunk_id": "MOE_chunk_0303", + "start_position": 173336, + "end_position": 173781, + "page_index": 21, + "word_count": 66, + "char_count": 445 + }, + "has_embedding": false + }, + { + "content": "onfigurations due to the sensitivity of MoE layers to expert setups and enhances training stability. The paper also systematically analyzes routing behaviors, examining routing strategies, the number of experts, and the placement of MoE layers. It visualizes routing behaviors with heatmaps, finding that MoE layers closer to the output handle more semantically rich feature maps, leading to more specialized tasks for experts.", + "metadata": { + "source_file": "MOE", + "chunk_index": 304, + "chunk_id": "MOE_chunk_0304", + "start_position": 173781, + "end_position": 174208, + "page_index": 21, + "word_count": 62, + "char_count": 427 + }, + "has_embedding": false + }, + { + "content": "he output handle more semantically rich feature maps, leading to more specialized tasks for experts. Consequently, the last L layers of the model should be replaced with sparse MoE layers. The analysis suggests that both the number of experts and the size of $\\mathrm { L }$ are related to the degree of routing, and more does not necessarily mean better performance. To some degree, the base model introduced in [155] shares similarities with the shared expert concept proposed in ViMOE [154].", + "metadata": { + "source_file": "MOE", + "chunk_index": 305, + "chunk_id": "MOE_chunk_0305", + "start_position": 174208, + "end_position": 174702, + "page_index": 21, + "word_count": 82, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "odel introduced in [155] shares similarities with the shared expert concept proposed in ViMOE [154]. In CLIP-MoE [156], the MoE architecture is applied to enhance the capabilities of the CLIP model through a method called Diversified Multiplet Upcycling. The authors fine-tune a series of pre-trained CLIP models using multi-stage contrastive learning, extracting expert networks that focus on different aspects of the input data, and integrating these experts into the MoE architecture.", + "metadata": { + "source_file": "MOE", + "chunk_index": 306, + "chunk_id": "MOE_chunk_0306", + "start_position": 174702, + "end_position": 175189, + "page_index": 21, + "word_count": 71, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "cus on different aspects of the input data, and integrating these experts into the MoE architecture. Other papers delve deeper into the design of gating functions. [27] introduces a novel technique called Soft MoE, which differs from traditional hard assignment of input tokens to experts by using a weighted average of all tokens for soft assignment. Therefore, each expert processes different parts of these weighted combinations.", + "metadata": { + "source_file": "MOE", + "chunk_index": 307, + "chunk_id": "MOE_chunk_0307", + "start_position": 175189, + "end_position": 175621, + "page_index": 21, + "word_count": 66, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "Therefore, each expert processes different parts of these weighted combinations. This method retains the advantages of the MoE architecture in scaling model capacity. Besides, it also improves training stability, reduces inference time, and effectively addresses the token dropping issue common in MoE training, creating a new paradigm for gating functions.", + "metadata": { + "source_file": "MOE", + "chunk_index": 308, + "chunk_id": "MOE_chunk_0308", + "start_position": 175621, + "end_position": 175978, + "page_index": 21, + "word_count": 50, + "char_count": 357 + }, + "has_embedding": false + }, + { + "content": "esses the token dropping issue common in MoE training, creating a new paradigm for gating functions. [155] addresses the overfitting problem encountered when using MOE on small datasets by designing an architecture that incorporates early exit mechanisms and pre-training. Specifically, the model pre-trains a base model during the training phase and pre-determines the number of experts using k-means clustering.", + "metadata": { + "source_file": "MOE", + "chunk_index": 309, + "chunk_id": "MOE_chunk_0309", + "start_position": 175978, + "end_position": 176391, + "page_index": 21, + "word_count": 59, + "char_count": 413 + }, + "has_embedding": false + }, + { + "content": "e model during the training phase and pre-determines the number of experts using k-means clustering. During inference, if the base model has high confidence in a sample’s prediction, it can opt for an early exit, bypassing the subsequent MoE layers for specialized learning. Otherwise, the sample is passed to the MoE layers for specialized learning, and the outputs from both the MoE layers and the base model are combined by Ensemblers to produce the final output.", + "metadata": { + "source_file": "MOE", + "chunk_index": 310, + "chunk_id": "MOE_chunk_0310", + "start_position": 176391, + "end_position": 176857, + "page_index": 21, + "word_count": 76, + "char_count": 466 + }, + "has_embedding": false + }, + { + "content": "from both the MoE layers and the base model are combined by Ensemblers to produce the final output. [158] focuses on improving the design of gating mechanisms in Hierarchical Mixture of Experts (HMoE) models to address performance bottlenecks in handling complex inputs and executing specific tasks. Specifically, this work proposes a method that goes beyond the traditional Softmax gating function by using Laplace gating strategies for both hierarchical and task allocation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 311, + "chunk_id": "MOE_chunk_0311", + "start_position": 176857, + "end_position": 177333, + "page_index": 21, + "word_count": 71, + "char_count": 476 + }, + "has_embedding": false + }, + { + "content": "oftmax gating function by using Laplace gating strategies for both hierarchical and task allocation. By customizing gating functions for each expert group, the HMoE model can allocate resources more effectively without increasing computational burden and improve performance on complex datasets.", + "metadata": { + "source_file": "MOE", + "chunk_index": 312, + "chunk_id": "MOE_chunk_0312", + "start_position": 177333, + "end_position": 177628, + "page_index": 21, + "word_count": 40, + "char_count": 295 + }, + "has_embedding": false + }, + { + "content": "ore effectively without increasing computational burden and improve performance on complex datasets. Additionally, it explores the intrinsic interactions between first-level and second-level gating parameters, which significantly affect the convergence speed of model parameter estimation, providing a thoughtful direction for allocating complex or hierarchical datasets. [157] designs a deep mixture algorithm called DeepME (Deep Mixture Experts) for efficiently handling large-scale image processing tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 313, + "chunk_id": "MOE_chunk_0313", + "start_position": 177628, + "end_position": 178136, + "page_index": 21, + "word_count": 62, + "char_count": 508 + }, + "has_embedding": false + }, + { + "content": "hm called DeepME (Deep Mixture Experts) for efficiently handling large-scale image processing tasks. It groups similar image categories based on semantic relevance, allowing for some overlap between categories. This ensures that each task group contains image categories with similar learning complexities, and specific base deep networks are trained for these groups.", + "metadata": { + "source_file": "MOE", + "chunk_index": 314, + "chunk_id": "MOE_chunk_0314", + "start_position": 178136, + "end_position": 178504, + "page_index": 21, + "word_count": 51, + "char_count": 368 + }, + "has_embedding": false + }, + { + "content": "es with similar learning complexities, and specific base deep networks are trained for these groups. Additionally, a gating network is trained to combine all base deep networks, generating a mixed network with larger outputs to effectively handle large-scale datasets containing thousands of categories. 2) Object Detection. Object detection is also one of the important tasks in the field of CV.", + "metadata": { + "source_file": "MOE", + "chunk_index": 315, + "chunk_id": "MOE_chunk_0315", + "start_position": 178504, + "end_position": 178900, + "page_index": 21, + "word_count": 60, + "char_count": 396 + }, + "has_embedding": false + }, + { + "content": "Object detection is also one of the important tasks in the field of CV. Building on image classification, it requires the model to not only detect objects but also output the location of each classified object, where ensuring the computational efficiency of the model is more challenging compared to that in image classification. Similarly, many studies have explored the impact of simply integrating MoE with base models for object detection.", + "metadata": { + "source_file": "MOE", + "chunk_index": 316, + "chunk_id": "MOE_chunk_0316", + "start_position": 178900, + "end_position": 179343, + "page_index": 21, + "word_count": 70, + "char_count": 443 + }, + "has_embedding": false + }, + { + "content": "ny studies have explored the impact of simply integrating MoE with base models for object detection. MoCaE [159] has shown that directly using simple methods from deep ensemble (DEs) [273] to integrate different object detectors with the MoE architecture does not improve model performance and may even have adverse effects. The underlying reason is that simply adding different detectors leads to unfair competition, thereby affecting the final detection results.", + "metadata": { + "source_file": "MOE", + "chunk_index": 317, + "chunk_id": "MOE_chunk_0317", + "start_position": 179343, + "end_position": 179807, + "page_index": 21, + "word_count": 69, + "char_count": 464 + }, + "has_embedding": false + }, + { + "content": "ding different detectors leads to unfair competition, thereby affecting the final detection results. To address this, this work introduces Early Calibration and Late Calibration to adjust the confidence levels of different detectors, better reflecting their true detection performance. Experimental results have shown that MoCaE yields significant gains over single models and DEs on several real-world challenging detection tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 318, + "chunk_id": "MOE_chunk_0318", + "start_position": 179807, + "end_position": 180238, + "page_index": 21, + "word_count": 58, + "char_count": 431 + }, + "has_embedding": false + }, + { + "content": "elds significant gains over single models and DEs on several real-world challenging detection tasks. [160] replaces the FFN layer in the traditional transformer with the MoE-HCO block, proposing an event-stream-based object detection framework called MvHeat-DET. The MoEHCO block selects the most suitable transformation branch for the current features through a policy network, providing various signal transformation expert networks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 319, + "chunk_id": "MOE_chunk_0319", + "start_position": 180238, + "end_position": 180673, + "page_index": 21, + "word_count": 58, + "char_count": 435 + }, + "has_embedding": false + }, + { + "content": "current features through a policy network, providing various signal transformation expert networks. Therefore, the input events can have more diverse and suitable processing modules. It also uses frequency embedding to predict thermal diffusion coefficients to simulate the heat conduction process. This will enable the model to better capture spatiotemporal dynamic features in event streams while maintaining efficient computation, demonstrating high practical values.", + "metadata": { + "source_file": "MOE", + "chunk_index": 320, + "chunk_id": "MOE_chunk_0320", + "start_position": 180673, + "end_position": 181143, + "page_index": 21, + "word_count": 62, + "char_count": 470 + }, + "has_embedding": false + }, + { + "content": "tures in event streams while maintaining efficient computation, demonstrating high practical values. To help the model better understand and process multi-source datasets, DAMEX [161] proposes a data-aware MoE architecture, by replacing the FFN layer in the transformer with an MoE layer. Different experts are trained to learn data from different sources, enhancing the model’s generalization capability.", + "metadata": { + "source_file": "MOE", + "chunk_index": 321, + "chunk_id": "MOE_chunk_0321", + "start_position": 181143, + "end_position": 181548, + "page_index": 21, + "word_count": 56, + "char_count": 405 + }, + "has_embedding": false + }, + { + "content": "s are trained to learn data from different sources, enhancing the model’s generalization capability. Traditional two-stage methods [274], [275] require multiple classification heads to detect data from different datasets, leading to an increase in parameters with mixed datasets. In contrast, the data-aware MoE layer can achieve excellent performance without significantly increasing the number of parameters.", + "metadata": { + "source_file": "MOE", + "chunk_index": 322, + "chunk_id": "MOE_chunk_0322", + "start_position": 181548, + "end_position": 181958, + "page_index": 21, + "word_count": 55, + "char_count": 410 + }, + "has_embedding": false + }, + { + "content": "E layer can achieve excellent performance without significantly increasing the number of parameters. [162] addresses the diversity and ambiguity of the task itself, by transforming the original single-mask prediction task into a multi-mask prediction task and predicting human preference scores for each possible salient object mask.", + "metadata": { + "source_file": "MOE", + "chunk_index": 323, + "chunk_id": "MOE_chunk_0323", + "start_position": 181958, + "end_position": 182291, + "page_index": 21, + "word_count": 46, + "char_count": 333 + }, + "has_embedding": false + }, + { + "content": "i-mask prediction task and predicting human preference scores for each possible salient object mask. To enable the model to handle multiple tasks more efficiently, this paper leverages the MoE architecture to solve the integrated training problem of the two tasks, and overcomes the inconsistency in input and output formats between the two subtasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 324, + "chunk_id": "MOE_chunk_0324", + "start_position": 182291, + "end_position": 182641, + "page_index": 21, + "word_count": 53, + "char_count": 350 + }, + "has_embedding": false + }, + { + "content": "the two tasks, and overcomes the inconsistency in input and output formats between the two subtasks. In particular, this work replaces the FFN layer in DaViT [276] with an MoE layer, which contains two experts: the PFFN layer for handling the PSOD (Pluralistic Salient Object Detection) task and the Q-FFN for handling the MQP (Mask Quality Predictor) task.", + "metadata": { + "source_file": "MOE", + "chunk_index": 325, + "chunk_id": "MOE_chunk_0325", + "start_position": 182641, + "end_position": 182998, + "page_index": 21, + "word_count": 58, + "char_count": 357 + }, + "has_embedding": false + }, + { + "content": "tic Salient Object Detection) task and the Q-FFN for handling the MQP (Mask Quality Predictor) task. This allows the model to dynamically select the most suitable expert network for the current task, improving model performance without significantly increasing the number of parameters. 3) Semantic Segmentation. Semantic segmentation requires classifying each pixel in the input image.", + "metadata": { + "source_file": "MOE", + "chunk_index": 326, + "chunk_id": "MOE_chunk_0326", + "start_position": 182998, + "end_position": 183384, + "page_index": 21, + "word_count": 55, + "char_count": 386 + }, + "has_embedding": false + }, + { + "content": "Semantic segmentation requires classifying each pixel in the input image. As a result, processing high-resolution images may significantly increase the demand on the hardware, hindering the model’s practical applications. Compared to traditional segmentation models, the MoE-based model can provide the following benefits: 1) The MoE architecture alleviates hardware pressure through its sparse activation and divide-and-conquer strategy, enhancing the model’s practicality.", + "metadata": { + "source_file": "MOE", + "chunk_index": 327, + "chunk_id": "MOE_chunk_0327", + "start_position": 183384, + "end_position": 183858, + "page_index": 21, + "word_count": 60, + "char_count": 474 + }, + "has_embedding": false + }, + { + "content": "e through its sparse activation and divide-and-conquer strategy, enhancing the model’s practicality. 2) Some studies [163], [164] have also found that using MoE can achieve excellent performance in semantic segmentation tasks that require greater model stability and generalization. 3) MoE also enjoys a better interpretability in terms of knowledge specialization. [166] seeks to leverage MoE to achieve a good balance between computational complexity and representational capacity in deep neural networks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 328, + "chunk_id": "MOE_chunk_0328", + "start_position": 183858, + "end_position": 184365, + "page_index": 21, + "word_count": 70, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "good balance between computational complexity and representational capacity in deep neural networks. In particular, traditional convolutional networks are combined with shallow embedding networks and multi-head sparse gating networks, dynamically selecting and executing partial networks at each convolutional layer. This can improve the accuracy while reducing prediction costs without significantly increasing the network width.", + "metadata": { + "source_file": "MOE", + "chunk_index": 329, + "chunk_id": "MOE_chunk_0329", + "start_position": 184365, + "end_position": 184795, + "page_index": 21, + "word_count": 53, + "char_count": 430 + }, + "has_embedding": false + }, + { + "content": "ove the accuracy while reducing prediction costs without significantly increasing the network width. Furthermore, this work proposes two DeepMoE variants including wideDeepMoE and narrow-DeepMoE. The first one is suitable for applications requiring high accuracy, whereas the second one is designed for computational resource-limited scenarios. Swin2-MoSE [167] demonstrates that MoE can also be applied to improve semantic segmentation models, especially on remote sensing images.", + "metadata": { + "source_file": "MOE", + "chunk_index": 330, + "chunk_id": "MOE_chunk_0330", + "start_position": 184795, + "end_position": 185276, + "page_index": 21, + "word_count": 63, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "oE can also be applied to improve semantic segmentation models, especially on remote sensing images. The authors design an MoE layer called MoE-SM, which includes an SM (Smart Merger) module to merge the outputs of various experts and adopts a new perexample strategy instead of the commonly used per-token one. This can ensure that all tokens of each example are processed by the same expert, enhancing the model’s competitiveness in semantic segmentation tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 331, + "chunk_id": "MOE_chunk_0331", + "start_position": 185276, + "end_position": 185739, + "page_index": 21, + "word_count": 73, + "char_count": 463 + }, + "has_embedding": false + }, + { + "content": "processed by the same expert, enhancing the model’s competitiveness in semantic segmentation tasks. Some studies have also investigated the usage of MoE in the segmentation for autonomous driving related scenarios. For example, [165] aims to leverage MoE to better understand autonomous driving scenarios which can further lead to improved algorithm design. Due to its architecture design, MoE inherently enjoys better transparency.", + "metadata": { + "source_file": "MOE", + "chunk_index": 332, + "chunk_id": "MOE_chunk_0332", + "start_position": 185739, + "end_position": 186171, + "page_index": 21, + "word_count": 61, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "Due to its architecture design, MoE inherently enjoys better transparency. Compared to other general models [273], [277], the MoE models can not only provide the final overall model output, but also enable the analysis of the outputs of individual expert models and their consistency or divergence with the overall output during the decision-making process.", + "metadata": { + "source_file": "MOE", + "chunk_index": 333, + "chunk_id": "MOE_chunk_0333", + "start_position": 186171, + "end_position": 186528, + "page_index": 21, + "word_count": 54, + "char_count": 357 + }, + "has_embedding": false + }, + { + "content": "dels and their consistency or divergence with the overall output during the decision-making process. This mechanism provides more detailed information about how the models work, offering better interpretability while maintaining performance close to that of a single baseline model. A common issue in segmenting urban and highway traffic scenes is vulnerability to adversarial attacks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 334, + "chunk_id": "MOE_chunk_0334", + "start_position": 186528, + "end_position": 186913, + "page_index": 21, + "word_count": 54, + "char_count": 385 + }, + "has_embedding": false + }, + { + "content": "common issue in segmenting urban and highway traffic scenes is vulnerability to adversarial attacks. To address this, [163] attempts to use MoE given its properties of more dynamic model selections compared to traditional methods [278], [279], [280]. This work shows that the MoE models exhibits higher robustness against instancespecific attacks, universal white-box adversarial attacks, and cross-model transfer attacks, maintaining relatively high accuracy under these attacks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 335, + "chunk_id": "MOE_chunk_0335", + "start_position": 186913, + "end_position": 187393, + "page_index": 21, + "word_count": 65, + "char_count": 480 + }, + "has_embedding": false + }, + { + "content": "attacks, and cross-model transfer attacks, maintaining relatively high accuracy under these attacks. Additionally, the MoE models with additional convolutional layers show even stronger resistance to attacks. These results indicate that MoE not only improves model performance but also enhances model robustness and stability. 4) Image Generation. Image generation can produce realistic and diverse images, which is very useful in many applications [281], [282], [283], [284].", + "metadata": { + "source_file": "MOE", + "chunk_index": 336, + "chunk_id": "MOE_chunk_0336", + "start_position": 187393, + "end_position": 187869, + "page_index": 21, + "word_count": 65, + "char_count": 476 + }, + "has_embedding": false + }, + { + "content": "realistic and diverse images, which is very useful in many applications [281], [282], [283], [284]. However, current image generation technologies still face various challenges such as low generation quality, limited diversity, and poor adaptability to complex tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 337, + "chunk_id": "MOE_chunk_0337", + "start_position": 187869, + "end_position": 188136, + "page_index": 21, + "word_count": 37, + "char_count": 267 + }, + "has_embedding": false + }, + { + "content": "hallenges such as low generation quality, limited diversity, and poor adaptability to complex tasks. By decomposing the complex problem of image generation into multiple simpler and core tasks, MoE leverages the collaboration among the experts to enhance the quality of generated images, improve the diversity of outputs, and further enrich detail representations. RAPHAEL [168] introduces two types of MoE models for temporal control and spatial settings during generation, respectively.", + "metadata": { + "source_file": "MOE", + "chunk_index": 338, + "chunk_id": "MOE_chunk_0338", + "start_position": 188136, + "end_position": 188624, + "page_index": 21, + "word_count": 69, + "char_count": 488 + }, + "has_embedding": false + }, + { + "content": "s two types of MoE models for temporal control and spatial settings during generation, respectively. On one hand, a spatial MoE layer is responsible for depicting different text concepts in specific image regions, allowing each text token to learn specific visual features through specialized experts. This can enhance the representation of different concepts.", + "metadata": { + "source_file": "MOE", + "chunk_index": 339, + "chunk_id": "MOE_chunk_0339", + "start_position": 188624, + "end_position": 188984, + "page_index": 21, + "word_count": 53, + "char_count": 360 + }, + "has_embedding": false + }, + { + "content": "This can enhance the representation of different concepts. On the other hand, a temporal MoE layer focuses on processing these concepts at different time steps of the diffusion process to handle varying degrees of noise impact. This configuration results in billions of diffusion paths from the network input to the output, each path acting as a “painter” for specific concepts and image regions, achieving finer text-to-image alignment and improving the quality and aesthetic appeal of generated images.", + "metadata": { + "source_file": "MOE", + "chunk_index": 340, + "chunk_id": "MOE_chunk_0340", + "start_position": 188984, + "end_position": 189488, + "page_index": 21, + "word_count": 77, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "ng finer text-to-image alignment and improving the quality and aesthetic appeal of generated images. The application of MoE enables RAPHAEL to flexibly switch between multiple styles and closely adhere to text prompts. GANs [285] are known to struggle to learn multimodal data distributions when processing complex datasets, leading to generated images with poor-quality.", + "metadata": { + "source_file": "MOE", + "chunk_index": 341, + "chunk_id": "MOE_chunk_0341", + "start_position": 189488, + "end_position": 189859, + "page_index": 21, + "word_count": 53, + "char_count": 371 + }, + "has_embedding": false + }, + { + "content": "data distributions when processing complex datasets, leading to generated images with poor-quality. To address this, [169] proposes MEGAN with multiple generator networks, where each network focuses on learning specific modal distributions in the dataset. This design allows each generator to focus on different data subsets, generating more diverse and higherquality images.", + "metadata": { + "source_file": "MOE", + "chunk_index": 342, + "chunk_id": "MOE_chunk_0342", + "start_position": 189859, + "end_position": 190234, + "page_index": 21, + "word_count": 51, + "char_count": 375 + }, + "has_embedding": false + }, + { + "content": "each generator to focus on different data subsets, generating more diverse and higherquality images. A novel design of MoA is introduced in [32] by creating two attention paths, i.e., a personalized branch and a nonpersonalized prior branch, allowing the model to retain its powerful generation capabilities while minimizing interference with the personalized part. This specially designed MoA can intelligently adjust the generation process based on the input text and subject image.", + "metadata": { + "source_file": "MOE", + "chunk_index": 343, + "chunk_id": "MOE_chunk_0343", + "start_position": 190234, + "end_position": 190718, + "page_index": 21, + "word_count": 71, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "igned MoA can intelligently adjust the generation process based on the input text and subject image. By optimizing the fusion of personalized and generic content, high-fidelity personalized image generation can be achieved without sacrificing image diversity or quality. Additionally, the learning routing mechanism in [32] dynamically manages pixel distribution at each level, further improving the performance for image generation tasks that involve multiple subjects and complex interactions.", + "metadata": { + "source_file": "MOE", + "chunk_index": 344, + "chunk_id": "MOE_chunk_0344", + "start_position": 190718, + "end_position": 191213, + "page_index": 21, + "word_count": 67, + "char_count": 495 + }, + "has_embedding": false + }, + { + "content": "the performance for image generation tasks that involve multiple subjects and complex interactions. Text2Human [170] applies MoE to the transformer encoder based on the diffusion model [286], [287], [288], enabling conditional generation of clothing with different texture types. Specifically, the MoE model routes input features to different expert heads based on the texture attributes mentioned in the text prompt, with each expert head responsible for predicting tokens of specific textures.", + "metadata": { + "source_file": "MOE", + "chunk_index": 345, + "chunk_id": "MOE_chunk_0345", + "start_position": 191213, + "end_position": 191708, + "page_index": 21, + "word_count": 70, + "char_count": 495 + }, + "has_embedding": false + }, + { + "content": "ed in the text prompt, with each expert head responsible for predicting tokens of specific textures. Based on the synthesis and control of more complex textures, this method increases the model’s ability to handle details while avoiding the computational burden of training separate samplers for each texture. # B. Natural Language Processing As a core research area of artificial intelligence, NLP focuses on enabling computers to understand, generate, and process human language [289], [290].", + "metadata": { + "source_file": "MOE", + "chunk_index": 346, + "chunk_id": "MOE_chunk_0346", + "start_position": 191708, + "end_position": 192202, + "page_index": 21, + "word_count": 74, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "NLP focuses on enabling computers to understand, generate, and process human language [289], [290]. It plays a significant role in promoting human-computer interaction, information extraction, knowledge mining, cross-lingual communication, and automation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 347, + "chunk_id": "MOE_chunk_0347", + "start_position": 192202, + "end_position": 192457, + "page_index": 21, + "word_count": 31, + "char_count": 255 + }, + "has_embedding": false + }, + { + "content": "interaction, information extraction, knowledge mining, cross-lingual communication, and automation. However, the field of NLP still faces challenges such as the trade-off between model capacity and computational cost, poor adaptability to multi-task and multidomain scenarios, sparse data and long-tail problems, insufficient reasoning and logical capabilities, and the need for personalization and dynamic adaptability.", + "metadata": { + "source_file": "MOE", + "chunk_index": 348, + "chunk_id": "MOE_chunk_0348", + "start_position": 192457, + "end_position": 192877, + "page_index": 21, + "word_count": 52, + "char_count": 420 + }, + "has_embedding": false + }, + { + "content": "cient reasoning and logical capabilities, and the need for personalization and dynamic adaptability. The MoE architecture effectively alleviates these challenges through mechanisms such as sparse activation and the allocation of different expert models for different tasks or domains. This not only reduces computational costs but also enhances model performance in multi-task, low-resource scenarios, and complex reasoning tasks, while supporting personalized services.", + "metadata": { + "source_file": "MOE", + "chunk_index": 349, + "chunk_id": "MOE_chunk_0349", + "start_position": 192877, + "end_position": 193347, + "page_index": 21, + "word_count": 61, + "char_count": 470 + }, + "has_embedding": false + }, + { + "content": "i-task, low-resource scenarios, and complex reasoning tasks, while supporting personalized services. In light of the application of MoE in the NLP field, this subsection will summarize and review relevant work from the perspectives of Natural Language Understanding (NLU) and Natural Language Generation (NLG). 1) Natural Language Understanding.", + "metadata": { + "source_file": "MOE", + "chunk_index": 350, + "chunk_id": "MOE_chunk_0350", + "start_position": 193347, + "end_position": 193692, + "page_index": 21, + "word_count": 47, + "char_count": 345 + }, + "has_embedding": false + }, + { + "content": "1) Natural Language Understanding. The advancement of NLU technology enables machines to understand and interpret human language, by bridging the gap between human communication and machine processing [291], [292]. This allows systems to perform tasks such as intent recognition, entity extraction, and semantic analysis [8], [293], which are crucial for applications such as virtual assistants, chatbots [294], sentiment analysis [295], and information extraction [296].", + "metadata": { + "source_file": "MOE", + "chunk_index": 351, + "chunk_id": "MOE_chunk_0351", + "start_position": 193692, + "end_position": 194163, + "page_index": 21, + "word_count": 64, + "char_count": 471 + }, + "has_embedding": false + }, + { + "content": "h as virtual assistants, chatbots [294], sentiment analysis [295], and information extraction [296]. However, the further development of NLU is hindered by the complexity, ambiguity, and diversity of human language. MoE allows systems to dynamically leverage expert networks for different linguistic tasks or domains.", + "metadata": { + "source_file": "MOE", + "chunk_index": 352, + "chunk_id": "MOE_chunk_0352", + "start_position": 194163, + "end_position": 194480, + "page_index": 21, + "word_count": 44, + "char_count": 317 + }, + "has_embedding": false + }, + { + "content": "oE allows systems to dynamically leverage expert networks for different linguistic tasks or domains. For example, one expert may specialize in syntactic parsing, while another focuses on sentiment analysis, thereby enhancing the model’s ability to effectively handle various complex linguistic patterns. This specialization and adaptability make MoE a powerful method for extending and refining NLU systems, enabling more accurate and context-aware language understanding.", + "metadata": { + "source_file": "MOE", + "chunk_index": 353, + "chunk_id": "MOE_chunk_0353", + "start_position": 194480, + "end_position": 194952, + "page_index": 21, + "word_count": 63, + "char_count": 472 + }, + "has_embedding": false + }, + { + "content": "extending and refining NLU systems, enabling more accurate and context-aware language understanding. Since the use of specially designed MoE architectures to enhance model performance in NLG tasks has not yet reached a scale sufficient for sub-domain classification, this section will only summarize some representative work in recent years. GLaM [20] introduces an MoE architecture to make the training and inference processes more efficient.", + "metadata": { + "source_file": "MOE", + "chunk_index": 354, + "chunk_id": "MOE_chunk_0354", + "start_position": 194952, + "end_position": 195395, + "page_index": 21, + "word_count": 63, + "char_count": 443 + }, + "has_embedding": false + }, + { + "content": "LaM [20] introduces an MoE architecture to make the training and inference processes more efficient. It significantly reduces the required computational resources and energy consumption while maintaining or even improving model performance. This encouraging result highlights the great potentials in leveraging MoE to address the issue of high computational resource consumption in large-scale, intensive language models for NLU tasks. MoE-LPR [171] designs a two-phase training strategy for the MoE-based model.", + "metadata": { + "source_file": "MOE", + "chunk_index": 355, + "chunk_id": "MOE_chunk_0355", + "start_position": 195395, + "end_position": 195907, + "page_index": 21, + "word_count": 70, + "char_count": 512 + }, + "has_embedding": false + }, + { + "content": "MoE-LPR [171] designs a two-phase training strategy for the MoE-based model. In the first phase, the original model is converted into an MoE architecture, and new expert modules are added, which improves the model’s capability for new languages without using original language data. In the second phase, a small amount of original language data is used for review, and a language prior routing mechanism is employed to restore and maintain the performance of the original language.", + "metadata": { + "source_file": "MOE", + "chunk_index": 356, + "chunk_id": "MOE_chunk_0356", + "start_position": 195907, + "end_position": 196388, + "page_index": 21, + "word_count": 76, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "rior routing mechanism is employed to restore and maintain the performance of the original language. Experimental results demonstrate the excellent scalability and stability of MoE-LPR, providing a new perspective for multilingual natural language understanding tasks. When speech is transcribed into text, errors from Automatic Speech Recognition (ASR) systems [297] often affect the accuracy of subsequent NLU components.", + "metadata": { + "source_file": "MOE", + "chunk_index": 357, + "chunk_id": "MOE_chunk_0357", + "start_position": 196388, + "end_position": 196811, + "page_index": 21, + "word_count": 57, + "char_count": 423 + }, + "has_embedding": false + }, + { + "content": "matic Speech Recognition (ASR) systems [297] often affect the accuracy of subsequent NLU components. To address this, [172] proposes an MoE-based framework, namely MoE-SLU, aiming to mitigate the impact of ASR errors on spoken language understanding performance. MoE-SLU employs three strategies to generate additional transcripts and uses MoE to weight and average these transcripts.", + "metadata": { + "source_file": "MOE", + "chunk_index": 358, + "chunk_id": "MOE_chunk_0358", + "start_position": 196811, + "end_position": 197195, + "page_index": 21, + "word_count": 54, + "char_count": 384 + }, + "has_embedding": false + }, + { + "content": "strategies to generate additional transcripts and uses MoE to weight and average these transcripts. By enhancing the model’s ability to capture keywords, MoE-SLU is more robust to ASR errors, achieving state-of-the-art performance on three benchmark SLU datasets. The performance of MoE-SLU can be further improved through regularized predictions.", + "metadata": { + "source_file": "MOE", + "chunk_index": 359, + "chunk_id": "MOE_chunk_0359", + "start_position": 197195, + "end_position": 197542, + "page_index": 21, + "word_count": 48, + "char_count": 347 + }, + "has_embedding": false + }, + { + "content": "The performance of MoE-SLU can be further improved through regularized predictions. To address the issue of interference in multi-task learning, particularly among NLU tasks, MT-TaG [87] introduces a sparsely activated MoE architecture and designs a task-aware gating mechanism to route inputs to specific expert networks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 360, + "chunk_id": "MOE_chunk_0360", + "start_position": 197542, + "end_position": 197864, + "page_index": 21, + "word_count": 45, + "char_count": 322 + }, + "has_embedding": false + }, + { + "content": "architecture and designs a task-aware gating mechanism to route inputs to specific expert networks. Compared to traditional dense models, MT-TaG demonstrates superior performance in multi-task learning, especially in lowresource task transfer, efficient generalization, and handling unrelated tasks.", + "metadata": { + "source_file": "MOE", + "chunk_index": 361, + "chunk_id": "MOE_chunk_0361", + "start_position": 197864, + "end_position": 198163, + "page_index": 21, + "word_count": 37, + "char_count": 299 + }, + "has_embedding": false + }, + { + "content": "ng, especially in lowresource task transfer, efficient generalization, and handling unrelated tasks. MoPE-BAF [173] designs various soft prompt experts, including text prompts, image prompts, and unified prompts, based on a unified vision-language model to enrich unimodal representations and promote multimodal interaction.", + "metadata": { + "source_file": "MOE", + "chunk_index": 362, + "chunk_id": "MOE_chunk_0362", + "start_position": 198163, + "end_position": 198487, + "page_index": 21, + "word_count": 41, + "char_count": 324 + }, + "has_embedding": false + }, + { + "content": "unified vision-language model to enrich unimodal representations and promote multimodal interaction. By introducing a block-aware prompt fusion mechanism, the model achieves cross-modal prompt attention across Transformer layers, smoothly transitioning from unimodal representations to multimodal fusion.", + "metadata": { + "source_file": "MOE", + "chunk_index": 363, + "chunk_id": "MOE_chunk_0363", + "start_position": 198487, + "end_position": 198791, + "page_index": 21, + "word_count": 35, + "char_count": 304 + }, + "has_embedding": false + }, + { + "content": "cross Transformer layers, smoothly transitioning from unimodal representations to multimodal fusion. Experimental results show that MoPE-BAF significantly improves performance in fewshot settings for multimodal sarcasm detection and sentiment analysis tasks, demonstrating the effectiveness of MoE in deep multimodal semantic understanding tasks. 2) Natural Language Generation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 364, + "chunk_id": "MOE_chunk_0364", + "start_position": 198791, + "end_position": 199169, + "page_index": 21, + "word_count": 45, + "char_count": 378 + }, + "has_embedding": false + }, + { + "content": "2) Natural Language Generation. NLG can transform structured data or concepts into natural and fluent text, widely applied in machine translation [298], dialogue systems [299], content creation [300], and information summarization [301], among other fields.", + "metadata": { + "source_file": "MOE", + "chunk_index": 365, + "chunk_id": "MOE_chunk_0365", + "start_position": 199169, + "end_position": 199426, + "page_index": 21, + "word_count": 35, + "char_count": 257 + }, + "has_embedding": false + }, + { + "content": "ogue systems [299], content creation [300], and information summarization [301], among other fields. To achieve diverse and precise language expression, NLG systems require strong model capacity to capture complex linguistic structures and contextual dependencies, while effectively handling interference in multi-task learning to maintain high performance across different scenarios.", + "metadata": { + "source_file": "MOE", + "chunk_index": 366, + "chunk_id": "MOE_chunk_0366", + "start_position": 199426, + "end_position": 199810, + "page_index": 21, + "word_count": 48, + "char_count": 384 + }, + "has_embedding": false + }, + { + "content": "andling interference in multi-task learning to maintain high performance across different scenarios. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible NLG systems. (a) Text Generation. Text generation has numerous applications in NLP.", + "metadata": { + "source_file": "MOE", + "chunk_index": 367, + "chunk_id": "MOE_chunk_0367", + "start_position": 199810, + "end_position": 200238, + "page_index": 21, + "word_count": 57, + "char_count": 428 + }, + "has_embedding": false + }, + { + "content": "Text generation has numerous applications in NLP. Through effective text processing, NLP systems can accurately understand, generate, and transform human language, which is crucial for achieving more advanced NLP applications. However, text processing still faces challenges such as insufficient generation diversity and uncontrollable generated content.", + "metadata": { + "source_file": "MOE", + "chunk_index": 368, + "chunk_id": "MOE_chunk_0368", + "start_position": 200238, + "end_position": 200592, + "page_index": 21, + "word_count": 45, + "char_count": 354 + }, + "has_embedding": false + }, + { + "content": "ill faces challenges such as insufficient generation diversity and uncontrollable generated content. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data.", + "metadata": { + "source_file": "MOE", + "chunk_index": 369, + "chunk_id": "MOE_chunk_0369", + "start_position": 200592, + "end_position": 200853, + "page_index": 21, + "word_count": 35, + "char_count": 261 + }, + "has_embedding": false + }, + { + "content": "ecific tasks, making models more efficient and precise when processing complex or diverse text data. In [174], MoE is introduced into the generator of a language GAN, leveraging multiple experts to collaboratively generate high-quality sentences, with each expert acting as a recurrent neural network that autoregressively produces the current token representation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 370, + "chunk_id": "MOE_chunk_0370", + "start_position": 200853, + "end_position": 201218, + "page_index": 21, + "word_count": 51, + "char_count": 365 + }, + "has_embedding": false + }, + { + "content": "cting as a recurrent neural network that autoregressively produces the current token representation. Additionally, the Feature Statistics Alignment (FSA) paradigm is incorporated to further optimize the learning signals during generator training, making the generated text more closely aligned with the real data distribution. In RetGen [175], during inference, a retriever first obtains the top K most relevant documents and their corresponding probabilities.", + "metadata": { + "source_file": "MOE", + "chunk_index": 371, + "chunk_id": "MOE_chunk_0371", + "start_position": 201218, + "end_position": 201678, + "page_index": 21, + "word_count": 62, + "char_count": 460 + }, + "has_embedding": false + }, + { + "content": ", a retriever first obtains the top K most relevant documents and their corresponding probabilities. Then, K independently trained transformer-based generation models process each document along with the same context, combining the partially generated results with the current consensus to produce their respective output distributions. The final output distribution is a weighted combination of these independent generation results, with weights determined by the document relevance probabilities.", + "metadata": { + "source_file": "MOE", + "chunk_index": 372, + "chunk_id": "MOE_chunk_0372", + "start_position": 201678, + "end_position": 202176, + "page_index": 21, + "word_count": 66, + "char_count": 498 + }, + "has_embedding": false + }, + { + "content": "ese independent generation results, with weights determined by the document relevance probabilities. This approach overcomes issues such as ignoring document relevance information when simply concatenating multiple documents as input, allowing the model to more effectively utilize document relevance information to guide the text generation process. LogicMoE [176] focuses on solving the problem of table-to-text generation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 373, + "chunk_id": "MOE_chunk_0373", + "start_position": 202176, + "end_position": 202601, + "page_index": 21, + "word_count": 55, + "char_count": 425 + }, + "has_embedding": false + }, + { + "content": "LogicMoE [176] focuses on solving the problem of table-to-text generation. In the designed LogicMoE architecture, each expert acts as a specialized generator for a specific logical type, responsible for generating sentences that meet the requirements of that logical type. This design not only improves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels.", + "metadata": { + "source_file": "MOE", + "chunk_index": 374, + "chunk_id": "MOE_chunk_0374", + "start_position": 202601, + "end_position": 203027, + "page_index": 21, + "word_count": 63, + "char_count": 426 + }, + "has_embedding": false + }, + { + "content": "d sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. (b) Machine Translation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 375, + "chunk_id": "MOE_chunk_0375", + "start_position": 203027, + "end_position": 203485, + "page_index": 21, + "word_count": 66, + "char_count": 458 + }, + "has_embedding": false + }, + { + "content": "(b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content.", + "metadata": { + "source_file": "MOE", + "chunk_index": 376, + "chunk_id": "MOE_chunk_0376", + "start_position": 203485, + "end_position": 203994, + "page_index": 21, + "word_count": 64, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "y allocate tasks, enabling the system to select the most suitable expert based on the input content. This mechanism not only improves translation accuracy and fluency but also better handles complex scenarios involving multiple languages and domains, thereby enhancing the performance and adaptability of machine translation. [16] innovatively introduces Sparsely-Gated MoE technology for conditional computation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 377, + "chunk_id": "MOE_chunk_0377", + "start_position": 203994, + "end_position": 204407, + "page_index": 21, + "word_count": 55, + "char_count": 413 + }, + "has_embedding": false + }, + { + "content": "[16] innovatively introduces Sparsely-Gated MoE technology for conditional computation. Applying MoE to language modeling and machine translation tasks not only significantly improves model performance on large datasets but also achieves efficient utilization of computational resources. Gshard [21] replaces traditional feedforward network layers with MoE layers and adopts conditional computation to achieve efficient utilization of computational resources and flexible expansion of model capacity.", + "metadata": { + "source_file": "MOE", + "chunk_index": 378, + "chunk_id": "MOE_chunk_0378", + "start_position": 204407, + "end_position": 204907, + "page_index": 21, + "word_count": 62, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "o achieve efficient utilization of computational resources and flexible expansion of model capacity. MoE-based Transformer models at different scales are designed and trained to meet translation needs from high-resource to low-resource languages. Experimental results show that the MoE models trained using GShard significantly improve translation quality, while achieving higher training efficiency and lower costs compared to dense models under the same hardware conditions.", + "metadata": { + "source_file": "MOE", + "chunk_index": 379, + "chunk_id": "MOE_chunk_0379", + "start_position": 204907, + "end_position": 205383, + "page_index": 21, + "word_count": 63, + "char_count": 476 + }, + "has_embedding": false + }, + { + "content": "her training efficiency and lower costs compared to dense models under the same hardware conditions. [178] also introduces a selective activation mechanism by replacing some dense model layers with MoE layers, significantly enhancing the model’s representational capacity with similar inference and training efficiency. This approach is particularly beneficial for high-resource languages due to the increased model capacity, while also helping low-resource languages reduce interference from unrelated languages.", + "metadata": { + "source_file": "MOE", + "chunk_index": 380, + "chunk_id": "MOE_chunk_0380", + "start_position": 205383, + "end_position": 205896, + "page_index": 21, + "word_count": 67, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "el capacity, while also helping low-resource languages reduce interference from unrelated languages. Additionally, to address the issues in large-scale MoE models, such as quick overfitting in low-resource directions, regularization and curriculum learning strategies are applied to optimize complex training dynamics. A good balance is achieved between cross-lingual transfer and interference in multilingual machine translation.", + "metadata": { + "source_file": "MOE", + "chunk_index": 381, + "chunk_id": "MOE_chunk_0381", + "start_position": 205896, + "end_position": 206326, + "page_index": 21, + "word_count": 54, + "char_count": 430 + }, + "has_embedding": false + }, + { + "content": "nce is achieved between cross-lingual transfer and interference in multilingual machine translation. [179] also leverages sparse activation mechanisms to significantly enhance the model’s representational capacity without increasing computational costs.", + "metadata": { + "source_file": "MOE", + "chunk_index": 382, + "chunk_id": "MOE_chunk_0382", + "start_position": 206326, + "end_position": 206579, + "page_index": 21, + "word_count": 29, + "char_count": 253 + }, + "has_embedding": false + }, + { + "content": "significantly enhance the model’s representational capacity without increasing computational costs. In order to address the inefficiency issues encountered during the deployment and inference stages of MoE models, [180] proposes three optimization techniques, including dynamic gating, expert caching, and load balancing methods, to improve the inference efficiency of MoE models in language modeling and machine translation tasks. 3) Multimodal Fusion.", + "metadata": { + "source_file": "MOE", + "chunk_index": 383, + "chunk_id": "MOE_chunk_0383", + "start_position": 206579, + "end_position": 207032, + "page_index": 21, + "word_count": 59, + "char_count": 453 + }, + "has_embedding": false + }, + { + "content": "3) Multimodal Fusion. Multimodal fusion integrates information from text and other modalities, providing richer and more comprehensive data representations. In particular, multimodal fusion can capture contextual clues and semantic details that single modalities cannot provide, thereby enhancing the model’s understanding and predictive capabilities.", + "metadata": { + "source_file": "MOE", + "chunk_index": 384, + "chunk_id": "MOE_chunk_0384", + "start_position": 207032, + "end_position": 207383, + "page_index": 21, + "word_count": 43, + "char_count": 351 + }, + "has_embedding": false + }, + { + "content": "modalities cannot provide, thereby enhancing the model’s understanding and predictive capabilities. In multimodal fusion scenarios, using MoE allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models.", + "metadata": { + "source_file": "MOE", + "chunk_index": 385, + "chunk_id": "MOE_chunk_0385", + "start_position": 207383, + "end_position": 207822, + "page_index": 21, + "word_count": 55, + "char_count": 439 + }, + "has_embedding": false + }, + { + "content": "while avoiding the high complexity and optimization difficulties faced by traditional single models. This not only improves the overall performance of the model but also enhances its flexibility and scalability, allowing for better performance in complex multimodal tasks. LIMoE [182], as the first large-scale multimodal mixture of experts model, can simultaneously process image and text data and align their representations through contrastive learning.", + "metadata": { + "source_file": "MOE", + "chunk_index": 386, + "chunk_id": "MOE_chunk_0386", + "start_position": 207822, + "end_position": 208278, + "page_index": 21, + "word_count": 63, + "char_count": 456 + }, + "has_embedding": false + }, + { + "content": "ltaneously process image and text data and align their representations through contrastive learning. Additionally, this study demonstrates the organic emergence of modality-specific experts in LIMoE, where experts spontaneously specialize in handling specific types of data or tasks,. This indicates that the model not only effectively allocates resources for different tasks but also promotes cross-modal and cross-task knowledge transfer.", + "metadata": { + "source_file": "MOE", + "chunk_index": 387, + "chunk_id": "MOE_chunk_0387", + "start_position": 208278, + "end_position": 208718, + "page_index": 21, + "word_count": 58, + "char_count": 440 + }, + "has_embedding": false + }, + { + "content": "cates resources for different tasks but also promotes cross-modal and cross-task knowledge transfer. LLaVA-MoLE [181] addresses the issue of data conflicts in multimodal large language models when fine-tuning with mixed-domain instruction data, by proposing the use of sparse LoRA Mixture of Experts (MoLE). The proposed method selects the most suitable LoRA expert for each input token based on its embedding features in the attention layers, allowing the model to adapt to inputs from different domains.", + "metadata": { + "source_file": "MOE", + "chunk_index": 388, + "chunk_id": "MOE_chunk_0388", + "start_position": 208718, + "end_position": 209223, + "page_index": 21, + "word_count": 75, + "char_count": 505 + }, + "has_embedding": false + }, + { + "content": "ding features in the attention layers, allowing the model to adapt to inputs from different domains. This effectively mitigates performance degradation caused by mixing different types of instruction data. The Hunyuan model [183] is the first Chinese MoE multimodal large model, achieving a score of 71.95 on SuperClue-V, surpassing some international top models and demonstrating its unique advantages in the context of Chinese culture. # VI. FUTURE DIRECTIONS", + "metadata": { + "source_file": "MOE", + "chunk_index": 389, + "chunk_id": "MOE_chunk_0389", + "start_position": 209223, + "end_position": 209684, + "page_index": 21, + "word_count": 68, + "char_count": 461 + }, + "has_embedding": false + }, + { + "content": "FUTURE DIRECTIONS MoE models present significant opportunities for advancing machine learning in real-world applications, but they also face several challenges that must be addressed to unlock their full potentials. In this section, we discuss some of the key future research directions for MoE models. # A. Training stability and load balancing One of the most critical challenges in MoE models is ensuring training stability and load balancing among experts.", + "metadata": { + "source_file": "MOE", + "chunk_index": 390, + "chunk_id": "MOE_chunk_0390", + "start_position": 209684, + "end_position": 210144, + "page_index": 21, + "word_count": 69, + "char_count": 460 + }, + "has_embedding": false + }, + { + "content": "t critical challenges in MoE models is ensuring training stability and load balancing among experts. Due to the dynamic nature of expert selection, some experts may receive significantly more data than others, leading to imbalanced training and potential model collapse. Future work should focus on developing more robust training strategies that ensure balanced utilization of experts.", + "metadata": { + "source_file": "MOE", + "chunk_index": 391, + "chunk_id": "MOE_chunk_0391", + "start_position": 210144, + "end_position": 210530, + "page_index": 21, + "word_count": 56, + "char_count": 386 + }, + "has_embedding": false + }, + { + "content": "uld focus on developing more robust training strategies that ensure balanced utilization of experts. Techniques such as adaptive load balancing, dynamic expert capacity adjustment, and regularization methods that penalize over-reliance on specific experts could be explored. In some cases, theoretical studies on the convergence properties of MoE models under different load balancing strategies would provide valuable insights into designing more stable training algorithms.", + "metadata": { + "source_file": "MOE", + "chunk_index": 392, + "chunk_id": "MOE_chunk_0392", + "start_position": 210530, + "end_position": 211005, + "page_index": 21, + "word_count": 63, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": "balancing strategies would provide valuable insights into designing more stable training algorithms. Additionally, the sparsity of MoE during training also poses challenges for stable model training, requiring more work to explore and optimize existing training strategies. # B. Training and system efficiency While MoE models offer the advantage of conditional computation, their training and inference efficiency remain a concern, especially in large-scale applications.", + "metadata": { + "source_file": "MOE", + "chunk_index": 393, + "chunk_id": "MOE_chunk_0393", + "start_position": 211005, + "end_position": 211477, + "page_index": 21, + "word_count": 63, + "char_count": 472 + }, + "has_embedding": false + }, + { + "content": "n, their training and inference efficiency remain a concern, especially in large-scale applications. Hardware advancements have reduced computational costs, but high latency remains a persistent issue. Future research should focus on optimizing hardware-software co-design, particularly for conditional computation. Techniques such as efficient memory management, reduced communication overhead, and parallel processing strategies could significantly improve the scalability of MoE models.", + "metadata": { + "source_file": "MOE", + "chunk_index": 394, + "chunk_id": "MOE_chunk_0394", + "start_position": 211477, + "end_position": 211966, + "page_index": 21, + "word_count": 59, + "char_count": 489 + }, + "has_embedding": false + }, + { + "content": "rhead, and parallel processing strategies could significantly improve the scalability of MoE models. Combining MoE with conditional computation techniques may also open new avenues for dynamic resource allocation and task-specific adaptations, further enhancing efficiency. # C. Architecture design The design of MoE architectures, particularly the determination of the number of experts and their specialization, is another area that requires further exploration.", + "metadata": { + "source_file": "MOE", + "chunk_index": 395, + "chunk_id": "MOE_chunk_0395", + "start_position": 211966, + "end_position": 212430, + "page_index": 21, + "word_count": 61, + "char_count": 464 + }, + "has_embedding": false + }, + { + "content": "f the number of experts and their specialization, is another area that requires further exploration. Current approaches often rely on heuristic methods or static setting to decide the number of experts, which may not be optimal for all tasks. Future work should investigate more principled approaches to determining the number of experts, such as using metalearning or reinforcement learning to dynamically adjust the architecture based on task complexity and data distribution.", + "metadata": { + "source_file": "MOE", + "chunk_index": 396, + "chunk_id": "MOE_chunk_0396", + "start_position": 212430, + "end_position": 212908, + "page_index": 21, + "word_count": 71, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "ment learning to dynamically adjust the architecture based on task complexity and data distribution. Additionally, novel architecture designs that integrate MoE with other neural network components, such as attention mechanisms or graph neural networks, could lead to more powerful and flexible models. # D. Theory development Improving the interpretability of MoE models remains a critical area for future work.", + "metadata": { + "source_file": "MOE", + "chunk_index": 397, + "chunk_id": "MOE_chunk_0397", + "start_position": 212908, + "end_position": 213320, + "page_index": 21, + "word_count": 59, + "char_count": 412 + }, + "has_embedding": false + }, + { + "content": "ry development Improving the interpretability of MoE models remains a critical area for future work. While MoE architectures have demonstrated remarkable scalability and performance, the theoretical underpinnings of their behavior—such as expert routing decisions and clustering mechanisms—are not yet fully understood, especially in modern deep neural networks. More rigorous theoretical studies are needed to explain these characteristics, which could lead to more robust and reliable models.", + "metadata": { + "source_file": "MOE", + "chunk_index": 398, + "chunk_id": "MOE_chunk_0398", + "start_position": 213320, + "end_position": 213814, + "page_index": 21, + "word_count": 66, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "es are needed to explain these characteristics, which could lead to more robust and reliable models. This would also shed light on the design of better gating function and expert network as well. # E. Tailored algorithm design MoE models have shown great promise in various machine learning paradigms, but their potential in combination with other learning paradigms remains underexplored.", + "metadata": { + "source_file": "MOE", + "chunk_index": 399, + "chunk_id": "MOE_chunk_0399", + "start_position": 213814, + "end_position": 214203, + "page_index": 21, + "word_count": 60, + "char_count": 389 + }, + "has_embedding": false + }, + { + "content": "g paradigms, but their potential in combination with other learning paradigms remains underexplored. Future work should investigate the integration of MoE with other learning frameworks, such as contrastive learning, transfer learning, and self-supervised learning. For example, in federated learning, MoE models could be used to handle heterogeneous data distributions across clients by assigning different experts to different clients.", + "metadata": { + "source_file": "MOE", + "chunk_index": 400, + "chunk_id": "MOE_chunk_0400", + "start_position": 214203, + "end_position": 214640, + "page_index": 21, + "word_count": 58, + "char_count": 437 + }, + "has_embedding": false + }, + { + "content": "heterogeneous data distributions across clients by assigning different experts to different clients. Exploring these combinations could lead to more versatile and powerful learning systems. # F. New applications Although MoE has been extensively explored in NLP, its potential in other domains remains underexplored.", + "metadata": { + "source_file": "MOE", + "chunk_index": 401, + "chunk_id": "MOE_chunk_0401", + "start_position": 214640, + "end_position": 214956, + "page_index": 21, + "word_count": 43, + "char_count": 316 + }, + "has_embedding": false + }, + { + "content": "ough MoE has been extensively explored in NLP, its potential in other domains remains underexplored. For instance, in computer vision, recent work has shown that MoE models can achieve performance that continues to improve with training, suggesting untapped potential in areas like image segmentation, object detection, and multimodal learning. Further exploration in these domains could yield significant breakthroughs.", + "metadata": { + "source_file": "MOE", + "chunk_index": 402, + "chunk_id": "MOE_chunk_0402", + "start_position": 214956, + "end_position": 215376, + "page_index": 21, + "word_count": 58, + "char_count": 420 + }, + "has_embedding": false + }, + { + "content": "Further exploration in these domains could yield significant breakthroughs. Additionally, MoE models could be applied to emerging fields such as healthcare, robotics, autonomous systems, education, finance, as well as recommendation systems, where the ability to handle diverse and complex tasks is crucial. Developing MoE models tailored to these specific applications could lead to more effective and efficient solutions. # VII. CONCLUSION", + "metadata": { + "source_file": "MOE", + "chunk_index": 403, + "chunk_id": "MOE_chunk_0403", + "start_position": 215376, + "end_position": 215817, + "page_index": 21, + "word_count": 61, + "char_count": 441 + }, + "has_embedding": false + }, + { + "content": "CONCLUSION This comprehensive survey delves into the integration of the MoE architecture with various domains. Starting from various basic designs of the MoE architecture and training strategies, we highlight its synergy with important machine learning algorithms, alongside the recent theoretical advancements for understanding MoE.", + "metadata": { + "source_file": "MOE", + "chunk_index": 404, + "chunk_id": "MOE_chunk_0404", + "start_position": 215817, + "end_position": 216150, + "page_index": 21, + "word_count": 44, + "char_count": 333 + }, + "has_embedding": false + }, + { + "content": "nt machine learning algorithms, alongside the recent theoretical advancements for understanding MoE. Furthermore, we provide a systematic summary of MoE in two critical application domains, computer vision and natural language processing, and shed light on the important future designs for improving the design and impact of MoE. We hope that this work will serve as a valuable reference for researchers in the field and beyond, elicit escalating attentions, and inspire further research ideas in MoE.", + "metadata": { + "source_file": "MOE", + "chunk_index": 405, + "chunk_id": "MOE_chunk_0405", + "start_position": 216150, + "end_position": 216651, + "page_index": 21, + "word_count": 75, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "rs in the field and beyond, elicit escalating attentions, and inspire further research ideas in MoE. # REFERENCES [1] A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, et al., “An image is worth 16x16 words: Transformers for image recognition at scale,” arXiv preprint arXiv:2010.11929, 2020. [2] A. Kirillov, E. Mintun, N. Ravi, H. Mao, C. Rolland, L. Gustafson, T. Xiao, S. Whitehead, A. C. Berg, W.-Y.", + "metadata": { + "source_file": "MOE", + "chunk_index": 406, + "chunk_id": "MOE_chunk_0406", + "start_position": 216651, + "end_position": 217135, + "page_index": 21, + "word_count": 78, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "Berg, W.-Y. Lo, et al., “Segment anything,” in Proceedings of the IEEE/CVF international conference on computer vision, pp. 4015–4026, 2023. [3] Y. Shi, N. Wang, and X. Guo, “Yolov: Making still image object detectors great at video object detection,” in Proceedings of the AAAI conference on artificial intelligence, vol. 37, pp. 2254–2262, 2023. [4] A. Radford, J. W. Kim, T. Xu, G. Brockman, C. McLeavey, and I.", + "metadata": { + "source_file": "MOE", + "chunk_index": 407, + "chunk_id": "MOE_chunk_0407", + "start_position": 217135, + "end_position": 217549, + "page_index": 21, + "word_count": 67, + "char_count": 414 + }, + "has_embedding": false + }, + { + "content": "McLeavey, and I. Sutskever, “Robust speech recognition via large-scale weak supervision,” in International conference on machine learning, pp. 28492– 28518, PMLR, 2023. [5] K. An, Q. Chen, C. Deng, Z. Du, C. Gao, Z. Gao, Y. Gu, T. He, H. Hu, K. Hu, et al., “Funaudiollm: Voice understanding and generation foundation models for natural interaction between humans and llms,” arXiv preprint arXiv:2407.04051, 2024. [6] P. Rajpurkar, E. Chen, O. Banerjee, and E. J.", + "metadata": { + "source_file": "MOE", + "chunk_index": 408, + "chunk_id": "MOE_chunk_0408", + "start_position": 217549, + "end_position": 218011, + "page_index": 21, + "word_count": 73, + "char_count": 462 + }, + "has_embedding": false + }, + { + "content": "J. Topol, “Ai in health and medicine,” Nature medicine, vol. 28, no. 1, pp. 31–38, 2022. [7] L. Cao, “Autoai: Autonomous ai,” IEEE Intelligent Systems, vol. 37, no. 5, pp. 3–5, 2022. [8] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “Bert: Pre-training of deep bidirectional transformers for language understanding,” in Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), pp.", + "metadata": { + "source_file": "MOE", + "chunk_index": 409, + "chunk_id": "MOE_chunk_0409", + "start_position": 218011, + "end_position": 218516, + "page_index": 21, + "word_count": 78, + "char_count": 505 + }, + "has_embedding": false + }, + { + "content": "on for computational linguistics: human language technologies, volume 1 (long and short papers), pp. 4171–4186, 2019. [9] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, et al., “Learning transferable visual models from natural language supervision,” in International conference on machine learning, pp. 8748–8763, PmLR, 2021. [10] J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S.", + "metadata": { + "source_file": "MOE", + "chunk_index": 410, + "chunk_id": "MOE_chunk_0410", + "start_position": 218516, + "end_position": 219020, + "page_index": 21, + "word_count": 79, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "Altman, S. Anadkat, et al., “Gpt-4 technical report,” arXiv preprint arXiv:2303.08774, 2023. [11] C. Thompson Neil, G. Kristjan, L. Keeheon, and F. Manso Gabriel, “The computational limits of deep learning,” ArXiv, Cornell University, juillet, 2020. [12] C. Sun, A. Shrivastava, S. Singh, and A. Gupta, “Revisiting unreasonable effectiveness of data in deep learning era,” in Proceedings of the IEEE international conference on computer vision, pp. 843–852, 2017. [13] R. A. Jacobs, M. I. Jordan, S. J.", + "metadata": { + "source_file": "MOE", + "chunk_index": 411, + "chunk_id": "MOE_chunk_0411", + "start_position": 219020, + "end_position": 219522, + "page_index": 21, + "word_count": 76, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "J. Nowlan, and G. E. Hinton, “Adaptive mixtures of local experts,” Neural computation, vol. 3, no. 1, pp. 79–87, 1991. [14] M. I. Jordan and R. A. Jacobs, “Hierarchical mixtures of experts and the em algorithm,” Neural computation, vol. 6, no. 2, pp. 181–214, 1994. [15] W. Fedus, B. Zoph, and N. Shazeer, “Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity,” Journal of Machine Learning Research, vol. 23, no. 120, pp. 1–39, 2022. [16] N. Shazeer, A. Mirhoseini, K.", + "metadata": { + "source_file": "MOE", + "chunk_index": 412, + "chunk_id": "MOE_chunk_0412", + "start_position": 219522, + "end_position": 220030, + "page_index": 21, + "word_count": 83, + "char_count": 508 + }, + "has_embedding": false + }, + { + "content": "Mirhoseini, K. Maziarz, A. Davis, Q. Le, G. Hinton, and J. Dean, “Outrageously large neural networks: The sparsely-gated mixture-of-experts layer,” arXiv preprint arXiv:1701.06538, 2017. [17] C. Riquelme, J. Puigcerver, B. Mustafa, M. Neumann, R. Jenatton, A. Susano Pinto, D. Keysers, and N. Houlsby, “Scaling vision with sparse mixture of experts,” Advances in Neural Information Processing Systems, vol. 34, pp. 8583–8595, 2021. [18] L. Wu, M. Liu, Y. Chen, D. Chen, X. Dai, and L.", + "metadata": { + "source_file": "MOE", + "chunk_index": 413, + "chunk_id": "MOE_chunk_0413", + "start_position": 220030, + "end_position": 220514, + "page_index": 21, + "word_count": 74, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "Dai, and L. Yuan, “Residual mixture of experts,” arXiv preprint arXiv:2204.09636, 2022. [19] Z. Fan, R. Sarkar, Z. Jiang, T. Chen, K. Zou, Y. Cheng, C. Hao, Z. Wang, et al., $\\mathbf { \\cdots } \\mathbf { M } ^ { 3 }$ vit: Mixture-of-experts vision transformer for efficient multi-task learning with model-accelerator co-design,” Advances in Neural Information Processing Systems, vol. 35, pp. 28441–28457, 2022. [20] N. Du, Y. Huang, A. M. Dai, S. Tong, D. Lepikhin, Y. Xu, M. Krikun, Y. Zhou, A. W. Yu, O.", + "metadata": { + "source_file": "MOE", + "chunk_index": 414, + "chunk_id": "MOE_chunk_0414", + "start_position": 220514, + "end_position": 221020, + "page_index": 21, + "word_count": 87, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "Yu, O. Firat, et al., “Glam: Efficient scaling of language models with mixture-of-experts,” in International conference on machine learning, pp. 5547–5569, PMLR, 2022. [21] D. Lepikhin, H. Lee, Y. Xu, D. Chen, O. Firat, Y. Huang, M. Krikun, N. Shazeer, and Z. Chen, “Gshard: Scaling giant models with conditional computation and automatic sharding,” arXiv preprint arXiv:2006.16668, 2020. [22] A. Q. Jiang, A. Sablayrolles, A. Roux, A. Mensch, B. Savary, C. Bamford, D. S. Chaplot, D. d. l. Casas, E. B. Hanna, F.", + "metadata": { + "source_file": "MOE", + "chunk_index": 415, + "chunk_id": "MOE_chunk_0415", + "start_position": 221020, + "end_position": 221533, + "page_index": 21, + "word_count": 82, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "Hanna, F. Bressand, et al., “Mixtral of experts,” arXiv preprint arXiv:2401.04088, 2024. [23] B. Li, Y. Shen, J. Yang, Y. Wang, J. Ren, T. Che, J. Zhang, and Z. Liu, “Sparse mixture-of-experts are domain generalizable learners,” arXiv preprint arXiv:2206.04046, 2022. [24] Z. Chi, L. Dong, S. Huang, D. Dai, S. Ma, B. Patra, S. Singhal, P. Bajaj, X. Song, X.-L. Mao, et al., “On the representation collapse of sparse mixture of experts,” Advances in Neural Information Processing Systems, vol. 35, pp.", + "metadata": { + "source_file": "MOE", + "chunk_index": 416, + "chunk_id": "MOE_chunk_0416", + "start_position": 221533, + "end_position": 222034, + "page_index": 21, + "word_count": 81, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "35, pp. 34600–34613, 2022. [25] H. Nguyen, P. Akbarian, T. Pham, T. Nguyen, S. Zhang, and N. Ho, “Statistical advantages of perturbing cosine router in sparse mixture of experts,” arXiv preprint arXiv:2405.14131, 2024. [26] L. Xu, M. Jordan, and G. E. Hinton, “An alternative model for mixtures of experts,” Advances in neural information processing systems, vol. 7, 1994. [27] J. Puigcerver, C. Riquelme, B. Mustafa, and N.", + "metadata": { + "source_file": "MOE", + "chunk_index": 417, + "chunk_id": "MOE_chunk_0417", + "start_position": 222034, + "end_position": 222458, + "page_index": 21, + "word_count": 67, + "char_count": 424 + }, + "has_embedding": false + }, + { + "content": "Mustafa, and N. Houlsby, “From sparse to soft mixtures of experts,” arXiv preprint arXiv:2308.00951, 2023. [28] J. Geweke and M. Keane, “Smoothly mixing regressions,” Journal of Econometrics, vol. 138, no. 1, pp. 252–290, 2007. [29] Z. Chen, Y. Deng, Y. Wu, Q. Gu, and Y. Li, “Towards understanding mixture of experts in deep learning,” arXiv preprint arXiv:2208.02813, 2022. [30] H. Li, S. Lin, L. Duan, Y. Liang, and N. B.", + "metadata": { + "source_file": "MOE", + "chunk_index": 418, + "chunk_id": "MOE_chunk_0418", + "start_position": 222458, + "end_position": 222882, + "page_index": 21, + "word_count": 70, + "char_count": 424 + }, + "has_embedding": false + }, + { + "content": "B. Shroff, “Theory on mixtureof-experts in continual learning,” arXiv preprint arXiv:2406.16437, 2024. [31] R. Csordas, P. Piekos, K. Irie, and J. Schmidhuber, “Switchhead: ´ Accelerating transformers with mixture-of-experts attention,” arXiv preprint arXiv:2312.07987, 2023. [32] K.-C. Wang, D. Ostashev, Y. Fang, S. Tulyakov, and K.", + "metadata": { + "source_file": "MOE", + "chunk_index": 419, + "chunk_id": "MOE_chunk_0419", + "start_position": 222882, + "end_position": 223216, + "page_index": 21, + "word_count": 44, + "char_count": 334 + }, + "has_embedding": false + }, + { + "content": "Tulyakov, and K. Aberman, “Moa: Mixture-of-attention for subject-context disentanglement in personalized image generation,” in SIGGRAPH Asia 2024 Conference Papers, SA ’24, (New York, NY, USA), Association for Computing Machinery, 2024. [33] P. Jin, B. Zhu, L. Yuan, and S. Yan, “Moh: Multi-head attention as mixture-of-head attention,” arXiv preprint arXiv:2410.11842, 2024. [34] M. J. Jung and J.", + "metadata": { + "source_file": "MOE", + "chunk_index": 420, + "chunk_id": "MOE_chunk_0420", + "start_position": 223216, + "end_position": 223614, + "page_index": 21, + "word_count": 56, + "char_count": 398 + }, + "has_embedding": false + }, + { + "content": "Jung and J. Kim, “Pmoe: Progressive mixture of experts with asymmetric transformer for continual learning,” arXiv preprint arXiv:2407.21571, 2024. [35] S. Pavlitska, C. Hubschneider, L. Struppek, and J. M. Zollner, ¨ “Sparsely-gated mixture-of-expert layers for CNN interpretability,” in 2023 International Joint Conference on Neural Networks (IJCNN), pp. 1–10, IEEE. [36] Y. Yi, K.-Y. Chen, and H.-Y.", + "metadata": { + "source_file": "MOE", + "chunk_index": 421, + "chunk_id": "MOE_chunk_0421", + "start_position": 223614, + "end_position": 224015, + "page_index": 21, + "word_count": 56, + "char_count": 401 + }, + "has_embedding": false + }, + { + "content": "Chen, and H.-Y. Gu, “Mixture of CNN experts from multiple acoustic feature domain for music genre classification,” in 2019 Asia-Pacific Signal and Information Processing Association Annual Summit and Conference (APSIPA ASC), pp. 1250–1255, IEEE. [37] L. Zhang, S. Huang, and W. Liu, “Enhancing mixture-of-experts by leveraging attention for fine-grained recognition,” vol. 24, pp. 4409– 4421. [38] L. Zhang, S. Huang, W. Liu, and D.", + "metadata": { + "source_file": "MOE", + "chunk_index": 422, + "chunk_id": "MOE_chunk_0422", + "start_position": 224015, + "end_position": 224447, + "page_index": 21, + "word_count": 64, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "Liu, and D. Tao, “Learning a mixture of granularity-specific experts for fine-grained categorization,” in 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 8330–8339, IEEE. [39] S. Gross, M. Ranzato, and A. Szlam, “Hard mixtures of experts for large scale weakly supervised vision,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 6865– 6873, 2017. [40] J. Zhu, X. Zhu, W. Wang, X. Wang, H. Li, X. Wang, and J.", + "metadata": { + "source_file": "MOE", + "chunk_index": 423, + "chunk_id": "MOE_chunk_0423", + "start_position": 224447, + "end_position": 224915, + "page_index": 21, + "word_count": 74, + "char_count": 468 + }, + "has_embedding": false + }, + { + "content": "Wang, and J. Dai, “Uniperceiver-moe: Learning sparse generalist models with conditional moes,” Advances in Neural Information Processing Systems, vol. 35, pp. 2664–2678, 2022. [41] Z. Su, Z. Lin, X. Bai, X. Wu, Y. Xiong, H. Lian, G. Ma, H. Chen, G. Ding, W. Zhou, et al., “Maskmoe: Boosting token-level learning via routing mask in mixture-of-experts,” arXiv preprint arXiv:2407.09816, 2024. [42] E. Pedicir, L. Miller, and L.", + "metadata": { + "source_file": "MOE", + "chunk_index": 424, + "chunk_id": "MOE_chunk_0424", + "start_position": 224915, + "end_position": 225341, + "page_index": 21, + "word_count": 66, + "char_count": 426 + }, + "has_embedding": false + }, + { + "content": "Miller, and L. Robinson, “Novel token-level recurrent routing for enhanced mixture-of-experts performance,” Authorea Preprints, 2024. [43] Y. Li, S. Jiang, B. Hu, L. Wang, W. Zhong, W. Luo, L. Ma, and M. Zhang, “Uni-moe: Scaling unified multimodal llms with mixture of experts,” arXiv preprint arXiv:2405.11273, 2024. [44] S. Kudugunta, Y. Huang, A. Bapna, M. Krikun, D. Lepikhin, M.-T. Luong, and O.", + "metadata": { + "source_file": "MOE", + "chunk_index": 425, + "chunk_id": "MOE_chunk_0425", + "start_position": 225341, + "end_position": 225741, + "page_index": 21, + "word_count": 61, + "char_count": 400 + }, + "has_embedding": false + }, + { + "content": "Luong, and O. Firat, “Beyond distillation: Task-level mixture-of-experts for efficient inference,” arXiv preprint arXiv:2110.03742, 2021. [45] X. Shi, S. Wang, Y. Nie, D. Li, Z. Ye, Q. Wen, and M. Jin, “Time-moe: Billion-scale time series foundation models with mixture of experts,” arXiv preprint arXiv:2409.16040, 2024. [46] Q. Huang, Z. An, N. Zhuang, M. Tao, C. Zhang, Y. Jin, K. Xu, L. Chen, S. Huang, and Y.", + "metadata": { + "source_file": "MOE", + "chunk_index": 426, + "chunk_id": "MOE_chunk_0426", + "start_position": 225741, + "end_position": 226154, + "page_index": 21, + "word_count": 66, + "char_count": 413 + }, + "has_embedding": false + }, + { + "content": "Huang, and Y. Feng, “Harder tasks need more experts: Dynamic routing in moe models,” arXiv preprint arXiv:2403.07652, 2024. [47] A. Wang, X. Sun, R. Xie, S. Li, J. Zhu, Z. Yang, P. Zhao, J. Han, Z. Kang, D. Wang, et al., “Hmoe: Heterogeneous mixture of experts for language modeling,” arXiv preprint arXiv:2408.10681, 2024. [48] O. Irsoy and E. Alpaydın, “Dropout regularization in hierarchical mixture of experts,” Neurocomputing, vol. 419, pp. 148–156, 2021. [49] J. He, J. Zhai, T. Antunes, H. Wang, F. Luo, S.", + "metadata": { + "source_file": "MOE", + "chunk_index": 427, + "chunk_id": "MOE_chunk_0427", + "start_position": 226154, + "end_position": 226667, + "page_index": 21, + "word_count": 84, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "Luo, S. Shi, and Q. Li, “Fastermoe: modeling and optimizing training of large-scale dynamic pretrained models,” in Proceedings of the 27th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, pp. 120–134, 2022. [50] C. Hwang, W. Cui, Y. Xiong, Z. Yang, Z. Liu, H. Hu, Z. Wang, R. Salas, J. Jose, P. Ram, et al., “Tutel: Adaptive mixture-of-experts at scale,” Proceedings of Machine Learning and Systems, vol. 5, pp. 269–287, 2023. [51] R. Sarkar, H. Liang, Z. Fan, Z. Wang, and C.", + "metadata": { + "source_file": "MOE", + "chunk_index": 428, + "chunk_id": "MOE_chunk_0428", + "start_position": 226667, + "end_position": 227168, + "page_index": 21, + "word_count": 84, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "Wang, and C. Hao, “Edge-moe: Memory-efficient multi-task vision transformer architecture with tasklevel sparsity via mixture-of-experts,” in 2023 IEEE/ACM International Conference on Computer Aided Design (ICCAD), pp. 01–09, IEEE, 2023. [52] S. Rajbhandari, C. Li, Z. Yao, M. Zhang, R. Y. Aminabadi, A. A. Awan, J. Rasley, and Y. He, “Deepspeed-moe: Advancing mixtureof-experts inference and training to power next-generation ai scale,” in International conference on machine learning, pp.", + "metadata": { + "source_file": "MOE", + "chunk_index": 429, + "chunk_id": "MOE_chunk_0429", + "start_position": 227168, + "end_position": 227657, + "page_index": 21, + "word_count": 67, + "char_count": 489 + }, + "has_embedding": false + }, + { + "content": "nd training to power next-generation ai scale,” in International conference on machine learning, pp. 18332–18346, PMLR, 2022. [53] A. Liu, B. Feng, B. Xue, B. Wang, B. Wu, C. Lu, C. Zhao, C. Deng, C. Zhang, C. Ruan, et al., “Deepseek-v3 technical report,” arXiv preprint arXiv:2412.19437, 2024. [54] S. Singh, O. Ruwase, A. A. Awan, S. Rajbhandari, Y. He, and A.", + "metadata": { + "source_file": "MOE", + "chunk_index": 430, + "chunk_id": "MOE_chunk_0430", + "start_position": 227657, + "end_position": 228019, + "page_index": 21, + "word_count": 61, + "char_count": 362 + }, + "has_embedding": false + }, + { + "content": "He, and A. Bhatele, “A hybrid tensor-expert-data parallelism approach to optimize mixture-of-experts training,” in Proceedings of the 37th International Conference on Supercomputing, pp. 203–214, 2023. [55] J. Yao, Q. Anthony, A. Shafi, H. Subramoni, and D. K. D. Panda, “Exploiting inter-layer expert affinity for accelerating mixture-of-experts model inference,” in 2024 IEEE International Parallel and Distributed Processing Symposium (IPDPS), pp. 915–925, IEEE, 2024. [56] J. Yu, Y. Zhuge, L. Zhang, P. Hu, D.", + "metadata": { + "source_file": "MOE", + "chunk_index": 431, + "chunk_id": "MOE_chunk_0431", + "start_position": 228019, + "end_position": 228532, + "page_index": 21, + "word_count": 72, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "Hu, D. Wang, H. Lu, and Y. He, “Boosting continual learning of vision-language models via mixture-of-experts adapters,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 23219–23230, June 2024. [57] R. Zhang, A. Cheng, Y. Luo, G. Dai, H. Yang, J. Liu, R. Xu, L. Du, Y. Du, Y. Jiang, et al., “Decomposing the neurons: Activation sparsity via mixture of experts for continual test time adaptation,” arXiv preprint arXiv:2405.16486, 2024. [58] Y. Zhou, T. Lei, H.", + "metadata": { + "source_file": "MOE", + "chunk_index": 432, + "chunk_id": "MOE_chunk_0432", + "start_position": 228532, + "end_position": 229039, + "page_index": 21, + "word_count": 81, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "Lei, H. Liu, N. Du, Y. Huang, V. Zhao, A. M. Dai, Q. V. Le, J. Laudon, et al., “Mixture-of-experts with expert choice routing,” Advances in Neural Information Processing Systems, vol. 35, pp. 7103– 7114, 2022. [59] W. Chen, Y. Zhou, N. Du, Y. Huang, J. Laudon, Z. Chen, and C. Cui, “Lifelong language pretraining with distribution-specialized experts,” in International Conference on Machine Learning, pp. 5383–5395, PMLR, 2023. [60] S. Lee, J. Ha, D. Zhang, and G.", + "metadata": { + "source_file": "MOE", + "chunk_index": 433, + "chunk_id": "MOE_chunk_0433", + "start_position": 229039, + "end_position": 229504, + "page_index": 21, + "word_count": 77, + "char_count": 465 + }, + "has_embedding": false + }, + { + "content": "Zhang, and G. Kim, “A neural dirichlet process mixture model for task-free continual learning,” arXiv preprint arXiv:2001.00689, 2020. [61] G. Rypes´c, S. Cygert, V. Khan, T. Trzci ´ nski, B. Zieli ´ nski, and B. Twar- ´ dowski, “Divide and not forget: Ensemble of selectively trained experts in continual learning,” arXiv preprint arXiv:2401.10191, 2024. [62] X. Yu, T. Rosing, and Y.", + "metadata": { + "source_file": "MOE", + "chunk_index": 434, + "chunk_id": "MOE_chunk_0434", + "start_position": 229504, + "end_position": 229889, + "page_index": 21, + "word_count": 61, + "char_count": 385 + }, + "has_embedding": false + }, + { + "content": "Rosing, and Y. Guo, “Evolve: Enhancing unsupervised continual learning with multiple experts,” in 2024 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 2355– 2366, IEEE. [63] L. Li, Z. Wu, and Y. Ji, “Mote: Mixture of task-specific experts for pretrained model-based continual learning,” Available at SSRN 5035279, 2024. [64] S. Park, “Learning more generalized experts by merging experts in mixture-of-experts,” arXiv preprint arXiv:2405.11530, 2024. [65] H. Hihn and D. A.", + "metadata": { + "source_file": "MOE", + "chunk_index": 435, + "chunk_id": "MOE_chunk_0435", + "start_position": 229889, + "end_position": 230388, + "page_index": 21, + "word_count": 72, + "char_count": 499 + }, + "has_embedding": false + }, + { + "content": "A. Braun, “Mixture-of-variational-experts for continual learning,” arXiv preprint arXiv:2110.12667, 2021. of experts meets prompt-based continual learning,” Advances in Neural Information Processing Systems, vol. 37, pp. 119025–119062, 2024. [67] S. Lee and C. Park, “Continual traffic forecasting via mixture of experts,” arXiv preprint arXiv:2406.03140, 2024. [68] M. Wang, H. Su, S. Wang, S. Wang, N. Yin, L. Shen, L. Lan, L. Yang, and X.", + "metadata": { + "source_file": "MOE", + "chunk_index": 436, + "chunk_id": "MOE_chunk_0436", + "start_position": 230388, + "end_position": 230829, + "page_index": 21, + "word_count": 63, + "char_count": 441 + }, + "has_embedding": false + }, + { + "content": "Yang, and X. Cao, “Graph convolutional mixture-of-experts learner network for long-tailed domain generalization,” pp. 1–1. [69] Q. Chen, L. Zhu, H. He, X. Zhang, S. Zeng, Q. Ren, and Y. Lu, “Lowrank mixture-of-experts for continual medical image segmentation,” in Medical Image Computing and Computer Assisted Intervention – MICCAI 2024 (M. G. Linguraru, Q. Dou, A. Feragen, S. Giannarou, B. Glocker, K. Lekadir, and J. A. Schnabel, eds.), vol. 15008, pp. 382– 392, Springer Nature Switzerland.", + "metadata": { + "source_file": "MOE", + "chunk_index": 437, + "chunk_id": "MOE_chunk_0437", + "start_position": 230829, + "end_position": 231323, + "page_index": 21, + "word_count": 75, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "382– 392, Springer Nature Switzerland. Series Title: Lecture Notes in Computer Science. [70] Z. Wang, Z. Zhang, C.-Y. Lee, H. Zhang, R. Sun, X. Ren, G. Su, V. Perot, J. Dy, and T. Pfister, “Learning to prompt for continual learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 139–149, 2022. [71] R. Aljundi, P. Chakravarty, and T.", + "metadata": { + "source_file": "MOE", + "chunk_index": 438, + "chunk_id": "MOE_chunk_0438", + "start_position": 231323, + "end_position": 231701, + "page_index": 21, + "word_count": 62, + "char_count": 378 + }, + "has_embedding": false + }, + { + "content": "Chakravarty, and T. Tuytelaars, “Expert gate: Lifelong learning with a network of experts,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3366–3375, 2017. [72] L. Wang, X. Zhang, Q. Li, J. Zhu, and Y. Zhong, “Coscl: Cooperation of small continual learners is stronger than a big one,” in European Conference on Computer Vision, pp. 254–271, Springer, 2022. [73] T. Doan, S. I. Mirzadeh, and M.", + "metadata": { + "source_file": "MOE", + "chunk_index": 439, + "chunk_id": "MOE_chunk_0439", + "start_position": 231701, + "end_position": 232134, + "page_index": 21, + "word_count": 70, + "char_count": 433 + }, + "has_embedding": false + }, + { + "content": "Mirzadeh, and M. Farajtabar, “Continual learning beyond a single model,” in Conference on Lifelong Learning Agents, pp. 961– 991, PMLR, 2023. [74] T. Zhong, Z. Chi, L. Gu, Y. Wang, Y. Yu, and J. Tang, “Metadmoe: Adapting to domain shift by meta-distillation from mixture-ofexperts,” Advances in Neural Information Processing Systems, vol. 35, pp. 22243–22257, 2022. [75] Y. Dai, X. Li, J. Liu, Z. Tong, and L.-Y.", + "metadata": { + "source_file": "MOE", + "chunk_index": 440, + "chunk_id": "MOE_chunk_0440", + "start_position": 232134, + "end_position": 232546, + "page_index": 21, + "word_count": 66, + "char_count": 412 + }, + "has_embedding": false + }, + { + "content": "Tong, and L.-Y. Duan, “Generalizable person re-identification with relevance-aware mixture of experts,” in 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 16140–16149, IEEE. [76] Z. Liu, X. Wang, C. Feng, X. Sun, W. Zhan, and X. Chen, “Metareinforcement learning with mixture of experts for generalizable multi access in heterogeneous wireless networks,” arXiv preprint arXiv:2412.03850, 2024. [77] J. Guo, D. J. Shah, and R.", + "metadata": { + "source_file": "MOE", + "chunk_index": 441, + "chunk_id": "MOE_chunk_0441", + "start_position": 232546, + "end_position": 233003, + "page_index": 21, + "word_count": 66, + "char_count": 457 + }, + "has_embedding": false + }, + { + "content": "Shah, and R. Barzilay, “Multi-source domain adaptation with mixture of experts,” arXiv preprint arXiv:1809.02256, 2018. [78] Q. Zhou, K.-Y. Zhang, T. Yao, R. Yi, S. Ding, and L. Ma, “Adaptive mixture of experts learning for generalizable face anti-spoofing,” in Proceedings of the 30th ACM International Conference on Multimedia, pp. 6009–6018. [79] R. D. Nzoyem, D. A. Barton, and T.", + "metadata": { + "source_file": "MOE", + "chunk_index": 442, + "chunk_id": "MOE_chunk_0442", + "start_position": 233003, + "end_position": 233387, + "page_index": 21, + "word_count": 59, + "char_count": 384 + }, + "has_embedding": false + }, + { + "content": "Barton, and T. Deakin, “Towards foundational models for dynamical system reconstruction: Hierarchical metalearning via mixture of experts,” arXiv preprint arXiv:2502.05335, 2025. [80] A. Hendawy, J. Peters, and C. D’Eramo, “Multi-task reinforcement learning with mixture of orthogonal experts,” arXiv preprint arXiv:2311.11385, 2023. [81] Y. Yang, P.-T. Jiang, Q. Hou, H. Zhang, J. Chen, and B.", + "metadata": { + "source_file": "MOE", + "chunk_index": 443, + "chunk_id": "MOE_chunk_0443", + "start_position": 233387, + "end_position": 233781, + "page_index": 21, + "word_count": 54, + "char_count": 394 + }, + "has_embedding": false + }, + { + "content": "Chen, and B. Li, “Multi-task dense prediction via mixture of low-rank experts,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 27927–27937, 2024. [82] L. Shen, A. Tang, E. Yang, G. Guo, Y. Luo, L. Zhang, X. Cao, B. Du, and D. Tao, “Efficient and effective weight-ensembling mixture of experts for multi-task model merging,” arXiv preprint arXiv:2410.21804, 2024. [83] Z. Qin, Y. Cheng, Z. Zhao, Z. Chen, D. Metzler, and J.", + "metadata": { + "source_file": "MOE", + "chunk_index": 444, + "chunk_id": "MOE_chunk_0444", + "start_position": 233781, + "end_position": 234246, + "page_index": 21, + "word_count": 75, + "char_count": 465 + }, + "has_embedding": false + }, + { + "content": "Metzler, and J. Qin, “Multitask mixture of sequential experts for user activity streams,” in Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 3083–3091, ACM. [84] R. Aoki, F. Tung, and G. L. Oliveira, “Heterogeneous multi-task learning with expert diversity,” vol. 19, no. 6, pp. 3093–3102. [85] G. Cheng, L. Dong, W. Cai, and C. Sun, “Multi-task reinforcement learning with attention-based mixture of experts,” IEEE Robotics and Automation Letters, vol.", + "metadata": { + "source_file": "MOE", + "chunk_index": 445, + "chunk_id": "MOE_chunk_0445", + "start_position": 234246, + "end_position": 234753, + "page_index": 21, + "word_count": 76, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "cement learning with attention-based mixture of experts,” IEEE Robotics and Automation Letters, vol. 8, no. 6, pp. 3812–3819, 2023. [86] H. Ye and D. Xu, “Taskexpert: Dynamically assembling multi-task representations with memorial mixture-of-experts,” in Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 21828–21837, October 2023. [87] S. Gupta, S. Mukherjee, K. Subudhi, E. Gonzalez, D. Jose, A. H. Awadallah, and J.", + "metadata": { + "source_file": "MOE", + "chunk_index": 446, + "chunk_id": "MOE_chunk_0446", + "start_position": 234753, + "end_position": 235205, + "page_index": 21, + "word_count": 64, + "char_count": 452 + }, + "has_embedding": false + }, + { + "content": "Awadallah, and J. Gao, “Sparsely activated mixture-of-experts are robust multi-task learners,” arXiv preprint arXiv:2204.07689, 2022. [88] H. Hazimeh, Z. Zhao, A. Chowdhery, M. Sathiamoorthy, Y. Chen, R. Mazumder, L. Hong, and E. Chi, “Dselect-k: Differentiable selection in the mixture of experts with applications to multi-task learning,” Advances in Neural Information Processing Systems, vol. 34, pp. 29335– 29347, 2021. [89] Z. Chen, Y. Shen, M. Ding, Z. Chen, H. Zhao, E. Learned-Miller, and C.", + "metadata": { + "source_file": "MOE", + "chunk_index": 447, + "chunk_id": "MOE_chunk_0447", + "start_position": 235205, + "end_position": 235705, + "page_index": 21, + "word_count": 73, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "Learned-Miller, and C. Gan, “Mod-squad: Designing mixtures of experts as modular multitask learners,” in 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 11828–11837, IEEE. [90] M. Reuss, J. Pari, P. Agrawal, and R. Lioutikov, “Efficient diffusion transformer policies with mixture of expert denoisers for multitask learning,” arXiv preprint arXiv:2412.12953, 2024. [91] Z. Zhang, S. Liu, J. Yu, Q. Cai, X. Zhao, C. Zhang, Z. Liu, Q. Liu, H. Zhao, L. Hu, P. Jiang, and K.", + "metadata": { + "source_file": "MOE", + "chunk_index": 448, + "chunk_id": "MOE_chunk_0448", + "start_position": 235705, + "end_position": 236207, + "page_index": 21, + "word_count": 78, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "Jiang, and K. Gai, “M3oe: Multi-domain multitask mixture-of experts recommendation framework,” in Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 893–902. [92] J. Xu, L. Sun, and D. Zhao, “MoME: Mixture-of-masked-experts for efficient multi-task recommendation,” in Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 2527–2531, ACM. [93] J. Ma, Z. Zhao, X. Yi, J. Chen, L.", + "metadata": { + "source_file": "MOE", + "chunk_index": 449, + "chunk_id": "MOE_chunk_0449", + "start_position": 236207, + "end_position": 236714, + "page_index": 21, + "word_count": 72, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "Chen, L. Hong, and E. H. Chi, “Modeling task relationships in multi-task learning with multi-gate mixture-of-experts,” in Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 1930–1939, ACM. [94] Z. Hou and D. Cao, “Estimating elastic parameters from digital rock images based on multi-task learning with multi-gate mixture-ofexperts,” vol. 213, p. 110310. [95] S. Wang, Y. Li, H. Li, T. Zhu, Z. Li, and W.", + "metadata": { + "source_file": "MOE", + "chunk_index": 450, + "chunk_id": "MOE_chunk_0450", + "start_position": 236714, + "end_position": 237169, + "page_index": 21, + "word_count": 71, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "Li, and W. Ou, “Multi-task learning with calibrated mixture of insightful experts,” in 2022 IEEE 38th International Conference on Data Engineering (ICDE), pp. 3307–3319, IEEE. [96] S. Sodhani, A. Zhang, and J. Pineau, “Multi-task reinforcement learning with context-based representations,” in International Conference on Machine Learning, pp. 9767–9779, PMLR, 2021. [97] T. Chen, X. Chen, X. Du, A. Rashwan, F. Yang, H. Chen, Z. Wang, and Y.", + "metadata": { + "source_file": "MOE", + "chunk_index": 451, + "chunk_id": "MOE_chunk_0451", + "start_position": 237169, + "end_position": 237610, + "page_index": 21, + "word_count": 66, + "char_count": 441 + }, + "has_embedding": false + }, + { + "content": "Wang, and Y. Li, “AdaMV-MoE: Adaptive multi-task vision mixture-ofexperts,” in 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 17300–17311, IEEE. [98] H. Tang, J. Liu, M. Zhao, and X. Gong, “Progressive layered extraction (ple): A novel multi-task learning (mtl) model for personalized recommendations,” in Proceedings of the 14th ACM conference on recommender systems, pp. 269–278, 2020. [99] C. Louizos, M. Welling, and D. P.", + "metadata": { + "source_file": "MOE", + "chunk_index": 452, + "chunk_id": "MOE_chunk_0452", + "start_position": 237610, + "end_position": 238059, + "page_index": 21, + "word_count": 65, + "char_count": 449 + }, + "has_embedding": false + }, + { + "content": "P. Kingma, “Learning sparse neural networks through $l _ { - } 0$ regularization,” arXiv preprint arXiv:1712.01312, 2017. [100] J. Ren, Y. Li, Z. Ding, W. Pan, and H. Dong, “Probabilistic mixtureof-experts for efficient deep reinforcement learning,” arXiv preprint arXiv:2104.09122, 2021. [101] M. Gimelfarb, S. Sanner, and C.-G.", + "metadata": { + "source_file": "MOE", + "chunk_index": 453, + "chunk_id": "MOE_chunk_0453", + "start_position": 238059, + "end_position": 238388, + "page_index": 21, + "word_count": 48, + "char_count": 329 + }, + "has_embedding": false + }, + { + "content": "Sanner, and C.-G. Lee, “Contextual policy transfer in reinforcement learning domains via deep mixtures-of-experts,” in Proceedings of the Thirty-Seventh Conference on Uncertainty in Artificial Intelligence (C. de Campos and M. H. Maathuis, eds.), vol. 161 of Proceedings of Machine Learning Research, pp. 1787–1797, PMLR, 27–30 Jul 2021. [102] T. Willi, J. Obando-Ceron, J. Foerster, K. Dziugaite, and P. S. Castro, “Mixture of experts in a mixture of rl settings,” arXiv preprint arXiv:2406.18420, 2024. [103] S.", + "metadata": { + "source_file": "MOE", + "chunk_index": 454, + "chunk_id": "MOE_chunk_0454", + "start_position": 238388, + "end_position": 238901, + "page_index": 21, + "word_count": 75, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "[103] S. Huang, Z. Zhang, T. Liang, Y. Xu, Z. Kou, C. Lu, G. Xu, Z. Xue, and H. Xu, “Mentor: Mixture-of-experts network with taskoriented perturbation for visual reinforcement learning,” arXiv preprint arXiv:2410.14972, 2024. [104] G. Qiao, G. Liu, P. Poupart, and Z. Xu, “Multi-modal inverse constrained reinforcement learning from a mixture of demonstrations,” Advances in Neural Information Processing Systems, vol. 36, pp. 60384– 60396, 2023. [105] D. Gupta, Y. Chow, A. Tulepbergenov, M. Ghavamzadeh, and C.", + "metadata": { + "source_file": "MOE", + "chunk_index": 455, + "chunk_id": "MOE_chunk_0455", + "start_position": 238901, + "end_position": 239413, + "page_index": 21, + "word_count": 77, + "char_count": 512 + }, + "has_embedding": false + }, + { + "content": "Ghavamzadeh, and C. Boutilier, “Offline reinforcement learning for mixture-of-expert dialogue management,” Advances in Neural Information Processing Systems, vol. 36, pp. 5912–5935, 2023. [106] K. Samejima, K. Doya, and M. Kawato, “Inter-module credit assignment in modular reinforcement learning,” Neural Networks, vol. 16, no. 7, pp. 985–994, 2003. [107] H. Van Seijen, B. Bakker, L.", + "metadata": { + "source_file": "MOE", + "chunk_index": 456, + "chunk_id": "MOE_chunk_0456", + "start_position": 239413, + "end_position": 239798, + "page_index": 21, + "word_count": 53, + "char_count": 385 + }, + "has_embedding": false + }, + { + "content": "Bakker, L. Kester, et al., “Switching between different state representations in reinforcement learning,” in Proceedings of the 26th IASTED International Conference on Artificial Intelligence and Applications, pp. 226–231, 2008. [108] X. B. Peng, G. Berseth, and M. Van de Panne, “Terrain-adaptive locomotion skills using deep reinforcement learning,” ACM Transactions on Graphics (TOG), vol. 35, no. 4, pp. 1–12, 2016. [109] V. C. Kumar, S. Ha, and C. K.", + "metadata": { + "source_file": "MOE", + "chunk_index": 457, + "chunk_id": "MOE_chunk_0457", + "start_position": 239798, + "end_position": 240253, + "page_index": 21, + "word_count": 68, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "K. Liu, “Learning a unified control policy for safe falling,” in 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 3940–3947, IEEE, 2017. [110] X. B. Peng, M. Chang, G. Zhang, P. Abbeel, and S. Levine, “Mcp: Learning composable hierarchical control with multiplicative compositional policies,” Advances in neural information processing systems, vol. 32, 2019. [111] R. Akrour, D. Tateo, and J.", + "metadata": { + "source_file": "MOE", + "chunk_index": 458, + "chunk_id": "MOE_chunk_0458", + "start_position": 240253, + "end_position": 240681, + "page_index": 21, + "word_count": 63, + "char_count": 428 + }, + "has_embedding": false + }, + { + "content": "Tateo, and J. Peters, “Continuous action reinforcement learning from a mixture of interpretable experts,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 44, no. 10, pp. 6795– 6806, 2021. [112] K. S. Refaat and K. Ding, “Accelerated deep reinforcement learning of terrain-adaptive locomotion skills,” in Deep RL Workshop NeurIPS 2021, 2021. [113] W. Song, H. Zhao, P. Ding, C. Cui, S. Lyu, Y. Fan, and D.", + "metadata": { + "source_file": "MOE", + "chunk_index": 459, + "chunk_id": "MOE_chunk_0459", + "start_position": 240681, + "end_position": 241106, + "page_index": 21, + "word_count": 67, + "char_count": 425 + }, + "has_embedding": false + }, + { + "content": "Fan, and D. Wang, “Germ: A generalist robotic model with mixture-of-experts for quadruped robot,” in 2024 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 11879–11886, IEEE, 2024. [114] M. Vincze, L. Ferrarotti, L. L. Custode, B. Lepri, and G. Iacca, “Smose: Sparse mixture of shallow experts for interpretable reinforcement learning in continuous control tasks,” arXiv preprint arXiv:2412.13053, 2024. [115] J. Obando-Ceron, G. Sokar, T. Willi, C. Lyle, J. Farebrother, J.", + "metadata": { + "source_file": "MOE", + "chunk_index": 460, + "chunk_id": "MOE_chunk_0460", + "start_position": 241106, + "end_position": 241610, + "page_index": 21, + "word_count": 72, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "Farebrother, J. Foerster, G. K. Dziugaite, D. Precup, and P. S. Castro, “Mixtures of experts unlock parameter scaling for deep rl,” arXiv preprint arXiv:2402.08609, 2024. [116] Y. Takahashi and M. Asada, “Modular learning systems for soccer robot,” in Proceedings of the Fourth International Symposium on Human and Artificial Intelligence Systems, pp. 370–375, Citeseer, 2004. [117] Y. Takahashi, K. Edazawa, and M.", + "metadata": { + "source_file": "MOE", + "chunk_index": 461, + "chunk_id": "MOE_chunk_0461", + "start_position": 241610, + "end_position": 242025, + "page_index": 21, + "word_count": 61, + "char_count": 415 + }, + "has_embedding": false + }, + { + "content": "Edazawa, and M. Asada, “Modular learning system and scheduling for behavior acquisition in multi-agent environment,” in RoboCup 2004: Robot Soccer World Cup VIII 8, pp. 548–555, Springer, 2005. [118] Y. Takahashi, K. Edazawa, K. Noma, and M. Asada, “Simultaneous learning to acquire competitive behaviors in multi-agent system based on a modular learning system,” in 2005 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 2016–2022, IEEE, 2005. [119] K. Mulling, J. Kober, O.", + "metadata": { + "source_file": "MOE", + "chunk_index": 462, + "chunk_id": "MOE_chunk_0462", + "start_position": 242025, + "end_position": 242523, + "page_index": 21, + "word_count": 73, + "char_count": 498 + }, + "has_embedding": false + }, + { + "content": "Kober, O. Kroemer, and J. Peters, “Learning to select and ¨ generalize striking movements in robot table tennis,” The International Journal of Robotics Research, vol. 32, no. 3, pp. 263–279, 2013. [120] K. Li, M. Cucuringu, L. Sanchez-Betancourt, and T. Willi, “Mixtures´ of experts for scaling up neural networks in order execution,” in Proceedings of the 5th ACM International Conference on AI in Finance, pp. 669–676, 2024. [121] M. Ewerton, G. Neumann, R. Lioutikov, H. B. Amor, J. Peters, and G.", + "metadata": { + "source_file": "MOE", + "chunk_index": 463, + "chunk_id": "MOE_chunk_0463", + "start_position": 242523, + "end_position": 243023, + "page_index": 21, + "word_count": 81, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "Peters, and G. Maeda, “Learning multiple collaborative tasks with a mixture of interaction primitives,” in 2015 IEEE International Conference on Robotics and Automation (ICRA), pp. 1535–1542, IEEE, 2015. [122] Y. Zhou, J. Gao, and T. Asfour, “Movement primitive learning and generalization: Using mixture density networks,” IEEE Robotics & Automation Magazine, vol. 27, no. 2, pp. 22–32, 2020. [123] N. Freymuth, N. Schreiber, P. Becker, A. Taranovic, and G.", + "metadata": { + "source_file": "MOE", + "chunk_index": 464, + "chunk_id": "MOE_chunk_0464", + "start_position": 243023, + "end_position": 243481, + "page_index": 21, + "word_count": 68, + "char_count": 458 + }, + "has_embedding": false + }, + { + "content": "Taranovic, and G. Neumann, “Inferring versatile behavior from demonstrations by matching geometric descriptors,” arXiv preprint arXiv:2210.08121, 2022. [124] V. Prasad, A. Kshirsagar, D. K. R. Stock-Homburg, J. Peters, and G. Chalvatzaki, “Moveint: Mixture of variational experts for learning human-robot interactions from demonstrations,” IEEE Robotics and Automation Letters, 2024. [125] K. Doya, K. Samejima, K.-i. Katagiri, and M.", + "metadata": { + "source_file": "MOE", + "chunk_index": 465, + "chunk_id": "MOE_chunk_0465", + "start_position": 243481, + "end_position": 243915, + "page_index": 21, + "word_count": 57, + "char_count": 434 + }, + "has_embedding": false + }, + { + "content": "Katagiri, and M. Kawato, “Multiple model-based reinforcement learning,” Neural computation, vol. 14, no. 6, pp. 1347–1369, 2002. [126] P. Tommasino, D. Caligiore, M. Mirolli, and G. Baldassarre, “A reinforcement learning architecture that transfers knowledge between skills when solving multiple tasks,” IEEE Transactions on Cognitive and Developmental Systems, vol. 11, no. 2, pp. 292–317, 2016. [127] D. Peterson, P. Kanani, and V. J.", + "metadata": { + "source_file": "MOE", + "chunk_index": 466, + "chunk_id": "MOE_chunk_0466", + "start_position": 243915, + "end_position": 244351, + "page_index": 21, + "word_count": 62, + "char_count": 436 + }, + "has_embedding": false + }, + { + "content": "J. Marathe, “Private federated learning with domain adaptation,” arXiv preprint arXiv:1912.06733, 2019. [128] E. L. Zec, O. Mogren, J. Martinsson, L. R. Sutfeld, and D. Gillblad, ¨ “Specialized federated learning using a mixture of experts,” arXiv preprint arXiv:2010.02056, 2020. [129] S. K. Pye and H. Yu, “Personalised federated learning: A combinational approach,” arXiv preprint arXiv:2108.09618, 2021. [130] M. Reisser, C. Louizos, E. Gavves, and M.", + "metadata": { + "source_file": "MOE", + "chunk_index": 467, + "chunk_id": "MOE_chunk_0467", + "start_position": 244351, + "end_position": 244806, + "page_index": 21, + "word_count": 65, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "Gavves, and M. Welling, “Federated mixture of experts,” arXiv preprint arXiv:2107.06724, 2021. [131] B. Guo, Y. Mei, D. Xiao, and W. Wu, “Pfl-moe: Personalized federated learning based on mixture of experts,” in Web and Big Data: 5th International Joint Conference, APWeb-WAIM 2021, Guangzhou, China, August 23–25, 2021, Proceedings, Part I 5, pp. 480–486, Springer, 2021. [132] M. Isaksson, E. L. Zec, R. Coster, D. Gillblad, and ¨ S.", + "metadata": { + "source_file": "MOE", + "chunk_index": 468, + "chunk_id": "MOE_chunk_0468", + "start_position": 244806, + "end_position": 245241, + "page_index": 21, + "word_count": 68, + "char_count": 435 + }, + "has_embedding": false + }, + { + "content": "Gillblad, and ¨ S. Girdzijauskas, ˇ “Adaptive expert models for personalization in federated learning,” arXiv preprint arXiv:2206.07832, 2022. [133] A. Ghosh, J. Chung, D. Yin, and K. Ramchandran, “An efficient framework for clustered federated learning,” Advances in neural information processing systems, vol. 33, pp. 19586–19597, 2020. [134] V.-T. Tran, L. H. Khiem, and V. Q.", + "metadata": { + "source_file": "MOE", + "chunk_index": 469, + "chunk_id": "MOE_chunk_0469", + "start_position": 245241, + "end_position": 245620, + "page_index": 21, + "word_count": 55, + "char_count": 379 + }, + "has_embedding": false + }, + { + "content": "Q. Pham, “Revisiting sparse mixture of experts for resource-adaptive federated fine-tuning foundation models,” in ICLR 2025 Workshop on Modularity for Collaborative, Decentralized, and Continual Deep Learning, 2025. [135] C. Dun, M. H. Garcia, G. Zheng, A. H. Awadallah, R. Sim, A. Kyrillidis, and D. Dimitriadis, “Fedjets: Efficient just-in-time personalization with federated mixture of experts,” arXiv preprint arXiv:2306.08586, 2023. [136] C. E. Heinbaugh, E. Luz-Ricca, and H.", + "metadata": { + "source_file": "MOE", + "chunk_index": 470, + "chunk_id": "MOE_chunk_0470", + "start_position": 245620, + "end_position": 246101, + "page_index": 21, + "word_count": 66, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "Luz-Ricca, and H. Shao, “Data-free one-shot federated learning under very high statistical heterogeneity,” in The Eleventh International Conference on Learning Representations, 2023. [137] S. Su, B. Li, and X. Xue, “One-shot federated learning without serverside training,” Neural Networks, vol. 164, pp. 203–215, 2023. [138] H. Zeng, M. Xu, T. Zhou, X. Wu, J. Kang, Z. Cai, and D.", + "metadata": { + "source_file": "MOE", + "chunk_index": 471, + "chunk_id": "MOE_chunk_0471", + "start_position": 246101, + "end_position": 246482, + "page_index": 21, + "word_count": 58, + "char_count": 381 + }, + "has_embedding": false + }, + { + "content": "Cai, and D. Niyato, “Oneshot-but-not-degraded federated learning,” in Proceedings of the 32nd ACM International Conference on Multimedia, MM ’24, (New York, NY, USA), p. 11070–11079, Association for Computing Machinery, 2024. [139] H. Li and L. Duan, “Theory of mixture-of-experts for mobile edge computing,” arXiv preprint arXiv:2412.15690, 2024. [140] M. N. R. Chowdhury, S. Zhang, M. Wang, S. Liu, and P.-Y.", + "metadata": { + "source_file": "MOE", + "chunk_index": 472, + "chunk_id": "MOE_chunk_0472", + "start_position": 246482, + "end_position": 246892, + "page_index": 21, + "word_count": 60, + "char_count": 410 + }, + "has_embedding": false + }, + { + "content": "Liu, and P.-Y. Chen, “Patch-level routing in mixture-of-experts is provably sample-efficient for convolutional neural networks,” in International Conference on Machine Learning, pp. 6074–6114, PMLR, 2023. [141] W. Jiang and M. A. Tanner, “Hierarchical mixtures-of-experts for exponential family regression models: approximation and maximum likelihood estimation,” Annals of Statistics, pp. 987–1011, 1999. [142] W. Jiang and M. A.", + "metadata": { + "source_file": "MOE", + "chunk_index": 473, + "chunk_id": "MOE_chunk_0473", + "start_position": 246892, + "end_position": 247322, + "page_index": 21, + "word_count": 56, + "char_count": 430 + }, + "has_embedding": false + }, + { + "content": "A. Tanner, “On the approximation rate of hierarchical mixtures-of-experts for generalized linear models,” Neural computation, vol. 11, no. 5, pp. 1183–1198, 1999. [143] A. J. Zeevi, R. Meir, and V. Maiorov, “Error bounds for functional approximation and estimation using mixtures of experts,” IEEE Transactions on Information Theory, vol. 44, no. 3, pp. 1010–1025, 1998. [144] H. D. Nguyen, L. R. Lloyd-Jones, and G. J.", + "metadata": { + "source_file": "MOE", + "chunk_index": 474, + "chunk_id": "MOE_chunk_0474", + "start_position": 247322, + "end_position": 247741, + "page_index": 21, + "word_count": 64, + "char_count": 419 + }, + "has_embedding": false + }, + { + "content": "J. McLachlan, “A universal approximation theorem for mixture-of-experts models,” Neural computation, vol. 28, no. 12, pp. 2585–2593, 2016. [145] E. F. Mendes and W. Jiang, “On convergence rates of mixtures of polynomial experts,” Neural computation, vol. 24, no. 11, pp. 3025– 3051, 2012. [146] N. Ho, C.-Y. Yang, and M. I. Jordan, “Convergence rates for gaussian mixtures of experts,” Journal of Machine Learning Research, vol. 23, no. 323, pp. 1–81, 2022. [147] H. Nguyen, T. Nguyen, and N.", + "metadata": { + "source_file": "MOE", + "chunk_index": 475, + "chunk_id": "MOE_chunk_0475", + "start_position": 247741, + "end_position": 248233, + "page_index": 21, + "word_count": 78, + "char_count": 492 + }, + "has_embedding": false + }, + { + "content": "Nguyen, and N. Ho, “Demystifying softmax gating function in gaussian mixture of experts,” Advances in Neural Information Processing Systems, vol. 36, pp. 4624–4652, 2023. [148] H. Nguyen, P. Akbarian, F. Yan, and N. Ho, “Statistical perspective of top-k sparse softmax gating mixture of experts,” arXiv preprint arXiv:2309.13850, 2023. [149] H. Nguyen, T. Nguyen, K. Nguyen, and N.", + "metadata": { + "source_file": "MOE", + "chunk_index": 476, + "chunk_id": "MOE_chunk_0476", + "start_position": 248233, + "end_position": 248614, + "page_index": 21, + "word_count": 57, + "char_count": 381 + }, + "has_embedding": false + }, + { + "content": "Nguyen, and N. Ho, “Towards convergence rates for parameter estimation in gaussian-gated mixture of experts,” in International Conference on Artificial Intelligence and Statistics, pp. 2683–2691, PMLR, 2024. [150] H. Nguyen, N. Ho, and A. Rinaldo, “On least square estimation in softmax gating mixture of experts,” arXiv preprint arXiv:2402.02952, 2024. [151] H. Nguyen, P. Akbarian, T. Nguyen, and N.", + "metadata": { + "source_file": "MOE", + "chunk_index": 477, + "chunk_id": "MOE_chunk_0477", + "start_position": 248614, + "end_position": 249015, + "page_index": 21, + "word_count": 58, + "char_count": 401 + }, + "has_embedding": false + }, + { + "content": "Nguyen, and N. Ho, “A general theory for softmax gating multinomial logistic mixture of experts,” arXiv preprint arXiv:2310.14188, 2023. [152] T. C. Fung and S. C. Tseung, “Mixture of experts models for multilevel data: Modelling framework and approximation theory,” Neurocomput \n[153] M. Videau, A. Leite, M. Schoenauer, and O. Teytaud, “Mixture of experts in image classification: What’s the sweet spot?,” arXiv preprint arXiv:2411.18322, 2024. [154] X. Han, L. Wei, Z. Dou, Z. Wang, C. Qiang, X. He, Y. Sun, Z.", + "metadata": { + "source_file": "MOE", + "chunk_index": 478, + "chunk_id": "MOE_chunk_0478", + "start_position": 249015, + "end_position": 249528, + "page_index": 21, + "word_count": 80, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "Sun, Z. Han, and Q. Tian, “Vimoe: An empirical study of designing vision mixtureof-experts,” arXiv preprint arXiv:2410.15732, 2024. [155] A. Royer, I. Karmanov, A. Skliar, B. E. Bejnordi, and T. Blankevoort, “Revisiting single-gated mixtures of experts,” arXiv preprint arXiv:2304.05497, 2023. [156] J. Zhang, X. Qu, T. Zhu, and Y. Cheng, “Clip-moe: Towards building mixture of experts for clip with diversified multiplet upcycling,” arXiv preprint arXiv:2409.19291, 2024. [157] M. He, G. Lv, W. He, J.", + "metadata": { + "source_file": "MOE", + "chunk_index": 479, + "chunk_id": "MOE_chunk_0479", + "start_position": 249528, + "end_position": 250030, + "page_index": 21, + "word_count": 74, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "He, J. Fan, and G. Zeng, “DeepME: Deep mixture experts for large-scale image classification,” in Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, pp. 722–728, International Joint Conferences on Artificial Intelligence Organization. [158] H. Nguyen, X. Han, C. W. Harris, S. Saria, and N. Ho, “On expert estimation in hierarchical mixture of experts: Beyond softmax gating functions,” arXiv preprint arXiv:2410.02935, 2024. [159] K. Oksuz, S. Kuzucu, T. Joy, and P. K.", + "metadata": { + "source_file": "MOE", + "chunk_index": 480, + "chunk_id": "MOE_chunk_0480", + "start_position": 250030, + "end_position": 250536, + "page_index": 21, + "word_count": 73, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "K. Dokania, “Mocae: Mixture of calibrated experts significantly improves object detection,” arXiv preprint arXiv:2309.14976, 2023. [160] X. Wang, Y. Jin, W. Wu, W. Zhang, L. Zhu, B. Jiang, and Y. Tian, “Object detection using event camera: A moe heat conduction based detector and a new benchmark dataset,” arXiv preprint arXiv:2412.06647, 2024. [161] Y. Jain, H. Behl, Z. Kira, and V.", + "metadata": { + "source_file": "MOE", + "chunk_index": 481, + "chunk_id": "MOE_chunk_0481", + "start_position": 250536, + "end_position": 250921, + "page_index": 21, + "word_count": 60, + "char_count": 385 + }, + "has_embedding": false + }, + { + "content": "Kira, and V. Vineet, “Damex: Dataset-aware mixture-of-experts for visual understanding of mixture-of-datasets,” Advances in Neural Information Processing Systems, vol. 36, 2024. [162] X. Feng, Y. Li, D. Chen, C. Qiao, J. Yuan, L. Yuan, and G. Hua, “Pluralistic salient object detection,” arXiv preprint arXiv:2409.02368, 2024. [163] S. Pavlitska, E. Eisen, and J. M.", + "metadata": { + "source_file": "MOE", + "chunk_index": 482, + "chunk_id": "MOE_chunk_0482", + "start_position": 250921, + "end_position": 251287, + "page_index": 21, + "word_count": 53, + "char_count": 366 + }, + "has_embedding": false + }, + { + "content": "M. Zollner, “Towards adversarial ro- ¨ bustness of model-level mixture-of-experts architectures for semantic segmentation,” arXiv preprint arXiv:2412.11608, 2024. [164] C. Zhu, B. Xiao, L. Shi, S. Xu, and X. Zheng, “Customize segment anything model for multi-modal semantic segmentation with mixture of lora experts,” arXiv preprint arXiv:2412.04220, 2024. [165] S. Pavlitskaya, C. Hubschneider, M. Weber, R. Moritz, F. Huger, P. Schlicht, and J. M.", + "metadata": { + "source_file": "MOE", + "chunk_index": 483, + "chunk_id": "MOE_chunk_0483", + "start_position": 251287, + "end_position": 251736, + "page_index": 21, + "word_count": 63, + "char_count": 449 + }, + "has_embedding": false + }, + { + "content": "M. Zollner, “Using mixture of expert models to gain insights into semantic segmentation,” in 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pp. 1399–1406, IEEE. [166] X. Wang, F. Yu, L. Dunlap, Y.-A. Ma, R. Wang, A. Mirhoseini, T. Darrell, and J. E. Gonzalez, “Deep mixture of experts via shallow embedding,” in Uncertainty in artificial intelligence, pp. 552–562, PMLR, 2020. [167] L. Rossi, V. Bernuzzi, T. Fontanini, M. Bertozzi, and A.", + "metadata": { + "source_file": "MOE", + "chunk_index": 484, + "chunk_id": "MOE_chunk_0484", + "start_position": 251736, + "end_position": 252215, + "page_index": 21, + "word_count": 74, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "Bertozzi, and A. Prati, “Swin2- mose: A new single image supersolution model for remote sensing,” IET Image Processing, vol. 19, no. 1, p. e13303, 2025. [168] Z. Xue, G. Song, Q. Guo, B. Liu, Z. Zong, Y. Liu, and P. Luo, “Raphael: Text-to-image generation via large mixture of diffusion paths,” Advances in Neural Information Processing Systems, vol. 36, pp. 41693–41706, 2023. [169] D. K. Park, S. Yoo, H. Bahng, J. Choo, and N.", + "metadata": { + "source_file": "MOE", + "chunk_index": 485, + "chunk_id": "MOE_chunk_0485", + "start_position": 252215, + "end_position": 252644, + "page_index": 21, + "word_count": 73, + "char_count": 429 + }, + "has_embedding": false + }, + { + "content": "Choo, and N. Park, “Megan: Mixture of experts of generative adversarial networks for multimodal image generation,” arXiv preprint arXiv:1805.02481, 2018. [170] Y. Jiang, S. Yang, H. Qiu, W. Wu, C. C. Loy, and Z. Liu, “Text2human: Text-driven controllable human image generation,” ACM Transactions on Graphics (TOG), vol. 41, no. 4, pp. 1–11, 2022. [171] H. Zhou, Z. Wang, S. Huang, X. Huang, X. Han, J. Feng, C. Deng, W. Luo, and J.", + "metadata": { + "source_file": "MOE", + "chunk_index": 486, + "chunk_id": "MOE_chunk_0486", + "start_position": 252644, + "end_position": 253076, + "page_index": 21, + "word_count": 72, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "Luo, and J. Chen, “Moe-lpr: Multilingual extension of large language models through mixture-of-experts with language priors routing,” arXiv preprint arXiv:2408.11396, 2024. [172] X. Cheng, Z. Zhu, X. Zhuang, Z. Chen, Z. Huang, and Y. Zou, “MoESLU: Towards ASR-robust spoken language understanding via mixtureof-experts,” in Findings of the Association for Computational Linguistics ACL 2024, pp. 14868–14879, Association for Computational Linguistics. [173] Z. Wu, H.-Y. Huang, F. Qu, and Y.", + "metadata": { + "source_file": "MOE", + "chunk_index": 487, + "chunk_id": "MOE_chunk_0487", + "start_position": 253076, + "end_position": 253567, + "page_index": 21, + "word_count": 68, + "char_count": 491 + }, + "has_embedding": false + }, + { + "content": "Qu, and Y. Wu, “Mixture-of-promptexperts for multi-modal semantic understanding,” arXiv preprint arXiv:2403.11311, 2024. [174] Y. Chai, Q. Yin, and J. Zhang, “Improved training of mixture-of-experts language gans,” in ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 1–5, 2023. [175] Y. Zhang, S. Sun, X. Gao, Y. Fang, C. Brockett, M. Galley, J. Gao, and B.", + "metadata": { + "source_file": "MOE", + "chunk_index": 488, + "chunk_id": "MOE_chunk_0488", + "start_position": 253567, + "end_position": 253981, + "page_index": 21, + "word_count": 62, + "char_count": 414 + }, + "has_embedding": false + }, + { + "content": "Gao, and B. Dolan, “Retgen: A joint framework for retrieval and grounded text generation modeling,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 36, pp. 11739–11747, 2022. [176] J. Wu and M. Hou, “Enhancing diversity for logical $<$ $ table-to-text$ generation with mixture of experts,” vol. 41, no. 4, p. e13533. [177] E. Frantar and D.", + "metadata": { + "source_file": "MOE", + "chunk_index": 489, + "chunk_id": "MOE_chunk_0489", + "start_position": 253981, + "end_position": 254393, + "page_index": 21, + "word_count": 61, + "char_count": 412 + }, + "has_embedding": false + }, + { + "content": "Frantar and D. Alistarh, “Qmoe: Practical sub-1-bit compression of trillion-parameter models,” arXiv preprint arXiv:2310.16795, 2023. [178] M. R. Costa-Jussa, J. Cross, O. C¸ elebi, M. Elbayad, K. Heafield, \\` K. Heffernan, E. Kalbassi, J. Lam, D. Licht, J. Maillard, et al., “No language left behind: Scaling human-centered machine translation,” arXiv preprint arXiv:2207.04672, 2022. [179] NLLB Team, M. R. Costa-jussa, J. Cross, O. C¸ elebi, M. Elbayad, \\` K. Heafield, K. Heffernan, E. Kalbassi, J. Lam, D.", + "metadata": { + "source_file": "MOE", + "chunk_index": 490, + "chunk_id": "MOE_chunk_0490", + "start_position": 254393, + "end_position": 254903, + "page_index": 21, + "word_count": 76, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "Lam, D. Licht, J. Maillard, A. Sun, S. Wang, G. Wenzek, A. Youngblood, B. Akula, L. Barrault, G. M. Gonzalez, P. Hansanti, J. Hoffman, S. Jarrett, K. R. Sadagopan, D. Rowe, S. Spruit, C. Tran, P. Andrews, N. F. Ayan, S. Bhosale, S. Edunov, A. Fan, C. Gao, V. Goswami, F. Guzman, P. Koehn, ´ A. Mourachko, C. Ropers, S. Saleem, H. Schwenk, and J. Wang, “Scaling neural machine translation to 200 languages,” vol. 630, no. 8018, pp. 841–846. [180] H. Huang, N. Ardalani, A. Sun, L. Ke, H.-H. S. Lee, A. Sridhar, S.", + "metadata": { + "source_file": "MOE", + "chunk_index": 491, + "chunk_id": "MOE_chunk_0491", + "start_position": 254903, + "end_position": 255415, + "page_index": 21, + "word_count": 94, + "char_count": 512 + }, + "has_embedding": false + }, + { + "content": "Sridhar, S. Bhosale, C.-J. Wu, and B. Lee, “Towards moe deployment: Mitigating inefficiencies in mixture-of-expert (moe) inference,” arXiv preprint arXiv:2303.06182, 2023. [181] S. Chen, Z. Jie, and L. Ma, “Llava-mole: Sparse mixture of lora experts for mitigating data conflicts in instruction finetuning mllms,” arXiv preprint arXiv:2401.16160, 2024. [182] B. Mustafa, C. Riquelme, J. Puigcerver, R. Jenatton, and N.", + "metadata": { + "source_file": "MOE", + "chunk_index": 492, + "chunk_id": "MOE_chunk_0492", + "start_position": 255415, + "end_position": 255833, + "page_index": 21, + "word_count": 58, + "char_count": 418 + }, + "has_embedding": false + }, + { + "content": "Jenatton, and N. Houlsby, “Multimodal contrastive learning with limoe: the language-image mixture of experts,” Advances in Neural Information Processing Systems, vol. 35, pp. 9564–9576, 2022. [183] X. Sun, Y. Chen, Y. Huang, R. Xie, J. Zhu, K. Zhang, S. Li, Z. Yang, J. Han, X. Shu, et al., “Hunyuan-large: An open-source moe model with 52 billion activated parameters by tencent,” arXiv preprint arXiv:2411.02265, 2024. [184] A. Yang, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Li, D. Liu, F. Huang, H.", + "metadata": { + "source_file": "MOE", + "chunk_index": 493, + "chunk_id": "MOE_chunk_0493", + "start_position": 255833, + "end_position": 256340, + "page_index": 21, + "word_count": 84, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "Huang, H. Wei, et al., “Qwen2. 5 technical report,” arXiv preprint arXiv:2412.15115, 2024. [185] T. Wei, B. Zhu, L. Zhao, C. Cheng, B. Li, W. Lu, P. Cheng, ¨ J. Zhang, X. Zhang, L. Zeng, et al., “Skywork-moe: A deep dive into training techniques for mixture-of-experts language models, 2024,” URL https://arxiv. org/abs/2406.06563, 2024. [186] N. Gupta and J. Yip, “Dbrx: Creating an llm from scratch using databricks,” in Databricks Data Intelligence Platform: Unlocking the GenAI Revolution, pp.", + "metadata": { + "source_file": "MOE", + "chunk_index": 494, + "chunk_id": "MOE_chunk_0494", + "start_position": 256340, + "end_position": 256837, + "page_index": 21, + "word_count": 77, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "tch using databricks,” in Databricks Data Intelligence Platform: Unlocking the GenAI Revolution, pp. 311–330, Springer, 2024. [187] B. Zoph, I. Bello, S. Kumar, N. Du, Y. Huang, J. Dean, N. Shazeer, and W. Fedus, “St-moe: Designing stable and transferable sparse expert models,” arXiv preprint arXiv:2202.08906, 2022. [188] T. Zhu, X. Qu, D. Dong, J. Ruan, J. Tong, C. He, and Y.", + "metadata": { + "source_file": "MOE", + "chunk_index": 495, + "chunk_id": "MOE_chunk_0495", + "start_position": 256837, + "end_position": 257216, + "page_index": 21, + "word_count": 61, + "char_count": 379 + }, + "has_embedding": false + }, + { + "content": "He, and Y. Cheng, “Llama-moe: Building mixture-of-experts from llama with continual pre-training,” in Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 15913–15923, 2024. [189] X. Qu, D. Dong, X. Hu, T. Zhu, W. Sun, and Y. Cheng, “Llama-moe v2: Exploring sparsity of llama from perspective of mixture-of-experts with post-training,” arXiv preprint arXiv:2411.15708, 2024. [190] A. Vavre, E. He, D. Liu, Z. Yan, J. Yang, N. Tajbakhsh, and A.", + "metadata": { + "source_file": "MOE", + "chunk_index": 496, + "chunk_id": "MOE_chunk_0496", + "start_position": 257216, + "end_position": 257698, + "page_index": 21, + "word_count": 73, + "char_count": 482 + }, + "has_embedding": false + }, + { + "content": "Tajbakhsh, and A. Aithal, “Llama 3 meets moe: Efficient upcycling,” arXiv preprint arXiv:2412.09952, 2024. [191] F. Xue, Z. Zheng, Y. Fu, J. Ni, Z. Zheng, W. Zhou, and Y. You, “Openmoe: An early effort on open mixture-of-experts language models,” arXiv preprint arXiv:2402.01739, 2024. [192] B. Lenz, O. Lieber, A. Arazi, A. Bergman, A. Manevich, B. Peleg, B. Aviram, C. Almagor, C. Fridman, D.", + "metadata": { + "source_file": "MOE", + "chunk_index": 497, + "chunk_id": "MOE_chunk_0497", + "start_position": 257698, + "end_position": 258092, + "page_index": 21, + "word_count": 63, + "char_count": 394 + }, + "has_embedding": false + }, + { + "content": "Fridman, D. Padnos, et al., “Jamba: Hybrid transformer-mamba language models,” in The Thirteenth International Conference on Learning Representations, 2025. [193] J. Team, B. Lenz, A. Arazi, A. Bergman, A. Manevich, B. Peleg, B. Aviram, C. Almagor, C. Fridman, D. Padnos, et al., “Jamba1.5: Hybrid transformer-mamba models at scale,” arXiv preprint arXiv:2408.12570, 2024. [194] O. Lieber, B. Lenz, H. Bata, G. Cohen, J. Osin, I. Dalmedigos, E. Safahi, S. Meirom, Y. Belinkov, S.", + "metadata": { + "source_file": "MOE", + "chunk_index": 498, + "chunk_id": "MOE_chunk_0498", + "start_position": 258092, + "end_position": 258571, + "page_index": 21, + "word_count": 72, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "Belinkov, S. Shalev-Shwartz, et al., “Jamba: A hybrid transformer-mamba language model,” arXiv preprint arXiv:2403.19887, 2024. [195] S. Wu, J. Luo, X. Chen, L. Li, X. Zhao, T. Yu, C. Wang, Y. Wang, F. Wang, W. Qiao, et al., “Yuan 2.0-m32: Mixture of experts with attention router,” arXiv preprint arXiv:2405.17976, 2024. [196] C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J.", + "metadata": { + "source_file": "MOE", + "chunk_index": 499, + "chunk_id": "MOE_chunk_0499", + "start_position": 258571, + "end_position": 258989, + "page_index": 21, + "word_count": 70, + "char_count": 418 + }, + "has_embedding": false + }, + { + "content": "J. Liu, “Exploring the limits of transfer learning with a unified text-to-text transformer,” Journal of machine learning research, vol. 21, no. 140, pp. 1–67, 2020. [197] P.-E. Sarlin, D. DeTone, T. Malisiewicz, and A. Rabinovich, “Superglue: Learning feature matching with graph neural networks,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 4938–4947, 2020. [198] D. Dai, C. Deng, C. Zhao, R. Xu, H. Gao, D. Chen, J. Li, W. Zeng, X. Yu, Y.", + "metadata": { + "source_file": "MOE", + "chunk_index": 500, + "chunk_id": "MOE_chunk_0500", + "start_position": 258989, + "end_position": 259475, + "page_index": 21, + "word_count": 78, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "Yu, Y. Wu, et al., “Deepseekmoe: Towards ultimate expert specialization in mixture-of-experts language models,” arXiv preprint arXiv:2401.06066, 2024. [199] DeepSeek-AI, A. Liu, B. Feng, B. Wang, B. Wang, B. Liu, C. Zhao, C. Dengr, C. Ruan, D. Dai, D. Guo, D. Yang, D. Chen, D. Ji, E. Li, F. Lin, F. Luo, G. Hao, G. Chen, G. Li, H. Zhang, H. Xu, H. Yang, H. Zhang, H. Ding, H. Xin, H. Gao, H. Li, H. Qu, J. L. Cai, J. Liang, J. Guo, J. Ni, J. Li, J. Chen, J. Yuan, J. Qiu, J. Song, K. Dong, K. Gao, K. Guan, L.", + "metadata": { + "source_file": "MOE", + "chunk_index": 501, + "chunk_id": "MOE_chunk_0501", + "start_position": 259475, + "end_position": 259985, + "page_index": 21, + "word_count": 102, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "Guan, L. Wang, L. Zhang, L. Xu, L. Xia, L. Zhao, L. Zhang, M. Li, M. Wang, M. Zhang, M. Zhang, M. Tang, M. Li, N. Tian, P. Huang, P. Wang, P. Zhang, Q. Zhu, Q. Chen, Q. Du, R. J. Chen, R. L. Jin, R. Ge, R. Pan, R. Xu, R. Chen, S. S. Li, S. Lu, S. Zhou, S. Chen, S. Wu, S. Ye, S. Ma, S. Wang, S. Zhou, S. Yu, S. Zhou, S. Zheng, T. Wang, T. Pei, T. Yuan, T. Sun, W. L. Xiao, W. Zeng, W. An, W. Liu, W. Liang, W. Gao, W. Zhang, X. Q. Li, X. Jin, X. Wang, X. Bi, X. Liu, X. Wang, X. Shen, X. Chen, X. Chen, X. Nie, X.", + "metadata": { + "source_file": "MOE", + "chunk_index": 502, + "chunk_id": "MOE_chunk_0502", + "start_position": 259985, + "end_position": 260498, + "page_index": 21, + "word_count": 123, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "Nie, X. Sun, X. Wang, X. Liu, X. Xie, X. Yu, X. Song, X. Zhou, X. Yang, X. Lu, X. Su, Y. Wu, Y. K. Li, Y. X. Wei, Y. X. Zhu, Y. Xu, Y. Huang, Y. Li, Y. Zhao, Y. Sun, Y. Li, Y. Wang, Y. Zheng, Y. Zhang, Y. Xiong, Y. Zhao, Y. He, Y. Tang, Y. Piao, Y. Dong, Y. Tan, Y. Liu, Y. Wang, Y. Guo, Y. Zhu, Y. Wang, Y. Zou, Y. Zha, Y. Ma, Y. Yan, Y. You, Y. Liu, Z. Z. Ren, Z. Ren, Z. Sha, Z. Fu, Z. Huang, Z. Zhang, Z. Xie, Z. Hao, Z. Shao, Z. Wen, Z. Xu, Z. Zhang, Z. Li, Z. Wang, Z. Gu, Z. Li, and Z.", + "metadata": { + "source_file": "MOE", + "chunk_index": 503, + "chunk_id": "MOE_chunk_0503", + "start_position": 260498, + "end_position": 260990, + "page_index": 21, + "word_count": 121, + "char_count": 492 + }, + "has_embedding": false + }, + { + "content": "Li, and Z. Xie, “DeepSeek-v2: A strong, economical, and efficient mixture-of-experts language model,” arXiv preprint arXiv:2405.04434, no. arXiv:2405.04434. [200] DeepSeek-AI, D. Guo, D. Yang, H. Zhang, J. Song, R. Zhang, R. Xu, Q. Zhu, S. Ma, P. Wang, X. Bi, X. Zhang, X. Yu, Y. Wu, Z. F. Wu, Z. Gou, Z. Shao, Z. Li, Z. Gao, A. Liu, B. Xue, B. Wang, B. Wu, B. Feng, C. Lu, C. Zhao, C. Deng, C. Zhang, C. Ruan, D. Dai, D. Chen, D. Ji, E. Li, F. Lin, F. Dai, F. Luo, G. Hao, G. Chen, G. Li, H. Zhang, H. Bao, H.", + "metadata": { + "source_file": "MOE", + "chunk_index": 504, + "chunk_id": "MOE_chunk_0504", + "start_position": 260990, + "end_position": 261500, + "page_index": 21, + "word_count": 102, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "Bao, H. Xu, H. Wang, H. Ding, H. Xin, H. Gao, H. Qu, H. Li, J. Guo, J. Li, J. Wang, J. Chen, J. Yuan, J. Qiu, J. Li, J. L. Cai, J. Ni, J. Liang, J. Chen, K. Dong, K. Hu, K. Gao, K. Guan, K. Huang, K. Yu, L. Wang, L. Zhang, L. Zhao, L. Wang, L. Zhang, L. Xu, L. Xia, M. Zhang, M. Zhang, M. Tang, M. Li, M. Wang, M. Li, N. Tian, P. Huang, P. Zhang, Q. Wang, Q. Chen, Q. Du, R. Ge, R. Zhang, R. Pan, R. Wang, R. J. Chen, R. L. Jin, R. Chen, S. Lu, S. Zhou, S. Chen, S. Ye, S. Wang, S. Yu, S. Zhou, S. Pan, S. S.", + "metadata": { + "source_file": "MOE", + "chunk_index": 505, + "chunk_id": "MOE_chunk_0505", + "start_position": 261500, + "end_position": 262008, + "page_index": 21, + "word_count": 122, + "char_count": 508 + }, + "has_embedding": false + }, + { + "content": "S. Li, S. Zhou, S. Wu, S. Ye, T. Yun, T. Pei, T. Sun, T. Wang, W. Zeng, W. Zhao, W. Liu, W. Liang, W. Gao, W. Yu, W. Zhang, W. L. Xiao, W. An, X. Liu, X. Wang, X. Chen, X. Nie, X. Cheng, X. Liu, X. Xie, X. Liu, X. Yang, X. Li, X. Su, X. Lin, X. Q. Li, X. Jin, X. Shen, X. Chen, X. Sun, X. Wang, X. Song, X. Zhou, X. Wang, X. Shan, Y. K. Li, Y. Q. Wang, Y. X. Wei, Y. Zhang, Y. Xu, Y. Li, Y. Zhao, Y. Sun, Y. Wang, Y. Yu, Y. Zhang, Y. Shi, Y. Xiong, Y. He, Y. Piao, Y. Wang, Y. Tan, Y. Ma, Y. Liu, Y. Guo, Y.", + "metadata": { + "source_file": "MOE", + "chunk_index": 506, + "chunk_id": "MOE_chunk_0506", + "start_position": 262008, + "end_position": 262515, + "page_index": 21, + "word_count": 124, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "Guo, Y. Ou, Y. Wang, Y. Gong, Y. Zou, Y. He, Y. Xiong, Y. Luo, Y. You, Y. Liu, Y. Zhou, Y. X. Zhu, Y. Xu, Y. Huang, Y. Li, Y. Zheng, Y. Zhu, Y. Ma, Y. Tang, Y. Zha, Y. Yan, Z. Z. Ren, Z. Ren, Z. Sha, Z. Fu, Z. Xu, Z. Xie, Z. Zhang, Z. Hao, Z. Ma, Z. Yan, Z. Wu, Z. Gu, Z. Zhu, Z. Liu, Z. Li, Z. Xie, Z. Song, Z. Pan, Z. Huang, Z. Xu, Z. Zhang, and Z. Zhang, “DeepSeek-r1: Incentivizing reasoning capability in LLMs via reinforcement learning,” arXiv preprint arXiv:2501.12948, no. arXiv:2501.12948, 2025. [201] R.", + "metadata": { + "source_file": "MOE", + "chunk_index": 507, + "chunk_id": "MOE_chunk_0507", + "start_position": 262515, + "end_position": 263028, + "page_index": 21, + "word_count": 105, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "[201] R. Akrour, D. Tateo, and J. Peters, “Continuous action reinforcement learning from a mixture of interpretable experts,” vol. 44, no. 10, pp. 6795–6806. [202] T. C. Fung, A. L. Badescu, and X. S. Lin, “A class of mixture of experts models for general insurance: Theoretical developments,” vol. 89, pp. 111–127. [203] S. E. Yuksel, J. N. Wilson, and P. D. Gader, “Twenty years of mixture of experts,” IEEE transactions on neural networks and learning systems, vol. 23, no. 8, pp. 1177–1193, 2012. [204] S.", + "metadata": { + "source_file": "MOE", + "chunk_index": 508, + "chunk_id": "MOE_chunk_0508", + "start_position": 263028, + "end_position": 263537, + "page_index": 21, + "word_count": 85, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "[204] S. Masoudnia and R. Ebrahimpour, “Mixture of experts: a literature survey,” Artificial Intelligence Review, vol. 42, pp. 275–293, 2014. [205] W. Cai, J. Jiang, F. Wang, J. Tang, S. Kim, and J. Huang, “A survey on mixture of experts,” arXiv preprint arXiv:2407.06204, 2024. [206] W. Gan, Z. Ning, Z. Qi, and P. S. Yu, “Mixture of experts (moe): A big data perspective,” arXiv preprint arXiv:2501.16352, 2025. [207] J. Liu, P. Tang, W. Wang, Y. Ren, X. Hou, P.-A. Heng, M. Guo, and C.", + "metadata": { + "source_file": "MOE", + "chunk_index": 509, + "chunk_id": "MOE_chunk_0509", + "start_position": 263537, + "end_position": 264025, + "page_index": 21, + "word_count": 84, + "char_count": 488 + }, + "has_embedding": false + }, + { + "content": "Guo, and C. Li, “A survey on inference optimization techniques for mixture of experts models,” arXiv preprint arXiv:2412.14219, 2024. [208] A. Vats, R. Raja, V. Jain, and A. Chadha, “The evolution of mixture of experts: A survey from basics to breakthroughs,” Preprints (August 2024), 2024. [209] V. Dimitri, B. Regina, and M. Alfonz, “A survey on mixture of experts: Advancements, challenges, and future directions,” Authorea Preprints, 2025. [210] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A.", + "metadata": { + "source_file": "MOE", + "chunk_index": 510, + "chunk_id": "MOE_chunk_0510", + "start_position": 264025, + "end_position": 264536, + "page_index": 21, + "word_count": 79, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin, “Attention is all you need,” Advances in neural information processing systems, vol. 30, 2017. [211] S. Ingrassia, S. C. Minotti, and G. Vittadini, “Local statistical modeling via a cluster-weighted approach with elliptical distributions,” Journal of classification, vol. 29, pp. 363–401, 2012. [212] J. Geweke, M. Keane, and D.", + "metadata": { + "source_file": "MOE", + "chunk_index": 511, + "chunk_id": "MOE_chunk_0511", + "start_position": 264536, + "end_position": 264914, + "page_index": 21, + "word_count": 57, + "char_count": 378 + }, + "has_embedding": false + }, + { + "content": "Keane, and D. Runkle, “Alternative computational approaches to inference in the multinomial probit model,” The review of economics and statistics, pp. 609–632, 1994. [213] M. P. Keane, “A note on identification in the multinomial probit model,” Journal of Business & Economic Statistics, vol. 10, no. 2, pp. 193–200, 1992. [214] W. Peebles and S. Xie, “Scalable diffusion models with transformers,” in Proceedings of the IEEE/CVF international conference on computer vision, pp. 4195–4205, 2023. [215] B. Mann, N.", + "metadata": { + "source_file": "MOE", + "chunk_index": 512, + "chunk_id": "MOE_chunk_0512", + "start_position": 264914, + "end_position": 265427, + "page_index": 21, + "word_count": 77, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, et al., “Language models are few-shot learners,” arXiv preprint arXiv:2005.14165, vol. 1, p. 3, 2020. [216] E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al., “Lora: Low-rank adaptation of large language models.,” ICLR, vol. 1, no. 2, p. 3, 2022. [217] S. Lin, L. Yang, D. Fan, and J.", + "metadata": { + "source_file": "MOE", + "chunk_index": 513, + "chunk_id": "MOE_chunk_0513", + "start_position": 265427, + "end_position": 265858, + "page_index": 21, + "word_count": 78, + "char_count": 431 + }, + "has_embedding": false + }, + { + "content": "Fan, and J. Zhang, “Trgp: Trust region gradient projection for continual learning,” arXiv preprint arXiv:2202.02931, 2022. [218] S. Lin, L. Yang, D. Fan, and J. Zhang, “Beyond not-forgetting: Continual learning with backward knowledge transfer,” Advances in Neural Information Processing Systems, vol. 35, pp. 16165–16177, 2022. [219] R. Aljundi, K. Kelchtermans, and T. Tuytelaars, “Task-free continual learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp.", + "metadata": { + "source_file": "MOE", + "chunk_index": 514, + "chunk_id": "MOE_chunk_0514", + "start_position": 265858, + "end_position": 266362, + "page_index": 21, + "word_count": 69, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 11254–11263, 2019. [220] D.-W. Zhou, H.-L. Sun, J. Ning, H.-J. Ye, and D.-C. Zhan, “Continual learning with pre-trained models: A survey,” arXiv preprint arXiv:2401.16386, 2024. [221] Q. Sun, Y. Liu, T.-S. Chua, and B. Schiele, “Meta-transfer learning for few-shot learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 403–412, 2019. [222] Y. Chen, Z. Liu, H.", + "metadata": { + "source_file": "MOE", + "chunk_index": 515, + "chunk_id": "MOE_chunk_0515", + "start_position": 266362, + "end_position": 266869, + "page_index": 21, + "word_count": 75, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "Liu, H. Xu, T. Darrell, and X. Wang, “Meta-baseline: Exploring simple meta-learning for few-shot learning,” in Proceedings of the IEEE/CVF international conference on computer vision, pp. 9062– 9071, 2021. [223] M. Ren, E. Triantafillou, S. Ravi, J. Snell, K. Swersky, J. B. Tenenbaum, H. Larochelle, and R. S. Zemel, “Meta-learning for semisupervised few-shot classification,” arXiv preprint arXiv:1803.00676, 2018. [224] A. Santoro, S. Bartunov, M. Botvinick, D. Wierstra, and T.", + "metadata": { + "source_file": "MOE", + "chunk_index": 516, + "chunk_id": "MOE_chunk_0516", + "start_position": 266869, + "end_position": 267350, + "page_index": 21, + "word_count": 69, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "Wierstra, and T. Lillicrap, “Meta-learning with memory-augmented neural networks,” in International conference on machine learning, pp. 1842–1850, PMLR, 2016. [225] J. Snell, K. Swersky, and R. Zemel, “Prototypical networks for few-shot learning,” Advances in neural information processing systems, vol. 30, 2017. [226] C. Finn, P. Abbeel, and S. Levine, “Model-agnostic meta-learning for fast adaptation of deep networks,” in International conference on machine learning, pp. 1126–1135, PMLR, 2017. [227] A.", + "metadata": { + "source_file": "MOE", + "chunk_index": 517, + "chunk_id": "MOE_chunk_0517", + "start_position": 267350, + "end_position": 267858, + "page_index": 21, + "word_count": 69, + "char_count": 508 + }, + "has_embedding": false + }, + { + "content": "[227] A. Nichol and J. Schulman, “Reptile: a scalable metalearning algorithm,” arXiv preprint arXiv:1803.02999, vol. 2, no. 3, p. 4, 2018. [228] M. Garnelo, J. Schwarz, D. Rosenbaum, F. Viola, D. J. Rezende, S. Eslami, and Y. W. Teh, “Neural processes,” arXiv preprint arXiv:1807.01622, 2018. [229] N. Goring, F. Hess, M. Brenner, Z. Monfared, and D. Durstewitz, “Out- ¨ of-domain generalization in dynamical systems reconstruction,” arXiv preprint arXiv:2402.18377, 2024. [230] R. D. Nzoyem, D. A. Barton, and T.", + "metadata": { + "source_file": "MOE", + "chunk_index": 518, + "chunk_id": "MOE_chunk_0518", + "start_position": 267858, + "end_position": 268371, + "page_index": 21, + "word_count": 78, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "Barton, and T. Deakin, “Extending contextual self-modulation: Meta-learning across modalities, task dimensionalities, and data regimes,” arXiv preprint arXiv:2410.01655, 2024. [231] A. Farahani, S. Voghoei, K. Rasheed, and H. R. Arabnia, “A brief review of domain adaptation,” Advances in data science and information engineering: proceedings from ICDATA 2020 and IKE 2020, pp. 877– 894, 2021. [232] O. Vinyals, C. Blundell, T. Lillicrap, D.", + "metadata": { + "source_file": "MOE", + "chunk_index": 519, + "chunk_id": "MOE_chunk_0519", + "start_position": 268371, + "end_position": 268812, + "page_index": 21, + "word_count": 62, + "char_count": 441 + }, + "has_embedding": false + }, + { + "content": "Lillicrap, D. Wierstra, et al., “Matching networks for one shot learning,” Advances in neural information processing systems, vol. 29, 2016. [233] K. Rakelly, A. Zhou, C. Finn, S. Levine, and D. Quillen, “Efficient offpolicy meta-reinforcement learning via probabilistic context variables,” in International conference on machine learning, pp. 5331–5340, PMLR, 2019. [234] T. Haarnoja, A. Zhou, P. Abbeel, and S.", + "metadata": { + "source_file": "MOE", + "chunk_index": 520, + "chunk_id": "MOE_chunk_0520", + "start_position": 268812, + "end_position": 269224, + "page_index": 21, + "word_count": 59, + "char_count": 412 + }, + "has_embedding": false + }, + { + "content": "Abbeel, and S. Levine, “Soft actor-critic: Offpolicy maximum entropy deep reinforcement learning with a stochastic actor,” in International conference on machine learning, pp. 1861– 1870, Pmlr, 2018. [235] R. Caruana, “Multitask learning,” Machine learning, vol. 28, pp. 41– 75, 1997. [236] K.-H. Thung and C.-Y. Wee, “A brief review on multi-task learning,” Multimedia Tools and Applications, vol. 77, no. 22, pp. 29705–29725, 2018. [237] Y. Zhang and Q.", + "metadata": { + "source_file": "MOE", + "chunk_index": 521, + "chunk_id": "MOE_chunk_0521", + "start_position": 269224, + "end_position": 269679, + "page_index": 21, + "word_count": 68, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "Zhang and Q. Yang, “An overview of multi-task learning,” National Science Review, vol. 5, no. 1, pp. 30–43, 2018. [238] N. Vithayathil Varghese and Q. H. Mahmoud, “A survey of multi-task deep reinforcement learning,” Electronics, vol. 9, no. 9, p. 1363, 2020. [239] C. D’Eramo, D. Tateo, A. Bonarini, M. Restelli, and J. Peters, “Sharing knowledge in multi-task deep reinforcement learning,” arXiv preprint arXiv:2401.09561, 2024. [240] L. Sun, H. Zhang, W. Xu, and M.", + "metadata": { + "source_file": "MOE", + "chunk_index": 522, + "chunk_id": "MOE_chunk_0522", + "start_position": 269679, + "end_position": 270147, + "page_index": 21, + "word_count": 74, + "char_count": 468 + }, + "has_embedding": false + }, + { + "content": "Xu, and M. Tomizuka, “Paco: Parametercompositional multi-task reinforcement learning,” Advances in Neural Information Processing Systems, vol. 35, pp. 21495–21507, 2022. [241] C. Devin, A. Gupta, T. Darrell, P. Abbeel, and S. Levine, “Learning modular neural network policies for multi-task and multi-robot transfer,” in 2017 IEEE international conference on robotics and automation (ICRA), pp. 2169–2176, IEEE, 2017. [242] R. Yang, H. Xu, Y. Wu, and X.", + "metadata": { + "source_file": "MOE", + "chunk_index": 523, + "chunk_id": "MOE_chunk_0523", + "start_position": 270147, + "end_position": 270600, + "page_index": 21, + "word_count": 65, + "char_count": 453 + }, + "has_embedding": false + }, + { + "content": "Wu, and X. Wang, “Multi-task reinforcement learning with soft modularization,” Advances in Neural Information Processing Systems, vol. 33, pp. 4767–4777, 2020. [243] Q. Zhang, X. Liao, Q. Liu, J. Xu, and B. Zheng, “Leaving no one behind: A multi-scenario multi-task meta learning approach for advertiser modeling,” in Proceedings of the Fifteenth ACM International Conference on Web Search and Data Mining, pp. 1368–1376, 2022. [244] A. Graves and A.", + "metadata": { + "source_file": "MOE", + "chunk_index": 524, + "chunk_id": "MOE_chunk_0524", + "start_position": 270600, + "end_position": 271050, + "page_index": 21, + "word_count": 68, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "Graves and A. Graves, “Long short-term memory,” Supervised sequence labelling with recurrent neural networks, pp. 37–45, 2012. [245] R. Cui, D. Cao, Q. Liu, Z. Zhu, and Y. Jia, “Vp and vs prediction from digital rock images using a combination of u-net and convolutional neural networks,” Geophysics, vol. 86, no. 1, pp. MR27–MR37, 2021. [246] S. Karimpouli, S. Khoshlesan, E. H. Saenger, and H. H.", + "metadata": { + "source_file": "MOE", + "chunk_index": 525, + "chunk_id": "MOE_chunk_0525", + "start_position": 271050, + "end_position": 271448, + "page_index": 21, + "word_count": 65, + "char_count": 398 + }, + "has_embedding": false + }, + { + "content": "H. Koochi, “Application of alternative digital rock physics methods in a real case study: a challenge between clean and cemented samples,” Geophysical Prospecting, vol. 66, no. 4, pp. 767–783, 2018. [247] J. Kober, J. A. Bagnell, and J. Peters, “Reinforcement learning in robotics: A survey,” The International Journal of Robotics Research, vol. 32, no. 11, pp. 1238–1274, 2013. [248] I. Szita, “Reinforcement learning in games,” in Reinforcement Learning: State-of-the-art, pp. 539–577, Springer, 2012. [249] B.", + "metadata": { + "source_file": "MOE", + "chunk_index": 526, + "chunk_id": "MOE_chunk_0526", + "start_position": 271448, + "end_position": 271960, + "page_index": 21, + "word_count": 75, + "char_count": 512 + }, + "has_embedding": false + }, + { + "content": "[249] B. R. Kiran, I. Sobh, V. Talpaert, P. Mannion, A. A. Al Sallab, S. Yogamani, and P. Perez, “Deep reinforcement learning for autonomous ´ driving: A survey,” IEEE transactions on intelligent transportation systems, vol. 23, no. 6, pp. 4909–4926, 2021. [250] C. Yu, J. Liu, S. Nemati, and G. Yin, “Reinforcement learning in healthcare: A survey,” ACM Computing Surveys (CSUR), vol. 55, no. 1, pp. 1–36, 2021. [251] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O.", + "metadata": { + "source_file": "MOE", + "chunk_index": 527, + "chunk_id": "MOE_chunk_0527", + "start_position": 271960, + "end_position": 272434, + "page_index": 21, + "word_count": 79, + "char_count": 474 + }, + "has_embedding": false + }, + { + "content": "Radford, and O. Klimov, “Proximal policy optimization algorithms,” arXiv preprint arXiv:1707.06347, 2017. [252] V. Feinberg, A. Wan, I. Stoica, M. I. Jordan, J. E. Gonzalez, and S. Levine, “Model-based value estimation for efficient model-free reinforcement learning,” arXiv preprint arXiv:1803.00101, 2018. [253] S. Levine, A. Kumar, G. Tucker, and J. Fu, “Offline reinforcement learning: Tutorial, review, and perspectives on open problems,” arXiv preprint arXiv:2005.01643, 2020. [254] O. Celik, A.", + "metadata": { + "source_file": "MOE", + "chunk_index": 528, + "chunk_id": "MOE_chunk_0528", + "start_position": 272434, + "end_position": 272935, + "page_index": 21, + "word_count": 68, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "Celik, A. Taranovic, and G. Neumann, “Acquiring diverse skills using curriculum reinforcement learning with mixture of experts,” rYi, print arXiv:2403.06966 \n[255] T. Kurutach, I. Clavera, Y. Duan, A. Tamar, and P. Abbeel, “Model-ensemble trust-region policy optimization,” arXiv preprint arXiv:1802.10592, 2018. [256] K. Lee, M. Laskin, A. Srinivas, and P. Abbeel, “Sunrise: A simple unified framework for ensemble learning in deep reinforcement learning,” in International Conference on Machine Learning, pp.", + "metadata": { + "source_file": "MOE", + "chunk_index": 529, + "chunk_id": "MOE_chunk_0529", + "start_position": 272935, + "end_position": 273445, + "page_index": 21, + "word_count": 69, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "emble learning in deep reinforcement learning,” in International Conference on Machine Learning, pp. 6131–6141, PMLR, 2021. [257] Z. Yang, K. Ren, X. Luo, M. Liu, W. Liu, J. Bian, W. Zhang, and D. Li, “Towards applicable reinforcement learning: Improving the generalization and sample efficiency with policy ensemble,” arXiv preprint arXiv:2205.09284, 2022. [258] X. Lou, J. Guo, J. Zhang, J. Wang, K. Huang, and Y.", + "metadata": { + "source_file": "MOE", + "chunk_index": 530, + "chunk_id": "MOE_chunk_0530", + "start_position": 273445, + "end_position": 273860, + "page_index": 21, + "word_count": 64, + "char_count": 415 + }, + "has_embedding": false + }, + { + "content": "Huang, and Y. Du, “Pecan: Leveraging policy ensemble for context-aware zero-shot human-ai coordination,” arXiv preprint arXiv:2301.06387, 2023. [259] H. Mohammadi, E. Nazerfard, and T. Firoozi, “Reinforcement learningbased mixture of vision transformers for video violence recognition,” arXiv preprint arXiv:2310.03108, 2023. [260] Z. Wei, D. Chen, Y. Zhang, D. Wen, X. Nie, and L. Xie, “Deep reinforcement learning portfolio model based on mixture of experts,” vol. 55, no. 5, p. 347. [261] H. B. McMahan, E.", + "metadata": { + "source_file": "MOE", + "chunk_index": 531, + "chunk_id": "MOE_chunk_0531", + "start_position": 273860, + "end_position": 274369, + "page_index": 21, + "word_count": 74, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "McMahan, E. Moore, D. Ramage, and B. A. y Arcas, “Federated learning of deep networks using model averaging,” arXiv preprint arXiv:1602.05629, vol. 2, no. 2, pp. 15–18, 2016. [262] Z. Liu, L. Yang, Z. Fan, H. Peng, and P. S. Yu, “Federated social recommendation with graph neural network,” ACM Transactions on Intelligent Systems and Technology (TIST), vol. 13, no. 4, pp. 1–24, 2022. [263] C. Wu, F. Wu, Y. Cao, Y. Huang, and X.", + "metadata": { + "source_file": "MOE", + "chunk_index": 532, + "chunk_id": "MOE_chunk_0532", + "start_position": 274369, + "end_position": 274798, + "page_index": 21, + "word_count": 74, + "char_count": 429 + }, + "has_embedding": false + }, + { + "content": "Huang, and X. Xie, “Fedgnn: Federated graph neural network for privacy-preserving recommendation,” arXiv preprint arXiv:2102.04925, 2021. [264] A. Flanagan, W. Oyomno, A. Grigorievskiy, K. E. Tan, S. A. Khan, and M. Ammad-Ud-Din, “Federated multi-view matrix factorization for personalized recommendations,” in Machine Learning and Knowledge Discovery in Databases: European Conference, ECML PKDD 2020, Ghent, Belgium, September 14–18, 2020, Proceedings, Part II, (Berlin, Heidelberg), p.", + "metadata": { + "source_file": "MOE", + "chunk_index": 533, + "chunk_id": "MOE_chunk_0533", + "start_position": 274798, + "end_position": 275286, + "page_index": 21, + "word_count": 63, + "char_count": 488 + }, + "has_embedding": false + }, + { + "content": "CML PKDD 2020, Ghent, Belgium, September 14–18, 2020, Proceedings, Part II, (Berlin, Heidelberg), p. 324–347, Springer-Verlag, 2020. [265] B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, “Communication-efficient learning of deep networks from decentralized data,” in Artificial intelligence and statistics, pp. 1273–1282, PMLR, 2017. [266] N. Guha, A. Talwalkar, and V. Smith, “One-shot federated learning,” arXiv preprint arXiv:1902.11175, 2019. [267] D. Eigen, M. Ranzato, and I.", + "metadata": { + "source_file": "MOE", + "chunk_index": 534, + "chunk_id": "MOE_chunk_0534", + "start_position": 275286, + "end_position": 275783, + "page_index": 21, + "word_count": 70, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "Ranzato, and I. Sutskever, “Learning factored representations in a deep mixture of experts,” arXiv preprint arXiv:1312.4314, 2013. [268] M. Aitkin and N. Longford, “Statistical modelling issues in school effectiveness studies,” Journal of the Royal Statistical Society: Series A (General), vol. 149, no. 1, pp. 1–26, 1986. [269] H. Goldstein, “Multilevel mixed linear model analysis using iterative generalized least squares,” Biometrika, vol. 73, no. 1, pp. 43–56, 1986. [270] H.", + "metadata": { + "source_file": "MOE", + "chunk_index": 535, + "chunk_id": "MOE_chunk_0535", + "start_position": 275783, + "end_position": 276263, + "page_index": 21, + "word_count": 69, + "char_count": 480 + }, + "has_embedding": false + }, + { + "content": "[270] H. Goldstein, Multilevel statistical models. John Wiley & Sons, 2011. [271] M. McCloskey and N. J. Cohen, “Catastrophic interference in connectionist networks: The sequential learning problem,” in Psychology of learning and motivation, vol. 24, pp. 109–165, Elsevier, 1989. [272] J. Kirkpatrick, R. Pascanu, N. Rabinowitz, J. Veness, G. Desjardins, A. A. Rusu, K. Milan, J. Quan, T. Ramalho, A.", + "metadata": { + "source_file": "MOE", + "chunk_index": 536, + "chunk_id": "MOE_chunk_0536", + "start_position": 276263, + "end_position": 276663, + "page_index": 21, + "word_count": 60, + "char_count": 400 + }, + "has_embedding": false + }, + { + "content": "Ramalho, A. Grabska-Barwinska, et al., “Overcoming catastrophic forgetting in neural networks,” Proceedings of the national academy of sciences, vol. 114, no. 13, pp. 3521–3526, 2017. [273] B. Lakshminarayanan, A. Pritzel, and C. Blundell, “Simple and scalable predictive uncertainty estimation using deep ensembles,” Advances in neural information processing systems, vol. 30, 2017. [274] X. Zhou, V. Koltun, and P.", + "metadata": { + "source_file": "MOE", + "chunk_index": 537, + "chunk_id": "MOE_chunk_0537", + "start_position": 276663, + "end_position": 277079, + "page_index": 21, + "word_count": 58, + "char_count": 416 + }, + "has_embedding": false + }, + { + "content": "Koltun, and P. Krahenb ¨ uhl, “Simple multi-dataset detec- ¨ tion,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 7571–7580, 2022. [275] X. Wang, Z. Cai, D. Gao, and N. Vasconcelos, “Towards universal object detection by domain attention,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 7289–7298, 2019. [276] M. Ding, B. Xiao, N. Codella, P. Luo, J. Wang, and L.", + "metadata": { + "source_file": "MOE", + "chunk_index": 538, + "chunk_id": "MOE_chunk_0538", + "start_position": 277079, + "end_position": 277529, + "page_index": 21, + "word_count": 71, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "Wang, and L. Yuan, “Davit: Dual attention vision transformers,” in European conference on computer vision, pp. 74–92, Springer, 2022. [277] A. Kendall and Y. Gal, “What uncertainties do we need in bayesian deep learning for computer vision?,” Advances in neural information processing systems, vol. 30, 2017. [278] M. Abbasi and C. Gagne, “Robustness to adversarial examples through ´ an ensemble of specialists,” arXiv preprint arXiv:1702.06856, 2017. [279] S. Kariyappa and M.", + "metadata": { + "source_file": "MOE", + "chunk_index": 539, + "chunk_id": "MOE_chunk_0539", + "start_position": 277529, + "end_position": 278007, + "page_index": 21, + "word_count": 71, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "Kariyappa and M. Qureshi, “Improving adversarial robustness of ensembles with diversity training. 2019,” Available: arXiv, 1901. [280] T. Pang, K. Xu, C. Du, N. Chen, and J. Zhu, “Improving adversarial robustness via promoting ensemble diversity,” in International Conference on Machine Learning, pp. 4970–4979, PMLR, 2019. [281] R. Rombach, A. Blattmann, D. Lorenz, P. Esser, and B.", + "metadata": { + "source_file": "MOE", + "chunk_index": 540, + "chunk_id": "MOE_chunk_0540", + "start_position": 278007, + "end_position": 278390, + "page_index": 21, + "word_count": 56, + "char_count": 383 + }, + "has_embedding": false + }, + { + "content": "Esser, and B. Ommer, “High-resolution image synthesis with latent diffusion models,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10684–10695, 2022. [282] C. Ledig, L. Theis, F. Huszar, J. Caballero, A. Cunningham, A. Acosta, ´ A. Aitken, A. Tejani, J. Totz, Z. Wang, et al., “Photo-realistic single image super-resolution using a generative adversarial network,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4681–4690, 2017.", + "metadata": { + "source_file": "MOE", + "chunk_index": 541, + "chunk_id": "MOE_chunk_0541", + "start_position": 278390, + "end_position": 278901, + "page_index": 21, + "word_count": 74, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "4681–4690, 2017. [283] L. Wei, S. Zhang, W. Gao, and Q. Tian, “Person transfer gan to bridge domain gap for person re-identification,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 79–88, 2018. [284] A. Radford, L. Metz, and S. Chintala, “Unsupervised representation learning with deep convolutional generative adversarial networks,” arXiv preprint arXiv:1511.06434, 2015. [285] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A.", + "metadata": { + "source_file": "MOE", + "chunk_index": 542, + "chunk_id": "MOE_chunk_0542", + "start_position": 278901, + "end_position": 279399, + "page_index": 21, + "word_count": 72, + "char_count": 498 + }, + "has_embedding": false + }, + { + "content": "Ozair, A. Courville, and Y. Bengio, “Generative adversarial networks,” Communications of the ACM, vol. 63, no. 11, pp. 139–144, 2020. [286] S. Gu, D. Chen, J. Bao, F. Wen, B. Zhang, D. Chen, L. Yuan, and B. Guo, “Vector quantized diffusion model for text-to-image synthesis,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10696–10706, 2022. [287] P. Esser, R. Rombach, A. Blattmann, and B.", + "metadata": { + "source_file": "MOE", + "chunk_index": 543, + "chunk_id": "MOE_chunk_0543", + "start_position": 279399, + "end_position": 279832, + "page_index": 21, + "word_count": 69, + "char_count": 433 + }, + "has_embedding": false + }, + { + "content": "Blattmann, and B. Ommer, “Imagebart: Bidirectional context with multinomial diffusion for autoregressive image synthesis,” Advances in neural information processing systems, vol. 34, pp. 3518–3532, 2021. [288] S. Bond-Taylor, P. Hessey, H. Sasaki, T. P. Breckon, and C. G. Willcocks, “Unleashing transformers: Parallel token prediction with discrete absorbing diffusion for fast high-resolution image generation from vector-quantized codes,” in European Conference on Computer Vision, pp. 170–188, Springer, 2022.", + "metadata": { + "source_file": "MOE", + "chunk_index": 544, + "chunk_id": "MOE_chunk_0544", + "start_position": 279832, + "end_position": 280345, + "page_index": 21, + "word_count": 66, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "170–188, Springer, 2022. [289] C. Manning and H. Schutze, Foundations of statistical natural language processing. MIT press, 1999. [290] D. Jurafsky, Speech & language processing. Pearson Education India, 2000. [291] J. Hirschberg and C. D. Manning, “Advances in natural language processing,” Science, vol. 349, no. 6245, pp. 261–266, 2015. [292] T. Young, D. Hazarika, S. Poria, and E. Cambria, “Recent trends in deep learning based natural language processing,” ieee Computational intelligenCe magazine, vol.", + "metadata": { + "source_file": "MOE", + "chunk_index": 545, + "chunk_id": "MOE_chunk_0545", + "start_position": 280345, + "end_position": 280855, + "page_index": 21, + "word_count": 73, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "in deep learning based natural language processing,” ieee Computational intelligenCe magazine, vol. 13, no. 3, pp. 55–75, 2018. [293] Y. Liu, M. Ott, N. Goyal, J. Du, M. Joshi, D. Chen, O. Levy, M. Lewis, L. Zettlemoyer, and V. Stoyanov, “Roberta: A robustly optimized bert pretraining approach,” arXiv preprint arXiv:1907.11692, 2019. [294] D. Adiwardana, M.-T. Luong, D. R. So, J. Hall, N. Fiedel, R. Thoppilan, Z. Yang, A. Kulshreshtha, G. Nemade, Y.", + "metadata": { + "source_file": "MOE", + "chunk_index": 546, + "chunk_id": "MOE_chunk_0546", + "start_position": 280855, + "end_position": 281308, + "page_index": 21, + "word_count": 72, + "char_count": 453 + }, + "has_embedding": false + }, + { + "content": "Nemade, Y. Lu, et al., “Towards a human-like open-domain chatbot,” arXiv preprint arXiv:2001.09977, 2020. [295] L. Zhang, S. Wang, and B. Liu, “Deep learning for sentiment analysis: A survey,” Wiley interdisciplinary reviews: data mining and knowledge discovery, vol. 8, no. 4, p. e1253, 2018. [296] G. Lample, M. Ballesteros, S. Subramanian, K. Kawakami, and C. Dyer, “Neural architectures for named entity recognition,” arXiv preprint arXiv:1603.01360, 2016. [297] D. Yu and L.", + "metadata": { + "source_file": "MOE", + "chunk_index": 547, + "chunk_id": "MOE_chunk_0547", + "start_position": 281308, + "end_position": 281787, + "page_index": 21, + "word_count": 71, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "Yu and L. Deng, Automatic speech recognition, vol. 1. Springer, 2016. [298] D. Bahdanau, K. Cho, and Y. Bengio, “Neural machine translation by jointly learning to align and translate,” arXiv preprint arXiv:1409.0473, 2014. [299] T.-H. Wen, M. Gasic, N. Mrksic, P.-H. Su, D. Vandyke, and S. Young, “Semantically conditioned lstm-based natural language generation for spoken dialogue systems,” arXiv preprint arXiv:1508.01745, 2015. [300] E. Reiter and R.", + "metadata": { + "source_file": "MOE", + "chunk_index": 548, + "chunk_id": "MOE_chunk_0548", + "start_position": 281787, + "end_position": 282240, + "page_index": 21, + "word_count": 66, + "char_count": 453 + }, + "has_embedding": false + }, + { + "content": "Reiter and R. Dale, “Building applied natural language generation systems,” Natural Language Engineering, vol. 3, no. 1, pp. 57–87, 1997. [301] A. M. Rush, S. Chopra, and J. Weston, “A neural attention model for abstractive sentence summarization,” arXiv preprint arXiv:1509.00685, 2015. [302] K. Papineni, S. Roukos, T. Ward, and W.-J. Zhu, “Bleu: a method for automatic evaluation of machine translation,” in Proceedings of the 40th annual meeting of the Association for Computational Linguistics, pp.", + "metadata": { + "source_file": "MOE", + "chunk_index": 549, + "chunk_id": "MOE_chunk_0549", + "start_position": 282240, + "end_position": 282743, + "page_index": 21, + "word_count": 74, + "char_count": 503 + }, + "has_embedding": false + }, + { + "content": "on,” in Proceedings of the 40th annual meeting of the Association for Computational Linguistics, pp. 311–318, 2002. [303] P. F. Brown, J. Cocke, S. A. Della Pietra, V. J. Della Pietra, F. Jelinek, J. Lafferty, R. L. Mercer, and P. S. Roossin, “A statistical approach to machine translation,” Computational linguistics, vol. 16, no. 2, pp. 79– 85, 1990. [304] Y. Wu, M. Schuster, Z. Chen, Q. V. Le, M. Norouzi, W. Macherey, M. Krikun, Y. Cao, Q. Gao, K.", + "metadata": { + "source_file": "MOE", + "chunk_index": 550, + "chunk_id": "MOE_chunk_0550", + "start_position": 282743, + "end_position": 283195, + "page_index": 21, + "word_count": 79, + "char_count": 452 + }, + "has_embedding": false + }, + { + "content": "Gao, K. Macherey, et al., “Google’s neural machine translation system: Bridging the gap between human and machine translation,” arXiv preprint arXiv:1609.08144, 2016.", + "metadata": { + "source_file": "MOE", + "chunk_index": 551, + "chunk_id": "MOE_chunk_0551", + "start_position": 283195, + "end_position": 283361, + "page_index": 21, + "word_count": 22, + "char_count": 166 + }, + "has_embedding": false + } + ], + "metadata": { + "chunk_size": 512, + "overlap": 100, + "average_chunk_length": 431.6666666666667 + } + }, + "React_paper": { + "source_file": "React_paper", + "total_chunks": 296, + "original_length": 157661, + "chunks": [ + { + "content": "# REAct: SyNERGIzING REASoNING AND AcTING IN LANGUAGE MODELS Shunyu $\\mathrm { Y a o } ^ { * , 1 }$ , Jeffrey Zhao2, Dian $\\mathrm { Y u } ^ { 2 }$ , Nan $\\mathrm { D u } ^ { 2 }$ , Izhak Shafran2, Karthik Narasimhan1, Yuan Cao2 1Department of Computer Science, Princeton University 2Google Research, Brain team 1{shunyuy,karthikn}@princeton.edu ²{jeffreyzhao,dianyu,dunan,izhak,yuancao} @google.com # ABSTRACT", + "metadata": { + "source_file": "React_paper", + "chunk_index": 0, + "chunk_id": "React_paper_chunk_0000", + "start_position": 0, + "end_position": 410, + "page_index": 0, + "word_count": 68, + "char_count": 410 + }, + "has_embedding": false + }, + { + "content": "m 1{shunyuy,karthikn}@princeton.edu ²{jeffreyzhao,dianyu,dunan,izhak,yuancao} @google.com # ABSTRACT While large language models (LLMs) have demonstrated impressive performance across tasks in language understanding and interactive decision making, their abilities for reasoning (e.g. chain-of-thought prompting) and acting (e.g. action plan generation) have primarily been studied as separate topics.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 1, + "chunk_id": "React_paper_chunk_0001", + "start_position": 410, + "end_position": 811, + "page_index": 0, + "word_count": 44, + "char_count": 401 + }, + "has_embedding": false + }, + { + "content": "action plan generation) have primarily been studied as separate topics. In this paper, we explore the use of LLMs to generate both reasoning traces and task-specific actions in an interleaved manner, allowing for greater synergy between the two: reasoning traces help the model induce, track, and update action plans as well as handle exceptions, while actions allow it to interface with and gather additional information from external sources such as knowledge bases or environments.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 2, + "chunk_id": "React_paper_chunk_0002", + "start_position": 811, + "end_position": 1295, + "page_index": 0, + "word_count": 74, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "ith and gather additional information from external sources such as knowledge bases or environments. We apply our approach, named ReAct, to a diverse set of language and decision making tasks and demonstrate its effectiveness over state-of-the-art baselines in addition to improved human interpretability and trustworthiness.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 3, + "chunk_id": "React_paper_chunk_0003", + "start_position": 1295, + "end_position": 1620, + "page_index": 0, + "word_count": 45, + "char_count": 325 + }, + "has_embedding": false + }, + { + "content": "over state-of-the-art baselines in addition to improved human interpretability and trustworthiness. Concretely, on question answering (HotpotQA) and fact verification (Fever), ReAct overcomes prevalent issues of hallucination and error propagation in chain-of-thought reasoning by interacting with a simple Wikipedia API, and generating human-like task-solving trajectories that are more interpretable than baselines without reasoning traces.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 4, + "chunk_id": "React_paper_chunk_0004", + "start_position": 1620, + "end_position": 2062, + "page_index": 0, + "word_count": 53, + "char_count": 442 + }, + "has_embedding": false + }, + { + "content": "-like task-solving trajectories that are more interpretable than baselines without reasoning traces. Furthermore, on two interactive decision making benchmarks (ALFWorld and WebShop), ReAct outperforms imitation and reinforcement learning methods by an absolute success rate of $34 \\%$ and $10 \\%$ respectively, while being prompted with only one or two in-context examples. # 1 INTRODUCTION", + "metadata": { + "source_file": "React_paper", + "chunk_index": 5, + "chunk_id": "React_paper_chunk_0005", + "start_position": 2062, + "end_position": 2453, + "page_index": 0, + "word_count": 54, + "char_count": 391 + }, + "has_embedding": false + }, + { + "content": "# 1 INTRODUCTION A unique feature of human intelligence is the ability to seamlessly combine task-oriented actions with verbal reasoning (or inner speech, Alderson-Day & Fernyhough, 2015), which has been theorized to play an important role in human cognition for enabling self-regulation or strategization (Vygotsky, 1987; Luria, 1965; Fernyhough, 2010) and maintaining a working memory (Baddeley, 1992). Consider the example of cooking up a dish in the kitchen.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 6, + "chunk_id": "React_paper_chunk_0006", + "start_position": 2453, + "end_position": 2915, + "page_index": 0, + "word_count": 68, + "char_count": 462 + }, + "has_embedding": false + }, + { + "content": "Consider the example of cooking up a dish in the kitchen. Between any two specific actions, we may reason in language in order to track progress (\"'now that everything is cut, I should heat up the pot of water'), to handle exceptions or adjust the plan according to the situation (\"I don't have salt, so let me use soy sauce and pepper instead\"), and to realize when external information is needed (\"how do I prepare dough? Let me search on the Internet').", + "metadata": { + "source_file": "React_paper", + "chunk_index": 7, + "chunk_id": "React_paper_chunk_0007", + "start_position": 2915, + "end_position": 3371, + "page_index": 0, + "word_count": 82, + "char_count": 456 + }, + "has_embedding": false + }, + { + "content": "Let me search on the Internet'). We may also act (open a cookbook to read the recipe, open the fridge, check ingredients) to support the reasoning and to answer questions (\"What dish can I make right now?\"). This tight synergy between \"acting'\" and \"reasoning'\" allows humans to learn new tasks quickly and perform robust decision making or reasoning, even under previously unseen circumstances or facing information uncertainties.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 8, + "chunk_id": "React_paper_chunk_0008", + "start_position": 3371, + "end_position": 3802, + "page_index": 0, + "word_count": 67, + "char_count": 431 + }, + "has_embedding": false + }, + { + "content": "making or reasoning, even under previously unseen circumstances or facing information uncertainties. Recent results have hinted at the possibility of combining verbal reasoning with interactive decision making in autonomous systems. On one hand, properly prompted large language models (LLMs) have demonstrated emergent capabilities to carry out several steps of reasoning traces to derive answers from questions in arithmetic, commonsense, and symbolic reasoning tasks (Wei et al. 2022).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 9, + "chunk_id": "React_paper_chunk_0009", + "start_position": 3802, + "end_position": 4290, + "page_index": 0, + "word_count": 67, + "char_count": 488 + }, + "has_embedding": false + }, + { + "content": "2022). However, this \"chain-of-thought'\" reasoning is a static black box, in that the model uses its own internal representations to generate thoughts and is not grounded in the external world, which limits its ability to reason reactively or update its knowledge. This can lead to issues like fact hallucination and error propagation over the reasoning process (Figure 1 (1b)).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 10, + "chunk_id": "React_paper_chunk_0010", + "start_position": 4290, + "end_position": 4668, + "page_index": 0, + "word_count": 59, + "char_count": 378 + }, + "has_embedding": false + }, + { + "content": "to issues like fact hallucination and error propagation over the reasoning process (Figure 1 (1b)). On the other hand, recent work has explored the use of pre-trained language models for planning and acting in interactive environments (Ahn et al., 2022; Nakano et al., 2021; Yao et al., 2020; Huang et al., 2022a), with a focus on predicting actions via language priors.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 11, + "chunk_id": "React_paper_chunk_0011", + "start_position": 4668, + "end_position": 5038, + "page_index": 0, + "word_count": 61, + "char_count": 370 + }, + "has_embedding": false + }, + { + "content": "021; Yao et al., 2020; Huang et al., 2022a), with a focus on predicting actions via language priors. These approaches usually convert multi-modal observations into text, use a language model to generate domain-specifi c actions or plans, and then use a controller to choose or execute them.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 12, + "chunk_id": "React_paper_chunk_0012", + "start_position": 5038, + "end_position": 5328, + "page_index": 1, + "word_count": 47, + "char_count": 290 + }, + "has_embedding": false + }, + { + "content": "to generate domain-specifi c actions or plans, and then use a controller to choose or execute them. However, they do not employ language models to reason abstractly about high-level goals or maintain a working memory to support acting, barring Huang et al. (2022b) who perform a limited form of verbal reasoning to reiterate spatial facts about the current state.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 13, + "chunk_id": "React_paper_chunk_0013", + "start_position": 5328, + "end_position": 5691, + "page_index": 1, + "word_count": 59, + "char_count": 363 + }, + "has_embedding": false + }, + { + "content": ") who perform a limited form of verbal reasoning to reiterate spatial facts about the current state. Beyond such simple embodied tasks to interact with a few blocks, there have not been studies on how reasoning and acting can be combined in a synergistic manner for general task solving, and if such a combination can bring systematic benefits compared to reasoning or acting alone.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 14, + "chunk_id": "React_paper_chunk_0014", + "start_position": 5691, + "end_position": 6073, + "page_index": 2, + "word_count": 64, + "char_count": 382 + }, + "has_embedding": false + }, + { + "content": "ving, and if such a combination can bring systematic benefits compared to reasoning or acting alone. [IMAGE]\nFigure 1: (1) Comparison of 4 prompting methods, (a) St andard, (b) Chain-of-thought (CoT, Reason Only), (c) Act-only, and (d) ReAct (Reason+Act), solving a HotpotQA (Yang et al., 2018) question. (2) Comparison of (a) Act-only and (b) ReAct prompting to solve an AlfWorld (Shridhar et al., 2020b) game.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 15, + "chunk_id": "React_paper_chunk_0015", + "start_position": 6073, + "end_position": 6484, + "page_index": 2, + "word_count": 65, + "char_count": 411 + }, + "has_embedding": false + }, + { + "content": "mparison of (a) Act-only and (b) ReAct prompting to solve an AlfWorld (Shridhar et al., 2020b) game. In both domains, we omit in-context examples in the prompt, and only show task solving trajectories generated by the model (Act, Thought) and the environment (Obs). In this work, we present ReAct, a general paradigm to combine reasoning and acting with language models for solving diverse language reasoning and decision making tasks (Figure 1).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 16, + "chunk_id": "React_paper_chunk_0016", + "start_position": 6484, + "end_position": 6930, + "page_index": 2, + "word_count": 71, + "char_count": 446 + }, + "has_embedding": false + }, + { + "content": "ng with language models for solving diverse language reasoning and decision making tasks (Figure 1). ReAct prompts LLMs to generate both verbal reasoning traces and actions pertaining to a task in an interleaved manner, which allows the model to perform dynamic reasoning to create, maintain, and adjust high-level plans for acting (reason to act), while also interact with the external environments (e.g. Wikipedia) to incorporate additional information into reasoning (act to reason).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 17, + "chunk_id": "React_paper_chunk_0017", + "start_position": 6930, + "end_position": 7416, + "page_index": 2, + "word_count": 72, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "Wikipedia) to incorporate additional information into reasoning (act to reason). We conduct empirical evaluations of ReAct and state-of-the-art baselines on four diverse benchmarks: question answering (HotPotQA, Yang et al., 2018), fact verification (Fever, Thorne et al., 2018), text-based game (ALFWorld, Shridhar et al., 2020b), and webpage navigation (WebShop, Yao et al., 2022).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 18, + "chunk_id": "React_paper_chunk_0018", + "start_position": 7416, + "end_position": 7799, + "page_index": 2, + "word_count": 52, + "char_count": 383 + }, + "has_embedding": false + }, + { + "content": "t-based game (ALFWorld, Shridhar et al., 2020b), and webpage navigation (WebShop, Yao et al., 2022). For HotPotQA and Fever, with access to a Wikipedia API that the model can interact with, ReAct outperforms vanilla action generation models while being competitive with chain-ofthought reasoning (CoT) (Wei et al., 2022). The best approach overallis a combination of ReAct and CoT that allows for the use of both internal knowledge and externally obtained information during reasoning.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 19, + "chunk_id": "React_paper_chunk_0019", + "start_position": 7799, + "end_position": 8284, + "page_index": 2, + "word_count": 73, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "allows for the use of both internal knowledge and externally obtained information during reasoning. On ALFWorld and WebShop, two or even one-shot ReAct prompting is able to outperform imitation or reinforcement learning methods trained with $1 0 ^ { 3 } \\sim \\mathrm { { 1 0 ^ { 5 } } }$ task instances, with an absolute improvement of $34 \\%$ and $10 \\%$ in success rates respectively.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 20, + "chunk_id": "React_paper_chunk_0020", + "start_position": 8284, + "end_position": 8670, + "page_index": 2, + "word_count": 69, + "char_count": 386 + }, + "has_embedding": false + }, + { + "content": "$ task instances, with an absolute improvement of $34 \\%$ and $10 \\%$ in success rates respectively. We also demonstrate the importance of sparse, versatile reasoning in decision making by showing consistent advantages over controlled baselines with actions only.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 21, + "chunk_id": "React_paper_chunk_0021", + "start_position": 8670, + "end_position": 8933, + "page_index": 2, + "word_count": 39, + "char_count": 263 + }, + "has_embedding": false + }, + { + "content": "ing in decision making by showing consistent advantages over controlled baselines with actions only. Besides general applicability and performance boost, the combination of reasoning and acting also contributes to model interpretability, trustworthiness, and diagnosability across all domains, as humans can readily distinguish information from model's internal knowledge versus external environments, as well as inspect reasoning traces to understand the decision basis of model actions.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 22, + "chunk_id": "React_paper_chunk_0022", + "start_position": 8933, + "end_position": 9421, + "page_index": 2, + "word_count": 64, + "char_count": 488 + }, + "has_embedding": false + }, + { + "content": "environments, as well as inspect reasoning traces to understand the decision basis of model actions. To summarize, our key contributions are the following: (1) we introduce ReAct, a novel promptbased paradigm to synergize reasoning and acting in language models for general task solving; (2) we perform extensive experiments across diverse benchmarks to showcase the advantage of ReAct in a few-shot learning setup over prior approaches that perform either reasoning or action generation in isolation; (3) we present systematic ablations and analysis to understand the importance of acting in reasoning tasks, and reasoning in interactive tasks; (4) we analyze the limitations of ReAct under the prompting setup (i.e. limited support of reasoning and acting behaviors), and perform initial fi netuning experiments showing the potential of ReAct to improve with additional training data.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 23, + "chunk_id": "React_paper_chunk_0023", + "start_position": 9421, + "end_position": 10307, + "page_index": 2, + "word_count": 131, + "char_count": 886 + }, + "has_embedding": false + }, + { + "content": "ial fi netuning experiments showing the potential of ReAct to improve with additional training data. Scaling up ReAct to train and operate on more tasks and combining it with complementary paradigms like reinforcement learning could further unlock the potential of large language models. # 2 REAcT: SYNERGIZING REASONING $^ +$ ACTING Consider a general setup of an agent interacting with an environment for task solving.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 24, + "chunk_id": "React_paper_chunk_0024", + "start_position": 10307, + "end_position": 10727, + "page_index": 2, + "word_count": 65, + "char_count": 420 + }, + "has_embedding": false + }, + { + "content": "$^ +$ ACTING Consider a general setup of an agent interacting with an environment for task solving. At time step $t$ , an agent receives an observation $o _ { t } \\in \\mathcal { O }$ from the environment and takes an action $a _ { t } \\in { \\mathcal { A } }$ following some policy $\\pi ( a _ { t } | c _ { t } )$ , where $c _ { t } = \\left( o _ { 1 } , a _ { 1 } , \\cdot \\cdot \\cdot , o _ { t - 1 } , a _ { t - 1 } , o _ { t } \\right)$ is the context to the agent.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 25, + "chunk_id": "React_paper_chunk_0025", + "start_position": 10727, + "end_position": 11191, + "page_index": 2, + "word_count": 126, + "char_count": 464 + }, + "has_embedding": false + }, + { + "content": "\\cdot \\cdot \\cdot , o _ { t - 1 } , a _ { t - 1 } , o _ { t } \\right)$ is the context to the agent. Learning a policy is challenging when the mapping $c _ { t } \\mapsto a _ { t }$ is highly implicit and requires extensive computation. For example, the agent shown in Figure 1(lc) is unable to generate the correct final action (Act 4) to finish the QA task as it requires complex reasoning over the trajectory context (Question, Act 1-3, Obs 1-3).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 26, + "chunk_id": "React_paper_chunk_0026", + "start_position": 11191, + "end_position": 11638, + "page_index": 2, + "word_count": 95, + "char_count": 447 + }, + "has_embedding": false + }, + { + "content": "e QA task as it requires complex reasoning over the trajectory context (Question, Act 1-3, Obs 1-3). Similarly, the agent shown in Figure 1(2a) fails to comprehend from the context that sinkbasin 1 does not contain peppershaker 1, thus keep producing hallucinating actions. The idea of ReAct is simple: we augment the agent's action space to ${ \\hat { \\mathcal { A } } } = { \\mathcal { A } } \\cup { \\mathcal { L } }$ , where $\\mathcal { L }$ is the space of language.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 27, + "chunk_id": "React_paper_chunk_0027", + "start_position": 11638, + "end_position": 12105, + "page_index": 3, + "word_count": 90, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "} } = { \\mathcal { A } } \\cup { \\mathcal { L } }$ , where $\\mathcal { L }$ is the space of language. An action $\\hat { a } _ { t } \\in \\mathcal { L }$ in the language space, which we will refer to as a thought or a reasoning trace, does not affect the external environment, thus leading to no observation feedback.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 28, + "chunk_id": "React_paper_chunk_0028", + "start_position": 12105, + "end_position": 12419, + "page_index": 3, + "word_count": 70, + "char_count": 314 + }, + "has_embedding": false + }, + { + "content": "reasoning trace, does not affect the external environment, thus leading to no observation feedback. Instead, a thought $\\hat { a } _ { t }$ aims to compose useful information by reasoning over the current context $c _ { t }$ , and update the context $\\boldsymbol c _ { t + 1 } = \\left( c _ { t } , \\hat { a } _ { t } \\right)$ to support future reasoning or acting.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 29, + "chunk_id": "React_paper_chunk_0029", + "start_position": 12419, + "end_position": 12783, + "page_index": 3, + "word_count": 77, + "char_count": 364 + }, + "has_embedding": false + }, + { + "content": "_ { t + 1 } = \\left( c _ { t } , \\hat { a } _ { t } \\right)$ to support future reasoning or acting. As shown in Figure 1, there could be various types of useful thoughts, e.g. decomposing task goals and create action plans (2b, Act 1; 1d, Thought 1), injecting commonsense knowledge relevant to task solving (2b, Act 1), extracting important parts from observations (1d, Thought2, 4), track progress and transit action plans (2b, Act 8), handle exceptions and adjust action plans (1d, Thought 3), and so on.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 30, + "chunk_id": "React_paper_chunk_0030", + "start_position": 12783, + "end_position": 13290, + "page_index": 3, + "word_count": 95, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "nsit action plans (2b, Act 8), handle exceptions and adjust action plans (1d, Thought 3), and so on. However, as the language space $\\mathcal { L }$ is unlimited, learning in this augmented action space is difficult and requires strong language priors.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 31, + "chunk_id": "React_paper_chunk_0031", + "start_position": 13290, + "end_position": 13542, + "page_index": 3, + "word_count": 42, + "char_count": 252 + }, + "has_embedding": false + }, + { + "content": "unlimited, learning in this augmented action space is difficult and requires strong language priors. In this paper, we mainly focus on the setup where a frozen large language model, PaLM-540B (Chowdhery et al., 2022)1, is prompted with few-shot in-context examples to generate both domain-specifc actions and free-form language thoughts for task solving (Figure 1 (1d), (2b)).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 32, + "chunk_id": "React_paper_chunk_0032", + "start_position": 13542, + "end_position": 13918, + "page_index": 3, + "word_count": 56, + "char_count": 376 + }, + "has_embedding": false + }, + { + "content": "both domain-specifc actions and free-form language thoughts for task solving (Figure 1 (1d), (2b)). Each in-context example is a human trajectory of actions, thoughts, and environment observations to solve a task instance (see Appendix C). For the tasks where reasoning is of primary importance (Figure 1(1), we alternate the generation of thoughts and actions so that the task-solving trajectory consists of multiple thought-action-observation steps.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 33, + "chunk_id": "React_paper_chunk_0033", + "start_position": 13918, + "end_position": 14369, + "page_index": 3, + "word_count": 64, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "d actions so that the task-solving trajectory consists of multiple thought-action-observation steps. In contrast, for decision making tasks that potentially involve a large number of actions (Figure 1(2)), thoughts only need to appear sparsely in the most relevant positions of a trajectory, so we let the language model decide the asynchronous occurrence of thoughts and actions for itself.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 34, + "chunk_id": "React_paper_chunk_0034", + "start_position": 14369, + "end_position": 14760, + "page_index": 3, + "word_count": 58, + "char_count": 391 + }, + "has_embedding": false + }, + { + "content": "so we let the language model decide the asynchronous occurrence of thoughts and actions for itself. Since decision making and reasoning capabilities are integrated into a large language model, ReAct enjoys several unique features: A) Intuitive and easy to design: Designing ReAct prompts is straightforward as human annotators just type down their thoughts in language on top of their actions taken. No ad-hoc format choice, thought design, or example selection is used in this paper.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 35, + "chunk_id": "React_paper_chunk_0035", + "start_position": 14760, + "end_position": 15244, + "page_index": 3, + "word_count": 75, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "No ad-hoc format choice, thought design, or example selection is used in this paper. We detail prompt design for each task in Sections 3 and 4. B) General and flexible: Due to the flexible thought space and thought-action occurrence format, ReAct works for diverse tasks with distinct action spaces and reasoning needs, including but not limited to QA, fact verification, text game, and web navigation.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 36, + "chunk_id": "React_paper_chunk_0036", + "start_position": 15244, + "end_position": 15646, + "page_index": 3, + "word_count": 65, + "char_count": 402 + }, + "has_embedding": false + }, + { + "content": "reasoning needs, including but not limited to QA, fact verification, text game, and web navigation. C) Performant and robust: ReAct shows strong generalization to new task instances while learning solely from one to six in-context examples, consistently outperforming baselines with only reasoning or acting across different domains. We also show in Section 3 additional benefits when finetuning is enabled, and in Section 4 how ReAct performance is robust to prompt selections.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 37, + "chunk_id": "React_paper_chunk_0037", + "start_position": 15646, + "end_position": 16124, + "page_index": 4, + "word_count": 71, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "s when finetuning is enabled, and in Section 4 how ReAct performance is robust to prompt selections. D) Human aligned and controllable: ReAct promises an interpretable sequential decision making and reasoning process where humans can easily inspect reasoning and factual correctness. Moreover, humans can also control or correct the agent behavior on the go by thought editing, as shown in Figure 5 in Section 4. # 3 KNOWLEDGE-INTENSIVE REASONING TASKS", + "metadata": { + "source_file": "React_paper", + "chunk_index": 38, + "chunk_id": "React_paper_chunk_0038", + "start_position": 16124, + "end_position": 16576, + "page_index": 4, + "word_count": 70, + "char_count": 452 + }, + "has_embedding": false + }, + { + "content": "# 3 KNOWLEDGE-INTENSIVE REASONING TASKS We begin with knowledge-intensive reasoning tasks like multi-hop question answering and fact verification. As shown in Figure 1(1d), by interacting with a Wikipedia API, ReAct is able to retrieve information to support reasoning, while also use reasoning to target what to retrieve next, demonstrating a synergy of reasoning and acting. # 3.1 SETUP", + "metadata": { + "source_file": "React_paper", + "chunk_index": 39, + "chunk_id": "React_paper_chunk_0039", + "start_position": 16576, + "end_position": 16964, + "page_index": 4, + "word_count": 58, + "char_count": 388 + }, + "has_embedding": false + }, + { + "content": "# 3.1 SETUP Domains We consider two datasets challenging knowledge retrieval and reasoning: (1) HotPotQA (Yang et al., 2018), a multi-hop question answering benchmark that requires reasoning over two or more Wikipedia passages, and (2) FEVER (Thorne et al., 2018), a fact verification benchmark where each claim is annotated SUPPORTS, REFUTES, or NOT ENOUGH INFO, based on if there exists a Wikipedia passage to verify the claim.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 40, + "chunk_id": "React_paper_chunk_0040", + "start_position": 16964, + "end_position": 17393, + "page_index": 4, + "word_count": 67, + "char_count": 429 + }, + "has_embedding": false + }, + { + "content": "ORTS, REFUTES, or NOT ENOUGH INFO, based on if there exists a Wikipedia passage to verify the claim. In this work, we operate in a question-only setup for both tasks, where models only receive the question/claim as input without access to support paragraphs, and have to rely on their internal knowledge or retrieve knowledge via interacting with an external environment to support reasoning.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 41, + "chunk_id": "React_paper_chunk_0041", + "start_position": 17393, + "end_position": 17785, + "page_index": 4, + "word_count": 63, + "char_count": 392 + }, + "has_embedding": false + }, + { + "content": "l knowledge or retrieve knowledge via interacting with an external environment to support reasoning. Action Space We design a simple Wikipedia web API with three types of actions to support interactive information retrieval: (1) search[ent ity], which returns the first 5 sentences from the corresponding ent i ty wiki page if it exists, or else suggests top-5 similar entities from the Wikipedia search engine, (2) 1ookup[st ring], which would return the next sentence in the page containing st ring, simulating $\\mathrm { C t r l { + } F }$ functionality on the browser.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 42, + "chunk_id": "React_paper_chunk_0042", + "start_position": 17785, + "end_position": 18357, + "page_index": 4, + "word_count": 95, + "char_count": 572 + }, + "has_embedding": false + }, + { + "content": "the page containing st ring, simulating $\\mathrm { C t r l { + } F }$ functionality on the browser. (3) finish[an swer], which would finish the current task with an s wer. We note that this action space mostly can only retrieve a small part of a passage based on exact passage name, which is significantly weaker than state-of-theart lexical or neural retrievers. The purpose is to simulate how humans would interact with Wikipedia, and force models to retrieve via explicit reasoning in language. # 3.2 METHODS", + "metadata": { + "source_file": "React_paper", + "chunk_index": 43, + "chunk_id": "React_paper_chunk_0043", + "start_position": 18357, + "end_position": 18868, + "page_index": 4, + "word_count": 89, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "# 3.2 METHODS ReAct Prompting For HotpotQA and Fever, we randomly select 6 and 3 cases2 from the training set and manually compose ReAct-format trajectories to use as few-shot exemplars in the prompts. Similar to Figure 1(d), each trajectory consists of multiple thought-action-observation steps (i.e. dense thought), where free-form thoughts are used for various purposes.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 44, + "chunk_id": "React_paper_chunk_0044", + "start_position": 18868, + "end_position": 19241, + "page_index": 5, + "word_count": 55, + "char_count": 373 + }, + "has_embedding": false + }, + { + "content": "dense thought), where free-form thoughts are used for various purposes. Specifically, we use a combination of thoughts that decompose questions (\"I need to search x, fi nd y, then find $\\mathbf { Z } ^ { \\dag }$ ), extract information from Wikipedia observations ${ } ^ { 6 6 } \\mathbf { X }$ was started in $1 8 4 4 ^ { \\circ }$ , \"The paragraph does not tell x'\"), perform commonsense ( $\\mathbf { \\mu } ^ { 6 6 } \\mathbf { X }$ is not y, so z must instead be...\") or arithmetic reasoning ( $^ { } 1 8 4 4 < 1 9 8 9 ^ { \\cdots }$ ), guide search reformulation (\"maybe I can search/look up x instead'\"), and synthesize the final answer (\".so the answer is x\").", + "metadata": { + "source_file": "React_paper", + "chunk_index": 45, + "chunk_id": "React_paper_chunk_0045", + "start_position": 19241, + "end_position": 19902, + "page_index": 5, + "word_count": 138, + "char_count": 661 + }, + "has_embedding": false + }, + { + "content": "(\"maybe I can search/look up x instead'\"), and synthesize the final answer (\".so the answer is x\"). See Appendix C for more details. Table 1: PaLM-540B prompting results on HotpotQA and Fever.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 46, + "chunk_id": "React_paper_chunk_0046", + "start_position": 19902, + "end_position": 20094, + "page_index": 5, + "word_count": 32, + "char_count": 192 + }, + "has_embedding": false + }, + { + "content": "Table 1: PaLM-540B prompting results on HotpotQA and Fever.
Prompt MethodaHotEotOAFever
standard28.757.1
CoT (Wei et al., 22) CoT−SC (Wang et al, 2022a)29.4 33.456.3 60.4
Act25.758.9
ReAct CoT-SC→ReAct27.460.9
ReAct→CoT-SC34.2 35.164.6
Supervised SoTAb67.562.0 89.5
", + "metadata": { + "source_file": "React_paper", + "chunk_index": 47, + "chunk_id": "React_paper_chunk_0047", + "start_position": 20094, + "end_position": 20620, + "page_index": 5, + "word_count": 26, + "char_count": 526 + }, + "has_embedding": false + }, + { + "content": "35.164.6Supervised SoTAb67.562.0 89.5 HotpotQA EM is 27.1, 28.9, 33.8 for standard, CoT, CoT–SC in Wang et al. (2022b). b(Zhu et al., 2021; Lewis et al., 2020) [IMAGE]\nFigure 2: PaLM-540B prompting results with respect to number of CoT–sC samples used.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 48, + "chunk_id": "React_paper_chunk_0048", + "start_position": 20620, + "end_position": 20935, + "page_index": 5, + "word_count": 40, + "char_count": 315 + }, + "has_embedding": false + }, + { + "content": ", 2020) [IMAGE]\nFigure 2: PaLM-540B prompting results with respect to number of CoT–sC samples used. Baselines We systematically ablate ReAct trajectories to build prompts for multiple baselines (with formats as Figure 1(1la-1c): (a) Standard prompting (St anda rd), which removes al thoughts, actions, observations in ReAct trajectories. (b) Chain-of-thought prompting (CoT) (Wei et al., 2022), which removes actions and observations and serve as a reasoning-only baseline.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 49, + "chunk_id": "React_paper_chunk_0049", + "start_position": 20935, + "end_position": 21409, + "page_index": 5, + "word_count": 67, + "char_count": 474 + }, + "has_embedding": false + }, + { + "content": ") (Wei et al., 2022), which removes actions and observations and serve as a reasoning-only baseline. We also build a self-consistency baseline (CoT–sC) (Wang et al., 2022a;b) by sampling $2 1 \\thinspace \\mathrm { C o T }$ trajectories with decoding temperature 0.7 during inference and adopting the majority answer, which is found to consistently boost performance over CoT.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 50, + "chunk_id": "React_paper_chunk_0050", + "start_position": 21409, + "end_position": 21783, + "page_index": 5, + "word_count": 59, + "char_count": 374 + }, + "has_embedding": false + }, + { + "content": "ference and adopting the majority answer, which is found to consistently boost performance over CoT. (c) Acting-only prompt (Act), which removes thoughts in ReAct trajectories, loosely resembling how WebGPT (Nakano et al., 2021) interacts with the Internet to answer questions, though it operates on a different task and action space, and uses imitation and reinforcement learning instead of prompting.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 51, + "chunk_id": "React_paper_chunk_0051", + "start_position": 21783, + "end_position": 22185, + "page_index": 5, + "word_count": 59, + "char_count": 402 + }, + "has_embedding": false + }, + { + "content": "different task and action space, and uses imitation and reinforcement learning instead of prompting. Combining Internal and External Knowledge As will be detail in Section 3.3, we observe that the problem solving process demonstrated by ReAct is more factual and grounded, whereas CoT is more accurate in formulating reasoning structure but can easily suffer from hallucinated facts or thoughts.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 52, + "chunk_id": "React_paper_chunk_0052", + "start_position": 22185, + "end_position": 22580, + "page_index": 5, + "word_count": 59, + "char_count": 395 + }, + "has_embedding": false + }, + { + "content": "curate in formulating reasoning structure but can easily suffer from hallucinated facts or thoughts. We therefore propose to incorporate ReAct and CoT–sC, and let the model decide when to switch to the other method based on the following heuristics: A) $\\mathtt { R e A c t } \\to \\mathtt { C o T } \\mathtt { - } \\mathtt { S } \\mathtt { C }$ C: when ReAct fails to return an answer within given steps, back off to $\\mathsf { C o T - S C }$ .", + "metadata": { + "source_file": "React_paper", + "chunk_index": 53, + "chunk_id": "React_paper_chunk_0053", + "start_position": 22580, + "end_position": 23020, + "page_index": 6, + "word_count": 91, + "char_count": 440 + }, + "has_embedding": false + }, + { + "content": "C: when ReAct fails to return an answer within given steps, back off to $\\mathsf { C o T - S C }$ . We set 7 and 5 steps for HotpotQA and FEVER respectively as we find more steps will not improve ReAct performance3. B) CoT $- s \\mathtt { C } \\to \\mathtt { R e A c 1 }$ : when the majority answer among $n \\ C { \\circ { \\mathrm { T } } { - } { \\mathrm { S } } { \\mathrm { C } } }$ samples occurs less than $n / 2$ times (i.e. internal knowledge might not support the task confidently), back off to ReAct.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 54, + "chunk_id": "React_paper_chunk_0054", + "start_position": 23020, + "end_position": 23523, + "page_index": 6, + "word_count": 116, + "char_count": 503 + }, + "has_embedding": false + }, + { + "content": "internal knowledge might not support the task confidently), back off to ReAct. Finetuning Due to the challenge of manually annotating reasoning traces and actions at scale, we consider a bootstraping approach similar to Zelikman et al. (2022), using 3,000 trajectories with correct answers generated by ReAct (also for other baselines) to finetune smaller language models (PaLM-8/62B) to decode trajectories (all thoughts, actions, observations) conditioned on input questions/claims.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 55, + "chunk_id": "React_paper_chunk_0055", + "start_position": 23523, + "end_position": 24007, + "page_index": 6, + "word_count": 67, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "to decode trajectories (all thoughts, actions, observations) conditioned on input questions/claims. More details are in Appendix B.1. # 3.3 RESULTS AND OBSERVATIONS ReAct outperforms Act consistently Table 1 shows HotpotQA and Fever results using PaLM540B as the base model with different prompting methods. We note that ReAct is better than Act on both tasks, demonstrating the value of reasoning to guide acting, especially for synthesizing the final answer, as shown in Figure 1 (1c-d).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 56, + "chunk_id": "React_paper_chunk_0056", + "start_position": 24007, + "end_position": 24496, + "page_index": 6, + "word_count": 74, + "char_count": 489 + }, + "has_embedding": false + }, + { + "content": "easoning to guide acting, especially for synthesizing the final answer, as shown in Figure 1 (1c-d). Fine-tuning results 3 also confirm the benefit of reasoning traces for more informed acting. Table 2: Types of success and failure modes of ReAct and CoT on HotpotQA, as well as thein percentages in randomly selected examples studied by human.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 57, + "chunk_id": "React_paper_chunk_0057", + "start_position": 24496, + "end_position": 24840, + "page_index": 6, + "word_count": 56, + "char_count": 344 + }, + "has_embedding": false + }, + { + "content": "ct and CoT on HotpotQA, as well as thein percentages in randomly selected examples studied by human.
|TypeDefinitionReActCoT
Success94%86%
Trle possiveCorrec e ing ace and cts
FailureReasoning errorWrong reasoning trace (including failing to recover from repetitive steps)47%16%
Search result errorSearch return empty or does not contain useful information23%-
HallucinationHallucinated reasoning trace or facts0%56%
Label ambiguityRight prediction but did not match the label precisely29%28%
", + "metadata": { + "source_file": "React_paper", + "chunk_index": 58, + "chunk_id": "React_paper_chunk_0058", + "start_position": 24840, + "end_position": 25707, + "page_index": 6, + "word_count": 59, + "char_count": 867 + }, + "has_embedding": false + }, + { + "content": "Right prediction but did not match the label precisely29%28% ReAct vs. CoT On the other hand, ReAct outperforms CoT on Fever (60.9 vs. 56.3) and slightly lags behind CoT on HotpotQA (27.4 vs. 29.4). Fever claims for SUPPORTS/REFUTES might only differ by a slight amount (see Appendix D.1), so acting to retrieve accurate and up-to-date knowledge is vital.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 59, + "chunk_id": "React_paper_chunk_0059", + "start_position": 25707, + "end_position": 26102, + "page_index": 6, + "word_count": 58, + "char_count": 395 + }, + "has_embedding": false + }, + { + "content": "slight amount (see Appendix D.1), so acting to retrieve accurate and up-to-date knowledge is vital. To better understand the behavioral difference between ReAct and CoT on HotpotQA, we randomly sampled 50 trajectories with correct and incorrect answers (judged by EM) from ReAct and CoT respectively (thus 200 examples in total), and manually labeled their success and failure modes in Table 2. Some key observations are as follows:", + "metadata": { + "source_file": "React_paper", + "chunk_index": 60, + "chunk_id": "React_paper_chunk_0060", + "start_position": 26102, + "end_position": 26534, + "page_index": 6, + "word_count": 67, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "Some key observations are as follows: A) Hallucination is a serious problem for CoT, resulting in much higher false positive rate than ReAct $14 \\%$ Vs. $6 \\%$ ) in success mode, and make up its major failure mode $( 5 6 \\% )$ . In contrast, the problem solving trajectory of ReActis more grounded, fact-driven, and trustworthy, thanks to the access of an external knowledge base.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 61, + "chunk_id": "React_paper_chunk_0061", + "start_position": 26534, + "end_position": 26914, + "page_index": 7, + "word_count": 67, + "char_count": 380 + }, + "has_embedding": false + }, + { + "content": "tis more grounded, fact-driven, and trustworthy, thanks to the access of an external knowledge base. B) While interleaving reasoning, action and observation steps improves ReAct's groundedness and trustworthiness, such a structural constraint also reduces its flexibility in formulating reasoning steps, leading to more reasoning error rate than CoT.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 62, + "chunk_id": "React_paper_chunk_0062", + "start_position": 26914, + "end_position": 27264, + "page_index": 7, + "word_count": 48, + "char_count": 350 + }, + "has_embedding": false + }, + { + "content": "duces its flexibility in formulating reasoning steps, leading to more reasoning error rate than CoT. we note that there is one frequent error pattern specific to ReAct, in which the model repetitively generates the previous thoughts and actions, and we categorize it as part of \"reasoning error'” as the model fails to reason about what the proper next action to take and jump out of the $\\mathrm { l o o p ^ { 4 } }$ . C) For ReAct, successfully retrieving informative knowledge via search is critical.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 63, + "chunk_id": "React_paper_chunk_0063", + "start_position": 27264, + "end_position": 27767, + "page_index": 7, + "word_count": 89, + "char_count": 503 + }, + "has_embedding": false + }, + { + "content": "C) For ReAct, successfully retrieving informative knowledge via search is critical. Noninformative search, which counts for $23 \\%$ of the error cases, derails the model reasoning and gives it a hard time to recover and reformulate thoughts. This is perhaps an expected trade-off between factuality and flexibility, which motivates our proposed strategies of combining two methods. We provide examples for each success and failure modes in Appendix E.1.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 64, + "chunk_id": "React_paper_chunk_0064", + "start_position": 27767, + "end_position": 28220, + "page_index": 7, + "word_count": 68, + "char_count": 453 + }, + "has_embedding": false + }, + { + "content": "We provide examples for each success and failure modes in Appendix E.1. We also find some HotpotQA questions may contain outdated answer labels, see Figure 4 for example. ReAct $^ +$ coT-SC perform best for prompting LLMs Also shown in Table 1, the best prompting method on HotpotQA and Fever are ReAct $ \\subset \\mathrm { o T } - S \\subset$ and $\\mathtt { C o T - S C } \\to \\mathtt { R e A c t }$ respectively.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 65, + "chunk_id": "React_paper_chunk_0065", + "start_position": 28220, + "end_position": 28631, + "page_index": 7, + "word_count": 82, + "char_count": 411 + }, + "has_embedding": false + }, + { + "content": "t \\mathrm { o T } - S \\subset$ and $\\mathtt { C o T - S C } \\to \\mathtt { R e A c t }$ respectively. Furthermore, Figure 2 shows how different methods perform with respect to the number of $\\mathsf { C o T - S C }$ samples used.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 66, + "chunk_id": "React_paper_chunk_0066", + "start_position": 28631, + "end_position": 28859, + "page_index": 7, + "word_count": 54, + "char_count": 228 + }, + "has_embedding": false + }, + { + "content": "how different methods perform with respect to the number of $\\mathsf { C o T - S C }$ samples used. While two $\\mathrm { R e a c t } + \\mathrm { C o T } - \\mathrm { S C }$ methods are advantageous at one task each, they both significantly and consistently outperform CoT–sC across different number of samples, reaching $\\mathsf { C o T - S C }$ performance with 21 samples using merely 3-5 samples.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 67, + "chunk_id": "React_paper_chunk_0067", + "start_position": 28859, + "end_position": 29257, + "page_index": 7, + "word_count": 81, + "char_count": 398 + }, + "has_embedding": false + }, + { + "content": "of samples, reaching $\\mathsf { C o T - S C }$ performance with 21 samples using merely 3-5 samples. These results indicate the value of properly combining model internal knowledge and external knowledge for reasoning tasks. ReAct performs best for fine-tuning Figure 3 shows the scaling effect of prompting/finetuning four methods (St andard, CoT, Act, ReAct) on HotpotQA.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 68, + "chunk_id": "React_paper_chunk_0068", + "start_position": 29257, + "end_position": 29630, + "page_index": 7, + "word_count": 59, + "char_count": 373 + }, + "has_embedding": false + }, + { + "content": "ws the scaling effect of prompting/finetuning four methods (St andard, CoT, Act, ReAct) on HotpotQA. With PaLM-8/62B, prompting ReAct performs worst among four methods due to the diff culty to learn both reasoning and acting from in-context examples. However, when finetuned with just 3,000 examples, ReAct becomes the best method among the four, with PaLM-8B finetuned ReAct outperforming all PaLM-62B prompting methods, and PaLM-62B finetuned ReAct outperforming all 540B prompting methods.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 69, + "chunk_id": "React_paper_chunk_0069", + "start_position": 29630, + "end_position": 30122, + "page_index": 7, + "word_count": 71, + "char_count": 492 + }, + "has_embedding": false + }, + { + "content": "l PaLM-62B prompting methods, and PaLM-62B finetuned ReAct outperforming all 540B prompting methods. In contrast, finetuning St andard or CoT is significantly worse than finetuning ReAct or Act for both PaLM8/62B, as the former essentially teaches models to memorize (potentially halluincated) knowledge facts, and the latter teaches models how to (reason and) act to access information from Wikipedia, a more generalizable skill for knowledge reasoning.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 70, + "chunk_id": "React_paper_chunk_0070", + "start_position": 30122, + "end_position": 30576, + "page_index": 8, + "word_count": 65, + "char_count": 454 + }, + "has_embedding": false + }, + { + "content": "n and) act to access information from Wikipedia, a more generalizable skill for knowledge reasoning. As all prompting methods are still significantly far from domain-specific state-of-the-art approaches (Table 1), we believe finetuning with more human-written data might be a better way to unleash the power of ReAct . [IMAGE]\nFigure 3: Scaling results for prompting and finetuning on HotPotQA with ReAct (ours) and baselines. # 4 DECISION MAKING TAsKS", + "metadata": { + "source_file": "React_paper", + "chunk_index": 71, + "chunk_id": "React_paper_chunk_0071", + "start_position": 30576, + "end_position": 31028, + "page_index": 8, + "word_count": 69, + "char_count": 452 + }, + "has_embedding": false + }, + { + "content": "# 4 DECISION MAKING TAsKS We also test ReAct on two language-based interactive decision-making tasks, ALFWorld and WebShop, both of which feature complex environments that require agents to act over long horizons with sparse rewards, warranting the need for reasoning to act and explore effectively. ALFWorld ALFWorld (Shridhar et al., 2020b) (Figure 1(2) is a synthetic text-based game designed to align with the embodied ALFRED benchmark (Shridhar et al., 2020a).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 72, + "chunk_id": "React_paper_chunk_0072", + "start_position": 31028, + "end_position": 31493, + "page_index": 8, + "word_count": 70, + "char_count": 465 + }, + "has_embedding": false + }, + { + "content": "hetic text-based game designed to align with the embodied ALFRED benchmark (Shridhar et al., 2020a). It includes 6 types of tasks in which an agent needs to achieve a high-level goal (e.g. examine paper under desklamp) by navigating and interacting with a simulated household via text actions (e.g. go to coffeetable 1, take paper 2, use desklamp 1).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 73, + "chunk_id": "React_paper_chunk_0073", + "start_position": 31493, + "end_position": 31843, + "page_index": 8, + "word_count": 58, + "char_count": 350 + }, + "has_embedding": false + }, + { + "content": "go to coffeetable 1, take paper 2, use desklamp 1). A task instance can have more than 50 locations and take an expert policy more than 50 steps to solve, thus challenging an agent to plan and track subgoals, as well as explore systematically (e.g. check all desks one by one for desklamp).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 74, + "chunk_id": "React_paper_chunk_0074", + "start_position": 31843, + "end_position": 32133, + "page_index": 8, + "word_count": 53, + "char_count": 290 + }, + "has_embedding": false + }, + { + "content": "check all desks one by one for desklamp). In particular, one challenge built into ALFWorld is the need to determine likely locations for common household items (e.g. desklamps will likely be on desks, shelfs, or dressers), making this environment a good fit for LLMs to exploit their pretrained commonsense knowledge.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 75, + "chunk_id": "React_paper_chunk_0075", + "start_position": 32133, + "end_position": 32450, + "page_index": 8, + "word_count": 50, + "char_count": 317 + }, + "has_embedding": false + }, + { + "content": "ers), making this environment a good fit for LLMs to exploit their pretrained commonsense knowledge. To prompt ReAct, we randomly annotate three trajectories from the training set for each task type, where each trajectory includes sparse thoughts that (1) decompose the goal, (2) track subgoal completion, (3) determine the next subgoal, and (4) reason via commonsense where to find an object and what to do with it. We show prompts used for ALFWorld in Appendix C.4.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 76, + "chunk_id": "React_paper_chunk_0076", + "start_position": 32450, + "end_position": 32917, + "page_index": 8, + "word_count": 76, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "We show prompts used for ALFWorld in Appendix C.4. Following Shridhar et al. (2020b), we evaluate on 134 unseen evaluation games in a task-specific setup. For robustness, we construct 6 prompts for each task type through each permutation of 2 annotated trajectories from the 3 we annotate.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 77, + "chunk_id": "React_paper_chunk_0077", + "start_position": 32917, + "end_position": 33206, + "page_index": 8, + "word_count": 47, + "char_count": 289 + }, + "has_embedding": false + }, + { + "content": "mpts for each task type through each permutation of 2 annotated trajectories from the 3 we annotate. Act prompts are constructed using the same trajectories, but without thoughts — since task instances are randomly chosen from the training set, it favors neither ReAct nor Act and provides a fair and controlled comparison to test the importance of sparse thoughts.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 78, + "chunk_id": "React_paper_chunk_0078", + "start_position": 33206, + "end_position": 33571, + "page_index": 8, + "word_count": 59, + "char_count": 365 + }, + "has_embedding": false + }, + { + "content": "Act nor Act and provides a fair and controlled comparison to test the importance of sparse thoughts. For baselines, we use BUTLER (Shridhar et al., 2020b), an imitation learning agent trained on $\\mathrm { \\bar { 1 0 ^ { 5 } } }$ expert trajectories for each task type5. WebShop Can ReAct also interact with noisy real-world language environments for practical applications?", + "metadata": { + "source_file": "React_paper", + "chunk_index": 79, + "chunk_id": "React_paper_chunk_0079", + "start_position": 33571, + "end_position": 33945, + "page_index": 8, + "word_count": 63, + "char_count": 374 + }, + "has_embedding": false + }, + { + "content": "Shop Can ReAct also interact with noisy real-world language environments for practical applications? We investigate WebShop (Yao et al., 2022), a recently proposed online shopping website environment with 1.18M real-world products and 12k human instructions.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 80, + "chunk_id": "React_paper_chunk_0080", + "start_position": 33945, + "end_position": 34203, + "page_index": 8, + "word_count": 35, + "char_count": 258 + }, + "has_embedding": false + }, + { + "content": "posed online shopping website environment with 1.18M real-world products and 12k human instructions. Unlike ALFWorld, Webshop contains a high variety of structured and unstructured texts (e.g. product titles, descriptions, and options crawled from Amazon), and requires an agent to purchase a product based on a user instruction (e.g.\"I am looking for a nightstand with drawers.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 81, + "chunk_id": "React_paper_chunk_0081", + "start_position": 34203, + "end_position": 34581, + "page_index": 8, + "word_count": 55, + "char_count": 378 + }, + "has_embedding": false + }, + { + "content": "to purchase a product based on a user instruction (e.g.\"I am looking for a nightstand with drawers. It should have a nickel finish, and priced lower than $\\$ 140$ ) through web interactions (e.g. search \"nightstand drawers\", choose buttons such as \"color: modern-nickel-white'\"' or “back to search'\").", + "metadata": { + "source_file": "React_paper", + "chunk_index": 82, + "chunk_id": "React_paper_chunk_0082", + "start_position": 34581, + "end_position": 34882, + "page_index": 8, + "word_count": 47, + "char_count": 301 + }, + "has_embedding": false + }, + { + "content": "h \"nightstand drawers\", choose buttons such as \"color: modern-nickel-white'\"' or “back to search'\"). This task is evaluated by average score (percentage of desired atributes covered by the chosen product averaged across all episodes) and success rate (percentage of episodes where the chosen product satisfies all requirements) on 500 test instructions.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 83, + "chunk_id": "React_paper_chunk_0083", + "start_position": 34882, + "end_position": 35235, + "page_index": 8, + "word_count": 50, + "char_count": 353 + }, + "has_embedding": false + }, + { + "content": "ercentage of episodes where the chosen product satisfies all requirements) on 500 test instructions. We formulate Act prompts with actions to search, choose product, choose options, and buy, with ReAct prompts additionally reasoning to determine what to explore, when to buy, and what products options are relevant to the instruction. See Table 6 for an example prompt, and Table 10 for model predictions in the Appendix.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 84, + "chunk_id": "React_paper_chunk_0084", + "start_position": 35235, + "end_position": 35656, + "page_index": 9, + "word_count": 66, + "char_count": 421 + }, + "has_embedding": false + }, + { + "content": "See Table 6 for an example prompt, and Table 10 for model predictions in the Appendix. We compare to an imitation learning (IL) method trained with 1,012 human annotated trajectories, and a imitation $^ +$ reinforcement learning $( \\mathrm { I L } + \\mathrm { R L } )$ method additionally trained with 10,587 training instructions.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 85, + "chunk_id": "React_paper_chunk_0085", + "start_position": 35656, + "end_position": 35987, + "page_index": 9, + "word_count": 57, + "char_count": 331 + }, + "has_embedding": false + }, + { + "content": "\\mathrm { I L } + \\mathrm { R L } )$ method additionally trained with 10,587 training instructions.
MethodScoreSR
Act ReAct62.3 66.630.1 40.0
IL59.929.1
IL+RL62.428.7
Human Expert82.159.6
Table 3: AlfWorld task-specific success rates $( \\% )$ .", + "metadata": { + "source_file": "React_paper", + "chunk_index": 86, + "chunk_id": "React_paper_chunk_0086", + "start_position": 35987, + "end_position": 36422, + "page_index": 9, + "word_count": 34, + "char_count": 435 + }, + "has_embedding": false + }, + { + "content": "/td>82.159.6 Table 3: AlfWorld task-specific success rates $( \\% )$ . BUTLER and ${ \\bf B U T L E R } _ { g }$ results are from Table 4 of Shridhar et al. (2020b). All methods use greedy decoding, except that BUTLER uses beam search.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 87, + "chunk_id": "React_paper_chunk_0087", + "start_position": 36422, + "end_position": 36686, + "page_index": 9, + "word_count": 47, + "char_count": 264 + }, + "has_embedding": false + }, + { + "content": "All methods use greedy decoding, except that BUTLER uses beam search.
MethodPickCleanHeatCoolLookPick2All
ACt (best of 6))88427467724145
ReAct (avg)65398376552457
ReAct (besto 6)92589686784171
ReAct −IM (avg)55596055232448
ReAct −IM (best of 6)62688757393353
BUTLER (cest f 8)33267076171222
BUTLER (best of 8))463974100222437
", + "metadata": { + "source_file": "React_paper", + "chunk_index": 88, + "chunk_id": "React_paper_chunk_0088", + "start_position": 36686, + "end_position": 37667, + "page_index": 9, + "word_count": 30, + "char_count": 981 + }, + "has_embedding": false + }, + { + "content": "8))463974100222437 Table 4: Score and success rate (SR) on Webshop. $\\mathrm { I L / I L + R L }$ taken from Yao et al. (2022). Results ReAct outperforms Act on both ALFWorld (Table 3) and Webshop (Table 4). On ALFWorld, the best ReAct trial achieves an average success rate of $71 \\%$ , signifi cantly outperforming the best Act $( 4 5 \\% )$ and BUTLER $( 3 7 \\% )$ trials.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 89, + "chunk_id": "React_paper_chunk_0089", + "start_position": 37667, + "end_position": 38122, + "page_index": 9, + "word_count": 74, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "of $71 \\%$ , signifi cantly outperforming the best Act $( 4 5 \\% )$ and BUTLER $( 3 7 \\% )$ trials. In fact, even the worse ReAct trial $(48 \\% )$ beats the best trial of both methods. Moreover, the advantage of $_ { \\mathrm { R e A c t } }$ over Act is consistent across six controlled trials, with relative performance gain ranging from $33 \\%$ to $90 \\%$ and averaging $62 \\%$ .", + "metadata": { + "source_file": "React_paper", + "chunk_index": 90, + "chunk_id": "React_paper_chunk_0090", + "start_position": 38122, + "end_position": 38503, + "page_index": 9, + "word_count": 79, + "char_count": 381 + }, + "has_embedding": false + }, + { + "content": "olled trials, with relative performance gain ranging from $33 \\%$ to $90 \\%$ and averaging $62 \\%$ . Qualitatively, we saw that, without any thoughts at all, Act fails to correctly decompose goals into smaller subgoals, or loses track of the current state of the environment. Example trajectories comparing ReAct and Act can be found in Appendix D.2.1 and Appendix D.2.2. On Webshop, one-shot Act prompting already performs on par with IL and $\\mathrm { I L + R L }$ methods.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 91, + "chunk_id": "React_paper_chunk_0091", + "start_position": 38503, + "end_position": 38978, + "page_index": 10, + "word_count": 82, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": "Webshop, one-shot Act prompting already performs on par with IL and $\\mathrm { I L + R L }$ methods. With additional sparse reasoning, ReAct achieves significantly better performance, with an absolute $10 \\%$ improvement over the previous best success rate.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 92, + "chunk_id": "React_paper_chunk_0092", + "start_position": 38978, + "end_position": 39235, + "page_index": 10, + "word_count": 41, + "char_count": 257 + }, + "has_embedding": false + }, + { + "content": "cantly better performance, with an absolute $10 \\%$ improvement over the previous best success rate. By checking examples, we find that ReAct is more likely to identify instruction-relevant products and options by reasoning to bridge the gap between noisy observations and actions (e.g. \"For 'space-saving ottoman bench for living room', the item has options '39x18x18inch' and blue' and seems good to buy.\").", + "metadata": { + "source_file": "React_paper", + "chunk_index": 93, + "chunk_id": "React_paper_chunk_0093", + "start_position": 39235, + "end_position": 39644, + "page_index": 10, + "word_count": 62, + "char_count": 409 + }, + "has_embedding": false + }, + { + "content": "oman bench for living room', the item has options '39x18x18inch' and blue' and seems good to buy.\"). However, existing methods are still far from the performance of expert humans (Table 4), who perform significantly more product explorations and query re-formulations that are stil challenging for prompting-based methods.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 94, + "chunk_id": "React_paper_chunk_0094", + "start_position": 39644, + "end_position": 39966, + "page_index": 10, + "word_count": 47, + "char_count": 322 + }, + "has_embedding": false + }, + { + "content": "roduct explorations and query re-formulations that are stil challenging for prompting-based methods. On the value of internal reasoning vs. external feedback To our knowledge, ReAct is the first demonstration of combined reasoning and action using an LLM applied to an interactive environment within a closed-loop system. Perhaps the closest prior work is Inner Monologue (IM), from Huang et al. (2022b), in which actions from an embodied agent are motivated by an eponymous \"'inner monologue\".", + "metadata": { + "source_file": "React_paper", + "chunk_index": 95, + "chunk_id": "React_paper_chunk_0095", + "start_position": 39966, + "end_position": 40460, + "page_index": 10, + "word_count": 74, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": ". (2022b), in which actions from an embodied agent are motivated by an eponymous \"'inner monologue\". However, IM's \"inner monologue\" is limited to observations of the environment state and what needs to be completed by the agent for the goal to be satisfied. In contrast, the reasoning traces in ReAct for decision making is flexible and sparse, allowing diverse reasoning types (see Section 2) to be induced for different tasks.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 96, + "chunk_id": "React_paper_chunk_0096", + "start_position": 40460, + "end_position": 40889, + "page_index": 10, + "word_count": 70, + "char_count": 429 + }, + "has_embedding": false + }, + { + "content": "ible and sparse, allowing diverse reasoning types (see Section 2) to be induced for different tasks. To demonstrate the differences between ReAct and IM, and to highlight the importance of internal reasoning vs. simple reactions to external feedback, we ran an ablation experiment using a thought pattern composed of IM-like dense external feedback.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 97, + "chunk_id": "React_paper_chunk_0097", + "start_position": 40889, + "end_position": 41238, + "page_index": 10, + "word_count": 53, + "char_count": 349 + }, + "has_embedding": false + }, + { + "content": ", we ran an ablation experiment using a thought pattern composed of IM-like dense external feedback. As can be seen in Table 3, ReAct substantially outperforms IM-style prompting (ReAct –IM) (71 vs. 53 overall success rate), with consistent advantages on five out of six tasks. Qualitatively, we observed that ReAct – IM often made mistakes in identifying when subgoals were finished, or what the next subgoal should be, due to a lack of highlevel goal decomposition.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 98, + "chunk_id": "React_paper_chunk_0098", + "start_position": 41238, + "end_position": 41705, + "page_index": 10, + "word_count": 76, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "ls were finished, or what the next subgoal should be, due to a lack of highlevel goal decomposition. Additionally, many ReAct – IM trajectories struggled to determine where an item would likely be within the ALFWorld environment, due to a lack of commonsense reasoning. Both shortcomings can be addressed in the ReAct paradigm. More details about ReAct -IM is in Appendix B.2. An example prompt for ReAct – IM can be found in Appendix C.4, and an example trajectory in Appendix D.2.3. # 5 RELATED WORK", + "metadata": { + "source_file": "React_paper", + "chunk_index": 99, + "chunk_id": "React_paper_chunk_0099", + "start_position": 41705, + "end_position": 42206, + "page_index": 10, + "word_count": 86, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "# 5 RELATED WORK Language model for reasoning Perhaps the most well-known work of using LLMs for reasoning is Chain-of-Thought (CoT) (Wei et al., 2022), which reveals the ability of LLMs to formulate their own \"thinking procedure\" for problem solving. Several follow-up works have since been performed, including least-to-most prompting for solving complicated tasks (Zhou et al., 2022), zero-shotCoT (Kojima et al., 2022), and reasoning with self-consistency (Wang et al., 2022a).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 100, + "chunk_id": "React_paper_chunk_0100", + "start_position": 42206, + "end_position": 42687, + "page_index": 11, + "word_count": 71, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "2022), zero-shotCoT (Kojima et al., 2022), and reasoning with self-consistency (Wang et al., 2022a). Recently, (Madaan & Yazdanbakhsh, 2022) systematically studied the formulation and structure of CoT, and observed that the presence of symbols, patterns and texts is crucial to the effectiveness of CoT. Other work has also been extended to more sophisticated reasoning architecture beyond simple prompting.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 101, + "chunk_id": "React_paper_chunk_0101", + "start_position": 42687, + "end_position": 43094, + "page_index": 11, + "word_count": 58, + "char_count": 407 + }, + "has_embedding": false + }, + { + "content": "er work has also been extended to more sophisticated reasoning architecture beyond simple prompting. For example Selection-Inference (Creswell et al., 2022) divides the reasoning process into two steps of “selection\" and \"inference\". STaR (Zelikman et al., 2022) bootstraps the reasoning process by finetuning the model on correct rationales generated by the model itself.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 102, + "chunk_id": "React_paper_chunk_0102", + "start_position": 43094, + "end_position": 43466, + "page_index": 11, + "word_count": 53, + "char_count": 372 + }, + "has_embedding": false + }, + { + "content": "s the reasoning process by finetuning the model on correct rationales generated by the model itself. Faithful reasoning (Creswell & Shanahan, 2022) decomposes multi-step reasoning into three steps, each performed by a dedicated LM respectively. Similar approaches like Scratchpad (Nye et al., 2021), which finetunes a LM on intermediate computation steps, also demonstrate improvement on multi-step computation problems.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 103, + "chunk_id": "React_paper_chunk_0103", + "start_position": 43466, + "end_position": 43886, + "page_index": 11, + "word_count": 58, + "char_count": 420 + }, + "has_embedding": false + }, + { + "content": "on intermediate computation steps, also demonstrate improvement on multi-step computation problems. In contrast to these methods, ReAct performs more than just isolated, fixed reasoning, and integrates model actions and their corresponding observations into a coherent stream of inputs for the model to reason more accurately and tackle tasks beyond reasoning (e.g. interactive decision making).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 104, + "chunk_id": "React_paper_chunk_0104", + "start_position": 43886, + "end_position": 44281, + "page_index": 11, + "word_count": 54, + "char_count": 395 + }, + "has_embedding": false + }, + { + "content": "interactive decision making). Language model for decision making The strong capability of LLMs has enabled them to perform tasks beyond language generation, and it is becoming more popular to take advantage of LLMs as a policy model for decision making, especially in interactive environments. WebGPT (Nakano et al., 2021) uses an LM to interact with web browsers, navigate through web pages, and infer answers to complicated questions from ELI5 (Fan et al., 2019).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 105, + "chunk_id": "React_paper_chunk_0105", + "start_position": 44281, + "end_position": 44746, + "page_index": 11, + "word_count": 73, + "char_count": 465 + }, + "has_embedding": false + }, + { + "content": "navigate through web pages, and infer answers to complicated questions from ELI5 (Fan et al., 2019). In comparison to ReAct, WebGPT does not explicitly model the thinking and reasoning procedure, instead rely on expensive human feedback for reinforcement learning. In conversation modeling, chatbots like BlenderBot (Shuster et al., 2022b) and Sparrow (Glaese et al., 2022) and task-oriented dialogue systems like SimpleTOD (Hosseini-Asl et al., 2020) also train LMs to make decision about API calls.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 106, + "chunk_id": "React_paper_chunk_0106", + "start_position": 44746, + "end_position": 45246, + "page_index": 11, + "word_count": 74, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "systems like SimpleTOD (Hosseini-Asl et al., 2020) also train LMs to make decision about API calls. Unlike ReAct, they do not explicitly consider the reasoning procedure either, and also relies on expensive datasets and human feedback collections for policy learning. In contrast, ReAct learns a policy in a much cheaper way, since the decision making process only requires language description of the reasoning procedure.6", + "metadata": { + "source_file": "React_paper", + "chunk_index": 107, + "chunk_id": "React_paper_chunk_0107", + "start_position": 45246, + "end_position": 45669, + "page_index": 11, + "word_count": 64, + "char_count": 423 + }, + "has_embedding": false + }, + { + "content": "y, since the decision making process only requires language description of the reasoning procedure.6 LLMS have also been increasingly employed in interactive and embodied environments for planning and decision making. Perhaps most relevant to ReAct in this respect are SayCan (Ahn et al., 2022) and Inner Monologue (Huang et al., 2022b), which use LLMs for robotic action planning and decision making.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 108, + "chunk_id": "React_paper_chunk_0108", + "start_position": 45669, + "end_position": 46070, + "page_index": 11, + "word_count": 61, + "char_count": 401 + }, + "has_embedding": false + }, + { + "content": "ner Monologue (Huang et al., 2022b), which use LLMs for robotic action planning and decision making. In SayCan, LLMs were prompted to directly predict possible actions a robot can take, which is then reranked by an affordance model grounded on the visual environments for final prediction. Inner Monologue made further improvements by adding the eponymous \"'inner monologue'\", which is implemented as injected feedback from the environment.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 109, + "chunk_id": "React_paper_chunk_0109", + "start_position": 46070, + "end_position": 46510, + "page_index": 12, + "word_count": 66, + "char_count": 440 + }, + "has_embedding": false + }, + { + "content": "g the eponymous \"'inner monologue'\", which is implemented as injected feedback from the environment. To our knowledge, Inner Monologue is the first work that demonstrates such a closed-loop system, which ReAct builds on. However, we argue that Inner Monologue does not truly comprise of inner thoughts — this is elaborated in Section 4.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 110, + "chunk_id": "React_paper_chunk_0110", + "start_position": 46510, + "end_position": 46846, + "page_index": 12, + "word_count": 53, + "char_count": 336 + }, + "has_embedding": false + }, + { + "content": "ue that Inner Monologue does not truly comprise of inner thoughts — this is elaborated in Section 4. We also note that leveraging language as semantically-rich inputs in the process of interactive decision making has been shown to be successful under other settings (Abramson et al., 2020; Karamcheti et al., 2021; Huang et al., 2022a; Li et al., 2022).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 111, + "chunk_id": "React_paper_chunk_0111", + "start_position": 46846, + "end_position": 47199, + "page_index": 12, + "word_count": 59, + "char_count": 353 + }, + "has_embedding": false + }, + { + "content": "her settings (Abramson et al., 2020; Karamcheti et al., 2021; Huang et al., 2022a; Li et al., 2022). It is becoming more evident that with the help of LLMs, language as a fundamental cognitive mechanism wil play a critical role in interaction and decision making. What is more, progress in LLMs has also inspired the development of versatile and generalist agents like Reed et al. (2022). # 6 CONCLUSION", + "metadata": { + "source_file": "React_paper", + "chunk_index": 112, + "chunk_id": "React_paper_chunk_0112", + "start_position": 47199, + "end_position": 47602, + "page_index": 13, + "word_count": 69, + "char_count": 403 + }, + "has_embedding": false + }, + { + "content": "# 6 CONCLUSION We have proposed ReAct – a simple yet effective method for synergizing reasoning and acting in large language models. Through a diverse set of experiments on multi-hop question-answering, fact checking, and interactive decision-making tasks, we show that ReAct leads to superior performance with interpretable decision traces.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 113, + "chunk_id": "React_paper_chunk_0113", + "start_position": 47602, + "end_position": 47943, + "page_index": 13, + "word_count": 49, + "char_count": 341 + }, + "has_embedding": false + }, + { + "content": "n-making tasks, we show that ReAct leads to superior performance with interpretable decision traces. Despite the simplicity of our method, complex tasks with large action spaces require more demonstrations to learn well, which unfortunately can easily go beyond the input length limit of in-context learning. We explore the fine-tuning approach on HotpotQA with initial promising results, but learning from more high-quality human annotations wil be the desiderata to further improve the performance.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 114, + "chunk_id": "React_paper_chunk_0114", + "start_position": 47943, + "end_position": 48443, + "page_index": 13, + "word_count": 72, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "g from more high-quality human annotations wil be the desiderata to further improve the performance. Scaling up ReAct with multi-task training and combining it with complementary paradigms ike reinforcement learning could result in stronger agents that further unlock the potential of LLMs for more applications. # ACKNOWLEDGMENTS We thank the support and feedback of many people from Google Brain team and Princeton NLP Group. This work was supported in part by the National Science Foundation under Grant No.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 115, + "chunk_id": "React_paper_chunk_0115", + "start_position": 48443, + "end_position": 48953, + "page_index": 13, + "word_count": 78, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "This work was supported in part by the National Science Foundation under Grant No. 2107048. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation. # REPRODUCIBILITY STATEMENT Our main experiments are done on PaLM (Chowdhery et al., 2022), which is not an openly accessible model yet.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 116, + "chunk_id": "React_paper_chunk_0116", + "start_position": 48953, + "end_position": 49371, + "page_index": 13, + "word_count": 65, + "char_count": 418 + }, + "has_embedding": false + }, + { + "content": "experiments are done on PaLM (Chowdhery et al., 2022), which is not an openly accessible model yet. To increase reproducibility, we have included all used prompts in Appendix C, aditional experiments using GPT-3 (Brown et al., 2020) in Appendix A.1, and associated GPT-3 ReAct prompting code at https://anonymous .4open.science/r/ReAct-2268/. # ETHICS STATEMENT", + "metadata": { + "source_file": "React_paper", + "chunk_index": 117, + "chunk_id": "React_paper_chunk_0117", + "start_position": 49371, + "end_position": 49732, + "page_index": 13, + "word_count": 52, + "char_count": 361 + }, + "has_embedding": false + }, + { + "content": "# ETHICS STATEMENT ReAct prompts large language models to generate more human interpretable, diagnosable, and controllable task-solving trajectories than previous methods. However, hooking up a large language model with an action space to interact with external environments (e.g. the web, physical environments) has potential dangers, e.g. looking up inappropriate or private information, or taking harmful actions in an environment.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 118, + "chunk_id": "React_paper_chunk_0118", + "start_position": 49732, + "end_position": 50166, + "page_index": 13, + "word_count": 59, + "char_count": 434 + }, + "has_embedding": false + }, + { + "content": "looking up inappropriate or private information, or taking harmful actions in an environment. Our experiments minimize such risks by limiting the interactions to specific websites (Wikipedia or WebShop) that are free of private information, without any dangerous actions in the action space design (i.e. models cannot really buy products on WebShop the research benchmark, or edit Wikipedia). We believe researchers should be aware of such risks before designing more extensive experiments in the future.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 119, + "chunk_id": "React_paper_chunk_0119", + "start_position": 50166, + "end_position": 50670, + "page_index": 13, + "word_count": 74, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "researchers should be aware of such risks before designing more extensive experiments in the future. # REFERENCES", + "metadata": { + "source_file": "React_paper", + "chunk_index": 120, + "chunk_id": "React_paper_chunk_0120", + "start_position": 50670, + "end_position": 50783, + "page_index": 13, + "word_count": 17, + "char_count": 113 + }, + "has_embedding": false + }, + { + "content": "# REFERENCES Josh Abramson, Arun Ahuja, Iain Barr, Arthur Brussee, Federico Carnevale, Mary Cassin, Rachita Chhaparia, Stephen Clark, Bogdan Damoc, Andrew Dudzik, Petko Georgiev, Aurelia Guy, Tim Harley, Felix Hill, Alden Hung, Zachary Kenton, Jessica Landon, Timothy Lillicrap, Kory Mathewson, Soǎa Mokrá, Alistair Muldal, Adam Santoro, Nikolay Savinov, Vikrant Varma, Greg Wayne, Duncan Williams, Nathaniel Wong, Chen Yan, and Rui Zhu.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 121, + "chunk_id": "React_paper_chunk_0121", + "start_position": 50783, + "end_position": 51220, + "page_index": 13, + "word_count": 61, + "char_count": 437 + }, + "has_embedding": false + }, + { + "content": "Nikolay Savinov, Vikrant Varma, Greg Wayne, Duncan Williams, Nathaniel Wong, Chen Yan, and Rui Zhu. Imitating interactive intelligence, 2020.URL https://arxiv.org/abs/2012.05672.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 122, + "chunk_id": "React_paper_chunk_0122", + "start_position": 51220, + "end_position": 51398, + "page_index": 13, + "word_count": 20, + "char_count": 178 + }, + "has_embedding": false + }, + { + "content": "Imitating interactive intelligence, 2020.URL https://arxiv.org/abs/2012.05672. Michael Ahn, Anthony Brohan, Noah Brown, Yevgen Chebotar, Omar Cortes, Byron David, Chelsea Finn, Chuyuan Fu, Keerthana Gopalakrishnan, Karol Hausman, Alex Herzog, Daniel Ho, Jasmine Hsu, Julian Ibarz, Brian Ichter, Alex Irpan, Eric Jang, Rosario Jauregui Ruano, Kyle Jeffrey, Sally Jesmonth, Nikhil J Joshi, Ryan Julian, Dmitry Kalashnikov, Yuheng Kuang, Kuang-Huei Lee, Sergey Levine, Yao Lu, Linda Luu, Carolina Parada, Peter Pastor, Jornell Quiambao, Kanishka Rao, Jarek Rettinghouse, Diego Reyes, Pierre Sermanet, Nicolas Sievers, Clayton Tan, Alexander Toshev, Vincent Vanhoucke, Fei Xia, Ted Xiao, Peng Xu, Sichun Xu, Mengyuan Yan, and Andy Zeng.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 123, + "chunk_id": "React_paper_chunk_0123", + "start_position": 51398, + "end_position": 52130, + "page_index": 13, + "word_count": 98, + "char_count": 732 + }, + "has_embedding": false + }, + { + "content": "ander Toshev, Vincent Vanhoucke, Fei Xia, Ted Xiao, Peng Xu, Sichun Xu, Mengyuan Yan, and Andy Zeng. Do as i can, not as i say: Grounding language in robotic affordances, 2022. URL https://arxiv.org/abs/2204.01691. Ben Alderson-Day and Charles Fernyhough. Inner speech: development, cognitive functions, phenomenology, and neurobiology. Psychological bulletin, 141(5):931, 2015. Alan Baddeley. Working memory. Science, 255(5044):556–559, 1992.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 124, + "chunk_id": "React_paper_chunk_0124", + "start_position": 52130, + "end_position": 52573, + "page_index": 14, + "word_count": 57, + "char_count": 443 + }, + "has_embedding": false + }, + { + "content": "Science, 255(5044):556–559, 1992. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 125, + "chunk_id": "React_paper_chunk_0125", + "start_position": 52573, + "end_position": 52877, + "page_index": 14, + "word_count": 39, + "char_count": 304 + }, + "has_embedding": false + }, + { + "content": "Advances in neural information processing systems, 33:1877–1901, 2020. Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022. Antonia Creswel and Murray Shanahan. Faithful reasoning using large language models, 2022. URL https://arxiv.org/abs/2208.14271. Antonia Creswell, Murray Shanahan, and Irina Higgins.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 126, + "chunk_id": "React_paper_chunk_0126", + "start_position": 52877, + "end_position": 53383, + "page_index": 21, + "word_count": 62, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "Antonia Creswell, Murray Shanahan, and Irina Higgins. Selection-inference: Exploiting large language models for interpretable logical reasoning, 2022. URL https : / /arxiv . org/abs / 2205.09712. Angela Fan, Yacine Jernite, Ethan Perez, David Grangier, Jason Weston, and Michael Auli. ELI5: Long form question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 3558–3567, Florence, Italy, July 2019. Association for Computational Linguistics.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 127, + "chunk_id": "React_paper_chunk_0127", + "start_position": 53383, + "end_position": 53881, + "page_index": 21, + "word_count": 67, + "char_count": 498 + }, + "has_embedding": false + }, + { + "content": "Association for Computational Linguistics. doi: 10.18653/v1/P19-1346. URL https : //aclanthology .org/ P19–1346. Charles Fernyhough. Vygotsky, luria, and the social brain. Self and social regulation: Social interaction and the development of social understanding and executive functions, pp. 56–79, 2010.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 128, + "chunk_id": "React_paper_chunk_0128", + "start_position": 53881, + "end_position": 54185, + "page_index": 21, + "word_count": 38, + "char_count": 304 + }, + "has_embedding": false + }, + { + "content": "56–79, 2010. Amelia Glaese, Nat McAleese, Maja Trebacz, John Aslanides, Vlad Firoiu, Timo Ewalds, Maribeth Rauh, Laura Weidinger, Martin Chadwick, Phoebe Thacker, Lucy Campbell-Gillingham, Jonathan Uesato, Po-Sen Huang, Ramona Comanescu, Fan Yang, Abigail See, Sumanth Dathathri, Rory Greig, Charlie Chen, Doug Fritz, Jaume Sanchez Elias, Richard Green, Soǎa Mokrá, Nicholas Fernando, Boxi Wu, Rachel Foley, Susannah Young, Iason Gabriel, William Isaac, John Mellor, Demis Hassabis, Koray Kavukcuoglu, Lisa Anne Hendricks, and Geoffrey Irving.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 129, + "chunk_id": "React_paper_chunk_0129", + "start_position": 54185, + "end_position": 54728, + "page_index": 21, + "word_count": 73, + "char_count": 543 + }, + "has_embedding": false + }, + { + "content": "iam Isaac, John Mellor, Demis Hassabis, Koray Kavukcuoglu, Lisa Anne Hendricks, and Geoffrey Irving. Improving alignment of dialogue agents via targeted human judgements, 2022. URL https://storage.googleapis.com/deepmind-media/DeepMind. com/Authors-Notes/sparrow/sparrow-final.pdf. Ehsan Hosseini-Asl, Bryan McCann, Chien-Sheng Wu, Semih Yavuz, and Richard Socher. A simple language model for task-oriented dialogue. Advances in Neural Information Processing Systems, 33:20179–20191, 2020.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 130, + "chunk_id": "React_paper_chunk_0130", + "start_position": 54728, + "end_position": 55217, + "page_index": 21, + "word_count": 53, + "char_count": 489 + }, + "has_embedding": false + }, + { + "content": "Advances in Neural Information Processing Systems, 33:20179–20191, 2020. Wenlong Huang, Pieter Abbeel, Deepak Pathak, and Igor Mordatch. Language models as zero-shot planners: Extracting actionable knowledge for embodied agents. arXiv preprint arXiv:2201.07207, 2022a. Wenlong Huang, Fei Xia, Ted Xiao, Harris Chan, Jacky Liang, Pete Florence, Andy Zeng, Jonathan Tompson, Igor Mordatch, Yevgen Chebotar, et al. Inner monologue: Embodied reasoning through planning with language models.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 131, + "chunk_id": "React_paper_chunk_0131", + "start_position": 55217, + "end_position": 55703, + "page_index": 23, + "word_count": 63, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "Inner monologue: Embodied reasoning through planning with language models. arXiv preprint arXiv:2207.05608, 2022b. Siddharth Karamcheti, Megha Srivastava, Percy Liang, and Dorsa Sadigh. Lila: Language-informed latent actions. In CoRL, pp. 1379–1390, 2021. URL https : //proceedings .mlr .press/ vl64/karamcheti22a.html. Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. Large language models are zero-shot reasoners. arXiv preprint arXiv:2205.11916, 2022.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 132, + "chunk_id": "React_paper_chunk_0132", + "start_position": 55703, + "end_position": 56191, + "page_index": 23, + "word_count": 60, + "char_count": 488 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2205.11916, 2022. Angeliki Lazaridou, Elena Gribovskaya, Wojciech Stokowiec, and Nikolai Grigorev. Internetaugmented language models through few-shot prompting for open-domain question answering. arXiv preprint arXiv:2203.05115, 2022. Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. Retrieval-augmented generation for knowledge-intensive nlp tasks.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 133, + "chunk_id": "React_paper_chunk_0133", + "start_position": 56191, + "end_position": 56674, + "page_index": 23, + "word_count": 55, + "char_count": 483 + }, + "has_embedding": false + }, + { + "content": "Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in Neural Information Processing Systems, 33: 9459–9474, 2020. Shuang Li, Xavier Puig, Chris Paxton, Yilun Du, Clinton Wang, Linxi Fan, Tao Chen, De-An Huang, Ekin Akyürek, Anima Anandkumar, Jacob Andreas, Igor Mordatch, Antonio Torralba, and Yuke Zhu. Pre-trained language models for interactive decision-making, 2022. URL ht tp s : //arxiv.org/abs/2202.01771. Aleksandr Romanovich Luria.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 134, + "chunk_id": "React_paper_chunk_0134", + "start_position": 56674, + "end_position": 57138, + "page_index": 23, + "word_count": 60, + "char_count": 464 + }, + "has_embedding": false + }, + { + "content": "Aleksandr Romanovich Luria. Ls vygotsky and the problem of localization of functions. Neuropsychologia, 3(4):387–392, 1965. Aman Madaan and Amir Yazdanbakhsh. Text and patterns: For effective chain of thought, it takes two to tango, 2022. URL https://arxiv.org/abs/2209.07686. Vincent Micheli and Frangois Fleuret. Language models are few-shot butlers. arXiv preprint arXiv:2104.07972, 2021.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 135, + "chunk_id": "React_paper_chunk_0135", + "start_position": 57138, + "end_position": 57529, + "page_index": 23, + "word_count": 50, + "char_count": 391 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2104.07972, 2021. Reichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, Xu Jiang, Karl Cobbe, Tyna Eloundou, Gretchen Krueger, Kevin Button, Matthew Knight, Benjamin Chess, and John Schulman. Webgpt: Browser-assisted question-answering with human feedback, 2021. URL https : //arxiv. org/abs/2112.09332.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 136, + "chunk_id": "React_paper_chunk_0136", + "start_position": 57529, + "end_position": 57951, + "page_index": 26, + "word_count": 53, + "char_count": 422 + }, + "has_embedding": false + }, + { + "content": "org/abs/2112.09332. Maxwell Nye, Anders Johan Andreassen, Guy Gur-Ari, Henryk Michalewski, Jacob Austin, David Bieber, David Dohan, Aitor Lewkowycz, Maarten Bosma, David Luan, Charles Sutton, and Augustus Odena. Show your work: Scratchpads for intermediate computation with language models, 2021. URL https: //arxiv.org/abs/2112.00114.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 137, + "chunk_id": "React_paper_chunk_0137", + "start_position": 57951, + "end_position": 58286, + "page_index": 27, + "word_count": 41, + "char_count": 335 + }, + "has_embedding": false + }, + { + "content": "URL https: //arxiv.org/abs/2112.00114. Scott Reed, Konrad Zolna, Emilio Parisotto, Sergio Gomez Colmenarejo, Alexander Novikov, Gabriel Barth-Maron, Mai Gimenez, Yury Sulsky, Jackie Kay, Jost Tobias Springenberg, Tom Eccles, Jake Bruce, Ali Razavi, Ashley Edwards, Nicolas Heess, Yutian Chen, Raia Hadsell, Oriol Vinyals, Mahyar Bordbar, and Nando de Freitas. A generalist agent, 2022. URL ht tps : //arxiv.org/abs/2205.06175.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 138, + "chunk_id": "React_paper_chunk_0138", + "start_position": 58286, + "end_position": 58712, + "page_index": 28, + "word_count": 56, + "char_count": 426 + }, + "has_embedding": false + }, + { + "content": "URL ht tps : //arxiv.org/abs/2205.06175. Mohit Shridhar, Jesse Thomason, Daniel Gordon, Yonatan Bisk, Winson Han, Roozbeh Mottaghi, Luke Zetlemoyer and Dieter Fox. Alfred: A benchmark for interpreting grounded instructions for everyday tasks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10740–10749, 2020a. Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Coté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 139, + "chunk_id": "React_paper_chunk_0139", + "start_position": 58712, + "end_position": 59168, + "page_index": 31, + "word_count": 60, + "char_count": 456 + }, + "has_embedding": false + }, + { + "content": "it Shridhar, Xingdi Yuan, Marc-Alexandre Coté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. Alfworld: Aligning text and embodied environments for interactive learning. arXiv preprint arXiv:2010.03768, 2020b. Kurt Shuster, Mojtaba Komeili, Leonard Adolphs, Stephen Roller, Arthur Szlam, and Jason Weston. Language models that seek for knowledge: Modular search & generation for dialogue and prompt completion. arXiv preprint arXiv:2203.13224, 2022a.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 140, + "chunk_id": "React_paper_chunk_0140", + "start_position": 59168, + "end_position": 59625, + "page_index": 32, + "word_count": 58, + "char_count": 457 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2203.13224, 2022a. Kurt Shuster ingXu Mojtaba Komei Da Ju Eric Michael mith, Stephen Roller, Megan U Moya Chen, Kushal Arora, Joshua Lane, Morteza Behrooz, William Ngan, Spencer Poff, Naman Goyal, Arthur Szlam, Y-Lan Boureau, Melanie Kambadur, and Jason Weston. Blenderbot 3: a deployed conversational agent that continually learns to responsibly engage, 2022b. URL https://arxiv.org/abs/2208.03188. James Thorne, Andreas Vlachos, Christos Christodoulopoulos, and Arpit Mittal.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 141, + "chunk_id": "React_paper_chunk_0141", + "start_position": 59625, + "end_position": 60123, + "page_index": 32, + "word_count": 65, + "char_count": 498 + }, + "has_embedding": false + }, + { + "content": "James Thorne, Andreas Vlachos, Christos Christodoulopoulos, and Arpit Mittal. Fever: a large-scale dataset for fact extraction and verifi cation. arXiv preprint arXiv: 1803.05355, 2018. Lev S Vygotsky. Thinking and speech. The collected works of LS Vygotsky, 1:39–285, 1987. Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models, 2022a.URL https://arxiv.org/abs/2203.11171.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 142, + "chunk_id": "React_paper_chunk_0142", + "start_position": 60123, + "end_position": 60624, + "page_index": 32, + "word_count": 66, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "improves chain of thought reasoning in language models, 2022a.URL https://arxiv.org/abs/2203.11171. Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, and Denny Zhou. Rationale-augmented ensembles in language models. arXiv preprint arXiv:2207.00747, 2022b. Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models. arXiv preprint arXiv:2201.11903, 2022.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 143, + "chunk_id": "React_paper_chunk_0143", + "start_position": 60624, + "end_position": 61086, + "page_index": 32, + "word_count": 61, + "char_count": 462 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2201.11903, 2022. Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William W Cohen, Ruslan Salakhutdinov, and Christopher D Manning. Hotpotqa: A dataset for diverse, explainable multi-hop question answering. arXiv preprint arXiv:1809.09600, 2018. Shunyu Yao, Rohan Rao, Matthew Hausknecht, and Karthik Narasimhan. Keep CALM and explore: Language models for action generation in text-based games.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 144, + "chunk_id": "React_paper_chunk_0144", + "start_position": 61086, + "end_position": 61506, + "page_index": 32, + "word_count": 55, + "char_count": 420 + }, + "has_embedding": false + }, + { + "content": "Keep CALM and explore: Language models for action generation in text-based games. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 8736–8754, Online, November 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.emnlp-main.704. URL https://aclanthology.org/2020.emnlp-main.704. Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. Webshop: Towards scalable real-world web interaction with grounded language agents.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 145, + "chunk_id": "React_paper_chunk_0145", + "start_position": 61506, + "end_position": 61999, + "page_index": 32, + "word_count": 58, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "Webshop: Towards scalable real-world web interaction with grounded language agents. arXiv preprint arXiv:2207.01206, 2022. Eric Zelikman, Yuhuai Wu, Jesse Mu, and Noah D. Goodman. Star: Bootstrapping reasoning with reasoning, 2022. URL https://arxiv.org/abs/2203.14465. Denny Zhou, Nathanael Schärli, Le Hou, Jason Wei, Nathan Scales, Xuezhi Wang, Dale Schuurmans, Olivier Bousquet, Quoc Le, and Ed Chi. Least-to-most prompting enables complex reasoning in large language models, 2022.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 146, + "chunk_id": "React_paper_chunk_0146", + "start_position": 61999, + "end_position": 62484, + "page_index": 32, + "word_count": 63, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "Least-to-most prompting enables complex reasoning in large language models, 2022. URL https : //arxiv.org/abs/2205.10625. Yunchang Zhu, Liang Pang, Yanyan Lan, Huawei Shen, and Xueqi Cheng. Adaptive information seeking for open-domain question answering. arXiv preprint arXiv:2109.06747, 2021. # A ADDITIONAL RESULTS A.1 GPT-3 ExPERIMENTS", + "metadata": { + "source_file": "React_paper", + "chunk_index": 147, + "chunk_id": "React_paper_chunk_0147", + "start_position": 62484, + "end_position": 62822, + "page_index": 32, + "word_count": 43, + "char_count": 338 + }, + "has_embedding": false + }, + { + "content": "# A ADDITIONAL RESULTS A.1 GPT-3 ExPERIMENTS
PaLM-540BGPT-3
HotpotQA (exact match)29.430.8
ALFWorld (success rate %)70.978.4
Table 5: ReAct prompting results using PaLM-540B vs. GPT-3 (text-davinci-002, greedy decoding). On HotpotQA, we randomly sample a subset of 500 validation questions.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 148, + "chunk_id": "React_paper_chunk_0148", + "start_position": 62822, + "end_position": 63233, + "page_index": 32, + "word_count": 36, + "char_count": 411 + }, + "has_embedding": false + }, + { + "content": "On HotpotQA, we randomly sample a subset of 500 validation questions. On ALFWorld, we use all 134 unseen validation task instances, and use the best prompt set according to PaLM-540B. We run additional GPT-3 (Brown et al., 2020) experiments to confirm ReAct prompting performance is general across different large language models.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 149, + "chunk_id": "React_paper_chunk_0149", + "start_position": 63233, + "end_position": 63563, + "page_index": 32, + "word_count": 51, + "char_count": 330 + }, + "has_embedding": false + }, + { + "content": "xperiments to confirm ReAct prompting performance is general across different large language models. As shown in Table 5, GPT-3 (text-davinci-002, greedy decoding) consistently outperforms PaLM-540B on HotpotQA and ALFWorld, possibly because it is finetuned with human instruction following. This indicates ReAct prompting is effective across different large language models on diferent tasks. The code for these experiments are at https://react-lm.github.io/. # .2 REAcT OBTAINS UP-TO-DATE KNOWLEDGE ON HoTPoTQA", + "metadata": { + "source_file": "React_paper", + "chunk_index": 150, + "chunk_id": "React_paper_chunk_0150", + "start_position": 63563, + "end_position": 64075, + "page_index": 32, + "word_count": 68, + "char_count": 512 + }, + "has_embedding": false + }, + { + "content": "# .2 REAcT OBTAINS UP-TO-DATE KNOWLEDGE ON HoTPoTQA (1) Hotspot QA (1d) ReAct (Reason + Act) \nQuestion: How many rooms are in the hotel that is home to Thought 1: I need to search cirque du soleil show Mystere, \nthe Cirque du Soleil show Mystere? find the hotel it is in, then find the number of rooms in \nHotpotQA label: 2, 664 Outdated tht h slarch[cirque du soleil show Mystere obs 1: Could not find Cirque du soleil show Mystere.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 151, + "chunk_id": "React_paper_chunk_0151", + "start_position": 64075, + "end_position": 64508, + "page_index": 32, + "word_count": 80, + "char_count": 433 + }, + "has_embedding": false + }, + { + "content": "ated tht h slarch[cirque du soleil show Mystere obs 1: Could not find Cirque du soleil show Mystere. (1a) standard (1c) Act-only similar:['cirque du soleil' \nAnswer: 3,000 Act 1: Search[Cirque du Soleil ] Thought 2: To find the hotel, I can search Mystere (Cirque obs 1: Cirque du Soleil is a du soleil). Canadian entertainment company.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 152, + "chunk_id": "React_paper_chunk_0152", + "start_position": 64508, + "end_position": 64844, + "page_index": 32, + "word_count": 56, + "char_count": 336 + }, + "has_embedding": false + }, + { + "content": "Canadian entertainment company. Act 2: search[Mystere (Cirque du Soleil) ] (1b) CoT (Reason Only) Act 2: Lookup[Mystere] obs 2: Mystère (my-steer) is Held in a custom theatre at \nThought: Let's think step Obs 2: No more results the Treasure Island Hotel and Casino $\\cdots$ \ny sep.he hotel tht is shostereirue d \nSoleil show Mystere is obs 3: Could not find.. Treasure Island Hotel and Casino next and find the number olei SearchMystereCirque du \nthe answer is 2,885.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 153, + "chunk_id": "React_paper_chunk_0153", + "start_position": 64844, + "end_position": 65311, + "page_index": 32, + "word_count": 77, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "e Island Hotel and Casino next and find the number olei SearchMystereCirque du \nthe answer is 2,885. obs 4: Mystère (my-steer) is and Treasure Island otel and Casin with2884 rms \nAnswer: 2,885 At 5: Lookup eare Island Thought 4: Treasure Island Hotel and Casino has 2, 884 rooms Hotel and Casino] and 220 suites. So the answer is 3,104. X . (end without answer) Act 4: Finish[3, 104] Up-to-date Figure 4: Another example HotpotQA question, where the original label is outdated.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 154, + "chunk_id": "React_paper_chunk_0154", + "start_position": 65311, + "end_position": 65788, + "page_index": 32, + "word_count": 81, + "char_count": 477 + }, + "has_embedding": false + }, + { + "content": ", 104] Up-to-date Figure 4: Another example HotpotQA question, where the original label is outdated. Only ReAct is able to obtain the up-to-date answer thanks to real-world web interaction plus reasoning. During trajectory inspection, we also find that sometimes ReAct does not agree with dataset labels as the labels themselves could be outdated. For example, as shown in Figure 4, the question asks about the size of a hotel, which increased from the HotpotQA construction time.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 155, + "chunk_id": "React_paper_chunk_0155", + "start_position": 65788, + "end_position": 66268, + "page_index": 32, + "word_count": 76, + "char_count": 480 + }, + "has_embedding": false + }, + { + "content": "4, the question asks about the size of a hotel, which increased from the HotpotQA construction time. While St andard and CoT give wrong answers due to hallucination, Act fails despite the access of real-world web interaction, due to a lack of reasoning to guide how to interact with the Internet for QA. Only ReAct is able to retrieve up-to-date information from the Internet and provide a reasonable answer.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 156, + "chunk_id": "React_paper_chunk_0156", + "start_position": 66268, + "end_position": 66676, + "page_index": 32, + "word_count": 69, + "char_count": 408 + }, + "has_embedding": false + }, + { + "content": "ReAct is able to retrieve up-to-date information from the Internet and provide a reasonable answer. Therefore, better incorporation of reasoning abilities might benefit recent Internet-augmented language models (Nakano et al., 2021; Lazaridou et al., 2022; Shuster et al., 2022a) for up-to-date task solving. # A.3 HUMAN-IN-THE-LOOP BEHAVIOR CORRECTION ON ALFWoRLD We also explore human-in-the-loop interaction with ReAct, to allow a human to inspect and edit ReAct's reasoning traces.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 157, + "chunk_id": "React_paper_chunk_0157", + "start_position": 66676, + "end_position": 67161, + "page_index": 32, + "word_count": 68, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "n-in-the-loop interaction with ReAct, to allow a human to inspect and edit ReAct's reasoning traces. Figure 5 shows that by simply removing a hallucinating sentence in Act 17 and adding some hints in Act 23, ReAct can be made to change its behavior drastically to align with these human thought edits and succeed in the task.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 158, + "chunk_id": "React_paper_chunk_0158", + "start_position": 67161, + "end_position": 67486, + "page_index": 32, + "word_count": 56, + "char_count": 325 + }, + "has_embedding": false + }, + { + "content": "to change its behavior drastically to align with these human thought edits and succeed in the task. From a human perspective, solving such a task becomes significantly easier, from typing tens of actions to only editing a couple of thoughts, which enables new forms of human-machine collaboration. We note that such a policy edit on-the-go is difficult for Act and previous RL methods, as a human cannot change the model parameters, and changing a few actions might not edit the rest of the model behavior.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 159, + "chunk_id": "React_paper_chunk_0159", + "start_position": 67486, + "end_position": 67992, + "page_index": 32, + "word_count": 85, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "ange the model parameters, and changing a few actions might not edit the rest of the model behavior. This paradigm is also more than human dialogue to update the goal or subgoal as in Huang et al. (2022b) — while editing $_ { \\mathrm { R e A c t } }$ thoughts can do these, it can also modify the model's internal belief, reasoning styles, or anything the flexible thought space supports, for better task solving.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 160, + "chunk_id": "React_paper_chunk_0160", + "start_position": 67992, + "end_position": 68405, + "page_index": 32, + "word_count": 77, + "char_count": 413 + }, + "has_embedding": false + }, + { + "content": "belief, reasoning styles, or anything the flexible thought space supports, for better task solving. We believe this is an exciting direction for human alignment and leave more systematic study as future work. [IMAGE]\nFigure 5: A human-in-the-loop behavior correction example with ReAct in AlfWorld. (a) ReAct trajectory fails due to a hallucinating thought (Act 17). (b) By a human simply editing two thoughts (Act 17, 23), the ReAct trajectory produces desirable reasoning traces and actions and succeeds.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 161, + "chunk_id": "React_paper_chunk_0161", + "start_position": 68405, + "end_position": 68911, + "page_index": 32, + "word_count": 77, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "hts (Act 17, 23), the ReAct trajectory produces desirable reasoning traces and actions and succeeds. # B EXPERIMENT DETAILS # B.1 HoTPOTQA FINETUNING DETAILS For all finetuning we use a batch size of 64. On PaLM-8B, we finetune ReAct and Act methods for 4, 000 steps and St andard and CoT methods for 2, 000 steps. On PaLM-62B, we finetune ReAct and Act methods for 4, 000 steps and st andard and CoT methods for 1, 00 steps.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 162, + "chunk_id": "React_paper_chunk_0162", + "start_position": 68911, + "end_position": 69336, + "page_index": 32, + "word_count": 78, + "char_count": 425 + }, + "has_embedding": false + }, + { + "content": "B, we finetune ReAct and Act methods for 4, 000 steps and st andard and CoT methods for 1, 00 steps. We find ReAct and Act methods generally benefit from more training steps (and more training data), while St an dard and CoT methods degrade soon after finetuning. # B.2 ALFWORLD IM-STYLE DETAILS", + "metadata": { + "source_file": "React_paper", + "chunk_index": 163, + "chunk_id": "React_paper_chunk_0163", + "start_position": 69336, + "end_position": 69631, + "page_index": 32, + "word_count": 53, + "char_count": 295 + }, + "has_embedding": false + }, + { + "content": "# B.2 ALFWORLD IM-STYLE DETAILS For the IM-style ablation, the same expert trajectories used in ReAct are reannotated with dense external feedback thoughts within these trajectories, that limit ReAct – IM to only think about (1) decomposing the current goal and (2) the current subgoal that needs to be completed.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 164, + "chunk_id": "React_paper_chunk_0164", + "start_position": 69631, + "end_position": 69944, + "page_index": 32, + "word_count": 50, + "char_count": 313 + }, + "has_embedding": false + }, + { + "content": "think about (1) decomposing the current goal and (2) the current subgoal that needs to be completed. In particular, ReAct–IM lacks thoughts that (1) determine when a subgoal is completed (2) determine what the next subgoal should be (3) inducing the LLM to refer to its internal pretraining knowledge to identify where items can be within the environment. # C PROMPTS # C.1 HOTPOTQA", + "metadata": { + "source_file": "React_paper", + "chunk_index": 165, + "chunk_id": "React_paper_chunk_0165", + "start_position": 69944, + "end_position": 70326, + "page_index": 32, + "word_count": 64, + "char_count": 382 + }, + "has_embedding": false + }, + { + "content": "# C PROMPTS # C.1 HOTPOTQA
Hotpot QA Prompts
Original QuestionWhat is the elevation range for the area that the eastern sector of the Colorado orogeny extends into?
Answer1,800 t0 7,000 ft
QuestionMusician and satirist Allie Goertz wrote a song about the "The Simpsons"
Answercharacter Milhouse, who Matt Groening named after who?", + "metadata": { + "source_file": "React_paper", + "chunk_index": 166, + "chunk_id": "React_paper_chunk_0166", + "start_position": 70326, + "end_position": 70794, + "page_index": 32, + "word_count": 48, + "char_count": 468 + }, + "has_embedding": false + }, + { + "content": "impsons"
Answercharacter Milhouse, who Matt Groening named after who? Richard Nixon
QuestionWhich documentary is about Finnish rock groups, Adam Clayton Powell or The
AnswerSaimaa Gesture? The Saimaa Gesture
Question Answerwhat profession does Nicholas Ray and Elia Kazan have in common?", + "metadata": { + "source_file": "React_paper", + "chunk_index": 167, + "chunk_id": "React_paper_chunk_0167", + "start_position": 70794, + "end_position": 71217, + "page_index": 32, + "word_count": 36, + "char_count": 423 + }, + "has_embedding": false + }, + { + "content": "/tr>
Question Answerwhat profession does Nicholas Ray and Elia Kazan have in common? director, screenwriter, actor
Question AnswerWhich magazine was started first Arthur's Magazine or First for Women?", + "metadata": { + "source_file": "React_paper", + "chunk_index": 168, + "chunk_id": "React_paper_chunk_0168", + "start_position": 71217, + "end_position": 71491, + "page_index": 32, + "word_count": 26, + "char_count": 274 + }, + "has_embedding": false + }, + { + "content": ">Question AnswerWhich magazine was started first Arthur's Magazine or First for Women? Arthur's Magazine
QuestionWere Pavel Urysohn and Leonid Levin known for the same type of work?
AnswerYes
Act Questionwhat is the elevation range for the area that the eastern sector of the
Action 1Colorado orogeny extends into?", + "metadata": { + "source_file": "React_paper", + "chunk_index": 169, + "chunk_id": "React_paper_chunk_0169", + "start_position": 71491, + "end_position": 71928, + "page_index": 32, + "word_count": 44, + "char_count": 437 + }, + "has_embedding": false + }, + { + "content": "area that the eastern sector of the
Action 1Colorado orogeny extends into? Search[colorado orogeny]
Observation 1The Colorado orogeny was an episode of mountain building (an orogeny) in
colorado and surrounding areas. Lookup[eastern sector]
Action 2 Observation 2(Result 1 / 1) The eastern sector extends into the High Plains and is called
the Central Plains orogeny.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 170, + "chunk_id": "React_paper_chunk_0170", + "start_position": 71928, + "end_position": 72425, + "page_index": 32, + "word_count": 50, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "tor extends into the High Plains and is called
the Central Plains orogeny. Search [High Plains]
Action 3 Observation 3High Plains refers to one of two distinct land regions:
Action 4Search [High Plains (United States)] The High Plains are a subregion of the Great Plains.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 171, + "chunk_id": "React_paper_chunk_0171", + "start_position": 72425, + "end_position": 72774, + "page_index": 32, + "word_count": 42, + "char_count": 349 + }, + "has_embedding": false + }, + { + "content": "4Search [High Plains (United States)] The High Plains are a subregion of the Great Plains. From east to west, the
Observation 4High Plains rise in elevation from around 1,800 to 7,000 ft (550 to 2,130
m).[3] Finish[1,800 to 7,000 ft]
Action 5Musician and satirist Allie Goertz wrote a song about the "The Simpsons"
Questioncharacter Milhouse, who Matt Groening named after who?
Action1 Observation1Search [Milhouse] Milhouse Mussolini Van Houten is a recurring character in the Fox animated
television series The Simpsons voiced by Pamela Hayden and created by Matt Groening.
Action 2Lookup[named after] (Result 1 / 1) Milhouse was named after U.S.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 172, + "chunk_id": "React_paper_chunk_0172", + "start_position": 72774, + "end_position": 73623, + "page_index": 32, + "word_count": 94, + "char_count": 849 + }, + "has_embedding": false + }, + { + "content": ".
Action 2Lookup[named after] (Result 1 / 1) Milhouse was named after U.S. president Richard Nixon, whose
Observation 2middle name was Milhous.
Action 3Finish[Richard Nixon]
which documentary is about Finnish rock groups, Adam Clayton Powell or The
QuestionSaimaa Gesture?
Action 1Search[Adam Clayton Powell] Could not find [Adam Clayton Powell].", + "metadata": { + "source_file": "React_paper", + "chunk_index": 173, + "chunk_id": "React_paper_chunk_0173", + "start_position": 73623, + "end_position": 74125, + "page_index": 32, + "word_count": 43, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "
Action 1Search[Adam Clayton Powell] Could not find [Adam Clayton Powell]. Similar: ['Adam Clayton Powell
Observation 1III','seventh Avenue (Manhattan)', 'Adam Clayton Powell Jr.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 174, + "chunk_id": "React_paper_chunk_0174", + "start_position": 74125, + "end_position": 74380, + "page_index": 32, + "word_count": 21, + "char_count": 255 + }, + "has_embedding": false + }, + { + "content": "bservation 1III','seventh Avenue (Manhattan)', 'Adam Clayton Powell Jr. state Office
Building','Isabel Washington Powell', 'Adam Powell', 'Adam Clayton Powell
(film)', 'Giancarlo Esposito'].
Search[Adam Clayton Powell (film)]
Action 2Adam Clayton Powell is a 1989 American documentary film directed by
Observation 2
Richard Kilberg.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 175, + "chunk_id": "React_paper_chunk_0175", + "start_position": 74380, + "end_position": 74942, + "page_index": 32, + "word_count": 35, + "char_count": 562 + }, + "has_embedding": false + }, + { + "content": "film directed by
Observation 2
Richard Kilberg. The film is about the rise and fall of influential
African-American politician Adam Clayton Powell Jr.[3] [4] It was later aired
as part of the PBs series The American Experience.
Action 3Finish [The Saimaa Gesture]
QuestionWhat profession does Nicholas Ray and Elia Kazan have in common?
search[Nicholas Ray]
Action1
Observation 1
Nicholas Ray (born Raymond Nicholas Kienzle Jr., August 7, 1911 – June 16,
1979) was an American film director, screenwriter, and actor best known for
Action 2
the 1955 film Rebel without a Cause.
Observation 2Search [Elia Kazan]
", + "metadata": { + "source_file": "React_paper", + "chunk_index": 176, + "chunk_id": "React_paper_chunk_0176", + "start_position": 74942, + "end_position": 76716, + "page_index": 32, + "word_count": 82, + "char_count": 1774 + }, + "has_embedding": false + }, + { + "content": ">Observation 2Search [Elia Kazan] Hotpot QA Prompts – Continued from previous page", + "metadata": { + "source_file": "React_paper", + "chunk_index": 177, + "chunk_id": "React_paper_chunk_0177", + "start_position": 76716, + "end_position": 76865, + "page_index": 32, + "word_count": 12, + "char_count": 149 + }, + "has_embedding": false + }, + { + "content": "ion 2Search [Elia Kazan] Hotpot QA Prompts – Continued from previous page
ervation1
Action 2Search[First for Women] First for Women is a woman's magazine published by Bauer Media Group in the
Observation 2UsA.[1] The magazine was started in 1989.
Action 3Finish [Arthur's Magazine]
Question Action 1Were Pavel Urysohn and Leonid Levin known for the same type of work?", + "metadata": { + "source_file": "React_paper", + "chunk_index": 178, + "chunk_id": "React_paper_chunk_0178", + "start_position": 76865, + "end_position": 77424, + "page_index": 32, + "word_count": 54, + "char_count": 559 + }, + "has_embedding": false + }, + { + "content": "r>Question Action 1Were Pavel Urysohn and Leonid Levin known for the same type of work? Search[Pavel Urysohn]
Observation 1Pavel Samuilovich Urysohn (February 3, 1898 – August 17, 1924) was a Soviet
mathematician who is best known for his contributions in dimension theory.
Action 2Search [Leonid Levin] Leonid Anatolievich Levin is a Soviet-American mathematician and computer
Observation 2scientist.
Action 3Finish[yes]
COTwhat is the elevation range for the area that the eastern sector of the
QuestionColorado orogeny extends into?", + "metadata": { + "source_file": "React_paper", + "chunk_index": 179, + "chunk_id": "React_paper_chunk_0179", + "start_position": 77424, + "end_position": 78154, + "page_index": 32, + "word_count": 70, + "char_count": 730 + }, + "has_embedding": false + }, + { + "content": "area that the eastern sector of the
QuestionColorado orogeny extends into? Let's think step by step. The eastern sector of Colorado orogeny extends
Thoughtinto the High Plains.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 180, + "chunk_id": "React_paper_chunk_0180", + "start_position": 78154, + "end_position": 78387, + "page_index": 32, + "word_count": 25, + "char_count": 233 + }, + "has_embedding": false + }, + { + "content": "he eastern sector of Colorado orogeny extends
Thoughtinto the High Plains. High Plains rise in elevation from around 1,800 to 7,000 ft, so the answer is 1,800 to 7,000 ft.
Answer1,800 to 7,000 ft
QuestionMusician and satirist Allie Goertz wrote a song about the "The simpsons" character Milhouse, who Matt Groening named after who?
ThoughtLet's think step by step. Milhouse was named after U.S.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 181, + "chunk_id": "React_paper_chunk_0181", + "start_position": 78387, + "end_position": 78900, + "page_index": 32, + "word_count": 60, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "Milhouse was named after U.S. president Richard Nixon, so the answer is Richard Nixon.
AnswerRichard Nixon
Questionwhich documentary is about Finnish rock groups, Adam Clayton Powell or The Saimaa Gesture?
ThoughtLet's think step by step. Adam Clayton Powell (film) is a documentary about an African-American politician, not Finnish rock groups.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 182, + "chunk_id": "React_paper_chunk_0182", + "start_position": 78900, + "end_position": 79328, + "page_index": 32, + "word_count": 47, + "char_count": 428 + }, + "has_embedding": false + }, + { + "content": "layton Powell (film) is a documentary about an African-American politician, not Finnish rock groups. So the documentary
Answerabout Finnish rock groups must instead be The Saimaa Gesture. The Saimaa Gesture
QuestionWhat profession does Nicholas Ray and Elia Kazan have in common?
ThoughtLet's think step by step. Professions of Nicholas Ray are director, screenwriter, and actor.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 183, + "chunk_id": "React_paper_chunk_0183", + "start_position": 79328, + "end_position": 79790, + "page_index": 32, + "word_count": 52, + "char_count": 462 + }, + "has_embedding": false + }, + { + "content": "Professions of Nicholas Ray are director, screenwriter, and actor. Professions of Elia Kazan are director, producer, screenwriter, and actor. So profession Nicholas Ray and Elia Kazan have in
Answercommon is director, screenwriter, and actor. director, screenwriter, actor
Questionwhich magazine was started first Arthur's Magazine or First for Women?
ThoughtLet's think step by step.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 184, + "chunk_id": "React_paper_chunk_0184", + "start_position": 79790, + "end_position": 80262, + "page_index": 32, + "word_count": 50, + "char_count": 472 + }, + "has_embedding": false + }, + { + "content": "'s Magazine or First for Women?
ThoughtLet's think step by step. Arthur's Magazine was started in 1844. First for Women was started in 1989. 1844 (Arthur's Magazine) < 1989 (First for
Women), so Arthur's Magazine was started first. Arthur's Magazine
Answerwere Pavel Urysohn and Leonid Levin known for the same type of work?
Question ThoughtLet's think step by step.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 185, + "chunk_id": "React_paper_chunk_0185", + "start_position": 80262, + "end_position": 80770, + "page_index": 32, + "word_count": 55, + "char_count": 508 + }, + "has_embedding": false + }, + { + "content": "for the same type of work?
Question ThoughtLet's think step by step. Pavel Urysohn is a mathematician. Leonid Levin is a mathematician and computer scientist. So Pavel Urysohn and Leonid
Levin have the same type of work.
AnswerYes
ReAct Questionwhat is the elevation range for the area that the eastern sector of the
Thought1Colorado orogeny extends into?", + "metadata": { + "source_file": "React_paper", + "chunk_index": 186, + "chunk_id": "React_paper_chunk_0186", + "start_position": 80770, + "end_position": 81260, + "page_index": 32, + "word_count": 52, + "char_count": 490 + }, + "has_embedding": false + }, + { + "content": "area that the eastern sector of the
Thought1Colorado orogeny extends into? I need to search Colorado orogeny, find the area that the eastern sector
of the colorado orogeny extends into, then find the elevation range of the area.
Action 1Search[colorado orogeny]
Observation 1The Colorado orogeny was an episode of mountain building (an orogeny) in colorado and surrounding areas.
Thought2It does not mention the eastern sector.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 187, + "chunk_id": "React_paper_chunk_0187", + "start_position": 81260, + "end_position": 81817, + "page_index": 32, + "word_count": 60, + "char_count": 557 + }, + "has_embedding": false + }, + { + "content": "ado and surrounding areas.
Thought2It does not mention the eastern sector. So I need to look up eastern
Action2sector. Lookup[eastern sector]
Observation 2(Result 1 / 1) The eastern sector extends into the High Plains and is called
the Central Plains orogeny.
Thought 3The eastern sector of Colorado orogeny extends into the High Plains.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 188, + "chunk_id": "React_paper_chunk_0188", + "start_position": 81817, + "end_position": 82284, + "page_index": 32, + "word_count": 48, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": ">
Thought 3The eastern sector of Colorado orogeny extends into the High Plains. so I
need to search High Plains and find its elevation range.
Action 3Search [High Plains]
Observation 3High Plains refers to one of two distinct land regions
Though4
I need to instead search High Plains (United States).
Action 4Search[High Plains (United States)]
", + "metadata": { + "source_file": "React_paper", + "chunk_index": 189, + "chunk_id": "React_paper_chunk_0189", + "start_position": 82284, + "end_position": 83282, + "page_index": 32, + "word_count": 48, + "char_count": 998 + }, + "has_embedding": false + }, + { + "content": "td>Action 4Search[High Plains (United States)] Question
Thought 1The question simplifies to "The Simpsons" character Milhouse is named after who.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 190, + "chunk_id": "React_paper_chunk_0190", + "start_position": 83282, + "end_position": 83515, + "page_index": 32, + "word_count": 19, + "char_count": 233 + }, + "has_embedding": false + }, + { + "content": "1The question simplifies to "The Simpsons" character Milhouse is named after who. I only need to search Milhouse and find who it is named after.
Action 1Search [Milhouse]
Observation 1Milhouse Mussolini Van Houten is a recurring character in the Fox animated television series The Simpsons voiced by Pamela Hayden and created by Matt
Groening.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 191, + "chunk_id": "React_paper_chunk_0191", + "start_position": 83515, + "end_position": 83955, + "page_index": 32, + "word_count": 51, + "char_count": 440 + }, + "has_embedding": false + }, + { + "content": "series The Simpsons voiced by Pamela Hayden and created by Matt
Groening. The paragraph does not tell who Milhouse is named after, maybe I can look up
Thought2"named after".
Action 2 Observation 2Lookup [named after] (Result 1 / 1) Milhouse was named after U.S. president Richard Nixon, whose
Thought 3middle name was Milhous. Milhouse was named after U.S.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 192, + "chunk_id": "React_paper_chunk_0192", + "start_position": 83955, + "end_position": 84425, + "page_index": 32, + "word_count": 54, + "char_count": 470 + }, + "has_embedding": false + }, + { + "content": "Milhouse was named after U.S. president Richard Nixon, so the answer is
Richard Nixon.
Action 3Finish [Richard Nixon]
QuestionWhich documentary is about Finnish rock groups, Adam Clayton Powell or The Saimaa Gesture?
Thought 1I need to search Adam Clayton Powell and The Saimaa Gesture, and find which documentary is about Finnish rock groups.
Action 1 Observation1Search[Adam Clayton Powell] Could not find [Adam Clayton Powell].", + "metadata": { + "source_file": "React_paper", + "chunk_index": 193, + "chunk_id": "React_paper_chunk_0193", + "start_position": 84425, + "end_position": 84985, + "page_index": 32, + "word_count": 59, + "char_count": 560 + }, + "has_embedding": false + }, + { + "content": ">Action 1 Observation1Search[Adam Clayton Powell] Could not find [Adam Clayton Powell]. Similar: ['Adam Clayton Powell
III','Seventh Avenue (Manhattan)','Adam Clayton Powell Jr. State Office Building','Isabel Washington Powell','Adam Powell','Adam Clayton Powell
Thought 2(film)','Giancarlo Esposito'].", + "metadata": { + "source_file": "React_paper", + "chunk_index": 194, + "chunk_id": "React_paper_chunk_0194", + "start_position": 84985, + "end_position": 85422, + "page_index": 32, + "word_count": 30, + "char_count": 437 + }, + "has_embedding": false + }, + { + "content": "Adam Clayton Powell
Thought 2(film)','Giancarlo Esposito']. To find the documentary, I can search Adam Clayton Powell (film).
Action 2 Observation 2Search[Adam Clayton Powell (film) ] Adam ciayton Powell is a 1989 American documentary film directed by
Richard Kilberg.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 195, + "chunk_id": "React_paper_chunk_0195", + "start_position": 85422, + "end_position": 85783, + "page_index": 32, + "word_count": 35, + "char_count": 361 + }, + "has_embedding": false + }, + { + "content": "on Powell is a 1989 American documentary film directed by
Richard Kilberg. The film is about the rise and fall of influential African-American politician Adam Clayton Powell Jr.[3] [4] It was later aired
Thought 3as part of the PBs series The American Experience. Adam Clayton Powell (film) is a documentary about an African-American
politician, not Finnish rock groups.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 196, + "chunk_id": "React_paper_chunk_0196", + "start_position": 85783, + "end_position": 86231, + "page_index": 32, + "word_count": 55, + "char_count": 448 + }, + "has_embedding": false + }, + { + "content": "documentary about an African-American
politician, not Finnish rock groups. so the documentary about Finnish rock groups must instead be The Saimaa Gesture.
Action 3Finish[The Saimaa Gesture]
QuestionWhat profession does Nicholas Ray and Elia Kazan have in common?
Thought1I need to search Nicholas Ray and Elia Kazan, find their professions, then find the profession they have in common.
Action 1Search [Nicholas Ray]
Observation 1Nicholas Ray (born Raymond Nicholas Kienzle Jr., August 7, 1911 – June 16, 1979) was an American film director, screenwriter, and actor best known for
the 1955 film Rebel Without a Cause.
Thought 2Professions of Nicholas Ray are director, screenwriter, and actor.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 197, + "chunk_id": "React_paper_chunk_0197", + "start_position": 86231, + "end_position": 87133, + "page_index": 32, + "word_count": 96, + "char_count": 902 + }, + "has_embedding": false + }, + { + "content": "td>
Thought 2Professions of Nicholas Ray are director, screenwriter, and actor. I need to search Elia Kazan next and find his professions.
Action 2Search[Elia Kazan]
Observation 2Elia Kazan was an American film and theatre director, producer, screenwriter
and actor.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 198, + "chunk_id": "React_paper_chunk_0198", + "start_position": 87133, + "end_position": 87498, + "page_index": 32, + "word_count": 35, + "char_count": 365 + }, + "has_embedding": false + }, + { + "content": "s an American film and theatre director, producer, screenwriter
and actor. Professions of Elia Kazan are director, producer, screenwriter, and actor.
Thought 3So profession Nicholas Ray and Elia Kazan have in common is director,
screenwriter, and actor.
Action 3Finish[director, screenwriter, actor]
which magazine was started first Arthur's Magazine or First for Women?
Question Thought 1I need to search Arthur's Magazine and First for Women, and find which was
started first.
Action 1Search [Arthur's Magazine]
Observation 1Arthur's Magazine (1844-1846) was an American literary periodical published
in Philadelphia in the 19th century.
Thought 2Arthur's Magazine was started in 1844.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 199, + "chunk_id": "React_paper_chunk_0199", + "start_position": 87498, + "end_position": 88496, + "page_index": 32, + "word_count": 86, + "char_count": 998 + }, + "has_embedding": false + }, + { + "content": "in the 19th century.
Thought 2Arthur's Magazine was started in 1844. I need to search First for Women
next.
Action 2Search[First for Women]
Observation 2First for Women is a woman's magazine published by Bauer Media Group in the
UsA.[1] The magazine was started in 1989.
Thought 3First for Women was started in 1989.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 200, + "chunk_id": "React_paper_chunk_0200", + "start_position": 88496, + "end_position": 89005, + "page_index": 32, + "word_count": 47, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "agazine was started in 1989.
Thought 3First for Women was started in 1989. 1844 (Arthur's Magazine) < 1989 (First
for Women), so Arthur's Magazine was started first.
Action 3Finish [Arthur's Magazine]
were Pavel Urysohn and Leonid Levin known for the same type of work?
Question
Thought 1
I need to search Pavel Urysohn and Leonid Levin, find their types of work,
then find if they are the same.
Action 1
Search[Pavel Urysohn]
", + "metadata": { + "source_file": "React_paper", + "chunk_index": 201, + "chunk_id": "React_paper_chunk_0201", + "start_position": 89005, + "end_position": 90645, + "page_index": 32, + "word_count": 62, + "char_count": 1640 + }, + "has_embedding": false + }, + { + "content": "td>Search[Pavel Urysohn] Hotpot QA Prompts – Continued from previous page
Observation1Pavel Samuilovich Urysohn (February 3, 1898 – August 17, 1924) was a Sovietmathematician who is best known for his contributions in dimension theory.
Thought 2Pavel Urysohn is a mathematician.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 202, + "chunk_id": "React_paper_chunk_0202", + "start_position": 90645, + "end_position": 91076, + "page_index": 32, + "word_count": 38, + "char_count": 431 + }, + "has_embedding": false + }, + { + "content": "s in dimension theory.
Thought 2Pavel Urysohn is a mathematician. I need to search Leonid Levin next and
Action 2find its type of work.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 203, + "chunk_id": "React_paper_chunk_0203", + "start_position": 91076, + "end_position": 91290, + "page_index": 32, + "word_count": 22, + "char_count": 214 + }, + "has_embedding": false + }, + { + "content": "rch Leonid Levin next and
Action 2find its type of work. Search[Leonid Levin]
Observation 2Leonid Anatolievich Levin is a soviet-American mathematician and computer
Thought 3scientist.
Leonid Levin is a mathematician and computer scientist.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 204, + "chunk_id": "React_paper_chunk_0204", + "start_position": 91290, + "end_position": 91706, + "page_index": 32, + "word_count": 29, + "char_count": 416 + }, + "has_embedding": false + }, + { + "content": "
Leonid Levin is a mathematician and computer scientist. So Pavel Urysohn
Action 3Finish[yes]and Leonid Levin have the same type of work.
C.2 FEVER", + "metadata": { + "source_file": "React_paper", + "chunk_index": 205, + "chunk_id": "React_paper_chunk_0205", + "start_position": 91706, + "end_position": 91968, + "page_index": 32, + "word_count": 22, + "char_count": 262 + }, + "has_embedding": false + }, + { + "content": "inish[yes]and Leonid Levin have the same type of work. C.2 FEVER
FEVER Prompts
OriginalDetermine if there is Observation that suppoRTs or REFuTEs a Claim, or if there is NOT ENOUGH INFORMATION.
claimNikolaj Coster-waldau worked with the Fox Broadcasting Company.
AnswerSUPPORTS
claim AnswerStranger Things is set in Bloomington, Indiana.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 206, + "chunk_id": "React_paper_chunk_0206", + "start_position": 91968, + "end_position": 92472, + "page_index": 32, + "word_count": 45, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "d>SUPPORTS
claim AnswerStranger Things is set in Bloomington, Indiana. REFUTES
claimBeautiful reached number two on the Billboard Hot 100 in 2003. NOT ENOUGH INFO
Answer ActDetermine if there is Observation that suppoRTs or REFuTEs a Claim, or if there is NOT ENOUGH INFORMATION.
claim Action2 Observation 1Nikolaj Coster-waldau worked with the Fox Broadcasting Company.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 207, + "chunk_id": "React_paper_chunk_0207", + "start_position": 92472, + "end_position": 92950, + "page_index": 32, + "word_count": 50, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": ">claim Action2 Observation 1Nikolaj Coster-waldau worked with the Fox Broadcasting Company. Search [Nikolaj Coster-Waldau] Nikolaj william Coster-Waldau (born 27 July 1970) is a Danish actor and producer. He graduated from the Danish National school of Performing Arts in Copenhagen in 1993, [1] and had his breakthrough role in Denmark with the film Nightwatch (1994).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 208, + "chunk_id": "React_paper_chunk_0208", + "start_position": 92950, + "end_position": 93328, + "page_index": 32, + "word_count": 54, + "char_count": 378 + }, + "has_embedding": false + }, + { + "content": "in Copenhagen in 1993, [1] and had his breakthrough role in Denmark with the film Nightwatch (1994). He played Jaime Lannister in the HBo fantasy drama series Game of Thrones, for which he received two Primetime Emmy Award nominations for Outstanding Supporting Actor in a Drama Series.. Coster-waldau has appeared in numerous films in his native Denmark and
(2013).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 209, + "chunk_id": "React_paper_chunk_0209", + "start_position": 93328, + "end_position": 93720, + "page_index": 32, + "word_count": 58, + "char_count": 392 + }, + "has_embedding": false + }, + { + "content": "er-waldau has appeared in numerous films in his native Denmark and
(2013). In the U.S, his debut film role was in the war film Black Hawk Down (2001), playing Medal of Honor recipient Gary Gordon.[2] He then played a detective in the short-lived Fox television series New Amsterdam (2008), and appeared in the 20o9 Fox television film Virtuality, originally intended as apilot.
Action 2Finish[SUPPORTS] Stranger Things is set in Bloomington, Indiana.
Claim Action1 Observation1Search[stranger Things] Stranger Things is an American science fiction horror drama television series created by the Duffer Brothers.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 210, + "chunk_id": "React_paper_chunk_0210", + "start_position": 93720, + "end_position": 94408, + "page_index": 32, + "word_count": 88, + "char_count": 688 + }, + "has_embedding": false + }, + { + "content": "Things is an American science fiction horror drama television series created by the Duffer Brothers. set in the 1980s, primarily in
the fictional town of Hawkins, Indiana, the series centers on a number of mysteries and supernatural events occurring around the town and their impact on an ensemble of child and adult characters.
Action 2Finish [REFUTES]
claim Action1Beautiful reached number two on the Billboard Hot 100 in 2003.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 211, + "chunk_id": "React_paper_chunk_0211", + "start_position": 94408, + "end_position": 94915, + "page_index": 32, + "word_count": 65, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "td>
claim Action1Beautiful reached number two on the Billboard Hot 100 in 2003. Search[Beautiful]
Observation 1Could not find [Beautiful]. Similar: ['Beautiful','Beautiful, Beautiful', 'A Beautiful Mind (film)', 'Beautiful (Christina Aguilera song)', 'Life Is
Beautiful'].", + "metadata": { + "source_file": "React_paper", + "chunk_index": 212, + "chunk_id": "React_paper_chunk_0212", + "start_position": 94915, + "end_position": 95310, + "page_index": 32, + "word_count": 30, + "char_count": 395 + }, + "has_embedding": false + }, + { + "content": "Beautiful (Christina Aguilera song)', 'Life Is
Beautiful']. Search[Beautiful (Christina Aguilera song)
Action 2 Observation 2"Beautiful" is a song recorded by American singer Christina Aguilera for her fourth studio album, stripped (20o2).
Action 3Lookup[Billboard Hot 100] (Result 1 / 3) The song peaked at number two on the Billboard Hot 100 in the
Observation 3United states, where it was certified Gold for 500,o00 units shipped.
Action 4Finish [NOT ENOUGH INFO]
Determine if there is Observation that suppoRTs or REFuTEs a Claim, or if
COTthere is NOT ENOUGH INFORMATION.
Nikolaj Coster-waldau worked with the Fox Broadcasting Company.
claimNikolaj william Coster-waldau appeared in the 2009 Fox television film
Thought
Virtuality, so he has worked with the Fox Broadcasting Company.
SUPPORTS
Answer
claim
Stranger Things is set in Bloomington, Indiana.
Stranger Things is in the fictional town of Hawkins, Indiana, not in
Thought
Bloomington, Indiana.
Answer
REFUTES
Continued on next page
", + "metadata": { + "source_file": "React_paper", + "chunk_index": 213, + "chunk_id": "React_paper_chunk_0213", + "start_position": 95310, + "end_position": 98595, + "page_index": 32, + "word_count": 126, + "char_count": 3285 + }, + "has_embedding": false + }, + { + "content": "d>Continued on next page Fever Prompts – Continued from previous page
claim Thought AnswerBeautiful reached number two on the Billboard Hot 100 in 2003. The song peaked at number two on the Billboard Hot 100 in the United states, but not sure if it was in 2003.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 214, + "chunk_id": "React_paper_chunk_0214", + "start_position": 98595, + "end_position": 98956, + "page_index": 32, + "word_count": 47, + "char_count": 361 + }, + "has_embedding": false + }, + { + "content": "peaked at number two on the Billboard Hot 100 in the United states, but not sure if it was in 2003. NOT ENOUGH INFO
ReActDetermine if there is Observation that suPPoRTS or REFUTES a Claim, or if there is NOT ENOUGH INFORMATION.
claimNikolaj Coster-Waldau worked with the Fox Broadcasting Company. I need to search Nikolaj Coster-Waldau and find if he has worked with the
Thought1 Action 1Fox Broadcasting Company.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 215, + "chunk_id": "React_paper_chunk_0215", + "start_position": 98956, + "end_position": 99447, + "page_index": 32, + "word_count": 66, + "char_count": 491 + }, + "has_embedding": false + }, + { + "content": "find if he has worked with the
Thought1 Action 1Fox Broadcasting Company. Search[Nikolaj Coster-Waldau] Nikolaj William Coster-Waldau (born 27 July 1970) is a Danish actor and
Observation 1producer. He graduated from the Danish National School of Performing Arts in Copenhagen in 1993, [1] and had his breakthrough role in Denmark with the film Nightwatch (1994).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 216, + "chunk_id": "React_paper_chunk_0216", + "start_position": 99447, + "end_position": 99862, + "page_index": 32, + "word_count": 53, + "char_count": 415 + }, + "has_embedding": false + }, + { + "content": "in Copenhagen in 1993, [1] and had his breakthrough role in Denmark with the film Nightwatch (1994). He played Jaime Lannister in the HBo fantasy drama series Game of Thrones, for which he received two Primetime Emmy Award nominations for Outstanding Supporting Actor in a Drama Series.. Coster-Waldau has appeared in numerous films in his native Denmark and Scandinavia, including Headhunters (2011) and A Thousand Times Good Night (2013).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 217, + "chunk_id": "React_paper_chunk_0217", + "start_position": 99862, + "end_position": 100302, + "page_index": 32, + "word_count": 69, + "char_count": 440 + }, + "has_embedding": false + }, + { + "content": "native Denmark and Scandinavia, including Headhunters (2011) and A Thousand Times Good Night (2013). In the U.S, his debut film role was in the war film Black Hawk Down
(2001), playing Medal of Honor recipient Gary Gordon.[2] He then played a detective in the short-lived Fox television series New Amsterdam (2008), and appeared in the 20o9 Fox television film virtuality, originally intended as a pilot.
Thought 2Because he "appeared in the 2oo9 Fox television film virtuality", he should have worked with the Fox Broadcasting Company.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 218, + "chunk_id": "React_paper_chunk_0218", + "start_position": 100302, + "end_position": 100900, + "page_index": 32, + "word_count": 83, + "char_count": 598 + }, + "has_embedding": false + }, + { + "content": "2oo9 Fox television film virtuality", he should have worked with the Fox Broadcasting Company. Finish[SUPPORTS]
Claim Thought1Stranger Things is set in Bloomington, Indiana.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 219, + "chunk_id": "React_paper_chunk_0219", + "start_position": 100900, + "end_position": 101131, + "page_index": 32, + "word_count": 22, + "char_count": 231 + }, + "has_embedding": false + }, + { + "content": "td>
Claim Thought1Stranger Things is set in Bloomington, Indiana. I should search for stranger Things, and see if it is set in Bloomington, Indiana.
Action 1Search [stranger Things] Stranger Things is an American science fiction horror drama television
Observation 1series created by the Duffer Brothers.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 220, + "chunk_id": "React_paper_chunk_0220", + "start_position": 101131, + "end_position": 101522, + "page_index": 32, + "word_count": 42, + "char_count": 391 + }, + "has_embedding": false + }, + { + "content": "orror drama television
Observation 1series created by the Duffer Brothers. set in the 198os, primarily in the fictional town of Hawkins, Indiana, the series centers on a number of mysteries and supernatural events occurring around the town and their impact
Thought 2on an ensemble of child and adult characters.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 221, + "chunk_id": "React_paper_chunk_0221", + "start_position": 101522, + "end_position": 101885, + "page_index": 32, + "word_count": 47, + "char_count": 363 + }, + "has_embedding": false + }, + { + "content": "wn and their impact
Thought 2on an ensemble of child and adult characters. The observation says that it is set in a "fictional town of Hawkins,
Action 2Indiana", so it is not set in Bloomington.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 222, + "chunk_id": "React_paper_chunk_0222", + "start_position": 101885, + "end_position": 102141, + "page_index": 32, + "word_count": 33, + "char_count": 256 + }, + "has_embedding": false + }, + { + "content": "l town of Hawkins,
Action 2Indiana", so it is not set in Bloomington. Finish[REFUTES]
Beautiful reached number two on the Billboard Hot 100 in 2003.
Claim Thought 1I need to search the song Beautiful and find if it reached number two on the Billboard Hot 100 in 2003.
Action 1Search[Beautiful]
Observation 1Could not find [Beautiful].", + "metadata": { + "source_file": "React_paper", + "chunk_index": 223, + "chunk_id": "React_paper_chunk_0223", + "start_position": 102141, + "end_position": 102610, + "page_index": 32, + "word_count": 50, + "char_count": 469 + }, + "has_embedding": false + }, + { + "content": "ction 1Search[Beautiful]
Observation 1Could not find [Beautiful]. Similar: ['Beautiful','Beautiful, Beautiful', 'A Beautiful Mind (film)','Beautiful (Christina Aguilera song)','Life Is
Beautiful'].", + "metadata": { + "source_file": "React_paper", + "chunk_index": 224, + "chunk_id": "React_paper_chunk_0224", + "start_position": 102610, + "end_position": 102918, + "page_index": 32, + "word_count": 17, + "char_count": 308 + }, + "has_embedding": false + }, + { + "content": ";Beautiful (Christina Aguilera song)','Life Is
Beautiful']. From suggestions, I should search "Beautiful (Christina Aguilera song)" to
Thought 2find the song.
Action 2Search [Beautiful (Christina Aguilera song)] "Beautiful" is a song recorded by American singer Christina Aguilera for her
Observation 2fourth studio album, Stripped (2002).
Thought 3It does not mention Billboard, so I need to look up "Billboard Hot 10o" to find if it reached number two on it in 2003.
Action 3Lookup[Billboard Hot 100]
Observation 3(Result 1 / 3) The song peaked at number two on the Billboard Hot 100 in the
United states, where it was certified Gold for 5o0,ooo units shipped.
if it was in 2003.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 225, + "chunk_id": "React_paper_chunk_0225", + "start_position": 102918, + "end_position": 103905, + "page_index": 32, + "word_count": 99, + "char_count": 987 + }, + "has_embedding": false + }, + { + "content": "d for 5o0,ooo units shipped.
if it was in 2003. I am not sure if this claim is true or not.
It only says the song peaked at number two on the Billboard Hot ioo, but not
Thought 4
Action 4
Finish [NOT ENOUGH INFO]
", + "metadata": { + "source_file": "React_paper", + "chunk_index": 226, + "chunk_id": "React_paper_chunk_0226", + "start_position": 103905, + "end_position": 105696, + "page_index": 32, + "word_count": 40, + "char_count": 1791 + }, + "has_embedding": false + }, + { + "content": "Finish [NOT ENOUGH INFO] # C.3 WEBSHOP", + "metadata": { + "source_file": "React_paper", + "chunk_index": 227, + "chunk_id": "React_paper_chunk_0227", + "start_position": 105696, + "end_position": 105810, + "page_index": 32, + "word_count": 7, + "char_count": 114 + }, + "has_embedding": false + }, + { + "content": "T ENOUGH INFO] # C.3 WEBSHOP [B078GWRC1J] \nBright Citrus Deodorant by Earth Mama | Natural and Safe for \nSensitive Skin, Pregnancy and Breastfeeding, Contains Organic \nCalendula 3-Ounce \n\\$10.99 \n[B078GTKVXY] \nGinger Fresh Deodorant by Earth Mama | Natural and Safe for \nSensitive Skin, Pregnancy and Breastfeeding, Contains Organic \nCalendula 3-Ounce \n\\$10.99 \n[B08KBVJ4XN] \nBarrel and Oak - Aluminum-Free Deodorant, Deodorant for Men \n, Essential Oil-Based Scent, 24-Hour Odor Protection, Cedar \n& Patchouli Blend, Gentle on Sensitive Skin (Mountain Sage, \n2.7 oz, 2-Pack) \n\\$15.95 Action: click [B078GWRC1J] \nObservation: \n[Back to Search] \n[Prev] \nscent [assorted scents][bright citrus][calming lavender][ginger [fresh] simply non-scents] \nsize [travel set (4-pack)][3 ounce (pack of 1)][3-ounce (2 -pack)] \nBright Citrus Deodorant by Earth Mama I Natural and Safe for Sensitive Skin, Pregnancy and Breastfeeding, Contains Organic Calendula 3-Ounce \nPrice: $\\$ 10.99$ \nRating: N.A.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 228, + "chunk_id": "React_paper_chunk_0228", + "start_position": 105810, + "end_position": 106867, + "page_index": 32, + "word_count": 132, + "char_count": 1057 + }, + "has_embedding": false + }, + { + "content": "in, Pregnancy and Breastfeeding, Contains Organic Calendula 3-Ounce \nPrice: $\\$ 10.99$ \nRating: N.A. [Description] \n[Features] \n[Reviews] \n[Buy Now] Action: click[bright citrus] Observation: You have clicked bright citrus. Action: click[3 ounce (pack of 1)] Observation: You have clicked 3 ounce (pack of 1). Action: click[Buy Now] Action: think[B078GWRC1J and B078GTKVXY are bright citrus deodorant less then 50 dollars. I can check B078GWRC1J first. Observation: OK.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 229, + "chunk_id": "React_paper_chunk_0229", + "start_position": 106867, + "end_position": 107335, + "page_index": 32, + "word_count": 64, + "char_count": 468 + }, + "has_embedding": false + }, + { + "content": "Observation: OK. Action: click [B078GWRC1J] \nObservation: \n[Back to Search] \n[Prev] \nscent [assorted scents][bright citrus][calming lavender][ginger [fresh] simply non-scents] \nsize [travel set (4-pack)][3 ounce (pack of 1)][3-ounce (2 -pack)] \nBright Citrus Deodorant by Earth Mama | Natural and Safe for Sensitive Skin, Pregnancy and Breastfeeding, Contains Organic Calendula 3-Ounce \nPrice: \\$10.99 \nRating: N.A.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 230, + "chunk_id": "React_paper_chunk_0230", + "start_position": 107335, + "end_position": 107750, + "page_index": 32, + "word_count": 52, + "char_count": 415 + }, + "has_embedding": false + }, + { + "content": "Skin, Pregnancy and Breastfeeding, Contains Organic Calendula 3-Ounce \nPrice: \\$10.99 \nRating: N.A. [Description] \n[Features] \n[Reviews] \n[Buy Now] \nAction: think[For 3 ounce bottle of bright citrus deodorant for sensitive skin, the item has options 'bright citrus' \nand '3 ounce (pack of 1)' and seems good to buy.] \nObservation: OK. Action: click[bright citrus] \nObservation: You have clicked bright citrus. Action: click[3 ounce (pack of 1)] \nObservation: You have clicked 3 ounce (pack of 1).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 231, + "chunk_id": "React_paper_chunk_0231", + "start_position": 107750, + "end_position": 108246, + "page_index": 32, + "word_count": 72, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "Action: click[3 ounce (pack of 1)] \nObservation: You have clicked 3 ounce (pack of 1). Action: click[Buy Now] # C.4 ALFWORLD You are in the middle of a room.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 232, + "chunk_id": "React_paper_chunk_0232", + "start_position": 108246, + "end_position": 108403, + "page_index": 32, + "word_count": 29, + "char_count": 157 + }, + "has_embedding": false + }, + { + "content": "Action: click[Buy Now] # C.4 ALFWORLD You are in the middle of a room. Looking quickly around you, you see a cabinet 13, a cabinet 12, a cabinet 11, a cabinet 10, a cabinet 9, a cabinet 8, a cabinet 7, a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 1, a diningtable 1, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 233, + "chunk_id": "React_paper_chunk_0233", + "start_position": 108403, + "end_position": 108922, + "page_index": 32, + "word_count": 108, + "char_count": 519 + }, + "has_embedding": false + }, + { + "content": "a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1. Your task is to: put a clean lettuce in diningtable. $>$ think: To solve the task, I need to find and take a lettuce, then clean it with sinkbasin, then put it in diningtable. OK. > think: First I need to find a lettuce. A lettuce is more likely to appear in fridge (1), diningtable (1), sinkbasin (1), stoveburner (1-3), cabinet (1-13). I can check one by one, starting with fridge 1. OK.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 234, + "chunk_id": "React_paper_chunk_0234", + "start_position": 108922, + "end_position": 109411, + "page_index": 32, + "word_count": 92, + "char_count": 489 + }, + "has_embedding": false + }, + { + "content": "OK. > go to fridge 1 \nThe fridge 1 is closed. > open fridge 1 \nYou open the fridge 1. The fridge 1 is open. In it, you see a cup 3, a egg 2, a potato 3, and a potato 2. > go to diningtable 1 \nOn the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a fork 2, a knife 2, a knife 1, a ladle 1, a lettuce 1, a mug 2, a mug 1, a pan 2, a peppershaker 1, a spatula 3, a tomato 2, and a tomato 1. > think: Now I find a lettuce (1). Next, I need to take it. OK.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 235, + "chunk_id": "React_paper_chunk_0235", + "start_position": 109411, + "end_position": 109886, + "page_index": 32, + "word_count": 117, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": "OK. $>$ take lettuce 1 from diningtable 1 \nYou pick up the lettuce 1 from the diningtable 1. $>$ think: Now I take a lettuce (1). Next, I need to go to sinkbasin (1) and clean it. OK. > go to sinkbasin 1 \nOn the sinkbasin 1, you see a apple 2, a ladle 2, a spoon 1, and a tomato 3. > clean lettuce 1 with sinkbasin 1 \nYou clean the lettuce 1 using the sinkbasin 1. $>$ think: Now I clean a lettuce (1). Next, I need to put it in/on diningtable 1. OK.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 236, + "chunk_id": "React_paper_chunk_0236", + "start_position": 109886, + "end_position": 110336, + "page_index": 32, + "word_count": 96, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "OK. $>$ go to diningtable 1 \nOn the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a for 2, a knife 2, a knife 1, a ladle 1, a mug 2, a mug 1, a pan 2, a peppershaker 1, a spatula 3, a tomato 2, and a tomato 1. > put lettuce 1 in/on diningtable 1 \nYou put the lettuce 1 in/on the diningtable 1. Table 9: An ReAct– IM prompt on the ALFWorld clean task.
You are in the middle of a room.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 237, + "chunk_id": "React_paper_chunk_0237", + "start_position": 110336, + "end_position": 110768, + "page_index": 32, + "word_count": 93, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "
You are in the middle of a room. Looking quickly around you, you see a cabinet 13, a cabinet 12, a cabinet 11, a cabinet 10, a cabinet 9, a cabinet 8, a cabinet
7, a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 1, a diningtable 1, a drawer 1, a fridge 1, a
garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a
stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: put a clean lettuce in diningtable.
> think: To solve the task, I need to find and take a lettuce, then clean it with
OK.sinkbasin, then put it in diningtable.
> think: First I need to find a lettuce.
OK.
> go to fridge 1
The fridge 1 is closed.
> think: First I need to find a lettuce.
OK.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 238, + "chunk_id": "React_paper_chunk_0238", + "start_position": 110768, + "end_position": 112211, + "page_index": 32, + "word_count": 154, + "char_count": 1443 + }, + "has_embedding": false + }, + { + "content": "> think: First I need to find a lettuce.
OK. > open fridge 1
You open the fridge 1. The fridge 1 is open.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 239, + "chunk_id": "React_paper_chunk_0239", + "start_position": 112211, + "end_position": 112491, + "page_index": 32, + "word_count": 22, + "char_count": 280 + }, + "has_embedding": false + }, + { + "content": "The fridge 1 is open. In it, you see a cup 3, a egg 2, a
potato 3, and a potato 2.
OK.> think: First I need to find a lettuce.
>go to diningtable 1
on the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a
fork 2, a knife 2, a knife 1, a ladle 1, a lettuce 1, a mug 2, a mug 1, a pan 2, a
peppershaker 1, a spatula 3, a tomato 2, and a tomato 1.
OK.> think: First I need to find a lettuce.
> take lettuce 1 from diningtable 1
You pick up the lettuce 1 from the diningtable 1.
> think: I need to clean this lettuce (1) using sinkbasin 1.
OK.
>go to sinkbasin 1
On the sinkbasin 1, you see a apple 2, a ladle 2, a spoon 1, and a tomato 3.
OK.> think: I need to clean this lettuce (1) using sinkbasin 1.
> clean lettuce 1 with sinkbasin 1
> think: I need to put this cleaned lettuce (1) in/on diningtable 1.You clean the lettuce 1 using the sinkbasin 1.
OK.
>go to diningtable 1
on the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a for
2, a knife 2, a knife 1, a ladle 1, a mug 2, a mug 1, a pan 2, a peppershaker 1, a
spatula 3, a tomato 2, and a tomato 1.
>think: I need to put this cleaned lettuce (1) in/on diningtable 1.
OK.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 240, + "chunk_id": "React_paper_chunk_0240", + "start_position": 112491, + "end_position": 115179, + "page_index": 32, + "word_count": 239, + "char_count": 2688 + }, + "has_embedding": false + }, + { + "content": "able 1.
OK. > put lettuce 1 in/on diningtable 1
D TRAJECTORIES # D.1 FEVER TRAJECTORIES We provide some trajectories produced by ReAct, CoTand Acton several randomly selected examples from the FEVER dev set below. Search results are omitted to space. Example 2491 (gt: REFUTES)", + "metadata": { + "source_file": "React_paper", + "chunk_index": 241, + "chunk_id": "React_paper_chunk_0241", + "start_position": 115179, + "end_position": 115602, + "page_index": 32, + "word_count": 44, + "char_count": 423 + }, + "has_embedding": false + }, + { + "content": "Example 2491 (gt: REFUTES)
ReAct
Claim:Bermuda Triangle is a loosely-defined region in the Pacific Ocean.
Thought 1:I need to search Bermuda Triangle and find if it is in the Pacific Ocean.
Action 1:Search [Bermuda Triangle]
Observation 1:Reportedly haunted locations...
Thought 2:Ocean, so it is not in the Pacific Ocean.The observation says that it is in the western part of the North Atlantic
Action 2:Finish [REFUTES]
Observation 2:Episode finished
Act
Claim:Bermuda Triangle is a loosely-defined region in the Pacific Ocean.
Action1: Search [Bermuda Triangle]
Observation1: Reportedly haunted locations:...
Action 2:Finish [REFUTES]
Observation 2:Episode finished
COT
Claim:Bermuda Triangle is a loosely-defined region in the Pacific Ocean.
Thought:Let's think step by step.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 242, + "chunk_id": "React_paper_chunk_0242", + "start_position": 115602, + "end_position": 117267, + "page_index": 32, + "word_count": 93, + "char_count": 1665 + }, + "has_embedding": false + }, + { + "content": "c Ocean.
Thought:Let's think step by step. The Bermuda Triangle is a loosely-defined region
Answer:REFUTESin the Atlantic Ocean. The Pacific Ocean is not the Atlantic Ocean.
Example 5908 (gt: SUPPORTS)", + "metadata": { + "source_file": "React_paper", + "chunk_index": 243, + "chunk_id": "React_paper_chunk_0243", + "start_position": 117267, + "end_position": 117615, + "page_index": 32, + "word_count": 28, + "char_count": 348 + }, + "has_embedding": false + }, + { + "content": "The Pacific Ocean is not the Atlantic Ocean.
Example 5908 (gt: SUPPORTS)
ReAct
Claim:Princess Mononoke is a film.I need to search Princess Mononoke and find if it is a film.
Thought 1:
Action 1:Search [Princess Mononoke]
Observation 1:Princess Mononoke
Thought 2:From the observation, it says that Princess Mononoke is a film.
Action 2:Finish[SUPPORTS]
Observation 2:Episode finished
Act
Claim:Princess Mononoke is a film.
Action 1:Search [Princess Mononoke]
Observation 1:Princess Mononoke
Action 2:Finish [SUPPORTS]
Observation 2:Episode finished
COT Claim:
Thought:Princess Mononoke is a film.Let's think step by step.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 244, + "chunk_id": "React_paper_chunk_0244", + "start_position": 117615, + "end_position": 118826, + "page_index": 32, + "word_count": 71, + "char_count": 1211 + }, + "has_embedding": false + }, + { + "content": "td>
Thought:Princess Mononoke is a film.Let's think step by step. Princess Mononoke is a movie, and movies are
films.
Answer:SUPPORTS
Example 1951 (gt: REFUTES)", + "metadata": { + "source_file": "React_paper", + "chunk_index": 245, + "chunk_id": "React_paper_chunk_0245", + "start_position": 118826, + "end_position": 119109, + "page_index": 32, + "word_count": 21, + "char_count": 283 + }, + "has_embedding": false + }, + { + "content": "Answer:SUPPORTS Example 1951 (gt: REFUTES)
ReAct
Claim:Soyuz was part of the American space program.
Thought 1:I need to search Soyuz and find if it was part of the American space program.
Action 1:Search [Soyuz]
Observation 1:Soyuz is a transliteration...
Thought 2:It does not mention the American space program, so I need to search
"American space program" to find if it was part of it.
Action 2:Search [American space program]
Observation 2:The space policy...
Thought 3:It does not mention Soyuz, so I am not sure if this claim is true or not.
Action 3:Finish [NOT ENOUGH INFO]
Observation 3:Episode finished
Act
Claim:Soyuz was part of the American space program.
Action 1:Search [Soyuz]
Observation 1:Soyuz is a transliteration...
Action 2:
Observation 2:Finish [NOT ENOUGH INFO]
Episode finished
COT
Claim:Soyuz was part of the American space program.
Thought:Let's think step by step.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 246, + "chunk_id": "React_paper_chunk_0246", + "start_position": 119109, + "end_position": 121230, + "page_index": 32, + "word_count": 118, + "char_count": 2121 + }, + "has_embedding": false + }, + { + "content": "/td>
Thought:Let's think step by step. Soyuz is a Russian spacecraft. The American
space program is NASA.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 247, + "chunk_id": "React_paper_chunk_0247", + "start_position": 121230, + "end_position": 121504, + "page_index": 32, + "word_count": 15, + "char_count": 274 + }, + "has_embedding": false + }, + { + "content": "d>
space program is NASA. NAsA and Russia have worked together on the
International Space Station.
Answer:
SUPPORTS
Example 3208 (gt: REFUTES)", + "metadata": { + "source_file": "React_paper", + "chunk_index": 248, + "chunk_id": "React_paper_chunk_0248", + "start_position": 121504, + "end_position": 121907, + "page_index": 32, + "word_count": 18, + "char_count": 403 + }, + "has_embedding": false + }, + { + "content": "tr>SUPPORTS Example 3208 (gt: REFUTES)
ReAct
Claim:I need to search for Reign Over Me and find if it is an American film madeReign Over Me is an American film made in 2010.
Thought 1:in 2010.
Action 1:Search [Reign Over Me]
Observation 1: Thought 2:Reign Over Me ...
made in 2010.The observation says that it is an American film made in 2007, so it is not
Action 2:Finish [REFUTES]
Observation 2:Episode finished
Act
Claim:Reign Over Me is an American film made in 2010.
Action 1:Search [Reign Over Me]
Action 2:Finish [SUPPORTS]
Observation 2:Episode finished
COT
Claim:Reign Over Me is an American film made in 2010.
Thought:Let's think step by step.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 249, + "chunk_id": "React_paper_chunk_0249", + "start_position": 121907, + "end_position": 123463, + "page_index": 32, + "word_count": 94, + "char_count": 1556 + }, + "has_embedding": false + }, + { + "content": "/td>
Thought:Let's think step by step. First, is Reign Over Me an American film?Yes,
it is. Second, was it made in 2010?", + "metadata": { + "source_file": "React_paper", + "chunk_index": 250, + "chunk_id": "React_paper_chunk_0250", + "start_position": 123463, + "end_position": 123860, + "page_index": 32, + "word_count": 20, + "char_count": 397 + }, + "has_embedding": false + }, + { + "content": "Second, was it made in 2010? Yes, it was.
Answer:
SUPPORTS
", + "metadata": { + "source_file": "React_paper", + "chunk_index": 251, + "chunk_id": "React_paper_chunk_0251", + "start_position": 123860, + "end_position": 124915, + "page_index": 32, + "word_count": 9, + "char_count": 1055 + }, + "has_embedding": false + }, + { + "content": "> # D.2 ALFWORLD TRAJECTORIES We provide an example trajectory of ReAct, Act, and ReAct – IM on the same ALFWorld game, pick_clean_then_place_in_recep-Knife-None-CounterTop-10/ trial_T20190909_110445_675754. D.2.1 REACT TRAJECTORY ReAct is able to correctly find the knife, clean it, and then place it on a countertop. ReAct ALFWorld trajectory", + "metadata": { + "source_file": "React_paper", + "chunk_index": 252, + "chunk_id": "React_paper_chunk_0252", + "start_position": 124915, + "end_position": 125358, + "page_index": 32, + "word_count": 47, + "char_count": 443 + }, + "has_embedding": false + }, + { + "content": "ReAct ALFWorld trajectory
You are in the middle of a room.Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a
countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasil1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster
1.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 253, + "chunk_id": "React_paper_chunk_0253", + "start_position": 125358, + "end_position": 125964, + "page_index": 32, + "word_count": 89, + "char_count": 606 + }, + "has_embedding": false + }, + { + "content": "stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster
1. Your task is to: put a clean knife in countertop.
> think: To solve the task, I need to find and take a knife, then clean it with
sinkbasin, then put it in countertop.
OK.
> think: First I need to find a knife.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 254, + "chunk_id": "React_paper_chunk_0254", + "start_position": 125964, + "end_position": 126573, + "page_index": 32, + "word_count": 54, + "char_count": 609 + }, + "has_embedding": false + }, + { + "content": ">
> think: First I need to find a knife. A knife is more likely to appear in cabinet
(1-6), drawer (1-3), countertop (1-3), fridge (1), garbagecan (1), shelf (1-3),
cabinet 1.sinkbasin (1), stoveburner (1-4), toaster (1).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 255, + "chunk_id": "React_paper_chunk_0255", + "start_position": 126573, + "end_position": 127005, + "page_index": 32, + "word_count": 34, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "/td>
cabinet 1.sinkbasin (1), stoveburner (1-4), toaster (1). I can check one by one, starting wit)
OK.
> go to cabinet 1
> go to cabinet 2on the cabinet 1, you see a bowl 1.
> go to cabinet 3The cabinet 2 is closed.
On the cabinet 3, you see a glassbottle 1.
> go to cabinet 4
> go to cabinet 5On the cabinet 4, you see a mug 1.
The cabinet 5 is closed.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 256, + "chunk_id": "React_paper_chunk_0256", + "start_position": 127005, + "end_position": 127963, + "page_index": 32, + "word_count": 67, + "char_count": 958 + }, + "has_embedding": false + }, + { + "content": "see a mug 1.
The cabinet 5 is closed. > go to cabinet 6
The cabinet 6 is closed.
> go to drawer 1
> go to drawer 2The drawer 1 is closed.
The drawer 2 is closed.
> go to drawer 3
The drawer 3 is closed.
> go to countertop 1
> go to countertop 2on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
On the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a knife 1, a
plate 2, a potato 3, and a statue 1.
> think: Now I find a knife (1).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 257, + "chunk_id": "React_paper_chunk_0257", + "start_position": 127963, + "end_position": 129317, + "page_index": 32, + "word_count": 100, + "char_count": 1354 + }, + "has_embedding": false + }, + { + "content": "d>
> think: Now I find a knife (1). Next, I need to take it.
OK.
> take knife 1 from countertop 2
You pick up the knife 1 from the countertop 2.
OK.> think: Now I take a knife (1).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 258, + "chunk_id": "React_paper_chunk_0258", + "start_position": 129317, + "end_position": 129861, + "page_index": 32, + "word_count": 36, + "char_count": 544 + }, + "has_embedding": false + }, + { + "content": "/td>
OK.> think: Now I take a knife (1). Next, I need to go to sinkbasin (1) and clean it.
> go to sinkbasin 1
On the sinkbasin 1, you see a fork 3, a lettuce 3, and a spatula 2.
> clean knife 1 with sinkbasin 1
You clean the knife 1 using the sinkbasin 1.
> think: Now I clean a knife (1).", + "metadata": { + "source_file": "React_paper", + "chunk_index": 259, + "chunk_id": "React_paper_chunk_0259", + "start_position": 129861, + "end_position": 130575, + "page_index": 32, + "word_count": 59, + "char_count": 714 + }, + "has_embedding": false + }, + { + "content": ">
> think: Now I clean a knife (1). Next, I need to put it in/on countertop 1.
OK.
> go to countertop 1
on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
", + "metadata": { + "source_file": "React_paper", + "chunk_index": 260, + "chunk_id": "React_paper_chunk_0260", + "start_position": 130575, + "end_position": 131169, + "page_index": 32, + "word_count": 39, + "char_count": 594 + }, + "has_embedding": false + }, + { + "content": "ppershaker 1, and a spoon 2. # D.2.2 ACT TRAJECTORY Act is able to correctly ind the knife, but tries to clean it using a sinkbasin before actually going to the sinkbasin. From there on, the model is unable to recover, and is stuck repeating the same sequence of commands. With ReAct, an existing thought would have concretely identifed that the knife had been taken, and that the next subgoal was to go to a sinkbasin to clean it.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 261, + "chunk_id": "React_paper_chunk_0261", + "start_position": 131169, + "end_position": 131672, + "page_index": 32, + "word_count": 79, + "char_count": 503 + }, + "has_embedding": false + }, + { + "content": "tifed that the knife had been taken, and that the next subgoal was to go to a sinkbasin to clean it. Act ALFWorld trajectory
You are in the middle of a room.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 262, + "chunk_id": "React_paper_chunk_0262", + "start_position": 131672, + "end_position": 131853, + "page_index": 32, + "word_count": 32, + "char_count": 181 + }, + "has_embedding": false + }, + { + "content": "Act ALFWorld trajectory
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster
Your task is to: put a clean knife in countertop.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 263, + "chunk_id": "React_paper_chunk_0263", + "start_position": 131853, + "end_position": 132408, + "page_index": 32, + "word_count": 101, + "char_count": 555 + }, + "has_embedding": false + }, + { + "content": ", and a toaster
Your task is to: put a clean knife in countertop. > go to countertop 1 on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2. > go to countertop 2 on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a knife 1, a
plate 2, a potato 3, and a statue 1.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 264, + "chunk_id": "React_paper_chunk_0264", + "start_position": 132408, + "end_position": 132805, + "page_index": 32, + "word_count": 69, + "char_count": 397 + }, + "has_embedding": false + }, + { + "content": "tle 3, a knife 1, a
plate 2, a potato 3, and a statue 1. > take knife 1 from countertop 2 > go to countertop 1You pick up the knife 1 from the countertop 2.
> clean knife 1 with sinkbasin 1 Nothing happens.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 265, + "chunk_id": "React_paper_chunk_0265", + "start_position": 132805, + "end_position": 133108, + "page_index": 32, + "word_count": 43, + "char_count": 303 + }, + "has_embedding": false + }, + { + "content": "ountertop 2.
> clean knife 1 with sinkbasin 1 Nothing happens. > go to countertop 3on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
2, a tomato 1, and a vase 2.on the countertop 3, you see a bread 3, a butterknife 2, a cellphone 1, a creditcard 1, a fork 2, a houseplant 1, a knife 2, a spatula 1, a statue 3, a tomato 3, a tomato
> take knife 2 from countertop 3 Nothing happens.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 266, + "chunk_id": "React_paper_chunk_0266", + "start_position": 133108, + "end_position": 133655, + "page_index": 32, + "word_count": 85, + "char_count": 547 + }, + "has_embedding": false + }, + { + "content": "3, a tomato
> take knife 2 from countertop 3 Nothing happens. > go to countertop 2
potato 3, and a statue 1.on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a plate 2, a
Nothing happens.
> take knife 1 from countertop 2
> go to countertop 1
> clean knife 1 with sinkbasin 1on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
Nothing happens.
> go to countertop 3
2, a tomato l, and a vase 2.on the countertop 3, you see a bread 3, a butterknife 2, a cellphone 1, a creditcard
> take knife 2 from countertop 31, a fork 2, a houseplant 1, a knife 2, a spatula 1, a statue 3, a tomato 3, a tomato
Nothing happens.
> go to countertop 2
potato 3, and a statue 1.on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a plate 2, a
Nothing happens.> take knife 1 from countertop 2
> go to countertop 1
> clean knife 1 with sinkbasin 1on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
Nothing happens.
> go to countertop 3
1, a fork 2, a houseplant 1, a knife 2, a spatula 1, a statue 3, a tomato 3, a tomatoon the countertop 3, you see a bread 3, a butterknife 2, a cellphone 1, a creditcard
2, a tomato 1, and a vase 2.
> take knife 2 from countertop 3
Nothing happens.
> go to countertop 2
on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a plate 2, a
potato 3, and a statue 1.
> take knife 1 from countertop 2
Nothing happens.
> go to countertop 1
on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
> clean knife 1 with sinkbasin 1
", + "metadata": { + "source_file": "React_paper", + "chunk_index": 267, + "chunk_id": "React_paper_chunk_0267", + "start_position": 133655, + "end_position": 138133, + "page_index": 32, + "word_count": 308, + "char_count": 4478 + }, + "has_embedding": false + }, + { + "content": "d>
> clean knife 1 with sinkbasin 1
# D.2.3 REACT-IM TRAJECTORY ReAct –IM is able to correctly find the knife, but is unable to clean it as well. The LLM then gets stuck trying to place this knife on a countertop. One possible issue is the incorrect thought think: I need to find a clean knife., which seems to trick the LLM in believing that the knife is already cleaned.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 268, + "chunk_id": "React_paper_chunk_0268", + "start_position": 138133, + "end_position": 138570, + "page_index": 32, + "word_count": 70, + "char_count": 437 + }, + "has_embedding": false + }, + { + "content": "to find a clean knife., which seems to trick the LLM in believing that the knife is already cleaned. In ReAct, this sequence of subgoals would be concretely captured by each thought. ReAct–IM ALFWorld trajectory
You are in the middle of a room.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 269, + "chunk_id": "React_paper_chunk_0269", + "start_position": 138570, + "end_position": 138829, + "page_index": 32, + "word_count": 43, + "char_count": 259 + }, + "has_embedding": false + }, + { + "content": "ReAct–IM ALFWorld trajectory
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbas 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaste: 1.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 270, + "chunk_id": "React_paper_chunk_0270", + "start_position": 138829, + "end_position": 139294, + "page_index": 32, + "word_count": 92, + "char_count": 465 + }, + "has_embedding": false + }, + { + "content": "1, a sinkbas 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaste: 1. Your task is to: put a clean knife in countertop. > think: To solve the task, I need to find and take a clean knife, then put it in countertop. OK. > think: I need to find a clean knife.
Table 10: Example trajectories for Webshop predicted by Act and ReAct. Compared to Act, ReAct uses reasoning to find products that satisfy all target attributes.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 271, + "chunk_id": "React_paper_chunk_0271", + "start_position": 139294, + "end_position": 139767, + "page_index": 32, + "word_count": 85, + "char_count": 473 + }, + "has_embedding": false + }, + { + "content": "Compared to Act, ReAct uses reasoning to find products that satisfy all target attributes.
Instruction: get me a sixteen pack of apple cinnamon freeze dried banana chips, and price lower than 50.00 dollars
ActReAct
Action: search [sixteen pack apple cinnamon freeze dried bananaAction: seareh [sixteen pack apple cinnamon freeze dried banana
chips] Observation:chips] Observation:
[ Back to Search ][ Back to Search]
Page 1 (Total results: 50)Page 1 (Total results: 50)
[Next][Nex]
[B0061IVFZE][B0061IVFZE]
Brothers-ALL-Natural Fruit Crisps, Strawberry Banana, 0.42 - Ounce (Pack of 100)Brothers-ALL-Natural Fruit Crisps, Strawberry Banana, 0.42 - Ounce (Pack of 100)
$85.0$85.0
[B096H2P6G2] Moon Fruit Freeze Dried Fruit Snacks.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 272, + "chunk_id": "React_paper_chunk_0272", + "start_position": 139767, + "end_position": 140774, + "page_index": 32, + "word_count": 93, + "char_count": 1007 + }, + "has_embedding": false + }, + { + "content": "
$85.0$85.0
[B096H2P6G2] Moon Fruit Freeze Dried Fruit Snacks. Fruit Snacks for Kids -[B096H2P6G2] Moon Fruit Freeze Dried Fruit Snacks.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 273, + "chunk_id": "React_paper_chunk_0273", + "start_position": 140774, + "end_position": 140957, + "page_index": 32, + "word_count": 18, + "char_count": 183 + }, + "has_embedding": false + }, + { + "content": "Fruit Snacks for Kids -[B096H2P6G2] Moon Fruit Freeze Dried Fruit Snacks. Fruit Snacks for Kids -
(Variety Pack) $18.99(Variety Pack) $18.99
[B092JLLYK6][B092JLLYK6]
Nature's Turn Freeze-Dried Fruit Snacks - Banana Crisps - Perfect For School Lunches or an On-The-Go Snack - No Sugar Added,Nature's Turn Freeze-Dried Fruit Snacks - Banana Crisps - Perfect For School Lunches or an On-The-Go Snack - No Sugar Added,
Non GMO, Gluten Free, Nothing Artificial (0.53oz) 6-Pack $12.99Non GMO, Gluten Free, Nothing Artificial (0.53oz) 6-Pack $12.99
Action: click [B0061IVFZE]Action: think[B0061IVFZE is strawberry banana, not apple cinnamon.
Observation:B096H2P6G2 is fruit snacks, not freeze dried banana chips.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 274, + "chunk_id": "React_paper_chunk_0274", + "start_position": 140957, + "end_position": 141837, + "page_index": 32, + "word_count": 93, + "char_count": 880 + }, + "has_embedding": false + }, + { + "content": "on.
Observation:B096H2P6G2 is fruit snacks, not freeze dried banana chips. B092LLYK is banana crisps, not apple cinnamon.I can che
[Back to Search] [Prev]B092JLLYK6 first.
flavor name [asian pear][bananalfuj apple & cinnamon][strawberryObservation: OK.
banana] Brothers-ALL-Natural Fruit Crisps, Strawberry Banana,
0.42 Ounce (Pack of 100)Action: click[B092JLLYK6]
Price: $85.0Observation:
Rating: N.A.[Back to Search]
[Description][Prev]
[Features]fiavor name [aple]lapple cinnamon][banana][cantaloupepeach][pear]
[Reviews][strawberry strawberry bananal[sampler variety pack][mega variety
[Buy Now]pack][orchard variety pack]
size [0.53 ounce (pack of 6)][0.53 ounce (pack of 8)]I0.53 ounce (pack
Action: click[Buy Now]of 16)] Nature's Turn Freeze-Dried Fruit Snacks - Banana Crisps - Perfect
For School Lunches or an On-The-Go Snack - No Sugar Added, Non
GMO, Gluten Free, Nothing Artificial (0.53oz) 6-Pack
Price: $12.99
Rating: N.A.
[Description]
[Features]
[Reviews]
[Buy Now]
Action: think[For sixteen pack of apple cinnamon freeze dried banana
chips, the item has options 'apple cinnamon' and '0.53 ounce (pack of
16)' and seems good to buy.] Observation: OK.
Action: click[apple cinnamon]
Observation: You have clicked apple cinnamon.
Action: click[0.53 ounce (pack of 16)]
Observation: You have clicked 0.53 ounce (pack of 16).
Action: click[Buy Now]
Score: 0.125
Score: 1.0
", + "metadata": { + "source_file": "React_paper", + "chunk_index": 275, + "chunk_id": "React_paper_chunk_0275", + "start_position": 141837, + "end_position": 145639, + "page_index": 32, + "word_count": 149, + "char_count": 3802 + }, + "has_embedding": false + }, + { + "content": ">
Score: 1.0
# E MoRE ANALYSIS # E.1 SuccESS AND FAILURE MoDEs ANALYsIS We provide some examples corresponding to the success and error mode analysis given in Sec. 3.3. Search results and non-representative steps are omitted to reduce space.
Success: True positive
ReAct
Question:Author David Chanoff has collaborated with a U.S.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 276, + "chunk_id": "React_paper_chunk_0276", + "start_position": 145639, + "end_position": 146135, + "page_index": 32, + "word_count": 50, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "lspan=\"2\">ReAct
Question:Author David Chanoff has collaborated with a U.S. Navy admiral who served as the ambassador to the United Kingdom under which President?
Thought 1:I need to search David Chanoff and find the U.S. Navy admiral he
Action 1:collaborated with. Search [David Chanoff]
Observation 1:David Chanoff is a noted author...
Action 2:Search [william J.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 277, + "chunk_id": "React_paper_chunk_0277", + "start_position": 146135, + "end_position": 146629, + "page_index": 32, + "word_count": 49, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "1:David Chanoff is a noted author...
Action 2:Search [william J. Crowe]
Observation 2:William J. Crowe is...
Thought 3:william J. Crowe served as the ambassador to the United Kingdom under
Action 3:President Bill Clinton. So the answer is Bill Clinton.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 278, + "chunk_id": "React_paper_chunk_0278", + "start_position": 146629, + "end_position": 146994, + "page_index": 32, + "word_count": 35, + "char_count": 365 + }, + "has_embedding": false + }, + { + "content": "So the answer is Bill Clinton. Finish [Bill Clinton]
Observation 3:Episode finished
CoT
Question:What was the name of the team that represented an Arizona university in
Thought:the conference that covers a broad expanse of the western United States, including Arizona, California, and New Mexico? Let's think step by step.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 279, + "chunk_id": "React_paper_chunk_0279", + "start_position": 146994, + "end_position": 147428, + "page_index": 32, + "word_count": 46, + "char_count": 434 + }, + "has_embedding": false + }, + { + "content": "Let's think step by step. The name of the team that represented an Arizona
university in the conference that covers a broad expanse of the western United States, including Arizona, California, and New Mexico is Arizona
Answer:State Sun Devils. Arizona State Sun Devils
Success: False positive", + "metadata": { + "source_file": "React_paper", + "chunk_index": 280, + "chunk_id": "React_paper_chunk_0280", + "start_position": 147428, + "end_position": 147795, + "page_index": 32, + "word_count": 44, + "char_count": 367 + }, + "has_embedding": false + }, + { + "content": "Arizona State Sun Devils Success: False positive
ReAct
Question:Did the board game San Marco or About Time come out first?
Thought 1:I need to search San Marco and About Time, and find which came out first. Search[San Marco]
Action 1: Observation 1:San Marco is one of the ... The was built in venice.
Thought 2:San Marco is a sestiere of Venice.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 281, + "chunk_id": "React_paper_chunk_0281", + "start_position": 147795, + "end_position": 148287, + "page_index": 32, + "word_count": 57, + "char_count": 492 + }, + "has_embedding": false + }, + { + "content": "The was built in venice.
Thought 2:San Marco is a sestiere of Venice. I need to search About Time next.
Action 2:
Observation 2:Could not find [About Time]. Similar: [...].
Thought 3:About Time is a 2013 film.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 282, + "chunk_id": "React_paper_chunk_0282", + "start_position": 148287, + "end_position": 148600, + "page_index": 32, + "word_count": 33, + "char_count": 313 + }, + "has_embedding": false + }, + { + "content": "Similar: [...].
Thought 3:About Time is a 2013 film. so San Marco came out first.
Action 3: Observation 3:
CoTEpisode finished
Question:Was Vanderbilt University or Emory University founded first?
Thought:Let's think step by step. Vanderbilt University was founded in 1873. Emory
University was founded in 1836.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 283, + "chunk_id": "React_paper_chunk_0283", + "start_position": 148600, + "end_position": 149072, + "page_index": 32, + "word_count": 40, + "char_count": 472 + }, + "has_embedding": false + }, + { + "content": "Emory
University was founded in 1836. 1873 (Vanderbilt University) > 1836 (Emory
University), so Vanderbilt University was founded first.
Answer:Emory University
Failure: Reasoning error", + "metadata": { + "source_file": "React_paper", + "chunk_index": 284, + "chunk_id": "React_paper_chunk_0284", + "start_position": 149072, + "end_position": 149357, + "page_index": 32, + "word_count": 21, + "char_count": 285 + }, + "has_embedding": false + }, + { + "content": "first.Answer:Emory University Failure: Reasoning error
ReAct
Question:what was the middle name of the actress who was cast alongside Harvey Fierstein, Linda Hart, Dick Latessa, Clarke Thorell, Mary Bond Davis, Laura
Bell Bundy, Matthew Morrison, Corey Reynolds, and Marissa Jaret Winokur in Hairspray?
Thought 1:I need to search Harvey Fierstein, Linda Hart, Dick Latessa, Clarke Thorell, Mary Bond Davis, Laura Bell Bundy, Matthew Morrison, Corey Reynolds, and
Marissa Jaret Winokur, find the actress that was cast alongside them in Hairspray, then find its middle name.
Action 1:Search [Harvey Fierstein]
Observation 1: Thought 2:Harvey Forbes Fierstein Harvey Fierstein is an actor, playwright, and screenwriter.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 285, + "chunk_id": "React_paper_chunk_0285", + "start_position": 149357, + "end_position": 150396, + "page_index": 32, + "word_count": 96, + "char_count": 1039 + }, + "has_embedding": false + }, + { + "content": "ought 2:Harvey Forbes Fierstein Harvey Fierstein is an actor, playwright, and screenwriter. I need to
search Linda Hart next...
Action 2:
Search[Linda Hart] ...
CoT
Question:Who is older Danny Green or James Worthy?
Thought:
Let's think step by step.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 286, + "chunk_id": "React_paper_chunk_0286", + "start_position": 150396, + "end_position": 150968, + "page_index": 32, + "word_count": 32, + "char_count": 572 + }, + "has_embedding": false + }, + { + "content": "
Thought:
Let's think step by step. Danny Green was born in 1987. James Worthy was
born in 1961.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 287, + "chunk_id": "React_paper_chunk_0287", + "start_position": 150968, + "end_position": 151218, + "page_index": 32, + "word_count": 16, + "char_count": 250 + }, + "has_embedding": false + }, + { + "content": "d>
born in 1961. 1987 (Danny Green) > 1961 (James Worthy), so Danny Green is
older.
Answer:
Failure: Search error", + "metadata": { + "source_file": "React_paper", + "chunk_index": 288, + "chunk_id": "React_paper_chunk_0288", + "start_position": 151218, + "end_position": 151632, + "page_index": 32, + "word_count": 17, + "char_count": 414 + }, + "has_embedding": false + }, + { + "content": "/td>Answer: Failure: Search error
ReAct Question:What does the goddess associated with the goddess frigg consists of what
tales?
Thought 1:I need to search goddess frigg and find its associated goddess.
Action 1: Observation 1:Search [goddess frigg]
Could not find goddess frigg.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 289, + "chunk_id": "React_paper_chunk_0289", + "start_position": 151632, + "end_position": 152208, + "page_index": 32, + "word_count": 38, + "char_count": 576 + }, + "has_embedding": false + }, + { + "content": "h [goddess frigg]
Could not find goddess frigg. Similar: ['Frigg','Frigg and Freyja common origin hypothesis', 'Freyja (section Relation to Frigg and other goddesses
and figures)', 'Eir (redirect from Eir (goddess))', 'Baldr'].
Thought 2:I need to search Frigg instead...
", + "metadata": { + "source_file": "React_paper", + "chunk_index": 290, + "chunk_id": "React_paper_chunk_0290", + "start_position": 152208, + "end_position": 152724, + "page_index": 32, + "word_count": 35, + "char_count": 516 + }, + "has_embedding": false + }, + { + "content": "td>Thought 2:I need to search Frigg instead... Failure: Hallucination
CoT
Question:what was the first year a scientific journal published by an organization located in the Bronx was published?
Thought:Let's think step by step.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 291, + "chunk_id": "React_paper_chunk_0291", + "start_position": 152724, + "end_position": 153136, + "page_index": 32, + "word_count": 33, + "char_count": 412 + }, + "has_embedding": false + }, + { + "content": ">
Thought:Let's think step by step. The first year a scientific journal published by an organization located in the Bronx was published was 1916.
Answer:1916(Label:1909)
Failure: Label ambiguity", + "metadata": { + "source_file": "React_paper", + "chunk_index": 292, + "chunk_id": "React_paper_chunk_0292", + "start_position": 153136, + "end_position": 153502, + "page_index": 32, + "word_count": 27, + "char_count": 366 + }, + "has_embedding": false + }, + { + "content": ">1916(Label:1909) Failure: Label ambiguity
ReActwhat nationality is the man who developed the dictator game?
Question: Thought 1:nationality.I need to search dictator game, find the man who developed it, then find his
Action 1:Search [dictator game]
Observation 1:The dictator game is a popular experimental instrument in social psychology
Action 3:and economics...
Observation 3:Search [Amos Tversky] Amos Nathan Tversky..
Thought 4:Amos Tversky is an Israeli cognitive and mathematical psychologist.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 293, + "chunk_id": "React_paper_chunk_0293", + "start_position": 153502, + "end_position": 154487, + "page_index": 32, + "word_count": 62, + "char_count": 985 + }, + "has_embedding": false + }, + { + "content": ">Thought 4:Amos Tversky is an Israeli cognitive and mathematical psychologist. So the
man who developed the dictator game is Israeli.
Action 4:Finish[Israeli] (label:Israel-American)
CoT
Question:Kurt Fuller from Stockton, CA appeared in which American Detective Comedy
Drama television series created by Steve Franks?
Thought:Let's think step by step.", + "metadata": { + "source_file": "React_paper", + "chunk_index": 294, + "chunk_id": "React_paper_chunk_0294", + "start_position": 154487, + "end_position": 155292, + "page_index": 32, + "word_count": 41, + "char_count": 805 + }, + "has_embedding": false + }, + { + "content": "/td>
Thought:Let's think step by step. Kurt Fuller from Stockton, CA appeared in Psych.
Psych is an American Detective Comedy Drama television series created by
Steve Franks.
Answer:Psych (label: Psych is an American detective comedy-drama)
", + "metadata": { + "source_file": "React_paper", + "chunk_index": 295, + "chunk_id": "React_paper_chunk_0295", + "start_position": 155292, + "end_position": 157661, + "page_index": 32, + "word_count": 31, + "char_count": 2369 + }, + "has_embedding": false + } + ], + "metadata": { + "chunk_size": 512, + "overlap": 100, + "average_chunk_length": 532.6385135135135 + } + }, + "Small Language Models in the Era of Large": { + "source_file": "Small Language Models in the Era of Large", + "total_chunks": 890, + "original_length": 464031, + "chunks": [ + { + "content": "# A Comprehensive Survey of Small Language Models in the Era of Large Language Models: Techniques, Enhancements, Applications, Collaboration with LLMs, and Trustworthiness FALI WANG, ZHIWEI ZHANG, XIANREN ZHANG, and ZONGYU WU, The Pennsylvania State University, USA", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 0, + "chunk_id": "Small Language Models in the Era of Large_chunk_0000", + "start_position": 0, + "end_position": 265, + "page_index": 0, + "word_count": 37, + "char_count": 265 + }, + "has_embedding": false + }, + { + "content": "hiness FALI WANG, ZHIWEI ZHANG, XIANREN ZHANG, and ZONGYU WU, The Pennsylvania State University, USA TZUHAO MO, University of Pennsylvania, USA \nQIUHAO LU, WANJING WANG, and RUI LI, UTHealth Houston, USA \nJUNJIE XU, The Pennsylvania State University, USA \nXIANFENG TANG and QI HE, Amazon, USA \nYAO MA, Rensselaer Polytechnic Institute, USA \nMING HUANG, UTHealth Houston, USA \nSUHANG WANG∗, The Pennsylvania State University, USA", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 1, + "chunk_id": "Small Language Models in the Era of Large_chunk_0001", + "start_position": 265, + "end_position": 693, + "page_index": 0, + "word_count": 63, + "char_count": 428 + }, + "has_embedding": false + }, + { + "content": "titute, USA \nMING HUANG, UTHealth Houston, USA \nSUHANG WANG∗, The Pennsylvania State University, USA Large language models (LLMs) have demonstrated emergent abilities in text generation, question answering, and reasoning, facilitating various tasks and domains.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 2, + "chunk_id": "Small Language Models in the Era of Large_chunk_0002", + "start_position": 693, + "end_position": 954, + "page_index": 0, + "word_count": 34, + "char_count": 261 + }, + "has_embedding": false + }, + { + "content": "ities in text generation, question answering, and reasoning, facilitating various tasks and domains. Despite their proficiency in various tasks, LLMs like PaLM 540B and Llama-3.1 405B face limitations due to large parameter sizes and computational demands, often requiring cloud API use which raises privacy concerns, limits real-time applications on edge devices, and increases fine-tuning costs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 3, + "chunk_id": "Small Language Models in the Era of Large_chunk_0003", + "start_position": 954, + "end_position": 1351, + "page_index": 0, + "word_count": 55, + "char_count": 397 + }, + "has_embedding": false + }, + { + "content": "es privacy concerns, limits real-time applications on edge devices, and increases fine-tuning costs. Additionally, LLMs often underperform in specialized domains such as healthcare and law due to insufficient domain-specific knowledge, necessitating specialized models. Therefore, Small Language Models (SLMs) are increasingly favored for their low inference latency, cost-effectiveness, efficient development, and easy customization and adaptability.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 4, + "chunk_id": "Small Language Models in the Era of Large_chunk_0004", + "start_position": 1351, + "end_position": 1802, + "page_index": 0, + "word_count": 54, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "ference latency, cost-effectiveness, efficient development, and easy customization and adaptability. These models are particularly well-suited for resource-limited environments and domain knowledge acquisition, addressing LLMs’ challenges and proving ideal for applications that require localized data handling for privacy, minimal inference latency for efficiency, and domain knowledge acquisition through lightweight fine-tuning. The rising demand for SLMs has spurred extensive research and development.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 5, + "chunk_id": "Small Language Models in the Era of Large_chunk_0005", + "start_position": 1802, + "end_position": 2308, + "page_index": 0, + "word_count": 60, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "The rising demand for SLMs has spurred extensive research and development. However, a comprehensive survey investigating issues related to the definition, acquisition, application, enhancement, and reliability of SLM remains lacking, prompting us to conduct a detailed survey on these topics.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 6, + "chunk_id": "Small Language Models in the Era of Large_chunk_0006", + "start_position": 2308, + "end_position": 2600, + "page_index": 0, + "word_count": 40, + "char_count": 292 + }, + "has_embedding": false + }, + { + "content": ", and reliability of SLM remains lacking, prompting us to conduct a detailed survey on these topics. The definition of SLMs varies widely, thus to standardize, we propose defining SLMs by their capability to perform specialized tasks and suitability for resource-constrained settings, setting boundaries based on the minimal size for emergent abilities and the maximum size sustainable under resource constraints.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 7, + "chunk_id": "Small Language Models in the Era of Large_chunk_0007", + "start_position": 2600, + "end_position": 3013, + "page_index": 0, + "word_count": 60, + "char_count": 413 + }, + "has_embedding": false + }, + { + "content": "the minimal size for emergent abilities and the maximum size sustainable under resource constraints. For other aspects, we provide a taxonomy of relevant models/methods and develop general frameworks for each category to enhance and utilize SLMs effectively. We have compiled the collected SLM models and related methods on GitHub: https://github.com/FairyFali/SLMs-Survey. # CCS Concepts: $\\cdot$ Computing methodologies Natural language generation. # ACM Reference Format:", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 8, + "chunk_id": "Small Language Models in the Era of Large_chunk_0008", + "start_position": 3013, + "end_position": 3487, + "page_index": 1, + "word_count": 63, + "char_count": 474 + }, + "has_embedding": false + }, + { + "content": "# ACM Reference Format: Fali Wang, Zhiwei Zhang, Xianren Zhang, Zongyu Wu, TzuHao Mo, Qiuhao Lu, Wanjing Wang, Rui Li, Junjie Xu, Xianfeng Tang, Qi He, Yao Ma, Ming Huang, and Suhang Wang. 2018. A Comprehensive Survey of Small Language Models in the Era of Large Language Models: Techniques, Enhancements, Applications, Collaboration with LLMs, and Trustworthiness. J. ACM 37, 4, Article 111 (August 2018), 78 pages. https://doi.org/XXXXXXX.XXXXXXX # 1 INTRODUCTION", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 9, + "chunk_id": "Small Language Models in the Era of Large_chunk_0009", + "start_position": 3487, + "end_position": 3952, + "page_index": 1, + "word_count": 70, + "char_count": 465 + }, + "has_embedding": false + }, + { + "content": "https://doi.org/XXXXXXX.XXXXXXX # 1 INTRODUCTION The evolution of neural language models (LMs) from BERT’s [83] pre-training and fine-tuning paradigm to T5’s [284] pre-training plus prompting approach, and finally to GPT-3’s [37] pre-training plus in-context learning, has greatly enhanced natural language processing (NLP).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 10, + "chunk_id": "Small Language Models in the Era of Large_chunk_0010", + "start_position": 3952, + "end_position": 4276, + "page_index": 1, + "word_count": 41, + "char_count": 324 + }, + "has_embedding": false + }, + { + "content": "[37] pre-training plus in-context learning, has greatly enhanced natural language processing (NLP). These advancements have broadened NLP’s application across various fields, including language understanding [350], programming [255, 331], recommendation systems [369], information retrieval [44, 152, 228, 317], mobile-device control [87], scientific discovery [311, 436], medical question answering [34, 366], and legal question answering [11].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 11, + "chunk_id": "Small Language Models in the Era of Large_chunk_0011", + "start_position": 4276, + "end_position": 4721, + "page_index": 1, + "word_count": 54, + "char_count": 445 + }, + "has_embedding": false + }, + { + "content": "tific discovery [311, 436], medical question answering [34, 366], and legal question answering [11]. In particular, the recent emergence of proprietary commercial models including ChatGPT, Bard, and Claude, and open-sourced models such as Llama [94, 338, 339] has led to rapid growth in the development of large language models (LLMs).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 12, + "chunk_id": "Small Language Models in the Era of Large_chunk_0012", + "start_position": 4721, + "end_position": 5056, + "page_index": 1, + "word_count": 50, + "char_count": 335 + }, + "has_embedding": false + }, + { + "content": "as Llama [94, 338, 339] has led to rapid growth in the development of large language models (LLMs). Even though neural networks consistently improve on various tasks with longer training times, larger datasets, and increased model sizes—a phenomenon known as a neural scaling law [166], these models unpredictably exhibit a sudden acquisition of versatile abilities, termed \"emergent ability,\" once they reach a critical scale threshold, thereby supporting the \"larger is better\" trend.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 13, + "chunk_id": "Small Language Models in the Era of Large_chunk_0013", + "start_position": 5056, + "end_position": 5542, + "page_index": 1, + "word_count": 72, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "ility,\" once they reach a critical scale threshold, thereby supporting the \"larger is better\" trend. This ability is not present in small-scale models. For instance, the latest Llama-3.1 model with 405 billion parameters performs better in dialogue, logical reasoning, and programming compared to the smaller 7B counterpart [94]. Despite their prowess in complex tasks, LLMs’ huge parameters and computational needs impose significant limitations, hindering their adoption in many real-world applications.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 14, + "chunk_id": "Small Language Models in the Era of Large_chunk_0014", + "start_position": 5542, + "end_position": 6047, + "page_index": 1, + "word_count": 70, + "char_count": 505 + }, + "has_embedding": false + }, + { + "content": "onal needs impose significant limitations, hindering their adoption in many real-world applications. For example, the LLaMa 3.1 model with 405 billion parameters [94], trained on 16K H100 GPUs for 54 days, requires about 202.5 GB of GPU memory using int4 precision and has large inference latency. These issues present several challenges in specific contexts: (1) LLMs are generally hosted in the cloud and used via cloud-based APIs due to the large GPU memory and computational cost.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 15, + "chunk_id": "Small Language Models in the Era of Large_chunk_0015", + "start_position": 6047, + "end_position": 6531, + "page_index": 1, + "word_count": 76, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "osted in the cloud and used via cloud-based APIs due to the large GPU memory and computational cost. Users need to upload their data to query LLMs, raising data leakage and privacy concerns, especially in high-stake scenarios such as healthcare, finance, and e-commerce; (2) Driven by personal agents, on-device deployment is a critical requirement.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 16, + "chunk_id": "Small Language Models in the Era of Large_chunk_0016", + "start_position": 6531, + "end_position": 6880, + "page_index": 1, + "word_count": 54, + "char_count": 349 + }, + "has_embedding": false + }, + { + "content": "ance, and e-commerce; (2) Driven by personal agents, on-device deployment is a critical requirement. Several factors, including cloud costs, latency, and privacy concerns, hinder the on-device processing of cloud-based LLMs, and direct deployment is impractical due to their high parameter and cache requirements, which often exceed the capabilities of devices such as mobile phones; (3) Their large parameter count can cause inference delays from seconds to minutes, unsuitable for real-time applications.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 17, + "chunk_id": "Small Language Models in the Era of Large_chunk_0017", + "start_position": 6880, + "end_position": 7386, + "page_index": 1, + "word_count": 71, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "ter count can cause inference delays from seconds to minutes, unsuitable for real-time applications. For instance, Llama 2 7B takes approximately 84 seconds to process 100 tokens on benchmarks including HellaSwag, TruthfulQA, MMLU, and Arc_C when run on a smartphone equipped with a Snapdragon 685 processor [336]; (4) To boost performance in specialized domains such as healthcare and law, where generic LLMs underperform, LLMs are often fine-tuned.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 18, + "chunk_id": "Small Language Models in the Era of Large_chunk_0018", + "start_position": 7386, + "end_position": 7836, + "page_index": 3, + "word_count": 67, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "ized domains such as healthcare and law, where generic LLMs underperform, LLMs are often fine-tuned. However, this process is computationally expensive due to their large size. (5) Though general-purpose LLMs are powerful, many real-world applications require only specific abilities and domain knowledge, deploying general-purpose LLMs would be a waste of resources and such LLMs often cannot match the performance of models tailored for specific tasks [52, 125, 156, 275, 369].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 19, + "chunk_id": "Small Language Models in the Era of Large_chunk_0019", + "start_position": 7836, + "end_position": 8315, + "page_index": 3, + "word_count": 70, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "s often cannot match the performance of models tailored for specific tasks [52, 125, 156, 275, 369]. Recently, small language models (SLMs) have shown great potential in alleviating these issues while achieving performance comparable to LLMs for domain-specific problems [1, 26, 116, 143, 223, 274, 333, 336, 402, 439]. Owing to fewer parameters, SLMs excel in efficiency, cost, flexibility, and customization. They provide significant computational Manuscript submitted to ACM [IMAGE]\nFig. 1.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 20, + "chunk_id": "Small Language Models in the Era of Large_chunk_0020", + "start_position": 8315, + "end_position": 8808, + "page_index": 3, + "word_count": 72, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "1. Overview of Small Language Models. [IMAGE]\nFig. 2. Download Statistics Last Month in Huggingface for LLMs with Various Model Sizes, obtained on October 7, 2024. savings in pre-training and inference with reduced memory and storage needs, which is vital for applications requiring efficient resource use. These small models are especially effective in resource-limited settings, performing well on low-power devices such as edge devices.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 21, + "chunk_id": "Small Language Models in the Era of Large_chunk_0021", + "start_position": 8808, + "end_position": 9247, + "page_index": 3, + "word_count": 64, + "char_count": 439 + }, + "has_embedding": false + }, + { + "content": "y effective in resource-limited settings, performing well on low-power devices such as edge devices. Besides, SLMs improve on-device processing by enhancing privacy, security, response times, and personalization. This supports advanced personal assistants and cloud-independent applications, boosting energy efficiency and reducing carbon emissions. For example, the Llama 3.2 models (1B & 3B) demonstrate that local processing enables immediate execution of prompts and responses [7].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 22, + "chunk_id": "Small Language Models in the Era of Large_chunk_0022", + "start_position": 9247, + "end_position": 9732, + "page_index": 3, + "word_count": 63, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "1B & 3B) demonstrate that local processing enables immediate execution of prompts and responses [7]. This approach protects privacy by keeping sensitive data such as patient health information (PHI), business data, personal messages, and calendar details local, enhancing confidentiality. It also allows for precise control over which queries are processed on-device versus those requiring cloud-based models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 23, + "chunk_id": "Small Language Models in the Era of Large_chunk_0023", + "start_position": 9732, + "end_position": 10141, + "page_index": 3, + "word_count": 56, + "char_count": 409 + }, + "has_embedding": false + }, + { + "content": "recise control over which queries are processed on-device versus those requiring cloud-based models. Therefore, small language models are gaining increasing attention as alternatives to LLMs, as indicated in Figure 2, which shows that SLMs are downloaded more frequently than larger models in the Hugging Face community, and Figure 3, which illustrates the growing popularity of SLM releases over time. Typically, LMs that exhibit emergent abilities are classified as LLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 24, + "chunk_id": "Small Language Models in the Era of Large_chunk_0024", + "start_position": 10141, + "end_position": 10614, + "page_index": 3, + "word_count": 69, + "char_count": 473 + }, + "has_embedding": false + }, + { + "content": "Typically, LMs that exhibit emergent abilities are classified as LLMs. However, the categorization of SLMs remains unclear. Studies vary in their contexts: some define SLMs as models with fewer than one billion parameters [223], while others consider the term “small language model” relative to the larger counterparts [183, 327, 369], with no consensus on a unified definition in the current landscape of LLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 25, + "chunk_id": "Small Language Models in the Era of Large_chunk_0025", + "start_position": 10614, + "end_position": 11025, + "page_index": 3, + "word_count": 63, + "char_count": 411 + }, + "has_embedding": false + }, + { + "content": "erparts [183, 327, 369], with no consensus on a unified definition in the current landscape of LLMs. Research suggests SLMs for mobile devices, typically possessing around 6GB of memory, consist of sub-billion parameter models [223], whereas others classify models with up to 10 billion parameters as small, noting their lack of emergent abilities [105].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 26, + "chunk_id": "Small Language Models in the Era of Large_chunk_0026", + "start_position": 11025, + "end_position": 11379, + "page_index": 4, + "word_count": 54, + "char_count": 354 + }, + "has_embedding": false + }, + { + "content": "ify models with up to 10 billion parameters as small, noting their lack of emergent abilities [105]. Given their use in resource-constrained environments and for specific tasks, we propose a generalized definition: Given specific tasks and resource constraints, we define SLMs as falling within a range where the lower bound is the minimum size at which the model exhibits emergent abilities for a specialized task, and the upper bound is the largest size manageable within limited resource conditions.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 27, + "chunk_id": "Small Language Models in the Era of Large_chunk_0027", + "start_position": 11379, + "end_position": 11881, + "page_index": 4, + "word_count": 78, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "ialized task, and the upper bound is the largest size manageable within limited resource conditions. This definition integrates various perspectives and addresses factors related to mobile computing and capability thresholds. Due to the growing demand for SLMs, extensive literature has emerged on various aspects of SLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 28, + "chunk_id": "Small Language Models in the Era of Large_chunk_0028", + "start_position": 11881, + "end_position": 12203, + "page_index": 4, + "word_count": 46, + "char_count": 322 + }, + "has_embedding": false + }, + { + "content": "Due to the growing demand for SLMs, extensive literature has emerged on various aspects of SLMs. For example, several resource-efficient techniques [398] and training methods optimized for SLMs, such as quantization-aware training [221, 357, 400] and selective architectural component choices [223, 280, 336], aim to enhance performance in specific applications [36, 52, 275, 292, 382].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 29, + "chunk_id": "Small Language Models in the Era of Large_chunk_0029", + "start_position": 12203, + "end_position": 12589, + "page_index": 4, + "word_count": 55, + "char_count": 386 + }, + "has_embedding": false + }, + { + "content": "hoices [223, 280, 336], aim to enhance performance in specific applications [36, 52, 275, 292, 382]. These methods have led to the development of numerous open-source, generalpurpose, and domain-specific SLMs [3, 26, 34, 333, 402, 435]. Beyond their inherent capabilities, SLMs can enhance LLMs by serving as modules or effective proxies [246, 297, 383, 399, 413, 450]. Furthermore, the complementary advantages of SLMs and LLMs can be leveraged collectively to better complete tasks [79, 204, 234, 307, 437].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 30, + "chunk_id": "Small Language Models in the Era of Large_chunk_0030", + "start_position": 12589, + "end_position": 13098, + "page_index": 4, + "word_count": 78, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "es of SLMs and LLMs can be leveraged collectively to better complete tasks [79, 204, 234, 307, 437]. Despite the commendable performance of SLMs, it is crucial not to overlook their credibility issues, such as the risks of adversarial attacks, producing hallucinations, and privacy breaches [88, 95, 138, 176, 176, 222, 248, 254, 273, 351, 354, 370, 371, 425, 445]. However, currently, there is no comprehensive survey thoroughly exploring these works on SLMs in the era of LLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 31, + "chunk_id": "Small Language Models in the Era of Large_chunk_0031", + "start_position": 13098, + "end_position": 13577, + "page_index": 4, + "word_count": 78, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "ently, there is no comprehensive survey thoroughly exploring these works on SLMs in the era of LLMs. Therefore, this paper offers the first comprehensive survey that analyzes various aspects of SLMs in the LLM era and their future directions. The overview structure of our paper is shown in Figure 1. To summarize, our major contributions are: [IMAGE]\nFig. 3. A timeline of existing small language models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 32, + "chunk_id": "Small Language Models in the Era of Large_chunk_0032", + "start_position": 13577, + "end_position": 13982, + "page_index": 5, + "word_count": 66, + "char_count": 405 + }, + "has_embedding": false + }, + { + "content": "A timeline of existing small language models. • In Section 3, we examine various techniques for improving the performance of SLMs, including training from scratch, fine-tuning, knowledge distillation, quantization, and leveraging LLM-enhancing technologies to optimize SLMs. • In Section 4, we discuss the tasks that SLMs can enhance and the deployment strategies that enable models to fit within the resource constraints of edge devices while maintaining acceptable inference speed.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 33, + "chunk_id": "Small Language Models in the Era of Large_chunk_0033", + "start_position": 13982, + "end_position": 14465, + "page_index": 5, + "word_count": 69, + "char_count": 483 + }, + "has_embedding": false + }, + { + "content": "to fit within the resource constraints of edge devices while maintaining acceptable inference speed. • In Section 5, we collect SLMs with fewer than 7 billion parameters across both general-purpose and domain-specific applications, reviewing common architectural choices, training techniques, and datasets, and providing a comparative summary of performance across different model sizes. Recent SLMs are listed.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 34, + "chunk_id": "Small Language Models in the Era of Large_chunk_0034", + "start_position": 14465, + "end_position": 14876, + "page_index": 5, + "word_count": 56, + "char_count": 411 + }, + "has_embedding": false + }, + { + "content": "Recent SLMs are listed. • In Section 6, we explore how SLMs can address key challenges faced by LLMs, such as high inference latency, labor-intensive fine-tuning, susceptibility to knowledge noise, and risks of copyright infringement. • In Section 7, we survey two kinds of synergies between LLMs and SLMs: one involves cloud-based LLMs and local SLMs, while the other leverages the unique advantages of both to more effectively solve tasks.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 35, + "chunk_id": "Small Language Models in the Era of Large_chunk_0035", + "start_position": 14876, + "end_position": 15317, + "page_index": 5, + "word_count": 70, + "char_count": 441 + }, + "has_embedding": false + }, + { + "content": "local SLMs, while the other leverages the unique advantages of both to more effectively solve tasks. • In Section 8, we investigate the trustworthiness issues of SLMs, including hallucination and privacy concerns, by providing a taxonomic summary of current evaluation methods. Concurrently with our survey, Lu et al. [229] evaluate open-source SLMs, focusing on their architectures, datasets, algorithms, and on-device performance metrics such as inference latency and memory usage.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 36, + "chunk_id": "Small Language Models in the Era of Large_chunk_0036", + "start_position": 15317, + "end_position": 15800, + "page_index": 5, + "word_count": 69, + "char_count": 483 + }, + "has_embedding": false + }, + { + "content": "datasets, algorithms, and on-device performance metrics such as inference latency and memory usage. Van Nguyen et al. [345] delve into optimization strategies for SLMs, including model compression, pruning, and quantization. Chen and Varoquaux [49] investigate how SLMs enhance LLMs and vice versa.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 37, + "chunk_id": "Small Language Models in the Era of Large_chunk_0037", + "start_position": 15800, + "end_position": 16098, + "page_index": 5, + "word_count": 42, + "char_count": 298 + }, + "has_embedding": false + }, + { + "content": "Chen and Varoquaux [49] investigate how SLMs enhance LLMs and vice versa. In contrast, our survey offers a more comprehensive review with the following differences: (1) we present a detailed taxonomy of recent advancements in SLMs in the era of LLMs; (2) we define SLMs based on emergent capabilities and device specifications, which refines previous unclear definitions related to LLMs; (3) we discuss SLM applications, especially in on-device tasks and deployment, topics previously unexplored; (4) we examine domain-specific SLMs previously overlooked; and (5) we additionally consider the synergy between SLMs and LLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 38, + "chunk_id": "Small Language Models in the Era of Large_chunk_0038", + "start_position": 16098, + "end_position": 16721, + "page_index": 5, + "word_count": 92, + "char_count": 623 + }, + "has_embedding": false + }, + { + "content": "ific SLMs previously overlooked; and (5) we additionally consider the synergy between SLMs and LLMs. # 2 FOUNDATIONAL CONCEPTS IN BUILDING LANGUAGE MODELS This section will introduce foundational concepts and background knowledge for language models, including the concepts of architecture and the training process, as well as methods for obtaining SLMs from LLMs. The advanced training strategy to improve SLM performance will be introduced in Section 3. # 2.1 Architecture of SLMs", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 39, + "chunk_id": "Small Language Models in the Era of Large_chunk_0039", + "start_position": 16721, + "end_position": 17203, + "page_index": 5, + "word_count": 72, + "char_count": 482 + }, + "has_embedding": false + }, + { + "content": "# 2.1 Architecture of SLMs SLMs commonly employ the Transformer architecture [346] (see Figure 4), which utilizes self-attention mechanisms to manage long-range text dependencies, essential for maintaining performance with constrained resources. However, due to the attention mechanism, Transformers have large inference cost. Hence, to alleviate the issue, several subquadratictime architectures such as Mamba [117], Hymba [90], and xLSTM [25] are proposed.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 40, + "chunk_id": "Small Language Models in the Era of Large_chunk_0040", + "start_position": 17203, + "end_position": 17661, + "page_index": 6, + "word_count": 61, + "char_count": 458 + }, + "has_embedding": false + }, + { + "content": "several subquadratictime architectures such as Mamba [117], Hymba [90], and xLSTM [25] are proposed. Next, we will give details of Transformer due to its popularity and briefly introduce newly emerged models. 2.1.1 Transformer. The Transformer’s self-attention mechanism [346] allows language models to efficiently capture contextual information across longer sequences, even with limited resources.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 41, + "chunk_id": "Small Language Models in the Era of Large_chunk_0041", + "start_position": 17661, + "end_position": 18060, + "page_index": 6, + "word_count": 53, + "char_count": 399 + }, + "has_embedding": false + }, + { + "content": "to efficiently capture contextual information across longer sequences, even with limited resources. The Transformer generally adopts an encoder-decoder structure featuring self-attention mechanisms, feedforward networks, positional embeddings, and layer normalization. The Transformer architecture design tailored for SLMs is detailed in Section 5; this section will provide only foundational concepts. Self-Attention Mechanism enables the model to evaluate the importance of tokens relative to each other.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 42, + "chunk_id": "Small Language Models in the Era of Large_chunk_0042", + "start_position": 18060, + "end_position": 18566, + "page_index": 6, + "word_count": 63, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "f-Attention Mechanism enables the model to evaluate the importance of tokens relative to each other. The self-attention mechanism is written as $$\n{ \\mathrm { A t t e n t i o n } } ( \\mathbf { Q } , \\mathbf { K } , \\mathbf { V } ) = { \\mathrm { s o f t m a x } } \\left( { \\frac { \\mathbf { Q } \\mathbf { K } ^ { \\top } } { \\sqrt { d _ { k } } } } \\right) \\mathbf { V }\n$$", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 43, + "chunk_id": "Small Language Models in the Era of Large_chunk_0043", + "start_position": 18566, + "end_position": 18937, + "page_index": 6, + "word_count": 99, + "char_count": 371 + }, + "has_embedding": false + }, + { + "content": "\\frac { \\mathbf { Q } \\mathbf { K } ^ { \\top } } { \\sqrt { d _ { k } } } } \\right) \\mathbf { V }\n$$ where ${ \\bf { Q } } , { \\bf { K } } ,$ and $\\mathbf { V }$ are query, key, and value matrices, scaled by $\\sqrt { d _ { k } }$ for stability where $d _ { k }$ is the dimension of key matrices. The dot product $\\mathbf { Q } \\mathbf { K } ^ { \\top }$ reflects the similarity between the query and key vectors. [IMAGE]\nFig. 4. Transformer architecture [346].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 44, + "chunk_id": "Small Language Models in the Era of Large_chunk_0044", + "start_position": 18937, + "end_position": 19394, + "page_index": 6, + "word_count": 112, + "char_count": 457 + }, + "has_embedding": false + }, + { + "content": "Transformer architecture [346]. Multi-Head Attention (MHA) [346] is the first method that uses multiple heads to capture diverse information. MHA allows the model to attend to different parts of the input sequence using multiple attention heads as", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 45, + "chunk_id": "Small Language Models in the Era of Large_chunk_0045", + "start_position": 19394, + "end_position": 19641, + "page_index": 6, + "word_count": 37, + "char_count": 247 + }, + "has_embedding": false + }, + { + "content": "llows the model to attend to different parts of the input sequence using multiple attention heads as $\\mathrm { M u l t i H e a d ( Q , K , V ) } = \\mathrm { C o n c a t } ( \\mathrm { h e a d } _ { 1 } , \\mathrm { h e a d } _ { 2 } , \\ldots , \\mathrm { h e a d } _ { h } ) { \\mathbf { W } } ^ { O } , \\mathrm { w i t h ~ h e a d } _ { i } = \\mathrm { A t t e n t i o n } ( \\mathbf { Q } { \\mathbf { W } } _ { i } ^ { Q } , \\mathbf { K } { \\mathbf { W } } _ { i } ^ { K } , \\mathbf { V } { \\mathbf { W } } _ { i } ^ { V } )$ (1) Each head in the Multi-Head Attention mechanism operates independently, allowing the model to capture diverse aspects of the data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 46, + "chunk_id": "Small Language Models in the Era of Large_chunk_0046", + "start_position": 19641, + "end_position": 20299, + "page_index": 6, + "word_count": 203, + "char_count": 658 + }, + "has_embedding": false + }, + { + "content": "tention mechanism operates independently, allowing the model to capture diverse aspects of the data. The outputs are combined using learned projection matrices $\\mathbf { W } _ { i } ^ { Q } , \\mathbf { W } _ { i } ^ { K }$ , and $\\mathbf { W } _ { i } ^ { V }$ , concatenated, and passed through the output projection matrix $\\mathbf { W } ^ { O }$ .", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 47, + "chunk_id": "Small Language Models in the Era of Large_chunk_0047", + "start_position": 20299, + "end_position": 20650, + "page_index": 6, + "word_count": 79, + "char_count": 351 + }, + "has_embedding": false + }, + { + "content": "} ^ { V }$ , concatenated, and passed through the output projection matrix $\\mathbf { W } ^ { O }$ . Building on this foundation, several modifications have been introduced to further optimize self-attention mechanisms for specific challenges such as memory efficiency and computational speed.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 48, + "chunk_id": "Small Language Models in the Era of Large_chunk_0048", + "start_position": 20650, + "end_position": 20943, + "page_index": 6, + "word_count": 47, + "char_count": 293 + }, + "has_embedding": false + }, + { + "content": "self-attention mechanisms for specific challenges such as memory efficiency and computational speed. To address the KV-cache bottleneck in MHA, Multi-Query Attention (MQA) [303] proposes that all attention heads share the same set of keys and values, which reduces the memory and computational overhead associated with storing and managing multiple key-value pairs. Grouped Query Attention (GQA) [8] serves as a middle ground between MHA and MQA.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 49, + "chunk_id": "Small Language Models in the Era of Large_chunk_0049", + "start_position": 20943, + "end_position": 21389, + "page_index": 6, + "word_count": 65, + "char_count": 446 + }, + "has_embedding": false + }, + { + "content": "Grouped Query Attention (GQA) [8] serves as a middle ground between MHA and MQA. It introduces subgroups of query heads (fewer than the total number of attention heads), where each subgroup shares a single key and value head. Manuscript submitted to ACM Unlike MQA and GQA, which reduce the number of key and value heads, Multi-Head Latent Attention (MLA) [211] compresses the keys and values into a joint latent vector.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 50, + "chunk_id": "Small Language Models in the Era of Large_chunk_0050", + "start_position": 21389, + "end_position": 21809, + "page_index": 6, + "word_count": 70, + "char_count": 420 + }, + "has_embedding": false + }, + { + "content": ", Multi-Head Latent Attention (MLA) [211] compresses the keys and values into a joint latent vector. This compression allows for efficient handling of key-value pairs while maintaining high performance, significantly reducing the KV-cache and improving inference efficiency. Flash Attention [73, 74] accelerates the self-attention mechanism by minimizing the memory overhead typical of standard attention calculations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 51, + "chunk_id": "Small Language Models in the Era of Large_chunk_0051", + "start_position": 21809, + "end_position": 22227, + "page_index": 6, + "word_count": 55, + "char_count": 418 + }, + "has_embedding": false + }, + { + "content": "lf-attention mechanism by minimizing the memory overhead typical of standard attention calculations. This optimization allows SLMs to process longer sequences more efficiently, enhancing their functionality under strict hardware constraints. Feedforward Network (FFN) comprises two linear transformations separated by a non-linearity, typically modeled as $\\mathrm { F F N } ( \\mathbf { x } ) \\ = \\ \\sigma ( \\mathbf { x } \\mathbf { W } _ { 1 } + b _ { 1 } ) \\mathbf { W } _ { 2 } + b _ { 2 }$ .", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 52, + "chunk_id": "Small Language Models in the Era of Large_chunk_0052", + "start_position": 22227, + "end_position": 22721, + "page_index": 6, + "word_count": 94, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "= \\ \\sigma ( \\mathbf { x } \\mathbf { W } _ { 1 } + b _ { 1 } ) \\mathbf { W } _ { 2 } + b _ { 2 }$ . where $\\mathbf { W } _ { 1 }$ and $\\mathbf { W } _ { 2 }$ are the weight matrices, and $b _ { 1 }$ and $b _ { 2 }$ are bias terms. $\\sigma$ is the activation function, which introduces non-linearity, allowing models to learn complex patterns. Generally, ReLU is used as the activation function. In addition to ReLU, activation functions such as GeLU and SiLU are also used in SLMs to improve performance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 53, + "chunk_id": "Small Language Models in the Era of Large_chunk_0053", + "start_position": 22721, + "end_position": 23225, + "page_index": 7, + "word_count": 116, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "on to ReLU, activation functions such as GeLU and SiLU are also used in SLMs to improve performance. We give the details here: (i) ReLU (Rectified Linear Unit) [5] is defined as $\\sigma ( x ) = \\operatorname* { m a x } ( 0 , x )$ , which is commonly used for its simplicity and effectiveness.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 54, + "chunk_id": "Small Language Models in the Era of Large_chunk_0054", + "start_position": 23225, + "end_position": 23517, + "page_index": 7, + "word_count": 58, + "char_count": 292 + }, + "has_embedding": false + }, + { + "content": "= \\operatorname* { m a x } ( 0 , x )$ , which is commonly used for its simplicity and effectiveness. (ii) GELU (Gaussian Error Linear Unit) [135] is defined as ${ \\mathrm { G E L U } } ( x ) = x \\cdot \\Phi ( x ) = x \\cdot { \\textstyle { \\frac { 1 } { 2 } } } \\left[ 1 + \\operatorname { e r f } \\left( { \\frac { x } { \\sqrt { 2 } } } \\right) \\right] ,$ , where $\\Phi ( x )$ is the standard Gaussian CDF and erf is the error function.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 55, + "chunk_id": "Small Language Models in the Era of Large_chunk_0055", + "start_position": 23517, + "end_position": 23949, + "page_index": 7, + "word_count": 108, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "\\right) \\right] ,$ , where $\\Phi ( x )$ is the standard Gaussian CDF and erf is the error function. It is smoother than ReLU and widely used in models such as BERT [83] and GPT [282] for better gradient flow control.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 56, + "chunk_id": "Small Language Models in the Era of Large_chunk_0056", + "start_position": 23949, + "end_position": 24165, + "page_index": 7, + "word_count": 42, + "char_count": 216 + }, + "has_embedding": false + }, + { + "content": "han ReLU and widely used in models such as BERT [83] and GPT [282] for better gradient flow control. Since calculating the Gaussian error function for each neuron is computationally expensive and time-consuming, there are approximations using tanh and sigmoid functions, corresponding to $\\mathrm { G E L U } _ { \\mathrm { t a n h } }$ and SiLU: (iii) GELU with tanh is defined as $\\mathrm { G E L U } _ { \\mathrm { t a n h } } ( x ) = 0 .", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 57, + "chunk_id": "Small Language Models in the Era of Large_chunk_0057", + "start_position": 24165, + "end_position": 24604, + "page_index": 7, + "word_count": 92, + "char_count": 439 + }, + "has_embedding": false + }, + { + "content": "SiLU: (iii) GELU with tanh is defined as $\\mathrm { G E L U } _ { \\mathrm { t a n h } } ( x ) = 0 . 5 \\cdot x \\cdot \\left( 1 + \\operatorname { t a n h } \\left( \\sqrt { \\frac { 2 } { \\pi } } \\cdot ( x + 0 . 0 4 4 7 1 5 \\cdot x ^ { 3 } ) \\right) \\right)$ This approximation uses the Tanh function to simplify computations. (iv) SiLU (Sigmoid Linear Unit) [97] is calculated as $\\mathrm { S i L U } ( x ) = x \\cdot \\mathrm { s i g m o i d } ( x ) = x \\cdot { \\frac { 1 } { 1 + e ^ { - x } } } .$ .", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 58, + "chunk_id": "Small Language Models in the Era of Large_chunk_0058", + "start_position": 24604, + "end_position": 25098, + "page_index": 7, + "word_count": 142, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "} ( x ) = x \\cdot \\mathrm { s i g m o i d } ( x ) = x \\cdot { \\frac { 1 } { 1 + e ^ { - x } } } .$ . It effectively combines the sigmoid function with its input, enhancing modeling capabilities. (v) SwiGLU (Swish-Gated Linear Units) [304] integrates the Swish activation function with Gated Linear Units, defined as ${ \\mathrm { S w i G L U } } ( x ) = { \\mathrm { S w i s h } } ( x \\cdot W + b ) \\odot ( x \\cdot V + c )$ where $W , V$ are the weight matrix and $b , c$ are the bias terms.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 59, + "chunk_id": "Small Language Models in the Era of Large_chunk_0059", + "start_position": 25098, + "end_position": 25587, + "page_index": 7, + "word_count": 126, + "char_count": 489 + }, + "has_embedding": false + }, + { + "content": "W + b ) \\odot ( x \\cdot V + c )$ where $W , V$ are the weight matrix and $b , c$ are the bias terms. The Swish function is expressed as $\\operatorname { S w i s h } ( x ) = x \\cdot \\operatorname { s i g m o i d } ( x )$ . This combination enhances expressiveness and computational efficiency, making it a preferred choice in advanced models such as the Qwen series [402].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 60, + "chunk_id": "Small Language Models in the Era of Large_chunk_0060", + "start_position": 25587, + "end_position": 25958, + "page_index": 7, + "word_count": 83, + "char_count": 371 + }, + "has_embedding": false + }, + { + "content": "utational efficiency, making it a preferred choice in advanced models such as the Qwen series [402]. Positional Embeddings in Transformer models [346] are essential for capturing token order, providing context about relative positions within a sequence.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 61, + "chunk_id": "Small Language Models in the Era of Large_chunk_0061", + "start_position": 25958, + "end_position": 26211, + "page_index": 7, + "word_count": 36, + "char_count": 253 + }, + "has_embedding": false + }, + { + "content": "e essential for capturing token order, providing context about relative positions within a sequence. Traditional positional embeddings in the Transformer architecture utilize a sinusoidal function, defined as: $\\begin{array} { r } { P E ( p o s , 2 i ) = \\sin \\left( \\frac { p o s } { 1 0 0 0 0 ^ { 2 i / d _ { \\mathrm { m o d e l } } } } \\right) } \\end{array}$ $\\begin{array} { r } { P E ( p o s , 2 i + 1 ) = \\cos \\left( \\frac { p o s } { 1 0 0 0 0 ^ { 2 i / d _ { \\mathrm { m o d e l } } } } \\right) } \\end{array}$ where ??????", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 62, + "chunk_id": "Small Language Models in the Era of Large_chunk_0062", + "start_position": 26211, + "end_position": 26741, + "page_index": 7, + "word_count": 135, + "char_count": 530 + }, + "has_embedding": false + }, + { + "content": "p o s } { 1 0 0 0 0 ^ { 2 i / d _ { \\mathrm { m o d e l } } } } \\right) } \\end{array}$ where ?????? represents the position within the sequence, $i$ is the dimension index, and $d _ { \\mathrm { m o d e l } }$ is the dimensionality of the model. To improve the model’s capacity for understanding the relative positions of tokens within a sequence, Rotary Positional Embedding (RoPE) [318] introduces a rotational matrix to the embeddings.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 63, + "chunk_id": "Small Language Models in the Era of Large_chunk_0063", + "start_position": 26741, + "end_position": 27178, + "page_index": 8, + "word_count": 91, + "char_count": 437 + }, + "has_embedding": false + }, + { + "content": "sequence, Rotary Positional Embedding (RoPE) [318] introduces a rotational matrix to the embeddings. RoPE significantly enhances the positional encoding by maintaining the relative distances through rotational transformations, thus optimizing the model’s interpretative ability regarding sequence dynamics. Layer Normalization [185] stabilizes the training process by normalizing layer outputs, accelerating convergence.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 64, + "chunk_id": "Small Language Models in the Era of Large_chunk_0064", + "start_position": 27178, + "end_position": 27598, + "page_index": 8, + "word_count": 49, + "char_count": 420 + }, + "has_embedding": false + }, + { + "content": "zation [185] stabilizes the training process by normalizing layer outputs, accelerating convergence. Two types of layer normalization are commonly used [185]: (i) Non-Parametric Layer Norm normalizes inputs using the mean and variance calculated across the layer’s dimensions without learnable parameters as $\\textstyle \\operatorname { L N } ( x ) = { \\frac { x - \\mu } { \\sigma } }$ where $\\mu$ is the mean and $\\sigma$ is the standard deviation of the inputs. Its simplicity makes it ideal for SLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 65, + "chunk_id": "Small Language Models in the Era of Large_chunk_0065", + "start_position": 27598, + "end_position": 28099, + "page_index": 8, + "word_count": 83, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "Its simplicity makes it ideal for SLMs. (ii) Parametric Layer Norm includes learnable parameters $\\gamma$ and $\\beta$ for adaptive scaling and bias, enhancing model flexibility: $\\begin{array} { r } { \\operatorname { P L N } ( x ) = \\gamma \\left( \\frac { x - \\mu } { \\sigma } \\right) + \\beta } \\end{array}$ Additionally, RMS Norm (Root Mean Square Layer Normalization) [431] simplifies the calculation by using the root mean square of inputs, reducing computational demands: $\\begin{array} { r } { \\mathrm { R M S N o r m } ( x ) = \\gamma \\frac { x } { \\sqrt { \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } x _ { i } ^ { 2 } + \\epsilon } } + \\beta } \\end{array}$ where $N$ is the number of inputs, $x _ { i }$ is the $i$ -th input, and $\\epsilon$ is a small constant to prevent division by zero.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 66, + "chunk_id": "Small Language Models in the Era of Large_chunk_0066", + "start_position": 28099, + "end_position": 28891, + "page_index": 8, + "word_count": 169, + "char_count": 792 + }, + "has_embedding": false + }, + { + "content": "s, $x _ { i }$ is the $i$ -th input, and $\\epsilon$ is a small constant to prevent division by zero. 2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 67, + "chunk_id": "Small Language Models in the Era of Large_chunk_0067", + "start_position": 28891, + "end_position": 29282, + "page_index": 8, + "word_count": 63, + "char_count": 391 + }, + "has_embedding": false + }, + { + "content": "This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 68, + "chunk_id": "Small Language Models in the Era of Large_chunk_0068", + "start_position": 29282, + "end_position": 29782, + "page_index": 8, + "word_count": 80, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "ility to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 69, + "chunk_id": "Small Language Models in the Era of Large_chunk_0069", + "start_position": 29782, + "end_position": 30130, + "page_index": 8, + "word_count": 48, + "char_count": 348 + }, + "has_embedding": false + }, + { + "content": "selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data. Due to its focus on the immediate previous hidden state, as opposed to Transformer which requires access to all previous hidden states, Mamba achieves a higher utilization rate of model parameters. This makes it more suitable for SLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 70, + "chunk_id": "Small Language Models in the Era of Large_chunk_0070", + "start_position": 30130, + "end_position": 30465, + "page_index": 9, + "word_count": 50, + "char_count": 335 + }, + "has_embedding": false + }, + { + "content": "This makes it more suitable for SLMs. However, we identify two drawbacks of Mamba: (i) its focus on selectively capturing global information may compromise performance on tasks that require nuanced understanding, such as detailed sentiment analysis or complex entity recognition; and (ii) to balance inference speed, Mamba’s recurrent structure primarily encodes static global information, which limits its effectiveness in handling multi-round tasks within a single query, such as interactive dialogue systems or iterative problem-solving scenarios.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 71, + "chunk_id": "Small Language Models in the Era of Large_chunk_0071", + "start_position": 30465, + "end_position": 31015, + "page_index": 9, + "word_count": 75, + "char_count": 550 + }, + "has_embedding": false + }, + { + "content": "within a single query, such as interactive dialogue systems or iterative problem-solving scenarios. [IMAGE]\nFig. 5. Mamba 1 architecture [117]. In language modeling, Mamba 1 [117] is pre-trained on the Pile dataset [108] using the training recipe from [37] and ranges from 125M to 1.3B parameters. It outperforms comparable models such as Pythia [31] and RWKV [270] in various tasks; for instance, Mamba-1.4B achieves a $3 2 . 8 \\%$ accuracy on the Arc-Challenge [65] dataset, surpassing Pythia-1.4B’s $2 8 .", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 72, + "chunk_id": "Small Language Models in the Era of Large_chunk_0072", + "start_position": 31015, + "end_position": 31523, + "page_index": 9, + "word_count": 81, + "char_count": 508 + }, + "has_embedding": false + }, + { + "content": "8 \\%$ accuracy on the Arc-Challenge [65] dataset, surpassing Pythia-1.4B’s $2 8 . 5 \\%$ and RWKV-1.5B’s $2 9 . 4 \\%$ . Mamba 2 [75] develops a theoretical framework linking SSMs with attention mechanisms through structured semi-separable matrices, enhancing the selective SSM to achieve $2 { - } 8 \\mathrm { x }$ faster speeds while competing with Transformer models. Training and configuration for Mamba 2 align with Mamba 1.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 73, + "chunk_id": "Small Language Models in the Era of Large_chunk_0073", + "start_position": 31523, + "end_position": 31949, + "page_index": 9, + "word_count": 71, + "char_count": 426 + }, + "has_embedding": false + }, + { + "content": "Training and configuration for Mamba 2 align with Mamba 1. Additionally, Mamba-series models are applied widely across different fields [160, 280, 281, 463]. Other follow-up Mamba-based language models such as Falcon Mamba 7B [463] and Mistral 7B [160] also demonstrate the efficiency of the architecture for NLP tasks. Falcon Mamba 7B scales Mamba’s long-sequence processing capabilities to extensive language data, reducing memory overhead and making it ideal for long-form NLP tasks.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 74, + "chunk_id": "Small Language Models in the Era of Large_chunk_0074", + "start_position": 31949, + "end_position": 32435, + "page_index": 9, + "word_count": 71, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "es to extensive language data, reducing memory overhead and making it ideal for long-form NLP tasks. Similarly, Mistral 7B incorporates Mamba’s efficient sequence handling ability to improve processing speed and computational efficiency in long-context NLP tasks, showcasing Mamba’s scalability and practicality for large-scale language modeling. 2.1.3 Hymba. Attention heads in the Transformer facilitate high-resolution recall, while SSM heads in Mamba efficiently summarize context.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 75, + "chunk_id": "Small Language Models in the Era of Large_chunk_0075", + "start_position": 32435, + "end_position": 32920, + "page_index": 9, + "word_count": 63, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "ansformer facilitate high-resolution recall, while SSM heads in Mamba efficiently summarize context. To balance performance and efficiency for SLMs, Hymba [90] integrates both attention and SSM heads within the same layer, allowing for parallel and complementary processing of inputs, as depicted in Fig [IMAGE]\nFig. 6. Hymba [90] architecture. ure 6.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 76, + "chunk_id": "Small Language Models in the Era of Large_chunk_0076", + "start_position": 32920, + "end_position": 33271, + "page_index": 9, + "word_count": 51, + "char_count": 351 + }, + "has_embedding": false + }, + { + "content": "ure 6. This hybrid-head approach enables each layer to simultaneously leverage the high-resolution recall of attention heads and the contextual summarization of SSMs, increasing the model’s flexibility and expressiveness in managing diverse information flows and memory access patterns.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 77, + "chunk_id": "Small Language Models in the Era of Large_chunk_0077", + "start_position": 33271, + "end_position": 33557, + "page_index": 9, + "word_count": 38, + "char_count": 286 + }, + "has_embedding": false + }, + { + "content": "l’s flexibility and expressiveness in managing diverse information flows and memory access patterns. Hymba has been developed in models of varying sizes—125M, 350M, and 1.5B, trained on a combination of the DCLM-Baseline-1.0 [192], SmolLM-Corpus [27], and a proprietary high-quality dataset, with token counts of 1 trillion, 250 billion, and 50 billion, respectively.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 78, + "chunk_id": "Small Language Models in the Era of Large_chunk_0078", + "start_position": 33557, + "end_position": 33924, + "page_index": 9, + "word_count": 52, + "char_count": 367 + }, + "has_embedding": false + }, + { + "content": "ry high-quality dataset, with token counts of 1 trillion, 250 billion, and 50 billion, respectively. The models incorporate the Warmup-Stable-Decay (WSD) learning rate scheduler [143] and the data annealing technique [94] to ensure stable pretraining, conducted on 128 NVIDIA A100 GPUs. The 1.5B base model was post-trained using full finetuning (FFT), followed by direct preference optimization (DPO) [283] to develop the Hymba-1.5B-Instruct model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 79, + "chunk_id": "Small Language Models in the Era of Large_chunk_0079", + "start_position": 33924, + "end_position": 34373, + "page_index": 9, + "word_count": 63, + "char_count": 449 + }, + "has_embedding": false + }, + { + "content": "T), followed by direct preference optimization (DPO) [283] to develop the Hymba-1.5B-Instruct model. In commonsense reasoning tasks, the Hymba 1.5B model surpasses Llama3.2-3B [7] by achieving $1 . 3 2 \\%$ higher average accuracy, requiring an $1 1 . 6 7 \\times$ smaller cache size, and delivering a $3 . 4 9 \\times$ increase in processing speed. 2.1.4 xLSTM.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 80, + "chunk_id": "Small Language Models in the Era of Large_chunk_0080", + "start_position": 34373, + "end_position": 34732, + "page_index": 9, + "word_count": 59, + "char_count": 359 + }, + "has_embedding": false + }, + { + "content": "2.1.4 xLSTM. Long Short-Term Memory (LSTM) [137] shares a conceptual similarity with Mamba that achieves success in language modeling through the introduction of time-dependent weights. This similarity raises an intriguing question: how effective would LSTMs be at language modeling if scaled to billions of parameters, incorporating advanced techniques from modern LLMs while addressing known LSTM limitations?", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 81, + "chunk_id": "Small Language Models in the Era of Large_chunk_0081", + "start_position": 34732, + "end_position": 35143, + "page_index": 10, + "word_count": 56, + "char_count": 411 + }, + "has_embedding": false + }, + { + "content": "ameters, incorporating advanced techniques from modern LLMs while addressing known LSTM limitations? Inspired by this question, Beck et al. [25] propose xLSTM architecture, which performs favorably compared to state-of-the-art Transformers and SSMs in empirical evaluations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 82, + "chunk_id": "Small Language Models in the Era of Large_chunk_0082", + "start_position": 35143, + "end_position": 35417, + "page_index": 10, + "word_count": 35, + "char_count": 274 + }, + "has_embedding": false + }, + { + "content": "hich performs favorably compared to state-of-the-art Transformers and SSMs in empirical evaluations. To address the limitations of LSTM, xLSTM designs exponential gates to enhance effectiveness with long sequences, expand memory cells from scalars to matrices to increase storage capacity, and remove memory mixing to enable parallel processing.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 83, + "chunk_id": "Small Language Models in the Era of Large_chunk_0083", + "start_position": 35417, + "end_position": 35762, + "page_index": 10, + "word_count": 47, + "char_count": 345 + }, + "has_embedding": false + }, + { + "content": "rs to matrices to increase storage capacity, and remove memory mixing to enable parallel processing. To test the language modeling capabilities of xLSTM scaled to billions of parameters, it is trained on a large dataset comprising 300 billion tokens from SlimPajama [314] across various model sizes (125M, 350M, 760M, 1.3B). The performance of pre-trained xLSTM is compared against RWKV-4 [270], Llama [153], and Mamba [117] across 571 text domains of the PALOMA benchmark [237] and various downstream tasks.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 84, + "chunk_id": "Small Language Models in the Era of Large_chunk_0084", + "start_position": 35762, + "end_position": 36270, + "page_index": 10, + "word_count": 78, + "char_count": 508 + }, + "has_embedding": false + }, + { + "content": "and Mamba [117] across 571 text domains of the PALOMA benchmark [237] and various downstream tasks. Across all model sizes and the majority of tasks, xLSTM consistently outperforms the others, suggesting that larger xLSTM models could become formidable competitors to existing Large Language Models that utilize Transformer technology. # 2.2 Training SLMs from Scratch", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 85, + "chunk_id": "Small Language Models in the Era of Large_chunk_0085", + "start_position": 36270, + "end_position": 36638, + "page_index": 10, + "word_count": 54, + "char_count": 368 + }, + "has_embedding": false + }, + { + "content": "# 2.2 Training SLMs from Scratch Training SLMs from scratch entails several critical steps: (i) Pre-training, focused on acquiring general features and knowledge from the corpus; (ii) Fine-tuning, targeted at boosting the model’s abilities and performance for specific tasks; (iii) Decoding strategies, which involve the methods used for iteratively selecting the next token during generation. 2.2.1 Pre-training.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 86, + "chunk_id": "Small Language Models in the Era of Large_chunk_0086", + "start_position": 36638, + "end_position": 37051, + "page_index": 10, + "word_count": 57, + "char_count": 413 + }, + "has_embedding": false + }, + { + "content": "2.2.1 Pre-training. Typically, the pre-training paradigm for language models is divided into encoder-based and decoderbased approaches. Encoder-based models, such as BERT [83], utilize Masked Language Modeling (MLM) tasks where the goal is to predict masked tokens within a sentence. This is achieved by maximizing:", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 87, + "chunk_id": "Small Language Models in the Era of Large_chunk_0087", + "start_position": 37051, + "end_position": 37366, + "page_index": 10, + "word_count": 44, + "char_count": 315 + }, + "has_embedding": false + }, + { + "content": "This is achieved by maximizing: $$\n\\begin{array} { r } { P ( \\mathrm { m a s k e d t o k e n } \\mid \\mathrm { c o n t e x t } ) = \\mathrm { s o f t m a x } ( \\mathbf { W } \\cdot \\mathbf { h } _ { \\mathrm { m a s k } } + b ) , } \\end{array}\n$$", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 88, + "chunk_id": "Small Language Models in the Era of Large_chunk_0088", + "start_position": 37366, + "end_position": 37608, + "page_index": 10, + "word_count": 77, + "char_count": 242 + }, + "has_embedding": false + }, + { + "content": "o f t m a x } ( \\mathbf { W } \\cdot \\mathbf { h } _ { \\mathrm { m a s k } } + b ) , } \\end{array}\n$$ where masked token is the original token that has been masked, context represents the other unmasked tokens in the sentence, $\\mathbf { W }$ and $^ { b }$ are trainable parameters of a linear output layer, $\\mathbf { h } _ { \\mathrm { m a s k } }$ is the output from the transformer encoder for the masked position, and softmax is the activation function that converts logits to probabilities over the vocabulary.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 89, + "chunk_id": "Small Language Models in the Era of Large_chunk_0089", + "start_position": 37608, + "end_position": 38122, + "page_index": 10, + "word_count": 110, + "char_count": 514 + }, + "has_embedding": false + }, + { + "content": "n, and softmax is the activation function that converts logits to probabilities over the vocabulary. This process enhances the model’s language encoding capabilities. Decoder-based models, such as GPT [282], employ Next Token Prediction (NTP) tasks, aiming to model the distribution of the next token by maximizing:", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 90, + "chunk_id": "Small Language Models in the Era of Large_chunk_0090", + "start_position": 38122, + "end_position": 38437, + "page_index": 10, + "word_count": 46, + "char_count": 315 + }, + "has_embedding": false + }, + { + "content": "Next Token Prediction (NTP) tasks, aiming to model the distribution of the next token by maximizing: $$\n\\begin{array} { r } { P ( \\mathrm { n e x t ~ t o k e n } \\mid \\mathrm { c o n t e x t } ) = \\mathrm { s o f t m a x } ( \\mathbf { W } \\cdot \\mathbf { h } _ { \\mathrm { l a s t } } + b ) , } \\end{array}\n$$", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 91, + "chunk_id": "Small Language Models in the Era of Large_chunk_0091", + "start_position": 38437, + "end_position": 38746, + "page_index": 10, + "word_count": 87, + "char_count": 309 + }, + "has_embedding": false + }, + { + "content": "o f t m a x } ( \\mathbf { W } \\cdot \\mathbf { h } _ { \\mathrm { l a s t } } + b ) , } \\end{array}\n$$ where next token is the token that the model aims to predict, context represents the sequence of tokens preceding the token to be predicted, and $\\mathbf { h } _ { \\mathrm { l a s t } }$ is the output from the transformer encoder for the last token in the context.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 92, + "chunk_id": "Small Language Models in the Era of Large_chunk_0092", + "start_position": 38746, + "end_position": 39111, + "page_index": 11, + "word_count": 87, + "char_count": 365 + }, + "has_embedding": false + }, + { + "content": "\\mathrm { l a s t } }$ is the output from the transformer encoder for the last token in the context. Effective data preprocessing, crucial for optimizing the performance of SLMs trained from scratch, involves meticulous data cleaning and strategic tokenization. Data Cleaning involves techniques such as filtering, deduplication, and noise reduction, which improve data quality and help the model generalize better.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 93, + "chunk_id": "Small Language Models in the Era of Large_chunk_0093", + "start_position": 39111, + "end_position": 39526, + "page_index": 11, + "word_count": 63, + "char_count": 415 + }, + "has_embedding": false + }, + { + "content": "deduplication, and noise reduction, which improve data quality and help the model generalize better. Filtering noisy or irrelevant data, addressing outliers, and handling imbalances in the dataset ensure that the training data is both representative and efficient. Deduplication, in particular, helps prevent overfitting by removing repeated instances, making the model more robust with efficient parameter usage. Tokenization plays a vital role in handling diverse vocabularies without increasing model size.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 94, + "chunk_id": "Small Language Models in the Era of Large_chunk_0094", + "start_position": 39526, + "end_position": 40035, + "page_index": 11, + "word_count": 69, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "Tokenization plays a vital role in handling diverse vocabularies without increasing model size. Advanced methods such as Byte-Pair Encoding (BPE) [106] and WordPiece [316] break text into subwords [83], allowing the model to manage rare and compound words efficiently. These strategies ensure that SLMs maintain a balance between vocabulary coverage and model compactness, crucial for improving generalization while minimizing computational demands. 2.2.2 Fine-Tuning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 95, + "chunk_id": "Small Language Models in the Era of Large_chunk_0095", + "start_position": 40035, + "end_position": 40503, + "page_index": 11, + "word_count": 63, + "char_count": 468 + }, + "has_embedding": false + }, + { + "content": "2.2.2 Fine-Tuning. After the initial training, SLMs are fine-tuned on specific tasks using task-specific data and loss functions. Parameter-efficient fine-tuning methods [118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 96, + "chunk_id": "Small Language Models in the Era of Large_chunk_0096", + "start_position": 40503, + "end_position": 40999, + "page_index": 12, + "word_count": 63, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\Delta \\mathbf { W } = \\mathbf { A } \\mathbf { B } ^ { \\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\mathbf { W } _ { \\mathrm { f t } } = \\mathbf { W } + \\alpha \\Delta \\mathbf { W }$ where $\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 97, + "chunk_id": "Small Language Models in the Era of Large_chunk_0097", + "start_position": 40999, + "end_position": 41528, + "page_index": 12, + "word_count": 94, + "char_count": 529 + }, + "has_embedding": false + }, + { + "content": "ng fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks. Adapter Modules [140] are small, trainable layers inserted into the pre-trained model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 98, + "chunk_id": "Small Language Models in the Era of Large_chunk_0098", + "start_position": 41528, + "end_position": 41902, + "page_index": 12, + "word_count": 51, + "char_count": 374 + }, + "has_embedding": false + }, + { + "content": "Adapter Modules [140] are small, trainable layers inserted into the pre-trained model. These layers are fine-tuned on task-specific data, allowing the base model to remain fixed while the adapters learn the necessary adjustments.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 99, + "chunk_id": "Small Language Models in the Era of Large_chunk_0099", + "start_position": 41902, + "end_position": 42131, + "page_index": 12, + "word_count": 33, + "char_count": 229 + }, + "has_embedding": false + }, + { + "content": "ic data, allowing the base model to remain fixed while the adapters learn the necessary adjustments. The typical structure of an adapter module includes a down-projection, a non-linearity, and an up-projection: Adapter $\\mathbf { \\Pi } ( \\mathbf { h } ) = \\mathbf { h } + \\mathbf { W } _ { \\mathrm { u p } } \\cdot \\sigma ( \\mathbf { W } _ { \\mathrm { d o w n } } \\cdot \\mathbf { h } + \\mathbf { b } _ { \\mathrm { d o w n } } ) + \\mathbf { b } _ { \\mathrm { u p } }$ where h is the input hidden state, $\\mathbf { W } _ { \\mathrm { d o w n } }$ and $\\mathbf { W } _ { \\mathrm { u p } }$ are the projection matrices, $\\mathbf { b } _ { \\mathrm { d o w n } }$ and ${ \\bf b } _ { \\mathrm { u p } }$ are the bias terms, and $\\sigma$ is a non-linear activation function.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 100, + "chunk_id": "Small Language Models in the Era of Large_chunk_0100", + "start_position": 42131, + "end_position": 42894, + "page_index": 12, + "word_count": 187, + "char_count": 763 + }, + "has_embedding": false + }, + { + "content": "\\bf b } _ { \\mathrm { u p } }$ are the bias terms, and $\\sigma$ is a non-linear activation function. 2.2.3 Decoding Strategies. After pre-training or fine-tuning, employing an effective decoding strategy is crucial for generating output from language models. Decoding, the process of text generation from SLMs, involves iteratively selecting the next word. A fundamental method is the greedy search, which predicts the most likely token at each step.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 101, + "chunk_id": "Small Language Models in the Era of Large_chunk_0101", + "start_position": 42894, + "end_position": 43344, + "page_index": 12, + "word_count": 72, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "A fundamental method is the greedy search, which predicts the most likely token at each step. This is formally modeled as: $x _ { i } = \\arg \\operatorname* { m a x } _ { x } P ( x \\mid x _ { < i } )$ , where $x _ { i }$ is the token with the highest probability at the $i$ -th step, conditioned on the preceding context $x _ { < i }$ . Other decoding strategies, such as beam search or top- $\\mathbf { \\nabla } \\cdot \\mathbf { k }$ sampling, are crucial for generating high-quality outputs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 102, + "chunk_id": "Small Language Models in the Era of Large_chunk_0102", + "start_position": 43344, + "end_position": 43834, + "page_index": 12, + "word_count": 105, + "char_count": 490 + }, + "has_embedding": false + }, + { + "content": "$\\mathbf { \\nabla } \\cdot \\mathbf { k }$ sampling, are crucial for generating high-quality outputs. Beam search balances exploration and exploitation by considering multiple possible sequences simultaneously, while top- $\\mathbf { \\nabla } _ { \\cdot \\mathrm { k } }$ sampling introduces diversity and creativity in text generation. These strategies collectively ensure that SLMs are efficient and capable of delivering high performance across various natural language processing tasks.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 103, + "chunk_id": "Small Language Models in the Era of Large_chunk_0103", + "start_position": 43834, + "end_position": 44319, + "page_index": 13, + "word_count": 70, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "ficient and capable of delivering high performance across various natural language processing tasks. Manuscript submitted to ACM # 2.3 Obtain SLMs from LLMs Obtaining an SLM from an LLM is crucial for deploying in resource-constrained environments. Instead of training from scratch, leveraging an LLM allows for knowledge transfer, enabling SLMs to retain much of the LLM’s linguistic and domain knowledge with reduced training time and data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 104, + "chunk_id": "Small Language Models in the Era of Large_chunk_0104", + "start_position": 44319, + "end_position": 44761, + "page_index": 13, + "word_count": 66, + "char_count": 442 + }, + "has_embedding": false + }, + { + "content": "LMs to retain much of the LLM’s linguistic and domain knowledge with reduced training time and data. To obtain SLMs from LLMs, three primary techniques are used: pruning, knowledge distillation, and quantization. Pruning removes less critical parameters, reducing model size while aiming to maintain performance. Knowledge distillation transfers knowledge from a large teacher model to a smaller student model, preserving much of the original model’s understanding.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 105, + "chunk_id": "Small Language Models in the Era of Large_chunk_0105", + "start_position": 44761, + "end_position": 45226, + "page_index": 13, + "word_count": 66, + "char_count": 465 + }, + "has_embedding": false + }, + { + "content": "rge teacher model to a smaller student model, preserving much of the original model’s understanding. Quantization decreases parameter precision, significantly lowering memory and computation needs with minimal impact on accuracy. These methods balance size reduction, efficiency, and performance retention. 2.3.1 Pruning. Pruning is a technique used to reduce a model’s size and computational requirements (e.g., LLMs) without significantly sacrificing its performance [126].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 106, + "chunk_id": "Small Language Models in the Era of Large_chunk_0106", + "start_position": 45226, + "end_position": 45701, + "page_index": 13, + "word_count": 62, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": "and computational requirements (e.g., LLMs) without significantly sacrificing its performance [126]. This process involves identifying and removing less important or redundant parameters and components from the model. The primary goal of LLM pruning is to make the model more efficient, faster, and suitable for deployment in resource-constrained environments. Typically, pruning can be categorized into two main types: unstructured pruning and structured pruning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 107, + "chunk_id": "Small Language Models in the Era of Large_chunk_0107", + "start_position": 45701, + "end_position": 46165, + "page_index": 13, + "word_count": 62, + "char_count": 464 + }, + "has_embedding": false + }, + { + "content": "ically, pruning can be categorized into two main types: unstructured pruning and structured pruning. An illustration of unstructured pruning and structured pruning is shown in Figure 7. [IMAGE]\nFig. 7. Unstructured and structured pruning. Unstructured Pruning [76, 102, 201, 300, 321, 438, 442] prunes an LLM by removing weights individually without considering its internal structure. The least significant parameters are pruned according to specific criteria (e.g. magnitude or impact on the output).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 108, + "chunk_id": "Small Language Models in the Era of Large_chunk_0108", + "start_position": 46165, + "end_position": 46667, + "page_index": 14, + "word_count": 72, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "magnitude or impact on the output). This method can achieve significant compression while maintaining performance. However, it can also lead to irregular memory access patterns and reduced hardware efficiency because the pruned model lacks a regular structure. SparseGPT [102] is a representative unstructured pruning method that can reduce large-scale GPT models like OPT-175B [440] and BLOOM-176B [181] to up to $6 0 \\%$ sparsity using a novel sparse regression solver.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 109, + "chunk_id": "Small Language Models in the Era of Large_chunk_0109", + "start_position": 46667, + "end_position": 47138, + "page_index": 14, + "word_count": 70, + "char_count": 471 + }, + "has_embedding": false + }, + { + "content": "T-175B [440] and BLOOM-176B [181] to up to $6 0 \\%$ sparsity using a novel sparse regression solver. Wanda [321] combines weight magnitudes with input activations to efficiently identify and discard less impactful parameters. It operates in a single forward pass, rapidly achieving high sparsity without retraining. It is also worth noting that recent studies specifically address the compatibility issues between pruning and Low-rank Adaptation (LoRA) [142], such as LoRAPrune [438].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 110, + "chunk_id": "Small Language Models in the Era of Large_chunk_0110", + "start_position": 47138, + "end_position": 47622, + "page_index": 14, + "word_count": 71, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "compatibility issues between pruning and Low-rank Adaptation (LoRA) [142], such as LoRAPrune [438]. Structured Pruning [13, 19, 51, 110, 124, 188, 196, 232, 243, 305, 306, 385, 410, 446], which prunes an LLM by targeting entire structural components—such as neurons, channels, or layers—rather. This approach allows for a direct reduction in dimensionality, thus efficiently reducing model complexity and memory usage.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 111, + "chunk_id": "Small Language Models in the Era of Large_chunk_0111", + "start_position": 47622, + "end_position": 48040, + "page_index": 14, + "word_count": 60, + "char_count": 418 + }, + "has_embedding": false + }, + { + "content": "r a direct reduction in dimensionality, thus efficiently reducing model complexity and memory usage. Although structured pruning may lead to higher accuracy degradation than unstructured pruning, it simplifies implementation without requiring specialized hardware. ShortGPT [243] proposes the Block Influence (BI) metric, which measures the significance of each layer based on its transformation of hidden states. Essentially, a transformer block’s influence is measured by how much it alters the hidden states.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 112, + "chunk_id": "Small Language Models in the Era of Large_chunk_0112", + "start_position": 48040, + "end_position": 48551, + "page_index": 14, + "word_count": 70, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "Essentially, a transformer block’s influence is measured by how much it alters the hidden states. By calculating BI scores, ShortGPT determines which layers contribute minimally to the overall performance and removes these low-importance layers. This simple yet effective layer removal strategy significantly reduces the model’s parameters and computational requirements. LLM Pruner [232] offers a method to efficiently prune LLMs without access to the original training dataset.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 113, + "chunk_id": "Small Language Models in the Era of Large_chunk_0113", + "start_position": 48551, + "end_position": 49030, + "page_index": 14, + "word_count": 66, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "ner [232] offers a method to efficiently prune LLMs without access to the original training dataset. It employs a three-step compression pipeline: Discovery (identifying interdependent structures), Estimation (evaluating the performance impact of each group), and Recovery (post-training to address performance loss). NutePrune [196] enhances structured pruning with a [IMAGE]\nFig. 8. Illustration of white-box and black-box knowledge distillation [245].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 114, + "chunk_id": "Small Language Models in the Era of Large_chunk_0114", + "start_position": 49030, + "end_position": 49484, + "page_index": 15, + "word_count": 59, + "char_count": 454 + }, + "has_embedding": false + }, + { + "content": "Illustration of white-box and black-box knowledge distillation [245]. Numerous-teacher method, employing variable sparsity masks and LoRA modules to guide the pruning process. This approach effectively reduces model size and complexity. COST-EFF [305] introduces a slenderized backbone—a form of structured pruning—and a multi-exit model that employs task-specific calibration through knowledge distillation.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 115, + "chunk_id": "Small Language Models in the Era of Large_chunk_0115", + "start_position": 49484, + "end_position": 49892, + "page_index": 15, + "word_count": 50, + "char_count": 408 + }, + "has_embedding": false + }, + { + "content": "runing—and a multi-exit model that employs task-specific calibration through knowledge distillation. This slenderization reduces the model’s spatial footprint, while the multi-exit strategy effectively balances utility and runtime costs. To enhance the flexibility of structural pruning, DISP-LLM [110] breaks the structural dependencies in regular methods by allowing different layers to have different subsets of features along the embedding dimension. 2.3.2 Knowledge Distillation.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 116, + "chunk_id": "Small Language Models in the Era of Large_chunk_0116", + "start_position": 49892, + "end_position": 50376, + "page_index": 15, + "word_count": 61, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "2.3.2 Knowledge Distillation. Knowledge distillation (KD) compresses a larger teacher model into a smaller student model by training the student to mimic the teacher’s outputs [136]. This enables the student to retain much of the teacher’s capabilities with fewer parameters, making it ideal for scaling down LLMs for resource-limited environments while maintaining performance. KD can be categorized into white-box and black-box approaches [361, 403, 457] as shown in Figure 8.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 117, + "chunk_id": "Small Language Models in the Era of Large_chunk_0117", + "start_position": 50376, + "end_position": 50854, + "page_index": 15, + "word_count": 70, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "KD can be categorized into white-box and black-box approaches [361, 403, 457] as shown in Figure 8. In White-Box KD, the student has access to the teacher’s internal states or output distributions [6, 119, 157, 169, 173, 265, 381, 434]. Generalized Knowledge Distillation (GKD) [173] introduces skew KL divergence to stabilize gradients and enhance performance, using an adaptive off-policy approach to minimize noisy feedback and improve efficiency.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 118, + "chunk_id": "Small Language Models in the Era of Large_chunk_0118", + "start_position": 50854, + "end_position": 51304, + "page_index": 15, + "word_count": 67, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "erformance, using an adaptive off-policy approach to minimize noisy feedback and improve efficiency. Black-Box KD relies only on teacher outputs without having access to model internals [48, 182, 271, 360]. Methods like Distilling Step-by-Step [141] use teacher-generated rationales to train smaller models, improving performance with fewer examples. LaMini-LM [380] creates a diverse instruction dataset with GPT-3.5 Turbo responses, enabling robust performance in smaller models. [IMAGE]\nFig. 9.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 119, + "chunk_id": "Small Language Models in the Era of Large_chunk_0119", + "start_position": 51304, + "end_position": 51801, + "page_index": 15, + "word_count": 67, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "9. Illustration of quantization-aware training (QAT) and post-training quantization (PTQ). Table 1. Representative quantization methods.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 120, + "chunk_id": "Small Language Models in the Era of Large_chunk_0120", + "start_position": 51801, + "end_position": 51937, + "page_index": 16, + "word_count": 15, + "char_count": 136 + }, + "has_embedding": false + }, + { + "content": "Representative quantization methods.
MethodsBitTypeTechnical ContributionProblems
SqueezeLLM [170]3-bitPTQSensitivity-based non-uniform quantization, dense and sparse decompositionultra-low bit quantization
JSQ [122] FrameQuant [4]Flexible Fractional bitPTQJoint Sparsification and Quantization Fractional bit widthsbetter compression-accuracy trade-off s.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 121, + "chunk_id": "Small Language Models in the Era of Large_chunk_0121", + "start_position": 51937, + "end_position": 52450, + "page_index": 16, + "word_count": 28, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "arsification and Quantization Fractional bit widthsbetter compression-accuracy trade-off s. better compression-accuracy trade-off s.
OneBit [400]1-bitPTQ PTQQuantization-aware knowledge distillation1-bit quantization
BiLLM [147]1-bitPTQCrucial Weights Selection, Block-based error compensation1-bit quantization
LQER [432] I-LLM [144]Flexible FlexiblePTQ PTQQuantization Error Minimization Fully-Smooth Block-Reconstruction, Dy-better compression-accuracy trade-offs Integer-only Quantization
PV-Tuning [239]namic Integer-only MatMul and Integer-only Non-linear Operators
BitNet [357]1-bit/2-bit 1-bitPTQPV algorithmbetter compression-accuracy trade-off s.
BitNet b1.58 [231]{-1, 0, 1}QAT1-bit Transformer Architecture1-bit quantization
PEQA [168]FlexibleQATTernary Parameters1-bit quantization
QATQuantization Scales OptimizationParameter-Efi cient Finetuning
QLoRA [81]NF4QAT4-bit NormalFloat and Double QuantizationParameter-Eficient Finetuning
", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 122, + "chunk_id": "Small Language Models in the Era of Large_chunk_0122", + "start_position": 52450, + "end_position": 53901, + "page_index": 16, + "word_count": 72, + "char_count": 1451 + }, + "has_embedding": false + }, + { + "content": "td>4-bit NormalFloat and Double QuantizationParameter-Eficient Finetuning 2.3.3 Quantization. Quantization reduces the storage and computational demands of LLMs by converting floatingpoint representations into lower-precision formats, significantly cutting both storage requirements and computational complexity. Existing methods fall into two categories: Post-Training Quantization (PTQ) and Quantization-Aware Training (QAT). Figure 9 illustrates the two quantization methods.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 123, + "chunk_id": "Small Language Models in the Era of Large_chunk_0123", + "start_position": 53901, + "end_position": 54406, + "page_index": 16, + "word_count": 52, + "char_count": 505 + }, + "has_embedding": false + }, + { + "content": "Figure 9 illustrates the two quantization methods. Post-Training Quantization, applied after training, simplifies model compression without altering the architecture or requiring retraining, though it may result in precision loss. Consider a group or block of weights w; the linear operation can be expressed as $y = \\mathbf { w x }$ , while the quantized version is given by ?? = ?? (w)x. Generally, the quantization function ?? is defined as [207]: ?? (w) = Δ · Round \u0000 wΔ \u0001 , Δ = max( |w| )2??", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 124, + "chunk_id": "Small Language Models in the Era of Large_chunk_0124", + "start_position": 54406, + "end_position": 54902, + "page_index": 17, + "word_count": 87, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "(w) = Δ · Round \u0000 wΔ \u0001 , Δ = max( |w| )2?? −1 , where $N$ is the number of quantization bits, and $\\Delta$ is the quantization scale factor determined by the absolute maximum value of w. Quantization-Aware Training (QAT) enhances LLM efficiency by directly incorporating quantization into the training process, often resulting in higher accuracy than PTQ.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 125, + "chunk_id": "Small Language Models in the Era of Large_chunk_0125", + "start_position": 54902, + "end_position": 55257, + "page_index": 17, + "word_count": 60, + "char_count": 355 + }, + "has_embedding": false + }, + { + "content": "y incorporating quantization into the training process, often resulting in higher accuracy than PTQ. During QAT, the forward pass utilizes quantized weights $Q ( \\mathbf { W } )$ and activations $Q ( \\mathbf { X } )$ , while retaining full-precision values during the backward pass and for updating gradients to ensure stable learning dynamics.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 126, + "chunk_id": "Small Language Models in the Era of Large_chunk_0126", + "start_position": 55257, + "end_position": 55601, + "page_index": 17, + "word_count": 56, + "char_count": 344 + }, + "has_embedding": false + }, + { + "content": "ision values during the backward pass and for updating gradients to ensure stable learning dynamics. The comparisons of the post-training quantization methods are summarized in Table 1, detailing precision, addressed problems, and technical contributions of each method. 2.3.4 Low-Rank Techniques. Low-rank techniques compress LLMs by approximating a high-dimensional weight matrix with two lower-dimensional matrices, reducing computational and memory requirements.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 127, + "chunk_id": "Small Language Models in the Era of Large_chunk_0127", + "start_position": 55601, + "end_position": 56067, + "page_index": 17, + "word_count": 59, + "char_count": 466 + }, + "has_embedding": false + }, + { + "content": "l weight matrix with two lower-dimensional matrices, reducing computational and memory requirements. A matrix $\\mathbf { W } \\in \\mathbb { R } ^ { m \\times n }$ is approximated as $\\mathbf { W } \\approx \\mathbf { A } \\times \\mathbf { B }$ , where $\\mathbf { A } \\in \\mathbb { R } ^ { m \\times r }$ and $\\mathbf { B } \\in \\mathbb { R } ^ { r \\times n }$ , with $r$ much smaller than $m$ or $n$ , reducing the number of parameters.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 128, + "chunk_id": "Small Language Models in the Era of Large_chunk_0128", + "start_position": 56067, + "end_position": 56496, + "page_index": 17, + "word_count": 94, + "char_count": 429 + }, + "has_embedding": false + }, + { + "content": "{ R } ^ { r \\times n }$ , with $r$ much smaller than $m$ or $n$ , reducing the number of parameters. Building on this concept, Ji et al. [158] propose a low-rank method tailored for LLMs, leveraging the observation that while LLMs have high-rank weights, their feature interactions tend to exhibit low-rank properties. The method estimates feature distributions using pooled covariance matrices and allocates distinct compression ratios to layers based on their sensitivity to low-rank compression.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 129, + "chunk_id": "Small Language Models in the Era of Large_chunk_0129", + "start_position": 56496, + "end_position": 56994, + "page_index": 17, + "word_count": 79, + "char_count": 498 + }, + "has_embedding": false + }, + { + "content": "allocates distinct compression ratios to layers based on their sensitivity to low-rank compression. A Bayesian optimization strategy, using a Gaussian process as the surrogate model, optimizes the allocation of low-rank dimensions, ensuring the model maintains performance while achieving significant compression.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 130, + "chunk_id": "Small Language Models in the Era of Large_chunk_0130", + "start_position": 56994, + "end_position": 57307, + "page_index": 18, + "word_count": 40, + "char_count": 313 + }, + "has_embedding": false + }, + { + "content": "w-rank dimensions, ensuring the model maintains performance while achieving significant compression. Transitioning from model compression to fine-tuning, Cho et al. [62] tackles system and data heterogeneity with the HETLORA method, which uses heterogeneous low-rank approximations to accommodate the diverse capabilities of clients and data complexities.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 131, + "chunk_id": "Small Language Models in the Era of Large_chunk_0131", + "start_position": 57307, + "end_position": 57662, + "page_index": 18, + "word_count": 45, + "char_count": 355 + }, + "has_embedding": false + }, + { + "content": "us low-rank approximations to accommodate the diverse capabilities of clients and data complexities. By combining local rank self-pruning with sparsityweighted aggregation, it balances high and low-rank LoRA modules, improving convergence speed and performance compared to uniform approaches. LLM-Neo [409] combines knowledge distillation with low-rank adaptation (LoRA) to improve the efficiency of transferring knowledge from a teacher LLM to a compact student model. Table 2.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 132, + "chunk_id": "Small Language Models in the Era of Large_chunk_0132", + "start_position": 57662, + "end_position": 58140, + "page_index": 18, + "word_count": 64, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "Table 2. Advanced enhancement methods for SLM.
TopicMethodMain Contribution
Training from ScratchMindLLM [412] MobiLlama [336] MobileLLM [223]Bilingual models with advanced features. On-device SLM with dual objectives for eficiency and capability.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 133, + "chunk_id": "Small Language Models in the Era of Large_chunk_0133", + "start_position": 58140, + "end_position": 58455, + "page_index": 18, + "word_count": 29, + "char_count": 315 + }, + "has_embedding": false + }, + { + "content": "On-device SLM with dual objectives for eficiency and capability. Optimizes LLM deployment on mobile with advanced architecture.
Supervised Fine-tuningMobileBERT [322] Alpaca 7B [329] RLHF [264] DPO [283]Compact BERT for efi cient f ne-tuning. Uses ChatGPT-generated tasks to tune Llama 7B.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 134, + "chunk_id": "Small Language Models in the Era of Large_chunk_0134", + "start_position": 58455, + "end_position": 58779, + "page_index": 18, + "word_count": 39, + "char_count": 324 + }, + "has_embedding": false + }, + { + "content": "Uses ChatGPT-generated tasks to tune Llama 7B. Trains using human-preferred data and reinforcement learning.
Data Quality in KDTinyStory [96] AS-ES [384] Self-Amplify [29]Dynamically adjusts log probabilities to prevent model degradation. Enhances narrative coherence in child-friendly datasets. Improves CoT by categorizing reasoning steps.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 135, + "chunk_id": "Small Language Models in the Era of Large_chunk_0135", + "start_position": 58779, + "end_position": 59155, + "page_index": 18, + "word_count": 41, + "char_count": 376 + }, + "has_embedding": false + }, + { + "content": "Improves CoT by categorizing reasoning steps. Automates CoT data annotation for small models.
Distillation for SLMGKD [6] DistiLLM [173] Adapt-and-Distill [414] SmoothQuant [386]Aligns training and inference distributions using on-policy sequences. Uses skew KL divergence and adaptive off-policy for output utilization.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 136, + "chunk_id": "Small Language Models in the Era of Large_chunk_0136", + "start_position": 59155, + "end_position": 59510, + "page_index": 18, + "word_count": 39, + "char_count": 355 + }, + "has_embedding": false + }, + { + "content": "Uses skew KL divergence and adaptive off-policy for output utilization. Domain adapts both teacher and student models before distillation.
QuantizationBiLLM [147] LLM-QAT [221] PB-LLM [299] OneBit [400] BitNet [357] BitNet b1.58 [231]Balances quantization dificulty using per-channel scaling. Applies Hessian-based metrics for binary residual approximation. Uses data-free knowledge distiltion and logit distiltion for fine-tuning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 137, + "chunk_id": "Small Language Models in the Era of Large_chunk_0137", + "start_position": 59510, + "end_position": 59976, + "page_index": 18, + "word_count": 52, + "char_count": 466 + }, + "has_embedding": false + }, + { + "content": "Uses data-free knowledge distiltion and logit distiltion for fine-tuning. Binarizes non-salient weights while preserving others in higher precision. Achieves near 1-bit quantization with minimal performance loss. Introduces 1-bit Transformer architecture with BitLinear layers.
esMa et al [234] SLM-RAG [215]Implements a ternary weight system in enhanced BitNet. Shows that SLMs with RAG can match LLM performance.
", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 138, + "chunk_id": "Small Language Models in the Era of Large_chunk_0138", + "start_position": 59976, + "end_position": 60444, + "page_index": 18, + "word_count": 55, + "char_count": 468 + }, + "has_embedding": false + }, + { + "content": "Shows that SLMs with RAG can match LLM performance. # 3 ADVANCED ENHANCEMENT STRATEGIES FOR SMALL LANGUAGE MODELS", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 139, + "chunk_id": "Small Language Models in the Era of Large_chunk_0139", + "start_position": 60444, + "end_position": 60575, + "page_index": 18, + "word_count": 18, + "char_count": 131 + }, + "has_embedding": false + }, + { + "content": "tch LLM performance. # 3 ADVANCED ENHANCEMENT STRATEGIES FOR SMALL LANGUAGE MODELS With the foundational concepts introduced in Section 2, this section explores various advanced techniques that enhance the performance of SLMs, including innovative training methods for training SLMs from scratch, supervised fine-tuning (SFT) to align SLMs to adhere to instructions, advanced knowledge distillation and quantization techniques, and techniques frequently used in LLMs such as mixture-of-experts to enhance SLM for specific applications.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 140, + "chunk_id": "Small Language Models in the Era of Large_chunk_0140", + "start_position": 60575, + "end_position": 61128, + "page_index": 18, + "word_count": 72, + "char_count": 553 + }, + "has_embedding": false + }, + { + "content": "hniques frequently used in LLMs such as mixture-of-experts to enhance SLM for specific applications. A summary of enhancement techniques is also summarized in Table 2. # 3.1 Innovative Training Methods for Small Language Models from Scratch In scenarios with limited resources, we aim to train small language models to provide efficient, cost-effective solutions tailored for specific domains, while still maintaining competitive performance with larger models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 141, + "chunk_id": "Small Language Models in the Era of Large_chunk_0141", + "start_position": 61128, + "end_position": 61589, + "page_index": 19, + "word_count": 65, + "char_count": 461 + }, + "has_embedding": false + }, + { + "content": "s tailored for specific domains, while still maintaining competitive performance with larger models. Training small language models (SLMs) from scratch involves unique strategies that diverge significantly from those used for large language models (LLMs). This section synthesizes cutting-edge techniques tailored to optimize the inherent capabilities of SLMs, underscoring their potential to match or surpass larger counterparts in efficiency and effectiveness.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 142, + "chunk_id": "Small Language Models in the Era of Large_chunk_0142", + "start_position": 61589, + "end_position": 62051, + "page_index": 19, + "word_count": 60, + "char_count": 462 + }, + "has_embedding": false + }, + { + "content": "nderscoring their potential to match or surpass larger counterparts in efficiency and effectiveness. As shown in Figure 10, the methods for training SLMs from scratch can be categorized into three primary categories: Architecture Design, Data Construction, and Optimization Strategy. Next, we introduce each category in detail. Architecture Design for SLMs When designing SLM architectures, parameter-sharing techniques are employed to minimize space usage and reduce the model’s size.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 143, + "chunk_id": "Small Language Models in the Era of Large_chunk_0143", + "start_position": 62051, + "end_position": 62536, + "page_index": 19, + "word_count": 67, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "ures, parameter-sharing techniques are employed to minimize space usage and reduce the model’s size. As shown in the first part of Figure 10, parameter sharing is achieved by two approaches: (i) a single Feed-Forward Network (FFN) module is shared by every transformer layer. As shown in Figure 10 (1) middle, FFN layer sharing/reusing can maintain a smaller size while still benefiting from the depth and complexity gained through repeated processing of input data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 144, + "chunk_id": "Small Language Models in the Era of Large_chunk_0144", + "start_position": 62536, + "end_position": 63002, + "page_index": 19, + "word_count": 73, + "char_count": 466 + }, + "has_embedding": false + }, + { + "content": "ile still benefiting from the depth and complexity gained through repeated processing of input data. This technique is firstly applied in MobiLlama [336] which surpasses the performance of existing SLMs of comparable size. (ii) Entire transformer blocks are shared. As shown in Manuscript submitted to ACM [IMAGE]\nFig. 10. Innovative Training Methods for Small Language Models from Scratch", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 145, + "chunk_id": "Small Language Models in the Era of Large_chunk_0145", + "start_position": 63002, + "end_position": 63391, + "page_index": 19, + "word_count": 58, + "char_count": 389 + }, + "has_embedding": false + }, + { + "content": "Innovative Training Methods for Small Language Models from Scratch Figure 10 (1) right, Transformer Block-wise Sharing is another parameter-sharing approach that maintains depth and complexity. There are different transformer block-wise sharing strategies such as repeating the transformer blocks all over again or repeating the immediate transformer block. This technique is applied in MobileLLMs [223] which has 125M and 350M parameters. MobileLLMs demonstrate performance improvements of $2 . 7 \\%$ and $4 .", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 146, + "chunk_id": "Small Language Models in the Era of Large_chunk_0146", + "start_position": 63391, + "end_position": 63901, + "page_index": 19, + "word_count": 72, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "7 \\%$ and $4 . 3 \\%$ , respectively, compared to previous models with equivalent parameters. Moreover, they exhibit accuracy comparable to LLaMa-2-7B on API call tasks, highlighting the capabilities of smaller models in mobile environments. Data Construction For SLMs, the emphasis on data quality surpasses that of quantity and diversity [412]. Experiments demonstrate that using a quality filtering approach to remove low-quality data can lead to improved performance in SLMs [412].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 147, + "chunk_id": "Small Language Models in the Era of Large_chunk_0147", + "start_position": 63901, + "end_position": 64385, + "page_index": 19, + "word_count": 72, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "uality filtering approach to remove low-quality data can lead to improved performance in SLMs [412]. Unlike large models, which can handle diverse and large datasets, SLMs benefit more from cleaner, high-quality data probably due to their limited capacity against noise.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 148, + "chunk_id": "Small Language Models in the Era of Large_chunk_0148", + "start_position": 64385, + "end_position": 64655, + "page_index": 19, + "word_count": 40, + "char_count": 270 + }, + "has_embedding": false + }, + { + "content": "s benefit more from cleaner, high-quality data probably due to their limited capacity against noise. Generally, data processing has several steps: (i) Remove HTML, CSS, JS, and non-text elements for clean text; (ii) Filter low text-to-content ratio web pages; (iii) Deduplicate using SimHash [77, 293]; (iv) Exclude sensitive/offensive content with heuristics and token replacements; (v) Remove self-repeating phrases of advertisements to enhance dataset informativeness [47, 412].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 149, + "chunk_id": "Small Language Models in the Era of Large_chunk_0149", + "start_position": 64655, + "end_position": 65136, + "page_index": 19, + "word_count": 66, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "s; (v) Remove self-repeating phrases of advertisements to enhance dataset informativeness [47, 412]. These steps collectively ensure that training data has high-quality, informative texts. SLMs also significantly benefit from these techniques. For example, MindLLMs [412], which are bilingual lightweight language models (available in 1.3B and 3B versions), adopt these data processing techniques and achieve improved capability acquisition.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 150, + "chunk_id": "Small Language Models in the Era of Large_chunk_0150", + "start_position": 65136, + "end_position": 65577, + "page_index": 20, + "word_count": 57, + "char_count": 441 + }, + "has_embedding": false + }, + { + "content": "nd 3B versions), adopt these data processing techniques and achieve improved capability acquisition. Training Strategy for SLMs For LLMs, due to the large model size and data volume, LLMs are usually trained with one round. For SLMs, multiple-round training can be applied [328]. Considering some examples are hard to fit, hard examples can be trained with a high probability [328]. For each round of training, the data sampling probability is updated according to the overall loss of that sample.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 151, + "chunk_id": "Small Language Models in the Era of Large_chunk_0151", + "start_position": 65577, + "end_position": 66074, + "page_index": 20, + "word_count": 79, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "of training, the data sampling probability is updated according to the overall loss of that sample. Experiments results show that two rounds of training and a $5 0 \\%$ sampling rate are a good trade-off between performance and training efficiency. Tang et al. [328] show that a deep and thin neural architecture and multiple-round training can enhance the performance of the trained Pangu 1.5B pro model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 152, + "chunk_id": "Small Language Models in the Era of Large_chunk_0152", + "start_position": 66074, + "end_position": 66478, + "page_index": 20, + "word_count": 66, + "char_count": 404 + }, + "has_embedding": false + }, + { + "content": "tecture and multiple-round training can enhance the performance of the trained Pangu 1.5B pro model. This model outperforms the conventionally trained Pangu 1.5B and a series of other comparable large language models with similar model sizes on multiple benchmark datasets, achieving an average performance increase of $8 . 8 7 \\%$ . [IMAGE]\nFig. 11. Fine-tuning for Enhancing SLMs # 3.2 Supervised Fine-Tuning (SFT) for Enhancing SLM performance", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 153, + "chunk_id": "Small Language Models in the Era of Large_chunk_0153", + "start_position": 66478, + "end_position": 66924, + "page_index": 20, + "word_count": 68, + "char_count": 446 + }, + "has_embedding": false + }, + { + "content": "Fine-tuning for Enhancing SLMs # 3.2 Supervised Fine-Tuning (SFT) for Enhancing SLM performance Supervised Fine-Tuning (SFT) employs a training methodology similar to pre-training but is specifically tailored to align models to adhere to the instructions encapsulated within various instructional datasets. This approach is designed to refine the model’s responsiveness and appropriateness to given contexts as dictated by the training data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 154, + "chunk_id": "Small Language Models in the Era of Large_chunk_0154", + "start_position": 66924, + "end_position": 67365, + "page_index": 20, + "word_count": 60, + "char_count": 441 + }, + "has_embedding": false + }, + { + "content": "e the model’s responsiveness and appropriateness to given contexts as dictated by the training data. For example, various models, such as Alpaca [329], UltraChat [86], WizardLM [392], SlimOrca [203], ShareGPT [356], Capybara [72], Deita [216], and MetaMathQA [420], incorporates a suite of conversational datasets to enhance their capabilities in context-aware dialogue and instruction adherence. Usually, as shown in Figure 11, existing SFT methods can be categorized into three categories:", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 155, + "chunk_id": "Small Language Models in the Era of Large_chunk_0155", + "start_position": 67365, + "end_position": 67856, + "page_index": 20, + "word_count": 69, + "char_count": 491 + }, + "has_embedding": false + }, + { + "content": "Usually, as shown in Figure 11, existing SFT methods can be categorized into three categories: • (i) Classical fine-tuning with downstream data [83, 282] trains SLMs on task-specific annotated data, transferring general language representations to specific tasks such as sentiment analysis. In the LLM era, this approach remains effective, such as enhancing LLMs by calibrating responses or assigning risk scores with smaller models such as BERT [450], or optimizing for mobile devices with MobileBERT [322].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 156, + "chunk_id": "Small Language Models in the Era of Large_chunk_0156", + "start_position": 67856, + "end_position": 68364, + "page_index": 20, + "word_count": 75, + "char_count": 508 + }, + "has_embedding": false + }, + { + "content": "ores with smaller models such as BERT [450], or optimizing for mobile devices with MobileBERT [322]. • (ii) Instruction tuning with LLM-generated data [86, 203, 329] or human-generated questions with LLM annotations [356] aims to align generative models with specific instructions, enhancing their instruction-following and reasoning capabilities. For example, Alpaca 7B [329] uses 52k ChatGPT-generated instruction-following examples from 175 self-instructed seed tasks to tune Llama 7B [338].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 157, + "chunk_id": "Small Language Models in the Era of Large_chunk_0157", + "start_position": 68364, + "end_position": 68858, + "page_index": 20, + "word_count": 67, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "generated instruction-following examples from 175 self-instructed seed tasks to tune Llama 7B [338]. Meanwhile, StableLM [26, 340] is trained on the Restruct-v1 dataset, which includes summarization, question-answering, and sentiment analysis tasks, using instruction data from [226]. • (iii) Preference optimization with human feedback [264, 283, 356] aims to better align language models with human preferences.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 158, + "chunk_id": "Small Language Models in the Era of Large_chunk_0158", + "start_position": 68858, + "end_position": 69271, + "page_index": 20, + "word_count": 55, + "char_count": 413 + }, + "has_embedding": false + }, + { + "content": "ion with human feedback [264, 283, 356] aims to better align language models with human preferences. Reinforcement Learning from Human Feedback (RLHF) [264] gathers human-preferred data, trains a reward model, and fine-tunes the LM using reinforcement learning. Direct Preference Optimization (DPO) [283] provides a simpler alternative to RLHF. Unlike RLHF, DPO avoids explicit reward modeling and reinforcement learning techniques.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 159, + "chunk_id": "Small Language Models in the Era of Large_chunk_0159", + "start_position": 69271, + "end_position": 69703, + "page_index": 20, + "word_count": 59, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "Unlike RLHF, DPO avoids explicit reward modeling and reinforcement learning techniques. Instead, it adjusts the log probabilities of preferred versus non-preferred responses using a dynamic weighting mechanism, preventing model degradation issues typical of methods relying on probability ratios. For instance, Llama 3.2 1B & 3B apply SFT and DPO in post-training to enhance alignment with instructions and human preferences. [IMAGE]\nFig. 12. Data Quality in Knowledge Distillation (KD)", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 160, + "chunk_id": "Small Language Models in the Era of Large_chunk_0160", + "start_position": 69703, + "end_position": 70189, + "page_index": 21, + "word_count": 68, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "Data Quality in Knowledge Distillation (KD) # 3.3 Data Quality in Knowledge Distillation (KD) Transitioning from the discussion on training SLMs from scratch, this section delves into the critical role of data quality in Knowledge Distillation (KD). The motivation here is to highlight how high-quality data generated from LLMs can significantly enhance the learning efficiency and performance of SLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 161, + "chunk_id": "Small Language Models in the Era of Large_chunk_0161", + "start_position": 70189, + "end_position": 70591, + "page_index": 21, + "word_count": 59, + "char_count": 402 + }, + "has_embedding": false + }, + { + "content": "data generated from LLMs can significantly enhance the learning efficiency and performance of SLMs. The central idea is that meticulously crafted datasets when used in KD, enable SLMs to more effectively mimic the advanced capabilities of their larger counterparts. As shown in Figure 12, the data can come either from (1) other strong LLMs (e.g., GPT-4 [2]) which are much larger and more powerful than the target SLM, or (2) the target SLM itself. Augment Data from LLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 162, + "chunk_id": "Small Language Models in the Era of Large_chunk_0162", + "start_position": 70591, + "end_position": 71064, + "page_index": 21, + "word_count": 78, + "char_count": 473 + }, + "has_embedding": false + }, + { + "content": "Augment Data from LLMs. LLM-generated data could be categorized as pre-training data and fine-tuning data. Firstly, due to the limitations of model size, studies have shown that training SLMs requires simple and comprehensible data [96, 183, 187, 384]. As shown in Figure 12 (1) left, TinyStory [96] shows that small models (tens of millions of parameters) can generate coherent stories for 3-4-year-olds.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 163, + "chunk_id": "Small Language Models in the Era of Large_chunk_0163", + "start_position": 71064, + "end_position": 71469, + "page_index": 22, + "word_count": 62, + "char_count": 405 + }, + "has_embedding": false + }, + { + "content": "that small models (tens of millions of parameters) can generate coherent stories for 3-4-year-olds. GPT-3.5 or GPT-4 [2] prompts create simple stories from three keywords chosen from a 1,500-word vocabulary, which are then used to train SLMs for similar outputs. This approach shows that simple and comprehensible data can help smaller models exhibit behaviors similar to those of larger language models, such as obeying scaling laws and achieving enhanced performance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 164, + "chunk_id": "Small Language Models in the Era of Large_chunk_0164", + "start_position": 71469, + "end_position": 71938, + "page_index": 22, + "word_count": 70, + "char_count": 469 + }, + "has_embedding": false + }, + { + "content": "to those of larger language models, such as obeying scaling laws and achieving enhanced performance. On the other hand, many efforts to enhance the Chain-of-Thought (CoT) capabilities of small models involve using LLMs to generate high-quality fine-tuning CoT data. As shown in Figure 12 (1) right, these data train small models end-to-end to mimic CoT reasoning [235, 384].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 165, + "chunk_id": "Small Language Models in the Era of Large_chunk_0165", + "start_position": 71938, + "end_position": 72312, + "page_index": 22, + "word_count": 58, + "char_count": 374 + }, + "has_embedding": false + }, + { + "content": "in Figure 12 (1) right, these data train small models end-to-end to mimic CoT reasoning [235, 384]. AS-ES Learning [384] highlights that small models struggle with complex reasoning, even when provided detailed steps, as these require nuanced extraction and abstraction. Therefore, the study introduces a paradigm splitting reasoning into extractive segments (context reminders) and abstractive segments (inferred insights). Augment Data from Itself.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 166, + "chunk_id": "Small Language Models in the Era of Large_chunk_0166", + "start_position": 72312, + "end_position": 72762, + "page_index": 22, + "word_count": 62, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "Augment Data from Itself. Besides distilling data from other LLMs, language models can also train on their own \noutputs [29, 145, 337]. Since voting strategies can improve the performance of LLMs, reasoning paths that lead to the \nmajority answer can be further utilized to fine-tune LLMs [145]. Similarly, SLMs can generate their training data with \nthe aid of existing rationale generation methods.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 167, + "chunk_id": "Small Language Models in the Era of Large_chunk_0167", + "start_position": 72762, + "end_position": 73162, + "page_index": 22, + "word_count": 62, + "char_count": 400 + }, + "has_embedding": false + }, + { + "content": "larly, SLMs can generate their training data with \nthe aid of existing rationale generation methods. Self-Amplify [29] notes that human annotation of Chain-of-Thought \n(CoT) data is very time-consuming; thus, automated rationale generation methods have been proposed. These methods Manuscript submitted to ACM [IMAGE]\n(c) Adapt-and-Distill Fig. 13. Distillation Techniques for Enhancing SLM Performance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 168, + "chunk_id": "Small Language Models in the Era of Large_chunk_0168", + "start_position": 73162, + "end_position": 73565, + "page_index": 22, + "word_count": 53, + "char_count": 403 + }, + "has_embedding": false + }, + { + "content": "Distillation Techniques for Enhancing SLM Performance. On-policy means learning only use data from the current studen (policy), while off-policy permits the use of previously gathered data. involve three main steps: (1) Selection of samples $( x , y )$ that the model predicts correctly as few-shot examples; (2) Rationale generation, where rationales are produced using post hoc explanation methods; (3) Prompt design for SLMs, where the final prompt is crafted based on the previously generated rationales.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 169, + "chunk_id": "Small Language Models in the Era of Large_chunk_0169", + "start_position": 73565, + "end_position": 74073, + "page_index": 22, + "word_count": 76, + "char_count": 508 + }, + "has_embedding": false + }, + { + "content": "mpt design for SLMs, where the final prompt is crafted based on the previously generated rationales. # 3.4 Distillation Techniques for Enhancing SLM Performance Following the discussion on data quality in KD, this section reviews specialized KD training strategies designed to enhance the performance of SLMs. The motivation is to address the unique challenges and constraints involved in distilling knowledge from LLMs to SLMs, ensuring that the smaller models can maximize their performance gains.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 170, + "chunk_id": "Small Language Models in the Era of Large_chunk_0170", + "start_position": 74073, + "end_position": 74572, + "page_index": 22, + "word_count": 74, + "char_count": 499 + }, + "has_embedding": false + }, + { + "content": "knowledge from LLMs to SLMs, ensuring that the smaller models can maximize their performance gains. As shown in Figure 13, two main gaps between LLMs and SLMs lead to challenges in distillation: distribution mismatch and domain gap. Distribution mismatch [6, 173] occurs when the distribution of output sequences during training does not align with the distribution of sequences that SLMs produce during inference, leading to suboptimal performance of the student model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 171, + "chunk_id": "Small Language Models in the Era of Large_chunk_0171", + "start_position": 74572, + "end_position": 75042, + "page_index": 23, + "word_count": 71, + "char_count": 470 + }, + "has_embedding": false + }, + { + "content": "equences that SLMs produce during inference, leading to suboptimal performance of the student model. The domain gap [414] arises when there is a discrepancy between the domains or tasks on which the LLMs and SLMs are trained and applied. This gap can cause significant degradation in the performance of the student model if not properly addressed during the distillation process.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 172, + "chunk_id": "Small Language Models in the Era of Large_chunk_0172", + "start_position": 75042, + "end_position": 75421, + "page_index": 23, + "word_count": 60, + "char_count": 379 + }, + "has_embedding": false + }, + { + "content": "n in the performance of the student model if not properly addressed during the distillation process. To address these issues, specialized strategies involve first aligning the teacher and student models with the target domain before proceeding with knowledge distillation. To explore these challenges further, we now delve into the details of these two branches of methods.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 173, + "chunk_id": "Small Language Models in the Era of Large_chunk_0173", + "start_position": 75421, + "end_position": 75794, + "page_index": 23, + "word_count": 56, + "char_count": 373 + }, + "has_embedding": false + }, + { + "content": "To explore these challenges further, we now delve into the details of these two branches of methods. Distribution Mismatch In original knowledge distillation, illustrated in Figure 13 Distribution Mismatch (a), the teacher and student are provided with the same input sequences $x$ and output labels $y$ , producing probability distributions for the next token $\\cdot q$ and $p$ ). The loss is calculated as the difference between these two distributions, $D ( q , p )$ .", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 174, + "chunk_id": "Small Language Models in the Era of Large_chunk_0174", + "start_position": 75794, + "end_position": 76265, + "page_index": 23, + "word_count": 77, + "char_count": 471 + }, + "has_embedding": false + }, + { + "content": "The loss is calculated as the difference between these two distributions, $D ( q , p )$ . However, a key challenge arises due to distribution mismatch: the output sequences during training $( y )$ differ in distribution from those the SLMs produce during inference $( y ^ { \\prime } )$ . To address this challenge, various techniques have been proposed.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 175, + "chunk_id": "Small Language Models in the Era of Large_chunk_0175", + "start_position": 76265, + "end_position": 76618, + "page_index": 23, + "word_count": 62, + "char_count": 353 + }, + "has_embedding": false + }, + { + "content": "To address this challenge, various techniques have been proposed. As shown in Figure 13 Distribution Mismatch (b), one approach trains the student model using on-policy sequences—sequences generated by the student itself—guided by the teacher model’s feedback. Specifically, both the student and teacher take the same input $( x )$ and the student-generated output $( y ^ { \\prime } )$ , producing probability distributions Manuscript submitted to ACM", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 176, + "chunk_id": "Small Language Models in the Era of Large_chunk_0176", + "start_position": 76618, + "end_position": 77069, + "page_index": 23, + "word_count": 68, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "erated output $( y ^ { \\prime } )$ , producing probability distributions Manuscript submitted to ACM for the next token ( $\\dot { \\boldsymbol { g } }$ and $\\mathcal { P }$ , respectively). The loss is calculated as the difference between these two distributions, $D ( q , p )$ . This approach helps the student model reduce the distribution gap between training and inference by learning from the teacher’s feedback on its own generated sequences.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 177, + "chunk_id": "Small Language Models in the Era of Large_chunk_0177", + "start_position": 77069, + "end_position": 77516, + "page_index": 23, + "word_count": 79, + "char_count": 447 + }, + "has_embedding": false + }, + { + "content": "tween training and inference by learning from the teacher’s feedback on its own generated sequences. Generalized Knowledge Distillation (GKD) [6] is the first work using this technique and improves distillation outcomes. However, a drawback of this technique is that it requires the student to constantly produce new training sequences, which can be computationally expensive.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 178, + "chunk_id": "Small Language Models in the Era of Large_chunk_0178", + "start_position": 77516, + "end_position": 77892, + "page_index": 23, + "word_count": 54, + "char_count": 376 + }, + "has_embedding": false + }, + { + "content": "es the student to constantly produce new training sequences, which can be computationally expensive. To improve efficiency, as shown in Figure 13 Distribution Mismatch (c), an adaptive off-policy approach can be used to efficiently manage student-generated outputs by storing them in a replay buffer, thereby reducing computational costs. DistiLLM [173] employs this off-policy approach and improves the efficiency of KD.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 179, + "chunk_id": "Small Language Models in the Era of Large_chunk_0179", + "start_position": 77892, + "end_position": 78313, + "page_index": 23, + "word_count": 60, + "char_count": 421 + }, + "has_embedding": false + }, + { + "content": "DistiLLM [173] employs this off-policy approach and improves the efficiency of KD. Domain Gap When training an SLM in a specific domain that differs from the domain of the LLMs, the gap between the two domains becomes problematic. As illustrated in Figure 13 Domain Gap (a), domain adaptation fine-tunes a language model, initially trained on a general corpus, using a specialized dataset such as PubMed to enhance performance in that specific domain.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 180, + "chunk_id": "Small Language Models in the Era of Large_chunk_0180", + "start_position": 78313, + "end_position": 78764, + "page_index": 23, + "word_count": 72, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "l corpus, using a specialized dataset such as PubMed to enhance performance in that specific domain. As illustrated in Figure 13 Domain Gap (b), Knowledge distillation transfers knowledge from the larger model to the smaller one. However, because the teacher model may not produce high-quality outputs on specialized datasets, domain adaptation is needed prior to knowledge distillation.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 181, + "chunk_id": "Small Language Models in the Era of Large_chunk_0181", + "start_position": 78764, + "end_position": 79151, + "page_index": 24, + "word_count": 57, + "char_count": 387 + }, + "has_embedding": false + }, + { + "content": "uality outputs on specialized datasets, domain adaptation is needed prior to knowledge distillation. As illustrated in Figure 13 Domain Gap (c), Adapt-and-Distill [414] tackles the domain gap by distilling general large models into smaller ones.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 182, + "chunk_id": "Small Language Models in the Era of Large_chunk_0182", + "start_position": 79151, + "end_position": 79396, + "page_index": 24, + "word_count": 35, + "char_count": 245 + }, + "has_embedding": false + }, + { + "content": "Adapt-and-Distill [414] tackles the domain gap by distilling general large models into smaller ones. This paper introduces AdaLM and demonstrates that the “Adapt-and-Distill” strategy—first involving domain adaptation of both the large teacher model and the small student model, followed by distillation—is the most effective compared to three other strategies: training directly from scratch, distillation followed by adaptation, and adapting the teacher model before distillation into a general small student model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 183, + "chunk_id": "Small Language Models in the Era of Large_chunk_0183", + "start_position": 79396, + "end_position": 79913, + "page_index": 24, + "word_count": 70, + "char_count": 517 + }, + "has_embedding": false + }, + { + "content": "y adaptation, and adapting the teacher model before distillation into a general small student model. These innovative techniques are crucial for enhancing the capabilities of SLMs, making them more efficient and effective for various applications. However, adapting both the teacher (LLMs) and the student (SLMs) models to the target domain can be time-consuming. Future research could focus on efficiently solving the domain gap problem. Insights: Here are some insights from distillation techniques:", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 184, + "chunk_id": "Small Language Models in the Era of Large_chunk_0184", + "start_position": 79913, + "end_position": 80414, + "page_index": 24, + "word_count": 72, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "Insights: Here are some insights from distillation techniques: • Sampling SLM outputs during the training process is the main approach to resolving distribution mismatch. • Techniques like Adapt-and-Distill address the domain gap by first adapting both the teacher (LLMs) and the student (SLMs) models to the target domain before proceeding with distillation. # 3.5 Performance Improvement through Quantization", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 185, + "chunk_id": "Small Language Models in the Era of Large_chunk_0185", + "start_position": 80414, + "end_position": 80824, + "page_index": 24, + "word_count": 58, + "char_count": 410 + }, + "has_embedding": false + }, + { + "content": "# 3.5 Performance Improvement through Quantization As mentioned in Section 2, quantization is one of the most effective methods for adapting LLMs to SLMs. However, compression to smaller sizes often compromises performance. To address the performance drop associated with quantization, various methods have been proposed. This section examines how these quantization methods specifically enhance the performance of SLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 186, + "chunk_id": "Small Language Models in the Era of Large_chunk_0186", + "start_position": 80824, + "end_position": 81244, + "page_index": 24, + "word_count": 58, + "char_count": 420 + }, + "has_embedding": false + }, + { + "content": ". This section examines how these quantization methods specifically enhance the performance of SLMs. While the general introduction to compression methods is discussed in the compression section, the focus here is on detailing those approaches that boost the efficiency and effectiveness of SLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 187, + "chunk_id": "Small Language Models in the Era of Large_chunk_0187", + "start_position": 81244, + "end_position": 81540, + "page_index": 24, + "word_count": 43, + "char_count": 296 + }, + "has_embedding": false + }, + { + "content": "the focus here is on detailing those approaches that boost the efficiency and effectiveness of SLMs. As shown in Figure 9, we categorize these quantization methods into two main approaches: Post-Training Quantization (PTQ), where quantization is conducted on a well-trained fixed model, and Quantization-Aware Training (QAT), where quantization is integrated into the training process. This section introduces advanced techniques in PTQ and QAT respectively.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 188, + "chunk_id": "Small Language Models in the Era of Large_chunk_0188", + "start_position": 81540, + "end_position": 81998, + "page_index": 24, + "word_count": 64, + "char_count": 458 + }, + "has_embedding": false + }, + { + "content": "This section introduces advanced techniques in PTQ and QAT respectively. Post-Training Quantization (PTQ) primarily includes weight quantization and activation quantization. Weight quantization aims to quantize model parameters while preserving performance. GPTQ [103] compresses LLMs to 4-bit or 2-bit by quantizing weights layer-by-layer to minimize layer-wise quantization errors. PB-LLM [299], applicable to both Manuscript submitted to ACM", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 189, + "chunk_id": "Small Language Models in the Era of Large_chunk_0189", + "start_position": 81998, + "end_position": 82442, + "page_index": 24, + "word_count": 56, + "char_count": 444 + }, + "has_embedding": false + }, + { + "content": "PB-LLM [299], applicable to both Manuscript submitted to ACM PTQ and QAT, retains the most salient weights while binarizing the rest based on magnitudes. BiLLM [147], another PTQ method, uses a Hessian-based metric to identify salient and non-salient weights. Salient weights undergo binary residual approximation to minimize loss, while non-salient weights are divided into sparse and concentrated groups for separate binarization, reducing quantization errors.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 190, + "chunk_id": "Small Language Models in the Era of Large_chunk_0190", + "start_position": 82442, + "end_position": 82904, + "page_index": 25, + "word_count": 64, + "char_count": 462 + }, + "has_embedding": false + }, + { + "content": "divided into sparse and concentrated groups for separate binarization, reducing quantization errors. Activation quantization faces challenges with outliers that can stretch the quantization range, causing most values to cluster at few bits and introducing significant errors. To address this, LLM.int8() [80] isolates outlier features for 16-bit processing and handles the rest in 8-bit.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 191, + "chunk_id": "Small Language Models in the Era of Large_chunk_0191", + "start_position": 82904, + "end_position": 83291, + "page_index": 25, + "word_count": 53, + "char_count": 387 + }, + "has_embedding": false + }, + { + "content": "this, LLM.int8() [80] isolates outlier features for 16-bit processing and handles the rest in 8-bit. SmoothQuant [386] circumvents per-channel quantization issues by employing a \"smoothing\" technique that shifts the quantization challenge from activations to weights through a per-channel scaling transformation. This balance between activating and weight quantization allows effective 8-bit quantization (W8A8), preserving accuracy while significantly reducing memory and computational costs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 192, + "chunk_id": "Small Language Models in the Era of Large_chunk_0192", + "start_position": 83291, + "end_position": 83784, + "page_index": 25, + "word_count": 61, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "uantization (W8A8), preserving accuracy while significantly reducing memory and computational costs. SmoothQuant thus enhances the efficiency of SLMs in resource-constrained environments. Quantization-Aware Training (QAT) differs from PTQ in that it includes a training phase after the model has been quantized. When models are quantized to extremes, such as 2-bit or 1-bit, performance typically drops significantly, but further training can help the model retain its capabilities.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 193, + "chunk_id": "Small Language Models in the Era of Large_chunk_0193", + "start_position": 83784, + "end_position": 84266, + "page_index": 25, + "word_count": 65, + "char_count": 482 + }, + "has_embedding": false + }, + { + "content": "ance typically drops significantly, but further training can help the model retain its capabilities. For instance, to mitigate performance degradation from binarization, PB-LLM [299] selectively binarizes only non-salient weights, preserving the most salient ones at higher precision. This method effectively reduces the model size without significantly impacting performance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 194, + "chunk_id": "Small Language Models in the Era of Large_chunk_0194", + "start_position": 84266, + "end_position": 84642, + "page_index": 25, + "word_count": 48, + "char_count": 376 + }, + "has_embedding": false + }, + { + "content": "This method effectively reduces the model size without significantly impacting performance. Salient weights are chosen based on their magnitude, ensuring that the most influential weights maintain higher precision to preserve the model’s reasoning capabilities. The paper explores both post-training quantization (PTQ) and quantization-aware training (QAT) to fine-tune and recover the performance of partially binarized models, achieving a balance between compression and accuracy.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 195, + "chunk_id": "Small Language Models in the Era of Large_chunk_0195", + "start_position": 84642, + "end_position": 85124, + "page_index": 25, + "word_count": 62, + "char_count": 482 + }, + "has_embedding": false + }, + { + "content": "the performance of partially binarized models, achieving a balance between compression and accuracy. OneBit [400] and BitNet [357] address the severe performance degradation associated with 1-bit quantization by decomposing floating-point matrices and employing mixed-precision strategies. Specifically, OneBit introduces Sign-Value-Independent Decomposition (SVID), which decomposes a floating-point matrix into a 1-bit matrix and two floating-point vectors.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 196, + "chunk_id": "Small Language Models in the Era of Large_chunk_0196", + "start_position": 85124, + "end_position": 85583, + "page_index": 25, + "word_count": 54, + "char_count": 459 + }, + "has_embedding": false + }, + { + "content": "(SVID), which decomposes a floating-point matrix into a 1-bit matrix and two floating-point vectors. This method allows LLMs to be quantized to a 1-bit level while minimizing performance loss. By retaining critical information with the floating-point vectors, OneBit effectively balances extreme compression with maintaining model accuracy. BitNet b1.58 [231] improves on the original BitNet by introducing a ternary matrix weight system -1, 0, 1, resulting in a 1.58-bit model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 197, + "chunk_id": "Small Language Models in the Era of Large_chunk_0197", + "start_position": 85583, + "end_position": 86061, + "page_index": 25, + "word_count": 69, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "iginal BitNet by introducing a ternary matrix weight system -1, 0, 1, resulting in a 1.58-bit model. BitNet b1.58 matches the performance of full-precision models starting from a 3 billion parameter size while further reducing memory and latency costs. LLM-QAT [221] employs data-free knowledge distillation, where the pre-trained model itself generates data for fine-tuning the quantized model (student) using logit distillation from the full-precision model (teacher).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 198, + "chunk_id": "Small Language Models in the Era of Large_chunk_0198", + "start_position": 86061, + "end_position": 86531, + "page_index": 25, + "word_count": 66, + "char_count": 470 + }, + "has_embedding": false + }, + { + "content": "ning the quantized model (student) using logit distillation from the full-precision model (teacher). This method incorporates quantization of weights, activations, and key-value cache, achieving accurate 4-bit quantization for weights and key-value caches, and 6-bit for activations, demonstrating substantial improvements over existing post-training quantization methods. Insights: Insights drawn from quantization strategies include:", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 199, + "chunk_id": "Small Language Models in the Era of Large_chunk_0199", + "start_position": 86531, + "end_position": 86966, + "page_index": 26, + "word_count": 51, + "char_count": 435 + }, + "has_embedding": false + }, + { + "content": "Insights: Insights drawn from quantization strategies include: • Post-Training Quantization techniques primarily focus on quantizing model weights, where selecting salient weights is crucial. Beyond weight quantization, handling outliers in activation signals is a significant challenge in quantizing activations. • Quantization-Aware Training methods show that low-bit quantization (e.g., 1-bit models) requires additional tuning to maintain performance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 200, + "chunk_id": "Small Language Models in the Era of Large_chunk_0200", + "start_position": 86966, + "end_position": 87421, + "page_index": 26, + "word_count": 55, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "w that low-bit quantization (e.g., 1-bit models) requires additional tuning to maintain performance. Knowledge can be distilled from the model before quantization to the quantized model. # 3.6 Techniques in LLMs Contributing to SLMs This subsection explores the potential of advanced techniques such as RAG and MoE, which enhance LLM performance, to also maintain or boost SLM performance within constrained computational budgets.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 201, + "chunk_id": "Small Language Models in the Era of Large_chunk_0201", + "start_position": 87421, + "end_position": 87851, + "page_index": 26, + "word_count": 62, + "char_count": 430 + }, + "has_embedding": false + }, + { + "content": "LLM performance, to also maintain or boost SLM performance within constrained computational budgets. However, effectively integrating these techniques into SLMs, which inherently possess limited capabilities, remains an unresolved challenge. Retrieval Augmented Generation (RAG) enhances the capabilities of language models in knowledge-intensive tasks by incorporating a retrieval mechanism.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 202, + "chunk_id": "Small Language Models in the Era of Large_chunk_0202", + "start_position": 87851, + "end_position": 88243, + "page_index": 26, + "word_count": 47, + "char_count": 392 + }, + "has_embedding": false + }, + { + "content": "capabilities of language models in knowledge-intensive tasks by incorporating a retrieval mechanism. This approach allows models to access relevant contextual information from a data repository in response to user queries. By integrating this retrieved data, RAG-equipped models better understand specific topics, enabling more informed and accurate outputs. For SLMs, a significant concern is whether they possess the capacity for long-context reasoning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 203, + "chunk_id": "Small Language Models in the Era of Large_chunk_0203", + "start_position": 88243, + "end_position": 88698, + "page_index": 26, + "word_count": 61, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "For SLMs, a significant concern is whether they possess the capacity for long-context reasoning. A recent study [215] compares SLMs at the 7B level with RAG to larger models such as GPT-3.5 and GPT-4, suggesting that SLMs equipped with RAG can sometimes perform comparably or even better than LLMs. These findings indicate that RAG for SLMs is effective and represents a promising direction for future research.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 204, + "chunk_id": "Small Language Models in the Era of Large_chunk_0204", + "start_position": 88698, + "end_position": 89109, + "page_index": 26, + "word_count": 66, + "char_count": 411 + }, + "has_embedding": false + }, + { + "content": "gs indicate that RAG for SLMs is effective and represents a promising direction for future research. Mixture-of-Experts (MoE) [39] has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs. The MoE framework is founded on a straightforward yet potent concept: distinct components of a model, referred to as “experts”, specialize in different tasks or data facets.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 205, + "chunk_id": "Small Language Models in the Era of Large_chunk_0205", + "start_position": 89109, + "end_position": 89535, + "page_index": 27, + "word_count": 64, + "char_count": 426 + }, + "has_embedding": false + }, + { + "content": "tinct components of a model, referred to as “experts”, specialize in different tasks or data facets. In this paradigm, only the relevant experts are activated for a specific input, which manages computational costs while leveraging a vast pool of specialized knowledge. This scalable and adaptable approach enables increased model capacity without proportionally escalating computational demands.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 206, + "chunk_id": "Small Language Models in the Era of Large_chunk_0206", + "start_position": 89535, + "end_position": 89931, + "page_index": 27, + "word_count": 55, + "char_count": 396 + }, + "has_embedding": false + }, + { + "content": "e approach enables increased model capacity without proportionally escalating computational demands. We argue that MoE is particularly suitable for SLM architectures [161] as it minimizes both computational load and memory overhead. However, research on MoE for SLMs remains sparse. Future studies could investigate how large LLM MoE architectures can be effectively compressed into small ones or how to develop an SLM with MoE tailored for specific devices from scratch. # 4 APPLICATIONS OF SMALL LANGUAGE MODELS", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 207, + "chunk_id": "Small Language Models in the Era of Large_chunk_0207", + "start_position": 89931, + "end_position": 90444, + "page_index": 27, + "word_count": 76, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "# 4 APPLICATIONS OF SMALL LANGUAGE MODELS In this section, we delve into the applications of small language models (SLMs) across various NLP tasks and their deployment strategies. Due to benefits such as enhanced privacy, faster inference, and lower memory requirements, many NLP applications are now leveraging SLMs over LLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 208, + "chunk_id": "Small Language Models in the Era of Large_chunk_0208", + "start_position": 90444, + "end_position": 90771, + "page_index": 27, + "word_count": 50, + "char_count": 327 + }, + "has_embedding": false + }, + { + "content": "r inference, and lower memory requirements, many NLP applications are now leveraging SLMs over LLMs. Additionally, deploying SLMs often involves considerations of memory and runtime efficiency, which are crucial for optimizing resource use on budget-constrained edge devices, particularly mobile phones. Then, we will discuss task-specific applications of SLMs and their deployment methods on mobile and edge devices. # 4.1 Task-specific SLM Applications", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 209, + "chunk_id": "Small Language Models in the Era of Large_chunk_0209", + "start_position": 90771, + "end_position": 91225, + "page_index": 27, + "word_count": 62, + "char_count": 454 + }, + "has_embedding": false + }, + { + "content": "# 4.1 Task-specific SLM Applications This subsection explores the diverse NLP tasks to which SLMs can contribute. Question-answering and coding represent generative tasks, while recommender systems and web search (though not strictly within the NLP domain) typically leverage the encoding capabilities of SLMs. Additionally, the application of SLMs on mobile devices is particularly well-suited due to constraints in memory and computing resources.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 210, + "chunk_id": "Small Language Models in the Era of Large_chunk_0210", + "start_position": 91225, + "end_position": 91673, + "page_index": 27, + "word_count": 62, + "char_count": 448 + }, + "has_embedding": false + }, + { + "content": "on mobile devices is particularly well-suited due to constraints in memory and computing resources. The representative works are systematically organized in Table 3. 4.1.1 SLM Applications in Question-Answering. Question-answering (QA) is a fundamental task in the NLP field, demanding language models to exhibit abilities in understanding language, reasoning, common sense, and recalling specialized knowledge. Typically, larger language models yield better QA performance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 211, + "chunk_id": "Small Language Models in the Era of Large_chunk_0211", + "start_position": 91673, + "end_position": 92147, + "page_index": 27, + "word_count": 62, + "char_count": 474 + }, + "has_embedding": false + }, + { + "content": "Typically, larger language models yield better QA performance. However, the substantial size of these models introduces challenges such as immense computational requirements, privacy concerns when using proprietary LLMs, and difficulties in customization. These issues lead researchers and developers to favor SLMs in scenarios that demand efficiency, privacy, and customization.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 212, + "chunk_id": "Small Language Models in the Era of Large_chunk_0212", + "start_position": 92147, + "end_position": 92526, + "page_index": 28, + "word_count": 49, + "char_count": 379 + }, + "has_embedding": false + }, + { + "content": "rchers and developers to favor SLMs in scenarios that demand efficiency, privacy, and customization. Therefore, we explore methods to enhance the capabilities of SLMs in QA across three key areas: (i) Instruction Tuning of Generic SLMs for QA, (ii) Instruction Tuning of Domain-Specific SLMs for QA, and (iii) Enhancing SLMs for Out-of-Domain Questions. Table 3. Task-specific SLM Applications", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 213, + "chunk_id": "Small Language Models in the Era of Large_chunk_0213", + "start_position": 92526, + "end_position": 92919, + "page_index": 28, + "word_count": 58, + "char_count": 393 + }, + "has_embedding": false + }, + { + "content": "Task-specific SLM Applications
AspectRepresentative workKey point
SLM in QAAlpaca [329] Stable Beluga 7B [238]Tune Llama 7B [338] using 52k ChatGPT-generated examples.
Fine-tuned BioGPT [125] Financial SLMs [275] ColBERT [112] Rationale Ranking [128] T-SAS [156]Employ explanation tuning to Llama-2 7B [339] on an Orca-style dataset. Fine-tuning BioGPT (1.6B) [230] on PubMedQA.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 214, + "chunk_id": "Small Language Models in the Era of Large_chunk_0214", + "start_position": 92919, + "end_position": 93403, + "page_index": 28, + "word_count": 49, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "Fine-tuning BioGPT (1.6B) [230] on PubMedQA. Transfer financial knowledge from GPT-4 [2] to multiple SLMs. Fetch retrieval documents for SLMs to answer domain-specific questions. For unseen questions, combine retrieval with LLM-generated rationales.
SLM in CodingPhi-3.5-mini [1] TinyLlama [439] CodeLlama [292] CodeGemma [331]Enhance SLMs adaptability with self-generated pseudo labels. New addition to the Phi-3 series and focus on high-quality data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 215, + "chunk_id": "Small Language Models in the Era of Large_chunk_0215", + "start_position": 93403, + "end_position": 93890, + "page_index": 28, + "word_count": 58, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "New addition to the Phi-3 series and focus on high-quality data. 1.1B Transformer model is trained on 3T corpus. A derivative of Llama 2 fine-tuned on domain-specific datasets.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 216, + "chunk_id": "Small Language Models in the Era of Large_chunk_0216", + "start_position": 93890, + "end_position": 94066, + "page_index": 28, + "word_count": 28, + "char_count": 176 + }, + "has_embedding": false + }, + { + "content": "A derivative of Llama 2 fine-tuned on domain-specific datasets. Fine-tuning Gemma to enhancing coding capabilities.
SLM in Recommen- dationPromptRec [382] SLIM [369] BiLLP [309] ONCE [214] RecLoRA [455] Content encoder [44, 152, 228]Training on prompt templates Step-by-step Knowledge Distillation LLaMa-2-7B as planner and reflector LLaMa-2-7B as Content Encoder Personalized low-rank adaptation
SLM in Web SearchRanker [63, 260] Rewriter [233] Octopus [52]Encode concatenated queries and documents.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 217, + "chunk_id": "Small Language Models in the Era of Large_chunk_0217", + "start_position": 94066, + "end_position": 94636, + "page_index": 28, + "word_count": 63, + "char_count": 570 + }, + "has_embedding": false + }, + { + "content": ">Ranker [63, 260] Rewriter [233] Octopus [52]Encode concatenated queries and documents. Re-rank retrieved documents using a specially SLM. Bridge the gap between queries and needed knowledge by rewriting inputs. Calling software APIs via learning in documents
SLM in Mobile- deviceMobileAgent [87] α-UMI [307] Mobile Interaction [42] AutoDroid [376] M4 [423] Agent for Text Rewriting [458]Standard Operating Procedure (SOP) SLMs serve as Multi-agents in tool uses.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 218, + "chunk_id": "Small Language Models in the Era of Large_chunk_0218", + "start_position": 94636, + "end_position": 95148, + "page_index": 28, + "word_count": 64, + "char_count": 512 + }, + "has_embedding": false + }, + { + "content": "Rewriting [458]Standard Operating Procedure (SOP) SLMs serve as Multi-agents in tool uses. Text-to-action control and tests on 6GB and 4GB Android devices Interaction based on GUI and APP knowledge injection a foundation model handling all mobile AI tasks. Data Knowledge Distillation from LLMs
Instruction Tuning Generic SLMs for QA.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 219, + "chunk_id": "Small Language Models in the Era of Large_chunk_0219", + "start_position": 95148, + "end_position": 95509, + "page_index": 29, + "word_count": 49, + "char_count": 361 + }, + "has_embedding": false + }, + { + "content": "Data Knowledge Distillation from LLMs Instruction Tuning Generic SLMs for QA. Despite the Phi series’ high question-answering capability, its training cost with over 3.4T tokens on 512 H100 GPUs for 10 days [1] is prohibitive for many researchers and developers. Instruction tuning [372] offers a cost-effective alternative, enhancing small models by fine-tuning on large model outputs. Alpaca 7B [329] tunes Llama 7B [338] with 52k ChatGPT-generated examples from 175 seed tasks.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 220, + "chunk_id": "Small Language Models in the Era of Large_chunk_0220", + "start_position": 95509, + "end_position": 96007, + "page_index": 29, + "word_count": 71, + "char_count": 498 + }, + "has_embedding": false + }, + { + "content": "Alpaca 7B [329] tunes Llama 7B [338] with 52k ChatGPT-generated examples from 175 seed tasks. This behavior cloning mimics teacher models effectively but struggles in reasoning-intensive QA tasks where accuracy is key, not style [60]. To counter it, explanation tuning [238] enhances Llama-2 7B [339] using explanatory LLM answers to improve reasoning. However, its effectiveness varies with system instructions, and those effective for larger models like GPT-4 may not suit smaller ones.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 221, + "chunk_id": "Small Language Models in the Era of Large_chunk_0221", + "start_position": 96007, + "end_position": 96495, + "page_index": 29, + "word_count": 72, + "char_count": 488 + }, + "has_embedding": false + }, + { + "content": "ith system instructions, and those effective for larger models like GPT-4 may not suit smaller ones. SLMs also struggle to identify optimal system instructions for different tasks. Therefore, Orca 2 [247] addresses this by promoting cautious reasoning, deciding which solution strategy to choose for a given task among direct answer generation, or “Slow Thinking” strategies (step-by-step, guess and check or explain-then-answer, etc.) and erasing specific system instructions during training.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 222, + "chunk_id": "Small Language Models in the Era of Large_chunk_0222", + "start_position": 96495, + "end_position": 96988, + "page_index": 29, + "word_count": 69, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "ss and check or explain-then-answer, etc.) and erasing specific system instructions during training. This involves (1) solution strategy is guided by the performance of Orca 1 [251], (2) writing task-specific system instructions corresponding to the chosen strategy to obtain teacher responses for each task, and (3) at training time, employing Prompt Erasing to replace student’s system instructions with generic ones vacated of details of how to approach the task, encouraging students learn not just task solutions but also deeper reasoning abilities.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 223, + "chunk_id": "Small Language Models in the Era of Large_chunk_0223", + "start_position": 96988, + "end_position": 97542, + "page_index": 29, + "word_count": 81, + "char_count": 554 + }, + "has_embedding": false + }, + { + "content": "ch the task, encouraging students learn not just task solutions but also deeper reasoning abilities. Table 4. Comparison of instruction-tuned domain SLMs for QA and LLMs on FinQA [56] and PubMedQA [163].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 224, + "chunk_id": "Small Language Models in the Era of Large_chunk_0224", + "start_position": 97542, + "end_position": 97745, + "page_index": 29, + "word_count": 32, + "char_count": 203 + }, + "has_embedding": false + }, + { + "content": "Comparison of instruction-tuned domain SLMs for QA and LLMs on FinQA [56] and PubMedQA [163].
ModelSizeInstruction tuned?Task NameShot TypeAccuracy (%)
GPT-4 [2]-×FinQAZero-shot77.5
Phi-3-Mini [1]2.7B√FinQAZero-shot77.6
Meditron-70B [55]70B×PubMedQAZero-shot81.6
RankRAG-1lama3-70B [421]70B×PubMedQAZero-shot79.8
Flan-PaLM [313]540B×PubMedQAFew-shot79.0
GAL 120B [330]120B×PubMedQAZero-shot77.6
Flan-PaLM [313]62B×PubMedQAFew-shot77.2
BioGPT [230]345M√PubMedQAZero-shot78.2
BioGPT-Large [230]1.5B√PubMedQAZero-shot81.0
", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 225, + "chunk_id": "Small Language Models in the Era of Large_chunk_0225", + "start_position": 97745, + "end_position": 98899, + "page_index": 29, + "word_count": 30, + "char_count": 1154 + }, + "has_embedding": false + }, + { + "content": "Large [230]1.5B√PubMedQAZero-shot81.0 Instruction Tuning Domain SLMs for QA. Beyond instruction tuning for generic SLMs, tuning domain-specific SLMs is also crucial, as they provide specialized assistance where generic SLMs may underperform. Instruction-tuning generic SLMs can derive domain SLMs. We summarize some representatives in several domains.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 226, + "chunk_id": "Small Language Models in the Era of Large_chunk_0226", + "start_position": 98899, + "end_position": 99313, + "page_index": 30, + "word_count": 44, + "char_count": 414 + }, + "has_embedding": false + }, + { + "content": "We summarize some representatives in several domains. (1) In finance, Phogat et al. [275] transfer financial QA abilities from teacher LLMs such as GPT-4 [2] to specialized SLMs such as Phi-3-Mini [1], using datasets such as FinQA [56], ConvFinQA [57], and TATQA [454]. They train SLMs with Python programs created by the teacher model, which detail steps for financial reasoning, including concept comprehension, formula identification, entity extraction, and calculations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 227, + "chunk_id": "Small Language Models in the Era of Large_chunk_0227", + "start_position": 99313, + "end_position": 99787, + "page_index": 30, + "word_count": 69, + "char_count": 474 + }, + "has_embedding": false + }, + { + "content": "oning, including concept comprehension, formula identification, entity extraction, and calculations. During inference, SLMs generate Python code that an external interpreter executes. (2) In the medical field, Guo et al. [125] enhance student SLMs, including domain-specific BioGPT (1.6B) [230] and general Llama 7B [338], by fine-tuning on enriched PubMedQA [163] data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 228, + "chunk_id": "Small Language Models in the Era of Large_chunk_0228", + "start_position": 99787, + "end_position": 100157, + "page_index": 30, + "word_count": 50, + "char_count": 370 + }, + "has_embedding": false + }, + { + "content": "ific BioGPT (1.6B) [230] and general Llama 7B [338], by fine-tuning on enriched PubMedQA [163] data. This enhancement is achieved by generating new samples or rewriting existing ones using teacher LLMs, which include the highly knowledgeable GPT-4 and the relatively weaker ChatGPT. The best SLM, with under 1.6 billion parameters, achieves $7 5 . 4 \\%$ accuracy, surpassing GPT-4’s $7 4 . 4 \\%$ in few-shot settings on the PubmedQA test sets.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 229, + "chunk_id": "Small Language Models in the Era of Large_chunk_0229", + "start_position": 100157, + "end_position": 100600, + "page_index": 30, + "word_count": 72, + "char_count": 443 + }, + "has_embedding": false + }, + { + "content": "4 \\%$ in few-shot settings on the PubmedQA test sets. It demonstrates that LLMs effectively refine and diversify question-answer pairs, leading to enhanced performance in a significantly smaller model after fine-tuning. We report the detailed results of comparisons of instruction-tuned domain-specific language models for QA and larger language models on FinQA [56] and PubMedQA [163], as shown in Table 4. Enhancing SLMs for Out-of-Domain Questions.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 230, + "chunk_id": "Small Language Models in the Era of Large_chunk_0230", + "start_position": 100600, + "end_position": 101051, + "page_index": 30, + "word_count": 65, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "Enhancing SLMs for Out-of-Domain Questions. One of the major advantages of LLMs is their strong comprehension and logical reasoning abilities, which SLMs often struggle to match due to their limited parameters, especially when handling unseen or out-of-domain questions. Various methods have been developed to address this limitation, including Retrieval-Augmented Generation (RAG) and self-adaptive techniques. (1) Retrieval-Augmented Generation (RAG): Incorporating External Knowledge for Domain-Specific QA.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 231, + "chunk_id": "Small Language Models in the Era of Large_chunk_0231", + "start_position": 101051, + "end_position": 101561, + "page_index": 30, + "word_count": 64, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": ". (1) Retrieval-Augmented Generation (RAG): Incorporating External Knowledge for Domain-Specific QA. RAG addresses OOD questions by integrating external knowledge during inference, allowing models to access information beyond their pre-trained parameters. By retrieving relevant documents in real time, RAG enables small language models to provide accurate answers on specialized topics.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 232, + "chunk_id": "Small Language Models in the Era of Large_chunk_0232", + "start_position": 101561, + "end_position": 101948, + "page_index": 30, + "word_count": 49, + "char_count": 387 + }, + "has_embedding": false + }, + { + "content": "s in real time, RAG enables small language models to provide accurate answers on specialized topics. In the telecommunications domain, Gichamba et al. [112] use ColBERT as a dense retrieval system to fetch documents from technical datasets. By encoding queries and documents separately, ColBERT computes relevance scores, helping small models like Phi-2 and Falcon-7B retrieve precise technical information to answer complex telecom-related queries.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 233, + "chunk_id": "Small Language Models in the Era of Large_chunk_0233", + "start_position": 101948, + "end_position": 102397, + "page_index": 30, + "word_count": 63, + "char_count": 449 + }, + "has_embedding": false + }, + { + "content": "hi-2 and Falcon-7B retrieve precise technical information to answer complex telecom-related queries. Rationale Ranking [128] addresses answering unseen questions using smaller language models by integrating external explanatory contexts from retrieval systems with reasoning rationales from LLMs. This method involves ranking both the retrieved explanatory contexts and LLM-generated rationales using a scoring module, which then combines them to form a cohesive context.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 234, + "chunk_id": "Small Language Models in the Era of Large_chunk_0234", + "start_position": 102397, + "end_position": 102868, + "page_index": 30, + "word_count": 61, + "char_count": 471 + }, + "has_embedding": false + }, + { + "content": "LM-generated rationales using a scoring module, which then combines them to form a cohesive context. Consequently, this integrated approach enhances the SLMs’ performance on unseen questions. (2) Self-Adaptive Techniques: Enhancing Model Adaptability with Self-Generated Pseudo Labels. Fine-tuning, while effective in adapting domain knowledge, can be impractical in realistic scenarios where labeled datasets are scarce.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 235, + "chunk_id": "Small Language Models in the Era of Large_chunk_0235", + "start_position": 102868, + "end_position": 103289, + "page_index": 31, + "word_count": 54, + "char_count": 421 + }, + "has_embedding": false + }, + { + "content": "pting domain knowledge, can be impractical in realistic scenarios where labeled datasets are scarce. To overcome this, self-adaptive techniques employ self-generated pseudo labels to activate specific aspects of the target tasks, thereby enhancing model adaptability [312, 347]. Test-time Self-Adaptive Small LMs (T-SAS) [156] first stochastically generates multiple answers for an unlabeled question.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 236, + "chunk_id": "Small Language Models in the Era of Large_chunk_0236", + "start_position": 103289, + "end_position": 103690, + "page_index": 31, + "word_count": 52, + "char_count": 401 + }, + "has_embedding": false + }, + { + "content": "e Small LMs (T-SAS) [156] first stochastically generates multiple answers for an unlabeled question. The most plausible answer is then selected via majority voting to enhance pseudo-label accuracy, serving as a pseudo-label for training during test-time. Comparison between LLMs and SLMs for QA. When comparing LLMs such as GPT-4 [2] or BLOOM-175B [181] with fine-tuned SLMs in QA tasks, the benefits of SLMs are clear.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 237, + "chunk_id": "Small Language Models in the Era of Large_chunk_0237", + "start_position": 103690, + "end_position": 104109, + "page_index": 31, + "word_count": 65, + "char_count": 419 + }, + "has_embedding": false + }, + { + "content": "h as GPT-4 [2] or BLOOM-175B [181] with fine-tuned SLMs in QA tasks, the benefits of SLMs are clear. LLMs, while versatile across multiple domains due to extensive pre-training, are computationally demanding, making them less ideal for resource-limited settings. SLMs, however, when fine-tuned for specific domains, often match or exceed the performance of larger models within those specialties.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 238, + "chunk_id": "Small Language Models in the Era of Large_chunk_0238", + "start_position": 104109, + "end_position": 104505, + "page_index": 31, + "word_count": 58, + "char_count": 396 + }, + "has_embedding": false + }, + { + "content": "r specific domains, often match or exceed the performance of larger models within those specialties. The trade-off is between large-scale models’ generalization and small-scale model’s specialization: LLMs handle diverse domains but may need additional techniques such as knowledge injection for domain-specific queries.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 239, + "chunk_id": "Small Language Models in the Era of Large_chunk_0239", + "start_position": 104505, + "end_position": 104825, + "page_index": 31, + "word_count": 42, + "char_count": 320 + }, + "has_embedding": false + }, + { + "content": "domains but may need additional techniques such as knowledge injection for domain-specific queries. In contrast, domain-specific SLMs, though less flexible, provide higher accuracy and more relevant responses, making them ideal for edge deployments where computational resources are scarce but domain precision is crucial. 4.1.2 SLM Applications in Coding. The adoption of SLMs for coding offers an alternative to LLMs due to their lower computational needs and potential for domain-specific tuning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 240, + "chunk_id": "Small Language Models in the Era of Large_chunk_0240", + "start_position": 104825, + "end_position": 105324, + "page_index": 31, + "word_count": 70, + "char_count": 499 + }, + "has_embedding": false + }, + { + "content": "alternative to LLMs due to their lower computational needs and potential for domain-specific tuning. Despite LLMs’ proficiency in code generation and programming support, SLMs are advantageous for their faster inference, reduced operational costs, and suitability for real-time environments where rapid responses are crucial. Representative works are discussed next. The Phi series [1, 155, 200] showcase SLMs’ evolution in coding tasks.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 241, + "chunk_id": "Small Language Models in the Era of Large_chunk_0241", + "start_position": 105324, + "end_position": 105761, + "page_index": 31, + "word_count": 60, + "char_count": 437 + }, + "has_embedding": false + }, + { + "content": "The Phi series [1, 155, 200] showcase SLMs’ evolution in coding tasks. For instance, Phi-1 [120], a Transformer with 1.3B parameters, specializes in basic Python coding and achieves notable scores in benchmarks such as HumanEval [120], which includes 164 programming problems. Subsequent models, Phi-1.5 and Phi-2, have enhanced these capabilities, while Phi-3 demonstrated SLMs’ potential to rival larger models [1].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 242, + "chunk_id": "Small Language Models in the Era of Large_chunk_0242", + "start_position": 105761, + "end_position": 106178, + "page_index": 31, + "word_count": 60, + "char_count": 417 + }, + "has_embedding": false + }, + { + "content": "ve enhanced these capabilities, while Phi-3 demonstrated SLMs’ potential to rival larger models [1]. The latest model, Phi-3.5-mini, with 3.8B parameters, excels in long context tasks using advanced fine-tuning and optimization techniques, performing comparably to larger models such as Llama-3.1-8B-instruct [94] and surpassing smaller ones like Gemma-2 [333]. Another avenue of development is the fine-tuning of general-purpose SLMs for coding tasks [23, 121, 227, 292, 331].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 243, + "chunk_id": "Small Language Models in the Era of Large_chunk_0243", + "start_position": 106178, + "end_position": 106655, + "page_index": 31, + "word_count": 66, + "char_count": 477 + }, + "has_embedding": false + }, + { + "content": "of development is the fine-tuning of general-purpose SLMs for coding tasks [23, 121, 227, 292, 331]. For instance, CodeLlama models [292], derivatives of Llama 2 [339], undergo a rigorous fine-tuning process on domain-specific datasets, enhancing their proficiency in specific programming languages such as Python. They are trained to handle tasks such as syntax error detection, code suggestion, and infilling, where they learn to predict and complete missing parts of the code.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 244, + "chunk_id": "Small Language Models in the Era of Large_chunk_0244", + "start_position": 106655, + "end_position": 107134, + "page_index": 31, + "word_count": 71, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "code suggestion, and infilling, where they learn to predict and complete missing parts of the code. This specialized fine-tuning improves their ability to interpret and execute detailed programming instructions, making them highly effective in real-time code editing environments [292]. CodeGemma models [331], stemming from Google DeepMind’s Gemma framework, also exhibit a focused approach to enhancing coding capabilities through fine-tuning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 245, + "chunk_id": "Small Language Models in the Era of Large_chunk_0245", + "start_position": 107134, + "end_position": 107579, + "page_index": 31, + "word_count": 59, + "char_count": 445 + }, + "has_embedding": false + }, + { + "content": "mma framework, also exhibit a focused approach to enhancing coding capabilities through fine-tuning. These models are specifically engineered for high-performance code generation and infilling, underpinned by extensive training on a vast corpus of over 500 billion to 1 trillion tokens, predominantly consisting of code.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 246, + "chunk_id": "Small Language Models in the Era of Large_chunk_0246", + "start_position": 107579, + "end_position": 107899, + "page_index": 32, + "word_count": 44, + "char_count": 320 + }, + "has_embedding": false + }, + { + "content": "raining on a vast corpus of over 500 billion to 1 trillion tokens, predominantly consisting of code. This comprehensive dataset enables CodeGemma models to excel in mathematical reasoning and complex problem-solving within code contexts, setting new benchmarks in latency-sensitive applications such as real-time IDE support and automated code reviews [331]. Comparison between SLMs and LLMs on Coding. Table 5 provides a comparative analysis of SLMs and LLMs on coding benchmarks HumanEval [50] and MBPP [20].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 247, + "chunk_id": "Small Language Models in the Era of Large_chunk_0247", + "start_position": 107899, + "end_position": 108409, + "page_index": 32, + "word_count": 75, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "provides a comparative analysis of SLMs and LLMs on coding benchmarks HumanEval [50] and MBPP [20]. Insights include: (i) Small SLMs (1.3B - 3.8B Parameters) like Phi-3.5-mini [342] achieve high scores, demonstrating the efficacy of small models. Mid-sized SLMs (6.7B - 9B Parameters), such as DeepSeekCoder 6.7B [121] and Llama 3.1 8B [94], show improved performance, indicating that larger model sizes and enhanced training contribute to better accuracy.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 248, + "chunk_id": "Small Language Models in the Era of Large_chunk_0248", + "start_position": 108409, + "end_position": 108865, + "page_index": 32, + "word_count": 68, + "char_count": 456 + }, + "has_embedding": false + }, + { + "content": "performance, indicating that larger model sizes and enhanced training contribute to better accuracy. Large models (33B and above) like Llama 3.1 405B [94], GPT-4o [263], and Claude 3.5 Sonnet [15] excel, supporting the idea that bigger models generalize better across diverse coding tasks; (ii) There’s a notable trade-off between computational efficiency and performance, with larger models requiring more resources, impacting their practical deployment in constrained environments; (iii) Specialized training and fine-tuning, as used in models like DeepSeek-Coder [121], are crucial for excelling in coding tasks, though such models may not handle complex requests as effectively, highlighting the versatility of general SLMs for broader applications.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 249, + "chunk_id": "Small Language Models in the Era of Large_chunk_0249", + "start_position": 108865, + "end_position": 109618, + "page_index": 32, + "word_count": 104, + "char_count": 753 + }, + "has_embedding": false + }, + { + "content": "plex requests as effectively, highlighting the versatility of general SLMs for broader applications. Table 5. Performance comparison between SLMs and LLMs in coding benchmarks. All models listed are chat or instruct versions, and performance are sourced from respective research papers or technical reports [94, 121, 292, 331, 342].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 250, + "chunk_id": "Small Language Models in the Era of Large_chunk_0250", + "start_position": 109618, + "end_position": 109950, + "page_index": 34, + "word_count": 48, + "char_count": 332 + }, + "has_embedding": false + }, + { + "content": "rformance are sourced from respective research papers or technical reports [94, 121, 292, 331, 342].
ModelSizeHumanEvalMBPP
DeepSeek-Coder [121]1.3B65.249.4
CodeGemma [331]2B37.849.2
Gemma 2 [333]2B17.740.2
Phi-3.5-mini [342]3.8B62.869.6
DeepSeek-Coder [121]6.7B78.665.4
CodeGemma [331]7B60.455.2
Llama 3.1 [94]8B66.569.4
Gemma 2 [33]9B61.069.3
GPT-3.5 Turbo-68.071.2
DeepSeek-Coder [121]33B79.370.0
Llama 3.1 [94]70B80.575.4
Llama 3.1 [94]405B89.078.8
GPT-4o OpenAI [263]-90.281.4
Claude 3.5 Sonnet [15]-92.076.6
", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 251, + "chunk_id": "Small Language Models in the Era of Large_chunk_0251", + "start_position": 109950, + "end_position": 111139, + "page_index": 34, + "word_count": 38, + "char_count": 1189 + }, + "has_embedding": false + }, + { + "content": "d>81.4Claude 3.5 Sonnet [15]-92.076.6 4.1.3 SLM Applications in Recommender Systems. Recommender systems are essential in various online services, helping to manage information overload and meet users’ personal needs. SLMs enhance recommendation systems by (1) addressing the cold start problem; (2) reducing popularity bias; (3) improving long-term planning; (4) serving as personalized recommenders; and (5) acting as content encoders.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 252, + "chunk_id": "Small Language Models in the Era of Large_chunk_0252", + "start_position": 111139, + "end_position": 111639, + "page_index": 34, + "word_count": 58, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "ng long-term planning; (4) serving as personalized recommenders; and (5) acting as content encoders. These applications show the versatility and effectiveness of SLMs in boosting performance and personalization in recommendation. Next, we introduce the details. SLM for System Cold Start Problem.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 253, + "chunk_id": "Small Language Models in the Era of Large_chunk_0253", + "start_position": 111639, + "end_position": 111935, + "page_index": 34, + "word_count": 41, + "char_count": 296 + }, + "has_embedding": false + }, + { + "content": "SLM for System Cold Start Problem. Traditional recommendation systems, which utilize historical user-item interactions such as clicks, purchases, and ratings to learn representations and match items to users, fail in scenarios lacking any user-item interactions, known as the cold-start recommendation problem, often occurring in start-up businesses [289]. Although LLMs address this with in-context learning, their slow and costly inference restricts real-time use.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 254, + "chunk_id": "Small Language Models in the Era of Large_chunk_0254", + "start_position": 111935, + "end_position": 112401, + "page_index": 34, + "word_count": 62, + "char_count": 466 + }, + "has_embedding": false + }, + { + "content": "LLMs address this with in-context learning, their slow and costly inference restricts real-time use. Thus, PromptRec [382] explores using SLMs as in-context recommenders for recommendation system cold-start problems. However, SLMs often struggle without emergent context-learning abilities. To overcome this, SLMs are enhanced by pre-training on relevant corpora, using a improved C4 corpus subset [284], and by developing training prompts for different domains, enhancing cold-start performance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 255, + "chunk_id": "Small Language Models in the Era of Large_chunk_0255", + "start_position": 112401, + "end_position": 112897, + "page_index": 34, + "word_count": 65, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "t [284], and by developing training prompts for different domains, enhancing cold-start performance. Results show that enhanced SLMs like BERT-mini [83], with 11.3M parameters, achieve BERT-large’s performance in cold-start scenarios, with only $1 7 \\%$ of BERT-large’s inference time. Similarly, many studies have addressed the cold-start problem by leveraging BERT [133, 261, 441, 459].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 256, + "chunk_id": "Small Language Models in the Era of Large_chunk_0256", + "start_position": 112897, + "end_position": 113285, + "page_index": 34, + "word_count": 54, + "char_count": 388 + }, + "has_embedding": false + }, + { + "content": "milarly, many studies have addressed the cold-start problem by leveraging BERT [133, 261, 441, 459]. For example, ADLRS [133] employs BERT to convert web-crawled item profiles into vectors that highlight key aspects, aiding recommender systems in acquiring essential initial information. SLM for Mitigating Popularity Bias.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 257, + "chunk_id": "Small Language Models in the Era of Large_chunk_0257", + "start_position": 113285, + "end_position": 113608, + "page_index": 34, + "word_count": 45, + "char_count": 323 + }, + "has_embedding": false + }, + { + "content": "SLM for Mitigating Popularity Bias. Popularity bias in recommender systems, marked by discrepancies between item popularity in training datasets and the real world, often stems from using closed-loop datasets with limited information. Recent LLMs leverage their broad open-world knowledge to better reason about user-item interactions [206, 214], reducing this bias by providing recommenders with more extensive item details.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 258, + "chunk_id": "Small Language Models in the Era of Large_chunk_0258", + "start_position": 113608, + "end_position": 114033, + "page_index": 35, + "word_count": 58, + "char_count": 425 + }, + "has_embedding": false + }, + { + "content": "eractions [206, 214], reducing this bias by providing recommenders with more extensive item details. Using the chain-of-thought (CoT) prompting, LLMs decompose complex tasks into intermediate reasoning steps, enhancing understanding of user behavior and interests. However, LLMs’ high resource demands limit their practical use. To overcome this, the", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 259, + "chunk_id": "Small Language Models in the Era of Large_chunk_0259", + "start_position": 114033, + "end_position": 114383, + "page_index": 35, + "word_count": 47, + "char_count": 350 + }, + "has_embedding": false + }, + { + "content": "To overcome this, the Step-by-step Knowledge Distillation Framework for Recommendation (SLIM) [369] distills LLM reasoning capabilities into SLMs, keeping just $4 \\%$ of the original parameters, transitioning from ChatGPT to Llama 7B [338]. SLIM uses detailed LLM templates to extract reasoning steps and streamlined templates for fine-tuning, enabling SLMs to improve recommender systems by better reasoning on richer item information. SLM for Long-term Planning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 260, + "chunk_id": "Small Language Models in the Era of Large_chunk_0260", + "start_position": 114383, + "end_position": 114847, + "page_index": 35, + "word_count": 64, + "char_count": 464 + }, + "has_embedding": false + }, + { + "content": "SLM for Long-term Planning. Traditional recommender systems focus on optimizing immediate user responses, often maximizing short-term gains but overlooking long-term engagement. This can trap users in echo chambers and filter bubbles [107, 368]. To tackle this, integrating planning capabilities into recommendations to balance immediate and long-term outcomes is vital. LMs, with their extensive knowledge and reasoning abilities, are expected to enhance planning capabilities.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 261, + "chunk_id": "Small Language Models in the Era of Large_chunk_0261", + "start_position": 114847, + "end_position": 115325, + "page_index": 35, + "word_count": 63, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "th their extensive knowledge and reasoning abilities, are expected to enhance planning capabilities. BiLLP [309] adopts a hierarchical learning approach with macro and micro-learning phases. In macro-learning, a Planner and a Reflector, both as SLM instances like Llama-2-7B [339], operate; the Planner forms long-term plans using high-level experiences, while the Reflector updates plans based on past actions.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 262, + "chunk_id": "Small Language Models in the Era of Large_chunk_0262", + "start_position": 115325, + "end_position": 115736, + "page_index": 35, + "word_count": 57, + "char_count": 411 + }, + "has_embedding": false + }, + { + "content": "ng-term plans using high-level experiences, while the Reflector updates plans based on past actions. Micro-learning uses an SLM-based Actor-Critic mechanism for personalized planning, with the Actor implementing plans and the Critic assessing actions for long-term benefits. The use of SLMs for long-term planning, similar to their use in cold-start scenarios, remains underexplored and merits further research. SLMs as a Personalized Recommender.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 263, + "chunk_id": "Small Language Models in the Era of Large_chunk_0263", + "start_position": 115736, + "end_position": 116183, + "page_index": 35, + "word_count": 61, + "char_count": 447 + }, + "has_embedding": false + }, + { + "content": "SLMs as a Personalized Recommender. Generative language model-based recommender systems require integrating user knowledge, typically achieved through fine-tuning. Fine-tuning techniques like LoRA [142] can incorporate extensive knowledge across all users by training an external module with a small number of parameters A and B, but this approach often overlooks individual user preferences.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 264, + "chunk_id": "Small Language Models in the Era of Large_chunk_0264", + "start_position": 116183, + "end_position": 116575, + "page_index": 35, + "word_count": 52, + "char_count": 392 + }, + "has_embedding": false + }, + { + "content": "a small number of parameters A and B, but this approach often overlooks individual user preferences. To address this, RecLoRA [455] utilizes Vicuna-7B [61] to integrate personalized knowledge into SLMs/LLMs tailored for recommendation tasks, as illustrated in Figure 14.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 265, + "chunk_id": "Small Language Models in the Era of Large_chunk_0265", + "start_position": 116575, + "end_position": 116845, + "page_index": 35, + "word_count": 39, + "char_count": 270 + }, + "has_embedding": false + }, + { + "content": "ersonalized knowledge into SLMs/LLMs tailored for recommendation tasks, as illustrated in Figure 14. Specifically, RecLoRA maintains a set of parallel, independent LoRA weights $( \\mathbf { A } _ { i } , \\mathbf { B } _ { i } )$ , allowing for the customization of language model parameters to match individual user preferences more effectively. ![This image is of moderate complexity. Figure 14 illustrates a lifelong behavior sequence and personalized low-rank adaptation (LoRA) for recommendation.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 266, + "chunk_id": "Small Language Models in the Era of Large_chunk_0266", + "start_position": 116845, + "end_position": 117345, + "page_index": 35, + "word_count": 78, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "strates a lifelong behavior sequence and personalized low-rank adaptation (LoRA) for recommendation. Panel (a) shows a user's purchase history, including a phone, camera, computer, clothing, cake, dress, and gift. Panels (b) and (c) depict two approaches to fine-tuning large language models (LLMs) using LoRA. Panel (b), \"Non-personalized LoRA Finetune,\" shows multiple users interacting with LLMs (Claude 3, Gemini, Meta AI) to produce a single, non-personalized LoRA output (A and B).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 267, + "chunk_id": "Small Language Models in the Era of Large_chunk_0267", + "start_position": 117345, + "end_position": 117832, + "page_index": 35, + "word_count": 70, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "g with LLMs (Claude 3, Gemini, Meta AI) to produce a single, non-personalized LoRA output (A and B). Panel (c), \"Personalized LoRA Finetune,\" demonstrates how each user's interaction with LLMs results in a unique, personalized LoRA output (A1, B1; A2, B2; ... Ak, Bk), indicating a tailored adaptation for each individual.](images/3b43c2adad6b79f991c200f73540556e2caeebf4d3fa4388bf6043d9b05842b2.jpg)\nFig. 14.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 268, + "chunk_id": "Small Language Models in the Era of Large_chunk_0268", + "start_position": 117832, + "end_position": 118241, + "page_index": 36, + "word_count": 53, + "char_count": 409 + }, + "has_embedding": false + }, + { + "content": "14. The illustration of lifelong behavior sequence and personalized low-rank adaption (LoRA) for recommendation [455]. SLM as a Content Encoder. Language models, particularly when deep, provide an effective starting point for finetuning on downstream tasks. In news recommendation systems, the representational capability of a model significantly impacts performance. Consequently, many news recommender systems now employ language models fine-tuned on specific datasets as text encoders.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 269, + "chunk_id": "Small Language Models in the Era of Large_chunk_0269", + "start_position": 118241, + "end_position": 118729, + "page_index": 36, + "word_count": 64, + "char_count": 488 + }, + "has_embedding": false + }, + { + "content": "ews recommender systems now employ language models fine-tuned on specific datasets as text encoders. For example, Wu et al. [379] conducts pioneering work using a pre-trained language model to enhance large-scale news recommender systems by substituting traditional news encoders with a BERT model [83]. However, BERT may struggle to capture content as it is pre-trained on limited data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 270, + "chunk_id": "Small Language Models in the Era of Large_chunk_0270", + "start_position": 118729, + "end_position": 119116, + "page_index": 36, + "word_count": 58, + "char_count": 387 + }, + "has_embedding": false + }, + { + "content": "However, BERT may struggle to capture content as it is pre-trained on limited data. Therefore, ONCE [214] propose using Llama-2-7B [339] as an encoder to overcome the limitations of BERT in content-based recommendations. Additionally, the study explores the synergistic use of LLMs in recommendation systems, finding that SLMs optimized with LoRA [142] outperform the recommendation results of systems assisted by generic LLMs such as ChatGPT. 4.1.4 SLM Applications in Web Search.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 271, + "chunk_id": "Small Language Models in the Era of Large_chunk_0271", + "start_position": 119116, + "end_position": 119597, + "page_index": 36, + "word_count": 71, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "4.1.4 SLM Applications in Web Search. Web search systems, involving retrieval and ranking, face challenges due to the diverse web documents and search queries. Traditional keyword-matching methods often fall short because of phrasing variations and the long-tail distribution of queries and content, complicating accurate semantic inference. Effective integration of retrieval and ranking models is also crucial.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 272, + "chunk_id": "Small Language Models in the Era of Large_chunk_0272", + "start_position": 119597, + "end_position": 120009, + "page_index": 36, + "word_count": 56, + "char_count": 412 + }, + "has_embedding": false + }, + { + "content": "Effective integration of retrieval and ranking models is also crucial. Language models, serving as content encoders, help overcome semantic challenges through their language understanding from pre-training [63, 89, 359]. Joint training of Manuscript submitted to ACM [IMAGE]\nFig. 15. Roles of SLM in Web Search. retrieval and ranking models addresses integration, with SLMs ranking retrieved documents and acting as re-rankers.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 273, + "chunk_id": "Small Language Models in the Era of Large_chunk_0273", + "start_position": 120009, + "end_position": 120436, + "page_index": 36, + "word_count": 60, + "char_count": 427 + }, + "has_embedding": false + }, + { + "content": "anking models addresses integration, with SLMs ranking retrieved documents and acting as re-rankers. Additionally, SLMs serve as rewriters in scenarios requiring enhanced query understanding. Thus, in web search, SLMs fulfill three roles: (1) content encoder, (2) ranker, and (3) rewriter, as depicted in Figure 15. Next, we give details. SLM as a Content Encoder.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 274, + "chunk_id": "Small Language Models in the Era of Large_chunk_0274", + "start_position": 120436, + "end_position": 120800, + "page_index": 36, + "word_count": 54, + "char_count": 364 + }, + "has_embedding": false + }, + { + "content": "SLM as a Content Encoder. Text embeddings are vector representations that encode semantic information, widely used in retrieval; SLM-based dense retrieval utilizes pre-trained deep language understanding to effectively tackle semantic challenges.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 275, + "chunk_id": "Small Language Models in the Era of Large_chunk_0275", + "start_position": 120800, + "end_position": 121046, + "page_index": 36, + "word_count": 31, + "char_count": 246 + }, + "has_embedding": false + }, + { + "content": "etrieval utilizes pre-trained deep language understanding to effectively tackle semantic challenges. H-ERNIE [63] employs a hierarchical model that encodes queries and documents at multiple granularity—character, word, and phrase—to improve specificity and relevance in web search results by aggregating finer details into coarser layers, addressing issues like ambiguous queries.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 276, + "chunk_id": "Small Language Models in the Era of Large_chunk_0276", + "start_position": 121046, + "end_position": 121426, + "page_index": 36, + "word_count": 48, + "char_count": 380 + }, + "has_embedding": false + }, + { + "content": "results by aggregating finer details into coarser layers, addressing issues like ambiguous queries. Implicit Interaction $( I ^ { 3 } )$ [89] uses BERT [83] as a content encoder, generating implicit pseudo-queries from passages to enable high online efficiency with offline caching of passage vectors. However, ERNIE and BERT-style models overlook advancements in SLMs such as context length extension [292].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 277, + "chunk_id": "Small Language Models in the Era of Large_chunk_0277", + "start_position": 121426, + "end_position": 121834, + "page_index": 36, + "word_count": 61, + "char_count": 408 + }, + "has_embedding": false + }, + { + "content": "r, ERNIE and BERT-style models overlook advancements in SLMs such as context length extension [292]. Thus, Peng et al. [272] employs LLaMa-7B [338] and Vicuna-7B [61] as semantic encoders for embedding retrieval, demonstrating improved performance through soft prompt tuning. CoCondenser [109] addresses sensitivity to noisy data and large batch requirements during dense retriever training. Using the Condenser architecture with Transformer blocks, the model condenses information into dense vectors effectively.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 278, + "chunk_id": "Small Language Models in the Era of Large_chunk_0278", + "start_position": 121834, + "end_position": 122347, + "page_index": 38, + "word_count": 69, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "rchitecture with Transformer blocks, the model condenses information into dense vectors effectively. SLM as a Ranker. The reranking task improves the order of multiple candidates to enhance retrieval quality because rerankers are more accurate than embedding retrievers. InPars (Inquisitive Parrots for Search) [36] employs the T5 base 220M [284] as a re-ranker to enhance the BM25 retriever [291].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 279, + "chunk_id": "Small Language Models in the Era of Large_chunk_0279", + "start_position": 122347, + "end_position": 122745, + "page_index": 38, + "word_count": 58, + "char_count": 398 + }, + "has_embedding": false + }, + { + "content": "for Search) [36] employs the T5 base 220M [284] as a re-ranker to enhance the BM25 retriever [291]. Initially, BM25 selects 1K candidates, re-ranked by a fine-tuned T5 model (monoT5) adapted as a binary classifier to assess document-query relevance. Training data, generated by GPT-3 [37], formulates queries and selects random negative examples.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 280, + "chunk_id": "Small Language Models in the Era of Large_chunk_0280", + "start_position": 122745, + "end_position": 123091, + "page_index": 38, + "word_count": 52, + "char_count": 346 + }, + "has_embedding": false + }, + { + "content": "Training data, generated by GPT-3 [37], formulates queries and selects random negative examples. Experiments show the monoT5- enhanced retriever significantly outperforms GPT-3; for example, it achieves a 0.3599 MAP score on the TREC-DL 2020 dataset [69], surpassing GPT-3’s 0.3163. SLM as a Rewriter. Queries to the retriever, typically just a few keywords, may reveal a knowledge gap between the query and the knowledge needed for effective retrieval, thus limiting performance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 281, + "chunk_id": "Small Language Models in the Era of Large_chunk_0281", + "start_position": 123091, + "end_position": 123571, + "page_index": 38, + "word_count": 70, + "char_count": 480 + }, + "has_embedding": false + }, + { + "content": "e gap between the query and the knowledge needed for effective retrieval, thus limiting performance. To address this, the “rewriteretrieve-read” framework [233] uses T5-large [284] to bridge the knowledge gap in queries by rewriting them for more effective retrieval. This rewriter, trained via reinforcement learning with downstream LLM performance as a reward, outperforms general LLM rewrites. For example, it achieves a 45.97 F1 score on HotpotQA, surpassing the generic LLM’s 43.85 F1 score.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 282, + "chunk_id": "Small Language Models in the Era of Large_chunk_0282", + "start_position": 123571, + "end_position": 124067, + "page_index": 38, + "word_count": 73, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "For example, it achieves a 45.97 F1 score on HotpotQA, surpassing the generic LLM’s 43.85 F1 score. 4.1.5 SLM Applications in Mobile-device. The use of cloud-based LLMs on devices raises privacy concerns and their large size limits real-time responses in urgent scenarios such as medical emergencies. To overcome these issues, researchers are creating smaller, domain-specific models (SLMs) that offer accurate results and suit mobile use.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 283, + "chunk_id": "Small Language Models in the Era of Large_chunk_0283", + "start_position": 124067, + "end_position": 124506, + "page_index": 38, + "word_count": 65, + "char_count": 439 + }, + "has_embedding": false + }, + { + "content": "are creating smaller, domain-specific models (SLMs) that offer accurate results and suit mobile use. This subsection discusses SLM applications on mobile devices, focusing on three aspects: (1) software API calls, (2) mobile control, and (3) basic NLP applications. SLM for Tool Learning. Integrating LLMs with APIs enhances capabilities but incurs high training costs, prompting a shift to smaller, task-specific models that cut costs but risk errors.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 284, + "chunk_id": "Small Language Models in the Era of Large_chunk_0284", + "start_position": 124506, + "end_position": 124958, + "page_index": 38, + "word_count": 66, + "char_count": 452 + }, + "has_embedding": false + }, + { + "content": "h training costs, prompting a shift to smaller, task-specific models that cut costs but risk errors. In response, Octopus [52] uses a diverse dataset from over 30K APIs and curriculum learning [217] to improve API function accuracy. This method boosts API performance in models like Codellama-7b [292] and Google’s Gemma series [332]. PhoneLM-1.5B-Call [417] is fine-tuned on DroidCall [389] datasets and achieves comparable performance compared to GPT-4o-mini [262].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 285, + "chunk_id": "Small Language Models in the Era of Large_chunk_0285", + "start_position": 124958, + "end_position": 125425, + "page_index": 38, + "word_count": 68, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "tuned on DroidCall [389] datasets and achieves comparable performance compared to GPT-4o-mini [262]. $\\alpha$ -UMI [307] employs SLMs as planners, callers, and summarizers within multi-agent systems, outperforming a single LLM in tool uses. SLM for Mobile Control. LM agents facilitate user-device interactions through taps, gestures, and text, automating tasks and enhancing user handsfree convenience.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 286, + "chunk_id": "Small Language Models in the Era of Large_chunk_0286", + "start_position": 125425, + "end_position": 125828, + "page_index": 38, + "word_count": 54, + "char_count": 403 + }, + "has_embedding": false + }, + { + "content": "actions through taps, gestures, and text, automating tasks and enhancing user handsfree convenience. Unlike traditional developerbased approaches that require extensive developer effort to design interfaces and translate commands into API calls, LMs offer scalable automation via GUI-based text contents. MobileAgent [87] integrates instructions and Standard Operating Procedures (SOP) to improve SLMs for mobile control.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 287, + "chunk_id": "Small Language Models in the Era of Large_chunk_0287", + "start_position": 125828, + "end_position": 126249, + "page_index": 38, + "word_count": 54, + "char_count": 421 + }, + "has_embedding": false + }, + { + "content": "integrates instructions and Standard Operating Procedures (SOP) to improve SLMs for mobile control. As shown in Figure 16, it processes goals (e.g., booking a dental appointment) by analyzing screens, queries, prior actions, and UI elements, forming [IMAGE]\nFig. 16. An example workflow for an automated execution tool [87]. The screenshot in the left is taken from [87]. prompts to generate outputs and execute actions (e.g., selecting text, XPath).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 288, + "chunk_id": "Small Language Models in the Era of Large_chunk_0288", + "start_position": 126249, + "end_position": 126699, + "page_index": 39, + "word_count": 68, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "prompts to generate outputs and execute actions (e.g., selecting text, XPath). Fine-tuning Qwen-7B [23] on AIA medical data, it outperforms GPT-4 [2] on AitW [290], a key mobile benchmark, without extra inference costs. Carreira et al. [42] run a small offline model on mobile devices, fine-tuned with ChatGPT-3.5 data, enabling tasks like calls and web searches.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 289, + "chunk_id": "Small Language Models in the Era of Large_chunk_0289", + "start_position": 126699, + "end_position": 127062, + "page_index": 39, + "word_count": 56, + "char_count": 363 + }, + "has_embedding": false + }, + { + "content": "del on mobile devices, fine-tuned with ChatGPT-3.5 data, enabling tasks like calls and web searches. RedPajama-INCITE-Chat-3B-v1 Computer [67], selected for its size and chat features, uses native code and quantization, performing well on 6GB and 4GB Android devices. AutoDroid [376] improves Android app interactions via GUI automation.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 290, + "chunk_id": "Small Language Models in the Era of Large_chunk_0290", + "start_position": 127062, + "end_position": 127399, + "page_index": 39, + "word_count": 47, + "char_count": 337 + }, + "has_embedding": false + }, + { + "content": "AutoDroid [376] improves Android app interactions via GUI automation. Figure 17 shows LLMpowered task automation (e.g., setting a laundry reminder for Aug 17) in four steps: (1) click ’New Event’, (2) enter ’laundry’ in ’Title’, (3) click ’Save’, (4) finish. Using Vicuna-7B and app-specific knowledge, AutoDroid generates privacy-filtered prompts for tasks. On its DroidTask benchmark, it outperforms GPT-3.5 $( 3 4 . 7 \\% )$ and GPT-4 $( 5 4 . 5 \\% )$ with $5 7 . 7 \\%$ accuracy.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 291, + "chunk_id": "Small Language Models in the Era of Large_chunk_0291", + "start_position": 127399, + "end_position": 127880, + "page_index": 39, + "word_count": 81, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "7 \\%$ accuracy. M4 (composable mobile foundation model) [423] introduces a 9.2B parameter model ![This image is of **moderate complexity**. The figure illustrates a four-step process for a mobile task automation powered by an LLM and domain knowledge. It depicts a user's request \"Task: Remind me to do laundry on August 17\" and shows the corresponding mobile interface actions. Step 1 involves clicking \"New event\" on a calendar interface. Step 2 shows inputting \"laundry\" into the \"Title\" field.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 292, + "chunk_id": "Small Language Models in the Era of Large_chunk_0292", + "start_position": 127880, + "end_position": 128377, + "page_index": 39, + "word_count": 78, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "Step 2 shows inputting \"laundry\" into the \"Title\" field. Step 3 demonstrates clicking \"Save,\" which triggers the completion of the task as shown in Step 4, where the calendar displays the event. The diagram also visually represents the interaction between the LLM and domain knowledge, facilitating this automated task.](images/f0676f031f8be6ddbcdd421342e02c7aa2dd3e785aaeb77f576fd2a9803bf571.jpg)\nFig. 17.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 293, + "chunk_id": "Small Language Models in the Era of Large_chunk_0293", + "start_position": 128377, + "end_position": 128783, + "page_index": 40, + "word_count": 51, + "char_count": 406 + }, + "has_embedding": false + }, + { + "content": "17. An illustration of Vicuna-7B-powered mobile task automation [42] shows a user asking to be reminded about doing laundry on Aug 17. The figure is taken from [42]. (7.5GB memory) for mobile AI tasks, managed by the OS and hardware. Currently limited to high-end devices, its applicability will expand with increasing mobile memory/storage. These works highlight customizing smaller, domain-specific SLMs to address memory limits while preserving functionality in mobile environments.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 294, + "chunk_id": "Small Language Models in the Era of Large_chunk_0294", + "start_position": 128783, + "end_position": 129268, + "page_index": 40, + "word_count": 70, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "domain-specific SLMs to address memory limits while preserving functionality in mobile environments. SLM for Basic NLP Applications on Devices Performing basic NLP tasks such as text rewriting directly on the device can enable personalization while ensuring privacy. The sparse annotation on devices is a challenge. Qin et al. [278] utilizes self-supervised data selection and synthesis for on-device fine-tuning, leveraging sparse annotations and limited storage effectively.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 295, + "chunk_id": "Small Language Models in the Era of Large_chunk_0295", + "start_position": 129268, + "end_position": 129744, + "page_index": 40, + "word_count": 65, + "char_count": 476 + }, + "has_embedding": false + }, + { + "content": "synthesis for on-device fine-tuning, leveraging sparse annotations and limited storage effectively. This approach, demonstrated in Figure 18, employs the Llama-3B model [338] and the LoRA fine-tuning method [142], enhancing personalization by efficiently managing data through metrics including embedding entropy and domain-specific scores.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 296, + "chunk_id": "Small Language Models in the Era of Large_chunk_0296", + "start_position": 129744, + "end_position": 130084, + "page_index": 42, + "word_count": 42, + "char_count": 340 + }, + "has_embedding": false + }, + { + "content": "by efficiently managing data through metrics including embedding entropy and domain-specific scores. In mobile text rewriting, Zhu et al. [458] train the compact Palm 2-XXS model [14] using data generated by the larger Palm 2-L to ensure user privacy and accommodate device constraints. On its new benchmark, MESSAGEREWRITEEVAL, Palm 2-XXS achieves a BLEU score of 34.59, outperforming LLaMa-7B (16.65) [338]. tokens/s), proving its mobile efficiency for text rewriting. [IMAGE]\nFig. 18.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 297, + "chunk_id": "Small Language Models in the Era of Large_chunk_0297", + "start_position": 130084, + "end_position": 130571, + "page_index": 42, + "word_count": 71, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "18. Overview of fine-tuning SLMs with synthesized and user data [278]. Data Synthesis generates semantically similar text via prompts, creating dialogue sets. Data Selection processes user data, tags domains, and calculates metrics (EOE, DSS, IDD). Selected data fine-tunes SLMs with user annotations. The iterative framework refines SLMs through continuous data generation and selection. Tests on the Samsung S23 show lower latency (29 tokens/s) than a 4-bit LLaMa-7B on a MacBook M1 Pro (18-22", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 298, + "chunk_id": "Small Language Models in the Era of Large_chunk_0298", + "start_position": 130571, + "end_position": 131066, + "page_index": 42, + "word_count": 73, + "char_count": 495 + }, + "has_embedding": false + }, + { + "content": "on the Samsung S23 show lower latency (29 tokens/s) than a 4-bit LLaMa-7B on a MacBook M1 Pro (18-22 Insights: We draw several key insights from the development of task-specific SLMs: • There is considerable potential in enhancing the efficiency and effectiveness of small models by integrating self-adaptive techniques with further fine-tuning and optimization of RAG-based methods.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 299, + "chunk_id": "Small Language Models in the Era of Large_chunk_0299", + "start_position": 131066, + "end_position": 131449, + "page_index": 42, + "word_count": 57, + "char_count": 383 + }, + "has_embedding": false + }, + { + "content": "integrating self-adaptive techniques with further fine-tuning and optimization of RAG-based methods. • The growing relevance of SLMs in coding highlights their cost-effectiveness and efficiency as alternatives to LLMs, providing quick processing and easy fine-tuning for specialized tasks; while LLMs handle complex tasks well, SLMs, optimized and fine-tuned on specific data, are increasingly essential in resource-limited settings.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 300, + "chunk_id": "Small Language Models in the Era of Large_chunk_0300", + "start_position": 131449, + "end_position": 131882, + "page_index": 42, + "word_count": 56, + "char_count": 433 + }, + "has_embedding": false + }, + { + "content": "optimized and fine-tuned on specific data, are increasingly essential in resource-limited settings. • SLMs significantly enhance recommendation systems due to their robust generalization, reasoning abilities, and in-context learning, addressing key challenges such as cold-start problems and distribution biases. They support long-term planning, replace traditional encoders, and use parallel low-rank parameters to inject personalized user knowledge effectively.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 301, + "chunk_id": "Small Language Models in the Era of Large_chunk_0301", + "start_position": 131882, + "end_position": 132345, + "page_index": 42, + "word_count": 56, + "char_count": 463 + }, + "has_embedding": false + }, + { + "content": "al encoders, and use parallel low-rank parameters to inject personalized user knowledge effectively. • SLMs play a crucial role in web search such as document encoding, text reordering, and query rewriting, often outperforming LLMs through techniques such as supervised fine-tuning, soft prompt tuning, unsupervised contrastive loss, and reinforcement learning, thereby enhancing adaptability and efficiency.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 302, + "chunk_id": "Small Language Models in the Era of Large_chunk_0302", + "start_position": 132345, + "end_position": 132753, + "page_index": 42, + "word_count": 54, + "char_count": 408 + }, + "has_embedding": false + }, + { + "content": "ervised contrastive loss, and reinforcement learning, thereby enhancing adaptability and efficiency. • SLMs are utilized on mobile devices primarily for privacy and memory constraints, with applications in API calls and mobile control; they are typically developed by generating data with LLMs and fine-tuning with SLMs, or by using local SLMs to handle privacy with LLMs boosting performance, and their training involves innovative techniques like learning from data streams and managing non-IID time series data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 303, + "chunk_id": "Small Language Models in the Era of Large_chunk_0303", + "start_position": 132753, + "end_position": 133267, + "page_index": 42, + "word_count": 74, + "char_count": 514 + }, + "has_embedding": false + }, + { + "content": "nvolves innovative techniques like learning from data streams and managing non-IID time series data. Table 6. On-device Deployment Optimization Techniques", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 304, + "chunk_id": "Small Language Models in the Era of Large_chunk_0304", + "start_position": 133267, + "end_position": 133421, + "page_index": 42, + "word_count": 20, + "char_count": 154 + }, + "has_embedding": false + }, + { + "content": "On-device Deployment Optimization Techniques
AspectRepresentative WorkKey Point
MeoyEDGE-LLM [422]Edge LLMs use LUC and adaptive tuning for eficiency
LLM-PQ [448]Optimize quantization and layer partitioning for complex setups.
AWQ [207]Preserve key weights based on activation distribution.
DMC [256]Adaptively compress KV cache, optimizing storage eficiency.
Transformer-Lite [193]Optimize KV cache to reduce redundancy and memory use.
LLMaaS [419]LLMaaS manages apps via chunk-wise KV cache optimization on mobiles.
Runtime Efmiciency Optimizationmllm-NPU [395]On-device NPU (neural processing units) to reduce prefill latency.
COST-EFF [305]Distill a multi-exit model from the original PLM.
LLMCad [394]Use SLM for fast token generation and cloud verification.
EdgeMoE [416]Predict expert needs, boosting inference speed and reducing latency.
LinguaLinked [447]Optimize data flow and load, enhancing multi-threading eficiency.
", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 305, + "chunk_id": "Small Language Models in the Era of Large_chunk_0305", + "start_position": 133421, + "end_position": 134838, + "page_index": 42, + "word_count": 104, + "char_count": 1417 + }, + "has_embedding": false + }, + { + "content": "ed [447]Optimize data flow and load, enhancing multi-threading eficiency. # 4.2 SLM Deployment on Mobile and Edge Devices On-device applications benefit uniquely from the memory-saving efficiency and rapid runtime performance of SLMs, which offer advantages over LLMs. However, devices with extremely limited resources may still struggle with the parameter sizes of SLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 306, + "chunk_id": "Small Language Models in the Era of Large_chunk_0306", + "start_position": 134838, + "end_position": 135236, + "page_index": 43, + "word_count": 52, + "char_count": 398 + }, + "has_embedding": false + }, + { + "content": "wever, devices with extremely limited resources may still struggle with the parameter sizes of SLMs. To ensure both memory and runtime remain within acceptable range while still maintaining performance, it is crucial to integrate technologies that facilitate the deployment of SLMs on resource-constrained devices. The primary challenge for memory-efficient technologies arises from the inherent size of the SLMs and their associated caches.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 307, + "chunk_id": "Small Language Models in the Era of Large_chunk_0307", + "start_position": 135236, + "end_position": 135677, + "page_index": 43, + "word_count": 62, + "char_count": 441 + }, + "has_embedding": false + }, + { + "content": "memory-efficient technologies arises from the inherent size of the SLMs and their associated caches. To address this, we survey existing works focused on compressing SLMs and their caches. Additionally, the large size of models significantly impacts runtime efficiency due to the extensive computing workload and potential weight transfers between the memory buffer and RAM/GPU memory.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 308, + "chunk_id": "Small Language Models in the Era of Large_chunk_0308", + "start_position": 135677, + "end_position": 136062, + "page_index": 43, + "word_count": 55, + "char_count": 385 + }, + "has_embedding": false + }, + { + "content": "sive computing workload and potential weight transfers between the memory buffer and RAM/GPU memory. Other challenges include switching the Mixture of Experts between CPU and GPU memory and managing resource scheduling when deploying SLMs across multiple local devices. Therefore, in this subsection, we review representative works that address these challenges under two aspects: memory efficiency optimization and runtime efficiency optimization, as systematically compiled in Table 6.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 309, + "chunk_id": "Small Language Models in the Era of Large_chunk_0309", + "start_position": 136062, + "end_position": 136549, + "page_index": 43, + "word_count": 66, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "efficiency optimization and runtime efficiency optimization, as systematically compiled in Table 6. 4.2.1 Memory Efficiency Optimization. Memory efficiency involves minimizing the memory usage of both the model and the KV cache during deployment. This is typically achieved through model compression techniques such as quantization [207, 285, 422, 448], the cache of MoE experts [416], and KV cache compression [165]. Compression on model parameters.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 310, + "chunk_id": "Small Language Models in the Era of Large_chunk_0310", + "start_position": 136549, + "end_position": 136999, + "page_index": 43, + "word_count": 63, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "Compression on model parameters. Quantization, a common method for deploying SLMs, lowers numerical precision to significantly save memory while preserving accuracy. We detail quantization strategies in Sections 2.3.3 and 3.5, focusing here on representative works for edge devices.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 311, + "chunk_id": "Small Language Models in the Era of Large_chunk_0311", + "start_position": 136999, + "end_position": 137281, + "page_index": 44, + "word_count": 38, + "char_count": 282 + }, + "has_embedding": false + }, + { + "content": "zation strategies in Sections 2.3.3 and 3.5, focusing here on representative works for edge devices. EDGE-LLM [422] adapts LLMs for edge devices using a Layer-wise Unified Compression (LUC) method that combines layer-specific pruning and quantization to reduce computational demands and an Adaptive Layer Tuning and Voting scheme to optimize memory use while ensuring performance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 312, + "chunk_id": "Small Language Models in the Era of Large_chunk_0312", + "start_position": 137281, + "end_position": 137661, + "page_index": 44, + "word_count": 54, + "char_count": 380 + }, + "has_embedding": false + }, + { + "content": "ds and an Adaptive Layer Tuning and Voting scheme to optimize memory use while ensuring performance. Meanwhile, LLM-PQ [448] addresses quantization and model layer partitioning for heterogeneous clusters, incorporating a Cost Model and an Indicator Generator to optimize bit-width assignment and layer partitioning through integer linear programming, enhancing quantization for complex computational setups.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 313, + "chunk_id": "Small Language Models in the Era of Large_chunk_0313", + "start_position": 137661, + "end_position": 138068, + "page_index": 44, + "word_count": 53, + "char_count": 407 + }, + "has_embedding": false + }, + { + "content": "tioning through integer linear programming, enhancing quantization for complex computational setups. Activation-aware Weight Quantization (AWQ) [207] is a hardware-friendly, low-bit, weight-only quantization method for on-device LLMs, preserving essential weights based on activation distribution to minimize quantization loss. MoE- $\\cdot \\mathbf { I } ^ { 2 }$ [404] prune less important experts and applies low-rank decomposition to the remaining experts to further optimize efficiency.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 314, + "chunk_id": "Small Language Models in the Era of Large_chunk_0314", + "start_position": 138068, + "end_position": 138557, + "page_index": 44, + "word_count": 64, + "char_count": 489 + }, + "has_embedding": false + }, + { + "content": "experts and applies low-rank decomposition to the remaining experts to further optimize efficiency. Manuscript submitted to ACM Cache of MoE Experts. Beyond standard quantization, which reduces storage for all model parameters, another strategy involves caching a mixture of experts (MoE).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 315, + "chunk_id": "Small Language Models in the Era of Large_chunk_0315", + "start_position": 138557, + "end_position": 138846, + "page_index": 44, + "word_count": 40, + "char_count": 289 + }, + "has_embedding": false + }, + { + "content": "uces storage for all model parameters, another strategy involves caching a mixture of experts (MoE). Driven by the fact that memory storage is more cost-effective and scalable than computing capacity, the MoE architecture [154] boosts performance while minimizing computational costs by activating only portions of the LLM as needed. However, this approach incurs significant memory overhead, making it impractical for edge device memory constraints.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 316, + "chunk_id": "Small Language Models in the Era of Large_chunk_0316", + "start_position": 138846, + "end_position": 139296, + "page_index": 45, + "word_count": 64, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "proach incurs significant memory overhead, making it impractical for edge device memory constraints. For example, Switch Transformers [100], with 32 experts per layer, require 54GBs of memory for inference, exceeding the capacity of most edge devices. Yi et al. [416] notes that in the Switch Transformers model, although most of the model weights $( 8 6 . 5 \\% )$ are attributed to experts, these weights account for only a small fraction $( 2 6 . 4 \\% )$ of the computations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 317, + "chunk_id": "Small Language Models in the Era of Large_chunk_0317", + "start_position": 139296, + "end_position": 139773, + "page_index": 45, + "word_count": 82, + "char_count": 477 + }, + "has_embedding": false + }, + { + "content": "4 \\% )$ of the computations. To address this, EdgeMoE [416] introduces a method where experts are loaded into an expert memory buffer only when activated, achieving approximately $3 \\times$ memory savings compared to the baseline where all weights are held in memory. KV Cache Compression. When serving LMs for inference, using a KV cache is common practice to avoid intensive recalculations and speed up generation [276].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 318, + "chunk_id": "Small Language Models in the Era of Large_chunk_0318", + "start_position": 139773, + "end_position": 140195, + "page_index": 45, + "word_count": 67, + "char_count": 422 + }, + "has_embedding": false + }, + { + "content": "using a KV cache is common practice to avoid intensive recalculations and speed up generation [276]. However, cache memory consumption escalates with model size and sequence length, posing a challenge for edge devices. To manage this, offloading techniques transfer KV caches to CPU memory [12, 308], although this can introduce significant overhead due to the switching costs between GPUs and CPUs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 319, + "chunk_id": "Small Language Models in the Era of Large_chunk_0319", + "start_position": 140195, + "end_position": 140594, + "page_index": 45, + "word_count": 61, + "char_count": 399 + }, + "has_embedding": false + }, + { + "content": ", although this can introduce significant overhead due to the switching costs between GPUs and CPUs. Token dropping compresses cache size by keeping only key tokens, often identified by low attention scores [111, 220, 444]. However, this method struggles with complex tasks, especially at high compression levels, due to increased estimation errors in compressed KV values.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 320, + "chunk_id": "Small Language Models in the Era of Large_chunk_0320", + "start_position": 140594, + "end_position": 140967, + "page_index": 45, + "word_count": 56, + "char_count": 373 + }, + "has_embedding": false + }, + { + "content": ", especially at high compression levels, due to increased estimation errors in compressed KV values. GEAR [165] addresses these issues by enhancing KV cache quantization with error-reduction techniques, including: (i) quantizing caches of similar magnitudes to ultra-low precision, (ii) using a low-rank matrix for efficient quantization residual approximation, and (iii) employing a sparse matrix for correcting outliers.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 321, + "chunk_id": "Small Language Models in the Era of Large_chunk_0321", + "start_position": 140967, + "end_position": 141389, + "page_index": 45, + "word_count": 57, + "char_count": 422 + }, + "has_embedding": false + }, + { + "content": "nt quantization residual approximation, and (iii) employing a sparse matrix for correcting outliers. This approach separates coherent from incoherent approximation errors, enabling near-lossless KV cache compression and achieving up to $2 . 2 9 \\times$ peak memory reduction. Besides, Dynamic Memory Compression (DMC) [256] adaptively compresses the KV cache by either adding new key and value representations directly or blending them with the top cache item using a weighted average.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 322, + "chunk_id": "Small Language Models in the Era of Large_chunk_0322", + "start_position": 141389, + "end_position": 141874, + "page_index": 45, + "word_count": 70, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "nd value representations directly or blending them with the top cache item using a weighted average. Transformer-Lite [193] tackles the redundancy of storing the KV cache twice in model inputs and outputs, which increases memory use. It optimizes storage by allocating a large tensor based on the maximum sequence length needed for inference.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 323, + "chunk_id": "Small Language Models in the Era of Large_chunk_0323", + "start_position": 141874, + "end_position": 142216, + "page_index": 45, + "word_count": 53, + "char_count": 342 + }, + "has_embedding": false + }, + { + "content": "izes storage by allocating a large tensor based on the maximum sequence length needed for inference. Sub-tensors are then created from this main tensor at different address offsets to serve as input and output KV caches, allowing direct writing to the correct locations during inference and removing extra copying steps. LLMaaS [419] introduces LLM as a Service for mobile devices, managing all apps through LLMS.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 324, + "chunk_id": "Small Language Models in the Era of Large_chunk_0324", + "start_position": 142216, + "end_position": 142629, + "page_index": 45, + "word_count": 65, + "char_count": 413 + }, + "has_embedding": false + }, + { + "content": "LLMaaS [419] introduces LLM as a Service for mobile devices, managing all apps through LLMS. This system uses chunk-wise KV cache compression and swapping, enabling efficient context switching within memory constraints. By segmenting the KV cache into independently compressed and swapped chunks, LLMS balances memory use and I/O bandwidth better than token-level or context-level management. 4.2.2 Runtime Efficiency Optimization.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 325, + "chunk_id": "Small Language Models in the Era of Large_chunk_0325", + "start_position": 142629, + "end_position": 143060, + "page_index": 46, + "word_count": 59, + "char_count": 431 + }, + "has_embedding": false + }, + { + "content": "4.2.2 Runtime Efficiency Optimization. The goal of decreasing computing workload aligns with enhancing memory efficiency through methods such as quantization, as mentioned in the previous section. Decreasing model weight precision or reducing the number of weights naturally lowers latency.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 326, + "chunk_id": "Small Language Models in the Era of Large_chunk_0326", + "start_position": 143060, + "end_position": 143350, + "page_index": 46, + "word_count": 39, + "char_count": 290 + }, + "has_embedding": false + }, + { + "content": "Decreasing model weight precision or reducing the number of weights naturally lowers latency. Other runtime efficiency techniques of minimizing inference latency involve, reducing prefill latency, early exits, large and small model collaboration, decreasing switching time in MoE, and reducing latency in distributed SLMs. Reducing prefill latency. mllm-NPU [395] is the first LLM inference system that leverages on-device NPU (neural processing units) to reduce prefill latency and energy consumption.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 327, + "chunk_id": "Small Language Models in the Era of Large_chunk_0327", + "start_position": 143350, + "end_position": 143852, + "page_index": 46, + "word_count": 68, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "leverages on-device NPU (neural processing units) to reduce prefill latency and energy consumption. It incorporates a chunk-sharing graph, shadow outlier execution, and out-of-order subgraph execution to enhance NPU offloading efficiency. Experiments have shown mllm-NPU’s superior performance benefits, including up to $4 3 . 6 \\times$ speedup and $5 9 . 5 \\times$ energy savings. Dynamic Early Exits A decoupled runtime saving technique is dynamic early exits.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 328, + "chunk_id": "Small Language Models in the Era of Large_chunk_0328", + "start_position": 143852, + "end_position": 144314, + "page_index": 46, + "word_count": 66, + "char_count": 462 + }, + "has_embedding": false + }, + { + "content": "Dynamic Early Exits A decoupled runtime saving technique is dynamic early exits. Originating from BranchyNet [335], which introduces exit branches after specific convolution layers in the CNN model, this concept has been adapted for PLMs as Transformer layer-wise early exiting [391]. Early exiting enables dynamic acceleration during inference and reduces temporal overhead by allowing exit without passing through all model layers.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 329, + "chunk_id": "Small Language Models in the Era of Large_chunk_0329", + "start_position": 144314, + "end_position": 144747, + "page_index": 46, + "word_count": 61, + "char_count": 433 + }, + "has_embedding": false + }, + { + "content": "g inference and reduces temporal overhead by allowing exit without passing through all model layers. To address the inconsistency issue arising from exiting at different layers, COST-EFF [305] distills a multi-exit model from the original PLM. Large and Small Model Collaboration Model collaboration, deploying SLMs on devices with cloud-based LLM support, enhances runtime efficiency.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 330, + "chunk_id": "Small Language Models in the Era of Large_chunk_0330", + "start_position": 144747, + "end_position": 145132, + "page_index": 46, + "word_count": 54, + "char_count": 385 + }, + "has_embedding": false + }, + { + "content": "collaboration, deploying SLMs on devices with cloud-based LLM support, enhances runtime efficiency. LLMs will increase latency when directly deployed via mobile engines like llama.cpp due to a large number of computing operations. LLMCad [394] addresses this by using a real-time, memoryresident SLM for simple tokens such as determiners and punctuation. The SLM generates tokens, while a cloud-based LLM verifies and corrects them, speeding up the process. LLMCad enhances token generation up to $9 .", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 331, + "chunk_id": "Small Language Models in the Era of Large_chunk_0331", + "start_position": 145132, + "end_position": 145633, + "page_index": 46, + "word_count": 74, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "LLMCad enhances token generation up to $9 . 3 \\times$ by pairing the memory-resident SLM, Llama 2 7B, with the cloud-based LLM, Llama 2 13B, cutting latency from 16.2 to 3.9 seconds on Xiaomi Pro for TruthfulQA tasks [208]. Reducing MoE Switching Time.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 332, + "chunk_id": "Small Language Models in the Era of Large_chunk_0332", + "start_position": 145633, + "end_position": 145885, + "page_index": 46, + "word_count": 43, + "char_count": 252 + }, + "has_embedding": false + }, + { + "content": "Reducing MoE Switching Time. To reduce latency in MoE architectures caused by frequently switching experts in limited device memory, EdgeMoE [416] enhances runtime efficiency by preemptively predicting which expert will be needed, based on the observed long-tail distribution of unbalanced expert activations. It utilizes a statistical model, built offline, to estimate expert activation probabilities in transformer layers from previous activations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 333, + "chunk_id": "Small Language Models in the Era of Large_chunk_0333", + "start_position": 145885, + "end_position": 146335, + "page_index": 47, + "word_count": 60, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "ffline, to estimate expert activation probabilities in transformer layers from previous activations. During inference, EdgeMoE preemptively loads the most likely needed expert, accelerating inference by $1 . 1 1 \\times$ to $2 . 7 8 \\times$ and significantly reducing latency. For instance, in a switch transformer model with 8 experts, latency drops from approximately 0.7s to 0.3s, outperforming the baseline method that preloads experts based on hit ratios. Reducing Latency in Distributed SLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 334, + "chunk_id": "Small Language Models in the Era of Large_chunk_0334", + "start_position": 146335, + "end_position": 146832, + "page_index": 47, + "word_count": 73, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "Reducing Latency in Distributed SLMs. Distributing an SLM across smaller devices reduces the need for extensive model compression while preserving accuracy. However, this approach faces challenges that incur latency such as managing diverse device capabilities, handling data dependencies between model segments, and adapting to dynamic resource availability.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 335, + "chunk_id": "Small Language Models in the Era of Large_chunk_0335", + "start_position": 146832, + "end_position": 147191, + "page_index": 47, + "word_count": 47, + "char_count": 359 + }, + "has_embedding": false + }, + { + "content": "s, handling data dependencies between model segments, and adapting to dynamic resource availability. To address these issues, LinguaLinked [447] addresses these issues by optimizing model assignment to match device capabilities and minimize data transmission, implementing runtime load balancing to redistribute tasks and prevent bottlenecks, and enhancing communication for efficient data exchange between segments. With multi-threading, the system improves, achieving acceleration rates between $1 .", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 336, + "chunk_id": "Small Language Models in the Era of Large_chunk_0336", + "start_position": 147191, + "end_position": 147692, + "page_index": 47, + "word_count": 64, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "With multi-threading, the system improves, achieving acceleration rates between $1 . 7 3 \\times$ and $2 . 6 5 \\times$ for both quantized and full-precision models. Insights: We draw several key insights from the deployment of SLMs: • Model size remains a bottleneck for both memory and runtime efficiency. A common solution is model quantization, which reduces model precision to save memory and lessen computing workload, thereby boosting inference speed [207, 223, 253, 285, 422, 448].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 337, + "chunk_id": "Small Language Models in the Era of Large_chunk_0337", + "start_position": 147692, + "end_position": 148179, + "page_index": 47, + "word_count": 76, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "mory and lessen computing workload, thereby boosting inference speed [207, 223, 253, 285, 422, 448]. Similarly, KV cache compression also helps achieve these efficiency gains [165, 193, 256, 419]. • Mixture of Experts (MoE) is commonly used in SLMs to enhance performance using the same computing resources, but it results in increased memory usage. To address this, only activated experts are loaded into the memory buffer while the majority are stored cold on disk.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 338, + "chunk_id": "Small Language Models in the Era of Large_chunk_0338", + "start_position": 148179, + "end_position": 148646, + "page_index": 47, + "word_count": 74, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "only activated experts are loaded into the memory buffer while the majority are stored cold on disk. However, the cost of switching can slow down inference. Designing a preemptive expert pre-load strategy could therefore accelerate the inference [416]. • Model collaboration between local SLMs and cloud-based LLMs enhances both memory and runtime efficiency by using smaller models on local devices, which are then verified by cloud LLMs to ensure performance is maintained.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 339, + "chunk_id": "Small Language Models in the Era of Large_chunk_0339", + "start_position": 148646, + "end_position": 149121, + "page_index": 47, + "word_count": 72, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": "models on local devices, which are then verified by cloud LLMs to ensure performance is maintained. Using SLMs locally reduces memory usage and shortens the inference time from the local model. However, internet latency and delays in cloud LLM inference can still introduce latency. Verifying SLM outputs every $N$ tokens using LLMs can effectively mitigate this latency [394].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 340, + "chunk_id": "Small Language Models in the Era of Large_chunk_0340", + "start_position": 149121, + "end_position": 149498, + "page_index": 47, + "word_count": 58, + "char_count": 377 + }, + "has_embedding": false + }, + { + "content": "Verifying SLM outputs every $N$ tokens using LLMs can effectively mitigate this latency [394]. • One deployment approach involves deploying SLMs/LLMs across multiple trusted local devices to maintain original performance while only loading a fraction of the model weights. However, this method can incur latency due to varying device capabilities and resource scheduling challenges.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 341, + "chunk_id": "Small Language Models in the Era of Large_chunk_0341", + "start_position": 149498, + "end_position": 149880, + "page_index": 47, + "word_count": 54, + "char_count": 382 + }, + "has_embedding": false + }, + { + "content": "this method can incur latency due to varying device capabilities and resource scheduling challenges. To address these issues, optimizing model assignment to align with device capabilities and minimizing data transmission are effective strategies [447]. # 5 GENERIC AND DOMAIN-SPECIFIC SMALL LANGUAGE MODELS This section investigates small language models (with fewer than 7 billion parameters) in both general and specific domains.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 342, + "chunk_id": "Small Language Models in the Era of Large_chunk_0342", + "start_position": 149880, + "end_position": 150311, + "page_index": 48, + "word_count": 60, + "char_count": 431 + }, + "has_embedding": false + }, + { + "content": "s small language models (with fewer than 7 billion parameters) in both general and specific domains. It details the methods of obtaining these small language models, the datasets, and the evaluation tasks, exploring the techniques for acquiring SLMs through compression, fine-tuning, or training from scratch. Additionally, we summarize the representative small language models, as detailed in Table 7 and 10. # 5.1 Generic-domain SLMs Overview.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 343, + "chunk_id": "Small Language Models in the Era of Large_chunk_0343", + "start_position": 150311, + "end_position": 150756, + "page_index": 48, + "word_count": 65, + "char_count": 445 + }, + "has_embedding": false + }, + { + "content": "# 5.1 Generic-domain SLMs Overview. SLMs, with fewer parameters than LLMs, enhance computational efficiency in pre-training, fine-tuning, and inference, reducing memory and energy demands—crucial for resource-limited environments. Their compact, localized nature boosts privacy, personalization, and response times, making them ideal for low-power edge devices. Therefore, SLMs are attracting increasing attention, and various models are being developed.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 344, + "chunk_id": "Small Language Models in the Era of Large_chunk_0344", + "start_position": 150756, + "end_position": 151210, + "page_index": 48, + "word_count": 56, + "char_count": 454 + }, + "has_embedding": false + }, + { + "content": "Therefore, SLMs are attracting increasing attention, and various models are being developed. Table 7 summarizes current representative generic-domain 42 SLMs/SLM families. Although all chosen SLMs have similar architectures, they vary in specific training datasets and techniques, with some datasets not being openly available.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 345, + "chunk_id": "Small Language Models in the Era of Large_chunk_0345", + "start_position": 151210, + "end_position": 151537, + "page_index": 48, + "word_count": 43, + "char_count": 327 + }, + "has_embedding": false + }, + { + "content": "ey vary in specific training datasets and techniques, with some datasets not being openly available. Taking the latest Llama 3.2 1B models [7] in Figure 19 as an example, its parameter size and use of filtered high-quality training data, pruning-based initialization, knowledge distillation pre-training tasks, and training techniques such as Supervised Fine-Tuning (SFT), Rejection Sampling (RS), and Direct Preference Optimization (DPO) distinguish it from others. [IMAGE]\nFig. 19. Llama 3.2 1B model card", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 346, + "chunk_id": "Small Language Models in the Era of Large_chunk_0346", + "start_position": 151537, + "end_position": 152044, + "page_index": 48, + "word_count": 73, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "Llama 3.2 1B model card 5.1.1 Architecture Design. From Table 7, we observe several trends in component choices for SLMs: (1) Recent SLMs frequently employ Grouped Query Attention (GQA) in self-attention mechanisms because it can reduce computational complexity. GQA achieves this by sharing query representations across multiple heads while keeping key and value representations separate. This approach aligns with the goals of SLM to enhance efficiency without compromising functionality. Table 7.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 347, + "chunk_id": "Small Language Models in the Era of Large_chunk_0347", + "start_position": 152044, + "end_position": 152543, + "page_index": 48, + "word_count": 71, + "char_count": 499 + }, + "has_embedding": false + }, + { + "content": "Table 7. High-level Overview and Training Details of Generic-domain Small Language Models. #Params means Parameter amounts. $\" > \"$ indicates parameters larger than 7B.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 348, + "chunk_id": "Small Language Models in the Era of Large_chunk_0348", + "start_position": 152543, + "end_position": 152711, + "page_index": 48, + "word_count": 24, + "char_count": 168 + }, + "has_embedding": false + }, + { + "content": "$\" > \"$ indicates parameters larger than 7B.
Model#ParamsDateParadigmDomainTraining DatasetsTraining Techniques
PhoneLM [417]0.5B;1.5B2024.1 Pre-trainGenericDCLM-baseline [192], tarCoderData [195]; OpenWebMath [267], Dolma-algebraic and Dolma-arXiv [315]RoPE, MHA, Gated FN, MNorm, ReLU, SDP, Fash Atention 2,ZeRO
Llama 3.2 [7]1B; 3B2024.9Pre-trainGenericno release (9T tokens)GQA, SiU, Mulingual Text and code, hared embedding, Prun- ing, Distilltion, FT, LHF, RS, O
Qwen 1 [23]1.8B; 7B;>2023.12Pre-rainGenericno releaseMHA; RoPE; SwiGLU; RMSNorm
Qwen 1.5 [23]0.5B;1.8B; 4B; 7B;>2024.2Pre-rainGenericno releaseMHA; RoPE; SwiGLU; MSNorm; Muligual support
Qwen 2 [402]0.5B1.5B; B;>2024.6Pre-trainGenericno releaseGQA; RoPE; SwiGLU; MSNorm; Multilingual support
Qwen 2.5 [402]0.5B;1.5B; 3B; 7B;2024.9Pre-trainGenericno releaseGQA; RoPE; wiGLU; RMSNorm; Multilingual support; Larger corpus
Gemma [332] Gemma 2 [33]2B; 7B2024.2Pre-trainGenericUnknownMHA, RoPE, GELUtanh
2B;>2024.7Pre-trainGenericUnknownQA Logi Sft-Capping; RMSNorm for Pre and Post-Normalization
SmolLM [9]135M ; 360M; 1.7B2024.7Pre-trainGenericsmollm-corpus [27]GQA, trapezoidal LR scheduler
H20-Danube3 [274]500M; 4B2024.7Pre-trainGenericUnknown
Fox-1 [334]1.6B2024.6Pre-trainGenericUnknown (3T tokens)GQA; Dep architecture
Rene [113] MiniCPM [143]1.3B 1.2B; 2.4B2024.5Pre-train Pre-trainGeneric GenericDolma-1.7 [315] Dolma [315]; C4 [284]; Pile[84]; tack [174]Mamba-2 layers, sing-window atetion (SWA)
2024.4Staroder [195] Ua hat [86]sIn [373]; Evolntruct [392]Warmup-Sable-Decay (WsD) larning ate scheduer
CT-LM [2]2B2024.4Pre-trainGenericMAP-CCChinese, MHA, RoPE, SwiGLU, MSNor
OLMo [116]1B; B2024.2Pre-trainGenericDolma[315] 1SwiGLU; RoPE, Non-Paraeteric LayerNo
TinyLlama [439]1B2024.1Pre-trainGenericSlimPajama [314] and StarCode [195]GQA, SiLU, FSDP, Flash Atention [73], xFormers [184]
Phi-1 [120]1.3B2023.6Pre-trainCodingCodeTextBook [120]22MHA, GELUtanh, RPE, FlshAttentio
Phi-1.5[20]1.3B2023.9Pre-trainGenericCodeTextBook [120];ynthetic Datasets (20)MHA, GEUanh,RE, FshAttentin, De ZeRSe2
Phi-2 [152.7B2023.12 Pre-trainGenericCodeTextBook [120];yntetic Datasets (20)MHA, GEUanh,RE, FshAttentin, De ZeRSe2
Phi-3 []3.8B; 7B;>2024.4Pre-trainGenericScaled-up dataset from phi-2MHA, SiLU, RoPE, FlashAttention, Deep ZeRO Stage 2
Phi-3.5 []]3.8B; 4.2B;6.6B2024.4Pre-trainGenericmore mulilingual and long-text data RefinedWeb [269], deduplicated PE [108],Maulilingual; Vision; MHA, SiU, RPE, FlashAtention, ZeR2
OpenELM [241]270M; 450M; 1.1B;3B2024.4Pre-trainGenericpartial RedPajama [67], partial Dolma v1.6 [315]No biases in FC layers; Pre-norm: RMSNorm; Pos encoding RoPE; Atention: GQA; FFN: SwiGLU; Tokenizer: LLaMA-style
MobiLlama[36]0.5B;0.8B2024.2Pre-trainGenericLLM360 Amber 3GQA; SwiGLU; Parameter-sharig
MobileLM [23]125M,; 350M2024.2Pre-trainGenericUnknow (1 tokens)iG N, ep and thin achitectues, eeding sharing, and grouped quy attenion
Cerebras-GPT [84]111M;256M; 590M; 1.3B;2.7B;6.B;>2023.4Pre-trainGenericPile [108]MHA; GELU; Maximal Update Parameterization
Pythi [31]14M:70M:160M:410M; 1B;1.4B;2.8B;6.9B;>2023.4Pre-trainGenericPile [108]MHA; GELU; Flash Atention [74]; RoPE [318]; ZeRO [286]
BLOOM2 [181]202.11 Pre-trainGenericR0OTS [10] ad 1 programming languges
Galactica [330]125M, 1.B; 6.7B; >2022.1Pe-tranScientificOpen-acces scientic materils (16bB tokens) but not releaseedMHA; GLU Laed Positinalmbedi
OPT [440]125M;350M;1.3B; 2.7B; 5.7B2022.5Pre-trainGenericPile [108] and Pushhift.io Reddit [24]MHA; ReLU
XGLM [209]1.7B; 2.9B;>2021.12Pre-trainnGenericCC100-XL-
GPT-Neo [33]125M; 350M; 1.3B; 2.7B2021.5Pre-trainGenericPil [108]
Megatron-gpt2 [310]355M; 2.5B;>2019.9Pre-trainGenericWikipedia[83], C-Stories [341], RealNew [430], OpenWebtext-
MINITRON [252]4B;>2024.7Distilaion;Generic8T tokens inNemotron-4[266]LR WSD Scheduler
Orca 2 [247]7B2023.11id1Pruning DistillationGenericOrca 2 datasetLLaMA-2-B based; prompt erasing
Orca[251]13B2023.6DistilationFLAN-v2 [225]From ChatGPT and GPT4, Explanation tuning; Progressive Learning
MINIMA [434]3B2023.11 DistilationGenericPie [108], Wudao [42] GitHub [67]From Llama-2-7B, Zero2, Pash Attention, Optimal teacher size
Dolly-v2 [686]3B; 7B;>2023.4Instruction tuningGenericDatabricks-dlly-15k68]6]from pythia
LaMini-LM [171]61M-7B2023.4DistilatonGenericLaMini instruction dataseta collection of SLMs distilld from ChatGPT-generated 2.58M instructions.
Specialized FlanT5 [105]]250M; 760M; 3B2023.1Instruction TuningGeneric (math)GSM8KBase modelis FlanT5
", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 349, + "chunk_id": "Small Language Models in the Era of Large_chunk_0349", + "start_position": 152711, + "end_position": 160239, + "page_index": 48, + "word_count": 385, + "char_count": 7528 + }, + "has_embedding": false + }, + { + "content": "nstruction TuningGeneric (math)GSM8KBase modelis FlanT5 (2) The choice of activation function should balance model capability and efficiency. ReLU, known for its efficiency, introduces greater sparsity to the model, which facilitates faster coefficient calculations for inference acceleration.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 350, + "chunk_id": "Small Language Models in the Era of Large_chunk_0350", + "start_position": 160239, + "end_position": 160577, + "page_index": 51, + "word_count": 36, + "char_count": 338 + }, + "has_embedding": false + }, + { + "content": "sparsity to the model, which facilitates faster coefficient calculations for inference acceleration. In contrast, SwiGLU’s parameters are learned during training, allowing the model to dynamically adapt to diverse tasks and datasets, thereby enhancing model capabilities and establishing it as a state-of-the-art option. SiLU, situated between these two, is favored for its balance of computational efficiency and model performance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 351, + "chunk_id": "Small Language Models in the Era of Large_chunk_0351", + "start_position": 160577, + "end_position": 161009, + "page_index": 51, + "word_count": 58, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "ted between these two, is favored for its balance of computational efficiency and model performance. (3) RMS normalization is commonly used than layer normalization due to its reduced computational demands. A basic introduction to these options is provided in Section 2. Apart from component choices, there are notable innovations in architecture for SLMs: • Mobilellm [223] highlights that deeper models are more effective than wider ones for improving performance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 352, + "chunk_id": "Small Language Models in the Era of Large_chunk_0352", + "start_position": 161009, + "end_position": 161475, + "page_index": 51, + "word_count": 69, + "char_count": 466 + }, + "has_embedding": false + }, + { + "content": "lm [223] highlights that deeper models are more effective than wider ones for improving performance. • Embedding sharing [440] is crucial as embedding layers often constitute over $2 0 \\%$ of a model’s parameters—for example, with 512 dimensions and a $3 2 \\mathrm { k }$ vocabulary, each layer holds 16M parameters in a 125M-parameter model. Smaller models often reuse these weights for both input and output layers, enhancing efficiency and compactness.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 353, + "chunk_id": "Small Language Models in the Era of Large_chunk_0353", + "start_position": 161475, + "end_position": 161930, + "page_index": 51, + "word_count": 72, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "ls often reuse these weights for both input and output layers, enhancing efficiency and compactness. • Layer sharing [223] increases hidden layers in small Transformer models without additional storage costs. • Shared FFNs [336] make up about $6 5 \\%$ of all trainable parameters, with attention mechanisms and heads accounting for the rest. Sharing FFN parameters across all transformer layers of an SLM is proposed to increase efficiency. • Architecture search ahead of pre-training.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 354, + "chunk_id": "Small Language Models in the Era of Large_chunk_0354", + "start_position": 161930, + "end_position": 162415, + "page_index": 51, + "word_count": 74, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "• Architecture search ahead of pre-training. PhoneLM [417] proposes a principle for constructing on-device small language models: searching for a resource-efficient architecture on a given hardware to optimize the speed-capacity trade-off before pretraining. This approach inspires the tailored selection of architectural components for on-device SLMs, based on specific compositional requirements such as computing efficiency, model capability, and safety.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 355, + "chunk_id": "Small Language Models in the Era of Large_chunk_0355", + "start_position": 162415, + "end_position": 162872, + "page_index": 51, + "word_count": 58, + "char_count": 457 + }, + "has_embedding": false + }, + { + "content": "d on specific compositional requirements such as computing efficiency, model capability, and safety. A detailed description of these architectural designs can be found in Section 3.1. 5.1.2 Training Datasets. From Table 7, we can observe a set of widely used training datasets in SLM development. We provide the details below:", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 356, + "chunk_id": "Small Language Models in the Era of Large_chunk_0356", + "start_position": 162872, + "end_position": 163198, + "page_index": 52, + "word_count": 50, + "char_count": 326 + }, + "has_embedding": false + }, + { + "content": "We provide the details below: • Pile [108]: It comprises 22 smaller, high-quality diverse corpora from various domains, such as Pile-CC, PubMed Central, ArXiv, GitHub, and FreeLaw, designed to offer a comprehensive foundation for language model training. The dataset contains 207 billion tokens and totals 825 GB.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 357, + "chunk_id": "Small Language Models in the Era of Large_chunk_0357", + "start_position": 163198, + "end_position": 163511, + "page_index": 52, + "word_count": 47, + "char_count": 313 + }, + "has_embedding": false + }, + { + "content": "The dataset contains 207 billion tokens and totals 825 GB. • C4 (Colossal Clean Crawled Corpus) [284]: This dataset includes 350 billion tokens, representing a cleaned version of the Common Crawl web corpus, intended to capture a wide snapshot of the internet 4. • The Stack [174]: It contains 6 trillion tokens of source code from over 300 programming languages, useful for developing code-centric AI applications.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 358, + "chunk_id": "Small Language Models in the Era of Large_chunk_0358", + "start_position": 163511, + "end_position": 163926, + "page_index": 52, + "word_count": 66, + "char_count": 415 + }, + "has_embedding": false + }, + { + "content": "source code from over 300 programming languages, useful for developing code-centric AI applications. Python-edu in smollm-corpus [27] consists of Python files that are scored 4 or more by the educational code model and are extracted from the stack-v2-train dataset. • StarCoder [195]: It features 35 billion tokens, predominantly Python code, aimed at programming language understanding and generation.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 359, + "chunk_id": "Small Language Models in the Era of Large_chunk_0359", + "start_position": 163926, + "end_position": 164328, + "page_index": 52, + "word_count": 57, + "char_count": 402 + }, + "has_embedding": false + }, + { + "content": "llion tokens, predominantly Python code, aimed at programming language understanding and generation. • RedPajama [67]: This dataset encompasses 1.2 trillion tokens derived from over 100 billion text documents, processed using the CCNet pipeline to ensure a rich collection of web texts. • RefinedWeb [269]: This dataset includes 5 trillion tokens of high-quality, extensively filtered web data, offering a valuable resource for training web-aware models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 360, + "chunk_id": "Small Language Models in the Era of Large_chunk_0360", + "start_position": 164328, + "end_position": 164782, + "page_index": 52, + "word_count": 64, + "char_count": 454 + }, + "has_embedding": false + }, + { + "content": "-quality, extensively filtered web data, offering a valuable resource for training web-aware models. • PushShift.io Reddit [24]: A around 5 billion tokens resource for social media data collection, analysis, and archiving, specifically of Reddit data, aiding research into social media dynamics. • CulturaX [257]: It comprises 6.3 trillion tokens across 167 languages, supporting the development of models with extensive linguistic and cultural understanding.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 361, + "chunk_id": "Small Language Models in the Era of Large_chunk_0361", + "start_position": 164782, + "end_position": 165241, + "page_index": 52, + "word_count": 63, + "char_count": 459 + }, + "has_embedding": false + }, + { + "content": "anguages, supporting the development of models with extensive linguistic and cultural understanding. • FineWeb [268], a large-scale (15-trillion tokens, 44 TB disk space) dataset for LLM pretraining. FineWeb is derived from 96 CommonCrawl snapshots. FineWeb-Edu is a subset of FineWeb constructed using scalable automated high-quality annotations for educational value.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 362, + "chunk_id": "Small Language Models in the Era of Large_chunk_0362", + "start_position": 165241, + "end_position": 165610, + "page_index": 52, + "word_count": 49, + "char_count": 369 + }, + "has_embedding": false + }, + { + "content": "bset of FineWeb constructed using scalable automated high-quality annotations for educational value. From the analysis of these datasets, we can derive several critical insights regarding the development of SLMs: (i) Data quality is crucial for training effective SLMs, involving sophisticated filtering like removing duplicates or irrelevant content, often with another LLM’s help.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 363, + "chunk_id": "Small Language Models in the Era of Large_chunk_0363", + "start_position": 165610, + "end_position": 165992, + "page_index": 52, + "word_count": 52, + "char_count": 382 + }, + "has_embedding": false + }, + { + "content": "phisticated filtering like removing duplicates or irrelevant content, often with another LLM’s help. For example, the TinyStories corpus [96] is tailored for simplicity, ideal for training models to handle straightforward narratives. RedPajama-V2 [67] uses the CCNet pipeline to process 30B documents, providing quality signals and IDs for creating a 20B deduplicated dataset.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 364, + "chunk_id": "Small Language Models in the Era of Large_chunk_0364", + "start_position": 165992, + "end_position": 166368, + "page_index": 52, + "word_count": 52, + "char_count": 376 + }, + "has_embedding": false + }, + { + "content": "to process 30B documents, providing quality signals and IDs for creating a 20B deduplicated dataset. (ii) Code Data: Source code constitutes a significant component of valuable data for training models, particularly because of its structured nature and logical content.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 365, + "chunk_id": "Small Language Models in the Era of Large_chunk_0365", + "start_position": 166368, + "end_position": 166637, + "page_index": 53, + "word_count": 39, + "char_count": 269 + }, + "has_embedding": false + }, + { + "content": "aluable data for training models, particularly because of its structured nature and logical content. Training on code data enhances a model’s reasoning capabilities and supports its ability to generalize across multiple natural languages, which is crucial for applications requiring robust problem-solving and interpretation skills in diverse coding environments [17, 104, 120, 236] 5.1.3 Training Algorithms.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 366, + "chunk_id": "Small Language Models in the Era of Large_chunk_0366", + "start_position": 166637, + "end_position": 167046, + "page_index": 53, + "word_count": 55, + "char_count": 409 + }, + "has_embedding": false + }, + { + "content": "interpretation skills in diverse coding environments [17, 104, 120, 236] 5.1.3 Training Algorithms. To enhance the alignment of SLMs with desirable properties such as safety and reasoning, training algorithms, particularly during the fine-tuning phase, are crucial in evolving pre-trained SLMs. • Direct Preference Optimization (DPO) [283] presents a simpler alternative to RLHF for optimizing language models based on human preferences, preventing explicit reward modeling and reinforcement learning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 367, + "chunk_id": "Small Language Models in the Era of Large_chunk_0367", + "start_position": 167046, + "end_position": 167547, + "page_index": 53, + "word_count": 67, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "e models based on human preferences, preventing explicit reward modeling and reinforcement learning. Instead, DPO modifies log probabilities of responses with a dynamic weighting mechanism to prevent model degradation common in probability ratio-focused methods. The DPO loss function is:", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 368, + "chunk_id": "Small Language Models in the Era of Large_chunk_0368", + "start_position": 167547, + "end_position": 167835, + "page_index": 53, + "word_count": 39, + "char_count": 288 + }, + "has_embedding": false + }, + { + "content": "The DPO loss function is: $\\begin{array} { r } { \\mathcal { L } _ { D P O } ( \\pi _ { \\theta } ; \\pi _ { \\mathrm { r e f } } ) = - \\mathbb { E } _ { ( x , y _ { w } , y _ { l } ) \\sim D } \\left[ \\log \\sigma \\left( \\beta \\log \\frac { \\pi _ { \\theta } ( y _ { w } | x ) } { \\pi _ { \\mathrm { r e f } } ( y _ { w } | x ) } - \\beta \\log \\frac { \\pi _ { \\theta } ( y _ { l } | x ) } { \\pi _ { \\mathrm { r e f } } ( y _ { l } | x ) } \\right) \\right] } \\end{array}$ where $\\pi _ { \\theta }$ is the policy being optimized, $\\pi _ { \\mathrm { r e f } }$ is the reference policy, $D$ includes tuples $( x , y _ { w } , y _ { l } )$ , $\\sigma$ is the sigmoid function, and $\\beta$ scales the log-ratios between $\\pi _ { \\theta }$ and $\\pi _ { \\mathrm { r e f } }$ , guiding the model towards human-preferred outputs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 369, + "chunk_id": "Small Language Models in the Era of Large_chunk_0369", + "start_position": 167835, + "end_position": 168640, + "page_index": 53, + "word_count": 231, + "char_count": 805 + }, + "has_embedding": false + }, + { + "content": "_ { \\theta }$ and $\\pi _ { \\mathrm { r e f } }$ , guiding the model towards human-preferred outputs. • Reinforcement Learning from Contrast Distillation (RLCD) [405] aims to calibrate generative SLMs/LLMs towards embodying harmless and beneficial characteristics. The process starts with an unaligned LM and initial prompts, which are modified into two variants ${ p + }$ and $\\hbar -$ , intended to promote and suppress, respectively, attributes like helpfulness and harmlessness.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 370, + "chunk_id": "Small Language Models in the Era of Large_chunk_0370", + "start_position": 168640, + "end_position": 169121, + "page_index": 54, + "word_count": 76, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "r -$ , intended to promote and suppress, respectively, attributes like helpfulness and harmlessness. Upon inputting these prompts, the LM generates outputs $^ { o + }$ and $o -$ , with $^ { o + }$ automatically designated as the preferred response. This automation speeds up training by avoiding additional evaluative scoring. The training continues under the RLHF framework.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 371, + "chunk_id": "Small Language Models in the Era of Large_chunk_0371", + "start_position": 169121, + "end_position": 169496, + "page_index": 54, + "word_count": 60, + "char_count": 375 + }, + "has_embedding": false + }, + { + "content": "The training continues under the RLHF framework. • Conditioned Reinforcement Learning Fine-Tuning (C-RLFT), by OpenChat [356], enhances model performance by incorporating low-quality data during SFT. C-RLFT leverages varied data qualities with simple rewards (e.g., expert data at 1 credit, sub-optimal at 0.1), using distinct prompt tokens to condition data sources, eliminating costly human feedback.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 372, + "chunk_id": "Small Language Models in the Era of Large_chunk_0372", + "start_position": 169496, + "end_position": 169898, + "page_index": 54, + "word_count": 54, + "char_count": 402 + }, + "has_embedding": false + }, + { + "content": "at 0.1), using distinct prompt tokens to condition data sources, eliminating costly human feedback. Similarly, Data Mix [274] trains on English text in three stages, reducing noisy web data progressively in each stage in favor of higher-quality data. • Explanation Tuning, proposed by Orca [251], addresses the limitations of standard instruction-based fine-tuning, which often restricts SLMs to style imitation rather than reasoning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 373, + "chunk_id": "Small Language Models in the Era of Large_chunk_0373", + "start_position": 169898, + "end_position": 170332, + "page_index": 54, + "word_count": 62, + "char_count": 434 + }, + "has_embedding": false + }, + { + "content": "instruction-based fine-tuning, which often restricts SLMs to style imitation rather than reasoning. It uses system prompts with instructions to direct GPT-4 to produce detailed explanations or perform step-by-step reasoning. The resulting instructions and the responses are used as a dataset for fine-tuning SLMs to have better ability of reasoning. • Progressive Learning, proposed by Orca [251], aims to bridge the capability gap between Orca and the more capable GPT-4.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 374, + "chunk_id": "Small Language Models in the Era of Large_chunk_0374", + "start_position": 170332, + "end_position": 170804, + "page_index": 54, + "word_count": 69, + "char_count": 472 + }, + "has_embedding": false + }, + { + "content": ", proposed by Orca [251], aims to bridge the capability gap between Orca and the more capable GPT-4. It starts with training on five million data points from ChatGPT, followed by one million from GPT-4. Research suggests that an intermediate-level teacher can improve distillation effects, enabling a stepwise learning approach where students start with simpler examples and gradually move to more complex ones, receiving improved reasoning and explanations from a more advanced teacher.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 375, + "chunk_id": "Small Language Models in the Era of Large_chunk_0375", + "start_position": 170804, + "end_position": 171291, + "page_index": 54, + "word_count": 73, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "ve to more complex ones, receiving improved reasoning and explanations from a more advanced teacher. • Prompt Erasing introduced by Orac 2 [247], is a distillation strategy designed to enhance the independent reasoning capabilities of student SLMs. In this approach, a more capable teacher LLM is given intricate prompts intended to elicit specific strategic behaviors and more precise outcomes.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 376, + "chunk_id": "Small Language Models in the Era of Large_chunk_0376", + "start_position": 171291, + "end_position": 171686, + "page_index": 54, + "word_count": 59, + "char_count": 395 + }, + "has_embedding": false + }, + { + "content": "s given intricate prompts intended to elicit specific strategic behaviors and more precise outcomes. During the training phase, the SLM is exposed only to the task instruction and the resulting behavior, without access to the original intricate prompts that initiate such responses. This technique, known as Prompt Erasing, positions the student model as a cautious reasoner because it not only learns to perform specific reasoning steps but also develops strategies for approaching tasks at a higher level.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 377, + "chunk_id": "Small Language Models in the Era of Large_chunk_0377", + "start_position": 171686, + "end_position": 172193, + "page_index": 54, + "word_count": 77, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "rform specific reasoning steps but also develops strategies for approaching tasks at a higher level. • Maximal Update Parameterization $( \\mu \\mathbf { P } )$ optimizes control initialization, layer-wise learning rates, and activation magnitudes to ensure stable training regardless of model layer widths. This method enhances training stability and allows the same optimizer settings, especially learning rates, to be used across different model scales.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 378, + "chunk_id": "Small Language Models in the Era of Large_chunk_0378", + "start_position": 172193, + "end_position": 172647, + "page_index": 54, + "word_count": 65, + "char_count": 454 + }, + "has_embedding": false + }, + { + "content": "ws the same optimizer settings, especially learning rates, to be used across different model scales. For instance, Cerebras-GPT [314] employs $\\mu \\mathrm { P }$ to train its models efficiently. 5.1.4 Model Performance. To compare the performance of SLMs, we have extracted experimental results from two recent and concurrent studies published in June 2024, OLMo [116] and MobiLlama [336], and the recently proposed edge-device Llama 3.2 1B & 3B in September 2024 5.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 379, + "chunk_id": "Small Language Models in the Era of Large_chunk_0379", + "start_position": 172647, + "end_position": 173113, + "page_index": 54, + "word_count": 73, + "char_count": 466 + }, + "has_embedding": false + }, + { + "content": "6] and MobiLlama [336], and the recently proposed edge-device Llama 3.2 1B & 3B in September 2024 5. The extracted results are merged and shown in Table 8. From the table, we can find that the following evaluation benchmarks are commonly used: (1) MMLU [134]: Evaluate broad knowledge across diverse fields such as humanities, science, technology, engineering, and management.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 380, + "chunk_id": "Small Language Models in the Era of Large_chunk_0380", + "start_position": 173113, + "end_position": 173489, + "page_index": 55, + "word_count": 59, + "char_count": 376 + }, + "has_embedding": false + }, + { + "content": "nowledge across diverse fields such as humanities, science, technology, engineering, and management. It includes multiple-choice questions covering 57 tasks ranging from elementary mathematics to US history, computer science, law, and beyond, with a total of 14K test samples. (2) HellaSwag [429]: Assesses the model’s ability to select the correct ending to scenarios from multiple options, testing common sense reasoning, including 10K test samples.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 381, + "chunk_id": "Small Language Models in the Era of Large_chunk_0381", + "start_position": 173489, + "end_position": 173940, + "page_index": 55, + "word_count": 63, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "ding to scenarios from multiple options, testing common sense reasoning, including 10K test samples. (3) ARC [65]: The AI2’s Reasoning Challenge (ARC) dataset features multiple-choice science exam questions for grades 3 to 9, divided into Easy and Challenge partitions, with the latter containing more complex questions necessitating reasoning. Most questions offer four answer choices.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 382, + "chunk_id": "Small Language Models in the Era of Large_chunk_0382", + "start_position": 173940, + "end_position": 174326, + "page_index": 55, + "word_count": 54, + "char_count": 386 + }, + "has_embedding": false + }, + { + "content": "Most questions offer four answer choices. ARC includes a supporting knowledge base of 14.3M unstructured text passages, with 1.17K test samples in ARC_Challenge and 2.25K in ARC_Easy. (4) PIQA [32]: A commonsense reasoning dataset designed to evaluate the physical knowledge of NLP models. It presents questions (goals) that require physical commonsense for correct resolution, alongside two detailed response options (sol1 and sol2). The dataset comprises 3,000 test samples.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 383, + "chunk_id": "Small Language Models in the Era of Large_chunk_0383", + "start_position": 174326, + "end_position": 174802, + "page_index": 55, + "word_count": 68, + "char_count": 476 + }, + "has_embedding": false + }, + { + "content": "The dataset comprises 3,000 test samples. (5) Winogrande [294]: a dataset structured as a fill-in-the-blank task with binary options, designed to assess commonsense reasoning. The dataset includes 1,767 test samples by default splits. Accuracy is used as the evaluation metric in the table. Open Language Model (OLMo) [116] is publicly available with its training data and code 6. MobiLlama [336] is a general-purpose SLM designed from scratch, available in 0.5B and 0.8B versions.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 384, + "chunk_id": "Small Language Models in the Era of Large_chunk_0384", + "start_position": 174802, + "end_position": 175283, + "page_index": 55, + "word_count": 73, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "MobiLlama [336] is a general-purpose SLM designed from scratch, available in 0.5B and 0.8B versions. It adopts a unique approach by using a shared FFN across all transformer blocks, enhancing efficiency. MobiLlama also show high efficiency on diverse hardware (Table 9). Table 8. Performance of Various SLMs on Common Benchmarks: data from MobiLlama [336], OLMo [116], and Llama 3.2.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 385, + "chunk_id": "Small Language Models in the Era of Large_chunk_0385", + "start_position": 175283, + "end_position": 175666, + "page_index": 55, + "word_count": 59, + "char_count": 383 + }, + "has_embedding": false + }, + { + "content": "formance of Various SLMs on Common Benchmarks: data from MobiLlama [336], OLMo [116], and Llama 3.2.
Model Size RangeModelMMLUHellaSwagARCPIQAWinogrande
<1Bgpt-neo-125m26.030.323.062.551.8
tiny-starcoder-170M26.828.221.052.651.2
cerberas-gpt-256m26.829.022.061.452.5
opt-350m26.036.723.664.752.6
megatron-gpt2-345m24.339.224.266.953.0
LiteLlama26.238.524.967.749.9
gpt-sw3-356m25.937.123.664.953.0
pythia-410m27.340.926.267.253.1
xglm-564m25.234.624.664.953.0
Lamini-GPT-LM 0.59B25.531.624.263.947.8
MobiLlama 0.5B26.552.529.572.057.5
MobiLlama 0.8B26.954.130.273.257.5
StableLM 1.6B-68.243.874.0-
Pythia 1B-44.733.169.1-
TinyLlama 1.1B-58.734.871.1-
OLMo-1B-62.534.573.7-
OLMo 1.2B25.962.534.5-58.9
Boomer 1B25.431.622.3-51.0
Pythia-Dedup 1B24.349.629.1-54.0
Falcon-RW 1B25.463.135.1-61.9
Cerebras-GPT 1.3B26.738.526.1-53.6
Lamini 1.3B28.538.126.6-50.6
OPT1.3B24.654.529.6-59.7
GPT-NEO 1.3B24.848.531.3-57.1
Pythia-Deduped 1.4B25.555.032.656.9
MobiLlama 1.2B24.863.034.662.0
Gemma 2 2B57.861.176.7-
Llama 3.2 1B49.341.259.4
Llama 3.2 3B63.469.878.6-
Phi-3.5-mini 3.8B69.081.487.4-
Pythia 6.9B-63.844.175.1
Falcon-7B-75.947.578.5
LLaMA 7B-76.244.577.2
Llama 2 7B-76.848.576.7
MPT-7B-77.646.577.3
RPJ-INCITE-7B70.342.876.0
OLMo-7B76.448.578.4-
-
", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 386, + "chunk_id": "Small Language Models in the Era of Large_chunk_0386", + "start_position": 175666, + "end_position": 179439, + "page_index": 55, + "word_count": 48, + "char_count": 3773 + }, + "has_embedding": false + }, + { + "content": "78.4-- Table 9. Comparison of MobiLlama 0.5B with large-base 1.2B, Llama2 7B, and Phi2-2.7B in terms of efficiency and resource consumption on low-end hardware devices [336].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 387, + "chunk_id": "Small Language Models in the Era of Large_chunk_0387", + "start_position": 179439, + "end_position": 179707, + "page_index": 56, + "word_count": 26, + "char_count": 268 + }, + "has_embedding": false + }, + { + "content": "7B, and Phi2-2.7B in terms of efficiency and resource consumption on low-end hardware devices [336].
PlatformModel#ParamsPrecisionAvg Tokens/SecAvg Memory ConsumptionAvg Battery Consumption /1k TokensCPU Utilization
RTX2080TiLlama27Bbf1614.8527793 MB135.51 mAH31.62%
Phi22.7Bbf1632.1912071MB59.13 mAH24.73%
large-base1.2Bbf1650.616254MB18.91 mAH18.25%
MobiLlama0.5Bbf1663.383046 MB8.19mAH14.79%
CPU-i7Llama27B4bit5.964188 MB73.5 mAH49.16%
Phi22.7B4bit22.141972MB27.36 mAH34.92%
large-base1.2B4bit29.231163MB10.81 mAH30.84%
MobiLlama0.5B4bit36.32799 MB4.86 mAH24.64%
Snapdragon-685Llama27B4bit1.1934287 MB10.07 mAH77.41%
4bit2.8271893 MB16.01 mAH567.15%
lae-be2.B
MobiLlama0.5B4bit7.021770MB5.32mAH13.02%
", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 388, + "chunk_id": "Small Language Models in the Era of Large_chunk_0388", + "start_position": 179707, + "end_position": 181421, + "page_index": 57, + "word_count": 42, + "char_count": 1714 + }, + "has_embedding": false + }, + { + "content": "d>0.5B4bit7.021770MB5.32mAH13.02% From Table 8 and 9, we can conclude that: (1) MobiLlama 0.5B and 0.8B demonstrate that a shared FFN design can facilitate excellent performance in SLMs with fewer than 1B parameters, even rivaling some models in the 1B-3B range.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 389, + "chunk_id": "Small Language Models in the Era of Large_chunk_0389", + "start_position": 181421, + "end_position": 181750, + "page_index": 57, + "word_count": 40, + "char_count": 329 + }, + "has_embedding": false + }, + { + "content": "ent performance in SLMs with fewer than 1B parameters, even rivaling some models in the 1B-3B range. (2) The performance of MobiLlama 1.2B and OLMo 1.2B illustrates that advanced SLM architectures incorporating high-quality data, SwiGLU, non-parametric layer normalization, RoPE, BPE tokenization, and a shared FFN design can achieve competitive results among models with 1B-3B parameters.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 390, + "chunk_id": "Small Language Models in the Era of Large_chunk_0390", + "start_position": 181750, + "end_position": 182139, + "page_index": 57, + "word_count": 55, + "char_count": 389 + }, + "has_embedding": false + }, + { + "content": "ization, and a shared FFN design can achieve competitive results among models with 1B-3B parameters. (3) MobiLlama demonstrates that SLMs can significantly reduce resource consumption on low-end hardware devices, achieving comparable performance while using a smaller proportion of battery power, memory, and GPU utilization. (4) Popular techniques such as pruning, quantization, distillation, SFT, and DPO, utilized in Llama 3.2, have substantially enhanced SLM performance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 391, + "chunk_id": "Small Language Models in the Era of Large_chunk_0391", + "start_position": 182139, + "end_position": 182614, + "page_index": 57, + "word_count": 64, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": "ion, distillation, SFT, and DPO, utilized in Llama 3.2, have substantially enhanced SLM performance. Insights: We draw several key insights from the development of generic-domain SLMs: • Typical SLM architectures generally incorporate features such as GQA, gated FFN with SiLU activations, RMS normalization, deep and thin architectures, embedding sharing, layer sharing, and shared FFNs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 392, + "chunk_id": "Small Language Models in the Era of Large_chunk_0392", + "start_position": 182614, + "end_position": 183002, + "page_index": 57, + "word_count": 54, + "char_count": 388 + }, + "has_embedding": false + }, + { + "content": ", RMS normalization, deep and thin architectures, embedding sharing, layer sharing, and shared FFNs. • Although these components are widely used, current research has not yet thoroughly explored their specific contributions within SLMs. • The importance of data quality in SLM research is increasingly emphasized, often considered more critical than the quantity of data and model architectural configurations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 393, + "chunk_id": "Small Language Models in the Era of Large_chunk_0393", + "start_position": 183002, + "end_position": 183412, + "page_index": 57, + "word_count": 58, + "char_count": 410 + }, + "has_embedding": false + }, + { + "content": "ed, often considered more critical than the quantity of data and model architectural configurations. • Post-pretraining, meticulous fine-tuning is often required to enhance the safety of SLMs, involving strategies to distill \ncapabilities from LLMs better. Common strategies include explanatory tuning, progressive learning, and prompt erasing. # 5.2 Domain-Specific SLMs Overview.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 394, + "chunk_id": "Small Language Models in the Era of Large_chunk_0394", + "start_position": 183412, + "end_position": 183793, + "page_index": 57, + "word_count": 50, + "char_count": 381 + }, + "has_embedding": false + }, + { + "content": "# 5.2 Domain-Specific SLMs Overview. The capability of LLMs to generate human-like text has significantly captured public interest, highlighting their potential in the field of general artificial intelligence. However, inefficiencies persist when integrating LLMs into specialized applications due to resource constraints. Unlike the need for extensive general knowledge and capabilities, domain-specific SLMs should focus on well-defined tasks and expertise pertinent to specific fields.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 395, + "chunk_id": "Small Language Models in the Era of Large_chunk_0395", + "start_position": 183793, + "end_position": 184281, + "page_index": 58, + "word_count": 63, + "char_count": 488 + }, + "has_embedding": false + }, + { + "content": "domain-specific SLMs should focus on well-defined tasks and expertise pertinent to specific fields. For instance, specialized models can significantly impact biomedical research and healthcare by fine-tuning for interpretable mental health analysis, or assisting humans in legal dialogues and financial tasks through instruction tuning, showcasing their potential transformative influence.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 396, + "chunk_id": "Small Language Models in the Era of Large_chunk_0396", + "start_position": 184281, + "end_position": 184670, + "page_index": 58, + "word_count": 48, + "char_count": 389 + }, + "has_embedding": false + }, + { + "content": "and financial tasks through instruction tuning, showcasing their potential transformative influence. Given the limited number of SLMs specialized in specific domains, we demonstrate some existing SLMs individually across healthcare, science, finance, and law domains. 5.2.1 SLMs for Healthcare. Hippocrates [3] is an open-source medical language model framework with free access to its data, codebase, checkpoints, and protocols 7.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 397, + "chunk_id": "Small Language Models in the Era of Large_chunk_0397", + "start_position": 184670, + "end_position": 185101, + "page_index": 58, + "word_count": 58, + "char_count": 431 + }, + "has_embedding": false + }, + { + "content": "dical language model framework with free access to its data, codebase, checkpoints, and protocols 7. It utilizes a medical pre-training corpus from Medical Guidelines, PMCPatients [452], and PubMedQA-contexts [163], totaling about 300M tokens. The Hippo series, a 7B model, undergoes continuous pre-training, instruction tuning, and RLHF. Fine-tuned on Mistral and Llama-2, it rivals 70B models in some evaluation. For example, Hippo-Mistral 7B scores $5 9 .", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 398, + "chunk_id": "Small Language Models in the Era of Large_chunk_0398", + "start_position": 185101, + "end_position": 185559, + "page_index": 58, + "word_count": 66, + "char_count": 458 + }, + "has_embedding": false + }, + { + "content": "For example, Hippo-Mistral 7B scores $5 9 . 9 \\%$ on MedQA, outperforming Meditron 70B [55] at $5 8 . 5 \\%$ . BioMedLM [34], a 2.7B GPT-style model trained on PubMed content [108], excels in biomedical QA after fine-tuning, achieving $5 7 . 3 \\%$ on MedMCQA (dev) and $6 9 . 0 \\%$ on MMLU medical genetics exams. Available on Hugging Face Hub 8. AdaLM [414] enhances domain-specific SLMs by continuing training on a medical-focused SLM atop a general pretrained model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 399, + "chunk_id": "Small Language Models in the Era of Large_chunk_0399", + "start_position": 185559, + "end_position": 186027, + "page_index": 58, + "word_count": 83, + "char_count": 468 + }, + "has_embedding": false + }, + { + "content": "omain-specific SLMs by continuing training on a medical-focused SLM atop a general pretrained model. It emperically validates adaptation then distillation is the most effective distillation way. AdaLM modified a BERT_base model (12 layers, 768 hidden size) [83] with a 16GB PubMed 9 abstracts corpus. MentalLLaMA [406] introduces the first IMHI dataset for mental health analysis and the first open-source LM for explainable analysis on social media. The IMHI is compiled from ten sources, totaling 105K samples.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 400, + "chunk_id": "Small Language Models in the Era of Large_chunk_0400", + "start_position": 186027, + "end_position": 186539, + "page_index": 58, + "word_count": 76, + "char_count": 512 + }, + "has_embedding": false + }, + { + "content": "The IMHI is compiled from ten sources, totaling 105K samples. Expert-designed mental health analysis prompts are employed via ChatGPT for explanations. Based on Llama-2-7B, MentalLLaMA is instruction-tuned on this data and matches top methods in accuracy on the IMHI test set. Project code is available at 10. Table 10. High-level Overview and Training Details of Specific-domain Small Language Mode", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 401, + "chunk_id": "Small Language Models in the Era of Large_chunk_0401", + "start_position": 186539, + "end_position": 186938, + "page_index": 58, + "word_count": 59, + "char_count": 399 + }, + "has_embedding": false + }, + { + "content": "High-level Overview and Training Details of Specific-domain Small Language Mode
Model#ParamsDateBase ModelsDomainTraining DatasetsTrain Techniques
Hippocrates [3]7B2024.4Instruction Tuning (LLaMA2 [339], Mistral [160])HealthcareMedical Guidelines, PMC-Patients [452], and PubMedQA- contexts [163]Continual pre-training, in- struction tuning, RLHF
BioMedLM [34]2.7B2024.3From scratch and Fine- tuningHealthcarePubMed [108]FSDP
BioMistral [178]7B2024.2Mistral [160]BiomedicinePubMed [108]Continual pretraining
MentaLLaMA [406]7B; 13B2023.9Instruction (LLaMA2 [339]) TuningHealthcareIMHI datasetRLHF; PEFT
AdaLM [414]34M2021.6Distiltion (BERT [83] or MiniLM [362])HealthcarePubMed [108]Continual pretraining, Adapt-and-Distill
Rho-1 [210]1B;7B2024.4TinyLlama-1.1B [439], Mistral-7B [160]Science (Math- ematic()cid)OpenWebMath [267]Continual pretraining
ChemLLM [436]7B2024.4Instruction Tuning (In- ternLM2)Science (Chem- istry)ChemDataContinual training and fine-tuning
SciGLM [435]6B2024.3Instruction Tuning (ChatGLM-6B)ScienceSciInstructSelf-reflective instruction annotation
Llemma [22]7B2023.10Code Llama 7BScience (Math- ematics)id)Proof-Pile-2 [22]Continual pre-training
OceanGPT [30]2B; 7B; 14B2023.10LLaMA2 [339]Science (Ocean)Open-access litera- ture, DoINSTRUCTContinual pre-training,In- struction tuning
AstroLLaMA [258]7B2023.9Tuning (LLaMA-2-7B)Science (As- tronomy)arXiv abstracts from KaggleContinual trining
DARWIN [388]7B2023.8LLaMa 7BScience (physics, chem- istry, and material)SciQ [375], Scien- tific paper[388], FAIR [388]Fine-tuning
MindLLM [412]1.3B; 3B2023.10From-scratch and Super- vised Fine-tuningLaw, FinancePile [108], Wudao [424], CBooksTrain on Bilingual Mixture Data, SFT
", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 402, + "chunk_id": "Small Language Models in the Era of Large_chunk_0402", + "start_position": 186938, + "end_position": 189648, + "page_index": 58, + "word_count": 135, + "char_count": 2710 + }, + "has_embedding": false + }, + { + "content": "d>Pile [108], Wudao [424], CBooksTrain on Bilingual Mixture Data, SFT 5.2.2 SLMs for Science. SciGLM [435] is a collegiate-level scientific language model overcoming data scarcity with a self-reflective instruction annotation framework.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 403, + "chunk_id": "Small Language Models in the Era of Large_chunk_0403", + "start_position": 189648, + "end_position": 189915, + "page_index": 59, + "word_count": 31, + "char_count": 267 + }, + "has_embedding": false + }, + { + "content": "fic language model overcoming data scarcity with a self-reflective instruction annotation framework. Utilizing GPT-4 [2], it generates detailed reasoning for unlabeled scientific problems through three steps with designed prompts in Table ??: (i) CoT prompt for step-by-step answers (Prompt 1), (ii) reflective prompt for correcting errors (Prompt 2), and (iii) integrating the correct answer for clarity (Prompt 3).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 404, + "chunk_id": "Small Language Models in the Era of Large_chunk_0404", + "start_position": 189915, + "end_position": 190331, + "page_index": 59, + "word_count": 58, + "char_count": 416 + }, + "has_embedding": false + }, + { + "content": "t for correcting errors (Prompt 2), and (iii) integrating the correct answer for clarity (Prompt 3). The SciInstruct dataset spans physics, chemistry, math, and proofs, tuning ChatGLM-6B’s [93] reasoning abilities. SciGLM boosts the base model’s (ChatGLM3-6B-Base) scientific QA accuracy by $3 . 0 6 \\%$ on benchmarks such as CEval-Hard [149], CEval-Sci [149], MMLU-Sci [134], SciEval [319], and SciBench [363]. Llemma [22], an SLM derived from CodeLlama [292], specializes in mathematical reasoning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 405, + "chunk_id": "Small Language Models in the Era of Large_chunk_0405", + "start_position": 190331, + "end_position": 190831, + "page_index": 59, + "word_count": 72, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "Llemma [22], an SLM derived from CodeLlama [292], specializes in mathematical reasoning. By continual pre-training, its 7B model is evolved on 55B tokens from the newly created Proof-Pile-2 dataset, which includes scientific papers, math web content, and mathematical code up until April 2023, to enhance few-shot capabilities. It excels in mathematical benchmarks like MATH [134], GSM8k [66], OCWCourses [186], MMLU-STEM [134], and SAT, surpassing all comparable open-weight models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 406, + "chunk_id": "Small Language Models in the Era of Large_chunk_0406", + "start_position": 190831, + "end_position": 191314, + "page_index": 59, + "word_count": 68, + "char_count": 483 + }, + "has_embedding": false + }, + { + "content": "SM8k [66], OCWCourses [186], MMLU-STEM [134], and SAT, surpassing all comparable open-weight models. ChemLLM [436] is a chemistry-focused language model that utilizes its proposed ChemData, a dataset designed for instruction tuning that transforms chemical data into dialogue format for training.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 407, + "chunk_id": "Small Language Models in the Era of Large_chunk_0407", + "start_position": 191314, + "end_position": 191610, + "page_index": 59, + "word_count": 40, + "char_count": 296 + }, + "has_embedding": false + }, + { + "content": "set designed for instruction tuning that transforms chemical data into dialogue format for training. ChemLLM is based on InternLM2-Base-7B [40], initially enhancing its language skills with a multi-corpus of 1.7 million Q&A pairs from Hugging Face, then fine-tunes using ChemData and the multi-corpus to maintain its general capabilities.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 408, + "chunk_id": "Small Language Models in the Era of Large_chunk_0408", + "start_position": 191610, + "end_position": 191948, + "page_index": 59, + "word_count": 48, + "char_count": 338 + }, + "has_embedding": false + }, + { + "content": "ging Face, then fine-tunes using ChemData and the multi-corpus to maintain its general capabilities. ChemLLM excels in interdisciplinary chemical tasks within the proposed ChemBench, achieving results comparable to GPT-4 [2] and outperforming GPT-3.5 with a score of 92.6 in Mol2caption, slightly below that of GPT-4. AstroLLaMA [258] introduces an astronomy-focused language model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 409, + "chunk_id": "Small Language Models in the Era of Large_chunk_0409", + "start_position": 191948, + "end_position": 192330, + "page_index": 59, + "word_count": 52, + "char_count": 382 + }, + "has_embedding": false + }, + { + "content": "AstroLLaMA [258] introduces an astronomy-focused language model. Based on Llama-2-7B [339] and enhanced via continual pre-training, it has been developed using over 300K astronomy abstracts from arXiv 11. AstroLLaMA achieves $3 0 \\%$ lower perplexity than Llama-2-7B, indicating substantial improvements in domain adaptability. AstroLLaMA is available 12 for tasks such as automated paper summarization and conversational agent development in astronomy. Table 11.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 410, + "chunk_id": "Small Language Models in the Era of Large_chunk_0410", + "start_position": 192330, + "end_position": 192793, + "page_index": 59, + "word_count": 62, + "char_count": 463 + }, + "has_embedding": false + }, + { + "content": "Table 11. Prompts for self-reflective instruction annotation framework
Chain-of-Thought[Prompt 1] The following input consists of a science problem, please generate an elaborate step- by-step solution to the problem.
Reflective Generation[Prompt 2] The following input comprises a science problem and a corresponding solution.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 411, + "chunk_id": "Small Language Models in the Era of Large_chunk_0411", + "start_position": 192793, + "end_position": 193169, + "page_index": 59, + "word_count": 41, + "char_count": 376 + }, + "has_embedding": false + }, + { + "content": "ion[Prompt 2] The following input comprises a science problem and a corresponding solution. However, this solution is incorect, please reflect on its errors and then generate a correct step-by- step solution to the problem.
Prompt Answer[Prompt 3] The following input consists of a science problem, a corresponding solution, and the real answer.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 412, + "chunk_id": "Small Language Models in the Era of Large_chunk_0412", + "start_position": 193169, + "end_position": 193549, + "page_index": 59, + "word_count": 51, + "char_count": 380 + }, + "has_embedding": false + }, + { + "content": "3] The following input consists of a science problem, a corresponding solution, and the real answer. The given solution is incorrect, please reflect on its errors and then generate a correct step-by-step solution to the problem based on the real answer.
5.2.3 SLMs for Finance and Law. MindLLM [412] introduces a bilingual (Chinese and English) SLM, pretrained on the Pile dataset [108] for English and WuDao [424], CBook, and various Chinese web content for Chinese.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 413, + "chunk_id": "Small Language Models in the Era of Large_chunk_0413", + "start_position": 193549, + "end_position": 194034, + "page_index": 59, + "word_count": 75, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "Pile dataset [108] for English and WuDao [424], CBook, and various Chinese web content for Chinese. Bilingual training enhances capacity and prevents catastrophic forgetting. It explores specific domains such as law and finance through supervised fine-tuning. In law, it utilizes publicly available legal data, scenario-based Q&A from LaW-GPT [139], and NLP-based legal tasks from DISC-LawLLM [427]. In finance, EastMoney 13 is selected as the data source.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 414, + "chunk_id": "Small Language Models in the Era of Large_chunk_0414", + "start_position": 194034, + "end_position": 194490, + "page_index": 59, + "word_count": 66, + "char_count": 456 + }, + "has_embedding": false + }, + { + "content": "In finance, EastMoney 13 is selected as the data source. Insights: We draw several key insights from the development of domain-specific SLMs: • Adapting SLMs to domain-specific data is a common practice for acquiring domain-specific SLMs, prompting many to create their datasets [258, 406, 435, 436]. These datasets are often annotated using LLMs like GPT-4 and used to continual pre-train or fine-tune general models such as LLaMa-2-7B [3, 34].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 415, + "chunk_id": "Small Language Models in the Era of Large_chunk_0415", + "start_position": 194490, + "end_position": 194935, + "page_index": 59, + "word_count": 69, + "char_count": 445 + }, + "has_embedding": false + }, + { + "content": "s like GPT-4 and used to continual pre-train or fine-tune general models such as LLaMa-2-7B [3, 34]. To ensure the data quality, specialized annotation frameworks are developed, such as SciGLM [435]. • In domains with abundant corpora, training a general model from scratch and fine-tuning it using SFT [412] is practical. Bilingual settings during training can prevent catastrophic forgetting.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 416, + "chunk_id": "Small Language Models in the Era of Large_chunk_0416", + "start_position": 194935, + "end_position": 195329, + "page_index": 59, + "word_count": 59, + "char_count": 394 + }, + "has_embedding": false + }, + { + "content": "Bilingual settings during training can prevent catastrophic forgetting. • Distilling general capabilities from LLMs while integrating domain-specific knowledge from corpora is another method for developing domain-specific SLMs [414]. Table 12. SLMs help LLMs in different aspects", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 417, + "chunk_id": "Small Language Models in the Era of Large_chunk_0417", + "start_position": 195329, + "end_position": 195608, + "page_index": 59, + "word_count": 36, + "char_count": 279 + }, + "has_embedding": false + }, + { + "content": "SLMs help LLMs in different aspects
AspectRepresentative workKey point
SL fo ealeAPRICOT [343]Trains aalxiliy del topdic 's cnfienc ui only textual inputs and outputs.
POLAR [450] Hallucination Detector in NMTUsing a BERT model to calibrate LLM responses.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 418, + "chunk_id": "Small Language Models in the Era of Large_chunk_0418", + "start_position": 195608, + "end_position": 195974, + "page_index": 59, + "word_count": 36, + "char_count": 366 + }, + "has_embedding": false + }, + { + "content": "POLAR [450] Hallucination Detector in NMTUsing a BERT model to calibrate LLM responses. Using lightweight classifiers to detect hallucinations in Neural Ma-
[399]chine Translation.
SuperICL [393]
SLM Plug-ins provide confidence and prediction for contextual ex- emplars to aid in-context learning.
SuperContext [408]Specifi c SLM enhances ICL by providing confidence and predictions to overcome out-of-domain challenges.
Self-RAG [18]A proxy model labels special tokens during RAG data generation for fi ne-tuning.
SKR [365]Training a small model to detect its self-knowledge for better use of external knowledge.
SlimPLM [325]Detecting missing knowledge in LLMs with a slim proxy model, enhancing the LLM's knowledge integration.
In-Context RALM [287]Training a RoBERTa-based reranker for top-k BM25 documents using LM signals to enhance LM gains.
CRAG [401]Training a lightweight evaluator to assess document quality and trigger actions based on confidence levels.
GSR [148]Training a Generative Sub-graph Retriever (GSR) for relation chain in RAG when retrieving from knowledge graphs.
SLM for Prompt Extraction [443]Small model trained to predict confidence of extracted system
exratig L MPrompt Stealing Attacks [297]
Output2prompt [433]Using a sparse encoder-decoder-based T5 small model to reverse-
Model Purifying [197]engineer LLM inputs from outputs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 419, + "chunk_id": "Small Language Models in the Era of Large_chunk_0419", + "start_position": 195974, + "end_position": 197764, + "page_index": 59, + "word_count": 173, + "char_count": 1790 + }, + "has_embedding": false + }, + { + "content": "l model to reverse-
Model Purifying [197]engineer LLM inputs from outputs. Using SLMs to ensemble with LLMs, mitigating negative effects
from uncurated data.
Weak-to-Strong Search [453]Framing LLM alignment as a test-time greedy search to maximize
SLCoLM [327]the log-probability difference between tuned and untuned SLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 420, + "chunk_id": "Small Language Models in the Era of Large_chunk_0420", + "start_position": 197764, + "end_position": 198265, + "page_index": 59, + "word_count": 41, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "/td>
SLCoLM [327]the log-probability difference between tuned and untuned SLMs. Using SLM predictions to guide the LLM generation process in
SLM for LLM applications SLM for LLMHEF [413]Chinse n ang,
Contrastive decoding [198]Enhancing text quality by maximizing the difference between expert
Llama Guard [153]and amateur log probabilities.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 421, + "chunk_id": "Small Language Models in the Era of Large_chunk_0421", + "start_position": 198265, + "end_position": 198725, + "page_index": 59, + "word_count": 44, + "char_count": 460 + }, + "has_embedding": false + }, + { + "content": "difference between expert
Llama Guard [153]and amateur log probabilities. An LLM-based input-output safeguard model geared towards
safetySLM as Guardian [177]Human-AI conversation use cases.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 422, + "chunk_id": "Small Language Models in the Era of Large_chunk_0422", + "start_position": 198725, + "end_position": 198988, + "page_index": 59, + "word_count": 22, + "char_count": 263 + }, + "has_embedding": false + }, + { + "content": "tr>
safetySLM as Guardian [177]Human-AI conversation use cases. A smaller LLM for both harmful query detection and safeguard
response generation.
SLM for LLM evaluationSLIDE [449]Utilizing SLMs trained via contrast learning to distinguish and score responses in dialogue scenarios effectively.
Kuhn et al. [175]An SLM is used as the natural language inference classifier.
SelfCheckGPT [240]An SLM is used to calculate BERTScore.
Factscore [244]An SLM functions as the natural language inference classifier.
", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 423, + "chunk_id": "Small Language Models in the Era of Large_chunk_0423", + "start_position": 198988, + "end_position": 199700, + "page_index": 59, + "word_count": 66, + "char_count": 712 + }, + "has_embedding": false + }, + { + "content": "score [244]An SLM functions as the natural language inference classifier. # 6 SLMS FOR LLMS In this section, we provide a comprehensive review of how SLMs enhance LLMs. While LLMs are robust, they face challenges such as latency during inference, labor-intensive fine-tuning, noise filtration issues in retrieval, suboptimal zero-shot performance, copyright infringement risks, and evaluation difficulties. SLMs can help LLMs to alleviate these issues.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 424, + "chunk_id": "Small Language Models in the Era of Large_chunk_0424", + "start_position": 199700, + "end_position": 200179, + "page_index": 59, + "word_count": 64, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "SLMs can help LLMs to alleviate these issues. Research in this field can be categorized into five primary areas: (i) using SLMs for reliable LLM generation; (ii) extracting prompts for LLMs using SLMs; (iii) fine-tuning LLMs with SLMs; (iv) applying SLMs in LLM applications; (v) utilizing SLMs as guardian; and (vi) evaluating LLMs using SLMs. A summary of representative work in each category along with their key point is given in Table 12. Next, we introduce each category in detail.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 425, + "chunk_id": "Small Language Models in the Era of Large_chunk_0425", + "start_position": 200179, + "end_position": 200666, + "page_index": 59, + "word_count": 80, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "Next, we introduce each category in detail. # 6.1 SLM for Reliable LLM Generation Although LLMs generally produce fluent and convincing text, they can occasionally generate erroneous responses [159, 349]. Additionally, LLMs are susceptible to privacy breaches from untrusted data collection, which can erode user trust or cause harm.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 426, + "chunk_id": "Small Language Models in the Era of Large_chunk_0426", + "start_position": 200666, + "end_position": 200999, + "page_index": 59, + "word_count": 49, + "char_count": 333 + }, + "has_embedding": false + }, + { + "content": "ptible to privacy breaches from untrusted data collection, which can erode user trust or cause harm. To address these issues, recent studies have focused on using SLMs to calibrate LLM confidence, detect hallucinations, and improve retrieval-augmented LLMs and their reasoning capabilities. [IMAGE]\nFig. 20. Architectures of Enhancing Calibration and Hallucination Detection of LLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 427, + "chunk_id": "Small Language Models in the Era of Large_chunk_0427", + "start_position": 200999, + "end_position": 201382, + "page_index": 59, + "word_count": 53, + "char_count": 383 + }, + "has_embedding": false + }, + { + "content": "Architectures of Enhancing Calibration and Hallucination Detection of LLMs. Enhancing Calibration and Hallucination Detection of LLMs As illustrated in Figure 20 (a), to calibrate LLMs, an SLM processes both questions and LLM-generated answers to predict calibrated confidence. This training involves minimizing the discrepancy between estimated calibration error and predicted confidence score.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 428, + "chunk_id": "Small Language Models in the Era of Large_chunk_0428", + "start_position": 201382, + "end_position": 201777, + "page_index": 59, + "word_count": 51, + "char_count": 395 + }, + "has_embedding": false + }, + { + "content": "olves minimizing the discrepancy between estimated calibration error and predicted confidence score. For instance, APRICOT [343] uses an auxiliary DeBERTaV3 model [131] to assess LLM confidence in open-question scenarios, aiming to improve uncertainty expression and response adjustment.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 429, + "chunk_id": "Small Language Models in the Era of Large_chunk_0429", + "start_position": 201777, + "end_position": 202064, + "page_index": 59, + "word_count": 37, + "char_count": 287 + }, + "has_embedding": false + }, + { + "content": "idence in open-question scenarios, aiming to improve uncertainty expression and response adjustment. Similarly, POLAR [450] has developed a self-supervised approach that generates risk scores for each response to calibrate LLM confidence, utilizing a small BERT model [83] to synchronize LLM outputs with other weak supervision sources. As shown in Figure 20 (b), for hallucination detection, an SLM analyzes LLM internal states to output the likelihood of hallucination.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 430, + "chunk_id": "Small Language Models in the Era of Large_chunk_0430", + "start_position": 202064, + "end_position": 202535, + "page_index": 59, + "word_count": 67, + "char_count": 471 + }, + "has_embedding": false + }, + { + "content": "lucination detection, an SLM analyzes LLM internal states to output the likelihood of hallucination. This process uses supervised data obtained by testing the knowledge boundaries of the LLM. In neural machine translation, Xu et al. [399] develop a lightweight detector that analyzes token contributions to hallucinations, outperforming both model-free baselines and quality estimation classifiers.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 431, + "chunk_id": "Small Language Models in the Era of Large_chunk_0431", + "start_position": 202535, + "end_position": 202933, + "page_index": 59, + "word_count": 54, + "char_count": 398 + }, + "has_embedding": false + }, + { + "content": "tions to hallucinations, outperforming both model-free baselines and quality estimation classifiers. Furthermore, SAPLMA [21] found that LLM internal states can signal the truthfulness of statements, with a small BERT classifier trained to differentiate correct from incorrect predictions achieving accuracies of $7 1 \\%$ to $8 3 \\%$ .", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 432, + "chunk_id": "Small Language Models in the Era of Large_chunk_0432", + "start_position": 202933, + "end_position": 203268, + "page_index": 59, + "word_count": 48, + "char_count": 335 + }, + "has_embedding": false + }, + { + "content": "d to differentiate correct from incorrect predictions achieving accuracies of $7 1 \\%$ to $8 3 \\%$ . Enhancing Retrieval-Augmented Generation Generally, as shown in Figure 21, SLMs can also serve as proxy models to evaluate the familiarity of LLMs with user queries, determining whether LLMs need to retrieve additional information or can respond directly. For example, SlimPLM [325] is a small proxy model that assesses the necessity for LLM retrieval by generating heuristic answers.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 433, + "chunk_id": "Small Language Models in the Era of Large_chunk_0433", + "start_position": 203268, + "end_position": 203753, + "page_index": 59, + "word_count": 75, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "s a small proxy model that assesses the necessity for LLM retrieval by generating heuristic answers. High-quality responses indicate that LLMs can handle queries independently, whereas lower-quality outputs require further retrieval. Additionally, Self-Knowledge Guided Retrieval (SKR) [365] enables SLMs to autonomously decide when LLMs should operate independently, based on their self-assessment of knowledge limitations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 434, + "chunk_id": "Small Language Models in the Era of Large_chunk_0434", + "start_position": 203753, + "end_position": 204177, + "page_index": 59, + "word_count": 54, + "char_count": 424 + }, + "has_embedding": false + }, + { + "content": "ide when LLMs should operate independently, based on their self-assessment of knowledge limitations. Further, SELF-RAG [18] improves the factual accuracy and quality of LLM outputs through on-demand retrieval and self-reflection. This method employs a small critic language model to issue reflective markers and make binary decisions regarding the need for further information retrieval. Moreover, some studies utilize SLMs to evaluate the relevance of retrieved documents.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 435, + "chunk_id": "Small Language Models in the Era of Large_chunk_0435", + "start_position": 204177, + "end_position": 204650, + "page_index": 59, + "word_count": 65, + "char_count": 473 + }, + "has_embedding": false + }, + { + "content": "Moreover, some studies utilize SLMs to evaluate the relevance of retrieved documents. LongLLMLingua [162] employs SLMs to calculate the relevance of documents to a query $x ^ { q u e }$ using perplexity, as formalized by the equation: [IMAGE]\nFig. 21. Architecture of SLM as a Heuristic RAG Prober. Manuscript submitted to ACM $$\nr _ { k } = - \\frac { 1 } { N _ { c } } \\sum _ { i } \\log \\phi _ { ^ { \\mathrm { S L M } } } ( x _ { i } ^ { q u e } | x _ { k } ^ { d o c } ) , \\quad k \\in \\{ 1 , 2 , . . . , K \\}\n$$", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 436, + "chunk_id": "Small Language Models in the Era of Large_chunk_0436", + "start_position": 204650, + "end_position": 205163, + "page_index": 59, + "word_count": 133, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": ", K \\}\n$$ where $x _ { i } ^ { q u e }$ is the $i \\cdot$ -th token in the query sequence, $x _ { k } ^ { d o c }$ is the retrieved document, and $N _ { c }$ is the total number of tokens in the query. $ { p _ { \\mathrm { S L M } } }$ represents the probability generated by an SLM. CRAG [401] employs SLMs as evaluators of document relevance in the same way. RA-ISF [219] trains a small language model that checks the base LLM in self-knowledge, relevance judgment, and question decomposition.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 437, + "chunk_id": "Small Language Models in the Era of Large_chunk_0437", + "start_position": 205163, + "end_position": 205656, + "page_index": 59, + "word_count": 108, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "ge model that checks the base LLM in self-knowledge, relevance judgment, and question decomposition. In addition, some research employs SLMs as re-rankers to refine the order of documents provided by initial retrieval efforts such as BM25 [291]. In-Context RALM [287] positions SLMs as rankers, optimizing the document sequence with a fine-tuning process on RoBERTa [218] as defined by the loss function:", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 438, + "chunk_id": "Small Language Models in the Era of Large_chunk_0438", + "start_position": 205656, + "end_position": 206060, + "page_index": 59, + "word_count": 61, + "char_count": 404 + }, + "has_embedding": false + }, + { + "content": "g the document sequence with a fine-tuning process on RoBERTa [218] as defined by the loss function: $$\n\\operatorname* { m i n } _ { r a n k e r } \\sum _ { i = 1 } ^ { k } - \\log p _ { \\mathrm { r a n k } } ( d _ { i } | \\boldsymbol x _ { \\le s _ { j } } ) \\cdot p _ { \\theta } ( \\boldsymbol y | d _ { i } ; \\boldsymbol x _ { \\le s _ { j } } )\n$$ where $x _ { \\leq s _ { i } }$ is a prefix sampled from the training data, $y = x _ { s _ { i } + 1 } , . . .", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 439, + "chunk_id": "Small Language Models in the Era of Large_chunk_0439", + "start_position": 206060, + "end_position": 206516, + "page_index": 59, + "word_count": 141, + "char_count": 456 + }, + "has_embedding": false + }, + { + "content": ". , x _ { s _ { i } + s }$ represents the text to be generated in the next stride, $p _ { \\theta } ( y | d _ { i } ; x _ { \\le s i } )$ denotes the probability of the LLM generating $y$ given $d _ { i }$ and $x { \\le } s i$ , and $p _ { \\mathrm { r a n k } } ( d _ { i } | \\boldsymbol x _ { \\le s _ { j } } )$ is the ranking score of $d _ { i }$ . Lastly, some studies leverage SLMs to retrieve sub-graphs when utilizing knowledge graphs as external sources.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 440, + "chunk_id": "Small Language Models in the Era of Large_chunk_0440", + "start_position": 206516, + "end_position": 206974, + "page_index": 59, + "word_count": 124, + "char_count": 458 + }, + "has_embedding": false + }, + { + "content": "me studies leverage SLMs to retrieve sub-graphs when utilizing knowledge graphs as external sources. Huang et al. [148] introduces the Generative Sub-graph Retriever (GSR), which employs SLMs to predict relation chains for answering questions, offering a cost-effective alternative to training LLMs. Specifically, it uses customized T5 (220M, 770M, and 3B) [284] as retrievers to enhance LLM readers, including Llama2-chat-7B [339] and Llama3-instruct-8B [94], on the WebQSP [418] and CWQ [324] datasets.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 441, + "chunk_id": "Small Language Models in the Era of Large_chunk_0441", + "start_position": 206974, + "end_position": 207478, + "page_index": 59, + "word_count": 71, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "luding Llama2-chat-7B [339] and Llama3-instruct-8B [94], on the WebQSP [418] and CWQ [324] datasets. Enhancing Reasoning Capabilities of LLMs As illustrated in Figure 22, SLMs enhance LLMs reasoning by transferring task knowledge to in-context examples, effectively reducing hallucinations. While In-context Learning (ICL) generally handles few-shot learning [IMAGE]\nFig. 22. SLM transfers knowledge into ICL. with 16 to 32 examples, it struggles when faced with extensive supervised data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 442, + "chunk_id": "Small Language Models in the Era of Large_chunk_0442", + "start_position": 207478, + "end_position": 207967, + "page_index": 59, + "word_count": 67, + "char_count": 489 + }, + "has_embedding": false + }, + { + "content": "with 16 to 32 examples, it struggles when faced with extensive supervised data. SLMs, specialized in task-specific training, complement the broader domain knowledge of extensively pre-trained LLMs. For example, SuperICL [393] incorporates SLMs as plugins for efficiently executing supervised tasks. It predicts labels for contextual examples and integrates these predictions with the input text and actual labels to enhance knowledge transfer, thereby boosting the understanding and responsiveness of LLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 443, + "chunk_id": "Small Language Models in the Era of Large_chunk_0443", + "start_position": 207967, + "end_position": 208473, + "page_index": 59, + "word_count": 69, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "labels to enhance knowledge transfer, thereby boosting the understanding and responsiveness of LLMs. SuperContext [408] tackles challenges that LLMs encounter with new tasks and out-of-distribution data in natural language understanding by synergizing SLM outputs with LLM prompts during inference. This integration merges model predictions with their confidence levels, effectively leveraging SLM task-specific knowledge and LLM domain expertise.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 444, + "chunk_id": "Small Language Models in the Era of Large_chunk_0444", + "start_position": 208473, + "end_position": 208920, + "page_index": 59, + "word_count": 57, + "char_count": 447 + }, + "has_embedding": false + }, + { + "content": "heir confidence levels, effectively leveraging SLM task-specific knowledge and LLM domain expertise. Furthermore, SLMs efficiently decompose complex reasoning by breaking tasks into simpler components, as demonstrated in [383]. This strategy increases efficiency and reduces deployment costs when SLMs and LLMs are used collaboratively, transforming complex tasks into manageable segments. [IMAGE]\nFig. 24. SLM for LLM Prompt Extraction Paradigm.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 445, + "chunk_id": "Small Language Models in the Era of Large_chunk_0445", + "start_position": 208920, + "end_position": 209366, + "page_index": 59, + "word_count": 58, + "char_count": 446 + }, + "has_embedding": false + }, + { + "content": "SLM for LLM Prompt Extraction Paradigm. $M _ { S }$ denotes small language models and $M _ { L }$ denotes large language models. (a) SLM-based prompt estimation tries various attack prompts; $M _ { S }$ selects the most likely extracted one. (b) SLM-based Parameter Extractor identifies the type of input prompt. (c) SLM-based Model Inversion uses $M _ { S }$ to invert the LLM output back into the input.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 446, + "chunk_id": "Small Language Models in the Era of Large_chunk_0446", + "start_position": 209366, + "end_position": 209771, + "page_index": 59, + "word_count": 73, + "char_count": 405 + }, + "has_embedding": false + }, + { + "content": "(c) SLM-based Model Inversion uses $M _ { S }$ to invert the LLM output back into the input. Alleviate Copyright and Privacy Issues of LLMs LLMs pose significant security risks due to their tendency to memorize training data, leading to potential privacy breaches and copyright infringement. As depicted in Figure 23, SLMs can assist LLMs in addressing copyright and privacy concerns arising from online data collection. By training on [IMAGE]\nFig. 23. Architecture of SLM-based Data Protection", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 447, + "chunk_id": "Small Language Models in the Era of Large_chunk_0447", + "start_position": 209771, + "end_position": 210265, + "page_index": 59, + "word_count": 78, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "Architecture of SLM-based Data Protection selectively curated data subsets, SLMs effectively reduce copyright infringement and privacy risks, although they are less effective than full-scale LLMs. To harness the combined benefits of both models, Li et al. [197] integrates untrusted LLMs with benign SLMs using the CP- $\\cdot \\Delta$ KL algorithm to mitigate adverse effects while preserving performance. The equation is: $$\np ( y | x ) = \\frac { p _ { l } ( y | x ) \\cdot p _ { s } ( y | x ) } { Z ( x ) }\n$$", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 448, + "chunk_id": "Small Language Models in the Era of Large_chunk_0448", + "start_position": 210265, + "end_position": 210774, + "page_index": 59, + "word_count": 99, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "equation is: $$\np ( y | x ) = \\frac { p _ { l } ( y | x ) \\cdot p _ { s } ( y | x ) } { Z ( x ) }\n$$ where $\\mathit { p _ { l } }$ and $\\mathbf { \\nabla } \\mathcal { P } \\boldsymbol { s }$ represent the probabilities from the large and small models, respectively, and $Z ( x )$ is the partition function. This integration results in the following ensemble algorithm: $$\nz _ { P } ( \\cdot | x ) \\propto \\alpha z _ { l } ( \\cdot | x ) + ( 1 - \\alpha ) z _ { s } ( \\cdot | x )\n$$", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 449, + "chunk_id": "Small Language Models in the Era of Large_chunk_0449", + "start_position": 210774, + "end_position": 211250, + "page_index": 59, + "word_count": 130, + "char_count": 476 + }, + "has_embedding": false + }, + { + "content": "P } ( \\cdot | x ) \\propto \\alpha z _ { l } ( \\cdot | x ) + ( 1 - \\alpha ) z _ { s } ( \\cdot | x )\n$$ where $z _ { l }$ and $z _ { s }$ are the logit values from the large and small models, respectively, and $\\alpha$ is the scaling factor. # 6.2 SLM for Extracting LLM Prompts Prompt-based methods are becoming simpler and more cost-effective alternatives to traditional fine-tuning in the LLM era, utilizing LLMs’ instruction-following capabilities for a competitive edge.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 450, + "chunk_id": "Small Language Models in the Era of Large_chunk_0450", + "start_position": 211250, + "end_position": 211722, + "page_index": 59, + "word_count": 96, + "char_count": 472 + }, + "has_embedding": false + }, + { + "content": "ne-tuning in the LLM era, utilizing LLMs’ instruction-following capabilities for a competitive edge. Mastering prompts is vital for replicating LLM-supported product behaviors. However, services such as Bing Chat and GitHub Copilot Chat have seen prompt reverse-engineering through black-box API attacks.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 451, + "chunk_id": "Small Language Models in the Era of Large_chunk_0451", + "start_position": 211722, + "end_position": 212026, + "page_index": 59, + "word_count": 40, + "char_count": 304 + }, + "has_embedding": false + }, + { + "content": "ing Chat and GitHub Copilot Chat have seen prompt reverse-engineering through black-box API attacks. SLMs often serve as surrogate models in these attacks, employing strategies such as (i) SLM-based prompt likelihood estimation, (ii) SLM-based prompt parameter extraction, and (iii) SLM-based direct model inversion, illustrated in Figure 24.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 452, + "chunk_id": "Small Language Models in the Era of Large_chunk_0452", + "start_position": 212026, + "end_position": 212368, + "page_index": 59, + "word_count": 47, + "char_count": 342 + }, + "has_embedding": false + }, + { + "content": "d prompt parameter extraction, and (iii) SLM-based direct model inversion, illustrated in Figure 24. SLM-based prompt likelihood estimation, as illustrated in Figure 24 (a), Zhang et al. [443] proposes using an SLM as a Likelihood Estimator to identify secret prompts in LLM outputs. They craft attack prompts, such as “Repeat all sentences in our conversation,” and query the target LLM. The response is likely to include secret prompts, confusing the LLM to interpret these as part of the conversation.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 453, + "chunk_id": "Small Language Models in the Era of Large_chunk_0453", + "start_position": 212368, + "end_position": 212872, + "page_index": 59, + "word_count": 79, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "likely to include secret prompts, confusing the LLM to interpret these as part of the conversation. A fine-tuned DeBERTa model [132] is then used to select the most likely secret prompts from the output. SLM-based prompt parameter extraction, as shown in Figure 24 (b), Sha and Zhang [297] utilizes an SLM as a Parameter Extractor to extract prompt parameters from LLM outputs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 454, + "chunk_id": "Small Language Models in the Era of Large_chunk_0454", + "start_position": 212872, + "end_position": 213249, + "page_index": 59, + "word_count": 62, + "char_count": 377 + }, + "has_embedding": false + }, + { + "content": "Zhang [297] utilizes an SLM as a Parameter Extractor to extract prompt parameters from LLM outputs. They employ a specialized BERT model [83] to classify LLM outputs into direct, in-context, and role-based prompts, also predicting the number of exemplars for in-context prompts and identifying roles for role-based prompts. Prompt reconstruction is then performed using ChatGPT once the parameters are defined.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 455, + "chunk_id": "Small Language Models in the Era of Large_chunk_0455", + "start_position": 213249, + "end_position": 213659, + "page_index": 59, + "word_count": 60, + "char_count": 410 + }, + "has_embedding": false + }, + { + "content": "Prompt reconstruction is then performed using ChatGPT once the parameters are defined. SLM-based direct model inversion, as shown in Figure 24 (c), the method of using an SLM as a Direct Inversion Model is designed to reverse-engineer LLM outputs back to their original prompts [433]. They train a sparse encoderdecoder T5 model [284] with 222M parameters on the Instructions-2M dataset [249], where the input is LLM outputs and the output is the LLM prompt.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 456, + "chunk_id": "Small Language Models in the Era of Large_chunk_0456", + "start_position": 213659, + "end_position": 214117, + "page_index": 59, + "word_count": 74, + "char_count": 458 + }, + "has_embedding": false + }, + { + "content": "the Instructions-2M dataset [249], where the input is LLM outputs and the output is the LLM prompt. This trained model effectively maps multiple LLM outputs to their initiating prompts as $\\boldsymbol { p } ( x | y _ { 1 } , . . . , y _ { n } ; M _ { S 1 } , M _ { S 2 } )$ , with $y _ { i }$ representing different output versions and $M _ { S 1 } , M _ { S 2 }$ the model parameters. # 6.3 SLM for Fine-tuning LLMs", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 457, + "chunk_id": "Small Language Models in the Era of Large_chunk_0457", + "start_position": 214117, + "end_position": 214533, + "page_index": 59, + "word_count": 101, + "char_count": 416 + }, + "has_embedding": false + }, + { + "content": "# 6.3 SLM for Fine-tuning LLMs Fine-tuning is a crucial technique for adapting LLMs to specific tasks or domains, yet it is often time-consuming. For instance, finetuning the LLaMA-2-13B [339] checkpoint on 32 NVIDIA A100 GPUs with 80GB memory using bfloat16 format requires approximately 70 hours [247]. This process also demands high-quality data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 458, + "chunk_id": "Small Language Models in the Era of Large_chunk_0458", + "start_position": 214533, + "end_position": 214882, + "page_index": 59, + "word_count": 53, + "char_count": 349 + }, + "has_embedding": false + }, + { + "content": "This process also demands high-quality data. Therefore, we examine how SLMs can enhance LLM finetuning through three approaches: (i) proxy fine-tuning, (ii) selecting high-quality data, and (iii) guiding LLM-generated task data, as illustrated in Figure 25. [IMAGE]\nFig. 25. SLM for LLM Fine-tuning. SLMs as proxy models: SLMs can approximate the gradient of fine-tuning large-scale LLMs on target datasets, avoiding the costly fine-tuning process in terms of time and computational resources.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 459, + "chunk_id": "Small Language Models in the Era of Large_chunk_0459", + "start_position": 214882, + "end_position": 215375, + "page_index": 59, + "word_count": 71, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "rget datasets, avoiding the costly fine-tuning process in terms of time and computational resources. As shown in Figure 25 (a), Emulated Fine-Tuning (EFT) [246] simulates both unsupervised pre-training and supervised fine-tuning stages across different scales by manipulating log probabilities.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 460, + "chunk_id": "Small Language Models in the Era of Large_chunk_0460", + "start_position": 215375, + "end_position": 215669, + "page_index": 59, + "word_count": 39, + "char_count": 294 + }, + "has_embedding": false + }, + { + "content": "raining and supervised fine-tuning stages across different scales by manipulating log probabilities. EFT, for example, combines base log probabilities from a 70B model with behavioral deltas from a 7B model—these deltas represent differences between fine-tuned and unfine-tuned SLMs, effectively emulating outcomes for the Llama-2 series.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 461, + "chunk_id": "Small Language Models in the Era of Large_chunk_0461", + "start_position": 215669, + "end_position": 216007, + "page_index": 59, + "word_count": 45, + "char_count": 338 + }, + "has_embedding": false + }, + { + "content": "ces between fine-tuned and unfine-tuned SLMs, effectively emulating outcomes for the Llama-2 series. This method allows fine-tuning on smaller models such as Falcon-7B [10] while capturing most benefits of fine-tuning larger models such as Falcon-180B, benefiting applications such as dialogue, question-answering, and code generation.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 462, + "chunk_id": "Small Language Models in the Era of Large_chunk_0462", + "start_position": 216007, + "end_position": 216342, + "page_index": 59, + "word_count": 44, + "char_count": 335 + }, + "has_embedding": false + }, + { + "content": "h as Falcon-180B, benefiting applications such as dialogue, question-answering, and code generation. Similarly, Proxy-tuning [212] adjusts LLM predictions by adding the differences between the outputs of a fine-tuned small model and its untuned version to the LLM’s output vocabulary during decoding, maintaining the advantages of large-scale pre-training while integrating small-scale fine-tuning benefits. Moreover, SLMs can act as proxies for approximate LLM fine-tuning during decoding.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 463, + "chunk_id": "Small Language Models in the Era of Large_chunk_0463", + "start_position": 216342, + "end_position": 216832, + "page_index": 59, + "word_count": 64, + "char_count": 490 + }, + "has_embedding": false + }, + { + "content": "Moreover, SLMs can act as proxies for approximate LLM fine-tuning during decoding. Weakto-Strong Search [453] strategy frames the alignment of LLMs as a test-time greedy search, aiming to maximize the log-probability difference between small tuned and untuned models while sampling from the frozen large model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 464, + "chunk_id": "Small Language Models in the Era of Large_chunk_0464", + "start_position": 216832, + "end_position": 217142, + "page_index": 59, + "word_count": 45, + "char_count": 310 + }, + "has_embedding": false + }, + { + "content": "bility difference between small tuned and untuned models while sampling from the frozen large model. This approach serves as a dual-purpose method: (1) a compute-efficient model up-scaling strategy that circumvents direct tuning of the large model, and (2) an instance of weak-to-strong generalization that bolsters a strong model with weak test-time guidance. SLMs play a role in selecting high-quality fine-tuning data for LLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 465, + "chunk_id": "Small Language Models in the Era of Large_chunk_0465", + "start_position": 217142, + "end_position": 217572, + "page_index": 59, + "word_count": 63, + "char_count": 430 + }, + "has_embedding": false + }, + { + "content": "SLMs play a role in selecting high-quality fine-tuning data for LLMs. Figure 25 (b) illustrates how SLMs within the same family as the LLM can identify training samples that are likely to be challenging, enhancing the training efficiency and generalization capability of the LLM.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 466, + "chunk_id": "Small Language Models in the Era of Large_chunk_0466", + "start_position": 217572, + "end_position": 217851, + "page_index": 59, + "word_count": 44, + "char_count": 279 + }, + "has_embedding": false + }, + { + "content": "ikely to be challenging, enhancing the training efficiency and generalization capability of the LLM. As demonstrated by Swayamdipta et al. [323] and further advanced by Mekala et al. [242], the learning percentage $L P ( i )$ is a metric used to curate high-quality datasets with hard samples: $\\begin{array} { r } { L P ( i ) \\ : = \\ : \\frac { P _ { i - 1 } - P _ { i } } { P _ { 0 } - P _ { n } } } \\end{array}$ where $P _ { i }$ represents the perplexity at the end of epoch-??, and $P _ { 0 }$ is the initial perplexity.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 467, + "chunk_id": "Small Language Models in the Era of Large_chunk_0467", + "start_position": 217851, + "end_position": 218375, + "page_index": 59, + "word_count": 118, + "char_count": 524 + }, + "has_embedding": false + }, + { + "content": "{ i }$ represents the perplexity at the end of epoch-??, and $P _ { 0 }$ is the initial perplexity. A higher $L P ( i )$ early in training indicates significant learning in the initial epochs, highlighting the potential of these samples to enhance LLMs. SmallToLarge (S2L) [411] utilizes training loss trajectories from smaller models to guide data selection for larger models fine-tuning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 468, + "chunk_id": "Small Language Models in the Era of Large_chunk_0468", + "start_position": 218375, + "end_position": 218764, + "page_index": 59, + "word_count": 65, + "char_count": 389 + }, + "has_embedding": false + }, + { + "content": "raining loss trajectories from smaller models to guide data selection for larger models fine-tuning. Experimental results demonstrate that S2L significantly enhances data efficiency in SFT for mathematical problem-solving, reducing the required training data to just $1 1 \\%$ of the original MathInstruct dataset [428] to achieve performance comparable to that obtained using the full dataset. SLMs enhance the quality of LLM-generated data for specific tasks.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 469, + "chunk_id": "Small Language Models in the Era of Large_chunk_0469", + "start_position": 218764, + "end_position": 219224, + "page_index": 59, + "word_count": 65, + "char_count": 460 + }, + "has_embedding": false + }, + { + "content": "SLMs enhance the quality of LLM-generated data for specific tasks. As depicted in Figure 25 (c), CROSSLM [79] promotes the local training of SLMs on client-specific private data to mitigate privacy risks associated with server-based LLMs. An SLM trained in this manner can guide the server-side LLM to produce high-quality synthetic datasets.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 470, + "chunk_id": "Small Language Models in the Era of Large_chunk_0470", + "start_position": 219224, + "end_position": 219566, + "page_index": 59, + "word_count": 52, + "char_count": 342 + }, + "has_embedding": false + }, + { + "content": "SLM trained in this manner can guide the server-side LLM to produce high-quality synthetic datasets. Feedback from SLMs regarding the quality of this synthetic data serves as a supervisory signal, enhancing both the quality of LLM outputs and the utility of the data for further training. # 6.4 SLM for LLM Applications LLMs are utilized across various applications due to their open-ended generation capabilities, yet they often lack specialized knowledge and other generation issues.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 471, + "chunk_id": "Small Language Models in the Era of Large_chunk_0471", + "start_position": 219566, + "end_position": 220051, + "page_index": 59, + "word_count": 74, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "nded generation capabilities, yet they often lack specialized knowledge and other generation issues. SLMs can supplement this by providing taskspecific knowledge or reflecting weaknesses. Therefore, we explore how SLMs enhance the performance of LLMs in specific applications, focusing on open-ended generation, knowledge integration, relation extraction, and empathetic response.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 472, + "chunk_id": "Small Language Models in the Era of Large_chunk_0472", + "start_position": 220051, + "end_position": 220431, + "page_index": 59, + "word_count": 48, + "char_count": 380 + }, + "has_embedding": false + }, + { + "content": "using on open-ended generation, knowledge integration, relation extraction, and empathetic response. In open-ended text generation—such as writing assistance and story creation—LLMs often suffer from issues such as incoherence and thematic drift over extended sequences. Due to more frequent failure patterns observed in SLMs, such as short, repeated, and irrelevant strings, these patterns serve as negative examples for LLM decoding. [IMAGE]\nFig. 26. Contrastive Decoding [198].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 473, + "chunk_id": "Small Language Models in the Era of Large_chunk_0473", + "start_position": 220431, + "end_position": 220911, + "page_index": 59, + "word_count": 65, + "char_count": 480 + }, + "has_embedding": false + }, + { + "content": "Contrastive Decoding [198]. Contrastive Decoding (CD) [198] improves coherence and lexical diversity by leveraging the differential capabilities between a large model, OPT-13B [440], and a smaller model, OPT-125M. As illustrated in Figure 26, CD improves content quality by sampling generation based on the difference in log probabilities, $\\log p _ { E X P } - \\log p _ { A M A }$ , between an expert LM and an amateur LM, rather than relying solely on the expert LM’s log probability.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 474, + "chunk_id": "Small Language Models in the Era of Large_chunk_0474", + "start_position": 220911, + "end_position": 221397, + "page_index": 59, + "word_count": 83, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "tween an expert LM and an amateur LM, rather than relying solely on the expert LM’s log probability. This approach effectively reduces generative failures, including repetition. In knowledge injection, general LLMs may lack domain-specific expertise for specialized tasks like law or medicine [91, 353]. Domain-specific SLMs can supply crucial knowledge in a format suitable for LLMs. To this end, BLADE [189] integrates black-box LLMs with small domain-specific models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 475, + "chunk_id": "Small Language Models in the Era of Large_chunk_0475", + "start_position": 221397, + "end_position": 221867, + "page_index": 59, + "word_count": 68, + "char_count": 470 + }, + "has_embedding": false + }, + { + "content": "To this end, BLADE [189] integrates black-box LLMs with small domain-specific models. BLADE combines the comprehensive language capabilities of LLMs with the specialized knowledge of small LMs. As shown in 1. Domain-specific 2. Knowledge 3. Bayesian Prompted pre-training Instruction Tuning Optimization [IMAGE]\nFig. 27. BLADE Framework [189].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 476, + "chunk_id": "Small Language Models in the Era of Large_chunk_0476", + "start_position": 221867, + "end_position": 222210, + "page_index": 59, + "word_count": 47, + "char_count": 343 + }, + "has_embedding": false + }, + { + "content": "BLADE Framework [189]. Figure 27, BLADE’s process includes: 1) pre-training SLMs on domain-specific data, 2) fine-tuning with knowledge instruction to meet task-specific needs, and 3) using joint Bayesian optimization to enhance synergy between the LLM and the small LM, boosting overall performance. In relation extraction, a field limited by scarce labeled data and prevalent long-tail categories, the “Train-GuidePredict” framework [327] employs SLMs to learn task-specific knowledge for dominant categories.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 477, + "chunk_id": "Small Language Models in the Era of Large_chunk_0477", + "start_position": 222210, + "end_position": 222721, + "page_index": 59, + "word_count": 69, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "GuidePredict” framework [327] employs SLMs to learn task-specific knowledge for dominant categories. SLMs struggle with rare categories, whereas LLMs manage these effectively due to their extensive pre-trained text. Therefore, this framework leverages the strengths of both models: it utilizes SLMs to acquire task knowledge and guide the LLM’s generative process with initial SLM predictions, enhancing the LLM’s handling of underrepresented categories.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 478, + "chunk_id": "Small Language Models in the Era of Large_chunk_0478", + "start_position": 222721, + "end_position": 223175, + "page_index": 59, + "word_count": 61, + "char_count": 454 + }, + "has_embedding": false + }, + { + "content": "e process with initial SLM predictions, enhancing the LLM’s handling of underrepresented categories. In generating empathetic responses, LLMs excel in expressiveness but struggle with nuanced emotions and cognition. HEF [413] addresses this by incorporating Small Empathy Models (SEMs) to enhance LLMs’ emotional and cognitive depth.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 479, + "chunk_id": "Small Language Models in the Era of Large_chunk_0479", + "start_position": 223175, + "end_position": 223508, + "page_index": 59, + "word_count": 45, + "char_count": 333 + }, + "has_embedding": false + }, + { + "content": "es this by incorporating Small Empathy Models (SEMs) to enhance LLMs’ emotional and cognitive depth. This framework employs a two-tiered emotion prediction method: SEMs identify primary emotions, directing LLMs to concentrate on these emotions and their triggers, resulting in more accurate and empathetic responses. # 6.5 SLM for LLM Safety As demonstrated by various works [250, 302, 426, 460], LLMs are vulnerable to adversarial attacks and jailbreaking.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 480, + "chunk_id": "Small Language Models in the Era of Large_chunk_0480", + "start_position": 223508, + "end_position": 223965, + "page_index": 59, + "word_count": 67, + "char_count": 457 + }, + "has_embedding": false + }, + { + "content": "by various works [250, 302, 426, 460], LLMs are vulnerable to adversarial attacks and jailbreaking. For example, Wang et al. [358] shows that ChatGPT’s performance on adversarial datasets is still far from perfect, indicating that potential risks of adversarial vulnerability remain.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 481, + "chunk_id": "Small Language Models in the Era of Large_chunk_0481", + "start_position": 223965, + "end_position": 224248, + "page_index": 59, + "word_count": 41, + "char_count": 283 + }, + "has_embedding": false + }, + { + "content": "sets is still far from perfect, indicating that potential risks of adversarial vulnerability remain. Another example includes jailbreaking ChatGPT by asking it to ’pretend to be a sarcastic mean girl.’ Using such techniques, it has been shown that even the most advanced LLMs are far from being safe against generating potentially harmful content. Hence, the widely adopted LLM-based services to generate are at high risk of being misused for nefarious purposes.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 482, + "chunk_id": "Small Language Models in the Era of Large_chunk_0482", + "start_position": 224248, + "end_position": 224710, + "page_index": 59, + "word_count": 71, + "char_count": 462 + }, + "has_embedding": false + }, + { + "content": "ely adopted LLM-based services to generate are at high risk of being misused for nefarious purposes. Consequently, resources such as the Llama 2 Responsible Use Guide 14 strongly advocate for implementing robust guardrails in products that utilize Generative AI.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 483, + "chunk_id": "Small Language Models in the Era of Large_chunk_0483", + "start_position": 224710, + "end_position": 224972, + "page_index": 59, + "word_count": 39, + "char_count": 262 + }, + "has_embedding": false + }, + { + "content": "uide 14 strongly advocate for implementing robust guardrails in products that utilize Generative AI. These guardrails are specifically designed to mitigate risks associated with both inputs to and outputs from the model, ensuring safeguards against the generation of high-risk or policy-violating content, as well as protecting against adversarial inputs and attempts to compromise the model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 484, + "chunk_id": "Small Language Models in the Era of Large_chunk_0484", + "start_position": 224972, + "end_position": 225364, + "page_index": 59, + "word_count": 55, + "char_count": 392 + }, + "has_embedding": false + }, + { + "content": "ting content, as well as protecting against adversarial inputs and attempts to compromise the model. In addition to developing trustworthy LLMs, adopting SLMs for LLM safety [153, 177] has also attracted increasing attention. For example, Llama Guard [153], fine-tuned on Llama2-7B, has publicly released an input-output safeguard tool specifically for classifying safety risks in prompts and responses within conversational AI applications.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 485, + "chunk_id": "Small Language Models in the Era of Large_chunk_0485", + "start_position": 225364, + "end_position": 225805, + "page_index": 59, + "word_count": 61, + "char_count": 441 + }, + "has_embedding": false + }, + { + "content": "fically for classifying safety risks in prompts and responses within conversational AI applications. However, this tool is limited to assessing the harmfulness of questions and answers and does not facilitate the generation of fluent, safe responses.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 486, + "chunk_id": "Small Language Models in the Era of Large_chunk_0486", + "start_position": 225805, + "end_position": 226055, + "page_index": 59, + "word_count": 36, + "char_count": 250 + }, + "has_embedding": false + }, + { + "content": "rmfulness of questions and answers and does not facilitate the generation of fluent, safe responses. In response to this limitation, Kwon et al. [177] fine-tune a specialized small language model with harmful query detection and safeguard answer generation tasks to accurately detect harmful user queries and generate appropriate safeguard explanations, thereby enhancing the safety measures in conversational AI. # 6.6 SLM for LLM Evaluation SLMs can also enhance the evaluation of LLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 487, + "chunk_id": "Small Language Models in the Era of Large_chunk_0487", + "start_position": 226055, + "end_position": 226543, + "page_index": 59, + "word_count": 72, + "char_count": 488 + }, + "has_embedding": false + }, + { + "content": "# 6.6 SLM for LLM Evaluation SLMs can also enhance the evaluation of LLMs. In dialog evaluation, generating dialog reference responses is computationally complex, making accurate assessment difficult due to the multiple plausible but semantically different responses possible for a single dialog context. Relying on LLM prompting for evaluation can lead to problems such as dependency on prompt wording and inconsistent results.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 488, + "chunk_id": "Small Language Models in the Era of Large_chunk_0488", + "start_position": 226543, + "end_position": 226971, + "page_index": 59, + "word_count": 62, + "char_count": 428 + }, + "has_embedding": false + }, + { + "content": "g for evaluation can lead to problems such as dependency on prompt wording and inconsistent results. One solution involves training specialized SLMs to evaluate LLMs, as these SLMs can be fine-tuned more quickly and generate outputs faster during inference, owing to their reduced number of parameters. For example, SLIDE [449] employs contrastive learning to fine-tune an SLM to effectively distinguish between positive and negative responses.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 489, + "chunk_id": "Small Language Models in the Era of Large_chunk_0489", + "start_position": 226971, + "end_position": 227415, + "page_index": 59, + "word_count": 65, + "char_count": 444 + }, + "has_embedding": false + }, + { + "content": "ive learning to fine-tune an SLM to effectively distinguish between positive and negative responses. Based on its observation that SLMs are more accurate in identifying positive responses and LLMs excel at classifying negative ones, the trained SLM is subsequently integrated with an LLM to assign a score to each response. The scoring method used is formalized as follows: $$\ns c o r e = \\left\\{ \\begin{array} { l l } { s c o r e _ { S L M } , } & { \\mathrm { i f } s c o r e _ { S L M } \\ge 0 .", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 490, + "chunk_id": "Small Language Models in the Era of Large_chunk_0490", + "start_position": 227415, + "end_position": 227911, + "page_index": 59, + "word_count": 106, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "\\begin{array} { l l } { s c o r e _ { S L M } , } & { \\mathrm { i f } s c o r e _ { S L M } \\ge 0 . 5 } \\\\ { s c o r e _ { L L M } , } & { \\mathrm { e l i f } s c o r e _ { L L M } < 0 . 5 } \\\\ { \\frac { s c o r e _ { S L M } + s c o r e _ { L L M } } { 2 } , } & { \\mathrm { o t h e r w i s e } } \\end{array} \\right. $$ This equation allows for adaptive response evaluation, leveraging the strengths of both models to ensure a more reliable and consistent assessment across varying dialogue contexts.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 491, + "chunk_id": "Small Language Models in the Era of Large_chunk_0491", + "start_position": 227911, + "end_position": 228412, + "page_index": 59, + "word_count": 158, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "of both models to ensure a more reliable and consistent assessment across varying dialogue contexts. In the natural language generation task, Kuhn et al. [175] designs a novel entropy to evaluate the uncertainty of LLMs. It aims to tackle the challenge of semantic equivalence [175]. For instance, $A$ ’s son is $B$ and $B$ is $A$ ’s son are semantically equivalent.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 492, + "chunk_id": "Small Language Models in the Era of Large_chunk_0492", + "start_position": 228412, + "end_position": 228778, + "page_index": 59, + "word_count": 61, + "char_count": 366 + }, + "has_embedding": false + }, + { + "content": "For instance, $A$ ’s son is $B$ and $B$ is $A$ ’s son are semantically equivalent. It should not be considered uncertain if an LLM is unsure about which of the two previously mentioned sentences to generate due to semantic equivalence. A DeBERTa-Large [132] fine-tuned on the MNLI [378] dataset serves as the classifier guided by semantic equivalence in the clustering stage. SelfCheckGPT [240] proposes a black-box hallucination detection method for LLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 493, + "chunk_id": "Small Language Models in the Era of Large_chunk_0493", + "start_position": 228778, + "end_position": 229234, + "page_index": 59, + "word_count": 72, + "char_count": 456 + }, + "has_embedding": false + }, + { + "content": "SelfCheckGPT [240] proposes a black-box hallucination detection method for LLMs. The core idea is to leverage uncertainty derived from sampled outputs. To be specific, Manakul et al. [240] claim that an LLM trained on a concept generates responses that are similar and factually consistent. One of the five variants of SelfCheckGPT uses BertScore to achieve it. A DeBERTa-Large [218] is utilized to calculate the BERTScore. Factscore [244] is proposed to evaluate the factuality of LM-generated long-form content.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 494, + "chunk_id": "Small Language Models in the Era of Large_chunk_0494", + "start_position": 229234, + "end_position": 229747, + "page_index": 59, + "word_count": 77, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "Factscore [244] is proposed to evaluate the factuality of LM-generated long-form content. It divides the generated long content into multiple short texts, enabling a more precise assessment of factual accuracy. In addition to manual evaluation, Min et al. [244] also proposes an automated evaluation framework to estimate Factscore which can reduce costs. LLaMa 7B [338] fine-tuned on Super-NaturalInstructions [367] is one of the LMs employed as an evaluation assistant and shows promising performance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 495, + "chunk_id": "Small Language Models in the Era of Large_chunk_0495", + "start_position": 229747, + "end_position": 230250, + "page_index": 59, + "word_count": 73, + "char_count": 503 + }, + "has_embedding": false + }, + { + "content": "uctions [367] is one of the LMs employed as an evaluation assistant and shows promising performance. They also employ Generalizable T5-based dense retrievers [259] to facilitate passage retrieval. Insights: SLMs can improve LLMs in various aspects, including enhancing the reliability of LLM generation, extracting prompts, fine-tuning, \napplication, and evaluation. This discussion seeks to answer when SLMs should be utilized to augment LLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 496, + "chunk_id": "Small Language Models in the Era of Large_chunk_0496", + "start_position": 230250, + "end_position": 230694, + "page_index": 59, + "word_count": 62, + "char_count": 444 + }, + "has_embedding": false + }, + { + "content": "This discussion seeks to answer when SLMs should be utilized to augment LLMs. We identify several suitable \nscenarios: \n• Adapting LLMs to specific tasks can require substantial computational resources and time. In such cases, a smaller model could be fine-tuned instead to serve functions such as hallucination detection.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 497, + "chunk_id": "Small Language Models in the Era of Large_chunk_0497", + "start_position": 230694, + "end_position": 231016, + "page_index": 59, + "word_count": 48, + "char_count": 322 + }, + "has_embedding": false + }, + { + "content": "ses, a smaller model could be fine-tuned instead to serve functions such as hallucination detection. • SLMs can outperform LLMs in certain aspects, hence combining SLMs with LLMs can create a more powerful model, e.g., SLMs typically have fewer security issues than LLMs, and integrating both can generate a model that is both powerful and secure. • SLMs, despite their limitations, can alert LLMs to these issues, such as the tendency to produce repetitive vocabulary.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 498, + "chunk_id": "Small Language Models in the Era of Large_chunk_0498", + "start_position": 231016, + "end_position": 231485, + "page_index": 59, + "word_count": 75, + "char_count": 469 + }, + "has_embedding": false + }, + { + "content": "limitations, can alert LLMs to these issues, such as the tendency to produce repetitive vocabulary. Designing contrastive losses can help LLMs overcome these issues by learning from the nuanced feedback of SLMs. • The fast inference speed and certain characteristics of SLMs can emulate and thus enhance the behavior of LLMs, acting as effective proxies.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 499, + "chunk_id": "Small Language Models in the Era of Large_chunk_0499", + "start_position": 231485, + "end_position": 231839, + "page_index": 59, + "word_count": 55, + "char_count": 354 + }, + "has_embedding": false + }, + { + "content": "racteristics of SLMs can emulate and thus enhance the behavior of LLMs, acting as effective proxies. For example, the training data selection for LLMs can be guided by the difficulty metrics assessed by SLMs, and the parameter adjustments during the fine-tuning of SLMs can also approximate the fine-tuning processes of LLMs. Table 13. Synergy between SLMs and LLMs", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 500, + "chunk_id": "Small Language Models in the Era of Large_chunk_0500", + "start_position": 231839, + "end_position": 232204, + "page_index": 59, + "word_count": 58, + "char_count": 365 + }, + "has_embedding": false + }, + { + "content": "Synergy between SLMs and LLMs
SynergyRepresentative WorkKey Point
CoGenesis [437]Divide user instructions into general part by LLMs and private parts by SLMs.
LLMCad [394]Combine lightweight and high-precision LLMs for on-device inference.
Khattab et al. [167], Ma et al. [234]Focuse on LLM's reasoning and SLM's eficient decoding.
Cloud-Edge Synergy (Training)CROSSLM [79]Preserve client data privacy by training SLM locally and LLM remotely; mutual improvement using SLM-labeled data from LLM outputs.
Task-Centric Synergyα-UMi [307]Break down a single LLM into specialized agents.
SynCID [204]Merge LLM's semantic with SLM's speed; refine labels via contrastive learning.
Filter-then-rerank [234]SLMs process simple samples and flag complex ones for LLM reranking.
Data Shunt+ (DS+) [46]Process easy samples with SLMs and delegates hard samples to LLMs.
", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 501, + "chunk_id": "Small Language Models in the Era of Large_chunk_0501", + "start_position": 232204, + "end_position": 233498, + "page_index": 59, + "word_count": 110, + "char_count": 1294 + }, + "has_embedding": false + }, + { + "content": "+) [46]Process easy samples with SLMs and delegates hard samples to LLMs. # 7 SYNERGY BETWEEN SMALL AND LARGE LANGUAGE MODELS The synergy between small and large language models leverages the unique strengths of each to enhance overall system performance and efficiency. SLMs, being lightweight and resource-efficient, are ideal for deployment on edge devices, enabling rapid responses and low latency for straightforward tasks.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 502, + "chunk_id": "Small Language Models in the Era of Large_chunk_0502", + "start_position": 233498, + "end_position": 233953, + "page_index": 59, + "word_count": 63, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "for deployment on edge devices, enabling rapid responses and low latency for straightforward tasks. LLMs, on the other hand, possess greater computational power and a deeper understanding of complex language patterns, allowing them to handle more intricate and nuanced tasks. By integrating SLMs and LLMs, systems can dynamically allocate tasks based on complexity, ensuring that simple queries are processed quickly on the edge while more demanding requests are escalated to the cloud.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 503, + "chunk_id": "Small Language Models in the Era of Large_chunk_0503", + "start_position": 233953, + "end_position": 234439, + "page_index": 59, + "word_count": 72, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "queries are processed quickly on the edge while more demanding requests are escalated to the cloud. This collaborative approach optimizes resource usage, reduces operational costs, and maintains high-quality outputs across a diverse range of applications. The synergy between small and large language models can be categorized into two parts: cloud-edge synergy and task-centric synergy. Cloud-edge synergy refers to a setup where SLMs operate on edge devices, while LLMs reside on the server.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 504, + "chunk_id": "Small Language Models in the Era of Large_chunk_0504", + "start_position": 234439, + "end_position": 234932, + "page_index": 59, + "word_count": 72, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "-edge synergy refers to a setup where SLMs operate on edge devices, while LLMs reside on the server. When the SLM is not powerful enough, the LLM compensates by handling more complex tasks and providing additional support. Task-centric synergy refers to the scenario where SLMs and LLMs leverage their respective strengths to improve task-oriented efficiency. Table 13 summarizes representative work in each category and their key points. Next, we introduce each category in detail. [IMAGE]\nFig. 28.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 505, + "chunk_id": "Small Language Models in the Era of Large_chunk_0505", + "start_position": 234932, + "end_position": 235431, + "page_index": 59, + "word_count": 77, + "char_count": 499 + }, + "has_embedding": false + }, + { + "content": "28. Could-edge synergy between LLMs and SLMs. # 7.1 Cloud-Edge Synergy The current utilization of LLMs typically involves uploading private data to the cloud for response. Fine-tuning LLMs usually also requires uploading data to clouds for computing. However, this raises privacy concerns as the collection and usage of private data are constrained by personal privacy awareness and legal regulations [348].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 506, + "chunk_id": "Small Language Models in the Era of Large_chunk_0506", + "start_position": 235431, + "end_position": 235838, + "page_index": 59, + "word_count": 60, + "char_count": 407 + }, + "has_embedding": false + }, + { + "content": "and usage of private data are constrained by personal privacy awareness and legal regulations [348]. Consequently, the cloud-edge synergy between SLMs and LLMs is proposed to alleviate this issue, i.e., SLMs handle privacy-sensitive data locally, LLMs handle de-identified or non-privacy-sensitive data, and these two models collaborate.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 507, + "chunk_id": "Small Language Models in the Era of Large_chunk_0507", + "start_position": 235838, + "end_position": 236175, + "page_index": 59, + "word_count": 46, + "char_count": 337 + }, + "has_embedding": false + }, + { + "content": "locally, LLMs handle de-identified or non-privacy-sensitive data, and these two models collaborate. This section discusses such cloud-edge synergy, dividing them into two categories: cloud-edge synergy during inference and cloud-edge synergy during training, as shown in Figure 28. Cloud-edge Synergy During Inference. CoGenesis [437] breaks down the user instruction into a general section and a personal section.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 508, + "chunk_id": "Small Language Models in the Era of Large_chunk_0508", + "start_position": 236175, + "end_position": 236589, + "page_index": 59, + "word_count": 56, + "char_count": 414 + }, + "has_embedding": false + }, + { + "content": "CoGenesis [437] breaks down the user instruction into a general section and a personal section. The LLM generates replies solely based on general instruction, and the SLM considers both user instruction and additional personal context for its output generation. A fusion strategy blends the output of LLM and SLM synergistically. Xu et al. [397] introduces a split learning system for LLM agents in 6G networks, optimizing mobile device and cloud server collaboration.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 509, + "chunk_id": "Small Language Models in the Era of Large_chunk_0509", + "start_position": 236589, + "end_position": 237057, + "page_index": 59, + "word_count": 72, + "char_count": 468 + }, + "has_embedding": false + }, + { + "content": "rning system for LLM agents in 6G networks, optimizing mobile device and cloud server collaboration. Mobile devices operate lightweight SLMs with 0–10B parameters for real-time tasks, while cloud servers handle larger LLMs with over 10B parameters for complex reasoning and planning. This setup allows efficient local task management on mobile devices and offloads heavy operations to cloud servers.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 510, + "chunk_id": "Small Language Models in the Era of Large_chunk_0510", + "start_position": 237057, + "end_position": 237456, + "page_index": 59, + "word_count": 58, + "char_count": 399 + }, + "has_embedding": false + }, + { + "content": "ws efficient local task management on mobile devices and offloads heavy operations to cloud servers. The system’s architecture features three modules—perception, grounding, and alignment—facilitating effective communication to meet the sophisticated needs of 6G networks. Besides these frameworks, more specific models are proposed to facilitate the cloud-edge synergy. A common strategy is to use SLM’s fast decoding ability.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 511, + "chunk_id": "Small Language Models in the Era of Large_chunk_0511", + "start_position": 237456, + "end_position": 237882, + "page_index": 59, + "word_count": 57, + "char_count": 426 + }, + "has_embedding": false + }, + { + "content": "A common strategy is to use SLM’s fast decoding ability. LLM-to-SLM [28] proposes a framework in which the pre-trained frozen encoder-decoder LLM resides on the server and computes a high-quality representation of the prompt for the planning of an appropriate response. The SLM residing on the edge device, conditioned on this representation, decodes the response efficiently. Some variants put more emphasis on the reasoning ability of LLMs [167, 234, 298].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 512, + "chunk_id": "Small Language Models in the Era of Large_chunk_0512", + "start_position": 237882, + "end_position": 238340, + "page_index": 59, + "word_count": 70, + "char_count": 458 + }, + "has_embedding": false + }, + { + "content": "Some variants put more emphasis on the reasoning ability of LLMs [167, 234, 298]. In Synergy of Thoughts [298], the SLMs generate multiple low-cost reasoning paths. If these paths conflict, the larger LLMs are invoked to provide reflective reasoning and correct any intuitive errors.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 513, + "chunk_id": "Small Language Models in the Era of Large_chunk_0513", + "start_position": 238340, + "end_position": 238623, + "page_index": 59, + "word_count": 44, + "char_count": 283 + }, + "has_embedding": false + }, + { + "content": "flict, the larger LLMs are invoked to provide reflective reasoning and correct any intuitive errors. Hao et al. [127] proposes a framework in which an SLM residing on the edge devices generates tokens, calling LLMs to verify and correct threshold-gated \"harder\" tokens, to achieve a controllable trade-off between inference quality and cost. LLMCad [394] presents an on-device inference engine addressing memory and latency issues in deploying LLMs on mobile devices.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 514, + "chunk_id": "Small Language Models in the Era of Large_chunk_0514", + "start_position": 238623, + "end_position": 239090, + "page_index": 59, + "word_count": 70, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "on-device inference engine addressing memory and latency issues in deploying LLMs on mobile devices. It combines a lightweight LM for token generation with a high-precision LLM for verification, leveraging a token tree structure and speculative generation for efficiency. Tested on devices such as Jetson TX2, it achieves up to $9 . 3 \\times$ speedup for LLMs with over 10 billion parameters while maintaining accuracy. Cloud-edge Synergy During Training.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 515, + "chunk_id": "Small Language Models in the Era of Large_chunk_0515", + "start_position": 239090, + "end_position": 239545, + "page_index": 59, + "word_count": 68, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "Cloud-edge Synergy During Training. CROSSLM [79] introduces a client-server collaborative training framework that preserves data privacy by having clients locally train SLMs instead of fine-tuning LLMs. The framework enables mutual enhancement through a feedback loop where SLMs evaluate LLM-generated synthetic data and provide feedback to improve the LLM’s generative capabilities, ensuring high-quality and task-specific data. Concurrently, the synthetic data trains the SLMs, boosting their performance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 516, + "chunk_id": "Small Language Models in the Era of Large_chunk_0516", + "start_position": 239545, + "end_position": 240052, + "page_index": 59, + "word_count": 65, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "Concurrently, the synthetic data trains the SLMs, boosting their performance. This cyclical exchange fosters cloud-edge synergy and mutual model improvement. # 7.2 Task-Centric Synergy The advent of LLMs has significantly propelled various natural language processing tasks and inspired research into their synergistic interactions with SLMs to enhance the performance of models tailored for specific tasks.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 517, + "chunk_id": "Small Language Models in the Era of Large_chunk_0517", + "start_position": 240052, + "end_position": 240459, + "page_index": 59, + "word_count": 55, + "char_count": 407 + }, + "has_embedding": false + }, + { + "content": "synergistic interactions with SLMs to enhance the performance of models tailored for specific tasks. This section introduces scenarios where small language models exhibit specialized capabilities after fine-tuning and discusses how combining their unique strengths with the versatile abilities of LLMs can yield superior performance on specific tasks.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 518, + "chunk_id": "Small Language Models in the Era of Large_chunk_0518", + "start_position": 240459, + "end_position": 240810, + "page_index": 59, + "word_count": 47, + "char_count": 351 + }, + "has_embedding": false + }, + { + "content": "que strengths with the versatile abilities of LLMs can yield superior performance on specific tasks. For example, LLMs excel at handling difficult examples or can rewrite content to eliminate task-irrelevant redundancy, thereby enhancing overall task performance, as illustrated in Figure 29, 30 and 31. $\\alpha$ -UMi [307] introduces a multi-agent framework to enhance tool learning by overcoming the limitations of singleLLM approaches for complex tasks.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 519, + "chunk_id": "Small Language Models in the Era of Large_chunk_0519", + "start_position": 240810, + "end_position": 241266, + "page_index": 59, + "word_count": 65, + "char_count": 456 + }, + "has_embedding": false + }, + { + "content": "rk to enhance tool learning by overcoming the limitations of singleLLM approaches for complex tasks. It utilizes three specialized LMs—planner, caller, and summarizer—as depicted in Figure 29—each handling specific subtasks such as planning, tool invocation, and summarization. This modular design allows the use of small and large open-source LLMs (e.g., LLaMa-7B/12B) and supports easy tool updates.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 520, + "chunk_id": "Small Language Models in the Era of Large_chunk_0520", + "start_position": 241266, + "end_position": 241667, + "page_index": 59, + "word_count": 56, + "char_count": 401 + }, + "has_embedding": false + }, + { + "content": "ows the use of small and large open-source LLMs (e.g., LLaMa-7B/12B) and supports easy tool updates. Evaluated on benchmarks like ToolBench [279] and ToolAlpaca [326], $\\alpha$ -UMi outperforms traditional single-LLM methods and even exceeds GPT-4 in tool learning performance. [IMAGE]\nFig. 29. Synergizing SLMs and LLMs in tool learning. SynCID [204] focuses on Conversational Intent Discovery (CID), a task where both known and new intents must be identified from user utterances in an open-world setting.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 521, + "chunk_id": "Small Language Models in the Era of Large_chunk_0521", + "start_position": 241667, + "end_position": 242174, + "page_index": 59, + "word_count": 75, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "k where both known and new intents must be identified from user utterances in an open-world setting. SynCID combines LLMs’ deep semantic insights with SLMs’ agility and specialized capabilities. As illustrated in Figure 30, the framework uses LLM prompting to refine discourse and intent labels, enhancing semantic accuracy and assigning new labels to unlabeled data. SLMs are trained via contrastive learning to align [IMAGE]\nFig. 30. Synergizing SLMs and LLMs in Conversational Intent Detection.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 522, + "chunk_id": "Small Language Models in the Era of Large_chunk_0522", + "start_position": 242174, + "end_position": 242671, + "page_index": 59, + "word_count": 74, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "Synergizing SLMs and LLMs in Conversational Intent Detection. semantic spaces of discourse and intent descriptors, reducing clustering distortion and improving new intent detection. Tested on BANKING [43], CLINC [179], and StackOverflow [396], SynCID outperforms CID baselines significantly. Filter-then-rerank [234] addresses LLMs’ poor performance on simpler IE tasks by integrating LLMs and SLMs. SLMs act as filters, predicting and identifying difficult samples, while LLMs [IMAGE]\nFig. 31.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 523, + "chunk_id": "Small Language Models in the Era of Large_chunk_0523", + "start_position": 242671, + "end_position": 243165, + "page_index": 59, + "word_count": 66, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "31. Synergizing SLMs and LLMs in Information Extraction. rerank the top N candidate labels for these cases. As illustrated in Figure 31, SLM predictions are final for non-difficult samples, minimizing reliance on LLMs and reducing latency and costs; for those difficult samples, the top N predicted candidate labels from the SLM are passed to the LLM for reranking (predicting). Tested on small-sample IE tasks, this approach improves performance by an average of $2 . 4 \\%$ compared to previous methods.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 524, + "chunk_id": "Small Language Models in the Era of Large_chunk_0524", + "start_position": 243165, + "end_position": 243669, + "page_index": 59, + "word_count": 80, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "4 \\%$ compared to previous methods. Data Shunt $^ +$ $\\mathbf { ( D S + ) }$ [46] introduces a framework to reduce costs by minimizing large model queries during inference and boosting LLM performance with SLMs for tasks like sentiment analysis and image processing. ${ \\mathrm { D S } } +$ uses SLMs for “easy” samples within the main training distribution and LLMs for \"hard\" outliers or boundary cases, maintaining accuracy while reducing LLM use.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 525, + "chunk_id": "Small Language Models in the Era of Large_chunk_0525", + "start_position": 243669, + "end_position": 244119, + "page_index": 59, + "word_count": 78, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "ibution and LLMs for \"hard\" outliers or boundary cases, maintaining accuracy while reducing LLM use. It incorporates S4L and L4S modules with Prompt Pruning (PP) and 2-stage Confidence Distillation (2CD) for better input processing and knowledge transfer. Tests show ${ \\mathrm { D S } } +$ outperforms fine-tuning in accuracy and cost efficiency, significantly cutting down on LLM queries. ![This image is of **moderate complexity**.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 526, + "chunk_id": "Small Language Models in the Era of Large_chunk_0526", + "start_position": 244119, + "end_position": 244553, + "page_index": 59, + "word_count": 66, + "char_count": 434 + }, + "has_embedding": false + }, + { + "content": "![This image is of **moderate complexity**. The image presents a taxonomy of trustworthy AI scenarios, categorized into four main areas: Robustness, Safety, Reliability, and Privacy/Fairness. Robustness is further divided into \"Adversarial Robustness\" and \"Out-of-Distribution Robustness,\" each represented by a stylized icon (a flexing arm). Safety includes \"Toxicity\" and \"Misinformation,\" with a warning triangle icon. Reliability encompasses \"Hallucination\" and \"Sycophancy,\" depicted with clapping hands.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 527, + "chunk_id": "Small Language Models in the Era of Large_chunk_0527", + "start_position": 244553, + "end_position": 245062, + "page_index": 59, + "word_count": 63, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "Reliability encompasses \"Hallucination\" and \"Sycophancy,\" depicted with clapping hands. Privacy is shown with a camera surveillance icon, and Fairness is illustrated by a balance scale. These categories and sub-categories are presented in distinct boxes, visually organizing the different aspects of trustworthy AI discussed in the section.](images/bd7e4807f7a9d6400352932e88e02d9e09460a88ebef1ff96ca0ce0b08089699.jpg)\nFig. 32. Scenarios we discuss in this section.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 528, + "chunk_id": "Small Language Models in the Era of Large_chunk_0528", + "start_position": 245062, + "end_position": 245527, + "page_index": 59, + "word_count": 54, + "char_count": 465 + }, + "has_embedding": false + }, + { + "content": "Scenarios we discuss in this section. The taxonomy is inspired by previous works [320, 351]. Please note that the trustworthy scenarios listed here are not exhaustive. # 8 TRUSTWORTHINESS IN SMALL LANGUAGE MODELS Language models have become ubiquitous in our daily lives, and we increasingly rely on them. However, they pose risks regarding their limitations in trustworthy dimensions like privacy and fairness.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 529, + "chunk_id": "Small Language Models in the Era of Large_chunk_0529", + "start_position": 245527, + "end_position": 245938, + "page_index": 59, + "word_count": 62, + "char_count": 411 + }, + "has_embedding": false + }, + { + "content": "er, they pose risks regarding their limitations in trustworthy dimensions like privacy and fairness. These concerns are especially critical in high-stakes domains such as healthcare [130] and finance [202]. Consequently, numerous studies have emerged to evaluate the trustworthiness of LMs [88, 95, 138, 176, 176, 248, 254, 273, 351, 370, 425].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 530, + "chunk_id": "Small Language Models in the Era of Large_chunk_0530", + "start_position": 245938, + "end_position": 246282, + "page_index": 59, + "word_count": 51, + "char_count": 344 + }, + "has_embedding": false + }, + { + "content": "merged to evaluate the trustworthiness of LMs [88, 95, 138, 176, 176, 248, 254, 273, 351, 370, 425]. In this section, we consider the works that benchmark various LMs’ trustworthiness and omit the specific attack methods [41, 53, 150, 461] or work [407] that only focuses on early pre-trained LMs like BERT [83] as they are already covered in previous survey papers [78, 115, 123, 288].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 531, + "chunk_id": "Small Language Models in the Era of Large_chunk_0531", + "start_position": 246282, + "end_position": 246668, + "page_index": 59, + "word_count": 66, + "char_count": 386 + }, + "has_embedding": false + }, + { + "content": "rained LMs like BERT [83] as they are already covered in previous survey papers [78, 115, 123, 288]. Inspired by previous works [320, 351], we discuss the following five key trustworthy scenarios: robustness, privacy, reliability, safety, and fairness, as shown in Figure 32. We consider two dimensions for robustness: Adversarial (Adv) Robustness [352] and Out-of-Distribution (OOD) Robustness [38, 213]. For safety, we explore two key concerns: Misinformation [344] and Toxicity [374].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 532, + "chunk_id": "Small Language Models in the Era of Large_chunk_0532", + "start_position": 246668, + "end_position": 247155, + "page_index": 59, + "word_count": 71, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "For safety, we explore two key concerns: Misinformation [344] and Toxicity [374]. For reliability, we focus on Hallucination [146] and Sycophancy [301]. Please note that these are just the aspects we are focusing on, and therefore this is not a comprehensive classification or taxonomy. For example, robustness also contains robustness to adversarial demonstration. Though there are a lot of works benchmarking LMs’ trustworthiness, their main focus is on LLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 533, + "chunk_id": "Small Language Models in the Era of Large_chunk_0533", + "start_position": 247155, + "end_position": 247616, + "page_index": 59, + "word_count": 69, + "char_count": 461 + }, + "has_embedding": false + }, + { + "content": "Though there are a lot of works benchmarking LMs’ trustworthiness, their main focus is on LLMs. Therefore, we survey some representative works evaluating the trustworthiness of LMs, focusing specifically on those that include SLMs of around 7B parameters or smaller. We also summarize these works in Table 14. Next, we briefly introduce them.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 534, + "chunk_id": "Small Language Models in the Era of Large_chunk_0534", + "start_position": 247616, + "end_position": 247958, + "page_index": 59, + "word_count": 53, + "char_count": 342 + }, + "has_embedding": false + }, + { + "content": "Next, we briefly introduce them. Holistic Evaluation of Language Models (HELM) [205] benchmarks a large number of LMs from various aspects, including a lot of metrics related to trustworthiness such as robustness and fairness. Do-Not-Answer [364] introduces a dataset to evaluate how LMs act when they face content that should not be answered. Wang et al. [364] also label the output of several LMs output on their dataset and then use the labeled data to train some classifiers.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 535, + "chunk_id": "Small Language Models in the Era of Large_chunk_0535", + "start_position": 247958, + "end_position": 248437, + "page_index": 59, + "word_count": 78, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "tput of several LMs output on their dataset and then use the labeled data to train some classifiers. PromptRobust [456] constructs two kinds of adversarial prompts to evaluate LMs’ robustness: One kind is designed under non-adversarial settings with semantic integrity while another category is created under adversarial settings. Their results show that LMs perform poorly under such prompts.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 536, + "chunk_id": "Small Language Models in the Era of Large_chunk_0536", + "start_position": 248437, + "end_position": 248830, + "page_index": 59, + "word_count": 58, + "char_count": 393 + }, + "has_embedding": false + }, + { + "content": "Their results show that LMs perform poorly under such prompts. HaluEval [191] builds a dataset comprising both the samples generated by their proposed framework and human-labeled hallucinations. It facilitates analysis of when LMs produce hallucinated output and how well they detect hallucinated content. Then they use some strategies such as knowledge retrieval to help LMs better recognize hallucinations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 537, + "chunk_id": "Small Language Models in the Era of Large_chunk_0537", + "start_position": 248830, + "end_position": 249238, + "page_index": 59, + "word_count": 58, + "char_count": 408 + }, + "has_embedding": false + }, + { + "content": "en they use some strategies such as knowledge retrieval to help LMs better recognize hallucinations. Mo et al. [248] evaluates the trustworthiness of open-source LMs, presenting a variety of scenarios such as fairness and privacy. Results show that smaller LMs sometimes outperform larger ones in terms of trustworthiness. PrivLM-Bench [190] is designed to evaluate the privacy issues in LMs. It enables a fair comparison of privacy-preserving LMs by considering more than just differential privacy parameters.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 538, + "chunk_id": "Small Language Models in the Era of Large_chunk_0538", + "start_position": 249238, + "end_position": 249748, + "page_index": 59, + "word_count": 75, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "comparison of privacy-preserving LMs by considering more than just differential privacy parameters. FFT [71] introduces around two thousand crafted examples to evaluate LMs’ performances on three trustworthy dimensions: factuality, fairness, and toxicity. Their results suggest that larger LMs do not always show better harmlessness. ROBBIE [98] first benchmarks various series of LMs using a lot of datasets, including two newly introduced datasets developed by ROBBIE. It also Manuscript submitted to ACM", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 539, + "chunk_id": "Small Language Models in the Era of Large_chunk_0539", + "start_position": 249748, + "end_position": 250254, + "page_index": 59, + "word_count": 71, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "It also Manuscript submitted to ACM Table 14. Comparison of Different Works that Evaluate the Trustworthiness Issues in LMs. Please note that for the \"No. of LMs\" attribute, compressed or pruned LMs are not included in the count.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 540, + "chunk_id": "Small Language Models in the Era of Large_chunk_0540", + "start_position": 250254, + "end_position": 250483, + "page_index": 59, + "word_count": 38, + "char_count": 229 + }, + "has_embedding": false + }, + { + "content": "of LMs\" attribute, compressed or pruned LMs are not included in the count.
Aoueqdooks
Paper HELM [205]×√√×××√×
Do-Not-Answer [364]××√√××√√×
PromptRobust [456]√××××××××
HaluEval [191]××××√××××
Mo et al. [248]√×√×√√√√×
PrivLM-Bench [190]××××××√××
FFT [71]××√√√××√×
ROBBIE [98]××√××××√×
TrustLLM [320]√√√√√√√√×
RAmBLA [35]√×××√××××
JailbreakBench [45]××√√××√××
Xie et al. [390]××√×√××××
OR-Bench [70]××√√××√××
SORRY-Bench [387]××√√××√××
BeHonest [59]×××√√√×××
Hong et al. [138]√√√×××√√√
RUPBench [370]√××××××××
Nakka et al. [254]××√×××√√×
", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 541, + "chunk_id": "Small Language Models in the Era of Large_chunk_0541", + "start_position": 250483, + "end_position": 252896, + "page_index": 59, + "word_count": 41, + "char_count": 2413 + }, + "has_embedding": false + }, + { + "content": ">××√×××√√× evaluates mitigation techniques designed to reduce bias and toxicity. TrustLLM [320] is a comprehensive benchmark that contains a large number of datasets and various well-designed metrics to systematically evaluate various LMs across multiple trustworthy dimensions, including truthfulness, safety, fairness, robustness, privacy, and machine ethics.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 542, + "chunk_id": "Small Language Models in the Era of Large_chunk_0542", + "start_position": 252896, + "end_position": 253347, + "page_index": 59, + "word_count": 45, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "orthy dimensions, including truthfulness, safety, fairness, robustness, privacy, and machine ethics. They also carefully design specific subcategories for each dimension. RAmBLA [35] evaluates the trustworthiness of four LMs as biomedical assistants from three dimensions: Robustness, High Recall, and Hallucination. RAmBLA suggests LMs with more parameters are less likely to cause hallucinations and may choose to reject providing an answer in uncertain situations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 543, + "chunk_id": "Small Language Models in the Era of Large_chunk_0543", + "start_position": 253347, + "end_position": 253814, + "page_index": 59, + "word_count": 62, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "likely to cause hallucinations and may choose to reject providing an answer in uncertain situations. JailbreakBench [45] constructs a jailbreaking dataset named JBB-Behaviors and jailbreak artifacts to evaluate current LMs’ performance regarding jailbreaking. It also proposes a unified evaluation pipeline that can incorporate new jailbreak defense techniques. Xie et al. [390] tests online safety analysis methods, filling the gap where no methods focus on the generation phase.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 544, + "chunk_id": "Small Language Models in the Era of Large_chunk_0544", + "start_position": 253814, + "end_position": 254294, + "page_index": 59, + "word_count": 67, + "char_count": 480 + }, + "has_embedding": false + }, + { + "content": "ests online safety analysis methods, filling the gap where no methods focus on the generation phase. OR-Bench [70] constructs three datasets: OR-Bench-80K, OR-Bench-Hard-1K, and OR-Bench-Toxic, to systematically evaluate over-refusal problems in LMs, emphasizing the challenge of balancing safety alignment with the models’ usefulness. SORRY-Bench [387] systematically tests 43 different LMs to see how they perform when facing requests that should be refused.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 545, + "chunk_id": "Small Language Models in the Era of Large_chunk_0545", + "start_position": 254294, + "end_position": 254754, + "page_index": 59, + "word_count": 62, + "char_count": 460 + }, + "has_embedding": false + }, + { + "content": "atically tests 43 different LMs to see how they perform when facing requests that should be refused. They also collect more than annotations created by humans and find that fine-tuned 7B LMs can achieve performance comparable to GPT-4 scale LMs as evaluators. BeHonest [59] evaluates the honesty of LMs from three aspects: Self-Knowledge, Non-Deceptiveness, and Consistency. They use many different metrics for each aspect. For example, sycophancy rate and lying rate are adopted in Non-Deceptiveness.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 546, + "chunk_id": "Small Language Models in the Era of Large_chunk_0546", + "start_position": 254754, + "end_position": 255255, + "page_index": 59, + "word_count": 75, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "For example, sycophancy rate and lying rate are adopted in Non-Deceptiveness. The results in both the Self-Knowledge and Consistency parts reveal that larger model sizes generally bring improved performance for the Llama-2 [339] and Llama-3 [94] series. Hong et al. [138] examines the effects of compression Manuscript submitted to ACM methods, including quantization and pruning, on the trustworthiness of language models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 547, + "chunk_id": "Small Language Models in the Era of Large_chunk_0547", + "start_position": 255255, + "end_position": 255678, + "page_index": 59, + "word_count": 61, + "char_count": 423 + }, + "has_embedding": false + }, + { + "content": "itted to ACM methods, including quantization and pruning, on the trustworthiness of language models. They find that pruning and extreme quantization significantly affect the trustworthiness of LMs. RUPBench [370] comprises 15 reasoning datasets designed to assess the performance of LMs both in normal conditions and under various adversarial perturbations. Their results indicate that larger LMs generally demonstrate better resilience to perturbations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 548, + "chunk_id": "Small Language Models in the Era of Large_chunk_0548", + "start_position": 255678, + "end_position": 256132, + "page_index": 59, + "word_count": 61, + "char_count": 454 + }, + "has_embedding": false + }, + { + "content": "Their results indicate that larger LMs generally demonstrate better resilience to perturbations. Nakka et al. [254] investigates the trust and ethical implications of SLMs deployed on personal devices. It reveals the vulnerabilities of on-device SLMs compared with their on-server counterparts. Please note that the dimensions discussed in this section reflect only those relevant to our current focus; additional dimensions may be discussed in those works, but not listed in table 14.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 549, + "chunk_id": "Small Language Models in the Era of Large_chunk_0549", + "start_position": 256132, + "end_position": 256617, + "page_index": 59, + "word_count": 71, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "ur current focus; additional dimensions may be discussed in those works, but not listed in table 14. For example, TrustLLM [320] also explores Machine Ethics. # 9 FUTURE DIRECTIONS In this section, we offer insights into several promising future research directions that could inspire and motivate the community to address existing gaps in the development of small language models. # 9.1 Developing Efficient SLM Model Architecture", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 550, + "chunk_id": "Small Language Models in the Era of Large_chunk_0550", + "start_position": 256617, + "end_position": 257048, + "page_index": 59, + "word_count": 66, + "char_count": 431 + }, + "has_embedding": false + }, + { + "content": "# 9.1 Developing Efficient SLM Model Architecture Although Transformers [346] are foundational in most language models, they face significant computational and memory challenges that worsen with model size, impacting training and autoregressive decoding. Recently, Mamba [117] has emerged as a promising alternative, adapting state space models to dynamically select inputs based on demands, thereby enhancing efficiency.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 551, + "chunk_id": "Small Language Models in the Era of Large_chunk_0551", + "start_position": 257048, + "end_position": 257469, + "page_index": 59, + "word_count": 56, + "char_count": 421 + }, + "has_embedding": false + }, + { + "content": "ting state space models to dynamically select inputs based on demands, thereby enhancing efficiency. Thereafter, xLSTM [25] demonstrates that an improved LSTM could function as an LLM, revealing the potential of traditional SSMs. The integration of global static information captured by SSMs with the dynamic information processing of Transformers could complement each other, leading to new architectures that balance effectiveness and efficiency. # 9.2 Addressing SLM Training Inefficiencies", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 552, + "chunk_id": "Small Language Models in the Era of Large_chunk_0552", + "start_position": 257469, + "end_position": 257962, + "page_index": 59, + "word_count": 68, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "# 9.2 Addressing SLM Training Inefficiencies One study [85] explores the disparate learning dynamics between small and large language models. Utilizing the Pythia model suite, the research demonstrates that layers’ activations in larger models converge more rapidly and monotonically to their final states. This phenomenon is associated with a higher proportional effective rank (PER) in the parameters and gradients of larger models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 553, + "chunk_id": "Small Language Models in the Era of Large_chunk_0553", + "start_position": 257962, + "end_position": 258396, + "page_index": 59, + "word_count": 62, + "char_count": 434 + }, + "has_embedding": false + }, + { + "content": "ed with a higher proportional effective rank (PER) in the parameters and gradients of larger models. The analysis enhances our understanding of training inefficiencies in small models and provides insights for future efforts, such as developing methods to increase the PER of layers’ parameters. # 9.3 Expanding Domain-Specific SLMs Domain-specific SLMs, which are tailored for specific fields, can provide a stronger foundation for relevant downstream tasks than general-purpose models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 554, + "chunk_id": "Small Language Models in the Era of Large_chunk_0554", + "start_position": 258396, + "end_position": 258883, + "page_index": 59, + "word_count": 69, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "fields, can provide a stronger foundation for relevant downstream tasks than general-purpose models. Currently, these models primarily focus on scientific and healthcare domains. However, there is significant potential for expansion into other key areas such as law, finance, education, telecommunications, and transportation. The scarcity of SLMs that cater to these domains presents an urgent call for research into developing more specialized models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 555, + "chunk_id": "Small Language Models in the Era of Large_chunk_0555", + "start_position": 258883, + "end_position": 259336, + "page_index": 59, + "word_count": 62, + "char_count": 453 + }, + "has_embedding": false + }, + { + "content": "cater to these domains presents an urgent call for research into developing more specialized models. # 9.4 Establishing Benchmarking and Leaderboard Platforms for SLMs Several compelling reasons justify the establishment of benchmarking and leaderboard platforms for SLMs. Firstly, most state-of-the-art SLMs are trained on proprietary datasets, which may include test sets from existing evaluation tasks, presenting challenges for fair capability comparisons.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 556, + "chunk_id": "Small Language Models in the Era of Large_chunk_0556", + "start_position": 259336, + "end_position": 259796, + "page_index": 59, + "word_count": 61, + "char_count": 460 + }, + "has_embedding": false + }, + { + "content": "ude test sets from existing evaluation tasks, presenting challenges for fair capability comparisons. Secondly, many SLMs are designed for specific device applications, significantly differing from general open-domain tasks. Thus, there is a lack of comprehensive benchmarks that accurately reflect SLM performance in specific device applications.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 557, + "chunk_id": "Small Language Models in the Era of Large_chunk_0557", + "start_position": 259796, + "end_position": 260142, + "page_index": 59, + "word_count": 45, + "char_count": 346 + }, + "has_embedding": false + }, + { + "content": "of comprehensive benchmarks that accurately reflect SLM performance in specific device applications. For example, SLMs deployed on smartphones often handle tasks sensitive to user data, such as auto-replies based on historical chat texts or GUI context understanding—tasks not typically included in current benchmarks, potentially leading to an underestimation of their importance. Finally, current evaluation tasks focus primarily on metrics like accuracy.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 558, + "chunk_id": "Small Language Models in the Era of Large_chunk_0558", + "start_position": 260142, + "end_position": 260599, + "page_index": 59, + "word_count": 61, + "char_count": 457 + }, + "has_embedding": false + }, + { + "content": "Finally, current evaluation tasks focus primarily on metrics like accuracy. Evaluating on-device SLMs involves balancing multiple factors, including overall capabilities, response times, storage and memory usage, power consumption, CPU utilization, additional fine-tuning requirements, and context window constraints, making comprehensive and detailed assessments essential. # 9.5 Enhancing SLM Performance and Efficiency", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 559, + "chunk_id": "Small Language Models in the Era of Large_chunk_0559", + "start_position": 260599, + "end_position": 261020, + "page_index": 59, + "word_count": 50, + "char_count": 421 + }, + "has_embedding": false + }, + { + "content": "# 9.5 Enhancing SLM Performance and Efficiency In terms of enhancing SLM performance and efficiency, the efficiency of using teacher LLMs via instruction tuning can be further developed, such as Efficient Instruction Tuning of SLMs from LLMs-generated data, Optimizing Teacher LLM Selection for SLM Learning, and Applying Emerging Techniques from LLMs to SLMs. • Efficient Instruction Tuning of SLMs from LLMs-generated data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 560, + "chunk_id": "Small Language Models in the Era of Large_chunk_0560", + "start_position": 261020, + "end_position": 261445, + "page_index": 59, + "word_count": 62, + "char_count": 425 + }, + "has_embedding": false + }, + { + "content": "• Efficient Instruction Tuning of SLMs from LLMs-generated data. Enhancing the specialization of SLMs through instruction tuning from LLMs-generated data is crucial, yet finding the most cost-effective instructional strategies remains an underexplored status. Some key areas for exploration are: (1) Instruction Design Adaptability: The performance of LLMs and SLMs varies significantly with changes in instructions.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 561, + "chunk_id": "Small Language Models in the Era of Large_chunk_0561", + "start_position": 261445, + "end_position": 261861, + "page_index": 59, + "word_count": 55, + "char_count": 416 + }, + "has_embedding": false + }, + { + "content": "gn Adaptability: The performance of LLMs and SLMs varies significantly with changes in instructions. Therefore, designing tailored instructions that effectively activate relevant sub-competencies and reasoning pathways in SLMs for specific tasks is crucial. This approach would optimize their ability to utilize instructional data, representing a significant future research direction.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 562, + "chunk_id": "Small Language Models in the Era of Large_chunk_0562", + "start_position": 261861, + "end_position": 262246, + "page_index": 59, + "word_count": 49, + "char_count": 385 + }, + "has_embedding": false + }, + { + "content": "e their ability to utilize instructional data, representing a significant future research direction. (2) SLM Capability Adaptability: Given that SLMs exhibit diverse capabilities across domains, simply supplying extensive data samples for instruction tuning is often inefficient, as SLMs may spend excessive time processing unnecessary data. To optimize efficiency when adapting to specific domains, we suggest first assessing the intrinsic capabilities of an SLM within those domains.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 563, + "chunk_id": "Small Language Models in the Era of Large_chunk_0563", + "start_position": 262246, + "end_position": 262731, + "page_index": 59, + "word_count": 66, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "cific domains, we suggest first assessing the intrinsic capabilities of an SLM within those domains. Subsequently, one could select appropriate data and activate essential fine-grained capabilities to effectively adapt to domain shifts. This targeted approach ensures efficient and domainspecific instruction tuning. (3) Optimizing Data Efficiency: SLMs may possess missing or latent domain knowledge, and activating this latent knowledge may not require substantial data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 564, + "chunk_id": "Small Language Models in the Era of Large_chunk_0564", + "start_position": 262731, + "end_position": 263203, + "page_index": 59, + "word_count": 63, + "char_count": 472 + }, + "has_embedding": false + }, + { + "content": "g or latent domain knowledge, and activating this latent knowledge may not require substantial data. Thus, identifying inherent knowledge within SLMs and determining the minimal data necessary for effective fine-tuning is a future direction. This research aims to optimize performance while minimizing training resources. • Optimizing Teacher LLM Selection for SLM Learning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 565, + "chunk_id": "Small Language Models in the Era of Large_chunk_0565", + "start_position": 263203, + "end_position": 263577, + "page_index": 59, + "word_count": 52, + "char_count": 374 + }, + "has_embedding": false + }, + { + "content": "• Optimizing Teacher LLM Selection for SLM Learning. Teacher LLMs with different abilities and knowledge facilitate diverse applications for SLM training, including data rewriting and generation. Selecting the appropriate teacher model based on specific use cases is crucial. This process requires evaluating the teacher’s capabilities and knowledge to ensure optimal application. For example, GPT-4 excels in generating domain-specific data, outperforming ChatGPT, which may produce inferior outcomes.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 566, + "chunk_id": "Small Language Models in the Era of Large_chunk_0566", + "start_position": 263577, + "end_position": 264079, + "page_index": 59, + "word_count": 66, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "cels in generating domain-specific data, outperforming ChatGPT, which may produce inferior outcomes. Strategic selection of teacher LLMs is essential for future work to ensure their strengths are effectively utilized to enhance SLM performance. • Applying Emerging Techniques from LLMs to SLMs. To improve LLM performance, techniques such as RetrievalAugmented Generation (RAG) and Mixture of Experts (MoE) are employed.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 567, + "chunk_id": "Small Language Models in the Era of Large_chunk_0567", + "start_position": 264079, + "end_position": 264499, + "page_index": 59, + "word_count": 58, + "char_count": 420 + }, + "has_embedding": false + }, + { + "content": "e, techniques such as RetrievalAugmented Generation (RAG) and Mixture of Experts (MoE) are employed. The adoption of RAG in SLMs shows significant promise [215], suggesting benefits from further tailoring retrieved information for SLMs. Future research should account for SLMs’ constraints, such as limited context windows, and customize RAG accordingly. MoE uses", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 568, + "chunk_id": "Small Language Models in the Era of Large_chunk_0568", + "start_position": 264499, + "end_position": 264862, + "page_index": 59, + "word_count": 51, + "char_count": 363 + }, + "has_embedding": false + }, + { + "content": "MoE uses multiple experts to enhance learning without increasing active neurons, but its storage demands pose challenges for SLM deployment, making this a promising area for exploration. Additionally, the application of LLM techniques such as in-context learning and prompting engineering to maximize SLM performance, while accounting for SLMs’ constraints, warrants further investigation. # 9.6 Applications of SLMs", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 569, + "chunk_id": "Small Language Models in the Era of Large_chunk_0569", + "start_position": 264862, + "end_position": 265278, + "page_index": 59, + "word_count": 57, + "char_count": 416 + }, + "has_embedding": false + }, + { + "content": "# 9.6 Applications of SLMs In real-world applications, SLMs often need to provide personalized services and need to be updated periodically to reflect new needs and new knowledge. Hence, there are several promising directions in terms of the real-world application of SLMs, which are listed as follows: • LoRA for Personalized Services. Companies often provide personalized services, but user-specific complexities can render simple rules ineffective. Training a separate SLM for each user is impractical.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 570, + "chunk_id": "Small Language Models in the Era of Large_chunk_0570", + "start_position": 265278, + "end_position": 265783, + "page_index": 59, + "word_count": 74, + "char_count": 505 + }, + "has_embedding": false + }, + { + "content": "Training a separate SLM for each user is impractical. LoRA suggests a method of separable training weights alongside fixed original weights, enabling scalable customization. For instance, RecLoRA [455] integrates personalized knowledge into SLMs/LLMs tailored for recommendation tasks by maintaining a set of parallel, independent LoRA weights. This approach effectively customizes language model parameters to align with individual user preferences.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 571, + "chunk_id": "Small Language Models in the Era of Large_chunk_0571", + "start_position": 265783, + "end_position": 266233, + "page_index": 59, + "word_count": 59, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "approach effectively customizes language model parameters to align with individual user preferences. This approach is a promising direction that inspires further investigation. • Lifelong On-device Learning for Knowledge Injection. SLMs on devices can access local data without risking data privacy through two main methods. The first method uses retrieval-augmented generation to integrate local data into prompts, requiring SLMs with advanced processing and reasoning capabilities.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 572, + "chunk_id": "Small Language Models in the Era of Large_chunk_0572", + "start_position": 266233, + "end_position": 266716, + "page_index": 59, + "word_count": 64, + "char_count": 483 + }, + "has_embedding": false + }, + { + "content": "tegrate local data into prompts, requiring SLMs with advanced processing and reasoning capabilities. The second method fine-tunes SLMs with local data, integrating customized knowledge into the model’s weights. However, this approach demands significant device resources, including memory and energy. A promising solution is lifelong learning, where SLMs continuously learn and adapt while in use. • Strategic Use of SLMs and LLMs in Multi-Agent Systems.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 573, + "chunk_id": "Small Language Models in the Era of Large_chunk_0573", + "start_position": 266716, + "end_position": 267170, + "page_index": 59, + "word_count": 64, + "char_count": 454 + }, + "has_embedding": false + }, + { + "content": "• Strategic Use of SLMs and LLMs in Multi-Agent Systems. LLMs can function as agents; however, their extensive capabilities are often underutilized in many scenarios, leading to resource wastage. Consequently, strategically routing to appropriately capable SLMs and LLMs within multi-agent systems can optimize cost and functionality. # 9.7 Multimodal SLMs Research on small language models also includes multimodal data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 574, + "chunk_id": "Small Language Models in the Era of Large_chunk_0574", + "start_position": 267170, + "end_position": 267591, + "page_index": 59, + "word_count": 59, + "char_count": 421 + }, + "has_embedding": false + }, + { + "content": "# 9.7 Multimodal SLMs Research on small language models also includes multimodal data. For example, SmolVLM [99] is a compact model that handles image and text inputs to produce text outputs, suitable for on-device use and various multimodal tasks. SOLO [54] integrates vision and language processing in a single 7B Transformer model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 575, + "chunk_id": "Small Language Models in the Era of Large_chunk_0575", + "start_position": 267591, + "end_position": 267925, + "page_index": 59, + "word_count": 52, + "char_count": 334 + }, + "has_embedding": false + }, + { + "content": "SOLO [54] integrates vision and language processing in a single 7B Transformer model. The limited scope of existing research on multimodal SLMs provides a compelling impetus for researchers to investigate the integration of various modalities, including audio and graphs. # 9.8 SLMs Assisting LLMs In Section 6, we introduced existing works on the use of SLMs to assist LLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 576, + "chunk_id": "Small Language Models in the Era of Large_chunk_0576", + "start_position": 267925, + "end_position": 268300, + "page_index": 59, + "word_count": 59, + "char_count": 375 + }, + "has_embedding": false + }, + { + "content": ".8 SLMs Assisting LLMs In Section 6, we introduced existing works on the use of SLMs to assist LLMs. For instance, EFT [246] emulates fine-tuning on LLMs by leveraging behavior deltas between SLMs’ pre-trained and fine-tuned weights to alleviate the time-cost issues associated with fine-tuning LLMs; SlimPLM [325] detects missing knowledge in LLMs using a slim proxy SLM to accelerate knowledge injection; Contrastive Decoding [198] enhances text quality by maximizing the difference between the log probabilities of an expert LLM and an amateur SLM to mitigate issues of low-quality generation.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 577, + "chunk_id": "Small Language Models in the Era of Large_chunk_0577", + "start_position": 268300, + "end_position": 268896, + "page_index": 59, + "word_count": 90, + "char_count": 596 + }, + "has_embedding": false + }, + { + "content": "log probabilities of an expert LLM and an amateur SLM to mitigate issues of low-quality generation. The research on adopting SLMs to assist LLMs is still in its early stages, with many promising directions yet to be explored. We list some as follows: • Enhancing LLM Performance Across Broader Tasks Through SLM Integration. SLMs can outperform LLMs in certain scenarios.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 578, + "chunk_id": "Small Language Models in the Era of Large_chunk_0578", + "start_position": 268896, + "end_position": 269267, + "page_index": 59, + "word_count": 60, + "char_count": 371 + }, + "has_embedding": false + }, + { + "content": "SLMs can outperform LLMs in certain scenarios. For example, SLMs often present fewer security vulnerabilities compared to their larger counterparts and demonstrate superior performance on easier samples in specific tasks [197, 234]. Therefore, integrating SLMs with LLMs can promote the development of models that are not only more robust but also inherently safer.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 579, + "chunk_id": "Small Language Models in the Era of Large_chunk_0579", + "start_position": 269267, + "end_position": 269632, + "page_index": 59, + "word_count": 53, + "char_count": 365 + }, + "has_embedding": false + }, + { + "content": "LLMs can promote the development of models that are not only more robust but also inherently safer. Currently, research in this domain is relatively sparse, suggesting that this collaborative framework could potentially be applied to a wider array of tasks. • Efficient Enhancement of LLMs through Proxy SLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 580, + "chunk_id": "Small Language Models in the Era of Large_chunk_0580", + "start_position": 269632, + "end_position": 269941, + "page_index": 59, + "word_count": 48, + "char_count": 309 + }, + "has_embedding": false + }, + { + "content": "• Efficient Enhancement of LLMs through Proxy SLMs. Existing research [18, 212, 246, 325] indicates that SLMs, owing to their accelerated fine-tuning and inference speeds, can effectively mimic the behaviors of LLMs, thereby serving as efficient proxies for optimization. However, the application of SLMs as operational proxies for LLMs is currently underexplored.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 581, + "chunk_id": "Small Language Models in the Era of Large_chunk_0581", + "start_position": 269941, + "end_position": 270305, + "page_index": 59, + "word_count": 52, + "char_count": 364 + }, + "has_embedding": false + }, + { + "content": "However, the application of SLMs as operational proxies for LLMs is currently underexplored. This mimicry could potentially be expanded to include various aspects of LLM functionality, such as the optimization of prompts, the filtration and integration of supplementary knowledge, and the management of additional knowledge repositories. • SLMs Assist in Managing Data Quality. LLMs tend to produce hallucinations and toxic content due to low-quality real-world training data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 582, + "chunk_id": "Small Language Models in the Era of Large_chunk_0582", + "start_position": 270305, + "end_position": 270781, + "page_index": 59, + "word_count": 67, + "char_count": 476 + }, + "has_embedding": false + }, + { + "content": ". LLMs tend to produce hallucinations and toxic content due to low-quality real-world training data. One solution is to remove these low-quality data [355]. However, directly eliminating low-quality content can diminish certain functionalities of LLMs, such as versatility [356]. Therefore, it is crucial to define more refined data quality assessment criteria across dimensions such as factuality, safety, and diversity [377] for real-world data.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 583, + "chunk_id": "Small Language Models in the Era of Large_chunk_0583", + "start_position": 270781, + "end_position": 271228, + "page_index": 59, + "word_count": 63, + "char_count": 447 + }, + "has_embedding": false + }, + { + "content": "ment criteria across dimensions such as factuality, safety, and diversity [377] for real-world data. Researching efficient data selection methods using small models represents a valuable research direction. Additionally, while synthetic data serves as a vital complement to scarce human-generated data [224], the potential for small models to effectively manage synthetic data remains largely unexplored. • SLMs Assist in LLM Assessment.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 584, + "chunk_id": "Small Language Models in the Era of Large_chunk_0584", + "start_position": 271228, + "end_position": 271665, + "page_index": 59, + "word_count": 60, + "char_count": 437 + }, + "has_embedding": false + }, + { + "content": "• SLMs Assist in LLM Assessment. LLMs are producing vast amounts of increasingly complex texts, such as specialized code and scientific papers, presenting challenges not only for human evaluators but also for traditional assessment metrics. Consequently, developing effective evaluators to assess various aspects of generated content, including factuality, safety, and uncertainty, becomes crucial.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 585, + "chunk_id": "Small Language Models in the Era of Large_chunk_0585", + "start_position": 271665, + "end_position": 272063, + "page_index": 59, + "word_count": 53, + "char_count": 398 + }, + "has_embedding": false + }, + { + "content": "arious aspects of generated content, including factuality, safety, and uncertainty, becomes crucial. Given their proficiency in handling specific tasks, exploring the potential of SLMs to evaluate LLM outputs is a promising research direction. • SLMs Optimize Query and Reduce Noise for LLM RAG. For Retrieval-Augmented Generation (RAG) using LLMs, differing query requirements between LLMs and search engines pose a challenge.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 586, + "chunk_id": "Small Language Models in the Era of Large_chunk_0586", + "start_position": 272063, + "end_position": 272490, + "page_index": 59, + "word_count": 60, + "char_count": 427 + }, + "has_embedding": false + }, + { + "content": "ion (RAG) using LLMs, differing query requirements between LLMs and search engines pose a challenge. The query for LLMs is often abstract and difficult for search engines to handle, so they require more detailed query keywords. Moreover, LLMs may not need all the information related to a query because they only require partial additional knowledge.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 587, + "chunk_id": "Small Language Models in the Era of Large_chunk_0587", + "start_position": 272490, + "end_position": 272840, + "page_index": 59, + "word_count": 55, + "char_count": 350 + }, + "has_embedding": false + }, + { + "content": "need all the information related to a query because they only require partial additional knowledge. Thus, intermediate agents are crucial to adapting LLM queries for search engines by clarifying the required detailed keywords that can search for necessary extra knowledge. Additionally, search engine outputs contain noises, requiring refinement to boost LLM efficiency.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 588, + "chunk_id": "Small Language Models in the Era of Large_chunk_0588", + "start_position": 272840, + "end_position": 273210, + "page_index": 59, + "word_count": 52, + "char_count": 370 + }, + "has_embedding": false + }, + { + "content": "Additionally, search engine outputs contain noises, requiring refinement to boost LLM efficiency. SLMs, skilled in a single task, are ideal for optimizing query rewriting and noise reduction in RAG systems, making their application in LLM RAG a promising research area. • SLMs safeguard LLM. Resources such as the Llama 2 Responsible Use Guide strongly advocate for the implementation of robust guardrails in products that utilize Generative AI.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 589, + "chunk_id": "Small Language Models in the Era of Large_chunk_0589", + "start_position": 273210, + "end_position": 273655, + "page_index": 59, + "word_count": 67, + "char_count": 445 + }, + "has_embedding": false + }, + { + "content": "trongly advocate for the implementation of robust guardrails in products that utilize Generative AI. SLMs can be strategically designed to serve as such guardrails, mitigating risks associated with both inputs and outputs from the model. This approach ensures safeguards against the generation of high-risk or policy-violating content and provides protection against adversarial inputs and attempts to compromise the model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 590, + "chunk_id": "Small Language Models in the Era of Large_chunk_0590", + "start_position": 273655, + "end_position": 274078, + "page_index": 59, + "word_count": 59, + "char_count": 423 + }, + "has_embedding": false + }, + { + "content": "ing content and provides protection against adversarial inputs and attempts to compromise the model. Future research can investigate the various safety roles that SLMs play in protecting LLMs. # 9.9 Synergy between Small and Large Language Models In Section 7, we discussed how small and large language models can complement each other.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 591, + "chunk_id": "Small Language Models in the Era of Large_chunk_0591", + "start_position": 274078, + "end_position": 274414, + "page_index": 59, + "word_count": 52, + "char_count": 336 + }, + "has_embedding": false + }, + { + "content": "age Models In Section 7, we discussed how small and large language models can complement each other. For example, CoGenesis [437] integrates SLMs for private data and LLMs for broader context, while Synergy of Thoughts [298] uses SLMs for initial reasoning and LLMs for conflict resolution. CROSSLM [79] shows how privacy can be preserved by training SLMs locally to support LLMs without data exposure. Research in this area is still evolving, and we outline several promising future directions below:", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 592, + "chunk_id": "Small Language Models in the Era of Large_chunk_0592", + "start_position": 274414, + "end_position": 274915, + "page_index": 59, + "word_count": 79, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": ". Research in this area is still evolving, and we outline several promising future directions below: • Refined Cloud-Edge Division of Labor. Current research mainly focuses on splitting tasks between edge-based SLMs and cloud-based LLMs along privacy-sensitive and non-sensitive data boundaries.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 593, + "chunk_id": "Small Language Models in the Era of Large_chunk_0593", + "start_position": 274915, + "end_position": 275210, + "page_index": 59, + "word_count": 41, + "char_count": 295 + }, + "has_embedding": false + }, + { + "content": "ween edge-based SLMs and cloud-based LLMs along privacy-sensitive and non-sensitive data boundaries. A potential future direction involves more granular task partitioning: determining which subtasks should be handled locally by SLMs (e.g., initial data filtering, quick semantic parsing) and which should be delegated to the cloud-based LLM (e.g., advanced reasoning, complex generation). This approach can further optimize latency, privacy, and resource utilization.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 594, + "chunk_id": "Small Language Models in the Era of Large_chunk_0594", + "start_position": 275210, + "end_position": 275677, + "page_index": 59, + "word_count": 61, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "This approach can further optimize latency, privacy, and resource utilization. • Adaptive On-Device Specialization for Dynamic Environments. Although SLMs have shown the ability to handle private or personalized data locally, continuous changes in user preferences, application requirements, and data distributions pose challenges. Future work can explore adaptive strategies where edge-based SLMs dynamically specialize or update their parameters, guided by the cloud-based LLM.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 595, + "chunk_id": "Small Language Models in the Era of Large_chunk_0595", + "start_position": 275677, + "end_position": 276156, + "page_index": 59, + "word_count": 62, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "re edge-based SLMs dynamically specialize or update their parameters, guided by the cloud-based LLM. For instance, the LLM can periodically distill new knowledge into the SLM or provide feedback signals to help the SLM adapt to evolving scenarios. # 9.10 Trustworthy SLMs As SLMs are playing crucial roles in various aspects, understanding and improving the trustworthiness of SLMs are essential. Hence, two promising directions are: • A Comprehensive Evaluation of SLMs’ Trustworthiness.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 596, + "chunk_id": "Small Language Models in the Era of Large_chunk_0596", + "start_position": 276156, + "end_position": 276644, + "page_index": 59, + "word_count": 72, + "char_count": 488 + }, + "has_embedding": false + }, + { + "content": "Hence, two promising directions are: • A Comprehensive Evaluation of SLMs’ Trustworthiness. While numerous studies address trustworthiness issues in LLMs, research on SLMs remains sparse. Most existing literature focuses on models with at least 7 billion parameters, leaving a gap in the comprehensive analysis of SLMs’ trustworthiness. Current evaluations typically cover only a fraction of the necessary aspects.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 597, + "chunk_id": "Small Language Models in the Era of Large_chunk_0597", + "start_position": 276644, + "end_position": 277058, + "page_index": 59, + "word_count": 58, + "char_count": 414 + }, + "has_embedding": false + }, + { + "content": "Current evaluations typically cover only a fraction of the necessary aspects. Therefore, a systematic assessment, such as TrustLLM [320], is essential to thoroughly evaluate the trustworthiness of SLMs and understand their reliability across various applications. • Developing Trustworthy SLMs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 598, + "chunk_id": "Small Language Models in the Era of Large_chunk_0598", + "start_position": 277058, + "end_position": 277352, + "page_index": 59, + "word_count": 39, + "char_count": 294 + }, + "has_embedding": false + }, + { + "content": "• Developing Trustworthy SLMs. Developing trustworthy SLMs is crucial, with three key research directions: (i) Training SLMs to be trustworthy from scratch; (ii) Ensuring SLMs retain or gain trustworthiness when compressed from LLMs—maintaining trustworthiness if the LLM is trustworthy and instilling trustworthiness if it is not; (iii) Fine-tuning non-trustworthy SLMs to enhance their robustness. # 10 CONCLUSION", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 599, + "chunk_id": "Small Language Models in the Era of Large_chunk_0599", + "start_position": 277352, + "end_position": 277767, + "page_index": 59, + "word_count": 57, + "char_count": 415 + }, + "has_embedding": false + }, + { + "content": "# 10 CONCLUSION This paper provides a comprehensive survey of Small Language Models (SLMs) with up to 7 billion parameters. Initially, we address the need to clearly define SLMs due to existing ambiguities in their characterization. We then present the foundational concepts essential for constructing SLMs. The survey progresses to explore enhancement techniques, including knowledge distillation and quantization, as well as strategies for adapting Large Language Models (LLMs) to SLM contexts.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 600, + "chunk_id": "Small Language Models in the Era of Large_chunk_0600", + "start_position": 277767, + "end_position": 278263, + "page_index": 59, + "word_count": 71, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "n and quantization, as well as strategies for adapting Large Language Models (LLMs) to SLM contexts. We survey representative SLMs, both general-domain and domain-specific, discussing their preferred datasets and architectural decisions. We also assess their applications across various tasks and deployment strategies on devices. Further, we investigate their role in augmenting the capabilities of LLMs, serving as proxies for fine-tuning and facilitating two types of synergies: cloud-local and task-centric.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 601, + "chunk_id": "Small Language Models in the Era of Large_chunk_0601", + "start_position": 278263, + "end_position": 278774, + "page_index": 59, + "word_count": 69, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "ng as proxies for fine-tuning and facilitating two types of synergies: cloud-local and task-centric. Additionally, we discuss the critical aspect of their trustworthiness. The paper concludes with key insights aimed at guiding future research on small language models. # REFERENCES [1] Marah Abdin, Sam Ade Jacobs, Ammar Ahmad Awan, Jyoti Aneja, Ahmed Awadallah, Hany Awadalla, Nguyen Bach, Amit Bahree, Arash Bakhtiari, Harkirat Behl, et al. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 602, + "chunk_id": "Small Language Models in the Era of Large_chunk_0602", + "start_position": 278774, + "end_position": 279222, + "page_index": 59, + "word_count": 66, + "char_count": 448 + }, + "has_embedding": false + }, + { + "content": "2024. Phi-3 technical report: A highly capable language model locally on your phone. arXiv preprint arXiv:2404.14219 (2024). [2] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774 (2023). [3] Emre Can Acikgoz, Osman Batur İnce, Rayene Bench, Arda Anıl Boz, İlker Kesen, Aykut Erdem, and Erkut Erdem. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 603, + "chunk_id": "Small Language Models in the Era of Large_chunk_0603", + "start_position": 279222, + "end_position": 279703, + "page_index": 59, + "word_count": 69, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "2024. Hippocrates: An Open-Source Framework for Advancing Large Language Models in Healthcare. arXiv preprint arXiv:2404.16621 (2024). [4] Harshavardhan Adepu, Zhanpeng Zeng, Li Zhang, and Vikas Singh. 2024. FrameQuant: Flexible Low-Bit Quantization for Transformers. arXiv preprint arXiv:2403.06082 (2024). [5] Abien Fred Agarap. 2018. Deep Learning using Rectified Linear Units (ReLU). CoRR abs/1803.08375 (2018).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 604, + "chunk_id": "Small Language Models in the Era of Large_chunk_0604", + "start_position": 279703, + "end_position": 280118, + "page_index": 59, + "word_count": 52, + "char_count": 415 + }, + "has_embedding": false + }, + { + "content": "CoRR abs/1803.08375 (2018). arXiv:1803.08375 http://arxiv.org/abs/ 1803.08375 \n[6] Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. 2024. On-policy distillation of language models: Learning from self-generated mistakes. In The Twelfth International Conference on Learning Representations. [7] Meta AI. 2024. Llama 3.2: Revolutionizing edge AI and vision with open, customizable models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 605, + "chunk_id": "Small Language Models in the Era of Large_chunk_0605", + "start_position": 280118, + "end_position": 280574, + "page_index": 59, + "word_count": 56, + "char_count": 456 + }, + "has_embedding": false + }, + { + "content": "Llama 3.2: Revolutionizing edge AI and vision with open, customizable models. https://ai.meta.com/blog/llama-3-2-connect-2024- vision-edge-mobile-devices/ Accessed: 2024-9-25. [8] Joshua Ainslie, James Lee-Thorp, Michiel de Jong, Yury Zemlyanskiy, Federico Lebrón, and Sumit Sanghai. 2023. GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 606, + "chunk_id": "Small Language Models in the Era of Large_chunk_0606", + "start_position": 280574, + "end_position": 280949, + "page_index": 59, + "word_count": 40, + "char_count": 375 + }, + "has_embedding": false + }, + { + "content": "GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints. arXiv:2305.13245 [cs.CL] https://arxiv.org/abs/2305.13245 \n[9] Loubna Ben Allal, Anton Lozhkov, Elie Bakouch, Leandro von Werra, and Thomas Wolf. 2024. SmolLM - blazingly fast and remarkably powerful. [10] Ebtesam Almazrouei, Hamza Alobeidli, Abdulaziz Alshamsi, Alessandro Cappelli, Ruxandra Cojocaru, Mérouane Debbah, Étienne Goffinet, Daniel Hesslow, Julien Launay, Quentin Malartic, et al. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 607, + "chunk_id": "Small Language Models in the Era of Large_chunk_0607", + "start_position": 280949, + "end_position": 281434, + "page_index": 59, + "word_count": 58, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "2023. The falcon series of open language models. arXiv preprint arXiv:2311.16867 (2023). [11] Guilherme FCF Almeida, José Luiz Nunes, Neele Engelmann, Alex Wiegmann, and Marcelo de Araújo. 2024. Exploring the psychology of LLMs’ moral and legal reasoning. Artificial Intelligence 333 (2024), 104145. [12] Reza Yazdani Aminabadi, Samyam Rajbhandari, Ammar Ahmad Awan, Cheng Li, Du Li, Elton Zheng, Olatunji Ruwase, Shaden Smith, Minjia Zhang, Jeff Rasley, et al. 2022.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 608, + "chunk_id": "Small Language Models in the Era of Large_chunk_0608", + "start_position": 281434, + "end_position": 281901, + "page_index": 59, + "word_count": 68, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "2022. Deepspeed-inference: enabling efficient inference of transformer models at unprecedented scale. In SC22: International Conference for High Performance Computing, Networking, Storage and Analysis. IEEE, 1–15. [13] Yongqi An, Xu Zhao, Tao Yu, Ming Tang, and Jinqiao Wang. 2024. Fluctuation-based adaptive structured pruning for large language models. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38. 10865–10873.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 609, + "chunk_id": "Small Language Models in the Era of Large_chunk_0609", + "start_position": 281901, + "end_position": 282343, + "page_index": 59, + "word_count": 58, + "char_count": 442 + }, + "has_embedding": false + }, + { + "content": "10865–10873. [14] Rohan Anil, Andrew M Dai, Orhan Firat, Melvin Johnson, Dmitry Lepikhin, Alexandre Passos, Siamak Shakeri, Emanuel Taropa, Paige Bailey, Zhifeng Chen, et al. 2023. Palm 2 technical report. arXiv preprint arXiv:2305.10403 (2023). [15] AI Anthropic. 2024. The claude 3 model family: Opus, sonnet, haiku. Claude-3 Model Card 1 (2024). [16] David Anugraha, Genta Indra Winata, Chenyue Li, Patrick Amadeus Irawan, and En-Shiun Annie Lee. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 610, + "chunk_id": "Small Language Models in the Era of Large_chunk_0610", + "start_position": 282343, + "end_position": 282798, + "page_index": 59, + "word_count": 67, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "2024. ProxyLM: Predicting Language Model Performance on Multilingual Tasks via Proxy Models. arXiv preprint arXiv:2406.09334 (2024). [17] Viraat Aryabumi, Yixuan Su, Raymond Ma, Adrien Morisot, Ivan Zhang, Acyr Locatelli, Marzieh Fadaee, Ahmet Üstün, and Sara Hooker. 2024. To Code, or Not To Code? Exploring Impact of Code in Pre-training. arXiv preprint arXiv:2408.10914 (2024). [18] Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 611, + "chunk_id": "Small Language Models in the Era of Large_chunk_0611", + "start_position": 282798, + "end_position": 283262, + "page_index": 59, + "word_count": 66, + "char_count": 464 + }, + "has_embedding": false + }, + { + "content": "2024. Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=hSyW5go0v8 \n[19] Saleh Ashkboos, Maximilian L. Croci, Marcelo Gennari do Nascimento, Torsten Hoefler, and James Hensman. 2024. SliceGPT: Compress Large Language Models by Deleting Rows and Columns. In The Twelfth International Conference on Learning Representations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 612, + "chunk_id": "Small Language Models in the Era of Large_chunk_0612", + "start_position": 283262, + "end_position": 283715, + "page_index": 59, + "word_count": 53, + "char_count": 453 + }, + "has_embedding": false + }, + { + "content": "In The Twelfth International Conference on Learning Representations. https://openreview.net/ forum?id=vXxardq6db \n[20] Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. 2021. Program synthesis with large language models. arXiv preprint arXiv:2108.07732 (2021). [21] Amos Azaria and Tom Mitchell. 2023. The Internal State of an LLM Knows When It’s Lying.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 613, + "chunk_id": "Small Language Models in the Era of Large_chunk_0613", + "start_position": 283715, + "end_position": 284165, + "page_index": 59, + "word_count": 61, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "The Internal State of an LLM Knows When It’s Lying. In Findings of the Association for Computational Linguistics: EMNLP 2023. 967–976. [22] Zhangir Azerbayev, Hailey Schoelkopf, Keiran Paster, Marco Dos Santos, Stephen McAleer, Albert Q Jiang, Jia Deng, Stella Biderman, and Sean Welleck. 2023. Llemma: An open language model for mathematics. arXiv preprint arXiv:2310.10631 (2023).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 614, + "chunk_id": "Small Language Models in the Era of Large_chunk_0614", + "start_position": 284165, + "end_position": 284547, + "page_index": 59, + "word_count": 55, + "char_count": 382 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2310.10631 (2023). [23] Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, Binyuan Hui, Luo Ji, Mei Li, Junyang Lin, Runji Lin, Dayiheng Liu, Gao Liu, Chengqiang Lu, Keming Lu, Jianxin Ma, Rui Men, Xingzhang Ren, Xuancheng Ren, Chuanqi Tan, Sinan Tan, Jianhong Tu, Peng Wang, Shijie Wang, Wei Wang, Shengguang Wu, Benfeng Xu, Jin Xu, An Yang, Hao Yang, Jian Yang, Shusheng Yang, Yang Yao, Bowen Yu, Hongyi Yuan, Zheng Yuan, Jianwei Zhang, Xingxuan Zhang, Yichang Zhang, Zhenru Zhang, Chang Zhou, Jingren Zhou, Xiaohuan Zhou, and Tianhang Zhu.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 615, + "chunk_id": "Small Language Models in the Era of Large_chunk_0615", + "start_position": 284547, + "end_position": 285168, + "page_index": 59, + "word_count": 102, + "char_count": 621 + }, + "has_embedding": false + }, + { + "content": "gxuan Zhang, Yichang Zhang, Zhenru Zhang, Chang Zhou, Jingren Zhou, Xiaohuan Zhou, and Tianhang Zhu. 2023. Qwen Technical Report. arXiv:2309.16609 [cs.CL] https://arxiv.org/abs/2309.16609 \n[24] Jason Baumgartner, Savvas Zannettou, Brian Keegan, Megan Squire, and Jeremy Blackburn. 2020. The pushshift reddit dataset. In Proceedings of the international AAAI conference on web and social media, Vol. 14. 830–839.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 616, + "chunk_id": "Small Language Models in the Era of Large_chunk_0616", + "start_position": 285168, + "end_position": 285579, + "page_index": 59, + "word_count": 54, + "char_count": 411 + }, + "has_embedding": false + }, + { + "content": "830–839. [25] Maximilian Beck, Korbinian Pöppel, Markus Spanring, Andreas Auer, Oleksandra Prudnikova, Michael K Kopp, Günter Klambauer, Johannes Brandstetter, and Sepp Hochreiter. 2024. xLSTM: Extended Long Short-Term Memory. In The Thirty-eighth Annual Conference on Neural Information Processing Systems.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 617, + "chunk_id": "Small Language Models in the Era of Large_chunk_0617", + "start_position": 285579, + "end_position": 285886, + "page_index": 59, + "word_count": 38, + "char_count": 307 + }, + "has_embedding": false + }, + { + "content": "In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=ARAxPPIAhq \n[26] Marco Bellagente, Jonathan Tow, Dakota Mahan, Duy Phung, Maksym Zhuravinskyi, Reshinth Adithyan, James Baicoianu, Ben Brooks, Nathan Cooper, Ashish Datta, et al. 2024. Stable lm 2 1.6 b technical report. arXiv preprint arXiv:2402.17834 (2024). [27] Loubna Ben Allal, Anton Lozhkov, Guilherme Penedo, Thomas Wolf, and Leandro von Werra. 2024. SmolLM-Corpus.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 618, + "chunk_id": "Small Language Models in the Era of Large_chunk_0618", + "start_position": 337249, + "end_position": 337735, + "page_index": 59, + "word_count": 62, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "SmolLM-Corpus. https://huggingface.co/ datasets/HuggingFaceTB/smollm-corpus \n[28] Benjamin Bergner, Andrii Skliar, Amelie Royer, Tijmen Blankevoort, Yuki Asano, and Babak Ehteshami Bejnordi. 2024. Think Big, Generate Quick: LLM-to-SLM for Fast Autoregressive Decoding. arXiv preprint arXiv:2402.16844 (2024). [29] Milan Bhan, Jean-Noel Vittaut, Nicolas Chesneau, and Marie-Jeanne Lesot. 2024. Self-AMPLIFY: Improving Small Language Models with Self Post Hoc Explanations. arXiv preprint arXiv:2402.12038 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 619, + "chunk_id": "Small Language Models in the Era of Large_chunk_0619", + "start_position": 337735, + "end_position": 338246, + "page_index": 59, + "word_count": 57, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2402.12038 (2024). [30] Zhen Bi, Ningyu Zhang, Yida Xue, Yixin Ou, Daxiong Ji, Guozhou Zheng, and Huajun Chen. 2023. Oceangpt: A large language model for ocean science tasks. arXiv preprint arXiv:2310.02031 (2023). [31] Stella Biderman, Hailey Schoelkopf, Quentin Anthony, Herbie Bradley, Kyle O’Brien, Eric Hallahan, Mohammad Aflah Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, Aviya Skowron, Lintang Sutawika, and Oskar van der Wal. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 620, + "chunk_id": "Small Language Models in the Era of Large_chunk_0620", + "start_position": 338246, + "end_position": 338720, + "page_index": 59, + "word_count": 67, + "char_count": 474 + }, + "has_embedding": false + }, + { + "content": "2023. Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling. arXiv:2304.01373 [cs.CL] https://arxiv.org/abs/2304.01373 \n[32] Yonatan Bisk, Rowan Zellers, Jianfeng Gao, Yejin Choi, et al. 2020. Piqa: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, Vol. 34. 7432–7439. [33] Sid Black, Leo Gao, Phil Wang, Connor Leahy, and Stella Biderman. 2021.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 621, + "chunk_id": "Small Language Models in the Era of Large_chunk_0621", + "start_position": 338720, + "end_position": 339165, + "page_index": 59, + "word_count": 61, + "char_count": 445 + }, + "has_embedding": false + }, + { + "content": "2021. GPT-Neo: Large Scale Autoregressive Language Modeling with MeshTensorflow. https://doi.org/10.5281/zenodo.5297715 If you use this software, please cite it using these metadata.. [34] Elliot Bolton, Abhinav Venigalla, Michihiro Yasunaga, David Hall, Betty Xiong, Tony Lee, Roxana Daneshjou, Jonathan Frankle, Percy Liang, Michael Carbin, et al. 2024. Biomedlm: A 2.7 b parameter language model trained on biomedical text. arXiv preprint arXiv:2403.18421 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 622, + "chunk_id": "Small Language Models in the Era of Large_chunk_0622", + "start_position": 339165, + "end_position": 339631, + "page_index": 59, + "word_count": 60, + "char_count": 466 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2403.18421 (2024). [35] William James Bolton, Rafael Poyiadzi, Edward R Morrell, Gabriela van Bergen Gonzalez Bueno, and Lea Goetz. 2024. RAmBLA: A Framework for Evaluating the Reliability of LLMs as Assistants in the Biomedical Domain. arXiv preprint arXiv:2403.14578 (2024). [36] Luiz Bonifacio, Hugo Abonizio, Marzieh Fadaee, and Rodrigo Nogueira. 2022. Inpars: Data augmentation for information retrieval using large language models. arXiv preprint arXiv:2202.05144 (2022).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 623, + "chunk_id": "Small Language Models in the Era of Large_chunk_0623", + "start_position": 339631, + "end_position": 340129, + "page_index": 59, + "word_count": 66, + "char_count": 498 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2202.05144 (2022). [37] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 624, + "chunk_id": "Small Language Models in the Era of Large_chunk_0624", + "start_position": 340129, + "end_position": 340646, + "page_index": 59, + "word_count": 69, + "char_count": 517 + }, + "has_embedding": false + }, + { + "content": "ess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language Models are Few-Shot Learners. In Advances in Neural Information Processing Systems, H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (Eds.), Vol. 33. Curran Associates, Inc., 1877–1901. https://proceedings.neurips.cc/paper_files/paper/2020/file/1457c0d6bfcb4967418bfb8ac142f64a-Paper.pdf \n[38] Saikiran Bulusu, Bhavya Kailkhura, Bo Li, Pramod K Varshney, and Dawn Song. 2020.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 625, + "chunk_id": "Small Language Models in the Era of Large_chunk_0625", + "start_position": 340646, + "end_position": 341151, + "page_index": 59, + "word_count": 60, + "char_count": 505 + }, + "has_embedding": false + }, + { + "content": "2020. Anomalous example detection in deep learning: A survey. IEEE Access 8 (2020), 132330–132347. [39] Weilin Cai, Juyong Jiang, Fan Wang, Jing Tang, Sunghun Kim, and Jiayi Huang. 2024. A survey on mixture of experts. Authorea Preprints (2024). [40] Zheng Cai, Maosong Cao, Haojiong Chen, Kai Chen, Keyu Chen, Xin Chen, Xun Chen, Zehui Chen, Zhi Chen, Pei Chu, et al. 2024. Internlm2 technical report. arXiv preprint arXiv:2403.17297 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 626, + "chunk_id": "Small Language Models in the Era of Large_chunk_0626", + "start_position": 341151, + "end_position": 341593, + "page_index": 59, + "word_count": 69, + "char_count": 442 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2403.17297 (2024). [41] Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, et al. 2021. Extracting training data from large language models. In 30th USENIX Security Symposium (USENIX Security 21). 2633–2650. [42] Samuel Carreira, Tomás Marques, José Ribeiro, and Carlos Grilo. 2023. Revolutionizing Mobile Interaction: Enabling a 3 Billion Parameter GPT LLM on Mobile.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 627, + "chunk_id": "Small Language Models in the Era of Large_chunk_0627", + "start_position": 341593, + "end_position": 342087, + "page_index": 59, + "word_count": 67, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "Revolutionizing Mobile Interaction: Enabling a 3 Billion Parameter GPT LLM on Mobile. arXiv:2310.01434 [cs.CL] https://arxiv.org/abs/2310.01434 \n[43] Iñigo Casanueva, Tadas Temčinas, Daniela Gerz, Matthew Henderson, and Ivan Vulić. 2020. Efficient Intent Detection with Dual Sentence Encoders. In Proceedings of the 2nd Workshop on Natural Language Processing for Conversational AI. Association for Computational Linguistics, Online, 38–45.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 628, + "chunk_id": "Small Language Models in the Era of Large_chunk_0628", + "start_position": 342087, + "end_position": 342527, + "page_index": 59, + "word_count": 54, + "char_count": 440 + }, + "has_embedding": false + }, + { + "content": "Association for Computational Linguistics, Online, 38–45. [44] Wei-Cheng Chang, X Yu Felix, Yin-Wen Chang, Yiming Yang, and Sanjiv Kumar. [n. d.]. Pre-training Tasks for Embedding-based Large-scale Retrieval. In International Conference on Learning Representations. [45] Patrick Chao, Edoardo Debenedetti, Alexander Robey, Maksym Andriushchenko, Francesco Croce, Vikash Sehwag, Edgar Dobriban, Nicolas Flammarion, George J Pappas, Florian Tramer, et al. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 629, + "chunk_id": "Small Language Models in the Era of Large_chunk_0629", + "start_position": 342527, + "end_position": 342986, + "page_index": 59, + "word_count": 58, + "char_count": 459 + }, + "has_embedding": false + }, + { + "content": "2024. Jailbreakbench: An open robustness benchmark for jailbreaking large language models. arXiv preprint arXiv:2404.01318 (2024). [46] Dong Chen, Shuo Zhang, Yueting Zhuang, Siliang Tang, Qidong Liu, Hua Wang, and Mingliang Xu. 2024. Improving Large Models with Small models: Lower Costs and Better Performance. arXiv preprint arXiv:2406.15471 (2024). [47] Dong Chen, Yueting Zhuang, Shuo Zhang, Jinfeng Liu, Su Dong, and Siliang Tang. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 630, + "chunk_id": "Small Language Models in the Era of Large_chunk_0630", + "start_position": 342986, + "end_position": 343428, + "page_index": 59, + "word_count": 62, + "char_count": 442 + }, + "has_embedding": false + }, + { + "content": "2024. Data Shunt: Collaboration of Small and Large Models for Lower Costs and Better Performance. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38. 11249–11257. [48] Hongzhan Chen, Siyue Wu, Xiaojun Quan, Rui Wang, Ming Yan, and Ji Zhang. 2023. MCC-KD: Multi-CoT Consistent Knowledge Distillation. In Findings of the Association for Computational Linguistics: EMNLP 2023. 6805–6820. [49] Lihu Chen and Gaël Varoquaux. 2024. What is the role of small models in the llm era: A survey.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 631, + "chunk_id": "Small Language Models in the Era of Large_chunk_0631", + "start_position": 343428, + "end_position": 343935, + "page_index": 59, + "word_count": 78, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "What is the role of small models in the llm era: A survey. arXiv preprint arXiv:2409.06857 (2024). [50] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde De Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. 2021. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374 (2021). [51] Tianyi Chen, Tianyu Ding, Badal Yadav, Ilya Zharkov, and Luming Liang. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 632, + "chunk_id": "Small Language Models in the Era of Large_chunk_0632", + "start_position": 343935, + "end_position": 344380, + "page_index": 59, + "word_count": 68, + "char_count": 445 + }, + "has_embedding": false + }, + { + "content": "2023. Lorashear: Efficient large language model structured pruning and knowledge recovery. arXiv preprint arXiv:2310.18356 (2023). [52] Wei Chen, Zhiyuan Li, and Mingyuan Ma. 2024. Octopus: On-device language model for function calling of software APIs. arXiv:2404.01549 [cs.CL] https://arxiv.org/abs/2404.01549 \n[53] Yangyi Chen, Fanchao Qi, Hongcheng Gao, Zhiyuan Liu, and Maosong Sun. 2022. Textual Backdoor Attacks Can Be More Harmful via Two Simple Tricks.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 633, + "chunk_id": "Small Language Models in the Era of Large_chunk_0633", + "start_position": 344380, + "end_position": 344841, + "page_index": 59, + "word_count": 61, + "char_count": 461 + }, + "has_embedding": false + }, + { + "content": "Textual Backdoor Attacks Can Be More Harmful via Two Simple Tricks. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, EMNLP. 11215–11221. [54] Yangyi Chen, Xingyao Wang, Hao Peng, and Heng Ji. 2024. A Single Transformer for Scalable Vision-Language Modeling. Transactions on Machine Learning Research (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 634, + "chunk_id": "Small Language Models in the Era of Large_chunk_0634", + "start_position": 344841, + "end_position": 345190, + "page_index": 59, + "word_count": 50, + "char_count": 349 + }, + "has_embedding": false + }, + { + "content": "Transactions on Machine Learning Research (2024). https://openreview.net/forum?id=nuzFG0Rbhy \n[55] Zeming Chen, Alejandro Hernández Cano, Angelika Romanou, Antoine Bonnet, Kyle Matoba, Francesco Salvi, Matteo Pagliardini, Simin Fan, Andreas Köpf, Amirkeivan Mohtashami, et al. 2023. MEDITRON-70B: Scaling Medical Pretraining for Large Language Models. arXiv preprint arXiv:2311.16079 (2023).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 635, + "chunk_id": "Small Language Models in the Era of Large_chunk_0635", + "start_position": 345190, + "end_position": 345581, + "page_index": 59, + "word_count": 44, + "char_count": 391 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2311.16079 (2023). [56] Zhiyu Chen, Wenhu Chen, Charese Smiley, Sameena Shah, Iana Borova, Dylan Langdon, Reema Moussa, Matt Beane, Ting-Hao Huang, Bryan R Routledge, et al. 2021. FinQA: A Dataset of Numerical Reasoning over Financial Data. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. 3697–3711. [57] Zhiyu Chen, Shiyang Li, Charese Smiley, Zhiqiang Ma, Sameena Shah, and William Yang Wang. 2022.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 636, + "chunk_id": "Small Language Models in the Era of Large_chunk_0636", + "start_position": 345581, + "end_position": 346045, + "page_index": 59, + "word_count": 68, + "char_count": 464 + }, + "has_embedding": false + }, + { + "content": "2022. ConvFinQA: Exploring the Chain of Numerical Reasoning in Conversational Finance Question Answering. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing. 6279–6292. [58] Xiaoxue Cheng, Junyi Li, Wayne Xin Zhao, Hongzhi Zhang, Fuzheng Zhang, Di Zhang, Kun Gai, and Ji-Rong Wen. 2024. Small Agent Can Also Rock! Empowering Small Language Models as Hallucination Detector. arXiv preprint arXiv:2406.11277 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 637, + "chunk_id": "Small Language Models in the Era of Large_chunk_0637", + "start_position": 346045, + "end_position": 346497, + "page_index": 59, + "word_count": 63, + "char_count": 452 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2406.11277 (2024). [59] Steffi Chern, Zhulin Hu, Yuqing Yang, Ethan Chern, Yuan Guo, Jiahe Jin, Binjie Wang, and Pengfei Liu. 2024. BeHonest: Benchmarking Honesty of Large Language Models. arXiv preprint arXiv:2406.13261 (2024). [60] Yew Ken Chia, Pengfei Hong, Lidong Bing, and Soujanya Poria. 2024. InstructEval: Towards Holistic Evaluation of Instruction-Tuned Large Language Models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 638, + "chunk_id": "Small Language Models in the Era of Large_chunk_0638", + "start_position": 346497, + "end_position": 346904, + "page_index": 59, + "word_count": 55, + "char_count": 407 + }, + "has_embedding": false + }, + { + "content": "InstructEval: Towards Holistic Evaluation of Instruction-Tuned Large Language Models. In Proceedings of the First edition of the Workshop on the Scaling Behavior of Large Language Models (SCALE-LLM 2024). 35–64. [61] Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, Ion Stoica, and Eric P. Xing. 2023. Vicuna: An Open-Source Chatbot Impressing GPT-4 with $9 0 \\% ^ { \\star }$ ChatGPT Quality.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 639, + "chunk_id": "Small Language Models in the Era of Large_chunk_0639", + "start_position": 346904, + "end_position": 347385, + "page_index": 59, + "word_count": 74, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "Vicuna: An Open-Source Chatbot Impressing GPT-4 with $9 0 \\% ^ { \\star }$ ChatGPT Quality. https://lmsys.org/blog/2023- 03-30-vicuna/ \n[62] Yae Jee Cho, Luyang Liu, Zheng Xu, Aldi Fahrezi, and Gauri Joshi. 2024. Heterogeneous LoRA for Federated Fine-tuning of On-Device Foundation Models. arXiv:2401.06432 [cs.LG] https://arxiv.org/abs/2401.06432 \n[63] Xiaokai Chu, Jiashu Zhao, Lixin Zou, and Dawei Yin. 2022. H-ERNIE: A multi-granularity pre-trained language model for web search.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 640, + "chunk_id": "Small Language Models in the Era of Large_chunk_0640", + "start_position": 347385, + "end_position": 347867, + "page_index": 59, + "word_count": 64, + "char_count": 482 + }, + "has_embedding": false + }, + { + "content": "H-ERNIE: A multi-granularity pre-trained language model for web search. In Proceedings of the 45th International ACM SIGIR conference on research and development in information retrieval. 1478–1489. [64] Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Yunxuan Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, et al. 2024. Scaling instruction-finetuned language models. Journal of Machine Learning Research 25, 70 (2024), 1–53.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 641, + "chunk_id": "Small Language Models in the Era of Large_chunk_0641", + "start_position": 347867, + "end_position": 348327, + "page_index": 59, + "word_count": 64, + "char_count": 460 + }, + "has_embedding": false + }, + { + "content": "Journal of Machine Learning Research 25, 70 (2024), 1–53. [65] Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457 (2018). [66] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. 2021.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 642, + "chunk_id": "Small Language Models in the Era of Large_chunk_0642", + "start_position": 348327, + "end_position": 348795, + "page_index": 59, + "word_count": 66, + "char_count": 468 + }, + "has_embedding": false + }, + { + "content": "2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168 (2021). [67] Together Computer. 2023. RedPajama: an Open Dataset for Training Large Language Models. https://github.com/togethercomputer/RedPajama-Data \n[68] Mike Conover, Matt Hayes, Ankit Mathur, Jianwei Xie, Jun Wan, Sam Shah, Ali Ghodsi, Patrick Wendell, Matei Zaharia, and Reynold Xin. 2023. Free Dolly: Introducing the World’s First Truly Open Instruction-Tuned LLM.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 643, + "chunk_id": "Small Language Models in the Era of Large_chunk_0643", + "start_position": 348795, + "end_position": 349253, + "page_index": 59, + "word_count": 59, + "char_count": 458 + }, + "has_embedding": false + }, + { + "content": "Free Dolly: Introducing the World’s First Truly Open Instruction-Tuned LLM. https://www.databricks.com/blog/2023/04/12/dolly-first-open-commerciallyviable-instruction-tuned-llm \n[69] Nick Craswell, Bhaskar Mitra, Emine Yilmaz, and Daniel Campos. 2021. Overview of the TREC 2020 deep learning track. CoRR abs/2102.07662 (2021). arXiv:2102.07662 https://arxiv.org/abs/2102.07662 \n[70] Justin Cui, Wei-Lin Chiang, Ion Stoica, and Cho-Jui Hsieh. 2024. OR-Bench: An Over-Refusal Benchmark for Large Language Models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 644, + "chunk_id": "Small Language Models in the Era of Large_chunk_0644", + "start_position": 349253, + "end_position": 349763, + "page_index": 59, + "word_count": 54, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "OR-Bench: An Over-Refusal Benchmark for Large Language Models. arXiv preprint arXiv:2405.20947 (2024). [71] Shiyao Cui, Zhenyu Zhang, Yilong Chen, Wenyuan Zhang, Tianyun Liu, Siqi Wang, and Tingwen Liu. 2023. Fft: Towards harmlessness evaluation and analysis for llms with factuality, fairness, toxicity. arXiv preprint arXiv:2311.18580 (2023). [72] Luigi Daniele and Suphavadeeprasit. 2023. Amplify-Instruct: Synthetically Generated Diverse Multi-turn Conversations for efficient LLM Training.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 645, + "chunk_id": "Small Language Models in the Era of Large_chunk_0645", + "start_position": 349763, + "end_position": 350257, + "page_index": 59, + "word_count": 61, + "char_count": 494 + }, + "has_embedding": false + }, + { + "content": "plify-Instruct: Synthetically Generated Diverse Multi-turn Conversations for efficient LLM Training. arXiv preprint arXiv:(coming soon) (2023). https://huggingface.co/datasets/LDJnr/Capybara \n[73] Tri Dao. [n. d.]. FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning. In The Twelfth International Conference on Learning Representations. [74] Tri Dao, Dan Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. 2022.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 646, + "chunk_id": "Small Language Models in the Era of Large_chunk_0646", + "start_position": 350257, + "end_position": 350697, + "page_index": 59, + "word_count": 51, + "char_count": 440 + }, + "has_embedding": false + }, + { + "content": "2022. Flashattention: Fast and memory-efficient exact attention with io-awareness. Advances in Neural Information Processing Systems 35 (2022), 16344–16359. [75] Tri Dao and Albert Gu. 2024. Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality. arXiv preprint arXiv:2405.21060 (2024). [76] Rocktim Jyoti Das, Liqun Ma, and Zhiqiang Shen. 2023. Beyond size: How gradients shape pruning decisions in large language models. arXiv preprint arXiv:2311.04902 (2023).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 647, + "chunk_id": "Small Language Models in the Era of Large_chunk_0647", + "start_position": 350697, + "end_position": 351210, + "page_index": 59, + "word_count": 67, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2311.04902 (2023). [77] Anirban Dasgupta, Ravi Kumar, and Tamás Sarlós. 2011. Fast locality-sensitive hashing. In Proceedings of the 17th ACM SIGKDD international conference on Knowledge discovery and data mining. 1073–1081. [78] Pieter Delobelle, Ewoenam Kwaku Tokpo, Toon Calders, and Bettina Berendt. 2022. Measuring fairness with biased rulers: A comparative study on bias metrics for pre-trained language models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 648, + "chunk_id": "Small Language Models in the Era of Large_chunk_0648", + "start_position": 351210, + "end_position": 351648, + "page_index": 59, + "word_count": 59, + "char_count": 438 + }, + "has_embedding": false + }, + { + "content": "ng fairness with biased rulers: A comparative study on bias metrics for pre-trained language models. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics. 1693–1706. [79] Yongheng Deng, Ziqing Qiao, Ju Ren, Yang Liu, and Yaoxue Zhang. 2023. Mutual enhancement of large and small language models with cross-silo knowledge transfer. arXiv preprint arXiv:2312.05842 (2023). [80] Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. 2022.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 649, + "chunk_id": "Small Language Models in the Era of Large_chunk_0649", + "start_position": 351648, + "end_position": 352157, + "page_index": 59, + "word_count": 73, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "2022. GPT3.int8(): 8-bit Matrix Multiplication for Transformers at Scale. In Advances in Neural Information Processing Systems, Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho (Eds.). https: //openreview.net/forum?id=dXiGWqBoxaD \n[81] Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. 2024. Qlora: Efficient finetuning of quantized llms. Advances in Neural Information Processing Systems 36 (2024). [82] Tim Dettmers and Luke Zettlemoyer. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 650, + "chunk_id": "Small Language Models in the Era of Large_chunk_0650", + "start_position": 352157, + "end_position": 352636, + "page_index": 59, + "word_count": 61, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "2023. The case for 4-bit precision: k-bit inference scaling laws. In International Conference on Machine Learning. PMLR, 7750–7774. [83] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). 4171–4186.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 651, + "chunk_id": "Small Language Models in the Era of Large_chunk_0651", + "start_position": 352636, + "end_position": 353118, + "page_index": 59, + "word_count": 65, + "char_count": 482 + }, + "has_embedding": false + }, + { + "content": "4171–4186. [84] Nolan Dey, Gurpreet Gosal, Zhiming Chen, Hemant Khachane, William Marshall, Ribhu Pathria, Marvin Tom, and Joel Hestness. 2023. Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Cluster. CoRR abs/2304.03208 (2023). [85] Richard Diehl Martinez, Pietro Lesci, and Paula Buttery. 2024. Tending Towards Stability: Convergence Challenges in Small Language Models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 652, + "chunk_id": "Small Language Models in the Era of Large_chunk_0652", + "start_position": 353118, + "end_position": 353529, + "page_index": 59, + "word_count": 53, + "char_count": 411 + }, + "has_embedding": false + }, + { + "content": "Tending Towards Stability: Convergence Challenges in Small Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 3275–3286. https://doi.org/10.18653/v1/2024.findings-emnlp.187 \n[86] Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Zhi Zheng, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 653, + "chunk_id": "Small Language Models in the Era of Large_chunk_0653", + "start_position": 353529, + "end_position": 353986, + "page_index": 59, + "word_count": 57, + "char_count": 457 + }, + "has_embedding": false + }, + { + "content": "2023. Enhancing chat language models by scaling high-quality instructional conversations. arXiv preprint arXiv:2305.14233 (2023). [87] Tinghe Ding. 2024. MobileAgent: enhancing mobile control via human-machine interaction and SOP integration. arXiv:2401.04124 [cs.HC] https://arxiv.org/abs/2401.04124 \n[88] Ricardo Dominguez-Olmedo, Moritz Hardt, and Celestine Mendler-Dünner. 2023. Questioning the survey responses of large language models. arXiv preprint arXiv:2306.07951 (2023).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 654, + "chunk_id": "Small Language Models in the Era of Large_chunk_0654", + "start_position": 353986, + "end_position": 354467, + "page_index": 59, + "word_count": 52, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2306.07951 (2023). [89] Qian Dong, Yiding Liu, Qingyao Ai, Haitao Li, Shuaiqiang Wang, Yiqun Liu, Dawei Yin, and Shaoping Ma. 2023. I3 retriever: incorporating implicit interaction in pre-trained language models for passage retrieval. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management. 441–451.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 655, + "chunk_id": "Small Language Models in the Era of Large_chunk_0655", + "start_position": 354467, + "end_position": 354828, + "page_index": 59, + "word_count": 49, + "char_count": 361 + }, + "has_embedding": false + }, + { + "content": "441–451. [90] Xin Dong, Yonggan Fu, Shizhe Diao, Wonmin Byeon, Zijia Chen, Ameya Sunil Mahabaleshwarkar, Shih-Yang Liu, Matthijs Van Keirsbilck, Min-Hung Chen, Yoshi Suhara, et al. 2024. Hymba: A Hybrid-head Architecture for Small Language Models. arXiv preprint arXiv:2411.13676 (2024). [91] Jason Xiaotian Dou, Haiyi Mao, Runxue Bao, Paul Pu Liang, Xiaoqing Tan, Shiyi Zhang, Minxue Jia, Pengfei Zhou, and Zhi-Hong Mao. 2023. The Measurement of Knowledge in Knowledge Graphs.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 656, + "chunk_id": "Small Language Models in the Era of Large_chunk_0656", + "start_position": 354828, + "end_position": 355305, + "page_index": 59, + "word_count": 69, + "char_count": 477 + }, + "has_embedding": false + }, + { + "content": "The Measurement of Knowledge in Knowledge Graphs. In Proceedings of the AAAI 2023 Workshop on Representation Learning for Responsible Human-Centric AI (R2HCAI). Association for the Advancement of Artificial Intelligence (AAAI) Washington . . [92] Xinrun Du, Zhouliang Yu, Songyang Gao, Ding Pan, Yuyang Cheng, Ziyang Ma, Ruibin Yuan, Xingwei Qu, Jiaheng Liu, Tianyu Zheng, Xinchen Luo, Guorui Zhou, Wenhu Chen, and Ge Zhang. 2024. Chinese Tiny LLM: Pretraining a Chinese-Centric Large Language Model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 657, + "chunk_id": "Small Language Models in the Era of Large_chunk_0657", + "start_position": 355305, + "end_position": 355805, + "page_index": 59, + "word_count": 73, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "Chinese Tiny LLM: Pretraining a Chinese-Centric Large Language Model. arXiv:2404.04167 [cs.CL] https://arxiv.org/abs/2404.04167 \n[93] Zhengxiao Du, Yujie Qian, Xiao Liu, Ming Ding, Jiezhong Qiu, Zhilin Yang, and Jie Tang. 2022. GLM: General Language Model Pretraining with Autoregressive Blank Infilling. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 320–335.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 658, + "chunk_id": "Small Language Models in the Era of Large_chunk_0658", + "start_position": 355805, + "end_position": 356234, + "page_index": 59, + "word_count": 56, + "char_count": 429 + }, + "has_embedding": false + }, + { + "content": "320–335. [94] Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, et al. 2024. The llama 3 herd of models. arXiv preprint arXiv:2407.21783 (2024). [95] Kazuki Egashira, Mark Vero, Robin Staab, Jingxuan He, and Martin Vechev. 2024. Exploiting LLM Quantization. arXiv preprint arXiv:2405.18137 (2024). [96] Ronen Eldan and Yuanzhi Li. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 659, + "chunk_id": "Small Language Models in the Era of Large_chunk_0659", + "start_position": 356234, + "end_position": 356668, + "page_index": 59, + "word_count": 62, + "char_count": 434 + }, + "has_embedding": false + }, + { + "content": "2023. Tinystories: How small can language models be and still speak coherent english? arXiv preprint arXiv:2305.07759 (2023). [97] Stefan Elfwing, Eiji Uchibe, and Kenji Doya. 2018. Sigmoid-weighted linear units for neural network function approximation in reinforcement learning. Neural networks 107 (2018), 3–11. [98] David Esiobu, Xiaoqing Tan, Saghar Hosseini, Megan Ung, Yuchen Zhang, Jude Fernandes, Jane Dwivedi-Yu, Eleonora Presani, Adina Williams, and Eric Smith. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 660, + "chunk_id": "Small Language Models in the Era of Large_chunk_0660", + "start_position": 356668, + "end_position": 357146, + "page_index": 59, + "word_count": 65, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "2023. ROBBIE: Robust bias evaluation of large generative language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. 3764–3814. https://aclanthology.org/2023.emnlp-main.230 \n[99] Hugging Face. 2024. SmolVLM - small yet mighty Vision Language Model. https://huggingface.co/blog/smolvlm Accessed: 2024-11-26. [100] William Fedus, Barret Zoph, and Noam Shazeer. 2022. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 661, + "chunk_id": "Small Language Models in the Era of Large_chunk_0661", + "start_position": 357146, + "end_position": 357652, + "page_index": 59, + "word_count": 61, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research 23, 120 (2022), 1–39. [101] Shangbin Feng, Weijia Shi, Yuyang Bai, Vidhisha Balachandran, Tianxing He, and Yulia Tsvetkov. 2023. Knowledge Card: Filling LLMs’ Knowledge Gaps with Plug-in Specialized Language Models. arXiv preprint arXiv:2305.09955 (2023). [102] Elias Frantar and Dan Alistarh. 2023. Sparsegpt: Massive language models can be accurately pruned in one-shot.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 662, + "chunk_id": "Small Language Models in the Era of Large_chunk_0662", + "start_position": 357652, + "end_position": 358155, + "page_index": 59, + "word_count": 68, + "char_count": 503 + }, + "has_embedding": false + }, + { + "content": "Sparsegpt: Massive language models can be accurately pruned in one-shot. In International Conference on Machine Learning. PMLR, 10323–10337. [103] Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. 2023. GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers. In The Eleventh International Conference on Learning Representations. [104] Hao Fu, Yao; Peng and Tushar Khot. 2022. How does GPT Obtain its Ability?", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 663, + "chunk_id": "Small Language Models in the Era of Large_chunk_0663", + "start_position": 358155, + "end_position": 358606, + "page_index": 59, + "word_count": 60, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "How does GPT Obtain its Ability? Tracing Emergent Abilities of Language Models to their Sources. Yao Fu’s Notion (Dec 2022). https://yaofu.notion.site/How-does-GPT-Obtain-its-Ability-Tracing-Emergent-Abilities-of-Language-Models-to-theirSources-b9a57ac0fcf74f30a1ab9e3e36fa1dc1 \n[105] Yao Fu, Hao Peng, Litu Ou, Ashish Sabharwal, and Tushar Khot. 2023. Specializing smaller language models towards multi-step reasoning. In International Conference on Machine Learning. PMLR, 10421–10430. [106] Philip Gage. 1994.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 664, + "chunk_id": "Small Language Models in the Era of Large_chunk_0664", + "start_position": 358606, + "end_position": 359118, + "page_index": 59, + "word_count": 53, + "char_count": 512 + }, + "has_embedding": false + }, + { + "content": "1994. A new algorithm for data compression. The C Users Journal 12, 2 (1994), 23–38. [107] Chongming Gao, Shiqi Wang, Shijun Li, Jiawei Chen, Xiangnan He, Wenqiang Lei, Biao Li, Yuan Zhang, and Peng Jiang. 2023. CIRS: Bursting filter bubbles by counterfactual interactive recommender system. ACM Transactions on Information Systems 42, 1 (2023), 1–27. [108] Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, et al. 2020.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 665, + "chunk_id": "Small Language Models in the Era of Large_chunk_0665", + "start_position": 359118, + "end_position": 359625, + "page_index": 59, + "word_count": 78, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "2020. The Pile: An 800GB dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027 (2020). [109] Luyu Gao and Jamie Callan. 2022. Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrieval. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2843–2853. [110] Shangqian Gao, Chi-Heng Lin, Ting Hua, Zheng Tang, Yilin Shen, Hongxia Jin, and Yen-Chang Hsu. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 666, + "chunk_id": "Small Language Models in the Era of Large_chunk_0666", + "start_position": 359625, + "end_position": 360092, + "page_index": 59, + "word_count": 68, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "2024. DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https: //openreview.net/forum?id=YxaY6tHgg0 \n[111] Suyu Ge, Yunan Zhang, Liyuan Liu, Minjia Zhang, Jiawei Han, and Jianfeng Gao. 2024. Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs. In The Twelfth International Conference on Learning Representations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 667, + "chunk_id": "Small Language Models in the Era of Large_chunk_0667", + "start_position": 360092, + "end_position": 360533, + "page_index": 59, + "word_count": 56, + "char_count": 441 + }, + "has_embedding": false + }, + { + "content": "In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=uNrFpDPMyo \n[112] Alex Gichamba, Tewodros Kederalah Idris, Brian Ebiyau, Eric Nyberg, and Teruko Mitamura. 2024. ColBERT Retrieval and Ensemble Response Scoring for Language Model Question Answering. arXiv:2408.10808 [cs.CL] https://arxiv.org/abs/2408.10808 \n[113] Karan Goel. 2024. The On-Device Intelligence Update.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 668, + "chunk_id": "Small Language Models in the Era of Large_chunk_0668", + "start_position": 360533, + "end_position": 360951, + "page_index": 59, + "word_count": 45, + "char_count": 418 + }, + "has_embedding": false + }, + { + "content": "The On-Device Intelligence Update. https://www.cartesia.ai/blog/on-device \n[114] Aaron Gokaslan, Vanya Cohen, Ellie Pavlick, and Stefanie Tellex. 2019. Openwebtext corpus. [115] Shreya Goyal, Sumanth Doddapaneni, Mitesh M Khapra, and Balaraman Ravindran. 2023. A survey of adversarial defenses and robustness in nlp. Comput. Surveys 55, 14s (2023), 1–39.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 669, + "chunk_id": "Small Language Models in the Era of Large_chunk_0669", + "start_position": 360951, + "end_position": 361305, + "page_index": 59, + "word_count": 45, + "char_count": 354 + }, + "has_embedding": false + }, + { + "content": "Surveys 55, 14s (2023), 1–39. [116] Dirk Groeneveld, Iz Beltagy, Pete Walsh, Akshita Bhagia, Rodney Kinney, Oyvind Tafjord, Ananya Harsh Jha, Hamish Ivison, Ian Magnusson, Yizhong Wang, et al. 2024. Olmo: Accelerating the science of language models. arXiv preprint arXiv:2402.00838 (2024). [117] Albert Gu and Tri Dao. 2023. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752 (2023). [118] Naibin Gu, Peng Fu, Xiyu Liu, Bowen Shen, Zheng Lin, and Weiping Wang. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 670, + "chunk_id": "Small Language Models in the Era of Large_chunk_0670", + "start_position": 361305, + "end_position": 361818, + "page_index": 59, + "word_count": 75, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "2024. Light-PEFT: Lightening Parameter-Efficient Fine-Tuning via Early Pruning. In Findings of the Association for Computational Linguistics: ACL 2024, Lun-Wei Ku, Andre Martins, and Vivek Srikumar (Eds.). Association for Computational Linguistics, Bangkok, Thailand, 7528–7541. https://doi.org/10.18653/v1/2024.findings-acl.447 \n[119] Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. 2024. MiniLLM: Knowledge distillation of large language models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 671, + "chunk_id": "Small Language Models in the Era of Large_chunk_0671", + "start_position": 361818, + "end_position": 362265, + "page_index": 59, + "word_count": 52, + "char_count": 447 + }, + "has_embedding": false + }, + { + "content": "MiniLLM: Knowledge distillation of large language models. In The Twelfth International Conference on Learning Representations. [120] Suriya Gunasekar, Yi Zhang, Jyoti Aneja, Caio César Teodoro Mendes, Allie Del Giorno, Sivakanth Gopi, Mojan Javaheripi, Piero Kauffmann, Gustavo de Rosa, Olli Saarikivi, Adil Salim, Shital Shah, Harkirat Singh Behl, Xin Wang, Sébastien Bubeck, Ronen Eldan, Adam Tauman Kalai, Yin Tat Lee, and Yuanzhi Li. 2023. Textbooks Are All You Need.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 672, + "chunk_id": "Small Language Models in the Era of Large_chunk_0672", + "start_position": 362265, + "end_position": 362736, + "page_index": 59, + "word_count": 68, + "char_count": 471 + }, + "has_embedding": false + }, + { + "content": "Textbooks Are All You Need. arXiv:2306.11644 [cs.CL] https://arxiv.org/abs/2306.11644 \n[121] Daya Guo, Qihao Zhu, Dejian Yang, Zhenda Xie, Kai Dong, Wentao Zhang, Guanting Chen, Xiao Bi, Yu Wu, YK Li, et al. 2024. DeepSeek-Coder: When the Large Language Model Meets Programming–The Rise of Code Intelligence. arXiv preprint arXiv:2401.14196 (2024). [122] Jinyang Guo, Jianyu Wu, Zining Wang, Jiaheng Liu, Ge Yang, Yifu Ding, Ruihao Gong, Haotong Qin, and Xianglong Liu. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 673, + "chunk_id": "Small Language Models in the Era of Large_chunk_0673", + "start_position": 362736, + "end_position": 363211, + "page_index": 59, + "word_count": 69, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": "2024. Compressing large language models by joint sparsification and quantization. In Forty-first International Conference on Machine Learning. [123] Shangwei Guo, Chunlong Xie, Jiwei Li, Lingjuan Lyu, and Tianwei Zhang. 2022. Threats to pre-trained language models: Survey and taxonomy. arXiv preprint arXiv:2202.06862 (2022). [124] Song Guo, Jiahang Xu, Li Lyna Zhang, and Mao Yang. 2023. Compresso: Structured pruning with collaborative prompting learns compact large language models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 674, + "chunk_id": "Small Language Models in the Era of Large_chunk_0674", + "start_position": 363211, + "end_position": 363697, + "page_index": 59, + "word_count": 65, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "Compresso: Structured pruning with collaborative prompting learns compact large language models. arXiv preprint arXiv:2310.05015 (2023). [125] Zhen Guo, Peiqi Wang, Yanwei Wang, and Shangdi Yu. 2023. Improving Small Language Models on PubMedQA via Generative Data Augmentation. arXiv:2305.07804 [cs.CL] https://arxiv.org/abs/2305.07804 \n[126] Song Han, Jeff Pool, John Tran, and William Dally. 2015. Learning both weights and connections for efficient neural network.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 675, + "chunk_id": "Small Language Models in the Era of Large_chunk_0675", + "start_position": 363697, + "end_position": 364164, + "page_index": 59, + "word_count": 59, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "Learning both weights and connections for efficient neural network. Advances in neural information processing systems 28 (2015). [127] Zixu Hao, Huiqiang Jiang, Shiqi Jiang, Ju Ren, and Ting Cao. 2024. Hybrid SLM and LLM for Edge-Cloud Collaborative Inference. In Proceedings of the Workshop on Edge and Mobile Foundation Models. 36–41. [128] Tim Hartill, Diana Benavides-Prado, Michael Witbrock, and Patricia J. Riddle. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 676, + "chunk_id": "Small Language Models in the Era of Large_chunk_0676", + "start_position": 364164, + "end_position": 364590, + "page_index": 59, + "word_count": 62, + "char_count": 426 + }, + "has_embedding": false + }, + { + "content": "2023. Answering Unseen Questions With Smaller Language Models Using Rationale Generation and Dense Retrieval. arXiv:2308.04711 [cs.CL] https://arxiv.org/abs/2308.04711 \n[129] Tim Hartill, Neset Tan, Michael Witbrock, and Patricia J. Riddle. 2023. Teaching Smaller Language Models To Generalise To Unseen Compositional Questions. arXiv:2308.00946 [cs.CL] https://arxiv.org/abs/2308.00946 \n[130] Kai He, Rui Mao, Qika Lin, Yucheng Ruan, Xiang Lan, Mengling Feng, and Erik Cambria. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 677, + "chunk_id": "Small Language Models in the Era of Large_chunk_0677", + "start_position": 364590, + "end_position": 365074, + "page_index": 59, + "word_count": 59, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "2023. A survey of large language models for healthcare: from data, technology, and applications to accountability and ethics. arXiv preprint arXiv:2310.05694 (2023). [131] Pengcheng He, Jianfeng Gao, and Weizhu Chen. 2023. DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with GradientDisentangled Embedding Sharing. In The Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=sE7- XhLxHA \n[132] Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 678, + "chunk_id": "Small Language Models in the Era of Large_chunk_0678", + "start_position": 365074, + "end_position": 365583, + "page_index": 59, + "word_count": 61, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "penreview.net/forum?id=sE7- XhLxHA \n[132] Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen. 2020. Deberta: Decoding-enhanced bert with disentangled attention. arXiv preprint arXiv:2006.03654 (2020). [133] Narges Heidari, Parham Moradi, and Abbas Koochari. 2022. An attention-based deep learning method for solving the cold-start and sparsity issues of recommender systems. Knowledge-Based Systems 256 (2022), 109835.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 679, + "chunk_id": "Small Language Models in the Era of Large_chunk_0679", + "start_position": 365583, + "end_position": 366008, + "page_index": 59, + "word_count": 52, + "char_count": 425 + }, + "has_embedding": false + }, + { + "content": "Knowledge-Based Systems 256 (2022), 109835. [134] Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021. Measuring Massive Multitask Language Understanding. In International Conference on Learning Representations. https://openreview.net/forum?id=d7KBjmI3GmQ \n[135] Dan Hendrycks and Kevin Gimpel. 2016. Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415 (2016). [136] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 680, + "chunk_id": "Small Language Models in the Era of Large_chunk_0680", + "start_position": 366008, + "end_position": 366500, + "page_index": 59, + "word_count": 59, + "char_count": 492 + }, + "has_embedding": false + }, + { + "content": "2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531 (2015). [137] Sepp Hochreiter and Jürgen Schmidhuber. 1996. LSTM can solve hard long time lag problems. Advances in neural information processing systems 9 (1996). [138] Junyuan Hong, Jinhao Duan, Chenhui Zhang, Zhangheng Li, Chulin Xie, Kelsey Lieberman, James Diffenderfer, Brian R. Bartoldson, Ajay Kumar Jaiswal, Kaidi Xu, Bhavya Kailkhura, Dan Hendrycks, Dawn Song, Zhangyang Wang, and Bo Li. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 681, + "chunk_id": "Small Language Models in the Era of Large_chunk_0681", + "start_position": 366500, + "end_position": 366987, + "page_index": 59, + "word_count": 70, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "2024. Decoding Compressed Trust: Scrutinizing the Trustworthiness of Efficient LLMs Under Compression. In Proceedings of the Forty-first International Conference on Machine Learning, ICML. https://openreview.net/forum?id=e3Dpq3WdMv \n[139] Yutong Meng Yuhao Wang Hongcheng Liu, Yusheng Liao. 2023. XieZhi: Chinese Law Large Language Model. https://github.com/LiuHC0428/ LAW_GPT.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 682, + "chunk_id": "Small Language Models in the Era of Large_chunk_0682", + "start_position": 366987, + "end_position": 367364, + "page_index": 59, + "word_count": 42, + "char_count": 377 + }, + "has_embedding": false + }, + { + "content": "https://github.com/LiuHC0428/ LAW_GPT. [140] Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin De Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. 2019. Parameter-efficient transfer learning for NLP. In International Conference on Machine Learning. PMLR, 2790–2799. [141] Cheng-Yu Hsieh, Chun-Liang Li, Chih-kuan Yeh, Hootan Nakhost, Yasuhisa Fujii, Alex Ratner, Ranjay Krishna, Chen-Yu Lee, and Tomas Pfister. 2023. Distilling Step-by-Step!", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 683, + "chunk_id": "Small Language Models in the Era of Large_chunk_0683", + "start_position": 367364, + "end_position": 367847, + "page_index": 59, + "word_count": 58, + "char_count": 483 + }, + "has_embedding": false + }, + { + "content": "Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes. In Findings of the Association for Computational Linguistics: ACL 2023. 8003–8017. [142] Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685 (2021).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 684, + "chunk_id": "Small Language Models in the Era of Large_chunk_0684", + "start_position": 367847, + "end_position": 368254, + "page_index": 59, + "word_count": 56, + "char_count": 407 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2106.09685 (2021). [143] Shengding Hu, Yuge Tu, Xu Han, Chaoqun He, Ganqu Cui, Xiang Long, Zhi Zheng, Yewei Fang, Yuxiang Huang, Weilin Zhao, et al. 2024. Minicpm: Unveiling the potential of small language models with scalable training strategies. arXiv preprint arXiv:2404.06395 (2024). [144] Xing Hu, Yuan Chen, Dawei Yang, Sifan Zhou, Zhihang Yuan, Jiangyong Yu, and Chen Xu. 2024. I-LLM: Efficient Integer-Only Inference for Fully-Quantized Low-Bit Large Language Models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 685, + "chunk_id": "Small Language Models in the Era of Large_chunk_0685", + "start_position": 368254, + "end_position": 368750, + "page_index": 59, + "word_count": 71, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "I-LLM: Efficient Integer-Only Inference for Fully-Quantized Low-Bit Large Language Models. arXiv preprint arXiv:2405.17849 (2024). [145] Jiaxin Huang, Shixiang Shane Gu, Le Hou, Yuexin Wu, Xuezhi Wang, Hongkun Yu, and Jiawei Han. [n. d.]. Large Language Models Can Self-Improve. In The 2023 Conference on Empirical Methods in Natural Language Processing. [146] Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, et al. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 686, + "chunk_id": "Small Language Models in the Era of Large_chunk_0686", + "start_position": 368750, + "end_position": 369257, + "page_index": 59, + "word_count": 73, + "char_count": 507 + }, + "has_embedding": false + }, + { + "content": "2023. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. arXiv preprint arXiv:2311.05232 (2023). [147] Wei Huang, Yangdong Liu, Haotong Qin, Ying Li, Shiming Zhang, Xianglong Liu, Michele Magno, and Xiaojuan Qi. 2024. Billm: Pushing the limit of post-training quantization for llms. arXiv preprint arXiv:2402.04291 (2024). [148] Wenyu Huang, Guancheng Zhou, Hongru Wang, Pavlos Vougiouklis, Mirella Lapata, and Jeff Z. Pan. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 687, + "chunk_id": "Small Language Models in the Era of Large_chunk_0687", + "start_position": 369257, + "end_position": 369741, + "page_index": 59, + "word_count": 67, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "2024. Less is More: Making Smaller Language Models Competent Subgraph Retrievers for Multi-hop KGQA. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 15787–15803. https://doi.org/10.18653/v1/2024.findings-emnlp.927 \n[149] Yuzhen Huang, Yuzhuo Bai, Zhihao Zhu, Junlei Zhang, Jinghan Zhang, Tangjun Su, Junteng Liu, Chuancheng Lv, Yikai Zhang, Yao Fu, et al. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 688, + "chunk_id": "Small Language Models in the Era of Large_chunk_0688", + "start_position": 369741, + "end_position": 370250, + "page_index": 59, + "word_count": 65, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "2024. C-eval: A multi-level multi-discipline chinese evaluation suite for foundation models. Advances in Neural Information Processing Systems 36 (2024). [150] Yangsibo Huang, Samyak Gupta, Mengzhou Xia, Kai Li, and Danqi Chen. 2023. Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation. arXiv preprint arXiv:2310.06987 (2023). [151] Yuheng Huang, Jiayang Song, Zhijie Wang, Shengming Zhao, Huaming Chen, Felix Juefei-Xu, and Lei Ma. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 689, + "chunk_id": "Small Language Models in the Era of Large_chunk_0689", + "start_position": 370250, + "end_position": 370705, + "page_index": 59, + "word_count": 61, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "2023. Look before you leap: An exploratory study of uncertainty measurement for large language models. arXiv preprint arXiv:2307.10236 (2023). [152] Samuel Humeau, Kurt Shuster, Marie-Anne Lachaux, and Jason Weston. [n. d.]. Poly-encoders: Architectures and Pre-training Strategies for Fast and Accurate Multi-sentence Scoring. In International Conference on Learning Representations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 690, + "chunk_id": "Small Language Models in the Era of Large_chunk_0690", + "start_position": 370705, + "end_position": 371089, + "page_index": 59, + "word_count": 48, + "char_count": 384 + }, + "has_embedding": false + }, + { + "content": "In International Conference on Learning Representations. [153] Hakan Inan, Kartikeya Upasani, Jianfeng Chi, Rashi Rungta, Krithika Iyer, Yuning Mao, Michael Tontchev, Qing Hu, Brian Fuller, Davide Testuggine, et al. 2023. Llama guard: Llm-based input-output safeguard for human-ai conversations. arXiv preprint arXiv:2312.06674 (2023). [154] Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and Geoffrey E Hinton. 1991. Adaptive mixtures of local experts. Neural computation 3, 1 (1991), 79–87.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 691, + "chunk_id": "Small Language Models in the Era of Large_chunk_0691", + "start_position": 371089, + "end_position": 371586, + "page_index": 59, + "word_count": 68, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "Neural computation 3, 1 (1991), 79–87. [155] Mojan Javaheripi, Sébastien Bubeck, Marah Abdin, Jyoti Aneja, Sebastien Bubeck, Caio César Teodoro Mendes, Weizhu Chen, Allie Del Giorno, Ronen Eldan, Sivakanth Gopi, et al. 2023. Phi-2: The surprising power of small language models. Microsoft Research Blog (2023). [156] Soyeong Jeong, Jinheon Baek, Sukmin Cho, Sung Hwang, and Jong C Park. 2023. Test-Time Self-Adaptive Small Language Models for Question Answering.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 692, + "chunk_id": "Small Language Models in the Era of Large_chunk_0692", + "start_position": 371586, + "end_position": 372048, + "page_index": 59, + "word_count": 67, + "char_count": 462 + }, + "has_embedding": false + }, + { + "content": "Test-Time Self-Adaptive Small Language Models for Question Answering. In Findings of the Association for Computational Linguistics: EMNLP 2023. 15459–15469. [157] Ananya Harsh Jha, Tom Sherborne, Evan Pete Walsh, Dirk Groeneveld, Emma Strubell, and Iz Beltagy. 2024. Just CHOP: Embarrassingly Simple LLM Compression. arXiv:2305.14864 [cs.CL] https://arxiv.org/abs/2305.14864 \n[158] Yixin Ji, Yang Xiang, Juntao Li, Wei Chen, Zhongyi Liu, Kehai Chen, and Min Zhang. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 693, + "chunk_id": "Small Language Models in the Era of Large_chunk_0693", + "start_position": 372048, + "end_position": 372518, + "page_index": 59, + "word_count": 62, + "char_count": 470 + }, + "has_embedding": false + }, + { + "content": "2024. Feature-based Low-Rank Compression of Large Language Models via Bayesian Optimization. arXiv preprint arXiv:2405.10616 (2024). [159] Ziwei Ji, Tiezheng Yu, Yan Xu, Nayeon Lee, Etsuko Ishii, and Pascale Fung. 2023. Towards mitigating LLM hallucination via self reflection. In Findings of the Association for Computational Linguistics: EMNLP 2023. 1827–1843.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 694, + "chunk_id": "Small Language Models in the Era of Large_chunk_0694", + "start_position": 372518, + "end_position": 372880, + "page_index": 59, + "word_count": 48, + "char_count": 362 + }, + "has_embedding": false + }, + { + "content": "1827–1843. [160] Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. 2023. Mistral 7B. arXiv preprint arXiv:2310.06825 (2023). [161] Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, et al. 2024. Mixtral of experts.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 695, + "chunk_id": "Small Language Models in the Era of Large_chunk_0695", + "start_position": 372880, + "end_position": 373361, + "page_index": 59, + "word_count": 67, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "Mixtral of experts. arXiv preprint arXiv:2401.04088 (2024). [162] Huiqiang Jiang, Qianhui Wu, Xufang Luo, Dongsheng Li, Chin-Yew Lin, Yuqing Yang, and Lili Qiu. 2024. LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression. In ICLR 2024 Workshop on Mathematical and Empirical Understanding of Foundation Models. https://openreview.net/forum?id=9YvfRrpmyw \n[163] Qiao Jin, Bhuwan Dhingra, Zhengping Liu, William Cohen, and Xinghua Lu. 2019.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 696, + "chunk_id": "Small Language Models in the Era of Large_chunk_0696", + "start_position": 373361, + "end_position": 373840, + "page_index": 59, + "word_count": 62, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "2019. PubMedQA: A Dataset for Biomedical Research Question Answering. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). 2567–2577. [164] Rudolph Emil Kalman. 1960. A new approach to linear filtering and prediction problems. (1960). [165] Hao Kang, Qingru Zhang, Souvik Kundu, Geonhwa Jeong, Zaoxing Liu, Tushar Krishna, and Tuo Zhao. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 697, + "chunk_id": "Small Language Models in the Era of Large_chunk_0697", + "start_position": 373840, + "end_position": 374309, + "page_index": 59, + "word_count": 66, + "char_count": 469 + }, + "has_embedding": false + }, + { + "content": "2024. Gear: An efficient kv cache compression recipefor near-lossless generative inference of llm. arXiv preprint arXiv:2403.05527 (2024). [166] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. 2020. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361 (2020).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 698, + "chunk_id": "Small Language Models in the Era of Large_chunk_0698", + "start_position": 374309, + "end_position": 374682, + "page_index": 59, + "word_count": 51, + "char_count": 373 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2001.08361 (2020). [167] Omar Khattab, Arnav Singhvi, Paridhi Maheshwari, Zhiyuan Zhang, Keshav Santhanam, Sri Vardhamanan, Saiful Haq, Ashutosh Sharma, Thomas T Joshi, Hanna Moazam, et al. 2023. Dspy: Compiling declarative language model calls into self-improving pipelines. arXiv preprint arXiv:2310.03714 (2023). [168] Jeonghoon Kim, Jung Hyun Lee, Sungdong Kim, Joonsuk Park, Kang Min Yoo, Se Jung Kwon, and Dongsoo Lee. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 699, + "chunk_id": "Small Language Models in the Era of Large_chunk_0699", + "start_position": 374682, + "end_position": 375133, + "page_index": 59, + "word_count": 62, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "2024. Memory-efficient fine-tuning of compressed large language models via sub-4-bit integer quantization. Advances in Neural Information Processing Systems 36 (2024). [169] Minsoo Kim, Sihwa Lee, Janghwan Lee, Sukjin Hong, Du-Seong Chang, Wonyong Sung, and Jungwook Choi. 2024. Token-scaled logit distillation for ternary weight generative language models. Advances in Neural Information Processing Systems 36 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 700, + "chunk_id": "Small Language Models in the Era of Large_chunk_0700", + "start_position": 375133, + "end_position": 375551, + "page_index": 59, + "word_count": 54, + "char_count": 418 + }, + "has_embedding": false + }, + { + "content": "Advances in Neural Information Processing Systems 36 (2024). [170] Sehoon Kim, Coleman Hooper, Amir Gholami, Zhen Dong, Xiuyu Li, Sheng Shen, Michael W Mahoney, and Kurt Keutzer. 2023. Squeezellm: Dense-and-sparse quantization. arXiv preprint arXiv:2306.07629 (2023). [171] Yoon Kim and Alexander M Rush. 2016. Sequence-Level Knowledge Distillation. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing. 1317–1327. [172] Young Jin Kim, Raffy Fahim, and Hany Hassan Awadalla.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 701, + "chunk_id": "Small Language Models in the Era of Large_chunk_0701", + "start_position": 375551, + "end_position": 376062, + "page_index": 59, + "word_count": 70, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "[172] Young Jin Kim, Raffy Fahim, and Hany Hassan Awadalla. 2023. Mixture of Quantized Experts (MoQE): Complementary Effect of Low-bit Quantization and Robustness. arXiv preprint arXiv:2310.02410 (2023). [173] Jongwoo Ko, Sungnyun Kim, Tianyi Chen, and Se-Young Yun. 2024. DistiLLM: Towards Streamlined Distillation for Large Language Models. arXiv preprint arXiv:2402.03898 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 702, + "chunk_id": "Small Language Models in the Era of Large_chunk_0702", + "start_position": 376062, + "end_position": 376444, + "page_index": 59, + "word_count": 50, + "char_count": 382 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2402.03898 (2024). [174] Denis Kocetkov, Raymond Li, Loubna Ben Allal, Jia Li, Chenghao Mou, Carlos Muñoz Ferrandis, Yacine Jernite, Margaret Mitchell, Sean Hughes, Thomas Wolf, et al. 2022. The stack: 3 tb of permissively licensed source code. arXiv preprint arXiv:2211.15533 (2022). [175] Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. 2023. Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generation.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 703, + "chunk_id": "Small Language Models in the Era of Large_chunk_0703", + "start_position": 376444, + "end_position": 376913, + "page_index": 59, + "word_count": 63, + "char_count": 469 + }, + "has_embedding": false + }, + { + "content": "antic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generation. In Proceedings of the Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=VD-AYtP0dve \n[176] Divyanshu Kumar, Anurakt Kumar, Sahil Agarwal, and Prashanth Harshangi. 2024. Fine-Tuning, Quantization, and LLMs: Navigating Unintended Outcomes. arXiv preprint arXiv:2404.04392 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 704, + "chunk_id": "Small Language Models in the Era of Large_chunk_0704", + "start_position": 376913, + "end_position": 377336, + "page_index": 59, + "word_count": 44, + "char_count": 423 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2404.04392 (2024). [177] Ohjoon Kwon, Donghyeon Jeon, Nayoung Choi, Gyu-Hwung Cho, Hwiyeol Jo, Changbong Kim, Hyunwoo Lee, Inho Kang, Sun Kim, and Taiwoo Park. 2024. SLM as Guardian: Pioneering AI Safety with Small Language Model. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: Industry Track, Franck Dernoncourt, Daniel Preoţiuc-Pietro, and Anastasia Shimorina (Eds.). Association for Computational Linguistics, Miami, Florida, US, 1333–1350.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 705, + "chunk_id": "Small Language Models in the Era of Large_chunk_0705", + "start_position": 377336, + "end_position": 377844, + "page_index": 59, + "word_count": 68, + "char_count": 508 + }, + "has_embedding": false + }, + { + "content": "Association for Computational Linguistics, Miami, Florida, US, 1333–1350. https://doi.org/10.18653/v1/2024.emnlp-industry.99 \n[178] Yanis Labrak, Adrien Bazoge, Emmanuel Morin, Pierre-Antoine Gourraud, Mickael Rouvier, and Richard Dufour. 2024. Biomistral: A collection of open-source pretrained large language models for medical domains. arXiv preprint arXiv:2402.10373 (2024). [179] Stefan Larson, Anish Mahendran, Joseph J. Peper, Christopher Clarke, Andrew Lee, Parker Hill, Jonathan K.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 706, + "chunk_id": "Small Language Models in the Era of Large_chunk_0706", + "start_position": 377844, + "end_position": 378334, + "page_index": 59, + "word_count": 56, + "char_count": 490 + }, + "has_embedding": false + }, + { + "content": "Peper, Christopher Clarke, Andrew Lee, Parker Hill, Jonathan K. Kummerfeld, Kevin Leach, Michael A. Laurenzano, Lingjia Tang, and Jason Mars. 2019. An Evaluation Dataset for Intent Classification and Out-of-Scope Prediction. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Kentaro Inui, Jing Jiang, Vincent Ng, and Xiaojun Wan (Eds.).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 707, + "chunk_id": "Small Language Models in the Era of Large_chunk_0707", + "start_position": 378334, + "end_position": 378800, + "page_index": 59, + "word_count": 64, + "char_count": 466 + }, + "has_embedding": false + }, + { + "content": "al Language Processing (EMNLP-IJCNLP), Kentaro Inui, Jing Jiang, Vincent Ng, and Xiaojun Wan (Eds.). Association for Computational Linguistics, Hong Kong, China, \nManuscript submitted to ACM 1311–1316. https://doi.org/10.18653/v1/D19-1131 \n[180] Hugo Laurençon, Lucile Saulnier, Thomas Wang, Christopher Akiki, Albert Villanova del Moral, Teven Le Scao, Leandro Von Werra, Chenghao Mou, Eduardo González Ponferrada, Huu Nguyen, et al. 2022. The bigscience roots corpus: A 1.6 tb composite multilingual dataset.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 708, + "chunk_id": "Small Language Models in the Era of Large_chunk_0708", + "start_position": 378800, + "end_position": 379310, + "page_index": 59, + "word_count": 66, + "char_count": 510 + }, + "has_embedding": false + }, + { + "content": "The bigscience roots corpus: A 1.6 tb composite multilingual dataset. Advances in Neural Information Processing Systems 35 (2022), 31809–31826. [181] Teven Le Scao, Angela Fan, Christopher Akiki, Ellie Pavlick, Suzana Ilić, Daniel Hesslow, Roman Castagné, Alexandra Sasha Luccioni, François Yvon, Matthias Gallé, et al. 2023. Bloom: A 176b-parameter open-access multilingual language model. (2023). [182] Hojae Lee, Junho Kim, and SangKeun Lee. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 709, + "chunk_id": "Small Language Models in the Era of Large_chunk_0709", + "start_position": 379310, + "end_position": 379760, + "page_index": 59, + "word_count": 62, + "char_count": 450 + }, + "has_embedding": false + }, + { + "content": "2024. Mentor-KD: Making Small Language Models Better Multi-step Reasoners. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 17643–17658. https://doi.org/10.18653/v1/2024.emnlp-main.977 \n[183] Jooyoung Lee, Fan Yang, Thanh Tran, Qian Hu, Emre Barut, and Kai-Wei Chang. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 710, + "chunk_id": "Small Language Models in the Era of Large_chunk_0710", + "start_position": 379760, + "end_position": 380197, + "page_index": 59, + "word_count": 54, + "char_count": 437 + }, + "has_embedding": false + }, + { + "content": "2024. Can Small Language Models Help Large Language Models Reason Better?: LM-Guided Chain-of-Thought. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024). 2835–2843. [184] Benjamin Lefaudeux, Francisco Massa, Diana Liskovich, Wenhan Xiong, Vittorio Caggiano, Sean Naren, Min Xu, Jieru Hu, Marta Tintore, Susan Zhang, Patrick Labatut, Daniel Haziza, Luca Wehrstedt, Jeremy Reizenstein, and Grigory Sizov. 2022.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 711, + "chunk_id": "Small Language Models in the Era of Large_chunk_0711", + "start_position": 380197, + "end_position": 380696, + "page_index": 59, + "word_count": 64, + "char_count": 499 + }, + "has_embedding": false + }, + { + "content": "2022. xFormers: A modular and hackable Transformer modelling library. https://github.com/facebookresearch/xformers. [185] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. 2016. Layer normalization. ArXiv e-prints (2016), arXiv–1607. [186] Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, et al. 2022. Solving quantitative reasoning problems with language models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 712, + "chunk_id": "Small Language Models in the Era of Large_chunk_0712", + "start_position": 380696, + "end_position": 381170, + "page_index": 59, + "word_count": 59, + "char_count": 474 + }, + "has_embedding": false + }, + { + "content": "Solving quantitative reasoning problems with language models. Advances in Neural Information Processing Systems 35 (2022), 3843–3857. [187] Chenglin Li, Qianglong Chen, Liangyue Li, Caiyu Wang, Yicheng Li, Zulong Chen, and Yin Zhang. 2023. Mixed distillation helps smaller language model better reasoning. arXiv preprint arXiv:2312.10730 (2023). [188] Guangyan Li, Yongqiang Tang, and Wensheng Zhang. 2024. LoRAP: Transformer Sub-Layers Deserve Differentiated Structured Compression for Large Language Models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 713, + "chunk_id": "Small Language Models in the Era of Large_chunk_0713", + "start_position": 381170, + "end_position": 381679, + "page_index": 59, + "word_count": 65, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "RAP: Transformer Sub-Layers Deserve Differentiated Structured Compression for Large Language Models. arXiv preprint arXiv:2404.09695 (2024). [189] Haitao Li, Qingyao Ai, Jia Chen, Qian Dong, Zhijing Wu, Yiqun Liu, Chong Chen, and Qi Tian. 2024. BLADE: Enhancing Black-box Large Language Models with Small Domain-Specific Models. arXiv:2403.18365 [cs.CL] https://arxiv.org/abs/2403.18365 \n[190] Haoran Li, Dadi Guo, Donghao Li, Wei Fan, Qi Hu, Xin Liu, Chunkit Chan, Duanyi Yao, Yuan Yao, and Yangqiu Song. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 714, + "chunk_id": "Small Language Models in the Era of Large_chunk_0714", + "start_position": 381679, + "end_position": 382190, + "page_index": 59, + "word_count": 70, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "2024. PrivLM-Bench: A Multi-level Privacy Evaluation Benchmark for Language Models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics. 54–73. [191] Junyi Li, Xiaoxue Cheng, Xin Zhao, Jian-Yun Nie, and Ji-Rong Wen. 2023. HaluEval: A Large-Scale Hallucination Evaluation Benchmark for Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, Singapore, 6449–6464.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 715, + "chunk_id": "Small Language Models in the Era of Large_chunk_0715", + "start_position": 382190, + "end_position": 382692, + "page_index": 59, + "word_count": 66, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "Association for Computational Linguistics, Singapore, 6449–6464. https://doi.org/10.18653/v1/2023.emnlp-main.397 \n[192] Jeffrey Li, Alex Fang, Georgios Smyrnis, Maor Ivgi, Matt Jordan, Samir Gadre, Hritik Bansal, Etash Guha, Sedrick Keh, Kushal Arora, et al. 2024. Datacomp-lm: In search of the next generation of training sets for language models. arXiv preprint arXiv:2406.11794 (2024). [193] Luchang Li, Sheng Qian, Jie Lu, Lunxi Yuan, Rui Wang, and Qin Xie. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 716, + "chunk_id": "Small Language Models in the Era of Large_chunk_0716", + "start_position": 382692, + "end_position": 383159, + "page_index": 59, + "word_count": 63, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "2024. Transformer-Lite: High-efficiency Deployment of Large Language Models on Mobile Phone GPUs. arXiv:2403.20041 [cs.CL] https://arxiv.org/abs/2403.20041 \n[194] Pingzhi Li, Xiaolong Jin, Yu Cheng, and Tianlong Chen. 2024. Examining Post-Training Quantization for Mixture-of-Experts: A Benchmark. arXiv preprint arXiv:2406.08155 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 717, + "chunk_id": "Small Language Models in the Era of Large_chunk_0717", + "start_position": 383159, + "end_position": 383496, + "page_index": 59, + "word_count": 37, + "char_count": 337 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2406.08155 (2024). [195] Raymond Li, Loubna Ben Allal, Yangtian Zi, Niklas Muennighoff, Denis Kocetkov, Chenghao Mou, Marc Marone, Christopher Akiki, Jia Li, Jenny Chim, Qian Liu, Evgenii Zheltonozhskii, Terry Yue Zhuo, Thomas Wang, Olivier Dehaene, Mishig Davaadorj, Joel Lamy-Poirier, João Monteiro, Oleh Shliazhko, Nicolas Gontier, Nicholas Meade, Armel Zebaze, Ming-Ho Yee, Logesh Kumar Umapathi, Jian Zhu, Benjamin Lipkin, Muhtasham Oblokulov, Zhiruo Wang, Rudra Murthy, Jason Stillerman, Siva Sankalp Patel, Dmitry Abulkhanov, Marco Zocca, Manan Dey, Zhihan Zhang, Nour Fahmy, Urvashi Bhattacharyya, Wenhao Yu, Swayam Singh, Sasha Luccioni, Paulo Villegas, Maxim Kunakov, Fedor Zhdanov, Manuel Romero, Tony Lee, Nadav Timor, Jennifer Ding, Claire Schlesinger, Hailey Schoelkopf, Jan Ebert, Tri Dao, Mayank Mishra, Alex Gu, Jennifer Robinson, Carolyn Jane Anderson, Brendan Dolan-Gavitt, Danish Contractor, Siva Reddy, Daniel Fried, Dzmitry Bahdanau, Yacine Jernite, Carlos Muñoz Ferrandis, Sean Hughes, Thomas Wolf, Arjun Guha, Leandro von Werra, and Harm de Vries.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 718, + "chunk_id": "Small Language Models in the Era of Large_chunk_0718", + "start_position": 383496, + "end_position": 384588, + "page_index": 59, + "word_count": 148, + "char_count": 1092 + }, + "has_embedding": false + }, + { + "content": "Carlos Muñoz Ferrandis, Sean Hughes, Thomas Wolf, Arjun Guha, Leandro von Werra, and Harm de Vries. 2023. StarCoder: may the source be with you! arXiv:2305.06161 [cs.CL] https://arxiv.org/abs/2305.06161 \n[196] Shengrui Li, Xueting Han, and Jing Bai. 2024. Nuteprune: Efficient progressive pruning with numerous teachers for large language models. arXiv preprint arXiv:2402.09773 (2024). [197] Tianlin Li, Qian Liu, Tianyu Pang, Chao Du, Qing Guo, Yang Liu, and Min Lin. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 719, + "chunk_id": "Small Language Models in the Era of Large_chunk_0719", + "start_position": 384588, + "end_position": 385063, + "page_index": 59, + "word_count": 68, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": "2024. Purifying large language models by ensembling a small language model. arXiv preprint arXiv:2402.14845 (2024). [198] Xiang Lisa Li, Ari Holtzman, Daniel Fried, Percy Liang, Jason Eisner, Tatsunori B Hashimoto, Luke Zettlemoyer, and Mike Lewis. 2023. Contrastive Decoding: Open-ended Text Generation as Optimization. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 12286–12312. [199] Xiang Lisa Li and Percy Liang. 2021.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 720, + "chunk_id": "Small Language Models in the Era of Large_chunk_0720", + "start_position": 385063, + "end_position": 385555, + "page_index": 59, + "word_count": 69, + "char_count": 492 + }, + "has_embedding": false + }, + { + "content": "2021. Prefix-tuning: Optimizing continuous prompts for generation. arXiv preprint arXiv:2101.00190 (2021). [200] Yuanzhi Li, Sébastien Bubeck, Ronen Eldan, Allie Del Giorno, Suriya Gunasekar, and Yin Tat Lee. 2023. Textbooks Are All You Need II: phi-1.5 technical report. arXiv:2309.05463 [cs.CL] https://arxiv.org/abs/2309.05463 \n[201] Yun Li, Lin Niu, Xipeng Zhang, Kai Liu, Jianchen Zhu, and Zhanhui Kang. 2023. E-sparse: Boosting the large language model inference through entropy-based n: M sparsity.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 721, + "chunk_id": "Small Language Models in the Era of Large_chunk_0721", + "start_position": 385555, + "end_position": 386060, + "page_index": 59, + "word_count": 67, + "char_count": 505 + }, + "has_embedding": false + }, + { + "content": "E-sparse: Boosting the large language model inference through entropy-based n: M sparsity. arXiv preprint arXiv:2310.15929 (2023). [202] Yinheng Li, Shaofei Wang, Han Ding, and Hang Chen. 2023. Large language models in finance: A survey. In Proceedings of the fourth ACM international conference on AI in finance. 374–382. [203] Wing Lian, Guan Wang, Bleys Goodson, Eugene Pentland, Austin Cook, Chanvichet Vong, and \"Teknium\". 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 722, + "chunk_id": "Small Language Models in the Era of Large_chunk_0722", + "start_position": 386060, + "end_position": 386493, + "page_index": 59, + "word_count": 63, + "char_count": 433 + }, + "has_embedding": false + }, + { + "content": "2023. SlimOrca: An Open Dataset of GPT-4 Augmented FLAN Reasoning Traces, with Verification. https://https://huggingface.co/Open-Orca/SlimOrca \n[204] Jinggui Liang, Lizi Liao, Hao Fei, and Jing Jiang. 2024. Synergizing Large Language Models and Pre-Trained Smaller Models for Conversational Intent Discovery. In Findings of the Association for Computational Linguistics ACL 2024. 14133–14147.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 723, + "chunk_id": "Small Language Models in the Era of Large_chunk_0723", + "start_position": 386493, + "end_position": 386885, + "page_index": 59, + "word_count": 48, + "char_count": 392 + }, + "has_embedding": false + }, + { + "content": "14133–14147. [205] Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, Benjamin Newman, Binhang Yuan, Bobby Yan, Ce Zhang, Christian Alexander Cosgrove, Christopher D Manning, Christopher Re, Diana Acosta-Navas, Drew Arad Hudson, Eric Zelikman, Esin Durmus, Faisal Ladhak, Frieda Rong, Hongyu Ren, Huaxiu Yao, Jue WANG, Keshav Santhanam, Laurel Orr, Lucia Zheng, Mert Yuksekgonul, Mirac Suzgun, Nathan Kim, Neel Guha, Niladri S.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 724, + "chunk_id": "Small Language Models in the Era of Large_chunk_0724", + "start_position": 386885, + "end_position": 387408, + "page_index": 59, + "word_count": 73, + "char_count": 523 + }, + "has_embedding": false + }, + { + "content": "anthanam, Laurel Orr, Lucia Zheng, Mert Yuksekgonul, Mirac Suzgun, Nathan Kim, Neel Guha, Niladri S. Chatterji, Omar Khattab, Peter Henderson, Qian Huang, Ryan Andrew Chi, Sang Michael Xie, Shibani Santurkar, Surya Ganguli, Tatsunori Hashimoto, Thomas Icard, Tianyi Zhang, Vishrav Chaudhary, William Wang, Xuechen Li, Yifan Mai, Yuhui Zhang, and Yuta Koreeda. 2023. Holistic Evaluation of Language Models. Transactions on Machine Learning Research (2023).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 725, + "chunk_id": "Small Language Models in the Era of Large_chunk_0725", + "start_position": 387408, + "end_position": 387863, + "page_index": 59, + "word_count": 63, + "char_count": 455 + }, + "has_embedding": false + }, + { + "content": "Transactions on Machine Learning Research (2023). https://openreview.net/forum?id=iO4LZibEqW \n[206] Jianghao Lin, Rong Shan, Chenxu Zhu, Kounianhua Du, Bo Chen, Shigang Quan, Ruiming Tang, Yong Yu, and Weinan Zhang. 2024. Rella: Retrieval-enhanced large language models for lifelong sequential behavior comprehension in recommendation. In Proceedings of the ACM on Web Conference 2024. 3497–3508.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 726, + "chunk_id": "Small Language Models in the Era of Large_chunk_0726", + "start_position": 387863, + "end_position": 388259, + "page_index": 59, + "word_count": 50, + "char_count": 396 + }, + "has_embedding": false + }, + { + "content": "3497–3508. [207] Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, and Song Han. 2024. AWQ: Activation-aware Weight Quantization for On-Device LLM Compression and Acceleration. Proceedings of Machine Learning and Systems 6 (2024), 87–100. [208] Stephanie Lin, Jacob Hilton, and Owain Evans. 2022. TruthfulQA: Measuring How Models Mimic Human Falsehoods.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 727, + "chunk_id": "Small Language Models in the Era of Large_chunk_0727", + "start_position": 388259, + "end_position": 388681, + "page_index": 59, + "word_count": 59, + "char_count": 422 + }, + "has_embedding": false + }, + { + "content": "TruthfulQA: Measuring How Models Mimic Human Falsehoods. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 3214–3252. [209] Xi Victoria Lin, Todor Mihaylov, Mikel Artetxe, Tianlu Wang, Shuohui Chen, Daniel Simig, Myle Ott, Naman Goyal, Shruti Bhosale, Jingfei Du, Ramakanth Pasunuru, Sam Shleifer, Punit Singh Koura, Vishrav Chaudhary, Brian O’Horo, Jeff Wang, Luke Zettlemoyer, Zornitsa Kozareva, Mona Diab, Veselin Stoyanov, and Xian Li. 2022.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 728, + "chunk_id": "Small Language Models in the Era of Large_chunk_0728", + "start_position": 388681, + "end_position": 389192, + "page_index": 59, + "word_count": 72, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "2022. Few-shot Learning with Multilingual Generative Language Models. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang (Eds.). Association for Computational Linguistics, Abu Dhabi, United Arab Emirates, 9019–9052. https://doi.org/10.18653/v1/2022.emnlp-main.616 \n[210] Zhenghao Lin, Zhibin Gou, Yeyun Gong, Xiao Liu, Yelong Shen, Ruochen Xu, Chen Lin, Yujiu Yang, Jian Jiao, Nan Duan, et al. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 729, + "chunk_id": "Small Language Models in the Era of Large_chunk_0729", + "start_position": 389192, + "end_position": 389679, + "page_index": 59, + "word_count": 64, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "2024. Rho-1: Not all tokens are what you need. arXiv preprint arXiv:2404.07965 (2024). [211] Aixin Liu, Bei Feng, Bin Wang, Bingxuan Wang, Bo Liu, Chenggang Zhao, Chengqi Dengr, Chong Ruan, Damai Dai, Daya Guo, et al. 2024. Deepseek-v2: A strong, economical, and efficient mixture-of-experts language model. arXiv preprint arXiv:2405.04434 (2024). [212] Alisa Liu, Xiaochuang Han, Yizhong Wang, Yulia Tsvetkov, Yejin Choi, and Noah A Smith. 2024. Tuning language models by proxy.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 730, + "chunk_id": "Small Language Models in the Era of Large_chunk_0730", + "start_position": 389679, + "end_position": 390158, + "page_index": 59, + "word_count": 71, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "Tuning language models by proxy. arXiv preprint arXiv:2401.08565 (2024). [213] Jiashuo Liu, Zheyan Shen, Yue He, Xingxuan Zhang, Renzhe Xu, Han Yu, and Peng Cui. 2021. Towards out-of-distribution generalization: A survey. arXiv preprint arXiv:2108.13624 (2021). [214] Qijiong Liu, Nuo Chen, Tetsuya Sakai, and Xiao-Ming Wu. 2024. Once: Boosting content-based recommendation with both open-and closed-source large language models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 731, + "chunk_id": "Small Language Models in the Era of Large_chunk_0731", + "start_position": 390158, + "end_position": 390587, + "page_index": 59, + "word_count": 57, + "char_count": 429 + }, + "has_embedding": false + }, + { + "content": "Once: Boosting content-based recommendation with both open-and closed-source large language models. In Proceedings of the 17th ACM International Conference on Web Search and Data Mining. 452–461. [215] Suqing Liu, Zezhu Yu, Feiran Huang, Yousef Bulbulia, Andreas Bergen, and Michael Liut. 2024. Can Small Language Models With RetrievalAugmented Generation Replace Large Language Models When Learning Computer Science? In Proceedings of the 2024 on Innovation and Technology in Computer Science Education V. 1.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 732, + "chunk_id": "Small Language Models in the Era of Large_chunk_0732", + "start_position": 390587, + "end_position": 391096, + "page_index": 59, + "word_count": 71, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "1. 388–393. [216] Wei Liu, Weihao Zeng, Keqing He, Yong Jiang, and Junxian He. 2023. What makes good data for alignment? a comprehensive study of automatic data selection in instruction tuning. arXiv preprint arXiv:2312.15685 (2023). [217] Yinpeng Liu, Jiawei Liu, Xiang Shi, Qikai Cheng, and Wei Lu. 2024. Let’s Learn Step by Step: Enhancing In-Context Learning Ability with Curriculum Learning. arXiv preprint arXiv:2402.10738 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 733, + "chunk_id": "Small Language Models in the Era of Large_chunk_0733", + "start_position": 391096, + "end_position": 391532, + "page_index": 59, + "word_count": 64, + "char_count": 436 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2402.10738 (2024). [218] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692 (2019). [219] Yanming Liu, Xinyue Peng, Xuhong Zhang, Weihao Liu, Jianwei Yin, Jiannan Cao, and Tianyu Du. 2024. RA-ISF: Learning to Answer and Understand from Retrieval Augmentation via Iterative Self-Feedback.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 734, + "chunk_id": "Small Language Models in the Era of Large_chunk_0734", + "start_position": 391532, + "end_position": 392020, + "page_index": 59, + "word_count": 67, + "char_count": 488 + }, + "has_embedding": false + }, + { + "content": ". RA-ISF: Learning to Answer and Understand from Retrieval Augmentation via Iterative Self-Feedback. arXiv preprint arXiv:2403.06840 (2024). [220] Zichang Liu, Aditya Desai, Fangshuo Liao, Weitao Wang, Victor Xie, Zhaozhuo Xu, Anastasios Kyrillidis, and Anshumali Shrivastava. 2024. Scissorhands: Exploiting the persistence of importance hypothesis for llm kv cache compression at test time. Advances in Neural Information Processing Systems 36 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 735, + "chunk_id": "Small Language Models in the Era of Large_chunk_0735", + "start_position": 392020, + "end_position": 392472, + "page_index": 59, + "word_count": 59, + "char_count": 452 + }, + "has_embedding": false + }, + { + "content": "Advances in Neural Information Processing Systems 36 (2024). [221] Zechun Liu, Barlas Oguz, Changsheng Zhao, Ernie Chang, Pierre Stock, Yashar Mehdad, Yangyang Shi, Raghuraman Krishnamoorthi, and Vikas Chandra. 2023. Llm-qat: Data-free quantization aware training for large language models. arXiv preprint arXiv:2305.17888 (2023). [222] Zhengxiao Liu, Bowen Shen, Zheng Lin, Fali Wang, and Weiping Wang. 2023. Maximum Entropy Loss, the Silver Bullet Targeting Backdoor Attacks in Pre-trained Language Models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 736, + "chunk_id": "Small Language Models in the Era of Large_chunk_0736", + "start_position": 392472, + "end_position": 392980, + "page_index": 59, + "word_count": 68, + "char_count": 508 + }, + "has_embedding": false + }, + { + "content": ". Maximum Entropy Loss, the Silver Bullet Targeting Backdoor Attacks in Pre-trained Language Models. In Findings of the Association for Computational Linguistics: ACL 2023, Anna Rogers, Jordan Boyd-Graber, and Naoaki Okazaki (Eds.). Association for Computational Linguistics, Toronto, Canada, 3850–3868.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 737, + "chunk_id": "Small Language Models in the Era of Large_chunk_0737", + "start_position": 392980, + "end_position": 393283, + "page_index": 59, + "word_count": 39, + "char_count": 303 + }, + "has_embedding": false + }, + { + "content": "Association for Computational Linguistics, Toronto, Canada, 3850–3868. https://doi.org/10.18653/v1/2023.findings-acl.237 \n[223] Zechun Liu, Changsheng Zhao, Forrest Iandola, Chen Lai, Yuandong Tian, Igor Fedorov, Yunyang Xiong, Ernie Chang, Yangyang Shi, Raghuraman Krishnamoorthi, et al. 2024. Mobilellm: Optimizing sub-billion parameter language models for on-device use cases. arXiv preprint arXiv:2402.14905 (2024). [224] Lin Long, Rui Wang, Ruixuan Xiao, Junbo Zhao, Xiao Ding, Gang Chen, and Haobo Wang.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 738, + "chunk_id": "Small Language Models in the Era of Large_chunk_0738", + "start_position": 393283, + "end_position": 393792, + "page_index": 59, + "word_count": 62, + "char_count": 509 + }, + "has_embedding": false + }, + { + "content": "[224] Lin Long, Rui Wang, Ruixuan Xiao, Junbo Zhao, Xiao Ding, Gang Chen, and Haobo Wang. 2024. On LLMs-Driven Synthetic Data Generation, Curation, and Evaluation: A Survey. In Findings of the Association for Computational Linguistics ACL 2024. 11065–11082. [225] Shayne Longpre, Le Hou, Tu Vu, Albert Webson, Hyung Won Chung, Yi Tay, Denny Zhou, Quoc V Le, Barret Zoph, Jason Wei, et al. 2023. The flan collection: Designing data and methods for effective instruction tuning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 739, + "chunk_id": "Small Language Models in the Era of Large_chunk_0739", + "start_position": 393792, + "end_position": 394268, + "page_index": 59, + "word_count": 75, + "char_count": 476 + }, + "has_embedding": false + }, + { + "content": "The flan collection: Designing data and methods for effective instruction tuning. In International Conference on Machine Learning. PMLR, 22631–22648. [226] Shayne Longpre, Robert Mahari, Anthony Chen, Naana Obeng-Marnu, Damien Sileo, William Brannon, Niklas Muennighoff, Nathan Khazam, Jad Kabbara, Kartik Perisetla, et al. 2023. The data provenance initiative: A large scale audit of dataset licensing & attribution in ai. arXiv preprint arXiv:2310.16787 (2023).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 740, + "chunk_id": "Small Language Models in the Era of Large_chunk_0740", + "start_position": 394268, + "end_position": 394731, + "page_index": 59, + "word_count": 62, + "char_count": 463 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2310.16787 (2023). [227] Anton Lozhkov, Raymond Li, Loubna Ben Allal, Federico Cassano, Joel Lamy-Poirier, Nouamane Tazi, Ao Tang, Dmytro Pykhtar, Jiawei Liu, Yuxiang Wei, et al. 2024. Starcoder 2 and the stack v2: The next generation. arXiv preprint arXiv:2402.19173 (2024). [228] Wenhao Lu, Jian Jiao, and Ruofei Zhang. 2020. Twinbert: Distilling knowledge to twin-structured compressed bert models for large-scale retrieval.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 741, + "chunk_id": "Small Language Models in the Era of Large_chunk_0741", + "start_position": 394731, + "end_position": 395179, + "page_index": 59, + "word_count": 62, + "char_count": 448 + }, + "has_embedding": false + }, + { + "content": "Twinbert: Distilling knowledge to twin-structured compressed bert models for large-scale retrieval. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management. 2645–2652. [229] Zhenyan Lu, Xiang Li, Dongqi Cai, Rongjie Yi, Fangming Liu, Xiwen Zhang, Nicholas D Lane, and Mengwei Xu. 2024. Small language models: Survey, measurements, and insights. arXiv preprint arXiv:2409.15790 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 742, + "chunk_id": "Small Language Models in the Era of Large_chunk_0742", + "start_position": 395179, + "end_position": 395601, + "page_index": 59, + "word_count": 56, + "char_count": 422 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2409.15790 (2024). [230] Renqian Luo, Liai Sun, Yingce Xia, Tao Qin, Sheng Zhang, Hoifung Poon, and Tie-Yan Liu. 2022. BioGPT: generative pre-trained transformer for biomedical text generation and mining. Briefings in bioinformatics 23, 6 (2022), bbac409. [231] Shuming Ma, Hongyu Wang, Lingxiao Ma, Lei Wang, Wenhui Wang, Shaohan Huang, Li Dong, Ruiping Wang, Jilong Xue, and Furu Wei. 2024. The era of 1-bit llms: All large language models are in 1.58 bits.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 743, + "chunk_id": "Small Language Models in the Era of Large_chunk_0743", + "start_position": 395601, + "end_position": 396081, + "page_index": 59, + "word_count": 74, + "char_count": 480 + }, + "has_embedding": false + }, + { + "content": "The era of 1-bit llms: All large language models are in 1.58 bits. arXiv preprint arXiv:2402.17764 (2024). [232] Xinyin Ma, Gongfan Fang, and Xinchao Wang. 2023. Llm-pruner: On the structural pruning of large language models. Advances in neural information processing systems 36 (2023), 21702–21720. [233] Xinbei Ma, Yeyun Gong, Pengcheng He, Hai Zhao, and Nan Duan. 2023. Query Rewriting in Retrieval-Augmented Large Language Models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 744, + "chunk_id": "Small Language Models in the Era of Large_chunk_0744", + "start_position": 396081, + "end_position": 396515, + "page_index": 59, + "word_count": 64, + "char_count": 434 + }, + "has_embedding": false + }, + { + "content": "Query Rewriting in Retrieval-Augmented Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. 5303–5315. [234] Yubo Ma, Yixin Cao, YongChing Hong, and Aixin Sun. 2023. Large language model is not a good few-shot information extractor, but a good reranker for hard samples! arXiv preprint arXiv:2303.08559 (2023). [235] Yuhan Ma, Chenyou Fan, and Haiqi Jiang. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 745, + "chunk_id": "Small Language Models in the Era of Large_chunk_0745", + "start_position": 396515, + "end_position": 396938, + "page_index": 59, + "word_count": 62, + "char_count": 423 + }, + "has_embedding": false + }, + { + "content": "2023. Sci-cot: Leveraging large language models for enhanced knowledge distillation in small models for scientific qa. In 2023 9th International Conference on Computer and Communications (ICCC). IEEE, 2394–2398. [236] YINGWEI MA, Yue Liu, Yue Yu, Yuanliang Zhang, Yu Jiang, Changjian Wang, and Shanshan Li. 2024. At Which Training Stage Does Code Data Help LLMs Reasoning?. In The Twelfth International Conference on Learning Representations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 746, + "chunk_id": "Small Language Models in the Era of Large_chunk_0746", + "start_position": 396938, + "end_position": 397380, + "page_index": 59, + "word_count": 63, + "char_count": 442 + }, + "has_embedding": false + }, + { + "content": "In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=KIPJKST4gw \n[237] Ian Magnusson, Akshita Bhagia, Valentin Hofmann, Luca Soldaini, Ananya Harsh Jha, Oyvind Tafjord, Dustin Schwenk, Evan Pete Walsh, Yanai Elazar, Kyle Lo, et al. 2023. Paloma: A benchmark for evaluating language model fit. arXiv preprint arXiv:2312.10523 (2023). [238] Dakota Mahan, Ryan Carlow, Louis Castricato, Nathan Cooper, and Christian Laforte. [n. d.]. Stable Beluga models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 747, + "chunk_id": "Small Language Models in the Era of Large_chunk_0747", + "start_position": 397380, + "end_position": 397880, + "page_index": 59, + "word_count": 64, + "char_count": 500 + }, + "has_embedding": false + }, + { + "content": "Stable Beluga models. [https://huggingface.co/ stabilityai/StableBeluga2](https://huggingface.co/stabilityai/StableBeluga2) \n[239] Vladimir Malinovskii, Denis Mazur, Ivan Ilin, Denis Kuznedelev, Konstantin Burlachenko, Kai Yi, Dan Alistarh, and Peter Richtarik. 2024. PV-Tuning: Beyond Straight-Through Estimation for Extreme LLM Compression. arXiv preprint arXiv:2405.14852 (2024). [240] Potsawee Manakul, Adian Liusie, and Mark Gales. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 748, + "chunk_id": "Small Language Models in the Era of Large_chunk_0748", + "start_position": 397880, + "end_position": 398322, + "page_index": 59, + "word_count": 45, + "char_count": 442 + }, + "has_embedding": false + }, + { + "content": "2023. SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, Houda Bouamor, Juan Pino, and Kalika Bali (Eds.). Association for Computational Linguistics, Singapore, 9004–9017.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 749, + "chunk_id": "Small Language Models in the Era of Large_chunk_0749", + "start_position": 398322, + "end_position": 398633, + "page_index": 59, + "word_count": 38, + "char_count": 311 + }, + "has_embedding": false + }, + { + "content": "Association for Computational Linguistics, Singapore, 9004–9017. https://doi.org/10.18653/v1/2023.emnlp-main.557 \n[241] Sachin Mehta, Mohammad Hossein Sekhavat, Qingqing Cao, Maxwell Horton, Yanzi Jin, Chenfan Sun, Seyed Iman Mirzadeh, Mahyar Najibi, Dmitry Belenko, Peter Zatloukal, et al. 2024. Openelm: An efficient language model family with open training and inference framework. In Workshop on Efficient Systems for Foundation Models II@ ICML2024. [242] Dheeraj Mekala, Alex Nguyen, and Jingbo Shang. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 750, + "chunk_id": "Small Language Models in the Era of Large_chunk_0750", + "start_position": 398633, + "end_position": 399145, + "page_index": 59, + "word_count": 64, + "char_count": 512 + }, + "has_embedding": false + }, + { + "content": "2024. Smaller language models are capable of selecting instruction-tuning training data for larger language models. arXiv preprint arXiv:2402.10430 (2024). [243] Xin Men, Mingyu Xu, Qingyu Zhang, Bingning Wang, Hongyu Lin, Yaojie Lu, Xianpei Han, and Weipeng Chen. 2024. Shortgpt: Layers in large language models are more redundant than you expect. arXiv preprint arXiv:2403.03853 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 751, + "chunk_id": "Small Language Models in the Era of Large_chunk_0751", + "start_position": 399145, + "end_position": 399533, + "page_index": 59, + "word_count": 54, + "char_count": 388 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2403.03853 (2024). [244] Sewon Min, Kalpesh Krishna, Xinxi Lyu, Mike Lewis, Wen-tau Yih, Pang Koh, Mohit Iyyer, Luke Zettlemoyer, and Hannaneh Hajishirzi. 2023. FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, Houda Bouamor, Juan Pino, and Kalika Bali (Eds.). Association for Computational Linguistics, Singapore, 12076–12100.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 752, + "chunk_id": "Small Language Models in the Era of Large_chunk_0752", + "start_position": 399533, + "end_position": 400015, + "page_index": 59, + "word_count": 64, + "char_count": 482 + }, + "has_embedding": false + }, + { + "content": "Association for Computational Linguistics, Singapore, 12076–12100. https://doi.org/10.18653/v1/2023.emnlp-main.741 \n[245] Go Min-su. 2024. Deep Learning Bible - 8. Large Language Models. WikiDocs. https://wikidocs.net/237419 \n[246] Eric Mitchell, Rafael Rafailov, Archit Sharma, Chelsea Finn, and Christopher D Manning. 2024. An Emulator for Fine-tuning Large Language Models using Small Language Models. In The Twelfth International Conference on Learning Representations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 753, + "chunk_id": "Small Language Models in the Era of Large_chunk_0753", + "start_position": 400015, + "end_position": 400488, + "page_index": 59, + "word_count": 54, + "char_count": 473 + }, + "has_embedding": false + }, + { + "content": "In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=Eo7kv0sllr \n[247] Arindam Mitra, Luciano Del Corro, Shweti Mahajan, Andres Codas, Clarisse Simoes, Sahaj Agarwal, Xuxi Chen, Anastasia Razdaibiedina, Erik Jones, Kriti Aggarwal, et al. 2023. Orca 2: Teaching small language models how to reason. arXiv preprint arXiv:2311.11045 (2023). [248] Lingbo Mo, Boshi Wang, Muhao Chen, and Huan Sun. 2024. How Trustworthy are Open-Source LLMs?", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 754, + "chunk_id": "Small Language Models in the Era of Large_chunk_0754", + "start_position": 400488, + "end_position": 400972, + "page_index": 59, + "word_count": 63, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "How Trustworthy are Open-Source LLMs? An Assessment under Malicious Demonstrations Shows their Vulnerabilities. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). 2775–2792. [249] John Xavier Morris, Wenting Zhao, Justin T Chiu, Vitaly Shmatikov, and Alexander M Rush. 2024. Language Model Inversion. In The Twelfth International Conference on Learning Representations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 755, + "chunk_id": "Small Language Models in the Era of Large_chunk_0755", + "start_position": 400972, + "end_position": 401461, + "page_index": 59, + "word_count": 65, + "char_count": 489 + }, + "has_embedding": false + }, + { + "content": "In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=t9dWHpGkPj \n[250] Maximilian Mozes, Xuanli He, Bennett Kleinberg, and Lewis D Griffin. 2023. Use of llms for illicit purposes: Threats, prevention measures, and vulnerabilities. arXiv preprint arXiv:2308.12833 (2023). [251] Subhabrata Mukherjee, Arindam Mitra, Ganesh Jawahar, Sahaj Agarwal, Hamid Palangi, and Ahmed Awadallah. 2023. Orca: Progressive learning from complex explanation traces of gpt-4.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 756, + "chunk_id": "Small Language Models in the Era of Large_chunk_0756", + "start_position": 401461, + "end_position": 401964, + "page_index": 59, + "word_count": 60, + "char_count": 503 + }, + "has_embedding": false + }, + { + "content": "Orca: Progressive learning from complex explanation traces of gpt-4. arXiv preprint arXiv:2306.02707 (2023). [252] Saurav Muralidharan, Sharath Turuvekere Sreenivas, Raviraj Joshi, Marcin Chochowski, Mostofa Patwary, Mohammad Shoeybi, Bryan Catanzaro, Jan Kautz, and Pavlo Molchanov. 2024. Compact language models via pruning and knowledge distillation. arXiv preprint arXiv:2407.14679 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 757, + "chunk_id": "Small Language Models in the Era of Large_chunk_0757", + "start_position": 401964, + "end_position": 402357, + "page_index": 59, + "word_count": 47, + "char_count": 393 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2407.14679 (2024). [253] Rithesh Murthy, Liangwei Yang, Juntao Tan, Tulika Manoj Awalgaonkar, Yilun Zhou, Shelby Heinecke, Sachin Desai, Jason Wu, Ran Xu, Sarah Tan, Jianguo Zhang, Zhiwei Liu, Shirley Kokane, Zuxin Liu, Ming Zhu, Huan Wang, Caiming Xiong, and Silvio Savarese. 2024. MobileAIBench: Benchmarking LLMs and LMMs for On-Device Use Cases. arXiv:2406.10290 [cs.CL] https://arxiv.org/abs/2406.10290 \n[254] Kalyan Nakka, Jimmy Dani, and Nitesh Saxena. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 758, + "chunk_id": "Small Language Models in the Era of Large_chunk_0758", + "start_position": 402357, + "end_position": 402843, + "page_index": 59, + "word_count": 65, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "2024. Is On-Device AI Broken and Exploitable? Assessing the Trust and Ethics in Small Language Models. arXiv preprint arXiv:2406.05364 (2024). [255] Daye Nam, Andrew Macvean, Vincent Hellendoorn, Bogdan Vasilescu, and Brad Myers. 2024. Using an llm to help with code understanding. In Proceedings of the IEEE/ACM 46th International Conference on Software Engineering. 1–13. [256] Piotr Nawrot, Adrian Łańcucki, Marcin Chochowski, David Tarjan, and Edoardo Ponti. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 759, + "chunk_id": "Small Language Models in the Era of Large_chunk_0759", + "start_position": 402843, + "end_position": 403311, + "page_index": 59, + "word_count": 66, + "char_count": 468 + }, + "has_embedding": false + }, + { + "content": "2024. Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inference. In Forty-first International Conference on Machine Learning. https://openreview.net/forum?id=tDRYrAkOB7 \n[257] Thuat Nguyen, Chien Van Nguyen, Viet Dac Lai, Hieu Man, Nghia Trung Ngo, Franck Dernoncourt, Ryan A Rossi, and Thien Huu Nguyen. 2024. CulturaX: A Cleaned, Enormous, and Multilingual Dataset for Large Language Models in 167 Languages.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 760, + "chunk_id": "Small Language Models in the Era of Large_chunk_0760", + "start_position": 403311, + "end_position": 403735, + "page_index": 59, + "word_count": 55, + "char_count": 424 + }, + "has_embedding": false + }, + { + "content": "CulturaX: A Cleaned, Enormous, and Multilingual Dataset for Large Language Models in 167 Languages. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024). 4226–4237. [258] Tuan Dung Nguyen, Yuan-Sen Ting, Ioana Ciuca, Charles O’Neill, Ze-Chang Sun, Maja Jabłońska, Sandor Kruk, Ernest Perkowski, Jack Miller, Jason Jason Jingsh Li, et al. 2023. AstroLLaMA: Towards Specialized Foundation Models in Astronomy.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 761, + "chunk_id": "Small Language Models in the Era of Large_chunk_0761", + "start_position": 403735, + "end_position": 404230, + "page_index": 59, + "word_count": 66, + "char_count": 495 + }, + "has_embedding": false + }, + { + "content": "AstroLLaMA: Towards Specialized Foundation Models in Astronomy. In Proceedings of the Second Workshop on Information Extraction from Scientific Publications. 49–55. [259] Jianmo Ni, Chen Qu, Jing Lu, Zhuyun Dai, Gustavo Hernandez Abrego, Ji Ma, Vincent Zhao, Yi Luan, Keith Hall, Ming-Wei Chang, and Yinfei Yang. 2022. Large Dual Encoders Are Generalizable Retrievers. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 9844–9855.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 762, + "chunk_id": "Small Language Models in the Era of Large_chunk_0762", + "start_position": 404230, + "end_position": 404743, + "page_index": 59, + "word_count": 70, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "Association for Computational Linguistics, 9844–9855. https://doi.org/10.18653/v1/2022.emnlp-main.669 \n[260] Rodrigo Nogueira and Kyunghyun Cho. 2019. Passage Re-ranking with BERT. arXiv preprint arXiv:1901.04085 (2019). [261] A Noorian. 2024. A BERT-based sequential POI recommender system in social media. Computer Standards & Interfaces 87 (2024), 103766. [262] OpenAI. 2024. GPT-4o mini: advancing cost-efficient intelligence.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 763, + "chunk_id": "Small Language Models in the Era of Large_chunk_0763", + "start_position": 404743, + "end_position": 405173, + "page_index": 59, + "word_count": 49, + "char_count": 430 + }, + "has_embedding": false + }, + { + "content": "GPT-4o mini: advancing cost-efficient intelligence. https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/ Accessed: 2024-7-18. [263] OpenAI. 2024. Hello GPT-4o. https://openai.com/index/hello-gpt-4o/ Accessed: 2024-5-13. [264] Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 764, + "chunk_id": "Small Language Models in the Era of Large_chunk_0764", + "start_position": 405173, + "end_position": 405646, + "page_index": 59, + "word_count": 49, + "char_count": 473 + }, + "has_embedding": false + }, + { + "content": "Training language models to follow instructions with human feedback. Advances in neural information processing systems 35 (2022), 27730–27744. [265] Shankar Padmanabhan, Yasumasa Onoe, Michael Zhang, Greg Durrett, and Eunsol Choi. 2024. Propagating knowledge updates to lms through distillation. Advances in Neural Information Processing Systems 36 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 765, + "chunk_id": "Small Language Models in the Era of Large_chunk_0765", + "start_position": 405646, + "end_position": 406002, + "page_index": 59, + "word_count": 46, + "char_count": 356 + }, + "has_embedding": false + }, + { + "content": "Advances in Neural Information Processing Systems 36 (2024). [266] Jupinder Parmar, Shrimai Prabhumoye, Joseph Jennings, Mostofa Patwary, Sandeep Subramanian, Dan Su, Chen Zhu, Deepak Narayanan, Aastha Jhunjhunwala, Ayush Dattagupta, et al. 2024. Nemotron-4 15B Technical Report. arXiv preprint arXiv:2402.16819 (2024). [267] Keiran Paster, Marco Dos Santos, Zhangir Azerbayev, and Jimmy Ba. 2024. OpenWebMath: An Open Dataset of High-Quality Mathematical Web Text.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 766, + "chunk_id": "Small Language Models in the Era of Large_chunk_0766", + "start_position": 406002, + "end_position": 406467, + "page_index": 59, + "word_count": 61, + "char_count": 465 + }, + "has_embedding": false + }, + { + "content": "OpenWebMath: An Open Dataset of High-Quality Mathematical Web Text. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=jKHmjlpViu \n[268] Guilherme Penedo, Hynek Kydlíček, Loubna Ben allal, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, and Thomas Wolf. 2024. The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 767, + "chunk_id": "Small Language Models in the Era of Large_chunk_0767", + "start_position": 406467, + "end_position": 406870, + "page_index": 59, + "word_count": 52, + "char_count": 403 + }, + "has_embedding": false + }, + { + "content": "The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale. arXiv:2406.17557 [cs.CL] \n[269] Guilherme Penedo, Quentin Malartic, Daniel Hesslow, Ruxandra Cojocaru, Alessandro Cappelli, Hamza Alobeidli, Baptiste Pannier, Ebtesam Almazrouei, and Julien Launay. 2023. The RefinedWeb dataset for Falcon LLM: outperforming curated corpora with web data, and web data only. arXiv preprint arXiv:2306.01116 (2023).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 768, + "chunk_id": "Small Language Models in the Era of Large_chunk_0768", + "start_position": 406870, + "end_position": 407291, + "page_index": 59, + "word_count": 56, + "char_count": 421 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2306.01116 (2023). [270] Bo Peng, Eric Alcaide, Quentin Anthony, Alon Albalak, Samuel Arcadinho, Stella Biderman, Huanqi Cao, Xin Cheng, Michael Chung, Leon Derczynski, Xingjian Du, Matteo Grella, Kranthi Gv, Xuzheng He, Haowen Hou, Przemyslaw Kazienko, Jan Kocon, Jiaming Kong, Bartłomiej Koptyra, Hayden Lau, Jiaju Lin, Krishna Sri Ipsit Mantri, Ferdinand Mom, Atsushi Saito, Guangyu Song, Xiangru Tang, Johan Wind, Stanisław Woźniak, Zhenyuan Zhang, Qinghua Zhou, Jian Zhu, and Rui-Jie Zhu.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 769, + "chunk_id": "Small Language Models in the Era of Large_chunk_0769", + "start_position": 407291, + "end_position": 407805, + "page_index": 59, + "word_count": 72, + "char_count": 514 + }, + "has_embedding": false + }, + { + "content": "iangru Tang, Johan Wind, Stanisław Woźniak, Zhenyuan Zhang, Qinghua Zhou, Jian Zhu, and Rui-Jie Zhu. 2023. RWKV: Reinventing RNNs for the Transformer Era. In Findings of the Association for Computational Linguistics: EMNLP 2023, Houda Bouamor, Juan Pino, and Kalika Bali (Eds.). Association for Computational Linguistics, Singapore, 14048–14077. https://doi.org/10.18653/v1/2023.findings-emnlp.936 \n[271] Baolin Peng, Chunyuan Li, Pengcheng He, Michel Galley, and Jianfeng Gao. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 770, + "chunk_id": "Small Language Models in the Era of Large_chunk_0770", + "start_position": 407805, + "end_position": 408288, + "page_index": 59, + "word_count": 61, + "char_count": 483 + }, + "has_embedding": false + }, + { + "content": "2023. Instruction tuning with gpt-4. arXiv preprint arXiv:2304.03277 (2023). [272] Zhiyuan Peng, Xuyang Wu, Qifan Wang, and Yi Fang. 2023. Soft prompt tuning for augmenting dense retrieval with large language models. arXiv preprint arXiv:2307.08303 (2023).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 771, + "chunk_id": "Small Language Models in the Era of Large_chunk_0771", + "start_position": 408288, + "end_position": 408544, + "page_index": 59, + "word_count": 35, + "char_count": 256 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2307.08303 (2023). [273] Ethan Perez, Sam Ringer, Kamile Lukosiute, Karina Nguyen, Edwin Chen, Scott Heiner, Craig Pettit, Catherine Olsson, Sandipan Kundu, Saurav Kadavath, Andy Jones, Anna Chen, Benjamin Mann, Brian Israel, Bryan Seethor, Cameron McKinnon, Christopher Olah, Da Yan, Daniela Amodei, Dario Amodei, Dawn Drain, Dustin Li, Eli Tran-Johnson, Guro Khundadze, Jackson Kernion, James Landis, Jamie Kerr, Jared Mueller, Jeeyoon Hyun, Joshua Landau, Kamal Ndousse, Landon Goldberg, Liane Lovitt, Martin Lucas, Michael Sellitto, Miranda Zhang, Neerav Kingsland, Nelson Elhage, Nicholas Joseph, Noemi Mercado, Nova DasSarma, Oliver Rausch, Robin Larson, Sam McCandlish, Scott Johnston, Shauna Kravec, Sheer El Showk, Tamera Lanham, Timothy Telleen-Lawton, Tom Brown, Tom Henighan, Tristan Hume, Yuntao Bai, Zac Hatfield-Dodds, Jack Clark, Samuel R.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 772, + "chunk_id": "Small Language Models in the Era of Large_chunk_0772", + "start_position": 408544, + "end_position": 409420, + "page_index": 59, + "word_count": 118, + "char_count": 876 + }, + "has_embedding": false + }, + { + "content": "Lawton, Tom Brown, Tom Henighan, Tristan Hume, Yuntao Bai, Zac Hatfield-Dodds, Jack Clark, Samuel R. Bowman, Amanda Askell, Roger Grosse, Danny Hernandez, Deep Ganguli, Evan Hubinger, Nicholas Schiefer, and Jared Kaplan. 2023. Discovering Language Model Behaviors with Model-Written Evaluations. In Findings of the Association for Computational Linguistics: ACL 2023. 13387–13434. [274] Pascal Pfeiffer, Philipp Singer, Yauhen Babakhin, Gabor Fodor, Nischay Dhankhar, and Sri Satish Ambati. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 773, + "chunk_id": "Small Language Models in the Era of Large_chunk_0773", + "start_position": 409420, + "end_position": 409916, + "page_index": 59, + "word_count": 66, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "2024. H2O-Danube3 Technical Report. arXiv preprint arXiv:2407.09276 (2024). [275] Karmvir Singh Phogat, Sai Akhil Puranam, Sridhar Dasaratha, Chetan Harsha, and Shashishekar Ramakrishna. 2024. Fine-tuning Smaller Language Models for Question Answering over Financial Documents. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 10528–10548.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 774, + "chunk_id": "Small Language Models in the Era of Large_chunk_0774", + "start_position": 409916, + "end_position": 410402, + "page_index": 59, + "word_count": 59, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "Association for Computational Linguistics, Miami, Florida, USA, 10528–10548. https://doi.org/10.18653/v1/2024.findings-emnlp.617 \n[276] Reiner Pope, Sholto Douglas, Aakanksha Chowdhery, Jacob Devlin, James Bradbury, Jonathan Heek, Kefan Xiao, Shivani Agrawal, and Jeff Dean. 2023. Efficiently scaling transformer inference. Proceedings of Machine Learning and Systems 5 (2023), 606–624. [277] Ofir Press, Noah Smith, and Mike Lewis. 2022.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 775, + "chunk_id": "Small Language Models in the Era of Large_chunk_0775", + "start_position": 410402, + "end_position": 410840, + "page_index": 59, + "word_count": 52, + "char_count": 438 + }, + "has_embedding": false + }, + { + "content": "2022. Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation. In International Conference on Learning Representations. https://openreview.net/forum?id=R8sQPpGCv0 \n[278] Ruiyang Qin, Jun Xia, Zhenge Jia, Meng Jiang, Ahmed Abbasi, Peipei Zhou, Jingtong Hu, and Yiyu Shi. 2023. Enabling on-device large language model personalization with self-supervised data selection and synthesis. arXiv preprint arXiv:2311.12275 (2023).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 776, + "chunk_id": "Small Language Models in the Era of Large_chunk_0776", + "start_position": 410840, + "end_position": 411294, + "page_index": 59, + "word_count": 55, + "char_count": 454 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2311.12275 (2023). [279] Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, Yankai Lin, Xin Cong, Xiangru Tang, Bill Qian, et al. [n. d.]. ToolLLM: Facilitating Large Language Models to Master $1 6 0 0 0 +$ Real-world APIs. In The Twelfth International Conference on Learning Representations. [280] Haohao $\\mathrm { Q u } .$ , Liangbo Ning, Rui An, Wenqi Fan, Tyler Derr, Hui Liu, Xin Xu, and Qing Li. 2024. A survey of mamba. arXiv preprint arXiv:2408.01129 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 777, + "chunk_id": "Small Language Models in the Era of Large_chunk_0777", + "start_position": 411294, + "end_position": 411797, + "page_index": 59, + "word_count": 85, + "char_count": 503 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2408.01129 (2024). [281] Haohao Qu, Yifeng Zhang, Liangbo Ning, Wenqi Fan, and Qing Li. 2024. Ssd4rec: a structured state space duality model for efficient sequential recommendation. arXiv preprint arXiv:2409.01192 (2024). [282] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. 2019. Language models are unsupervised multitask learners. OpenAI blog 1, 8 (2019), 9.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 778, + "chunk_id": "Small Language Models in the Era of Large_chunk_0778", + "start_position": 411797, + "end_position": 412221, + "page_index": 59, + "word_count": 60, + "char_count": 424 + }, + "has_embedding": false + }, + { + "content": "OpenAI blog 1, 8 (2019), 9. [283] Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. 2024. Direct preference optimization: Your language model is secretly a reward model. Advances in Neural Information Processing Systems 36 (2024). [284] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 779, + "chunk_id": "Small Language Models in the Era of Large_chunk_0779", + "start_position": 412221, + "end_position": 412724, + "page_index": 59, + "word_count": 74, + "char_count": 503 + }, + "has_embedding": false + }, + { + "content": "Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of machine learning research 21, 140 (2020), 1–67. [285] Mohammad Wali Ur Rahman, Murad Mehrab Abrar, Hunter Gibbons Copening, Salim Hariri, Sicong Shao, Pratik Satam, and Soheil Salehi. 2023. Quantized Transformer Language Model Implementations on Edge Devices. arXiv:2310.03971 [cs.CL] https://arxiv.org/abs/2310.03971 \n[286] Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, and Yuxiong He. 2020.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 780, + "chunk_id": "Small Language Models in the Era of Large_chunk_0780", + "start_position": 412724, + "end_position": 413214, + "page_index": 59, + "word_count": 63, + "char_count": 490 + }, + "has_embedding": false + }, + { + "content": "2020. Zero: Memory optimizations toward training trillion parameter models. In SC20: International Conference for High Performance Computing, Networking, Storage and Analysis. IEEE, 1–16. [287] Ori Ram, Yoav Levine, Itay Dalmedigos, Dor Muhlgay, Amnon Shashua, Kevin Leyton-Brown, and Yoav Shoham. 2023. In-Context RetrievalAugmented Language Models. Transactions of the Association for Computational Linguistics 11 (2023), 1316–1331. [288] Krithika Ramesh, Arnav Chavan, Shrey Pandit, and Sunayana Sitaram. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 781, + "chunk_id": "Small Language Models in the Era of Large_chunk_0781", + "start_position": 413214, + "end_position": 413727, + "page_index": 59, + "word_count": 65, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "2023. A Comparative Study on the Impact of Model Compression Techniques on Fairness in Language Models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 15762–15782. https://aclanthology.org/2023.acl-long.878 \n[289] Al Mamunur Rashid, George Karypis, and John Riedl. 2008. Learning preferences of new users in recommender systems: an information theoretic approach.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 782, + "chunk_id": "Small Language Models in the Era of Large_chunk_0782", + "start_position": 413727, + "end_position": 414202, + "page_index": 59, + "word_count": 61, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": "Learning preferences of new users in recommender systems: an information theoretic approach. Acm Sigkdd Explorations Newsletter 10, 2 (2008), 90–100. [290] Christopher Rawles, Alice Li, Daniel Rodriguez, Oriana Riva, and Timothy Lillicrap. 2024. Androidinthewild: A large-scale dataset for android device control. Advances in Neural Information Processing Systems 36 (2024). [291] Stephen Robertson, Hugo Zaragoza, et al. 2009. The probabilistic relevance framework: BM25 and beyond.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 783, + "chunk_id": "Small Language Models in the Era of Large_chunk_0783", + "start_position": 414202, + "end_position": 414685, + "page_index": 59, + "word_count": 64, + "char_count": 483 + }, + "has_embedding": false + }, + { + "content": "The probabilistic relevance framework: BM25 and beyond. Foundations and Trends® in Information Retrieval 3, 4 (2009), 333–389. [292] Baptiste Roziere, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Tal Remez, Jérémy Rapin, et al. 2023. Code llama: Open foundation models for code. arXiv preprint arXiv:2308.12950 (2023). [293] Caitlin Sadowski and Greg Levin. 2007. Simhash: Hash-based similarity detection.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 784, + "chunk_id": "Small Language Models in the Era of Large_chunk_0784", + "start_position": 414685, + "end_position": 415143, + "page_index": 59, + "word_count": 64, + "char_count": 458 + }, + "has_embedding": false + }, + { + "content": "Simhash: Hash-based similarity detection. [294] Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2021. Winogrande: An adversarial winograd schema challenge at scale. Commun. ACM 64, 9 (2021), 99–106. [295] Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. 2024. Toolformer: Language models can teach themselves to use tools. Advances in Neural Information Processing Systems 36 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 785, + "chunk_id": "Small Language Models in the Era of Large_chunk_0785", + "start_position": 415143, + "end_position": 415645, + "page_index": 59, + "word_count": 68, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "Advances in Neural Information Processing Systems 36 (2024). [296] Rico Sennrich, Jannis Vamvas, and Alireza Mohammadshahi. 2023. Mitigating Hallucinations and Off-target Machine Translation with SourceContrastive and Language-Contrastive Decoding. arXiv preprint arXiv:2309.07098 (2023). [297] Zeyang Sha and Yang Zhang. 2024. Prompt stealing attacks against large language models. arXiv preprint arXiv:2402.12959 (2024). [298] Yu Shang, Yu Li, Fengli Xu, and Yong Li. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 786, + "chunk_id": "Small Language Models in the Era of Large_chunk_0786", + "start_position": 415645, + "end_position": 416120, + "page_index": 59, + "word_count": 61, + "char_count": 475 + }, + "has_embedding": false + }, + { + "content": "2024. Synergy-of-Thoughts: Eliciting Efficient Reasoning in Hybrid Language Models. arXiv preprint arXiv:2402.02563 (2024). [299] Yuzhang Shang, Zhihang Yuan, Qiang Wu, and Zhen Dong. 2023. PB-LLM: Partially Binarized Large Language Models. arXiv:2310.00034 [cs.LG] https://arxiv.org/abs/2310.00034 \n[300] Hang Shao, Bei Liu, and Yanmin Qian. 2024. One-shot sensitivity-aware mixed sparsity pruning for large language models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 787, + "chunk_id": "Small Language Models in the Era of Large_chunk_0787", + "start_position": 416120, + "end_position": 416545, + "page_index": 59, + "word_count": 51, + "char_count": 425 + }, + "has_embedding": false + }, + { + "content": "One-shot sensitivity-aware mixed sparsity pruning for large language models. In ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 11296–11300. [301] Mrinank Sharma, Meg Tong, Tomasz Korbak, David Duvenaud, Amanda Askell, Samuel R Bowman, Newton Cheng, Esin Durmus, Zac HatfieldDodds, Scott R Johnston, et al. 2023. Towards understanding sycophancy in language models. arXiv preprint arXiv:2310.13548 (2023).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 788, + "chunk_id": "Small Language Models in the Era of Large_chunk_0788", + "start_position": 416545, + "end_position": 417008, + "page_index": 59, + "word_count": 60, + "char_count": 463 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2310.13548 (2023). [302] Erfan Shayegani, Md Abdullah Al Mamun, Yu Fu, Pedram Zaree, Yue Dong, and Nael Abu-Ghazaleh. 2023. Survey of vulnerabilities in large language models revealed by adversarial attacks. arXiv preprint arXiv:2310.10844 (2023). [303] Noam Shazeer. 2019. Fast transformer decoding: One write-head is all you need. arXiv preprint arXiv:1911.02150 (2019). [304] Noam Shazeer. 2020. Glu variants improve transformer. arXiv preprint arXiv:2002.05202 (2020).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 789, + "chunk_id": "Small Language Models in the Era of Large_chunk_0789", + "start_position": 417008, + "end_position": 417501, + "page_index": 59, + "word_count": 65, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2002.05202 (2020). [305] Bowen Shen, Zheng Lin, Yuanxin Liu, Zhengxiao Liu, Lei Wang, and Weiping Wang. 2022. COST-EFF: Collaborative Optimization of Spatial and Temporal Efficiency with Slenderized Multi-exit Language Models. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang (Eds.). Association for Computational Linguistics, Abu Dhabi, United Arab Emirates, 1719–1730.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 790, + "chunk_id": "Small Language Models in the Era of Large_chunk_0790", + "start_position": 417501, + "end_position": 417982, + "page_index": 59, + "word_count": 63, + "char_count": 481 + }, + "has_embedding": false + }, + { + "content": "Association for Computational Linguistics, Abu Dhabi, United Arab Emirates, 1719–1730. https://doi.org/10.18653/v1/2022.emnlp-main.112 \n[306] Bowen Shen, Zheng Lin, Daren Zha, Wei Liu, Jian Luan, Bin Wang, and Weiping Wang. 2024. Pruning Large Language Models to Intra-module Lowrank Architecture with Transitional Activations. In Findings of the Association for Computational Linguistics: ACL 2024, Lun-Wei Ku, Andre Martins, and Vivek Srikumar (Eds.).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 791, + "chunk_id": "Small Language Models in the Era of Large_chunk_0791", + "start_position": 417982, + "end_position": 418435, + "page_index": 59, + "word_count": 57, + "char_count": 453 + }, + "has_embedding": false + }, + { + "content": "ation for Computational Linguistics: ACL 2024, Lun-Wei Ku, Andre Martins, and Vivek Srikumar (Eds.). Association for Computational Linguistics, Bangkok, Thailand, 9781–9793. https://doi.org/10.18653/v1/2024.findings acl.582 \n[307] Weizhou Shen, Chenliang Li, Hongzhan Chen, Ming Yan, Xiaojun Quan, Hehong Chen, Ji Zhang, and Fei Huang. 2024. Small LLMs Are Weak Tool Learners: A Multi-LLM Agent. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 792, + "chunk_id": "Small Language Models in the Era of Large_chunk_0792", + "start_position": 418435, + "end_position": 418921, + "page_index": 59, + "word_count": 64, + "char_count": 486 + }, + "has_embedding": false + }, + { + "content": "In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, Miami, Florida, USA, 16658–16680. https://doi.org/10.18653/v1/2024.emnlp-main.929 \n[308] Ying Sheng, Lianmin Zheng, Binhang Yuan, Zhuohan Li, Max Ryabinin, Beidi Chen, Percy Liang, Christopher Ré, Ion Stoica, and Ce Zhang. 2023. Flexgen: High-throughput generative inference of large language models with a single gpu. In International Conference on Machine Learning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 793, + "chunk_id": "Small Language Models in the Era of Large_chunk_0793", + "start_position": 418921, + "end_position": 419422, + "page_index": 59, + "word_count": 63, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "In International Conference on Machine Learning. PMLR, 31094–31116. [309] Wentao Shi, Xiangnan He, Yang Zhang, Chongming Gao, Xinyue Li, Jizhi Zhang, Qifan Wang, and Fuli Feng. 2024. Large language models are learnable planners for long-term recommendation. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval. 1893–1903. [310] Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. 2019.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 794, + "chunk_id": "Small Language Models in the Era of Large_chunk_0794", + "start_position": 419422, + "end_position": 419918, + "page_index": 59, + "word_count": 68, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "2019. Megatron-lm: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053 (2019). [311] Parshin Shojaee, Kazem Meidani, Shashank Gupta, Amir Barati Farimani, and Chandan K Reddy. 2024. Llm-sr: Scientific equation discovery via programming with large language models. arXiv preprint arXiv:2404.18400 (2024). [312] Manli Shu, Weili Nie, De-An Huang, Zhiding Yu, Tom Goldstein, Anima Anandkumar, and Chaowei Xiao. 2022.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 795, + "chunk_id": "Small Language Models in the Era of Large_chunk_0795", + "start_position": 419918, + "end_position": 420385, + "page_index": 59, + "word_count": 60, + "char_count": 467 + }, + "has_embedding": false + }, + { + "content": "2022. Test-time prompt tuning for zero-shot generalization in vision-language models. Advances in Neural Information Processing Systems 35 (2022), 14274–14289. [313] Karan Singhal, Shekoofeh Azizi, Tao Tu, S Sara Mahdavi, Jason Wei, Hyung Won Chung, Nathan Scales, Ajay Tanwani, Heather Cole-Lewis, Stephen Pfohl, et al. 2023. Large language models encode clinical knowledge. Nature 620, 7972 (2023), 172–180. [314] Daria Soboleva, Faisal Al-Khateeb, Robert Myers, Jacob R Steeves, Joel Hestness, and Nolan Dey.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 796, + "chunk_id": "Small Language Models in the Era of Large_chunk_0796", + "start_position": 420385, + "end_position": 420896, + "page_index": 59, + "word_count": 71, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "314] Daria Soboleva, Faisal Al-Khateeb, Robert Myers, Jacob R Steeves, Joel Hestness, and Nolan Dey. 2023. SlimPajama: A 627B token cleaned and deduplicated version of RedPajama. https://cerebras.ai/blog/slimpajama-a-627b-token-cleaned-and-deduplicated-version-of-redpajama.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 797, + "chunk_id": "Small Language Models in the Era of Large_chunk_0797", + "start_position": 420896, + "end_position": 421170, + "page_index": 59, + "word_count": 27, + "char_count": 274 + }, + "has_embedding": false + }, + { + "content": "https://cerebras.ai/blog/slimpajama-a-627b-token-cleaned-and-deduplicated-version-of-redpajama. https://huggingface.co/datasets/cerebras/SlimPajama-627B \n[315] Luca Soldaini, Rodney Kinney, Akshita Bhagia, Dustin Schwenk, David Atkinson, Russell Authur, Ben Bogin, Khyathi Chandu, Jennifer Dumas, Yanai Elazar, Valentin Hofmann, Ananya Harsh Jha, Sachin Kumar, Li Lucy, Xinxi Lyu, Nathan Lambert, Ian Magnusson, Jacob Morrison, Niklas Muennighoff, Aakanksha Naik, Crystal Nam, Matthew E.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 798, + "chunk_id": "Small Language Models in the Era of Large_chunk_0798", + "start_position": 421170, + "end_position": 421657, + "page_index": 59, + "word_count": 48, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "Lambert, Ian Magnusson, Jacob Morrison, Niklas Muennighoff, Aakanksha Naik, Crystal Nam, Matthew E. Peters, Abhilasha Ravichander, Kyle Richardson, Zejiang Shen, Emma Strubell, Nishant Subramani, Oyvind Tafjord, Pete Walsh, Luke Zettlemoyer, Noah A. Smith, Hannaneh Hajishirzi, Iz Beltagy, Dirk Groeneveld, Jesse Dodge, and Kyle Lo. 2024. Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Research. arXiv preprint (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 799, + "chunk_id": "Small Language Models in the Era of Large_chunk_0799", + "start_position": 421657, + "end_position": 422106, + "page_index": 59, + "word_count": 61, + "char_count": 449 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint (2024). [316] Xinying Song, Alex Salcianu, Yang Song, Dave Dopson, and Denny Zhou. 2021. Fast WordPiece Tokenization. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. 2089–2103. [317] Sofia Eleni Spatharioti, David M Rothschild, Daniel G Goldstein, and Jake M Hofman. 2023. Comparing traditional and llm-based search for consumer choice: A randomized experiment. arXiv preprint arXiv:2307.03744 (2023).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 800, + "chunk_id": "Small Language Models in the Era of Large_chunk_0800", + "start_position": 422106, + "end_position": 422565, + "page_index": 59, + "word_count": 63, + "char_count": 459 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2307.03744 (2023). [318] Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. 2024. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing 568 (2024), 127063. [319] Liangtai Sun, Yang Han, Zihan Zhao, Da Ma, Zhennan Shen, Baocai Chen, Lu Chen, and Kai Yu. 2024. Scieval: A multi-level large language model evaluation benchmark for scientific research. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38. 19053–19061.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 801, + "chunk_id": "Small Language Models in the Era of Large_chunk_0801", + "start_position": 422565, + "end_position": 423070, + "page_index": 59, + "word_count": 72, + "char_count": 505 + }, + "has_embedding": false + }, + { + "content": "19053–19061. [320] Lichao Sun, Yue Huang, Haoran Wang, Siyuan Wu, Qihui Zhang, Chujie Gao, Yixin Huang, Wenhan Lyu, Yixuan Zhang, Xiner Li, et al. 2024. Trustllm: Trustworthiness in large language models. arXiv preprint arXiv:2401.05561 (2024). [321] Mingjie Sun, Zhuang Liu, Anna Bair, and J Zico Kolter. 2024. A Simple and Effective Pruning Approach for Large Language Models. In Proceedings of the Twelfth International Conference on Learning Representations, ICLR.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 802, + "chunk_id": "Small Language Models in the Era of Large_chunk_0802", + "start_position": 423070, + "end_position": 423538, + "page_index": 59, + "word_count": 68, + "char_count": 468 + }, + "has_embedding": false + }, + { + "content": "In Proceedings of the Twelfth International Conference on Learning Representations, ICLR. [322] Zhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu, Yiming Yang, and Denny Zhou. 2020. Mobilebert: a compact task-agnostic bert for resource-limited devices. arXiv preprint arXiv:2004.02984 (2020). [323] Swabha Swayamdipta, Roy Schwartz, Nicholas Lourie, Yizhong Wang, Hannaneh Hajishirzi, Noah A Smith, and Yejin Choi. 2020. Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamics.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 803, + "chunk_id": "Small Language Models in the Era of Large_chunk_0803", + "start_position": 423538, + "end_position": 424035, + "page_index": 59, + "word_count": 65, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamics. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP). 9275–9293. [324] Alon Talmor and Jonathan Berant. 2018. The Web as a Knowledge-Base for Answering Complex Questions. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), Marilyn Walker, Heng Ji, and Amanda Stent (Eds.).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 804, + "chunk_id": "Small Language Models in the Era of Large_chunk_0804", + "start_position": 424035, + "end_position": 424548, + "page_index": 59, + "word_count": 72, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "man Language Technologies, Volume 1 (Long Papers), Marilyn Walker, Heng Ji, and Amanda Stent (Eds.). Association for Computational Linguistics, New Orleans, Louisiana, 641–651. https://doi.org/10.18653/v1/N18-1059 \n[325] Jiejun Tan, Zhicheng Dou, Yutao Zhu, Peidong Guo, Kun Fang, and Ji-Rong Wen. 2024. Small Models, Big Insights: Leveraging Slim Proxy Models To Decide When and What to Retrieve for LLMs. arXiv preprint arXiv:2402.12052 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 805, + "chunk_id": "Small Language Models in the Era of Large_chunk_0805", + "start_position": 424548, + "end_position": 424994, + "page_index": 59, + "word_count": 60, + "char_count": 446 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2402.12052 (2024). [326] Qiaoyu Tang, Ziliang Deng, Hongyu Lin, Xianpei Han, Qiao Liang, Boxi Cao, and Le Sun. 2023. Toolalpaca: Generalized tool learning for language models with 3000 simulated cases. arXiv preprint arXiv:2306.05301 (2023). [327] Xuemei Tang, Jun Wang, and Qi Su. 2024. Small Language Model Is a Good Guide for Large Language Model in Chinese Entity Relation Extraction. arXiv preprint arXiv:2402.14373 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 806, + "chunk_id": "Small Language Models in the Era of Large_chunk_0806", + "start_position": 424994, + "end_position": 425443, + "page_index": 59, + "word_count": 65, + "char_count": 449 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2402.14373 (2024). [328] Yehui Tang, Fangcheng Liu, Yunsheng Ni, Yuchuan Tian, Zheyuan Bai, Yi-Qi Hu, Sichao Liu, Shangling Jui, Kai Han, and Yunhe Wang. 2024. Rethinking optimization and architecture for tiny language models. arXiv preprint arXiv:2402.02791 (2024). [329] Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. Stanford Alpaca: An Instruction-following LLaMA model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 807, + "chunk_id": "Small Language Models in the Era of Large_chunk_0807", + "start_position": 425443, + "end_position": 425925, + "page_index": 59, + "word_count": 65, + "char_count": 482 + }, + "has_embedding": false + }, + { + "content": "Stanford Alpaca: An Instruction-following LLaMA model. https://github.com/tatsu-lab/stanford_alpaca. [330] Ross Taylor, Marcin Kardas, Guillem Cucurull, Thomas Scialom, Anthony Hartshorn, Elvis Saravia, Andrew Poulton, Viktor Kerkez, and Robert Stojnic. 2022. Galactica: A large language model for science. arXiv preprint arXiv:2211.09085 (2022). [331] CodeGemma Team. 2024. Codegemma: Open code models based on gemma. arXiv preprint arXiv:2406.11409 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 808, + "chunk_id": "Small Language Models in the Era of Large_chunk_0808", + "start_position": 425925, + "end_position": 426383, + "page_index": 59, + "word_count": 54, + "char_count": 458 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2406.11409 (2024). [332] Gemma Team, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre, Morgane Rivière, Mihir Sanjay Kale, Juliette Love, et al. 2024. Gemma: Open models based on gemini research and technology. arXiv preprint arXiv:2403.08295 (2024). [333] Gemma Team, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhupatiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, et al. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 809, + "chunk_id": "Small Language Models in the Era of Large_chunk_0809", + "start_position": 426383, + "end_position": 426887, + "page_index": 59, + "word_count": 67, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "2024. Gemma 2: Improving open language models at a practical size. arXiv preprint arXiv:2408.00118 (2024). [334] TensorOpera Team. 2024. TensorOpera Unveils Fox Foundation Model: A Pioneering Small Language Model (SLM) for Cloud and Edge. https: //blog.tensoropera.ai/tensoropera-unveils-fox-foundation-model-a-pioneering-open-source-slm-leading-the-way-against-tech-giants/ Accessed: 2024-6-13. [335] Surat Teerapittayanon, Bradley McDanel, and Hsiang-Tsung Kung. 2016.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 810, + "chunk_id": "Small Language Models in the Era of Large_chunk_0810", + "start_position": 426887, + "end_position": 427357, + "page_index": 59, + "word_count": 47, + "char_count": 470 + }, + "has_embedding": false + }, + { + "content": "2016. Branchynet: Fast inference via early exiting from deep neural networks. In 2016 23rd international conference on pattern recognition (ICPR). IEEE, 2464–2469. [336] Omkar Thawakar, Ashmal Vayani, Salman Khan, Hisham Cholakal, Rao M Anwer, Michael Felsberg, Tim Baldwin, Eric P Xing, and Fahad Shahbaz Khan. 2024. Mobillama: Towards accurate and lightweight fully transparent gpt. arXiv preprint arXiv:2402.16840 (2024). [337] Ye Tian, Baolin Peng, Linfeng Song, Lifeng Jin, Dian Yu, Haitao Mi, and Dong Yu.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 811, + "chunk_id": "Small Language Models in the Era of Large_chunk_0811", + "start_position": 427357, + "end_position": 427868, + "page_index": 59, + "word_count": 74, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "[337] Ye Tian, Baolin Peng, Linfeng Song, Lifeng Jin, Dian Yu, Haitao Mi, and Dong Yu. 2024. Toward Self-Improvement of LLMs via Imagination, Searching, and Criticizing. arXiv preprint arXivko2024distillm:2404.12253 (2024). [338] Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971 (2023).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 812, + "chunk_id": "Small Language Models in the Era of Large_chunk_0812", + "start_position": 427868, + "end_position": 428364, + "page_index": 59, + "word_count": 65, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2302.13971 (2023). [339] Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288 (2023). [340] Jonathan Tow, Marco Bellagente, Dakota Mahan, and Carlos Riquelme. [n. d.]. StableLM 3B 4E1T.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 813, + "chunk_id": "Small Language Models in the Era of Large_chunk_0813", + "start_position": 428364, + "end_position": 428771, + "page_index": 59, + "word_count": 55, + "char_count": 407 + }, + "has_embedding": false + }, + { + "content": "StableLM 3B 4E1T. [https://huggingface.co/stabilityai/stablelm-3b4e1t](https://huggingface.co/stabilityai/stablelm-3b-4e1t) \n[341] Trieu H Trinh and Quoc V Le. 2018. A simple method for commonsense reasoning. arXiv preprint arXiv:1806.02847 (2018). [342] Adina Trufinescu. 2024. Discover the New Multi-Lingual High-Quality Phi-3.5 SLMs. https://techcommunity.microsoft.com/t5/ai-azure-ai-servicesblog/discover-the-new-multi-lingual-high-quality-phi-3-5-slms/ba-p/4225280.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 814, + "chunk_id": "Small Language Models in the Era of Large_chunk_0814", + "start_position": 428771, + "end_position": 429242, + "page_index": 59, + "word_count": 35, + "char_count": 471 + }, + "has_embedding": false + }, + { + "content": "m/t5/ai-azure-ai-servicesblog/discover-the-new-multi-lingual-high-quality-phi-3-5-slms/ba-p/4225280. [343] Dennis Ulmer, Martin Gubri, Hwaran Lee, Sangdoo Yun, and Seong Joon Oh. 2024. Calibrating Large Language Models Using Their Generations Only. arXiv preprint arXiv:2403.05973 (2024). [344] Sander Van Der Linden. 2022. Misinformation: susceptibility, spread, and interventions to immunize the public. Nature medicine 28, 3 (2022), 460–467.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 815, + "chunk_id": "Small Language Models in the Era of Large_chunk_0815", + "start_position": 429242, + "end_position": 429686, + "page_index": 59, + "word_count": 48, + "char_count": 444 + }, + "has_embedding": false + }, + { + "content": "Nature medicine 28, 3 (2022), 460–467. [345] Chien Van Nguyen, Xuan Shen, Ryan Aponte, Yu Xia, Samyadeep Basu, Zhengmian Hu, Jian Chen, Mihir Parmar, Sasidhar Kunapuli, Joe Barrow, et al. 2024. A Survey of Small Language Models. arXiv preprint arXiv:2410.20011 (2024). [346] A Vaswani. 2017. Attention is all you need. Advances in Neural Information Processing Systems (2017). [347] Olga Veksler. 2023. Test time adaptation with regularized loss for weakly supervised salient object detection.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 816, + "chunk_id": "Small Language Models in the Era of Large_chunk_0816", + "start_position": 429686, + "end_position": 430179, + "page_index": 59, + "word_count": 73, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "Test time adaptation with regularized loss for weakly supervised salient object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 7360–7369. [348] Paul Voigt and Axel Von dem Bussche. 2017. The eu general data protection regulation (gdpr). A Practical Guide, 1st Ed., Cham: Springer International Publishing 10, 3152676 (2017), 10–5555. [349] Yuxian Wan, Wenlin Zhang, and Zhen Li. 2023. Multi-Task Feature Self-Distillation for Semi-Supervised Machine Translation.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 817, + "chunk_id": "Small Language Models in the Era of Large_chunk_0817", + "start_position": 430179, + "end_position": 430691, + "page_index": 59, + "word_count": 70, + "char_count": 512 + }, + "has_embedding": false + }, + { + "content": "Multi-Task Feature Self-Distillation for Semi-Supervised Machine Translation. In International Conference on Neural Information Processing. Springer, 238–254. [350] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. 2018. GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP. 353–355.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 818, + "chunk_id": "Small Language Models in the Era of Large_chunk_0818", + "start_position": 430691, + "end_position": 431150, + "page_index": 59, + "word_count": 58, + "char_count": 459 + }, + "has_embedding": false + }, + { + "content": "353–355. [351] Boxin Wang, Weixin Chen, Hengzhi Pei, Chulin Xie, Mintong Kang, Chenhui Zhang, Chejian Xu, Zidi Xiong, Ritik Dutta, Rylan Schaeffer, Sang T. Truong, Simran Arora, Mantas Mazeika, Dan Hendrycks, Zinan Lin, Yu Cheng, Sanmi Koyejo, Dawn Song, and Bo Li. 2023. DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Models. In Proceedings of the Annual Conference on Neural Information Processing Systems.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 819, + "chunk_id": "Small Language Models in the Era of Large_chunk_0819", + "start_position": 431150, + "end_position": 431579, + "page_index": 59, + "word_count": 63, + "char_count": 429 + }, + "has_embedding": false + }, + { + "content": "In Proceedings of the Annual Conference on Neural Information Processing Systems. [352] Boxin Wang, Chejian Xu, Shuohang Wang, Zhe Gan, Yu Cheng, Jianfeng Gao, Ahmed Hassan Awadallah, and Bo Li. 2021. Adversarial glue: A multi-task benchmark for robustness evaluation of language models. arXiv preprint arXiv:2111.02840 (2021). [353] Fali Wang, Runxue Bao, Suhang Wang, Wenchao Yu, Yanchi Liu, Wei Cheng, and Haifeng Chen. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 820, + "chunk_id": "Small Language Models in the Era of Large_chunk_0820", + "start_position": 431579, + "end_position": 432007, + "page_index": 59, + "word_count": 63, + "char_count": 428 + }, + "has_embedding": false + }, + { + "content": "2024. InfuserKI: Enhancing Large Language Models with Knowledge Graphs via Infuser-Guided Knowledge Integration. arXiv preprint arXiv:2402.11441 (2024). [354] Fali Wang, Zheng Lin, Zhengxiao Liu, Mingyu Zheng, Lei Wang, and Daren Zha. 2021. Macrobert: Maximizing certified region of bert to adversarial word substitutions. In Database Systems for Advanced Applications: 26th International Conference, DASFAA 2021, Taipei, Taiwan, April 11–14, 2021, Proceedings, Part II 26. Springer, 253–261.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 821, + "chunk_id": "Small Language Models in the Era of Large_chunk_0821", + "start_position": 432007, + "end_position": 432499, + "page_index": 59, + "word_count": 64, + "char_count": 492 + }, + "has_embedding": false + }, + { + "content": "Springer, 253–261. [355] Guan Wang, Sijie Cheng, Qiying Yu, and Changling Liu. 2023. OpenLLMs: Less is More for Open-source Models. https://doi.org/10.5281/zenodo.8105775 \n[356] Guan Wang, Sijie Cheng, Xianyuan Zhan, Xiangang Li, Sen Song, and Yang Liu. 2024. OpenChat: Advancing Open-source Language Models with Mixed-Quality Data. In The Twelfth International Conference on Learning Representations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 822, + "chunk_id": "Small Language Models in the Era of Large_chunk_0822", + "start_position": 432499, + "end_position": 432900, + "page_index": 59, + "word_count": 52, + "char_count": 401 + }, + "has_embedding": false + }, + { + "content": "In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=AOJyfhWYHf \n[357] Hongyu Wang, Shuming Ma, Li Dong, Shaohan Huang, Huaijie Wang, Lingxiao Ma, Fan Yang, Ruiping Wang, Yi Wu, and Furu Wei. 2023. Bitnet: Scaling 1-bit transformers for large language models. arXiv preprint arXiv:2310.11453 (2023). [358] Jindong Wang, HU Xixu, Wenxin Hou, Hao Chen, Runkai Zheng, Yidong Wang, Linyi Yang, Wei Ye, Haojun Huang, Xiubo Geng, et al. [n. d.].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 823, + "chunk_id": "Small Language Models in the Era of Large_chunk_0823", + "start_position": 432900, + "end_position": 433387, + "page_index": 59, + "word_count": 69, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "d.]. On the Robustness of ChatGPT: An Adversarial and Out-of-distribution Perspective. In ICLR 2023 Workshop on Trustworthy and Reliable Large-Scale Machine Learning Models. [359] Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, and Furu Wei. 2024. Improving Text Embeddings with Large Language Models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 11897–11916.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 824, + "chunk_id": "Small Language Models in the Era of Large_chunk_0824", + "start_position": 433387, + "end_position": 433880, + "page_index": 59, + "word_count": 67, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "Association for Computational Linguistics, 11897–11916. https://doi.org/10.18653/v1/2024.acl-long.642 \n[360] Peifeng Wang, Zhengyang Wang, Zheng Li, Yifan Gao, Bing Yin, and Xiang Ren. 2023. SCOTT: Self-Consistent Chain-of-Thought Distillation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 5546–5558. [361] Wenxiao Wang, Wei Chen, Yicong Luo, Yongliu Long, Zhengkai Lin, Liye Zhang, Binbin Lin, Deng Cai, and Xiaofei He. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 825, + "chunk_id": "Small Language Models in the Era of Large_chunk_0825", + "start_position": 433880, + "end_position": 434377, + "page_index": 59, + "word_count": 64, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "2024. Model compression and efficient inference for large language models: A survey. arXiv preprint arXiv:2402.09748 (2024). [362] Wenhui Wang, Furu Wei, Li Dong, Hangbo Bao, Nan Yang, and Ming Zhou. 2020. MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformers. arXiv:2002.10957 [cs.CL] https://arxiv.org/abs/2002.10957 \n[363] Xiaoxuan Wang, Ziniu Hu, Pan Lu, Yanqiao Zhu, Jieyu Zhang, Satyen Subramaniam, Arjun R Loomba, Shichang Zhang, Yizhou Sun, and Wei Wang. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 826, + "chunk_id": "Small Language Models in the Era of Large_chunk_0826", + "start_position": 434377, + "end_position": 434890, + "page_index": 59, + "word_count": 68, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "2024. SciBench: Evaluating College-Level Scientific Problem-Solving Abilities of Large Language Models. In Forty-first International Conference on Machine Learning. https://openreview.net/forum?id=bq1JEgioLr \n[364] Yuxia Wang, Haonan Li, Xudong Han, Preslav Nakov, and Timothy Baldwin. 2024. Do-Not-Answer: Evaluating Safeguards in LLMs. In Findings of the Association for Computational Linguistics: EACL 2024. Association for Computational Linguistics, 896–911.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 827, + "chunk_id": "Small Language Models in the Era of Large_chunk_0827", + "start_position": 434890, + "end_position": 435352, + "page_index": 59, + "word_count": 52, + "char_count": 462 + }, + "has_embedding": false + }, + { + "content": "Association for Computational Linguistics, 896–911. https://aclanthology.org/2024.findingseacl.61 \n[365] Yile Wang, Peng Li, Maosong Sun, and Yang Liu. 2023. Self-Knowledge Guided Retrieval Augmentation for Large Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2023. 10303–10315. [366] Yubo Wang, Xueguang Ma, and Wenhu Chen. 2023. Augmenting black-box llms with medical textbooks for clinical question answering. arXiv preprint arXiv:2309.02233 (2023).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 828, + "chunk_id": "Small Language Models in the Era of Large_chunk_0828", + "start_position": 435352, + "end_position": 435842, + "page_index": 59, + "word_count": 59, + "char_count": 490 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2309.02233 (2023). [367] Yizhong Wang, Swaroop Mishra, Pegah Alipoormolabashi, Yeganeh Kordi, Amirreza Mirzaei, Atharva Naik, Arjun Ashok, Arut Selvan Dhanasekaran, Anjana Arunkumar, David Stap, Eshaan Pathak, Giannis Karamanolakis, Haizhi Lai, Ishan Purohit, Ishani Mondal, Jacob Anderson, Kirby Kuznia, Krima Doshi, Kuntal Kumar Pal, Maitreya Patel, Mehrad Moradshahi, Mihir Parmar, Mirali Purohit, Neeraj Varshney, Phani Rohitha Kaza, Pulkit Verma, Ravsehaj Singh Puri, Rushang Karia, Savan Doshi, Shailaja Keyur Sampat, Siddhartha Mishra, Sujan Reddy A, Sumanta Patro, Tanay Dixit, and Xudong Shen.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 829, + "chunk_id": "Small Language Models in the Era of Large_chunk_0829", + "start_position": 435842, + "end_position": 436465, + "page_index": 59, + "word_count": 82, + "char_count": 623 + }, + "has_embedding": false + }, + { + "content": "hailaja Keyur Sampat, Siddhartha Mishra, Sujan Reddy A, Sumanta Patro, Tanay Dixit, and Xudong Shen. 2022. Super-NaturalInstructions: Generalization via Declarative Instructions on $1 6 0 0 +$ NLP Tasks. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 5085–5109. https://doi.org/10.18653/v1/2022.emnlp-main.340 \n[368] Yuyan Wang, Mohit Sharma, Can Xu, Sriraj Badam, Qian Sun, Lee Richardson, Lisa Chung, Ed H.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 830, + "chunk_id": "Small Language Models in the Era of Large_chunk_0830", + "start_position": 436465, + "end_position": 436960, + "page_index": 59, + "word_count": 65, + "char_count": 495 + }, + "has_embedding": false + }, + { + "content": "0 \n[368] Yuyan Wang, Mohit Sharma, Can Xu, Sriraj Badam, Qian Sun, Lee Richardson, Lisa Chung, Ed H. Chi, and Minmin Chen. 2022. Surrogate for Long-Term User Experience in Recommender Systems. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. Association for Computing Machinery, 4100–4109. https://doi.org/10.1145/3534678.3539073 \n[369] Yuling Wang, Changxin Tian, Binbin Hu, Yanhua Yu, Ziqi Liu, Zhiqiang Zhang, Jun Zhou, Liang Pang, and Xiao Wang. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 831, + "chunk_id": "Small Language Models in the Era of Large_chunk_0831", + "start_position": 436960, + "end_position": 437455, + "page_index": 59, + "word_count": 72, + "char_count": 495 + }, + "has_embedding": false + }, + { + "content": "2024. Can Small Language Models be Good Reasoners for Sequential Recommendation?. In Proceedings of the ACM on Web Conference 2024. 3876–3887. [370] Yuqing Wang and Yun Zhao. 2024. RUPBench: Benchmarking Reasoning Under Perturbations for Robustness Evaluation in Large Language Models. arXiv preprint arXiv:2406.11020 (2024). [371] Zhepeng Wang, Runxue Bao, Yawen Wu, Jackson Taylor, Cao Xiao, Feng Zheng, Weiwen Jiang, Shangqian Gao, and Yanfu Zhang. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 832, + "chunk_id": "Small Language Models in the Era of Large_chunk_0832", + "start_position": 437455, + "end_position": 437912, + "page_index": 59, + "word_count": 65, + "char_count": 457 + }, + "has_embedding": false + }, + { + "content": "2024. Unlocking Memorization in Large Language Models with Dynamic Soft Prompting. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 9782–9796. https://doi.org/10.18653/v1/2024.emnlp-main.546 \n[372] Jason Wei, Maarten Bosma, Vincent Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V Le. 2022.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 833, + "chunk_id": "Small Language Models in the Era of Large_chunk_0833", + "start_position": 437912, + "end_position": 438397, + "page_index": 59, + "word_count": 65, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "2022. Finetuned Language Models are Zero-Shot Learners. In International Conference on Learning Representations. https://openreview.net/forum?id=gEZrGCozdqR \n[373] Yuxiang Wei, Zhe Wang, Jiawei Liu, Yifeng Ding, and Lingming Zhang. 2023. Magicoder: Source code is all you need. arXiv preprint arXiv:2312.02120 (2023). [374] Johannes Welbl, Amelia Glaese, Jonathan Uesato, Sumanth Dathathri, John Mellor, Lisa Anne Hendricks, Kirsty Anderson, Pushmeet Kohli, Ben Coppin, and Po-Sen Huang. 2021.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 834, + "chunk_id": "Small Language Models in the Era of Large_chunk_0834", + "start_position": 438397, + "end_position": 438890, + "page_index": 59, + "word_count": 62, + "char_count": 493 + }, + "has_embedding": false + }, + { + "content": "2021. Challenges in Detoxifying Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2021. Association for Computational Linguistics, 2447–2469. https://doi.org/10.18653/v1/2021.findings-emnlp.210 \n[375] Johannes Welbl, Nelson F Liu, and Matt Gardner. 2017. Crowdsourcing Multiple Choice Science Questions. In Proceedings of the 3rd Workshop on Noisy User-generated Text. 94–106.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 835, + "chunk_id": "Small Language Models in the Era of Large_chunk_0835", + "start_position": 438890, + "end_position": 439301, + "page_index": 59, + "word_count": 48, + "char_count": 411 + }, + "has_embedding": false + }, + { + "content": "94–106. [376] Hao Wen, Yuanchun Li, Guohong Liu, Shanhui Zhao, Tao Yu, Toby Jia-Jun Li, Shiqi Jiang, Yunhao Liu, Yaqin Zhang, and Yunxin Liu. 2024. AutoDroid: LLM-powered Task Automation in Android. arXiv:2308.15272 [cs.AI] https://arxiv.org/abs/2308.15272 \n[377] Alexander Wettig, Aatmik Gupta, Saumya Malik, and Danqi Chen. 2024. QuRating: Selecting High-Quality Data for Training Language Models. In Forty-first International Conference on Machine Learning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 836, + "chunk_id": "Small Language Models in the Era of Large_chunk_0836", + "start_position": 439301, + "end_position": 439761, + "page_index": 59, + "word_count": 60, + "char_count": 460 + }, + "has_embedding": false + }, + { + "content": "In Forty-first International Conference on Machine Learning. https://openreview.net/forum?id=GLGYYqPwjy \n[378] Adina Williams, Nikita Nangia, and Samuel Bowman. 2018. A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers). Association for Computational Linguistics, New Orleans, Louisiana, 1112–1122.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 837, + "chunk_id": "Small Language Models in the Era of Large_chunk_0837", + "start_position": 439761, + "end_position": 440256, + "page_index": 59, + "word_count": 58, + "char_count": 495 + }, + "has_embedding": false + }, + { + "content": "Association for Computational Linguistics, New Orleans, Louisiana, 1112–1122. https://doi.org/10.18653/v1/N18-1101 \n[379] Chuhan Wu, Fangzhao Wu, Tao Qi, and Yongfeng Huang. 2021. Empowering news recommendation with pre-trained language models. In Proceedings of the 44th international ACM SIGIR conference on research and development in information retrieval. 1652–1656. [380] Minghao Wu, Abdul Waheed, Chiyu Zhang, Muhammad Abdul-Mageed, and Alham Fikri Aji. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 838, + "chunk_id": "Small Language Models in the Era of Large_chunk_0838", + "start_position": 440256, + "end_position": 440722, + "page_index": 59, + "word_count": 58, + "char_count": 466 + }, + "has_embedding": false + }, + { + "content": "2024. LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale Instructions. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), Yvette Graham and Matthew Purver (Eds.). Association for Computational Linguistics, St. Julian’s, Malta, 944–964. https://aclanthology.org/2024.eacl-long.57 \n[381] Taiqiang Wu, Cheng Hou, Shanshan Lao, Jiayi Li, Ngai Wong, Zhe Zhao, and Yujiu Yang. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 839, + "chunk_id": "Small Language Models in the Era of Large_chunk_0839", + "start_position": 440722, + "end_position": 441195, + "page_index": 59, + "word_count": 63, + "char_count": 473 + }, + "has_embedding": false + }, + { + "content": "2024. Weight-Inherited Distillation for Task-Agnostic BERT Compression. In Findings of the Association for Computational Linguistics: NAACL 2024, Kevin Duh, Helena Gomez, and Steven Bethard (Eds.). Association for Computational Linguistics, Mexico City, Mexico, 13–28. https://doi.org/10.18653/v1/2024.findings-naacl.2 \n[382] Xuansheng Wu, Huachi Zhou, Yucheng Shi, Wenlin Yao, Xiao Huang, and Ninghao Liu. 2024. Could Small Language Models Serve as Recommenders? Towards Data-centric Cold-start Recommendation.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 840, + "chunk_id": "Small Language Models in the Era of Large_chunk_0840", + "start_position": 441195, + "end_position": 441706, + "page_index": 59, + "word_count": 60, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "Towards Data-centric Cold-start Recommendation. In Proceedings of the ACM on Web Conference 2024. 3566–3575. [383] Zhuofeng Wu, He Bai, Aonan Zhang, Jiatao Gu, VG Vydiswaran, Navdeep Jaitly, and Yizhe Zhang. 2024. Divide-or-Conquer? Which Part Should You Distill Your LLM? arXiv preprint arXiv:2402.15000 (2024). [384] Nuwa Xi, Yuhan Chen, Sendong Zhao, Haochun Wang, Bing Qin, and Ting Liu. 2024. AS-ES Learning: Towards Efficient CoT Learning in Small Models. arXiv preprint arXiv:2403.01969 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 841, + "chunk_id": "Small Language Models in the Era of Large_chunk_0841", + "start_position": 441706, + "end_position": 442207, + "page_index": 59, + "word_count": 71, + "char_count": 501 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2403.01969 (2024). [385] Mengzhou Xia, Tianyu Gao, Zhiyuan Zeng, and Danqi Chen. 2024. Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=09iOdaeOzp \n[386] Guangxuan Xiao, Ji Lin, Mickael Seznec, Hao Wu, Julien Demouth, and Song Han. 2023. Smoothquant: Accurate and efficient post-training quantization for large language models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 842, + "chunk_id": "Small Language Models in the Era of Large_chunk_0842", + "start_position": 442207, + "end_position": 442687, + "page_index": 59, + "word_count": 58, + "char_count": 480 + }, + "has_embedding": false + }, + { + "content": "Smoothquant: Accurate and efficient post-training quantization for large language models. In International Conference on Machine Learning. PMLR, 38087–38099. [387] Tinghao Xie, Xiangyu Qi, Yi Zeng, Yangsibo Huang, Udari Madhushani Sehwag, Kaixuan Huang, Luxi He, Boyi Wei, Dacheng Li, Ying Sheng, et al. 2024. Sorry-bench: Systematically evaluating large language model safety refusal behaviors. arXiv preprint arXiv:2406.14598 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 843, + "chunk_id": "Small Language Models in the Era of Large_chunk_0843", + "start_position": 442687, + "end_position": 443122, + "page_index": 59, + "word_count": 56, + "char_count": 435 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2406.14598 (2024). [388] Tong Xie, Yuwei Wan, Wei Huang, Zhenyu Yin, Yixuan Liu, Shaozhou Wang, Qingyuan Linghu, Chunyu Kit, Clara Grazian, Wenjie Zhang, et al. 2023. Darwin series: Domain specific large language models for natural science. arXiv preprint arXiv:2308.13565 (2023). [389] Weikai Xie, Li Zhang, Shihe Wang, Rongjie Yi, and Mengwei Xu. 2024. DroidCall: A Dataset for LLM-powered Android Intent Invocation. arXiv preprint arXiv:2412.00402 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 844, + "chunk_id": "Small Language Models in the Era of Large_chunk_0844", + "start_position": 443122, + "end_position": 443601, + "page_index": 59, + "word_count": 67, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2412.00402 (2024). [390] Xuan Xie, Jiayang Song, Zhehua Zhou, Yuheng Huang, Da Song, and Lei Ma. 2024. Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forward. arXiv preprint arXiv:2404.08517 (2024). [391] Ji Xin, Raphael Tang, Yaoliang Yu, and Jimmy Lin. 2021. BERxiT: Early Exiting for BERT with Better Fine-Tuning and Extension to Regression.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 845, + "chunk_id": "Small Language Models in the Era of Large_chunk_0845", + "start_position": 443601, + "end_position": 443991, + "page_index": 59, + "word_count": 59, + "char_count": 390 + }, + "has_embedding": false + }, + { + "content": "BERxiT: Early Exiting for BERT with Better Fine-Tuning and Extension to Regression. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, Paola Merlo, Jorg Tiedemann, and Reut Tsarfaty (Eds.). Association for Computational Linguistics, Online, 91–104. https://doi.org/10.18653/v1/2021.eacl-main.8 \n[392] Can Xu, Qingfeng Sun, Kai Zheng, Xiubo Geng, Pu Zhao, Jiazhan Feng, Chongyang Tao, and Daxin Jiang. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 846, + "chunk_id": "Small Language Models in the Era of Large_chunk_0846", + "start_position": 443991, + "end_position": 444471, + "page_index": 59, + "word_count": 64, + "char_count": 480 + }, + "has_embedding": false + }, + { + "content": "2023. Wizardlm: Empowering large language models to follow complex instructions. arXiv preprint arXiv:2304.12244 (2023). [393] Canwen Xu, Yichong Xu, Shuohang Wang, Yang Liu, Chenguang Zhu, and Julian McAuley. 2023. Small models are valuable plug-ins for large language models. arXiv preprint arXiv:2305.08848 (2023). [394] Daliang Xu, Wangsong Yin, Xin Jin, Ying Zhang, Shiyun Wei, Mengwei Xu, and Xuanzhe Liu. 2023. LLMCad: Fast and Scalable On-device Large Language Model Inference.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 847, + "chunk_id": "Small Language Models in the Era of Large_chunk_0847", + "start_position": 444471, + "end_position": 444956, + "page_index": 59, + "word_count": 68, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "LLMCad: Fast and Scalable On-device Large Language Model Inference. arXiv:2309.04255 [cs.NI] https://arxiv.org/abs/2309.04255 \n[395] Daliang Xu, Hao Zhang, Liming Yang, Ruiqi Liu, Gang Huang, Mengwei Xu, and Xuanzhe Liu. 2024. Empowering 1000 tokens/second on-device llm prefilling with mllm-npu. arXiv preprint arXiv:2407.05858 (2024). [396] Jiaming Xu, Peng Wang, Guanhua Tian, Bo Xu, Jun Zhao, Fangyuan Wang, and Hongwei Hao. 2015. Short Text Clustering via Convolutional Neural Networks.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 848, + "chunk_id": "Small Language Models in the Era of Large_chunk_0848", + "start_position": 444956, + "end_position": 445447, + "page_index": 59, + "word_count": 65, + "char_count": 491 + }, + "has_embedding": false + }, + { + "content": "Short Text Clustering via Convolutional Neural Networks. In Proceedings of the 1st Workshop on Vector Space Modeling for Natural Language Processing, Phil Blunsom, Shay Cohen, Paramveer Dhillon, and Percy Liang (Eds.). Association for Computational Linguistics, Denver, Colorado, 62–69. https://doi.org/10.3115/v1/W15-1509 \n[397] Minrui Xu, Niyato Dusit, Jiawen Kang, Zehui Xiong, Shiwen Mao, Zhu Han, Dong In Kim, and Khaled B Letaief. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 849, + "chunk_id": "Small Language Models in the Era of Large_chunk_0849", + "start_position": 445447, + "end_position": 445889, + "page_index": 59, + "word_count": 60, + "char_count": 442 + }, + "has_embedding": false + }, + { + "content": "2024. When large language model agents meet 6G networks: Perception, grounding, and alignment. arXiv preprint arXiv:2401.07764 (2024). [398] Mengwei Xu, Wangsong Yin, Dongqi Cai, Rongjie Yi, Daliang Xu, Qipeng Wang, Bingyang Wu, Yihao Zhao, Chen Yang, Shihe Wang, et al. 2024. A survey of resource-efficient llm and multimodal foundation models. arXiv preprint arXiv:2401.08092 (2024). [399] Weijia Xu, Sweta Agrawal, Eleftheria Briakou, Marianna Martindale, and Marine Carpuat. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 850, + "chunk_id": "Small Language Models in the Era of Large_chunk_0850", + "start_position": 445889, + "end_position": 446373, + "page_index": 59, + "word_count": 67, + "char_count": 484 + }, + "has_embedding": false + }, + { + "content": "2023. Understanding and Detecting Hallucinations in Neural Machine Translation via Model Introspection. Transactions of the Association for Computational Linguistics 11 (2023), 546–564. [400] Yuzhuang Xu, Xu Han, Zonghan Yang, Shuo Wang, Qingfu Zhu, Zhiyuan Liu, Weidong Liu, and Wanxiang Che. 2024. OneBit: Towards Extremely Low-bit Large Language Models. arXiv preprint arXiv:2402.11295 (2024). [401] Shi-Qi Yan, Jia-Chen Gu, Yun Zhu, and Zhen-Hua Ling. 2024. Corrective retrieval augmented generation.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 851, + "chunk_id": "Small Language Models in the Era of Large_chunk_0851", + "start_position": 446373, + "end_position": 446877, + "page_index": 59, + "word_count": 67, + "char_count": 504 + }, + "has_embedding": false + }, + { + "content": "Corrective retrieval augmented generation. arXiv preprint arXiv:2401.15884 (2024). [402] An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, et al. 2024. Qwen2 technical report. arXiv preprint arXiv:2407.10671 (2024). [403] Chuanpeng Yang, Wang Lu, Yao Zhu, Yidong Wang, Qian Chen, Chenlong Gao, Bingjie Yan, and Yiqiang Chen. 2024. Survey on Knowledge Distillation for Large Language Models: Methods, Evaluation, and Application.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 852, + "chunk_id": "Small Language Models in the Era of Large_chunk_0852", + "start_position": 446877, + "end_position": 447376, + "page_index": 59, + "word_count": 70, + "char_count": 499 + }, + "has_embedding": false + }, + { + "content": "Survey on Knowledge Distillation for Large Language Models: Methods, Evaluation, and Application. arXiv preprint arXiv:2407.01885 (2024). [404] Cheng Yang, Yang Sui, Jinqi Xiao, Lingyi Huang, Yu Gong, Yuanlin Duan, Wenqi Jia, Miao Yin, Yu Cheng, and Bo Yuan. 2024. MoE- $\\mathrm { I } ^ { 2 }$ : Compressing Mixture of Experts Models through Inter-Expert Pruning and Intra-Expert Low-Rank Decomposition.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 853, + "chunk_id": "Small Language Models in the Era of Large_chunk_0853", + "start_position": 447376, + "end_position": 447779, + "page_index": 59, + "word_count": 61, + "char_count": 403 + }, + "has_embedding": false + }, + { + "content": "sing Mixture of Experts Models through Inter-Expert Pruning and Intra-Expert Low-Rank Decomposition. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 10456–10466. https://doi.org/10.18653/v1/2024.findings-emnlp.612 \n[405] Kevin Yang, Dan Klein, Asli Celikyilmaz, Nanyun Peng, and Yuandong Tian. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 854, + "chunk_id": "Small Language Models in the Era of Large_chunk_0854", + "start_position": 447779, + "end_position": 448226, + "page_index": 59, + "word_count": 52, + "char_count": 447 + }, + "has_embedding": false + }, + { + "content": "2024. RLCD: Reinforcement Learning from Contrastive Distillation for LM Alignment. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=v3XXtxWKi6 \n[406] Kailai Yang, Tianlin Zhang, Ziyan Kuang, Qianqian Xie, Jimin Huang, and Sophia Ananiadou. 2024. MentaLLaMA: interpretable mental health analysis on social media with large language models. In Proceedings of the ACM on Web Conference 2024. 4489–4500.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 855, + "chunk_id": "Small Language Models in the Era of Large_chunk_0855", + "start_position": 448226, + "end_position": 448677, + "page_index": 59, + "word_count": 56, + "char_count": 451 + }, + "has_embedding": false + }, + { + "content": "4489–4500. [407] Linyi Yang, Shuibai Zhang, Libo Qin, Yafu Li, Yidong Wang, Hanmeng Liu, Jindong Wang, Xing Xie, and Yue Zhang. 2023. GLUE-X: Evaluating Natural Language Understanding Models from an Out-of-Distribution Generalization Perspective. In Findings of the Association for Computational Linguistics: ACL 2023. Association for Computational Linguistics, Toronto, Canada, 12731–12750.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 856, + "chunk_id": "Small Language Models in the Era of Large_chunk_0856", + "start_position": 448677, + "end_position": 449068, + "page_index": 59, + "word_count": 50, + "char_count": 391 + }, + "has_embedding": false + }, + { + "content": "Association for Computational Linguistics, Toronto, Canada, 12731–12750. https://doi.org/10.18653/v1/2023.findings-acl.806 \n[408] Linyi Yang, Shuibai Zhang, Zhuohao Yu, Guangsheng Bao, Yidong Wang, Jindong Wang, Ruochen Xu, Wei Ye, Xing Xie, Weizhu Chen, and Yue Zhang. 2024. Supervised Knowledge Makes Large Language Models Better In-context Learners. In The Twelfth International Conference on Learning Representations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 857, + "chunk_id": "Small Language Models in the Era of Large_chunk_0857", + "start_position": 449068, + "end_position": 449489, + "page_index": 59, + "word_count": 50, + "char_count": 421 + }, + "has_embedding": false + }, + { + "content": "In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=bAMPOUF227 \n[409] Runming Yang, Taiqiang Wu, Jiahao Wang, Pengfei Hu, Ngai Wong, and Yujiu Yang. 2024. LLM-Neo: Parameter Efficient Knowledge Distillation for Large Language Models. arXiv preprint arXiv:2411.06839 (2024). [410] Yifei Yang, Zouying Cao, and Hai Zhao. 2024. Laco: Large language model pruning via layer collapse. arXiv preprint arXiv:2402.11187 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 858, + "chunk_id": "Small Language Models in the Era of Large_chunk_0858", + "start_position": 449489, + "end_position": 449957, + "page_index": 59, + "word_count": 58, + "char_count": 468 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2402.11187 (2024). [411] Yu Yang, Siddhartha Mishra, Jeffrey N Chiang, and Baharan Mirzasoleiman. 2024. SmallToLarge (S2L): Scalable Data Selection for Fine-tuning Large Language Models by Summarizing Training Trajectories of Small Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=K9IGlMQpif \n[412] Yizhe Yang, Huashan Sun, Jiawei Li, Runheng Liu, Yinghao Li, Yuhang Liu, Heyan Huang, and Yang Gao. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 859, + "chunk_id": "Small Language Models in the Era of Large_chunk_0859", + "start_position": 449957, + "end_position": 450454, + "page_index": 59, + "word_count": 63, + "char_count": 497 + }, + "has_embedding": false + }, + { + "content": "2023. Mindllm: Pre-training lightweight large language model from scratch, evaluations and domain applications. arXiv preprint arXiv:2310.15777 (2023). [413] Zhou Yang, Zhaochun Ren, Wang Yufeng, Shizhong Peng, Haizhou Sun, Xiaofei Zhu, and Xiangwen Liao. 2024. Enhancing Empathetic Response Generation by Augmenting LLMs with Small-scale Empathetic Models. arXiv preprint arXiv:2402.11801 (2024). [414] Yunzhi Yao, Shaohan Huang, Wenhui Wang, Li Dong, and Furu Wei. 2021.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 860, + "chunk_id": "Small Language Models in the Era of Large_chunk_0860", + "start_position": 450454, + "end_position": 450926, + "page_index": 59, + "word_count": 62, + "char_count": 472 + }, + "has_embedding": false + }, + { + "content": "2021. Adapt-and-distill: Developing small, fast and effective pretrained language models for domains. arXiv preprint arXiv:2106.13474 (2021), 460–470. [415] Mert Yazan, Suzan Verberne, and Frederik Situmeang. 2024. The Impact of Quantization on Retrieval-Augmented Generation: An Analysis of Small LLMs. arXiv preprint arXiv:2406.10251 (2024). [416] Rongjie Yi, Liwei Guo, Shiyun Wei, Ao Zhou, Shangguang Wang, and Mengwei Xu. 2023. EdgeMoE: Fast On-Device Inference of MoE-based Large Language Models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 861, + "chunk_id": "Small Language Models in the Era of Large_chunk_0861", + "start_position": 450926, + "end_position": 451428, + "page_index": 59, + "word_count": 66, + "char_count": 502 + }, + "has_embedding": false + }, + { + "content": "EdgeMoE: Fast On-Device Inference of MoE-based Large Language Models. arXiv:2308.14352 [cs.LG] https://arxiv.org/abs/2308.14352 \n[417] Rongjie Yi, Xiang Li, Weikai Xie, Zhenyan Lu, Chenghua Wang, Ao Zhou, Shangguang Wang, Xiwen Zhang, and Mengwei Xu. 2024. PhoneLM: an Efficient and Capable Small Language Model Family through Principled Pre-training. arXiv preprint arXiv:2411.05046 (2024). [418] Wen-tau Yih, Matthew Richardson, Chris Meek, Ming-Wei Chang, and Jina Suh. 2016.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 862, + "chunk_id": "Small Language Models in the Era of Large_chunk_0862", + "start_position": 451428, + "end_position": 451906, + "page_index": 59, + "word_count": 62, + "char_count": 478 + }, + "has_embedding": false + }, + { + "content": "2016. The Value of Semantic Parse Labeling for Knowledge Base Question Answering. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), Katrin Erk and Noah A. Smith (Eds.). Association for Computational Linguistics, Berlin, Germany, 201–206. https://doi.org/10.18653/v1/P16-2033 \n[419] Wangsong Yin, Mengwei Xu, Yuanchun Li, and Xuanzhe Liu. 2024. LLM as a System Service on Mobile Devices.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 863, + "chunk_id": "Small Language Models in the Era of Large_chunk_0863", + "start_position": 451906, + "end_position": 452359, + "page_index": 59, + "word_count": 63, + "char_count": 453 + }, + "has_embedding": false + }, + { + "content": "LLM as a System Service on Mobile Devices. arXiv:2403.11805 [cs.OS] https://arxiv.org/abs/2403.11805 \n[420] Longhui Yu, Weisen Jiang, Han Shi, Jincheng YU, Zhengying Liu, Yu Zhang, James Kwok, Zhenguo Li, Adrian Weller, and Weiyang Liu. 2024. MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models. In The Twelfth International Conference on Learning Representations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 864, + "chunk_id": "Small Language Models in the Era of Large_chunk_0864", + "start_position": 452359, + "end_position": 452749, + "page_index": 59, + "word_count": 52, + "char_count": 390 + }, + "has_embedding": false + }, + { + "content": "In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=N8N0hgNDRt \n[421] Yue Yu, Wei Ping, Zihan Liu, Boxin Wang, Jiaxuan You, Chao Zhang, Mohammad Shoeybi, and Bryan Catanzaro. 2024. Rankrag: Unifying context ranking with retrieval-augmented generation in llms. arXiv preprint arXiv:2407.02485 (2024). [422] Zhongzhi Yu, Zheng Wang, Yuhan Li, Haoran You, Ruijie Gao, Xiaoya Zhou, Sreenidhi Reedy Bommu, Yang Katie Zhao, and Yingyan Celine Lin. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 865, + "chunk_id": "Small Language Models in the Era of Large_chunk_0865", + "start_position": 452749, + "end_position": 453245, + "page_index": 59, + "word_count": 65, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "2024. EDGE-LLM: Enabling Efficient Large Language Model Adaptation on Edge Devices via Layerwise Unified Compression and Adaptive Layer Tuning and Voting. arXiv preprint arXiv:2406.15758 (2024). [423] Jinliang Yuan, Chen Yang, Dongqi Cai, Shihe Wang, Xin Yuan, Zeling Zhang, Xiang Li, Dingge Zhang, Hanzi Mei, Xianqing Jia, et al. 2024. Mobile Foundation Model as Firmware. In Proceedings of the 30th Annual International Conference on Mobile Computing and Networking. 279–295.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 866, + "chunk_id": "Small Language Models in the Era of Large_chunk_0866", + "start_position": 453245, + "end_position": 453722, + "page_index": 59, + "word_count": 68, + "char_count": 477 + }, + "has_embedding": false + }, + { + "content": "279–295. [424] Sha Yuan, Hanyu Zhao, Zhengxiao Du, Ming Ding, Xiao Liu, Yukuo Cen, Xu Zou, Zhilin Yang, and Jie Tang. 2021. Wudaocorpora: A super large-scale chinese corpora for pre-training language models. AI Open 2 (2021), 65–68. [425] Xiaohan Yuan, Jinfeng Li, Dongxia Wang, Yuefeng Chen, Xiaofeng Mao, Longtao Huang, Hui Xue, Wenhai Wang, Kui Ren, and Jingyi Wang. 2024. S-Eval: Automatic and Adaptive Test Generation for Benchmarking Safety Evaluation of Large Language Models.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 867, + "chunk_id": "Small Language Models in the Era of Large_chunk_0867", + "start_position": 453722, + "end_position": 454205, + "page_index": 59, + "word_count": 74, + "char_count": 483 + }, + "has_embedding": false + }, + { + "content": "Automatic and Adaptive Test Generation for Benchmarking Safety Evaluation of Large Language Models. arXiv preprint arXiv:2405.14191 (2024). [426] Youliang Yuan, Wenxiang Jiao, Wenxuan Wang, Jen tse Huang, Pinjia He, Shuming Shi, and Zhaopeng Tu. 2024. GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher. In The Twelfth International Conference on Learning Representations.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 868, + "chunk_id": "Small Language Models in the Era of Large_chunk_0868", + "start_position": 454205, + "end_position": 454592, + "page_index": 59, + "word_count": 56, + "char_count": 387 + }, + "has_embedding": false + }, + { + "content": "In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id= MbfAK4s61A \n[427] Shengbin Yue, Wei Chen, Siyuan Wang, Bingxuan Li, Chenchen Shen, Shujun Liu, Yuxuan Zhou, Yao Xiao, Song Yun, Wei Lin, et al. 2023. Disc-lawllm: Fine-tuning large language models for intelligent legal services. arXiv preprint arXiv:2309.11325 (2023). [428] Xiang Yue, Xingwei Qu, Ge Zhang, Yao Fu, Wenhao Huang, Huan Sun, Yu Su, and Wenhu Chen. [n. d.].", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 869, + "chunk_id": "Small Language Models in the Era of Large_chunk_0869", + "start_position": 454592, + "end_position": 455065, + "page_index": 59, + "word_count": 67, + "char_count": 473 + }, + "has_embedding": false + }, + { + "content": "d.]. Mammoth: Building math generalist models through hybrid instruction tuning, 2023. URL https://arxiv. org/abs/2309.05653 ([n. d.]). [429] Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. 2019. HellaSwag: Can a Machine Really Finish Your Sentence?. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics. 4791–4800. [430] Rowan Zellers, Ari Holtzman, Hannah Rashkin, Yonatan Bisk, Ali Farhadi, Franziska Roesner, and Yejin Choi. 2019.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 870, + "chunk_id": "Small Language Models in the Era of Large_chunk_0870", + "start_position": 455065, + "end_position": 455561, + "page_index": 59, + "word_count": 68, + "char_count": 496 + }, + "has_embedding": false + }, + { + "content": "2019. Defending against neural fake news. Advances in neural information processing systems 32 (2019). [431] Biao Zhang and Rico Sennrich. 2019. Root mean square layer normalization. Advances in Neural Information Processing Systems 32 (2019). [432] Cheng Zhang, Jianyi Cheng, George A Constantinides, and Yiren Zhao. 2024. LQER: Low-Rank Quantization Error Reconstruction for LLMs. arXiv preprint arXiv:2402.02446 (2024). [433] Collin Zhang, John X Morris, and Vitaly Shmatikov. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 871, + "chunk_id": "Small Language Models in the Era of Large_chunk_0871", + "start_position": 455561, + "end_position": 456046, + "page_index": 59, + "word_count": 67, + "char_count": 485 + }, + "has_embedding": false + }, + { + "content": "2024. Extracting Prompts by Inverting LLM Outputs. arXiv preprint arXiv:2405.15012 (2024). [434] Chen Zhang, Dawei Song, Zheyu Ye, and Yan Gao. 2023. Towards the law of capacity gap in distilling language models. arXiv preprint arXiv:2311.07052 (2023). [435] Dan Zhang, Ziniu Hu, Sining Zhoubian, Zhengxiao Du, Kaiyu Yang, Zihan Wang, Yisong Yue, Yuxiao Dong, and Jie Tang. 2024. Sciglm: Training scientific language models with self-reflective instruction annotation and tuning.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 872, + "chunk_id": "Small Language Models in the Era of Large_chunk_0872", + "start_position": 456046, + "end_position": 456525, + "page_index": 59, + "word_count": 68, + "char_count": 479 + }, + "has_embedding": false + }, + { + "content": "Sciglm: Training scientific language models with self-reflective instruction annotation and tuning. arXiv preprint arXiv:2401.07950 (2024). [436] Di Zhang, Wei Liu, Qian Tan, Jingdan Chen, Hang Yan, Yuliang Yan, Jiatong Li, Weiran Huang, Xiangyu Yue, Dongzhan Zhou, et al. 2024. Chemllm: A chemical large language model. arXiv preprint arXiv:2402.06852 (2024). [437] Kaiyan Zhang, Jianyu Wang, Ermo Hua, Biqing Qi, Ning Ding, and Bowen Zhou. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 873, + "chunk_id": "Small Language Models in the Era of Large_chunk_0873", + "start_position": 456525, + "end_position": 456972, + "page_index": 59, + "word_count": 64, + "char_count": 447 + }, + "has_embedding": false + }, + { + "content": "2024. Cogenesis: A framework collaborating large and small language models for secure context-aware instruction following. arXiv preprint arXiv:2403.03129 (2024). [438] Mingyang Zhang, Hao Chen, Chunhua Shen, Zhen Yang, Linlin Ou, Xinyi Yu, and Bohan Zhuang. 2023. Loraprune: Pruning meets low-rank parameter-efficient fine-tuning. arXiv preprint arXiv:2305.18403 (2023). [439] Peiyuan Zhang, Guangtao Zeng, Tianduo Wang, and Wei Lu. 2024. TinyLlama: An Open-Source Small Language Model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 874, + "chunk_id": "Small Language Models in the Era of Large_chunk_0874", + "start_position": 456972, + "end_position": 457459, + "page_index": 59, + "word_count": 63, + "char_count": 487 + }, + "has_embedding": false + }, + { + "content": "TinyLlama: An Open-Source Small Language Model. arXiv:2401.02385 [cs.CL] https://arxiv.org/abs/2401.02385 \n[440] Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. 2022. Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068 (2022). [441] Xinran Zhang, Xin Yuan, Yunwei Li, and Yanru Zhang. 2019. Cold-Start representation learning: A recommendation approach with bert4Movie and movie2Vec.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 875, + "chunk_id": "Small Language Models in the Era of Large_chunk_0875", + "start_position": 457459, + "end_position": 457970, + "page_index": 59, + "word_count": 65, + "char_count": 511 + }, + "has_embedding": false + }, + { + "content": "Cold-Start representation learning: A recommendation approach with bert4Movie and movie2Vec. In Proceedings of the 27th ACM International Conference on Multimedia. 2612–2616. [442] Yingtao Zhang, Haoli Bai, Haokun Lin, Jialin Zhao, Lu Hou, and Carlo Vittorio Cannistraci. 2024. Plug-and-play: An efficient post-training pruning method for large language models. In The Twelfth International Conference on Learning Representations. [443] Yiming Zhang, Nicholas Carlini, and Daphne Ippolito. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 876, + "chunk_id": "Small Language Models in the Era of Large_chunk_0876", + "start_position": 457970, + "end_position": 458465, + "page_index": 59, + "word_count": 64, + "char_count": 495 + }, + "has_embedding": false + }, + { + "content": "2024. Effective Prompt Extraction from Language Models. arXiv:2307.06865 [cs.CL] https://arxiv.org/abs/2307.06865 \n[444] Zhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen, Lianmin Zheng, Ruisi Cai, Zhao Song, Yuandong Tian, Christopher Ré, Clark Barrett, et al. 2024. H2o: Heavy-hitter oracle for efficient generative inference of large language models. Advances in Neural Information Processing Systems 36 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 877, + "chunk_id": "Small Language Models in the Era of Large_chunk_0877", + "start_position": 458465, + "end_position": 458882, + "page_index": 59, + "word_count": 53, + "char_count": 417 + }, + "has_embedding": false + }, + { + "content": "Advances in Neural Information Processing Systems 36 (2024). [445] Zhiwei Zhang, Fali Wang, Xiaomin Li, Zongyu Wu, Xianfeng Tang, Hui Liu, Qi He, Wenpeng Yin, and Suhang Wang. 2024. Does your LLM truly unlearn? An embarrassingly simple approach to recover unlearned knowledge. arXiv preprint arXiv:2410.16454 (2024). [446] Bowen Zhao, Hannaneh Hajishirzi, and Qingqing Cao. 2024. APT: Adaptive Pruning and Tuning Pretrained Language Models for Efficient Training and Inference.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 878, + "chunk_id": "Small Language Models in the Era of Large_chunk_0878", + "start_position": 458882, + "end_position": 459359, + "page_index": 59, + "word_count": 68, + "char_count": 477 + }, + "has_embedding": false + }, + { + "content": "APT: Adaptive Pruning and Tuning Pretrained Language Models for Efficient Training and Inference. In Forty-first International Conference on Machine Learning. [447] Junchen Zhao, Yurun Song, Simeng Liu, Ian G. Harris, and Sangeetha Abdu Jyothi. 2023. LinguaLinked: A Distributed Large Language Model Inference System for Mobile Devices. arXiv:2312.00388 [cs.LG] https://arxiv.org/abs/2312.00388 \n[448] Juntao Zhao, Borui Wan, Yanghua Peng, Haibin Lin, and Chuan Wu. 2024.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 879, + "chunk_id": "Small Language Models in the Era of Large_chunk_0879", + "start_position": 459359, + "end_position": 459830, + "page_index": 59, + "word_count": 62, + "char_count": 471 + }, + "has_embedding": false + }, + { + "content": "2024. LLM-PQ: Serving LLM on Heterogeneous Clusters with Phase-Aware Partition and Adaptive Quantization. arXiv preprint arXiv:2403.01136 (2024). [449] Kun Zhao, Bohao Yang, Chen Tang, Chenghua Lin, and Liang Zhan. 2024. SLIDE: A Framework Integrating Small and Large Language Models for Open-Domain Dialogues Evaluation. arXiv preprint arXiv:2405.15924 (2024). [450] Theodore Zhao, Mu Wei, J Samuel Preston, and Hoifung Poon. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 880, + "chunk_id": "Small Language Models in the Era of Large_chunk_0880", + "start_position": 459830, + "end_position": 460262, + "page_index": 59, + "word_count": 59, + "char_count": 432 + }, + "has_embedding": false + }, + { + "content": "2023. Automatic calibration and error correction for large language models via pareto optimal self-supervision. arXiv preprint arXiv:2306.16564 (2023). [451] Youpeng Zhao, Ming Lin, Huadong Tang, Qiang Wu, and Jun Wang. 2024. Merino: Entropy-driven Design for Generative Language Models on IoT Devices. arXiv:2403.07921 [cs.LG] https://arxiv.org/abs/2403.07921 \n[452] Zhengyun Zhao, Qiao Jin, Fangyuan Chen, Tuorui Peng, and Sheng Yu. 2022.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 881, + "chunk_id": "Small Language Models in the Era of Large_chunk_0881", + "start_position": 460262, + "end_position": 460702, + "page_index": 59, + "word_count": 57, + "char_count": 440 + }, + "has_embedding": false + }, + { + "content": "2022. Pmc-patients: A large-scale dataset of patient summaries and relations for benchmarking retrieval-based clinical decision support systems. arXiv preprint arXiv:2202.13876 (2022). [453] Zhanhui Zhou, Zhixuan Liu, Jie Liu, Zhichen Dong, Chao Yang, and Yu Qiao. 2024. Weak-to-Strong Search: Align Large Language Models via Searching over Small Language Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 882, + "chunk_id": "Small Language Models in the Era of Large_chunk_0882", + "start_position": 460702, + "end_position": 461146, + "page_index": 59, + "word_count": 58, + "char_count": 444 + }, + "has_embedding": false + }, + { + "content": "In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/ forum?id=dOJ6CqWDf1 \n[454] Fengbin Zhu, Wenqiang Lei, Youcheng Huang, Chao Wang, Shuo Zhang, Jiancheng Lv, Fuli Feng, and Tat-Seng Chua. 2021. TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Finance.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 883, + "chunk_id": "Small Language Models in the Era of Large_chunk_0883", + "start_position": 461146, + "end_position": 461487, + "page_index": 59, + "word_count": 46, + "char_count": 341 + }, + "has_embedding": false + }, + { + "content": "TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Finance. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). 3277–3287. [455] Jiachen Zhu, Jianghao Lin, Xinyi Dai, Bo Chen, Rong Shan, Jieming Zhu, Ruiming Tang, Yong Yu, and Weinan Zhang. 2024. Lifelong Personalized Low-Rank Adaptation of Large Language Models for Recommendation.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 884, + "chunk_id": "Small Language Models in the Era of Large_chunk_0884", + "start_position": 461487, + "end_position": 461993, + "page_index": 59, + "word_count": 74, + "char_count": 506 + }, + "has_embedding": false + }, + { + "content": "Lifelong Personalized Low-Rank Adaptation of Large Language Models for Recommendation. arXiv preprint arXiv:2408.03533 (2024). [456] Kaijie Zhu, Jindong Wang, Jiaheng Zhou, Zichen Wang, Hao Chen, Yidong Wang, Linyi Yang, Wei Ye, Yue Zhang, Neil Zhenqiang Gong, et al. 2023. Promptbench: Towards evaluating the robustness of large language models on adversarial prompts. arXiv preprint arXiv:2306.04528 (2023). [457] Xunyu Zhu, Jian Li, Yong Liu, Can Ma, and Weiping Wang. 2023.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 885, + "chunk_id": "Small Language Models in the Era of Large_chunk_0885", + "start_position": 461993, + "end_position": 462470, + "page_index": 59, + "word_count": 68, + "char_count": 477 + }, + "has_embedding": false + }, + { + "content": "2023. A survey on model compression for large language models. arXiv preprint arXiv:2308.07633 (2023). [458] Yun Zhu, Yinxiao Liu, Felix Stahlberg, Shankar Kumar, Yu hui Chen, Liangchen Luo, Lei Shu, Renjie Liu, Jindong Chen, and Lei Meng. 2023. Towards an On-device Agent for Text Rewriting. arXiv:2308.11807 [cs.CL] https://arxiv.org/abs/2308.11807 \n[459] Yuanyuan Zhuang and Jaekyeong Kim. 2021. A bert-based multi-criteria recommender system for hotel promotion management. Sustainability 13, 14 (2021), 8039.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 886, + "chunk_id": "Small Language Models in the Era of Large_chunk_0886", + "start_position": 462470, + "end_position": 462983, + "page_index": 59, + "word_count": 69, + "char_count": 513 + }, + "has_embedding": false + }, + { + "content": "Sustainability 13, 14 (2021), 8039. [460] Terry Yue Zhuo, Yujin Huang, Chunyang Chen, and Zhenchang Xing. 2023. Red teaming chatgpt via jailbreaking: Bias, robustness, reliability and toxicity. arXiv preprint arXiv:2301.12867 (2023). [461] Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J Zico Kolter, and Matt Fredrikson. 2023. Universal and transferable adversarial attacks on aligned language models. arXiv preprint arXiv:2307.15043 (2023).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 887, + "chunk_id": "Small Language Models in the Era of Large_chunk_0887", + "start_position": 462983, + "end_position": 463431, + "page_index": 59, + "word_count": 60, + "char_count": 448 + }, + "has_embedding": false + }, + { + "content": "arXiv preprint arXiv:2307.15043 (2023). [462] Lixin Zou, Weixue Lu, Yiding Liu, Hengyi Cai, Xiaokai Chu, Dehong Ma, Daiting Shi, Yu Sun, Zhicong Cheng, Simiu Gu, et al. 2022. Pre-trained language model-based retrieval and ranking for web search. ACM Transactions on the Web 17, 1 (2022), 1–36. [463] Jingwei Zuo, Maksim Velikanov, Dhia Eddine Rhaiem, Ilyas Chahed, Younes Belkada, Guillaume Kunsch, and Hakim Hacid. 2024. Falcon mamba: The first competitive attention-free 7b language model.", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 888, + "chunk_id": "Small Language Models in the Era of Large_chunk_0888", + "start_position": 463431, + "end_position": 463922, + "page_index": 59, + "word_count": 73, + "char_count": 491 + }, + "has_embedding": false + }, + { + "content": "Falcon mamba: The first competitive attention-free 7b language model. arXiv preprint arXiv:2410.05355 (2024).", + "metadata": { + "source_file": "Small Language Models in the Era of Large", + "chunk_index": 889, + "chunk_id": "Small Language Models in the Era of Large_chunk_0889", + "start_position": 463922, + "end_position": 464031, + "page_index": 59, + "word_count": 13, + "char_count": 109 + }, + "has_embedding": false + } + ], + "metadata": { + "chunk_size": 512, + "overlap": 100, + "average_chunk_length": 463.67191011235957 + } + } + } +} \ No newline at end of file diff --git a/backend/ingestion_pipeline/filename_mapping.json b/backend/ingestion_pipeline/filename_mapping.json new file mode 100644 index 0000000000000000000000000000000000000000..6748eeca98342901983f6155ab6eba0c91ae743e --- /dev/null +++ b/backend/ingestion_pipeline/filename_mapping.json @@ -0,0 +1,3 @@ +{ + "Billing Dispute Adjustment Process Flow v_f4b3b7c9.pdf": "Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1).pdf" +} \ No newline at end of file diff --git a/backend/ingestion_pipeline/lightrag_instance/__init__.py b/backend/ingestion_pipeline/lightrag_instance/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/backend/ingestion_pipeline/lightrag_instance/chunk_ingestion_engine.py b/backend/ingestion_pipeline/lightrag_instance/chunk_ingestion_engine.py new file mode 100644 index 0000000000000000000000000000000000000000..147243ad71c0359dc2fc6e65d4585c5f39bb110e --- /dev/null +++ b/backend/ingestion_pipeline/lightrag_instance/chunk_ingestion_engine.py @@ -0,0 +1,277 @@ +""" +Chunk Ingestion Engine for LightRAG + +This module handles reading semantic chunks from the chunked output and +inserting them into the LightRAG instance with proper IDs and formatting. + +Dependencies: +- LightRAG singleton for RAG instance management +- Chunk formatting utilities for data processing +- Batch processing utilities for optimized insertion +- Text sanitization utilities for safe storage + +Architecture: +This orchestrator coordinates the ingestion pipeline but doesn't contain +business logic. All heavy processing is delegated to specialized utility classes. +""" + +import asyncio +import logging +import time +from pathlib import Path +from typing import List, Tuple + +from .lightrag_singelton import LightRAGSingleton +from .ingestion_utils.chunk_formatting_utils import ChunkFormattingUtils +from .ingestion_utils.batch_processing_utils import BatchProcessingUtils + + +class ChunkIngestionEngine: + """Engine for ingesting semantic chunks into LightRAG.""" + + def __init__(self): + """Initialize the chunk ingestion engine.""" + self.lightrag_singleton = LightRAGSingleton() + self.rag_instance = None + + # Set up logging + self.logger = self._setup_logging() + + # Initialize utility classes + self._initialize_utilities() + + def _setup_logging(self) -> logging.Logger: + """Set up structured logging for the ingestion engine.""" + logger = logging.getLogger(__name__) + if not logger.handlers: + handler = logging.StreamHandler() + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.setLevel(logging.INFO) + return logger + + def _initialize_utilities(self): + """Initialize all utility classes with proper configuration.""" + self.chunk_formatter = ChunkFormattingUtils(self.logger) + self.batch_processor = BatchProcessingUtils(self.logger) + + async def initialize(self): + """Initialize the RAG instance.""" + self.logger.info("Initializing LightRAG instance") + self.rag_instance = await self.lightrag_singleton.get_rag_instance() + self.logger.info("LightRAG instance ready") + + def load_chunks_from_file(self, chunks_file_path: Path): + """ + Load semantic chunks from the JSON file. + + Args: + chunks_file_path: Path to the semantic_chunks.json file + + Returns: + Dictionary containing all chunks and metadata + """ + return self.chunk_formatter.load_chunks_from_file(chunks_file_path) + + def format_chunks_for_insertion(self, chunks_data) -> Tuple[List[str], List[str]]: + """ + Format chunks and generate IDs for LightRAG insertion. + + Args: + chunks_data: The loaded chunks data from JSON + + Returns: + Tuple of (texts, ids) ready for LightRAG insertion + """ + return self.chunk_formatter.format_chunks_for_insertion(chunks_data) + + async def insert_chunks_batch( + self, + texts: List[str], + ids: List[str], + batch_size: int = 125, + max_concurrent_batches: int = 2 + ) -> Tuple[int, int]: + """ + Insert chunks into LightRAG in parallel batches for maximum speed. + + Args: + texts: List of formatted chunk texts + ids: List of corresponding chunk IDs + batch_size: Number of chunks to insert per batch + max_concurrent_batches: Maximum number of batches to process in parallel + + Returns: + Tuple[int, int]: (successful_batches, failed_batches) + """ + if not self.rag_instance: + raise RuntimeError("RAG instance not initialized. Call initialize() first.") + + # Validate inputs + if not self.chunk_formatter.validate_formatted_chunks(texts, ids): + self.logger.warning("Chunk validation failed, but proceeding with insertion") + + # Create processor function for batch processing + async def process_batch(batch_texts: List[str]) -> None: + await self.rag_instance.ainsert(batch_texts) + + # Use batch processor utility + return await self.batch_processor.process_batches_parallel( + items=texts, + processor_func=process_batch, + batch_size=batch_size, + max_concurrent_batches=max_concurrent_batches + ) + + async def process_chunks_file( + self, + chunks_file_path: Path, + batch_size: int = 125, + start_batch: int = 0, + max_concurrent_batches: int = 2 + ): + """ + Complete workflow: load chunks, format them, and insert into LightRAG. + + Args: + chunks_file_path: Path to the semantic_chunks.json file + batch_size: Number of chunks to insert per batch + start_batch: Batch number to start from (for resuming failed ingestions) + max_concurrent_batches: Number of batches to process in parallel + """ + try: + # Initialize if not already done + if not self.rag_instance: + await self.initialize() + + # Load chunks from file + chunks_data = self.load_chunks_from_file(chunks_file_path) + + # Format chunks for insertion + texts, ids = self.format_chunks_for_insertion(chunks_data) + + # Resume from specific batch if requested + if start_batch > 0: + start_index = start_batch * batch_size + texts = texts[start_index:] + ids = ids[start_index:] + self.logger.info(f"Resuming ingestion from batch {start_batch + 1} (chunk {start_index + 1})") + + # Insert chunks in optimized parallel batches + successful, failed = await self.insert_chunks_batch( + texts, ids, batch_size, max_concurrent_batches + ) + + # Print summary + summary = self.chunk_formatter.get_chunks_summary(chunks_data) + self._log_ingestion_summary(summary, successful, failed) + + except Exception as e: + self.logger.error(f"Chunk ingestion failed: {e}") + raise + + def _log_ingestion_summary(self, summary, successful_batches: int, failed_batches: int): + """ + Log a comprehensive summary of the ingestion process. + + Args: + summary: Summary data from chunks + successful_batches: Number of successful batches + failed_batches: Number of failed batches + """ + total_batches = successful_batches + failed_batches + success_rate = (successful_batches / total_batches) if total_batches > 0 else 0 + + self.logger.info("Ingestion Summary:") + self.logger.info(f" Files processed: {summary.get('total_files_processed', 0)}") + self.logger.info(f" Chunks inserted: {summary.get('total_chunks_generated', 0)}") + self.logger.info(f" Average chunks per file: {summary.get('average_chunks_per_file', 0):.1f}") + self.logger.info(f" Successful batches: {successful_batches}/{total_batches}") + self.logger.info(f" Success rate: {success_rate:.1%}") + + if failed_batches > 0: + self.logger.warning(f"Failed batches: {failed_batches}") + else: + self.logger.info("Chunk ingestion completed successfully!") + + async def finalize(self): + """Finalize the RAG instance.""" + if self.lightrag_singleton: + await self.lightrag_singleton.finalize() + self.logger.info("LightRAG instance finalized") + + +# Convenience function for simple usage +async def ingest_chunks_to_lightrag( + chunks_file_path: str | Path, + batch_size: int = 125, + start_batch: int = 0, + max_concurrent_batches: int = 2 +) -> bool: + """ + Simple function to ingest chunks into LightRAG with optimized performance. + + Args: + chunks_file_path: Path to the semantic_chunks.json file + batch_size: Number of chunks to insert per batch + start_batch: Batch number to start from (for resuming) + max_concurrent_batches: Number of batches to process in parallel + + Returns: + bool: True if successful, False otherwise + """ + engine = ChunkIngestionEngine() + + try: + await engine.process_chunks_file( + Path(chunks_file_path), batch_size, start_batch, max_concurrent_batches + ) + return True + except Exception as e: + engine.logger.error(f"Ingestion failed: {e}") + return False + finally: + await engine.finalize() + + +if __name__ == "__main__": + # Example usage with optimized configuration + chunks_file = Path(__file__).parent.parent / "chunked_output" / "semantic_chunks.json" + + # Optimized configuration for maximum speed + BATCH_SIZE = 125 # Optimized batch size for speed + CONCURRENT_BATCHES = 2 # Number of batches to process in parallel + START_BATCH = 0 # Change this to resume from specific batch (0 for fresh start) + + async def main(): + logger = logging.getLogger(__name__) + + logger.info("Starting OPTIMIZED chunk ingestion:") + logger.info(f" Batch size: {BATCH_SIZE} chunks") + logger.info(f" Concurrent batches: {CONCURRENT_BATCHES}") + logger.info(f" LLM: gemini-2.5-flash-lite (20 async)") + logger.info(f" Expected speedup: 15-30x faster!") + + if START_BATCH > 0: + logger.info(f"Resuming from batch {START_BATCH} (skipping first {START_BATCH * BATCH_SIZE} chunks)") + + start_time = time.time() + + success = await ingest_chunks_to_lightrag( + chunks_file, + batch_size=BATCH_SIZE, + start_batch=START_BATCH, + max_concurrent_batches=CONCURRENT_BATCHES + ) + + end_time = time.time() + duration = end_time - start_time + + if success: + logger.info(f"Ingestion completed in {duration:.2f} seconds!") + logger.info("Ready for RAG queries!") + else: + logger.error("Ingestion failed!") + + asyncio.run(main()) \ No newline at end of file diff --git a/backend/ingestion_pipeline/lightrag_instance/ingestion_utils/__init__.py b/backend/ingestion_pipeline/lightrag_instance/ingestion_utils/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..8133ed0829a1cddc83b778926aee6e68fa436371 --- /dev/null +++ b/backend/ingestion_pipeline/lightrag_instance/ingestion_utils/__init__.py @@ -0,0 +1,6 @@ +""" +Utils package for Chunk Ingestion Engine. + +Contains utility classes and functions extracted from the main ingestion engine +to improve code organization and maintainability. +""" \ No newline at end of file diff --git a/backend/ingestion_pipeline/lightrag_instance/ingestion_utils/batch_processing_utils.py b/backend/ingestion_pipeline/lightrag_instance/ingestion_utils/batch_processing_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..91027c62d8bce7b806b7c68ccd43e93e2b5bc62f --- /dev/null +++ b/backend/ingestion_pipeline/lightrag_instance/ingestion_utils/batch_processing_utils.py @@ -0,0 +1,277 @@ +""" +Batch Processing Utilities + +Handles parallel batch processing for LightRAG chunk insertion. +Includes retry logic, timeout handling, and optimized concurrency management. +""" + +import asyncio +import logging +from typing import List, Tuple, Any, Callable, Optional + + +class BatchProcessingUtils: + """Utility class for optimized batch processing with retry logic.""" + + def __init__(self, logger: logging.Logger = None): + """ + Initialize batch processing utilities. + + Args: + logger: Optional logger instance for structured logging + """ + self.logger = logger or self._setup_default_logger() + + def _setup_default_logger(self) -> logging.Logger: + """Set up a default logger if none provided.""" + logger = logging.getLogger(__name__) + if not logger.handlers: + handler = logging.StreamHandler() + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.setLevel(logging.INFO) + return logger + + async def process_single_batch( + self, + batch_data: Any, + batch_number: int, + total_batches: int, + processor_func: Callable, + max_retries: int = 3, + retry_delays: List[float] = None + ) -> bool: + """ + Process a single batch with optimized retry strategy. + + Args: + batch_data: Data for this batch + batch_number: Batch number for logging + total_batches: Total number of batches for logging + processor_func: Async function to process the batch + max_retries: Maximum number of retry attempts + retry_delays: Delay between retries (seconds) + + Returns: + bool: True if successful, False if failed after retries + """ + if retry_delays is None: + retry_delays = [0.1, 0.5, 1.0] # Fast initial retries + + for retry_count in range(max_retries): + try: + await processor_func(batch_data) + batch_size = len(batch_data) if hasattr(batch_data, '__len__') else 1 + self.logger.info(f"Batch {batch_number}/{total_batches} completed: {batch_size} items") + return True + + except Exception as e: + # Check for specific error types that warrant retry + should_retry = self._should_retry_on_error(e) + + if should_retry and retry_count < max_retries - 1: + delay = retry_delays[min(retry_count, len(retry_delays) - 1)] + self.logger.warning(f"Retrying batch {batch_number} after {delay}s delay (attempt {retry_count + 2}/{max_retries})") + await asyncio.sleep(delay) + else: + self.logger.error(f"Batch {batch_number} failed after {max_retries} attempts: {e}") + return False + + return False + + def _should_retry_on_error(self, error: Exception) -> bool: + """ + Determine if an error warrants a retry attempt. + + Args: + error: Exception that occurred + + Returns: + bool: True if should retry, False otherwise + """ + error_str = str(error).lower() + + retryable_errors = [ + "connection was closed", + "operation is in progress", + "attached to a different loop", + "connectiondoesnotexisterror", + "timeout", + "temporarily unavailable" + ] + + return any(retryable_error in error_str for retryable_error in retryable_errors) + + async def process_batches_parallel( + self, + items: List[Any], + processor_func: Callable, + batch_size: int = 125, + max_concurrent_batches: int = 2, + max_retries: int = 3, + batch_timeout: float = 300.0 + ) -> Tuple[int, int]: + """ + Process items in parallel batches for maximum efficiency. + + Args: + items: List of items to process + processor_func: Async function to process each batch + batch_size: Number of items per batch + max_concurrent_batches: Maximum number of batches to process in parallel + max_retries: Maximum retry attempts per batch + batch_timeout: Timeout per batch group in seconds + + Returns: + Tuple[int, int]: (successful_batches, failed_batches) + """ + total_items = len(items) + total_batches = (total_items + batch_size - 1) // batch_size + + self.logger.info(f"Processing {total_items} items in {total_batches} batches of ~{batch_size} items each") + self.logger.info(f"Using {max_concurrent_batches} concurrent batches for optimal performance") + + # Create all batches + batches = [] + for i in range(0, total_items, batch_size): + batch_items = items[i:i + batch_size] + batch_number = i // batch_size + 1 + batches.append((batch_items, batch_number)) + + # Process batches in parallel groups + successful_batches = 0 + failed_batches = 0 + + for i in range(0, len(batches), max_concurrent_batches): + # Get the next group of batches to process in parallel + concurrent_group = batches[i:i + max_concurrent_batches] + + # Create tasks for parallel processing + tasks = [ + self.process_single_batch( + batch_items, + batch_number, + total_batches, + processor_func, + max_retries + ) + for batch_items, batch_number in concurrent_group + ] + + # Execute batches in parallel with timeout protection + try: + results = await asyncio.wait_for( + asyncio.gather(*tasks, return_exceptions=True), + timeout=batch_timeout + ) + except asyncio.TimeoutError: + self.logger.warning(f"Batch group {i//max_concurrent_batches + 1} timed out, continuing with next group") + results = [False] * len(tasks) # Mark all as failed + + # Count successes and failures + for result in results: + if isinstance(result, Exception): + failed_batches += 1 + self.logger.error(f"Batch failed with exception: {result}") + elif result: + successful_batches += 1 + else: + failed_batches += 1 + + # Small delay between batch groups to prevent database overload + if i + max_concurrent_batches < len(batches): # Not the last group + await asyncio.sleep(1.0) + + self.logger.info(f"Processing completed: {successful_batches}/{total_batches} batches successful") + if failed_batches > 0: + self.logger.warning(f"{failed_batches} batches failed - retry may be needed") + + return successful_batches, failed_batches + + def create_batches(self, items: List[Any], batch_size: int) -> List[List[Any]]: + """ + Create batches from a list of items. + + Args: + items: List of items to batch + batch_size: Size of each batch + + Returns: + List[List[Any]]: List of batches + """ + batches = [] + for i in range(0, len(items), batch_size): + batch = items[i:i + batch_size] + batches.append(batch) + + self.logger.debug(f"Created {len(batches)} batches from {len(items)} items") + return batches + + async def process_with_resume( + self, + items: List[Any], + processor_func: Callable, + batch_size: int = 125, + start_batch: int = 0, + max_concurrent_batches: int = 2 + ) -> Tuple[int, int]: + """ + Process items with ability to resume from a specific batch. + + Args: + items: List of items to process + processor_func: Async function to process each batch + batch_size: Number of items per batch + start_batch: Batch number to start from (for resuming) + max_concurrent_batches: Maximum concurrent batches + + Returns: + Tuple[int, int]: (successful_batches, failed_batches) + """ + # Resume from specific batch if requested + if start_batch > 0: + start_index = start_batch * batch_size + items = items[start_index:] + self.logger.info(f"Resuming processing from batch {start_batch + 1} (item {start_index + 1})") + + return await self.process_batches_parallel( + items, processor_func, batch_size, max_concurrent_batches + ) + +# HELPER FUNCTIONS + +def create_batch_processor(logger: logging.Logger = None) -> BatchProcessingUtils: + """ + Factory function to create a batch processing utility. + + Args: + logger: Optional logger instance + + Returns: + BatchProcessingUtils: Configured batch processor + """ + return BatchProcessingUtils(logger) + +async def simple_batch_process( + items: List[Any], + processor_func: Callable, + batch_size: int = 125, + max_concurrent: int = 2 +) -> Tuple[int, int]: + """ + Simple batch processing function for basic use cases. + + Args: + items: Items to process + processor_func: Function to process each batch + batch_size: Size of each batch + max_concurrent: Maximum concurrent batches + + Returns: + Tuple[int, int]: (successful_batches, failed_batches) + """ + processor = BatchProcessingUtils() + return await processor.process_batches_parallel( + items, processor_func, batch_size, max_concurrent + ) \ No newline at end of file diff --git a/backend/ingestion_pipeline/lightrag_instance/ingestion_utils/chunk_formatting_utils.py b/backend/ingestion_pipeline/lightrag_instance/ingestion_utils/chunk_formatting_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..8223165c94557173d188a7a30aa66aac224c16fd --- /dev/null +++ b/backend/ingestion_pipeline/lightrag_instance/ingestion_utils/chunk_formatting_utils.py @@ -0,0 +1,299 @@ +""" +Chunk Formatting Utilities + +Handles chunk data loading, formatting, and ID generation for LightRAG insertion. +Specialized for semantic chunks from academic papers. +""" + +import json +import logging +from pathlib import Path +from typing import List, Dict, Any, Tuple + +from .text_sanitization_utils import TextSanitizationUtils + + +class ChunkFormattingUtils: + """Utility class for formatting chunks and generating IDs for LightRAG insertion.""" + + def __init__(self, logger: logging.Logger = None): + """ + Initialize chunk formatting utilities. + + Args: + logger: Optional logger instance for structured logging + """ + self.logger = logger or self._setup_default_logger() + self.text_sanitizer = TextSanitizationUtils(self.logger) + + def _setup_default_logger(self) -> logging.Logger: + """Set up a default logger if none provided.""" + logger = logging.getLogger(__name__) + if not logger.handlers: + handler = logging.StreamHandler() + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.setLevel(logging.INFO) + return logger + + def load_chunks_from_file(self, chunks_file_path: Path) -> Dict[str, Any]: + """ + Load semantic chunks from the JSON file. + + Args: + chunks_file_path: Path to the semantic_chunks.json file + + Returns: + Dict[str, Any]: Dictionary containing all chunks and metadata + + Raises: + FileNotFoundError: If chunks file doesn't exist + ValueError: If file format is invalid + """ + self.logger.info(f"Loading chunks from: {chunks_file_path}") + + if not chunks_file_path.exists(): + raise FileNotFoundError(f"Chunks file not found: {chunks_file_path}") + + try: + with open(chunks_file_path, 'r', encoding='utf-8') as f: + chunks_data = json.load(f) + + # Validate file structure + if not self._validate_chunks_structure(chunks_data): + raise ValueError(f"Invalid chunks file structure: {chunks_file_path}") + + files_processed = chunks_data.get('summary', {}).get('total_files_processed', 0) + self.logger.info(f"Successfully loaded chunks data with {files_processed} files") + return chunks_data + + except json.JSONDecodeError as e: + raise ValueError(f"Invalid JSON format in chunks file: {e}") + except Exception as e: + self.logger.error(f"Failed to load chunks file: {e}") + raise + + def _validate_chunks_structure(self, chunks_data: Dict[str, Any]) -> bool: + """ + Validate that the chunks data has the expected structure. + + Args: + chunks_data: Loaded chunks data to validate + + Returns: + bool: True if structure is valid, False otherwise + """ + required_keys = ['files', 'summary'] + if not all(key in chunks_data for key in required_keys): + self.logger.error("Chunks data missing required keys: files, summary") + return False + + if not isinstance(chunks_data['files'], dict): + self.logger.error("Chunks data 'files' is not a dictionary") + return False + + return True + + def format_chunks_for_insertion(self, chunks_data: Dict[str, Any]) -> Tuple[List[str], List[str]]: + """ + Format chunks and generate IDs for LightRAG insertion. + + Args: + chunks_data: The loaded chunks data from JSON + + Returns: + Tuple[List[str], List[str]]: (formatted_texts, chunk_ids) ready for LightRAG insertion + """ + texts = [] + ids = [] + + self.logger.info("Formatting chunks for insertion") + + total_chunks = 0 + for source_file, file_data in chunks_data['files'].items(): + chunks = file_data.get('chunks', []) + + for idx, chunk_obj in enumerate(chunks): + # Extract content from chunk object + chunk_text = self._extract_chunk_content(chunk_obj) + + if not chunk_text or not chunk_text.strip(): + self.logger.warning(f"Skipping empty chunk {idx} from {source_file}") + continue + + # Create a unique ID: source_file + chunk_index + chunk_id = self._generate_chunk_id(source_file, idx) + + # Format the chunk text with metadata and sanitization + formatted_text = self._format_single_chunk(chunk_text, source_file, idx) + + texts.append(formatted_text) + ids.append(chunk_id) + total_chunks += 1 + + self.logger.info(f"Formatted {total_chunks} chunks from {len(chunks_data['files'])} files") + return texts, ids + + def _extract_chunk_content(self, chunk_obj: Any) -> str: + """ + Extract content from a chunk object, handling different formats. + + Args: + chunk_obj: Chunk object (could be dict, string, or other format) + + Returns: + str: Extracted text content + """ + if isinstance(chunk_obj, dict): + # Handle dictionary format with 'content' key + return chunk_obj.get('content', '') or chunk_obj.get('text', '') + elif isinstance(chunk_obj, str): + # Handle direct string format + return chunk_obj + else: + # Handle other formats by converting to string + return str(chunk_obj) if chunk_obj else '' + + def _generate_chunk_id(self, source_file: str, chunk_index: int) -> str: + """ + Generate a unique ID for a chunk. + + Args: + source_file: Name of the source file + chunk_index: Index of the chunk within the file + + Returns: + str: Unique chunk ID + """ + # Clean source file name for ID generation + clean_filename = self._clean_filename_for_id(source_file) + return f"{clean_filename}_chunk_{chunk_index:03d}" + + def _clean_filename_for_id(self, filename: str) -> str: + """ + Clean filename for use in IDs (remove problematic characters). + + Args: + filename: Original filename + + Returns: + str: Cleaned filename safe for IDs + """ + # Remove file extension and problematic characters + clean_name = Path(filename).stem + clean_name = clean_name.replace(' ', '_').replace('-', '_') + # Remove or replace other problematic characters + clean_name = ''.join(c for c in clean_name if c.isalnum() or c == '_') + return clean_name + + def _format_single_chunk(self, chunk_text: str, source_file: str, chunk_index: int) -> str: + """ + Format a single chunk with metadata for better RAG retrieval. + + Args: + chunk_text: The raw chunk text + source_file: Name of the source file + chunk_index: Index of the chunk within the file + + Returns: + str: Formatted text with metadata and sanitization applied + """ + # Sanitize chunk text to prevent SQL syntax errors + sanitized_text = self.text_sanitizer.sanitize_text_for_storage(chunk_text.strip()) + + # Add metadata header to improve retrieval + formatted_text = f"""Source: {source_file} +Chunk: {chunk_index + 1} + +{sanitized_text}""" + + return formatted_text + + def get_chunks_summary(self, chunks_data: Dict[str, Any]) -> Dict[str, Any]: + """ + Extract summary information from chunks data. + + Args: + chunks_data: Loaded chunks data + + Returns: + Dict[str, Any]: Summary information + """ + summary = chunks_data.get('summary', {}) + + # Calculate additional metrics if not present + if 'total_chunks_generated' not in summary: + total_chunks = sum( + len(file_data.get('chunks', [])) + for file_data in chunks_data.get('files', {}).values() + ) + summary['total_chunks_generated'] = total_chunks + + return summary + + def validate_formatted_chunks(self, texts: List[str], ids: List[str]) -> bool: + """ + Validate that formatted chunks are ready for insertion. + + Args: + texts: List of formatted text chunks + ids: List of corresponding chunk IDs + + Returns: + bool: True if validation passes, False otherwise + """ + if len(texts) != len(ids): + self.logger.error(f"Mismatch between texts ({len(texts)}) and IDs ({len(ids)})") + return False + + if not texts: + self.logger.warning("No chunks to validate") + return False + + # Check for empty or invalid chunks + invalid_count = 0 + for i, (text, chunk_id) in enumerate(zip(texts, ids)): + if not text or not text.strip(): + self.logger.warning(f"Empty text at index {i} with ID {chunk_id}") + invalid_count += 1 + elif not chunk_id or not chunk_id.strip(): + self.logger.warning(f"Empty ID at index {i}") + invalid_count += 1 + + if invalid_count > 0: + self.logger.warning(f"Found {invalid_count} invalid chunks") + + self.logger.info(f"Validation completed: {len(texts)} chunks, {invalid_count} invalid") + return invalid_count == 0 + +# HELPER FUNCTIONS + +def create_chunk_formatter(logger: logging.Logger = None) -> ChunkFormattingUtils: + """ + Factory function to create a chunk formatting utility. + + Args: + logger: Optional logger instance + + Returns: + ChunkFormattingUtils: Configured chunk formatter + """ + return ChunkFormattingUtils(logger) + +def load_and_format_chunks(chunks_file_path: Path) -> Tuple[List[str], List[str], Dict[str, Any]]: + """ + Convenience function to load and format chunks in one call. + + Args: + chunks_file_path: Path to the chunks JSON file + + Returns: + Tuple[List[str], List[str], Dict[str, Any]]: (texts, ids, summary) + """ + formatter = ChunkFormattingUtils() + chunks_data = formatter.load_chunks_from_file(chunks_file_path) + texts, ids = formatter.format_chunks_for_insertion(chunks_data) + summary = formatter.get_chunks_summary(chunks_data) + + return texts, ids, summary \ No newline at end of file diff --git a/backend/ingestion_pipeline/lightrag_instance/ingestion_utils/text_sanitization_utils.py b/backend/ingestion_pipeline/lightrag_instance/ingestion_utils/text_sanitization_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..8a1dd16fd827238354518f7d6fdb5d2dd0fd9649 --- /dev/null +++ b/backend/ingestion_pipeline/lightrag_instance/ingestion_utils/text_sanitization_utils.py @@ -0,0 +1,203 @@ +""" +Text Sanitization Utilities + +Handles text cleaning and sanitization for PostgreSQL storage compatibility. +Specialized for academic papers with mathematical notation and special characters. +""" + +import re +import logging +from typing import Dict + + +class TextSanitizationUtils: + """Utility class for sanitizing text content for database storage.""" + + def __init__(self, logger: logging.Logger = None): + """ + Initialize text sanitization utilities. + + Args: + logger: Optional logger instance for structured logging + """ + self.logger = logger or self._setup_default_logger() + self._setup_sanitization_rules() + + def _setup_default_logger(self) -> logging.Logger: + """Set up a default logger if none provided.""" + logger = logging.getLogger(__name__) + if not logger.handlers: + handler = logging.StreamHandler() + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.setLevel(logging.INFO) + return logger + + def _setup_sanitization_rules(self): + """Set up the sanitization rules and patterns.""" + # Character replacements for PostgreSQL compatibility + self.character_replacements = { + '`': "'", # Backticks can break Cypher + '\x00': '', # Null bytes + '\x08': '', # Backspace + '\x0c': '', # Form feed + '\u0394': 'Delta', # Greek Delta + '\u00b7': '·', # Middle dot + '\\\\': '\\', # Double backslashes + } + + # Mathematical expression patterns + self.math_patterns = [ + (r'\$\([^)]+\)', '[mathematical expression]'), + (r'\$\$\([^)]+\)\$\$', '[mathematical expression]'), + (r'\$\([^$]*\)\$', '[mathematical expression]'), + (r'\$\$([^$]*)\$\$', '[mathematical formula]'), + (r'\$([^$]*)\$', '[math: \\1]'), + ] + + # Problematic patterns that can break SQL + self.problematic_patterns = [ + (r'\$\(([^)]*)\)', r'$[\1]'), # $(x) -> $[x] + (r'function\s+\$\([^)]*\)', 'mathematical function'), + (r'where\s+\$\([^)]*\)', 'where [mathematical condition]'), + (r'\$\(([^)]+)\)\s*=', r'$\1 ='), # $(variable) = expression + (r'\(\(([^)]+)\)\)', r'(\1)'), # Nested parentheses + ] + + def sanitize_text_for_storage(self, text: str, max_length: int = 8000) -> str: + """ + Sanitize text to prevent PostgreSQL syntax errors while preserving mathematical content. + + Args: + text: Raw text that may contain special characters + max_length: Maximum text length before truncation + + Returns: + str: Sanitized text safe for database storage + """ + if not text: + return "" + + self.logger.debug(f"Sanitizing text of length {len(text)}") + + sanitized = text.strip() + + # Apply mathematical expression sanitization + sanitized = self._sanitize_mathematical_expressions(sanitized) + + # Apply character replacements + sanitized = self._apply_character_replacements(sanitized) + + # Apply problematic pattern fixes + sanitized = self._fix_problematic_patterns(sanitized) + + # Truncate if too long + if len(sanitized) > max_length: + sanitized = sanitized[:max_length - 50] + "... [content truncated for storage efficiency]" + self.logger.debug(f"Text truncated to {len(sanitized)} characters") + + return sanitized + + def _sanitize_mathematical_expressions(self, text: str) -> str: + """ + Sanitize mathematical expressions that can break PostgreSQL. + + Args: + text: Text containing mathematical expressions + + Returns: + str: Text with sanitized mathematical expressions + """ + sanitized = text + + for pattern, replacement in self.math_patterns: + sanitized = re.sub(pattern, replacement, sanitized) + + return sanitized + + def _apply_character_replacements(self, text: str) -> str: + """ + Apply character replacements for PostgreSQL compatibility. + + Args: + text: Text with potentially problematic characters + + Returns: + str: Text with characters replaced + """ + sanitized = text + + for old_char, new_char in self.character_replacements.items(): + sanitized = sanitized.replace(old_char, new_char) + + return sanitized + + def _fix_problematic_patterns(self, text: str) -> str: + """ + Fix patterns that are known to cause SQL syntax errors. + + Args: + text: Text with potentially problematic patterns + + Returns: + str: Text with patterns fixed + """ + sanitized = text + + for pattern, replacement in self.problematic_patterns: + sanitized = re.sub(pattern, replacement, sanitized) + + return sanitized + + def validate_sanitized_text(self, text: str) -> bool: + """ + Validate that sanitized text is safe for database storage. + + Args: + text: Sanitized text to validate + + Returns: + bool: True if text appears safe, False otherwise + """ + # Check for remaining problematic patterns + dangerous_patterns = [ + r'\$\([^)]*\)', # Remaining $(pattern) + r'\x00', # Null bytes + r'`', # Backticks + ] + + for pattern in dangerous_patterns: + if re.search(pattern, text): + self.logger.warning(f"Potentially dangerous pattern found: {pattern}") + return False + + return True + +# HELPER FUNCTIONS + +def create_text_sanitizer(logger: logging.Logger = None) -> TextSanitizationUtils: + """ + Factory function to create a text sanitization utility. + + Args: + logger: Optional logger instance + + Returns: + TextSanitizationUtils: Configured sanitization utility + """ + return TextSanitizationUtils(logger) + +def quick_sanitize(text: str, max_length: int = 8000) -> str: + """ + Quick sanitization function for simple use cases. + + Args: + text: Text to sanitize + max_length: Maximum length before truncation + + Returns: + str: Sanitized text + """ + sanitizer = TextSanitizationUtils() + return sanitizer.sanitize_text_for_storage(text, max_length) \ No newline at end of file diff --git a/backend/ingestion_pipeline/lightrag_instance/lightrag_singelton.py b/backend/ingestion_pipeline/lightrag_instance/lightrag_singelton.py new file mode 100644 index 0000000000000000000000000000000000000000..fa26767b0757478fe6aaeb78f295e71ab724bb8c --- /dev/null +++ b/backend/ingestion_pipeline/lightrag_instance/lightrag_singelton.py @@ -0,0 +1,299 @@ +import os +from lightrag.lightrag import LightRAG +from lightrag.utils import EmbeddingFunc +from lightrag.kg.shared_storage import initialize_pipeline_status +import numpy as np +from sentence_transformers import SentenceTransformer +from dotenv import load_dotenv +import asyncio +import nest_asyncio +from google import genai +from google.genai import types +load_dotenv() +gemini_api_key = os.getenv("GEMINI_API_KEY") + +# Apply nest_asyncio to solve event loop issues +nest_asyncio.apply() + +def sanitize_llm_response(text: str, preserve_json: bool = False) -> str: + """ + Sanitize LLM response to prevent PostgreSQL syntax errors while preserving JSON structure when needed. + + Args: + text: The raw text from the LLM + preserve_json: Whether to preserve JSON structure for structured responses + + Returns: + Sanitized text safe for database storage + """ + if not text: + return "" + + import re + import json + + # If preserve_json is True, try to parse and validate JSON structure + if preserve_json: + try: + # Extract JSON from markdown code blocks if present + text_stripped = text.strip() + + # Handle markdown JSON code blocks + if '```json' in text_stripped: + # Extract content between ```json and ``` + import re + json_match = re.search(r'```json\s*\n?(.*?)\n?```', text_stripped, re.DOTALL) + if json_match: + text_stripped = json_match.group(1).strip() + elif '```' in text_stripped: + # Handle plain code blocks + json_match = re.search(r'```\s*\n?(.*?)\n?```', text_stripped, re.DOTALL) + if json_match: + text_stripped = json_match.group(1).strip() + + # Check if it looks like JSON + if text_stripped.startswith('{') or text_stripped.startswith('['): + parsed = json.loads(text_stripped) + # Re-serialize to clean up any formatting issues + return json.dumps(parsed, ensure_ascii=False) + except json.JSONDecodeError as e: + print(f"⚠️ JSON parsing failed: {e}") + print(f"📝 Text being parsed: {text_stripped[:200]}...") + # Fall through to text sanitization if JSON parsing fails + pass + + sanitized = text + + # ULTRA-AGGRESSIVE: Remove ALL mathematical expressions with $ symbols + # This includes LaTeX, inline math, and any complex mathematical notation + + # Remove any expression between $ symbols (single or double) + sanitized = re.sub(r'\$[^$]*\$', '[mathematical expression]', sanitized) + sanitized = re.sub(r'\$\$[^$]*\$\$', '[mathematical formula]', sanitized) + + # Remove complex LaTeX expressions that survived the above + latex_patterns = [ + r'\\\\[a-zA-Z]+\{[^}]*\}', # LaTeX commands like \mathcal{O} + r'\\\\[a-zA-Z]+', # LaTeX commands like \pi, \in + r'\{[^}]*\}', # Curly braces content + r'_ \{ [^}]* \}', # Subscript notation + r'\^ \{ [^}]* \}', # Superscript notation + ] + + for pattern in latex_patterns: + sanitized = re.sub(pattern, '[mathematical notation]', sanitized) + + # Remove problematic characters that break PostgreSQL + problematic_chars = ['\\\\', '{', '}', '_', '^', '~'] + for char in problematic_chars: + sanitized = sanitized.replace(char, ' ') + + # Remove Unicode mathematical symbols + unicode_replacements = { + '\u0394': 'Delta', # Greek Delta + '\u03C0': 'pi', # Greek pi + '\u2208': 'in', # Element of (∈) + '\u2209': 'not_in', # Not element of + '\u2192': 'to', # Right arrow + '\u2190': 'from', # Left arrow + '\u2264': 'leq', # Less than or equal + '\u2265': 'geq', # Greater than or equal + '\u221E': 'infinity', # Infinity + '\u2211': 'sum', # Summation + '\u220F': 'product', # Product + '\u2212': 'minus', # Minus sign + '\u00b7': 'dot', # Middle dot + } + + for unicode_char, replacement in unicode_replacements.items(): + sanitized = sanitized.replace(unicode_char, replacement) + + # Clean up multiple spaces and ensure no empty entity names + sanitized = re.sub(r'\s+', ' ', sanitized).strip() + + # If the result is too short or just mathematical notation, provide a meaningful fallback + if len(sanitized) < 10 or sanitized.lower() in ['[mathematical expression]', '[mathematical formula]', '[mathematical notation]']: + return "mathematical concept or variable" + + return sanitized + +async def llm_model_func( + prompt, system_prompt=None, history_messages=[], keyword_extraction=False, **kwargs +) -> str: + try: + # 1. Initialize the GenAI Client with your Gemini API Key + client = genai.Client(api_key=gemini_api_key) + + # 2. Combine prompts: system prompt, history, and user prompt + if history_messages is None: + history_messages = [] + + combined_prompt = "" + if system_prompt: + combined_prompt += f"{system_prompt}\n" + + for msg in history_messages: + # Each msg is expected to be a dict: {"role": "...", "content": "..."} + combined_prompt += f"{msg['role']}: {msg['content']}\n" + + # Finally, add the new user prompt + combined_prompt += f"user: {prompt}" + + # 3. Call the Gemini model with retries + max_retries = 3 + for attempt in range(max_retries): + try: + response = client.models.generate_content( + model="gemini-2.5-flash-lite", + contents=[combined_prompt], + config=types.GenerateContentConfig(max_output_tokens=15000, temperature=0.1), + ) + + # 4. Validate and return the response text (with appropriate sanitization) + raw_text = None + if response and hasattr(response, 'text') and response.text: + raw_text = response.text.strip() + elif response and hasattr(response, 'candidates') and response.candidates: + # Try to extract text from candidates if direct text access fails + for candidate in response.candidates: + if hasattr(candidate, 'content') and candidate.content: + if hasattr(candidate.content, 'parts') and candidate.content.parts: + for part in candidate.content.parts: + if hasattr(part, 'text') and part.text: + raw_text = part.text.strip() + break + if raw_text: + break + + if raw_text: + # Check if this is a keyword extraction request (needs JSON preservation) + preserve_json = ( + keyword_extraction or + "keywords" in str(prompt).lower() or + "high_level" in str(prompt).lower() or + "low_level" in str(prompt).lower() + ) + + # Debug logging for keyword extraction + if preserve_json: + print(f"🔍 KEYWORD EXTRACTION REQUEST") + print(f"📝 Raw response: {raw_text[:200]}...") + + result = sanitize_llm_response(raw_text, preserve_json=preserve_json) + + if preserve_json: + print(f"🛠️ Sanitized response: {result[:200]}...") + + return result + + # If we reach here, the response was empty or invalid + print(f"⚠️ Empty response from Gemini on attempt {attempt + 1}/{max_retries}") + if attempt < max_retries - 1: + await asyncio.sleep(0.5 * (attempt + 1)) # Exponential backoff + continue + + except Exception as api_error: + print(f"⚠️ Gemini API error on attempt {attempt + 1}/{max_retries}: {api_error}") + if attempt < max_retries - 1: + await asyncio.sleep(1.0 * (attempt + 1)) # Exponential backoff + continue + else: + raise api_error + + # If all retries failed, return a safe fallback + print("❌ All Gemini API attempts failed, using fallback response") + + # For keyword extraction, return a valid JSON structure + if keyword_extraction or "keywords" in str(prompt).lower(): + return '{"high_level_keywords": ["general"], "low_level_keywords": ["concept"]}' + + return "Unable to process this content due to API limitations. Please try again later." + + except Exception as e: + print(f"❌ Critical error in LLM function: {e}") + + # For keyword extraction, return a valid JSON structure + if keyword_extraction or "keywords" in str(prompt).lower(): + return '{"high_level_keywords": ["error"], "low_level_keywords": ["processing"]}' + + # Return a safe fallback that won't break LightRAG processing + return "Error: Unable to process this content. Please check the configuration and try again." + + + +class LightRAGSingleton: + _instance = None + _rag = None + _embedding_model = None + + def __new__(cls): + if cls._instance is None: + cls._instance = super(LightRAGSingleton, cls).__new__(cls) + return cls._instance + + async def get_rag_instance(self) -> LightRAG: + """Get or create the LightRAG singleton instance""" + if self._rag is None: + await self._initialize_rag() + return self._rag + + async def _initialize_rag(self): + """Initialize the LightRAG instance with configuration""" + load_dotenv() + + # Load the embedding model + if self._embedding_model is None: + print("Loading SentenceTransformer model...") + self._embedding_model = SentenceTransformer('BAAI/bge-large-en-v1.5') + print("Model loaded successfully.") + + # Configure environment with PostgreSQL connection pooling + os.environ.update({ + "POSTGRES_HOST": "localhost", + "POSTGRES_PORT": "5434", + "POSTGRES_USER": "postgres", + "POSTGRES_PASSWORD": "postgres", + "POSTGRES_DATABASE": "postgres", + "POSTGRES_MAX_CONNECTIONS": "15", # Reduced connection pool for stability + "POSTGRES_MIN_CONNECTIONS": "3", # Minimum pool size + "POSTGRES_CONNECTION_TIMEOUT": "30", # Connection timeout + "OPENAI_API_KEY": os.getenv("OPENAI_API_KEY"), + }) + + async def embedding_func(texts: list[str]) -> np.ndarray: + """Custom embedding function using SentenceTransformers""" + embeddings = self._embedding_model.encode(texts, convert_to_numpy=True) + return embeddings + + # Initialize RAG + print("[INFO] Initializing LightRAG singleton...") + self._rag = LightRAG( + working_dir="./rag_storage_configured", + llm_model_func=llm_model_func, + embedding_func=EmbeddingFunc( + embedding_dim=1024, + max_token_size=512, + func=embedding_func + ), + kv_storage="PGKVStorage", + vector_storage="PGVectorStorage", + graph_storage="PGGraphStorage", + doc_status_storage="PGDocStatusStorage", + llm_model_max_async= 20, + addon_params={"example_number": 1, "language": "English", "entity_types": ["abstract, methodology , results, discussion, limitations, conclusion, connection , possible enhancements"]} +, ) + + await self._rag.initialize_storages() + await initialize_pipeline_status() + print("[INFO] LightRAG singleton initialized successfully") + + async def finalize(self): + """Finalize the RAG instance""" + if self._rag: + await self._rag.finalize_storages() + print("[INFO] LightRAG singleton finalized") + + +if __name__ == "__main__": + + asyncio.run(LightRAGSingleton().get_rag_instance()) \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/__init__.py b/backend/ingestion_pipeline/local_mineru/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/backend/ingestion_pipeline/local_mineru/chunker/__init__.py b/backend/ingestion_pipeline/local_mineru/chunker/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..01a0e94fdf9239939fc49f47ae23a3c434029f6f --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/chunker/__init__.py @@ -0,0 +1,21 @@ +""" +Semantic chunking utilities for MinerU-processed documents. + +This module provides semantic chunking capabilities specifically designed for +documents processed through the MinerU pipeline, with support for page mapping +and metadata preservation. +""" + +from .semantic_chunker import ( + SemanticChunker, + create_semantic_chunker, + chunk_text_simple, + process_directory_to_chunks +) + +__all__ = [ + "SemanticChunker", + "create_semantic_chunker", + "chunk_text_simple", + "process_directory_to_chunks" +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/chunker/example_usage.py b/backend/ingestion_pipeline/local_mineru/chunker/example_usage.py new file mode 100644 index 0000000000000000000000000000000000000000..d9ede69580532146499686b6d51485bc72de89c3 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/chunker/example_usage.py @@ -0,0 +1,55 @@ +""" +Example usage of the semantic chunker. + +This script demonstrates how to use the SemanticChunker to process +enhanced markdown files and generate semantic chunks. +""" + +import asyncio +from pathlib import Path +from semantic_chunker import SemanticChunker + + +async def main(): + """Main example function.""" + # Define paths + base_dir = Path(__file__).parent.parent + output_dir = base_dir / "output" + chunks_output = base_dir / "chunked_output" / "semantic_chunks.json" + + print("🚀 Starting semantic chunking process...") + print(f"📂 Input directory: {output_dir}") + print(f"💾 Output file: {chunks_output}") + + # Initialize chunker with reasonable settings + chunker = SemanticChunker( + chunk_size=512, # Target 800 characters per chunk + overlap=100 # 100 character overlap between chunks + ) + + # Process all markdown files + try: + results = chunker.process_output_directory(output_dir, chunks_output) + + print("\n" + "="*50) + print("📊 CHUNKING SUMMARY") + print("="*50) + print(f"Files processed: {results['summary']['total_files_processed']}") + print(f"Total chunks: {results['summary']['total_chunks_generated']}") + print(f"Average chunks per file: {results['summary']['average_chunks_per_file']:.1f}") + + # Show details for each file + print("\n📁 FILE DETAILS:") + for file_name, file_data in results['files'].items(): + print(f" • {file_name}: {file_data['total_chunks']} chunks") + print(f" - Original length: {file_data['original_length']:,} chars") + print(f" - Average chunk length: {file_data['metadata']['average_chunk_length']:.0f} chars") + + print(f"\n✅ Chunking complete! Results saved to: {chunks_output}") + + except Exception as e: + print(f"❌ Error during chunking: {str(e)}") + + +if __name__ == "__main__": + asyncio.run(main()) diff --git a/backend/ingestion_pipeline/local_mineru/chunker/models/__init__.py b/backend/ingestion_pipeline/local_mineru/chunker/models/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..7e255a7f435788a07147c392dda752f90dceeeff --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/chunker/models/__init__.py @@ -0,0 +1,8 @@ +""" +Models package for semantic chunking component. +""" + +from .chunk import Chunk, ChunkMetadata +from .chunking_config import ChunkingConfig + +__all__ = ["Chunk", "ChunkMetadata", "ChunkingConfig"] diff --git a/backend/ingestion_pipeline/local_mineru/chunker/models/chunk.py b/backend/ingestion_pipeline/local_mineru/chunker/models/chunk.py new file mode 100644 index 0000000000000000000000000000000000000000..cd7f305e89bcb4d45fbb63b122e2564d70ef9703 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/chunker/models/chunk.py @@ -0,0 +1,70 @@ +""" +Chunk data models for semantic chunking. + +This module defines the data structures used to represent text chunks +and their associated metadata. +""" + +from dataclasses import dataclass +from typing import Dict, Any, Optional +from pathlib import Path + + +@dataclass +class ChunkMetadata: + """Metadata for a text chunk.""" + + source_file: str # Clean filename without extension + chunk_index: int # Position of chunk within document + chunk_id: str # Unique identifier for the chunk + start_position: int # Character position where chunk starts + end_position: int # Character position where chunk ends + page_index: int # Page number where chunk starts (from MinerU) + word_count: int # Number of words in chunk + char_count: int # Number of characters in chunk + + def to_dict(self) -> Dict[str, Any]: + """Convert metadata to dictionary format.""" + return { + "source_file": self.source_file, + "chunk_index": self.chunk_index, + "chunk_id": self.chunk_id, + "start_position": self.start_position, + "end_position": self.end_position, + "page_index": self.page_index, + "word_count": self.word_count, + "char_count": self.char_count + } + + +@dataclass +class Chunk: + """Represents a semantically meaningful text chunk.""" + + content: str # The actual text content + metadata: ChunkMetadata # Associated metadata + embedding: Optional[Any] = None # Optional embedding vector + + def __post_init__(self): + """Validate chunk data after initialization.""" + if not self.content.strip(): + raise ValueError("Chunk content cannot be empty") + + # Update metadata with actual content statistics + self.metadata.word_count = len(self.content.split()) + self.metadata.char_count = len(self.content) + + def to_dict(self) -> Dict[str, Any]: + """Convert chunk to dictionary format.""" + return { + "content": self.content, + "metadata": self.metadata.to_dict(), + "has_embedding": self.embedding is not None + } + + @classmethod + def create_chunk_id(cls, source_file: str, chunk_index: int) -> str: + """Generate a unique chunk ID.""" + # Remove file extension and create clean ID + clean_name = Path(source_file).stem + return f"{clean_name}_chunk_{chunk_index:04d}" diff --git a/backend/ingestion_pipeline/local_mineru/chunker/models/chunking_config.py b/backend/ingestion_pipeline/local_mineru/chunker/models/chunking_config.py new file mode 100644 index 0000000000000000000000000000000000000000..f5f0b540b4fd60ed888e6fd1b3653f007dd28e57 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/chunker/models/chunking_config.py @@ -0,0 +1,95 @@ +""" +Configuration settings for semantic chunking. + +This module defines the configuration parameters that control +how documents are chunked semantically. +""" + +from dataclasses import dataclass +from typing import Optional + + +@dataclass +class ChunkingConfig: + """Configuration for semantic text chunking.""" + + # Chunking parameters + min_chunk_size: int = 256 # Minimum characters per chunk + max_chunk_size: int = 512 # Maximum characters per chunk + overlap_size: int = 50 # Character overlap between chunks + + # Sentence transformer model + model_name: str = "BAAI/bge-large-en-v1.5 " # Better performance, handles longer text + + # Semantic similarity threshold + similarity_threshold: float = 0.9 # Threshold for grouping similar sentences + + # Processing options + preserve_paragraphs: bool = True # Try to keep paragraphs intact + preserve_code_blocks: bool = True # Keep code blocks together + preserve_tables: bool = True # Keep tables together + + # Output options + generate_embeddings: bool = False # Whether to generate embeddings + clean_text: bool = True # Remove extra whitespace and normalize + + @classmethod + def create_default(cls) -> "ChunkingConfig": + """Create default configuration.""" + return cls() + + @classmethod + def create_large_chunks(cls) -> "ChunkingConfig": + """Create configuration for larger chunks (better for complex documents).""" + return cls( + min_chunk_size=200, + max_chunk_size=1500, + overlap_size=100, + similarity_threshold=0.75 + ) + + @classmethod + def create_high_quality(cls) -> "ChunkingConfig": + """Create configuration with high-quality model for best semantic understanding.""" + return cls( + model_name="BAAI/bge-large-en-v1.5", # State-of-the-art model + min_chunk_size=200, + max_chunk_size=1500, + overlap_size=100, + similarity_threshold=0.8 + ) + + @classmethod + def create_long_context(cls) -> "ChunkingConfig": + """Create configuration optimized for longer documents.""" + return cls( + model_name="sentence-transformers/gtr-t5-large", # Better for long text + min_chunk_size=300, + max_chunk_size=2000, + overlap_size=150, + similarity_threshold=0.75 + ) + + @classmethod + def create_small_chunks(cls) -> "ChunkingConfig": + """Create configuration for smaller chunks (better for precise retrieval).""" + return cls( + min_chunk_size=50, + max_chunk_size=500, + overlap_size=25, + similarity_threshold=0.65 + ) + + def validate(self) -> None: + """Validate configuration parameters.""" + if self.min_chunk_size <= 0: + raise ValueError("min_chunk_size must be positive") + + if self.max_chunk_size <= self.min_chunk_size: + raise ValueError("max_chunk_size must be greater than min_chunk_size") + + if self.overlap_size >= self.min_chunk_size: + raise ValueError("overlap_size must be less than min_chunk_size") + + if not 0 <= self.similarity_threshold <= 1: + raise ValueError("similarity_threshold must be between 0 and 1") diff --git a/backend/ingestion_pipeline/local_mineru/chunker/semantic_chunker.py b/backend/ingestion_pipeline/local_mineru/chunker/semantic_chunker.py new file mode 100644 index 0000000000000000000000000000000000000000..501ed21c5e5929da3fc7f46709c097e2d8b897c9 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/chunker/semantic_chunker.py @@ -0,0 +1,300 @@ +""" +Semantic Chunker + +A clean orchestrator that coordinates text processing, page mapping, and file operations +to create semantic chunks from markdown files with proper metadata. + +Dependencies: +- Text processing utilities for cleaning and chunking +- Page mapping utilities for PDF page association +- File processing utilities for batch operations +- Chunk models for structured data representation + +Architecture: +This orchestrator coordinates the chunking pipeline but doesn't contain +business logic. All heavy processing is delegated to specialized utility classes. +""" + +import logging +from pathlib import Path +from typing import List, Dict, Any, Optional +from sentence_transformers import SentenceTransformer + +from .models.chunk import Chunk, ChunkMetadata +from .utils.text_processing_utils import TextProcessingUtils +from .utils.page_mapping_utils import PageMappingUtils +from .utils.file_processing_utils import FileProcessingUtils + + +class SemanticChunker: + """Clean semantic chunker that orchestrates the chunking pipeline.""" + + def __init__(self, chunk_size: int = 512, overlap: int = 100): + """ + Initialize the semantic chunker. + + Args: + chunk_size: Target size for each chunk in characters + overlap: Number of characters to overlap between chunks + """ + self.chunk_size = chunk_size + self.overlap = overlap + + # Set up logging + self.logger = self._setup_logging() + + # Initialize utility classes + self._initialize_utilities() + + # Initialize embedding model + self._initialize_embedding_model() + + def _setup_logging(self) -> logging.Logger: + """Set up structured logging for the semantic chunker.""" + logger = logging.getLogger(__name__) + if not logger.handlers: + handler = logging.StreamHandler() + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.setLevel(logging.INFO) + return logger + + def _initialize_utilities(self): + """Initialize all utility classes with proper configuration.""" + self.text_processor = TextProcessingUtils( + chunk_size=self.chunk_size, + overlap=self.overlap, + logger=self.logger + ) + self.page_mapper = PageMappingUtils(logger=self.logger) + self.file_processor = FileProcessingUtils(logger=self.logger) + + def _initialize_embedding_model(self): + """Initialize the sentence transformer model for embeddings.""" + try: + self.model = SentenceTransformer('BAAI/bge-large-en-v1.5') + self.logger.info("Sentence transformer model initialized successfully") + except Exception as e: + self.logger.warning(f"Failed to initialize embedding model: {e}") + self.model = None + + def chunk_text_with_metadata(self, text: str, source_file: str, file_path: Path) -> List[Chunk]: + """ + Split text into semantic chunks with full metadata including page information. + + Args: + text: The text content to chunk + source_file: Name of the source file (without extension) + file_path: Path to the markdown file (for loading page mapping) + + Returns: + List[Chunk]: List of Chunk objects with complete metadata + """ + return self.file_processor.create_chunks_with_metadata( + text=text, + source_name=source_file, + file_path=file_path, + text_processor=self.text_processor, + page_mapper=self.page_mapper + ) + + def chunk_text(self, text: str, source_file: str) -> List[str]: + """ + Split text into semantic chunks (legacy method - returns strings only). + + Args: + text: The text content to chunk + source_file: Name of the source file (without extension) + + Returns: + List[str]: List of text chunks + """ + cleaned_text = self.text_processor.clean_text(text) + sentences = self.text_processor.split_into_sentences(cleaned_text) + chunks = self.text_processor.group_sentences_into_chunks(sentences) + + self.logger.info(f"Generated {len(chunks)} chunks for {source_file}") + return chunks + + def process_markdown_file(self, file_path: Path) -> Dict[str, Any]: + """ + Process a single markdown file and return chunks with metadata. + + Args: + file_path: Path to the markdown file + + Returns: + Dict[str, Any]: Dictionary containing chunks and metadata + """ + try: + result = self.file_processor.process_single_file( + file_path=file_path, + text_processor=self.text_processor, + page_mapper=self.page_mapper + ) + + self.logger.info(f"Processed {file_path.name}: {result['total_chunks']} chunks created") + return result + + except Exception as e: + self.logger.error(f"Failed to process {file_path}: {e}") + raise + + def process_output_directory(self, output_dir: Path, save_to: Path) -> Dict[str, Any]: + """ + Process all markdown files in the output directory. + + Args: + output_dir: Path to the output directory containing markdown files + save_to: Path where to save the chunked results + + Returns: + Dict[str, Any]: Dictionary containing all processed files and their chunks + """ + try: + self.logger.info(f"Starting batch processing of directory: {output_dir}") + + # Find all markdown files + markdown_files = self.file_processor.find_markdown_files(output_dir) + if not markdown_files: + self.logger.warning(f"No markdown files found in {output_dir}") + return self._create_empty_result() + + # Process each file + file_results = {} + total_files = 0 + total_chunks = 0 + + for md_file in markdown_files: + try: + file_result = self.process_markdown_file(md_file) + + source_name = file_result["source_file"] + file_results[source_name] = file_result + + total_files += 1 + total_chunks += file_result["total_chunks"] + + self.logger.info(f"Processed {source_name}: {file_result['total_chunks']} chunks") + + except Exception as e: + self.logger.error(f"Failed to process {md_file.name}: {e}") + continue + + # Create summary + summary = self.file_processor.create_summary(file_results) + + # Save results + self.file_processor.save_results(summary, save_to) + + # Log final summary + self._log_processing_summary(total_files, total_chunks, len(markdown_files)) + + return summary + + except Exception as e: + self.logger.error(f"Batch processing failed: {e}") + raise + + def _create_empty_result(self) -> Dict[str, Any]: + """Create an empty result structure.""" + return { + "summary": { + "total_files_processed": 0, + "total_chunks_generated": 0, + "average_chunks_per_file": 0 + }, + "files": {} + } + + def _log_processing_summary(self, successful_files: int, total_chunks: int, total_files: int): + """Log a comprehensive summary of the processing operation.""" + success_rate = (successful_files / total_files) if total_files > 0 else 0 + avg_chunks = (total_chunks / successful_files) if successful_files > 0 else 0 + + self.logger.info("Semantic Chunking Summary:") + self.logger.info(f" Files found: {total_files}") + self.logger.info(f" Files processed successfully: {successful_files}") + self.logger.info(f" Total chunks generated: {total_chunks}") + self.logger.info(f" Average chunks per file: {avg_chunks:.1f}") + self.logger.info(f" Success rate: {success_rate:.1%}") + + if successful_files < total_files: + failed_files = total_files - successful_files + self.logger.warning(f"Failed to process {failed_files} files") + + def get_embeddings(self, texts: List[str]) -> Optional[List[List[float]]]: + """ + Generate embeddings for a list of texts. + + Args: + texts: List of texts to generate embeddings for + + Returns: + Optional[List[List[float]]]: List of embeddings, or None if model unavailable + """ + if not self.model: + self.logger.warning("Embedding model not available") + return None + + try: + embeddings = self.model.encode(texts) + self.logger.debug(f"Generated embeddings for {len(texts)} texts") + return embeddings.tolist() + except Exception as e: + self.logger.error(f"Failed to generate embeddings: {e}") + return None + + +# Convenience functions for backward compatibility and simple usage + +def create_semantic_chunker(chunk_size: int = 512, overlap: int = 100) -> SemanticChunker: + """ + Factory function to create a semantic chunker. + + Args: + chunk_size: Target chunk size in characters + overlap: Overlap between chunks in characters + + Returns: + SemanticChunker: Configured semantic chunker + """ + return SemanticChunker(chunk_size, overlap) + +def chunk_text_simple(text: str, source_file: str, chunk_size: int = 512, overlap: int = 100) -> List[str]: + """ + Simple function to chunk text without metadata. + + Args: + text: Text to chunk + source_file: Name of source file + chunk_size: Target chunk size + overlap: Overlap size + + Returns: + List[str]: List of text chunks + """ + chunker = SemanticChunker(chunk_size, overlap) + return chunker.chunk_text(text, source_file) + +def process_directory_to_chunks( + input_directory: Path, + output_file: Path, + chunk_size: int = 512, + overlap: int = 100 +) -> Dict[str, Any]: + """ + Simple function to process an entire directory of markdown files. + + Args: + input_directory: Directory containing markdown files + output_file: Path to save results JSON file + chunk_size: Target chunk size + overlap: Overlap size + + Returns: + Dict[str, Any]: Processing results + """ + chunker = SemanticChunker(chunk_size, overlap) + return chunker.process_output_directory(input_directory, output_file) \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/chunker/utils/__init__.py b/backend/ingestion_pipeline/local_mineru/chunker/utils/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..59198fe6c751a25cf9d024ad3a4ebfddc77dd472 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/chunker/utils/__init__.py @@ -0,0 +1,6 @@ +""" +Utils package for Semantic Chunker. + +Contains utility classes and functions extracted from the main chunker +to improve code organization and maintainability. +""" \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/chunker/utils/file_processing_utils.py b/backend/ingestion_pipeline/local_mineru/chunker/utils/file_processing_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..69404616f368f9fdab246b39a26274da1b43efbe --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/chunker/utils/file_processing_utils.py @@ -0,0 +1,368 @@ +""" +File Processing Utilities + +Handles file discovery, reading, and batch processing operations for the semantic chunker. +Manages directory traversal and result aggregation. +""" + +import json +import logging +from pathlib import Path +from typing import List, Dict, Any, Optional, Tuple + +from ..models.chunk import Chunk, ChunkMetadata +from .text_processing_utils import TextProcessingUtils +from .page_mapping_utils import PageMappingUtils + + +class FileProcessingUtils: + """Utility class for file processing operations in semantic chunking.""" + + def __init__(self, logger: logging.Logger = None): + """ + Initialize file processing utilities. + + Args: + logger: Optional logger instance for structured logging + """ + self.logger = logger or self._setup_default_logger() + + def _setup_default_logger(self) -> logging.Logger: + """Set up a default logger if none provided.""" + logger = logging.getLogger(__name__) + if not logger.handlers: + handler = logging.StreamHandler() + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.setLevel(logging.INFO) + return logger + + def find_markdown_files(self, directory: Path, exclude_backups: bool = True) -> List[Path]: + """ + Find all markdown files in a directory and its subdirectories. + + Args: + directory: Directory to search for markdown files + exclude_backups: Whether to exclude .backup files + + Returns: + List[Path]: List of markdown file paths + """ + if not directory.exists(): + self.logger.error(f"Directory does not exist: {directory}") + return [] + + # Find all markdown files recursively + markdown_files = list(directory.rglob("*.md")) + + # Filter out backup files if requested + if exclude_backups: + markdown_files = [f for f in markdown_files if not f.name.endswith('.backup')] + + self.logger.info(f"Found {len(markdown_files)} markdown files in {directory}") + + # Log some examples for debugging + if markdown_files: + example_files = markdown_files[:3] + for file in example_files: + self.logger.debug(f"Found: {file.relative_to(directory)}") + if len(markdown_files) > 3: + self.logger.debug(f"... and {len(markdown_files) - 3} more files") + + return markdown_files + + def read_markdown_file(self, file_path: Path) -> Tuple[str, str]: + """ + Read a markdown file and extract content and source name. + + Args: + file_path: Path to the markdown file + + Returns: + Tuple[str, str]: (file_content, source_name) + + Raises: + ValueError: If file cannot be read + """ + try: + with open(file_path, 'r', encoding='utf-8') as f: + content = f.read() + + # Extract source name (remove .md extension if present) + source_name = file_path.stem.replace('.md', '') + + self.logger.debug(f"Read {len(content)} characters from {file_path.name}") + return content, source_name + + except Exception as e: + error_msg = f"Failed to read {file_path}: {e}" + self.logger.error(error_msg) + raise ValueError(error_msg) + + def create_chunks_with_metadata( + self, + text: str, + source_name: str, + file_path: Path, + text_processor: TextProcessingUtils, + page_mapper: PageMappingUtils + ) -> List[Chunk]: + """ + Create chunks with complete metadata from text. + + Args: + text: Text content to chunk + source_name: Name of the source file + file_path: Path to the markdown file (for page mapping) + text_processor: Text processing utility instance + page_mapper: Page mapping utility instance + + Returns: + List[Chunk]: List of chunks with metadata + """ + # Load page mapping + page_mapping = page_mapper.load_page_mapping(file_path) + + # Process text into chunks + cleaned_text = text_processor.clean_text(text) + sentences = text_processor.split_into_sentences(cleaned_text) + chunk_texts = text_processor.group_sentences_into_chunks(sentences) + + # Create chunk objects with metadata + chunks = [] + current_position = 0 + + for i, chunk_text in enumerate(chunk_texts): + # Find position in cleaned text + start_pos = self._find_chunk_position(cleaned_text, chunk_text, current_position) + end_pos = start_pos + len(chunk_text) + + # Get page information + page_idx = page_mapper.get_page_for_position(page_mapping, start_pos) + + # Create metadata + metadata = ChunkMetadata( + source_file=source_name, + chunk_index=i, + chunk_id=Chunk.create_chunk_id(source_name, i), + start_position=start_pos, + end_position=end_pos, + page_index=page_idx, + word_count=0, # Will be calculated in Chunk.__post_init__ + char_count=0 # Will be calculated in Chunk.__post_init__ + ) + + # Create chunk + chunk = Chunk(content=chunk_text, metadata=metadata) + chunks.append(chunk) + + current_position = end_pos + + self.logger.info(f"Created {len(chunks)} chunks for {source_name}") + return chunks + + def _find_chunk_position(self, text: str, chunk_text: str, start_search: int) -> int: + """ + Find the position of a chunk in the original text. + + Args: + text: Full text to search in + chunk_text: Chunk text to find + start_search: Position to start searching from + + Returns: + int: Position of the chunk, or start_search if not found + """ + # Use first 100 characters to find position (handles minor text differences) + search_text = chunk_text[:100] if len(chunk_text) > 100 else chunk_text + position = text.find(search_text, start_search) + + if position == -1: + self.logger.debug(f"Could not find exact position for chunk, using approximate position") + return start_search + + return position + + def create_file_result(self, chunks: List[Chunk], chunk_size: int, overlap: int) -> Dict[str, Any]: + """ + Create a result dictionary for a processed file. + + Args: + chunks: List of chunks created for the file + chunk_size: Chunk size setting used + overlap: Overlap setting used + + Returns: + Dict[str, Any]: File processing result + """ + if not chunks: + return { + "source_file": "unknown", + "total_chunks": 0, + "original_length": 0, + "chunks": [], + "metadata": { + "chunk_size": chunk_size, + "overlap": overlap, + "average_chunk_length": 0 + } + } + + # Calculate statistics + source_name = chunks[0].metadata.source_file + total_length = sum(len(chunk.content) for chunk in chunks) + original_length = chunks[-1].metadata.end_position if chunks else 0 + + return { + "source_file": source_name, + "total_chunks": len(chunks), + "original_length": original_length, + "chunks": [chunk.to_dict() for chunk in chunks], + "metadata": { + "chunk_size": chunk_size, + "overlap": overlap, + "average_chunk_length": total_length / len(chunks) + } + } + + def process_single_file( + self, + file_path: Path, + text_processor: TextProcessingUtils, + page_mapper: PageMappingUtils + ) -> Dict[str, Any]: + """ + Process a single markdown file completely. + + Args: + file_path: Path to the markdown file + text_processor: Text processing utility + page_mapper: Page mapping utility + + Returns: + Dict[str, Any]: Complete processing result for the file + """ + try: + self.logger.info(f"Processing file: {file_path.name}") + + # Read file + content, source_name = self.read_markdown_file(file_path) + + # Create chunks + chunks = self.create_chunks_with_metadata( + content, source_name, file_path, text_processor, page_mapper + ) + + # Create result + result = self.create_file_result( + chunks, text_processor.chunk_size, text_processor.overlap + ) + + self.logger.info(f"Successfully processed {file_path.name}: {len(chunks)} chunks created") + return result + + except Exception as e: + self.logger.error(f"Failed to process {file_path.name}: {e}") + raise + + def save_results(self, results: Dict[str, Any], output_path: Path) -> None: + """ + Save processing results to a JSON file. + + Args: + results: Results dictionary to save + output_path: Path where to save the results + """ + try: + # Ensure output directory exists + output_path.parent.mkdir(parents=True, exist_ok=True) + + # Save to JSON file + with open(output_path, 'w', encoding='utf-8') as f: + json.dump(results, f, indent=2, ensure_ascii=False) + + # Log summary + summary = results.get('summary', {}) + files_count = summary.get('total_files_processed', 0) + chunks_count = summary.get('total_chunks_generated', 0) + + self.logger.info(f"Saved results to {output_path}") + self.logger.info(f"Summary: {files_count} files processed, {chunks_count} chunks generated") + + except Exception as e: + self.logger.error(f"Failed to save results to {output_path}: {e}") + raise + + def create_summary(self, file_results: Dict[str, Dict[str, Any]]) -> Dict[str, Any]: + """ + Create summary information from file processing results. + + Args: + file_results: Dictionary of file processing results + + Returns: + Dict[str, Any]: Summary with metadata and file results + """ + total_files = len(file_results) + total_chunks = sum(result.get('total_chunks', 0) for result in file_results.values()) + + summary = { + "summary": { + "total_files_processed": total_files, + "total_chunks_generated": total_chunks, + "average_chunks_per_file": total_chunks / total_files if total_files > 0 else 0 + }, + "files": file_results + } + + return summary + +# HELPER FUNCTIONS + +def create_file_processor(logger: logging.Logger = None) -> FileProcessingUtils: + """ + Factory function to create a file processing utility. + + Args: + logger: Optional logger instance + + Returns: + FileProcessingUtils: Configured file processor + """ + return FileProcessingUtils(logger) + +def process_directory_simple( + directory: Path, + chunk_size: int = 512, + overlap: int = 100 +) -> List[Chunk]: + """ + Simple function to process all markdown files in a directory. + + Args: + directory: Directory containing markdown files + chunk_size: Target chunk size + overlap: Overlap between chunks + + Returns: + List[Chunk]: All chunks from all files + """ + processor = FileProcessingUtils() + text_processor = TextProcessingUtils(chunk_size, overlap) + page_mapper = PageMappingUtils() + + all_chunks = [] + markdown_files = processor.find_markdown_files(directory) + + for file_path in markdown_files: + try: + content, source_name = processor.read_markdown_file(file_path) + chunks = processor.create_chunks_with_metadata( + content, source_name, file_path, text_processor, page_mapper + ) + all_chunks.extend(chunks) + except Exception: + continue # Skip failed files + + return all_chunks \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/chunker/utils/page_mapping_utils.py b/backend/ingestion_pipeline/local_mineru/chunker/utils/page_mapping_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..07e35eea76f065737eaf5ce8e8b9963525a5080c --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/chunker/utils/page_mapping_utils.py @@ -0,0 +1,286 @@ +""" +Page Mapping Utilities + +Handles loading and processing of MinerU page mapping data for associating +chunks with their original PDF page numbers. +""" + +import json +import logging +from pathlib import Path +from typing import Dict, Optional, Tuple + + +class PageMappingUtils: + """Utility class for handling page mapping from MinerU content lists.""" + + def __init__(self, logger: logging.Logger = None): + """ + Initialize page mapping utilities. + + Args: + logger: Optional logger instance for structured logging + """ + self.logger = logger or self._setup_default_logger() + + def _setup_default_logger(self) -> logging.Logger: + """Set up a default logger if none provided.""" + logger = logging.getLogger(__name__) + if not logger.handlers: + handler = logging.StreamHandler() + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.setLevel(logging.INFO) + return logger + + def load_page_mapping(self, markdown_file_path: Path) -> Dict[int, int]: + """ + Load page mapping from MinerU content list JSON. + + Args: + markdown_file_path: Path to the markdown file (used to locate corresponding JSON) + + Returns: + Dict[int, int]: Mapping from character positions to page indices + """ + json_file_path = self._get_content_list_path(markdown_file_path) + + if not json_file_path.exists(): + self.logger.warning(f"Content list JSON not found: {json_file_path}") + return {} + + try: + content_list = self._load_content_list(json_file_path) + page_mapping = self._build_page_mapping(content_list) + + self.logger.info(f"Loaded page mapping with {len(page_mapping)} character positions") + return page_mapping + + except Exception as e: + self.logger.error(f"Failed to load page mapping from {json_file_path}: {e}") + return {} + + def _get_content_list_path(self, markdown_file_path: Path) -> Path: + """ + Get the path to the corresponding content list JSON file. + + Args: + markdown_file_path: Path to the markdown file + + Returns: + Path: Path to the content list JSON file + """ + # MinerU creates content list files with pattern: {stem}_content_list.json + json_filename = f"{markdown_file_path.stem}_content_list.json" + return markdown_file_path.parent / json_filename + + def _load_content_list(self, json_file_path: Path) -> list: + """ + Load the content list from JSON file. + + Args: + json_file_path: Path to the JSON file + + Returns: + list: Content list data + + Raises: + ValueError: If file format is invalid + """ + with open(json_file_path, 'r', encoding='utf-8') as f: + content_list = json.load(f) + + if not isinstance(content_list, list): + raise ValueError(f"Expected list format in {json_file_path}") + + return content_list + + def _build_page_mapping(self, content_list: list) -> Dict[int, int]: + """ + Build character position to page mapping from content list. + + Args: + content_list: List of content items from MinerU + + Returns: + Dict[int, int]: Mapping from character positions to page indices + """ + page_mapping = {} + char_position = 0 + + for item in content_list: + if not isinstance(item, dict): + continue + + item_type = item.get('type') + if item_type == 'text': + text_content = item.get('text', '') + page_idx = item.get('page_idx', 0) + + # Map this text range to its page + text_length = len(text_content) + for i in range(char_position, char_position + text_length): + page_mapping[i] = page_idx + + char_position += text_length + # Account for markdown formatting characters that might be added + char_position += self._estimate_markdown_overhead(text_content) + + elif item_type in ['image', 'table', 'formula']: + # These items might add placeholder text in markdown + page_idx = item.get('page_idx', 0) + placeholder_length = self._get_placeholder_length(item_type) + + for i in range(char_position, char_position + placeholder_length): + page_mapping[i] = page_idx + + char_position += placeholder_length + + return page_mapping + + def _estimate_markdown_overhead(self, text_content: str) -> int: + """ + Estimate the number of extra characters added by markdown conversion. + + Args: + text_content: Original text content + + Returns: + int: Estimated number of extra characters + """ + # Rough estimation: newlines, spacing, and markdown formatting + # This is an approximation since exact conversion depends on MinerU's logic + lines = text_content.count('\n') + return min(lines * 2 + 2, 10) # Cap at 10 extra characters per item + + def _get_placeholder_length(self, item_type: str) -> int: + """ + Get the expected length of placeholder text for different content types. + + Args: + item_type: Type of content item (image, table, formula) + + Returns: + int: Expected placeholder length + """ + placeholder_lengths = { + 'image': 7, # "[IMAGE]" + 'table': 7, # "[TABLE]" + 'formula': 9 # "[FORMULA]" + } + return placeholder_lengths.get(item_type, 10) + + def get_page_for_position(self, page_mapping: Dict[int, int], position: int) -> int: + """ + Get the page number for a specific character position. + + Args: + page_mapping: Character position to page mapping + position: Character position to look up + + Returns: + int: Page index (0-based), defaults to 0 if not found + """ + # Try exact match first + if position in page_mapping: + return page_mapping[position] + + # Find the closest position before this one + closest_position = self._find_closest_position(page_mapping, position) + if closest_position is not None: + return page_mapping[closest_position] + + # Default to page 0 + self.logger.debug(f"No page mapping found for position {position}, defaulting to page 0") + return 0 + + def _find_closest_position(self, page_mapping: Dict[int, int], target_position: int) -> Optional[int]: + """ + Find the closest character position that is less than or equal to target. + + Args: + page_mapping: Character position to page mapping + target_position: Target position to find closest match for + + Returns: + Optional[int]: Closest position, or None if no suitable position found + """ + valid_positions = [pos for pos in page_mapping.keys() if pos <= target_position] + return max(valid_positions) if valid_positions else None + + def get_page_range_for_chunk(self, page_mapping: Dict[int, int], start_pos: int, end_pos: int) -> Tuple[int, int]: + """ + Get the page range (start_page, end_page) for a chunk. + + Args: + page_mapping: Character position to page mapping + start_pos: Start character position of chunk + end_pos: End character position of chunk + + Returns: + Tuple[int, int]: (start_page, end_page) - both 0-based + """ + start_page = self.get_page_for_position(page_mapping, start_pos) + end_page = self.get_page_for_position(page_mapping, end_pos) + + return start_page, end_page + + def validate_page_mapping(self, page_mapping: Dict[int, int], text_length: int) -> bool: + """ + Validate that the page mapping makes sense for the given text. + + Args: + page_mapping: Character position to page mapping to validate + text_length: Length of the text this mapping corresponds to + + Returns: + bool: True if mapping appears valid, False otherwise + """ + if not page_mapping: + self.logger.warning("Empty page mapping") + return False + + # Check that we have reasonable coverage + max_position = max(page_mapping.keys()) + coverage = max_position / text_length if text_length > 0 else 0 + + if coverage < 0.5: + self.logger.warning(f"Low page mapping coverage: {coverage:.1%}") + return False + + # Check that page numbers are reasonable + page_numbers = set(page_mapping.values()) + if max(page_numbers) > 1000: # Sanity check + self.logger.warning(f"Suspiciously high page number: {max(page_numbers)}") + return False + + self.logger.debug(f"Page mapping validation passed: {len(page_mapping)} positions, {len(page_numbers)} pages") + return True + +# HELPER FUNCTIONS + +def create_page_mapper(logger: logging.Logger = None) -> PageMappingUtils: + """ + Factory function to create a page mapping utility. + + Args: + logger: Optional logger instance + + Returns: + PageMappingUtils: Configured page mapper + """ + return PageMappingUtils(logger) + +def load_page_mapping_for_file(markdown_file_path: Path) -> Dict[int, int]: + """ + Convenience function to load page mapping for a single file. + + Args: + markdown_file_path: Path to the markdown file + + Returns: + Dict[int, int]: Page mapping or empty dict if failed + """ + mapper = PageMappingUtils() + return mapper.load_page_mapping(markdown_file_path) \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/chunker/utils/text_processing_utils.py b/backend/ingestion_pipeline/local_mineru/chunker/utils/text_processing_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..cde7f0d695cae1272d1fad59087157422fc8b563 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/chunker/utils/text_processing_utils.py @@ -0,0 +1,273 @@ +""" +Text Processing Utilities + +Handles text cleaning, sentence splitting, and chunk grouping for semantic chunking. +Specialized for academic papers with markdown content and scientific notation. +""" + +import re +import logging +from typing import List + + +class TextProcessingUtils: + """Utility class for text processing operations in semantic chunking.""" + + def __init__(self, chunk_size: int = 512, overlap: int = 100, logger: logging.Logger = None): + """ + Initialize text processing utilities. + + Args: + chunk_size: Target size for each chunk in characters + overlap: Number of characters to overlap between chunks + logger: Optional logger instance for structured logging + """ + self.chunk_size = chunk_size + self.overlap = overlap + self.logger = logger or self._setup_default_logger() + + def _setup_default_logger(self) -> logging.Logger: + """Set up a default logger if none provided.""" + logger = logging.getLogger(__name__) + if not logger.handlers: + handler = logging.StreamHandler() + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.setLevel(logging.INFO) + return logger + + def clean_text(self, text: str) -> str: + """ + Clean and normalize text content while preserving important structure. + + Args: + text: Raw text content to clean + + Returns: + str: Cleaned and normalized text + """ + if not text: + return "" + + # Remove excessive whitespace while preserving paragraph breaks + text = re.sub(r'\n\s*\n\s*\n', '\n\n', text) # Multiple newlines to double + text = re.sub(r' +', ' ', text) # Multiple spaces to single + + # Handle markdown artifacts + text = self._process_markdown_elements(text) + + # Clean up remaining whitespace + text = text.strip() + + self.logger.debug(f"Cleaned text: {len(text)} characters") + return text + + def _process_markdown_elements(self, text: str) -> str: + """ + Process markdown elements while preserving document structure. + + Args: + text: Text containing markdown elements + + Returns: + str: Text with processed markdown elements + """ + # Replace images with placeholders but keep them for context + text = re.sub(r'!\[.*?\]\(.*?\)', '[IMAGE]', text) + + # Preserve headers by ensuring they have proper spacing + text = re.sub(r'\n(#{1,6}\s)', r'\n\n\1', text) + + # Ensure proper spacing around lists + text = re.sub(r'\n(\s*[-*+]\s)', r'\n\n\1', text) + + return text + + def split_into_sentences(self, text: str) -> List[str]: + """ + Split text into sentences while preserving paragraph structure. + + Args: + text: Text to split into sentences + + Returns: + List[str]: List of sentences with paragraph boundaries preserved + """ + if not text: + return [] + + # Split by paragraphs first to preserve document structure + paragraphs = text.split('\n\n') + sentences = [] + + for paragraph in paragraphs: + paragraph = paragraph.strip() + if not paragraph: + continue + + # Handle different types of paragraph content + if self._is_header(paragraph): + sentences.append(paragraph) + elif self._is_list_item(paragraph): + sentences.append(paragraph) + else: + # Split regular paragraph into sentences + para_sentences = self._split_paragraph_into_sentences(paragraph) + sentences.extend(para_sentences) + + # Filter out empty sentences + sentences = [s.strip() for s in sentences if s.strip()] + + self.logger.debug(f"Split into {len(sentences)} sentences") + return sentences + + def _is_header(self, text: str) -> bool: + """Check if text is a markdown header.""" + return bool(re.match(r'^#{1,6}\s', text.strip())) + + def _is_list_item(self, text: str) -> bool: + """Check if text is a list item.""" + return bool(re.match(r'^\s*[-*+]\s', text.strip())) + + def _split_paragraph_into_sentences(self, paragraph: str) -> List[str]: + """ + Split a paragraph into sentences with academic paper awareness. + + Args: + paragraph: Single paragraph to split + + Returns: + List[str]: List of sentences from the paragraph + """ + # Academic papers often have abbreviations and citations that can interfere + # with sentence splitting. Handle these cases carefully. + + # Protect common abbreviations + protected_text = paragraph + protected_text = re.sub(r'\b(et al\.|e\.g\.|i\.e\.|vs\.|Fig\.|Table|Eq\.)(?=\s)', + lambda m: m.group(1).replace('.', ''), protected_text) + + # Split on sentence boundaries + sentences = re.split(r'(?<=[.!?])\s+', protected_text) + + # Restore protected dots + sentences = [s.replace('', '.') for s in sentences] + + return [s.strip() for s in sentences if s.strip()] + + def group_sentences_into_chunks(self, sentences: List[str]) -> List[str]: + """ + Group sentences into chunks based on size and semantic boundaries. + + Args: + sentences: List of sentences to group + + Returns: + List[str]: List of text chunks + """ + if not sentences: + return [] + + chunks = [] + current_chunk = "" + current_size = 0 + + for sentence in sentences: + sentence_size = len(sentence) + + # Check if adding this sentence would exceed chunk size + if current_size + sentence_size > self.chunk_size and current_chunk: + # Save current chunk + chunks.append(current_chunk.strip()) + + # Start new chunk with overlap if configured + if self.overlap > 0: + overlap_text = self._get_overlap_text(current_chunk, self.overlap) + current_chunk = f"{overlap_text} {sentence}" if overlap_text else sentence + current_size = len(current_chunk) + else: + current_chunk = sentence + current_size = sentence_size + else: + # Add sentence to current chunk + if current_chunk: + current_chunk = f"{current_chunk} {sentence}" + else: + current_chunk = sentence + current_size = len(current_chunk) + + # Add the final chunk + if current_chunk.strip(): + chunks.append(current_chunk.strip()) + + # Filter out very short chunks (less than 50 characters) + chunks = [chunk for chunk in chunks if len(chunk.strip()) > 50] + + self.logger.info(f"Grouped {len(sentences)} sentences into {len(chunks)} chunks") + return chunks + + def _get_overlap_text(self, text: str, overlap_size: int) -> str: + """ + Get the last portion of text for overlap between chunks. + + Args: + text: Text to extract overlap from + overlap_size: Size of overlap in characters + + Returns: + str: Overlap text, preferably ending at sentence boundary + """ + if len(text) <= overlap_size: + return text + + # Try to break at sentence boundary within the overlap region + overlap_text = text[-overlap_size:] + + # Look for sentence boundaries (., !, ?) + sentence_breaks = [ + overlap_text.rfind('. '), + overlap_text.rfind('! '), + overlap_text.rfind('? ') + ] + + # Use the latest sentence break found + sentence_break = max(sentence_breaks) + if sentence_break > 0: + return overlap_text[sentence_break + 2:] + + # If no sentence break found, just use the raw overlap + return overlap_text + +# HELPER FUNCTIONS + +def create_text_processor(chunk_size: int = 512, overlap: int = 100, logger: logging.Logger = None) -> TextProcessingUtils: + """ + Factory function to create a text processing utility. + + Args: + chunk_size: Target chunk size in characters + overlap: Overlap size in characters + logger: Optional logger instance + + Returns: + TextProcessingUtils: Configured text processor + """ + return TextProcessingUtils(chunk_size, overlap, logger) + +def clean_and_chunk_text(text: str, chunk_size: int = 512, overlap: int = 100) -> List[str]: + """ + Convenience function to clean and chunk text in one call. + + Args: + text: Text to process + chunk_size: Target chunk size + overlap: Overlap size + + Returns: + List[str]: List of text chunks + """ + processor = TextProcessingUtils(chunk_size, overlap) + cleaned_text = processor.clean_text(text) + sentences = processor.split_into_sentences(cleaned_text) + return processor.group_sentences_into_chunks(sentences) \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/file_ingesting/__init__.py b/backend/ingestion_pipeline/local_mineru/file_ingesting/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..be1c045e55a52b190e2adb1102a4ade913bb372c --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/file_ingesting/__init__.py @@ -0,0 +1,30 @@ +""" +MinerU file ingesting module for processing PDFs to markdown. +""" +from pathlib import Path +from .mineru_ingestor import parse_doc + + +def process_pdfs_to_markdown(pdf_file: Path, output_directory: Path) -> bool: + """ + Process a single PDF file to markdown using MinerU. + + Args: + pdf_file: Path to the PDF file to process + output_directory: Directory where markdown output will be saved + + Returns: + True if successful, False otherwise + """ + try: + parse_doc( + path_list=[pdf_file], + output_dir=str(output_directory), + lang="en", # Changed from 'ch' to 'en' for English papers + backend="pipeline", + method="auto" + ) + return True + except Exception as e: + print(f"Error processing PDF {pdf_file}: {e}") + return False \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/file_ingesting/mineru_ingestor.py b/backend/ingestion_pipeline/local_mineru/file_ingesting/mineru_ingestor.py new file mode 100644 index 0000000000000000000000000000000000000000..e1056081d9d3d15579c596116ff0d5657b471739 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/file_ingesting/mineru_ingestor.py @@ -0,0 +1,213 @@ +# Copyright (c) Opendatalab. All rights reserved. +import copy +import json +import os +from pathlib import Path + +from loguru import logger + +from mineru.cli.common import convert_pdf_bytes_to_bytes_by_pypdfium2, prepare_env, read_fn +from mineru.data.data_reader_writer import FileBasedDataWriter +from mineru.utils.draw_bbox import draw_layout_bbox, draw_span_bbox +from mineru.utils.enum_class import MakeMode +from mineru.backend.vlm.vlm_analyze import doc_analyze as vlm_doc_analyze +from mineru.backend.pipeline.pipeline_analyze import doc_analyze as pipeline_doc_analyze +from mineru.backend.pipeline.pipeline_middle_json_mkcontent import union_make as pipeline_union_make +from mineru.backend.pipeline.model_json_to_middle_json import result_to_middle_json as pipeline_result_to_middle_json +from mineru.backend.vlm.vlm_middle_json_mkcontent import union_make as vlm_union_make +from mineru.utils.models_download_utils import auto_download_and_get_model_root_path + + +def do_parse( + output_dir, # Output directory for storing parsing results + pdf_file_names: list[str], # List of PDF file names to be parsed + pdf_bytes_list: list[bytes], # List of PDF bytes to be parsed + p_lang_list: list[str], # List of languages for each PDF, default is 'ch' (Chinese) + backend="pipeline", # The backend for parsing PDF, default is 'pipeline' + parse_method="auto", # The method for parsing PDF, default is 'auto' + formula_enable=True, # Enable formula parsing + table_enable=True, # Enable table parsing + server_url=None, # Server URL for vlm-sglang-client backend + f_draw_layout_bbox=False, # Whether to draw layout bounding boxes + f_draw_span_bbox=False, # Whether to draw span bounding boxes + f_dump_md=True, # Whether to dump markdown files + f_dump_middle_json=False, # Whether to dump middle JSON files + f_dump_model_output=False, # Whether to dump model output files + f_dump_orig_pdf=False, # Whether to dump original PDF files + f_dump_content_list=True, # Whether to dump content list files + f_make_md_mode=MakeMode.MM_MD, # The mode for making markdown content, default is MM_MD + start_page_id=0, # Start page ID for parsing, default is 0 + end_page_id=None, # End page ID for parsing, default is None (parse all pages until the end of the document) +): + + if backend == "pipeline": + for idx, pdf_bytes in enumerate(pdf_bytes_list): + new_pdf_bytes = convert_pdf_bytes_to_bytes_by_pypdfium2(pdf_bytes, start_page_id, end_page_id) + pdf_bytes_list[idx] = new_pdf_bytes + + infer_results, all_image_lists, all_pdf_docs, lang_list, ocr_enabled_list = pipeline_doc_analyze(pdf_bytes_list, p_lang_list, parse_method=parse_method, formula_enable=formula_enable,table_enable=table_enable) + + for idx, model_list in enumerate(infer_results): + model_json = copy.deepcopy(model_list) + pdf_file_name = pdf_file_names[idx] + local_image_dir, local_md_dir = prepare_env(output_dir, pdf_file_name, parse_method) + image_writer, md_writer = FileBasedDataWriter(local_image_dir), FileBasedDataWriter(local_md_dir) + + images_list = all_image_lists[idx] + pdf_doc = all_pdf_docs[idx] + _lang = lang_list[idx] + _ocr_enable = ocr_enabled_list[idx] + middle_json = pipeline_result_to_middle_json(model_list, images_list, pdf_doc, image_writer, _lang, _ocr_enable, formula_enable) + + pdf_info = middle_json["pdf_info"] + + pdf_bytes = pdf_bytes_list[idx] + if f_draw_layout_bbox: + draw_layout_bbox(pdf_info, pdf_bytes, local_md_dir, f"{pdf_file_name}_layout.pdf") + + if f_draw_span_bbox: + draw_span_bbox(pdf_info, pdf_bytes, local_md_dir, f"{pdf_file_name}_span.pdf") + + if f_dump_orig_pdf: + md_writer.write( + f"{pdf_file_name}_origin.pdf", + pdf_bytes, + ) + + if f_dump_md: + image_dir = str(os.path.basename(local_image_dir)) + md_content_str = pipeline_union_make(pdf_info, f_make_md_mode, image_dir) + md_writer.write_string( + f"{pdf_file_name}.md", + md_content_str, + ) + + if f_dump_content_list: + image_dir = str(os.path.basename(local_image_dir)) + content_list = pipeline_union_make(pdf_info, MakeMode.CONTENT_LIST, image_dir) + md_writer.write_string( + f"{pdf_file_name}_content_list.json", + json.dumps(content_list, ensure_ascii=False, indent=4), + ) + + if f_dump_middle_json: + md_writer.write_string( + f"{pdf_file_name}_middle.json", + json.dumps(middle_json, ensure_ascii=False, indent=4), + ) + + if f_dump_model_output: + md_writer.write_string( + f"{pdf_file_name}_model.json", + json.dumps(model_json, ensure_ascii=False, indent=4), + ) + + logger.info(f"local output dir is {local_md_dir}") + else: + if backend.startswith("vlm-"): + backend = backend[4:] + + f_draw_span_bbox = False + parse_method = "vlm" + for idx, pdf_bytes in enumerate(pdf_bytes_list): + pdf_file_name = pdf_file_names[idx] + pdf_bytes = convert_pdf_bytes_to_bytes_by_pypdfium2(pdf_bytes, start_page_id, end_page_id) + local_image_dir, local_md_dir = prepare_env(output_dir, pdf_file_name, parse_method) + image_writer, md_writer = FileBasedDataWriter(local_image_dir), FileBasedDataWriter(local_md_dir) + middle_json, infer_result = vlm_doc_analyze(pdf_bytes, image_writer=image_writer, backend=backend, server_url=server_url) + + pdf_info = middle_json["pdf_info"] + + if f_draw_layout_bbox: + draw_layout_bbox(pdf_info, pdf_bytes, local_md_dir, f"{pdf_file_name}_layout.pdf") + + if f_draw_span_bbox: + draw_span_bbox(pdf_info, pdf_bytes, local_md_dir, f"{pdf_file_name}_span.pdf") + + if f_dump_orig_pdf: + md_writer.write( + f"{pdf_file_name}_origin.pdf", + pdf_bytes, + ) + + if f_dump_md: + image_dir = str(os.path.basename(local_image_dir)) + md_content_str = vlm_union_make(pdf_info, f_make_md_mode, image_dir) + md_writer.write_string( + f"{pdf_file_name}.md", + md_content_str, + ) + + if f_dump_content_list: + image_dir = str(os.path.basename(local_image_dir)) + content_list = vlm_union_make(pdf_info, MakeMode.CONTENT_LIST, image_dir) + md_writer.write_string( + f"{pdf_file_name}_content_list.json", + json.dumps(content_list, ensure_ascii=False, indent=4), + ) + + if f_dump_middle_json: + md_writer.write_string( + f"{pdf_file_name}_middle.json", + json.dumps(middle_json, ensure_ascii=False, indent=4), + ) + + if f_dump_model_output: + model_output = ("\n" + "-" * 50 + "\n").join(infer_result) + md_writer.write_string( + f"{pdf_file_name}_model_output.txt", + model_output, + ) + + logger.info(f"local output dir is {local_md_dir}") + + +def parse_doc( + path_list: list[Path], + output_dir, + lang="ch", + backend="pipeline", + method="auto", + server_url=None, + start_page_id=0, + end_page_id=None +): + try: + file_name_list = [] + pdf_bytes_list = [] + lang_list = [] + for path in path_list: + file_name = str(Path(path).stem) + pdf_bytes = read_fn(path) + file_name_list.append(file_name) + pdf_bytes_list.append(pdf_bytes) + lang_list.append(lang) + do_parse( + output_dir=output_dir, + pdf_file_names=file_name_list, + pdf_bytes_list=pdf_bytes_list, + p_lang_list=lang_list, + backend=backend, + parse_method=method, + server_url=server_url, + start_page_id=start_page_id, + end_page_id=end_page_id + ) + except Exception as e: + logger.exception(e) + + +if __name__ == '__main__': + # args + __dir__ = os.path.dirname(os.path.abspath(__file__)) + pdf_files_dir = os.path.join(__dir__, "research_papers") + output_dir = os.path.join(__dir__, "output") + pdf_suffixes = [".pdf"] + image_suffixes = [".png", ".jpeg", ".jpg"] + + doc_path_list = [] + for doc_path in Path(pdf_files_dir).glob('*'): + if doc_path.suffix in pdf_suffixes + image_suffixes: + doc_path_list.append(doc_path) + + parse_doc(doc_path_list, output_dir, backend="pipeline") \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Attention Is All You Need.pdf b/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Attention Is All You Need.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c448a903a90bdd82fd43f7bb036028e369191070 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Attention Is All You Need.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bdfaa68d8984f0dc02beaca527b76f207d99b666d31d1da728ee0728182df697 +size 2215244 diff --git a/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Billing Dispute Adjustment Process Flow v_f4b3b7c9.pdf b/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Billing Dispute Adjustment Process Flow v_f4b3b7c9.pdf new file mode 100644 index 0000000000000000000000000000000000000000..cc0ae8e0682a4bbffa07d847174dca968563955a --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Billing Dispute Adjustment Process Flow v_f4b3b7c9.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a52040947c9cf22b3d2e440d78c8e0e4746f9f542ef9bee6d857d0857c1acde +size 1867945 diff --git a/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Communication-Efficient Learning of Deep Networks.pdf b/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Communication-Efficient Learning of Deep Networks.pdf new file mode 100644 index 0000000000000000000000000000000000000000..13f5b0674d290c89c76232fa90a2840159d01e26 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Communication-Efficient Learning of Deep Networks.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2faf5593d9db413dee96a9be6ab9527cb0413b34fd5024aa60db3a5ad5795384 +size 1311201 diff --git a/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/MOE.pdf b/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/MOE.pdf new file mode 100644 index 0000000000000000000000000000000000000000..26dc4153d9395d7f446a6c132cc48e0af6bcfca0 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/MOE.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a12ef2353aeb3894afc015ad88803d47fc6e8522a176f90ffbfdf850ad0d5710 +size 628115 diff --git a/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/React_paper.pdf b/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/React_paper.pdf new file mode 100644 index 0000000000000000000000000000000000000000..db998c93a06115fc2ffde481f51039bbade9d676 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/React_paper.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f285b0971ae4a790e402fb93966bed3adde2cf0a04977d08b2b40d6ab0cace69 +size 633805 diff --git a/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Small Language Models in the Era of Large.pdf b/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Small Language Models in the Era of Large.pdf new file mode 100644 index 0000000000000000000000000000000000000000..098a8af1ec6ee8a42defaff8b0a1bbc9cc670e51 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/file_ingesting/research_papers/Small Language Models in the Era of Large.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:647f2fe8eed3404fc981b677567530e0752be7f81064a3567b434dffcefde8d6 +size 5076889 diff --git a/backend/ingestion_pipeline/local_mineru/pipelines/__init__.py b/backend/ingestion_pipeline/local_mineru/pipelines/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..dbc33330e11d22c911d0e417dbc62847713e6fbf --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/pipelines/__init__.py @@ -0,0 +1,16 @@ +""" +Pipeline orchestrators for MinerU-powered document processing. + +This module contains pipeline orchestrators that coordinate multiple processing stages +including PDF extraction, VLM enhancement, and semantic chunking. +""" + +from .pdf_to_enriched_semantic_chunks_pipeline import ( + PDFToEnrichedMarkdownPipeline, + process_pdfs_to_enriched_markdown +) + +__all__ = [ + "PDFToEnrichedMarkdownPipeline", + "process_pdfs_to_enriched_markdown" +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/pipelines/pdf_to_enriched_semantic_chunks_pipeline.py b/backend/ingestion_pipeline/local_mineru/pipelines/pdf_to_enriched_semantic_chunks_pipeline.py new file mode 100644 index 0000000000000000000000000000000000000000..3e3ec4446c4c8a66b646ebb3d0d1c41230fd74ff --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/pipelines/pdf_to_enriched_semantic_chunks_pipeline.py @@ -0,0 +1,260 @@ +""" +PDF to Enriched Markdown Pipeline + +Complete orchestrator that chains MinerU PDF processing, VLM image enhancement, +and semantic chunking. This is the complete preprocessing pipeline. + +Dependencies: +- MinerU for PDF processing +- VLM enhancement utilities for image description +- Semantic chunker for content chunking +- File management utilities for safe file operations + +Architecture: +This orchestrator coordinates the pipeline components but doesn't contain +business logic. All heavy processing is delegated to specialized utility classes. +""" + +import asyncio +import logging +import sys +import time +from pathlib import Path +from typing import List + +# Add the parent directories to the Python path for imports +current_dir = Path(__file__).parent.parent.parent +sys.path.insert(0, str(current_dir)) + +from utils.file_management_utils import FileManagementUtils, find_pdf_files +from utils.mineru_processing_utils import MinerUProcessingUtils, cleanup_intermediate_files +from utils.vlm_enhancement_utils import VLMEnhancementUtils + + +class PDFToEnrichedMarkdownPipeline: + """Complete pipeline that chains MinerU + VLM enhancement + semantic chunking.""" + + def __init__(self, pdf_directory: Path, output_directory: Path, enable_vlm: bool = True, enable_chunking: bool = True): + """ + Initialize the pipeline. + + Args: + pdf_directory: Directory containing PDF files to process + output_directory: Directory for final output + enable_vlm: Whether to run VLM image enhancement + enable_chunking: Whether to run semantic chunking + """ + self.pdf_directory = Path(pdf_directory) + self.output_directory = Path(output_directory) + self.enable_vlm = enable_vlm + self.enable_chunking = enable_chunking + + # Set up logging + self.logger = self._setup_logging() + + # Ensure directories exist + self.output_directory.mkdir(parents=True, exist_ok=True) + + # Initialize utility classes + self._initialize_utilities() + + def _setup_logging(self) -> logging.Logger: + """Set up structured logging for the pipeline.""" + logger = logging.getLogger(__name__) + if not logger.handlers: + handler = logging.StreamHandler() + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.setLevel(logging.INFO) + return logger + + def _initialize_utilities(self): + """Initialize all utility classes with proper configuration.""" + # File management utilities + filename_mapping_file = Path(__file__).parent.parent.parent / "filename_mapping.json" + self.file_manager = FileManagementUtils(filename_mapping_file, self.logger) + + # MinerU processing utilities + mineru_script = Path(__file__).parent.parent / "file_ingesting" / "mineru_ingestor.py" + self.mineru_processor = MinerUProcessingUtils(mineru_script, self.logger) + + # VLM enhancement utilities + self.vlm_enhancer = VLMEnhancementUtils(self.output_directory, self.logger) + + # Chunked output directory + self.chunked_output_dir = Path(__file__).parent.parent.parent / "chunked_output" + + def find_pdf_files(self) -> List[Path]: + """Find all PDF files in the input directory.""" + return find_pdf_files(self.pdf_directory) + + def run_mineru_processing(self, pdf_files: List[Path]) -> bool: + """ + Run MinerU processing on PDF files. + + Args: + pdf_files: List of PDF files to process + + Returns: + bool: True if successful, False otherwise + """ + try: + # Copy PDFs to the expected location with safe filenames + research_papers_dir = Path(__file__).parent.parent / "file_ingesting" / "research_papers" + self.file_manager.copy_files_with_safe_names(pdf_files, research_papers_dir) + + # Run MinerU processing + if not self.mineru_processor.run_mineru_processing(): + return False + + # Validate MinerU output + mineru_output_dir = Path(__file__).parent.parent / "file_ingesting" / "output" + if not self.mineru_processor.validate_mineru_output(mineru_output_dir): + return False + + # Copy results to final output directory with restored filenames + self.file_manager.copy_output_with_restored_names(mineru_output_dir, self.output_directory) + + return True + + except Exception as e: + self.logger.error(f"MinerU processing failed: {e}") + return False + + async def run_vlm_enhancement(self) -> bool: + """ + Run VLM enhancement on the pipeline output. + + Returns: + bool: True if successful, False otherwise + """ + if not self.enable_vlm: + self.logger.info("VLM enhancement disabled, skipping") + return True + + return await self.vlm_enhancer.run_vlm_enhancement() + + def run_semantic_chunking(self) -> bool: + """ + Run semantic chunking on the enhanced markdown files. + + Returns: + bool: True if successful, False otherwise + """ + if not self.enable_chunking: + self.logger.info("Semantic chunking disabled, skipping") + return True + + try: + # Import the chunker here to avoid import issues if not needed + from ..chunker.semantic_chunker import SemanticChunker + + # Initialize chunker with reasonable settings for academic papers + chunker = SemanticChunker( + chunk_size=1024, # Larger chunks for academic papers + overlap=128 # Good overlap for context preservation + ) + + # Set up output path + self.chunked_output_dir.mkdir(parents=True, exist_ok=True) + chunks_output_path = self.chunked_output_dir / "semantic_chunks.json" + + # Process all markdown files in output directory + results = chunker.process_output_directory( + output_dir=self.output_directory, + save_to=chunks_output_path + ) + + self.logger.info("Semantic chunking completed successfully") + return True + + except Exception as e: + self.logger.error(f"Semantic chunking failed: {e}") + return False + + async def process(self) -> bool: + """ + Run the complete pipeline. + + Returns: + bool: True if successful, False otherwise + """ + start_time = time.time() + + try: + self.logger.info("Starting PDF to Enriched Markdown Pipeline") + + # Step 1: Find PDF files + pdf_files = self.find_pdf_files() + self.logger.info(f"Found {len(pdf_files)} PDF files to process") + + # Step 2: Run MinerU processing + if not self.run_mineru_processing(pdf_files): + self.logger.error("MinerU processing failed") + return False + + # Step 3: Run VLM enhancement + if self.enable_vlm: + vlm_result = await self.run_vlm_enhancement() + if not vlm_result: + self.logger.warning("VLM enhancement failed, but continuing with pipeline") + else: + self.logger.info("VLM enhancement completed successfully") + + # Step 4: Run semantic chunking + if self.enable_chunking: + if not self.run_semantic_chunking(): + self.logger.warning("Semantic chunking failed, but pipeline completed") + + # Step 5: Clean up intermediate files + mineru_output_dir = Path(__file__).parent.parent / "file_ingesting" / "output" + cleanup_intermediate_files(mineru_output_dir, self.logger) + + # Success + total_time = time.time() - start_time + self.logger.info(f"Pipeline completed successfully in {total_time:.2f} seconds") + return True + + except Exception as e: + self.logger.error(f"Pipeline failed with exception: {e}") + return False + + +# Simple function interface +async def process_pdfs_to_enriched_markdown( + pdf_directory: str | Path, + output_directory: str | Path, + enable_vlm_enhancement: bool = True, + enable_semantic_chunking: bool = True +) -> bool: + """ + Simple function to process PDFs to enriched markdown with optional chunking. + + Args: + pdf_directory: Directory containing PDF files + output_directory: Directory for output files + enable_vlm_enhancement: Whether to run VLM image enhancement + enable_semantic_chunking: Whether to run semantic chunking + + Returns: + bool: True if successful, False otherwise + """ + pipeline = PDFToEnrichedMarkdownPipeline( + pdf_directory=pdf_directory, + output_directory=output_directory, + enable_vlm=enable_vlm_enhancement, + enable_chunking=enable_semantic_chunking + ) + + return await pipeline.process() + + +if __name__ == "__main__": + processer = PDFToEnrichedMarkdownPipeline( + pdf_directory=Path(__file__).parent.parent.parent / "pdfs", + output_directory=Path(__file__).parent.parent.parent / "output", + enable_vlm=True, + enable_chunking=True + ) + asyncio.run(processer.process()) \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/vlm_enhancing/README.md b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b78801c0c99c567a12a12167ad0aec27e4ceda3c --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/README.md @@ -0,0 +1,140 @@ +# VLM Enhancement Pipeline for MinerU Output + +This pipeline enriches MinerU-generated markdown files with AI-generated image descriptions using Google's Gemini 2.0 Flash Vision Language Model. + +## Features + +- 🔍 **Smart Image Extraction**: Automatically finds image references in markdown files +- 📝 **Context Analysis**: Extracts surrounding text to provide context for descriptions +- 🤖 **Gemini 2.0 Flash Integration**: Uses state-of-the-art VLM for accurate descriptions +- 📄 **Markdown Enhancement**: Seamlessly integrates descriptions into existing files +- 🔄 **Batch Processing**: Processes multiple documents concurrently +- 🔐 **Backup Safety**: Automatically backs up original files +- 📊 **Progress Tracking**: Detailed logging and statistics + +## Architecture + +``` +vlm_enhancing/ +├── components/ # Core processing components +│ ├── image_extractor.py # Extract image refs from markdown +│ ├── context_analyzer.py # Analyze surrounding text +│ ├── gemini_describer.py # Gemini 2.0 Flash integration +│ └── markdown_enricher.py # Insert descriptions into markdown +├── models/ # Data structures +│ ├── image_context.py # Image and context models +│ └── description_result.py # Result and status models +├── vlm_pipeline.py # Main orchestrator +├── example_usage.py # Usage examples +└── test_pipeline.py # Test suite +``` + +## Setup + +1. **Install Dependencies**: + ```bash + pip install google-genai python-dotenv + ``` + +2. **Set API Key**: + ```bash + export GEMINI_API_KEY="your-gemini-api-key" + ``` + +3. **Test Installation**: + ```bash + python test_pipeline.py + ``` + +## Usage + +### Process All Documents +```python +from vlm_pipeline import VLMPipeline, PipelineConfig +import asyncio + +config = PipelineConfig( + gemini_model="gemini-2.0-flash-exp", + backup_original_files=True, + max_concurrent_requests=3 +) + +pipeline = VLMPipeline(config) +results = await pipeline.process_directory("path/to/mineru/output") +``` + +### Command Line Usage +```bash +# Process all documents +python example_usage.py + +# Process single document +python example_usage.py "path/to/document.md" +``` + +## How It Works + +1. **Image Detection**: Scans markdown files for `![](images/filename.jpg)` patterns +2. **Context Extraction**: Gets surrounding paragraphs and section titles +3. **Description Generation**: Sends image + context to Gemini 2.0 Flash +4. **Markdown Enhancement**: Replaces simple tags with enhanced versions: + + **Before:** + ```markdown + ![](images/29e695197893607df2ac75e853c53c33926dd8dd8d2b47486a30282705a38b61.jpg) + ``` + + **After:** + ```markdown + ![A bar chart showing head-to-head win rates across different conditions and datasets](images/29e695197893607df2ac75e853c53c33926dd8dd8d2b47486a30282705a38b61.jpg) + + *AI-generated description: A bar chart showing head-to-head win rates across different conditions and datasets, with GraphRAG conditions (C0-C3) consistently outperforming naive RAG on comprehensiveness and diversity metrics.* + ``` + +## Configuration Options + +```python +PipelineConfig( + gemini_api_key=None, # API key (or set GEMINI_API_KEY env var) + gemini_model="gemini-2.0-flash-exp", # Model to use + backup_original_files=True, # Create .backup files + max_concurrent_requests=5, # Concurrent API calls + skip_existing_descriptions=True, # Skip already processed images + log_level="INFO" # Logging level +) +``` + +## Error Handling + +- **Missing Images**: Skips references to non-existent image files +- **API Failures**: Retries with exponential backoff +- **Processing Errors**: Logs errors but continues with other images +- **Backup Recovery**: Use `restore_from_backup()` if needed + +## Testing + +The test suite validates core functionality without requiring API calls: + +```bash +python test_pipeline.py +``` + +Tests include: +- Image extraction from markdown files +- Context analysis around image references +- Component integration +- Error handling scenarios + +## Requirements + +- Python 3.8+ +- `google-genai` for Gemini API +- `python-dotenv` for environment variables +- MinerU output directory with markdown files and images + +## Performance + +- **Speed**: ~2-5 seconds per image (depends on API response time) +- **Concurrency**: Configurable concurrent requests (default: 5) +- **Memory**: Lightweight - processes images one at a time +- **Cost**: Varies by Gemini API usage (vision model calls) \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/vlm_enhancing/__init__.py b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..bd0119aa10a49afd46f9709d49823932bb71156d --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/__init__.py @@ -0,0 +1,46 @@ +""" +VLM Enhancement Pipeline for MinerU Output. + +This package provides a complete pipeline for enriching MinerU-generated markdown files +with AI-generated image descriptions using Gemini 2.0 Flash VLM. + +Key Features: +- Extract image references from markdown files +- Analyze contextual information around images +- Generate contextual descriptions using Gemini 2.0 Flash +- Enrich markdown files with enhanced image tags and descriptions +- Batch processing with error handling and progress tracking +""" + +from .vlm_pipeline import VLMPipeline, PipelineConfig +from .components import ImageExtractor, ContextAnalyzer, GeminiDescriber, MarkdownEnricher +from .models import ( + ImageReference, + DocumentContext, + ImageContext, + DescriptionResult, + EnrichmentResult, + ProcessingStatus +) + +__version__ = "1.0.0" + +__all__ = [ + # Main pipeline + "VLMPipeline", + "PipelineConfig", + + # Components + "ImageExtractor", + "ContextAnalyzer", + "GeminiDescriber", + "MarkdownEnricher", + + # Data models + "ImageReference", + "DocumentContext", + "ImageContext", + "DescriptionResult", + "EnrichmentResult", + "ProcessingStatus", +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/__init__.py b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..53b932ec209e65b078a70b4e6fca65fd4521a9aa --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/__init__.py @@ -0,0 +1,18 @@ +""" +Components for the VLM enhancement pipeline. + +This package contains all the core processing components for extracting images, +analyzing context, generating descriptions, and enriching markdown files. +""" + +from .image_extractor import ImageExtractor +from .context_analyzer import ContextAnalyzer +from .gemini_describer import GeminiDescriber +from .markdown_enricher import MarkdownEnricher + +__all__ = [ + "ImageExtractor", + "ContextAnalyzer", + "GeminiDescriber", + "MarkdownEnricher", +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/context_analyzer.py b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/context_analyzer.py new file mode 100644 index 0000000000000000000000000000000000000000..be2c4631dc6b14396956aa3984c0dacc0f156b7f --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/context_analyzer.py @@ -0,0 +1,182 @@ +""" +Context analyzer component. + +This module handles extracting contextual information around images in markdown files, +including surrounding paragraphs and section titles to provide context for VLM description generation. +""" + +import re +from pathlib import Path +from typing import List, Optional +import sys +from pathlib import Path +sys.path.append(str(Path(__file__).parent.parent)) +from models import ImageReference, DocumentContext, ImageContext + + +class ContextAnalyzer: + """Analyzes markdown content to extract context around image references.""" + + # Regex patterns for markdown elements + SECTION_HEADER_PATTERN = re.compile(r'^(#{1,6})\s+(.+)$', re.MULTILINE) + PARAGRAPH_SEPARATOR = re.compile(r'\n\s*\n') + + def __init__(self): + """Initialize the context analyzer.""" + pass + + def analyze_image_context(self, image_ref: ImageReference, markdown_path: Path) -> ImageContext: + """ + Analyze the context around an image reference. + + Args: + image_ref: The image reference to analyze + markdown_path: Path to the markdown file containing the image + + Returns: + ImageContext object with extracted context information + + Raises: + FileNotFoundError: If the markdown file doesn't exist + """ + if not markdown_path.exists(): + raise FileNotFoundError(f"Markdown file not found: {markdown_path}") + + content = markdown_path.read_text(encoding='utf-8') + context = self._extract_context(content, image_ref) + + return ImageContext( + image_ref=image_ref, + context=context, + markdown_file_path=markdown_path + ) + + def _extract_context(self, content: str, image_ref: ImageReference) -> DocumentContext: + """Extract context information around an image reference.""" + lines = content.splitlines() + + # Find the line containing the image + image_line_index = None + for i, line in enumerate(lines): + if image_ref.markdown_tag in line: + image_line_index = i + break + + if image_line_index is None: + # Image reference not found, return empty context + return DocumentContext(None, None, None) + + # Extract surrounding paragraphs + paragraph_before = self._get_paragraph_before(lines, image_line_index) + paragraph_after = self._get_paragraph_after(lines, image_line_index) + + # Extract section title + section_title = self._get_section_title(lines, image_line_index) + + return DocumentContext( + paragraph_before=paragraph_before, + paragraph_after=paragraph_after, + section_title=section_title + ) + + def _get_paragraph_before(self, lines: List[str], image_line_index: int) -> Optional[str]: + """Get the paragraph immediately before the image.""" + if image_line_index == 0: + return None + + # Look backwards for non-empty lines + paragraph_lines = [] + for i in range(image_line_index - 1, -1, -1): + line = lines[i].strip() + + # Stop at empty line or section header + if not line or self._is_section_header(line): + break + + # Skip other image references + if line.startswith('!['): + continue + + paragraph_lines.insert(0, line) + + return ' '.join(paragraph_lines) if paragraph_lines else None + + def _get_paragraph_after(self, lines: List[str], image_line_index: int) -> Optional[str]: + """Get the paragraph immediately after the image.""" + if image_line_index >= len(lines) - 1: + return None + + # Look forwards for non-empty lines + paragraph_lines = [] + for i in range(image_line_index + 1, len(lines)): + line = lines[i].strip() + + # Stop at empty line or section header + if not line or self._is_section_header(line): + break + + # Skip other image references + if line.startswith('!['): + continue + + paragraph_lines.append(line) + + return ' '.join(paragraph_lines) if paragraph_lines else None + + def _get_section_title(self, lines: List[str], image_line_index: int) -> Optional[str]: + """Get the title of the section containing the image.""" + # Look backwards for the nearest section header + for i in range(image_line_index, -1, -1): + line = lines[i].strip() + if self._is_section_header(line): + return self._extract_section_title(line) + + return None + + def _is_section_header(self, line: str) -> bool: + """Check if a line is a markdown section header.""" + return bool(self.SECTION_HEADER_PATTERN.match(line)) + + def _extract_section_title(self, header_line: str) -> str: + """Extract the title from a section header line.""" + match = self.SECTION_HEADER_PATTERN.match(header_line) + if match: + return match.group(2).strip() + return header_line.lstrip('#').strip() + + def analyze_multiple_images(self, image_refs: List[ImageReference], markdown_path: Path) -> List[ImageContext]: + """ + Analyze context for multiple image references in the same file. + + Args: + image_refs: List of image references to analyze + markdown_path: Path to the markdown file + + Returns: + List of ImageContext objects + """ + print(f"📝 CONTEXT ANALYZER: Analyzing {len(image_refs)} images in {markdown_path.name}") + + contexts = [] + for i, image_ref in enumerate(image_refs, 1): + try: + print(f" 📝 {i}/{len(image_refs)}: Analyzing context for {image_ref.filename}") + context = self.analyze_image_context(image_ref, markdown_path) + + # Log extracted context + doc_context = context.context + print(f" 📍 Section: {doc_context.section_title or 'None'}") + print(f" ⬆️ Before: {doc_context.paragraph_before[:100] + '...' if doc_context.paragraph_before and len(doc_context.paragraph_before) > 100 else doc_context.paragraph_before or 'None'}") + print(f" ⬇️ After: {doc_context.paragraph_after[:100] + '...' if doc_context.paragraph_after and len(doc_context.paragraph_after) > 100 else doc_context.paragraph_after or 'None'}") + + contexts.append(context) + except Exception as e: + print(f"❌ Error analyzing context for {image_ref.filename}: {e}") + import traceback + traceback.print_exc() + # Create a context with no information rather than failing + empty_context = DocumentContext(None, None, None) + contexts.append(ImageContext(image_ref, empty_context, markdown_path)) + + print(f"📝 Context analysis complete: {len(contexts)} contexts generated") + return contexts \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/gemini_describer.py b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/gemini_describer.py new file mode 100644 index 0000000000000000000000000000000000000000..4c61b098fdb1b229aac89835120ce1ebc844a42b --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/gemini_describer.py @@ -0,0 +1,230 @@ +""" +Gemini 2.0 Flash VLM integration component. + +This module handles the integration with Google's Gemini 2.0 Flash model for generating +contextual descriptions of images found in academic papers and documents. +""" + +import os +import asyncio +from pathlib import Path +from typing import Optional +from google import genai +from google.genai import types +from dotenv import load_dotenv +import sys +from pathlib import Path +sys.path.append(str(Path(__file__).parent.parent)) +from models import ImageContext, DescriptionResult + + +class GeminiDescriber: + """Handles image description generation using Gemini 2.0 Flash VLM.""" + + SYSTEM_PROMPT = """You are an expert image analyst specializing in academic, technical, and business documents. Your role is to provide concise, high-quality descriptions that capture essential visual information efficiently. + +ADAPTIVE DESCRIPTION STRATEGY: +First, assess the image complexity and adjust your response length accordingly: + +SIMPLE IMAGES (photos, basic screenshots, simple diagrams): +- Provide 1-2 sentences (40-80 words) +- Focus on: main subject, key visual elements, essential context + +MODERATE COMPLEXITY (charts, standard diagrams, formatted documents): +- Provide 3-5 sentences (80-150 words) +- Focus on: structure, key data points, relationships, purpose + +HIGH COMPLEXITY (detailed flowcharts, complex data visualizations, technical schematics): +- Provide 6-8 sentences (150-300 words) +- Focus on: detailed structure, comprehensive data, process flows, technical relationships + +DESCRIPTION PRINCIPLES: +- Use precise, professional terminology +- Prioritize information crucial for document understanding +- Include specific text content, values, and labels when important +- Describe spatial relationships only when relevant +- Focus on functional purpose over exhaustive visual details +- Be concise but comprehensive for the complexity level + +Your description should enable understanding without overwhelming the document with excessive detail.""" + + USER_PROMPT_TEMPLATE = """Analyze this image using the adaptive description strategy from the system instructions. First assess the image complexity level, then provide an appropriately sized description. + +DOCUMENT CONTEXT: +{context} + +ANALYSIS STEPS: +1. Quickly assess image complexity (Simple/Moderate/High) +2. Provide description matching that complexity level: + - Simple: 1-2 sentences focusing on main subject and key context + - Moderate: 3-5 sentences covering structure, key data, and purpose + - High: 6-8 sentences with detailed analysis of complex elements + +3. Include essential information: + - Key readable text, labels, and values + - Main visual elements and their relationships + - Functional purpose within the document context + - Important data trends or process flows (if applicable) + +Focus on efficiency and clarity. Provide exactly what's needed for understanding - no more, no less.""" + + def __init__(self, api_key: Optional[str] = None, model: str = "gemini-2.5-flash-lite"): + """ + Initialize the Gemini describer. + + Args: + api_key: Gemini API key (will load from environment if not provided) + model: Model name to use (defaults to gemini-2.5-flash-lite) + """ + load_dotenv() + self.api_key = api_key or os.getenv("GEMINI_API_KEY") + self.model = model + + if not self.api_key: + raise ValueError("GEMINI_API_KEY must be provided or set in environment") + + self.client = genai.Client(api_key=self.api_key) + + async def describe_image(self, image_context: ImageContext) -> DescriptionResult: + """ + Generate a description for an image using its context. + + Args: + image_context: ImageContext object containing image and surrounding text + + Returns: + DescriptionResult with the generated description or error information + """ + image_path = image_context.image_ref.image_path + print(f" 🖼️ Checking image file: {image_path}") + + if not image_context.image_ref.exists(): + error_msg = f"Image file not found: {image_path}" + print(f" ❌ {error_msg}") + return DescriptionResult.failed(error_msg) + + try: + # Read the image file + print(f" 📖 Reading image data from {image_path}") + image_data = image_context.image_ref.image_path.read_bytes() + print(f" 📊 Image data size: {len(image_data)} bytes") + + # Create the prompt with context + prompt_context = image_context.create_prompt_context() + user_prompt = self.USER_PROMPT_TEMPLATE.format(context=prompt_context) + print(f" 📝 Prompt context: {prompt_context[:200]}{'...' if len(prompt_context) > 200 else ''}") + + # Prepare multimodal content - Create proper Part objects + from google.genai.types import Part + + contents = [ + user_prompt, + Part.from_bytes(data=image_data, mime_type="image/jpeg") + ] + print(f" 🔧 Prepared multimodal content with {len(contents)} parts") + + # Generate description + print(f" 🚀 Calling Gemini API...") + response = await self._generate_content(contents) + + if response and response.strip(): + print(f" ✅ Got response: {response[:100]}{'...' if len(response) > 100 else ''}") + return DescriptionResult.success(response.strip()) + else: + error_msg = "Empty response from Gemini" + print(f" ❌ {error_msg}") + return DescriptionResult.failed(error_msg) + + except Exception as e: + error_msg = f"Error generating description: {str(e)}" + print(f" ❌ {error_msg}") + import traceback + traceback.print_exc() + return DescriptionResult.failed(error_msg) + + async def _generate_content(self, contents) -> Optional[str]: + """ + Generate content using Gemini API with retry logic. + + Args: + contents: Multimodal content for the API call + + Returns: + Generated text response or None if failed + """ + max_retries = 3 + base_delay = 1.0 + + for attempt in range(max_retries): + try: + response = self.client.models.generate_content( + model=self.model, + contents=contents, + config=types.GenerateContentConfig( + max_output_tokens=500, + temperature=0.3, + system_instruction=self.SYSTEM_PROMPT + ), + ) + return response.text + + except Exception as e: + if attempt == max_retries - 1: + raise e + + # Exponential backoff + delay = base_delay * (2 ** attempt) + await asyncio.sleep(delay) + continue + + return None + + async def describe_multiple_images(self, image_contexts: list[ImageContext]) -> list[tuple[ImageContext, DescriptionResult]]: + """ + Generate descriptions for multiple images concurrently. + + Args: + image_contexts: List of ImageContext objects + + Returns: + List of tuples containing (ImageContext, DescriptionResult) + """ + + # Process images concurrently with a reasonable limit + semaphore = asyncio.Semaphore(5) # Limit concurrent requests + + async def process_single_image(context: ImageContext) -> tuple[ImageContext, DescriptionResult]: + async with semaphore: + print(f"🤖 Processing {context.image_ref.filename}...") + result = await self.describe_image(context) + if hasattr(result, 'success') and result.success: + print(f" ✅ {context.image_ref.filename}: Success") + else: + print(f" ❌ {context.image_ref.filename}: Failed - {getattr(result, 'error_message', 'Unknown error')}") + return context, result + + tasks = [process_single_image(context) for context in image_contexts] + print(f"🚀 Starting {len(tasks)} concurrent Gemini API calls...") + results = await asyncio.gather(*tasks, return_exceptions=True) + + # Handle any exceptions that occurred + processed_results = [] + success_count = 0 + error_count = 0 + + for i, result in enumerate(results): + if isinstance(result, Exception): + error_count += 1 + print(f"❌ Task {i+1} exception: {str(result)}") + error_result = DescriptionResult.failed(f"Task failed: {str(result)}") + processed_results.append((image_contexts[i], error_result)) + else: + context, desc_result = result + if hasattr(desc_result, 'success') and desc_result.success: + success_count += 1 + else: + error_count += 1 + processed_results.append(result) + + print(f"🤖 Gemini processing complete: {success_count} successful, {error_count} failed") + return processed_results \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/image_extractor.py b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/image_extractor.py new file mode 100644 index 0000000000000000000000000000000000000000..b8fd44e64385b51245bcd5989740f97ce10c21ed --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/image_extractor.py @@ -0,0 +1,132 @@ +""" +Image reference extractor component. + +This module handles extracting image references from markdown files generated by MinerU, +validating that the referenced images exist, and creating structured data for processing. +""" + +import re +from pathlib import Path +from typing import List, Generator +import sys +from pathlib import Path +sys.path.append(str(Path(__file__).parent.parent)) +from models import ImageReference + + +class ImageExtractor: + """Extracts image references from markdown files and validates image existence.""" + + IMAGE_PATTERN = re.compile(r'!\[([^\]]*)\]\(images/([^)]+)\)') + + def __init__(self, base_output_dir: Path): + """Initialize the extractor with the base output directory.""" + self.base_output_dir = Path(base_output_dir) + + def extract_from_file(self, markdown_path: Path) -> List[ImageReference]: + """ + Extract all image references from a markdown file. + + Args: + markdown_path: Path to the markdown file + + Returns: + List of ImageReference objects found in the file + + Raises: + FileNotFoundError: If the markdown file doesn't exist + """ + if not markdown_path.exists(): + raise FileNotFoundError(f"Markdown file not found: {markdown_path}") + + content = markdown_path.read_text(encoding='utf-8') + return self._extract_references(content, markdown_path) + + def _extract_references(self, content: str, markdown_path: Path) -> List[ImageReference]: + """Extract image references from markdown content.""" + references = [] + lines = content.splitlines() + + for line_num, line in enumerate(lines, 1): + matches = self.IMAGE_PATTERN.finditer(line) + for match in matches: + alt_text, filename = match.groups() + + # Construct the full path to the image + images_dir = markdown_path.parent / "images" + image_path = images_dir / filename + + reference = ImageReference( + filename=filename, + line_number=line_num, + markdown_tag=match.group(0), + image_path=image_path + ) + references.append(reference) + + return references + + def extract_from_directory(self, directory_path: Path) -> Generator[tuple[Path, List[ImageReference]], None, None]: + """ + Extract image references from all markdown files in a directory structure. + + Args: + directory_path: Path to the directory containing markdown files + + Yields: + Tuples of (markdown_file_path, list_of_image_references) + """ + print(f"🔍 IMAGE EXTRACTOR: Scanning directory {directory_path}") + markdown_files = self._find_markdown_files(directory_path) + print(f"📄 Found {len(markdown_files)} markdown files:") + for md_file in markdown_files: + print(f" 📄 {md_file}") + + for markdown_file in markdown_files: + try: + print(f"\n🔍 Extracting images from: {markdown_file.name}") + references = self.extract_from_file(markdown_file) + print(f"🖼️ Found {len(references)} image references in {markdown_file.name}") + + if references: # Only yield if there are references + for ref in references: + print(f" 🖼️ {ref.filename} at line {ref.line_number}") + yield markdown_file, references + else: + print(f" ⚪ No images found in {markdown_file.name}") + except Exception as e: + # Log error but continue processing other files + print(f"❌ Error processing {markdown_file}: {e}") + import traceback + traceback.print_exc() + continue + + def _find_markdown_files(self, directory_path: Path) -> List[Path]: + """Find all markdown files in the directory structure.""" + return list(directory_path.rglob("*.md")) + + def validate_references(self, references: List[ImageReference]) -> tuple[List[ImageReference], List[ImageReference]]: + """ + Validate that referenced images exist on disk. + + Args: + references: List of image references to validate + + Returns: + Tuple of (valid_references, invalid_references) + """ + print(f"🔍 VALIDATING {len(references)} image references...") + valid = [] + invalid = [] + + for ref in references: + image_exists = ref.exists() + print(f" {'✅' if image_exists else '❌'} {ref.filename} -> {ref.image_path} ({'exists' if image_exists else 'NOT FOUND'})") + + if image_exists: + valid.append(ref) + else: + invalid.append(ref) + + print(f"📊 Validation result: {len(valid)} valid, {len(invalid)} invalid") + return valid, invalid \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/markdown_enricher.py b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/markdown_enricher.py new file mode 100644 index 0000000000000000000000000000000000000000..fe23849ad7ae06057194adb2eb75bd601c27b9a6 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/components/markdown_enricher.py @@ -0,0 +1,250 @@ +""" +Markdown enricher component. + +This module handles enriching markdown files by inserting AI-generated image descriptions +while preserving the original document structure and formatting. +""" + +import re +from pathlib import Path +from typing import Dict, List, Tuple +import sys +from pathlib import Path +sys.path.append(str(Path(__file__).parent.parent)) +from models import ImageContext, DescriptionResult, EnrichmentResult, ProcessingStatus + + +class MarkdownEnricher: + """Enriches markdown files by adding AI-generated image descriptions.""" + + def __init__(self, backup_original: bool = True): + """ + Initialize the markdown enricher. + + Args: + backup_original: Whether to create backup copies of original files + """ + self.backup_original = backup_original + + def enrich_file( + self, + markdown_path: Path, + descriptions: List[Tuple[ImageContext, DescriptionResult]] + ) -> EnrichmentResult: + """ + Enrich a markdown file with image descriptions. + + Args: + markdown_path: Path to the markdown file to enrich + descriptions: List of tuples containing ImageContext and DescriptionResult + + Returns: + EnrichmentResult with processing statistics + + Raises: + FileNotFoundError: If the markdown file doesn't exist + """ + print(f"📝 MARKDOWN ENRICHER: Enriching {markdown_path.name}") + print(f"🔧 Backup enabled: {self.backup_original}") + print(f"📊 Processing {len(descriptions)} descriptions") + + if not markdown_path.exists(): + error_msg = f"Markdown file not found: {markdown_path}" + print(f"❌ {error_msg}") + raise FileNotFoundError(error_msg) + + # Create backup if requested + if self.backup_original: + backup_path = self._create_backup(markdown_path) + print(f"💾 Created backup: {backup_path}") + + # Read the original content + original_content = markdown_path.read_text(encoding='utf-8') + print(f"📖 Original content: {len(original_content)} characters") + + # Process descriptions and collect statistics + successful = 0 + failed = 0 + skipped = 0 + + enriched_content = original_content + + # Sort descriptions by line number (descending) to avoid offset issues + sorted_descriptions = sorted(descriptions, key=lambda x: x[0].image_ref.line_number, reverse=True) + print(f"🔄 Processing descriptions in reverse line order...") + + for i, (image_context, description_result) in enumerate(sorted_descriptions, 1): + image_name = image_context.image_ref.filename + print(f" 📝 {i}/{len(sorted_descriptions)}: Processing {image_name}") + + # Check if description was successful + is_successful = hasattr(description_result, 'success') and description_result.success + if hasattr(description_result, 'is_successful'): + is_successful = description_result.is_successful() + + if is_successful: + description_text = getattr(description_result, 'description', 'No description available') + print(f" ✅ Success: {description_text[:100]}{'...' if len(description_text) > 100 else ''}") + + enriched_content = self._insert_description( + enriched_content, + image_context, + description_text + ) + successful += 1 + elif hasattr(description_result, 'status') and description_result.status == ProcessingStatus.FAILED: + error_msg = getattr(description_result, 'error_message', 'Unknown error') + print(f" ❌ Failed: {error_msg}") + failed += 1 + else: + print(f" ⏭️ Skipped") + skipped += 1 + + # Check if content was actually modified + content_changed = enriched_content != original_content + print(f"📊 Content changed: {content_changed}") + print(f"📊 New content length: {len(enriched_content)} characters") + + # Write the enriched content back to file + print(f"💾 Writing enriched content to {markdown_path}") + markdown_path.write_text(enriched_content, encoding='utf-8') + print(f"✅ File written successfully") + + result = EnrichmentResult( + original_image_count=len(descriptions), + processed_image_count=len(descriptions), + successful_descriptions=successful, + failed_descriptions=failed, + skipped_descriptions=skipped + ) + + print(f"📊 Enrichment result: {successful} successful, {failed} failed, {skipped} skipped") + return result + + def _create_backup(self, markdown_path: Path) -> Path: + """Create a backup copy of the original markdown file.""" + backup_path = markdown_path.with_suffix(f"{markdown_path.suffix}.backup") + backup_path.write_text(markdown_path.read_text(encoding='utf-8'), encoding='utf-8') + return backup_path + + def _insert_description(self, content: str, image_context: ImageContext, description: str) -> str: + """ + Insert a description for an image in the markdown content. + + Args: + content: The markdown content + image_context: Context information for the image + description: The generated description + + Returns: + Updated markdown content with the description inserted + """ + print(f" 🔄 Inserting description for {image_context.image_ref.filename}") + print(f" 📍 Expected line: {image_context.image_ref.line_number}") + print(f" 🏷️ Original tag: {image_context.image_ref.markdown_tag}") + + lines = content.splitlines() + print(f" 📄 Content has {len(lines)} lines") + + # Find the line containing the image reference + target_line = image_context.image_ref.line_number - 1 # Convert to 0-based index + + if target_line >= len(lines): + print(f" ⚠️ Target line {target_line} beyond file length {len(lines)}, using last line") + target_line = len(lines) - 1 + + # Find the actual line with the image (in case line numbers shifted) + actual_line = self._find_image_line(lines, image_context.image_ref.markdown_tag, target_line) + + if actual_line is None: + print(f" ❌ Could not find image tag in content, returning unchanged") + return content + + print(f" ✅ Found image at line {actual_line + 1}: {lines[actual_line][:100]}...") + + # Create enhanced image markdown + enhanced_image = self._create_enhanced_image_markdown( + image_context.image_ref.markdown_tag, + description + ) + print(f" 🎨 Enhanced markdown: {enhanced_image[:150]}...") + + # Replace the original image tag with the enhanced version + original_line = lines[actual_line] + lines[actual_line] = enhanced_image + + print(f" ✅ Replaced line {actual_line + 1}") + print(f" Before: {original_line}") + print(f" After: {enhanced_image}") + + return '\n'.join(lines) + + def _find_image_line(self, lines: List[str], image_tag: str, start_line: int) -> int: + """ + Find the line containing the image tag, starting from a given line. + + Args: + lines: List of lines in the content + image_tag: The markdown image tag to find + start_line: Starting line index for search + + Returns: + Line index containing the image tag, or None if not found + """ + # Search in a window around the expected line + search_window = 10 + start_search = max(0, start_line - search_window) + end_search = min(len(lines), start_line + search_window + 1) + + for i in range(start_search, end_search): + if image_tag in lines[i]: + return i + + # If not found in window, search the entire file + for i, line in enumerate(lines): + if image_tag in line: + return i + + return None + + def _create_enhanced_image_markdown(self, original_tag: str, description: str) -> str: + """ + Create enhanced markdown for an image with description. + + Args: + original_tag: Original image markdown tag + description: AI-generated description + + Returns: + Enhanced markdown with description + """ + # Extract the image path from the original tag + match = re.search(r'\(([^)]+)\)', original_tag) + image_path = match.group(1) if match else "unknown" + + # Create enhanced markdown with description only in alt text + enhanced = f"![{description}]({image_path})" + + return enhanced + + def restore_from_backup(self, markdown_path: Path) -> bool: + """ + Restore a markdown file from its backup. + + Args: + markdown_path: Path to the markdown file to restore + + Returns: + True if successfully restored, False otherwise + """ + backup_path = markdown_path.with_suffix(f"{markdown_path.suffix}.backup") + + if not backup_path.exists(): + return False + + try: + content = backup_path.read_text(encoding='utf-8') + markdown_path.write_text(content, encoding='utf-8') + return True + except Exception: + return False \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/vlm_enhancing/example_usage.py b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/example_usage.py new file mode 100644 index 0000000000000000000000000000000000000000..4d1ac5fc0bd016179f6ddee2b16888769bf1d9e9 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/example_usage.py @@ -0,0 +1,149 @@ +""" +Example usage of the VLM Enhancement Pipeline. + +This script demonstrates how to use the pipeline to enhance MinerU output +with AI-generated image descriptions using Gemini 2.0 Flash. +""" + +import asyncio +import os +from pathlib import Path +from dotenv import load_dotenv + +# Load environment variables +load_dotenv() + +# Import our pipeline components +from .vlm_pipeline import VLMPipeline, PipelineConfig + + +async def enhance_all_documents(): + """Enhance all documents in the MinerU output directory.""" + + # Check for API key + if not os.getenv("GEMINI_API_KEY"): + print("ERROR: GEMINI_API_KEY not found in environment variables.") + print("Please set your Gemini API key:") + print(" export GEMINI_API_KEY='your-api-key-here'") + return + + print("🚀 Starting VLM Enhancement Pipeline") + print("=" * 60) + + # Configure the pipeline + config = PipelineConfig( + gemini_model="gemini-2.5-flash-lite", # Latest Gemini 2.0 Flash + backup_original_files=True, # Always backup originals + max_concurrent_requests=3, # Don't overwhelm the API + skip_existing_descriptions=True, # Skip already processed images + log_level="INFO" # Detailed logging + ) + + # Initialize the pipeline + pipeline = VLMPipeline(config) + + # Define the output directory + output_dir = Path("C:/Users/User/Projects/paper_verifier/backend/ingestion_pipeline/mineru/file_ingesting/output") + + if not output_dir.exists(): + print(f"❌ Output directory not found: {output_dir}") + return + + try: + # Process all documents in the directory + results = await pipeline.process_directory(output_dir) + + # Display results + print("\n" + "=" * 60) + print("🎉 Processing Complete!") + print("=" * 60) + print(f"📄 Files processed: {results['processed_files']}") + print(f"🖼️ Total images: {results['total_images']}") + print(f"✅ Successful descriptions: {results['successful_descriptions']}") + print(f"❌ Failed descriptions: {results['failed_descriptions']}") + print(f"⏭️ Skipped descriptions: {results['skipped_descriptions']}") + + if results['total_images'] > 0: + success_rate = results['successful_descriptions'] / results['total_images'] + print(f"📊 Success rate: {success_rate:.1%}") + + # Show any errors + if results['errors']: + print(f"\n⚠️ Errors encountered: {len(results['errors'])}") + for error in results['errors'][:5]: # Show first 5 errors + print(f" • {error}") + if len(results['errors']) > 5: + print(f" ... and {len(results['errors']) - 5} more") + + print("\n💡 Tips:") + print(" • Backup files are created automatically (.backup extension)") + print(" • Re-run the script to process any failed images") + print(" • Check the enhanced markdown files for AI descriptions") + + except Exception as e: + print(f"❌ Pipeline failed: {e}") + import traceback + traceback.print_exc() + + +async def enhance_single_document(document_path: str): + """Enhance a single document.""" + + if not os.getenv("GEMINI_API_KEY"): + print("ERROR: GEMINI_API_KEY not found in environment variables.") + return + + print(f"🎯 Processing single document: {document_path}") + print("=" * 60) + + # Configure the pipeline + config = PipelineConfig( + gemini_model="gemini-2.0-flash-exp", + backup_original_files=True, + log_level="INFO" + ) + + # Initialize the pipeline + pipeline = VLMPipeline(config) + + # Process the document + document = Path(document_path) + + if not document.exists(): + print(f"❌ Document not found: {document}") + return + + try: + result = await pipeline.process_single_document(document) + + print(f"\n📊 Results for {document.name}:") + print(f" • Original images: {result.original_image_count}") + print(f" • Processed: {result.processed_image_count}") + print(f" • Successful: {result.successful_descriptions}") + print(f" • Failed: {result.failed_descriptions}") + print(f" • Skipped: {result.skipped_descriptions}") + print(f" • Success rate: {result.success_rate():.1%}") + + print(f"\n✅ {result.summary()}") + + except Exception as e: + print(f"❌ Processing failed: {e}") + + +if __name__ == "__main__": + print("VLM Enhancement Pipeline for MinerU Output") + print("Powered by Gemini 2.0 Flash Vision Model") + print() + + import sys + + if len(sys.argv) > 1: + # Process single document if path provided + document_path = sys.argv[1] + asyncio.run(enhance_single_document(document_path)) + else: + # Process all documents + print("Processing all documents in output directory...") + print("To process a single document, run: python example_usage.py ") + print() + asyncio.run(enhance_all_documents()) \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/vlm_enhancing/models/__init__.py b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/models/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..b4dad610ddcb1a6c8f568b37ea23e6a886ad0851 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/models/__init__.py @@ -0,0 +1,18 @@ +""" +Data models for the VLM enhancement pipeline. + +This package contains all the data structures and models used throughout +the image description and markdown enrichment pipeline. +""" + +from .image_context import ImageReference, DocumentContext, ImageContext +from .description_result import DescriptionResult, EnrichmentResult, ProcessingStatus + +__all__ = [ + "ImageReference", + "DocumentContext", + "ImageContext", + "DescriptionResult", + "EnrichmentResult", + "ProcessingStatus", +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/vlm_enhancing/models/description_result.py b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/models/description_result.py new file mode 100644 index 0000000000000000000000000000000000000000..da4c325545ab44efe7e9aa70316c5d4f623e8659 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/models/description_result.py @@ -0,0 +1,74 @@ +""" +Data models for VLM description results and processing outcomes. + +This module defines data structures for storing and managing the results +of image description generation and markdown enrichment operations. +""" + +from dataclasses import dataclass +from typing import Optional +from enum import Enum + + +class ProcessingStatus(Enum): + """Status of image processing operations.""" + + PENDING = "pending" + SUCCESS = "success" + FAILED = "failed" + SKIPPED = "skipped" + + +@dataclass +class DescriptionResult: + """Result of generating a description for an image.""" + + description: Optional[str] + status: ProcessingStatus + error_message: Optional[str] = None + + @classmethod + def success(cls, description: str) -> "DescriptionResult": + """Create a successful result.""" + return cls(description=description, status=ProcessingStatus.SUCCESS) + + @classmethod + def failed(cls, error_message: str) -> "DescriptionResult": + """Create a failed result.""" + return cls(description=None, status=ProcessingStatus.FAILED, error_message=error_message) + + @classmethod + def skipped(cls, reason: str) -> "DescriptionResult": + """Create a skipped result.""" + return cls(description=None, status=ProcessingStatus.SKIPPED, error_message=reason) + + def is_successful(self) -> bool: + """Check if the description generation was successful.""" + return self.status == ProcessingStatus.SUCCESS and self.description is not None + + +@dataclass +class EnrichmentResult: + """Result of enriching a markdown file with image descriptions.""" + + original_image_count: int + processed_image_count: int + successful_descriptions: int + failed_descriptions: int + skipped_descriptions: int + + def success_rate(self) -> float: + """Calculate the success rate of description generation.""" + if self.processed_image_count == 0: + return 0.0 + return self.successful_descriptions / self.processed_image_count + + def summary(self) -> str: + """Generate a summary string of the enrichment results.""" + return ( + f"Processed {self.processed_image_count}/{self.original_image_count} images. " + f"Success: {self.successful_descriptions}, " + f"Failed: {self.failed_descriptions}, " + f"Skipped: {self.skipped_descriptions} " + f"({self.success_rate():.1%} success rate)" + ) \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/vlm_enhancing/models/image_context.py b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/models/image_context.py new file mode 100644 index 0000000000000000000000000000000000000000..f206fbaf6eb9d152211afd0ad38444e5a614a8e5 --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/models/image_context.py @@ -0,0 +1,61 @@ +""" +Data models for image context and processing. + +This module defines the core data structures used throughout the VLM enhancement pipeline +for representing images, their context, and processing metadata. +""" + +from dataclasses import dataclass +from pathlib import Path +from typing import Optional, List + + +@dataclass +class ImageReference: + """Represents an image reference found in markdown.""" + + filename: str + line_number: int + markdown_tag: str + image_path: Path + + def exists(self) -> bool: + """Check if the referenced image file exists.""" + return self.image_path.exists() + + +@dataclass +class DocumentContext: + """Context information surrounding an image in a document.""" + + paragraph_before: Optional[str] + paragraph_after: Optional[str] + section_title: Optional[str] + + def has_context(self) -> bool: + """Check if any context information is available.""" + return bool(self.paragraph_before or self.paragraph_after or self.section_title) + + +@dataclass +class ImageContext: + """Complete context for an image including reference and surrounding text.""" + + image_ref: ImageReference + context: DocumentContext + markdown_file_path: Path + + def create_prompt_context(self) -> str: + """Create a context string for VLM prompting.""" + context_parts = [] + + if self.context.section_title: + context_parts.append(f"Section: {self.context.section_title}") + + if self.context.paragraph_before: + context_parts.append(f"Text before image: {self.context.paragraph_before}") + + if self.context.paragraph_after: + context_parts.append(f"Text after image: {self.context.paragraph_after}") + + return "\n\n".join(context_parts) if context_parts else "No context available." \ No newline at end of file diff --git a/backend/ingestion_pipeline/local_mineru/vlm_enhancing/vlm_pipeline.py b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/vlm_pipeline.py new file mode 100644 index 0000000000000000000000000000000000000000..b01e6f179c924e161186ac40a584d407f8c8b3ac --- /dev/null +++ b/backend/ingestion_pipeline/local_mineru/vlm_enhancing/vlm_pipeline.py @@ -0,0 +1,411 @@ +""" +VLM Enhancement Pipeline Orchestrator + +A clean orchestrator that coordinates image extraction, context analysis, description generation, +and markdown enrichment for MinerU-generated files. + +Dependencies: +- ImageExtractor for finding image references +- ContextAnalyzer for analyzing image context +- GeminiDescriber for generating AI descriptions +- MarkdownEnricher for updating markdown files + +Architecture: +This orchestrator coordinates the VLM pipeline but doesn't contain +business logic. All heavy processing is delegated to specialized component classes. +""" + +import asyncio +import logging +from pathlib import Path +from typing import List, Optional, Dict, Any +from dataclasses import dataclass + +from .components import ImageExtractor, ContextAnalyzer, GeminiDescriber, MarkdownEnricher +from .models import EnrichmentResult, ProcessingStatus + + +@dataclass +class PipelineConfig: + """Configuration for the VLM enhancement pipeline.""" + + gemini_api_key: Optional[str] = None + gemini_model: str = "gemini-2.0-flash-exp" + backup_original_files: bool = True + max_concurrent_requests: int = 5 + skip_existing_descriptions: bool = True + log_level: str = "INFO" + + +class VLMPipeline: + """Clean VLM pipeline orchestrator with structured logging.""" + + def __init__(self, config: PipelineConfig): + """ + Initialize the VLM pipeline. + + Args: + config: Pipeline configuration + """ + self.config = config + self.logger = self._setup_logging() + + # Initialize components + self._initialize_components() + + def _setup_logging(self) -> logging.Logger: + """Set up structured logging for the VLM pipeline.""" + logger = logging.getLogger("vlm_pipeline") + logger.setLevel(getattr(logging, self.config.log_level.upper())) + + if not logger.handlers: + handler = logging.StreamHandler() + formatter = logging.Formatter( + '%(asctime)s - %(name)s - %(levelname)s - %(message)s' + ) + handler.setFormatter(formatter) + logger.addHandler(handler) + + return logger + + def _initialize_components(self): + """Initialize all VLM pipeline components.""" + self.image_extractor = ImageExtractor(base_output_dir=Path()) + self.context_analyzer = ContextAnalyzer() + self.gemini_describer = GeminiDescriber( + api_key=self.config.gemini_api_key, + model=self.config.gemini_model + ) + self.markdown_enricher = MarkdownEnricher( + backup_original=self.config.backup_original_files + ) + + self.logger.info("VLM pipeline components initialized successfully") + + async def process_directory(self, output_directory: Path) -> Dict[str, Any]: + """ + Process all markdown files in a directory structure. + + Args: + output_directory: Path to the MinerU output directory + + Returns: + Dict[str, Any]: Processing results and statistics + + Raises: + ValueError: If output directory doesn't exist + """ + self.logger.info(f"Starting VLM enhancement for directory: {output_directory}") + + if not output_directory.exists(): + error_msg = f"Output directory does not exist: {output_directory}" + self.logger.error(error_msg) + raise ValueError(error_msg) + + # Initialize results tracking + results = self._initialize_results() + + # Process all markdown files with images + await self._process_all_files(output_directory, results) + + # Log and return final summary + self._log_final_summary(results) + return results + + def _initialize_results(self) -> Dict[str, Any]: + """Initialize the results tracking dictionary.""" + return { + "processed_files": 0, + "total_images": 0, + "successful_descriptions": 0, + "failed_descriptions": 0, + "skipped_descriptions": 0, + "file_results": {}, + "errors": [] + } + + async def _process_all_files(self, output_directory: Path, results: Dict[str, Any]): + """ + Process all markdown files found in the directory. + + Args: + output_directory: Directory to scan for files + results: Results dictionary to update + """ + files_found = False + + # Process each markdown file with images + for markdown_path, image_refs in self.image_extractor.extract_from_directory(output_directory): + files_found = True + + try: + self.logger.info(f"Processing {markdown_path.name} with {len(image_refs)} image references") + + file_result = await self._process_single_file(markdown_path, image_refs) + + # Update overall statistics + self._update_results(results, file_result, markdown_path) + + self.logger.info(f"Completed {markdown_path.name}: {file_result.summary()}") + + except Exception as e: + error_msg = f"Failed to process {markdown_path.name}: {e}" + self.logger.error(error_msg) + results["errors"].append(error_msg) + + if not files_found: + self._handle_no_files_found(output_directory) + + def _update_results(self, results: Dict[str, Any], file_result: EnrichmentResult, markdown_path: Path): + """Update the overall results with a single file's results.""" + results["processed_files"] += 1 + results["total_images"] += file_result.original_image_count + results["successful_descriptions"] += file_result.successful_descriptions + results["failed_descriptions"] += file_result.failed_descriptions + results["skipped_descriptions"] += file_result.skipped_descriptions + results["file_results"][str(markdown_path)] = file_result + + def _handle_no_files_found(self, output_directory: Path): + """Handle the case where no markdown files with images are found.""" + self.logger.warning(f"No markdown files with images found in {output_directory}") + + # Check for any markdown files at all + all_md_files = list(output_directory.rglob("*.md")) + if all_md_files: + self.logger.info(f"Found {len(all_md_files)} markdown files without processable images") + # Log first few for debugging + for md_file in all_md_files[:3]: + self.logger.debug(f"Found markdown file: {md_file}") + else: + self.logger.warning("No markdown files found at all in the directory") + + async def _process_single_file(self, markdown_path: Path, image_refs: List) -> EnrichmentResult: + """ + Process a single markdown file with clean error handling. + + Args: + markdown_path: Path to the markdown file + image_refs: List of image references found in the file + + Returns: + EnrichmentResult: Processing statistics for this file + """ + self.logger.debug(f"Processing {len(image_refs)} image references in {markdown_path.name}") + + # Validate image references + valid_refs, invalid_refs = self.image_extractor.validate_references(image_refs) + + if invalid_refs: + self.logger.warning(f"Found {len(invalid_refs)} invalid image references in {markdown_path.name}") + + if not valid_refs: + self.logger.info(f"No valid images found in {markdown_path.name}") + return EnrichmentResult( + original_image_count=len(image_refs), + processed_image_count=0, + successful_descriptions=0, + failed_descriptions=0, + skipped_descriptions=len(image_refs) + ) + + # Analyze image contexts + image_contexts = self.context_analyzer.analyze_multiple_images(valid_refs, markdown_path) + self.logger.debug(f"Generated {len(image_contexts)} image contexts") + + # Filter out existing descriptions if configured + if self.config.skip_existing_descriptions: + image_contexts = self._filter_existing_descriptions(image_contexts) + self.logger.debug(f"After filtering existing descriptions: {len(image_contexts)} contexts remain") + + if not image_contexts: + self.logger.info(f"All images in {markdown_path.name} already have descriptions, skipping") + return EnrichmentResult( + original_image_count=len(image_refs), + processed_image_count=len(image_refs), + successful_descriptions=0, + failed_descriptions=0, + skipped_descriptions=len(image_refs) + ) + + # Generate descriptions using Gemini + self.logger.info(f"Generating descriptions for {len(image_contexts)} images using {self.config.gemini_model}") + description_results = await self.gemini_describer.describe_multiple_images(image_contexts) + + # Count successful and failed descriptions + successful_count, failed_count = self._count_description_results(description_results) + self.logger.info(f"Description generation complete: {successful_count} successful, {failed_count} failed") + + # Enrich the markdown file + enrichment_result = self.markdown_enricher.enrich_file(markdown_path, description_results) + self.logger.info(f"Markdown enrichment complete for {markdown_path.name}") + + return enrichment_result + + def _count_description_results(self, description_results: List) -> tuple: + """ + Count successful and failed description results. + + Args: + description_results: List of (context, result) tuples + + Returns: + tuple: (successful_count, failed_count) + """ + successful_count = 0 + failed_count = 0 + + for context, result in description_results: + if hasattr(result, 'success') and result.success: + successful_count += 1 + self.logger.debug(f"Successfully described: {context.image_ref.filename}") + else: + failed_count += 1 + error_msg = getattr(result, 'error_message', 'Unknown error') + self.logger.debug(f"Failed to describe {context.image_ref.filename}: {error_msg}") + + return successful_count, failed_count + + def _filter_existing_descriptions(self, image_contexts: List) -> List: + """ + Filter out images that already have AI-generated descriptions. + + Args: + image_contexts: List of ImageContext objects + + Returns: + List: Filtered list of ImageContext objects + """ + # For now, return all contexts. In future versions, we could check + # if the markdown already contains AI-generated description markers + return image_contexts + + def _log_final_summary(self, results: Dict[str, Any]): + """Log a comprehensive summary of the processing results.""" + total_images = results["total_images"] + successful = results["successful_descriptions"] + failed = results["failed_descriptions"] + skipped = results["skipped_descriptions"] + success_rate = (successful / total_images) if total_images > 0 else 0.0 + + self.logger.info("VLM Enhancement Pipeline Complete") + self.logger.info(f"Files processed: {results['processed_files']}") + self.logger.info(f"Total images: {total_images}") + self.logger.info(f"Successful descriptions: {successful}") + self.logger.info(f"Failed descriptions: {failed}") + self.logger.info(f"Skipped descriptions: {skipped}") + self.logger.info(f"Success rate: {success_rate:.1%}") + + if results["errors"]: + self.logger.warning(f"Encountered {len(results['errors'])} errors during processing") + + async def process_single_document(self, markdown_path: Path) -> EnrichmentResult: + """ + Process a single markdown document. + + Args: + markdown_path: Path to the markdown file to process + + Returns: + EnrichmentResult: Processing statistics + + Raises: + FileNotFoundError: If markdown file doesn't exist + """ + if not markdown_path.exists(): + raise FileNotFoundError(f"Markdown file not found: {markdown_path}") + + self.logger.info(f"Processing single document: {markdown_path}") + + # Extract image references + image_refs = self.image_extractor.extract_from_file(markdown_path) + + if not image_refs: + self.logger.info(f"No images found in {markdown_path}") + return EnrichmentResult(0, 0, 0, 0, 0) + + # Process the file + return await self._process_single_file(markdown_path, image_refs) + + +# Convenience Functions + +def create_vlm_pipeline( + gemini_model: str = "gemini-2.0-flash-exp", + backup_files: bool = True, + log_level: str = "INFO" +) -> VLMPipeline: + """ + Factory function to create a VLM pipeline with common settings. + + Args: + gemini_model: Gemini model to use for descriptions + backup_files: Whether to backup original files + log_level: Logging level + + Returns: + VLMPipeline: Configured pipeline + """ + config = PipelineConfig( + gemini_model=gemini_model, + backup_original_files=backup_files, + log_level=log_level + ) + return VLMPipeline(config) + +async def enhance_directory_simple( + output_directory: Path, + gemini_model: str = "gemini-2.0-flash-exp" +) -> Dict[str, Any]: + """ + Simple function to enhance all markdown files in a directory. + + Args: + output_directory: Directory containing markdown files + gemini_model: Gemini model to use + + Returns: + Dict[str, Any]: Processing results + """ + pipeline = create_vlm_pipeline(gemini_model=gemini_model) + return await pipeline.process_directory(output_directory) + +async def enhance_single_file( + markdown_file: Path, + gemini_model: str = "gemini-2.0-flash-exp" +) -> EnrichmentResult: + """ + Simple function to enhance a single markdown file. + + Args: + markdown_file: Path to markdown file + gemini_model: Gemini model to use + + Returns: + EnrichmentResult: Processing results + """ + pipeline = create_vlm_pipeline(gemini_model=gemini_model) + return await pipeline.process_single_document(markdown_file) + + +async def main(): + """Example usage of the VLM pipeline.""" + # Configure the pipeline + config = PipelineConfig( + gemini_model="gemini-2.0-flash-exp", + backup_original_files=True, + log_level="INFO" + ) + + # Initialize pipeline + pipeline = VLMPipeline(config) + + # Process the output directory + output_dir = Path("C:/Users/User/Projects/paper_verifier/backend/ingestion_pipeline/mineru/file_ingesting/output") + results = await pipeline.process_directory(output_dir) + + logger = logging.getLogger(__name__) + logger.info(f"Processing complete! Processed {results['processed_files']} files") + + +if __name__ == "__main__": + asyncio.run(main()) \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/Attention Is All You Need.md b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/Attention Is All You Need.md new file mode 100644 index 0000000000000000000000000000000000000000..d3b7c6d2e6c0bbdfb4df4f9c95d16db4b43eb238 --- /dev/null +++ b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/Attention Is All You Need.md @@ -0,0 +1,287 @@ +Provided proper attribution is provided, Google hereby grants permission to reproduce the tables and figures in this paper solely for use in journalistic or scholarly works. + +# Attention Is All You Need + +Ashish Vaswani∗ Google Brain avaswani@google.com + +Noam Shazeer∗ Google Brain noam@google.com + +Niki Parmar∗ Google Research nikip@google.com + +Jakob Uszkoreit∗ Google Research usz@google.com + +Llion Jones∗ Google Research llion@google.com + +Aidan N. Gomez∗ † University of Toronto aidan@cs.toronto.edu + +Łukasz Kaiser∗ Google Brain lukaszkaiser@google.com + +Illia Polosukhin∗ ‡illia.polosukhin@gmail.com + +# Abstract + +The dominant sequence transduction models are based on complex recurrent or convolutional neural networks that include an encoder and a decoder. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 Englishto-German translation task, improving over the existing best results, including ensembles, by over 2 BLEU. On the WMT 2014 English-to-French translation task, our model establishes a new single-model state-of-the-art BLEU score of 41.8 after training for 3.5 days on eight GPUs, a small fraction of the training costs of the best models from the literature. We show that the Transformer generalizes well to other tasks by applying it successfully to English constituency parsing both with large and limited training data. + +# 1 Introduction + +Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5]. Numerous efforts have since continued to push the boundaries of recurrent language models and encoder-decoder architectures [38, 24, 15]. + +Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states $h _ { t }$ , as a function of the previous hidden state $h _ { t - 1 }$ and the input for position $t$ . This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples. Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains. + +Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19]. In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network. + +In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output. The Transformer allows for significantly more parallelization and can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs. + +# 2 Background + +The goal of reducing sequential computation also forms the foundation of the Extended Neural GPU [16], ByteNet [18] and ConvS2S [9], all of which use convolutional neural networks as basic building block, computing hidden representations in parallel for all input and output positions. In these models, the number of operations required to relate signals from two arbitrary input or output positions grows in the distance between positions, linearly for ConvS2S and logarithmically for ByteNet. This makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. + +Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. + +End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34]. + +To the best of our knowledge, however, the Transformer is the first transduction model relying entirely on self-attention to compute representations of its input and output without using sequencealigned RNNs or convolution. In the following sections, we will describe the Transformer, motivate self-attention and discuss its advantages over models such as [17, 18] and [9]. + +# 3 Model Architecture + +Most competitive neural sequence transduction models have an encoder-decoder structure [5, 2, 35]. Here, the encoder maps an input sequence of symbol representations $( x _ { 1 } , . . . , x _ { n } )$ to a sequence of continuous representations $\textbf { z } = ~ ( z _ { 1 } , . . . , z _ { n } )$ . Given $\mathbf { z }$ , the decoder then generates an output sequence $\left( y _ { 1 } , . . . , y _ { m } \right)$ of symbols one element at a time. At each step the model is auto-regressive [10], consuming the previously generated symbols as additional input when generating the next. + +![This image depicts the Transformer model architecture, a neural network designed for sequence-to-sequence tasks. It illustrates two main stacks: an encoder on the left and a decoder on the right, each composed of multiple identical layers labeled "Nx". The encoder processes input sequences through Multi-Head Attention and Feed Forward sub-layers, combined with Add & Norm operations. Similarly, the decoder processes output sequences, incorporating a Masked Multi-Head Attention sub-layer in addition to the standard Multi-Head Attention and Feed Forward layers. Both stacks utilize Positional Encoding, Input Embedding, and Output Embedding to represent sequence information, culminating in output probabilities after a Linear and Softmax layer.](images/af855240f9b9309607f19bbbc1d98f7b6fc795b504c1826e18f974c90887b7a2.jpg) +Figure 1: The Transformer - model architecture. + +The Transformer follows this overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder, shown in the left and right halves of Figure 1, respectively. + +# 3.1 Encoder and Decoder Stacks + +Encoder: The encoder is composed of a stack of $N = 6$ identical layers. Each layer has two sub-layers. The first is a multi-head self-attention mechanism, and the second is a simple, positionwise fully connected feed-forward network. We employ a residual connection [11] around each of the two sub-layers, followed by layer normalization [1]. That is, the output of each sub-layer is LayerN $\operatorname { y r m } ( x + \operatorname { S u b l a y e r } ( x ) )$ , where Sublayer $( x )$ is the function implemented by the sub-layer itself. To facilitate these residual connections, all sub-layers in the model, as well as the embedding layers, produce outputs of dimension $d _ { \mathrm { m o d e l } } = 5 1 2$ . + +Decoder: The decoder is also composed of a stack of $N = 6$ identical layers. In addition to the two sub-layers in each encoder layer, the decoder inserts a third sub-layer, which performs multi-head attention over the output of the encoder stack. Similar to the encoder, we employ residual connections around each of the sub-layers, followed by layer normalization. We also modify the self-attention sub-layer in the decoder stack to prevent positions from attending to subsequent positions. This masking, combined with fact that the output embeddings are offset by one position, ensures that the predictions for position $i$ can depend only on the known outputs at positions less than $i$ . + +# 3.2 Attention + +An attention function can be described as mapping a query and a set of key-value pairs to an output, where the query, keys, values, and output are all vectors. The output is computed as a weighted sum + +![This image displays two attention mechanisms: Scaled Dot-Product Attention and Multi-Head Attention. The Scaled Dot-Product Attention diagram shows a process starting with inputs Q, K, and V, followed by MatMul, Scale, Mask (optional), SoftMax, and a final MatMul. The Multi-Head Attention diagram illustrates multiple Scaled Dot-Product Attention layers running in parallel, each receiving linearly transformed Q, K, and V inputs. The outputs of these parallel layers are concatenated and then passed through a final Linear layer.](images/83659013bee7db4de0b109708902294b8df739cc1a706ad1681aaeee9f6b35ae.jpg) +Figure 2: (left) Scaled Dot-Product Attention. (right) Multi-Head Attention consists of several attention layers running in parallel. + +of the values, where the weight assigned to each value is computed by a compatibility function of the query with the corresponding key. + +# 3.2.1 Scaled Dot-Product Attention + +We call our particular attention "Scaled Dot-Product Attention" (Figure 2). The input consists of queries and keys of dimension $d _ { k }$ , and values of dimension √ $d _ { v }$ . We compute the dot products of the query with all keys, divide each by $\sqrt { d _ { k } }$ , and apply a softmax function to obtain the weights on the values. + +In practice, we compute the attention function on a set of queries simultaneously, packed together into a matrix $Q$ . The keys and values are also packed together into matrices $K$ and $V$ . We compute the matrix of outputs as: + +$$ +\mathrm { A t t e n t i o n } ( Q , K , V ) = \mathrm { s o f t m a x } ( \frac { Q K ^ { T } } { \sqrt { d _ { k } } } ) V +$$ + +The two most commonly used attention functions are additive attention [2], and dot-product (multiplicative) attention. Dot-product attention is identical to our algorithm, except for the scaling factor of $\frac { 1 } { \sqrt { d _ { k } } }$ . Additive attention computes the compatibility function using a feed-forward network with a single hidden layer. While the two are similar in theoretical complexity, dot-product attention is much faster and more space-efficient in practice, since it can be implemented using highly optimized matrix multiplication code. + +While for small values of $d _ { k }$ the two mechanisms perform similarly, additive attention outperforms dot product attention without scaling for larger values of $d _ { k }$ [3]. We suspect that for large values of $d _ { k }$ , the dot products grow large in magnitude, pushing the softmax function into regions where it has extremely small gradients 4. To counteract this effect, we scale the dot products by $\frac { 1 } { \sqrt { d _ { k } } }$ . + +# 3.2.2 Multi-Head Attention + +Instead of performing a single attention function with $d _ { \mathrm { m o d e l } }$ -dimensional keys, values and queries, we found it beneficial to linearly project the queries, keys and values $h$ times with different, learned linear projections to $d _ { k }$ , $d _ { k }$ and $d _ { v }$ dimensions, respectively. On each of these projected versions of queries, keys and values we then perform the attention function in parallel, yielding $d _ { v }$ -dimensional output values. These are concatenated and once again projected, resulting in the final values, as depicted in Figure 2. + +Multi-head attention allows the model to jointly attend to information from different representation subspaces at different positions. With a single attention head, averaging inhibits this. + +$$ +\begin{array} { r } { \begin{array} { r l } & { \mathrm { M u l t i H e a d } ( Q , K , V ) = \mathrm { C o n c a t } ( \mathrm { h e a d } _ { 1 } , . . . , \mathrm { h e a d } _ { \mathrm { h } } ) W ^ { O } } \\ & { \qquad \mathrm { w h e r e ~ h e a d } _ { \mathrm { i } } = \mathrm { A t t e n t i o n } ( Q W _ { i } ^ { Q } , K W _ { i } ^ { K } , V W _ { i } ^ { V } ) } \end{array} } \end{array} +$$ + +Where the projections are parameter matrices $W _ { i } ^ { Q } \in \mathbb { R } ^ { d _ { \mathrm { m o d e l } } \times d _ { k } }$ , W K ∈ Rdmodel×dk , W V ∈ Rdmodel×dv and $W ^ { O } \in \mathbb R ^ { h d _ { v } \times d _ { \mathrm { m o d e l } } }$ . + +In this work we employ $h \ : = \ : 8$ parallel attention layers, or heads. For each of these we use $d _ { k } = d _ { v } = d _ { \mathrm { m o d e l } } / h \stackrel { } { = } \dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. + +# 3.2.3 Applications of Attention in our Model + +The Transformer uses multi-head attention in three different ways: + +• In "encoder-decoder attention" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. +• The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. +Similarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. + +# 3.3 Position-wise Feed-Forward Networks + +In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between. + +$$ +\mathrm { F F N } ( x ) = \operatorname* { m a x } ( 0 , x W _ { 1 } + b _ { 1 } ) W _ { 2 } + b _ { 2 } +$$ + +While the linear transformations are the same across different positions, they use different parameters from layer to layer. Another way of describing this is as two convolutions with kernel size 1. The dimensionality of input and output is $d _ { \mathrm { m o d e l } } = 5 1 2$ , and the inner-layer has dimensionality $d _ { f f } = 2 0 4 8$ . + +# 3.4 Embeddings and Softmax + +Similarly to other sequence transduction models, we use learned embeddings to convert the input tokens and output tokens to vectors of dimension $d _ { \mathrm { m o d e l } }$ . We also use the usual learned linear transformation and softmax function to convert the decoder output to predicted next-token probabilities. In our model, we share the same weight matrix between the two embedding layers and the pre-softmax√ linear transformation, similar to [30]. In the embedding layers, we multiply those weights by $\sqrt { d _ { \mathrm { { m o d e l } } } }$ + +Table 1: Maximum path lengths, per-layer complexity and minimum number of sequential operations for different layer types. $n$ is the sequence length, $d$ is the representation dimension, $k$ is the kernel size of convolutions and $r$ the size of the neighborhood in restricted self-attention. + +
Layer TypeComplexity per LayerSequential OperationsMaximum Path Length
Self-AttentionO(n2 · d)0(1)0(1)
RecurrentO(n · d2)O(n)(n)
ConvolutionalO(k · n · d2)0(1)O(l0gk(n))
Self-Attention (restricted)O(r · n · d)0(1)(n/r)
+ +# 3.5 Positional Encoding + +Since our model contains no recurrence and no convolution, in order for the model to make use of the order of the sequence, we must inject some information about the relative or absolute position of the tokens in the sequence. To this end, we add "positional encodings" to the input embeddings at the bottoms of the encoder and decoder stacks. The positional encodings have the same dimension $d _ { \mathrm { m o d e l } }$ as the embeddings, so that the two can be summed. There are many choices of positional encodings, learned and fixed [9]. + +In this work, we use sine and cosine functions of different frequencies: + +$$ +\begin{array} { r } { P E _ { ( p o s , 2 i ) } = s i n ( p o s / 1 0 0 0 0 ^ { 2 i / d _ { \mathrm { m o d e l } } } ) } \\ { P E _ { ( p o s , 2 i + 1 ) } = c o s ( p o s / 1 0 0 0 0 ^ { 2 i / d _ { \mathrm { m o d e l } } } ) } \end{array} +$$ + +where pos is the position and $i$ is the dimension. That is, each dimension of the positional encoding corresponds to a sinusoid. The wavelengths form a geometric progression from $2 \pi$ to $1 0 0 0 0 \cdot 2 \pi$ . We chose this function because we hypothesized it would allow the model to easily learn to attend by relative positions, since for any fixed offset $k$ , $P E _ { p o s + k }$ can be represented as a linear function of $P E _ { p o s }$ . + +We also experimented with using learned positional embeddings [9] instead, and found that the two versions produced nearly identical results (see Table 3 row (E)). We chose the sinusoidal version because it may allow the model to extrapolate to sequence lengths longer than the ones encountered during training. + +# 4 Why Self-Attention + +In this section we compare various aspects of self-attention layers to the recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations $( x _ { 1 } , . . . , x _ { n } )$ to another sequence of equal length $\left( z _ { 1 } , . . . , z _ { n } \right)$ , with $x _ { i } , z _ { i } \in \mathbf { \bar { \mathbb { R } } } ^ { d }$ , such as a hidden layer in a typical sequence transduction encoder or decoder. Motivating our use of self-attention we consider three desiderata. + +One is the total computational complexity per layer. Another is the amount of computation that can be parallelized, as measured by the minimum number of sequential operations required. + +The third is the path length between long-range dependencies in the network. Learning long-range dependencies is a key challenge in many sequence transduction tasks. One key factor affecting the ability to learn such dependencies is the length of the paths forward and backward signals have to traverse in the network. The shorter these paths between any combination of positions in the input and output sequences, the easier it is to learn long-range dependencies [12]. Hence we also compare the maximum path length between any two input and output positions in networks composed of the different layer types. + +As noted in Table 1, a self-attention layer connects all positions with a constant number of sequentially executed operations, whereas a recurrent layer requires $O ( n )$ sequential operations. In terms of computational complexity, self-attention layers are faster than recurrent layers when the sequence length $n$ is smaller than the representation dimensionality $d$ , which is most often the case with sentence representations used by state-of-the-art models in machine translations, such as word-piece [38] and byte-pair [31] representations. To improve computational performance for tasks involving very long sequences, self-attention could be restricted to considering only a neighborhood of size $r$ in the input sequence centered around the respective output position. This would increase the maximum path length to $O ( n / r )$ . We plan to investigate this approach further in future work. + +A single convolutional layer with kernel width $k < n$ does not connect all pairs of input and output positions. Doing so requires a stack of $O ( n / k )$ convolutional layers in the case of contiguous kernels, or $O ( l o g _ { k } ( n ) )$ in the case of dilated convolutions [18], increasing the length of the longest paths between any two positions in the network. Convolutional layers are generally more expensive than recurrent layers, by a factor of $k$ . Separable convolutions [6], however, decrease the complexity considerably, to $\dot { O ( k \cdot n \cdot d + n \cdot d ^ { 2 } ) }$ . Even with $k = n$ , however, the complexity of a separable convolution is equal to the combination of a self-attention layer and a point-wise feed-forward layer, the approach we take in our model. + +As side benefit, self-attention could yield more interpretable models. We inspect attention distributions from our models and present and discuss examples in the appendix. Not only do individual attention heads clearly learn to perform different tasks, many appear to exhibit behavior related to the syntactic and semantic structure of the sentences. + +# 5 Training + +This section describes the training regime for our models. + +# 5.1 Training Data and Batching + +We trained on the standard WMT 2014 English-German dataset consisting of about 4.5 million sentence pairs. Sentences were encoded using byte-pair encoding [3], which has a shared sourcetarget vocabulary of about 37000 tokens. For English-French, we used the significantly larger WMT 2014 English-French dataset consisting of 36M sentences and split tokens into a 32000 word-piece vocabulary [38]. Sentence pairs were batched together by approximate sequence length. Each training batch contained a set of sentence pairs containing approximately 25000 source tokens and 25000 target tokens. + +# 5.2 Hardware and Schedule + +We trained our models on one machine with 8 NVIDIA P100 GPUs. For our base models using the hyperparameters described throughout the paper, each training step took about 0.4 seconds. We trained the base models for a total of 100,000 steps or 12 hours. For our big models,(described on the bottom line of table 3), step time was 1.0 seconds. The big models were trained for 300,000 steps (3.5 days). + +# 5.3 Optimizer + +We used the Adam optimizer [20] with $\beta _ { 1 } = 0 . 9$ , $\beta _ { 2 } = 0 . 9 8$ and $\epsilon = 1 0 ^ { - 9 }$ . We varied the learning rate over the course of training, according to the formula: + +$$ +l r a t e = d _ { \mathrm { m o d e l } } ^ { - 0 . 5 } \cdot \mathrm { m i n } ( s t e p _ { - } n u m ^ { - 0 . 5 } , s t e p _ { - } n u m \cdot w a r m u p _ { - } s t e p s ^ { - 1 . 5 } ) +$$ + +This corresponds to increasing the learning rate linearly for the first warmup_steps training steps, and decreasing it thereafter proportionally to the inverse square root of the step number. We used warmup_steps $= 4 0 0 0$ . + +# 5.4 Regularization + +We employ three types of regularization during training: + +Table 2: The Transformer achieves better BLEU scores than previous state-of-the-art models on the English-to-German and English-to-French newstest2014 tests at a fraction of the training cost. + +
ModelBLEUTraining Cost (FLOPs)
EN-DEEN-FREN-DEEN-FR
ByteNet [18]23.75
Deep-Att + PosUnk [39]39.21.0·1020
GNMT + RL [38]24.639.922.3 ·10191.4 ·1020
ConvS2S [9]25.1640.469.6·10181.5·1020
MoE [32]26.0340.562.0·10191.2 ·1020
Deep-Att + PosUnk Ensemble [39]40.48.0.1020
GNMT + RL Ensemble [38]26.3041.161.8·10201.1 ·1021
ConvS2s Ensemble [9]26.3641.297.7.10191.2 ·1021
Transformer (base model)27.338.13.3·1018
Transformer (big)28.441.82.3 ·1019
+ +Residual Dropout We apply dropout [33] to the output of each sub-layer, before it is added to the sub-layer input and normalized. In addition, we apply dropout to the sums of the embeddings and the positional encodings in both the encoder and decoder stacks. For the base model, we use a rate of $P _ { d r o p } = 0 . 1$ . + +Label Smoothing During training, we employed label smoothing of value $\epsilon _ { l s } = 0 . 1$ [36]. This hurts perplexity, as the model learns to be more unsure, but improves accuracy and BLEU score. + +# 6 Results + +# 6.1 Machine Translation + +On the WMT 2014 English-to-German translation task, the big transformer model (Transformer (big) in Table 2) outperforms the best previously reported models (including ensembles) by more than 2.0 BLEU, establishing a new state-of-the-art BLEU score of 28.4. The configuration of this model is listed in the bottom line of Table 3. Training took 3.5 days on 8 P100 GPUs. Even our base model surpasses all previously published models and ensembles, at a fraction of the training cost of any of the competitive models. + +On the WMT 2014 English-to-French translation task, our big model achieves a BLEU score of 41.0, outperforming all of the previously published single models, at less than $1 / 4$ the training cost of the previous state-of-the-art model. The Transformer (big) model trained for English-to-French used dropout rate $P _ { d r o p } = 0 . 1$ , instead of 0.3. + +For the base models, we used a single model obtained by averaging the last 5 checkpoints, which were written at 10-minute intervals. For the big models, we averaged the last 20 checkpoints. We used beam search with a beam size of 4 and length penalty $\alpha = 0 . 6$ [38]. These hyperparameters were chosen after experimentation on the development set. We set the maximum output length during inference to input length $+ 5 0$ , but terminate early when possible [38]. + +Table 2 summarizes our results and compares our translation quality and training costs to other model architectures from the literature. We estimate the number of floating point operations used to train a model by multiplying the training time, the number of GPUs used, and an estimate of the sustained single-precision floating-point capacity of each GPU 5. + +# 6.2 Model Variations + +To evaluate the importance of different components of the Transformer, we varied our base model in different ways, measuring the change in performance on English-to-German translation on the development set, newstest2013. We used beam search as described in the previous section, but no checkpoint averaging. We present these results in Table 3. + +Table 3: Variations on the Transformer architecture. Unlisted values are identical to those of the base model. All metrics are on the English-to-German translation development set, newstest2013. Listed perplexities are per-wordpiece, according to our byte-pair encoding, and should not be compared to per-word perplexities. + +
N dmodeldffhdkdvPdroptresBLE
base6512 2048864640.10.1100K4.9225.865
(A)15125125.2924.9
46132125.025.8
3216165.0125.4
(B)16325.0625.44860
(C)2486.11 5.1923.7 25.336 50
10244.8825.580
25632 12832 1285.7524.528
10244.6626.0168 53
(D)40965.12 4.7525.4 26.290
0.05.7724.6
0.24.95
0.025.3
(E)positional embedding instead of sinusoids0.25.4725.7
4.92
big6 10244096160.3300K4.3325.7 26.4213
+ +In Table 3 rows (A), we vary the number of attention heads and the attention key and value dimensions, keeping the amount of computation constant, as described in Section 3.2.2. While single-head attention is 0.9 BLEU worse than the best setting, quality also drops off with too many heads. + +In Table 3 rows (B), we observe that reducing the attention key size $d _ { k }$ hurts model quality. This suggests that determining compatibility is not easy and that a more sophisticated compatibility function than dot product may be beneficial. We further observe in rows (C) and (D) that, as expected, bigger models are better, and dropout is very helpful in avoiding over-fitting. In row (E) we replace our sinusoidal positional encoding with learned positional embeddings [9], and observe nearly identical results to the base model. + +# 6.3 English Constituency Parsing + +To evaluate if the Transformer can generalize to other tasks we performed experiments on English constituency parsing. This task presents specific challenges: the output is subject to strong structural constraints and is significantly longer than the input. Furthermore, RNN sequence-to-sequence models have not been able to attain state-of-the-art results in small-data regimes [37]. + +We trained a 4-layer transformer with $d _ { m o d e l } = 1 0 2 4$ on the Wall Street Journal (WSJ) portion of the Penn Treebank [25], about 40K training sentences. We also trained it in a semi-supervised setting, using the larger high-confidence and BerkleyParser corpora from with approximately 17M sentences [37]. We used a vocabulary of 16K tokens for the WSJ only setting and a vocabulary of 32K tokens for the semi-supervised setting. + +We performed only a small number of experiments to select the dropout, both attention and residual (section 5.4), learning rates and beam size on the Section 22 development set, all other parameters remained unchanged from the English-to-German base translation model. During inference, we increased the maximum output length to input length $+ 3 0 0$ . We used a beam size of 21 and $\alpha = 0 . 3$ for both WSJ only and the semi-supervised setting. + +Table 4: The Transformer generalizes well to English constituency parsing (Results are on Section 23 of WSJ) + +
ParserTrainingWSJ 23 F1
Vinyals & Kaiser el al. (2014) [37] Petrov et al. (2006) [29]WSJ only, discriminative WSJ only, discriminative88.3 90.4
Zhu et al. (2013) [40]WSJ only, discriminative90.4
Dyer et al. (2016) [8]WSJ only, discriminative91.7
Transformer (4 layers)WSJ only, discriminative91.3
Zhu et al. (2013) [40]semi-supervised91.3
Huang & Harper (2009) [14]semi-supervised91.3
McClosky et al. (2006) [26]semi-supervised92.1
Vinyals & Kaiser el al. (2014) [37]semi-supervised92.1
Transformer (4 layers)semi-supervised92.7
Luong et al. (2015) [23]multi-task93.0
Dyer et al. (2016) [8]generative93.3
+ +Our results in Table 4 show that despite the lack of task-specific tuning our model performs surprisingly well, yielding better results than all previously reported models with the exception of the Recurrent Neural Network Grammar [8]. + +In contrast to RNN sequence-to-sequence models [37], the Transformer outperforms the BerkeleyParser [29] even when training only on the WSJ training set of 40K sentences. + +# 7 Conclusion + +In this work, we presented the Transformer, the first sequence transduction model based entirely on attention, replacing the recurrent layers most commonly used in encoder-decoder architectures with multi-headed self-attention. + +For translation tasks, the Transformer can be trained significantly faster than architectures based on recurrent or convolutional layers. On both WMT 2014 English-to-German and WMT 2014 English-to-French translation tasks, we achieve a new state of the art. In the former task our best model outperforms even all previously reported ensembles. + +We are excited about the future of attention-based models and plan to apply them to other tasks. We plan to extend the Transformer to problems involving input and output modalities other than text and to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs such as images, audio and video. Making generation less sequential is another research goals of ours. + +The code we used to train and evaluate our models is available at https://github.com/ tensorflow/tensor2tensor. + +Acknowledgements We are grateful to Nal Kalchbrenner and Stephan Gouws for their fruitful comments, corrections and inspiration. + +# References + +[1] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. +[2] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. CoRR, abs/1409.0473, 2014. +[3] Denny Britz, Anna Goldie, Minh-Thang Luong, and Quoc V. Le. Massive exploration of neural machine translation architectures. CoRR, abs/1703.03906, 2017. +[4] Jianpeng Cheng, Li Dong, and Mirella Lapata. Long short-term memory-networks for machine reading. arXiv preprint arXiv:1601.06733, 2016. +[5] Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. CoRR, abs/1406.1078, 2014. +[6] Francois Chollet. Xception: Deep learning with depthwise separable convolutions. arXiv preprint arXiv:1610.02357, 2016. [7] Junyoung Chung, Çaglar Gülçehre, Kyunghyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. CoRR, abs/1412.3555, 2014. +[8] Chris Dyer, Adhiguna Kuncoro, Miguel Ballesteros, and Noah A. Smith. Recurrent neural network grammars. In Proc. of NAACL, 2016. [9] Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N. Dauphin. Convolutional sequence to sequence learning. arXiv preprint arXiv:1705.03122v2, 2017. +[10] Alex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013. +[11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770–778, 2016. +[12] Sepp Hochreiter, Yoshua Bengio, Paolo Frasconi, and Jürgen Schmidhuber. Gradient flow in recurrent nets: the difficulty of learning long-term dependencies, 2001. +[13] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. +[14] Zhongqiang Huang and Mary Harper. Self-training PCFG grammars with latent annotations across languages. In Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, pages 832–841. ACL, August 2009. +[15] Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. +[16] Łukasz Kaiser and Samy Bengio. Can active memory replace attention? In Advances in Neural Information Processing Systems, (NIPS), 2016. +[17] Łukasz Kaiser and Ilya Sutskever. Neural GPUs learn algorithms. In International Conference on Learning Representations (ICLR), 2016. +[18] Nal Kalchbrenner, Lasse Espeholt, Karen Simonyan, Aaron van den Oord, Alex Graves, and Koray Kavukcuoglu. Neural machine translation in linear time. arXiv preprint arXiv:1610.10099v2, 2017. +[19] Yoon Kim, Carl Denton, Luong Hoang, and Alexander M. Rush. Structured attention networks. In International Conference on Learning Representations, 2017. +[20] Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. +[21] Oleksii Kuchaiev and Boris Ginsburg. Factorization tricks for LSTM networks. arXiv preprint arXiv:1703.10722, 2017. +[22] Zhouhan Lin, Minwei Feng, Cicero Nogueira dos Santos, Mo Yu, Bing Xiang, Bowen Zhou, and Yoshua Bengio. A structured self-attentive sentence embedding. arXiv preprint arXiv:1703.03130, 2017. +[23] Minh-Thang Luong, Quoc V. Le, Ilya Sutskever, Oriol Vinyals, and Lukasz Kaiser. Multi-task sequence to sequence learning. arXiv preprint arXiv:1511.06114, 2015. +[24] Minh-Thang Luong, Hieu Pham, and Christopher D Manning. Effective approaches to attentionbased neural machine translation. arXiv preprint arXiv:1508.04025, 2015. +[25] Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313–330, 1993. +[26] David McClosky, Eugene Charniak, and Mark Johnson. Effective self-training for parsing. In Proceedings of the Human Language Technology Conference of the NAACL, Main Conference, pages 152–159. ACL, June 2006. +[27] Ankur Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. A decomposable attention model. In Empirical Methods in Natural Language Processing, 2016. +[28] Romain Paulus, Caiming Xiong, and Richard Socher. A deep reinforced model for abstractive summarization. arXiv preprint arXiv:1705.04304, 2017. +[29] Slav Petrov, Leon Barrett, Romain Thibaux, and Dan Klein. Learning accurate, compact, and interpretable tree annotation. In Proceedings of the 21st International Conference on Computational Linguistics and 44th Annual Meeting of the ACL, pages 433–440. ACL, July 2006. +[30] Ofir Press and Lior Wolf. Using the output embedding to improve language models. arXiv preprint arXiv:1608.05859, 2016. +[31] Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. arXiv preprint arXiv:1508.07909, 2015. +[32] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. arXiv preprint arXiv:1701.06538, 2017. +[33] Nitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1):1929–1958, 2014. +[34] Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus. End-to-end memory networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett, editors, Advances in Neural Information Processing Systems 28, pages 2440–2448. Curran Associates, Inc., 2015. +[35] Ilya Sutskever, Oriol Vinyals, and Quoc VV Le. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems, pages 3104–3112, 2014. +[36] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. CoRR, abs/1512.00567, 2015. +[37] Vinyals & Kaiser, Koo, Petrov, Sutskever, and Hinton. Grammar as a foreign language. In Advances in Neural Information Processing Systems, 2015. +[38] Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016. +[39] Jie Zhou, Ying Cao, Xuguang Wang, Peng Li, and Wei Xu. Deep recurrent models with fast-forward connections for neural machine translation. CoRR, abs/1606.04199, 2016. +[40] Muhua Zhu, Yue Zhang, Wenliang Chen, Min Zhang, and Jingbo Zhu. Fast and accurate shift-reduce constituent parsing. In Proceedings of the 51st Annual Meeting of the ACL (Volume 1: Long Papers), pages 434–443. ACL, August 2013. + +# Attention VisualizationsInput-Input Laye + +![This image is of moderate complexity. It displays an attention visualization from a language model, specifically highlighting the self-attention mechanism in layer 5 of 6. The visualization shows that the word "making" attends to several subsequent words, including "more" and "difficult," illustrating a long-distance dependency. Different colored lines originating from "making" represent distinct attention heads, with some heads focusing on the phrase "making...more difficult" and others on tokens like "" and "".](images/917ac24c29f0775d5cb5b2f649356dd1bbc8895fc520943503e970e3e77a4142.jpg) +Figure 3: An example of the attention mechanism following long-distance dependencies in the encoder self-attention in layer 5 of 6. Many of the attention heads attend to a distant dependency of the verb ‘making’, completing the phrase ‘making...more difficult’. Attentions here shown only for the word ‘making’. Different colors represent different heads. Best viewed in color. + +![This image displays attention visualizations for two heads within a neural network layer, illustrating word relationships. The top section shows "Full attentions for head 5," with purple lines connecting words to indicate attention strength. The bottom section isolates attentions for the word "its" from "attention heads 5 and 6," highlighting sharp attention patterns. These visualizations are presented to demonstrate how specific attention heads might be involved in anaphora resolution, as suggested by the document context.](images/7fb8900db1bef9619da338696033ca846744398e60dea610261f9d7cfc2b5a15.jpg) +Figure 4: Two attention heads, also in layer 5 of 6, apparently involved in anaphora resolution. Top: Full attentions for head 5. Bottom: Isolated attentions from just the word ‘its’ for attention heads 5 and 6. Note that the attentions are very sharp for this word. + +![This image displays two distinct attention visualizations, likely from a natural language processing model, illustrating word-to-word attention patterns. The top visualization uses green lines, while the bottom uses red lines, suggesting different attention heads or layers. Both visualizations show a sequence of words, including "The," "Law," "will," "never," "be," "perfect," "but," "its," "application," "should," "be," "just," "this," "is," "what," "we," "are," "missing," "in," "my," "opinion," "," and "." The lines represent attention weights, with thicker lines indicating stronger attention between words. The arrangement of words and the patterns of the attention lines suggest that these heads are learning to capture syntactic or semantic relationships within the sentence.](images/4ff785d908d5e376f8a96720f1bb63fd84c2a5d387e0b90457a10613fa4cf028.jpg) +Figure 5: Many of the attention heads exhibit behaviour that seems related to the structure of the sentence. We give two such examples above, from two different heads from the encoder self-attention at layer 5 of 6. The heads clearly learned to perform different tasks. \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/Attention Is All You Need.md.backup b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/Attention Is All You Need.md.backup new file mode 100644 index 0000000000000000000000000000000000000000..bd44c883af84fddff6c111a947715af9f8ea0902 --- /dev/null +++ b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/Attention Is All You Need.md.backup @@ -0,0 +1,287 @@ +Provided proper attribution is provided, Google hereby grants permission to reproduce the tables and figures in this paper solely for use in journalistic or scholarly works. + +# Attention Is All You Need + +Ashish Vaswani∗ Google Brain avaswani@google.com + +Noam Shazeer∗ Google Brain noam@google.com + +Niki Parmar∗ Google Research nikip@google.com + +Jakob Uszkoreit∗ Google Research usz@google.com + +Llion Jones∗ Google Research llion@google.com + +Aidan N. Gomez∗ † University of Toronto aidan@cs.toronto.edu + +Łukasz Kaiser∗ Google Brain lukaszkaiser@google.com + +Illia Polosukhin∗ ‡illia.polosukhin@gmail.com + +# Abstract + +The dominant sequence transduction models are based on complex recurrent or convolutional neural networks that include an encoder and a decoder. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 Englishto-German translation task, improving over the existing best results, including ensembles, by over 2 BLEU. On the WMT 2014 English-to-French translation task, our model establishes a new single-model state-of-the-art BLEU score of 41.8 after training for 3.5 days on eight GPUs, a small fraction of the training costs of the best models from the literature. We show that the Transformer generalizes well to other tasks by applying it successfully to English constituency parsing both with large and limited training data. + +# 1 Introduction + +Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5]. Numerous efforts have since continued to push the boundaries of recurrent language models and encoder-decoder architectures [38, 24, 15]. + +Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states $h _ { t }$ , as a function of the previous hidden state $h _ { t - 1 }$ and the input for position $t$ . This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples. Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains. + +Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19]. In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network. + +In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output. The Transformer allows for significantly more parallelization and can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs. + +# 2 Background + +The goal of reducing sequential computation also forms the foundation of the Extended Neural GPU [16], ByteNet [18] and ConvS2S [9], all of which use convolutional neural networks as basic building block, computing hidden representations in parallel for all input and output positions. In these models, the number of operations required to relate signals from two arbitrary input or output positions grows in the distance between positions, linearly for ConvS2S and logarithmically for ByteNet. This makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. + +Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. + +End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34]. + +To the best of our knowledge, however, the Transformer is the first transduction model relying entirely on self-attention to compute representations of its input and output without using sequencealigned RNNs or convolution. In the following sections, we will describe the Transformer, motivate self-attention and discuss its advantages over models such as [17, 18] and [9]. + +# 3 Model Architecture + +Most competitive neural sequence transduction models have an encoder-decoder structure [5, 2, 35]. Here, the encoder maps an input sequence of symbol representations $( x _ { 1 } , . . . , x _ { n } )$ to a sequence of continuous representations $\textbf { z } = ~ ( z _ { 1 } , . . . , z _ { n } )$ . Given $\mathbf { z }$ , the decoder then generates an output sequence $\left( y _ { 1 } , . . . , y _ { m } \right)$ of symbols one element at a time. At each step the model is auto-regressive [10], consuming the previously generated symbols as additional input when generating the next. + +![](images/af855240f9b9309607f19bbbc1d98f7b6fc795b504c1826e18f974c90887b7a2.jpg) +Figure 1: The Transformer - model architecture. + +The Transformer follows this overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder, shown in the left and right halves of Figure 1, respectively. + +# 3.1 Encoder and Decoder Stacks + +Encoder: The encoder is composed of a stack of $N = 6$ identical layers. Each layer has two sub-layers. The first is a multi-head self-attention mechanism, and the second is a simple, positionwise fully connected feed-forward network. We employ a residual connection [11] around each of the two sub-layers, followed by layer normalization [1]. That is, the output of each sub-layer is LayerN $\operatorname { y r m } ( x + \operatorname { S u b l a y e r } ( x ) )$ , where Sublayer $( x )$ is the function implemented by the sub-layer itself. To facilitate these residual connections, all sub-layers in the model, as well as the embedding layers, produce outputs of dimension $d _ { \mathrm { m o d e l } } = 5 1 2$ . + +Decoder: The decoder is also composed of a stack of $N = 6$ identical layers. In addition to the two sub-layers in each encoder layer, the decoder inserts a third sub-layer, which performs multi-head attention over the output of the encoder stack. Similar to the encoder, we employ residual connections around each of the sub-layers, followed by layer normalization. We also modify the self-attention sub-layer in the decoder stack to prevent positions from attending to subsequent positions. This masking, combined with fact that the output embeddings are offset by one position, ensures that the predictions for position $i$ can depend only on the known outputs at positions less than $i$ . + +# 3.2 Attention + +An attention function can be described as mapping a query and a set of key-value pairs to an output, where the query, keys, values, and output are all vectors. The output is computed as a weighted sum + +![](images/83659013bee7db4de0b109708902294b8df739cc1a706ad1681aaeee9f6b35ae.jpg) +Figure 2: (left) Scaled Dot-Product Attention. (right) Multi-Head Attention consists of several attention layers running in parallel. + +of the values, where the weight assigned to each value is computed by a compatibility function of the query with the corresponding key. + +# 3.2.1 Scaled Dot-Product Attention + +We call our particular attention "Scaled Dot-Product Attention" (Figure 2). The input consists of queries and keys of dimension $d _ { k }$ , and values of dimension √ $d _ { v }$ . We compute the dot products of the query with all keys, divide each by $\sqrt { d _ { k } }$ , and apply a softmax function to obtain the weights on the values. + +In practice, we compute the attention function on a set of queries simultaneously, packed together into a matrix $Q$ . The keys and values are also packed together into matrices $K$ and $V$ . We compute the matrix of outputs as: + +$$ +\mathrm { A t t e n t i o n } ( Q , K , V ) = \mathrm { s o f t m a x } ( \frac { Q K ^ { T } } { \sqrt { d _ { k } } } ) V +$$ + +The two most commonly used attention functions are additive attention [2], and dot-product (multiplicative) attention. Dot-product attention is identical to our algorithm, except for the scaling factor of $\frac { 1 } { \sqrt { d _ { k } } }$ . Additive attention computes the compatibility function using a feed-forward network with a single hidden layer. While the two are similar in theoretical complexity, dot-product attention is much faster and more space-efficient in practice, since it can be implemented using highly optimized matrix multiplication code. + +While for small values of $d _ { k }$ the two mechanisms perform similarly, additive attention outperforms dot product attention without scaling for larger values of $d _ { k }$ [3]. We suspect that for large values of $d _ { k }$ , the dot products grow large in magnitude, pushing the softmax function into regions where it has extremely small gradients 4. To counteract this effect, we scale the dot products by $\frac { 1 } { \sqrt { d _ { k } } }$ . + +# 3.2.2 Multi-Head Attention + +Instead of performing a single attention function with $d _ { \mathrm { m o d e l } }$ -dimensional keys, values and queries, we found it beneficial to linearly project the queries, keys and values $h$ times with different, learned linear projections to $d _ { k }$ , $d _ { k }$ and $d _ { v }$ dimensions, respectively. On each of these projected versions of queries, keys and values we then perform the attention function in parallel, yielding $d _ { v }$ -dimensional output values. These are concatenated and once again projected, resulting in the final values, as depicted in Figure 2. + +Multi-head attention allows the model to jointly attend to information from different representation subspaces at different positions. With a single attention head, averaging inhibits this. + +$$ +\begin{array} { r } { \begin{array} { r l } & { \mathrm { M u l t i H e a d } ( Q , K , V ) = \mathrm { C o n c a t } ( \mathrm { h e a d } _ { 1 } , . . . , \mathrm { h e a d } _ { \mathrm { h } } ) W ^ { O } } \\ & { \qquad \mathrm { w h e r e ~ h e a d } _ { \mathrm { i } } = \mathrm { A t t e n t i o n } ( Q W _ { i } ^ { Q } , K W _ { i } ^ { K } , V W _ { i } ^ { V } ) } \end{array} } \end{array} +$$ + +Where the projections are parameter matrices $W _ { i } ^ { Q } \in \mathbb { R } ^ { d _ { \mathrm { m o d e l } } \times d _ { k } }$ , W K ∈ Rdmodel×dk , W V ∈ Rdmodel×dv and $W ^ { O } \in \mathbb R ^ { h d _ { v } \times d _ { \mathrm { m o d e l } } }$ . + +In this work we employ $h \ : = \ : 8$ parallel attention layers, or heads. For each of these we use $d _ { k } = d _ { v } = d _ { \mathrm { m o d e l } } / h \stackrel { } { = } \dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. + +# 3.2.3 Applications of Attention in our Model + +The Transformer uses multi-head attention in three different ways: + +• In "encoder-decoder attention" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. +• The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. +Similarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. + +# 3.3 Position-wise Feed-Forward Networks + +In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between. + +$$ +\mathrm { F F N } ( x ) = \operatorname* { m a x } ( 0 , x W _ { 1 } + b _ { 1 } ) W _ { 2 } + b _ { 2 } +$$ + +While the linear transformations are the same across different positions, they use different parameters from layer to layer. Another way of describing this is as two convolutions with kernel size 1. The dimensionality of input and output is $d _ { \mathrm { m o d e l } } = 5 1 2$ , and the inner-layer has dimensionality $d _ { f f } = 2 0 4 8$ . + +# 3.4 Embeddings and Softmax + +Similarly to other sequence transduction models, we use learned embeddings to convert the input tokens and output tokens to vectors of dimension $d _ { \mathrm { m o d e l } }$ . We also use the usual learned linear transformation and softmax function to convert the decoder output to predicted next-token probabilities. In our model, we share the same weight matrix between the two embedding layers and the pre-softmax√ linear transformation, similar to [30]. In the embedding layers, we multiply those weights by $\sqrt { d _ { \mathrm { { m o d e l } } } }$ + +Table 1: Maximum path lengths, per-layer complexity and minimum number of sequential operations for different layer types. $n$ is the sequence length, $d$ is the representation dimension, $k$ is the kernel size of convolutions and $r$ the size of the neighborhood in restricted self-attention. + +
Layer TypeComplexity per LayerSequential OperationsMaximum Path Length
Self-AttentionO(n2 · d)0(1)0(1)
RecurrentO(n · d2)O(n)(n)
ConvolutionalO(k · n · d2)0(1)O(l0gk(n))
Self-Attention (restricted)O(r · n · d)0(1)(n/r)
+ +# 3.5 Positional Encoding + +Since our model contains no recurrence and no convolution, in order for the model to make use of the order of the sequence, we must inject some information about the relative or absolute position of the tokens in the sequence. To this end, we add "positional encodings" to the input embeddings at the bottoms of the encoder and decoder stacks. The positional encodings have the same dimension $d _ { \mathrm { m o d e l } }$ as the embeddings, so that the two can be summed. There are many choices of positional encodings, learned and fixed [9]. + +In this work, we use sine and cosine functions of different frequencies: + +$$ +\begin{array} { r } { P E _ { ( p o s , 2 i ) } = s i n ( p o s / 1 0 0 0 0 ^ { 2 i / d _ { \mathrm { m o d e l } } } ) } \\ { P E _ { ( p o s , 2 i + 1 ) } = c o s ( p o s / 1 0 0 0 0 ^ { 2 i / d _ { \mathrm { m o d e l } } } ) } \end{array} +$$ + +where pos is the position and $i$ is the dimension. That is, each dimension of the positional encoding corresponds to a sinusoid. The wavelengths form a geometric progression from $2 \pi$ to $1 0 0 0 0 \cdot 2 \pi$ . We chose this function because we hypothesized it would allow the model to easily learn to attend by relative positions, since for any fixed offset $k$ , $P E _ { p o s + k }$ can be represented as a linear function of $P E _ { p o s }$ . + +We also experimented with using learned positional embeddings [9] instead, and found that the two versions produced nearly identical results (see Table 3 row (E)). We chose the sinusoidal version because it may allow the model to extrapolate to sequence lengths longer than the ones encountered during training. + +# 4 Why Self-Attention + +In this section we compare various aspects of self-attention layers to the recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations $( x _ { 1 } , . . . , x _ { n } )$ to another sequence of equal length $\left( z _ { 1 } , . . . , z _ { n } \right)$ , with $x _ { i } , z _ { i } \in \mathbf { \bar { \mathbb { R } } } ^ { d }$ , such as a hidden layer in a typical sequence transduction encoder or decoder. Motivating our use of self-attention we consider three desiderata. + +One is the total computational complexity per layer. Another is the amount of computation that can be parallelized, as measured by the minimum number of sequential operations required. + +The third is the path length between long-range dependencies in the network. Learning long-range dependencies is a key challenge in many sequence transduction tasks. One key factor affecting the ability to learn such dependencies is the length of the paths forward and backward signals have to traverse in the network. The shorter these paths between any combination of positions in the input and output sequences, the easier it is to learn long-range dependencies [12]. Hence we also compare the maximum path length between any two input and output positions in networks composed of the different layer types. + +As noted in Table 1, a self-attention layer connects all positions with a constant number of sequentially executed operations, whereas a recurrent layer requires $O ( n )$ sequential operations. In terms of computational complexity, self-attention layers are faster than recurrent layers when the sequence length $n$ is smaller than the representation dimensionality $d$ , which is most often the case with sentence representations used by state-of-the-art models in machine translations, such as word-piece [38] and byte-pair [31] representations. To improve computational performance for tasks involving very long sequences, self-attention could be restricted to considering only a neighborhood of size $r$ in the input sequence centered around the respective output position. This would increase the maximum path length to $O ( n / r )$ . We plan to investigate this approach further in future work. + +A single convolutional layer with kernel width $k < n$ does not connect all pairs of input and output positions. Doing so requires a stack of $O ( n / k )$ convolutional layers in the case of contiguous kernels, or $O ( l o g _ { k } ( n ) )$ in the case of dilated convolutions [18], increasing the length of the longest paths between any two positions in the network. Convolutional layers are generally more expensive than recurrent layers, by a factor of $k$ . Separable convolutions [6], however, decrease the complexity considerably, to $\dot { O ( k \cdot n \cdot d + n \cdot d ^ { 2 } ) }$ . Even with $k = n$ , however, the complexity of a separable convolution is equal to the combination of a self-attention layer and a point-wise feed-forward layer, the approach we take in our model. + +As side benefit, self-attention could yield more interpretable models. We inspect attention distributions from our models and present and discuss examples in the appendix. Not only do individual attention heads clearly learn to perform different tasks, many appear to exhibit behavior related to the syntactic and semantic structure of the sentences. + +# 5 Training + +This section describes the training regime for our models. + +# 5.1 Training Data and Batching + +We trained on the standard WMT 2014 English-German dataset consisting of about 4.5 million sentence pairs. Sentences were encoded using byte-pair encoding [3], which has a shared sourcetarget vocabulary of about 37000 tokens. For English-French, we used the significantly larger WMT 2014 English-French dataset consisting of 36M sentences and split tokens into a 32000 word-piece vocabulary [38]. Sentence pairs were batched together by approximate sequence length. Each training batch contained a set of sentence pairs containing approximately 25000 source tokens and 25000 target tokens. + +# 5.2 Hardware and Schedule + +We trained our models on one machine with 8 NVIDIA P100 GPUs. For our base models using the hyperparameters described throughout the paper, each training step took about 0.4 seconds. We trained the base models for a total of 100,000 steps or 12 hours. For our big models,(described on the bottom line of table 3), step time was 1.0 seconds. The big models were trained for 300,000 steps (3.5 days). + +# 5.3 Optimizer + +We used the Adam optimizer [20] with $\beta _ { 1 } = 0 . 9$ , $\beta _ { 2 } = 0 . 9 8$ and $\epsilon = 1 0 ^ { - 9 }$ . We varied the learning rate over the course of training, according to the formula: + +$$ +l r a t e = d _ { \mathrm { m o d e l } } ^ { - 0 . 5 } \cdot \mathrm { m i n } ( s t e p _ { - } n u m ^ { - 0 . 5 } , s t e p _ { - } n u m \cdot w a r m u p _ { - } s t e p s ^ { - 1 . 5 } ) +$$ + +This corresponds to increasing the learning rate linearly for the first warmup_steps training steps, and decreasing it thereafter proportionally to the inverse square root of the step number. We used warmup_steps $= 4 0 0 0$ . + +# 5.4 Regularization + +We employ three types of regularization during training: + +Table 2: The Transformer achieves better BLEU scores than previous state-of-the-art models on the English-to-German and English-to-French newstest2014 tests at a fraction of the training cost. + +
ModelBLEUTraining Cost (FLOPs)
EN-DEEN-FREN-DEEN-FR
ByteNet [18]23.75
Deep-Att + PosUnk [39]39.21.0·1020
GNMT + RL [38]24.639.922.3 ·10191.4 ·1020
ConvS2S [9]25.1640.469.6·10181.5·1020
MoE [32]26.0340.562.0·10191.2 ·1020
Deep-Att + PosUnk Ensemble [39]40.48.0.1020
GNMT + RL Ensemble [38]26.3041.161.8·10201.1 ·1021
ConvS2s Ensemble [9]26.3641.297.7.10191.2 ·1021
Transformer (base model)27.338.13.3·1018
Transformer (big)28.441.82.3 ·1019
+ +Residual Dropout We apply dropout [33] to the output of each sub-layer, before it is added to the sub-layer input and normalized. In addition, we apply dropout to the sums of the embeddings and the positional encodings in both the encoder and decoder stacks. For the base model, we use a rate of $P _ { d r o p } = 0 . 1$ . + +Label Smoothing During training, we employed label smoothing of value $\epsilon _ { l s } = 0 . 1$ [36]. This hurts perplexity, as the model learns to be more unsure, but improves accuracy and BLEU score. + +# 6 Results + +# 6.1 Machine Translation + +On the WMT 2014 English-to-German translation task, the big transformer model (Transformer (big) in Table 2) outperforms the best previously reported models (including ensembles) by more than 2.0 BLEU, establishing a new state-of-the-art BLEU score of 28.4. The configuration of this model is listed in the bottom line of Table 3. Training took 3.5 days on 8 P100 GPUs. Even our base model surpasses all previously published models and ensembles, at a fraction of the training cost of any of the competitive models. + +On the WMT 2014 English-to-French translation task, our big model achieves a BLEU score of 41.0, outperforming all of the previously published single models, at less than $1 / 4$ the training cost of the previous state-of-the-art model. The Transformer (big) model trained for English-to-French used dropout rate $P _ { d r o p } = 0 . 1$ , instead of 0.3. + +For the base models, we used a single model obtained by averaging the last 5 checkpoints, which were written at 10-minute intervals. For the big models, we averaged the last 20 checkpoints. We used beam search with a beam size of 4 and length penalty $\alpha = 0 . 6$ [38]. These hyperparameters were chosen after experimentation on the development set. We set the maximum output length during inference to input length $+ 5 0$ , but terminate early when possible [38]. + +Table 2 summarizes our results and compares our translation quality and training costs to other model architectures from the literature. We estimate the number of floating point operations used to train a model by multiplying the training time, the number of GPUs used, and an estimate of the sustained single-precision floating-point capacity of each GPU 5. + +# 6.2 Model Variations + +To evaluate the importance of different components of the Transformer, we varied our base model in different ways, measuring the change in performance on English-to-German translation on the development set, newstest2013. We used beam search as described in the previous section, but no checkpoint averaging. We present these results in Table 3. + +Table 3: Variations on the Transformer architecture. Unlisted values are identical to those of the base model. All metrics are on the English-to-German translation development set, newstest2013. Listed perplexities are per-wordpiece, according to our byte-pair encoding, and should not be compared to per-word perplexities. + +
N dmodeldffhdkdvPdroptresBLE
base6512 2048864640.10.1100K4.9225.865
(A)15125125.2924.9
46132125.025.8
3216165.0125.4
(B)16325.0625.44860
(C)2486.11 5.1923.7 25.336 50
10244.8825.580
25632 12832 1285.7524.528
10244.6626.0168 53
(D)40965.12 4.7525.4 26.290
0.05.7724.6
0.24.95
0.025.3
(E)positional embedding instead of sinusoids0.25.4725.7
4.92
big6 10244096160.3300K4.3325.7 26.4213
+ +In Table 3 rows (A), we vary the number of attention heads and the attention key and value dimensions, keeping the amount of computation constant, as described in Section 3.2.2. While single-head attention is 0.9 BLEU worse than the best setting, quality also drops off with too many heads. + +In Table 3 rows (B), we observe that reducing the attention key size $d _ { k }$ hurts model quality. This suggests that determining compatibility is not easy and that a more sophisticated compatibility function than dot product may be beneficial. We further observe in rows (C) and (D) that, as expected, bigger models are better, and dropout is very helpful in avoiding over-fitting. In row (E) we replace our sinusoidal positional encoding with learned positional embeddings [9], and observe nearly identical results to the base model. + +# 6.3 English Constituency Parsing + +To evaluate if the Transformer can generalize to other tasks we performed experiments on English constituency parsing. This task presents specific challenges: the output is subject to strong structural constraints and is significantly longer than the input. Furthermore, RNN sequence-to-sequence models have not been able to attain state-of-the-art results in small-data regimes [37]. + +We trained a 4-layer transformer with $d _ { m o d e l } = 1 0 2 4$ on the Wall Street Journal (WSJ) portion of the Penn Treebank [25], about 40K training sentences. We also trained it in a semi-supervised setting, using the larger high-confidence and BerkleyParser corpora from with approximately 17M sentences [37]. We used a vocabulary of 16K tokens for the WSJ only setting and a vocabulary of 32K tokens for the semi-supervised setting. + +We performed only a small number of experiments to select the dropout, both attention and residual (section 5.4), learning rates and beam size on the Section 22 development set, all other parameters remained unchanged from the English-to-German base translation model. During inference, we increased the maximum output length to input length $+ 3 0 0$ . We used a beam size of 21 and $\alpha = 0 . 3$ for both WSJ only and the semi-supervised setting. + +Table 4: The Transformer generalizes well to English constituency parsing (Results are on Section 23 of WSJ) + +
ParserTrainingWSJ 23 F1
Vinyals & Kaiser el al. (2014) [37] Petrov et al. (2006) [29]WSJ only, discriminative WSJ only, discriminative88.3 90.4
Zhu et al. (2013) [40]WSJ only, discriminative90.4
Dyer et al. (2016) [8]WSJ only, discriminative91.7
Transformer (4 layers)WSJ only, discriminative91.3
Zhu et al. (2013) [40]semi-supervised91.3
Huang & Harper (2009) [14]semi-supervised91.3
McClosky et al. (2006) [26]semi-supervised92.1
Vinyals & Kaiser el al. (2014) [37]semi-supervised92.1
Transformer (4 layers)semi-supervised92.7
Luong et al. (2015) [23]multi-task93.0
Dyer et al. (2016) [8]generative93.3
+ +Our results in Table 4 show that despite the lack of task-specific tuning our model performs surprisingly well, yielding better results than all previously reported models with the exception of the Recurrent Neural Network Grammar [8]. + +In contrast to RNN sequence-to-sequence models [37], the Transformer outperforms the BerkeleyParser [29] even when training only on the WSJ training set of 40K sentences. + +# 7 Conclusion + +In this work, we presented the Transformer, the first sequence transduction model based entirely on attention, replacing the recurrent layers most commonly used in encoder-decoder architectures with multi-headed self-attention. + +For translation tasks, the Transformer can be trained significantly faster than architectures based on recurrent or convolutional layers. On both WMT 2014 English-to-German and WMT 2014 English-to-French translation tasks, we achieve a new state of the art. In the former task our best model outperforms even all previously reported ensembles. + +We are excited about the future of attention-based models and plan to apply them to other tasks. We plan to extend the Transformer to problems involving input and output modalities other than text and to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs such as images, audio and video. Making generation less sequential is another research goals of ours. + +The code we used to train and evaluate our models is available at https://github.com/ tensorflow/tensor2tensor. + +Acknowledgements We are grateful to Nal Kalchbrenner and Stephan Gouws for their fruitful comments, corrections and inspiration. + +# References + +[1] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. +[2] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. CoRR, abs/1409.0473, 2014. +[3] Denny Britz, Anna Goldie, Minh-Thang Luong, and Quoc V. Le. Massive exploration of neural machine translation architectures. CoRR, abs/1703.03906, 2017. +[4] Jianpeng Cheng, Li Dong, and Mirella Lapata. Long short-term memory-networks for machine reading. arXiv preprint arXiv:1601.06733, 2016. +[5] Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. CoRR, abs/1406.1078, 2014. +[6] Francois Chollet. Xception: Deep learning with depthwise separable convolutions. arXiv preprint arXiv:1610.02357, 2016. [7] Junyoung Chung, Çaglar Gülçehre, Kyunghyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. CoRR, abs/1412.3555, 2014. +[8] Chris Dyer, Adhiguna Kuncoro, Miguel Ballesteros, and Noah A. Smith. Recurrent neural network grammars. In Proc. of NAACL, 2016. [9] Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N. Dauphin. Convolutional sequence to sequence learning. arXiv preprint arXiv:1705.03122v2, 2017. +[10] Alex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013. +[11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770–778, 2016. +[12] Sepp Hochreiter, Yoshua Bengio, Paolo Frasconi, and Jürgen Schmidhuber. Gradient flow in recurrent nets: the difficulty of learning long-term dependencies, 2001. +[13] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. +[14] Zhongqiang Huang and Mary Harper. Self-training PCFG grammars with latent annotations across languages. In Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, pages 832–841. ACL, August 2009. +[15] Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. +[16] Łukasz Kaiser and Samy Bengio. Can active memory replace attention? In Advances in Neural Information Processing Systems, (NIPS), 2016. +[17] Łukasz Kaiser and Ilya Sutskever. Neural GPUs learn algorithms. In International Conference on Learning Representations (ICLR), 2016. +[18] Nal Kalchbrenner, Lasse Espeholt, Karen Simonyan, Aaron van den Oord, Alex Graves, and Koray Kavukcuoglu. Neural machine translation in linear time. arXiv preprint arXiv:1610.10099v2, 2017. +[19] Yoon Kim, Carl Denton, Luong Hoang, and Alexander M. Rush. Structured attention networks. In International Conference on Learning Representations, 2017. +[20] Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. +[21] Oleksii Kuchaiev and Boris Ginsburg. Factorization tricks for LSTM networks. arXiv preprint arXiv:1703.10722, 2017. +[22] Zhouhan Lin, Minwei Feng, Cicero Nogueira dos Santos, Mo Yu, Bing Xiang, Bowen Zhou, and Yoshua Bengio. A structured self-attentive sentence embedding. arXiv preprint arXiv:1703.03130, 2017. +[23] Minh-Thang Luong, Quoc V. Le, Ilya Sutskever, Oriol Vinyals, and Lukasz Kaiser. Multi-task sequence to sequence learning. arXiv preprint arXiv:1511.06114, 2015. +[24] Minh-Thang Luong, Hieu Pham, and Christopher D Manning. Effective approaches to attentionbased neural machine translation. arXiv preprint arXiv:1508.04025, 2015. +[25] Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313–330, 1993. +[26] David McClosky, Eugene Charniak, and Mark Johnson. Effective self-training for parsing. In Proceedings of the Human Language Technology Conference of the NAACL, Main Conference, pages 152–159. ACL, June 2006. +[27] Ankur Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. A decomposable attention model. In Empirical Methods in Natural Language Processing, 2016. +[28] Romain Paulus, Caiming Xiong, and Richard Socher. A deep reinforced model for abstractive summarization. arXiv preprint arXiv:1705.04304, 2017. +[29] Slav Petrov, Leon Barrett, Romain Thibaux, and Dan Klein. Learning accurate, compact, and interpretable tree annotation. In Proceedings of the 21st International Conference on Computational Linguistics and 44th Annual Meeting of the ACL, pages 433–440. ACL, July 2006. +[30] Ofir Press and Lior Wolf. Using the output embedding to improve language models. arXiv preprint arXiv:1608.05859, 2016. +[31] Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. arXiv preprint arXiv:1508.07909, 2015. +[32] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. arXiv preprint arXiv:1701.06538, 2017. +[33] Nitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1):1929–1958, 2014. +[34] Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus. End-to-end memory networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett, editors, Advances in Neural Information Processing Systems 28, pages 2440–2448. Curran Associates, Inc., 2015. +[35] Ilya Sutskever, Oriol Vinyals, and Quoc VV Le. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems, pages 3104–3112, 2014. +[36] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. CoRR, abs/1512.00567, 2015. +[37] Vinyals & Kaiser, Koo, Petrov, Sutskever, and Hinton. Grammar as a foreign language. In Advances in Neural Information Processing Systems, 2015. +[38] Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016. +[39] Jie Zhou, Ying Cao, Xuguang Wang, Peng Li, and Wei Xu. Deep recurrent models with fast-forward connections for neural machine translation. CoRR, abs/1606.04199, 2016. +[40] Muhua Zhu, Yue Zhang, Wenliang Chen, Min Zhang, and Jingbo Zhu. Fast and accurate shift-reduce constituent parsing. In Proceedings of the 51st Annual Meeting of the ACL (Volume 1: Long Papers), pages 434–443. ACL, August 2013. + +# Attention VisualizationsInput-Input Laye + +![](images/917ac24c29f0775d5cb5b2f649356dd1bbc8895fc520943503e970e3e77a4142.jpg) +Figure 3: An example of the attention mechanism following long-distance dependencies in the encoder self-attention in layer 5 of 6. Many of the attention heads attend to a distant dependency of the verb ‘making’, completing the phrase ‘making...more difficult’. Attentions here shown only for the word ‘making’. Different colors represent different heads. Best viewed in color. + +![](images/7fb8900db1bef9619da338696033ca846744398e60dea610261f9d7cfc2b5a15.jpg) +Figure 4: Two attention heads, also in layer 5 of 6, apparently involved in anaphora resolution. Top: Full attentions for head 5. Bottom: Isolated attentions from just the word ‘its’ for attention heads 5 and 6. Note that the attentions are very sharp for this word. + +![](images/4ff785d908d5e376f8a96720f1bb63fd84c2a5d387e0b90457a10613fa4cf028.jpg) +Figure 5: Many of the attention heads exhibit behaviour that seems related to the structure of the sentence. We give two such examples above, from two different heads from the encoder self-attention at layer 5 of 6. The heads clearly learned to perform different tasks. \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/Attention Is All You Need_content_list.json b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/Attention Is All You Need_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..5799f10fd3012c240e304b764ad35ad4d638cc58 --- /dev/null +++ b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/Attention Is All You Need_content_list.json @@ -0,0 +1,673 @@ +[ + { + "type": "text", + "text": "Provided proper attribution is provided, Google hereby grants permission to reproduce the tables and figures in this paper solely for use in journalistic or scholarly works. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Attention Is All You Need ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "Ashish Vaswani∗ Google Brain avaswani@google.com ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Noam Shazeer∗ Google Brain noam@google.com ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Niki Parmar∗ Google Research nikip@google.com ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Jakob Uszkoreit∗ Google Research usz@google.com ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Llion Jones∗ Google Research llion@google.com ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Aidan N. Gomez∗ † University of Toronto aidan@cs.toronto.edu ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Łukasz Kaiser∗ Google Brain lukaszkaiser@google.com ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Illia Polosukhin∗ ‡illia.polosukhin@gmail.com", + "page_idx": 0 + }, + { + "type": "text", + "text": "Abstract ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "The dominant sequence transduction models are based on complex recurrent or convolutional neural networks that include an encoder and a decoder. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 Englishto-German translation task, improving over the existing best results, including ensembles, by over 2 BLEU. On the WMT 2014 English-to-French translation task, our model establishes a new single-model state-of-the-art BLEU score of 41.8 after training for 3.5 days on eight GPUs, a small fraction of the training costs of the best models from the literature. We show that the Transformer generalizes well to other tasks by applying it successfully to English constituency parsing both with large and limited training data. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "1 Introduction ", + "text_level": 1, + "page_idx": 1 + }, + { + "type": "text", + "text": "Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5]. Numerous efforts have since continued to push the boundaries of recurrent language models and encoder-decoder architectures [38, 24, 15]. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states $h _ { t }$ , as a function of the previous hidden state $h _ { t - 1 }$ and the input for position $t$ . This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples. Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19]. In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output. The Transformer allows for significantly more parallelization and can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "2 Background ", + "text_level": 1, + "page_idx": 1 + }, + { + "type": "text", + "text": "The goal of reducing sequential computation also forms the foundation of the Extended Neural GPU [16], ByteNet [18] and ConvS2S [9], all of which use convolutional neural networks as basic building block, computing hidden representations in parallel for all input and output positions. In these models, the number of operations required to relate signals from two arbitrary input or output positions grows in the distance between positions, linearly for ConvS2S and logarithmically for ByteNet. This makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34]. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "To the best of our knowledge, however, the Transformer is the first transduction model relying entirely on self-attention to compute representations of its input and output without using sequencealigned RNNs or convolution. In the following sections, we will describe the Transformer, motivate self-attention and discuss its advantages over models such as [17, 18] and [9]. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "3 Model Architecture ", + "text_level": 1, + "page_idx": 1 + }, + { + "type": "text", + "text": "Most competitive neural sequence transduction models have an encoder-decoder structure [5, 2, 35]. Here, the encoder maps an input sequence of symbol representations $( x _ { 1 } , . . . , x _ { n } )$ to a sequence of continuous representations $\\textbf { z } = ~ ( z _ { 1 } , . . . , z _ { n } )$ . Given $\\mathbf { z }$ , the decoder then generates an output sequence $\\left( y _ { 1 } , . . . , y _ { m } \\right)$ of symbols one element at a time. At each step the model is auto-regressive [10], consuming the previously generated symbols as additional input when generating the next. ", + "page_idx": 1 + }, + { + "type": "image", + "img_path": "images/af855240f9b9309607f19bbbc1d98f7b6fc795b504c1826e18f974c90887b7a2.jpg", + "image_caption": [ + "Figure 1: The Transformer - model architecture. " + ], + "image_footnote": [], + "page_idx": 2 + }, + { + "type": "text", + "text": "The Transformer follows this overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder, shown in the left and right halves of Figure 1, respectively. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "3.1 Encoder and Decoder Stacks ", + "text_level": 1, + "page_idx": 2 + }, + { + "type": "text", + "text": "Encoder: The encoder is composed of a stack of $N = 6$ identical layers. Each layer has two sub-layers. The first is a multi-head self-attention mechanism, and the second is a simple, positionwise fully connected feed-forward network. We employ a residual connection [11] around each of the two sub-layers, followed by layer normalization [1]. That is, the output of each sub-layer is LayerN $\\operatorname { y r m } ( x + \\operatorname { S u b l a y e r } ( x ) )$ , where Sublayer $( x )$ is the function implemented by the sub-layer itself. To facilitate these residual connections, all sub-layers in the model, as well as the embedding layers, produce outputs of dimension $d _ { \\mathrm { m o d e l } } = 5 1 2$ . ", + "page_idx": 2 + }, + { + "type": "text", + "text": "Decoder: The decoder is also composed of a stack of $N = 6$ identical layers. In addition to the two sub-layers in each encoder layer, the decoder inserts a third sub-layer, which performs multi-head attention over the output of the encoder stack. Similar to the encoder, we employ residual connections around each of the sub-layers, followed by layer normalization. We also modify the self-attention sub-layer in the decoder stack to prevent positions from attending to subsequent positions. This masking, combined with fact that the output embeddings are offset by one position, ensures that the predictions for position $i$ can depend only on the known outputs at positions less than $i$ . ", + "page_idx": 2 + }, + { + "type": "text", + "text": "3.2 Attention ", + "text_level": 1, + "page_idx": 2 + }, + { + "type": "text", + "text": "An attention function can be described as mapping a query and a set of key-value pairs to an output, where the query, keys, values, and output are all vectors. The output is computed as a weighted sum ", + "page_idx": 2 + }, + { + "type": "image", + "img_path": "images/83659013bee7db4de0b109708902294b8df739cc1a706ad1681aaeee9f6b35ae.jpg", + "image_caption": [ + "Figure 2: (left) Scaled Dot-Product Attention. (right) Multi-Head Attention consists of several attention layers running in parallel. " + ], + "image_footnote": [], + "page_idx": 3 + }, + { + "type": "text", + "text": "of the values, where the weight assigned to each value is computed by a compatibility function of the query with the corresponding key. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "3.2.1 Scaled Dot-Product Attention ", + "text_level": 1, + "page_idx": 3 + }, + { + "type": "text", + "text": "We call our particular attention \"Scaled Dot-Product Attention\" (Figure 2). The input consists of queries and keys of dimension $d _ { k }$ , and values of dimension √ $d _ { v }$ . We compute the dot products of the query with all keys, divide each by $\\sqrt { d _ { k } }$ , and apply a softmax function to obtain the weights on the values. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "In practice, we compute the attention function on a set of queries simultaneously, packed together into a matrix $Q$ . The keys and values are also packed together into matrices $K$ and $V$ . We compute the matrix of outputs as: ", + "page_idx": 3 + }, + { + "type": "equation", + "img_path": "images/fa4d419cfea34c8f47c887215cd957fb249cbf7890eaeee2ed5ab97bfe132b8f.jpg", + "text": "$$\n\\mathrm { A t t e n t i o n } ( Q , K , V ) = \\mathrm { s o f t m a x } ( \\frac { Q K ^ { T } } { \\sqrt { d _ { k } } } ) V\n$$", + "text_format": "latex", + "page_idx": 3 + }, + { + "type": "text", + "text": "The two most commonly used attention functions are additive attention [2], and dot-product (multiplicative) attention. Dot-product attention is identical to our algorithm, except for the scaling factor of $\\frac { 1 } { \\sqrt { d _ { k } } }$ . Additive attention computes the compatibility function using a feed-forward network with a single hidden layer. While the two are similar in theoretical complexity, dot-product attention is much faster and more space-efficient in practice, since it can be implemented using highly optimized matrix multiplication code. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "While for small values of $d _ { k }$ the two mechanisms perform similarly, additive attention outperforms dot product attention without scaling for larger values of $d _ { k }$ [3]. We suspect that for large values of $d _ { k }$ , the dot products grow large in magnitude, pushing the softmax function into regions where it has extremely small gradients 4. To counteract this effect, we scale the dot products by $\\frac { 1 } { \\sqrt { d _ { k } } }$ . ", + "page_idx": 3 + }, + { + "type": "text", + "text": "3.2.2 Multi-Head Attention ", + "text_level": 1, + "page_idx": 3 + }, + { + "type": "text", + "text": "Instead of performing a single attention function with $d _ { \\mathrm { m o d e l } }$ -dimensional keys, values and queries, we found it beneficial to linearly project the queries, keys and values $h$ times with different, learned linear projections to $d _ { k }$ , $d _ { k }$ and $d _ { v }$ dimensions, respectively. On each of these projected versions of queries, keys and values we then perform the attention function in parallel, yielding $d _ { v }$ -dimensional output values. These are concatenated and once again projected, resulting in the final values, as depicted in Figure 2. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "", + "page_idx": 4 + }, + { + "type": "text", + "text": "Multi-head attention allows the model to jointly attend to information from different representation subspaces at different positions. With a single attention head, averaging inhibits this. ", + "page_idx": 4 + }, + { + "type": "equation", + "img_path": "images/9fb387c348125416ffd60e9fc8ccf508506adafa2cad0d31cf3e96674ba001c2.jpg", + "text": "$$\n\\begin{array} { r } { \\begin{array} { r l } & { \\mathrm { M u l t i H e a d } ( Q , K , V ) = \\mathrm { C o n c a t } ( \\mathrm { h e a d } _ { 1 } , . . . , \\mathrm { h e a d } _ { \\mathrm { h } } ) W ^ { O } } \\\\ & { \\qquad \\mathrm { w h e r e ~ h e a d } _ { \\mathrm { i } } = \\mathrm { A t t e n t i o n } ( Q W _ { i } ^ { Q } , K W _ { i } ^ { K } , V W _ { i } ^ { V } ) } \\end{array} } \\end{array}\n$$", + "text_format": "latex", + "page_idx": 4 + }, + { + "type": "text", + "text": "Where the projections are parameter matrices $W _ { i } ^ { Q } \\in \\mathbb { R } ^ { d _ { \\mathrm { m o d e l } } \\times d _ { k } }$ , W K ∈ Rdmodel×dk , W V ∈ Rdmodel×dv and $W ^ { O } \\in \\mathbb R ^ { h d _ { v } \\times d _ { \\mathrm { m o d e l } } }$ . ", + "page_idx": 4 + }, + { + "type": "text", + "text": "In this work we employ $h \\ : = \\ : 8$ parallel attention layers, or heads. For each of these we use $d _ { k } = d _ { v } = d _ { \\mathrm { m o d e l } } / h \\stackrel { } { = } \\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "3.2.3 Applications of Attention in our Model ", + "text_level": 1, + "page_idx": 4 + }, + { + "type": "text", + "text": "The Transformer uses multi-head attention in three different ways: ", + "page_idx": 4 + }, + { + "type": "text", + "text": "• In \"encoder-decoder attention\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. \n• The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. \nSimilarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \\infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "3.3 Position-wise Feed-Forward Networks ", + "text_level": 1, + "page_idx": 4 + }, + { + "type": "text", + "text": "In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between. ", + "page_idx": 4 + }, + { + "type": "equation", + "img_path": "images/a27f213e85924f6d1a817fb01632ac7bd5fb8937234d50c8f707120e46dbcc9a.jpg", + "text": "$$\n\\mathrm { F F N } ( x ) = \\operatorname* { m a x } ( 0 , x W _ { 1 } + b _ { 1 } ) W _ { 2 } + b _ { 2 }\n$$", + "text_format": "latex", + "page_idx": 4 + }, + { + "type": "text", + "text": "While the linear transformations are the same across different positions, they use different parameters from layer to layer. Another way of describing this is as two convolutions with kernel size 1. The dimensionality of input and output is $d _ { \\mathrm { m o d e l } } = 5 1 2$ , and the inner-layer has dimensionality $d _ { f f } = 2 0 4 8$ . ", + "page_idx": 4 + }, + { + "type": "text", + "text": "3.4 Embeddings and Softmax ", + "text_level": 1, + "page_idx": 4 + }, + { + "type": "text", + "text": "Similarly to other sequence transduction models, we use learned embeddings to convert the input tokens and output tokens to vectors of dimension $d _ { \\mathrm { m o d e l } }$ . We also use the usual learned linear transformation and softmax function to convert the decoder output to predicted next-token probabilities. In our model, we share the same weight matrix between the two embedding layers and the pre-softmax√ linear transformation, similar to [30]. In the embedding layers, we multiply those weights by $\\sqrt { d _ { \\mathrm { { m o d e l } } } }$ ", + "page_idx": 4 + }, + { + "type": "table", + "img_path": "images/d1ccfcf4f90943c11096f884fe3c695d1add8f2371e82ed9b9ca7397342d195c.jpg", + "table_caption": [ + "Table 1: Maximum path lengths, per-layer complexity and minimum number of sequential operations for different layer types. $n$ is the sequence length, $d$ is the representation dimension, $k$ is the kernel size of convolutions and $r$ the size of the neighborhood in restricted self-attention. " + ], + "table_footnote": [], + "table_body": "
Layer TypeComplexity per LayerSequential OperationsMaximum Path Length
Self-AttentionO(n2 · d)0(1)0(1)
RecurrentO(n · d2)O(n)(n)
ConvolutionalO(k · n · d2)0(1)O(l0gk(n))
Self-Attention (restricted)O(r · n · d)0(1)(n/r)
", + "page_idx": 5 + }, + { + "type": "text", + "text": "3.5 Positional Encoding ", + "text_level": 1, + "page_idx": 5 + }, + { + "type": "text", + "text": "Since our model contains no recurrence and no convolution, in order for the model to make use of the order of the sequence, we must inject some information about the relative or absolute position of the tokens in the sequence. To this end, we add \"positional encodings\" to the input embeddings at the bottoms of the encoder and decoder stacks. The positional encodings have the same dimension $d _ { \\mathrm { m o d e l } }$ as the embeddings, so that the two can be summed. There are many choices of positional encodings, learned and fixed [9]. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "In this work, we use sine and cosine functions of different frequencies: ", + "page_idx": 5 + }, + { + "type": "equation", + "img_path": "images/37fbcdfde36ee82c36ae0c5978be8f6f89cf2deb7357dca8d716f66921914f26.jpg", + "text": "$$\n\\begin{array} { r } { P E _ { ( p o s , 2 i ) } = s i n ( p o s / 1 0 0 0 0 ^ { 2 i / d _ { \\mathrm { m o d e l } } } ) } \\\\ { P E _ { ( p o s , 2 i + 1 ) } = c o s ( p o s / 1 0 0 0 0 ^ { 2 i / d _ { \\mathrm { m o d e l } } } ) } \\end{array}\n$$", + "text_format": "latex", + "page_idx": 5 + }, + { + "type": "text", + "text": "where pos is the position and $i$ is the dimension. That is, each dimension of the positional encoding corresponds to a sinusoid. The wavelengths form a geometric progression from $2 \\pi$ to $1 0 0 0 0 \\cdot 2 \\pi$ . We chose this function because we hypothesized it would allow the model to easily learn to attend by relative positions, since for any fixed offset $k$ , $P E _ { p o s + k }$ can be represented as a linear function of $P E _ { p o s }$ . ", + "page_idx": 5 + }, + { + "type": "text", + "text": "We also experimented with using learned positional embeddings [9] instead, and found that the two versions produced nearly identical results (see Table 3 row (E)). We chose the sinusoidal version because it may allow the model to extrapolate to sequence lengths longer than the ones encountered during training. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "4 Why Self-Attention ", + "text_level": 1, + "page_idx": 5 + }, + { + "type": "text", + "text": "In this section we compare various aspects of self-attention layers to the recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations $( x _ { 1 } , . . . , x _ { n } )$ to another sequence of equal length $\\left( z _ { 1 } , . . . , z _ { n } \\right)$ , with $x _ { i } , z _ { i } \\in \\mathbf { \\bar { \\mathbb { R } } } ^ { d }$ , such as a hidden layer in a typical sequence transduction encoder or decoder. Motivating our use of self-attention we consider three desiderata. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "One is the total computational complexity per layer. Another is the amount of computation that can be parallelized, as measured by the minimum number of sequential operations required. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "The third is the path length between long-range dependencies in the network. Learning long-range dependencies is a key challenge in many sequence transduction tasks. One key factor affecting the ability to learn such dependencies is the length of the paths forward and backward signals have to traverse in the network. The shorter these paths between any combination of positions in the input and output sequences, the easier it is to learn long-range dependencies [12]. Hence we also compare the maximum path length between any two input and output positions in networks composed of the different layer types. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "As noted in Table 1, a self-attention layer connects all positions with a constant number of sequentially executed operations, whereas a recurrent layer requires $O ( n )$ sequential operations. In terms of computational complexity, self-attention layers are faster than recurrent layers when the sequence length $n$ is smaller than the representation dimensionality $d$ , which is most often the case with sentence representations used by state-of-the-art models in machine translations, such as word-piece [38] and byte-pair [31] representations. To improve computational performance for tasks involving very long sequences, self-attention could be restricted to considering only a neighborhood of size $r$ in the input sequence centered around the respective output position. This would increase the maximum path length to $O ( n / r )$ . We plan to investigate this approach further in future work. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "", + "page_idx": 6 + }, + { + "type": "text", + "text": "A single convolutional layer with kernel width $k < n$ does not connect all pairs of input and output positions. Doing so requires a stack of $O ( n / k )$ convolutional layers in the case of contiguous kernels, or $O ( l o g _ { k } ( n ) )$ in the case of dilated convolutions [18], increasing the length of the longest paths between any two positions in the network. Convolutional layers are generally more expensive than recurrent layers, by a factor of $k$ . Separable convolutions [6], however, decrease the complexity considerably, to $\\dot { O ( k \\cdot n \\cdot d + n \\cdot d ^ { 2 } ) }$ . Even with $k = n$ , however, the complexity of a separable convolution is equal to the combination of a self-attention layer and a point-wise feed-forward layer, the approach we take in our model. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "As side benefit, self-attention could yield more interpretable models. We inspect attention distributions from our models and present and discuss examples in the appendix. Not only do individual attention heads clearly learn to perform different tasks, many appear to exhibit behavior related to the syntactic and semantic structure of the sentences. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "5 Training ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "text", + "text": "This section describes the training regime for our models. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "5.1 Training Data and Batching ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "text", + "text": "We trained on the standard WMT 2014 English-German dataset consisting of about 4.5 million sentence pairs. Sentences were encoded using byte-pair encoding [3], which has a shared sourcetarget vocabulary of about 37000 tokens. For English-French, we used the significantly larger WMT 2014 English-French dataset consisting of 36M sentences and split tokens into a 32000 word-piece vocabulary [38]. Sentence pairs were batched together by approximate sequence length. Each training batch contained a set of sentence pairs containing approximately 25000 source tokens and 25000 target tokens. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "5.2 Hardware and Schedule ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "text", + "text": "We trained our models on one machine with 8 NVIDIA P100 GPUs. For our base models using the hyperparameters described throughout the paper, each training step took about 0.4 seconds. We trained the base models for a total of 100,000 steps or 12 hours. For our big models,(described on the bottom line of table 3), step time was 1.0 seconds. The big models were trained for 300,000 steps (3.5 days). ", + "page_idx": 6 + }, + { + "type": "text", + "text": "5.3 Optimizer ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "text", + "text": "We used the Adam optimizer [20] with $\\beta _ { 1 } = 0 . 9$ , $\\beta _ { 2 } = 0 . 9 8$ and $\\epsilon = 1 0 ^ { - 9 }$ . We varied the learning rate over the course of training, according to the formula: ", + "page_idx": 6 + }, + { + "type": "equation", + "img_path": "images/8cc19a6163ad602a7de66b325ff8fbea40471ed4b3ec49564dfd192dfba87789.jpg", + "text": "$$\nl r a t e = d _ { \\mathrm { m o d e l } } ^ { - 0 . 5 } \\cdot \\mathrm { m i n } ( s t e p _ { - } n u m ^ { - 0 . 5 } , s t e p _ { - } n u m \\cdot w a r m u p _ { - } s t e p s ^ { - 1 . 5 } )\n$$", + "text_format": "latex", + "page_idx": 6 + }, + { + "type": "text", + "text": "This corresponds to increasing the learning rate linearly for the first warmup_steps training steps, and decreasing it thereafter proportionally to the inverse square root of the step number. We used warmup_steps $= 4 0 0 0$ . ", + "page_idx": 6 + }, + { + "type": "text", + "text": "5.4 Regularization ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "text", + "text": "We employ three types of regularization during training: ", + "page_idx": 6 + }, + { + "type": "table", + "img_path": "images/cd0a4421da2945d5a7341ad100c15cf9bbf8e764cba890d8062f1c5b78cfdbd6.jpg", + "table_caption": [ + "Table 2: The Transformer achieves better BLEU scores than previous state-of-the-art models on the English-to-German and English-to-French newstest2014 tests at a fraction of the training cost. " + ], + "table_footnote": [], + "table_body": "
ModelBLEUTraining Cost (FLOPs)
EN-DEEN-FREN-DEEN-FR
ByteNet [18]23.75
Deep-Att + PosUnk [39]39.21.0·1020
GNMT + RL [38]24.639.922.3 ·10191.4 ·1020
ConvS2S [9]25.1640.469.6·10181.5·1020
MoE [32]26.0340.562.0·10191.2 ·1020
Deep-Att + PosUnk Ensemble [39]40.48.0.1020
GNMT + RL Ensemble [38]26.3041.161.8·10201.1 ·1021
ConvS2s Ensemble [9]26.3641.297.7.10191.2 ·1021
Transformer (base model)27.338.13.3·1018
Transformer (big)28.441.82.3 ·1019
", + "page_idx": 7 + }, + { + "type": "text", + "text": "Residual Dropout We apply dropout [33] to the output of each sub-layer, before it is added to the sub-layer input and normalized. In addition, we apply dropout to the sums of the embeddings and the positional encodings in both the encoder and decoder stacks. For the base model, we use a rate of $P _ { d r o p } = 0 . 1$ . ", + "page_idx": 7 + }, + { + "type": "text", + "text": "Label Smoothing During training, we employed label smoothing of value $\\epsilon _ { l s } = 0 . 1$ [36]. This hurts perplexity, as the model learns to be more unsure, but improves accuracy and BLEU score. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "6 Results ", + "text_level": 1, + "page_idx": 7 + }, + { + "type": "text", + "text": "6.1 Machine Translation ", + "text_level": 1, + "page_idx": 7 + }, + { + "type": "text", + "text": "On the WMT 2014 English-to-German translation task, the big transformer model (Transformer (big) in Table 2) outperforms the best previously reported models (including ensembles) by more than 2.0 BLEU, establishing a new state-of-the-art BLEU score of 28.4. The configuration of this model is listed in the bottom line of Table 3. Training took 3.5 days on 8 P100 GPUs. Even our base model surpasses all previously published models and ensembles, at a fraction of the training cost of any of the competitive models. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "On the WMT 2014 English-to-French translation task, our big model achieves a BLEU score of 41.0, outperforming all of the previously published single models, at less than $1 / 4$ the training cost of the previous state-of-the-art model. The Transformer (big) model trained for English-to-French used dropout rate $P _ { d r o p } = 0 . 1$ , instead of 0.3. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "For the base models, we used a single model obtained by averaging the last 5 checkpoints, which were written at 10-minute intervals. For the big models, we averaged the last 20 checkpoints. We used beam search with a beam size of 4 and length penalty $\\alpha = 0 . 6$ [38]. These hyperparameters were chosen after experimentation on the development set. We set the maximum output length during inference to input length $+ 5 0$ , but terminate early when possible [38]. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "Table 2 summarizes our results and compares our translation quality and training costs to other model architectures from the literature. We estimate the number of floating point operations used to train a model by multiplying the training time, the number of GPUs used, and an estimate of the sustained single-precision floating-point capacity of each GPU 5. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "6.2 Model Variations ", + "text_level": 1, + "page_idx": 7 + }, + { + "type": "text", + "text": "To evaluate the importance of different components of the Transformer, we varied our base model in different ways, measuring the change in performance on English-to-German translation on the development set, newstest2013. We used beam search as described in the previous section, but no checkpoint averaging. We present these results in Table 3. ", + "page_idx": 7 + }, + { + "type": "table", + "img_path": "images/4d3524092693f111ca77a36e0858169abb8c998e4821ebc2819ecd9a75875a2d.jpg", + "table_caption": [ + "Table 3: Variations on the Transformer architecture. Unlisted values are identical to those of the base model. All metrics are on the English-to-German translation development set, newstest2013. Listed perplexities are per-wordpiece, according to our byte-pair encoding, and should not be compared to per-word perplexities. " + ], + "table_footnote": [], + "table_body": "
N dmodeldffhdkdvPdroptresBLE
base6512 2048864640.10.1100K4.9225.865
(A)15125125.2924.9
46132125.025.8
3216165.0125.4
(B)16325.0625.44860
(C)2486.11 5.1923.7 25.336 50
10244.8825.580
25632 12832 1285.7524.528
10244.6626.0168 53
(D)40965.12 4.7525.4 26.290
0.05.7724.6
0.24.95
0.025.3
(E)positional embedding instead of sinusoids0.25.4725.7
4.92
big6 10244096160.3300K4.3325.7 26.4213
", + "page_idx": 8 + }, + { + "type": "text", + "text": "", + "page_idx": 8 + }, + { + "type": "text", + "text": "In Table 3 rows (A), we vary the number of attention heads and the attention key and value dimensions, keeping the amount of computation constant, as described in Section 3.2.2. While single-head attention is 0.9 BLEU worse than the best setting, quality also drops off with too many heads. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "In Table 3 rows (B), we observe that reducing the attention key size $d _ { k }$ hurts model quality. This suggests that determining compatibility is not easy and that a more sophisticated compatibility function than dot product may be beneficial. We further observe in rows (C) and (D) that, as expected, bigger models are better, and dropout is very helpful in avoiding over-fitting. In row (E) we replace our sinusoidal positional encoding with learned positional embeddings [9], and observe nearly identical results to the base model. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "6.3 English Constituency Parsing ", + "text_level": 1, + "page_idx": 8 + }, + { + "type": "text", + "text": "To evaluate if the Transformer can generalize to other tasks we performed experiments on English constituency parsing. This task presents specific challenges: the output is subject to strong structural constraints and is significantly longer than the input. Furthermore, RNN sequence-to-sequence models have not been able to attain state-of-the-art results in small-data regimes [37]. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "We trained a 4-layer transformer with $d _ { m o d e l } = 1 0 2 4$ on the Wall Street Journal (WSJ) portion of the Penn Treebank [25], about 40K training sentences. We also trained it in a semi-supervised setting, using the larger high-confidence and BerkleyParser corpora from with approximately 17M sentences [37]. We used a vocabulary of 16K tokens for the WSJ only setting and a vocabulary of 32K tokens for the semi-supervised setting. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "We performed only a small number of experiments to select the dropout, both attention and residual (section 5.4), learning rates and beam size on the Section 22 development set, all other parameters remained unchanged from the English-to-German base translation model. During inference, we increased the maximum output length to input length $+ 3 0 0$ . We used a beam size of 21 and $\\alpha = 0 . 3$ for both WSJ only and the semi-supervised setting. ", + "page_idx": 8 + }, + { + "type": "table", + "img_path": "images/8c58a15a8827a45bc4e522076ca7cc039247e2030cf43bfb0fac3dbfd8ddc04b.jpg", + "table_caption": [ + "Table 4: The Transformer generalizes well to English constituency parsing (Results are on Section 23 of WSJ) " + ], + "table_footnote": [], + "table_body": "
ParserTrainingWSJ 23 F1
Vinyals & Kaiser el al. (2014) [37] Petrov et al. (2006) [29]WSJ only, discriminative WSJ only, discriminative88.3 90.4
Zhu et al. (2013) [40]WSJ only, discriminative90.4
Dyer et al. (2016) [8]WSJ only, discriminative91.7
Transformer (4 layers)WSJ only, discriminative91.3
Zhu et al. (2013) [40]semi-supervised91.3
Huang & Harper (2009) [14]semi-supervised91.3
McClosky et al. (2006) [26]semi-supervised92.1
Vinyals & Kaiser el al. (2014) [37]semi-supervised92.1
Transformer (4 layers)semi-supervised92.7
Luong et al. (2015) [23]multi-task93.0
Dyer et al. (2016) [8]generative93.3
", + "page_idx": 9 + }, + { + "type": "text", + "text": "", + "page_idx": 9 + }, + { + "type": "text", + "text": "Our results in Table 4 show that despite the lack of task-specific tuning our model performs surprisingly well, yielding better results than all previously reported models with the exception of the Recurrent Neural Network Grammar [8]. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "In contrast to RNN sequence-to-sequence models [37], the Transformer outperforms the BerkeleyParser [29] even when training only on the WSJ training set of 40K sentences. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "7 Conclusion ", + "text_level": 1, + "page_idx": 9 + }, + { + "type": "text", + "text": "In this work, we presented the Transformer, the first sequence transduction model based entirely on attention, replacing the recurrent layers most commonly used in encoder-decoder architectures with multi-headed self-attention. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "For translation tasks, the Transformer can be trained significantly faster than architectures based on recurrent or convolutional layers. On both WMT 2014 English-to-German and WMT 2014 English-to-French translation tasks, we achieve a new state of the art. In the former task our best model outperforms even all previously reported ensembles. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "We are excited about the future of attention-based models and plan to apply them to other tasks. We plan to extend the Transformer to problems involving input and output modalities other than text and to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs such as images, audio and video. Making generation less sequential is another research goals of ours. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "The code we used to train and evaluate our models is available at https://github.com/ tensorflow/tensor2tensor. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "Acknowledgements We are grateful to Nal Kalchbrenner and Stephan Gouws for their fruitful comments, corrections and inspiration. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "References ", + "text_level": 1, + "page_idx": 9 + }, + { + "type": "text", + "text": "[1] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. \n[2] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. CoRR, abs/1409.0473, 2014. \n[3] Denny Britz, Anna Goldie, Minh-Thang Luong, and Quoc V. Le. Massive exploration of neural machine translation architectures. CoRR, abs/1703.03906, 2017. \n[4] Jianpeng Cheng, Li Dong, and Mirella Lapata. Long short-term memory-networks for machine reading. arXiv preprint arXiv:1601.06733, 2016. \n[5] Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. CoRR, abs/1406.1078, 2014. \n[6] Francois Chollet. Xception: Deep learning with depthwise separable convolutions. arXiv preprint arXiv:1610.02357, 2016. [7] Junyoung Chung, Çaglar Gülçehre, Kyunghyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. CoRR, abs/1412.3555, 2014. \n[8] Chris Dyer, Adhiguna Kuncoro, Miguel Ballesteros, and Noah A. Smith. Recurrent neural network grammars. In Proc. of NAACL, 2016. [9] Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N. Dauphin. Convolutional sequence to sequence learning. arXiv preprint arXiv:1705.03122v2, 2017. \n[10] Alex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013. \n[11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770–778, 2016. \n[12] Sepp Hochreiter, Yoshua Bengio, Paolo Frasconi, and Jürgen Schmidhuber. Gradient flow in recurrent nets: the difficulty of learning long-term dependencies, 2001. \n[13] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. \n[14] Zhongqiang Huang and Mary Harper. Self-training PCFG grammars with latent annotations across languages. In Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, pages 832–841. ACL, August 2009. \n[15] Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. \n[16] Łukasz Kaiser and Samy Bengio. Can active memory replace attention? In Advances in Neural Information Processing Systems, (NIPS), 2016. \n[17] Łukasz Kaiser and Ilya Sutskever. Neural GPUs learn algorithms. In International Conference on Learning Representations (ICLR), 2016. \n[18] Nal Kalchbrenner, Lasse Espeholt, Karen Simonyan, Aaron van den Oord, Alex Graves, and Koray Kavukcuoglu. Neural machine translation in linear time. arXiv preprint arXiv:1610.10099v2, 2017. \n[19] Yoon Kim, Carl Denton, Luong Hoang, and Alexander M. Rush. Structured attention networks. In International Conference on Learning Representations, 2017. \n[20] Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. \n[21] Oleksii Kuchaiev and Boris Ginsburg. Factorization tricks for LSTM networks. arXiv preprint arXiv:1703.10722, 2017. \n[22] Zhouhan Lin, Minwei Feng, Cicero Nogueira dos Santos, Mo Yu, Bing Xiang, Bowen Zhou, and Yoshua Bengio. A structured self-attentive sentence embedding. arXiv preprint arXiv:1703.03130, 2017. \n[23] Minh-Thang Luong, Quoc V. Le, Ilya Sutskever, Oriol Vinyals, and Lukasz Kaiser. Multi-task sequence to sequence learning. arXiv preprint arXiv:1511.06114, 2015. \n[24] Minh-Thang Luong, Hieu Pham, and Christopher D Manning. Effective approaches to attentionbased neural machine translation. arXiv preprint arXiv:1508.04025, 2015. \n[25] Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313–330, 1993. \n[26] David McClosky, Eugene Charniak, and Mark Johnson. Effective self-training for parsing. In Proceedings of the Human Language Technology Conference of the NAACL, Main Conference, pages 152–159. ACL, June 2006. \n[27] Ankur Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. A decomposable attention model. In Empirical Methods in Natural Language Processing, 2016. \n[28] Romain Paulus, Caiming Xiong, and Richard Socher. A deep reinforced model for abstractive summarization. arXiv preprint arXiv:1705.04304, 2017. \n[29] Slav Petrov, Leon Barrett, Romain Thibaux, and Dan Klein. Learning accurate, compact, and interpretable tree annotation. In Proceedings of the 21st International Conference on Computational Linguistics and 44th Annual Meeting of the ACL, pages 433–440. ACL, July 2006. \n[30] Ofir Press and Lior Wolf. Using the output embedding to improve language models. arXiv preprint arXiv:1608.05859, 2016. \n[31] Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. arXiv preprint arXiv:1508.07909, 2015. \n[32] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. arXiv preprint arXiv:1701.06538, 2017. \n[33] Nitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1):1929–1958, 2014. \n[34] Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus. End-to-end memory networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett, editors, Advances in Neural Information Processing Systems 28, pages 2440–2448. Curran Associates, Inc., 2015. \n[35] Ilya Sutskever, Oriol Vinyals, and Quoc VV Le. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems, pages 3104–3112, 2014. \n[36] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. CoRR, abs/1512.00567, 2015. \n[37] Vinyals & Kaiser, Koo, Petrov, Sutskever, and Hinton. Grammar as a foreign language. In Advances in Neural Information Processing Systems, 2015. \n[38] Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016. \n[39] Jie Zhou, Ying Cao, Xuguang Wang, Peng Li, and Wei Xu. Deep recurrent models with fast-forward connections for neural machine translation. CoRR, abs/1606.04199, 2016. \n[40] Muhua Zhu, Yue Zhang, Wenliang Chen, Min Zhang, and Jingbo Zhu. Fast and accurate shift-reduce constituent parsing. In Proceedings of the 51st Annual Meeting of the ACL (Volume 1: Long Papers), pages 434–443. ACL, August 2013. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "", + "page_idx": 10 + }, + { + "type": "text", + "text": "", + "page_idx": 11 + }, + { + "type": "text", + "text": "Attention VisualizationsInput-Input Laye ", + "text_level": 1, + "page_idx": 12 + }, + { + "type": "image", + "img_path": "images/917ac24c29f0775d5cb5b2f649356dd1bbc8895fc520943503e970e3e77a4142.jpg", + "image_caption": [ + "Figure 3: An example of the attention mechanism following long-distance dependencies in the encoder self-attention in layer 5 of 6. Many of the attention heads attend to a distant dependency of the verb ‘making’, completing the phrase ‘making...more difficult’. Attentions here shown only for the word ‘making’. Different colors represent different heads. Best viewed in color. " + ], + "image_footnote": [], + "page_idx": 12 + }, + { + "type": "image", + "img_path": "images/7fb8900db1bef9619da338696033ca846744398e60dea610261f9d7cfc2b5a15.jpg", + "image_caption": [ + "Figure 4: Two attention heads, also in layer 5 of 6, apparently involved in anaphora resolution. Top: Full attentions for head 5. Bottom: Isolated attentions from just the word ‘its’ for attention heads 5 and 6. Note that the attentions are very sharp for this word. " + ], + "image_footnote": [], + "page_idx": 13 + }, + { + "type": "image", + "img_path": "images/4ff785d908d5e376f8a96720f1bb63fd84c2a5d387e0b90457a10613fa4cf028.jpg", + "image_caption": [ + "Figure 5: Many of the attention heads exhibit behaviour that seems related to the structure of the sentence. We give two such examples above, from two different heads from the encoder self-attention at layer 5 of 6. The heads clearly learned to perform different tasks. " + ], + "image_footnote": [], + "page_idx": 14 + } +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/37fbcdfde36ee82c36ae0c5978be8f6f89cf2deb7357dca8d716f66921914f26.jpg b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/37fbcdfde36ee82c36ae0c5978be8f6f89cf2deb7357dca8d716f66921914f26.jpg new file mode 100644 index 0000000000000000000000000000000000000000..edd4ac4d4acf13d2d15b3d8cf032e13d783f5b64 Binary files /dev/null and b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/37fbcdfde36ee82c36ae0c5978be8f6f89cf2deb7357dca8d716f66921914f26.jpg differ diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/4d3524092693f111ca77a36e0858169abb8c998e4821ebc2819ecd9a75875a2d.jpg b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/4d3524092693f111ca77a36e0858169abb8c998e4821ebc2819ecd9a75875a2d.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8263ddc27d0207ecf8756ef61aaa014eb015331a Binary files /dev/null and b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/4d3524092693f111ca77a36e0858169abb8c998e4821ebc2819ecd9a75875a2d.jpg differ diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/4ff785d908d5e376f8a96720f1bb63fd84c2a5d387e0b90457a10613fa4cf028.jpg b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/4ff785d908d5e376f8a96720f1bb63fd84c2a5d387e0b90457a10613fa4cf028.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d28206cf90f374d56849766b070de2bb597e3649 --- /dev/null +++ b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/4ff785d908d5e376f8a96720f1bb63fd84c2a5d387e0b90457a10613fa4cf028.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b15028b9c1055e509ed4c69da25e0cf04b4416abc08252ed97e4d40508aa74d5 +size 144871 diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/7fb8900db1bef9619da338696033ca846744398e60dea610261f9d7cfc2b5a15.jpg b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/7fb8900db1bef9619da338696033ca846744398e60dea610261f9d7cfc2b5a15.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c832bae72628d28d48a7b31dabc2f22d720473ae --- /dev/null +++ b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/7fb8900db1bef9619da338696033ca846744398e60dea610261f9d7cfc2b5a15.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1509d31c5dcd4c28eec877ee9cfc60f0fe2a7ca0ffb7502907fa137b7ff91bf0 +size 111904 diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/83659013bee7db4de0b109708902294b8df739cc1a706ad1681aaeee9f6b35ae.jpg b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/83659013bee7db4de0b109708902294b8df739cc1a706ad1681aaeee9f6b35ae.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f3538a51761b13c020c93c625b10453829888882 Binary files /dev/null and b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/83659013bee7db4de0b109708902294b8df739cc1a706ad1681aaeee9f6b35ae.jpg differ diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/8c58a15a8827a45bc4e522076ca7cc039247e2030cf43bfb0fac3dbfd8ddc04b.jpg b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/8c58a15a8827a45bc4e522076ca7cc039247e2030cf43bfb0fac3dbfd8ddc04b.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e3ba52a57dcef89d10769927bcf9f3f5771134c2 Binary files /dev/null and b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/8c58a15a8827a45bc4e522076ca7cc039247e2030cf43bfb0fac3dbfd8ddc04b.jpg differ diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/8cc19a6163ad602a7de66b325ff8fbea40471ed4b3ec49564dfd192dfba87789.jpg b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/8cc19a6163ad602a7de66b325ff8fbea40471ed4b3ec49564dfd192dfba87789.jpg new file mode 100644 index 0000000000000000000000000000000000000000..de83fd069e1185f44a99ba04b6f3e907f94a08a3 Binary files /dev/null and b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/8cc19a6163ad602a7de66b325ff8fbea40471ed4b3ec49564dfd192dfba87789.jpg differ diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/917ac24c29f0775d5cb5b2f649356dd1bbc8895fc520943503e970e3e77a4142.jpg b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/917ac24c29f0775d5cb5b2f649356dd1bbc8895fc520943503e970e3e77a4142.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8c64f7ffa663e5d750a4729fa34d926a90b39dde Binary files /dev/null and b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/917ac24c29f0775d5cb5b2f649356dd1bbc8895fc520943503e970e3e77a4142.jpg differ diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/9fb387c348125416ffd60e9fc8ccf508506adafa2cad0d31cf3e96674ba001c2.jpg b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/9fb387c348125416ffd60e9fc8ccf508506adafa2cad0d31cf3e96674ba001c2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..afe3c1e0379f7cb5151bc1e3099e32ef63d157ea Binary files /dev/null and b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/9fb387c348125416ffd60e9fc8ccf508506adafa2cad0d31cf3e96674ba001c2.jpg differ diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/a27f213e85924f6d1a817fb01632ac7bd5fb8937234d50c8f707120e46dbcc9a.jpg b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/a27f213e85924f6d1a817fb01632ac7bd5fb8937234d50c8f707120e46dbcc9a.jpg new file mode 100644 index 0000000000000000000000000000000000000000..194c15305914c29a3e2b5fa2a530b72e445e7d88 Binary files /dev/null and b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/a27f213e85924f6d1a817fb01632ac7bd5fb8937234d50c8f707120e46dbcc9a.jpg differ diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/af855240f9b9309607f19bbbc1d98f7b6fc795b504c1826e18f974c90887b7a2.jpg b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/af855240f9b9309607f19bbbc1d98f7b6fc795b504c1826e18f974c90887b7a2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2c402b5236149e753c3e4739bb276dba8f130dce Binary files /dev/null and b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/af855240f9b9309607f19bbbc1d98f7b6fc795b504c1826e18f974c90887b7a2.jpg differ diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/cd0a4421da2945d5a7341ad100c15cf9bbf8e764cba890d8062f1c5b78cfdbd6.jpg b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/cd0a4421da2945d5a7341ad100c15cf9bbf8e764cba890d8062f1c5b78cfdbd6.jpg new file mode 100644 index 0000000000000000000000000000000000000000..52d799b82c62a57db22521d7e7f6062af590ddc4 Binary files /dev/null and b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/cd0a4421da2945d5a7341ad100c15cf9bbf8e764cba890d8062f1c5b78cfdbd6.jpg differ diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/d1ccfcf4f90943c11096f884fe3c695d1add8f2371e82ed9b9ca7397342d195c.jpg b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/d1ccfcf4f90943c11096f884fe3c695d1add8f2371e82ed9b9ca7397342d195c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..54c6560346a9065be731278c145f4cae6680a3e5 Binary files /dev/null and b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/d1ccfcf4f90943c11096f884fe3c695d1add8f2371e82ed9b9ca7397342d195c.jpg differ diff --git a/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/fa4d419cfea34c8f47c887215cd957fb249cbf7890eaeee2ed5ab97bfe132b8f.jpg b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/fa4d419cfea34c8f47c887215cd957fb249cbf7890eaeee2ed5ab97bfe132b8f.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8bd803f68a1824cc9007b2ff0b7b42a3fc6189be Binary files /dev/null and b/backend/ingestion_pipeline/output/Attention Is All You Need/auto/images/fa4d419cfea34c8f47c887215cd957fb249cbf7890eaeee2ed5ab97bfe132b8f.jpg differ diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md new file mode 100644 index 0000000000000000000000000000000000000000..c51e13aadabe9efc54b2a0c619409dd4ac0166fd --- /dev/null +++ b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md @@ -0,0 +1,69 @@ +# BILLING DISPUTE ADJUSTMENT PROCESS FLOW + +# Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 + +![This image is a **moderate complexity** flowchart detailing the "Billing Dispute Adjustment Process Flow." It outlines the steps and responsibilities of various departments, including Customer, Sales, SBP (Business Finance), and Dispute Management. The process begins with the customer notifying a dispute and progresses through validation, investigation, proposal preparation, and potential approval or rejection, ultimately leading to an end state of verified adjustment. Key decision points like "Valid?" and "Complete?" guide the flow, with specific actions and documentation requirements listed for each stage. The flowchart also incorporates timeline indicators and notes regarding resolution periods and approval requirements.](images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg) + +# Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 + +![This image is a **moderate complexity** flowchart detailing the "Billing Dispute Adjustment Process Flow for Voice." It outlines a multi-stage process involving Customer, Sales, RRM, and Dispute Management/Business Finance departments. The flow begins with the customer notifying a dispute and progresses through investigation, validation, preparation of proposals, committee sittings (BACR), and ultimately to adjustment form preparation and finalization, with defined timelines for each stage. Key decision points, such as dispute validity and BACR approval, are clearly indicated.](images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg) + +•Escalation Process based on Deadline + +
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2More than 7 DaysGMAGM
3More than 14 DaysVPVP
+ +Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) + +•Escalation Process based on Aging + +
ItemAging Time LineLevel of escalation in SalesLevel of escalation in DM
130 to 60 DaysAGMManager
2More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
+ +Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : + +
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4QuarterlyVPReport of the POD status update & escalation if 'on 4rd week of last month of the quarter
+ +![This image is a timeline illustrating the billing dispute adjustment process for voice. It begins in June 2020 with the completion of the first draft of the RRM process for Voice. Key milestones include reviewing the first draft in July 2020, synchronizing and finalizing the second draft in August 2020, obtaining approval from BC Sales, RRM, and SBP in September/October 2020, and awareness and endorsement circulation in November 2020. The process concludes with the sign-off of documentation in March 2021, subject to the finalization of the Dispute Policy, and a review of effectiveness in Q1 2021.](images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg) + +MILESTONE FOR PROCESS IMPROVEMENT + +![This image is a simple graphic depicting a folded map with a red location pin prominently placed on it. The map shows stylized roads and geographical features like water bodies and land areas. The overall visual suggests a focus on location or navigation. Given the document context "Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021," this icon likely serves as a visual cue related to location-based services or billing adjustments tied to specific geographic areas or service locations.](images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg) + +Jun 2020 + +# Progress Tracking + +
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020V
2.Reviewed 1st draft for Data with SBP.23 July 2020√
3.Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020√
4. Sync and finalized with Internal DM√
Obtain green light from stakeholders BC SalesSeptember/October 2020√
ORRM
5.。SBP
Awareness to
o International Sales4 November 2020√
o Awareness to Malaysian Carrier Sales9 November 2020V
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
+ +# Jointly Prepared and Proposed By: + +![This image is a simple representation of a signature. It appears to be a handwritten mark, likely serving as an authentication or approval within the document context of "Jointly Prepared and Proposed By:". The signature is composed of flowing lines, with a distinct loop and a final flourish.](images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg) + +![The image is a simple, handwritten signature or mark. It consists of a series of connected lines and loops, with a central element that appears to be a stylized letter or symbol. The overall impression is that of a unique identifier, likely serving as a signature for the "Jointly Prepared and Proposed By" section of a document.](images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg) + +Irna Binti Ibrahim +Manager Dispute International 2 +Date: 17/03/2021 + +![This image is a simple representation of a handwritten signature. It features a stylized cursive script, likely representing a person's name, positioned against a plain white background. The signature is rendered in a light gray line, suggesting it's a scanned or digitally captured autograph. Within the context of a document, this signature would serve as an official mark of approval or authorship.](images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg) + +Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 + +Roshani Binti Yahya +Manager Dispute International 1 +Date: 17/03/2021 + +Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 + +Reviewed By: + +![This image contains a handwritten signature that reads "Norma Ahmad". Given its simplicity and the context of a signature within a document, it is classified as a **Simple** complexity image. The signature serves to identify an individual associated with the "Jointly Prepared and Proposed By" section of the document.](images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg) + +Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 + +Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 + +# Approved By: + +![This image is a simple representation of a handwritten signature. It consists of a single, flowing line that forms a stylized mark, likely serving as an approval or authorization within a document. The signature is presented in black ink on a white background, with no other discernible text or graphical elements.](images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg) + +Nazidah Binti Ahmad Azli Head Business Finance Date: \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup new file mode 100644 index 0000000000000000000000000000000000000000..6307981426d61e5c363b1b26b82d485bf5b5db9f --- /dev/null +++ b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup @@ -0,0 +1,69 @@ +# BILLING DISPUTE ADJUSTMENT PROCESS FLOW + +# Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 + +![](images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg) + +# Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 + +![](images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg) + +•Escalation Process based on Deadline + +
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2More than 7 DaysGMAGM
3More than 14 DaysVPVP
+ +Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) + +•Escalation Process based on Aging + +
ItemAging Time LineLevel of escalation in SalesLevel of escalation in DM
130 to 60 DaysAGMManager
2More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
+ +Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : + +
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4QuarterlyVPReport of the POD status update & escalation if 'on 4rd week of last month of the quarter
+ +![](images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg) + +MILESTONE FOR PROCESS IMPROVEMENT + +![](images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg) + +Jun 2020 + +# Progress Tracking + +
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020V
2.Reviewed 1st draft for Data with SBP.23 July 2020√
3.Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020√
4. Sync and finalized with Internal DM√
Obtain green light from stakeholders BC SalesSeptember/October 2020√
ORRM
5.。SBP
Awareness to
o International Sales4 November 2020√
o Awareness to Malaysian Carrier Sales9 November 2020V
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
+ +# Jointly Prepared and Proposed By: + +![](images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg) + +![](images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg) + +Irna Binti Ibrahim +Manager Dispute International 2 +Date: 17/03/2021 + +![](images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg) + +Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 + +Roshani Binti Yahya +Manager Dispute International 1 +Date: 17/03/2021 + +Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 + +Reviewed By: + +![](images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg) + +Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 + +Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 + +# Approved By: + +![](images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg) + +Nazidah Binti Ahmad Azli Head Business Finance Date: \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..cf82b280c1b303e97be9b7ef4204abbcee60b7b5 --- /dev/null +++ b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json @@ -0,0 +1,194 @@ +[ + { + "type": "text", + "text": "BILLING DISPUTE ADJUSTMENT PROCESS FLOW ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 ", + "text_level": 1, + "page_idx": 1 + }, + { + "type": "image", + "img_path": "images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 1 + }, + { + "type": "text", + "text": "Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 ", + "text_level": 1, + "page_idx": 2 + }, + { + "type": "image", + "img_path": "images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 2 + }, + { + "type": "table", + "img_path": "images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg", + "table_caption": [ + "•Escalation Process based on Deadline " + ], + "table_footnote": [ + "Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) " + ], + "table_body": "
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2More than 7 DaysGMAGM
3More than 14 DaysVPVP
", + "page_idx": 3 + }, + { + "type": "table", + "img_path": "images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg", + "table_caption": [ + "•Escalation Process based on Aging " + ], + "table_footnote": [], + "table_body": "
ItemAging Time LineLevel of escalation in SalesLevel of escalation in DM
130 to 60 DaysAGMManager
2More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
", + "page_idx": 3 + }, + { + "type": "text", + "text": "Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : ", + "page_idx": 3 + }, + { + "type": "table", + "img_path": "images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4QuarterlyVPReport of the POD status update & escalation if 'on 4rd week of last month of the quarter
", + "page_idx": 3 + }, + { + "type": "image", + "img_path": "images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 4 + }, + { + "type": "text", + "text": "MILESTONE FOR PROCESS IMPROVEMENT ", + "page_idx": 4 + }, + { + "type": "image", + "img_path": "images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 4 + }, + { + "type": "text", + "text": "Jun 2020 ", + "page_idx": 4 + }, + { + "type": "text", + "text": "Progress Tracking ", + "text_level": 1, + "page_idx": 5 + }, + { + "type": "table", + "img_path": "images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020V
2.Reviewed 1st draft for Data with SBP.23 July 2020√
3.Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020√
4. Sync and finalized with Internal DM√
Obtain green light from stakeholders BC SalesSeptember/October 2020√
ORRM
5.。SBP
Awareness to
o International Sales4 November 2020√
o Awareness to Malaysian Carrier Sales9 November 2020V
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
", + "page_idx": 5 + }, + { + "type": "text", + "text": "Jointly Prepared and Proposed By: ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Irna Binti Ibrahim \nManager Dispute International 2 \nDate: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Roshani Binti Yahya \nManager Dispute International 1 \nDate: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Reviewed By: ", + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Approved By: ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Nazidah Binti Ahmad Azli Head Business Finance Date: ", + "page_idx": 6 + } +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bfc3376d2c7cd24be8bfee072f3e5cd4cb8cf0e4 Binary files /dev/null and b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg differ diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f0ec5b2f913b19171b0b9c923e8592dd64877dee --- /dev/null +++ b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f32a9542c9ee33a12296323c5df1797a00410977607ff8af4b4ec37bd4453d50 +size 114207 diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1859e4331befa53741151d06c4ee70166fc79ef3 Binary files /dev/null and b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg differ diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg new file mode 100644 index 0000000000000000000000000000000000000000..149436559d9871438d0d8078ae550e9561dbe84b --- /dev/null +++ b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b61835ee583bde760c61e0f3add80c933201635298fcc77fd3d79bbe6dff87f +size 408638 diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5ef91f59b8c6e4fd9fd6d13f7383c252e5e4c72f Binary files /dev/null and b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg differ diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9eb1a1537c09144a02368e60e774c21e7fd03cb6 Binary files /dev/null and b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg differ diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg new file mode 100644 index 0000000000000000000000000000000000000000..77d9509c3c88e5fc38e3eb1e7d88dab79d452f47 --- /dev/null +++ b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71b8a33acf98bd7059ef50abc62bb6843328ac09bf01dbbc9924e09d9541ab3a +size 325091 diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg new file mode 100644 index 0000000000000000000000000000000000000000..db805c2f69c85f730af6cd721583a52786e694f2 Binary files /dev/null and b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg differ diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..35bf0a4b70c5fb982e75817512177defd2d3cca6 Binary files /dev/null and b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg differ diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6c8e538246912d6d7af07d3e422ebf0cc2fbd35f Binary files /dev/null and b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg differ diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg new file mode 100644 index 0000000000000000000000000000000000000000..272ff1ea13a2dbf98717498a1fd4f91417625380 --- /dev/null +++ b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86283025b05afb09e1204921928be01b93214d021f5858a8b465e4467a866db9 +size 224700 diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3842d78b2ae939b8d5ef8e4a2874fca22f8303a3 Binary files /dev/null and b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg differ diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..dcefe49c8c90aeecfc10d9faefb976b56796cc2a Binary files /dev/null and b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg differ diff --git a/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1e52b7385279f68ce6ce3488bb820a064dd84666 Binary files /dev/null and b/backend/ingestion_pipeline/output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/Communication-Efficient Learning of Deep Networks.md b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/Communication-Efficient Learning of Deep Networks.md new file mode 100644 index 0000000000000000000000000000000000000000..21ddecb263f3615e4c637da39ca8732fe28556e7 --- /dev/null +++ b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/Communication-Efficient Learning of Deep Networks.md @@ -0,0 +1,231 @@ +# Communication-Efficient Learning of Deep Networks from Decentralized Data + +# H. Brendan McMahan + +Eider Moore Daniel Ramage Seth Hampson Google, Inc., 651 N 34th St., Seattle, WA 98103 USA + +Blaise Aguera y Arcas ¨ + +# Abstract + +Modern mobile devices have access to a wealth of data suitable for learning models, which in turn can greatly improve the user experience on the device. For example, language models can improve speech recognition and text entry, and image models can automatically select good photos. However, this rich data is often privacy sensitive, large in quantity, or both, which may preclude logging to the data center and training there using conventional approaches. We advocate an alternative that leaves the training data distributed on the mobile devices, and learns a shared model by aggregating locally-computed updates. We term this decentralized approach Federated Learning. + +We present a practical method for the federated learning of deep networks based on iterative model averaging, and conduct an extensive empirical evaluation, considering five different model architectures and four datasets. These experiments demonstrate the approach is robust to the unbalanced and non-IID data distributions that are a defining characteristic of this setting. Communication costs are the principal constraint, and we show a reduction in required communication rounds by $1 0 { - } 1 0 0 \times$ as compared to synchronized stochastic gradient descent. + +# 1 Introduction + +Increasingly, phones and tablets are the primary computing devices for many people [30, 2]. The powerful sensors on these devices (including cameras, microphones, and GPS), combined with the fact they are frequently carried, means they have access to an unprecedented amount of data, much of it private in nature. Models learned on such data hold the promise of greatly improving usability by powering more intelligent applications, but the sensitive nature of the data means there are risks and responsibilities to storing it in a centralized location. + +We investigate a learning technique that allows users to collectively reap the benefits of shared models trained from this rich data, without the need to centrally store it. We term our approach Federated Learning, since the learning task is solved by a loose federation of participating devices (which we refer to as clients) which are coordinated by a central server. Each client has a local training dataset which is never uploaded to the server. Instead, each client computes an update to the current global model maintained by the server, and only this update is communicated. This is a direct application of the principle of focused collection or data minimization proposed by the 2012 White House report on privacy of consumer data [39]. Since these updates are specific to improving the current model, there is no reason to store them once they have been applied. + +A principal advantage of this approach is the decoupling of model training from the need for direct access to the raw training data. Clearly, some trust of the server coordinating the training is still required. However, for applications where the training objective can be specified on the basis of data available on each client, federated learning can significantly reduce privacy and security risks by limiting the attack surface to only the device, rather than the device and the cloud. + +Our primary contributions are 1) the identification of the problem of training on decentralized data from mobile devices as an important research direction; 2) the selection of a straightforward and practical algorithm that can be applied to this setting; and 3) an extensive empirical evaluation of the proposed approach. More concretely, we introduce the FederatedAveraging algorithm, which combines local stochastic gradient descent (SGD) on each client with a server that performs model averaging. We perform extensive experiments on this algorithm, demonstrating it is robust to unbalanced and non-IID data distributions, and can reduce the rounds of communication needed to train a deep network on decentralized data by orders of magnitude. + +Federated Learning Ideal problems for federated learning have the following properties: 1) Training on real-world data from mobile devices provides a distinct advantage over training on proxy data that is generally available in the data center. 2) This data is privacy sensitive or large in size (compared to the size of the model), so it is preferable not to log it to the data center purely for the purpose of model training (in service of the focused collection principle). 3) For supervised tasks, labels on the data can be inferred naturally from user interaction. + +mation than the raw training data (by the data processing inequality), and will generally contain much less. Further, the source of the updates is not needed by the aggregation algorithm, so updates can be transmitted without identifying meta-data over a mix network such as Tor [7] or via a trusted third party. We briefly discuss the possibility of combining federated learning with secure multiparty computation and differential privacy at the end of the paper. + +Many models that power intelligent behavior on mobile devices fit the above criteria. As two examples, we consider image classification, for example predicting which photos are most likely to be viewed multiple times in the future, or shared; and language models, which can be used to improve voice recognition and text entry on touch-screen keyboards by improving decoding, next-word-prediction, and even predicting whole replies [10]. The potential training data for both these tasks (all the photos a user takes and everything they type on their mobile keyboard, including passwords, URLs, messages, etc.) can be privacy sensitive. The distributions from which these examples are drawn are also likely to differ substantially from easily available proxy datasets: the use of language in chat and text messages is generally much different than standard language corpora, e.g., Wikipedia and other web documents; the photos people take on their phone are likely quite different than typical Flickr photos. And finally, the labels for these problems are directly available: entered text is self-labeled for learning a language model, and photo labels can be defined by natural user interaction with their photo app (which photos are deleted, shared, or viewed). + +Both of these tasks are well-suited to learning a neural network. For image classification feed-forward deep networks, and in particular convolutional networks, are well-known to provide state-of-the-art results [26, 25]. For language modeling tasks recurrent neural networks, and in particular LSTMs, have achieved state-of-the-art results [20, 5, 22]. + +Federated Optimization We refer to the optimization problem implicit in federated learning as federated optimization, drawing a connection (and contrast) to distributed optimization. Federated optimization has several key properties that differentiate it from a typical distributed optimization problem: + +• Non-IID The training data on a given client is typically based on the usage of the mobile device by a particular user, and hence any particular user’s local dataset will not be representative of the population distribution. • Unbalanced Similarly, some users will make much heavier use of the service or app than others, leading to varying amounts of local training data. • Massively distributed We expect the number of clients participating in an optimization to be much larger than the average number of examples per client. • Limited communication Mobile devices are frequently offline or on slow or expensive connections. + +In this work, our emphasis is on the non-IID and unbalanced properties of the optimization, as well as the critical nature of the communication constraints. A deployed federated optimization system must also address a myriad of practical issues: client datasets that change as data is added and deleted; client availability that correlates with the local data distribution in complex ways (e.g., phones from speakers of American English will likely be plugged in at different times than speakers of British English); and clients that never respond or send corrupted updates. + +Privacy Federated learning has distinct privacy advantages compared to data center training on persisted data. Holding even an “anonymized” dataset can still put user privacy at risk via joins with other data [37]. In contrast, the information transmitted for federated learning is the minimal update necessary to improve a particular model (naturally, the strength of the privacy benefit depends on the content of the updates).1 The updates themselves can (and should) be ephemeral. They will never contain more infor + +These issues are beyond the scope of the current work; instead, we use a controlled environment that is suitable for experiments, but still addresses the key issues of client availability and unbalanced and non-IID data. We assume a synchronous update scheme that proceeds in rounds of communication. There is a fixed set of $K$ clients, each with a fixed local dataset. At the beginning of each round, a random fraction $C$ of clients is selected, and the server sends the current global algorithm state to each of these clients (e.g., the current model parameters). We only select a fraction of clients for efficiency, as our experiments show diminishing returns for adding more clients beyond a certain point. Each selected client then performs local computation based on the global state and its local dataset, and sends an update to the server. The server then applies these updates to its global state, and the process repeats. + +While we focus on non-convex neural network objectives, the algorithm we consider is applicable to any finite-sum objective of the form + +$$ +\operatorname* { m i n } _ { w \in \mathbb { R } ^ { d } } f ( w ) \qquad \mathrm { w h e r e } \qquad f ( w ) \stackrel { \mathrm { d e f } } { = } \frac 1 n \sum _ { i = 1 } ^ { n } f _ { i } ( w ) . +$$ + +For a machine learning problem, we typically take $f _ { i } ( w ) =$ $\ell ( x _ { i } , y _ { i } ; w )$ , that is, the loss of the prediction on example $( x _ { i } , y _ { i } )$ made with model parameters $w$ . We assume there are $K$ clients over which the data is partitioned, with $\mathcal { P } _ { k }$ the set of indexes of data points on client $k$ , with $n _ { k } = | \mathcal { P } _ { k } |$ Thus, we can re-write the objective (1) as + +$$ +f ( w ) = \sum _ { k = 1 } ^ { K } { \frac { n _ { k } } { n } } F _ { k } ( w ) \quad { \mathrm { w h e r e } } \quad F _ { k } ( w ) = { \frac { 1 } { n _ { k } } } \sum _ { i \in \mathcal { P } _ { k } } f _ { i } ( w ) . +$$ + +If the partition $\mathcal { P } _ { k }$ was formed by distributing the training examples over the clients uniformly at random, then we would have $\mathbb { E } p _ { k } [ F _ { k } ( w ) ] = f ( w )$ , where the expectation is over the set of examples assigned to a fixed client $k$ . This is the IID assumption typically made by distributed optimization algorithms; we refer to the case where this does not hold (that is, $F _ { k }$ could be an arbitrarily bad approximation to $f$ ) as the non-IID setting. + +In data center optimization, communication costs are relatively small, and computational costs dominate, with much of the recent emphasis being on using GPUs to lower these costs. In contrast, in federated optimization communication costs dominate — we will typically be limited by an upload bandwidth of $1 \ : \mathrm { M B / s }$ or less. Further, clients will typically only volunteer to participate in the optimization when they are charged, plugged-in, and on an unmetered wi-fi connection. Further, we expect each client will only participate in a small number of update rounds per day. On the other hand, since any single on-device dataset is small compared to the total dataset size, and modern smartphones have relatively fast processors (including GPUs), computation becomes essentially free compared to communication costs for many model types. Thus, our goal is to use additional computation in order to decrease the number of rounds of communication needed to train a model. There are two primary ways we can add computation: 1) increased parallelism, where we use more clients working independently between each communication round; and, 2) increased computation on each client, where rather than performing a simple computation like a gradient calculation, each client performs a more complex calculation between each communication round. We investigate both of these approaches, but the speedups we achieve are due primarily to adding more computation on each client, once a minimum level of parallelism over clients is used. + +Related Work Distributed training by iteratively averaging locally trained models has been studied by McDonald et al. [28] for the perceptron and Povey et al. [31] for speech recognition DNNs. Zhang et al. [42] studies an asynchronous approach with “soft” averaging. These works only consider the cluster / data center setting (at most 16 workers, wall-clock time based on fast networks), and do not consider datasets that are unbalanced and non-IID, properties that are essential to the federated learning setting. We adapt this style of algorithm to the federated setting and perform the appropriate empirical evaluation, which asks different questions than those relevant in the data center setting, and requires different methodology. + +Using similar motivation to ours, Neverova et al. [29] also discusses the advantages of keeping sensitive user data on device. The work of Shokri and Shmatikov [35] is related in several ways: they focus on training deep networks, emphasize the importance of privacy, and address communication costs by only sharing a subset of the parameters during each round of communication; however, they also do not consider unbalanced and non-IID data, and the empirical evaluation is limited. + +In the convex setting, the problem of distributed optimization and estimation has received significant attention [4, 15, 33], and some algorithms do focus specifically on communication efficiency [45, 34, 40, 27, 43]. In addition to assuming convexity, this existing work generally requires that the number of clients is much smaller than the number of examples per client, that the data is distributed across the clients in IID fashion, and that each node has an identical number of data points — all of these assumptions are violated in the federated optimization setting. Asynchronous distributed forms of SGD have also been applied to training neural networks, e.g., Dean et al. [12], but these approaches require a prohibitive number of updates in the federated setting. Distributed consensus algorithms (e.g., [41]) relax the IID assumption, but are still not a good fit for communication-constrained optimization over very many clients. + +One endpoint of the (parameterized) algorithm family we consider is simple one-shot averaging, where each client solves for the model that minimizes (possibly regularized) loss on their local data, and these models are averaged to produce the final global model. This approach has been studied extensively in the convex case with IID data, and it is known that in the worst-case, the global model produced is no better than training a model on a single client [44, 3, 46]. + +# 2 The FederatedAveraging Algorithm + +The recent multitude of successful applications of deep learning have almost exclusively relied on variants of stochastic gradient descent (SGD) for optimization; in fact, many advances can be understood as adapting the structure of the model (and hence the loss function) to be more amenable to optimization by simple gradient-based methods [16]. Thus, it is natural that we build algorithms for federated optimization by starting from SGD. + +SGD can be applied naively to the federated optimization problem, where a single batch gradient calculation (say on a randomly selected client) is done per round of communication. This approach is computationally efficient, but requires very large numbers of rounds of training to produce good models (e.g., even using an advanced approach like batch normalization, Ioffe and Szegedy [21] trained MNIST for 50000 steps on minibatches of size 60). We consider this baseline in our CIFAR-10 experiments. + +In the federated setting, there is little cost in wall-clock time to involving more clients, and so for our baseline we use large-batch synchronous SGD; experiments by Chen et al. [8] show this approach is state-of-the-art in the data center setting, where it outperforms asynchronous approaches. To apply this approach in the federated setting, we select a $C$ fraction of clients on each round, and compute the gradient of the loss over all the data held by these clients. Thus, $C$ controls the global batch size, with $C = 1$ corresponding to full-batch (non-stochastic) gradient descent.2 We refer to this baseline algorithm as FederatedSGD (or FedSGD). + +![This image displays two plots comparing the loss of averaged models under different initialization conditions. The left plot, "Independent initialization," shows a U-shaped curve peaking around $\theta=0.6$ with a minimum loss of approximately 0.42. The right plot, "Common initialization," also shows a U-shaped curve, but with a significantly lower minimum loss of approximately 0.39, and a much shallower peak. Both plots illustrate the loss as a function of mixing weight $\theta$ ranging from -0.2 to 1.2, with horizontal lines indicating the best loss of the parent models. The common initialization results in a substantially lower loss on the total training set compared to independent initialization.](images/abd625cb80b14f798d71821f61cb8ba70938de7f3008712e342915017c27000d.jpg) +Figure 1: The loss on the full MNIST training set for models generated by averaging the parameters of two models $w$ and $w ^ { \prime }$ using $\theta w + ( 1 - \theta ) w ^ { \prime }$ for 50 evenly spaced values $\theta \in [ - 0 . 2 , 1 . 2 ]$ .The models $w$ and $w ^ { \prime }$ were trained using SGD on different small datasets. For the left plot, $w$ and $w ^ { \prime }$ were initialized using different random seeds; for the right plot, a shared seed was used. Note the different $y$ -axis scales. The horizontal line gives the best loss achieved by $w$ or $w ^ { \prime }$ (which were quite close, corresponding to the vertical lines at $\theta = 0$ and $\theta = 1$ ). With shared initialization, averaging the models produces a significant reduction in the loss on the total training set (much better than the loss of either parent model). + +A typical implementation of FedSGD with $C = 1$ and a fixed learning rate $\eta$ has each client $k$ compute $g _ { k } =$ $\nabla F _ { k } ( w _ { t } )$ , the average gradient on its local data at the current model and ap $w _ { t }$ , and the centes the update dients, since $\begin{array} { r } { w _ { t + 1 } w _ { t } - \eta \sum _ { k = 1 } ^ { K } \frac { n _ { k } } { n } g _ { k } } \end{array}$ $\forall k , \ w _ { t + 1 } ^ { k } \gets w _ { t } - \eta g _ { k }$ $\begin{array} { r } { \sum _ { k = 1 } ^ { K } \frac { n _ { k } } { n } g _ { k } = \nabla f ( w _ { t } ) } \end{array}$ . An equivalent update is given by and then $\begin{array} { r } { w _ { t + 1 } \gets \sum _ { k = 1 } ^ { K } \frac { n _ { k } } { n } w _ { t + 1 } ^ { k } } \end{array}$ That is, each client locally takes one step of gradient descent on the current model using its local data, and the server then takes a weighted average of the resulting models. Once the algorithm is written this way, we can add more computation to each client by iterating the local update $w ^ { k } w ^ { k } - \eta \nabla F _ { k } ( w ^ { k } )$ multiple times before the averaging step. We term this approach FederatedAveraging (or FedAvg). The amount of computation is controlled by three key parameters: $C$ , the fraction of clients that perform computation on each round; $E$ , then number of training passes each client makes over its local dataset on each round; and $B$ , the local minibatch size used for the client updates. We write $B = \infty$ to indicate that the full local dataset is treated as a single minibatch. Thus, at one endpoint of this algorithm family, we can take $B = \infty$ and $E = 1$ which corresponds exactly to FedSGD. For a client with $n _ { k }$ local examples, the number of local updates per round is given by $\begin{array} { r } { u _ { k } = E \frac { n _ { k } } { B } } \end{array}$ ; Complete pseudo-code is given in Algorithm 1. + +For general non-convex objectives, averaging models in parameter space could produce an arbitrarily bad model. + +Following the approach of Goodfellow et al. [17], we see exactly this bad behavior when we average two MNIST digit-recognition models3 trained from different initial conditions (Figure 1, left). For this figure, the parent models $w$ and $w ^ { \prime }$ were each trained on non-overlapping IID samples of 600 examples from the MNIST training set. Training was via SGD with a fixed learning rate of 0.1 for 240 updates on minibatches of size 50 (or $E = 2 0$ passes over the mini-datasets of size 600). This is approximately the amount of training where the models begin to overfit their local datasets. + +Recent work indicates that in practice, the loss surfaces of sufficiently over-parameterized NNs are surprisingly wellbehaved and in particular less prone to bad local minima than previously thought [11, 17, 9]. And indeed, when we start two models from the same random initialization and then again train each independently on a different subset of the data (as described above), we find that naive parameter averaging works surprisingly well (Figure 1, right): the average of these two models, $\scriptstyle { \frac { 1 } { 2 } } w + { \frac { 1 } { 2 } } w ^ { \prime }$ , achieves significantly lower loss on the full MNIST training set than the best model achieved by training on either of the small datasets independently. While Figure 1 starts from a random initialization, note a shared starting model $w _ { t }$ is used for each round of FedAvg, and so the same intuition applies. + +
Algorithm 1 FederatedAveraging. The K clients are indexed by k; B is the local minibatch size, E is the number of local epochs, and η is the learning rate.
Server executes: initialize wo for each round t = 1, 2, . .. do m ← max(C · K, 1)
St ← (random set of m clients) for each client k ∈ St in parallel do
nk ,k /I Erratum4 mt mt ← ∑k∈St $nk +1 ωt+1 ← ∑k∈St 1
ClientUpdate(k, w): // Run on client k B ← (split Pk into batches of size B) for each local epoch i from 1 to E do for batch b ∈ B do ω ← ω − η∇(ω; b) return w to server
+ +# 3 Experimental Results + +We are motivated by both image classification and language modeling tasks where good models can greatly enhance the usability of mobile devices. For each of these tasks we first picked a proxy dataset of modest enough size that we could thoroughly investigate the hyperparameters of the FedAvg algorithm. While each individual training run is relatively small, we trained over 2000 individual models for these experiments. We then present results on the benchmark CIFAR-10 image classification task. Finally, to demonstrate the effectiveness of FedAvg on a real-world problem with a natural partitioning of the data over clients, we evaluate on a large language modeling task. + +Our initial study includes three model families on two datasets. The first two are for the MNIST digit recognition task [26]: 1) A simple multilayer-perceptron with 2-hidden layers with 200 units each using ReLu activations (199,210 total parameters), which we refer to as the MNIST 2NN. 2) A CNN with two 5x5 convolution layers (the first with 32 channels, the second with 64, each followed with $2 \mathbf { x } 2$ max pooling), a fully connected layer with 512 units and ReLu activation, and a final softmax output layer (1,663,370 total parameters). To study federated optimization, we also need to specify how the data is distributed over the clients. We study two ways of partitioning the MNIST data over clients: IID, where the data is shuffled, and then partitioned into 100 clients each receiving 600 examples, and Non-IID, where we first sort the data by digit label, divide it into 200 shards of size 300, and assign each of 100 clients 2 shards. This is a pathological non-IID partition of the data, as most clients will only have examples of two digits, letting us explore the degree to which our algorithms will break on highly non-IID data. Both of these partitions are balanced, however.5 + +For language modeling, we built a dataset from The Complete Works of William Shakespeare [32]. We construct a client dataset for each speaking role in each play with at least two lines. This produced a dataset with 1146 clients. For each client, we split the data into a set of training lines (the first $80 \%$ of lines for the role), and test lines (the last $20 \%$ , rounded up to at least one line). The resulting dataset has 3,564,579 characters in the training set, and 870,014 characters6 in the test set. This data is substantially unbalanced, with many roles having only a few lines, and a few with a large number of lines. Further, observe the test set is not a random sample of lines, but is temporally separated by the chronology of each play. Using an identical train/test split, we also form a balanced and IID version of the dataset, also with 1146 clients. + +On this data we train a stacked character-level LSTM language model, which after reading each character in a line, predicts the next character [22]. The model takes a series of characters as input and embeds each of these into a learned 8 dimensional space. The embedded characters are then processed through 2 LSTM layers, each with 256 nodes. Finally the output of the second LSTM layer is sent to a softmax output layer with one node per character. The full model has 866,578 parameters, and we trained using an unroll length of 80 characters. + +SGD is sensitive to the tuning of the learning-rate parameter $\eta$ . The results reported here are based on training over a sufficiently wide grid of learning rates (typically 11-13 values for $\eta$ on a multiplicative grid of resolution $1 0 ^ { \frac { 1 } { 3 } }$ or $1 0 ^ { \frac { 1 } { 6 } }$ ). We checked to ensure the best learning rates were in the middle of our grids, and that there was not a significant difference between the best learning rates. Unless otherwise noted, we plot metrics for the best performing rate selected individually for each $x$ -axis value. We find that the optimal learning rates do not vary too much as a function of the other parameters. + +Increasing parallelism We first experiment with the client fraction $C$ , which controls the amount of multi-client parallelism. Table 1 shows the impact of varying $C$ for both MNIST models. We report the number of communication rounds necessary to achieve a target test-set accuracy. To compute this, we construct a learning curve for each combination of parameter settings, optimizing $\eta$ as described above and then making each curve monotonically improving by taking the best value of test-set accuracy achieved over + +Table 1: Effect of the client fraction $C$ on the MNIST 2NN with $E = 1$ and CNN with $E = 5$ . Note $C = 0 . 0$ corresponds to one client per round; since we use 100 clients for the MNIST data, the rows correspond to 1, 10 20, 50, and 100 clients. Each table entry gives the number of rounds of communication necessary to achieve a test-set accuracy of $9 7 \%$ for the 2NN and $9 9 \%$ for the CNN, along with the speedup relative to the $C = 0$ baseline. Five runs with the large batch size did not reach the target accuracy in the allowed time. + +
2NN CIID-NON-IID.
B=∞B = 10B = ∞B = 10
0.0145531642783275
0.11474(1.0×)87 (3.6×)1796 (2.4×)664(4.9×)
0.2 1658 (0.9×)77(4.1×)1528 (2.8×)619 (5.3×)
0.5(1)75 (4.2×)()443 (7.4×)
1.0(—)70(4.5×)(—)380(8.6×)
CNN, E = 5
0.0387501181956
0.1339 (1.1×)18(2.8×)1100 (1.1×)206 (4.6×)
0.2337 (1.1×)18 (2.8×)978 (1.2×)200(4.8×)
0.5164(2.4×)18 (2.8×)1067 (1.1×)261 (3.7×)
1.0246(1.6×)16(3.1×)(—)97(9.9×)
+ +all prior rounds. We then calculate the number of rounds where the curve crosses the target accuracy, using linear interpolation between the discrete points forming the curve. This is perhaps best understood by reference to Figure 2, where the gray lines show the targets. + +With $B = \infty$ (for MNIST processing all 600 client examples as a single batch per round), there is only a small advantage in increasing the client fraction. Using the smaller batch size $B = 1 0$ shows a significant improvement in using $C \geq 0 . 1$ , especially in the non-IID case. Based on these results, for most of the remainder of our experiments we fix $C = 0 . 1$ , which strikes a good balance between computational efficiency and convergence rate. Comparing the number of rounds for the $B = \infty$ and $B = 1 0$ columns in Table 1 shows a dramatic speedup, which we investigate next. + +Increasing computation per client In this section, we fix $C = 0 . 1$ , and add more computation per client on each round, either decreasing $B$ , increasing $E$ , or both. Figure 2 demonstrates that adding more local SGD updates per round can produce a dramatic decrease in communication costs, and Table 2 quantifies these speedups. The expected number of updates per client per round is $u \ = \ ( \mathbb { E } [ n _ { k } ] / B ) E \ =$ $n E / ( K B )$ , where the expectation is over the draw of a random client $k$ . We order the rows in each section of Table 2 by this statistic. We see that increasing $u$ by varying both $E$ and $B$ is effective. As long as $B$ is large enough to take full advantage of available parallelism on the client hardware, there is essentially no cost in computation time for lowering it, and so in practice this should be the first parameter tuned. + +Table 2: Number of communication rounds to reach a target accuracy for FedAvg, versus FedSGD (first row, $E = 1$ and $B = \infty$ ). The $u$ column gives $u = E n / ( K B )$ , the expected number of updates per round. + +
MNIST CNN, 99% AcCURAcY
CNNEBuIIDNON-IID
FEDSGD181626483
FEDAVG585179 (3.5×)1000(0.5×)
FEDAVG1501265 (9.6×)600(0.8×)
FEDAVG20820234 (2.7×)672(0.7×)
FEDAVG1106034(18.4×)350(1.4×)
FEDAVG5506029 (21.6×)334(1.4×)
FEDAVG205024032(19.6×)426(1.1):
FEDAVG51030020(31.3×)229(2.1×)
FEDAVG2010120018(34.8×)173(2.8×)
SHAKESPEArE LSTM, 54% AccURAcY
LSTMEBuIIDNON-IID
FEDSGD181.024883906
FEDAVG1501.51635(1.5×) (4.1×)549(7.1×)
FEDAVG585.0613597(6.5×)
FEDAVG1107.4460 (5.4×)164(23.8×)
FEDAVG5507.4401 (6.2×)152(25.7×)
FEDAVG51037.1192(13.0×)41(95.3×)
+ +For the IID partition of the MNIST data, using more computation per client decreases the number of rounds to reach the target accuracy by $3 5 \times$ for the CNN and $4 6 \times$ for the 2NN (see Table 4 in Appendix A for details for the 2NN). The speedups for the pathologically partitioned non-IID data are smaller, but still substantial $( 2 . 8 - 3 . 7 \times )$ . It is impressive that averaging provides any advantage (vs. actually diverging) when we naively average the parameters of models trained on entirely different pairs of digits. Thus, we view this as strong evidence for the robustness of this approach. + +The unbalanced and non-IID distribution of the Shakespeare (by role in the play) is much more representative of the kind of data distribution we expect for real-world applications. Encouragingly, for this problem learning on the non-IID and unbalanced data is actually much easier (a $9 5 \times$ speedup vs $1 3 \times$ for the balanced IID data); we conjecture this is largely due to the fact some roles have relatively large local datasets, which makes increased local training particularly valuable. + +For all three model classes, FedAvg converges to a higher level of test-set accuracy than the baseline FedSGD models. This trend continues even if the lines are extended beyond the plotted ranges. For example, for the CNN the $B = \infty , E = 1$ FedSGD model eventually reaches $9 9 . 2 2 \%$ accuracy after 1200 rounds (and had not improved further after 6000 rounds), while the $B = 1 0 , E = 2 0$ FedAvg model reaches an accuracy of $9 9 . 4 4 \%$ after 300 rounds. We conjecture that in addition to lowering communication costs, model averaging produces a regularization benefit similar to that achieved by dropout [36]. + +We are primarily concerned with generalization performance, but FedAvg is effective at optimizing the training loss as well, even beyond the point where test-set accuracy plateaus. We observed similar behavior for all three model classes, and present plots for the MNIST CNN in Figure 6 + +![This image displays four line plots comparing test accuracy against communication rounds for different configurations of MNIST CNN and Shakespeare LSTM models under IID and non-IID data distributions. The top row shows MNIST CNN results with IID data on the left and non-IID data on the right, both reaching high accuracies (around 0.990-1.000) within 1000 rounds. The bottom row presents Shakespeare LSTM results, with IID data on the left and non-IID (by Play&Role) on the right, showing lower test accuracies (around 0.5-0.6) and requiring up to 4000 rounds to plateau. Each plot includes multiple lines representing varying batch sizes (B) and local epochs (E), with legends indicating these parameters. The gray horizontal lines in the top plots indicate target accuracies.](images/211c441b7bc992be60c29bde24697b96b2c03af963bb53ef7faebc053ec6e527.jpg) +Figure 2: Test set accuracy vs. communication rounds for the MNIST CNN (IID and then pathological non-IID) and Shakespeare LSTM (IID and then by Play&Role) with $C = 0 . 1$ and optimized $\eta$ . The gray lines show the target accuracies used in Table 2. Plots for the 2NN are given as Figure 7 in Appendix A. + +in Appendix A. + +Can we over-optimize on the client datasets? The current model parameters only influence the optimization performed in each ClientUpdate via initialization. Thus, as $E \infty$ , at least for a convex problem eventually the initial conditions should be irrelevant, and the global minimum would be reached regardless of initialization. Even for a non-convex problem, one might conjecture the algorithm would converge to the same local minimum as long as the initialization was in the same basin. That is, we would expect that while one round of averaging might produce a reasonable model, additional rounds of communication (and averaging) would not produce further improvements. + +Figure 3 shows the impact of large $E$ during initial training on the Shakespeare LSTM problem. Indeed, for very large numbers of local epochs, FedAvg can plateau or diverge.7 This result suggests that for some models, especially in the later stages of convergence, it may be useful to decay the amount of local computation per round (moving to smaller $E$ or larger $B$ ) in the same way decaying learning rates can be useful. Figure 8 in Appendix A gives the analogous experiment for the MNIST CNN. Interestingly, for this model we see no significant degradation in the convergence rate for large values of $E$ . However, we see slightly better performance for $E = 1$ versus $E = 5$ for the large-scale language modeling task described below (see Figure 10 in Appendix A). + +![This image displays two line graphs comparing "Train Loss" against "Communication Rounds" for a fixed learning rate $\eta = 1.47$. The left graph, labeled "$\eta = 1.47$ IID," shows results for independent and identically distributed data. The right graph, labeled "$\eta = 1.47$ Non-IID by Play&Role," presents results for non-IID data categorized by play and role. Both graphs plot train loss for different values of local epochs ($E$), ranging from 1 to 200, indicated by distinct colored lines and labels in the legends. The lines generally show a decrease in train loss as communication rounds increase, with variations in the rate of decrease and initial loss depending on the value of $E$ and data distribution.](images/e97d3bf184734de4b1746516181a7b226fee1faa9b9522ea41f39402ec0648d8.jpg) +Figure 3: The effect of training for many local epochs (large $E$ ) between averaging steps, fixing $B = 1 0$ and $C = 0 . 1$ for the Shakespeare LSTM with a fixed learning rate $\eta = 1 . 4 7$ . + +![This image is a moderate complexity line graph titled "CIFAR-10". It plots "Test Accuracy" on the y-axis against "Communication Rounds" on the x-axis, ranging from 0 to 3000. The graph displays six distinct lines, representing different experimental configurations: three solid orange lines labeled "FedAvg" with varying learning rates ($\eta = 0.05, 0.15, 0.25$), and three dashed blue lines labeled "FedSGD" with different learning rates ($\eta = 0.45, 0.6, 0.7$). The FedAvg lines converge quickly to a test accuracy of approximately 0.83, while the FedSGD lines show a slower and more variable convergence, reaching a maximum accuracy around 0.75. The purpose of this graph is to compare the performance of FedAvg and FedSGD algorithms under different learning rates in terms of test accuracy over communication rounds.](images/6cdbdd037b1da8aa5aabbb1407d59f2c0ff8667b7dc0a0c7071d46d71f9529c6.jpg) +Figure 4: Test accuracy versus communication for the CIFAR10 experiments. FedSGD uses a learning-rate decay of 0.9934 per round; FedAvg uses $B = 5 0$ , learning-rate decay of 0.99 per round, and $E = 5$ . + +CIFAR experiments We also ran experiments on the CIFAR-10 dataset [24] to further validate FedAvg. The dataset consists of 10 classes of $3 2 \mathbf { x } 3 2$ images with three RGB channels. There are 50,000 training examples and 10,000 testing examples, which we partitioned into 100 clients each containing 500 training and 100 testing examples; since there isn’t a natural user partitioning of this data, we considered the balanced and IID setting. The model architecture was taken from the TensorFlow tutorial [38], which consists of two convolutional layers followed by two fully connected layers and then a linear transformation layer to produce logits, for a total of about $1 0 ^ { 6 }$ parameters. Note that state-of-the-art approaches have achieved a test accuracy of $9 6 . 5 \%$ [19] for CIFAR; nevertheless, the standard model we use is sufficient for our needs, as our goal is to evaluate our optimization method, not achieve the best possible accuracy on this task. The images are preprocessed as part of the training input pipeline, which consists of cropping the images to 24x24, randomly flipping left-right and adjusting the contrast, brightness and whitening. + +Table 3: Number of rounds and speedup relative to baseline SGD to reach a target test-set accuracy on CIFAR10. SGD used a minibatch size of 100. FedSGD and FedAvg used $C = 0 . 1$ , with FedAvg using $E = 5$ and $B = 5 0$ . + +
ACC.80%82%85%
SGD18000(—)31000(—)99000(一)
FEDSGD3750(4.8×)6600(4.7×)N/A-)
FEDAVG280(64.3×)630(49.2×)2000(49.5×)
+ +For these experiments, we considered an additional baseline, standard SGD training on the full training set (no user partitioning), using minibatches of size 100. We achieved an $86 \%$ test accuracy after 197,500 minibatch updates (each minibatch update requires a communication round in the federated setting). FedAvg achieves a similar test accuracy of $85 \%$ after only 2,000 communication rounds. For all algorithms, we tuned a learning-rate decay parameter in addition to the initial learning rate. Table 3 gives the number of communication rounds for baseline SGD, FedSGD, and FedAvg to reach three different accuracy targets, and Figure 4 gives learning-rate curves for FedAvg versus FedSGD. + +By running experiments with minibatches of size $B = 5 0$ for both SGD and FedAvg, we can also look at accuracy as a function of the number of such minibatch gradient calculations. We expect SGD to do better here, because a sequential step is taken after each minibatch computation. However, as Figure 9 in the appendix shows, for modest values of $C$ and $E$ , FedAvg makes a similar amount of progress per minibatch computation. Further, we see that both standard SGD and FedAvg with only one client per round $\left( C = 0 \right)$ ), demonstrate significant oscillations in accuracy, whereas averaging over more clients smooths this out. + +Large-scale LSTM experiments We ran experiments on a large-scale next-word prediction task to demonstrate the effectiveness of our approach on a real-world problem. Our training dataset consists 10 million public posts from a large social network. We grouped the posts by author, for a total of over 500,000 clients. This dataset is a realistic proxy for the type of text entry data that would be present on a user’s mobile device. We limited each client dataset to at most 5000 words, and report accuracy (the fraction of the data where the highest predicted probability was on the correct next word, out of 10000 possibilities) on a test set of 1e5 posts from different (non-training) authors. Our model is a 256 node LSTM on a vocabulary of 10,000 words. The input and output embeddings for each word were of dimension 192, and co-trained with the model; there are 4,950,544 parameters in all. We used an unroll of 10 words. + +![This image is a moderate complexity line graph titled "Next Word Prediction LSTM, Non-IID Data". It plots "Test Accuracy @ 1" on the y-axis against "Communication Rounds" on the x-axis, ranging from 0 to 1000. The graph displays two sets of learning curves: "FedSGD" and "FedAvg (E=1)", each with multiple lines representing different learning rates (η). The FedAvg curves, shown in shades of orange, generally achieve higher test accuracy, reaching approximately 0.13-0.14, compared to the FedSGD curves in shades of blue, which plateau around 0.09-0.10. The purpose of this graph is to compare the performance of different federated learning optimization strategies for a language model.](images/17619a97fe419e12a92f876847ff0533987e47c9246d66127edb08d6064ed47e.jpg) +Figure 5: Monotonic learning curves for the large-scale language model word LSTM. + +These experiments required significant computational resources and so we did not explore hyper-parameters as thoroughly: all runs trained on 200 clients per round; FedAvg used $B = 8$ and $E = 1$ . We explored a variety of learning rates for FedAvg and the baseline FedSGD. Figure 5 shows monotonic learning curves for the best learning rates. FedSGD with $\eta = 1 8 . 0$ required 820 rounds to reach $10 . 5 \%$ accuracy, while FedAvg with $\eta = 9 . 0$ reached an accuracy of $10 . 5 \%$ in only 35 communication rounds $2 3 \times$ fewer then FedSGD). We observed lower variance in test accuracy for FedAvg, see Figure 10 in Appendix A. This figure also include results for $E = 5$ , which performed slightly worse than $E = 1$ . + +# 4 Conclusions and Future Work + +Our experiments show that federated learning can be made practical, as FedAvg trains high-quality models using relatively few rounds of communication, as demonstrated by results on a variety of model architectures: a multi-layer perceptron, two different convolutional NNs, a two-layer character LSTM, and a large-scale word-level LSTM. + +While federated learning offers many practical privacy benefits, providing stronger guarantees via differential privacy [14, 13, 1], secure multi-party computation [18], or their combination is an interesting direction for future work. Note that both classes of techniques apply most naturally to synchronous algorithms like FedAvg.8 + +References +[1] Martin Abadi, Andy Chu, Ian Goodfellow, Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In 23rd ACM Conference on Computer and Communications Security (ACM CCS), 2016. +[2] Monica Anderson. Technology device ownership: 2015. http://www. pewinternet.org/2015/10/29/ technology-device-ownership-2015/, 2015. +[3] Yossi Arjevani and Ohad Shamir. Communication complexity of distributed convex learning and optimization. In Advances in Neural Information Processing Systems 28. 2015. +[4] Maria-Florina Balcan, Avrim Blum, Shai Fine, and Yishay Mansour. Distributed learning, communication complexity and privacy. arXiv preprint arXiv:1204.3514, 2012. +[5] Yoshua Bengio, Rejean Ducharme, Pascal Vincent, ´ and Christian Janvin. A neural probabilistic language model. J. Mach. Learn. Res., 2003. +[6] Keith Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone, H. Brendan McMahan, Sarvar Patel, Daniel Ramage, Aaron Segal, and Karn Seth. Practical secure aggregation for federated learning on user-held data. In NIPS Workshop on Private Multi-Party Machine Learning, 2016. +[7] David L. Chaum. Untraceable electronic mail, return addresses, and digital pseudonyms. Commun. ACM, 24(2), 1981. +[8] Jianmin Chen, Rajat Monga, Samy Bengio, and Rafal Jozefowicz. Revisiting distributed synchronous sgd. In ICLR Workshop Track, 2016. +[9] Anna Choromanska, Mikael Henaff, Michael Mathieu, ¨ Gerard Ben Arous, and Yann LeCun. The loss surfaces ´ of multilayer networks. In AISTATS, 2015. +[10] Greg Corrado. Computer, respond to this email. http:// googleresearch.blogspot.com/2015/ 11/computer-respond-to-this-email. html, November 2015. +[11] Yann N. Dauphin, Razvan Pascanu, C¸ aglar Gul¨ c¸ehre, KyungHyun Cho, Surya Ganguli, and Yoshua Bengio. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. In NIPS, 2014. +[12] Jeffrey Dean, Greg S. Corrado, Rajat Monga, Kai Chen, Matthieu Devin, Quoc V. Le, Mark Z. Mao, Marc’Aurelio Ranzato, Andrew Senior, Paul Tucker, Ke Yang, and Andrew Y. Ng. Large scale distributed deep networks. In NIPS, 2012. +[13] John Duchi, Michael I. Jordan, and Martin J. Wainwright. Privacy aware learning. Journal of the Association for Computing Machinery, 2014. +[14] Cynthia Dwork and Aaron Roth. The Algorithmic Foundations of Differential Privacy. Foundations and Trends in Theoretical Computer Science. Now Publishers, 2014. +[15] Olivier Fercoq, Zheng Qu, Peter Richtarik, and Martin ´ Takac. Fast distributed coordinate descent for non- ´ strongly convex losses. In Machine Learning for Signal Processing (MLSP), 2014 IEEE International Workshop on, 2014. +[16] Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep learning. Book in preparation for MIT Press, 2016. +[17] Ian J. Goodfellow, Oriol Vinyals, and Andrew M. Saxe. Qualitatively characterizing neural network optimization problems. In ICLR, 2015. +[18] Slawomir Goryczka, Li Xiong, and Vaidy Sunderam. Secure multiparty aggregation with differential privacy: A comparative study. In Proceedings of the Joint EDBT/ICDT 2013 Workshops, 2013. +[19] Benjamin Graham. Fractional max-pooling. CoRR, abs/1412.6071, 2014. URL http://arxiv.org/ abs/1412.6071. +[20] Sepp Hochreiter and Jurgen Schmidhuber. Long short- ¨ term memory. Neural Computation, 9(8), November 1997. +[21] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015. +[22] Yoon Kim, Yacine Jernite, David Sontag, and Alexander M. Rush. Character-aware neural language models. CoRR, abs/1508.06615, 2015. +[23] Jakub Konecnˇ y, H. Brendan McMahan, Felix X. Yu, ´ Peter Richtarik, Ananda Theertha Suresh, and Dave Bacon. Federated learning: Strategies for improving communication efficiency. In NIPS Workshop on Private Multi-Party Machine Learning, 2016. +[24] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009. +[25] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS. 2012. +[26] Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11), 1998. +[27] Chenxin Ma, Virginia Smith, Martin Jaggi, Michael I Jordan, Peter Richtarik, and Martin Tak ´ a´c. Adding vs. ˇ averaging in distributed primal-dual optimization. In ICML, 2015. +[43] Yuchen Zhang and Lin Xiao. Communication-efficient distributed optimization of self-concordant empirical loss. arXiv preprint arXiv:1501.00263, 2015. +[44] Yuchen Zhang, Martin J Wainwright, and John C Duchi. Communication-efficient algorithms for statistical optimization. In NIPS, 2012. +[45] Yuchen Zhang, John Duchi, Michael I Jordan, and Martin J Wainwright. Information-theoretic lower bounds for distributed statistical estimation with communication constraints. In Advances in Neural Information Processing Systems, 2013. +[46] Martin Zinkevich, Markus Weimer, Lihong Li, and Alex J. Smola. Parallelized stochastic gradient descent. In NIPS. 2010. +[28] Ryan McDonald, Keith Hall, and Gideon Mann. Distributed training strategies for the structured perceptron. In NAACL HLT, 2010. +[29] Natalia Neverova, Christian Wolf, Griffin Lacey, Lex Fridman, Deepak Chandra, Brandon Barbello, and Graham W. Taylor. Learning human identity from motion patterns. IEEE Access, 4:1810–1820, 2016. +[30] Jacob Poushter. Smartphone ownership and internet usage continues to climb in emerging economies. Pew Research Center Report, 2016. +[31] Daniel Povey, Xiaohui Zhang, and Sanjeev Khudanpur. Parallel training of deep neural networks with natural gradient and parameter averaging. In ICLR Workshop Track, 2015. +[32] William Shakespeare. The Complete Works of William Shakespeare. Publically available at https: //www.gutenberg.org/ebooks/100. +[33] Ohad Shamir and Nathan Srebro. Distributed stochastic optimization and learning. In Communication, Control, and Computing (Allerton), 2014. +[34] Ohad Shamir, Nathan Srebro, and Tong Zhang. Communication efficient distributed optimization using an approximate newton-type method. arXiv preprint arXiv:1312.7853, 2013. +[35] Reza Shokri and Vitaly Shmatikov. Privacy-preserving deep learning. In Proceedings of the 22Nd ACM SIGSAC Conference on Computer and Communications Security, CCS ’15, 2015. +[36] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. 15, 2014. +[37] Latanya Sweeney. Simple demographics often identify people uniquely. 2000. +[38] TensorFlow team. Tensorflow convolutional neural networks tutorial, 2016. http://www.tensorflow. org/tutorials/deep_cnn. +[39] White House Report. Consumer data privacy in a networked world: A framework for protecting privacy and promoting innovation in the global digital economy. Journal of Privacy and Confidentiality, 2013. +[40] Tianbao Yang. Trading computation for communication: Distributed stochastic dual coordinate ascent. In Advances in Neural Information Processing Systems, 2013. +[41] Ruiliang Zhang and James Kwok. Asynchronous distributed admm for consensus optimization. In ICML. JMLR Workshop and Conference Proceedings, 2014. +[42] Sixin Zhang, Anna E Choromanska, and Yann LeCun. Deep learning with elastic averaging sgd. In NIPS. 2015. + +# A Supplemental Figures and Tables + +![This image displays two plots comparing the training loss of a Convolutional Neural Network (CNN) on the MNIST dataset under IID (Independent and Identically Distributed) and Non-IID data distributions. Both plots show "Train Loss" on the y-axis (log scale) against "Communication Rounds" on the x-axis. The plots illustrate the convergence of different training configurations, indicated by line colors and styles representing combinations of batch size (B) and epochs (E), such as B=10, E=1; B=50, E=5; and B=∞, E=20. The Non-IID plot generally shows slower convergence compared to the IID plot, with some configurations reaching lower loss values.](images/dfd7828f52875216d60bd0ff7b8e385aaa32ce349b59ad76c49a2b602e65d8cb.jpg) +Figure 6: Training set convergence for the MNIST CNN. Note the $y$ -axis is on a log scale, and the $x$ -axis covers more training than Figure 2. These plots fix $C = 0 . 1$ . + +![This image displays two line graphs comparing test accuracy against communication rounds for a MNIST 2NN model. The left graph represents an IID dataset, while the right graph shows a non-IID dataset with two digits per client. Both graphs plot test accuracy on the y-axis (ranging from 0.94 to 0.98) against communication rounds on the x-axis (ranging from 0 to 2000). Multiple lines, distinguished by color and line style, represent different combinations of batch size (B) and epochs (E), with legend entries like "B=10 E=1" and "B=∞ E=20". The graphs illustrate how different training configurations affect model performance over communication rounds in both IID and non-IID data distributions.](images/ad06b660399440df891793d67f6b6cc17b20643d5e2a889d46dc5494cbf2165e.jpg) +Figure 7: Test set accuracy vs. communication rounds for MNIST 2NN with $C = 0 . 1$ and optimized $\eta$ . The left column is the IID dataset, and right is the pathological 2- digits-per-client non-IID data. + +![This image displays two line graphs comparing the training loss of a MNIST Convolutional Neural Network (CNN) across different numbers of local epochs ($E$) during communication rounds. The left graph shows results for an IID (Independent and Identically Distributed) dataset with a learning rate ($\eta$) of 0.215, while the right graph shows results for a Non-IID dataset with $\eta=0.1$. Both graphs plot "Train Loss" on the y-axis against "Communication Rounds" on the x-axis, with different colored lines representing local epoch values from $E=1$ to $E=400$. The graphs illustrate how varying the number of local epochs affects training convergence under different data distribution scenarios.](images/b0e3a4a3004f05c7a5016557833153a4ae2b550fcab54c3258cb03bc234923ed.jpg) +Figure 8: The effect of training for many local epochs (large $E$ ) between averaging steps, fixing $B = 1 0$ and $C = 0 . 1$ . Training loss for the MNIST CNN. Note different learning rates and $y$ -axis scales are used due to the difficulty of our pathological non-IID MNIST dataset. + +Table 4: Speedups in the number of communication rounds to reach a target accuracy of $9 7 \%$ for FedAvg, versus FedSGD (first row) on the MNIST 2NN model. + +
MNIST 2NNEBuIDNON-IID
FEDSGD18114681817
FEDAVG10810156(9.4×)1100(1.7×)
FEDAVG15012144(10.2×)1183(1.5×)
FEDAVG2082092(16.0×)957(1.9×)
FEDAVG1106092(16.0×)831(2.2×)
FEDAVG105012045(32.6×881 (2.1×)
FEDAVG205024039(37.6×835(2.2×)
FEDAVG101060034(43.2×)497 (3.7×)
FEDAVG2010120032 (45.9×)738(2.5×)
+ +![This moderate complexity line graph displays test accuracy on the y-axis against the number of minibatch gradient computations on the x-axis for the CIFAR-10 dataset. It compares standard sequential SGD (blue line, $\eta=0.15$) with various Federated Averaging (FedAvg) configurations, characterized by client fraction ($C$) and local epochs ($E$). The FedAvg lines show varying performance based on these parameters, with some achieving comparable or slightly lower accuracy than SGD, while others, particularly the dashed red line representing FedAvg with $C=1.0$, demonstrate significantly lower accuracy. The plot illustrates the trade-offs between communication efficiency and model performance in federated learning settings.](images/31ebaf7d20b53f16e6db688041c2857625d8de1dab49b0887f0830ec02e6fb97.jpg) +Figure 9: Test accuracy versus number of minibatch gradient computations $[ B = 5 0 ]$ ). The baseline is standard sequential SGD, as compared to FedAvg with different client fractions $C$ (recall $C = 0$ means one client per round), and different numbers of local epochs $E$ . + +![This image is of **moderate complexity**. + +The figure displays learning curves for a Next Word Prediction LSTM model trained on Non-IID data, plotting "Test Accuracy @ 1" against "Communication Rounds." It compares three training strategies: FedSGD, FedAvg with E=1 local epoch, and FedAvg with E=5 local epochs. Each strategy is evaluated with varying learning rates (η), indicated by different shades of blue for FedSGD and shades of orange/brown for FedAvg. The FedAvg strategies, particularly with E=1, generally achieve higher and more stable test accuracy compared to FedSGD across all tested learning rates.](images/3350471370785f32096c628a52d42d9afa0f2595264583ef711e34979da1fb25.jpg) +Figure 10: Learning curves for the large-scale language model word LSTM, with evaluation computed every 20 rounds. FedAvg actually performs better with fewer local epochs $E$ (1 vs 5), and also has lower variance in accuracy across evaluation rounds compared to FedSGD. \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/Communication-Efficient Learning of Deep Networks.md.backup b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/Communication-Efficient Learning of Deep Networks.md.backup new file mode 100644 index 0000000000000000000000000000000000000000..6ad38d97233fd3f8bdf6172fa6b9ed7f72e8852e --- /dev/null +++ b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/Communication-Efficient Learning of Deep Networks.md.backup @@ -0,0 +1,229 @@ +# Communication-Efficient Learning of Deep Networks from Decentralized Data + +# H. Brendan McMahan + +Eider Moore Daniel Ramage Seth Hampson Google, Inc., 651 N 34th St., Seattle, WA 98103 USA + +Blaise Aguera y Arcas ¨ + +# Abstract + +Modern mobile devices have access to a wealth of data suitable for learning models, which in turn can greatly improve the user experience on the device. For example, language models can improve speech recognition and text entry, and image models can automatically select good photos. However, this rich data is often privacy sensitive, large in quantity, or both, which may preclude logging to the data center and training there using conventional approaches. We advocate an alternative that leaves the training data distributed on the mobile devices, and learns a shared model by aggregating locally-computed updates. We term this decentralized approach Federated Learning. + +We present a practical method for the federated learning of deep networks based on iterative model averaging, and conduct an extensive empirical evaluation, considering five different model architectures and four datasets. These experiments demonstrate the approach is robust to the unbalanced and non-IID data distributions that are a defining characteristic of this setting. Communication costs are the principal constraint, and we show a reduction in required communication rounds by $1 0 { - } 1 0 0 \times$ as compared to synchronized stochastic gradient descent. + +# 1 Introduction + +Increasingly, phones and tablets are the primary computing devices for many people [30, 2]. The powerful sensors on these devices (including cameras, microphones, and GPS), combined with the fact they are frequently carried, means they have access to an unprecedented amount of data, much of it private in nature. Models learned on such data hold the promise of greatly improving usability by powering more intelligent applications, but the sensitive nature of the data means there are risks and responsibilities to storing it in a centralized location. + +We investigate a learning technique that allows users to collectively reap the benefits of shared models trained from this rich data, without the need to centrally store it. We term our approach Federated Learning, since the learning task is solved by a loose federation of participating devices (which we refer to as clients) which are coordinated by a central server. Each client has a local training dataset which is never uploaded to the server. Instead, each client computes an update to the current global model maintained by the server, and only this update is communicated. This is a direct application of the principle of focused collection or data minimization proposed by the 2012 White House report on privacy of consumer data [39]. Since these updates are specific to improving the current model, there is no reason to store them once they have been applied. + +A principal advantage of this approach is the decoupling of model training from the need for direct access to the raw training data. Clearly, some trust of the server coordinating the training is still required. However, for applications where the training objective can be specified on the basis of data available on each client, federated learning can significantly reduce privacy and security risks by limiting the attack surface to only the device, rather than the device and the cloud. + +Our primary contributions are 1) the identification of the problem of training on decentralized data from mobile devices as an important research direction; 2) the selection of a straightforward and practical algorithm that can be applied to this setting; and 3) an extensive empirical evaluation of the proposed approach. More concretely, we introduce the FederatedAveraging algorithm, which combines local stochastic gradient descent (SGD) on each client with a server that performs model averaging. We perform extensive experiments on this algorithm, demonstrating it is robust to unbalanced and non-IID data distributions, and can reduce the rounds of communication needed to train a deep network on decentralized data by orders of magnitude. + +Federated Learning Ideal problems for federated learning have the following properties: 1) Training on real-world data from mobile devices provides a distinct advantage over training on proxy data that is generally available in the data center. 2) This data is privacy sensitive or large in size (compared to the size of the model), so it is preferable not to log it to the data center purely for the purpose of model training (in service of the focused collection principle). 3) For supervised tasks, labels on the data can be inferred naturally from user interaction. + +mation than the raw training data (by the data processing inequality), and will generally contain much less. Further, the source of the updates is not needed by the aggregation algorithm, so updates can be transmitted without identifying meta-data over a mix network such as Tor [7] or via a trusted third party. We briefly discuss the possibility of combining federated learning with secure multiparty computation and differential privacy at the end of the paper. + +Many models that power intelligent behavior on mobile devices fit the above criteria. As two examples, we consider image classification, for example predicting which photos are most likely to be viewed multiple times in the future, or shared; and language models, which can be used to improve voice recognition and text entry on touch-screen keyboards by improving decoding, next-word-prediction, and even predicting whole replies [10]. The potential training data for both these tasks (all the photos a user takes and everything they type on their mobile keyboard, including passwords, URLs, messages, etc.) can be privacy sensitive. The distributions from which these examples are drawn are also likely to differ substantially from easily available proxy datasets: the use of language in chat and text messages is generally much different than standard language corpora, e.g., Wikipedia and other web documents; the photos people take on their phone are likely quite different than typical Flickr photos. And finally, the labels for these problems are directly available: entered text is self-labeled for learning a language model, and photo labels can be defined by natural user interaction with their photo app (which photos are deleted, shared, or viewed). + +Both of these tasks are well-suited to learning a neural network. For image classification feed-forward deep networks, and in particular convolutional networks, are well-known to provide state-of-the-art results [26, 25]. For language modeling tasks recurrent neural networks, and in particular LSTMs, have achieved state-of-the-art results [20, 5, 22]. + +Federated Optimization We refer to the optimization problem implicit in federated learning as federated optimization, drawing a connection (and contrast) to distributed optimization. Federated optimization has several key properties that differentiate it from a typical distributed optimization problem: + +• Non-IID The training data on a given client is typically based on the usage of the mobile device by a particular user, and hence any particular user’s local dataset will not be representative of the population distribution. • Unbalanced Similarly, some users will make much heavier use of the service or app than others, leading to varying amounts of local training data. • Massively distributed We expect the number of clients participating in an optimization to be much larger than the average number of examples per client. • Limited communication Mobile devices are frequently offline or on slow or expensive connections. + +In this work, our emphasis is on the non-IID and unbalanced properties of the optimization, as well as the critical nature of the communication constraints. A deployed federated optimization system must also address a myriad of practical issues: client datasets that change as data is added and deleted; client availability that correlates with the local data distribution in complex ways (e.g., phones from speakers of American English will likely be plugged in at different times than speakers of British English); and clients that never respond or send corrupted updates. + +Privacy Federated learning has distinct privacy advantages compared to data center training on persisted data. Holding even an “anonymized” dataset can still put user privacy at risk via joins with other data [37]. In contrast, the information transmitted for federated learning is the minimal update necessary to improve a particular model (naturally, the strength of the privacy benefit depends on the content of the updates).1 The updates themselves can (and should) be ephemeral. They will never contain more infor + +These issues are beyond the scope of the current work; instead, we use a controlled environment that is suitable for experiments, but still addresses the key issues of client availability and unbalanced and non-IID data. We assume a synchronous update scheme that proceeds in rounds of communication. There is a fixed set of $K$ clients, each with a fixed local dataset. At the beginning of each round, a random fraction $C$ of clients is selected, and the server sends the current global algorithm state to each of these clients (e.g., the current model parameters). We only select a fraction of clients for efficiency, as our experiments show diminishing returns for adding more clients beyond a certain point. Each selected client then performs local computation based on the global state and its local dataset, and sends an update to the server. The server then applies these updates to its global state, and the process repeats. + +While we focus on non-convex neural network objectives, the algorithm we consider is applicable to any finite-sum objective of the form + +$$ +\operatorname* { m i n } _ { w \in \mathbb { R } ^ { d } } f ( w ) \qquad \mathrm { w h e r e } \qquad f ( w ) \stackrel { \mathrm { d e f } } { = } \frac 1 n \sum _ { i = 1 } ^ { n } f _ { i } ( w ) . +$$ + +For a machine learning problem, we typically take $f _ { i } ( w ) =$ $\ell ( x _ { i } , y _ { i } ; w )$ , that is, the loss of the prediction on example $( x _ { i } , y _ { i } )$ made with model parameters $w$ . We assume there are $K$ clients over which the data is partitioned, with $\mathcal { P } _ { k }$ the set of indexes of data points on client $k$ , with $n _ { k } = | \mathcal { P } _ { k } |$ Thus, we can re-write the objective (1) as + +$$ +f ( w ) = \sum _ { k = 1 } ^ { K } { \frac { n _ { k } } { n } } F _ { k } ( w ) \quad { \mathrm { w h e r e } } \quad F _ { k } ( w ) = { \frac { 1 } { n _ { k } } } \sum _ { i \in \mathcal { P } _ { k } } f _ { i } ( w ) . +$$ + +If the partition $\mathcal { P } _ { k }$ was formed by distributing the training examples over the clients uniformly at random, then we would have $\mathbb { E } p _ { k } [ F _ { k } ( w ) ] = f ( w )$ , where the expectation is over the set of examples assigned to a fixed client $k$ . This is the IID assumption typically made by distributed optimization algorithms; we refer to the case where this does not hold (that is, $F _ { k }$ could be an arbitrarily bad approximation to $f$ ) as the non-IID setting. + +In data center optimization, communication costs are relatively small, and computational costs dominate, with much of the recent emphasis being on using GPUs to lower these costs. In contrast, in federated optimization communication costs dominate — we will typically be limited by an upload bandwidth of $1 \ : \mathrm { M B / s }$ or less. Further, clients will typically only volunteer to participate in the optimization when they are charged, plugged-in, and on an unmetered wi-fi connection. Further, we expect each client will only participate in a small number of update rounds per day. On the other hand, since any single on-device dataset is small compared to the total dataset size, and modern smartphones have relatively fast processors (including GPUs), computation becomes essentially free compared to communication costs for many model types. Thus, our goal is to use additional computation in order to decrease the number of rounds of communication needed to train a model. There are two primary ways we can add computation: 1) increased parallelism, where we use more clients working independently between each communication round; and, 2) increased computation on each client, where rather than performing a simple computation like a gradient calculation, each client performs a more complex calculation between each communication round. We investigate both of these approaches, but the speedups we achieve are due primarily to adding more computation on each client, once a minimum level of parallelism over clients is used. + +Related Work Distributed training by iteratively averaging locally trained models has been studied by McDonald et al. [28] for the perceptron and Povey et al. [31] for speech recognition DNNs. Zhang et al. [42] studies an asynchronous approach with “soft” averaging. These works only consider the cluster / data center setting (at most 16 workers, wall-clock time based on fast networks), and do not consider datasets that are unbalanced and non-IID, properties that are essential to the federated learning setting. We adapt this style of algorithm to the federated setting and perform the appropriate empirical evaluation, which asks different questions than those relevant in the data center setting, and requires different methodology. + +Using similar motivation to ours, Neverova et al. [29] also discusses the advantages of keeping sensitive user data on device. The work of Shokri and Shmatikov [35] is related in several ways: they focus on training deep networks, emphasize the importance of privacy, and address communication costs by only sharing a subset of the parameters during each round of communication; however, they also do not consider unbalanced and non-IID data, and the empirical evaluation is limited. + +In the convex setting, the problem of distributed optimization and estimation has received significant attention [4, 15, 33], and some algorithms do focus specifically on communication efficiency [45, 34, 40, 27, 43]. In addition to assuming convexity, this existing work generally requires that the number of clients is much smaller than the number of examples per client, that the data is distributed across the clients in IID fashion, and that each node has an identical number of data points — all of these assumptions are violated in the federated optimization setting. Asynchronous distributed forms of SGD have also been applied to training neural networks, e.g., Dean et al. [12], but these approaches require a prohibitive number of updates in the federated setting. Distributed consensus algorithms (e.g., [41]) relax the IID assumption, but are still not a good fit for communication-constrained optimization over very many clients. + +One endpoint of the (parameterized) algorithm family we consider is simple one-shot averaging, where each client solves for the model that minimizes (possibly regularized) loss on their local data, and these models are averaged to produce the final global model. This approach has been studied extensively in the convex case with IID data, and it is known that in the worst-case, the global model produced is no better than training a model on a single client [44, 3, 46]. + +# 2 The FederatedAveraging Algorithm + +The recent multitude of successful applications of deep learning have almost exclusively relied on variants of stochastic gradient descent (SGD) for optimization; in fact, many advances can be understood as adapting the structure of the model (and hence the loss function) to be more amenable to optimization by simple gradient-based methods [16]. Thus, it is natural that we build algorithms for federated optimization by starting from SGD. + +SGD can be applied naively to the federated optimization problem, where a single batch gradient calculation (say on a randomly selected client) is done per round of communication. This approach is computationally efficient, but requires very large numbers of rounds of training to produce good models (e.g., even using an advanced approach like batch normalization, Ioffe and Szegedy [21] trained MNIST for 50000 steps on minibatches of size 60). We consider this baseline in our CIFAR-10 experiments. + +In the federated setting, there is little cost in wall-clock time to involving more clients, and so for our baseline we use large-batch synchronous SGD; experiments by Chen et al. [8] show this approach is state-of-the-art in the data center setting, where it outperforms asynchronous approaches. To apply this approach in the federated setting, we select a $C$ fraction of clients on each round, and compute the gradient of the loss over all the data held by these clients. Thus, $C$ controls the global batch size, with $C = 1$ corresponding to full-batch (non-stochastic) gradient descent.2 We refer to this baseline algorithm as FederatedSGD (or FedSGD). + +![](images/abd625cb80b14f798d71821f61cb8ba70938de7f3008712e342915017c27000d.jpg) +Figure 1: The loss on the full MNIST training set for models generated by averaging the parameters of two models $w$ and $w ^ { \prime }$ using $\theta w + ( 1 - \theta ) w ^ { \prime }$ for 50 evenly spaced values $\theta \in [ - 0 . 2 , 1 . 2 ]$ .The models $w$ and $w ^ { \prime }$ were trained using SGD on different small datasets. For the left plot, $w$ and $w ^ { \prime }$ were initialized using different random seeds; for the right plot, a shared seed was used. Note the different $y$ -axis scales. The horizontal line gives the best loss achieved by $w$ or $w ^ { \prime }$ (which were quite close, corresponding to the vertical lines at $\theta = 0$ and $\theta = 1$ ). With shared initialization, averaging the models produces a significant reduction in the loss on the total training set (much better than the loss of either parent model). + +A typical implementation of FedSGD with $C = 1$ and a fixed learning rate $\eta$ has each client $k$ compute $g _ { k } =$ $\nabla F _ { k } ( w _ { t } )$ , the average gradient on its local data at the current model and ap $w _ { t }$ , and the centes the update dients, since $\begin{array} { r } { w _ { t + 1 } w _ { t } - \eta \sum _ { k = 1 } ^ { K } \frac { n _ { k } } { n } g _ { k } } \end{array}$ $\forall k , \ w _ { t + 1 } ^ { k } \gets w _ { t } - \eta g _ { k }$ $\begin{array} { r } { \sum _ { k = 1 } ^ { K } \frac { n _ { k } } { n } g _ { k } = \nabla f ( w _ { t } ) } \end{array}$ . An equivalent update is given by and then $\begin{array} { r } { w _ { t + 1 } \gets \sum _ { k = 1 } ^ { K } \frac { n _ { k } } { n } w _ { t + 1 } ^ { k } } \end{array}$ That is, each client locally takes one step of gradient descent on the current model using its local data, and the server then takes a weighted average of the resulting models. Once the algorithm is written this way, we can add more computation to each client by iterating the local update $w ^ { k } w ^ { k } - \eta \nabla F _ { k } ( w ^ { k } )$ multiple times before the averaging step. We term this approach FederatedAveraging (or FedAvg). The amount of computation is controlled by three key parameters: $C$ , the fraction of clients that perform computation on each round; $E$ , then number of training passes each client makes over its local dataset on each round; and $B$ , the local minibatch size used for the client updates. We write $B = \infty$ to indicate that the full local dataset is treated as a single minibatch. Thus, at one endpoint of this algorithm family, we can take $B = \infty$ and $E = 1$ which corresponds exactly to FedSGD. For a client with $n _ { k }$ local examples, the number of local updates per round is given by $\begin{array} { r } { u _ { k } = E \frac { n _ { k } } { B } } \end{array}$ ; Complete pseudo-code is given in Algorithm 1. + +For general non-convex objectives, averaging models in parameter space could produce an arbitrarily bad model. + +Following the approach of Goodfellow et al. [17], we see exactly this bad behavior when we average two MNIST digit-recognition models3 trained from different initial conditions (Figure 1, left). For this figure, the parent models $w$ and $w ^ { \prime }$ were each trained on non-overlapping IID samples of 600 examples from the MNIST training set. Training was via SGD with a fixed learning rate of 0.1 for 240 updates on minibatches of size 50 (or $E = 2 0$ passes over the mini-datasets of size 600). This is approximately the amount of training where the models begin to overfit their local datasets. + +Recent work indicates that in practice, the loss surfaces of sufficiently over-parameterized NNs are surprisingly wellbehaved and in particular less prone to bad local minima than previously thought [11, 17, 9]. And indeed, when we start two models from the same random initialization and then again train each independently on a different subset of the data (as described above), we find that naive parameter averaging works surprisingly well (Figure 1, right): the average of these two models, $\scriptstyle { \frac { 1 } { 2 } } w + { \frac { 1 } { 2 } } w ^ { \prime }$ , achieves significantly lower loss on the full MNIST training set than the best model achieved by training on either of the small datasets independently. While Figure 1 starts from a random initialization, note a shared starting model $w _ { t }$ is used for each round of FedAvg, and so the same intuition applies. + +
Algorithm 1 FederatedAveraging. The K clients are indexed by k; B is the local minibatch size, E is the number of local epochs, and η is the learning rate.
Server executes: initialize wo for each round t = 1, 2, . .. do m ← max(C · K, 1)
St ← (random set of m clients) for each client k ∈ St in parallel do
nk ,k /I Erratum4 mt mt ← ∑k∈St $nk +1 ωt+1 ← ∑k∈St 1
ClientUpdate(k, w): // Run on client k B ← (split Pk into batches of size B) for each local epoch i from 1 to E do for batch b ∈ B do ω ← ω − η∇(ω; b) return w to server
+ +# 3 Experimental Results + +We are motivated by both image classification and language modeling tasks where good models can greatly enhance the usability of mobile devices. For each of these tasks we first picked a proxy dataset of modest enough size that we could thoroughly investigate the hyperparameters of the FedAvg algorithm. While each individual training run is relatively small, we trained over 2000 individual models for these experiments. We then present results on the benchmark CIFAR-10 image classification task. Finally, to demonstrate the effectiveness of FedAvg on a real-world problem with a natural partitioning of the data over clients, we evaluate on a large language modeling task. + +Our initial study includes three model families on two datasets. The first two are for the MNIST digit recognition task [26]: 1) A simple multilayer-perceptron with 2-hidden layers with 200 units each using ReLu activations (199,210 total parameters), which we refer to as the MNIST 2NN. 2) A CNN with two 5x5 convolution layers (the first with 32 channels, the second with 64, each followed with $2 \mathbf { x } 2$ max pooling), a fully connected layer with 512 units and ReLu activation, and a final softmax output layer (1,663,370 total parameters). To study federated optimization, we also need to specify how the data is distributed over the clients. We study two ways of partitioning the MNIST data over clients: IID, where the data is shuffled, and then partitioned into 100 clients each receiving 600 examples, and Non-IID, where we first sort the data by digit label, divide it into 200 shards of size 300, and assign each of 100 clients 2 shards. This is a pathological non-IID partition of the data, as most clients will only have examples of two digits, letting us explore the degree to which our algorithms will break on highly non-IID data. Both of these partitions are balanced, however.5 + +For language modeling, we built a dataset from The Complete Works of William Shakespeare [32]. We construct a client dataset for each speaking role in each play with at least two lines. This produced a dataset with 1146 clients. For each client, we split the data into a set of training lines (the first $80 \%$ of lines for the role), and test lines (the last $20 \%$ , rounded up to at least one line). The resulting dataset has 3,564,579 characters in the training set, and 870,014 characters6 in the test set. This data is substantially unbalanced, with many roles having only a few lines, and a few with a large number of lines. Further, observe the test set is not a random sample of lines, but is temporally separated by the chronology of each play. Using an identical train/test split, we also form a balanced and IID version of the dataset, also with 1146 clients. + +On this data we train a stacked character-level LSTM language model, which after reading each character in a line, predicts the next character [22]. The model takes a series of characters as input and embeds each of these into a learned 8 dimensional space. The embedded characters are then processed through 2 LSTM layers, each with 256 nodes. Finally the output of the second LSTM layer is sent to a softmax output layer with one node per character. The full model has 866,578 parameters, and we trained using an unroll length of 80 characters. + +SGD is sensitive to the tuning of the learning-rate parameter $\eta$ . The results reported here are based on training over a sufficiently wide grid of learning rates (typically 11-13 values for $\eta$ on a multiplicative grid of resolution $1 0 ^ { \frac { 1 } { 3 } }$ or $1 0 ^ { \frac { 1 } { 6 } }$ ). We checked to ensure the best learning rates were in the middle of our grids, and that there was not a significant difference between the best learning rates. Unless otherwise noted, we plot metrics for the best performing rate selected individually for each $x$ -axis value. We find that the optimal learning rates do not vary too much as a function of the other parameters. + +Increasing parallelism We first experiment with the client fraction $C$ , which controls the amount of multi-client parallelism. Table 1 shows the impact of varying $C$ for both MNIST models. We report the number of communication rounds necessary to achieve a target test-set accuracy. To compute this, we construct a learning curve for each combination of parameter settings, optimizing $\eta$ as described above and then making each curve monotonically improving by taking the best value of test-set accuracy achieved over + +Table 1: Effect of the client fraction $C$ on the MNIST 2NN with $E = 1$ and CNN with $E = 5$ . Note $C = 0 . 0$ corresponds to one client per round; since we use 100 clients for the MNIST data, the rows correspond to 1, 10 20, 50, and 100 clients. Each table entry gives the number of rounds of communication necessary to achieve a test-set accuracy of $9 7 \%$ for the 2NN and $9 9 \%$ for the CNN, along with the speedup relative to the $C = 0$ baseline. Five runs with the large batch size did not reach the target accuracy in the allowed time. + +
2NN CIID-NON-IID.
B=∞B = 10B = ∞B = 10
0.0145531642783275
0.11474(1.0×)87 (3.6×)1796 (2.4×)664(4.9×)
0.2 1658 (0.9×)77(4.1×)1528 (2.8×)619 (5.3×)
0.5(1)75 (4.2×)()443 (7.4×)
1.0(—)70(4.5×)(—)380(8.6×)
CNN, E = 5
0.0387501181956
0.1339 (1.1×)18(2.8×)1100 (1.1×)206 (4.6×)
0.2337 (1.1×)18 (2.8×)978 (1.2×)200(4.8×)
0.5164(2.4×)18 (2.8×)1067 (1.1×)261 (3.7×)
1.0246(1.6×)16(3.1×)(—)97(9.9×)
+ +all prior rounds. We then calculate the number of rounds where the curve crosses the target accuracy, using linear interpolation between the discrete points forming the curve. This is perhaps best understood by reference to Figure 2, where the gray lines show the targets. + +With $B = \infty$ (for MNIST processing all 600 client examples as a single batch per round), there is only a small advantage in increasing the client fraction. Using the smaller batch size $B = 1 0$ shows a significant improvement in using $C \geq 0 . 1$ , especially in the non-IID case. Based on these results, for most of the remainder of our experiments we fix $C = 0 . 1$ , which strikes a good balance between computational efficiency and convergence rate. Comparing the number of rounds for the $B = \infty$ and $B = 1 0$ columns in Table 1 shows a dramatic speedup, which we investigate next. + +Increasing computation per client In this section, we fix $C = 0 . 1$ , and add more computation per client on each round, either decreasing $B$ , increasing $E$ , or both. Figure 2 demonstrates that adding more local SGD updates per round can produce a dramatic decrease in communication costs, and Table 2 quantifies these speedups. The expected number of updates per client per round is $u \ = \ ( \mathbb { E } [ n _ { k } ] / B ) E \ =$ $n E / ( K B )$ , where the expectation is over the draw of a random client $k$ . We order the rows in each section of Table 2 by this statistic. We see that increasing $u$ by varying both $E$ and $B$ is effective. As long as $B$ is large enough to take full advantage of available parallelism on the client hardware, there is essentially no cost in computation time for lowering it, and so in practice this should be the first parameter tuned. + +Table 2: Number of communication rounds to reach a target accuracy for FedAvg, versus FedSGD (first row, $E = 1$ and $B = \infty$ ). The $u$ column gives $u = E n / ( K B )$ , the expected number of updates per round. + +
MNIST CNN, 99% AcCURAcY
CNNEBuIIDNON-IID
FEDSGD181626483
FEDAVG585179 (3.5×)1000(0.5×)
FEDAVG1501265 (9.6×)600(0.8×)
FEDAVG20820234 (2.7×)672(0.7×)
FEDAVG1106034(18.4×)350(1.4×)
FEDAVG5506029 (21.6×)334(1.4×)
FEDAVG205024032(19.6×)426(1.1):
FEDAVG51030020(31.3×)229(2.1×)
FEDAVG2010120018(34.8×)173(2.8×)
SHAKESPEArE LSTM, 54% AccURAcY
LSTMEBuIIDNON-IID
FEDSGD181.024883906
FEDAVG1501.51635(1.5×) (4.1×)549(7.1×)
FEDAVG585.0613597(6.5×)
FEDAVG1107.4460 (5.4×)164(23.8×)
FEDAVG5507.4401 (6.2×)152(25.7×)
FEDAVG51037.1192(13.0×)41(95.3×)
+ +For the IID partition of the MNIST data, using more computation per client decreases the number of rounds to reach the target accuracy by $3 5 \times$ for the CNN and $4 6 \times$ for the 2NN (see Table 4 in Appendix A for details for the 2NN). The speedups for the pathologically partitioned non-IID data are smaller, but still substantial $( 2 . 8 - 3 . 7 \times )$ . It is impressive that averaging provides any advantage (vs. actually diverging) when we naively average the parameters of models trained on entirely different pairs of digits. Thus, we view this as strong evidence for the robustness of this approach. + +The unbalanced and non-IID distribution of the Shakespeare (by role in the play) is much more representative of the kind of data distribution we expect for real-world applications. Encouragingly, for this problem learning on the non-IID and unbalanced data is actually much easier (a $9 5 \times$ speedup vs $1 3 \times$ for the balanced IID data); we conjecture this is largely due to the fact some roles have relatively large local datasets, which makes increased local training particularly valuable. + +For all three model classes, FedAvg converges to a higher level of test-set accuracy than the baseline FedSGD models. This trend continues even if the lines are extended beyond the plotted ranges. For example, for the CNN the $B = \infty , E = 1$ FedSGD model eventually reaches $9 9 . 2 2 \%$ accuracy after 1200 rounds (and had not improved further after 6000 rounds), while the $B = 1 0 , E = 2 0$ FedAvg model reaches an accuracy of $9 9 . 4 4 \%$ after 300 rounds. We conjecture that in addition to lowering communication costs, model averaging produces a regularization benefit similar to that achieved by dropout [36]. + +We are primarily concerned with generalization performance, but FedAvg is effective at optimizing the training loss as well, even beyond the point where test-set accuracy plateaus. We observed similar behavior for all three model classes, and present plots for the MNIST CNN in Figure 6 + +![](images/211c441b7bc992be60c29bde24697b96b2c03af963bb53ef7faebc053ec6e527.jpg) +Figure 2: Test set accuracy vs. communication rounds for the MNIST CNN (IID and then pathological non-IID) and Shakespeare LSTM (IID and then by Play&Role) with $C = 0 . 1$ and optimized $\eta$ . The gray lines show the target accuracies used in Table 2. Plots for the 2NN are given as Figure 7 in Appendix A. + +in Appendix A. + +Can we over-optimize on the client datasets? The current model parameters only influence the optimization performed in each ClientUpdate via initialization. Thus, as $E \infty$ , at least for a convex problem eventually the initial conditions should be irrelevant, and the global minimum would be reached regardless of initialization. Even for a non-convex problem, one might conjecture the algorithm would converge to the same local minimum as long as the initialization was in the same basin. That is, we would expect that while one round of averaging might produce a reasonable model, additional rounds of communication (and averaging) would not produce further improvements. + +Figure 3 shows the impact of large $E$ during initial training on the Shakespeare LSTM problem. Indeed, for very large numbers of local epochs, FedAvg can plateau or diverge.7 This result suggests that for some models, especially in the later stages of convergence, it may be useful to decay the amount of local computation per round (moving to smaller $E$ or larger $B$ ) in the same way decaying learning rates can be useful. Figure 8 in Appendix A gives the analogous experiment for the MNIST CNN. Interestingly, for this model we see no significant degradation in the convergence rate for large values of $E$ . However, we see slightly better performance for $E = 1$ versus $E = 5$ for the large-scale language modeling task described below (see Figure 10 in Appendix A). + +![](images/e97d3bf184734de4b1746516181a7b226fee1faa9b9522ea41f39402ec0648d8.jpg) +Figure 3: The effect of training for many local epochs (large $E$ ) between averaging steps, fixing $B = 1 0$ and $C = 0 . 1$ for the Shakespeare LSTM with a fixed learning rate $\eta = 1 . 4 7$ . + +![](images/6cdbdd037b1da8aa5aabbb1407d59f2c0ff8667b7dc0a0c7071d46d71f9529c6.jpg) +Figure 4: Test accuracy versus communication for the CIFAR10 experiments. FedSGD uses a learning-rate decay of 0.9934 per round; FedAvg uses $B = 5 0$ , learning-rate decay of 0.99 per round, and $E = 5$ . + +CIFAR experiments We also ran experiments on the CIFAR-10 dataset [24] to further validate FedAvg. The dataset consists of 10 classes of $3 2 \mathbf { x } 3 2$ images with three RGB channels. There are 50,000 training examples and 10,000 testing examples, which we partitioned into 100 clients each containing 500 training and 100 testing examples; since there isn’t a natural user partitioning of this data, we considered the balanced and IID setting. The model architecture was taken from the TensorFlow tutorial [38], which consists of two convolutional layers followed by two fully connected layers and then a linear transformation layer to produce logits, for a total of about $1 0 ^ { 6 }$ parameters. Note that state-of-the-art approaches have achieved a test accuracy of $9 6 . 5 \%$ [19] for CIFAR; nevertheless, the standard model we use is sufficient for our needs, as our goal is to evaluate our optimization method, not achieve the best possible accuracy on this task. The images are preprocessed as part of the training input pipeline, which consists of cropping the images to 24x24, randomly flipping left-right and adjusting the contrast, brightness and whitening. + +Table 3: Number of rounds and speedup relative to baseline SGD to reach a target test-set accuracy on CIFAR10. SGD used a minibatch size of 100. FedSGD and FedAvg used $C = 0 . 1$ , with FedAvg using $E = 5$ and $B = 5 0$ . + +
ACC.80%82%85%
SGD18000(—)31000(—)99000(一)
FEDSGD3750(4.8×)6600(4.7×)N/A-)
FEDAVG280(64.3×)630(49.2×)2000(49.5×)
+ +For these experiments, we considered an additional baseline, standard SGD training on the full training set (no user partitioning), using minibatches of size 100. We achieved an $86 \%$ test accuracy after 197,500 minibatch updates (each minibatch update requires a communication round in the federated setting). FedAvg achieves a similar test accuracy of $85 \%$ after only 2,000 communication rounds. For all algorithms, we tuned a learning-rate decay parameter in addition to the initial learning rate. Table 3 gives the number of communication rounds for baseline SGD, FedSGD, and FedAvg to reach three different accuracy targets, and Figure 4 gives learning-rate curves for FedAvg versus FedSGD. + +By running experiments with minibatches of size $B = 5 0$ for both SGD and FedAvg, we can also look at accuracy as a function of the number of such minibatch gradient calculations. We expect SGD to do better here, because a sequential step is taken after each minibatch computation. However, as Figure 9 in the appendix shows, for modest values of $C$ and $E$ , FedAvg makes a similar amount of progress per minibatch computation. Further, we see that both standard SGD and FedAvg with only one client per round $\left( C = 0 \right)$ ), demonstrate significant oscillations in accuracy, whereas averaging over more clients smooths this out. + +Large-scale LSTM experiments We ran experiments on a large-scale next-word prediction task to demonstrate the effectiveness of our approach on a real-world problem. Our training dataset consists 10 million public posts from a large social network. We grouped the posts by author, for a total of over 500,000 clients. This dataset is a realistic proxy for the type of text entry data that would be present on a user’s mobile device. We limited each client dataset to at most 5000 words, and report accuracy (the fraction of the data where the highest predicted probability was on the correct next word, out of 10000 possibilities) on a test set of 1e5 posts from different (non-training) authors. Our model is a 256 node LSTM on a vocabulary of 10,000 words. The input and output embeddings for each word were of dimension 192, and co-trained with the model; there are 4,950,544 parameters in all. We used an unroll of 10 words. + +![](images/17619a97fe419e12a92f876847ff0533987e47c9246d66127edb08d6064ed47e.jpg) +Figure 5: Monotonic learning curves for the large-scale language model word LSTM. + +These experiments required significant computational resources and so we did not explore hyper-parameters as thoroughly: all runs trained on 200 clients per round; FedAvg used $B = 8$ and $E = 1$ . We explored a variety of learning rates for FedAvg and the baseline FedSGD. Figure 5 shows monotonic learning curves for the best learning rates. FedSGD with $\eta = 1 8 . 0$ required 820 rounds to reach $10 . 5 \%$ accuracy, while FedAvg with $\eta = 9 . 0$ reached an accuracy of $10 . 5 \%$ in only 35 communication rounds $2 3 \times$ fewer then FedSGD). We observed lower variance in test accuracy for FedAvg, see Figure 10 in Appendix A. This figure also include results for $E = 5$ , which performed slightly worse than $E = 1$ . + +# 4 Conclusions and Future Work + +Our experiments show that federated learning can be made practical, as FedAvg trains high-quality models using relatively few rounds of communication, as demonstrated by results on a variety of model architectures: a multi-layer perceptron, two different convolutional NNs, a two-layer character LSTM, and a large-scale word-level LSTM. + +While federated learning offers many practical privacy benefits, providing stronger guarantees via differential privacy [14, 13, 1], secure multi-party computation [18], or their combination is an interesting direction for future work. Note that both classes of techniques apply most naturally to synchronous algorithms like FedAvg.8 + +References +[1] Martin Abadi, Andy Chu, Ian Goodfellow, Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In 23rd ACM Conference on Computer and Communications Security (ACM CCS), 2016. +[2] Monica Anderson. Technology device ownership: 2015. http://www. pewinternet.org/2015/10/29/ technology-device-ownership-2015/, 2015. +[3] Yossi Arjevani and Ohad Shamir. Communication complexity of distributed convex learning and optimization. In Advances in Neural Information Processing Systems 28. 2015. +[4] Maria-Florina Balcan, Avrim Blum, Shai Fine, and Yishay Mansour. Distributed learning, communication complexity and privacy. arXiv preprint arXiv:1204.3514, 2012. +[5] Yoshua Bengio, Rejean Ducharme, Pascal Vincent, ´ and Christian Janvin. A neural probabilistic language model. J. Mach. Learn. Res., 2003. +[6] Keith Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone, H. Brendan McMahan, Sarvar Patel, Daniel Ramage, Aaron Segal, and Karn Seth. Practical secure aggregation for federated learning on user-held data. In NIPS Workshop on Private Multi-Party Machine Learning, 2016. +[7] David L. Chaum. Untraceable electronic mail, return addresses, and digital pseudonyms. Commun. ACM, 24(2), 1981. +[8] Jianmin Chen, Rajat Monga, Samy Bengio, and Rafal Jozefowicz. Revisiting distributed synchronous sgd. In ICLR Workshop Track, 2016. +[9] Anna Choromanska, Mikael Henaff, Michael Mathieu, ¨ Gerard Ben Arous, and Yann LeCun. The loss surfaces ´ of multilayer networks. In AISTATS, 2015. +[10] Greg Corrado. Computer, respond to this email. http:// googleresearch.blogspot.com/2015/ 11/computer-respond-to-this-email. html, November 2015. +[11] Yann N. Dauphin, Razvan Pascanu, C¸ aglar Gul¨ c¸ehre, KyungHyun Cho, Surya Ganguli, and Yoshua Bengio. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. In NIPS, 2014. +[12] Jeffrey Dean, Greg S. Corrado, Rajat Monga, Kai Chen, Matthieu Devin, Quoc V. Le, Mark Z. Mao, Marc’Aurelio Ranzato, Andrew Senior, Paul Tucker, Ke Yang, and Andrew Y. Ng. Large scale distributed deep networks. In NIPS, 2012. +[13] John Duchi, Michael I. Jordan, and Martin J. Wainwright. Privacy aware learning. Journal of the Association for Computing Machinery, 2014. +[14] Cynthia Dwork and Aaron Roth. The Algorithmic Foundations of Differential Privacy. Foundations and Trends in Theoretical Computer Science. Now Publishers, 2014. +[15] Olivier Fercoq, Zheng Qu, Peter Richtarik, and Martin ´ Takac. Fast distributed coordinate descent for non- ´ strongly convex losses. In Machine Learning for Signal Processing (MLSP), 2014 IEEE International Workshop on, 2014. +[16] Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep learning. Book in preparation for MIT Press, 2016. +[17] Ian J. Goodfellow, Oriol Vinyals, and Andrew M. Saxe. Qualitatively characterizing neural network optimization problems. In ICLR, 2015. +[18] Slawomir Goryczka, Li Xiong, and Vaidy Sunderam. Secure multiparty aggregation with differential privacy: A comparative study. In Proceedings of the Joint EDBT/ICDT 2013 Workshops, 2013. +[19] Benjamin Graham. Fractional max-pooling. CoRR, abs/1412.6071, 2014. URL http://arxiv.org/ abs/1412.6071. +[20] Sepp Hochreiter and Jurgen Schmidhuber. Long short- ¨ term memory. Neural Computation, 9(8), November 1997. +[21] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015. +[22] Yoon Kim, Yacine Jernite, David Sontag, and Alexander M. Rush. Character-aware neural language models. CoRR, abs/1508.06615, 2015. +[23] Jakub Konecnˇ y, H. Brendan McMahan, Felix X. Yu, ´ Peter Richtarik, Ananda Theertha Suresh, and Dave Bacon. Federated learning: Strategies for improving communication efficiency. In NIPS Workshop on Private Multi-Party Machine Learning, 2016. +[24] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009. +[25] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS. 2012. +[26] Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11), 1998. +[27] Chenxin Ma, Virginia Smith, Martin Jaggi, Michael I Jordan, Peter Richtarik, and Martin Tak ´ a´c. Adding vs. ˇ averaging in distributed primal-dual optimization. In ICML, 2015. +[43] Yuchen Zhang and Lin Xiao. Communication-efficient distributed optimization of self-concordant empirical loss. arXiv preprint arXiv:1501.00263, 2015. +[44] Yuchen Zhang, Martin J Wainwright, and John C Duchi. Communication-efficient algorithms for statistical optimization. In NIPS, 2012. +[45] Yuchen Zhang, John Duchi, Michael I Jordan, and Martin J Wainwright. Information-theoretic lower bounds for distributed statistical estimation with communication constraints. In Advances in Neural Information Processing Systems, 2013. +[46] Martin Zinkevich, Markus Weimer, Lihong Li, and Alex J. Smola. Parallelized stochastic gradient descent. In NIPS. 2010. +[28] Ryan McDonald, Keith Hall, and Gideon Mann. Distributed training strategies for the structured perceptron. In NAACL HLT, 2010. +[29] Natalia Neverova, Christian Wolf, Griffin Lacey, Lex Fridman, Deepak Chandra, Brandon Barbello, and Graham W. Taylor. Learning human identity from motion patterns. IEEE Access, 4:1810–1820, 2016. +[30] Jacob Poushter. Smartphone ownership and internet usage continues to climb in emerging economies. Pew Research Center Report, 2016. +[31] Daniel Povey, Xiaohui Zhang, and Sanjeev Khudanpur. Parallel training of deep neural networks with natural gradient and parameter averaging. In ICLR Workshop Track, 2015. +[32] William Shakespeare. The Complete Works of William Shakespeare. Publically available at https: //www.gutenberg.org/ebooks/100. +[33] Ohad Shamir and Nathan Srebro. Distributed stochastic optimization and learning. In Communication, Control, and Computing (Allerton), 2014. +[34] Ohad Shamir, Nathan Srebro, and Tong Zhang. Communication efficient distributed optimization using an approximate newton-type method. arXiv preprint arXiv:1312.7853, 2013. +[35] Reza Shokri and Vitaly Shmatikov. Privacy-preserving deep learning. In Proceedings of the 22Nd ACM SIGSAC Conference on Computer and Communications Security, CCS ’15, 2015. +[36] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. 15, 2014. +[37] Latanya Sweeney. Simple demographics often identify people uniquely. 2000. +[38] TensorFlow team. Tensorflow convolutional neural networks tutorial, 2016. http://www.tensorflow. org/tutorials/deep_cnn. +[39] White House Report. Consumer data privacy in a networked world: A framework for protecting privacy and promoting innovation in the global digital economy. Journal of Privacy and Confidentiality, 2013. +[40] Tianbao Yang. Trading computation for communication: Distributed stochastic dual coordinate ascent. In Advances in Neural Information Processing Systems, 2013. +[41] Ruiliang Zhang and James Kwok. Asynchronous distributed admm for consensus optimization. In ICML. JMLR Workshop and Conference Proceedings, 2014. +[42] Sixin Zhang, Anna E Choromanska, and Yann LeCun. Deep learning with elastic averaging sgd. In NIPS. 2015. + +# A Supplemental Figures and Tables + +![](images/dfd7828f52875216d60bd0ff7b8e385aaa32ce349b59ad76c49a2b602e65d8cb.jpg) +Figure 6: Training set convergence for the MNIST CNN. Note the $y$ -axis is on a log scale, and the $x$ -axis covers more training than Figure 2. These plots fix $C = 0 . 1$ . + +![](images/ad06b660399440df891793d67f6b6cc17b20643d5e2a889d46dc5494cbf2165e.jpg) +Figure 7: Test set accuracy vs. communication rounds for MNIST 2NN with $C = 0 . 1$ and optimized $\eta$ . The left column is the IID dataset, and right is the pathological 2- digits-per-client non-IID data. + +![](images/b0e3a4a3004f05c7a5016557833153a4ae2b550fcab54c3258cb03bc234923ed.jpg) +Figure 8: The effect of training for many local epochs (large $E$ ) between averaging steps, fixing $B = 1 0$ and $C = 0 . 1$ . Training loss for the MNIST CNN. Note different learning rates and $y$ -axis scales are used due to the difficulty of our pathological non-IID MNIST dataset. + +Table 4: Speedups in the number of communication rounds to reach a target accuracy of $9 7 \%$ for FedAvg, versus FedSGD (first row) on the MNIST 2NN model. + +
MNIST 2NNEBuIDNON-IID
FEDSGD18114681817
FEDAVG10810156(9.4×)1100(1.7×)
FEDAVG15012144(10.2×)1183(1.5×)
FEDAVG2082092(16.0×)957(1.9×)
FEDAVG1106092(16.0×)831(2.2×)
FEDAVG105012045(32.6×881 (2.1×)
FEDAVG205024039(37.6×835(2.2×)
FEDAVG101060034(43.2×)497 (3.7×)
FEDAVG2010120032 (45.9×)738(2.5×)
+ +![](images/31ebaf7d20b53f16e6db688041c2857625d8de1dab49b0887f0830ec02e6fb97.jpg) +Figure 9: Test accuracy versus number of minibatch gradient computations $[ B = 5 0 ]$ ). The baseline is standard sequential SGD, as compared to FedAvg with different client fractions $C$ (recall $C = 0$ means one client per round), and different numbers of local epochs $E$ . + +![](images/3350471370785f32096c628a52d42d9afa0f2595264583ef711e34979da1fb25.jpg) +Figure 10: Learning curves for the large-scale language model word LSTM, with evaluation computed every 20 rounds. FedAvg actually performs better with fewer local epochs $E$ (1 vs 5), and also has lower variance in accuracy across evaluation rounds compared to FedSGD. \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/Communication-Efficient Learning of Deep Networks_content_list.json b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/Communication-Efficient Learning of Deep Networks_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..69d676c19e6beb6b4d0f4e68a59effafbdff6765 --- /dev/null +++ b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/Communication-Efficient Learning of Deep Networks_content_list.json @@ -0,0 +1,538 @@ +[ + { + "type": "text", + "text": "Communication-Efficient Learning of Deep Networks from Decentralized Data ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "H. Brendan McMahan ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "Eider Moore Daniel Ramage Seth Hampson Google, Inc., 651 N 34th St., Seattle, WA 98103 USA ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Blaise Aguera y Arcas ¨ ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Abstract ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "Modern mobile devices have access to a wealth of data suitable for learning models, which in turn can greatly improve the user experience on the device. For example, language models can improve speech recognition and text entry, and image models can automatically select good photos. However, this rich data is often privacy sensitive, large in quantity, or both, which may preclude logging to the data center and training there using conventional approaches. We advocate an alternative that leaves the training data distributed on the mobile devices, and learns a shared model by aggregating locally-computed updates. We term this decentralized approach Federated Learning. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "We present a practical method for the federated learning of deep networks based on iterative model averaging, and conduct an extensive empirical evaluation, considering five different model architectures and four datasets. These experiments demonstrate the approach is robust to the unbalanced and non-IID data distributions that are a defining characteristic of this setting. Communication costs are the principal constraint, and we show a reduction in required communication rounds by $1 0 { - } 1 0 0 \\times$ as compared to synchronized stochastic gradient descent. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "1 Introduction ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "Increasingly, phones and tablets are the primary computing devices for many people [30, 2]. The powerful sensors on these devices (including cameras, microphones, and GPS), combined with the fact they are frequently carried, means they have access to an unprecedented amount of data, much of it private in nature. Models learned on such data hold the promise of greatly improving usability by powering more intelligent applications, but the sensitive nature of the data means there are risks and responsibilities to storing it in a centralized location. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "", + "page_idx": 0 + }, + { + "type": "text", + "text": "We investigate a learning technique that allows users to collectively reap the benefits of shared models trained from this rich data, without the need to centrally store it. We term our approach Federated Learning, since the learning task is solved by a loose federation of participating devices (which we refer to as clients) which are coordinated by a central server. Each client has a local training dataset which is never uploaded to the server. Instead, each client computes an update to the current global model maintained by the server, and only this update is communicated. This is a direct application of the principle of focused collection or data minimization proposed by the 2012 White House report on privacy of consumer data [39]. Since these updates are specific to improving the current model, there is no reason to store them once they have been applied. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "A principal advantage of this approach is the decoupling of model training from the need for direct access to the raw training data. Clearly, some trust of the server coordinating the training is still required. However, for applications where the training objective can be specified on the basis of data available on each client, federated learning can significantly reduce privacy and security risks by limiting the attack surface to only the device, rather than the device and the cloud. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Our primary contributions are 1) the identification of the problem of training on decentralized data from mobile devices as an important research direction; 2) the selection of a straightforward and practical algorithm that can be applied to this setting; and 3) an extensive empirical evaluation of the proposed approach. More concretely, we introduce the FederatedAveraging algorithm, which combines local stochastic gradient descent (SGD) on each client with a server that performs model averaging. We perform extensive experiments on this algorithm, demonstrating it is robust to unbalanced and non-IID data distributions, and can reduce the rounds of communication needed to train a deep network on decentralized data by orders of magnitude. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Federated Learning Ideal problems for federated learning have the following properties: 1) Training on real-world data from mobile devices provides a distinct advantage over training on proxy data that is generally available in the data center. 2) This data is privacy sensitive or large in size (compared to the size of the model), so it is preferable not to log it to the data center purely for the purpose of model training (in service of the focused collection principle). 3) For supervised tasks, labels on the data can be inferred naturally from user interaction. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "mation than the raw training data (by the data processing inequality), and will generally contain much less. Further, the source of the updates is not needed by the aggregation algorithm, so updates can be transmitted without identifying meta-data over a mix network such as Tor [7] or via a trusted third party. We briefly discuss the possibility of combining federated learning with secure multiparty computation and differential privacy at the end of the paper. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "Many models that power intelligent behavior on mobile devices fit the above criteria. As two examples, we consider image classification, for example predicting which photos are most likely to be viewed multiple times in the future, or shared; and language models, which can be used to improve voice recognition and text entry on touch-screen keyboards by improving decoding, next-word-prediction, and even predicting whole replies [10]. The potential training data for both these tasks (all the photos a user takes and everything they type on their mobile keyboard, including passwords, URLs, messages, etc.) can be privacy sensitive. The distributions from which these examples are drawn are also likely to differ substantially from easily available proxy datasets: the use of language in chat and text messages is generally much different than standard language corpora, e.g., Wikipedia and other web documents; the photos people take on their phone are likely quite different than typical Flickr photos. And finally, the labels for these problems are directly available: entered text is self-labeled for learning a language model, and photo labels can be defined by natural user interaction with their photo app (which photos are deleted, shared, or viewed). ", + "page_idx": 1 + }, + { + "type": "text", + "text": "Both of these tasks are well-suited to learning a neural network. For image classification feed-forward deep networks, and in particular convolutional networks, are well-known to provide state-of-the-art results [26, 25]. For language modeling tasks recurrent neural networks, and in particular LSTMs, have achieved state-of-the-art results [20, 5, 22]. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "Federated Optimization We refer to the optimization problem implicit in federated learning as federated optimization, drawing a connection (and contrast) to distributed optimization. Federated optimization has several key properties that differentiate it from a typical distributed optimization problem: ", + "page_idx": 1 + }, + { + "type": "text", + "text": "• Non-IID The training data on a given client is typically based on the usage of the mobile device by a particular user, and hence any particular user’s local dataset will not be representative of the population distribution. • Unbalanced Similarly, some users will make much heavier use of the service or app than others, leading to varying amounts of local training data. • Massively distributed We expect the number of clients participating in an optimization to be much larger than the average number of examples per client. • Limited communication Mobile devices are frequently offline or on slow or expensive connections. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "In this work, our emphasis is on the non-IID and unbalanced properties of the optimization, as well as the critical nature of the communication constraints. A deployed federated optimization system must also address a myriad of practical issues: client datasets that change as data is added and deleted; client availability that correlates with the local data distribution in complex ways (e.g., phones from speakers of American English will likely be plugged in at different times than speakers of British English); and clients that never respond or send corrupted updates. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "Privacy Federated learning has distinct privacy advantages compared to data center training on persisted data. Holding even an “anonymized” dataset can still put user privacy at risk via joins with other data [37]. In contrast, the information transmitted for federated learning is the minimal update necessary to improve a particular model (naturally, the strength of the privacy benefit depends on the content of the updates).1 The updates themselves can (and should) be ephemeral. They will never contain more infor", + "page_idx": 1 + }, + { + "type": "text", + "text": "These issues are beyond the scope of the current work; instead, we use a controlled environment that is suitable for experiments, but still addresses the key issues of client availability and unbalanced and non-IID data. We assume a synchronous update scheme that proceeds in rounds of communication. There is a fixed set of $K$ clients, each with a fixed local dataset. At the beginning of each round, a random fraction $C$ of clients is selected, and the server sends the current global algorithm state to each of these clients (e.g., the current model parameters). We only select a fraction of clients for efficiency, as our experiments show diminishing returns for adding more clients beyond a certain point. Each selected client then performs local computation based on the global state and its local dataset, and sends an update to the server. The server then applies these updates to its global state, and the process repeats. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "While we focus on non-convex neural network objectives, the algorithm we consider is applicable to any finite-sum objective of the form ", + "page_idx": 2 + }, + { + "type": "equation", + "img_path": "images/e08529dfd6f13e8660b02c1f58a1773e76be33509427490a2bff99b815f6307a.jpg", + "text": "$$\n\\operatorname* { m i n } _ { w \\in \\mathbb { R } ^ { d } } f ( w ) \\qquad \\mathrm { w h e r e } \\qquad f ( w ) \\stackrel { \\mathrm { d e f } } { = } \\frac 1 n \\sum _ { i = 1 } ^ { n } f _ { i } ( w ) .\n$$", + "text_format": "latex", + "page_idx": 2 + }, + { + "type": "text", + "text": "For a machine learning problem, we typically take $f _ { i } ( w ) =$ $\\ell ( x _ { i } , y _ { i } ; w )$ , that is, the loss of the prediction on example $( x _ { i } , y _ { i } )$ made with model parameters $w$ . We assume there are $K$ clients over which the data is partitioned, with $\\mathcal { P } _ { k }$ the set of indexes of data points on client $k$ , with $n _ { k } = | \\mathcal { P } _ { k } |$ Thus, we can re-write the objective (1) as ", + "page_idx": 2 + }, + { + "type": "equation", + "img_path": "images/732d5b867114ffa941ef640ff061247c9d408441bf1bcbd223802cbe24976e3c.jpg", + "text": "$$\nf ( w ) = \\sum _ { k = 1 } ^ { K } { \\frac { n _ { k } } { n } } F _ { k } ( w ) \\quad { \\mathrm { w h e r e } } \\quad F _ { k } ( w ) = { \\frac { 1 } { n _ { k } } } \\sum _ { i \\in \\mathcal { P } _ { k } } f _ { i } ( w ) .\n$$", + "text_format": "latex", + "page_idx": 2 + }, + { + "type": "text", + "text": "If the partition $\\mathcal { P } _ { k }$ was formed by distributing the training examples over the clients uniformly at random, then we would have $\\mathbb { E } p _ { k } [ F _ { k } ( w ) ] = f ( w )$ , where the expectation is over the set of examples assigned to a fixed client $k$ . This is the IID assumption typically made by distributed optimization algorithms; we refer to the case where this does not hold (that is, $F _ { k }$ could be an arbitrarily bad approximation to $f$ ) as the non-IID setting. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "In data center optimization, communication costs are relatively small, and computational costs dominate, with much of the recent emphasis being on using GPUs to lower these costs. In contrast, in federated optimization communication costs dominate — we will typically be limited by an upload bandwidth of $1 \\ : \\mathrm { M B / s }$ or less. Further, clients will typically only volunteer to participate in the optimization when they are charged, plugged-in, and on an unmetered wi-fi connection. Further, we expect each client will only participate in a small number of update rounds per day. On the other hand, since any single on-device dataset is small compared to the total dataset size, and modern smartphones have relatively fast processors (including GPUs), computation becomes essentially free compared to communication costs for many model types. Thus, our goal is to use additional computation in order to decrease the number of rounds of communication needed to train a model. There are two primary ways we can add computation: 1) increased parallelism, where we use more clients working independently between each communication round; and, 2) increased computation on each client, where rather than performing a simple computation like a gradient calculation, each client performs a more complex calculation between each communication round. We investigate both of these approaches, but the speedups we achieve are due primarily to adding more computation on each client, once a minimum level of parallelism over clients is used. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "Related Work Distributed training by iteratively averaging locally trained models has been studied by McDonald et al. [28] for the perceptron and Povey et al. [31] for speech recognition DNNs. Zhang et al. [42] studies an asynchronous approach with “soft” averaging. These works only consider the cluster / data center setting (at most 16 workers, wall-clock time based on fast networks), and do not consider datasets that are unbalanced and non-IID, properties that are essential to the federated learning setting. We adapt this style of algorithm to the federated setting and perform the appropriate empirical evaluation, which asks different questions than those relevant in the data center setting, and requires different methodology. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "", + "page_idx": 2 + }, + { + "type": "text", + "text": "Using similar motivation to ours, Neverova et al. [29] also discusses the advantages of keeping sensitive user data on device. The work of Shokri and Shmatikov [35] is related in several ways: they focus on training deep networks, emphasize the importance of privacy, and address communication costs by only sharing a subset of the parameters during each round of communication; however, they also do not consider unbalanced and non-IID data, and the empirical evaluation is limited. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "In the convex setting, the problem of distributed optimization and estimation has received significant attention [4, 15, 33], and some algorithms do focus specifically on communication efficiency [45, 34, 40, 27, 43]. In addition to assuming convexity, this existing work generally requires that the number of clients is much smaller than the number of examples per client, that the data is distributed across the clients in IID fashion, and that each node has an identical number of data points — all of these assumptions are violated in the federated optimization setting. Asynchronous distributed forms of SGD have also been applied to training neural networks, e.g., Dean et al. [12], but these approaches require a prohibitive number of updates in the federated setting. Distributed consensus algorithms (e.g., [41]) relax the IID assumption, but are still not a good fit for communication-constrained optimization over very many clients. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "One endpoint of the (parameterized) algorithm family we consider is simple one-shot averaging, where each client solves for the model that minimizes (possibly regularized) loss on their local data, and these models are averaged to produce the final global model. This approach has been studied extensively in the convex case with IID data, and it is known that in the worst-case, the global model produced is no better than training a model on a single client [44, 3, 46]. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "2 The FederatedAveraging Algorithm ", + "text_level": 1, + "page_idx": 2 + }, + { + "type": "text", + "text": "The recent multitude of successful applications of deep learning have almost exclusively relied on variants of stochastic gradient descent (SGD) for optimization; in fact, many advances can be understood as adapting the structure of the model (and hence the loss function) to be more amenable to optimization by simple gradient-based methods [16]. Thus, it is natural that we build algorithms for federated optimization by starting from SGD. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "", + "page_idx": 3 + }, + { + "type": "text", + "text": "SGD can be applied naively to the federated optimization problem, where a single batch gradient calculation (say on a randomly selected client) is done per round of communication. This approach is computationally efficient, but requires very large numbers of rounds of training to produce good models (e.g., even using an advanced approach like batch normalization, Ioffe and Szegedy [21] trained MNIST for 50000 steps on minibatches of size 60). We consider this baseline in our CIFAR-10 experiments. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "In the federated setting, there is little cost in wall-clock time to involving more clients, and so for our baseline we use large-batch synchronous SGD; experiments by Chen et al. [8] show this approach is state-of-the-art in the data center setting, where it outperforms asynchronous approaches. To apply this approach in the federated setting, we select a $C$ fraction of clients on each round, and compute the gradient of the loss over all the data held by these clients. Thus, $C$ controls the global batch size, with $C = 1$ corresponding to full-batch (non-stochastic) gradient descent.2 We refer to this baseline algorithm as FederatedSGD (or FedSGD). ", + "page_idx": 3 + }, + { + "type": "image", + "img_path": "images/abd625cb80b14f798d71821f61cb8ba70938de7f3008712e342915017c27000d.jpg", + "image_caption": [ + "Figure 1: The loss on the full MNIST training set for models generated by averaging the parameters of two models $w$ and $w ^ { \\prime }$ using $\\theta w + ( 1 - \\theta ) w ^ { \\prime }$ for 50 evenly spaced values $\\theta \\in [ - 0 . 2 , 1 . 2 ]$ .The models $w$ and $w ^ { \\prime }$ were trained using SGD on different small datasets. For the left plot, $w$ and $w ^ { \\prime }$ were initialized using different random seeds; for the right plot, a shared seed was used. Note the different $y$ -axis scales. The horizontal line gives the best loss achieved by $w$ or $w ^ { \\prime }$ (which were quite close, corresponding to the vertical lines at $\\theta = 0$ and $\\theta = 1$ ). With shared initialization, averaging the models produces a significant reduction in the loss on the total training set (much better than the loss of either parent model). " + ], + "image_footnote": [], + "page_idx": 3 + }, + { + "type": "text", + "text": "A typical implementation of FedSGD with $C = 1$ and a fixed learning rate $\\eta$ has each client $k$ compute $g _ { k } =$ $\\nabla F _ { k } ( w _ { t } )$ , the average gradient on its local data at the current model and ap $w _ { t }$ , and the centes the update dients, since $\\begin{array} { r } { w _ { t + 1 } w _ { t } - \\eta \\sum _ { k = 1 } ^ { K } \\frac { n _ { k } } { n } g _ { k } } \\end{array}$ $\\forall k , \\ w _ { t + 1 } ^ { k } \\gets w _ { t } - \\eta g _ { k }$ $\\begin{array} { r } { \\sum _ { k = 1 } ^ { K } \\frac { n _ { k } } { n } g _ { k } = \\nabla f ( w _ { t } ) } \\end{array}$ . An equivalent update is given by and then $\\begin{array} { r } { w _ { t + 1 } \\gets \\sum _ { k = 1 } ^ { K } \\frac { n _ { k } } { n } w _ { t + 1 } ^ { k } } \\end{array}$ That is, each client locally takes one step of gradient descent on the current model using its local data, and the server then takes a weighted average of the resulting models. Once the algorithm is written this way, we can add more computation to each client by iterating the local update $w ^ { k } w ^ { k } - \\eta \\nabla F _ { k } ( w ^ { k } )$ multiple times before the averaging step. We term this approach FederatedAveraging (or FedAvg). The amount of computation is controlled by three key parameters: $C$ , the fraction of clients that perform computation on each round; $E$ , then number of training passes each client makes over its local dataset on each round; and $B$ , the local minibatch size used for the client updates. We write $B = \\infty$ to indicate that the full local dataset is treated as a single minibatch. Thus, at one endpoint of this algorithm family, we can take $B = \\infty$ and $E = 1$ which corresponds exactly to FedSGD. For a client with $n _ { k }$ local examples, the number of local updates per round is given by $\\begin{array} { r } { u _ { k } = E \\frac { n _ { k } } { B } } \\end{array}$ ; Complete pseudo-code is given in Algorithm 1. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "For general non-convex objectives, averaging models in parameter space could produce an arbitrarily bad model. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "Following the approach of Goodfellow et al. [17], we see exactly this bad behavior when we average two MNIST digit-recognition models3 trained from different initial conditions (Figure 1, left). For this figure, the parent models $w$ and $w ^ { \\prime }$ were each trained on non-overlapping IID samples of 600 examples from the MNIST training set. Training was via SGD with a fixed learning rate of 0.1 for 240 updates on minibatches of size 50 (or $E = 2 0$ passes over the mini-datasets of size 600). This is approximately the amount of training where the models begin to overfit their local datasets. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "Recent work indicates that in practice, the loss surfaces of sufficiently over-parameterized NNs are surprisingly wellbehaved and in particular less prone to bad local minima than previously thought [11, 17, 9]. And indeed, when we start two models from the same random initialization and then again train each independently on a different subset of the data (as described above), we find that naive parameter averaging works surprisingly well (Figure 1, right): the average of these two models, $\\scriptstyle { \\frac { 1 } { 2 } } w + { \\frac { 1 } { 2 } } w ^ { \\prime }$ , achieves significantly lower loss on the full MNIST training set than the best model achieved by training on either of the small datasets independently. While Figure 1 starts from a random initialization, note a shared starting model $w _ { t }$ is used for each round of FedAvg, and so the same intuition applies. ", + "page_idx": 3 + }, + { + "type": "table", + "img_path": "images/8b8f03269d11b8ff8c7f9088bd75de4504e852525eab6f6294b0df0a53d40e3d.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
Algorithm 1 FederatedAveraging. The K clients are indexed by k; B is the local minibatch size, E is the number of local epochs, and η is the learning rate.
Server executes: initialize wo for each round t = 1, 2, . .. do m ← max(C · K, 1)
St ← (random set of m clients) for each client k ∈ St in parallel do
nk ,k /I Erratum4 mt mt ← ∑k∈St $nk +1 ωt+1 ← ∑k∈St 1
ClientUpdate(k, w): // Run on client k B ← (split Pk into batches of size B) for each local epoch i from 1 to E do for batch b ∈ B do ω ← ω − η∇(ω; b) return w to server
", + "page_idx": 4 + }, + { + "type": "text", + "text": "3 Experimental Results ", + "text_level": 1, + "page_idx": 4 + }, + { + "type": "text", + "text": "We are motivated by both image classification and language modeling tasks where good models can greatly enhance the usability of mobile devices. For each of these tasks we first picked a proxy dataset of modest enough size that we could thoroughly investigate the hyperparameters of the FedAvg algorithm. While each individual training run is relatively small, we trained over 2000 individual models for these experiments. We then present results on the benchmark CIFAR-10 image classification task. Finally, to demonstrate the effectiveness of FedAvg on a real-world problem with a natural partitioning of the data over clients, we evaluate on a large language modeling task. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "Our initial study includes three model families on two datasets. The first two are for the MNIST digit recognition task [26]: 1) A simple multilayer-perceptron with 2-hidden layers with 200 units each using ReLu activations (199,210 total parameters), which we refer to as the MNIST 2NN. 2) A CNN with two 5x5 convolution layers (the first with 32 channels, the second with 64, each followed with $2 \\mathbf { x } 2$ max pooling), a fully connected layer with 512 units and ReLu activation, and a final softmax output layer (1,663,370 total parameters). To study federated optimization, we also need to specify how the data is distributed over the clients. We study two ways of partitioning the MNIST data over clients: IID, where the data is shuffled, and then partitioned into 100 clients each receiving 600 examples, and Non-IID, where we first sort the data by digit label, divide it into 200 shards of size 300, and assign each of 100 clients 2 shards. This is a pathological non-IID partition of the data, as most clients will only have examples of two digits, letting us explore the degree to which our algorithms will break on highly non-IID data. Both of these partitions are balanced, however.5 ", + "page_idx": 4 + }, + { + "type": "text", + "text": "", + "page_idx": 4 + }, + { + "type": "text", + "text": "For language modeling, we built a dataset from The Complete Works of William Shakespeare [32]. We construct a client dataset for each speaking role in each play with at least two lines. This produced a dataset with 1146 clients. For each client, we split the data into a set of training lines (the first $80 \\%$ of lines for the role), and test lines (the last $20 \\%$ , rounded up to at least one line). The resulting dataset has 3,564,579 characters in the training set, and 870,014 characters6 in the test set. This data is substantially unbalanced, with many roles having only a few lines, and a few with a large number of lines. Further, observe the test set is not a random sample of lines, but is temporally separated by the chronology of each play. Using an identical train/test split, we also form a balanced and IID version of the dataset, also with 1146 clients. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "On this data we train a stacked character-level LSTM language model, which after reading each character in a line, predicts the next character [22]. The model takes a series of characters as input and embeds each of these into a learned 8 dimensional space. The embedded characters are then processed through 2 LSTM layers, each with 256 nodes. Finally the output of the second LSTM layer is sent to a softmax output layer with one node per character. The full model has 866,578 parameters, and we trained using an unroll length of 80 characters. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "SGD is sensitive to the tuning of the learning-rate parameter $\\eta$ . The results reported here are based on training over a sufficiently wide grid of learning rates (typically 11-13 values for $\\eta$ on a multiplicative grid of resolution $1 0 ^ { \\frac { 1 } { 3 } }$ or $1 0 ^ { \\frac { 1 } { 6 } }$ ). We checked to ensure the best learning rates were in the middle of our grids, and that there was not a significant difference between the best learning rates. Unless otherwise noted, we plot metrics for the best performing rate selected individually for each $x$ -axis value. We find that the optimal learning rates do not vary too much as a function of the other parameters. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "Increasing parallelism We first experiment with the client fraction $C$ , which controls the amount of multi-client parallelism. Table 1 shows the impact of varying $C$ for both MNIST models. We report the number of communication rounds necessary to achieve a target test-set accuracy. To compute this, we construct a learning curve for each combination of parameter settings, optimizing $\\eta$ as described above and then making each curve monotonically improving by taking the best value of test-set accuracy achieved over ", + "page_idx": 4 + }, + { + "type": "text", + "text": "Table 1: Effect of the client fraction $C$ on the MNIST 2NN with $E = 1$ and CNN with $E = 5$ . Note $C = 0 . 0$ corresponds to one client per round; since we use 100 clients for the MNIST data, the rows correspond to 1, 10 20, 50, and 100 clients. Each table entry gives the number of rounds of communication necessary to achieve a test-set accuracy of $9 7 \\%$ for the 2NN and $9 9 \\%$ for the CNN, along with the speedup relative to the $C = 0$ baseline. Five runs with the large batch size did not reach the target accuracy in the allowed time. ", + "page_idx": 5 + }, + { + "type": "table", + "img_path": "images/108e45bc171735be3a3e99a62985ac592194371f2b936d52046af60af6d46730.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
2NN CIID-NON-IID.
B=∞B = 10B = ∞B = 10
0.0145531642783275
0.11474(1.0×)87 (3.6×)1796 (2.4×)664(4.9×)
0.2 1658 (0.9×)77(4.1×)1528 (2.8×)619 (5.3×)
0.5(1)75 (4.2×)()443 (7.4×)
1.0(—)70(4.5×)(—)380(8.6×)
CNN, E = 5
0.0387501181956
0.1339 (1.1×)18(2.8×)1100 (1.1×)206 (4.6×)
0.2337 (1.1×)18 (2.8×)978 (1.2×)200(4.8×)
0.5164(2.4×)18 (2.8×)1067 (1.1×)261 (3.7×)
1.0246(1.6×)16(3.1×)(—)97(9.9×)
", + "page_idx": 5 + }, + { + "type": "text", + "text": "all prior rounds. We then calculate the number of rounds where the curve crosses the target accuracy, using linear interpolation between the discrete points forming the curve. This is perhaps best understood by reference to Figure 2, where the gray lines show the targets. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "With $B = \\infty$ (for MNIST processing all 600 client examples as a single batch per round), there is only a small advantage in increasing the client fraction. Using the smaller batch size $B = 1 0$ shows a significant improvement in using $C \\geq 0 . 1$ , especially in the non-IID case. Based on these results, for most of the remainder of our experiments we fix $C = 0 . 1$ , which strikes a good balance between computational efficiency and convergence rate. Comparing the number of rounds for the $B = \\infty$ and $B = 1 0$ columns in Table 1 shows a dramatic speedup, which we investigate next. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "Increasing computation per client In this section, we fix $C = 0 . 1$ , and add more computation per client on each round, either decreasing $B$ , increasing $E$ , or both. Figure 2 demonstrates that adding more local SGD updates per round can produce a dramatic decrease in communication costs, and Table 2 quantifies these speedups. The expected number of updates per client per round is $u \\ = \\ ( \\mathbb { E } [ n _ { k } ] / B ) E \\ =$ $n E / ( K B )$ , where the expectation is over the draw of a random client $k$ . We order the rows in each section of Table 2 by this statistic. We see that increasing $u$ by varying both $E$ and $B$ is effective. As long as $B$ is large enough to take full advantage of available parallelism on the client hardware, there is essentially no cost in computation time for lowering it, and so in practice this should be the first parameter tuned. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "Table 2: Number of communication rounds to reach a target accuracy for FedAvg, versus FedSGD (first row, $E = 1$ and $B = \\infty$ ). The $u$ column gives $u = E n / ( K B )$ , the expected number of updates per round. ", + "page_idx": 5 + }, + { + "type": "table", + "img_path": "images/f95bbb963959efba68d6b28e33df224ad5b1b2d3776aa9138d1d9b57918b8a81.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
MNIST CNN, 99% AcCURAcY
CNNEBuIIDNON-IID
FEDSGD181626483
FEDAVG585179 (3.5×)1000(0.5×)
FEDAVG1501265 (9.6×)600(0.8×)
FEDAVG20820234 (2.7×)672(0.7×)
FEDAVG1106034(18.4×)350(1.4×)
FEDAVG5506029 (21.6×)334(1.4×)
FEDAVG205024032(19.6×)426(1.1):
FEDAVG51030020(31.3×)229(2.1×)
FEDAVG2010120018(34.8×)173(2.8×)
SHAKESPEArE LSTM, 54% AccURAcY
LSTMEBuIIDNON-IID
FEDSGD181.024883906
FEDAVG1501.51635(1.5×) (4.1×)549(7.1×)
FEDAVG585.0613597(6.5×)
FEDAVG1107.4460 (5.4×)164(23.8×)
FEDAVG5507.4401 (6.2×)152(25.7×)
FEDAVG51037.1192(13.0×)41(95.3×)
", + "page_idx": 5 + }, + { + "type": "text", + "text": "For the IID partition of the MNIST data, using more computation per client decreases the number of rounds to reach the target accuracy by $3 5 \\times$ for the CNN and $4 6 \\times$ for the 2NN (see Table 4 in Appendix A for details for the 2NN). The speedups for the pathologically partitioned non-IID data are smaller, but still substantial $( 2 . 8 - 3 . 7 \\times )$ . It is impressive that averaging provides any advantage (vs. actually diverging) when we naively average the parameters of models trained on entirely different pairs of digits. Thus, we view this as strong evidence for the robustness of this approach. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "The unbalanced and non-IID distribution of the Shakespeare (by role in the play) is much more representative of the kind of data distribution we expect for real-world applications. Encouragingly, for this problem learning on the non-IID and unbalanced data is actually much easier (a $9 5 \\times$ speedup vs $1 3 \\times$ for the balanced IID data); we conjecture this is largely due to the fact some roles have relatively large local datasets, which makes increased local training particularly valuable. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "For all three model classes, FedAvg converges to a higher level of test-set accuracy than the baseline FedSGD models. This trend continues even if the lines are extended beyond the plotted ranges. For example, for the CNN the $B = \\infty , E = 1$ FedSGD model eventually reaches $9 9 . 2 2 \\%$ accuracy after 1200 rounds (and had not improved further after 6000 rounds), while the $B = 1 0 , E = 2 0$ FedAvg model reaches an accuracy of $9 9 . 4 4 \\%$ after 300 rounds. We conjecture that in addition to lowering communication costs, model averaging produces a regularization benefit similar to that achieved by dropout [36]. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "We are primarily concerned with generalization performance, but FedAvg is effective at optimizing the training loss as well, even beyond the point where test-set accuracy plateaus. We observed similar behavior for all three model classes, and present plots for the MNIST CNN in Figure 6 ", + "page_idx": 5 + }, + { + "type": "image", + "img_path": "images/211c441b7bc992be60c29bde24697b96b2c03af963bb53ef7faebc053ec6e527.jpg", + "image_caption": [ + "Figure 2: Test set accuracy vs. communication rounds for the MNIST CNN (IID and then pathological non-IID) and Shakespeare LSTM (IID and then by Play&Role) with $C = 0 . 1$ and optimized $\\eta$ . The gray lines show the target accuracies used in Table 2. Plots for the 2NN are given as Figure 7 in Appendix A. " + ], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "in Appendix A. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Can we over-optimize on the client datasets? The current model parameters only influence the optimization performed in each ClientUpdate via initialization. Thus, as $E \\infty$ , at least for a convex problem eventually the initial conditions should be irrelevant, and the global minimum would be reached regardless of initialization. Even for a non-convex problem, one might conjecture the algorithm would converge to the same local minimum as long as the initialization was in the same basin. That is, we would expect that while one round of averaging might produce a reasonable model, additional rounds of communication (and averaging) would not produce further improvements. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Figure 3 shows the impact of large $E$ during initial training on the Shakespeare LSTM problem. Indeed, for very large numbers of local epochs, FedAvg can plateau or diverge.7 This result suggests that for some models, especially in the later stages of convergence, it may be useful to decay the amount of local computation per round (moving to smaller $E$ or larger $B$ ) in the same way decaying learning rates can be useful. Figure 8 in Appendix A gives the analogous experiment for the MNIST CNN. Interestingly, for this model we see no significant degradation in the convergence rate for large values of $E$ . However, we see slightly better performance for $E = 1$ versus $E = 5$ for the large-scale language modeling task described below (see Figure 10 in Appendix A). ", + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/e97d3bf184734de4b1746516181a7b226fee1faa9b9522ea41f39402ec0648d8.jpg", + "image_caption": [ + "Figure 3: The effect of training for many local epochs (large $E$ ) between averaging steps, fixing $B = 1 0$ and $C = 0 . 1$ for the Shakespeare LSTM with a fixed learning rate $\\eta = 1 . 4 7$ . " + ], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/6cdbdd037b1da8aa5aabbb1407d59f2c0ff8667b7dc0a0c7071d46d71f9529c6.jpg", + "image_caption": [ + "Figure 4: Test accuracy versus communication for the CIFAR10 experiments. FedSGD uses a learning-rate decay of 0.9934 per round; FedAvg uses $B = 5 0$ , learning-rate decay of 0.99 per round, and $E = 5$ . " + ], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "", + "page_idx": 6 + }, + { + "type": "text", + "text": "CIFAR experiments We also ran experiments on the CIFAR-10 dataset [24] to further validate FedAvg. The dataset consists of 10 classes of $3 2 \\mathbf { x } 3 2$ images with three RGB channels. There are 50,000 training examples and 10,000 testing examples, which we partitioned into 100 clients each containing 500 training and 100 testing examples; since there isn’t a natural user partitioning of this data, we considered the balanced and IID setting. The model architecture was taken from the TensorFlow tutorial [38], which consists of two convolutional layers followed by two fully connected layers and then a linear transformation layer to produce logits, for a total of about $1 0 ^ { 6 }$ parameters. Note that state-of-the-art approaches have achieved a test accuracy of $9 6 . 5 \\%$ [19] for CIFAR; nevertheless, the standard model we use is sufficient for our needs, as our goal is to evaluate our optimization method, not achieve the best possible accuracy on this task. The images are preprocessed as part of the training input pipeline, which consists of cropping the images to 24x24, randomly flipping left-right and adjusting the contrast, brightness and whitening. ", + "page_idx": 6 + }, + { + "type": "table", + "img_path": "images/357e9330e74c14f3391f75ddcb358d928dae857802ab1a8ebb34c1901dd92964.jpg", + "table_caption": [ + "Table 3: Number of rounds and speedup relative to baseline SGD to reach a target test-set accuracy on CIFAR10. SGD used a minibatch size of 100. FedSGD and FedAvg used $C = 0 . 1$ , with FedAvg using $E = 5$ and $B = 5 0$ . " + ], + "table_footnote": [], + "table_body": "
ACC.80%82%85%
SGD18000(—)31000(—)99000(一)
FEDSGD3750(4.8×)6600(4.7×)N/A-)
FEDAVG280(64.3×)630(49.2×)2000(49.5×)
", + "page_idx": 7 + }, + { + "type": "text", + "text": "", + "page_idx": 7 + }, + { + "type": "text", + "text": "For these experiments, we considered an additional baseline, standard SGD training on the full training set (no user partitioning), using minibatches of size 100. We achieved an $86 \\%$ test accuracy after 197,500 minibatch updates (each minibatch update requires a communication round in the federated setting). FedAvg achieves a similar test accuracy of $85 \\%$ after only 2,000 communication rounds. For all algorithms, we tuned a learning-rate decay parameter in addition to the initial learning rate. Table 3 gives the number of communication rounds for baseline SGD, FedSGD, and FedAvg to reach three different accuracy targets, and Figure 4 gives learning-rate curves for FedAvg versus FedSGD. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "By running experiments with minibatches of size $B = 5 0$ for both SGD and FedAvg, we can also look at accuracy as a function of the number of such minibatch gradient calculations. We expect SGD to do better here, because a sequential step is taken after each minibatch computation. However, as Figure 9 in the appendix shows, for modest values of $C$ and $E$ , FedAvg makes a similar amount of progress per minibatch computation. Further, we see that both standard SGD and FedAvg with only one client per round $\\left( C = 0 \\right)$ ), demonstrate significant oscillations in accuracy, whereas averaging over more clients smooths this out. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "Large-scale LSTM experiments We ran experiments on a large-scale next-word prediction task to demonstrate the effectiveness of our approach on a real-world problem. Our training dataset consists 10 million public posts from a large social network. We grouped the posts by author, for a total of over 500,000 clients. This dataset is a realistic proxy for the type of text entry data that would be present on a user’s mobile device. We limited each client dataset to at most 5000 words, and report accuracy (the fraction of the data where the highest predicted probability was on the correct next word, out of 10000 possibilities) on a test set of 1e5 posts from different (non-training) authors. Our model is a 256 node LSTM on a vocabulary of 10,000 words. The input and output embeddings for each word were of dimension 192, and co-trained with the model; there are 4,950,544 parameters in all. We used an unroll of 10 words. ", + "page_idx": 7 + }, + { + "type": "image", + "img_path": "images/17619a97fe419e12a92f876847ff0533987e47c9246d66127edb08d6064ed47e.jpg", + "image_caption": [ + "Figure 5: Monotonic learning curves for the large-scale language model word LSTM. " + ], + "image_footnote": [], + "page_idx": 7 + }, + { + "type": "text", + "text": "", + "page_idx": 7 + }, + { + "type": "text", + "text": "These experiments required significant computational resources and so we did not explore hyper-parameters as thoroughly: all runs trained on 200 clients per round; FedAvg used $B = 8$ and $E = 1$ . We explored a variety of learning rates for FedAvg and the baseline FedSGD. Figure 5 shows monotonic learning curves for the best learning rates. FedSGD with $\\eta = 1 8 . 0$ required 820 rounds to reach $10 . 5 \\%$ accuracy, while FedAvg with $\\eta = 9 . 0$ reached an accuracy of $10 . 5 \\%$ in only 35 communication rounds $2 3 \\times$ fewer then FedSGD). We observed lower variance in test accuracy for FedAvg, see Figure 10 in Appendix A. This figure also include results for $E = 5$ , which performed slightly worse than $E = 1$ . ", + "page_idx": 7 + }, + { + "type": "text", + "text": "4 Conclusions and Future Work ", + "text_level": 1, + "page_idx": 7 + }, + { + "type": "text", + "text": "Our experiments show that federated learning can be made practical, as FedAvg trains high-quality models using relatively few rounds of communication, as demonstrated by results on a variety of model architectures: a multi-layer perceptron, two different convolutional NNs, a two-layer character LSTM, and a large-scale word-level LSTM. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "While federated learning offers many practical privacy benefits, providing stronger guarantees via differential privacy [14, 13, 1], secure multi-party computation [18], or their combination is an interesting direction for future work. Note that both classes of techniques apply most naturally to synchronous algorithms like FedAvg.8 ", + "page_idx": 7 + }, + { + "type": "text", + "text": "References \n[1] Martin Abadi, Andy Chu, Ian Goodfellow, Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In 23rd ACM Conference on Computer and Communications Security (ACM CCS), 2016. \n[2] Monica Anderson. Technology device ownership: 2015. http://www. pewinternet.org/2015/10/29/ technology-device-ownership-2015/, 2015. \n[3] Yossi Arjevani and Ohad Shamir. Communication complexity of distributed convex learning and optimization. In Advances in Neural Information Processing Systems 28. 2015. \n[4] Maria-Florina Balcan, Avrim Blum, Shai Fine, and Yishay Mansour. Distributed learning, communication complexity and privacy. arXiv preprint arXiv:1204.3514, 2012. \n[5] Yoshua Bengio, Rejean Ducharme, Pascal Vincent, ´ and Christian Janvin. A neural probabilistic language model. J. Mach. Learn. Res., 2003. \n[6] Keith Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone, H. Brendan McMahan, Sarvar Patel, Daniel Ramage, Aaron Segal, and Karn Seth. Practical secure aggregation for federated learning on user-held data. In NIPS Workshop on Private Multi-Party Machine Learning, 2016. \n[7] David L. Chaum. Untraceable electronic mail, return addresses, and digital pseudonyms. Commun. ACM, 24(2), 1981. \n[8] Jianmin Chen, Rajat Monga, Samy Bengio, and Rafal Jozefowicz. Revisiting distributed synchronous sgd. In ICLR Workshop Track, 2016. \n[9] Anna Choromanska, Mikael Henaff, Michael Mathieu, ¨ Gerard Ben Arous, and Yann LeCun. The loss surfaces ´ of multilayer networks. In AISTATS, 2015. \n[10] Greg Corrado. Computer, respond to this email. http:// googleresearch.blogspot.com/2015/ 11/computer-respond-to-this-email. html, November 2015. \n[11] Yann N. Dauphin, Razvan Pascanu, C¸ aglar Gul¨ c¸ehre, KyungHyun Cho, Surya Ganguli, and Yoshua Bengio. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. In NIPS, 2014. \n[12] Jeffrey Dean, Greg S. Corrado, Rajat Monga, Kai Chen, Matthieu Devin, Quoc V. Le, Mark Z. Mao, Marc’Aurelio Ranzato, Andrew Senior, Paul Tucker, Ke Yang, and Andrew Y. Ng. Large scale distributed deep networks. In NIPS, 2012. \n[13] John Duchi, Michael I. Jordan, and Martin J. Wainwright. Privacy aware learning. Journal of the Association for Computing Machinery, 2014. \n[14] Cynthia Dwork and Aaron Roth. The Algorithmic Foundations of Differential Privacy. Foundations and Trends in Theoretical Computer Science. Now Publishers, 2014. \n[15] Olivier Fercoq, Zheng Qu, Peter Richtarik, and Martin ´ Takac. Fast distributed coordinate descent for non- ´ strongly convex losses. In Machine Learning for Signal Processing (MLSP), 2014 IEEE International Workshop on, 2014. \n[16] Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep learning. Book in preparation for MIT Press, 2016. \n[17] Ian J. Goodfellow, Oriol Vinyals, and Andrew M. Saxe. Qualitatively characterizing neural network optimization problems. In ICLR, 2015. \n[18] Slawomir Goryczka, Li Xiong, and Vaidy Sunderam. Secure multiparty aggregation with differential privacy: A comparative study. In Proceedings of the Joint EDBT/ICDT 2013 Workshops, 2013. \n[19] Benjamin Graham. Fractional max-pooling. CoRR, abs/1412.6071, 2014. URL http://arxiv.org/ abs/1412.6071. \n[20] Sepp Hochreiter and Jurgen Schmidhuber. Long short- ¨ term memory. Neural Computation, 9(8), November 1997. \n[21] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015. \n[22] Yoon Kim, Yacine Jernite, David Sontag, and Alexander M. Rush. Character-aware neural language models. CoRR, abs/1508.06615, 2015. \n[23] Jakub Konecnˇ y, H. Brendan McMahan, Felix X. Yu, ´ Peter Richtarik, Ananda Theertha Suresh, and Dave Bacon. Federated learning: Strategies for improving communication efficiency. In NIPS Workshop on Private Multi-Party Machine Learning, 2016. \n[24] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009. \n[25] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS. 2012. \n[26] Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11), 1998. \n[27] Chenxin Ma, Virginia Smith, Martin Jaggi, Michael I Jordan, Peter Richtarik, and Martin Tak ´ a´c. Adding vs. ˇ averaging in distributed primal-dual optimization. In ICML, 2015. \n[43] Yuchen Zhang and Lin Xiao. Communication-efficient distributed optimization of self-concordant empirical loss. arXiv preprint arXiv:1501.00263, 2015. \n[44] Yuchen Zhang, Martin J Wainwright, and John C Duchi. Communication-efficient algorithms for statistical optimization. In NIPS, 2012. \n[45] Yuchen Zhang, John Duchi, Michael I Jordan, and Martin J Wainwright. Information-theoretic lower bounds for distributed statistical estimation with communication constraints. In Advances in Neural Information Processing Systems, 2013. \n[46] Martin Zinkevich, Markus Weimer, Lihong Li, and Alex J. Smola. Parallelized stochastic gradient descent. In NIPS. 2010. \n[28] Ryan McDonald, Keith Hall, and Gideon Mann. Distributed training strategies for the structured perceptron. In NAACL HLT, 2010. \n[29] Natalia Neverova, Christian Wolf, Griffin Lacey, Lex Fridman, Deepak Chandra, Brandon Barbello, and Graham W. Taylor. Learning human identity from motion patterns. IEEE Access, 4:1810–1820, 2016. \n[30] Jacob Poushter. Smartphone ownership and internet usage continues to climb in emerging economies. Pew Research Center Report, 2016. \n[31] Daniel Povey, Xiaohui Zhang, and Sanjeev Khudanpur. Parallel training of deep neural networks with natural gradient and parameter averaging. In ICLR Workshop Track, 2015. \n[32] William Shakespeare. The Complete Works of William Shakespeare. Publically available at https: //www.gutenberg.org/ebooks/100. \n[33] Ohad Shamir and Nathan Srebro. Distributed stochastic optimization and learning. In Communication, Control, and Computing (Allerton), 2014. \n[34] Ohad Shamir, Nathan Srebro, and Tong Zhang. Communication efficient distributed optimization using an approximate newton-type method. arXiv preprint arXiv:1312.7853, 2013. \n[35] Reza Shokri and Vitaly Shmatikov. Privacy-preserving deep learning. In Proceedings of the 22Nd ACM SIGSAC Conference on Computer and Communications Security, CCS ’15, 2015. \n[36] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. 15, 2014. \n[37] Latanya Sweeney. Simple demographics often identify people uniquely. 2000. \n[38] TensorFlow team. Tensorflow convolutional neural networks tutorial, 2016. http://www.tensorflow. org/tutorials/deep_cnn. \n[39] White House Report. Consumer data privacy in a networked world: A framework for protecting privacy and promoting innovation in the global digital economy. Journal of Privacy and Confidentiality, 2013. \n[40] Tianbao Yang. Trading computation for communication: Distributed stochastic dual coordinate ascent. In Advances in Neural Information Processing Systems, 2013. \n[41] Ruiliang Zhang and James Kwok. Asynchronous distributed admm for consensus optimization. In ICML. JMLR Workshop and Conference Proceedings, 2014. \n[42] Sixin Zhang, Anna E Choromanska, and Yann LeCun. Deep learning with elastic averaging sgd. In NIPS. 2015. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "", + "page_idx": 8 + }, + { + "type": "text", + "text": "", + "page_idx": 9 + }, + { + "type": "text", + "text": "", + "page_idx": 9 + }, + { + "type": "text", + "text": "A Supplemental Figures and Tables ", + "text_level": 1, + "page_idx": 10 + }, + { + "type": "image", + "img_path": "images/dfd7828f52875216d60bd0ff7b8e385aaa32ce349b59ad76c49a2b602e65d8cb.jpg", + "image_caption": [ + "Figure 6: Training set convergence for the MNIST CNN. Note the $y$ -axis is on a log scale, and the $x$ -axis covers more training than Figure 2. These plots fix $C = 0 . 1$ . " + ], + "image_footnote": [], + "page_idx": 10 + }, + { + "type": "image", + "img_path": "images/ad06b660399440df891793d67f6b6cc17b20643d5e2a889d46dc5494cbf2165e.jpg", + "image_caption": [ + "Figure 7: Test set accuracy vs. communication rounds for MNIST 2NN with $C = 0 . 1$ and optimized $\\eta$ . The left column is the IID dataset, and right is the pathological 2- digits-per-client non-IID data. " + ], + "image_footnote": [], + "page_idx": 10 + }, + { + "type": "image", + "img_path": "images/b0e3a4a3004f05c7a5016557833153a4ae2b550fcab54c3258cb03bc234923ed.jpg", + "image_caption": [ + "Figure 8: The effect of training for many local epochs (large $E$ ) between averaging steps, fixing $B = 1 0$ and $C = 0 . 1$ . Training loss for the MNIST CNN. Note different learning rates and $y$ -axis scales are used due to the difficulty of our pathological non-IID MNIST dataset. " + ], + "image_footnote": [], + "page_idx": 10 + }, + { + "type": "table", + "img_path": "images/0adecab06a21557b4ffbd06f2737b9d3446e81f8a598aeba159b406bfae2477c.jpg", + "table_caption": [ + "Table 4: Speedups in the number of communication rounds to reach a target accuracy of $9 7 \\%$ for FedAvg, versus FedSGD (first row) on the MNIST 2NN model. " + ], + "table_footnote": [], + "table_body": "
MNIST 2NNEBuIDNON-IID
FEDSGD18114681817
FEDAVG10810156(9.4×)1100(1.7×)
FEDAVG15012144(10.2×)1183(1.5×)
FEDAVG2082092(16.0×)957(1.9×)
FEDAVG1106092(16.0×)831(2.2×)
FEDAVG105012045(32.6×881 (2.1×)
FEDAVG205024039(37.6×835(2.2×)
FEDAVG101060034(43.2×)497 (3.7×)
FEDAVG2010120032 (45.9×)738(2.5×)
", + "page_idx": 10 + }, + { + "type": "image", + "img_path": "images/31ebaf7d20b53f16e6db688041c2857625d8de1dab49b0887f0830ec02e6fb97.jpg", + "image_caption": [ + "Figure 9: Test accuracy versus number of minibatch gradient computations $[ B = 5 0 ]$ ). The baseline is standard sequential SGD, as compared to FedAvg with different client fractions $C$ (recall $C = 0$ means one client per round), and different numbers of local epochs $E$ . " + ], + "image_footnote": [], + "page_idx": 10 + }, + { + "type": "image", + "img_path": "images/3350471370785f32096c628a52d42d9afa0f2595264583ef711e34979da1fb25.jpg", + "image_caption": [ + "Figure 10: Learning curves for the large-scale language model word LSTM, with evaluation computed every 20 rounds. FedAvg actually performs better with fewer local epochs $E$ (1 vs 5), and also has lower variance in accuracy across evaluation rounds compared to FedSGD. " + ], + "image_footnote": [], + "page_idx": 10 + } +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/0adecab06a21557b4ffbd06f2737b9d3446e81f8a598aeba159b406bfae2477c.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/0adecab06a21557b4ffbd06f2737b9d3446e81f8a598aeba159b406bfae2477c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..947243e0fb420640dc336bfae4943302232b8f7b Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/0adecab06a21557b4ffbd06f2737b9d3446e81f8a598aeba159b406bfae2477c.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/108e45bc171735be3a3e99a62985ac592194371f2b936d52046af60af6d46730.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/108e45bc171735be3a3e99a62985ac592194371f2b936d52046af60af6d46730.jpg new file mode 100644 index 0000000000000000000000000000000000000000..fa1782bc481abcd1ede263147bcdbb3983fb7e57 Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/108e45bc171735be3a3e99a62985ac592194371f2b936d52046af60af6d46730.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/17619a97fe419e12a92f876847ff0533987e47c9246d66127edb08d6064ed47e.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/17619a97fe419e12a92f876847ff0533987e47c9246d66127edb08d6064ed47e.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b3ec4b0f3f23b1d8db699f50442ad9bb4605cd7a Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/17619a97fe419e12a92f876847ff0533987e47c9246d66127edb08d6064ed47e.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/211c441b7bc992be60c29bde24697b96b2c03af963bb53ef7faebc053ec6e527.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/211c441b7bc992be60c29bde24697b96b2c03af963bb53ef7faebc053ec6e527.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b1d47bfe071f2440bf69c93f34b5e00d53a0c2ea Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/211c441b7bc992be60c29bde24697b96b2c03af963bb53ef7faebc053ec6e527.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/31ebaf7d20b53f16e6db688041c2857625d8de1dab49b0887f0830ec02e6fb97.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/31ebaf7d20b53f16e6db688041c2857625d8de1dab49b0887f0830ec02e6fb97.jpg new file mode 100644 index 0000000000000000000000000000000000000000..21db45a26c2d0a95f6f54b35ef333816a5e6cae5 Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/31ebaf7d20b53f16e6db688041c2857625d8de1dab49b0887f0830ec02e6fb97.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/3350471370785f32096c628a52d42d9afa0f2595264583ef711e34979da1fb25.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/3350471370785f32096c628a52d42d9afa0f2595264583ef711e34979da1fb25.jpg new file mode 100644 index 0000000000000000000000000000000000000000..79ce7b28ae92530e6f6a827a25bb704fdc0cee4c Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/3350471370785f32096c628a52d42d9afa0f2595264583ef711e34979da1fb25.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/357e9330e74c14f3391f75ddcb358d928dae857802ab1a8ebb34c1901dd92964.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/357e9330e74c14f3391f75ddcb358d928dae857802ab1a8ebb34c1901dd92964.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8de00795ed1283b7d8b257a7e8a17882e6de6851 Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/357e9330e74c14f3391f75ddcb358d928dae857802ab1a8ebb34c1901dd92964.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/6cdbdd037b1da8aa5aabbb1407d59f2c0ff8667b7dc0a0c7071d46d71f9529c6.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/6cdbdd037b1da8aa5aabbb1407d59f2c0ff8667b7dc0a0c7071d46d71f9529c6.jpg new file mode 100644 index 0000000000000000000000000000000000000000..fcd3a33023f18fbbe953c11f18701917e2e34a84 Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/6cdbdd037b1da8aa5aabbb1407d59f2c0ff8667b7dc0a0c7071d46d71f9529c6.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/732d5b867114ffa941ef640ff061247c9d408441bf1bcbd223802cbe24976e3c.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/732d5b867114ffa941ef640ff061247c9d408441bf1bcbd223802cbe24976e3c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..321eae8a5870d442aa634dac1f048d9de925c761 Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/732d5b867114ffa941ef640ff061247c9d408441bf1bcbd223802cbe24976e3c.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/8b8f03269d11b8ff8c7f9088bd75de4504e852525eab6f6294b0df0a53d40e3d.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/8b8f03269d11b8ff8c7f9088bd75de4504e852525eab6f6294b0df0a53d40e3d.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9044459b1445541b4db6453683669df3116c64ce Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/8b8f03269d11b8ff8c7f9088bd75de4504e852525eab6f6294b0df0a53d40e3d.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/abd625cb80b14f798d71821f61cb8ba70938de7f3008712e342915017c27000d.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/abd625cb80b14f798d71821f61cb8ba70938de7f3008712e342915017c27000d.jpg new file mode 100644 index 0000000000000000000000000000000000000000..598b48b954e281a1cdb60304b4303eaa78d7b632 Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/abd625cb80b14f798d71821f61cb8ba70938de7f3008712e342915017c27000d.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/ad06b660399440df891793d67f6b6cc17b20643d5e2a889d46dc5494cbf2165e.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/ad06b660399440df891793d67f6b6cc17b20643d5e2a889d46dc5494cbf2165e.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2f8b287133d3f48631acb5f84730abd23776e34f Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/ad06b660399440df891793d67f6b6cc17b20643d5e2a889d46dc5494cbf2165e.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/b0e3a4a3004f05c7a5016557833153a4ae2b550fcab54c3258cb03bc234923ed.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/b0e3a4a3004f05c7a5016557833153a4ae2b550fcab54c3258cb03bc234923ed.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b2288ce429b5c65ff9f6b6aa7fea69d6e29ce575 Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/b0e3a4a3004f05c7a5016557833153a4ae2b550fcab54c3258cb03bc234923ed.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/dfd7828f52875216d60bd0ff7b8e385aaa32ce349b59ad76c49a2b602e65d8cb.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/dfd7828f52875216d60bd0ff7b8e385aaa32ce349b59ad76c49a2b602e65d8cb.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2ffcd7ce430c89c6b19a960003ac98e94c3647d6 Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/dfd7828f52875216d60bd0ff7b8e385aaa32ce349b59ad76c49a2b602e65d8cb.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/e08529dfd6f13e8660b02c1f58a1773e76be33509427490a2bff99b815f6307a.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/e08529dfd6f13e8660b02c1f58a1773e76be33509427490a2bff99b815f6307a.jpg new file mode 100644 index 0000000000000000000000000000000000000000..31f56962b365b9c60340052ca2696a2d9b784213 Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/e08529dfd6f13e8660b02c1f58a1773e76be33509427490a2bff99b815f6307a.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/e97d3bf184734de4b1746516181a7b226fee1faa9b9522ea41f39402ec0648d8.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/e97d3bf184734de4b1746516181a7b226fee1faa9b9522ea41f39402ec0648d8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6d5d442f8638f4815eee4be4bad930aae74ddedb Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/e97d3bf184734de4b1746516181a7b226fee1faa9b9522ea41f39402ec0648d8.jpg differ diff --git a/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/f95bbb963959efba68d6b28e33df224ad5b1b2d3776aa9138d1d9b57918b8a81.jpg b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/f95bbb963959efba68d6b28e33df224ad5b1b2d3776aa9138d1d9b57918b8a81.jpg new file mode 100644 index 0000000000000000000000000000000000000000..642f3db40382585e5690a693798dcfce5c898476 Binary files /dev/null and b/backend/ingestion_pipeline/output/Communication-Efficient Learning of Deep Networks/auto/images/f95bbb963959efba68d6b28e33df224ad5b1b2d3776aa9138d1d9b57918b8a81.jpg differ diff --git a/backend/ingestion_pipeline/output/MOE/auto/MOE.md b/backend/ingestion_pipeline/output/MOE/auto/MOE.md new file mode 100644 index 0000000000000000000000000000000000000000..ee5e09fb7a23e6ac7bab9500a1c343348e9a40f0 --- /dev/null +++ b/backend/ingestion_pipeline/output/MOE/auto/MOE.md @@ -0,0 +1,708 @@ +# A Comprehensive Survey of Mixture-of-Experts: Algorithms, Theory, and Applications + +Siyuan Mu and Sen Lin + +Abstract—Artificial intelligence (AI) has achieved astonishing successes in many domains, especially with the recent breakthroughs in the development of foundational large models. These large models, leveraging their extensive training data, provide versatile solutions for a wide range of downstream tasks. However, as modern datasets become increasingly diverse and complex, the development of large AI models faces two major challenges: (1) the enormous consumption of computational resources and deployment difficulties, and (2) the difficulty in fitting heterogeneous and complex data, which limits the usability of the models. Mixture of Experts (MoE) models has recently attracted much attention in addressing these challenges, by dynamically selecting and activating the most relevant submodels to process input data. It has been shown that MoEs can significantly improve model performance and efficiency with fewer resources, particularly excelling in handling large-scale, multimodal data. Given the tremendous potential MoE has demonstrated across various domains, it is urgent to provide a comprehensive summary of recent advancements of MoEs in many important fields. Existing surveys on MoE have their limitations, e.g., being outdated or lacking discussion on certain key areas, and we aim to address these gaps. In this paper, we first introduce the basic design of MoE, including gating functions, expert networks, routing mechanisms, training strategies, and system design. We then explore the algorithm design of MoE in important machine learning paradigms such as continual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning. Additionally, we summarize theoretical studies aimed at understanding MoE and review its applications in computer vision and natural language processing. Finally, we discuss promising future research directions. + +Index Terms—Mixture-of-Experts, Continual Learning, MetaLearning, Multi-Task Learning, Reinforcement Learning, Federated Learning, Computer Vision, Natural Language Processing + +# I. INTRODUCTION + +Artificial Intelligence (AI) has emerged as a transformative force in modern technologies, demonstrating remarkable successes across multiple domains from computer vision [1], [2], [3] and speech recognition [4], [5] to healthcare [6] and autonomous systems [7]. A key driver behind this is the development of foundation models, such as BERT [8], CLIP [9], GPT-4 [10] which are large-scale neural networks pretrained on massive datasets and provide versatile solutions for a wide range of downstream tasks. Building upon the pretrained knowledge, these models can be further fine-tuned with minimal additional training to adapt to specific applications, making them indispensable tools for handling increasingly complex and diverse tasks in many real-world scenarios. + +However, as AI applications expand, modern datasets are becoming more diverse and complex. They often contain multimodal data (e.g., text, images, and audio) and exhibit intricate structures (e.g., graphs or hierarchical relationships). This diversity and complexity introduce two significant challenges: (1) the computational cost of training and deploying large models grows exponentially, making it unsustainable for many applications [11], and (2) integrating conflicting or heterogeneous knowledge within a single model becomes increasingly difficult, often leading to unstable training dynamics and suboptimal performance [12]. These challenges underscore the need for more efficient and scalable architectures capable of meeting the growing demands of modern AI tasks. + +One promising approach to addressing these challenges is the Mixture of Experts (MoE) architecture, which has attracted much attention recently. Originally proposed in [13], [14], MoE adopts a “divide and conquer” strategy that fundamentally differs from traditional dense models. While conventional models activate all parameters for every input, MoE models dynamically select and activate only the most relevant subset of parameters based on the characteristics of the input data. This approach not only enhances the specialization of individual experts but also mitigates the difficulties associated with training on diverse and conflicting tasks. Furthermore, the selective activation mechanism allows MoE models to significantly expand their capacity and handle diverse knowledge domains without proportionally increasing computational costs, thereby achieving an optimal balance between performance and efficiency [15], [16]. By leveraging the strengths of specialized “experts” for different tasks or data types, MoE provides a scalable and flexible framework for tackling the challenges posed by complex, multifaceted datasets. + +Notably, the MoE model architecture has demonstrated its unique advantages and tremendous potentials especially in large language models (LLMs) [184], [185], [186], [21], [15], [20], [52], [187], [188], [189], [190], [191], [192], [193], [194], [195]. For instance, the Switch Transformer [15] achieves 7 times faster in pre-training speed compared to the T5-Base [196] model, and shows improved performance across all 101 languages in a multilingual setting. It has also successfully scaled the number of parameters to the trillion level, achieving a pre-training speed 4 times faster than the T5- XXL [196] model at this scale. GLaM [20] has also expanded its parameters to the trillion level, enhancing the model’s ability to utilize contextual information. Deepspeed-moe [52] leverages MoE and model compression techniques to reduce the size of MoE models by 3.7 times. ST-MoE [187] has further investigated the stability and transferability of MoE models, proposing various methods such as Router z-loss to ensure training stability. Ultimately, on the SuperGLUE [197] benchmark, the ST-MoE-32B model surpassed the previous state-of-the-art models. OpenMoE [191] has experimented with decoder-only MoE and provided an in-depth discussion on the routing mechanisms of MoE, making significant contributions to the open-source community’s understanding of MoE architectures. Mixtral ${ \bf 8 } { \bf \times } 7 { \bf B }$ [22], despite processing each token with only 13 billion active parameters, is able to access a total of 47 billion parameters thanks to its distinctive architecture. This allows Mixtral ${ } ^ { 8 \mathrm { x } 7 \mathrm { B } }$ to achieve higher parameter efficiency and effectively control computational costs. The impressive performance of the DeepSeek series [198], [199], [53], [200] has also garnered significant attention. These models leverage MoE architectures to achieve state-ofthe-art results on a variety of benchmarks while maintaining manageable computational requirements. + +![This image is a **moderate complexity** diagram outlining the roadmap of Mixture of Experts (MoE) as covered in the paper. It presents a hierarchical structure, starting with "Basics of MoE" which branches into "Gating Function," "Expert Network," "Routing Strategy," "Training Strategy," and "System Design." The "Algorithms" section further subdivides into "Continual Learning," "Meta Learning," "Multi-task Learning," and "Reinforcement Learning," each listing relevant research papers. Finally, "Applications" are categorized under "Theory," "CV" (Computer Vision) with sub-categories like "Image Classification" and "Object Detection," and "NLP" (Natural Language Processing) with sub-categories such as "Text Generation" and "Machine Translation."](images/7a89037bb830acff4d6906979097eac9d166333a3a32003326f58f543bd26e4f.jpg) +Fig. 1. The roadmap of Mixture of Experts (MoE) covered in this paper. + +Beyond efficiency, MoE models also offer opportunities to improve model interpretability [101], [201], [35], [202]. By learning intrinsic allocation mechanisms, researchers can gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability not only enhances our understanding of the model behaviors but also opens new avenues for designing more robust and transparent AI systems. + +Given the rapidly growing research interests in MoE and the huge potentials of MoE in various application domains, there is an urgent need of a comprehensive survey for summarizing and disseminating the recent advances of MoE, in order to elicit escalating attentions and inspire further research ideas in this field. Nevertheless, the early surveys of MoE [203], [204] were published ten years ago and have not incorporated the new development in the area. There is only one new survey [205] that emerged last year, which however 1) emphasized more on the basic designs of MoE and 2) did not provide a broad discussion on the use of MoEs in important machine learning paradigms and application fields such as computer vision. The theory development in MoE has also not been covered. + +And although some other new concurrent surveys have been uploaded online very recently during the preparation of our paper, these surveys still either focus on a special aspect of MoE, such as applications in big data [206], inference optimization [207] and LLMs [208], or cover multiple topics very briefly [209]. To the best of our knowledge, our paper is the first survey that comprehensively summarizes the latest advancement in MoE, which includes four key components: basic design strategies of MoE, MoE-based algorithm designs in mainstream machine learning directions, theory towards understanding MoE in various scenarios, and an in-depth review of applications of MoE in both computer vision and natural language processing. + +This paper will be organized as follows (as illustrated in + +Figure 1). In Section II, we will provide a comprehensive introduction to the basic designs of MoE, ranging from basic architecture design to training strategies to system optimization strategies. In Section III, we will introduce the recent MoEbased algorithm design in four important machine learning paradigms, including continual learning, meta-learning, multitask learning, reinforcement learning, and federated learning, which seeks to provide readers a general idea about how MoE can be leveraged to improve the algorithm design in these domains. In Section IV, we will summarize the efforts towards building the theoretical understanding of MoE, which covers a variety of aspects in MoE, such as different gating functions, different expert models, and different learning scenarios. In Section V, we will present the recent applications of MoE in two major domains, i.e., computer vision and natural language processing, where we look into multiple important subproblems in each domain. Future research directions will be discussed in Section VI, followed by the conclusion in Section VII. + +# II. BASIC DESIGNS OF MOE + +In this section, we will focus on the basic framework and design considerations in MoE to help readers understand the general workflow of MoE, as shown in Figure 2. More specifically, we will first introduce the key components in the design of MoE, including the gating function, the expert networks, and the routing mechanism. The first two components essentially form a basic framework of MoE, whereas the last component characterizes how the gating function handles the input data. Next, we will introduce the strategies, i.e., loss function and pipeline design, so as to guarantee proper training of MoEs. In the end, system designs will be discussed to optimize the system efficiency of MoE from multiple perspectives. + +![This image is of **moderate complexity**. + +The diagram illustrates a standard Mixture-of-Experts (MoE) Layer. An "Input" is processed by a "Router," depicted as a circular element containing a bar chart, which then directs the input to multiple "Expert" modules. The outputs from these experts are combined, with some undergoing element-wise multiplication (indicated by a circle with an 'x') and others element-wise addition (indicated by a circle with a '+'), before being aggregated into a final "Output." This architecture suggests a mechanism for selectively activating different expert networks based on the input.](images/25ac1650d6400589cbff90e22301afd16ec3dbfabbff7cc90491ce1be966f81d.jpg) +Fig. 2. The simple schematic of a standard MoE architecture. + +# A. Gating Function + +The gating function serves as the mathematical implementation of a router, determining how input data is allocated to designated experts. Clearly, the effectiveness of MoE models is intrinsically tied to this allocation strategy, making the design of the gating function a critical consideration. Below, we provide a detailed discussion on the principles and considerations for designing an effective gating function. + +When selecting a gating function, the following criteria should be prioritized: (1) The function must accurately discern the characteristics of both input data and experts. This enables the assignment of similar data to the same expert or group of experts, ensuring that each expert receives a sufficiently large and coherent training set. Such specialization allows experts to develop expertise in specific knowledge domains. (2) The input data should be distributed as evenly as possible among the predefined experts. An uneven distribution can lead to model collapse, which reduces the efficiency of the MoE framework by underutilizing experts and impairs performance due to insufficient separation of conflicting knowledge in the training data. + +1) Linear Gating. Based on these considerations, most existing MoE models [15], [17], [18], [19], [20] use a linear function with softmax as their gating functions due to its simplicity and effectiveness, which is also referred as softmax gating: + +$$ +G ( x ) _ { i } = \mathrm { s o f t m a x } ( \mathrm { T o p K } ( g ( x ) + \mathcal { R } _ { \mathrm { n o i s e } } , k ) ) _ { i } , +$$ + +$$ +\mathrm { T o p K } ( v ) = { \left\{ \begin{array} { l l } { v _ { i } } & { { \mathrm { i f ~ } } v _ { i } { \mathrm { ~ i s ~ o n e ~ o f ~ t h e ~ t o p ~ } } k { \mathrm { ~ e l e m e n } } } \\ { - \infty } & { { \mathrm { o t h e r w i s e . } } } \end{array} \right. } +$$ + +Here $G$ represents the gating function, the TopK function retains the $k$ highest scoring inputs out of $N$ experts and sets the rest to negative infinity, $g$ represents the gating value calculated with a linear function prior to the softmax operation, $x$ denotes the input, $\mathcal { R } _ { \mathrm { n o i s e } }$ represents the noise to encourage expert exploration, $w$ denotes the model parameters, and $k$ is a hyperparameter that can either be learned or manually set. + +The order of the TopK and softmax operations in the above expression is flexible and can be designed based on specific requirements. One approach is to perform the TopK operation before softmax [16], [22], [20]. This method quickly filters out the most relevant experts, eliminating the need to compute softmax for all experts and thereby reducing computational overhead. However, the scores obtained after TopK may not conform to a probability distribution, necessitating an additional normalization step. Moreover, the TopK operation is inherently “hard,” potentially excluding experts with low scores that could still contribute meaningfully. Alternatively, the TopK function can be applied after softmax [21], [17], [15], [18]. In this case, the softmax function first normalizes the scores into a probability distribution, providing statistically meaningful activation weights for each expert. This approach offers more clear guidance on determining the value of $k$ in the TopK operation. However, it requires computing softmax for all experts, resulting in higher computational costs. + +When the MoE is incorporated into existing models, usually a Transformer [210], we typically replace the Feed-Forward + +Network (FFN) layer within a transformer block by using an MoE layer. There are several reasons [16] behind this design choice: First, the computational cost of the FFN layer typically constitutes a significant portion of the total computational cost in a Transformer, especially in deep models. By replacing the FFN layer with an MoE layer, the computational cost can be significantly reduced while maintaining the model’s expressive power. Additionally, replacing the Self-Attention layer would disrupt the core mechanism of the Transformer, which is not aligned with our objectives. + +2) Non-linear Gating. The gating functions can also be non-linear. Specifically, a gating function design based on cosine distance is proposed in GMoE [23] for domain generalization tasks, which is shown as follows: + +$$ +G ( x ) = \mathrm { T o p K } \left( \mathrm { s o f t m a x } \left( \frac { E ^ { T } W _ { l i n e a r } x } { \tau \| W _ { l i n e a r } x \| \| E \| } \right) \right) +$$ + +where $\boldsymbol { x } \in \mathbb { R } ^ { d _ { e } }$ is the input of MoE module, $W _ { l i n e a r } \in \mathbb { R } ^ { d _ { e } }$ is a learnable linear transformation for $x$ , responsible for projecting $x$ into a hypersphere space. The number of expert networks is $N$ , and $\boldsymbol { E } \in \mathbb { R } ^ { d _ { e } \times N }$ represents the features of the $N$ expert networks. In the gating function, the input $x$ is projected into a new space and compared with the expert embeddings $E$ using cosine similarity to determine which experts each input $x$ should be assigned to. In this way, the expert embeddings $E$ can capture the feature representations of different experts and are gradually optimized during training to better adapt to the task requirements. Additinally, the temperature parameter $\tau$ controls the sharpness of the gating distribution. A smaller $\tau$ makes the distribution sharper, favoring the selection of a few experts, while a larger $\tau$ makes the distribution smoother, allowing more experts to participate. + +Comprehensive theoretical and experimental evidence has been provided in [23] to demonstrate the superiority of using cosine routers over linear routers in domain generalization tasks. Specifically, the cosine router excels at handling crossdomain data, capturing visual attributes, and enhancing the model’s generalization capability and efficiency. There are also more studies that have employed cosine routers for better performance [24], [25], which encourages us to explore more on the design of gating functions beyond the cosine routers. + +In addition to the cosine gating function, there are many other designs of nonlinear functions, such as the gating function based on exponential Family of Distributions [26] as shown in Equation (4), + +$$ +G _ { j } ( x , \nu ) = \frac { \beta _ { j } D ( x | \nu _ { j } ) } { \sum _ { i } \beta _ { i } D ( x | \nu _ { i } ) } , +$$ + +Here $\beta _ { j }$ is the prior probability of the $j$ th expert network, satisfying $\begin{array} { r } { \sum _ { j } \beta _ { j } = 1 } \end{array}$ and $\beta _ { j } \geq 0$ . $D ( x | \nu _ { j } )$ is the conditional probability density function of input $x$ under the $j$ th expert network, belonging to the exponential family distribution. This approach analytically updates the gating function during iterations, and overcomes the nonlinear relationships introduced by softmax and the additional iterative optimization steps that follow (such as IRLS, Iteratively Reweighted Least Squares). The most common example is the Gaussian distribution. + +There is also a special gating function in Soft MoE [27] that no longer employs a discrete token allocation mechanism. Specifically, Soft MoE calculates the weights between each token and each expert, then uses these weights for weighted averaging to generate input slots. Consequently, the slots processed by each expert are a weighted combination of all tokens, rather than individual tokens. This approach avoids potential token dropping issues due to load imbalances and optimization difficulties caused by discrete operations such as TopK. + +Gating functions based on the Student-t distribution [211] are particularly suitable for data groups exhibiting long-tail phenomena or outliers, because they offer more robust fitting capabilities. [28] utilizes a multinomial probit model [212], [213] to determine the expert model that each observation belongs to. + +![**Image Complexity:** Moderate + +**Description:** + +This schematic illustrates a Mixture-of-Experts (MoE) layer, a core component in advanced neural network architectures. An input signal is processed by a "Router" which determines the gating weights for multiple "Expert" networks. These experts, represented by stacked colored rectangles, can be various neural network types, including Feed-Forward Networks (FFN), Attention mechanisms, and Convolutional Neural Networks (CNNs), as indicated in the upper bounding box. The router's gating weights are used to combine the outputs of selected experts through element-wise multiplication and summation operations to produce the final output. This design allows for dynamic specialization of network components based on input data.](images/13b002358a1e3cdbbff3c9e548b2af7213ef2e52392ed0d3a456d659ffe88b1f.jpg) +Fig. 3. Various expert networks for the MoE layer schematic. + +# B. Expert Networks + +The expert network is a core component of the MoE architecture. By dynamically selecting the most suitable expert network through the gating function, MoE efficiently allocates input data, enabling different experts to specialize in distinct knowledge domains. This design enhances the model’s overall performance, generalization ability, and computational efficiency, particularly when handling complex and diverse tasks. + +In principle, each expert network in MoE can function as an independent network model, similar to a single network model (e.g., [29], [30]). However, in practice, to ensure efficiency and scalability, expert networks are often integrated into a single network model, with specific layers replaced by MoE layers [16], [15], [21]. Notably, MoE layers can be introduced at specific levels of existing neural network models without altering the overall structure, demonstrating high flexibility and broad applicability. Currently, the most widely used MoE layers include the following types (Figure 3): + +1) Replace the FFN layer in Transformer with an MoE layer. The MoE layer can be characterized as follows: + +$$ +\mathsf { M o E } ( x ) = \sum _ { i \in I D } w _ { i } M _ { i } ( x ) +$$ + +where $I D$ represents the set of indices of experts selected by the gating function, $w _ { i }$ is the weight assigned to the ith expert, and $M _ { i } ( x )$ defines a two-layer FFN expert model. One key reason for introducing the MoE mechanism into the FFN layer is due to the higher sparsity and domain specificity of the FFN layer in Transformer. It has been shown [17] that the FFN layer exhibits higher sparsity compared to self-attention layers, mainly because not all units in the fully-connected FFN layer will be activated simultaneously in order to prevent overfitting. This will make the FNN layer more suitable to incorporate sparse activation mechanisms. Furthermore, [17] reveals the Emergent Modularity phenomenon in pre-trained Transformer models, indicating a significant association between neuron activations and specific tasks. This further motivates the idea of leveraging the MoE structure to reflect the modular nature of pre-trained Transformers. Therefore, due to its inherent sparsity and task relevance, the FFN layer in Transformer becomes an ideal choice for introducing the MoE mechanism. + +2) Apply MoE to the attention module in Transformer. This will lead to a special type of MoE, namely mixture-ofattention (MoA) [32]. Specifically, MoA consists of a set of attention heads with different parameters, where each attention head can be regarded as an expert $f _ { 1 } , . . . , f _ { N }$ . For a given input, the gating function selects the TopK attention heads based on the importance scores of the input, and the final output is generated as a weighted sum of only these selected heads’ outputs. This design allows the model to focus on the most relevant attention heads, enhancing performance without significantly increasing computational costs, and is highly scalable to support larger parameter sizes. + +Compared to the standard multi-head attention mechanism [210], the key advantage of MoA lies in its use of a gating network to dynamically select the most relevant attention heads for each input token and compute a weighted sum of their outputs. This approach eliminates the requirement for all attention heads to process every input, enabling MoA to achieve superior model performance with reduced computational overhead. Consequently, MoA exhibits enhanced scalability, and particularly this model can attain higher BLEU scores [302] than Transformer with 213 million parameters while requiring significantly less computation. + +Inspired by MoA, numerous studies have been proposed to improve upon this design. SwitchHead [31] attempts to independently introduce the MoE mechanism for each head’s key, query, value, and output projection, and employs a noncompetitive selection activation function. This will therefore reduce the number of attention matrices that need to be computed, significantly lowering computational and memory requirements. MoH [33] enhances the standard MoE method by sharing heads and a two-stage routing strategy, and can further fine-tune pre-trained multi-head attention models into MoH models, enhancing their applicability. In addition, this work integrates the proposed MoH framework with various model frameworks including the encoder-decoder architecture, such as ViT [1], DiT [214], and decoder-only LLMs [215], which are applied in various tasks and demonstrate great potentials of MoH. + +3) Apply MoE to CNN layers. Integrating CNN into the MoE architecture can fully leverage CNN’s strengths in local feature extraction, achieving more refined task allocation and improved computational efficiency. As a result, many studies have attempted to effectively combine MoE with CNN. For example, in [140], a simple pMoE structure is adopted, where the MoE layer consists of a gating kernel (a trainable weight network) and multiple expert networks composed of two-layer CNN networks. + +Image data possesses high local correlation and spatial hierarchical structure, which aligns well with the design philosophy of CNNs. As a result, Convolutional Mixture of Experts (CMoE) is often applied to computer vision tasks. For instance, [38] utilizes the MoE framework to decompose fine-grained classification problems into subspace problems, allowing each expert CNN network to focus on different subproblems and improving classification performance. Building on [38], [37] proposes an attention-based MoE framework to enhance the model’s generalization ability and classification performance under limited data conditions. [39] addresses the issue of parallel training of independent expert networks in MoE models, alleviating the need for multiple GPUs in large-scale supervised visual tasks. Meanwhile, [35] focuses on exploring how to enhance the interpretability of CNNs while maintaining model performance in computer vision tasks. Additionally, a small number of works have explored the potential of CMoE in other domains, such as [36]. + +# C. Routing Strategy + +A critical consideration in the design of MoE is determining the level at which experts should specialize in knowledge. For instance, in computer vision, certain tasks may emphasize more on the global features, while others demand precise local perception. Consequently, selecting an appropriate routing level—defined by the frequency of routing decisions—is essential to ensure the MoE model effectively meets the requirements of specific tasks. The following discussion extends the classification strategy proposed in Uni-Perceiver-MoE [40] and outlines several common routing strategies: token-level routing, modality-level routing, task-level routing, and otherlevel routing. + +1) Token-Level Routing Strategy determines routing decisions based on token representations, making it the most classic routing approach. Tokens also come in various types, among which the most common ones we encounter are text tokens and image tokens (patch tokens). + +In terms of text tokens, to mitigate underfitting and preserve representation diversity, MaskMoE [41] introduces a novel token-level routing strategy. This approach generates a mask vector for each token in the vocabulary and adjusts the number of visible experts for tokens of varying frequencies before training. For infrequent tokens, MaskMoE restricts routing to a single expert via routing masks, ensuring consistent training for these tokens. For frequent tokens, it permits multiple visible experts to capture contextual nuances. Additionally, [42] proposes a token-level recurring routing strategy that employs recurrent neural networks to dynamically adjust expert selection based on input sequence context. This strategy improves the model’s accuracy in processing complex linguistic structures, optimizes computational resource utilization, and effectively addresses long-range dependencies. Consequently, it achieves enhanced efficiency and performance across diverse natural language processing tasks. + +The usage of patch tokens, as discussed in [140], is often built upon the ViT architecture. This strategy divides an image into multiple patches and dynamically routes each patch to the most suitable expert for processing. By adaptively selecting experts based on the local features of the image, it optimizes computational resource utilization and enhances the model’s performance in handling complex visual tasks. Additionally, V-MoE [17] introduces a Batch Priority Routing (BPR) strategy, which 1) calculates the importance of each image patch, 2) sorts them in descending order of importance, and 3) assigns experts to patches accordingly. Experimental results demonstrate that BPR can maintain performance comparable to a dense model while processing only $1 5 \% - 3 0 \%$ of the image patches, showcasing significant advantages by standard Routing. + +Apart from these two common types, there are also audio tokens [36], time series token [45], etc., all of which can be freely combined with MoE to help the model achieve better learning performance. + +2) Modality-Level Routing Strategy routes tokens based on their modality, emulating the practice of employing specialized encoders for distinct modalities to minimize interference between them. The Uni-MoE model [43] is designed to effectively process and understand multi-modal data through a structured approach. First, it introduces connectors trained using cross-modal data to achieve data alignment, mapping diverse modalities into a unified language representation space. Simultaneously, it trains modality-specific expert systems on cross-modal instruction datasets, so as to enhance each expert’s specialized capabilities and activate their task-specific preferences. Subsequently, the model utilizes LoRA [216] for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Following instruction tuning, Uni-MoE is evaluated on a comprehensive and diverse multi-modal dataset. The results indicate that the model significantly reduces performance discrepancies when processing mixed data, improves collaboration efficiency among multiple experts, and enhances generalization capabilities, highlighting the potential of the MoE architecture in developing a unified multi-modal large language model. + +3) Task-Level Routing Strategy determines routing based on task IDs, ensuring that different tasks are routed to distinct experts, thereby effectively minimizing interference between tasks. This approach is particularly advantageous for multitask learning. For instance, [44] explores multilingual machine translation tasks, where task boundaries are defined by target languages, language pairs, or unique task IDs. And the experts are selected at the task level according to these boundaries. + +Compared to token-level routing strategies, this approach only requires loading a subset of experts relevant to the current task during inference, rather than loading all experts of the entire model. This results in reduced communication costs between devices and lower memory usage. + +4) Other-Level Routing Strategies encompass a variety of approaches, such as context-level and attribute-level routing strategies [40]. The context-level routing strategy employs global pooling to provide global context information to the router, enabling it to generate reliable routing strategies based on the contextual information of the current token representation. In contrast, attribute-level routing incorporates an 8- dimensional binary embedding, which includes attributes such as the modalities of the current task and token (indices 0- 5), the causation type of the model (index 6), and the token source (index 7). These rich information enables models to handle more complex and different tasks. + +# D. Training Strategies + +Due to the sparse activations inherent in MoE-based architectures, directly applying the functions and procedures used for training dense models to MoE-based sparse models is not straightforward. To improve training effectiveness, achieve faster convergence, and enhance performance on target tasks, numerous studies like [15], [17], [16], [18], [46] have explored the methods for training these sparse models. In the following section, we summarize and discuss some representative techniques. + +1) Auxiliary Loss Function Design. In addition to standard training losses, auxiliary loss functions are often introduced during MoE training to enhance learning performance, improve model efficiency, and stabilize the training process. One type of auxiliary losses widely used in practice is the load balancing loss, which aims to balance the allocation of inputs across all experts to fully utilize the capacity of the MoE. + +A well-known challenge in MoE training is the risk of model collapse, where a small subset of experts receives the majority of inputs, while others receive almost none, leading to an imbalance in expert utilization. To mitigate this issue, [16] proposes Importance and Load loss functions, which are defined as follows: + +$$ +\operatorname { L o a d } ( X ) _ { i } = \sum _ { x \in X } P ( x , i ) +$$ + +$$ +{ \mathrm { I m p o r t a n c e } } ( X ) _ { i } = \sum _ { x \in X } G ( x ) _ { i } +$$ + +$$ +L _ { \mathrm { l o a d } } ( X ) = w _ { \mathrm { l o a d } } \cdot ( \mathbf { C o V } ( \mathbf { L o a d } ( X ) ) ) ^ { 2 } +$$ + +$$ +L _ { \mathrm { i m p o r t a n c e } } ( X ) = w _ { \mathrm { i m p o r t a n c e } } \cdot \left( \mathbf { C o V } ( \mathrm { I m p o r t a n c e } ( X ) ) \right) ^ { 2 } +$$ + +where wimportance and $w _ { l o a d }$ are hyperparameters controlling the influence of expert importance balance and load balancing, respectively, and $P ( x , i )$ denotes the probability that $G ( x ) _ { i }$ is non-zero given new random noise selections. Here, $\operatorname { C o V }$ stands for the coefficient of variation. These two loss functions are incorporated into the overall model loss function to promote balanced usage and load distribution among experts, thereby enhancing model performance and stability. + +The Switch Transformer [15] (as shown in Equation (12)) simplifies the approach above based on [16], trading a slight reduction in accuracy for improved efficiency: + +$$ +f _ { i } = \frac { 1 } { T } \sum _ { x \in { \mathcal { B } } } \mathbb { 1 } \left\{ \operatorname { a r g m a x } G ( x ) = i \right\} +$$ + +$$ +Q _ { i } = \frac { 1 } { T } \sum _ { x \in B } G ( x ) _ { i } , +$$ + +$$ +\mathrm { l o s s } = \boldsymbol { \alpha } \cdot \boldsymbol { N } \cdot \sum _ { i = 1 } ^ { N } f _ { i } \cdot Q _ { i } . +$$ + +Here $T$ is the total number of tokens in the batch, $\boldsymbol { B }$ is the set of tokens in the batch, $f _ { i }$ is the proportion of tokens assigned to expert $i$ , $Q _ { i }$ is the routing probability ratio assigned to expert $i$ , and $\alpha$ is a hyperparameter used to control the weight of the auxiliary loss. Ideally, all experts should receive tasks evenly, with each processing an equal amount of input data, such that the expected values of $f$ and $Q$ are both $1 / N$ . When the distribution is uniform, this auxiliary loss function reaches its minimum. Expert capacity [16] refers to the maximum number of data points each expert can process. Insufficient expert capacity may result in skipped input data during training, leading to under-trained experts; conversely, increasing capacity reduces dropped tokens but may also waste computational and memory resources. V-MoE [17] normalizes $L _ { I m p o r t a n c e }$ and $L _ { L o a d }$ when applying the auxiliary loss function to visual tasks, achieving a more stable training process. + +2) Expert Selection. It is clear that the performance and efficiency of MoE models heavily depend on the expert selection for data inputs. While the gating function primarily determines expert selection, additional design choices can further enhance MoE models. The TopK strategy, which selects the best $K$ experts among all experts to process the data, significantly increases model capacity without proportionally escalating computational costs. For example, [16] has shown that the MoE model can scale to over 1000 times of the size of traditional neural networks while maintaining computational efficiency. On the other hand, the TopK strategy can be removed in order to further enhance the efficiency. For instance, V-MoE [17] replaces TopK with a Top-1 strategy to simplify computation and reduce resource wastage. Moreover, randomness is usually introduced for expert selection inside the TopK function (as shown in Equation (1)), by adding Gaussian noise to expert activations during the selection process [16]. This mechanism encourages expert exploration with random selections and prevents over-reliance on specific experts, which mitigates load imbalance and optimizes resource utilization. + +Dynamic expert selection mechanisms have also been explored in the literature. Notably, [46] proposes a Top-P routing strategy, which determines the number of activated experts at each time by setting a probability threshold $P$ . For each input data, the gating network calculates a score for each expert, corresponding to a probability distribution of an expert being selected, and the experts are sorted in a descending order of their scores. The strategy then progressively accumulates the scores of the experts until the cumulative value exceeds $P$ , activating all accumulated experts to process the token. This allows the model to adaptively adjust the number of selected experts based on input complexity, enabling flexible and efficient resource allocation. To reduce overfitting and improving generalization, [48] proposes a dropout regularization method tailored for the tree structure of Hierarchical Mixture of Experts (HMoE) [47], which randomly drops expert networks of different branches according to the hierarchical structure. Experimental results demonstrate that this method enhances model performance, providing smoother fitting outcomes, better generalization, and lower validation error rates compared to models without dropout. + +3) Pipeline Design. Given the sparsity nature and need of dynamic data allocation in MoE architectures, a well-designed pipeline plays a crucial role in the training of MoE models, in order to maximize the utilization of computational resources, reduce time and costs, and ensure stable convergence of the model. In general, the pipeline design for MoE seeks to optimize resource allocation and efficiently distribute data among experts. + +As mentioned before, BPR [17] achieves sparsity reuse by prioritizing important samples for processing. The advantages of BPR lie in its efficient resource utilization and reduction of unnecessary computations. RMoE [18] designs a pipeline particularly for downstream tasks such as segmentation and detection. More specifically, RMoE decomposes the weights of MoE experts into core and residual weights, where the core weights inherit knowledge from pre-trained non-MoE models and only the residual weights will be finetuned. This will significantly shorten the training time and reduce the training costs. During inference, both sets of weights will be combined to ensure the good performance of the MoE model. + +# E. System Design + +The MoE architecture is gaining popularity in the edge deployment and capacity scaling of large models [15], [51], [52], offering significant flexibility and scalability. However, its nature of inherent non-uniform workload distribution and dynamic expert selection imposes strict requirements on the system’s resource allocation, communication efficiency, and overall performance optimization. This will introduce new system challenges such as increased synchronization overhead, hampering the efficiency and stability of model execution. In this section, we outline some common methods currently available to enhance the system designs for MoE from three dimensions: computation, communication, and memory. + +1) Computation. In the application of MoE models, due to their inherent dynamic characteristics, there may be significant disparities in the number of tasks processed by different experts, making the issue of non-uniform workload distribution particularly pronounced. Particularly, in large-scale distributed system environments, standard MoE architectures require synchronization among expert operations [49], i.e., all experts must complete their current tasks before moving on to the next computation step. However, some experts may finish work earlier due to smaller assigned task volumes, leading to idle timeslots and wasted computational resources. Moreover, as the MoE model capacity expands, computational complexity significantly increases [15], intensifying the demand for better computation strategy design. + +Various attempts have been made in the literature to mitigate this problem. The paper [15] proposes and discusses several parallel strategies, including data parallelism, expert parallelism, and model parallelism, but different parallel methods have varying requirements for the distribution of data and model parameters. To enable the system to quickly adapt to dynamic load changes, [50] designs a unified distribution layout to manage the model’s parameters and input data. This can accommodate the distribution requirements of various parallel strategies, achieving zero-cost switching of parallel strategies. Based on this distribution, [50] also further develops multiple optimization techniques, such as the ALLto-ALL optimization algorithm mentioned later. Moreover, Soft MoE [27] introduces an improved scheduling algorithm that uses gradient-based routing selection methods, making the computation process smoother and more efficient. This approach reduces unnecessary synchronization wait times, lowers overall synchronization overhead, and boosts system throughput and efficiency. DeepSeek-V3 [53] introduces several enhancements to the communication process. Firstly, it concurrently processes two micro-batches with comparable computational loads, overlapping the attention mechanism and MoE component of one micro-batch with the dispatch and combine operations of another. This technique not only boosts throughput but also masks the overhead associated with all-to-all and tensor parallel communications, thereby substantially diminishing reliance on communication bandwidth. Furthermore, an FP8 format is employed for low-precision communication; activations are quantized to FP8 prior to upprojection in MoE using integral power-of-two scaling factors to mitigate quantization errors, a method similarly applied to activation gradients before down-projection in MoE. Lastly, to alleviate all-to-all communication bottlenecks, particularly among GPUs, a more efficient processing strategy has been devised. The specific implementation is available as opensource on GitHub at https://github.com/deepseek-ai/DeepEP. + +2) Communication. In the training of MoE models, input data must be distributed to the experts via an All-to-All communication pattern, which usually results in a significant demand on the communication bandwidth. On the other hand, due to the dynamic nature of expert selection, the amount of communication in the system can substantially fluctuate, such that the communication demands between iterations can also be very different. Clearly, this communication pattern is difficult to predict and optimize, thereby increasing the risk of network congestion. + +Considering that only a portion of MoE models are activated at any given time, on-demand loading strategies [19] can be adopted when scheduling the model, i.e., weights are loaded into the on-chip memory only when the corresponding expert is selected. This method reduces frequent access to external DRAM, effectively alleviating the pressure on memory bandwidth. Moreover, different experts within the MoE can be assigned to distinct compute units or cores, achieving tasklevel parallel processing [15]. This strategy not only increases the system throughput but also fully exploits the parallelism provided by Multi-Chip Modules (MCMs). In addition to expert-level parallelism, other studies have proposed various parallelization strategies such as data parallelism, model parallelism or tensor parallelism [15], allowing more flexible design and the use of different parallel methods according to task characteristics [50], [54], [55]. To further optimize performance, systems such as TUTEL [50] and FasterMOE [49] simultaneously run the communication operations with other computational tasks to hide communication latency and reduce the impact of communication on overall runtime. Moreover, hardware features have also been utilized to motivate various communication patterns to reduce the need of bandwidth, e.g., EdgeMOE [51] and M3ViT [19]. + +3) Memory. The MoE model typically contains a large number of parameters due to the usage of multiple experts. This will need a large amount of memory, which sometimes may even exceed the storage capacity of a single device, thereby limiting the scalability of the MoE model. Moreover, due to the randomness and dynamics in expert selection, the memory access patterns of MoE models can become extremely complex. + +To address these issues, Switch-Transformer [15] proposes a parameter migration strategy that leverage the memory space of multiple devices in a collective manner, to store a large volume of parameters through parallel communication mechanisms. This method effectively distributes the pressure of parameter storage, enhancing the system’s overall storage capacity and computational efficiency. DeepSpeed-MoE [52] adopts a hierarchical storage management scheme, integrating local high-speed caches with remote slower storage to construct a multi-level storage architecture. This design ensures that frequently used parameters can be accessed quickly while also accommodating less frequently used but necessary parameters, thus achieving more efficient memory utilization without compromising performance. + +# III. ALGORITHMS + +Due to the effectiveness and the strength in handling diverse knowledge in data, there have been rapidly growing interests in applying the MoE architecture into various machine learning paradigms, leading to improved algorithm designs. To showcase this and the great potentials of MoE in solving more complex learning scenarios, we will delve into the MoEbased algorithm designs for four widely investigated domains, i.e., continual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning. + +# A. Continual Learning + +Continual learning [217] seeks to build an agent that can continuously learn a sequence of different tasks, corresponding to a non-stationary environment with data distribution shifts, to mimic the extraordinary lifelong learning capability of human beings. In particular, in continual learning a model is continuously adapted based on the new data without access to previous data. This will lead to a key challenge in continual learning, the so-called “Catastrophic Forgetting” [218], which refers to the phenomenon that neural networks can easily forget the previously acquired knowledge when learning the new task. Seeing that the MoE framework dynamically selects the most appropriate sub-model for each input, enabling the model to handle diverse tasks without a substantial increase in computational overhead, multiple efforts have been made in the literature to leverage MoE to facilitate better continual learning algorithm designs. + +The idea of applying MoE in continual learning is first explored [60] which builds a model with a set of experts for task-free continual learning [219], i.e., a more general continual learning setup where the explicit task definition and task boundary information are unavailable. In particular, by following the expansion-based continual learning approaches, a Continual Neural Dirichlet Process Mixture (CN-DPM) model is introduced, where each expert model in CN-DPM handles a subset of data and the number of expert models dynamically expands based on the Bayesian nonparametric framework. However, the gating mechanism to determine the expert selection for current input data in [60] relies on a generative model for each expert. [65] improves over the design by showing that a gating mechanism based only on the input data is feasible. In particular, [65] considers a hierarchical variational continual learning (HVCL) setup with multiple priors, and shows that leveraging multiple experts can alleviate problems in HVCL such as known task boundaries and increased computation cost. To this end, a standard MoE model is built based on [16] where two different strategies are proposed to encourage expert diversity, which, as the authors believe, may mitigate forgetting since experts specialize in different tasks. + +Recently, pre-trained model based continual learning [220] has attracted much attention by leveraging the powerful pretrained models to facilitate better continual learning. This further spurs a new category of continual learning approaches, i.e., the prompt-based continual learning approaches [70], which have demonstrated superior performance compared to standard continual learning approaches. Thus motivated, there have emerged several attempts in leveraging MoE to design better prompt-based approaches for continual learning with pretrained models. Specifically, by shedding lights on the connection between self-attention in Vision Transformer [1] and a mixture of experts, [66] interprets applying prefix tuning in pre-trained models as adding new experts, which can be leveraged to facilitate efficient model adaptation for new tasks. Based on this, a novel gating mechanism named Non-linear Residual Gates (NoRGa) is proposed to improve the parameter efficiency in prefix tuning, where non-linear activation functions and residual connections are introduced within the gating function. [63] develops a mixture of task-specific experts (MoTE) framework, where a task-specific adapter (i.e., expert) is trained for each new task. To enhance the feature robustness and reduce cross-task feature overlap, an expert evaluation strategy and an Expert Peer-Voting Mechanism are further introduced, where the most trustworthy experts will be selected for feature fusion at inference. + +Considering the recent breakthroughs in large language models, several studies have explored the usage of MoE in the continual adaptation of language models. [59] investigates the continual adaptation of pretrained language models, where an MoE-based architecture, i.e., Lifelong-MoE, is proposed to address the forgetting problem. In particular, new experts will be introduced for new data distributions, while regularizationbased strategies on both experts and gating functions are used to retain the knowledge for old tasks. A new architecture PMoE is proposed in [34] to address the forgetting for continual learning in large language models. By using shallow layers for general knowledge and deep layers for new knowledge, new experts are progressively added to deep layers, where a router efficiently allocates new knowledge to appropriate experts based on deep features. + +The application of MoE in continual adaptation based on vision-language models has also been studied very recently. [56] introduces the parameter-efficient MoE-Adapters framework for continual adaptation with the CLIP model [9]. This framework leverages Adapters as experts and employs a taskspecific router to select the most suitable experts for the current task, thereby accelerating adaptation and fostering expert collaboration. Additionally, the authors propose a Distribution Discriminative Auto-Selector (DDAS) to enhance the model’s zero-shot recognition capabilities, which automatically allocates test data to either the MoE-Adapters or the original CLIP model, ensuring accurate predictions for both seen and unseen data. [64] observes that the usage of a shared layer in MoE-based models can lead to unsatisfying performance for continual learning. To address this, an expert merging strategy is proposed to merge the two most frequently selected experts based on the tracking of expert usage. The merged experts will be used to update the least frequently selected expert. This helps to prevent the same feature being learned as different features by multiple experts. Additionally, the least important parts of the model are regularly removed, saving computational resources. + +Moreover, the MoE-based models have been leveraged in various specific applications of continual learning. For example, [57] studies the problem of continual test time adaptation and introduces the Mixture-of-Activation-SparsityExperts (MoASE) adapter to address the forgetting problem therein. By decomposing the neuron activation into high and low activation components, MoASE develops a Domain-Aware Gate to utilize domain information for expert combination and an Activation Sparsity Gate for more accurate feature decomposition. [67] studies the continual traffic forecasting problem and introduces a novel MoE-based model, i.e., TFMoE, to efficiently retain past knowledge. The traffic flow is divided into homogeneous groups, where each group is handled by an expert model. [69] applies MoE to continual medical image segmentation, updating only relevant experts for new data while fixing other network parameters. [139] exploits MoE in mobile edge computing (MEC) networks, dynamically selecting experts for task offloading while optimizing gating network parameters to minimize computational delays. + +There have also been some studies in the literature that leverage multiple expert models, instead of a single model, for continual learning. For example, [71] proposes a framework where an expert model is trained for each task and a gating mechanism to select the relevant expert at test time. [72] uses a fixed number of small networks to learn all tasks in continual learning in parallel and shows that the performance can be better than a single big model. [73] investigates the impact of different ensemble models on the performance of continual learning. The SEED method proposed in [61] optimizes the model ensemble training by selecting a single expert for new task learning based on Gaussian distribution similarity, ensuring effective learning of new tasks while preserving prior knowledge. EVOLVE [62] leverages multiple pre-trained models as experts to enhance self-supervised continual learning on local clients. In particular, EVOLVE employs an expert aggregation loss to distill guidance information and dynamically adjusts expert weights based on new task data. While these studies do not exactly leverage the MoE architecture, they still demonstrate the great potentials of leveraging multiple experts to facilitate better continual learning. + +# B. Meta-Learning + +The core of meta-learning [221], [222], [223], [224], [225] lies in learning to learn, focusing on enabling models to quickly learn new tasks from a small amount of data, thereby improving the generalization and adaptability of machine learning systems. MoE can be used to enhance the rapid learning capability of meta-learning methods because it leverages multiple expert models to learn the distinct core features of each domain. By capturing the differences and connections between various tasks in a better way, MoE has great potentials in promoting more efficient learning and adaptation of new tasks by the model. In what follows, we will go over the recent development in the field of meta-learning by leveraging MoE models. + +While the most popular meta-learning approach in the past decade is the optimization-based approach [226], [227] due to its simplicity and efficiency, neural processes (NPs) based approaches [228] recently gain increasing attention for metalearning, which directly learn meta-representations and do not require additional gradient updates during fast adaptation. However, the standard NPs consider use a single global Gaussian latentvariable to model tasks, leading to a lack of expressive power when dealing with complex tasks generated from a mixture of stochastic processes. To alleviate this issue, [70] proposes the Mixture of Expert Neural Processes (MoE-NPs), with multiple latent variables and discrete assignment latent variables. The multiple latent variables are used to construct a mixture of NPs experts to define various functional priors, and the discrete assignment variable controls the expert selection for each data point in prediction. An evidence lower bound is derived to optimize the proposed model, which demonstrates promising performance in both few-shot supervised learning and meta-reinforcement learning. + +As meta-learning has demonstrated the superior capability in fast adaptation for novel scenarios, it has been recently applied to generalizable dynamical system reconstruction (DSR) [229] for learning across varying environments with a small amount of data, which is particular important for scientific discovery using scientific data. While promising, metalearning typically relies on the assumption that all tasks (or environments) follow the same task distribution, limiting its applications in scenarios with less similar environments. To address this, [79] proposes the Mixture of Experts Reconstructors (MixER) by augmenting existing contextual meta-learning approaches [230] with the Top-1 MoE architecture. In particular, MixER consists of multiple experts, each corresponding to a meta-model to capture the shared knowledge, and a linear gating function which takes the context information, instead of state vectors, as input. An unsupervised routing mechanism is further designed to optimize the MoE-based models. + +Besides these studies, MoE has also been leveraged together with meta-learning for various applications. Domain adaptation (DA) [231] is a subfield of transfer learning which seeks to adapt the model trained for the source domain to perform well on a related but different target domain. The standard formation of DA considers the transfer from a single domain, whereas multiple sources can be available in practice. However, most existing methods use a single model to learn all source tasks. To address this, [77] leverages MoE models to explicitly characterize the relationships between different source domains and the target domain, where the prediction for a target example will be based on a weighted combination of all experts’ predictions. Here the weights capture the similarity of the target example with each source domain, which are learned through metric-based meta-learning approaches [232] by constructing a meta-training procedure with multiple multisource-single-target pairs. [74] investigates a slightly different problem where some unlabeled data from the target domain will be exploited, and propose Meta-Distillation of MoE where a student model is built from each multi-source-single-target pair. Here, a MoE model is used as a teacher student, and each expert is separately trained using supervised learning on each source domain to extract its discriminative features. For domain adaptation, the unlabeled data from the target domain will be passed through all experts and the knowledge from all experts will be aggregated by an aggregator to guide the distillation from the teacher to the student. The student model and the aggregator will be jointly trained using optimization based meta-learning. + +Other studies, which also leverage MoE together with metalearning, investigate some specific applications of domain adaptation. For instance, [75] studies the domain generalizable person re-identification task (DG ReID), where each expert in the MoE model learns the knowledge from one source domain and all the features from these experts are integrated based on an adaptive voting process for the unseen target domain. As the specific target domain is generally unknown during training, an optimization-based meta-learning approach is proposed to train the voting network, which is jointly trained with the expert networks given their couplings in the algorithm design. [78] shares the same design philosophy as [75] but studies the domain generalization of face anti-spoofing, where the domain expert models are meta-trained using optimizationbased methods. [76] investigates the generalization of multiaccess control in heterogeneous wireless networks. Traditional meta-reinforcement learning (meta-RL) methods may not fully capture the subtle differences between different tasks, leading to insufficient adaptability in new environments [233]. When designing a General Multiple Access (GMA) protocol, the challenges posed by varying network configurations in different testing environments need to be considered. [76] thus introduces the MoE model to enhance the model’s representational capacity and reduce overfitting to specific tasks [203]. Specifically, an MoE-enhanced encoder network is introduced in designing the GMA protocol, where each expert model in the linear gating MoE inside the encoder independently encodes each state transition into latent representations. These latent representations are then combined to generate a final comprehensive task representation, which will be leveraged by SAC [234] for individual protocol learning within meta-RL of the generalizable GMA protocol learning. + +# C. Multi-task Learning + +Multi-task learning (MTL) [235], [236], [237] is a machine learning paradigm whose core idea is to simultaneously learn multiple related tasks to improve the generalization ability and performance of the model. Essentially, it provides the model with rich prior knowledge to enhance its performance. This determines that multi-task learning algorithms need to leverage shared information among tasks, typically achieved by sharing part of the model’s parameters or representations. However, this approach has exposed some shortcomings when dealing with complex data [93]. The MoE model, on the other hand, can intelligently select the most suitable sub-model for processing based on the characteristics of the input data, naturally decoupling different tasks and effectively handling the complex relationships between them. This gives MoE a greater advantage when dealing with complex tasks [87], and as a result, it has gradually gained more attention and been applied to many important sub-tasks in multi-task learning. + +To more efficiently handle the relationships among multiple tasks in multi-task learning, [93] proposes an important variant of MoE called Multi-gate Mixture-of-Experts (MMoE), which sets up a separate gating network for each task. The gating network can further select different expert networks based on the specific characteristics of the current task, decoupling each task into different gate functions. This avoids the mutual interference of tasks with large differences, and alleviates the significant performance degradation of traditional methods when processing multi-task data with large differences due to shared underlying networks. [95] finds that MMoE still cannot fully resolve the issue of Negative Transfer, and in some tasks, its performance is even worse than that of single-task models [95]. As a result, they designe several optimization strategies to further mitigate the Negative Transfer problem in MMoE by penalizing overly similar experts, enhancing the fine-grained interaction among experts, and balancing the importance of tasks with varying amounts of data during model training. + +Multi-task reinforcement learning is an important branch of multi-task learning [238]. It aims to promote the learning of diverse skills by agents to enhance their ability to handle complex tasks. However, existing methods lack guarantees on the diversity of learned representations, which may lead to representation collapse into similar representations, thus limiting their generalization ability [96], [239], [240], [241], [242]. To address this issue, [80] introduces a method called Mixture of Orthogonal Experts (MOOR), which utilizes multiple expert models responsible for generating different representations. In this case, each expert is responsible for different aspects of the task, encouraging the model to learn more diverse skills. To ensure efficient differentiations among experts, MOOR introduces the Gram-Schmidt orthogonalization method into MoE to force each expert to generate mutually orthogonal features, further limiting the possibility of experts generating redundant representations. [96] investigates contextual multitask RL and proposed a novel approach to encode an input observation into multiple representations using a mixture of encoders. These representations correspond to different skills or objects, and can be selected for any given task based on the context information. This approach gives the learning agent a more fine-grained control on the information shared across tasks and alleviates negative interference. Instead of naively sharing parameters across all tasks in traditional approaches, [85] proposes an attention-based MoE approach for multi-task reinforcement learning, which seeks to learn a compositional policy for each task. In particular, each expert network learns task-specific skills and specializes in different parts of the multi-task representation space. An attention module was fu introduced to integrate the expert outputs, we propose an attention module to generate connections between tasks and experts to achieve the best performance automatically. + +Multi-task learning techniques have also garnered significant attention in recommendation systems because they can simultaneously meet the modeling needs of multiple perspectives, improving recommendation performance. However, many existing multi-task recommendation systems struggle to balance parameter sharing and resource utilization. Some MoE-based methods, while more flexible, also face issues such as unstable training or resource waste [93], [13], [99]. [92] improves the standard MoE framework by proposing a new framework called Mixture-of-Masked-Experts (MoME). First, MoME no longer trains independent sub-networks for each expert but extracts expert sub-networks from an over-parameterized base network, generating diverse expert networks by learning different binary masks. Thus, during training, only one base network and a set of binary masks need to be trained, effectively saving resources. Additionally, MoME designs multi-level masks: neuron-level masks are used to filter out unimportant neurons in the base network, while weight-level masks are used to generate diverse expert networks. To further enhance the robustness of the mask learning process, MoME uses a probability formula based on an approximate Bernoulli distribution to determine mask elements and achieves model sparsity through $L _ { 0 }$ regularization, enabling efficient parameter sharing. [76] also focuses on recommendation system design, noting that existing multitask learning models [93], [98] typically use MLP as the expert model. However, using MLP models may not generate distinctive features for different tasks, leading to gradient conflicts and thus affecting model performance. Therefore, this work proposes a new expert network called the Task-Intensive Expert Model, whose parameters are specifically generated by a hyper-network based on different task embeddings, making it more distinctive and alleviating gradient conflict issues. + +[91] further investigates multi-domain multi-task recommendation tasks, where multi-domain scenarios introduce more complex data dependencies that existing methods cannot handle well [243]. [91] decouples the originally complex tasks and introduces shared expert modules, domain expert modules, and task expert modules using MoE. These modules learn cross-domain and cross-task common knowledge, domainspecific user preferences, and task-specific user preferences, respectively , enabling the model to capture user preferences from multiple perspectives and better handle complex dependencies between domains and tasks. + +Tasks in machine vision encompass various types, each with its corresponding deep models. However, many of these tasks often follow similar pipeline designs [81]. Aggregating the models of these similar tasks into a multi-task model can significantly improve the efficiency of training and inference while maintaining the performance of individual tasks. Considering that MoE not only allows for flexible model expansion but also handles dependencies between different tasks, it is frequently used in the design of visual multi-task models. [89], [19], [97] primarily apply MoE to improve the encoder. [89] introduces MoE layers into the attention modules and MLP blocks of ViT [1] and designs a new loss function to encourage strong yet sparse dependencies between tasks and experts, ensuring that each task is only related to a few experts. This can reduce the likelihood of gradient conflicts between tasks. [19] also incorporates MoE layers into ViT and discusses the advantages and disadvantages of two gating functions in application scenarios: one configures a different router for each task, while the other uses a shared router to achieve dynamic routing by concatenating task embeddings with input tokens. It was found that the first gating method is more effective for handling multiple tasks. [97] inserts sparsely activated MoE layers into ViT and computes the model’s loss on the validation set during each iteration. By using the loss as feedback to dynamically increase or decrease the number of experts, the cumbersome process of manually adjusting model size can be avoided. + +A few works have also attempted to introduce MoE into the decoder. [86] finds that different task decoders, due to shared decoding parameters, result in a static feature decoding process, leading to insufficient distinction in taskspecific features. Therefore, MoE was introduced as a decoder to decompose backbone features into task-agnostic features from different aspects, making the decoding process of taskspecific features more fine-grained. This work also utilizes convolutional operations to expand the receptive field of the gating network, which enriches the contextual information in the decision-making process. [81] argues that in traditional MoE structures, experts can only interact through routers, thus only establishing connections between some tasks. By adding a $3 { \times } 3$ convolutional layer after the encoder, which is optimized by all tasks, it can learn common features across all tasks, providing the model with more global information + +to aid decision-making. + +The combination of mutli-task learning and MoE has further been explored in other application scenarios. [83] replaces the expert networks in MoE with LSTMs [244], leveraging the advantages of LSTMs in handling sequential data to improve performance in processing user activity data streams. The work in [94] applies MMoE to Digital Rock Physics Analysis tasks, addressing the issue of significant computational and memory resource consumption encountered by traditional numerical simulation methods for rock analysis [245], [246]. By utilizing MMoE, [94] transforms serial operations into parallel operations, reducing interference between multiple analysis tasks. [84] focuses on Heterogeneous Multi-task Learning tasks. In particular, this study only employed the MMoE framework but also introduced some stochastic mechanisms that restrict certain experts to handle specific tasks or disconnect certain experts from the current task, thus enhancing expert exploration. + +# D. Reinforcement learning + +Reinforcement Learning (RL) plays a pivotal role in decision making in many real-world applications, such as robotics, games, autonomous driving, and healthcare [247], [248], [249], [250], which seeks to learn a policy by interacting with the environments. However, its practical development suffers from several significant challenges, including computational inefficiency and limited adaptability within high-dimensional state spaces and complex dynamic environments [102]. By dynamically selecting the most appropriate expert based on input data, the MoE mechanism enhances RL agents’ flexibility in responding to diverse demand patterns and environmental changes, thus improving overall performance. In what follows, we summarize the recent advance in leveraging MoE in RL and showcase its potential in various applications. + +The application of MoE in RL has a long history. One notable direction is the so-called modular RL, which breaks down complex RL problems into smaller modules and builds multiple sub-agents to handle a specific aspect of the task. Notably, [125] considers nonlinear and nonstationary control tasks, and proposes a multiple model-based RL (MMRL) system with multiple modules (i.e., experts). Each module has a dynamics model and a controller, where the state predictions and the action outputs are the weighted combination of all module outputs, with the weights calculated using a gaussian softmax function of the module state prediction error. Multiple studies have been proposed by following up this work. [106] introduces a concept of ‘modular reward’ which combines both the actual reward and the imaginary reward of appropriate module selections for the task. This will promote independent learning of different modules, which further leads to accurate estimation of global value functions of the composite policy. [107] constructs multiple experts to specialize in different regions of the overall state space, where standard RL approaches can be used for each expert to capture different information of the underlying state space. This is particularly useful for RL problems with large state spaces. + +On the other hand, the idea of modular RL has also been investigated in the design of value-based approaches. + +Specifically, [108] introduces a novel mixture of actor-critic experts (MACE) architecture with multiple actor-critic pairs for learning terrain-adaptive dynamic locomotion skills, where each pair will specialize in particular aspects of the motions. MACE is shown to be able to learn more quickly than the standard single actor-critic pair approach. [109] follows this network architecture and learning algorithm to solve MDP problems with a mixture of discrete and continuous actions, in the context of policy learning for the safe falling problem. [126] considers the skill knowledge transfer in multi-task RL and proposes a transfer expert RL architecture (TERL), where both actor and critic consist of a hierarchical structure with the experts and a gating network. The gating network will thus determine the expert selection of different tasks for either policy learning in the actor or value function learning in the critic. Several key features are designed in both gating network and experts to increase the capability of solving new tasks. [110] also considers a multi-task RL framework for transfer learning, which seeks to leverage the pretraining of multiple source tasks to facilitate the learning of new target tasks. Different from the traditional case where only one expert is activated at a particular timestep, this work proposes a model to enable the activation of multiple expert simultaneously. Each expert can specialize in a distribution of actions, whereas the composite policy can be obtained through a composition of these distributions. + +More recently, [111] constructs the policy in policy iteration by leveraging the MoE architecture, where the action of each expert is determined based on the distance to a prototypical state, in order to ensure the policy is interpretable. [100] introduces Probabilistic Mixture-of-Experts (PMOE), which employs Gaussian mixture models for multi-modal policy representation and frequency approximation gradients to address non-differentiability during optimization. This approach overcomes the limitations of unimodal policies in traditional deep RL, enabling algorithms to learn varied strategies in tasks with multiple optimal solutions. More importantly, PMOE can be potentially applied in generic off-policy and on-policy deep RL algorithms using stochastic policies, e.g., Soft Actor-Critic (SAC) [234] and Proximal Policy Optimization (PPO) [251]. To improve the sample efficiency of [108] and accelerate model-free RL for terrain-adaptive locomotion skills learning, [112] proposes to generalize model-based value expansion (MVE) [252], a technique to obtain better state-action values by using more reliable targets, to a mixture of actor-critic experts. [101] proposes an MoE framework incorporating Bayesian functions that autonomously identify and combine promising sub-regions from multiple source tasks across different regions of the state space. By utilizing state-dependent Dirichlet prior distributions to learn similarities between dynamics in source and target tasks, and updating these priors using state transition data from the target environment, this method improves robustness against sparse or delayed rewards, even when there are errors in dynamic estimation. + +The attention of leveraging MoE in RL has gained increasing attention last year due to the success of MoE in LLMs. [115] investigates of the impact of MoE layers in the DNNs used in value-based deep RL approaches, and shows that the performance of various deep RL algorithms can be significantly improved by incorporating soft MoEs [27] to replay the penultimate layers. Similar phenomenons have been observed in different RL setups, such as online RL, offline RL [253], and RL with a small amount of interactions. [113] considers multi-task robot learning and seeks to leverage offline RL to learn from both good demonstrations and sub-optimal data. In particular, the policy network is constructed as an MoE-based Transformer encoder to generate action tokens. [254] proposes a Diverse Skill Learning (Di-SkilL) method which aims to enable agents to acquire more skills in RL. In particular, each expert is modeled as a contextual motion primitive, adjusting behavioral strategies according to the current context and optimizing related distributions to focus on optimal performance sub-regions. Di-SkilL effectively addresses hard discontinuities and multimodality in unknown environments by representing each expert’s contextual distribution using energy-based models. [114] proposes a novel method named SMOSE for continuous control tasks. The controller is built upon a Top-1 MoE architecture, where each expert is trained to learn different basic skills and the router is trained to learn to appropriately assign tasks to experts. [102] investigates MoEs’ capability to manage non-stationarity — handling and adapting to changes in the environment or data distribution over time — in deep RL settings characterized by “amplified” non-stationarity via multi-task training. It finds that MoE supports network plasticity and is particularly effective in highly non-stationary conditions, providing fresh insights into addressing non-stationary training environments in RL. [103] explores visual deep RL to enable robots to acquire skills from visual inputs and proposes a method named MENTOR, which replaces the traditional MLP layers in visual RL agents by using the MoE architecture for action generations. + +The application of MoE in other domains of RL, such as multi-agent RL and imitation learning, has also been explored. For instance, [116] applies modular RL to soccer robot. [117] proposes a method to assign multiple modules to different situations, in order to learn purposive behaviors for specified situations related to other agents. Similar to [125], in [117] each module consists of a prediction model and a planner, and the module that provides the best estimation of state transitions will be chosen. [118] uses modular RL with MoE to learn competitive behaviors in multi-agent systems. For imitation learning, [119] considers the problem of robot table tennis by allowing robot to learn through interactions with human, where an approach with mixtures of motor experts is proposed to generalize basic movements to various situations. Here each expert corresponds to a motor policy. [121] constructs a mixture of interaction experts to learn various interaction patterns from human demonstrations, based on Gaussian mixture models. [122] leverages Gaussian mixture models to handle the model collapse problem in learning generalized movement representations from human demonstrations. [123] leverages a mixture of movement primitives to imitate versatile human demonstrations. [124] trains a variational autoencoder with a mixture density network to capture the complexity and variability in Human-Robot Interaction. Given the diversity of constraints under which demonstration data may be collected, [104] presents Multi-Modal Inverse Constrained Reinforcement Learning (MMICRL), which uses flow-based density estimation for unsupervised expert identification and infers specific agent constraints, thus enhancing the adaptability and reliability of inverse constrained reinforcement learning algorithms. The strategy of ensemble methods that carries a very similar idea with MoE has also been widely used in RL, in terms of model ensembles [255], value function ensembles [256], and policy ensembles [257], [258]. + +Finally, we summarize several attempts on applying MoE in specific applications of RL. For example, [105] confronts the challenge of driving chatbots with RL by developing several RL algorithms tailored for Dialogue Management. Leveraging the hierarchical structure of MoE-based language models enables offline RL methods to operate within a significantly reduced action space, making RL problems more tractable while generating discourse that reflects diverse intentions. Similarly, in video processing [259] and investment portfolio management [260], MoE-based approaches dynamically activate specific expert models based on current data, achieving higher accuracy, lower computational costs, and enhanced adaptability to changing environments. [120] leverage MoE models to scale up the parameters of RL models in optimal execution tasks. + +# E. Federated learning + +Federated Learning [261] is proposed to address the challenge of how different data owners can effectively exchange data without compromising user privacy and ensuring data security. By first training multiple local models on different servers and then aggregating these local model parameters using various rules to update the global model, the federated learning paradigm not only fully leverages distributed yet information-rich data but also efficiently utilizes the computational resources of multiple clients, inspiring a series of subsequent work, particularly in the field of recommendation systems [262], [263], [264]. + +When updating the global model using multiple local model parameters, one of the most common rules is Federated Averaging (FedAVG) [265]. This rule assigns weights to the corresponding local models based on the size of each client’s local dataset during parameter updates, and then updates the global model using the weighted combinations of local parameters. However, this rule relies on a manually defined simple heuristic, which not only requires each model to be initialized with the same random seed for convergence but is also unsuitable for scenarios where the data distribution among clients is highly heterogeneous [265]. Considering the hybrid nature of MoE, [127] is the first to introduce the MoE architecture into the federated learning setting. Specifically, this work proposes to train a general model using aggregated data and domainspecific models for each client using private data, and then use a gating mechanism to determine the contribution of each model’s output to the learning task. Compared to FedAVG, this approach better generates outputs based on task characteristics. [128] adopts a similar approach but focuses more on scenarios with stronger data heterogeneity across clients. Additionally, an opt-out mechanism is designed to ensure that clients with sensitive data could choose not to participate in the data integration process, thereby safeguarding data security. Some other work has also followed this combined approach [129]. + +An important goal of federated learning is to effectively integrate data from multiple clients. However, it is evident that real-world data distributions are highly complex and variable. Therefore, a major challenge in federated learning is data heterogeneity, which can manifest in two ways: one where clients share the same conditional distribution but have different marginal distributions, and the other where the opposite is true. Both scenarios can harm the model’s learning performance. Recently some studies have made substantial efforts to address this challenge. For example, [130] introduces two improvements: First, this work incorporates client identifier information into the gating decision; Second, to reduce the difficulty of training MoE expert models on non-IID data, which could lead to model degradation, a variational lower bound is leveraged to derive a unified global variational approximation, which replaces the true posterior distribution of all clients during training. [131] proposes an improved model fine-tuning method, where a general model is first trained and each client only fine-tunes the shallow parameters in the general model. Additionally, for complex high-dimensional data, this work uses partial model parameters to extract features from the raw data before feeding them into the gating function to make inputs distinguishable. [132] first trains local models on each client and then uses the clustering method IFCA [133] to iteratively cluster all clients, generating a global cluster model for each cluster. Finally, a gating mechanism is used to combine the outputs of the global cluster models and the local models to produce the final result. [134] also introduces a MoE layer on the server side but dynamically determines the number of top-K experts to retain based on the client’s resource conditions during routing, fully utilizing limited computational resources. + +In addition to the discussion on heterogeneity, another significant challenge in federated learning is communication overhead. Each round of communication between decentralized servers incurs substantial costs. Generally, there are two approaches to address this issue. The first approach is to reduce the amount of information that needs to be communicated in each round by transmitting only critical model parameters. For example, the number of experts in the locally trained MoE layer can be reduced, discarding some expert parameters that contribute less to the output in exchange for improved communication efficiency [135], [134]. Alternatively, only the most important MoE models can be selected for transmission. The second approach is to reduce the number of communication rounds, such as in One-shot Federated Learning (OFL), where typically only a single round of communication is performed during training to aggregate client models on the central server. After this, clients no longer participate in subsequent optimization updates. However, many popular OFL methods [136], [137] employ lossy aggregation, where aggregating all local models into a single global model results in knowledge loss, especially when model heterogeneity is strong [266]. In contrast, [138] proposes to treat all local models as expert models and train a specialized lightweight gating function using additional data to aggregate these experts. This approach effectively preserves the knowledge of local models while reducing communication overhead. + +# IV. THEORY + +Although the MoE model has a long history and achieved great empirical success in practice during the past few years [267], [16], the theory behind it is largely under-explored, especially in deep neural networks. Recently, some studies have initiated the attempt to build theoretical understandings of MoE. In this section, we will delve into these studies, aiming to provide the readers a basic idea of the theory development in this area. + +Most of the theory development for MoE so far mainly focus on simple models. Early studies in this area seek to understand the approximation capacity of MoE models. For instance, [141] investigates the convergence rate for hierarchical MoE models where the experts are exponential family regression models. [142] characterizes the convergence rate for hierarchical MoE models with generalized linear models as the experts. [143] provides the error bounds for functional approximation using MoE models and shows the convergence to any sufficiently differentiable target function in the Sobolev space. [144] provides an alternative result of this through a universal approximation theorem for MoE models with softmax gating functions and linear experts, without imposing assumptions on the differentiability of the target function. [145] considers a standard MoE model with softmax gating functions where the experts are polynomial regression models, and characterizes the convergence rate of the maximum likelihood estimator (MLE) depending on the number of experts and the order of the polynomial model. + +Recently, some studies have emerged and aimed to characterize the convergence of MLE for MoE models with different gating functions for regression problems. For instance, [146] characterizes the convergence rate of the MLE for Gaussian MoE models with covariate-free gating functions, by leveraging techniques from optimal transport. [147] attempts to understand the parameter estimation of the MLE for Gaussian MoE models with softmax gating functions, By leveraging novel Voronoi loss functions to capture the interactions between the gating and experts, the convergence rate of MLE is established. The convergence of MLE for Gaussian MoE models with other types of gating functions, such as Gaussian density gating [148] and top-K sparse softmax gating [149], has also been investigated. [150] studies a more general setup of MoE models with softmax gating for least square estimation, and characterizes the convergence rates for different types of expert model. The theoretical understanding behind the recently emerged cosine gating function is developed in [25] for lease square estimation. + +In contrast, the theoretical understanding of MoE models for classification problems is less explored. [151] investigates the classification problem with the MoE models including softmax gating and multinominal logistic expert models. In particular, the convergence rates for density estimation and parameter estimation are established. A novel class of modified softmax gating functions is further proposed to improve the convergence rate for parameter estimation when part of expert parameters vanish. [151] also studies the inefficiency issues encountered by the gating function in MoE during training. Specifically, when some expert parameters vanish (i.e., the parameters of certain expert models approach zero or become insignificant), the interaction between the standard softmax gating function and the expert functions through partial differential equations (PDEs) significantly slows down the parameter estimation rate [146], [149], [147], [148]. This paper thoroughly investigated the problem under an improved softmax gating function setting. Specifically, they used a bounded function $M ( X )$ to transform the input $X$ before passing it to the softmax gating function. Although the expert parameters still depend on the input $X$ , the transformed $X$ no longer has a linear relationship with the original $M ( X )$ , thereby eliminating the interaction between gating parameters and expert parameters and significantly improving the model’s convergence speed and stability. + +Most of the successes of MoE models nowadays happen with more complex expert models, such as deep neural networks. However, the theoretical understanding of MoEs in deep learning remains elusive compared to the theoretical studies of MoE in simple models, largely due to the limited understanding of deep neural networks. [29] seeks to fill this gap and makes the first attempt to understand the behaviors of MoEs in deep learning. More specifically, they consider a standard MoE architecture with softmax gating, where each expert model is a two-layer CNN, and investigate a binary classification problem where the dataset contains multiple clusters. The authors show that any single-expert model with a two-layer CNN cannot achieve more than $8 7 . 5 \%$ accuracy on this specific dataset, while a linear MoE model performs slightly better than a single-expert model but still falls short of a nonlinear MoE model. With sufficient expert exploration during the training, it can be shown that the router can automatically learn the cluster structure of the data and dynamically route the data to the most suitable expert. Following this work, [140] investigates the patch-level routing for MoE models (pMoE) with linear gating in solving a supervised binary classification task, where each expert is a two-layer CNN. They show that the pMoE model can achieve similar generalization performance with standard CNN but with a reduced sample complexity. One of the key reasons behind this, also theoretically and empirically justified, is that an appropriately trained patch-level router can route the classdiscriminative patches of one class to the same expert and drop some class-irrelevant patches. + +With the increasingly broad applications of MoE in many problems, the theoretical studies of MoE start to emerge beyond the general machine learning setup. [152] explores the usage of MoE models in handling multilevel data while building the theoretical understanding therein. Notably, multilevel data is very common in practical applications [268], [269], such as hierarchical data with a nested structure where different levels are correlated. Ignoring the dependencies within the data can lead to spurious, misleading, or biased clustering and prediction outcomes [270]. To better capture the dependencies, [152] proposes a Mixed MoE to handle multi-level data, which we define as MeMoE in this work. This approach not only introduces random effects into the gating function, making the computed gating values depend not only on input variables but also on random effects. This helps the model better capture random effects in multi-level data when dynamically adjusting expert weights. At the same time, to simplify the model, the expert functions are separated from the random effects, and the probability distribution of the expert model no longer depends on input variables but only on output variables. Under certain regularity conditions, this paper proves that the MeMoE is dense in the sense of weak convergence for any continuous mixed-effects model. In the special case of hierarchical multi-level data, this paper further proves that MeMoE can approximate the complex dependency structures of random effects between different factor levels in multi-level data. + +[30] investigates how integrating the MoE framework into models can effectively mitigate generalization and forgetting issues in continual learning [271], [272], under the setup of over-parameterized linear regression tasks and a linear gating MoE model. The authors prove that a sufficiently trained MoE model can diversify experts to specialize in different tasks, which minimize the interference across tasks and reduce the forgetting in continual learning. To ensure the stability of the gating function, the update of the gating network must be terminated in a timely manner for new task learning. Explicit expressions for expected forgetting and overall generalization error are also derived, quantitatively evaluating the impact of MoE in continual learning. [139] theoretically investigates the usage of the MoE framework in mobile edge computing (MEC) on handling continuous task streams therein. Specifically, each MEC service station is treated as an expert model, updating its local model based on the data distribution of tasks. An adaptive gating network was proposed to dynamically allocate tasks to different experts, ensuring that each expert converges and specializes in specific task types. Additionally, the paper derived the minimum number of experts required to ensure system convergence and proved that the MoE model can control the overall generalization error within a small constant range, significantly outperforming traditional MEC offloading strategies. + +# V. APPLICATIONS + +In this section, we investigate the applications of MoE in two broad application domains, computer vision (CV) and natural language processing (NLP). By examining the influence of MoE in tasks ranging from image classification to machine translation, we highlight how this architectures enhance specialization, scalability, and adaptability, offering insights into their practical impact and future potential across diverse real-world scenarios. + +# A. Computer vision + +With the rapid development and maturation of the CV field, the focus of both academia and industry has gradually shifted towards how CV technologies can be effectively implemented in specific application scenarios. However, this process has encountered several challenges such as resource constraints in edge deployment, difficulties in model scalability, and computational efficiency. These issues have pointed to the need of the redesign of existing models, especially when dealing with large volumes of data and complex tasks, where traditional model architectures often struggle to find an ideal balance between performance, flexibility, and stability. Since MoE has attracted renewed attention due to its performance advantages demonstrated in Mixtral 8x7B [22], an increasing number of studies have attempted to apply it in the CV field, to boost the state-of-the-art performance. Since the MoE architecture introduces multiple specialized experts to handle specific types of inputs and dynamically adjusts the activation levels of different experts based on the input data, it not only helps alleviate hardware resource bottlenecks but also enhances the model’s ability to handle diverse visual tasks, thereby optimizing both performance and stability. Therefore, in this subsection we will focus on the application of MoE in the field of CV by reviewing recent advancements from four bedrock aspects, i.e., classification, detection, segmentation, and generation. The aim is to provide valuable references for future explorations to address the challenges in the CV field. + +1) Image Classification. Image classification, as one of the most fundamental machine learning tasks, is a key component of many CV tasks. Therefore, understanding the performance and limitations of MoE in image classification can, to some extent, reflect its potentials for application in other CV tasks. + +Notably, [17] proposes and validates a new approach, namely V-MoE, to cope with visual tasks, by replacing the MLP layers in Vision-Transformer [1] with sparse MoE layers. V-MoE can scale the model to 15 billion parameters and demonstrates the efficiency gains from this simple combination in image classification tasks. Further explorations within the traditional MoE framework have been conducted. [153] dissects the MoE architecture, providing a detailed exploration of its training and optimization. The paper discusses how the number of expert networks, the number of MOE layers, and their placement affect the model’s performance, efficiency, and stability. + +As expert networks are a key component of MoE, many efforts have been made to optimize them. ViMOE [154] introduces the concept of shared experts, where a shared expert handles common knowledge required for classification, while other specialized experts focus on specific knowledge. This approach mitigates the difficulty in exploring optimal configurations due to the sensitivity of MoE layers to expert setups and enhances training stability. The paper also systematically analyzes routing behaviors, examining routing strategies, the number of experts, and the placement of MoE layers. It visualizes routing behaviors with heatmaps, finding that MoE layers closer to the output handle more semantically rich feature maps, leading to more specialized tasks for experts. Consequently, the last L layers of the model should be replaced with sparse MoE layers. The analysis suggests that both the number of experts and the size of $\mathrm { L }$ are related to the degree of routing, and more does not necessarily mean better performance. To some degree, the base model introduced in [155] shares similarities with the shared expert concept proposed in ViMOE [154]. In CLIP-MoE [156], the MoE architecture is applied to enhance the capabilities of the CLIP model through a method called Diversified Multiplet Upcycling. The authors fine-tune a series of pre-trained CLIP models using multi-stage contrastive learning, extracting expert networks that focus on different aspects of the input data, and integrating these experts into the MoE architecture. + +Other papers delve deeper into the design of gating functions. [27] introduces a novel technique called Soft MoE, which differs from traditional hard assignment of input tokens to experts by using a weighted average of all tokens for soft assignment. Therefore, each expert processes different parts of these weighted combinations. This method retains the advantages of the MoE architecture in scaling model capacity. Besides, it also improves training stability, reduces inference time, and effectively addresses the token dropping issue common in MoE training, creating a new paradigm for gating functions. [155] addresses the overfitting problem encountered when using MOE on small datasets by designing an architecture that incorporates early exit mechanisms and pre-training. Specifically, the model pre-trains a base model during the training phase and pre-determines the number of experts using k-means clustering. During inference, if the base model has high confidence in a sample’s prediction, it can opt for an early exit, bypassing the subsequent MoE layers for specialized learning. Otherwise, the sample is passed to the MoE layers for specialized learning, and the outputs from both the MoE layers and the base model are combined by Ensemblers to produce the final output. + +[158] focuses on improving the design of gating mechanisms in Hierarchical Mixture of Experts (HMoE) models to address performance bottlenecks in handling complex inputs and executing specific tasks. Specifically, this work proposes a method that goes beyond the traditional Softmax gating function by using Laplace gating strategies for both hierarchical and task allocation. By customizing gating functions for each expert group, the HMoE model can allocate resources more effectively without increasing computational burden and improve performance on complex datasets. Additionally, it explores the intrinsic interactions between first-level and second-level gating parameters, which significantly affect the convergence speed of model parameter estimation, providing a thoughtful direction for allocating complex or hierarchical datasets. [157] designs a deep mixture algorithm called DeepME (Deep Mixture Experts) for efficiently handling large-scale image processing tasks. It groups similar image categories based on semantic relevance, allowing for some overlap between categories. This ensures that each task group contains image categories with similar learning complexities, and specific base deep networks are trained for these groups. Additionally, a gating network is trained to combine all base deep networks, generating a mixed network with larger outputs to effectively handle large-scale datasets containing thousands of categories. + +2) Object Detection. Object detection is also one of the important tasks in the field of CV. Building on image classification, it requires the model to not only detect objects but also output the location of each classified object, where ensuring the computational efficiency of the model is more challenging compared to that in image classification. + +Similarly, many studies have explored the impact of simply integrating MoE with base models for object detection. MoCaE [159] has shown that directly using simple methods from deep ensemble (DEs) [273] to integrate different object detectors with the MoE architecture does not improve model performance and may even have adverse effects. The underlying reason is that simply adding different detectors leads to unfair competition, thereby affecting the final detection results. To address this, this work introduces Early Calibration and Late Calibration to adjust the confidence levels of different detectors, better reflecting their true detection performance. Experimental results have shown that MoCaE yields significant gains over single models and DEs on several real-world challenging detection tasks. + +[160] replaces the FFN layer in the traditional transformer with the MoE-HCO block, proposing an event-stream-based object detection framework called MvHeat-DET. The MoEHCO block selects the most suitable transformation branch for the current features through a policy network, providing various signal transformation expert networks. Therefore, the input events can have more diverse and suitable processing modules. It also uses frequency embedding to predict thermal diffusion coefficients to simulate the heat conduction process. This will enable the model to better capture spatiotemporal dynamic features in event streams while maintaining efficient computation, demonstrating high practical values. To help the model better understand and process multi-source datasets, DAMEX [161] proposes a data-aware MoE architecture, by replacing the FFN layer in the transformer with an MoE layer. Different experts are trained to learn data from different sources, enhancing the model’s generalization capability. Traditional two-stage methods [274], [275] require multiple classification heads to detect data from different datasets, leading to an increase in parameters with mixed datasets. In contrast, the data-aware MoE layer can achieve excellent performance without significantly increasing the number of parameters. [162] addresses the diversity and ambiguity of the task itself, by transforming the original single-mask prediction task into a multi-mask prediction task and predicting human preference scores for each possible salient object mask. To enable the model to handle multiple tasks more efficiently, this paper leverages the MoE architecture to solve the integrated training problem of the two tasks, and overcomes the inconsistency in input and output formats between the two subtasks. In particular, this work replaces the FFN layer in DaViT [276] with an MoE layer, which contains two experts: the PFFN layer for handling the PSOD (Pluralistic Salient Object Detection) task and the Q-FFN for handling the MQP (Mask Quality Predictor) task. This allows the model to dynamically select the most suitable expert network for the current task, improving model performance without significantly increasing the number of parameters. + +3) Semantic Segmentation. Semantic segmentation requires classifying each pixel in the input image. As a result, processing high-resolution images may significantly increase the demand on the hardware, hindering the model’s practical applications. Compared to traditional segmentation models, the MoE-based model can provide the following benefits: 1) The MoE architecture alleviates hardware pressure through its sparse activation and divide-and-conquer strategy, enhancing the model’s practicality. 2) Some studies [163], [164] have also found that using MoE can achieve excellent performance in semantic segmentation tasks that require greater model stability and generalization. 3) MoE also enjoys a better interpretability in terms of knowledge specialization. + +[166] seeks to leverage MoE to achieve a good balance between computational complexity and representational capacity in deep neural networks. In particular, traditional convolutional networks are combined with shallow embedding networks and multi-head sparse gating networks, dynamically selecting and executing partial networks at each convolutional layer. This can improve the accuracy while reducing prediction costs without significantly increasing the network width. Furthermore, this work proposes two DeepMoE variants including wideDeepMoE and narrow-DeepMoE. The first one is suitable for applications requiring high accuracy, whereas the second one is designed for computational resource-limited scenarios. Swin2-MoSE [167] demonstrates that MoE can also be applied to improve semantic segmentation models, especially on remote sensing images. The authors design an MoE layer called MoE-SM, which includes an SM (Smart Merger) module to merge the outputs of various experts and adopts a new perexample strategy instead of the commonly used per-token one. This can ensure that all tokens of each example are processed by the same expert, enhancing the model’s competitiveness in semantic segmentation tasks. + +Some studies have also investigated the usage of MoE in the segmentation for autonomous driving related scenarios. For example, [165] aims to leverage MoE to better understand autonomous driving scenarios which can further lead to improved algorithm design. Due to its architecture design, MoE inherently enjoys better transparency. Compared to other general models [273], [277], the MoE models can not only provide the final overall model output, but also enable the analysis of the outputs of individual expert models and their consistency or divergence with the overall output during the decision-making process. This mechanism provides more detailed information about how the models work, offering better interpretability while maintaining performance close to that of a single baseline model. A common issue in segmenting urban and highway traffic scenes is vulnerability to adversarial attacks. To address this, [163] attempts to use MoE given its properties of more dynamic model selections compared to traditional methods [278], [279], [280]. This work shows that the MoE models exhibits higher robustness against instancespecific attacks, universal white-box adversarial attacks, and cross-model transfer attacks, maintaining relatively high accuracy under these attacks. Additionally, the MoE models with additional convolutional layers show even stronger resistance to attacks. These results indicate that MoE not only improves model performance but also enhances model robustness and stability. + +4) Image Generation. Image generation can produce realistic and diverse images, which is very useful in many applications [281], [282], [283], [284]. However, current image generation technologies still face various challenges such as low generation quality, limited diversity, and poor adaptability to complex tasks. By decomposing the complex problem of image generation into multiple simpler and core tasks, MoE leverages the collaboration among the experts to enhance the quality of generated images, improve the diversity of outputs, and further enrich detail representations. + +RAPHAEL [168] introduces two types of MoE models for temporal control and spatial settings during generation, respectively. On one hand, a spatial MoE layer is responsible for depicting different text concepts in specific image regions, allowing each text token to learn specific visual features through specialized experts. This can enhance the representation of different concepts. On the other hand, a temporal MoE layer focuses on processing these concepts at different time steps of the diffusion process to handle varying degrees of noise impact. This configuration results in billions of diffusion paths from the network input to the output, each path acting as a “painter” for specific concepts and image regions, achieving finer text-to-image alignment and improving the quality and aesthetic appeal of generated images. The application of MoE enables RAPHAEL to flexibly switch between multiple styles and closely adhere to text prompts. + +GANs [285] are known to struggle to learn multimodal data distributions when processing complex datasets, leading to generated images with poor-quality. To address this, [169] proposes MEGAN with multiple generator networks, where each network focuses on learning specific modal distributions in the dataset. This design allows each generator to focus on different data subsets, generating more diverse and higherquality images. + +A novel design of MoA is introduced in [32] by creating two attention paths, i.e., a personalized branch and a nonpersonalized prior branch, allowing the model to retain its powerful generation capabilities while minimizing interference with the personalized part. This specially designed MoA can intelligently adjust the generation process based on the input text and subject image. By optimizing the fusion of personalized and generic content, high-fidelity personalized image generation can be achieved without sacrificing image diversity or quality. Additionally, the learning routing mechanism in [32] dynamically manages pixel distribution at each level, further improving the performance for image generation tasks that involve multiple subjects and complex interactions. + +Text2Human [170] applies MoE to the transformer encoder based on the diffusion model [286], [287], [288], enabling conditional generation of clothing with different texture types. Specifically, the MoE model routes input features to different expert heads based on the texture attributes mentioned in the text prompt, with each expert head responsible for predicting tokens of specific textures. Based on the synthesis and control of more complex textures, this method increases the model’s ability to handle details while avoiding the computational burden of training separate samplers for each texture. + +# B. Natural Language Processing + +As a core research area of artificial intelligence, NLP focuses on enabling computers to understand, generate, and process human language [289], [290]. It plays a significant role in promoting human-computer interaction, information extraction, knowledge mining, cross-lingual communication, and automation. However, the field of NLP still faces challenges such as the trade-off between model capacity and computational cost, poor adaptability to multi-task and multidomain scenarios, sparse data and long-tail problems, insufficient reasoning and logical capabilities, and the need for personalization and dynamic adaptability. + +The MoE architecture effectively alleviates these challenges through mechanisms such as sparse activation and the allocation of different expert models for different tasks or domains. This not only reduces computational costs but also enhances model performance in multi-task, low-resource scenarios, and complex reasoning tasks, while supporting personalized services. In light of the application of MoE in the NLP field, this subsection will summarize and review relevant work from the perspectives of Natural Language Understanding (NLU) and Natural Language Generation (NLG). + +1) Natural Language Understanding. The advancement of NLU technology enables machines to understand and interpret human language, by bridging the gap between human communication and machine processing [291], [292]. This allows systems to perform tasks such as intent recognition, entity extraction, and semantic analysis [8], [293], which are crucial for applications such as virtual assistants, chatbots [294], sentiment analysis [295], and information extraction [296]. However, the further development of NLU is hindered by the complexity, ambiguity, and diversity of human language. MoE allows systems to dynamically leverage expert networks for different linguistic tasks or domains. For example, one expert may specialize in syntactic parsing, while another focuses on sentiment analysis, thereby enhancing the model’s ability to effectively handle various complex linguistic patterns. This specialization and adaptability make MoE a powerful method for extending and refining NLU systems, enabling more accurate and context-aware language understanding. Since the use of specially designed MoE architectures to enhance model performance in NLG tasks has not yet reached a scale sufficient for sub-domain classification, this section will only summarize some representative work in recent years. + +GLaM [20] introduces an MoE architecture to make the training and inference processes more efficient. It significantly reduces the required computational resources and energy consumption while maintaining or even improving model performance. This encouraging result highlights the great potentials in leveraging MoE to address the issue of high computational resource consumption in large-scale, intensive language models for NLU tasks. + +MoE-LPR [171] designs a two-phase training strategy for the MoE-based model. In the first phase, the original model is converted into an MoE architecture, and new expert modules are added, which improves the model’s capability for new languages without using original language data. In the second phase, a small amount of original language data is used for review, and a language prior routing mechanism is employed to restore and maintain the performance of the original language. Experimental results demonstrate the excellent scalability and stability of MoE-LPR, providing a new perspective for multilingual natural language understanding tasks. + +When speech is transcribed into text, errors from Automatic Speech Recognition (ASR) systems [297] often affect the accuracy of subsequent NLU components. To address this, [172] proposes an MoE-based framework, namely MoE-SLU, aiming to mitigate the impact of ASR errors on spoken language understanding performance. MoE-SLU employs three strategies to generate additional transcripts and uses MoE to weight and average these transcripts. By enhancing the model’s ability to capture keywords, MoE-SLU is more robust to ASR errors, achieving state-of-the-art performance on three benchmark SLU datasets. The performance of MoE-SLU can be further improved through regularized predictions. + +To address the issue of interference in multi-task learning, particularly among NLU tasks, MT-TaG [87] introduces a sparsely activated MoE architecture and designs a task-aware gating mechanism to route inputs to specific expert networks. Compared to traditional dense models, MT-TaG demonstrates superior performance in multi-task learning, especially in lowresource task transfer, efficient generalization, and handling unrelated tasks. MoPE-BAF [173] designs various soft prompt experts, including text prompts, image prompts, and unified prompts, based on a unified vision-language model to enrich unimodal representations and promote multimodal interaction. By introducing a block-aware prompt fusion mechanism, the model achieves cross-modal prompt attention across Transformer layers, smoothly transitioning from unimodal representations to multimodal fusion. Experimental results show that MoPE-BAF significantly improves performance in fewshot settings for multimodal sarcasm detection and sentiment analysis tasks, demonstrating the effectiveness of MoE in deep multimodal semantic understanding tasks. + +2) Natural Language Generation. NLG can transform structured data or concepts into natural and fluent text, widely applied in machine translation [298], dialogue systems [299], content creation [300], and information summarization [301], among other fields. To achieve diverse and precise language expression, NLG systems require strong model capacity to capture complex linguistic structures and contextual dependencies, while effectively handling interference in multi-task learning to maintain high performance across different scenarios. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible NLG systems. + +(a) Text Generation. Text generation has numerous applications in NLP. Through effective text processing, NLP systems can accurately understand, generate, and transform human language, which is crucial for achieving more advanced NLP applications. However, text processing still faces challenges such as insufficient generation diversity and uncontrollable generated content. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. + +In [174], MoE is introduced into the generator of a language GAN, leveraging multiple experts to collaboratively generate high-quality sentences, with each expert acting as a recurrent neural network that autoregressively produces the current token representation. Additionally, the Feature Statistics Alignment (FSA) paradigm is incorporated to further optimize the learning signals during generator training, making the generated text more closely aligned with the real data distribution. In RetGen [175], during inference, a retriever first obtains the top K most relevant documents and their corresponding probabilities. Then, K independently trained transformer-based generation models process each document along with the same context, combining the partially generated results with the current consensus to produce their respective output distributions. The final output distribution is a weighted combination of these independent generation results, with weights determined by the document relevance probabilities. This approach overcomes issues such as ignoring document relevance information when simply concatenating multiple documents as input, allowing the model to more effectively utilize document relevance information to guide the text generation process. LogicMoE [176] focuses on solving the problem of table-to-text generation. In the designed LogicMoE architecture, each expert acts as a specialized generator for a specific logical type, responsible for generating sentences that meet the requirements of that logical type. This design not only improves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. + +(b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content. This mechanism not only improves translation accuracy and fluency but also better handles complex scenarios involving multiple languages and domains, thereby enhancing the performance and adaptability of machine translation. + +[16] innovatively introduces Sparsely-Gated MoE technology for conditional computation. Applying MoE to language modeling and machine translation tasks not only significantly improves model performance on large datasets but also achieves efficient utilization of computational resources. Gshard [21] replaces traditional feedforward network layers with MoE layers and adopts conditional computation to achieve efficient utilization of computational resources and flexible expansion of model capacity. MoE-based Transformer models at different scales are designed and trained to meet translation needs from high-resource to low-resource languages. Experimental results show that the MoE models trained using GShard significantly improve translation quality, while achieving higher training efficiency and lower costs compared to dense models under the same hardware conditions. [178] also introduces a selective activation mechanism by replacing some dense model layers with MoE layers, significantly enhancing the model’s representational capacity with similar inference and training efficiency. This approach is particularly beneficial for high-resource languages due to the increased model capacity, while also helping low-resource languages reduce interference from unrelated languages. Additionally, to address the issues in large-scale MoE models, such as quick overfitting in low-resource directions, regularization and curriculum learning strategies are applied to optimize complex training dynamics. A good balance is achieved between cross-lingual transfer and interference in multilingual machine translation. [179] also leverages sparse activation mechanisms to significantly enhance the model’s representational capacity without increasing computational costs. + +In order to address the inefficiency issues encountered during the deployment and inference stages of MoE models, [180] proposes three optimization techniques, including dynamic gating, expert caching, and load balancing methods, to improve the inference efficiency of MoE models in language modeling and machine translation tasks. + +3) Multimodal Fusion. Multimodal fusion integrates information from text and other modalities, providing richer and more comprehensive data representations. In particular, multimodal fusion can capture contextual clues and semantic details that single modalities cannot provide, thereby enhancing the model’s understanding and predictive capabilities. In multimodal fusion scenarios, using MoE allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. This not only improves the overall performance of the model but also enhances its flexibility and scalability, allowing for better performance in complex multimodal tasks. + +LIMoE [182], as the first large-scale multimodal mixture of experts model, can simultaneously process image and text data and align their representations through contrastive learning. Additionally, this study demonstrates the organic emergence of modality-specific experts in LIMoE, where experts spontaneously specialize in handling specific types of data or tasks,. This indicates that the model not only effectively allocates resources for different tasks but also promotes cross-modal and cross-task knowledge transfer. LLaVA-MoLE [181] addresses the issue of data conflicts in multimodal large language models when fine-tuning with mixed-domain instruction data, by proposing the use of sparse LoRA Mixture of Experts (MoLE). The proposed method selects the most suitable LoRA expert for each input token based on its embedding features in the attention layers, allowing the model to adapt to inputs from different domains. This effectively mitigates performance degradation caused by mixing different types of instruction data. The Hunyuan model [183] is the first Chinese MoE multimodal large model, achieving a score of 71.95 on SuperClue-V, surpassing some international top models and demonstrating its unique advantages in the context of Chinese culture. + +# VI. FUTURE DIRECTIONS + +MoE models present significant opportunities for advancing machine learning in real-world applications, but they also face several challenges that must be addressed to unlock their full potentials. In this section, we discuss some of the key future research directions for MoE models. + +# A. Training stability and load balancing + +One of the most critical challenges in MoE models is ensuring training stability and load balancing among experts. Due to the dynamic nature of expert selection, some experts may receive significantly more data than others, leading to imbalanced training and potential model collapse. Future work should focus on developing more robust training strategies that ensure balanced utilization of experts. Techniques such as adaptive load balancing, dynamic expert capacity adjustment, and regularization methods that penalize over-reliance on specific experts could be explored. In some cases, theoretical studies on the convergence properties of MoE models under different load balancing strategies would provide valuable insights into designing more stable training algorithms. Additionally, the sparsity of MoE during training also poses challenges for stable model training, requiring more work to explore and optimize existing training strategies. + +# B. Training and system efficiency + +While MoE models offer the advantage of conditional computation, their training and inference efficiency remain a concern, especially in large-scale applications. Hardware advancements have reduced computational costs, but high latency remains a persistent issue. Future research should focus on optimizing hardware-software co-design, particularly for conditional computation. Techniques such as efficient memory management, reduced communication overhead, and parallel processing strategies could significantly improve the scalability of MoE models. Combining MoE with conditional computation techniques may also open new avenues for dynamic resource allocation and task-specific adaptations, further enhancing efficiency. + +# C. Architecture design + +The design of MoE architectures, particularly the determination of the number of experts and their specialization, is another area that requires further exploration. Current approaches often rely on heuristic methods or static setting to decide the number of experts, which may not be optimal for all tasks. Future work should investigate more principled approaches to determining the number of experts, such as using metalearning or reinforcement learning to dynamically adjust the architecture based on task complexity and data distribution. Additionally, novel architecture designs that integrate MoE with other neural network components, such as attention mechanisms or graph neural networks, could lead to more powerful and flexible models. + +# D. Theory development + +Improving the interpretability of MoE models remains a critical area for future work. While MoE architectures have demonstrated remarkable scalability and performance, the theoretical underpinnings of their behavior—such as expert routing decisions and clustering mechanisms—are not yet fully understood, especially in modern deep neural networks. More rigorous theoretical studies are needed to explain these characteristics, which could lead to more robust and reliable models. This would also shed light on the design of better gating function and expert network as well. + +# E. Tailored algorithm design + +MoE models have shown great promise in various machine learning paradigms, but their potential in combination with other learning paradigms remains underexplored. Future work should investigate the integration of MoE with other learning frameworks, such as contrastive learning, transfer learning, and self-supervised learning. For example, in federated learning, MoE models could be used to handle heterogeneous data distributions across clients by assigning different experts to different clients. Exploring these combinations could lead to more versatile and powerful learning systems. + +# F. New applications + +Although MoE has been extensively explored in NLP, its potential in other domains remains underexplored. For instance, in computer vision, recent work has shown that MoE models can achieve performance that continues to improve with training, suggesting untapped potential in areas like image segmentation, object detection, and multimodal learning. Further exploration in these domains could yield significant breakthroughs. Additionally, MoE models could be applied to emerging fields such as healthcare, robotics, autonomous systems, education, finance, as well as recommendation systems, where the ability to handle diverse and complex tasks is crucial. Developing MoE models tailored to these specific applications could lead to more effective and efficient solutions. + +# VII. CONCLUSION + +This comprehensive survey delves into the integration of the MoE architecture with various domains. Starting from various basic designs of the MoE architecture and training strategies, we highlight its synergy with important machine learning algorithms, alongside the recent theoretical advancements for understanding MoE. Furthermore, we provide a systematic summary of MoE in two critical application domains, computer vision and natural language processing, and shed light on the important future designs for improving the design and impact of MoE. We hope that this work will serve as a valuable reference for researchers in the field and beyond, elicit escalating attentions, and inspire further research ideas in MoE. + +# REFERENCES + +[1] A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, et al., “An image is worth 16x16 words: Transformers for image recognition at scale,” arXiv preprint arXiv:2010.11929, 2020. +[2] A. Kirillov, E. Mintun, N. Ravi, H. Mao, C. Rolland, L. Gustafson, T. Xiao, S. Whitehead, A. C. Berg, W.-Y. Lo, et al., “Segment anything,” in Proceedings of the IEEE/CVF international conference on computer vision, pp. 4015–4026, 2023. +[3] Y. Shi, N. Wang, and X. Guo, “Yolov: Making still image object detectors great at video object detection,” in Proceedings of the AAAI conference on artificial intelligence, vol. 37, pp. 2254–2262, 2023. +[4] A. Radford, J. W. Kim, T. Xu, G. Brockman, C. McLeavey, and I. Sutskever, “Robust speech recognition via large-scale weak supervision,” in International conference on machine learning, pp. 28492– 28518, PMLR, 2023. +[5] K. An, Q. Chen, C. Deng, Z. Du, C. Gao, Z. Gao, Y. Gu, T. He, H. Hu, K. Hu, et al., “Funaudiollm: Voice understanding and generation foundation models for natural interaction between humans and llms,” arXiv preprint arXiv:2407.04051, 2024. +[6] P. Rajpurkar, E. Chen, O. Banerjee, and E. J. Topol, “Ai in health and medicine,” Nature medicine, vol. 28, no. 1, pp. 31–38, 2022. +[7] L. Cao, “Autoai: Autonomous ai,” IEEE Intelligent Systems, vol. 37, no. 5, pp. 3–5, 2022. +[8] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “Bert: Pre-training of deep bidirectional transformers for language understanding,” in Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), pp. 4171–4186, 2019. +[9] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, et al., “Learning transferable visual models from natural language supervision,” in International conference on machine learning, pp. 8748–8763, PmLR, 2021. +[10] J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S. Anadkat, et al., “Gpt-4 technical report,” arXiv preprint arXiv:2303.08774, 2023. +[11] C. Thompson Neil, G. Kristjan, L. Keeheon, and F. Manso Gabriel, “The computational limits of deep learning,” ArXiv, Cornell University, juillet, 2020. +[12] C. Sun, A. Shrivastava, S. Singh, and A. Gupta, “Revisiting unreasonable effectiveness of data in deep learning era,” in Proceedings of the IEEE international conference on computer vision, pp. 843–852, 2017. +[13] R. A. Jacobs, M. I. Jordan, S. J. Nowlan, and G. E. Hinton, “Adaptive mixtures of local experts,” Neural computation, vol. 3, no. 1, pp. 79–87, 1991. +[14] M. I. Jordan and R. A. Jacobs, “Hierarchical mixtures of experts and the em algorithm,” Neural computation, vol. 6, no. 2, pp. 181–214, 1994. +[15] W. Fedus, B. Zoph, and N. Shazeer, “Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity,” Journal of Machine Learning Research, vol. 23, no. 120, pp. 1–39, 2022. +[16] N. Shazeer, A. Mirhoseini, K. Maziarz, A. Davis, Q. Le, G. Hinton, and J. Dean, “Outrageously large neural networks: The sparsely-gated mixture-of-experts layer,” arXiv preprint arXiv:1701.06538, 2017. +[17] C. Riquelme, J. Puigcerver, B. Mustafa, M. Neumann, R. Jenatton, A. Susano Pinto, D. Keysers, and N. Houlsby, “Scaling vision with sparse mixture of experts,” Advances in Neural Information Processing Systems, vol. 34, pp. 8583–8595, 2021. +[18] L. Wu, M. Liu, Y. Chen, D. Chen, X. Dai, and L. Yuan, “Residual mixture of experts,” arXiv preprint arXiv:2204.09636, 2022. +[19] Z. Fan, R. Sarkar, Z. Jiang, T. Chen, K. Zou, Y. Cheng, C. Hao, Z. Wang, et al., $\mathbf { \cdots } \mathbf { M } ^ { 3 }$ vit: Mixture-of-experts vision transformer for efficient multi-task learning with model-accelerator co-design,” Advances in Neural Information Processing Systems, vol. 35, pp. 28441–28457, 2022. +[20] N. Du, Y. Huang, A. M. Dai, S. Tong, D. Lepikhin, Y. Xu, M. Krikun, Y. Zhou, A. W. Yu, O. Firat, et al., “Glam: Efficient scaling of language models with mixture-of-experts,” in International conference on machine learning, pp. 5547–5569, PMLR, 2022. +[21] D. Lepikhin, H. Lee, Y. Xu, D. Chen, O. Firat, Y. Huang, M. Krikun, N. Shazeer, and Z. Chen, “Gshard: Scaling giant models with conditional computation and automatic sharding,” arXiv preprint arXiv:2006.16668, 2020. +[22] A. Q. Jiang, A. Sablayrolles, A. Roux, A. Mensch, B. Savary, C. Bamford, D. S. Chaplot, D. d. l. Casas, E. B. Hanna, F. Bressand, et al., “Mixtral of experts,” arXiv preprint arXiv:2401.04088, 2024. +[23] B. Li, Y. Shen, J. Yang, Y. Wang, J. Ren, T. Che, J. Zhang, and Z. Liu, “Sparse mixture-of-experts are domain generalizable learners,” arXiv preprint arXiv:2206.04046, 2022. +[24] Z. Chi, L. Dong, S. Huang, D. Dai, S. Ma, B. Patra, S. Singhal, P. Bajaj, X. Song, X.-L. Mao, et al., “On the representation collapse of sparse mixture of experts,” Advances in Neural Information Processing Systems, vol. 35, pp. 34600–34613, 2022. +[25] H. Nguyen, P. Akbarian, T. Pham, T. Nguyen, S. Zhang, and N. Ho, “Statistical advantages of perturbing cosine router in sparse mixture of experts,” arXiv preprint arXiv:2405.14131, 2024. +[26] L. Xu, M. Jordan, and G. E. Hinton, “An alternative model for mixtures of experts,” Advances in neural information processing systems, vol. 7, 1994. +[27] J. Puigcerver, C. Riquelme, B. Mustafa, and N. Houlsby, “From sparse to soft mixtures of experts,” arXiv preprint arXiv:2308.00951, 2023. +[28] J. Geweke and M. Keane, “Smoothly mixing regressions,” Journal of Econometrics, vol. 138, no. 1, pp. 252–290, 2007. +[29] Z. Chen, Y. Deng, Y. Wu, Q. Gu, and Y. Li, “Towards understanding mixture of experts in deep learning,” arXiv preprint arXiv:2208.02813, 2022. +[30] H. Li, S. Lin, L. Duan, Y. Liang, and N. B. Shroff, “Theory on mixtureof-experts in continual learning,” arXiv preprint arXiv:2406.16437, 2024. +[31] R. Csordas, P. Piekos, K. Irie, and J. Schmidhuber, “Switchhead: ´ Accelerating transformers with mixture-of-experts attention,” arXiv preprint arXiv:2312.07987, 2023. +[32] K.-C. Wang, D. Ostashev, Y. Fang, S. Tulyakov, and K. Aberman, “Moa: Mixture-of-attention for subject-context disentanglement in personalized image generation,” in SIGGRAPH Asia 2024 Conference Papers, SA ’24, (New York, NY, USA), Association for Computing Machinery, 2024. +[33] P. Jin, B. Zhu, L. Yuan, and S. Yan, “Moh: Multi-head attention as mixture-of-head attention,” arXiv preprint arXiv:2410.11842, 2024. +[34] M. J. Jung and J. Kim, “Pmoe: Progressive mixture of experts with asymmetric transformer for continual learning,” arXiv preprint arXiv:2407.21571, 2024. +[35] S. Pavlitska, C. Hubschneider, L. Struppek, and J. M. Zollner, ¨ “Sparsely-gated mixture-of-expert layers for CNN interpretability,” in 2023 International Joint Conference on Neural Networks (IJCNN), pp. 1–10, IEEE. +[36] Y. Yi, K.-Y. Chen, and H.-Y. Gu, “Mixture of CNN experts from multiple acoustic feature domain for music genre classification,” in 2019 Asia-Pacific Signal and Information Processing Association Annual Summit and Conference (APSIPA ASC), pp. 1250–1255, IEEE. +[37] L. Zhang, S. Huang, and W. Liu, “Enhancing mixture-of-experts by leveraging attention for fine-grained recognition,” vol. 24, pp. 4409– 4421. +[38] L. Zhang, S. Huang, W. Liu, and D. Tao, “Learning a mixture of granularity-specific experts for fine-grained categorization,” in 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 8330–8339, IEEE. +[39] S. Gross, M. Ranzato, and A. Szlam, “Hard mixtures of experts for large scale weakly supervised vision,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 6865– 6873, 2017. +[40] J. Zhu, X. Zhu, W. Wang, X. Wang, H. Li, X. Wang, and J. Dai, “Uniperceiver-moe: Learning sparse generalist models with conditional moes,” Advances in Neural Information Processing Systems, vol. 35, pp. 2664–2678, 2022. +[41] Z. Su, Z. Lin, X. Bai, X. Wu, Y. Xiong, H. Lian, G. Ma, H. Chen, G. Ding, W. Zhou, et al., “Maskmoe: Boosting token-level learning via routing mask in mixture-of-experts,” arXiv preprint arXiv:2407.09816, 2024. +[42] E. Pedicir, L. Miller, and L. Robinson, “Novel token-level recurrent routing for enhanced mixture-of-experts performance,” Authorea Preprints, 2024. +[43] Y. Li, S. Jiang, B. Hu, L. Wang, W. Zhong, W. Luo, L. Ma, and M. Zhang, “Uni-moe: Scaling unified multimodal llms with mixture of experts,” arXiv preprint arXiv:2405.11273, 2024. +[44] S. Kudugunta, Y. Huang, A. Bapna, M. Krikun, D. Lepikhin, M.-T. Luong, and O. Firat, “Beyond distillation: Task-level mixture-of-experts for efficient inference,” arXiv preprint arXiv:2110.03742, 2021. +[45] X. Shi, S. Wang, Y. Nie, D. Li, Z. Ye, Q. Wen, and M. Jin, “Time-moe: Billion-scale time series foundation models with mixture of experts,” arXiv preprint arXiv:2409.16040, 2024. +[46] Q. Huang, Z. An, N. Zhuang, M. Tao, C. Zhang, Y. Jin, K. Xu, L. Chen, S. Huang, and Y. Feng, “Harder tasks need more experts: Dynamic routing in moe models,” arXiv preprint arXiv:2403.07652, 2024. +[47] A. Wang, X. Sun, R. Xie, S. Li, J. Zhu, Z. Yang, P. Zhao, J. Han, Z. Kang, D. Wang, et al., “Hmoe: Heterogeneous mixture of experts for language modeling,” arXiv preprint arXiv:2408.10681, 2024. +[48] O. Irsoy and E. Alpaydın, “Dropout regularization in hierarchical mixture of experts,” Neurocomputing, vol. 419, pp. 148–156, 2021. +[49] J. He, J. Zhai, T. Antunes, H. Wang, F. Luo, S. Shi, and Q. Li, “Fastermoe: modeling and optimizing training of large-scale dynamic pretrained models,” in Proceedings of the 27th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, pp. 120–134, 2022. +[50] C. Hwang, W. Cui, Y. Xiong, Z. Yang, Z. Liu, H. Hu, Z. Wang, R. Salas, J. Jose, P. Ram, et al., “Tutel: Adaptive mixture-of-experts at scale,” Proceedings of Machine Learning and Systems, vol. 5, pp. 269–287, 2023. +[51] R. Sarkar, H. Liang, Z. Fan, Z. Wang, and C. Hao, “Edge-moe: Memory-efficient multi-task vision transformer architecture with tasklevel sparsity via mixture-of-experts,” in 2023 IEEE/ACM International Conference on Computer Aided Design (ICCAD), pp. 01–09, IEEE, 2023. +[52] S. Rajbhandari, C. Li, Z. Yao, M. Zhang, R. Y. Aminabadi, A. A. Awan, J. Rasley, and Y. He, “Deepspeed-moe: Advancing mixtureof-experts inference and training to power next-generation ai scale,” in International conference on machine learning, pp. 18332–18346, PMLR, 2022. +[53] A. Liu, B. Feng, B. Xue, B. Wang, B. Wu, C. Lu, C. Zhao, C. Deng, C. Zhang, C. Ruan, et al., “Deepseek-v3 technical report,” arXiv preprint arXiv:2412.19437, 2024. +[54] S. Singh, O. Ruwase, A. A. Awan, S. Rajbhandari, Y. He, and A. Bhatele, “A hybrid tensor-expert-data parallelism approach to optimize mixture-of-experts training,” in Proceedings of the 37th International Conference on Supercomputing, pp. 203–214, 2023. +[55] J. Yao, Q. Anthony, A. Shafi, H. Subramoni, and D. K. D. Panda, “Exploiting inter-layer expert affinity for accelerating mixture-of-experts model inference,” in 2024 IEEE International Parallel and Distributed Processing Symposium (IPDPS), pp. 915–925, IEEE, 2024. +[56] J. Yu, Y. Zhuge, L. Zhang, P. Hu, D. Wang, H. Lu, and Y. He, “Boosting continual learning of vision-language models via mixture-of-experts adapters,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 23219–23230, June 2024. +[57] R. Zhang, A. Cheng, Y. Luo, G. Dai, H. Yang, J. Liu, R. Xu, L. Du, Y. Du, Y. Jiang, et al., “Decomposing the neurons: Activation sparsity via mixture of experts for continual test time adaptation,” arXiv preprint arXiv:2405.16486, 2024. +[58] Y. Zhou, T. Lei, H. Liu, N. Du, Y. Huang, V. Zhao, A. M. Dai, Q. V. Le, J. Laudon, et al., “Mixture-of-experts with expert choice routing,” Advances in Neural Information Processing Systems, vol. 35, pp. 7103– 7114, 2022. +[59] W. Chen, Y. Zhou, N. Du, Y. Huang, J. Laudon, Z. Chen, and C. Cui, “Lifelong language pretraining with distribution-specialized experts,” in International Conference on Machine Learning, pp. 5383–5395, PMLR, 2023. +[60] S. Lee, J. Ha, D. Zhang, and G. Kim, “A neural dirichlet process mixture model for task-free continual learning,” arXiv preprint arXiv:2001.00689, 2020. +[61] G. Rypes´c, S. Cygert, V. Khan, T. Trzci ´ nski, B. Zieli ´ nski, and B. Twar- ´ dowski, “Divide and not forget: Ensemble of selectively trained experts in continual learning,” arXiv preprint arXiv:2401.10191, 2024. +[62] X. Yu, T. Rosing, and Y. Guo, “Evolve: Enhancing unsupervised continual learning with multiple experts,” in 2024 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 2355– 2366, IEEE. +[63] L. Li, Z. Wu, and Y. Ji, “Mote: Mixture of task-specific experts for pretrained model-based continual learning,” Available at SSRN 5035279, 2024. +[64] S. Park, “Learning more generalized experts by merging experts in mixture-of-experts,” arXiv preprint arXiv:2405.11530, 2024. +[65] H. Hihn and D. A. Braun, “Mixture-of-variational-experts for continual learning,” arXiv preprint arXiv:2110.12667, 2021. of experts meets prompt-based continual learning,” Advances in Neural Information Processing Systems, vol. 37, pp. 119025–119062, 2024. +[67] S. Lee and C. Park, “Continual traffic forecasting via mixture of experts,” arXiv preprint arXiv:2406.03140, 2024. +[68] M. Wang, H. Su, S. Wang, S. Wang, N. Yin, L. Shen, L. Lan, L. Yang, and X. Cao, “Graph convolutional mixture-of-experts learner network for long-tailed domain generalization,” pp. 1–1. +[69] Q. Chen, L. Zhu, H. He, X. Zhang, S. Zeng, Q. Ren, and Y. Lu, “Lowrank mixture-of-experts for continual medical image segmentation,” in Medical Image Computing and Computer Assisted Intervention – MICCAI 2024 (M. G. Linguraru, Q. Dou, A. Feragen, S. Giannarou, B. Glocker, K. Lekadir, and J. A. Schnabel, eds.), vol. 15008, pp. 382– 392, Springer Nature Switzerland. Series Title: Lecture Notes in Computer Science. +[70] Z. Wang, Z. Zhang, C.-Y. Lee, H. Zhang, R. Sun, X. Ren, G. Su, V. Perot, J. Dy, and T. Pfister, “Learning to prompt for continual learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 139–149, 2022. +[71] R. Aljundi, P. Chakravarty, and T. Tuytelaars, “Expert gate: Lifelong learning with a network of experts,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3366–3375, 2017. +[72] L. Wang, X. Zhang, Q. Li, J. Zhu, and Y. Zhong, “Coscl: Cooperation of small continual learners is stronger than a big one,” in European Conference on Computer Vision, pp. 254–271, Springer, 2022. +[73] T. Doan, S. I. Mirzadeh, and M. Farajtabar, “Continual learning beyond a single model,” in Conference on Lifelong Learning Agents, pp. 961– 991, PMLR, 2023. +[74] T. Zhong, Z. Chi, L. Gu, Y. Wang, Y. Yu, and J. Tang, “Metadmoe: Adapting to domain shift by meta-distillation from mixture-ofexperts,” Advances in Neural Information Processing Systems, vol. 35, pp. 22243–22257, 2022. +[75] Y. Dai, X. Li, J. Liu, Z. Tong, and L.-Y. Duan, “Generalizable person re-identification with relevance-aware mixture of experts,” in 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 16140–16149, IEEE. +[76] Z. Liu, X. Wang, C. Feng, X. Sun, W. Zhan, and X. Chen, “Metareinforcement learning with mixture of experts for generalizable multi access in heterogeneous wireless networks,” arXiv preprint arXiv:2412.03850, 2024. +[77] J. Guo, D. J. Shah, and R. Barzilay, “Multi-source domain adaptation with mixture of experts,” arXiv preprint arXiv:1809.02256, 2018. +[78] Q. Zhou, K.-Y. Zhang, T. Yao, R. Yi, S. Ding, and L. Ma, “Adaptive mixture of experts learning for generalizable face anti-spoofing,” in Proceedings of the 30th ACM International Conference on Multimedia, pp. 6009–6018. +[79] R. D. Nzoyem, D. A. Barton, and T. Deakin, “Towards foundational models for dynamical system reconstruction: Hierarchical metalearning via mixture of experts,” arXiv preprint arXiv:2502.05335, 2025. +[80] A. Hendawy, J. Peters, and C. D’Eramo, “Multi-task reinforcement learning with mixture of orthogonal experts,” arXiv preprint arXiv:2311.11385, 2023. +[81] Y. Yang, P.-T. Jiang, Q. Hou, H. Zhang, J. Chen, and B. Li, “Multi-task dense prediction via mixture of low-rank experts,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 27927–27937, 2024. +[82] L. Shen, A. Tang, E. Yang, G. Guo, Y. Luo, L. Zhang, X. Cao, B. Du, and D. Tao, “Efficient and effective weight-ensembling mixture of experts for multi-task model merging,” arXiv preprint arXiv:2410.21804, 2024. +[83] Z. Qin, Y. Cheng, Z. Zhao, Z. Chen, D. Metzler, and J. Qin, “Multitask mixture of sequential experts for user activity streams,” in Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 3083–3091, ACM. +[84] R. Aoki, F. Tung, and G. L. Oliveira, “Heterogeneous multi-task learning with expert diversity,” vol. 19, no. 6, pp. 3093–3102. +[85] G. Cheng, L. Dong, W. Cai, and C. Sun, “Multi-task reinforcement learning with attention-based mixture of experts,” IEEE Robotics and Automation Letters, vol. 8, no. 6, pp. 3812–3819, 2023. +[86] H. Ye and D. Xu, “Taskexpert: Dynamically assembling multi-task representations with memorial mixture-of-experts,” in Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 21828–21837, October 2023. +[87] S. Gupta, S. Mukherjee, K. Subudhi, E. Gonzalez, D. Jose, A. H. Awadallah, and J. Gao, “Sparsely activated mixture-of-experts are robust multi-task learners,” arXiv preprint arXiv:2204.07689, 2022. +[88] H. Hazimeh, Z. Zhao, A. Chowdhery, M. Sathiamoorthy, Y. Chen, R. Mazumder, L. Hong, and E. Chi, “Dselect-k: Differentiable selection in the mixture of experts with applications to multi-task learning,” Advances in Neural Information Processing Systems, vol. 34, pp. 29335– 29347, 2021. +[89] Z. Chen, Y. Shen, M. Ding, Z. Chen, H. Zhao, E. Learned-Miller, and C. Gan, “Mod-squad: Designing mixtures of experts as modular multitask learners,” in 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 11828–11837, IEEE. +[90] M. Reuss, J. Pari, P. Agrawal, and R. Lioutikov, “Efficient diffusion transformer policies with mixture of expert denoisers for multitask learning,” arXiv preprint arXiv:2412.12953, 2024. +[91] Z. Zhang, S. Liu, J. Yu, Q. Cai, X. Zhao, C. Zhang, Z. Liu, Q. Liu, H. Zhao, L. Hu, P. Jiang, and K. Gai, “M3oe: Multi-domain multitask mixture-of experts recommendation framework,” in Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 893–902. +[92] J. Xu, L. Sun, and D. Zhao, “MoME: Mixture-of-masked-experts for efficient multi-task recommendation,” in Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 2527–2531, ACM. +[93] J. Ma, Z. Zhao, X. Yi, J. Chen, L. Hong, and E. H. Chi, “Modeling task relationships in multi-task learning with multi-gate mixture-of-experts,” in Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 1930–1939, ACM. +[94] Z. Hou and D. Cao, “Estimating elastic parameters from digital rock images based on multi-task learning with multi-gate mixture-ofexperts,” vol. 213, p. 110310. +[95] S. Wang, Y. Li, H. Li, T. Zhu, Z. Li, and W. Ou, “Multi-task learning with calibrated mixture of insightful experts,” in 2022 IEEE 38th International Conference on Data Engineering (ICDE), pp. 3307–3319, IEEE. +[96] S. Sodhani, A. Zhang, and J. Pineau, “Multi-task reinforcement learning with context-based representations,” in International Conference on Machine Learning, pp. 9767–9779, PMLR, 2021. +[97] T. Chen, X. Chen, X. Du, A. Rashwan, F. Yang, H. Chen, Z. Wang, and Y. Li, “AdaMV-MoE: Adaptive multi-task vision mixture-ofexperts,” in 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 17300–17311, IEEE. +[98] H. Tang, J. Liu, M. Zhao, and X. Gong, “Progressive layered extraction (ple): A novel multi-task learning (mtl) model for personalized recommendations,” in Proceedings of the 14th ACM conference on recommender systems, pp. 269–278, 2020. +[99] C. Louizos, M. Welling, and D. P. Kingma, “Learning sparse neural networks through $l _ { - } 0$ regularization,” arXiv preprint arXiv:1712.01312, 2017. +[100] J. Ren, Y. Li, Z. Ding, W. Pan, and H. Dong, “Probabilistic mixtureof-experts for efficient deep reinforcement learning,” arXiv preprint arXiv:2104.09122, 2021. +[101] M. Gimelfarb, S. Sanner, and C.-G. Lee, “Contextual policy transfer in reinforcement learning domains via deep mixtures-of-experts,” in Proceedings of the Thirty-Seventh Conference on Uncertainty in Artificial Intelligence (C. de Campos and M. H. Maathuis, eds.), vol. 161 of Proceedings of Machine Learning Research, pp. 1787–1797, PMLR, 27–30 Jul 2021. +[102] T. Willi, J. Obando-Ceron, J. Foerster, K. Dziugaite, and P. S. Castro, “Mixture of experts in a mixture of rl settings,” arXiv preprint arXiv:2406.18420, 2024. +[103] S. Huang, Z. Zhang, T. Liang, Y. Xu, Z. Kou, C. Lu, G. Xu, Z. Xue, and H. Xu, “Mentor: Mixture-of-experts network with taskoriented perturbation for visual reinforcement learning,” arXiv preprint arXiv:2410.14972, 2024. +[104] G. Qiao, G. Liu, P. Poupart, and Z. Xu, “Multi-modal inverse constrained reinforcement learning from a mixture of demonstrations,” Advances in Neural Information Processing Systems, vol. 36, pp. 60384– 60396, 2023. +[105] D. Gupta, Y. Chow, A. Tulepbergenov, M. Ghavamzadeh, and C. Boutilier, “Offline reinforcement learning for mixture-of-expert dialogue management,” Advances in Neural Information Processing Systems, vol. 36, pp. 5912–5935, 2023. +[106] K. Samejima, K. Doya, and M. Kawato, “Inter-module credit assignment in modular reinforcement learning,” Neural Networks, vol. 16, no. 7, pp. 985–994, 2003. +[107] H. Van Seijen, B. Bakker, L. Kester, et al., “Switching between different state representations in reinforcement learning,” in Proceedings of the 26th IASTED International Conference on Artificial Intelligence and Applications, pp. 226–231, 2008. +[108] X. B. Peng, G. Berseth, and M. Van de Panne, “Terrain-adaptive locomotion skills using deep reinforcement learning,” ACM Transactions on Graphics (TOG), vol. 35, no. 4, pp. 1–12, 2016. +[109] V. C. Kumar, S. Ha, and C. K. Liu, “Learning a unified control policy for safe falling,” in 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 3940–3947, IEEE, 2017. +[110] X. B. Peng, M. Chang, G. Zhang, P. Abbeel, and S. Levine, “Mcp: Learning composable hierarchical control with multiplicative compositional policies,” Advances in neural information processing systems, vol. 32, 2019. +[111] R. Akrour, D. Tateo, and J. Peters, “Continuous action reinforcement learning from a mixture of interpretable experts,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 44, no. 10, pp. 6795– 6806, 2021. +[112] K. S. Refaat and K. Ding, “Accelerated deep reinforcement learning of terrain-adaptive locomotion skills,” in Deep RL Workshop NeurIPS 2021, 2021. +[113] W. Song, H. Zhao, P. Ding, C. Cui, S. Lyu, Y. Fan, and D. Wang, “Germ: A generalist robotic model with mixture-of-experts for quadruped robot,” in 2024 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 11879–11886, IEEE, 2024. +[114] M. Vincze, L. Ferrarotti, L. L. Custode, B. Lepri, and G. Iacca, “Smose: Sparse mixture of shallow experts for interpretable reinforcement learning in continuous control tasks,” arXiv preprint arXiv:2412.13053, 2024. +[115] J. Obando-Ceron, G. Sokar, T. Willi, C. Lyle, J. Farebrother, J. Foerster, G. K. Dziugaite, D. Precup, and P. S. Castro, “Mixtures of experts unlock parameter scaling for deep rl,” arXiv preprint arXiv:2402.08609, 2024. +[116] Y. Takahashi and M. Asada, “Modular learning systems for soccer robot,” in Proceedings of the Fourth International Symposium on Human and Artificial Intelligence Systems, pp. 370–375, Citeseer, 2004. +[117] Y. Takahashi, K. Edazawa, and M. Asada, “Modular learning system and scheduling for behavior acquisition in multi-agent environment,” in RoboCup 2004: Robot Soccer World Cup VIII 8, pp. 548–555, Springer, 2005. +[118] Y. Takahashi, K. Edazawa, K. Noma, and M. Asada, “Simultaneous learning to acquire competitive behaviors in multi-agent system based on a modular learning system,” in 2005 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 2016–2022, IEEE, 2005. +[119] K. Mulling, J. Kober, O. Kroemer, and J. Peters, “Learning to select and ¨ generalize striking movements in robot table tennis,” The International Journal of Robotics Research, vol. 32, no. 3, pp. 263–279, 2013. +[120] K. Li, M. Cucuringu, L. Sanchez-Betancourt, and T. Willi, “Mixtures´ of experts for scaling up neural networks in order execution,” in Proceedings of the 5th ACM International Conference on AI in Finance, pp. 669–676, 2024. +[121] M. Ewerton, G. Neumann, R. Lioutikov, H. B. Amor, J. Peters, and G. Maeda, “Learning multiple collaborative tasks with a mixture of interaction primitives,” in 2015 IEEE International Conference on Robotics and Automation (ICRA), pp. 1535–1542, IEEE, 2015. +[122] Y. Zhou, J. Gao, and T. Asfour, “Movement primitive learning and generalization: Using mixture density networks,” IEEE Robotics & Automation Magazine, vol. 27, no. 2, pp. 22–32, 2020. +[123] N. Freymuth, N. Schreiber, P. Becker, A. Taranovic, and G. Neumann, “Inferring versatile behavior from demonstrations by matching geometric descriptors,” arXiv preprint arXiv:2210.08121, 2022. +[124] V. Prasad, A. Kshirsagar, D. K. R. Stock-Homburg, J. Peters, and G. Chalvatzaki, “Moveint: Mixture of variational experts for learning human-robot interactions from demonstrations,” IEEE Robotics and Automation Letters, 2024. +[125] K. Doya, K. Samejima, K.-i. Katagiri, and M. Kawato, “Multiple model-based reinforcement learning,” Neural computation, vol. 14, no. 6, pp. 1347–1369, 2002. +[126] P. Tommasino, D. Caligiore, M. Mirolli, and G. Baldassarre, “A reinforcement learning architecture that transfers knowledge between skills when solving multiple tasks,” IEEE Transactions on Cognitive and Developmental Systems, vol. 11, no. 2, pp. 292–317, 2016. +[127] D. Peterson, P. Kanani, and V. J. Marathe, “Private federated learning with domain adaptation,” arXiv preprint arXiv:1912.06733, 2019. +[128] E. L. Zec, O. Mogren, J. Martinsson, L. R. Sutfeld, and D. Gillblad, ¨ “Specialized federated learning using a mixture of experts,” arXiv preprint arXiv:2010.02056, 2020. +[129] S. K. Pye and H. Yu, “Personalised federated learning: A combinational approach,” arXiv preprint arXiv:2108.09618, 2021. +[130] M. Reisser, C. Louizos, E. Gavves, and M. Welling, “Federated mixture of experts,” arXiv preprint arXiv:2107.06724, 2021. +[131] B. Guo, Y. Mei, D. Xiao, and W. Wu, “Pfl-moe: Personalized federated learning based on mixture of experts,” in Web and Big Data: 5th International Joint Conference, APWeb-WAIM 2021, Guangzhou, China, August 23–25, 2021, Proceedings, Part I 5, pp. 480–486, Springer, 2021. +[132] M. Isaksson, E. L. Zec, R. Coster, D. Gillblad, and ¨ S. Girdzijauskas, ˇ “Adaptive expert models for personalization in federated learning,” arXiv preprint arXiv:2206.07832, 2022. +[133] A. Ghosh, J. Chung, D. Yin, and K. Ramchandran, “An efficient framework for clustered federated learning,” Advances in neural information processing systems, vol. 33, pp. 19586–19597, 2020. +[134] V.-T. Tran, L. H. Khiem, and V. Q. Pham, “Revisiting sparse mixture of experts for resource-adaptive federated fine-tuning foundation models,” in ICLR 2025 Workshop on Modularity for Collaborative, Decentralized, and Continual Deep Learning, 2025. +[135] C. Dun, M. H. Garcia, G. Zheng, A. H. Awadallah, R. Sim, A. Kyrillidis, and D. Dimitriadis, “Fedjets: Efficient just-in-time personalization with federated mixture of experts,” arXiv preprint arXiv:2306.08586, 2023. +[136] C. E. Heinbaugh, E. Luz-Ricca, and H. Shao, “Data-free one-shot federated learning under very high statistical heterogeneity,” in The Eleventh International Conference on Learning Representations, 2023. +[137] S. Su, B. Li, and X. Xue, “One-shot federated learning without serverside training,” Neural Networks, vol. 164, pp. 203–215, 2023. +[138] H. Zeng, M. Xu, T. Zhou, X. Wu, J. Kang, Z. Cai, and D. Niyato, “Oneshot-but-not-degraded federated learning,” in Proceedings of the 32nd ACM International Conference on Multimedia, MM ’24, (New York, NY, USA), p. 11070–11079, Association for Computing Machinery, 2024. +[139] H. Li and L. Duan, “Theory of mixture-of-experts for mobile edge computing,” arXiv preprint arXiv:2412.15690, 2024. +[140] M. N. R. Chowdhury, S. Zhang, M. Wang, S. Liu, and P.-Y. Chen, “Patch-level routing in mixture-of-experts is provably sample-efficient for convolutional neural networks,” in International Conference on Machine Learning, pp. 6074–6114, PMLR, 2023. +[141] W. Jiang and M. A. Tanner, “Hierarchical mixtures-of-experts for exponential family regression models: approximation and maximum likelihood estimation,” Annals of Statistics, pp. 987–1011, 1999. +[142] W. Jiang and M. A. Tanner, “On the approximation rate of hierarchical mixtures-of-experts for generalized linear models,” Neural computation, vol. 11, no. 5, pp. 1183–1198, 1999. +[143] A. J. Zeevi, R. Meir, and V. Maiorov, “Error bounds for functional approximation and estimation using mixtures of experts,” IEEE Transactions on Information Theory, vol. 44, no. 3, pp. 1010–1025, 1998. +[144] H. D. Nguyen, L. R. Lloyd-Jones, and G. J. McLachlan, “A universal approximation theorem for mixture-of-experts models,” Neural computation, vol. 28, no. 12, pp. 2585–2593, 2016. +[145] E. F. Mendes and W. Jiang, “On convergence rates of mixtures of polynomial experts,” Neural computation, vol. 24, no. 11, pp. 3025– 3051, 2012. +[146] N. Ho, C.-Y. Yang, and M. I. Jordan, “Convergence rates for gaussian mixtures of experts,” Journal of Machine Learning Research, vol. 23, no. 323, pp. 1–81, 2022. +[147] H. Nguyen, T. Nguyen, and N. Ho, “Demystifying softmax gating function in gaussian mixture of experts,” Advances in Neural Information Processing Systems, vol. 36, pp. 4624–4652, 2023. +[148] H. Nguyen, P. Akbarian, F. Yan, and N. Ho, “Statistical perspective of top-k sparse softmax gating mixture of experts,” arXiv preprint arXiv:2309.13850, 2023. +[149] H. Nguyen, T. Nguyen, K. Nguyen, and N. Ho, “Towards convergence rates for parameter estimation in gaussian-gated mixture of experts,” in International Conference on Artificial Intelligence and Statistics, pp. 2683–2691, PMLR, 2024. +[150] H. Nguyen, N. Ho, and A. Rinaldo, “On least square estimation in softmax gating mixture of experts,” arXiv preprint arXiv:2402.02952, 2024. +[151] H. Nguyen, P. Akbarian, T. Nguyen, and N. Ho, “A general theory for softmax gating multinomial logistic mixture of experts,” arXiv preprint arXiv:2310.14188, 2023. +[152] T. C. Fung and S. C. Tseung, “Mixture of experts models for multilevel data: Modelling framework and approximation theory,” Neurocomput +[153] M. Videau, A. Leite, M. Schoenauer, and O. Teytaud, “Mixture of experts in image classification: What’s the sweet spot?,” arXiv preprint arXiv:2411.18322, 2024. +[154] X. Han, L. Wei, Z. Dou, Z. Wang, C. Qiang, X. He, Y. Sun, Z. Han, and Q. Tian, “Vimoe: An empirical study of designing vision mixtureof-experts,” arXiv preprint arXiv:2410.15732, 2024. +[155] A. Royer, I. Karmanov, A. Skliar, B. E. Bejnordi, and T. Blankevoort, “Revisiting single-gated mixtures of experts,” arXiv preprint arXiv:2304.05497, 2023. +[156] J. Zhang, X. Qu, T. Zhu, and Y. Cheng, “Clip-moe: Towards building mixture of experts for clip with diversified multiplet upcycling,” arXiv preprint arXiv:2409.19291, 2024. +[157] M. He, G. Lv, W. He, J. Fan, and G. Zeng, “DeepME: Deep mixture experts for large-scale image classification,” in Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, pp. 722–728, International Joint Conferences on Artificial Intelligence Organization. +[158] H. Nguyen, X. Han, C. W. Harris, S. Saria, and N. Ho, “On expert estimation in hierarchical mixture of experts: Beyond softmax gating functions,” arXiv preprint arXiv:2410.02935, 2024. +[159] K. Oksuz, S. Kuzucu, T. Joy, and P. K. Dokania, “Mocae: Mixture of calibrated experts significantly improves object detection,” arXiv preprint arXiv:2309.14976, 2023. +[160] X. Wang, Y. Jin, W. Wu, W. Zhang, L. Zhu, B. Jiang, and Y. Tian, “Object detection using event camera: A moe heat conduction based detector and a new benchmark dataset,” arXiv preprint arXiv:2412.06647, 2024. +[161] Y. Jain, H. Behl, Z. Kira, and V. Vineet, “Damex: Dataset-aware mixture-of-experts for visual understanding of mixture-of-datasets,” Advances in Neural Information Processing Systems, vol. 36, 2024. +[162] X. Feng, Y. Li, D. Chen, C. Qiao, J. Yuan, L. Yuan, and G. Hua, “Pluralistic salient object detection,” arXiv preprint arXiv:2409.02368, 2024. +[163] S. Pavlitska, E. Eisen, and J. M. Zollner, “Towards adversarial ro- ¨ bustness of model-level mixture-of-experts architectures for semantic segmentation,” arXiv preprint arXiv:2412.11608, 2024. +[164] C. Zhu, B. Xiao, L. Shi, S. Xu, and X. Zheng, “Customize segment anything model for multi-modal semantic segmentation with mixture of lora experts,” arXiv preprint arXiv:2412.04220, 2024. +[165] S. Pavlitskaya, C. Hubschneider, M. Weber, R. Moritz, F. Huger, P. Schlicht, and J. M. Zollner, “Using mixture of expert models to gain insights into semantic segmentation,” in 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pp. 1399–1406, IEEE. +[166] X. Wang, F. Yu, L. Dunlap, Y.-A. Ma, R. Wang, A. Mirhoseini, T. Darrell, and J. E. Gonzalez, “Deep mixture of experts via shallow embedding,” in Uncertainty in artificial intelligence, pp. 552–562, PMLR, 2020. +[167] L. Rossi, V. Bernuzzi, T. Fontanini, M. Bertozzi, and A. Prati, “Swin2- mose: A new single image supersolution model for remote sensing,” IET Image Processing, vol. 19, no. 1, p. e13303, 2025. +[168] Z. Xue, G. Song, Q. Guo, B. Liu, Z. Zong, Y. Liu, and P. Luo, “Raphael: Text-to-image generation via large mixture of diffusion paths,” Advances in Neural Information Processing Systems, vol. 36, pp. 41693–41706, 2023. +[169] D. K. Park, S. Yoo, H. Bahng, J. Choo, and N. Park, “Megan: Mixture of experts of generative adversarial networks for multimodal image generation,” arXiv preprint arXiv:1805.02481, 2018. +[170] Y. Jiang, S. Yang, H. Qiu, W. Wu, C. C. Loy, and Z. Liu, “Text2human: Text-driven controllable human image generation,” ACM Transactions on Graphics (TOG), vol. 41, no. 4, pp. 1–11, 2022. +[171] H. Zhou, Z. Wang, S. Huang, X. Huang, X. Han, J. Feng, C. Deng, W. Luo, and J. Chen, “Moe-lpr: Multilingual extension of large language models through mixture-of-experts with language priors routing,” arXiv preprint arXiv:2408.11396, 2024. +[172] X. Cheng, Z. Zhu, X. Zhuang, Z. Chen, Z. Huang, and Y. Zou, “MoESLU: Towards ASR-robust spoken language understanding via mixtureof-experts,” in Findings of the Association for Computational Linguistics ACL 2024, pp. 14868–14879, Association for Computational Linguistics. +[173] Z. Wu, H.-Y. Huang, F. Qu, and Y. Wu, “Mixture-of-promptexperts for multi-modal semantic understanding,” arXiv preprint arXiv:2403.11311, 2024. +[174] Y. Chai, Q. Yin, and J. Zhang, “Improved training of mixture-of-experts language gans,” in ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 1–5, 2023. +[175] Y. Zhang, S. Sun, X. Gao, Y. Fang, C. Brockett, M. Galley, J. Gao, and B. Dolan, “Retgen: A joint framework for retrieval and grounded text generation modeling,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 36, pp. 11739–11747, 2022. +[176] J. Wu and M. Hou, “Enhancing diversity for logical $<$ $ table-to-text$ generation with mixture of experts,” vol. 41, no. 4, p. e13533. +[177] E. Frantar and D. Alistarh, “Qmoe: Practical sub-1-bit compression of trillion-parameter models,” arXiv preprint arXiv:2310.16795, 2023. +[178] M. R. Costa-Jussa, J. Cross, O. C¸ elebi, M. Elbayad, K. Heafield, \` K. Heffernan, E. Kalbassi, J. Lam, D. Licht, J. Maillard, et al., “No language left behind: Scaling human-centered machine translation,” arXiv preprint arXiv:2207.04672, 2022. +[179] NLLB Team, M. R. Costa-jussa, J. Cross, O. C¸ elebi, M. Elbayad, \` K. Heafield, K. Heffernan, E. Kalbassi, J. Lam, D. Licht, J. Maillard, A. Sun, S. Wang, G. Wenzek, A. Youngblood, B. Akula, L. Barrault, G. M. Gonzalez, P. Hansanti, J. Hoffman, S. Jarrett, K. R. Sadagopan, D. Rowe, S. Spruit, C. Tran, P. Andrews, N. F. Ayan, S. Bhosale, S. Edunov, A. Fan, C. Gao, V. Goswami, F. Guzman, P. Koehn, ´ A. Mourachko, C. Ropers, S. Saleem, H. Schwenk, and J. Wang, “Scaling neural machine translation to 200 languages,” vol. 630, no. 8018, pp. 841–846. +[180] H. Huang, N. Ardalani, A. Sun, L. Ke, H.-H. S. Lee, A. Sridhar, S. Bhosale, C.-J. Wu, and B. Lee, “Towards moe deployment: Mitigating inefficiencies in mixture-of-expert (moe) inference,” arXiv preprint arXiv:2303.06182, 2023. +[181] S. Chen, Z. Jie, and L. Ma, “Llava-mole: Sparse mixture of lora experts for mitigating data conflicts in instruction finetuning mllms,” arXiv preprint arXiv:2401.16160, 2024. +[182] B. Mustafa, C. Riquelme, J. Puigcerver, R. Jenatton, and N. Houlsby, “Multimodal contrastive learning with limoe: the language-image mixture of experts,” Advances in Neural Information Processing Systems, vol. 35, pp. 9564–9576, 2022. +[183] X. Sun, Y. Chen, Y. Huang, R. Xie, J. Zhu, K. Zhang, S. Li, Z. Yang, J. Han, X. Shu, et al., “Hunyuan-large: An open-source moe model with 52 billion activated parameters by tencent,” arXiv preprint arXiv:2411.02265, 2024. +[184] A. Yang, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Li, D. Liu, F. Huang, H. Wei, et al., “Qwen2. 5 technical report,” arXiv preprint arXiv:2412.15115, 2024. +[185] T. Wei, B. Zhu, L. Zhao, C. Cheng, B. Li, W. Lu, P. Cheng, ¨ J. Zhang, X. Zhang, L. Zeng, et al., “Skywork-moe: A deep dive into training techniques for mixture-of-experts language models, 2024,” URL https://arxiv. org/abs/2406.06563, 2024. +[186] N. Gupta and J. Yip, “Dbrx: Creating an llm from scratch using databricks,” in Databricks Data Intelligence Platform: Unlocking the GenAI Revolution, pp. 311–330, Springer, 2024. +[187] B. Zoph, I. Bello, S. Kumar, N. Du, Y. Huang, J. Dean, N. Shazeer, and W. Fedus, “St-moe: Designing stable and transferable sparse expert models,” arXiv preprint arXiv:2202.08906, 2022. +[188] T. Zhu, X. Qu, D. Dong, J. Ruan, J. Tong, C. He, and Y. Cheng, “Llama-moe: Building mixture-of-experts from llama with continual pre-training,” in Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 15913–15923, 2024. +[189] X. Qu, D. Dong, X. Hu, T. Zhu, W. Sun, and Y. Cheng, “Llama-moe v2: Exploring sparsity of llama from perspective of mixture-of-experts with post-training,” arXiv preprint arXiv:2411.15708, 2024. +[190] A. Vavre, E. He, D. Liu, Z. Yan, J. Yang, N. Tajbakhsh, and A. Aithal, “Llama 3 meets moe: Efficient upcycling,” arXiv preprint arXiv:2412.09952, 2024. +[191] F. Xue, Z. Zheng, Y. Fu, J. Ni, Z. Zheng, W. Zhou, and Y. You, “Openmoe: An early effort on open mixture-of-experts language models,” arXiv preprint arXiv:2402.01739, 2024. +[192] B. Lenz, O. Lieber, A. Arazi, A. Bergman, A. Manevich, B. Peleg, B. Aviram, C. Almagor, C. Fridman, D. Padnos, et al., “Jamba: Hybrid transformer-mamba language models,” in The Thirteenth International Conference on Learning Representations, 2025. +[193] J. Team, B. Lenz, A. Arazi, A. Bergman, A. Manevich, B. Peleg, B. Aviram, C. Almagor, C. Fridman, D. Padnos, et al., “Jamba1.5: Hybrid transformer-mamba models at scale,” arXiv preprint arXiv:2408.12570, 2024. +[194] O. Lieber, B. Lenz, H. Bata, G. Cohen, J. Osin, I. Dalmedigos, E. Safahi, S. Meirom, Y. Belinkov, S. Shalev-Shwartz, et al., “Jamba: A hybrid transformer-mamba language model,” arXiv preprint arXiv:2403.19887, 2024. +[195] S. Wu, J. Luo, X. Chen, L. Li, X. Zhao, T. Yu, C. Wang, Y. Wang, F. Wang, W. Qiao, et al., “Yuan 2.0-m32: Mixture of experts with attention router,” arXiv preprint arXiv:2405.17976, 2024. +[196] C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu, “Exploring the limits of transfer learning with a unified text-to-text transformer,” Journal of machine learning research, vol. 21, no. 140, pp. 1–67, 2020. +[197] P.-E. Sarlin, D. DeTone, T. Malisiewicz, and A. Rabinovich, “Superglue: Learning feature matching with graph neural networks,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 4938–4947, 2020. +[198] D. Dai, C. Deng, C. Zhao, R. Xu, H. Gao, D. Chen, J. Li, W. Zeng, X. Yu, Y. Wu, et al., “Deepseekmoe: Towards ultimate expert specialization in mixture-of-experts language models,” arXiv preprint arXiv:2401.06066, 2024. +[199] DeepSeek-AI, A. Liu, B. Feng, B. Wang, B. Wang, B. Liu, C. Zhao, C. Dengr, C. Ruan, D. Dai, D. Guo, D. Yang, D. Chen, D. Ji, E. Li, F. Lin, F. Luo, G. Hao, G. Chen, G. Li, H. Zhang, H. Xu, H. Yang, H. Zhang, H. Ding, H. Xin, H. Gao, H. Li, H. Qu, J. L. Cai, J. Liang, J. Guo, J. Ni, J. Li, J. Chen, J. Yuan, J. Qiu, J. Song, K. Dong, K. Gao, K. Guan, L. Wang, L. Zhang, L. Xu, L. Xia, L. Zhao, L. Zhang, M. Li, M. Wang, M. Zhang, M. Zhang, M. Tang, M. Li, N. Tian, P. Huang, P. Wang, P. Zhang, Q. Zhu, Q. Chen, Q. Du, R. J. Chen, R. L. Jin, R. Ge, R. Pan, R. Xu, R. Chen, S. S. Li, S. Lu, S. Zhou, S. Chen, S. Wu, S. Ye, S. Ma, S. Wang, S. Zhou, S. Yu, S. Zhou, S. Zheng, T. Wang, T. Pei, T. Yuan, T. Sun, W. L. Xiao, W. Zeng, W. An, W. Liu, W. Liang, W. Gao, W. Zhang, X. Q. Li, X. Jin, X. Wang, X. Bi, X. Liu, X. Wang, X. Shen, X. Chen, X. Chen, X. Nie, X. Sun, X. Wang, X. Liu, X. Xie, X. Yu, X. Song, X. Zhou, X. Yang, X. Lu, X. Su, Y. Wu, Y. K. Li, Y. X. Wei, Y. X. Zhu, Y. Xu, Y. Huang, Y. Li, Y. Zhao, Y. Sun, Y. Li, Y. Wang, Y. Zheng, Y. Zhang, Y. Xiong, Y. Zhao, Y. He, Y. Tang, Y. Piao, Y. Dong, Y. Tan, Y. Liu, Y. Wang, Y. Guo, Y. Zhu, Y. Wang, Y. Zou, Y. Zha, Y. Ma, Y. Yan, Y. You, Y. Liu, Z. Z. Ren, Z. Ren, Z. Sha, Z. Fu, Z. Huang, Z. Zhang, Z. Xie, Z. Hao, Z. Shao, Z. Wen, Z. Xu, Z. Zhang, Z. Li, Z. Wang, Z. Gu, Z. Li, and Z. Xie, “DeepSeek-v2: A strong, economical, and efficient mixture-of-experts language model,” arXiv preprint arXiv:2405.04434, no. arXiv:2405.04434. +[200] DeepSeek-AI, D. Guo, D. Yang, H. Zhang, J. Song, R. Zhang, R. Xu, Q. Zhu, S. Ma, P. Wang, X. Bi, X. Zhang, X. Yu, Y. Wu, Z. F. Wu, Z. Gou, Z. Shao, Z. Li, Z. Gao, A. Liu, B. Xue, B. Wang, B. Wu, B. Feng, C. Lu, C. Zhao, C. Deng, C. Zhang, C. Ruan, D. Dai, D. Chen, D. Ji, E. Li, F. Lin, F. Dai, F. Luo, G. Hao, G. Chen, G. Li, H. Zhang, H. Bao, H. Xu, H. Wang, H. Ding, H. Xin, H. Gao, H. Qu, H. Li, J. Guo, J. Li, J. Wang, J. Chen, J. Yuan, J. Qiu, J. Li, J. L. Cai, J. Ni, J. Liang, J. Chen, K. Dong, K. Hu, K. Gao, K. Guan, K. Huang, K. Yu, L. Wang, L. Zhang, L. Zhao, L. Wang, L. Zhang, L. Xu, L. Xia, M. Zhang, M. Zhang, M. Tang, M. Li, M. Wang, M. Li, N. Tian, P. Huang, P. Zhang, Q. Wang, Q. Chen, Q. Du, R. Ge, R. Zhang, R. Pan, R. Wang, R. J. Chen, R. L. Jin, R. Chen, S. Lu, S. Zhou, S. Chen, S. Ye, S. Wang, S. Yu, S. Zhou, S. Pan, S. S. Li, S. Zhou, S. Wu, S. Ye, T. Yun, T. Pei, T. Sun, T. Wang, W. Zeng, W. Zhao, W. Liu, W. Liang, W. Gao, W. Yu, W. Zhang, W. L. Xiao, W. An, X. Liu, X. Wang, X. Chen, X. Nie, X. Cheng, X. Liu, X. Xie, X. Liu, X. Yang, X. Li, X. Su, X. Lin, X. Q. Li, X. Jin, X. Shen, X. Chen, X. Sun, X. Wang, X. Song, X. Zhou, X. Wang, X. Shan, Y. K. Li, Y. Q. Wang, Y. X. Wei, Y. Zhang, Y. Xu, Y. Li, Y. Zhao, Y. Sun, Y. Wang, Y. Yu, Y. Zhang, Y. Shi, Y. Xiong, Y. He, Y. Piao, Y. Wang, Y. Tan, Y. Ma, Y. Liu, Y. Guo, Y. Ou, Y. Wang, Y. Gong, Y. Zou, Y. He, Y. Xiong, Y. Luo, Y. You, Y. Liu, Y. Zhou, Y. X. Zhu, Y. Xu, Y. Huang, Y. Li, Y. Zheng, Y. Zhu, Y. Ma, Y. Tang, Y. Zha, Y. Yan, Z. Z. Ren, Z. Ren, Z. Sha, Z. Fu, Z. Xu, Z. Xie, Z. Zhang, Z. Hao, Z. Ma, Z. Yan, Z. Wu, Z. Gu, Z. Zhu, Z. Liu, Z. Li, Z. Xie, Z. Song, Z. Pan, Z. Huang, Z. Xu, Z. Zhang, and Z. Zhang, “DeepSeek-r1: Incentivizing reasoning capability in LLMs via reinforcement learning,” arXiv preprint arXiv:2501.12948, no. arXiv:2501.12948, 2025. +[201] R. Akrour, D. Tateo, and J. Peters, “Continuous action reinforcement learning from a mixture of interpretable experts,” vol. 44, no. 10, pp. 6795–6806. +[202] T. C. Fung, A. L. Badescu, and X. S. Lin, “A class of mixture of experts models for general insurance: Theoretical developments,” vol. 89, pp. 111–127. +[203] S. E. Yuksel, J. N. Wilson, and P. D. Gader, “Twenty years of mixture of experts,” IEEE transactions on neural networks and learning systems, vol. 23, no. 8, pp. 1177–1193, 2012. +[204] S. Masoudnia and R. Ebrahimpour, “Mixture of experts: a literature survey,” Artificial Intelligence Review, vol. 42, pp. 275–293, 2014. +[205] W. Cai, J. Jiang, F. Wang, J. Tang, S. Kim, and J. Huang, “A survey on mixture of experts,” arXiv preprint arXiv:2407.06204, 2024. +[206] W. Gan, Z. Ning, Z. Qi, and P. S. Yu, “Mixture of experts (moe): A big data perspective,” arXiv preprint arXiv:2501.16352, 2025. +[207] J. Liu, P. Tang, W. Wang, Y. Ren, X. Hou, P.-A. Heng, M. Guo, and C. Li, “A survey on inference optimization techniques for mixture of experts models,” arXiv preprint arXiv:2412.14219, 2024. +[208] A. Vats, R. Raja, V. Jain, and A. Chadha, “The evolution of mixture of experts: A survey from basics to breakthroughs,” Preprints (August 2024), 2024. +[209] V. Dimitri, B. Regina, and M. Alfonz, “A survey on mixture of experts: Advancements, challenges, and future directions,” Authorea Preprints, 2025. +[210] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin, “Attention is all you need,” Advances in neural information processing systems, vol. 30, 2017. +[211] S. Ingrassia, S. C. Minotti, and G. Vittadini, “Local statistical modeling via a cluster-weighted approach with elliptical distributions,” Journal of classification, vol. 29, pp. 363–401, 2012. +[212] J. Geweke, M. Keane, and D. Runkle, “Alternative computational approaches to inference in the multinomial probit model,” The review of economics and statistics, pp. 609–632, 1994. +[213] M. P. Keane, “A note on identification in the multinomial probit model,” Journal of Business & Economic Statistics, vol. 10, no. 2, pp. 193–200, 1992. +[214] W. Peebles and S. Xie, “Scalable diffusion models with transformers,” in Proceedings of the IEEE/CVF international conference on computer vision, pp. 4195–4205, 2023. +[215] B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, et al., “Language models are few-shot learners,” arXiv preprint arXiv:2005.14165, vol. 1, p. 3, 2020. +[216] E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al., “Lora: Low-rank adaptation of large language models.,” ICLR, vol. 1, no. 2, p. 3, 2022. +[217] S. Lin, L. Yang, D. Fan, and J. Zhang, “Trgp: Trust region gradient projection for continual learning,” arXiv preprint arXiv:2202.02931, 2022. +[218] S. Lin, L. Yang, D. Fan, and J. Zhang, “Beyond not-forgetting: Continual learning with backward knowledge transfer,” Advances in Neural Information Processing Systems, vol. 35, pp. 16165–16177, 2022. +[219] R. Aljundi, K. Kelchtermans, and T. Tuytelaars, “Task-free continual learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 11254–11263, 2019. +[220] D.-W. Zhou, H.-L. Sun, J. Ning, H.-J. Ye, and D.-C. Zhan, “Continual learning with pre-trained models: A survey,” arXiv preprint arXiv:2401.16386, 2024. +[221] Q. Sun, Y. Liu, T.-S. Chua, and B. Schiele, “Meta-transfer learning for few-shot learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 403–412, 2019. +[222] Y. Chen, Z. Liu, H. Xu, T. Darrell, and X. Wang, “Meta-baseline: Exploring simple meta-learning for few-shot learning,” in Proceedings of the IEEE/CVF international conference on computer vision, pp. 9062– 9071, 2021. +[223] M. Ren, E. Triantafillou, S. Ravi, J. Snell, K. Swersky, J. B. Tenenbaum, H. Larochelle, and R. S. Zemel, “Meta-learning for semisupervised few-shot classification,” arXiv preprint arXiv:1803.00676, 2018. +[224] A. Santoro, S. Bartunov, M. Botvinick, D. Wierstra, and T. Lillicrap, “Meta-learning with memory-augmented neural networks,” in International conference on machine learning, pp. 1842–1850, PMLR, 2016. +[225] J. Snell, K. Swersky, and R. Zemel, “Prototypical networks for few-shot learning,” Advances in neural information processing systems, vol. 30, 2017. +[226] C. Finn, P. Abbeel, and S. Levine, “Model-agnostic meta-learning for fast adaptation of deep networks,” in International conference on machine learning, pp. 1126–1135, PMLR, 2017. +[227] A. Nichol and J. Schulman, “Reptile: a scalable metalearning algorithm,” arXiv preprint arXiv:1803.02999, vol. 2, no. 3, p. 4, 2018. +[228] M. Garnelo, J. Schwarz, D. Rosenbaum, F. Viola, D. J. Rezende, S. Eslami, and Y. W. Teh, “Neural processes,” arXiv preprint arXiv:1807.01622, 2018. +[229] N. Goring, F. Hess, M. Brenner, Z. Monfared, and D. Durstewitz, “Out- ¨ of-domain generalization in dynamical systems reconstruction,” arXiv preprint arXiv:2402.18377, 2024. +[230] R. D. Nzoyem, D. A. Barton, and T. Deakin, “Extending contextual self-modulation: Meta-learning across modalities, task dimensionalities, and data regimes,” arXiv preprint arXiv:2410.01655, 2024. +[231] A. Farahani, S. Voghoei, K. Rasheed, and H. R. Arabnia, “A brief review of domain adaptation,” Advances in data science and information engineering: proceedings from ICDATA 2020 and IKE 2020, pp. 877– 894, 2021. +[232] O. Vinyals, C. Blundell, T. Lillicrap, D. Wierstra, et al., “Matching networks for one shot learning,” Advances in neural information processing systems, vol. 29, 2016. +[233] K. Rakelly, A. Zhou, C. Finn, S. Levine, and D. Quillen, “Efficient offpolicy meta-reinforcement learning via probabilistic context variables,” in International conference on machine learning, pp. 5331–5340, PMLR, 2019. +[234] T. Haarnoja, A. Zhou, P. Abbeel, and S. Levine, “Soft actor-critic: Offpolicy maximum entropy deep reinforcement learning with a stochastic actor,” in International conference on machine learning, pp. 1861– 1870, Pmlr, 2018. +[235] R. Caruana, “Multitask learning,” Machine learning, vol. 28, pp. 41– 75, 1997. +[236] K.-H. Thung and C.-Y. Wee, “A brief review on multi-task learning,” Multimedia Tools and Applications, vol. 77, no. 22, pp. 29705–29725, 2018. +[237] Y. Zhang and Q. Yang, “An overview of multi-task learning,” National Science Review, vol. 5, no. 1, pp. 30–43, 2018. +[238] N. Vithayathil Varghese and Q. H. Mahmoud, “A survey of multi-task deep reinforcement learning,” Electronics, vol. 9, no. 9, p. 1363, 2020. +[239] C. D’Eramo, D. Tateo, A. Bonarini, M. Restelli, and J. Peters, “Sharing knowledge in multi-task deep reinforcement learning,” arXiv preprint arXiv:2401.09561, 2024. +[240] L. Sun, H. Zhang, W. Xu, and M. Tomizuka, “Paco: Parametercompositional multi-task reinforcement learning,” Advances in Neural Information Processing Systems, vol. 35, pp. 21495–21507, 2022. +[241] C. Devin, A. Gupta, T. Darrell, P. Abbeel, and S. Levine, “Learning modular neural network policies for multi-task and multi-robot transfer,” in 2017 IEEE international conference on robotics and automation (ICRA), pp. 2169–2176, IEEE, 2017. +[242] R. Yang, H. Xu, Y. Wu, and X. Wang, “Multi-task reinforcement learning with soft modularization,” Advances in Neural Information Processing Systems, vol. 33, pp. 4767–4777, 2020. +[243] Q. Zhang, X. Liao, Q. Liu, J. Xu, and B. Zheng, “Leaving no one behind: A multi-scenario multi-task meta learning approach for advertiser modeling,” in Proceedings of the Fifteenth ACM International Conference on Web Search and Data Mining, pp. 1368–1376, 2022. +[244] A. Graves and A. Graves, “Long short-term memory,” Supervised sequence labelling with recurrent neural networks, pp. 37–45, 2012. +[245] R. Cui, D. Cao, Q. Liu, Z. Zhu, and Y. Jia, “Vp and vs prediction from digital rock images using a combination of u-net and convolutional neural networks,” Geophysics, vol. 86, no. 1, pp. MR27–MR37, 2021. +[246] S. Karimpouli, S. Khoshlesan, E. H. Saenger, and H. H. Koochi, “Application of alternative digital rock physics methods in a real case study: a challenge between clean and cemented samples,” Geophysical Prospecting, vol. 66, no. 4, pp. 767–783, 2018. +[247] J. Kober, J. A. Bagnell, and J. Peters, “Reinforcement learning in robotics: A survey,” The International Journal of Robotics Research, vol. 32, no. 11, pp. 1238–1274, 2013. +[248] I. Szita, “Reinforcement learning in games,” in Reinforcement Learning: State-of-the-art, pp. 539–577, Springer, 2012. +[249] B. R. Kiran, I. Sobh, V. Talpaert, P. Mannion, A. A. Al Sallab, S. Yogamani, and P. Perez, “Deep reinforcement learning for autonomous ´ driving: A survey,” IEEE transactions on intelligent transportation systems, vol. 23, no. 6, pp. 4909–4926, 2021. +[250] C. Yu, J. Liu, S. Nemati, and G. Yin, “Reinforcement learning in healthcare: A survey,” ACM Computing Surveys (CSUR), vol. 55, no. 1, pp. 1–36, 2021. +[251] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, “Proximal policy optimization algorithms,” arXiv preprint arXiv:1707.06347, 2017. +[252] V. Feinberg, A. Wan, I. Stoica, M. I. Jordan, J. E. Gonzalez, and S. Levine, “Model-based value estimation for efficient model-free reinforcement learning,” arXiv preprint arXiv:1803.00101, 2018. +[253] S. Levine, A. Kumar, G. Tucker, and J. Fu, “Offline reinforcement learning: Tutorial, review, and perspectives on open problems,” arXiv preprint arXiv:2005.01643, 2020. +[254] O. Celik, A. Taranovic, and G. Neumann, “Acquiring diverse skills using curriculum reinforcement learning with mixture of experts,” rYi, print arXiv:2403.06966 +[255] T. Kurutach, I. Clavera, Y. Duan, A. Tamar, and P. Abbeel, “Model-ensemble trust-region policy optimization,” arXiv preprint arXiv:1802.10592, 2018. +[256] K. Lee, M. Laskin, A. Srinivas, and P. Abbeel, “Sunrise: A simple unified framework for ensemble learning in deep reinforcement learning,” in International Conference on Machine Learning, pp. 6131–6141, PMLR, 2021. +[257] Z. Yang, K. Ren, X. Luo, M. Liu, W. Liu, J. Bian, W. Zhang, and D. Li, “Towards applicable reinforcement learning: Improving the generalization and sample efficiency with policy ensemble,” arXiv preprint arXiv:2205.09284, 2022. +[258] X. Lou, J. Guo, J. Zhang, J. Wang, K. Huang, and Y. Du, “Pecan: Leveraging policy ensemble for context-aware zero-shot human-ai coordination,” arXiv preprint arXiv:2301.06387, 2023. +[259] H. Mohammadi, E. Nazerfard, and T. Firoozi, “Reinforcement learningbased mixture of vision transformers for video violence recognition,” arXiv preprint arXiv:2310.03108, 2023. +[260] Z. Wei, D. Chen, Y. Zhang, D. Wen, X. Nie, and L. Xie, “Deep reinforcement learning portfolio model based on mixture of experts,” vol. 55, no. 5, p. 347. +[261] H. B. McMahan, E. Moore, D. Ramage, and B. A. y Arcas, “Federated learning of deep networks using model averaging,” arXiv preprint arXiv:1602.05629, vol. 2, no. 2, pp. 15–18, 2016. +[262] Z. Liu, L. Yang, Z. Fan, H. Peng, and P. S. Yu, “Federated social recommendation with graph neural network,” ACM Transactions on Intelligent Systems and Technology (TIST), vol. 13, no. 4, pp. 1–24, 2022. +[263] C. Wu, F. Wu, Y. Cao, Y. Huang, and X. Xie, “Fedgnn: Federated graph neural network for privacy-preserving recommendation,” arXiv preprint arXiv:2102.04925, 2021. +[264] A. Flanagan, W. Oyomno, A. Grigorievskiy, K. E. Tan, S. A. Khan, and M. Ammad-Ud-Din, “Federated multi-view matrix factorization for personalized recommendations,” in Machine Learning and Knowledge Discovery in Databases: European Conference, ECML PKDD 2020, Ghent, Belgium, September 14–18, 2020, Proceedings, Part II, (Berlin, Heidelberg), p. 324–347, Springer-Verlag, 2020. +[265] B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, “Communication-efficient learning of deep networks from decentralized data,” in Artificial intelligence and statistics, pp. 1273–1282, PMLR, 2017. +[266] N. Guha, A. Talwalkar, and V. Smith, “One-shot federated learning,” arXiv preprint arXiv:1902.11175, 2019. +[267] D. Eigen, M. Ranzato, and I. Sutskever, “Learning factored representations in a deep mixture of experts,” arXiv preprint arXiv:1312.4314, 2013. +[268] M. Aitkin and N. Longford, “Statistical modelling issues in school effectiveness studies,” Journal of the Royal Statistical Society: Series A (General), vol. 149, no. 1, pp. 1–26, 1986. +[269] H. Goldstein, “Multilevel mixed linear model analysis using iterative generalized least squares,” Biometrika, vol. 73, no. 1, pp. 43–56, 1986. +[270] H. Goldstein, Multilevel statistical models. John Wiley & Sons, 2011. +[271] M. McCloskey and N. J. Cohen, “Catastrophic interference in connectionist networks: The sequential learning problem,” in Psychology of learning and motivation, vol. 24, pp. 109–165, Elsevier, 1989. +[272] J. Kirkpatrick, R. Pascanu, N. Rabinowitz, J. Veness, G. Desjardins, A. A. Rusu, K. Milan, J. Quan, T. Ramalho, A. Grabska-Barwinska, et al., “Overcoming catastrophic forgetting in neural networks,” Proceedings of the national academy of sciences, vol. 114, no. 13, pp. 3521–3526, 2017. +[273] B. Lakshminarayanan, A. Pritzel, and C. Blundell, “Simple and scalable predictive uncertainty estimation using deep ensembles,” Advances in neural information processing systems, vol. 30, 2017. +[274] X. Zhou, V. Koltun, and P. Krahenb ¨ uhl, “Simple multi-dataset detec- ¨ tion,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 7571–7580, 2022. +[275] X. Wang, Z. Cai, D. Gao, and N. Vasconcelos, “Towards universal object detection by domain attention,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 7289–7298, 2019. +[276] M. Ding, B. Xiao, N. Codella, P. Luo, J. Wang, and L. Yuan, “Davit: Dual attention vision transformers,” in European conference on computer vision, pp. 74–92, Springer, 2022. +[277] A. Kendall and Y. Gal, “What uncertainties do we need in bayesian deep learning for computer vision?,” Advances in neural information processing systems, vol. 30, 2017. +[278] M. Abbasi and C. Gagne, “Robustness to adversarial examples through ´ an ensemble of specialists,” arXiv preprint arXiv:1702.06856, 2017. +[279] S. Kariyappa and M. Qureshi, “Improving adversarial robustness of ensembles with diversity training. 2019,” Available: arXiv, 1901. +[280] T. Pang, K. Xu, C. Du, N. Chen, and J. Zhu, “Improving adversarial robustness via promoting ensemble diversity,” in International Conference on Machine Learning, pp. 4970–4979, PMLR, 2019. +[281] R. Rombach, A. Blattmann, D. Lorenz, P. Esser, and B. Ommer, “High-resolution image synthesis with latent diffusion models,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10684–10695, 2022. +[282] C. Ledig, L. Theis, F. Huszar, J. Caballero, A. Cunningham, A. Acosta, ´ A. Aitken, A. Tejani, J. Totz, Z. Wang, et al., “Photo-realistic single image super-resolution using a generative adversarial network,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4681–4690, 2017. +[283] L. Wei, S. Zhang, W. Gao, and Q. Tian, “Person transfer gan to bridge domain gap for person re-identification,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 79–88, 2018. +[284] A. Radford, L. Metz, and S. Chintala, “Unsupervised representation learning with deep convolutional generative adversarial networks,” arXiv preprint arXiv:1511.06434, 2015. +[285] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio, “Generative adversarial networks,” Communications of the ACM, vol. 63, no. 11, pp. 139–144, 2020. +[286] S. Gu, D. Chen, J. Bao, F. Wen, B. Zhang, D. Chen, L. Yuan, and B. Guo, “Vector quantized diffusion model for text-to-image synthesis,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10696–10706, 2022. +[287] P. Esser, R. Rombach, A. Blattmann, and B. Ommer, “Imagebart: Bidirectional context with multinomial diffusion for autoregressive image synthesis,” Advances in neural information processing systems, vol. 34, pp. 3518–3532, 2021. +[288] S. Bond-Taylor, P. Hessey, H. Sasaki, T. P. Breckon, and C. G. Willcocks, “Unleashing transformers: Parallel token prediction with discrete absorbing diffusion for fast high-resolution image generation from vector-quantized codes,” in European Conference on Computer Vision, pp. 170–188, Springer, 2022. +[289] C. Manning and H. Schutze, Foundations of statistical natural language processing. MIT press, 1999. +[290] D. Jurafsky, Speech & language processing. Pearson Education India, 2000. +[291] J. Hirschberg and C. D. Manning, “Advances in natural language processing,” Science, vol. 349, no. 6245, pp. 261–266, 2015. +[292] T. Young, D. Hazarika, S. Poria, and E. Cambria, “Recent trends in deep learning based natural language processing,” ieee Computational intelligenCe magazine, vol. 13, no. 3, pp. 55–75, 2018. +[293] Y. Liu, M. Ott, N. Goyal, J. Du, M. Joshi, D. Chen, O. Levy, M. Lewis, L. Zettlemoyer, and V. Stoyanov, “Roberta: A robustly optimized bert pretraining approach,” arXiv preprint arXiv:1907.11692, 2019. +[294] D. Adiwardana, M.-T. Luong, D. R. So, J. Hall, N. Fiedel, R. Thoppilan, Z. Yang, A. Kulshreshtha, G. Nemade, Y. Lu, et al., “Towards a human-like open-domain chatbot,” arXiv preprint arXiv:2001.09977, 2020. +[295] L. Zhang, S. Wang, and B. Liu, “Deep learning for sentiment analysis: A survey,” Wiley interdisciplinary reviews: data mining and knowledge discovery, vol. 8, no. 4, p. e1253, 2018. +[296] G. Lample, M. Ballesteros, S. Subramanian, K. Kawakami, and C. Dyer, “Neural architectures for named entity recognition,” arXiv preprint arXiv:1603.01360, 2016. +[297] D. Yu and L. Deng, Automatic speech recognition, vol. 1. Springer, 2016. +[298] D. Bahdanau, K. Cho, and Y. Bengio, “Neural machine translation by jointly learning to align and translate,” arXiv preprint arXiv:1409.0473, 2014. +[299] T.-H. Wen, M. Gasic, N. Mrksic, P.-H. Su, D. Vandyke, and S. Young, “Semantically conditioned lstm-based natural language generation for spoken dialogue systems,” arXiv preprint arXiv:1508.01745, 2015. +[300] E. Reiter and R. Dale, “Building applied natural language generation systems,” Natural Language Engineering, vol. 3, no. 1, pp. 57–87, 1997. +[301] A. M. Rush, S. Chopra, and J. Weston, “A neural attention model for abstractive sentence summarization,” arXiv preprint arXiv:1509.00685, 2015. +[302] K. Papineni, S. Roukos, T. Ward, and W.-J. Zhu, “Bleu: a method for automatic evaluation of machine translation,” in Proceedings of the 40th annual meeting of the Association for Computational Linguistics, pp. 311–318, 2002. +[303] P. F. Brown, J. Cocke, S. A. Della Pietra, V. J. Della Pietra, F. Jelinek, J. Lafferty, R. L. Mercer, and P. S. Roossin, “A statistical approach to machine translation,” Computational linguistics, vol. 16, no. 2, pp. 79– 85, 1990. +[304] Y. Wu, M. Schuster, Z. Chen, Q. V. Le, M. Norouzi, W. Macherey, M. Krikun, Y. Cao, Q. Gao, K. Macherey, et al., “Google’s neural machine translation system: Bridging the gap between human and machine translation,” arXiv preprint arXiv:1609.08144, 2016. \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/MOE/auto/MOE.md.backup b/backend/ingestion_pipeline/output/MOE/auto/MOE.md.backup new file mode 100644 index 0000000000000000000000000000000000000000..6b70f5b9f8dd6ce82d1ebc5993adc2629f1cff4e --- /dev/null +++ b/backend/ingestion_pipeline/output/MOE/auto/MOE.md.backup @@ -0,0 +1,702 @@ +# A Comprehensive Survey of Mixture-of-Experts: Algorithms, Theory, and Applications + +Siyuan Mu and Sen Lin + +Abstract—Artificial intelligence (AI) has achieved astonishing successes in many domains, especially with the recent breakthroughs in the development of foundational large models. These large models, leveraging their extensive training data, provide versatile solutions for a wide range of downstream tasks. However, as modern datasets become increasingly diverse and complex, the development of large AI models faces two major challenges: (1) the enormous consumption of computational resources and deployment difficulties, and (2) the difficulty in fitting heterogeneous and complex data, which limits the usability of the models. Mixture of Experts (MoE) models has recently attracted much attention in addressing these challenges, by dynamically selecting and activating the most relevant submodels to process input data. It has been shown that MoEs can significantly improve model performance and efficiency with fewer resources, particularly excelling in handling large-scale, multimodal data. Given the tremendous potential MoE has demonstrated across various domains, it is urgent to provide a comprehensive summary of recent advancements of MoEs in many important fields. Existing surveys on MoE have their limitations, e.g., being outdated or lacking discussion on certain key areas, and we aim to address these gaps. In this paper, we first introduce the basic design of MoE, including gating functions, expert networks, routing mechanisms, training strategies, and system design. We then explore the algorithm design of MoE in important machine learning paradigms such as continual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning. Additionally, we summarize theoretical studies aimed at understanding MoE and review its applications in computer vision and natural language processing. Finally, we discuss promising future research directions. + +Index Terms—Mixture-of-Experts, Continual Learning, MetaLearning, Multi-Task Learning, Reinforcement Learning, Federated Learning, Computer Vision, Natural Language Processing + +# I. INTRODUCTION + +Artificial Intelligence (AI) has emerged as a transformative force in modern technologies, demonstrating remarkable successes across multiple domains from computer vision [1], [2], [3] and speech recognition [4], [5] to healthcare [6] and autonomous systems [7]. A key driver behind this is the development of foundation models, such as BERT [8], CLIP [9], GPT-4 [10] which are large-scale neural networks pretrained on massive datasets and provide versatile solutions for a wide range of downstream tasks. Building upon the pretrained knowledge, these models can be further fine-tuned with minimal additional training to adapt to specific applications, making them indispensable tools for handling increasingly complex and diverse tasks in many real-world scenarios. + +However, as AI applications expand, modern datasets are becoming more diverse and complex. They often contain multimodal data (e.g., text, images, and audio) and exhibit intricate structures (e.g., graphs or hierarchical relationships). This diversity and complexity introduce two significant challenges: (1) the computational cost of training and deploying large models grows exponentially, making it unsustainable for many applications [11], and (2) integrating conflicting or heterogeneous knowledge within a single model becomes increasingly difficult, often leading to unstable training dynamics and suboptimal performance [12]. These challenges underscore the need for more efficient and scalable architectures capable of meeting the growing demands of modern AI tasks. + +One promising approach to addressing these challenges is the Mixture of Experts (MoE) architecture, which has attracted much attention recently. Originally proposed in [13], [14], MoE adopts a “divide and conquer” strategy that fundamentally differs from traditional dense models. While conventional models activate all parameters for every input, MoE models dynamically select and activate only the most relevant subset of parameters based on the characteristics of the input data. This approach not only enhances the specialization of individual experts but also mitigates the difficulties associated with training on diverse and conflicting tasks. Furthermore, the selective activation mechanism allows MoE models to significantly expand their capacity and handle diverse knowledge domains without proportionally increasing computational costs, thereby achieving an optimal balance between performance and efficiency [15], [16]. By leveraging the strengths of specialized “experts” for different tasks or data types, MoE provides a scalable and flexible framework for tackling the challenges posed by complex, multifaceted datasets. + +Notably, the MoE model architecture has demonstrated its unique advantages and tremendous potentials especially in large language models (LLMs) [184], [185], [186], [21], [15], [20], [52], [187], [188], [189], [190], [191], [192], [193], [194], [195]. For instance, the Switch Transformer [15] achieves 7 times faster in pre-training speed compared to the T5-Base [196] model, and shows improved performance across all 101 languages in a multilingual setting. It has also successfully scaled the number of parameters to the trillion level, achieving a pre-training speed 4 times faster than the T5- XXL [196] model at this scale. GLaM [20] has also expanded its parameters to the trillion level, enhancing the model’s ability to utilize contextual information. Deepspeed-moe [52] leverages MoE and model compression techniques to reduce the size of MoE models by 3.7 times. ST-MoE [187] has further investigated the stability and transferability of MoE models, proposing various methods such as Router z-loss to ensure training stability. Ultimately, on the SuperGLUE [197] benchmark, the ST-MoE-32B model surpassed the previous state-of-the-art models. OpenMoE [191] has experimented with decoder-only MoE and provided an in-depth discussion on the routing mechanisms of MoE, making significant contributions to the open-source community’s understanding of MoE architectures. Mixtral ${ \bf 8 } { \bf \times } 7 { \bf B }$ [22], despite processing each token with only 13 billion active parameters, is able to access a total of 47 billion parameters thanks to its distinctive architecture. This allows Mixtral ${ } ^ { 8 \mathrm { x } 7 \mathrm { B } }$ to achieve higher parameter efficiency and effectively control computational costs. The impressive performance of the DeepSeek series [198], [199], [53], [200] has also garnered significant attention. These models leverage MoE architectures to achieve state-ofthe-art results on a variety of benchmarks while maintaining manageable computational requirements. + +![](images/7a89037bb830acff4d6906979097eac9d166333a3a32003326f58f543bd26e4f.jpg) +Fig. 1. The roadmap of Mixture of Experts (MoE) covered in this paper. + +Beyond efficiency, MoE models also offer opportunities to improve model interpretability [101], [201], [35], [202]. By learning intrinsic allocation mechanisms, researchers can gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability not only enhances our understanding of the model behaviors but also opens new avenues for designing more robust and transparent AI systems. + +Given the rapidly growing research interests in MoE and the huge potentials of MoE in various application domains, there is an urgent need of a comprehensive survey for summarizing and disseminating the recent advances of MoE, in order to elicit escalating attentions and inspire further research ideas in this field. Nevertheless, the early surveys of MoE [203], [204] were published ten years ago and have not incorporated the new development in the area. There is only one new survey [205] that emerged last year, which however 1) emphasized more on the basic designs of MoE and 2) did not provide a broad discussion on the use of MoEs in important machine learning paradigms and application fields such as computer vision. The theory development in MoE has also not been covered. + +And although some other new concurrent surveys have been uploaded online very recently during the preparation of our paper, these surveys still either focus on a special aspect of MoE, such as applications in big data [206], inference optimization [207] and LLMs [208], or cover multiple topics very briefly [209]. To the best of our knowledge, our paper is the first survey that comprehensively summarizes the latest advancement in MoE, which includes four key components: basic design strategies of MoE, MoE-based algorithm designs in mainstream machine learning directions, theory towards understanding MoE in various scenarios, and an in-depth review of applications of MoE in both computer vision and natural language processing. + +This paper will be organized as follows (as illustrated in + +Figure 1). In Section II, we will provide a comprehensive introduction to the basic designs of MoE, ranging from basic architecture design to training strategies to system optimization strategies. In Section III, we will introduce the recent MoEbased algorithm design in four important machine learning paradigms, including continual learning, meta-learning, multitask learning, reinforcement learning, and federated learning, which seeks to provide readers a general idea about how MoE can be leveraged to improve the algorithm design in these domains. In Section IV, we will summarize the efforts towards building the theoretical understanding of MoE, which covers a variety of aspects in MoE, such as different gating functions, different expert models, and different learning scenarios. In Section V, we will present the recent applications of MoE in two major domains, i.e., computer vision and natural language processing, where we look into multiple important subproblems in each domain. Future research directions will be discussed in Section VI, followed by the conclusion in Section VII. + +# II. BASIC DESIGNS OF MOE + +In this section, we will focus on the basic framework and design considerations in MoE to help readers understand the general workflow of MoE, as shown in Figure 2. More specifically, we will first introduce the key components in the design of MoE, including the gating function, the expert networks, and the routing mechanism. The first two components essentially form a basic framework of MoE, whereas the last component characterizes how the gating function handles the input data. Next, we will introduce the strategies, i.e., loss function and pipeline design, so as to guarantee proper training of MoEs. In the end, system designs will be discussed to optimize the system efficiency of MoE from multiple perspectives. + +![](images/25ac1650d6400589cbff90e22301afd16ec3dbfabbff7cc90491ce1be966f81d.jpg) +Fig. 2. The simple schematic of a standard MoE architecture. + +# A. Gating Function + +The gating function serves as the mathematical implementation of a router, determining how input data is allocated to designated experts. Clearly, the effectiveness of MoE models is intrinsically tied to this allocation strategy, making the design of the gating function a critical consideration. Below, we provide a detailed discussion on the principles and considerations for designing an effective gating function. + +When selecting a gating function, the following criteria should be prioritized: (1) The function must accurately discern the characteristics of both input data and experts. This enables the assignment of similar data to the same expert or group of experts, ensuring that each expert receives a sufficiently large and coherent training set. Such specialization allows experts to develop expertise in specific knowledge domains. (2) The input data should be distributed as evenly as possible among the predefined experts. An uneven distribution can lead to model collapse, which reduces the efficiency of the MoE framework by underutilizing experts and impairs performance due to insufficient separation of conflicting knowledge in the training data. + +1) Linear Gating. Based on these considerations, most existing MoE models [15], [17], [18], [19], [20] use a linear function with softmax as their gating functions due to its simplicity and effectiveness, which is also referred as softmax gating: + +$$ +G ( x ) _ { i } = \mathrm { s o f t m a x } ( \mathrm { T o p K } ( g ( x ) + \mathcal { R } _ { \mathrm { n o i s e } } , k ) ) _ { i } , +$$ + +$$ +\mathrm { T o p K } ( v ) = { \left\{ \begin{array} { l l } { v _ { i } } & { { \mathrm { i f ~ } } v _ { i } { \mathrm { ~ i s ~ o n e ~ o f ~ t h e ~ t o p ~ } } k { \mathrm { ~ e l e m e n } } } \\ { - \infty } & { { \mathrm { o t h e r w i s e . } } } \end{array} \right. } +$$ + +Here $G$ represents the gating function, the TopK function retains the $k$ highest scoring inputs out of $N$ experts and sets the rest to negative infinity, $g$ represents the gating value calculated with a linear function prior to the softmax operation, $x$ denotes the input, $\mathcal { R } _ { \mathrm { n o i s e } }$ represents the noise to encourage expert exploration, $w$ denotes the model parameters, and $k$ is a hyperparameter that can either be learned or manually set. + +The order of the TopK and softmax operations in the above expression is flexible and can be designed based on specific requirements. One approach is to perform the TopK operation before softmax [16], [22], [20]. This method quickly filters out the most relevant experts, eliminating the need to compute softmax for all experts and thereby reducing computational overhead. However, the scores obtained after TopK may not conform to a probability distribution, necessitating an additional normalization step. Moreover, the TopK operation is inherently “hard,” potentially excluding experts with low scores that could still contribute meaningfully. Alternatively, the TopK function can be applied after softmax [21], [17], [15], [18]. In this case, the softmax function first normalizes the scores into a probability distribution, providing statistically meaningful activation weights for each expert. This approach offers more clear guidance on determining the value of $k$ in the TopK operation. However, it requires computing softmax for all experts, resulting in higher computational costs. + +When the MoE is incorporated into existing models, usually a Transformer [210], we typically replace the Feed-Forward + +Network (FFN) layer within a transformer block by using an MoE layer. There are several reasons [16] behind this design choice: First, the computational cost of the FFN layer typically constitutes a significant portion of the total computational cost in a Transformer, especially in deep models. By replacing the FFN layer with an MoE layer, the computational cost can be significantly reduced while maintaining the model’s expressive power. Additionally, replacing the Self-Attention layer would disrupt the core mechanism of the Transformer, which is not aligned with our objectives. + +2) Non-linear Gating. The gating functions can also be non-linear. Specifically, a gating function design based on cosine distance is proposed in GMoE [23] for domain generalization tasks, which is shown as follows: + +$$ +G ( x ) = \mathrm { T o p K } \left( \mathrm { s o f t m a x } \left( \frac { E ^ { T } W _ { l i n e a r } x } { \tau \| W _ { l i n e a r } x \| \| E \| } \right) \right) +$$ + +where $\boldsymbol { x } \in \mathbb { R } ^ { d _ { e } }$ is the input of MoE module, $W _ { l i n e a r } \in \mathbb { R } ^ { d _ { e } }$ is a learnable linear transformation for $x$ , responsible for projecting $x$ into a hypersphere space. The number of expert networks is $N$ , and $\boldsymbol { E } \in \mathbb { R } ^ { d _ { e } \times N }$ represents the features of the $N$ expert networks. In the gating function, the input $x$ is projected into a new space and compared with the expert embeddings $E$ using cosine similarity to determine which experts each input $x$ should be assigned to. In this way, the expert embeddings $E$ can capture the feature representations of different experts and are gradually optimized during training to better adapt to the task requirements. Additinally, the temperature parameter $\tau$ controls the sharpness of the gating distribution. A smaller $\tau$ makes the distribution sharper, favoring the selection of a few experts, while a larger $\tau$ makes the distribution smoother, allowing more experts to participate. + +Comprehensive theoretical and experimental evidence has been provided in [23] to demonstrate the superiority of using cosine routers over linear routers in domain generalization tasks. Specifically, the cosine router excels at handling crossdomain data, capturing visual attributes, and enhancing the model’s generalization capability and efficiency. There are also more studies that have employed cosine routers for better performance [24], [25], which encourages us to explore more on the design of gating functions beyond the cosine routers. + +In addition to the cosine gating function, there are many other designs of nonlinear functions, such as the gating function based on exponential Family of Distributions [26] as shown in Equation (4), + +$$ +G _ { j } ( x , \nu ) = \frac { \beta _ { j } D ( x | \nu _ { j } ) } { \sum _ { i } \beta _ { i } D ( x | \nu _ { i } ) } , +$$ + +Here $\beta _ { j }$ is the prior probability of the $j$ th expert network, satisfying $\begin{array} { r } { \sum _ { j } \beta _ { j } = 1 } \end{array}$ and $\beta _ { j } \geq 0$ . $D ( x | \nu _ { j } )$ is the conditional probability density function of input $x$ under the $j$ th expert network, belonging to the exponential family distribution. This approach analytically updates the gating function during iterations, and overcomes the nonlinear relationships introduced by softmax and the additional iterative optimization steps that follow (such as IRLS, Iteratively Reweighted Least Squares). The most common example is the Gaussian distribution. + +There is also a special gating function in Soft MoE [27] that no longer employs a discrete token allocation mechanism. Specifically, Soft MoE calculates the weights between each token and each expert, then uses these weights for weighted averaging to generate input slots. Consequently, the slots processed by each expert are a weighted combination of all tokens, rather than individual tokens. This approach avoids potential token dropping issues due to load imbalances and optimization difficulties caused by discrete operations such as TopK. + +Gating functions based on the Student-t distribution [211] are particularly suitable for data groups exhibiting long-tail phenomena or outliers, because they offer more robust fitting capabilities. [28] utilizes a multinomial probit model [212], [213] to determine the expert model that each observation belongs to. + +![](images/13b002358a1e3cdbbff3c9e548b2af7213ef2e52392ed0d3a456d659ffe88b1f.jpg) +Fig. 3. Various expert networks for the MoE layer schematic. + +# B. Expert Networks + +The expert network is a core component of the MoE architecture. By dynamically selecting the most suitable expert network through the gating function, MoE efficiently allocates input data, enabling different experts to specialize in distinct knowledge domains. This design enhances the model’s overall performance, generalization ability, and computational efficiency, particularly when handling complex and diverse tasks. + +In principle, each expert network in MoE can function as an independent network model, similar to a single network model (e.g., [29], [30]). However, in practice, to ensure efficiency and scalability, expert networks are often integrated into a single network model, with specific layers replaced by MoE layers [16], [15], [21]. Notably, MoE layers can be introduced at specific levels of existing neural network models without altering the overall structure, demonstrating high flexibility and broad applicability. Currently, the most widely used MoE layers include the following types (Figure 3): + +1) Replace the FFN layer in Transformer with an MoE layer. The MoE layer can be characterized as follows: + +$$ +\mathsf { M o E } ( x ) = \sum _ { i \in I D } w _ { i } M _ { i } ( x ) +$$ + +where $I D$ represents the set of indices of experts selected by the gating function, $w _ { i }$ is the weight assigned to the ith expert, and $M _ { i } ( x )$ defines a two-layer FFN expert model. One key reason for introducing the MoE mechanism into the FFN layer is due to the higher sparsity and domain specificity of the FFN layer in Transformer. It has been shown [17] that the FFN layer exhibits higher sparsity compared to self-attention layers, mainly because not all units in the fully-connected FFN layer will be activated simultaneously in order to prevent overfitting. This will make the FNN layer more suitable to incorporate sparse activation mechanisms. Furthermore, [17] reveals the Emergent Modularity phenomenon in pre-trained Transformer models, indicating a significant association between neuron activations and specific tasks. This further motivates the idea of leveraging the MoE structure to reflect the modular nature of pre-trained Transformers. Therefore, due to its inherent sparsity and task relevance, the FFN layer in Transformer becomes an ideal choice for introducing the MoE mechanism. + +2) Apply MoE to the attention module in Transformer. This will lead to a special type of MoE, namely mixture-ofattention (MoA) [32]. Specifically, MoA consists of a set of attention heads with different parameters, where each attention head can be regarded as an expert $f _ { 1 } , . . . , f _ { N }$ . For a given input, the gating function selects the TopK attention heads based on the importance scores of the input, and the final output is generated as a weighted sum of only these selected heads’ outputs. This design allows the model to focus on the most relevant attention heads, enhancing performance without significantly increasing computational costs, and is highly scalable to support larger parameter sizes. + +Compared to the standard multi-head attention mechanism [210], the key advantage of MoA lies in its use of a gating network to dynamically select the most relevant attention heads for each input token and compute a weighted sum of their outputs. This approach eliminates the requirement for all attention heads to process every input, enabling MoA to achieve superior model performance with reduced computational overhead. Consequently, MoA exhibits enhanced scalability, and particularly this model can attain higher BLEU scores [302] than Transformer with 213 million parameters while requiring significantly less computation. + +Inspired by MoA, numerous studies have been proposed to improve upon this design. SwitchHead [31] attempts to independently introduce the MoE mechanism for each head’s key, query, value, and output projection, and employs a noncompetitive selection activation function. This will therefore reduce the number of attention matrices that need to be computed, significantly lowering computational and memory requirements. MoH [33] enhances the standard MoE method by sharing heads and a two-stage routing strategy, and can further fine-tune pre-trained multi-head attention models into MoH models, enhancing their applicability. In addition, this work integrates the proposed MoH framework with various model frameworks including the encoder-decoder architecture, such as ViT [1], DiT [214], and decoder-only LLMs [215], which are applied in various tasks and demonstrate great potentials of MoH. + +3) Apply MoE to CNN layers. Integrating CNN into the MoE architecture can fully leverage CNN’s strengths in local feature extraction, achieving more refined task allocation and improved computational efficiency. As a result, many studies have attempted to effectively combine MoE with CNN. For example, in [140], a simple pMoE structure is adopted, where the MoE layer consists of a gating kernel (a trainable weight network) and multiple expert networks composed of two-layer CNN networks. + +Image data possesses high local correlation and spatial hierarchical structure, which aligns well with the design philosophy of CNNs. As a result, Convolutional Mixture of Experts (CMoE) is often applied to computer vision tasks. For instance, [38] utilizes the MoE framework to decompose fine-grained classification problems into subspace problems, allowing each expert CNN network to focus on different subproblems and improving classification performance. Building on [38], [37] proposes an attention-based MoE framework to enhance the model’s generalization ability and classification performance under limited data conditions. [39] addresses the issue of parallel training of independent expert networks in MoE models, alleviating the need for multiple GPUs in large-scale supervised visual tasks. Meanwhile, [35] focuses on exploring how to enhance the interpretability of CNNs while maintaining model performance in computer vision tasks. Additionally, a small number of works have explored the potential of CMoE in other domains, such as [36]. + +# C. Routing Strategy + +A critical consideration in the design of MoE is determining the level at which experts should specialize in knowledge. For instance, in computer vision, certain tasks may emphasize more on the global features, while others demand precise local perception. Consequently, selecting an appropriate routing level—defined by the frequency of routing decisions—is essential to ensure the MoE model effectively meets the requirements of specific tasks. The following discussion extends the classification strategy proposed in Uni-Perceiver-MoE [40] and outlines several common routing strategies: token-level routing, modality-level routing, task-level routing, and otherlevel routing. + +1) Token-Level Routing Strategy determines routing decisions based on token representations, making it the most classic routing approach. Tokens also come in various types, among which the most common ones we encounter are text tokens and image tokens (patch tokens). + +In terms of text tokens, to mitigate underfitting and preserve representation diversity, MaskMoE [41] introduces a novel token-level routing strategy. This approach generates a mask vector for each token in the vocabulary and adjusts the number of visible experts for tokens of varying frequencies before training. For infrequent tokens, MaskMoE restricts routing to a single expert via routing masks, ensuring consistent training for these tokens. For frequent tokens, it permits multiple visible experts to capture contextual nuances. Additionally, [42] proposes a token-level recurring routing strategy that employs recurrent neural networks to dynamically adjust expert selection based on input sequence context. This strategy improves the model’s accuracy in processing complex linguistic structures, optimizes computational resource utilization, and effectively addresses long-range dependencies. Consequently, it achieves enhanced efficiency and performance across diverse natural language processing tasks. + +The usage of patch tokens, as discussed in [140], is often built upon the ViT architecture. This strategy divides an image into multiple patches and dynamically routes each patch to the most suitable expert for processing. By adaptively selecting experts based on the local features of the image, it optimizes computational resource utilization and enhances the model’s performance in handling complex visual tasks. Additionally, V-MoE [17] introduces a Batch Priority Routing (BPR) strategy, which 1) calculates the importance of each image patch, 2) sorts them in descending order of importance, and 3) assigns experts to patches accordingly. Experimental results demonstrate that BPR can maintain performance comparable to a dense model while processing only $1 5 \% - 3 0 \%$ of the image patches, showcasing significant advantages by standard Routing. + +Apart from these two common types, there are also audio tokens [36], time series token [45], etc., all of which can be freely combined with MoE to help the model achieve better learning performance. + +2) Modality-Level Routing Strategy routes tokens based on their modality, emulating the practice of employing specialized encoders for distinct modalities to minimize interference between them. The Uni-MoE model [43] is designed to effectively process and understand multi-modal data through a structured approach. First, it introduces connectors trained using cross-modal data to achieve data alignment, mapping diverse modalities into a unified language representation space. Simultaneously, it trains modality-specific expert systems on cross-modal instruction datasets, so as to enhance each expert’s specialized capabilities and activate their task-specific preferences. Subsequently, the model utilizes LoRA [216] for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Following instruction tuning, Uni-MoE is evaluated on a comprehensive and diverse multi-modal dataset. The results indicate that the model significantly reduces performance discrepancies when processing mixed data, improves collaboration efficiency among multiple experts, and enhances generalization capabilities, highlighting the potential of the MoE architecture in developing a unified multi-modal large language model. + +3) Task-Level Routing Strategy determines routing based on task IDs, ensuring that different tasks are routed to distinct experts, thereby effectively minimizing interference between tasks. This approach is particularly advantageous for multitask learning. For instance, [44] explores multilingual machine translation tasks, where task boundaries are defined by target languages, language pairs, or unique task IDs. And the experts are selected at the task level according to these boundaries. + +Compared to token-level routing strategies, this approach only requires loading a subset of experts relevant to the current task during inference, rather than loading all experts of the entire model. This results in reduced communication costs between devices and lower memory usage. + +4) Other-Level Routing Strategies encompass a variety of approaches, such as context-level and attribute-level routing strategies [40]. The context-level routing strategy employs global pooling to provide global context information to the router, enabling it to generate reliable routing strategies based on the contextual information of the current token representation. In contrast, attribute-level routing incorporates an 8- dimensional binary embedding, which includes attributes such as the modalities of the current task and token (indices 0- 5), the causation type of the model (index 6), and the token source (index 7). These rich information enables models to handle more complex and different tasks. + +# D. Training Strategies + +Due to the sparse activations inherent in MoE-based architectures, directly applying the functions and procedures used for training dense models to MoE-based sparse models is not straightforward. To improve training effectiveness, achieve faster convergence, and enhance performance on target tasks, numerous studies like [15], [17], [16], [18], [46] have explored the methods for training these sparse models. In the following section, we summarize and discuss some representative techniques. + +1) Auxiliary Loss Function Design. In addition to standard training losses, auxiliary loss functions are often introduced during MoE training to enhance learning performance, improve model efficiency, and stabilize the training process. One type of auxiliary losses widely used in practice is the load balancing loss, which aims to balance the allocation of inputs across all experts to fully utilize the capacity of the MoE. + +A well-known challenge in MoE training is the risk of model collapse, where a small subset of experts receives the majority of inputs, while others receive almost none, leading to an imbalance in expert utilization. To mitigate this issue, [16] proposes Importance and Load loss functions, which are defined as follows: + +$$ +\operatorname { L o a d } ( X ) _ { i } = \sum _ { x \in X } P ( x , i ) +$$ + +$$ +{ \mathrm { I m p o r t a n c e } } ( X ) _ { i } = \sum _ { x \in X } G ( x ) _ { i } +$$ + +$$ +L _ { \mathrm { l o a d } } ( X ) = w _ { \mathrm { l o a d } } \cdot ( \mathbf { C o V } ( \mathbf { L o a d } ( X ) ) ) ^ { 2 } +$$ + +$$ +L _ { \mathrm { i m p o r t a n c e } } ( X ) = w _ { \mathrm { i m p o r t a n c e } } \cdot \left( \mathbf { C o V } ( \mathrm { I m p o r t a n c e } ( X ) ) \right) ^ { 2 } +$$ + +where wimportance and $w _ { l o a d }$ are hyperparameters controlling the influence of expert importance balance and load balancing, respectively, and $P ( x , i )$ denotes the probability that $G ( x ) _ { i }$ is non-zero given new random noise selections. Here, $\operatorname { C o V }$ stands for the coefficient of variation. These two loss functions are incorporated into the overall model loss function to promote balanced usage and load distribution among experts, thereby enhancing model performance and stability. + +The Switch Transformer [15] (as shown in Equation (12)) simplifies the approach above based on [16], trading a slight reduction in accuracy for improved efficiency: + +$$ +f _ { i } = \frac { 1 } { T } \sum _ { x \in { \mathcal { B } } } \mathbb { 1 } \left\{ \operatorname { a r g m a x } G ( x ) = i \right\} +$$ + +$$ +Q _ { i } = \frac { 1 } { T } \sum _ { x \in B } G ( x ) _ { i } , +$$ + +$$ +\mathrm { l o s s } = \boldsymbol { \alpha } \cdot \boldsymbol { N } \cdot \sum _ { i = 1 } ^ { N } f _ { i } \cdot Q _ { i } . +$$ + +Here $T$ is the total number of tokens in the batch, $\boldsymbol { B }$ is the set of tokens in the batch, $f _ { i }$ is the proportion of tokens assigned to expert $i$ , $Q _ { i }$ is the routing probability ratio assigned to expert $i$ , and $\alpha$ is a hyperparameter used to control the weight of the auxiliary loss. Ideally, all experts should receive tasks evenly, with each processing an equal amount of input data, such that the expected values of $f$ and $Q$ are both $1 / N$ . When the distribution is uniform, this auxiliary loss function reaches its minimum. Expert capacity [16] refers to the maximum number of data points each expert can process. Insufficient expert capacity may result in skipped input data during training, leading to under-trained experts; conversely, increasing capacity reduces dropped tokens but may also waste computational and memory resources. V-MoE [17] normalizes $L _ { I m p o r t a n c e }$ and $L _ { L o a d }$ when applying the auxiliary loss function to visual tasks, achieving a more stable training process. + +2) Expert Selection. It is clear that the performance and efficiency of MoE models heavily depend on the expert selection for data inputs. While the gating function primarily determines expert selection, additional design choices can further enhance MoE models. The TopK strategy, which selects the best $K$ experts among all experts to process the data, significantly increases model capacity without proportionally escalating computational costs. For example, [16] has shown that the MoE model can scale to over 1000 times of the size of traditional neural networks while maintaining computational efficiency. On the other hand, the TopK strategy can be removed in order to further enhance the efficiency. For instance, V-MoE [17] replaces TopK with a Top-1 strategy to simplify computation and reduce resource wastage. Moreover, randomness is usually introduced for expert selection inside the TopK function (as shown in Equation (1)), by adding Gaussian noise to expert activations during the selection process [16]. This mechanism encourages expert exploration with random selections and prevents over-reliance on specific experts, which mitigates load imbalance and optimizes resource utilization. + +Dynamic expert selection mechanisms have also been explored in the literature. Notably, [46] proposes a Top-P routing strategy, which determines the number of activated experts at each time by setting a probability threshold $P$ . For each input data, the gating network calculates a score for each expert, corresponding to a probability distribution of an expert being selected, and the experts are sorted in a descending order of their scores. The strategy then progressively accumulates the scores of the experts until the cumulative value exceeds $P$ , activating all accumulated experts to process the token. This allows the model to adaptively adjust the number of selected experts based on input complexity, enabling flexible and efficient resource allocation. To reduce overfitting and improving generalization, [48] proposes a dropout regularization method tailored for the tree structure of Hierarchical Mixture of Experts (HMoE) [47], which randomly drops expert networks of different branches according to the hierarchical structure. Experimental results demonstrate that this method enhances model performance, providing smoother fitting outcomes, better generalization, and lower validation error rates compared to models without dropout. + +3) Pipeline Design. Given the sparsity nature and need of dynamic data allocation in MoE architectures, a well-designed pipeline plays a crucial role in the training of MoE models, in order to maximize the utilization of computational resources, reduce time and costs, and ensure stable convergence of the model. In general, the pipeline design for MoE seeks to optimize resource allocation and efficiently distribute data among experts. + +As mentioned before, BPR [17] achieves sparsity reuse by prioritizing important samples for processing. The advantages of BPR lie in its efficient resource utilization and reduction of unnecessary computations. RMoE [18] designs a pipeline particularly for downstream tasks such as segmentation and detection. More specifically, RMoE decomposes the weights of MoE experts into core and residual weights, where the core weights inherit knowledge from pre-trained non-MoE models and only the residual weights will be finetuned. This will significantly shorten the training time and reduce the training costs. During inference, both sets of weights will be combined to ensure the good performance of the MoE model. + +# E. System Design + +The MoE architecture is gaining popularity in the edge deployment and capacity scaling of large models [15], [51], [52], offering significant flexibility and scalability. However, its nature of inherent non-uniform workload distribution and dynamic expert selection imposes strict requirements on the system’s resource allocation, communication efficiency, and overall performance optimization. This will introduce new system challenges such as increased synchronization overhead, hampering the efficiency and stability of model execution. In this section, we outline some common methods currently available to enhance the system designs for MoE from three dimensions: computation, communication, and memory. + +1) Computation. In the application of MoE models, due to their inherent dynamic characteristics, there may be significant disparities in the number of tasks processed by different experts, making the issue of non-uniform workload distribution particularly pronounced. Particularly, in large-scale distributed system environments, standard MoE architectures require synchronization among expert operations [49], i.e., all experts must complete their current tasks before moving on to the next computation step. However, some experts may finish work earlier due to smaller assigned task volumes, leading to idle timeslots and wasted computational resources. Moreover, as the MoE model capacity expands, computational complexity significantly increases [15], intensifying the demand for better computation strategy design. + +Various attempts have been made in the literature to mitigate this problem. The paper [15] proposes and discusses several parallel strategies, including data parallelism, expert parallelism, and model parallelism, but different parallel methods have varying requirements for the distribution of data and model parameters. To enable the system to quickly adapt to dynamic load changes, [50] designs a unified distribution layout to manage the model’s parameters and input data. This can accommodate the distribution requirements of various parallel strategies, achieving zero-cost switching of parallel strategies. Based on this distribution, [50] also further develops multiple optimization techniques, such as the ALLto-ALL optimization algorithm mentioned later. Moreover, Soft MoE [27] introduces an improved scheduling algorithm that uses gradient-based routing selection methods, making the computation process smoother and more efficient. This approach reduces unnecessary synchronization wait times, lowers overall synchronization overhead, and boosts system throughput and efficiency. DeepSeek-V3 [53] introduces several enhancements to the communication process. Firstly, it concurrently processes two micro-batches with comparable computational loads, overlapping the attention mechanism and MoE component of one micro-batch with the dispatch and combine operations of another. This technique not only boosts throughput but also masks the overhead associated with all-to-all and tensor parallel communications, thereby substantially diminishing reliance on communication bandwidth. Furthermore, an FP8 format is employed for low-precision communication; activations are quantized to FP8 prior to upprojection in MoE using integral power-of-two scaling factors to mitigate quantization errors, a method similarly applied to activation gradients before down-projection in MoE. Lastly, to alleviate all-to-all communication bottlenecks, particularly among GPUs, a more efficient processing strategy has been devised. The specific implementation is available as opensource on GitHub at https://github.com/deepseek-ai/DeepEP. + +2) Communication. In the training of MoE models, input data must be distributed to the experts via an All-to-All communication pattern, which usually results in a significant demand on the communication bandwidth. On the other hand, due to the dynamic nature of expert selection, the amount of communication in the system can substantially fluctuate, such that the communication demands between iterations can also be very different. Clearly, this communication pattern is difficult to predict and optimize, thereby increasing the risk of network congestion. + +Considering that only a portion of MoE models are activated at any given time, on-demand loading strategies [19] can be adopted when scheduling the model, i.e., weights are loaded into the on-chip memory only when the corresponding expert is selected. This method reduces frequent access to external DRAM, effectively alleviating the pressure on memory bandwidth. Moreover, different experts within the MoE can be assigned to distinct compute units or cores, achieving tasklevel parallel processing [15]. This strategy not only increases the system throughput but also fully exploits the parallelism provided by Multi-Chip Modules (MCMs). In addition to expert-level parallelism, other studies have proposed various parallelization strategies such as data parallelism, model parallelism or tensor parallelism [15], allowing more flexible design and the use of different parallel methods according to task characteristics [50], [54], [55]. To further optimize performance, systems such as TUTEL [50] and FasterMOE [49] simultaneously run the communication operations with other computational tasks to hide communication latency and reduce the impact of communication on overall runtime. Moreover, hardware features have also been utilized to motivate various communication patterns to reduce the need of bandwidth, e.g., EdgeMOE [51] and M3ViT [19]. + +3) Memory. The MoE model typically contains a large number of parameters due to the usage of multiple experts. This will need a large amount of memory, which sometimes may even exceed the storage capacity of a single device, thereby limiting the scalability of the MoE model. Moreover, due to the randomness and dynamics in expert selection, the memory access patterns of MoE models can become extremely complex. + +To address these issues, Switch-Transformer [15] proposes a parameter migration strategy that leverage the memory space of multiple devices in a collective manner, to store a large volume of parameters through parallel communication mechanisms. This method effectively distributes the pressure of parameter storage, enhancing the system’s overall storage capacity and computational efficiency. DeepSpeed-MoE [52] adopts a hierarchical storage management scheme, integrating local high-speed caches with remote slower storage to construct a multi-level storage architecture. This design ensures that frequently used parameters can be accessed quickly while also accommodating less frequently used but necessary parameters, thus achieving more efficient memory utilization without compromising performance. + +# III. ALGORITHMS + +Due to the effectiveness and the strength in handling diverse knowledge in data, there have been rapidly growing interests in applying the MoE architecture into various machine learning paradigms, leading to improved algorithm designs. To showcase this and the great potentials of MoE in solving more complex learning scenarios, we will delve into the MoEbased algorithm designs for four widely investigated domains, i.e., continual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning. + +# A. Continual Learning + +Continual learning [217] seeks to build an agent that can continuously learn a sequence of different tasks, corresponding to a non-stationary environment with data distribution shifts, to mimic the extraordinary lifelong learning capability of human beings. In particular, in continual learning a model is continuously adapted based on the new data without access to previous data. This will lead to a key challenge in continual learning, the so-called “Catastrophic Forgetting” [218], which refers to the phenomenon that neural networks can easily forget the previously acquired knowledge when learning the new task. Seeing that the MoE framework dynamically selects the most appropriate sub-model for each input, enabling the model to handle diverse tasks without a substantial increase in computational overhead, multiple efforts have been made in the literature to leverage MoE to facilitate better continual learning algorithm designs. + +The idea of applying MoE in continual learning is first explored [60] which builds a model with a set of experts for task-free continual learning [219], i.e., a more general continual learning setup where the explicit task definition and task boundary information are unavailable. In particular, by following the expansion-based continual learning approaches, a Continual Neural Dirichlet Process Mixture (CN-DPM) model is introduced, where each expert model in CN-DPM handles a subset of data and the number of expert models dynamically expands based on the Bayesian nonparametric framework. However, the gating mechanism to determine the expert selection for current input data in [60] relies on a generative model for each expert. [65] improves over the design by showing that a gating mechanism based only on the input data is feasible. In particular, [65] considers a hierarchical variational continual learning (HVCL) setup with multiple priors, and shows that leveraging multiple experts can alleviate problems in HVCL such as known task boundaries and increased computation cost. To this end, a standard MoE model is built based on [16] where two different strategies are proposed to encourage expert diversity, which, as the authors believe, may mitigate forgetting since experts specialize in different tasks. + +Recently, pre-trained model based continual learning [220] has attracted much attention by leveraging the powerful pretrained models to facilitate better continual learning. This further spurs a new category of continual learning approaches, i.e., the prompt-based continual learning approaches [70], which have demonstrated superior performance compared to standard continual learning approaches. Thus motivated, there have emerged several attempts in leveraging MoE to design better prompt-based approaches for continual learning with pretrained models. Specifically, by shedding lights on the connection between self-attention in Vision Transformer [1] and a mixture of experts, [66] interprets applying prefix tuning in pre-trained models as adding new experts, which can be leveraged to facilitate efficient model adaptation for new tasks. Based on this, a novel gating mechanism named Non-linear Residual Gates (NoRGa) is proposed to improve the parameter efficiency in prefix tuning, where non-linear activation functions and residual connections are introduced within the gating function. [63] develops a mixture of task-specific experts (MoTE) framework, where a task-specific adapter (i.e., expert) is trained for each new task. To enhance the feature robustness and reduce cross-task feature overlap, an expert evaluation strategy and an Expert Peer-Voting Mechanism are further introduced, where the most trustworthy experts will be selected for feature fusion at inference. + +Considering the recent breakthroughs in large language models, several studies have explored the usage of MoE in the continual adaptation of language models. [59] investigates the continual adaptation of pretrained language models, where an MoE-based architecture, i.e., Lifelong-MoE, is proposed to address the forgetting problem. In particular, new experts will be introduced for new data distributions, while regularizationbased strategies on both experts and gating functions are used to retain the knowledge for old tasks. A new architecture PMoE is proposed in [34] to address the forgetting for continual learning in large language models. By using shallow layers for general knowledge and deep layers for new knowledge, new experts are progressively added to deep layers, where a router efficiently allocates new knowledge to appropriate experts based on deep features. + +The application of MoE in continual adaptation based on vision-language models has also been studied very recently. [56] introduces the parameter-efficient MoE-Adapters framework for continual adaptation with the CLIP model [9]. This framework leverages Adapters as experts and employs a taskspecific router to select the most suitable experts for the current task, thereby accelerating adaptation and fostering expert collaboration. Additionally, the authors propose a Distribution Discriminative Auto-Selector (DDAS) to enhance the model’s zero-shot recognition capabilities, which automatically allocates test data to either the MoE-Adapters or the original CLIP model, ensuring accurate predictions for both seen and unseen data. [64] observes that the usage of a shared layer in MoE-based models can lead to unsatisfying performance for continual learning. To address this, an expert merging strategy is proposed to merge the two most frequently selected experts based on the tracking of expert usage. The merged experts will be used to update the least frequently selected expert. This helps to prevent the same feature being learned as different features by multiple experts. Additionally, the least important parts of the model are regularly removed, saving computational resources. + +Moreover, the MoE-based models have been leveraged in various specific applications of continual learning. For example, [57] studies the problem of continual test time adaptation and introduces the Mixture-of-Activation-SparsityExperts (MoASE) adapter to address the forgetting problem therein. By decomposing the neuron activation into high and low activation components, MoASE develops a Domain-Aware Gate to utilize domain information for expert combination and an Activation Sparsity Gate for more accurate feature decomposition. [67] studies the continual traffic forecasting problem and introduces a novel MoE-based model, i.e., TFMoE, to efficiently retain past knowledge. The traffic flow is divided into homogeneous groups, where each group is handled by an expert model. [69] applies MoE to continual medical image segmentation, updating only relevant experts for new data while fixing other network parameters. [139] exploits MoE in mobile edge computing (MEC) networks, dynamically selecting experts for task offloading while optimizing gating network parameters to minimize computational delays. + +There have also been some studies in the literature that leverage multiple expert models, instead of a single model, for continual learning. For example, [71] proposes a framework where an expert model is trained for each task and a gating mechanism to select the relevant expert at test time. [72] uses a fixed number of small networks to learn all tasks in continual learning in parallel and shows that the performance can be better than a single big model. [73] investigates the impact of different ensemble models on the performance of continual learning. The SEED method proposed in [61] optimizes the model ensemble training by selecting a single expert for new task learning based on Gaussian distribution similarity, ensuring effective learning of new tasks while preserving prior knowledge. EVOLVE [62] leverages multiple pre-trained models as experts to enhance self-supervised continual learning on local clients. In particular, EVOLVE employs an expert aggregation loss to distill guidance information and dynamically adjusts expert weights based on new task data. While these studies do not exactly leverage the MoE architecture, they still demonstrate the great potentials of leveraging multiple experts to facilitate better continual learning. + +# B. Meta-Learning + +The core of meta-learning [221], [222], [223], [224], [225] lies in learning to learn, focusing on enabling models to quickly learn new tasks from a small amount of data, thereby improving the generalization and adaptability of machine learning systems. MoE can be used to enhance the rapid learning capability of meta-learning methods because it leverages multiple expert models to learn the distinct core features of each domain. By capturing the differences and connections between various tasks in a better way, MoE has great potentials in promoting more efficient learning and adaptation of new tasks by the model. In what follows, we will go over the recent development in the field of meta-learning by leveraging MoE models. + +While the most popular meta-learning approach in the past decade is the optimization-based approach [226], [227] due to its simplicity and efficiency, neural processes (NPs) based approaches [228] recently gain increasing attention for metalearning, which directly learn meta-representations and do not require additional gradient updates during fast adaptation. However, the standard NPs consider use a single global Gaussian latentvariable to model tasks, leading to a lack of expressive power when dealing with complex tasks generated from a mixture of stochastic processes. To alleviate this issue, [70] proposes the Mixture of Expert Neural Processes (MoE-NPs), with multiple latent variables and discrete assignment latent variables. The multiple latent variables are used to construct a mixture of NPs experts to define various functional priors, and the discrete assignment variable controls the expert selection for each data point in prediction. An evidence lower bound is derived to optimize the proposed model, which demonstrates promising performance in both few-shot supervised learning and meta-reinforcement learning. + +As meta-learning has demonstrated the superior capability in fast adaptation for novel scenarios, it has been recently applied to generalizable dynamical system reconstruction (DSR) [229] for learning across varying environments with a small amount of data, which is particular important for scientific discovery using scientific data. While promising, metalearning typically relies on the assumption that all tasks (or environments) follow the same task distribution, limiting its applications in scenarios with less similar environments. To address this, [79] proposes the Mixture of Experts Reconstructors (MixER) by augmenting existing contextual meta-learning approaches [230] with the Top-1 MoE architecture. In particular, MixER consists of multiple experts, each corresponding to a meta-model to capture the shared knowledge, and a linear gating function which takes the context information, instead of state vectors, as input. An unsupervised routing mechanism is further designed to optimize the MoE-based models. + +Besides these studies, MoE has also been leveraged together with meta-learning for various applications. Domain adaptation (DA) [231] is a subfield of transfer learning which seeks to adapt the model trained for the source domain to perform well on a related but different target domain. The standard formation of DA considers the transfer from a single domain, whereas multiple sources can be available in practice. However, most existing methods use a single model to learn all source tasks. To address this, [77] leverages MoE models to explicitly characterize the relationships between different source domains and the target domain, where the prediction for a target example will be based on a weighted combination of all experts’ predictions. Here the weights capture the similarity of the target example with each source domain, which are learned through metric-based meta-learning approaches [232] by constructing a meta-training procedure with multiple multisource-single-target pairs. [74] investigates a slightly different problem where some unlabeled data from the target domain will be exploited, and propose Meta-Distillation of MoE where a student model is built from each multi-source-single-target pair. Here, a MoE model is used as a teacher student, and each expert is separately trained using supervised learning on each source domain to extract its discriminative features. For domain adaptation, the unlabeled data from the target domain will be passed through all experts and the knowledge from all experts will be aggregated by an aggregator to guide the distillation from the teacher to the student. The student model and the aggregator will be jointly trained using optimization based meta-learning. + +Other studies, which also leverage MoE together with metalearning, investigate some specific applications of domain adaptation. For instance, [75] studies the domain generalizable person re-identification task (DG ReID), where each expert in the MoE model learns the knowledge from one source domain and all the features from these experts are integrated based on an adaptive voting process for the unseen target domain. As the specific target domain is generally unknown during training, an optimization-based meta-learning approach is proposed to train the voting network, which is jointly trained with the expert networks given their couplings in the algorithm design. [78] shares the same design philosophy as [75] but studies the domain generalization of face anti-spoofing, where the domain expert models are meta-trained using optimizationbased methods. [76] investigates the generalization of multiaccess control in heterogeneous wireless networks. Traditional meta-reinforcement learning (meta-RL) methods may not fully capture the subtle differences between different tasks, leading to insufficient adaptability in new environments [233]. When designing a General Multiple Access (GMA) protocol, the challenges posed by varying network configurations in different testing environments need to be considered. [76] thus introduces the MoE model to enhance the model’s representational capacity and reduce overfitting to specific tasks [203]. Specifically, an MoE-enhanced encoder network is introduced in designing the GMA protocol, where each expert model in the linear gating MoE inside the encoder independently encodes each state transition into latent representations. These latent representations are then combined to generate a final comprehensive task representation, which will be leveraged by SAC [234] for individual protocol learning within meta-RL of the generalizable GMA protocol learning. + +# C. Multi-task Learning + +Multi-task learning (MTL) [235], [236], [237] is a machine learning paradigm whose core idea is to simultaneously learn multiple related tasks to improve the generalization ability and performance of the model. Essentially, it provides the model with rich prior knowledge to enhance its performance. This determines that multi-task learning algorithms need to leverage shared information among tasks, typically achieved by sharing part of the model’s parameters or representations. However, this approach has exposed some shortcomings when dealing with complex data [93]. The MoE model, on the other hand, can intelligently select the most suitable sub-model for processing based on the characteristics of the input data, naturally decoupling different tasks and effectively handling the complex relationships between them. This gives MoE a greater advantage when dealing with complex tasks [87], and as a result, it has gradually gained more attention and been applied to many important sub-tasks in multi-task learning. + +To more efficiently handle the relationships among multiple tasks in multi-task learning, [93] proposes an important variant of MoE called Multi-gate Mixture-of-Experts (MMoE), which sets up a separate gating network for each task. The gating network can further select different expert networks based on the specific characteristics of the current task, decoupling each task into different gate functions. This avoids the mutual interference of tasks with large differences, and alleviates the significant performance degradation of traditional methods when processing multi-task data with large differences due to shared underlying networks. [95] finds that MMoE still cannot fully resolve the issue of Negative Transfer, and in some tasks, its performance is even worse than that of single-task models [95]. As a result, they designe several optimization strategies to further mitigate the Negative Transfer problem in MMoE by penalizing overly similar experts, enhancing the fine-grained interaction among experts, and balancing the importance of tasks with varying amounts of data during model training. + +Multi-task reinforcement learning is an important branch of multi-task learning [238]. It aims to promote the learning of diverse skills by agents to enhance their ability to handle complex tasks. However, existing methods lack guarantees on the diversity of learned representations, which may lead to representation collapse into similar representations, thus limiting their generalization ability [96], [239], [240], [241], [242]. To address this issue, [80] introduces a method called Mixture of Orthogonal Experts (MOOR), which utilizes multiple expert models responsible for generating different representations. In this case, each expert is responsible for different aspects of the task, encouraging the model to learn more diverse skills. To ensure efficient differentiations among experts, MOOR introduces the Gram-Schmidt orthogonalization method into MoE to force each expert to generate mutually orthogonal features, further limiting the possibility of experts generating redundant representations. [96] investigates contextual multitask RL and proposed a novel approach to encode an input observation into multiple representations using a mixture of encoders. These representations correspond to different skills or objects, and can be selected for any given task based on the context information. This approach gives the learning agent a more fine-grained control on the information shared across tasks and alleviates negative interference. Instead of naively sharing parameters across all tasks in traditional approaches, [85] proposes an attention-based MoE approach for multi-task reinforcement learning, which seeks to learn a compositional policy for each task. In particular, each expert network learns task-specific skills and specializes in different parts of the multi-task representation space. An attention module was fu introduced to integrate the expert outputs, we propose an attention module to generate connections between tasks and experts to achieve the best performance automatically. + +Multi-task learning techniques have also garnered significant attention in recommendation systems because they can simultaneously meet the modeling needs of multiple perspectives, improving recommendation performance. However, many existing multi-task recommendation systems struggle to balance parameter sharing and resource utilization. Some MoE-based methods, while more flexible, also face issues such as unstable training or resource waste [93], [13], [99]. [92] improves the standard MoE framework by proposing a new framework called Mixture-of-Masked-Experts (MoME). First, MoME no longer trains independent sub-networks for each expert but extracts expert sub-networks from an over-parameterized base network, generating diverse expert networks by learning different binary masks. Thus, during training, only one base network and a set of binary masks need to be trained, effectively saving resources. Additionally, MoME designs multi-level masks: neuron-level masks are used to filter out unimportant neurons in the base network, while weight-level masks are used to generate diverse expert networks. To further enhance the robustness of the mask learning process, MoME uses a probability formula based on an approximate Bernoulli distribution to determine mask elements and achieves model sparsity through $L _ { 0 }$ regularization, enabling efficient parameter sharing. [76] also focuses on recommendation system design, noting that existing multitask learning models [93], [98] typically use MLP as the expert model. However, using MLP models may not generate distinctive features for different tasks, leading to gradient conflicts and thus affecting model performance. Therefore, this work proposes a new expert network called the Task-Intensive Expert Model, whose parameters are specifically generated by a hyper-network based on different task embeddings, making it more distinctive and alleviating gradient conflict issues. + +[91] further investigates multi-domain multi-task recommendation tasks, where multi-domain scenarios introduce more complex data dependencies that existing methods cannot handle well [243]. [91] decouples the originally complex tasks and introduces shared expert modules, domain expert modules, and task expert modules using MoE. These modules learn cross-domain and cross-task common knowledge, domainspecific user preferences, and task-specific user preferences, respectively , enabling the model to capture user preferences from multiple perspectives and better handle complex dependencies between domains and tasks. + +Tasks in machine vision encompass various types, each with its corresponding deep models. However, many of these tasks often follow similar pipeline designs [81]. Aggregating the models of these similar tasks into a multi-task model can significantly improve the efficiency of training and inference while maintaining the performance of individual tasks. Considering that MoE not only allows for flexible model expansion but also handles dependencies between different tasks, it is frequently used in the design of visual multi-task models. [89], [19], [97] primarily apply MoE to improve the encoder. [89] introduces MoE layers into the attention modules and MLP blocks of ViT [1] and designs a new loss function to encourage strong yet sparse dependencies between tasks and experts, ensuring that each task is only related to a few experts. This can reduce the likelihood of gradient conflicts between tasks. [19] also incorporates MoE layers into ViT and discusses the advantages and disadvantages of two gating functions in application scenarios: one configures a different router for each task, while the other uses a shared router to achieve dynamic routing by concatenating task embeddings with input tokens. It was found that the first gating method is more effective for handling multiple tasks. [97] inserts sparsely activated MoE layers into ViT and computes the model’s loss on the validation set during each iteration. By using the loss as feedback to dynamically increase or decrease the number of experts, the cumbersome process of manually adjusting model size can be avoided. + +A few works have also attempted to introduce MoE into the decoder. [86] finds that different task decoders, due to shared decoding parameters, result in a static feature decoding process, leading to insufficient distinction in taskspecific features. Therefore, MoE was introduced as a decoder to decompose backbone features into task-agnostic features from different aspects, making the decoding process of taskspecific features more fine-grained. This work also utilizes convolutional operations to expand the receptive field of the gating network, which enriches the contextual information in the decision-making process. [81] argues that in traditional MoE structures, experts can only interact through routers, thus only establishing connections between some tasks. By adding a $3 { \times } 3$ convolutional layer after the encoder, which is optimized by all tasks, it can learn common features across all tasks, providing the model with more global information + +to aid decision-making. + +The combination of mutli-task learning and MoE has further been explored in other application scenarios. [83] replaces the expert networks in MoE with LSTMs [244], leveraging the advantages of LSTMs in handling sequential data to improve performance in processing user activity data streams. The work in [94] applies MMoE to Digital Rock Physics Analysis tasks, addressing the issue of significant computational and memory resource consumption encountered by traditional numerical simulation methods for rock analysis [245], [246]. By utilizing MMoE, [94] transforms serial operations into parallel operations, reducing interference between multiple analysis tasks. [84] focuses on Heterogeneous Multi-task Learning tasks. In particular, this study only employed the MMoE framework but also introduced some stochastic mechanisms that restrict certain experts to handle specific tasks or disconnect certain experts from the current task, thus enhancing expert exploration. + +# D. Reinforcement learning + +Reinforcement Learning (RL) plays a pivotal role in decision making in many real-world applications, such as robotics, games, autonomous driving, and healthcare [247], [248], [249], [250], which seeks to learn a policy by interacting with the environments. However, its practical development suffers from several significant challenges, including computational inefficiency and limited adaptability within high-dimensional state spaces and complex dynamic environments [102]. By dynamically selecting the most appropriate expert based on input data, the MoE mechanism enhances RL agents’ flexibility in responding to diverse demand patterns and environmental changes, thus improving overall performance. In what follows, we summarize the recent advance in leveraging MoE in RL and showcase its potential in various applications. + +The application of MoE in RL has a long history. One notable direction is the so-called modular RL, which breaks down complex RL problems into smaller modules and builds multiple sub-agents to handle a specific aspect of the task. Notably, [125] considers nonlinear and nonstationary control tasks, and proposes a multiple model-based RL (MMRL) system with multiple modules (i.e., experts). Each module has a dynamics model and a controller, where the state predictions and the action outputs are the weighted combination of all module outputs, with the weights calculated using a gaussian softmax function of the module state prediction error. Multiple studies have been proposed by following up this work. [106] introduces a concept of ‘modular reward’ which combines both the actual reward and the imaginary reward of appropriate module selections for the task. This will promote independent learning of different modules, which further leads to accurate estimation of global value functions of the composite policy. [107] constructs multiple experts to specialize in different regions of the overall state space, where standard RL approaches can be used for each expert to capture different information of the underlying state space. This is particularly useful for RL problems with large state spaces. + +On the other hand, the idea of modular RL has also been investigated in the design of value-based approaches. + +Specifically, [108] introduces a novel mixture of actor-critic experts (MACE) architecture with multiple actor-critic pairs for learning terrain-adaptive dynamic locomotion skills, where each pair will specialize in particular aspects of the motions. MACE is shown to be able to learn more quickly than the standard single actor-critic pair approach. [109] follows this network architecture and learning algorithm to solve MDP problems with a mixture of discrete and continuous actions, in the context of policy learning for the safe falling problem. [126] considers the skill knowledge transfer in multi-task RL and proposes a transfer expert RL architecture (TERL), where both actor and critic consist of a hierarchical structure with the experts and a gating network. The gating network will thus determine the expert selection of different tasks for either policy learning in the actor or value function learning in the critic. Several key features are designed in both gating network and experts to increase the capability of solving new tasks. [110] also considers a multi-task RL framework for transfer learning, which seeks to leverage the pretraining of multiple source tasks to facilitate the learning of new target tasks. Different from the traditional case where only one expert is activated at a particular timestep, this work proposes a model to enable the activation of multiple expert simultaneously. Each expert can specialize in a distribution of actions, whereas the composite policy can be obtained through a composition of these distributions. + +More recently, [111] constructs the policy in policy iteration by leveraging the MoE architecture, where the action of each expert is determined based on the distance to a prototypical state, in order to ensure the policy is interpretable. [100] introduces Probabilistic Mixture-of-Experts (PMOE), which employs Gaussian mixture models for multi-modal policy representation and frequency approximation gradients to address non-differentiability during optimization. This approach overcomes the limitations of unimodal policies in traditional deep RL, enabling algorithms to learn varied strategies in tasks with multiple optimal solutions. More importantly, PMOE can be potentially applied in generic off-policy and on-policy deep RL algorithms using stochastic policies, e.g., Soft Actor-Critic (SAC) [234] and Proximal Policy Optimization (PPO) [251]. To improve the sample efficiency of [108] and accelerate model-free RL for terrain-adaptive locomotion skills learning, [112] proposes to generalize model-based value expansion (MVE) [252], a technique to obtain better state-action values by using more reliable targets, to a mixture of actor-critic experts. [101] proposes an MoE framework incorporating Bayesian functions that autonomously identify and combine promising sub-regions from multiple source tasks across different regions of the state space. By utilizing state-dependent Dirichlet prior distributions to learn similarities between dynamics in source and target tasks, and updating these priors using state transition data from the target environment, this method improves robustness against sparse or delayed rewards, even when there are errors in dynamic estimation. + +The attention of leveraging MoE in RL has gained increasing attention last year due to the success of MoE in LLMs. [115] investigates of the impact of MoE layers in the DNNs used in value-based deep RL approaches, and shows that the performance of various deep RL algorithms can be significantly improved by incorporating soft MoEs [27] to replay the penultimate layers. Similar phenomenons have been observed in different RL setups, such as online RL, offline RL [253], and RL with a small amount of interactions. [113] considers multi-task robot learning and seeks to leverage offline RL to learn from both good demonstrations and sub-optimal data. In particular, the policy network is constructed as an MoE-based Transformer encoder to generate action tokens. [254] proposes a Diverse Skill Learning (Di-SkilL) method which aims to enable agents to acquire more skills in RL. In particular, each expert is modeled as a contextual motion primitive, adjusting behavioral strategies according to the current context and optimizing related distributions to focus on optimal performance sub-regions. Di-SkilL effectively addresses hard discontinuities and multimodality in unknown environments by representing each expert’s contextual distribution using energy-based models. [114] proposes a novel method named SMOSE for continuous control tasks. The controller is built upon a Top-1 MoE architecture, where each expert is trained to learn different basic skills and the router is trained to learn to appropriately assign tasks to experts. [102] investigates MoEs’ capability to manage non-stationarity — handling and adapting to changes in the environment or data distribution over time — in deep RL settings characterized by “amplified” non-stationarity via multi-task training. It finds that MoE supports network plasticity and is particularly effective in highly non-stationary conditions, providing fresh insights into addressing non-stationary training environments in RL. [103] explores visual deep RL to enable robots to acquire skills from visual inputs and proposes a method named MENTOR, which replaces the traditional MLP layers in visual RL agents by using the MoE architecture for action generations. + +The application of MoE in other domains of RL, such as multi-agent RL and imitation learning, has also been explored. For instance, [116] applies modular RL to soccer robot. [117] proposes a method to assign multiple modules to different situations, in order to learn purposive behaviors for specified situations related to other agents. Similar to [125], in [117] each module consists of a prediction model and a planner, and the module that provides the best estimation of state transitions will be chosen. [118] uses modular RL with MoE to learn competitive behaviors in multi-agent systems. For imitation learning, [119] considers the problem of robot table tennis by allowing robot to learn through interactions with human, where an approach with mixtures of motor experts is proposed to generalize basic movements to various situations. Here each expert corresponds to a motor policy. [121] constructs a mixture of interaction experts to learn various interaction patterns from human demonstrations, based on Gaussian mixture models. [122] leverages Gaussian mixture models to handle the model collapse problem in learning generalized movement representations from human demonstrations. [123] leverages a mixture of movement primitives to imitate versatile human demonstrations. [124] trains a variational autoencoder with a mixture density network to capture the complexity and variability in Human-Robot Interaction. Given the diversity of constraints under which demonstration data may be collected, [104] presents Multi-Modal Inverse Constrained Reinforcement Learning (MMICRL), which uses flow-based density estimation for unsupervised expert identification and infers specific agent constraints, thus enhancing the adaptability and reliability of inverse constrained reinforcement learning algorithms. The strategy of ensemble methods that carries a very similar idea with MoE has also been widely used in RL, in terms of model ensembles [255], value function ensembles [256], and policy ensembles [257], [258]. + +Finally, we summarize several attempts on applying MoE in specific applications of RL. For example, [105] confronts the challenge of driving chatbots with RL by developing several RL algorithms tailored for Dialogue Management. Leveraging the hierarchical structure of MoE-based language models enables offline RL methods to operate within a significantly reduced action space, making RL problems more tractable while generating discourse that reflects diverse intentions. Similarly, in video processing [259] and investment portfolio management [260], MoE-based approaches dynamically activate specific expert models based on current data, achieving higher accuracy, lower computational costs, and enhanced adaptability to changing environments. [120] leverage MoE models to scale up the parameters of RL models in optimal execution tasks. + +# E. Federated learning + +Federated Learning [261] is proposed to address the challenge of how different data owners can effectively exchange data without compromising user privacy and ensuring data security. By first training multiple local models on different servers and then aggregating these local model parameters using various rules to update the global model, the federated learning paradigm not only fully leverages distributed yet information-rich data but also efficiently utilizes the computational resources of multiple clients, inspiring a series of subsequent work, particularly in the field of recommendation systems [262], [263], [264]. + +When updating the global model using multiple local model parameters, one of the most common rules is Federated Averaging (FedAVG) [265]. This rule assigns weights to the corresponding local models based on the size of each client’s local dataset during parameter updates, and then updates the global model using the weighted combinations of local parameters. However, this rule relies on a manually defined simple heuristic, which not only requires each model to be initialized with the same random seed for convergence but is also unsuitable for scenarios where the data distribution among clients is highly heterogeneous [265]. Considering the hybrid nature of MoE, [127] is the first to introduce the MoE architecture into the federated learning setting. Specifically, this work proposes to train a general model using aggregated data and domainspecific models for each client using private data, and then use a gating mechanism to determine the contribution of each model’s output to the learning task. Compared to FedAVG, this approach better generates outputs based on task characteristics. [128] adopts a similar approach but focuses more on scenarios with stronger data heterogeneity across clients. Additionally, an opt-out mechanism is designed to ensure that clients with sensitive data could choose not to participate in the data integration process, thereby safeguarding data security. Some other work has also followed this combined approach [129]. + +An important goal of federated learning is to effectively integrate data from multiple clients. However, it is evident that real-world data distributions are highly complex and variable. Therefore, a major challenge in federated learning is data heterogeneity, which can manifest in two ways: one where clients share the same conditional distribution but have different marginal distributions, and the other where the opposite is true. Both scenarios can harm the model’s learning performance. Recently some studies have made substantial efforts to address this challenge. For example, [130] introduces two improvements: First, this work incorporates client identifier information into the gating decision; Second, to reduce the difficulty of training MoE expert models on non-IID data, which could lead to model degradation, a variational lower bound is leveraged to derive a unified global variational approximation, which replaces the true posterior distribution of all clients during training. [131] proposes an improved model fine-tuning method, where a general model is first trained and each client only fine-tunes the shallow parameters in the general model. Additionally, for complex high-dimensional data, this work uses partial model parameters to extract features from the raw data before feeding them into the gating function to make inputs distinguishable. [132] first trains local models on each client and then uses the clustering method IFCA [133] to iteratively cluster all clients, generating a global cluster model for each cluster. Finally, a gating mechanism is used to combine the outputs of the global cluster models and the local models to produce the final result. [134] also introduces a MoE layer on the server side but dynamically determines the number of top-K experts to retain based on the client’s resource conditions during routing, fully utilizing limited computational resources. + +In addition to the discussion on heterogeneity, another significant challenge in federated learning is communication overhead. Each round of communication between decentralized servers incurs substantial costs. Generally, there are two approaches to address this issue. The first approach is to reduce the amount of information that needs to be communicated in each round by transmitting only critical model parameters. For example, the number of experts in the locally trained MoE layer can be reduced, discarding some expert parameters that contribute less to the output in exchange for improved communication efficiency [135], [134]. Alternatively, only the most important MoE models can be selected for transmission. The second approach is to reduce the number of communication rounds, such as in One-shot Federated Learning (OFL), where typically only a single round of communication is performed during training to aggregate client models on the central server. After this, clients no longer participate in subsequent optimization updates. However, many popular OFL methods [136], [137] employ lossy aggregation, where aggregating all local models into a single global model results in knowledge loss, especially when model heterogeneity is strong [266]. In contrast, [138] proposes to treat all local models as expert models and train a specialized lightweight gating function using additional data to aggregate these experts. This approach effectively preserves the knowledge of local models while reducing communication overhead. + +# IV. THEORY + +Although the MoE model has a long history and achieved great empirical success in practice during the past few years [267], [16], the theory behind it is largely under-explored, especially in deep neural networks. Recently, some studies have initiated the attempt to build theoretical understandings of MoE. In this section, we will delve into these studies, aiming to provide the readers a basic idea of the theory development in this area. + +Most of the theory development for MoE so far mainly focus on simple models. Early studies in this area seek to understand the approximation capacity of MoE models. For instance, [141] investigates the convergence rate for hierarchical MoE models where the experts are exponential family regression models. [142] characterizes the convergence rate for hierarchical MoE models with generalized linear models as the experts. [143] provides the error bounds for functional approximation using MoE models and shows the convergence to any sufficiently differentiable target function in the Sobolev space. [144] provides an alternative result of this through a universal approximation theorem for MoE models with softmax gating functions and linear experts, without imposing assumptions on the differentiability of the target function. [145] considers a standard MoE model with softmax gating functions where the experts are polynomial regression models, and characterizes the convergence rate of the maximum likelihood estimator (MLE) depending on the number of experts and the order of the polynomial model. + +Recently, some studies have emerged and aimed to characterize the convergence of MLE for MoE models with different gating functions for regression problems. For instance, [146] characterizes the convergence rate of the MLE for Gaussian MoE models with covariate-free gating functions, by leveraging techniques from optimal transport. [147] attempts to understand the parameter estimation of the MLE for Gaussian MoE models with softmax gating functions, By leveraging novel Voronoi loss functions to capture the interactions between the gating and experts, the convergence rate of MLE is established. The convergence of MLE for Gaussian MoE models with other types of gating functions, such as Gaussian density gating [148] and top-K sparse softmax gating [149], has also been investigated. [150] studies a more general setup of MoE models with softmax gating for least square estimation, and characterizes the convergence rates for different types of expert model. The theoretical understanding behind the recently emerged cosine gating function is developed in [25] for lease square estimation. + +In contrast, the theoretical understanding of MoE models for classification problems is less explored. [151] investigates the classification problem with the MoE models including softmax gating and multinominal logistic expert models. In particular, the convergence rates for density estimation and parameter estimation are established. A novel class of modified softmax gating functions is further proposed to improve the convergence rate for parameter estimation when part of expert parameters vanish. [151] also studies the inefficiency issues encountered by the gating function in MoE during training. Specifically, when some expert parameters vanish (i.e., the parameters of certain expert models approach zero or become insignificant), the interaction between the standard softmax gating function and the expert functions through partial differential equations (PDEs) significantly slows down the parameter estimation rate [146], [149], [147], [148]. This paper thoroughly investigated the problem under an improved softmax gating function setting. Specifically, they used a bounded function $M ( X )$ to transform the input $X$ before passing it to the softmax gating function. Although the expert parameters still depend on the input $X$ , the transformed $X$ no longer has a linear relationship with the original $M ( X )$ , thereby eliminating the interaction between gating parameters and expert parameters and significantly improving the model’s convergence speed and stability. + +Most of the successes of MoE models nowadays happen with more complex expert models, such as deep neural networks. However, the theoretical understanding of MoEs in deep learning remains elusive compared to the theoretical studies of MoE in simple models, largely due to the limited understanding of deep neural networks. [29] seeks to fill this gap and makes the first attempt to understand the behaviors of MoEs in deep learning. More specifically, they consider a standard MoE architecture with softmax gating, where each expert model is a two-layer CNN, and investigate a binary classification problem where the dataset contains multiple clusters. The authors show that any single-expert model with a two-layer CNN cannot achieve more than $8 7 . 5 \%$ accuracy on this specific dataset, while a linear MoE model performs slightly better than a single-expert model but still falls short of a nonlinear MoE model. With sufficient expert exploration during the training, it can be shown that the router can automatically learn the cluster structure of the data and dynamically route the data to the most suitable expert. Following this work, [140] investigates the patch-level routing for MoE models (pMoE) with linear gating in solving a supervised binary classification task, where each expert is a two-layer CNN. They show that the pMoE model can achieve similar generalization performance with standard CNN but with a reduced sample complexity. One of the key reasons behind this, also theoretically and empirically justified, is that an appropriately trained patch-level router can route the classdiscriminative patches of one class to the same expert and drop some class-irrelevant patches. + +With the increasingly broad applications of MoE in many problems, the theoretical studies of MoE start to emerge beyond the general machine learning setup. [152] explores the usage of MoE models in handling multilevel data while building the theoretical understanding therein. Notably, multilevel data is very common in practical applications [268], [269], such as hierarchical data with a nested structure where different levels are correlated. Ignoring the dependencies within the data can lead to spurious, misleading, or biased clustering and prediction outcomes [270]. To better capture the dependencies, [152] proposes a Mixed MoE to handle multi-level data, which we define as MeMoE in this work. This approach not only introduces random effects into the gating function, making the computed gating values depend not only on input variables but also on random effects. This helps the model better capture random effects in multi-level data when dynamically adjusting expert weights. At the same time, to simplify the model, the expert functions are separated from the random effects, and the probability distribution of the expert model no longer depends on input variables but only on output variables. Under certain regularity conditions, this paper proves that the MeMoE is dense in the sense of weak convergence for any continuous mixed-effects model. In the special case of hierarchical multi-level data, this paper further proves that MeMoE can approximate the complex dependency structures of random effects between different factor levels in multi-level data. + +[30] investigates how integrating the MoE framework into models can effectively mitigate generalization and forgetting issues in continual learning [271], [272], under the setup of over-parameterized linear regression tasks and a linear gating MoE model. The authors prove that a sufficiently trained MoE model can diversify experts to specialize in different tasks, which minimize the interference across tasks and reduce the forgetting in continual learning. To ensure the stability of the gating function, the update of the gating network must be terminated in a timely manner for new task learning. Explicit expressions for expected forgetting and overall generalization error are also derived, quantitatively evaluating the impact of MoE in continual learning. [139] theoretically investigates the usage of the MoE framework in mobile edge computing (MEC) on handling continuous task streams therein. Specifically, each MEC service station is treated as an expert model, updating its local model based on the data distribution of tasks. An adaptive gating network was proposed to dynamically allocate tasks to different experts, ensuring that each expert converges and specializes in specific task types. Additionally, the paper derived the minimum number of experts required to ensure system convergence and proved that the MoE model can control the overall generalization error within a small constant range, significantly outperforming traditional MEC offloading strategies. + +# V. APPLICATIONS + +In this section, we investigate the applications of MoE in two broad application domains, computer vision (CV) and natural language processing (NLP). By examining the influence of MoE in tasks ranging from image classification to machine translation, we highlight how this architectures enhance specialization, scalability, and adaptability, offering insights into their practical impact and future potential across diverse real-world scenarios. + +# A. Computer vision + +With the rapid development and maturation of the CV field, the focus of both academia and industry has gradually shifted towards how CV technologies can be effectively implemented in specific application scenarios. However, this process has encountered several challenges such as resource constraints in edge deployment, difficulties in model scalability, and computational efficiency. These issues have pointed to the need of the redesign of existing models, especially when dealing with large volumes of data and complex tasks, where traditional model architectures often struggle to find an ideal balance between performance, flexibility, and stability. Since MoE has attracted renewed attention due to its performance advantages demonstrated in Mixtral 8x7B [22], an increasing number of studies have attempted to apply it in the CV field, to boost the state-of-the-art performance. Since the MoE architecture introduces multiple specialized experts to handle specific types of inputs and dynamically adjusts the activation levels of different experts based on the input data, it not only helps alleviate hardware resource bottlenecks but also enhances the model’s ability to handle diverse visual tasks, thereby optimizing both performance and stability. Therefore, in this subsection we will focus on the application of MoE in the field of CV by reviewing recent advancements from four bedrock aspects, i.e., classification, detection, segmentation, and generation. The aim is to provide valuable references for future explorations to address the challenges in the CV field. + +1) Image Classification. Image classification, as one of the most fundamental machine learning tasks, is a key component of many CV tasks. Therefore, understanding the performance and limitations of MoE in image classification can, to some extent, reflect its potentials for application in other CV tasks. + +Notably, [17] proposes and validates a new approach, namely V-MoE, to cope with visual tasks, by replacing the MLP layers in Vision-Transformer [1] with sparse MoE layers. V-MoE can scale the model to 15 billion parameters and demonstrates the efficiency gains from this simple combination in image classification tasks. Further explorations within the traditional MoE framework have been conducted. [153] dissects the MoE architecture, providing a detailed exploration of its training and optimization. The paper discusses how the number of expert networks, the number of MOE layers, and their placement affect the model’s performance, efficiency, and stability. + +As expert networks are a key component of MoE, many efforts have been made to optimize them. ViMOE [154] introduces the concept of shared experts, where a shared expert handles common knowledge required for classification, while other specialized experts focus on specific knowledge. This approach mitigates the difficulty in exploring optimal configurations due to the sensitivity of MoE layers to expert setups and enhances training stability. The paper also systematically analyzes routing behaviors, examining routing strategies, the number of experts, and the placement of MoE layers. It visualizes routing behaviors with heatmaps, finding that MoE layers closer to the output handle more semantically rich feature maps, leading to more specialized tasks for experts. Consequently, the last L layers of the model should be replaced with sparse MoE layers. The analysis suggests that both the number of experts and the size of $\mathrm { L }$ are related to the degree of routing, and more does not necessarily mean better performance. To some degree, the base model introduced in [155] shares similarities with the shared expert concept proposed in ViMOE [154]. In CLIP-MoE [156], the MoE architecture is applied to enhance the capabilities of the CLIP model through a method called Diversified Multiplet Upcycling. The authors fine-tune a series of pre-trained CLIP models using multi-stage contrastive learning, extracting expert networks that focus on different aspects of the input data, and integrating these experts into the MoE architecture. + +Other papers delve deeper into the design of gating functions. [27] introduces a novel technique called Soft MoE, which differs from traditional hard assignment of input tokens to experts by using a weighted average of all tokens for soft assignment. Therefore, each expert processes different parts of these weighted combinations. This method retains the advantages of the MoE architecture in scaling model capacity. Besides, it also improves training stability, reduces inference time, and effectively addresses the token dropping issue common in MoE training, creating a new paradigm for gating functions. [155] addresses the overfitting problem encountered when using MOE on small datasets by designing an architecture that incorporates early exit mechanisms and pre-training. Specifically, the model pre-trains a base model during the training phase and pre-determines the number of experts using k-means clustering. During inference, if the base model has high confidence in a sample’s prediction, it can opt for an early exit, bypassing the subsequent MoE layers for specialized learning. Otherwise, the sample is passed to the MoE layers for specialized learning, and the outputs from both the MoE layers and the base model are combined by Ensemblers to produce the final output. + +[158] focuses on improving the design of gating mechanisms in Hierarchical Mixture of Experts (HMoE) models to address performance bottlenecks in handling complex inputs and executing specific tasks. Specifically, this work proposes a method that goes beyond the traditional Softmax gating function by using Laplace gating strategies for both hierarchical and task allocation. By customizing gating functions for each expert group, the HMoE model can allocate resources more effectively without increasing computational burden and improve performance on complex datasets. Additionally, it explores the intrinsic interactions between first-level and second-level gating parameters, which significantly affect the convergence speed of model parameter estimation, providing a thoughtful direction for allocating complex or hierarchical datasets. [157] designs a deep mixture algorithm called DeepME (Deep Mixture Experts) for efficiently handling large-scale image processing tasks. It groups similar image categories based on semantic relevance, allowing for some overlap between categories. This ensures that each task group contains image categories with similar learning complexities, and specific base deep networks are trained for these groups. Additionally, a gating network is trained to combine all base deep networks, generating a mixed network with larger outputs to effectively handle large-scale datasets containing thousands of categories. + +2) Object Detection. Object detection is also one of the important tasks in the field of CV. Building on image classification, it requires the model to not only detect objects but also output the location of each classified object, where ensuring the computational efficiency of the model is more challenging compared to that in image classification. + +Similarly, many studies have explored the impact of simply integrating MoE with base models for object detection. MoCaE [159] has shown that directly using simple methods from deep ensemble (DEs) [273] to integrate different object detectors with the MoE architecture does not improve model performance and may even have adverse effects. The underlying reason is that simply adding different detectors leads to unfair competition, thereby affecting the final detection results. To address this, this work introduces Early Calibration and Late Calibration to adjust the confidence levels of different detectors, better reflecting their true detection performance. Experimental results have shown that MoCaE yields significant gains over single models and DEs on several real-world challenging detection tasks. + +[160] replaces the FFN layer in the traditional transformer with the MoE-HCO block, proposing an event-stream-based object detection framework called MvHeat-DET. The MoEHCO block selects the most suitable transformation branch for the current features through a policy network, providing various signal transformation expert networks. Therefore, the input events can have more diverse and suitable processing modules. It also uses frequency embedding to predict thermal diffusion coefficients to simulate the heat conduction process. This will enable the model to better capture spatiotemporal dynamic features in event streams while maintaining efficient computation, demonstrating high practical values. To help the model better understand and process multi-source datasets, DAMEX [161] proposes a data-aware MoE architecture, by replacing the FFN layer in the transformer with an MoE layer. Different experts are trained to learn data from different sources, enhancing the model’s generalization capability. Traditional two-stage methods [274], [275] require multiple classification heads to detect data from different datasets, leading to an increase in parameters with mixed datasets. In contrast, the data-aware MoE layer can achieve excellent performance without significantly increasing the number of parameters. [162] addresses the diversity and ambiguity of the task itself, by transforming the original single-mask prediction task into a multi-mask prediction task and predicting human preference scores for each possible salient object mask. To enable the model to handle multiple tasks more efficiently, this paper leverages the MoE architecture to solve the integrated training problem of the two tasks, and overcomes the inconsistency in input and output formats between the two subtasks. In particular, this work replaces the FFN layer in DaViT [276] with an MoE layer, which contains two experts: the PFFN layer for handling the PSOD (Pluralistic Salient Object Detection) task and the Q-FFN for handling the MQP (Mask Quality Predictor) task. This allows the model to dynamically select the most suitable expert network for the current task, improving model performance without significantly increasing the number of parameters. + +3) Semantic Segmentation. Semantic segmentation requires classifying each pixel in the input image. As a result, processing high-resolution images may significantly increase the demand on the hardware, hindering the model’s practical applications. Compared to traditional segmentation models, the MoE-based model can provide the following benefits: 1) The MoE architecture alleviates hardware pressure through its sparse activation and divide-and-conquer strategy, enhancing the model’s practicality. 2) Some studies [163], [164] have also found that using MoE can achieve excellent performance in semantic segmentation tasks that require greater model stability and generalization. 3) MoE also enjoys a better interpretability in terms of knowledge specialization. + +[166] seeks to leverage MoE to achieve a good balance between computational complexity and representational capacity in deep neural networks. In particular, traditional convolutional networks are combined with shallow embedding networks and multi-head sparse gating networks, dynamically selecting and executing partial networks at each convolutional layer. This can improve the accuracy while reducing prediction costs without significantly increasing the network width. Furthermore, this work proposes two DeepMoE variants including wideDeepMoE and narrow-DeepMoE. The first one is suitable for applications requiring high accuracy, whereas the second one is designed for computational resource-limited scenarios. Swin2-MoSE [167] demonstrates that MoE can also be applied to improve semantic segmentation models, especially on remote sensing images. The authors design an MoE layer called MoE-SM, which includes an SM (Smart Merger) module to merge the outputs of various experts and adopts a new perexample strategy instead of the commonly used per-token one. This can ensure that all tokens of each example are processed by the same expert, enhancing the model’s competitiveness in semantic segmentation tasks. + +Some studies have also investigated the usage of MoE in the segmentation for autonomous driving related scenarios. For example, [165] aims to leverage MoE to better understand autonomous driving scenarios which can further lead to improved algorithm design. Due to its architecture design, MoE inherently enjoys better transparency. Compared to other general models [273], [277], the MoE models can not only provide the final overall model output, but also enable the analysis of the outputs of individual expert models and their consistency or divergence with the overall output during the decision-making process. This mechanism provides more detailed information about how the models work, offering better interpretability while maintaining performance close to that of a single baseline model. A common issue in segmenting urban and highway traffic scenes is vulnerability to adversarial attacks. To address this, [163] attempts to use MoE given its properties of more dynamic model selections compared to traditional methods [278], [279], [280]. This work shows that the MoE models exhibits higher robustness against instancespecific attacks, universal white-box adversarial attacks, and cross-model transfer attacks, maintaining relatively high accuracy under these attacks. Additionally, the MoE models with additional convolutional layers show even stronger resistance to attacks. These results indicate that MoE not only improves model performance but also enhances model robustness and stability. + +4) Image Generation. Image generation can produce realistic and diverse images, which is very useful in many applications [281], [282], [283], [284]. However, current image generation technologies still face various challenges such as low generation quality, limited diversity, and poor adaptability to complex tasks. By decomposing the complex problem of image generation into multiple simpler and core tasks, MoE leverages the collaboration among the experts to enhance the quality of generated images, improve the diversity of outputs, and further enrich detail representations. + +RAPHAEL [168] introduces two types of MoE models for temporal control and spatial settings during generation, respectively. On one hand, a spatial MoE layer is responsible for depicting different text concepts in specific image regions, allowing each text token to learn specific visual features through specialized experts. This can enhance the representation of different concepts. On the other hand, a temporal MoE layer focuses on processing these concepts at different time steps of the diffusion process to handle varying degrees of noise impact. This configuration results in billions of diffusion paths from the network input to the output, each path acting as a “painter” for specific concepts and image regions, achieving finer text-to-image alignment and improving the quality and aesthetic appeal of generated images. The application of MoE enables RAPHAEL to flexibly switch between multiple styles and closely adhere to text prompts. + +GANs [285] are known to struggle to learn multimodal data distributions when processing complex datasets, leading to generated images with poor-quality. To address this, [169] proposes MEGAN with multiple generator networks, where each network focuses on learning specific modal distributions in the dataset. This design allows each generator to focus on different data subsets, generating more diverse and higherquality images. + +A novel design of MoA is introduced in [32] by creating two attention paths, i.e., a personalized branch and a nonpersonalized prior branch, allowing the model to retain its powerful generation capabilities while minimizing interference with the personalized part. This specially designed MoA can intelligently adjust the generation process based on the input text and subject image. By optimizing the fusion of personalized and generic content, high-fidelity personalized image generation can be achieved without sacrificing image diversity or quality. Additionally, the learning routing mechanism in [32] dynamically manages pixel distribution at each level, further improving the performance for image generation tasks that involve multiple subjects and complex interactions. + +Text2Human [170] applies MoE to the transformer encoder based on the diffusion model [286], [287], [288], enabling conditional generation of clothing with different texture types. Specifically, the MoE model routes input features to different expert heads based on the texture attributes mentioned in the text prompt, with each expert head responsible for predicting tokens of specific textures. Based on the synthesis and control of more complex textures, this method increases the model’s ability to handle details while avoiding the computational burden of training separate samplers for each texture. + +# B. Natural Language Processing + +As a core research area of artificial intelligence, NLP focuses on enabling computers to understand, generate, and process human language [289], [290]. It plays a significant role in promoting human-computer interaction, information extraction, knowledge mining, cross-lingual communication, and automation. However, the field of NLP still faces challenges such as the trade-off between model capacity and computational cost, poor adaptability to multi-task and multidomain scenarios, sparse data and long-tail problems, insufficient reasoning and logical capabilities, and the need for personalization and dynamic adaptability. + +The MoE architecture effectively alleviates these challenges through mechanisms such as sparse activation and the allocation of different expert models for different tasks or domains. This not only reduces computational costs but also enhances model performance in multi-task, low-resource scenarios, and complex reasoning tasks, while supporting personalized services. In light of the application of MoE in the NLP field, this subsection will summarize and review relevant work from the perspectives of Natural Language Understanding (NLU) and Natural Language Generation (NLG). + +1) Natural Language Understanding. The advancement of NLU technology enables machines to understand and interpret human language, by bridging the gap between human communication and machine processing [291], [292]. This allows systems to perform tasks such as intent recognition, entity extraction, and semantic analysis [8], [293], which are crucial for applications such as virtual assistants, chatbots [294], sentiment analysis [295], and information extraction [296]. However, the further development of NLU is hindered by the complexity, ambiguity, and diversity of human language. MoE allows systems to dynamically leverage expert networks for different linguistic tasks or domains. For example, one expert may specialize in syntactic parsing, while another focuses on sentiment analysis, thereby enhancing the model’s ability to effectively handle various complex linguistic patterns. This specialization and adaptability make MoE a powerful method for extending and refining NLU systems, enabling more accurate and context-aware language understanding. Since the use of specially designed MoE architectures to enhance model performance in NLG tasks has not yet reached a scale sufficient for sub-domain classification, this section will only summarize some representative work in recent years. + +GLaM [20] introduces an MoE architecture to make the training and inference processes more efficient. It significantly reduces the required computational resources and energy consumption while maintaining or even improving model performance. This encouraging result highlights the great potentials in leveraging MoE to address the issue of high computational resource consumption in large-scale, intensive language models for NLU tasks. + +MoE-LPR [171] designs a two-phase training strategy for the MoE-based model. In the first phase, the original model is converted into an MoE architecture, and new expert modules are added, which improves the model’s capability for new languages without using original language data. In the second phase, a small amount of original language data is used for review, and a language prior routing mechanism is employed to restore and maintain the performance of the original language. Experimental results demonstrate the excellent scalability and stability of MoE-LPR, providing a new perspective for multilingual natural language understanding tasks. + +When speech is transcribed into text, errors from Automatic Speech Recognition (ASR) systems [297] often affect the accuracy of subsequent NLU components. To address this, [172] proposes an MoE-based framework, namely MoE-SLU, aiming to mitigate the impact of ASR errors on spoken language understanding performance. MoE-SLU employs three strategies to generate additional transcripts and uses MoE to weight and average these transcripts. By enhancing the model’s ability to capture keywords, MoE-SLU is more robust to ASR errors, achieving state-of-the-art performance on three benchmark SLU datasets. The performance of MoE-SLU can be further improved through regularized predictions. + +To address the issue of interference in multi-task learning, particularly among NLU tasks, MT-TaG [87] introduces a sparsely activated MoE architecture and designs a task-aware gating mechanism to route inputs to specific expert networks. Compared to traditional dense models, MT-TaG demonstrates superior performance in multi-task learning, especially in lowresource task transfer, efficient generalization, and handling unrelated tasks. MoPE-BAF [173] designs various soft prompt experts, including text prompts, image prompts, and unified prompts, based on a unified vision-language model to enrich unimodal representations and promote multimodal interaction. By introducing a block-aware prompt fusion mechanism, the model achieves cross-modal prompt attention across Transformer layers, smoothly transitioning from unimodal representations to multimodal fusion. Experimental results show that MoPE-BAF significantly improves performance in fewshot settings for multimodal sarcasm detection and sentiment analysis tasks, demonstrating the effectiveness of MoE in deep multimodal semantic understanding tasks. + +2) Natural Language Generation. NLG can transform structured data or concepts into natural and fluent text, widely applied in machine translation [298], dialogue systems [299], content creation [300], and information summarization [301], among other fields. To achieve diverse and precise language expression, NLG systems require strong model capacity to capture complex linguistic structures and contextual dependencies, while effectively handling interference in multi-task learning to maintain high performance across different scenarios. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible NLG systems. + +(a) Text Generation. Text generation has numerous applications in NLP. Through effective text processing, NLP systems can accurately understand, generate, and transform human language, which is crucial for achieving more advanced NLP applications. However, text processing still faces challenges such as insufficient generation diversity and uncontrollable generated content. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. + +In [174], MoE is introduced into the generator of a language GAN, leveraging multiple experts to collaboratively generate high-quality sentences, with each expert acting as a recurrent neural network that autoregressively produces the current token representation. Additionally, the Feature Statistics Alignment (FSA) paradigm is incorporated to further optimize the learning signals during generator training, making the generated text more closely aligned with the real data distribution. In RetGen [175], during inference, a retriever first obtains the top K most relevant documents and their corresponding probabilities. Then, K independently trained transformer-based generation models process each document along with the same context, combining the partially generated results with the current consensus to produce their respective output distributions. The final output distribution is a weighted combination of these independent generation results, with weights determined by the document relevance probabilities. This approach overcomes issues such as ignoring document relevance information when simply concatenating multiple documents as input, allowing the model to more effectively utilize document relevance information to guide the text generation process. LogicMoE [176] focuses on solving the problem of table-to-text generation. In the designed LogicMoE architecture, each expert acts as a specialized generator for a specific logical type, responsible for generating sentences that meet the requirements of that logical type. This design not only improves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. + +(b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content. This mechanism not only improves translation accuracy and fluency but also better handles complex scenarios involving multiple languages and domains, thereby enhancing the performance and adaptability of machine translation. + +[16] innovatively introduces Sparsely-Gated MoE technology for conditional computation. Applying MoE to language modeling and machine translation tasks not only significantly improves model performance on large datasets but also achieves efficient utilization of computational resources. Gshard [21] replaces traditional feedforward network layers with MoE layers and adopts conditional computation to achieve efficient utilization of computational resources and flexible expansion of model capacity. MoE-based Transformer models at different scales are designed and trained to meet translation needs from high-resource to low-resource languages. Experimental results show that the MoE models trained using GShard significantly improve translation quality, while achieving higher training efficiency and lower costs compared to dense models under the same hardware conditions. [178] also introduces a selective activation mechanism by replacing some dense model layers with MoE layers, significantly enhancing the model’s representational capacity with similar inference and training efficiency. This approach is particularly beneficial for high-resource languages due to the increased model capacity, while also helping low-resource languages reduce interference from unrelated languages. Additionally, to address the issues in large-scale MoE models, such as quick overfitting in low-resource directions, regularization and curriculum learning strategies are applied to optimize complex training dynamics. A good balance is achieved between cross-lingual transfer and interference in multilingual machine translation. [179] also leverages sparse activation mechanisms to significantly enhance the model’s representational capacity without increasing computational costs. + +In order to address the inefficiency issues encountered during the deployment and inference stages of MoE models, [180] proposes three optimization techniques, including dynamic gating, expert caching, and load balancing methods, to improve the inference efficiency of MoE models in language modeling and machine translation tasks. + +3) Multimodal Fusion. Multimodal fusion integrates information from text and other modalities, providing richer and more comprehensive data representations. In particular, multimodal fusion can capture contextual clues and semantic details that single modalities cannot provide, thereby enhancing the model’s understanding and predictive capabilities. In multimodal fusion scenarios, using MoE allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. This not only improves the overall performance of the model but also enhances its flexibility and scalability, allowing for better performance in complex multimodal tasks. + +LIMoE [182], as the first large-scale multimodal mixture of experts model, can simultaneously process image and text data and align their representations through contrastive learning. Additionally, this study demonstrates the organic emergence of modality-specific experts in LIMoE, where experts spontaneously specialize in handling specific types of data or tasks,. This indicates that the model not only effectively allocates resources for different tasks but also promotes cross-modal and cross-task knowledge transfer. LLaVA-MoLE [181] addresses the issue of data conflicts in multimodal large language models when fine-tuning with mixed-domain instruction data, by proposing the use of sparse LoRA Mixture of Experts (MoLE). The proposed method selects the most suitable LoRA expert for each input token based on its embedding features in the attention layers, allowing the model to adapt to inputs from different domains. This effectively mitigates performance degradation caused by mixing different types of instruction data. The Hunyuan model [183] is the first Chinese MoE multimodal large model, achieving a score of 71.95 on SuperClue-V, surpassing some international top models and demonstrating its unique advantages in the context of Chinese culture. + +# VI. FUTURE DIRECTIONS + +MoE models present significant opportunities for advancing machine learning in real-world applications, but they also face several challenges that must be addressed to unlock their full potentials. In this section, we discuss some of the key future research directions for MoE models. + +# A. Training stability and load balancing + +One of the most critical challenges in MoE models is ensuring training stability and load balancing among experts. Due to the dynamic nature of expert selection, some experts may receive significantly more data than others, leading to imbalanced training and potential model collapse. Future work should focus on developing more robust training strategies that ensure balanced utilization of experts. Techniques such as adaptive load balancing, dynamic expert capacity adjustment, and regularization methods that penalize over-reliance on specific experts could be explored. In some cases, theoretical studies on the convergence properties of MoE models under different load balancing strategies would provide valuable insights into designing more stable training algorithms. Additionally, the sparsity of MoE during training also poses challenges for stable model training, requiring more work to explore and optimize existing training strategies. + +# B. Training and system efficiency + +While MoE models offer the advantage of conditional computation, their training and inference efficiency remain a concern, especially in large-scale applications. Hardware advancements have reduced computational costs, but high latency remains a persistent issue. Future research should focus on optimizing hardware-software co-design, particularly for conditional computation. Techniques such as efficient memory management, reduced communication overhead, and parallel processing strategies could significantly improve the scalability of MoE models. Combining MoE with conditional computation techniques may also open new avenues for dynamic resource allocation and task-specific adaptations, further enhancing efficiency. + +# C. Architecture design + +The design of MoE architectures, particularly the determination of the number of experts and their specialization, is another area that requires further exploration. Current approaches often rely on heuristic methods or static setting to decide the number of experts, which may not be optimal for all tasks. Future work should investigate more principled approaches to determining the number of experts, such as using metalearning or reinforcement learning to dynamically adjust the architecture based on task complexity and data distribution. Additionally, novel architecture designs that integrate MoE with other neural network components, such as attention mechanisms or graph neural networks, could lead to more powerful and flexible models. + +# D. Theory development + +Improving the interpretability of MoE models remains a critical area for future work. While MoE architectures have demonstrated remarkable scalability and performance, the theoretical underpinnings of their behavior—such as expert routing decisions and clustering mechanisms—are not yet fully understood, especially in modern deep neural networks. More rigorous theoretical studies are needed to explain these characteristics, which could lead to more robust and reliable models. This would also shed light on the design of better gating function and expert network as well. + +# E. Tailored algorithm design + +MoE models have shown great promise in various machine learning paradigms, but their potential in combination with other learning paradigms remains underexplored. Future work should investigate the integration of MoE with other learning frameworks, such as contrastive learning, transfer learning, and self-supervised learning. For example, in federated learning, MoE models could be used to handle heterogeneous data distributions across clients by assigning different experts to different clients. Exploring these combinations could lead to more versatile and powerful learning systems. + +# F. New applications + +Although MoE has been extensively explored in NLP, its potential in other domains remains underexplored. For instance, in computer vision, recent work has shown that MoE models can achieve performance that continues to improve with training, suggesting untapped potential in areas like image segmentation, object detection, and multimodal learning. Further exploration in these domains could yield significant breakthroughs. Additionally, MoE models could be applied to emerging fields such as healthcare, robotics, autonomous systems, education, finance, as well as recommendation systems, where the ability to handle diverse and complex tasks is crucial. Developing MoE models tailored to these specific applications could lead to more effective and efficient solutions. + +# VII. CONCLUSION + +This comprehensive survey delves into the integration of the MoE architecture with various domains. Starting from various basic designs of the MoE architecture and training strategies, we highlight its synergy with important machine learning algorithms, alongside the recent theoretical advancements for understanding MoE. Furthermore, we provide a systematic summary of MoE in two critical application domains, computer vision and natural language processing, and shed light on the important future designs for improving the design and impact of MoE. We hope that this work will serve as a valuable reference for researchers in the field and beyond, elicit escalating attentions, and inspire further research ideas in MoE. + +# REFERENCES + +[1] A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, et al., “An image is worth 16x16 words: Transformers for image recognition at scale,” arXiv preprint arXiv:2010.11929, 2020. +[2] A. Kirillov, E. Mintun, N. Ravi, H. Mao, C. Rolland, L. Gustafson, T. Xiao, S. Whitehead, A. C. Berg, W.-Y. Lo, et al., “Segment anything,” in Proceedings of the IEEE/CVF international conference on computer vision, pp. 4015–4026, 2023. +[3] Y. Shi, N. Wang, and X. Guo, “Yolov: Making still image object detectors great at video object detection,” in Proceedings of the AAAI conference on artificial intelligence, vol. 37, pp. 2254–2262, 2023. +[4] A. Radford, J. W. Kim, T. Xu, G. Brockman, C. McLeavey, and I. Sutskever, “Robust speech recognition via large-scale weak supervision,” in International conference on machine learning, pp. 28492– 28518, PMLR, 2023. +[5] K. An, Q. Chen, C. Deng, Z. Du, C. Gao, Z. Gao, Y. Gu, T. He, H. Hu, K. Hu, et al., “Funaudiollm: Voice understanding and generation foundation models for natural interaction between humans and llms,” arXiv preprint arXiv:2407.04051, 2024. +[6] P. Rajpurkar, E. Chen, O. Banerjee, and E. J. Topol, “Ai in health and medicine,” Nature medicine, vol. 28, no. 1, pp. 31–38, 2022. +[7] L. Cao, “Autoai: Autonomous ai,” IEEE Intelligent Systems, vol. 37, no. 5, pp. 3–5, 2022. +[8] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “Bert: Pre-training of deep bidirectional transformers for language understanding,” in Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), pp. 4171–4186, 2019. +[9] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, et al., “Learning transferable visual models from natural language supervision,” in International conference on machine learning, pp. 8748–8763, PmLR, 2021. +[10] J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S. Anadkat, et al., “Gpt-4 technical report,” arXiv preprint arXiv:2303.08774, 2023. +[11] C. Thompson Neil, G. Kristjan, L. Keeheon, and F. Manso Gabriel, “The computational limits of deep learning,” ArXiv, Cornell University, juillet, 2020. +[12] C. Sun, A. Shrivastava, S. Singh, and A. Gupta, “Revisiting unreasonable effectiveness of data in deep learning era,” in Proceedings of the IEEE international conference on computer vision, pp. 843–852, 2017. +[13] R. A. Jacobs, M. I. Jordan, S. J. Nowlan, and G. E. Hinton, “Adaptive mixtures of local experts,” Neural computation, vol. 3, no. 1, pp. 79–87, 1991. +[14] M. I. Jordan and R. A. Jacobs, “Hierarchical mixtures of experts and the em algorithm,” Neural computation, vol. 6, no. 2, pp. 181–214, 1994. +[15] W. Fedus, B. Zoph, and N. Shazeer, “Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity,” Journal of Machine Learning Research, vol. 23, no. 120, pp. 1–39, 2022. +[16] N. Shazeer, A. Mirhoseini, K. Maziarz, A. Davis, Q. Le, G. Hinton, and J. Dean, “Outrageously large neural networks: The sparsely-gated mixture-of-experts layer,” arXiv preprint arXiv:1701.06538, 2017. +[17] C. Riquelme, J. Puigcerver, B. Mustafa, M. Neumann, R. Jenatton, A. Susano Pinto, D. Keysers, and N. Houlsby, “Scaling vision with sparse mixture of experts,” Advances in Neural Information Processing Systems, vol. 34, pp. 8583–8595, 2021. +[18] L. Wu, M. Liu, Y. Chen, D. Chen, X. Dai, and L. Yuan, “Residual mixture of experts,” arXiv preprint arXiv:2204.09636, 2022. +[19] Z. Fan, R. Sarkar, Z. Jiang, T. Chen, K. Zou, Y. Cheng, C. Hao, Z. Wang, et al., $\mathbf { \cdots } \mathbf { M } ^ { 3 }$ vit: Mixture-of-experts vision transformer for efficient multi-task learning with model-accelerator co-design,” Advances in Neural Information Processing Systems, vol. 35, pp. 28441–28457, 2022. +[20] N. Du, Y. Huang, A. M. Dai, S. Tong, D. Lepikhin, Y. Xu, M. Krikun, Y. Zhou, A. W. Yu, O. Firat, et al., “Glam: Efficient scaling of language models with mixture-of-experts,” in International conference on machine learning, pp. 5547–5569, PMLR, 2022. +[21] D. Lepikhin, H. Lee, Y. Xu, D. Chen, O. Firat, Y. Huang, M. Krikun, N. Shazeer, and Z. Chen, “Gshard: Scaling giant models with conditional computation and automatic sharding,” arXiv preprint arXiv:2006.16668, 2020. +[22] A. Q. Jiang, A. Sablayrolles, A. Roux, A. Mensch, B. Savary, C. Bamford, D. S. Chaplot, D. d. l. Casas, E. B. Hanna, F. Bressand, et al., “Mixtral of experts,” arXiv preprint arXiv:2401.04088, 2024. +[23] B. Li, Y. Shen, J. Yang, Y. Wang, J. Ren, T. Che, J. Zhang, and Z. Liu, “Sparse mixture-of-experts are domain generalizable learners,” arXiv preprint arXiv:2206.04046, 2022. +[24] Z. Chi, L. Dong, S. Huang, D. Dai, S. Ma, B. Patra, S. Singhal, P. Bajaj, X. Song, X.-L. Mao, et al., “On the representation collapse of sparse mixture of experts,” Advances in Neural Information Processing Systems, vol. 35, pp. 34600–34613, 2022. +[25] H. Nguyen, P. Akbarian, T. Pham, T. Nguyen, S. Zhang, and N. Ho, “Statistical advantages of perturbing cosine router in sparse mixture of experts,” arXiv preprint arXiv:2405.14131, 2024. +[26] L. Xu, M. Jordan, and G. E. Hinton, “An alternative model for mixtures of experts,” Advances in neural information processing systems, vol. 7, 1994. +[27] J. Puigcerver, C. Riquelme, B. Mustafa, and N. Houlsby, “From sparse to soft mixtures of experts,” arXiv preprint arXiv:2308.00951, 2023. +[28] J. Geweke and M. Keane, “Smoothly mixing regressions,” Journal of Econometrics, vol. 138, no. 1, pp. 252–290, 2007. +[29] Z. Chen, Y. Deng, Y. Wu, Q. Gu, and Y. Li, “Towards understanding mixture of experts in deep learning,” arXiv preprint arXiv:2208.02813, 2022. +[30] H. Li, S. Lin, L. Duan, Y. Liang, and N. B. Shroff, “Theory on mixtureof-experts in continual learning,” arXiv preprint arXiv:2406.16437, 2024. +[31] R. Csordas, P. Piekos, K. Irie, and J. Schmidhuber, “Switchhead: ´ Accelerating transformers with mixture-of-experts attention,” arXiv preprint arXiv:2312.07987, 2023. +[32] K.-C. Wang, D. Ostashev, Y. Fang, S. Tulyakov, and K. Aberman, “Moa: Mixture-of-attention for subject-context disentanglement in personalized image generation,” in SIGGRAPH Asia 2024 Conference Papers, SA ’24, (New York, NY, USA), Association for Computing Machinery, 2024. +[33] P. Jin, B. Zhu, L. Yuan, and S. Yan, “Moh: Multi-head attention as mixture-of-head attention,” arXiv preprint arXiv:2410.11842, 2024. +[34] M. J. Jung and J. Kim, “Pmoe: Progressive mixture of experts with asymmetric transformer for continual learning,” arXiv preprint arXiv:2407.21571, 2024. +[35] S. Pavlitska, C. Hubschneider, L. Struppek, and J. M. Zollner, ¨ “Sparsely-gated mixture-of-expert layers for CNN interpretability,” in 2023 International Joint Conference on Neural Networks (IJCNN), pp. 1–10, IEEE. +[36] Y. Yi, K.-Y. Chen, and H.-Y. Gu, “Mixture of CNN experts from multiple acoustic feature domain for music genre classification,” in 2019 Asia-Pacific Signal and Information Processing Association Annual Summit and Conference (APSIPA ASC), pp. 1250–1255, IEEE. +[37] L. Zhang, S. Huang, and W. Liu, “Enhancing mixture-of-experts by leveraging attention for fine-grained recognition,” vol. 24, pp. 4409– 4421. +[38] L. Zhang, S. Huang, W. Liu, and D. Tao, “Learning a mixture of granularity-specific experts for fine-grained categorization,” in 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 8330–8339, IEEE. +[39] S. Gross, M. Ranzato, and A. Szlam, “Hard mixtures of experts for large scale weakly supervised vision,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 6865– 6873, 2017. +[40] J. Zhu, X. Zhu, W. Wang, X. Wang, H. Li, X. Wang, and J. Dai, “Uniperceiver-moe: Learning sparse generalist models with conditional moes,” Advances in Neural Information Processing Systems, vol. 35, pp. 2664–2678, 2022. +[41] Z. Su, Z. Lin, X. Bai, X. Wu, Y. Xiong, H. Lian, G. Ma, H. Chen, G. Ding, W. Zhou, et al., “Maskmoe: Boosting token-level learning via routing mask in mixture-of-experts,” arXiv preprint arXiv:2407.09816, 2024. +[42] E. Pedicir, L. Miller, and L. Robinson, “Novel token-level recurrent routing for enhanced mixture-of-experts performance,” Authorea Preprints, 2024. +[43] Y. Li, S. Jiang, B. Hu, L. Wang, W. Zhong, W. Luo, L. Ma, and M. Zhang, “Uni-moe: Scaling unified multimodal llms with mixture of experts,” arXiv preprint arXiv:2405.11273, 2024. +[44] S. Kudugunta, Y. Huang, A. Bapna, M. Krikun, D. Lepikhin, M.-T. Luong, and O. Firat, “Beyond distillation: Task-level mixture-of-experts for efficient inference,” arXiv preprint arXiv:2110.03742, 2021. +[45] X. Shi, S. Wang, Y. Nie, D. Li, Z. Ye, Q. Wen, and M. Jin, “Time-moe: Billion-scale time series foundation models with mixture of experts,” arXiv preprint arXiv:2409.16040, 2024. +[46] Q. Huang, Z. An, N. Zhuang, M. Tao, C. Zhang, Y. Jin, K. Xu, L. Chen, S. Huang, and Y. Feng, “Harder tasks need more experts: Dynamic routing in moe models,” arXiv preprint arXiv:2403.07652, 2024. +[47] A. Wang, X. Sun, R. Xie, S. Li, J. Zhu, Z. Yang, P. Zhao, J. Han, Z. Kang, D. Wang, et al., “Hmoe: Heterogeneous mixture of experts for language modeling,” arXiv preprint arXiv:2408.10681, 2024. +[48] O. Irsoy and E. Alpaydın, “Dropout regularization in hierarchical mixture of experts,” Neurocomputing, vol. 419, pp. 148–156, 2021. +[49] J. He, J. Zhai, T. Antunes, H. Wang, F. Luo, S. Shi, and Q. Li, “Fastermoe: modeling and optimizing training of large-scale dynamic pretrained models,” in Proceedings of the 27th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, pp. 120–134, 2022. +[50] C. Hwang, W. Cui, Y. Xiong, Z. Yang, Z. Liu, H. Hu, Z. Wang, R. Salas, J. Jose, P. Ram, et al., “Tutel: Adaptive mixture-of-experts at scale,” Proceedings of Machine Learning and Systems, vol. 5, pp. 269–287, 2023. +[51] R. Sarkar, H. Liang, Z. Fan, Z. Wang, and C. Hao, “Edge-moe: Memory-efficient multi-task vision transformer architecture with tasklevel sparsity via mixture-of-experts,” in 2023 IEEE/ACM International Conference on Computer Aided Design (ICCAD), pp. 01–09, IEEE, 2023. +[52] S. Rajbhandari, C. Li, Z. Yao, M. Zhang, R. Y. Aminabadi, A. A. Awan, J. Rasley, and Y. He, “Deepspeed-moe: Advancing mixtureof-experts inference and training to power next-generation ai scale,” in International conference on machine learning, pp. 18332–18346, PMLR, 2022. +[53] A. Liu, B. Feng, B. Xue, B. Wang, B. Wu, C. Lu, C. Zhao, C. Deng, C. Zhang, C. Ruan, et al., “Deepseek-v3 technical report,” arXiv preprint arXiv:2412.19437, 2024. +[54] S. Singh, O. Ruwase, A. A. Awan, S. Rajbhandari, Y. He, and A. Bhatele, “A hybrid tensor-expert-data parallelism approach to optimize mixture-of-experts training,” in Proceedings of the 37th International Conference on Supercomputing, pp. 203–214, 2023. +[55] J. Yao, Q. Anthony, A. Shafi, H. Subramoni, and D. K. D. Panda, “Exploiting inter-layer expert affinity for accelerating mixture-of-experts model inference,” in 2024 IEEE International Parallel and Distributed Processing Symposium (IPDPS), pp. 915–925, IEEE, 2024. +[56] J. Yu, Y. Zhuge, L. Zhang, P. Hu, D. Wang, H. Lu, and Y. He, “Boosting continual learning of vision-language models via mixture-of-experts adapters,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 23219–23230, June 2024. +[57] R. Zhang, A. Cheng, Y. Luo, G. Dai, H. Yang, J. Liu, R. Xu, L. Du, Y. Du, Y. Jiang, et al., “Decomposing the neurons: Activation sparsity via mixture of experts for continual test time adaptation,” arXiv preprint arXiv:2405.16486, 2024. +[58] Y. Zhou, T. Lei, H. Liu, N. Du, Y. Huang, V. Zhao, A. M. Dai, Q. V. Le, J. Laudon, et al., “Mixture-of-experts with expert choice routing,” Advances in Neural Information Processing Systems, vol. 35, pp. 7103– 7114, 2022. +[59] W. Chen, Y. Zhou, N. Du, Y. Huang, J. Laudon, Z. Chen, and C. Cui, “Lifelong language pretraining with distribution-specialized experts,” in International Conference on Machine Learning, pp. 5383–5395, PMLR, 2023. +[60] S. Lee, J. Ha, D. Zhang, and G. Kim, “A neural dirichlet process mixture model for task-free continual learning,” arXiv preprint arXiv:2001.00689, 2020. +[61] G. Rypes´c, S. Cygert, V. Khan, T. Trzci ´ nski, B. Zieli ´ nski, and B. Twar- ´ dowski, “Divide and not forget: Ensemble of selectively trained experts in continual learning,” arXiv preprint arXiv:2401.10191, 2024. +[62] X. Yu, T. Rosing, and Y. Guo, “Evolve: Enhancing unsupervised continual learning with multiple experts,” in 2024 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 2355– 2366, IEEE. +[63] L. Li, Z. Wu, and Y. Ji, “Mote: Mixture of task-specific experts for pretrained model-based continual learning,” Available at SSRN 5035279, 2024. +[64] S. Park, “Learning more generalized experts by merging experts in mixture-of-experts,” arXiv preprint arXiv:2405.11530, 2024. +[65] H. Hihn and D. A. Braun, “Mixture-of-variational-experts for continual learning,” arXiv preprint arXiv:2110.12667, 2021. of experts meets prompt-based continual learning,” Advances in Neural Information Processing Systems, vol. 37, pp. 119025–119062, 2024. +[67] S. Lee and C. Park, “Continual traffic forecasting via mixture of experts,” arXiv preprint arXiv:2406.03140, 2024. +[68] M. Wang, H. Su, S. Wang, S. Wang, N. Yin, L. Shen, L. Lan, L. Yang, and X. Cao, “Graph convolutional mixture-of-experts learner network for long-tailed domain generalization,” pp. 1–1. +[69] Q. Chen, L. Zhu, H. He, X. Zhang, S. Zeng, Q. Ren, and Y. Lu, “Lowrank mixture-of-experts for continual medical image segmentation,” in Medical Image Computing and Computer Assisted Intervention – MICCAI 2024 (M. G. Linguraru, Q. Dou, A. Feragen, S. Giannarou, B. Glocker, K. Lekadir, and J. A. Schnabel, eds.), vol. 15008, pp. 382– 392, Springer Nature Switzerland. Series Title: Lecture Notes in Computer Science. +[70] Z. Wang, Z. Zhang, C.-Y. Lee, H. Zhang, R. Sun, X. Ren, G. Su, V. Perot, J. Dy, and T. Pfister, “Learning to prompt for continual learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 139–149, 2022. +[71] R. Aljundi, P. Chakravarty, and T. Tuytelaars, “Expert gate: Lifelong learning with a network of experts,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3366–3375, 2017. +[72] L. Wang, X. Zhang, Q. Li, J. Zhu, and Y. Zhong, “Coscl: Cooperation of small continual learners is stronger than a big one,” in European Conference on Computer Vision, pp. 254–271, Springer, 2022. +[73] T. Doan, S. I. Mirzadeh, and M. Farajtabar, “Continual learning beyond a single model,” in Conference on Lifelong Learning Agents, pp. 961– 991, PMLR, 2023. +[74] T. Zhong, Z. Chi, L. Gu, Y. Wang, Y. Yu, and J. Tang, “Metadmoe: Adapting to domain shift by meta-distillation from mixture-ofexperts,” Advances in Neural Information Processing Systems, vol. 35, pp. 22243–22257, 2022. +[75] Y. Dai, X. Li, J. Liu, Z. Tong, and L.-Y. Duan, “Generalizable person re-identification with relevance-aware mixture of experts,” in 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 16140–16149, IEEE. +[76] Z. Liu, X. Wang, C. Feng, X. Sun, W. Zhan, and X. Chen, “Metareinforcement learning with mixture of experts for generalizable multi access in heterogeneous wireless networks,” arXiv preprint arXiv:2412.03850, 2024. +[77] J. Guo, D. J. Shah, and R. Barzilay, “Multi-source domain adaptation with mixture of experts,” arXiv preprint arXiv:1809.02256, 2018. +[78] Q. Zhou, K.-Y. Zhang, T. Yao, R. Yi, S. Ding, and L. Ma, “Adaptive mixture of experts learning for generalizable face anti-spoofing,” in Proceedings of the 30th ACM International Conference on Multimedia, pp. 6009–6018. +[79] R. D. Nzoyem, D. A. Barton, and T. Deakin, “Towards foundational models for dynamical system reconstruction: Hierarchical metalearning via mixture of experts,” arXiv preprint arXiv:2502.05335, 2025. +[80] A. Hendawy, J. Peters, and C. D’Eramo, “Multi-task reinforcement learning with mixture of orthogonal experts,” arXiv preprint arXiv:2311.11385, 2023. +[81] Y. Yang, P.-T. Jiang, Q. Hou, H. Zhang, J. Chen, and B. Li, “Multi-task dense prediction via mixture of low-rank experts,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 27927–27937, 2024. +[82] L. Shen, A. Tang, E. Yang, G. Guo, Y. Luo, L. Zhang, X. Cao, B. Du, and D. Tao, “Efficient and effective weight-ensembling mixture of experts for multi-task model merging,” arXiv preprint arXiv:2410.21804, 2024. +[83] Z. Qin, Y. Cheng, Z. Zhao, Z. Chen, D. Metzler, and J. Qin, “Multitask mixture of sequential experts for user activity streams,” in Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 3083–3091, ACM. +[84] R. Aoki, F. Tung, and G. L. Oliveira, “Heterogeneous multi-task learning with expert diversity,” vol. 19, no. 6, pp. 3093–3102. +[85] G. Cheng, L. Dong, W. Cai, and C. Sun, “Multi-task reinforcement learning with attention-based mixture of experts,” IEEE Robotics and Automation Letters, vol. 8, no. 6, pp. 3812–3819, 2023. +[86] H. Ye and D. Xu, “Taskexpert: Dynamically assembling multi-task representations with memorial mixture-of-experts,” in Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 21828–21837, October 2023. +[87] S. Gupta, S. Mukherjee, K. Subudhi, E. Gonzalez, D. Jose, A. H. Awadallah, and J. Gao, “Sparsely activated mixture-of-experts are robust multi-task learners,” arXiv preprint arXiv:2204.07689, 2022. +[88] H. Hazimeh, Z. Zhao, A. Chowdhery, M. Sathiamoorthy, Y. Chen, R. Mazumder, L. Hong, and E. Chi, “Dselect-k: Differentiable selection in the mixture of experts with applications to multi-task learning,” Advances in Neural Information Processing Systems, vol. 34, pp. 29335– 29347, 2021. +[89] Z. Chen, Y. Shen, M. Ding, Z. Chen, H. Zhao, E. Learned-Miller, and C. Gan, “Mod-squad: Designing mixtures of experts as modular multitask learners,” in 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 11828–11837, IEEE. +[90] M. Reuss, J. Pari, P. Agrawal, and R. Lioutikov, “Efficient diffusion transformer policies with mixture of expert denoisers for multitask learning,” arXiv preprint arXiv:2412.12953, 2024. +[91] Z. Zhang, S. Liu, J. Yu, Q. Cai, X. Zhao, C. Zhang, Z. Liu, Q. Liu, H. Zhao, L. Hu, P. Jiang, and K. Gai, “M3oe: Multi-domain multitask mixture-of experts recommendation framework,” in Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 893–902. +[92] J. Xu, L. Sun, and D. Zhao, “MoME: Mixture-of-masked-experts for efficient multi-task recommendation,” in Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 2527–2531, ACM. +[93] J. Ma, Z. Zhao, X. Yi, J. Chen, L. Hong, and E. H. Chi, “Modeling task relationships in multi-task learning with multi-gate mixture-of-experts,” in Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 1930–1939, ACM. +[94] Z. Hou and D. Cao, “Estimating elastic parameters from digital rock images based on multi-task learning with multi-gate mixture-ofexperts,” vol. 213, p. 110310. +[95] S. Wang, Y. Li, H. Li, T. Zhu, Z. Li, and W. Ou, “Multi-task learning with calibrated mixture of insightful experts,” in 2022 IEEE 38th International Conference on Data Engineering (ICDE), pp. 3307–3319, IEEE. +[96] S. Sodhani, A. Zhang, and J. Pineau, “Multi-task reinforcement learning with context-based representations,” in International Conference on Machine Learning, pp. 9767–9779, PMLR, 2021. +[97] T. Chen, X. Chen, X. Du, A. Rashwan, F. Yang, H. Chen, Z. Wang, and Y. Li, “AdaMV-MoE: Adaptive multi-task vision mixture-ofexperts,” in 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 17300–17311, IEEE. +[98] H. Tang, J. Liu, M. Zhao, and X. Gong, “Progressive layered extraction (ple): A novel multi-task learning (mtl) model for personalized recommendations,” in Proceedings of the 14th ACM conference on recommender systems, pp. 269–278, 2020. +[99] C. Louizos, M. Welling, and D. P. Kingma, “Learning sparse neural networks through $l _ { - } 0$ regularization,” arXiv preprint arXiv:1712.01312, 2017. +[100] J. Ren, Y. Li, Z. Ding, W. Pan, and H. Dong, “Probabilistic mixtureof-experts for efficient deep reinforcement learning,” arXiv preprint arXiv:2104.09122, 2021. +[101] M. Gimelfarb, S. Sanner, and C.-G. Lee, “Contextual policy transfer in reinforcement learning domains via deep mixtures-of-experts,” in Proceedings of the Thirty-Seventh Conference on Uncertainty in Artificial Intelligence (C. de Campos and M. H. Maathuis, eds.), vol. 161 of Proceedings of Machine Learning Research, pp. 1787–1797, PMLR, 27–30 Jul 2021. +[102] T. Willi, J. Obando-Ceron, J. Foerster, K. Dziugaite, and P. S. Castro, “Mixture of experts in a mixture of rl settings,” arXiv preprint arXiv:2406.18420, 2024. +[103] S. Huang, Z. Zhang, T. Liang, Y. Xu, Z. Kou, C. Lu, G. Xu, Z. Xue, and H. Xu, “Mentor: Mixture-of-experts network with taskoriented perturbation for visual reinforcement learning,” arXiv preprint arXiv:2410.14972, 2024. +[104] G. Qiao, G. Liu, P. Poupart, and Z. Xu, “Multi-modal inverse constrained reinforcement learning from a mixture of demonstrations,” Advances in Neural Information Processing Systems, vol. 36, pp. 60384– 60396, 2023. +[105] D. Gupta, Y. Chow, A. Tulepbergenov, M. Ghavamzadeh, and C. Boutilier, “Offline reinforcement learning for mixture-of-expert dialogue management,” Advances in Neural Information Processing Systems, vol. 36, pp. 5912–5935, 2023. +[106] K. Samejima, K. Doya, and M. Kawato, “Inter-module credit assignment in modular reinforcement learning,” Neural Networks, vol. 16, no. 7, pp. 985–994, 2003. +[107] H. Van Seijen, B. Bakker, L. Kester, et al., “Switching between different state representations in reinforcement learning,” in Proceedings of the 26th IASTED International Conference on Artificial Intelligence and Applications, pp. 226–231, 2008. +[108] X. B. Peng, G. Berseth, and M. Van de Panne, “Terrain-adaptive locomotion skills using deep reinforcement learning,” ACM Transactions on Graphics (TOG), vol. 35, no. 4, pp. 1–12, 2016. +[109] V. C. Kumar, S. Ha, and C. K. Liu, “Learning a unified control policy for safe falling,” in 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 3940–3947, IEEE, 2017. +[110] X. B. Peng, M. Chang, G. Zhang, P. Abbeel, and S. Levine, “Mcp: Learning composable hierarchical control with multiplicative compositional policies,” Advances in neural information processing systems, vol. 32, 2019. +[111] R. Akrour, D. Tateo, and J. Peters, “Continuous action reinforcement learning from a mixture of interpretable experts,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 44, no. 10, pp. 6795– 6806, 2021. +[112] K. S. Refaat and K. Ding, “Accelerated deep reinforcement learning of terrain-adaptive locomotion skills,” in Deep RL Workshop NeurIPS 2021, 2021. +[113] W. Song, H. Zhao, P. Ding, C. Cui, S. Lyu, Y. Fan, and D. Wang, “Germ: A generalist robotic model with mixture-of-experts for quadruped robot,” in 2024 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 11879–11886, IEEE, 2024. +[114] M. Vincze, L. Ferrarotti, L. L. Custode, B. Lepri, and G. Iacca, “Smose: Sparse mixture of shallow experts for interpretable reinforcement learning in continuous control tasks,” arXiv preprint arXiv:2412.13053, 2024. +[115] J. Obando-Ceron, G. Sokar, T. Willi, C. Lyle, J. Farebrother, J. Foerster, G. K. Dziugaite, D. Precup, and P. S. Castro, “Mixtures of experts unlock parameter scaling for deep rl,” arXiv preprint arXiv:2402.08609, 2024. +[116] Y. Takahashi and M. Asada, “Modular learning systems for soccer robot,” in Proceedings of the Fourth International Symposium on Human and Artificial Intelligence Systems, pp. 370–375, Citeseer, 2004. +[117] Y. Takahashi, K. Edazawa, and M. Asada, “Modular learning system and scheduling for behavior acquisition in multi-agent environment,” in RoboCup 2004: Robot Soccer World Cup VIII 8, pp. 548–555, Springer, 2005. +[118] Y. Takahashi, K. Edazawa, K. Noma, and M. Asada, “Simultaneous learning to acquire competitive behaviors in multi-agent system based on a modular learning system,” in 2005 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 2016–2022, IEEE, 2005. +[119] K. Mulling, J. Kober, O. Kroemer, and J. Peters, “Learning to select and ¨ generalize striking movements in robot table tennis,” The International Journal of Robotics Research, vol. 32, no. 3, pp. 263–279, 2013. +[120] K. Li, M. Cucuringu, L. Sanchez-Betancourt, and T. Willi, “Mixtures´ of experts for scaling up neural networks in order execution,” in Proceedings of the 5th ACM International Conference on AI in Finance, pp. 669–676, 2024. +[121] M. Ewerton, G. Neumann, R. Lioutikov, H. B. Amor, J. Peters, and G. Maeda, “Learning multiple collaborative tasks with a mixture of interaction primitives,” in 2015 IEEE International Conference on Robotics and Automation (ICRA), pp. 1535–1542, IEEE, 2015. +[122] Y. Zhou, J. Gao, and T. Asfour, “Movement primitive learning and generalization: Using mixture density networks,” IEEE Robotics & Automation Magazine, vol. 27, no. 2, pp. 22–32, 2020. +[123] N. Freymuth, N. Schreiber, P. Becker, A. Taranovic, and G. Neumann, “Inferring versatile behavior from demonstrations by matching geometric descriptors,” arXiv preprint arXiv:2210.08121, 2022. +[124] V. Prasad, A. Kshirsagar, D. K. R. Stock-Homburg, J. Peters, and G. Chalvatzaki, “Moveint: Mixture of variational experts for learning human-robot interactions from demonstrations,” IEEE Robotics and Automation Letters, 2024. +[125] K. Doya, K. Samejima, K.-i. Katagiri, and M. Kawato, “Multiple model-based reinforcement learning,” Neural computation, vol. 14, no. 6, pp. 1347–1369, 2002. +[126] P. Tommasino, D. Caligiore, M. Mirolli, and G. Baldassarre, “A reinforcement learning architecture that transfers knowledge between skills when solving multiple tasks,” IEEE Transactions on Cognitive and Developmental Systems, vol. 11, no. 2, pp. 292–317, 2016. +[127] D. Peterson, P. Kanani, and V. J. Marathe, “Private federated learning with domain adaptation,” arXiv preprint arXiv:1912.06733, 2019. +[128] E. L. Zec, O. Mogren, J. Martinsson, L. R. Sutfeld, and D. Gillblad, ¨ “Specialized federated learning using a mixture of experts,” arXiv preprint arXiv:2010.02056, 2020. +[129] S. K. Pye and H. Yu, “Personalised federated learning: A combinational approach,” arXiv preprint arXiv:2108.09618, 2021. +[130] M. Reisser, C. Louizos, E. Gavves, and M. Welling, “Federated mixture of experts,” arXiv preprint arXiv:2107.06724, 2021. +[131] B. Guo, Y. Mei, D. Xiao, and W. Wu, “Pfl-moe: Personalized federated learning based on mixture of experts,” in Web and Big Data: 5th International Joint Conference, APWeb-WAIM 2021, Guangzhou, China, August 23–25, 2021, Proceedings, Part I 5, pp. 480–486, Springer, 2021. +[132] M. Isaksson, E. L. Zec, R. Coster, D. Gillblad, and ¨ S. Girdzijauskas, ˇ “Adaptive expert models for personalization in federated learning,” arXiv preprint arXiv:2206.07832, 2022. +[133] A. Ghosh, J. Chung, D. Yin, and K. Ramchandran, “An efficient framework for clustered federated learning,” Advances in neural information processing systems, vol. 33, pp. 19586–19597, 2020. +[134] V.-T. Tran, L. H. Khiem, and V. Q. Pham, “Revisiting sparse mixture of experts for resource-adaptive federated fine-tuning foundation models,” in ICLR 2025 Workshop on Modularity for Collaborative, Decentralized, and Continual Deep Learning, 2025. +[135] C. Dun, M. H. Garcia, G. Zheng, A. H. Awadallah, R. Sim, A. Kyrillidis, and D. Dimitriadis, “Fedjets: Efficient just-in-time personalization with federated mixture of experts,” arXiv preprint arXiv:2306.08586, 2023. +[136] C. E. Heinbaugh, E. Luz-Ricca, and H. Shao, “Data-free one-shot federated learning under very high statistical heterogeneity,” in The Eleventh International Conference on Learning Representations, 2023. +[137] S. Su, B. Li, and X. Xue, “One-shot federated learning without serverside training,” Neural Networks, vol. 164, pp. 203–215, 2023. +[138] H. Zeng, M. Xu, T. Zhou, X. Wu, J. Kang, Z. Cai, and D. Niyato, “Oneshot-but-not-degraded federated learning,” in Proceedings of the 32nd ACM International Conference on Multimedia, MM ’24, (New York, NY, USA), p. 11070–11079, Association for Computing Machinery, 2024. +[139] H. Li and L. Duan, “Theory of mixture-of-experts for mobile edge computing,” arXiv preprint arXiv:2412.15690, 2024. +[140] M. N. R. Chowdhury, S. Zhang, M. Wang, S. Liu, and P.-Y. Chen, “Patch-level routing in mixture-of-experts is provably sample-efficient for convolutional neural networks,” in International Conference on Machine Learning, pp. 6074–6114, PMLR, 2023. +[141] W. Jiang and M. A. Tanner, “Hierarchical mixtures-of-experts for exponential family regression models: approximation and maximum likelihood estimation,” Annals of Statistics, pp. 987–1011, 1999. +[142] W. Jiang and M. A. Tanner, “On the approximation rate of hierarchical mixtures-of-experts for generalized linear models,” Neural computation, vol. 11, no. 5, pp. 1183–1198, 1999. +[143] A. J. Zeevi, R. Meir, and V. Maiorov, “Error bounds for functional approximation and estimation using mixtures of experts,” IEEE Transactions on Information Theory, vol. 44, no. 3, pp. 1010–1025, 1998. +[144] H. D. Nguyen, L. R. Lloyd-Jones, and G. J. McLachlan, “A universal approximation theorem for mixture-of-experts models,” Neural computation, vol. 28, no. 12, pp. 2585–2593, 2016. +[145] E. F. Mendes and W. Jiang, “On convergence rates of mixtures of polynomial experts,” Neural computation, vol. 24, no. 11, pp. 3025– 3051, 2012. +[146] N. Ho, C.-Y. Yang, and M. I. Jordan, “Convergence rates for gaussian mixtures of experts,” Journal of Machine Learning Research, vol. 23, no. 323, pp. 1–81, 2022. +[147] H. Nguyen, T. Nguyen, and N. Ho, “Demystifying softmax gating function in gaussian mixture of experts,” Advances in Neural Information Processing Systems, vol. 36, pp. 4624–4652, 2023. +[148] H. Nguyen, P. Akbarian, F. Yan, and N. Ho, “Statistical perspective of top-k sparse softmax gating mixture of experts,” arXiv preprint arXiv:2309.13850, 2023. +[149] H. Nguyen, T. Nguyen, K. Nguyen, and N. Ho, “Towards convergence rates for parameter estimation in gaussian-gated mixture of experts,” in International Conference on Artificial Intelligence and Statistics, pp. 2683–2691, PMLR, 2024. +[150] H. Nguyen, N. Ho, and A. Rinaldo, “On least square estimation in softmax gating mixture of experts,” arXiv preprint arXiv:2402.02952, 2024. +[151] H. Nguyen, P. Akbarian, T. Nguyen, and N. Ho, “A general theory for softmax gating multinomial logistic mixture of experts,” arXiv preprint arXiv:2310.14188, 2023. +[152] T. C. Fung and S. C. Tseung, “Mixture of experts models for multilevel data: Modelling framework and approximation theory,” Neurocomput +[153] M. Videau, A. Leite, M. Schoenauer, and O. Teytaud, “Mixture of experts in image classification: What’s the sweet spot?,” arXiv preprint arXiv:2411.18322, 2024. +[154] X. Han, L. Wei, Z. Dou, Z. Wang, C. Qiang, X. He, Y. Sun, Z. Han, and Q. Tian, “Vimoe: An empirical study of designing vision mixtureof-experts,” arXiv preprint arXiv:2410.15732, 2024. +[155] A. Royer, I. Karmanov, A. Skliar, B. E. Bejnordi, and T. Blankevoort, “Revisiting single-gated mixtures of experts,” arXiv preprint arXiv:2304.05497, 2023. +[156] J. Zhang, X. Qu, T. Zhu, and Y. Cheng, “Clip-moe: Towards building mixture of experts for clip with diversified multiplet upcycling,” arXiv preprint arXiv:2409.19291, 2024. +[157] M. He, G. Lv, W. He, J. Fan, and G. Zeng, “DeepME: Deep mixture experts for large-scale image classification,” in Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, pp. 722–728, International Joint Conferences on Artificial Intelligence Organization. +[158] H. Nguyen, X. Han, C. W. Harris, S. Saria, and N. Ho, “On expert estimation in hierarchical mixture of experts: Beyond softmax gating functions,” arXiv preprint arXiv:2410.02935, 2024. +[159] K. Oksuz, S. Kuzucu, T. Joy, and P. K. Dokania, “Mocae: Mixture of calibrated experts significantly improves object detection,” arXiv preprint arXiv:2309.14976, 2023. +[160] X. Wang, Y. Jin, W. Wu, W. Zhang, L. Zhu, B. Jiang, and Y. Tian, “Object detection using event camera: A moe heat conduction based detector and a new benchmark dataset,” arXiv preprint arXiv:2412.06647, 2024. +[161] Y. Jain, H. Behl, Z. Kira, and V. Vineet, “Damex: Dataset-aware mixture-of-experts for visual understanding of mixture-of-datasets,” Advances in Neural Information Processing Systems, vol. 36, 2024. +[162] X. Feng, Y. Li, D. Chen, C. Qiao, J. Yuan, L. Yuan, and G. Hua, “Pluralistic salient object detection,” arXiv preprint arXiv:2409.02368, 2024. +[163] S. Pavlitska, E. Eisen, and J. M. Zollner, “Towards adversarial ro- ¨ bustness of model-level mixture-of-experts architectures for semantic segmentation,” arXiv preprint arXiv:2412.11608, 2024. +[164] C. Zhu, B. Xiao, L. Shi, S. Xu, and X. Zheng, “Customize segment anything model for multi-modal semantic segmentation with mixture of lora experts,” arXiv preprint arXiv:2412.04220, 2024. +[165] S. Pavlitskaya, C. Hubschneider, M. Weber, R. Moritz, F. Huger, P. Schlicht, and J. M. Zollner, “Using mixture of expert models to gain insights into semantic segmentation,” in 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pp. 1399–1406, IEEE. +[166] X. Wang, F. Yu, L. Dunlap, Y.-A. Ma, R. Wang, A. Mirhoseini, T. Darrell, and J. E. Gonzalez, “Deep mixture of experts via shallow embedding,” in Uncertainty in artificial intelligence, pp. 552–562, PMLR, 2020. +[167] L. Rossi, V. Bernuzzi, T. Fontanini, M. Bertozzi, and A. Prati, “Swin2- mose: A new single image supersolution model for remote sensing,” IET Image Processing, vol. 19, no. 1, p. e13303, 2025. +[168] Z. Xue, G. Song, Q. Guo, B. Liu, Z. Zong, Y. Liu, and P. Luo, “Raphael: Text-to-image generation via large mixture of diffusion paths,” Advances in Neural Information Processing Systems, vol. 36, pp. 41693–41706, 2023. +[169] D. K. Park, S. Yoo, H. Bahng, J. Choo, and N. Park, “Megan: Mixture of experts of generative adversarial networks for multimodal image generation,” arXiv preprint arXiv:1805.02481, 2018. +[170] Y. Jiang, S. Yang, H. Qiu, W. Wu, C. C. Loy, and Z. Liu, “Text2human: Text-driven controllable human image generation,” ACM Transactions on Graphics (TOG), vol. 41, no. 4, pp. 1–11, 2022. +[171] H. Zhou, Z. Wang, S. Huang, X. Huang, X. Han, J. Feng, C. Deng, W. Luo, and J. Chen, “Moe-lpr: Multilingual extension of large language models through mixture-of-experts with language priors routing,” arXiv preprint arXiv:2408.11396, 2024. +[172] X. Cheng, Z. Zhu, X. Zhuang, Z. Chen, Z. Huang, and Y. Zou, “MoESLU: Towards ASR-robust spoken language understanding via mixtureof-experts,” in Findings of the Association for Computational Linguistics ACL 2024, pp. 14868–14879, Association for Computational Linguistics. +[173] Z. Wu, H.-Y. Huang, F. Qu, and Y. Wu, “Mixture-of-promptexperts for multi-modal semantic understanding,” arXiv preprint arXiv:2403.11311, 2024. +[174] Y. Chai, Q. Yin, and J. Zhang, “Improved training of mixture-of-experts language gans,” in ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 1–5, 2023. +[175] Y. Zhang, S. Sun, X. Gao, Y. Fang, C. Brockett, M. Galley, J. Gao, and B. Dolan, “Retgen: A joint framework for retrieval and grounded text generation modeling,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 36, pp. 11739–11747, 2022. +[176] J. Wu and M. Hou, “Enhancing diversity for logical $<$ $ table-to-text$ generation with mixture of experts,” vol. 41, no. 4, p. e13533. +[177] E. Frantar and D. Alistarh, “Qmoe: Practical sub-1-bit compression of trillion-parameter models,” arXiv preprint arXiv:2310.16795, 2023. +[178] M. R. Costa-Jussa, J. Cross, O. C¸ elebi, M. Elbayad, K. Heafield, \` K. Heffernan, E. Kalbassi, J. Lam, D. Licht, J. Maillard, et al., “No language left behind: Scaling human-centered machine translation,” arXiv preprint arXiv:2207.04672, 2022. +[179] NLLB Team, M. R. Costa-jussa, J. Cross, O. C¸ elebi, M. Elbayad, \` K. Heafield, K. Heffernan, E. Kalbassi, J. Lam, D. Licht, J. Maillard, A. Sun, S. Wang, G. Wenzek, A. Youngblood, B. Akula, L. Barrault, G. M. Gonzalez, P. Hansanti, J. Hoffman, S. Jarrett, K. R. Sadagopan, D. Rowe, S. Spruit, C. Tran, P. Andrews, N. F. Ayan, S. Bhosale, S. Edunov, A. Fan, C. Gao, V. Goswami, F. Guzman, P. Koehn, ´ A. Mourachko, C. Ropers, S. Saleem, H. Schwenk, and J. Wang, “Scaling neural machine translation to 200 languages,” vol. 630, no. 8018, pp. 841–846. +[180] H. Huang, N. Ardalani, A. Sun, L. Ke, H.-H. S. Lee, A. Sridhar, S. Bhosale, C.-J. Wu, and B. Lee, “Towards moe deployment: Mitigating inefficiencies in mixture-of-expert (moe) inference,” arXiv preprint arXiv:2303.06182, 2023. +[181] S. Chen, Z. Jie, and L. Ma, “Llava-mole: Sparse mixture of lora experts for mitigating data conflicts in instruction finetuning mllms,” arXiv preprint arXiv:2401.16160, 2024. +[182] B. Mustafa, C. Riquelme, J. Puigcerver, R. Jenatton, and N. Houlsby, “Multimodal contrastive learning with limoe: the language-image mixture of experts,” Advances in Neural Information Processing Systems, vol. 35, pp. 9564–9576, 2022. +[183] X. Sun, Y. Chen, Y. Huang, R. Xie, J. Zhu, K. Zhang, S. Li, Z. Yang, J. Han, X. Shu, et al., “Hunyuan-large: An open-source moe model with 52 billion activated parameters by tencent,” arXiv preprint arXiv:2411.02265, 2024. +[184] A. Yang, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Li, D. Liu, F. Huang, H. Wei, et al., “Qwen2. 5 technical report,” arXiv preprint arXiv:2412.15115, 2024. +[185] T. Wei, B. Zhu, L. Zhao, C. Cheng, B. Li, W. Lu, P. Cheng, ¨ J. Zhang, X. Zhang, L. Zeng, et al., “Skywork-moe: A deep dive into training techniques for mixture-of-experts language models, 2024,” URL https://arxiv. org/abs/2406.06563, 2024. +[186] N. Gupta and J. Yip, “Dbrx: Creating an llm from scratch using databricks,” in Databricks Data Intelligence Platform: Unlocking the GenAI Revolution, pp. 311–330, Springer, 2024. +[187] B. Zoph, I. Bello, S. Kumar, N. Du, Y. Huang, J. Dean, N. Shazeer, and W. Fedus, “St-moe: Designing stable and transferable sparse expert models,” arXiv preprint arXiv:2202.08906, 2022. +[188] T. Zhu, X. Qu, D. Dong, J. Ruan, J. Tong, C. He, and Y. Cheng, “Llama-moe: Building mixture-of-experts from llama with continual pre-training,” in Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 15913–15923, 2024. +[189] X. Qu, D. Dong, X. Hu, T. Zhu, W. Sun, and Y. Cheng, “Llama-moe v2: Exploring sparsity of llama from perspective of mixture-of-experts with post-training,” arXiv preprint arXiv:2411.15708, 2024. +[190] A. Vavre, E. He, D. Liu, Z. Yan, J. Yang, N. Tajbakhsh, and A. Aithal, “Llama 3 meets moe: Efficient upcycling,” arXiv preprint arXiv:2412.09952, 2024. +[191] F. Xue, Z. Zheng, Y. Fu, J. Ni, Z. Zheng, W. Zhou, and Y. You, “Openmoe: An early effort on open mixture-of-experts language models,” arXiv preprint arXiv:2402.01739, 2024. +[192] B. Lenz, O. Lieber, A. Arazi, A. Bergman, A. Manevich, B. Peleg, B. Aviram, C. Almagor, C. Fridman, D. Padnos, et al., “Jamba: Hybrid transformer-mamba language models,” in The Thirteenth International Conference on Learning Representations, 2025. +[193] J. Team, B. Lenz, A. Arazi, A. Bergman, A. Manevich, B. Peleg, B. Aviram, C. Almagor, C. Fridman, D. Padnos, et al., “Jamba1.5: Hybrid transformer-mamba models at scale,” arXiv preprint arXiv:2408.12570, 2024. +[194] O. Lieber, B. Lenz, H. Bata, G. Cohen, J. Osin, I. Dalmedigos, E. Safahi, S. Meirom, Y. Belinkov, S. Shalev-Shwartz, et al., “Jamba: A hybrid transformer-mamba language model,” arXiv preprint arXiv:2403.19887, 2024. +[195] S. Wu, J. Luo, X. Chen, L. Li, X. Zhao, T. Yu, C. Wang, Y. Wang, F. Wang, W. Qiao, et al., “Yuan 2.0-m32: Mixture of experts with attention router,” arXiv preprint arXiv:2405.17976, 2024. +[196] C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu, “Exploring the limits of transfer learning with a unified text-to-text transformer,” Journal of machine learning research, vol. 21, no. 140, pp. 1–67, 2020. +[197] P.-E. Sarlin, D. DeTone, T. Malisiewicz, and A. Rabinovich, “Superglue: Learning feature matching with graph neural networks,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 4938–4947, 2020. +[198] D. Dai, C. Deng, C. Zhao, R. Xu, H. Gao, D. Chen, J. Li, W. Zeng, X. Yu, Y. Wu, et al., “Deepseekmoe: Towards ultimate expert specialization in mixture-of-experts language models,” arXiv preprint arXiv:2401.06066, 2024. +[199] DeepSeek-AI, A. Liu, B. Feng, B. Wang, B. Wang, B. Liu, C. Zhao, C. Dengr, C. Ruan, D. Dai, D. Guo, D. Yang, D. Chen, D. Ji, E. Li, F. Lin, F. Luo, G. Hao, G. Chen, G. Li, H. Zhang, H. Xu, H. Yang, H. Zhang, H. Ding, H. Xin, H. Gao, H. Li, H. Qu, J. L. Cai, J. Liang, J. Guo, J. Ni, J. Li, J. Chen, J. Yuan, J. Qiu, J. Song, K. Dong, K. Gao, K. Guan, L. Wang, L. Zhang, L. Xu, L. Xia, L. Zhao, L. Zhang, M. Li, M. Wang, M. Zhang, M. Zhang, M. Tang, M. Li, N. Tian, P. Huang, P. Wang, P. Zhang, Q. Zhu, Q. Chen, Q. Du, R. J. Chen, R. L. Jin, R. Ge, R. Pan, R. Xu, R. Chen, S. S. Li, S. Lu, S. Zhou, S. Chen, S. Wu, S. Ye, S. Ma, S. Wang, S. Zhou, S. Yu, S. Zhou, S. Zheng, T. Wang, T. Pei, T. Yuan, T. Sun, W. L. Xiao, W. Zeng, W. An, W. Liu, W. Liang, W. Gao, W. Zhang, X. Q. Li, X. Jin, X. Wang, X. Bi, X. Liu, X. Wang, X. Shen, X. Chen, X. Chen, X. Nie, X. Sun, X. Wang, X. Liu, X. Xie, X. Yu, X. Song, X. Zhou, X. Yang, X. Lu, X. Su, Y. Wu, Y. K. Li, Y. X. Wei, Y. X. Zhu, Y. Xu, Y. Huang, Y. Li, Y. Zhao, Y. Sun, Y. Li, Y. Wang, Y. Zheng, Y. Zhang, Y. Xiong, Y. Zhao, Y. He, Y. Tang, Y. Piao, Y. Dong, Y. Tan, Y. Liu, Y. Wang, Y. Guo, Y. Zhu, Y. Wang, Y. Zou, Y. Zha, Y. Ma, Y. Yan, Y. You, Y. Liu, Z. Z. Ren, Z. Ren, Z. Sha, Z. Fu, Z. Huang, Z. Zhang, Z. Xie, Z. Hao, Z. Shao, Z. Wen, Z. Xu, Z. Zhang, Z. Li, Z. Wang, Z. Gu, Z. Li, and Z. Xie, “DeepSeek-v2: A strong, economical, and efficient mixture-of-experts language model,” arXiv preprint arXiv:2405.04434, no. arXiv:2405.04434. +[200] DeepSeek-AI, D. Guo, D. Yang, H. Zhang, J. Song, R. Zhang, R. Xu, Q. Zhu, S. Ma, P. Wang, X. Bi, X. Zhang, X. Yu, Y. Wu, Z. F. Wu, Z. Gou, Z. Shao, Z. Li, Z. Gao, A. Liu, B. Xue, B. Wang, B. Wu, B. Feng, C. Lu, C. Zhao, C. Deng, C. Zhang, C. Ruan, D. Dai, D. Chen, D. Ji, E. Li, F. Lin, F. Dai, F. Luo, G. Hao, G. Chen, G. Li, H. Zhang, H. Bao, H. Xu, H. Wang, H. Ding, H. Xin, H. Gao, H. Qu, H. Li, J. Guo, J. Li, J. Wang, J. Chen, J. Yuan, J. Qiu, J. Li, J. L. Cai, J. Ni, J. Liang, J. Chen, K. Dong, K. Hu, K. Gao, K. Guan, K. Huang, K. Yu, L. Wang, L. Zhang, L. Zhao, L. Wang, L. Zhang, L. Xu, L. Xia, M. Zhang, M. Zhang, M. Tang, M. Li, M. Wang, M. Li, N. Tian, P. Huang, P. Zhang, Q. Wang, Q. Chen, Q. Du, R. Ge, R. Zhang, R. Pan, R. Wang, R. J. Chen, R. L. Jin, R. Chen, S. Lu, S. Zhou, S. Chen, S. Ye, S. Wang, S. Yu, S. Zhou, S. Pan, S. S. Li, S. Zhou, S. Wu, S. Ye, T. Yun, T. Pei, T. Sun, T. Wang, W. Zeng, W. Zhao, W. Liu, W. Liang, W. Gao, W. Yu, W. Zhang, W. L. Xiao, W. An, X. Liu, X. Wang, X. Chen, X. Nie, X. Cheng, X. Liu, X. Xie, X. Liu, X. Yang, X. Li, X. Su, X. Lin, X. Q. Li, X. Jin, X. Shen, X. Chen, X. Sun, X. Wang, X. Song, X. Zhou, X. Wang, X. Shan, Y. K. Li, Y. Q. Wang, Y. X. Wei, Y. Zhang, Y. Xu, Y. Li, Y. Zhao, Y. Sun, Y. Wang, Y. Yu, Y. Zhang, Y. Shi, Y. Xiong, Y. He, Y. Piao, Y. Wang, Y. Tan, Y. Ma, Y. Liu, Y. Guo, Y. Ou, Y. Wang, Y. Gong, Y. Zou, Y. He, Y. Xiong, Y. Luo, Y. You, Y. Liu, Y. Zhou, Y. X. Zhu, Y. Xu, Y. Huang, Y. Li, Y. Zheng, Y. Zhu, Y. Ma, Y. Tang, Y. Zha, Y. Yan, Z. Z. Ren, Z. Ren, Z. Sha, Z. Fu, Z. Xu, Z. Xie, Z. Zhang, Z. Hao, Z. Ma, Z. Yan, Z. Wu, Z. Gu, Z. Zhu, Z. Liu, Z. Li, Z. Xie, Z. Song, Z. Pan, Z. Huang, Z. Xu, Z. Zhang, and Z. Zhang, “DeepSeek-r1: Incentivizing reasoning capability in LLMs via reinforcement learning,” arXiv preprint arXiv:2501.12948, no. arXiv:2501.12948, 2025. +[201] R. Akrour, D. Tateo, and J. Peters, “Continuous action reinforcement learning from a mixture of interpretable experts,” vol. 44, no. 10, pp. 6795–6806. +[202] T. C. Fung, A. L. Badescu, and X. S. Lin, “A class of mixture of experts models for general insurance: Theoretical developments,” vol. 89, pp. 111–127. +[203] S. E. Yuksel, J. N. Wilson, and P. D. Gader, “Twenty years of mixture of experts,” IEEE transactions on neural networks and learning systems, vol. 23, no. 8, pp. 1177–1193, 2012. +[204] S. Masoudnia and R. Ebrahimpour, “Mixture of experts: a literature survey,” Artificial Intelligence Review, vol. 42, pp. 275–293, 2014. +[205] W. Cai, J. Jiang, F. Wang, J. Tang, S. Kim, and J. Huang, “A survey on mixture of experts,” arXiv preprint arXiv:2407.06204, 2024. +[206] W. Gan, Z. Ning, Z. Qi, and P. S. Yu, “Mixture of experts (moe): A big data perspective,” arXiv preprint arXiv:2501.16352, 2025. +[207] J. Liu, P. Tang, W. Wang, Y. Ren, X. Hou, P.-A. Heng, M. Guo, and C. Li, “A survey on inference optimization techniques for mixture of experts models,” arXiv preprint arXiv:2412.14219, 2024. +[208] A. Vats, R. Raja, V. Jain, and A. Chadha, “The evolution of mixture of experts: A survey from basics to breakthroughs,” Preprints (August 2024), 2024. +[209] V. Dimitri, B. Regina, and M. Alfonz, “A survey on mixture of experts: Advancements, challenges, and future directions,” Authorea Preprints, 2025. +[210] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin, “Attention is all you need,” Advances in neural information processing systems, vol. 30, 2017. +[211] S. Ingrassia, S. C. Minotti, and G. Vittadini, “Local statistical modeling via a cluster-weighted approach with elliptical distributions,” Journal of classification, vol. 29, pp. 363–401, 2012. +[212] J. Geweke, M. Keane, and D. Runkle, “Alternative computational approaches to inference in the multinomial probit model,” The review of economics and statistics, pp. 609–632, 1994. +[213] M. P. Keane, “A note on identification in the multinomial probit model,” Journal of Business & Economic Statistics, vol. 10, no. 2, pp. 193–200, 1992. +[214] W. Peebles and S. Xie, “Scalable diffusion models with transformers,” in Proceedings of the IEEE/CVF international conference on computer vision, pp. 4195–4205, 2023. +[215] B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, et al., “Language models are few-shot learners,” arXiv preprint arXiv:2005.14165, vol. 1, p. 3, 2020. +[216] E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al., “Lora: Low-rank adaptation of large language models.,” ICLR, vol. 1, no. 2, p. 3, 2022. +[217] S. Lin, L. Yang, D. Fan, and J. Zhang, “Trgp: Trust region gradient projection for continual learning,” arXiv preprint arXiv:2202.02931, 2022. +[218] S. Lin, L. Yang, D. Fan, and J. Zhang, “Beyond not-forgetting: Continual learning with backward knowledge transfer,” Advances in Neural Information Processing Systems, vol. 35, pp. 16165–16177, 2022. +[219] R. Aljundi, K. Kelchtermans, and T. Tuytelaars, “Task-free continual learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 11254–11263, 2019. +[220] D.-W. Zhou, H.-L. Sun, J. Ning, H.-J. Ye, and D.-C. Zhan, “Continual learning with pre-trained models: A survey,” arXiv preprint arXiv:2401.16386, 2024. +[221] Q. Sun, Y. Liu, T.-S. Chua, and B. Schiele, “Meta-transfer learning for few-shot learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 403–412, 2019. +[222] Y. Chen, Z. Liu, H. Xu, T. Darrell, and X. Wang, “Meta-baseline: Exploring simple meta-learning for few-shot learning,” in Proceedings of the IEEE/CVF international conference on computer vision, pp. 9062– 9071, 2021. +[223] M. Ren, E. Triantafillou, S. Ravi, J. Snell, K. Swersky, J. B. Tenenbaum, H. Larochelle, and R. S. Zemel, “Meta-learning for semisupervised few-shot classification,” arXiv preprint arXiv:1803.00676, 2018. +[224] A. Santoro, S. Bartunov, M. Botvinick, D. Wierstra, and T. Lillicrap, “Meta-learning with memory-augmented neural networks,” in International conference on machine learning, pp. 1842–1850, PMLR, 2016. +[225] J. Snell, K. Swersky, and R. Zemel, “Prototypical networks for few-shot learning,” Advances in neural information processing systems, vol. 30, 2017. +[226] C. Finn, P. Abbeel, and S. Levine, “Model-agnostic meta-learning for fast adaptation of deep networks,” in International conference on machine learning, pp. 1126–1135, PMLR, 2017. +[227] A. Nichol and J. Schulman, “Reptile: a scalable metalearning algorithm,” arXiv preprint arXiv:1803.02999, vol. 2, no. 3, p. 4, 2018. +[228] M. Garnelo, J. Schwarz, D. Rosenbaum, F. Viola, D. J. Rezende, S. Eslami, and Y. W. Teh, “Neural processes,” arXiv preprint arXiv:1807.01622, 2018. +[229] N. Goring, F. Hess, M. Brenner, Z. Monfared, and D. Durstewitz, “Out- ¨ of-domain generalization in dynamical systems reconstruction,” arXiv preprint arXiv:2402.18377, 2024. +[230] R. D. Nzoyem, D. A. Barton, and T. Deakin, “Extending contextual self-modulation: Meta-learning across modalities, task dimensionalities, and data regimes,” arXiv preprint arXiv:2410.01655, 2024. +[231] A. Farahani, S. Voghoei, K. Rasheed, and H. R. Arabnia, “A brief review of domain adaptation,” Advances in data science and information engineering: proceedings from ICDATA 2020 and IKE 2020, pp. 877– 894, 2021. +[232] O. Vinyals, C. Blundell, T. Lillicrap, D. Wierstra, et al., “Matching networks for one shot learning,” Advances in neural information processing systems, vol. 29, 2016. +[233] K. Rakelly, A. Zhou, C. Finn, S. Levine, and D. Quillen, “Efficient offpolicy meta-reinforcement learning via probabilistic context variables,” in International conference on machine learning, pp. 5331–5340, PMLR, 2019. +[234] T. Haarnoja, A. Zhou, P. Abbeel, and S. Levine, “Soft actor-critic: Offpolicy maximum entropy deep reinforcement learning with a stochastic actor,” in International conference on machine learning, pp. 1861– 1870, Pmlr, 2018. +[235] R. Caruana, “Multitask learning,” Machine learning, vol. 28, pp. 41– 75, 1997. +[236] K.-H. Thung and C.-Y. Wee, “A brief review on multi-task learning,” Multimedia Tools and Applications, vol. 77, no. 22, pp. 29705–29725, 2018. +[237] Y. Zhang and Q. Yang, “An overview of multi-task learning,” National Science Review, vol. 5, no. 1, pp. 30–43, 2018. +[238] N. Vithayathil Varghese and Q. H. Mahmoud, “A survey of multi-task deep reinforcement learning,” Electronics, vol. 9, no. 9, p. 1363, 2020. +[239] C. D’Eramo, D. Tateo, A. Bonarini, M. Restelli, and J. Peters, “Sharing knowledge in multi-task deep reinforcement learning,” arXiv preprint arXiv:2401.09561, 2024. +[240] L. Sun, H. Zhang, W. Xu, and M. Tomizuka, “Paco: Parametercompositional multi-task reinforcement learning,” Advances in Neural Information Processing Systems, vol. 35, pp. 21495–21507, 2022. +[241] C. Devin, A. Gupta, T. Darrell, P. Abbeel, and S. Levine, “Learning modular neural network policies for multi-task and multi-robot transfer,” in 2017 IEEE international conference on robotics and automation (ICRA), pp. 2169–2176, IEEE, 2017. +[242] R. Yang, H. Xu, Y. Wu, and X. Wang, “Multi-task reinforcement learning with soft modularization,” Advances in Neural Information Processing Systems, vol. 33, pp. 4767–4777, 2020. +[243] Q. Zhang, X. Liao, Q. Liu, J. Xu, and B. Zheng, “Leaving no one behind: A multi-scenario multi-task meta learning approach for advertiser modeling,” in Proceedings of the Fifteenth ACM International Conference on Web Search and Data Mining, pp. 1368–1376, 2022. +[244] A. Graves and A. Graves, “Long short-term memory,” Supervised sequence labelling with recurrent neural networks, pp. 37–45, 2012. +[245] R. Cui, D. Cao, Q. Liu, Z. Zhu, and Y. Jia, “Vp and vs prediction from digital rock images using a combination of u-net and convolutional neural networks,” Geophysics, vol. 86, no. 1, pp. MR27–MR37, 2021. +[246] S. Karimpouli, S. Khoshlesan, E. H. Saenger, and H. H. Koochi, “Application of alternative digital rock physics methods in a real case study: a challenge between clean and cemented samples,” Geophysical Prospecting, vol. 66, no. 4, pp. 767–783, 2018. +[247] J. Kober, J. A. Bagnell, and J. Peters, “Reinforcement learning in robotics: A survey,” The International Journal of Robotics Research, vol. 32, no. 11, pp. 1238–1274, 2013. +[248] I. Szita, “Reinforcement learning in games,” in Reinforcement Learning: State-of-the-art, pp. 539–577, Springer, 2012. +[249] B. R. Kiran, I. Sobh, V. Talpaert, P. Mannion, A. A. Al Sallab, S. Yogamani, and P. Perez, “Deep reinforcement learning for autonomous ´ driving: A survey,” IEEE transactions on intelligent transportation systems, vol. 23, no. 6, pp. 4909–4926, 2021. +[250] C. Yu, J. Liu, S. Nemati, and G. Yin, “Reinforcement learning in healthcare: A survey,” ACM Computing Surveys (CSUR), vol. 55, no. 1, pp. 1–36, 2021. +[251] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, “Proximal policy optimization algorithms,” arXiv preprint arXiv:1707.06347, 2017. +[252] V. Feinberg, A. Wan, I. Stoica, M. I. Jordan, J. E. Gonzalez, and S. Levine, “Model-based value estimation for efficient model-free reinforcement learning,” arXiv preprint arXiv:1803.00101, 2018. +[253] S. Levine, A. Kumar, G. Tucker, and J. Fu, “Offline reinforcement learning: Tutorial, review, and perspectives on open problems,” arXiv preprint arXiv:2005.01643, 2020. +[254] O. Celik, A. Taranovic, and G. Neumann, “Acquiring diverse skills using curriculum reinforcement learning with mixture of experts,” rYi, print arXiv:2403.06966 +[255] T. Kurutach, I. Clavera, Y. Duan, A. Tamar, and P. Abbeel, “Model-ensemble trust-region policy optimization,” arXiv preprint arXiv:1802.10592, 2018. +[256] K. Lee, M. Laskin, A. Srinivas, and P. Abbeel, “Sunrise: A simple unified framework for ensemble learning in deep reinforcement learning,” in International Conference on Machine Learning, pp. 6131–6141, PMLR, 2021. +[257] Z. Yang, K. Ren, X. Luo, M. Liu, W. Liu, J. Bian, W. Zhang, and D. Li, “Towards applicable reinforcement learning: Improving the generalization and sample efficiency with policy ensemble,” arXiv preprint arXiv:2205.09284, 2022. +[258] X. Lou, J. Guo, J. Zhang, J. Wang, K. Huang, and Y. Du, “Pecan: Leveraging policy ensemble for context-aware zero-shot human-ai coordination,” arXiv preprint arXiv:2301.06387, 2023. +[259] H. Mohammadi, E. Nazerfard, and T. Firoozi, “Reinforcement learningbased mixture of vision transformers for video violence recognition,” arXiv preprint arXiv:2310.03108, 2023. +[260] Z. Wei, D. Chen, Y. Zhang, D. Wen, X. Nie, and L. Xie, “Deep reinforcement learning portfolio model based on mixture of experts,” vol. 55, no. 5, p. 347. +[261] H. B. McMahan, E. Moore, D. Ramage, and B. A. y Arcas, “Federated learning of deep networks using model averaging,” arXiv preprint arXiv:1602.05629, vol. 2, no. 2, pp. 15–18, 2016. +[262] Z. Liu, L. Yang, Z. Fan, H. Peng, and P. S. Yu, “Federated social recommendation with graph neural network,” ACM Transactions on Intelligent Systems and Technology (TIST), vol. 13, no. 4, pp. 1–24, 2022. +[263] C. Wu, F. Wu, Y. Cao, Y. Huang, and X. Xie, “Fedgnn: Federated graph neural network for privacy-preserving recommendation,” arXiv preprint arXiv:2102.04925, 2021. +[264] A. Flanagan, W. Oyomno, A. Grigorievskiy, K. E. Tan, S. A. Khan, and M. Ammad-Ud-Din, “Federated multi-view matrix factorization for personalized recommendations,” in Machine Learning and Knowledge Discovery in Databases: European Conference, ECML PKDD 2020, Ghent, Belgium, September 14–18, 2020, Proceedings, Part II, (Berlin, Heidelberg), p. 324–347, Springer-Verlag, 2020. +[265] B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, “Communication-efficient learning of deep networks from decentralized data,” in Artificial intelligence and statistics, pp. 1273–1282, PMLR, 2017. +[266] N. Guha, A. Talwalkar, and V. Smith, “One-shot federated learning,” arXiv preprint arXiv:1902.11175, 2019. +[267] D. Eigen, M. Ranzato, and I. Sutskever, “Learning factored representations in a deep mixture of experts,” arXiv preprint arXiv:1312.4314, 2013. +[268] M. Aitkin and N. Longford, “Statistical modelling issues in school effectiveness studies,” Journal of the Royal Statistical Society: Series A (General), vol. 149, no. 1, pp. 1–26, 1986. +[269] H. Goldstein, “Multilevel mixed linear model analysis using iterative generalized least squares,” Biometrika, vol. 73, no. 1, pp. 43–56, 1986. +[270] H. Goldstein, Multilevel statistical models. John Wiley & Sons, 2011. +[271] M. McCloskey and N. J. Cohen, “Catastrophic interference in connectionist networks: The sequential learning problem,” in Psychology of learning and motivation, vol. 24, pp. 109–165, Elsevier, 1989. +[272] J. Kirkpatrick, R. Pascanu, N. Rabinowitz, J. Veness, G. Desjardins, A. A. Rusu, K. Milan, J. Quan, T. Ramalho, A. Grabska-Barwinska, et al., “Overcoming catastrophic forgetting in neural networks,” Proceedings of the national academy of sciences, vol. 114, no. 13, pp. 3521–3526, 2017. +[273] B. Lakshminarayanan, A. Pritzel, and C. Blundell, “Simple and scalable predictive uncertainty estimation using deep ensembles,” Advances in neural information processing systems, vol. 30, 2017. +[274] X. Zhou, V. Koltun, and P. Krahenb ¨ uhl, “Simple multi-dataset detec- ¨ tion,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 7571–7580, 2022. +[275] X. Wang, Z. Cai, D. Gao, and N. Vasconcelos, “Towards universal object detection by domain attention,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 7289–7298, 2019. +[276] M. Ding, B. Xiao, N. Codella, P. Luo, J. Wang, and L. Yuan, “Davit: Dual attention vision transformers,” in European conference on computer vision, pp. 74–92, Springer, 2022. +[277] A. Kendall and Y. Gal, “What uncertainties do we need in bayesian deep learning for computer vision?,” Advances in neural information processing systems, vol. 30, 2017. +[278] M. Abbasi and C. Gagne, “Robustness to adversarial examples through ´ an ensemble of specialists,” arXiv preprint arXiv:1702.06856, 2017. +[279] S. Kariyappa and M. Qureshi, “Improving adversarial robustness of ensembles with diversity training. 2019,” Available: arXiv, 1901. +[280] T. Pang, K. Xu, C. Du, N. Chen, and J. Zhu, “Improving adversarial robustness via promoting ensemble diversity,” in International Conference on Machine Learning, pp. 4970–4979, PMLR, 2019. +[281] R. Rombach, A. Blattmann, D. Lorenz, P. Esser, and B. Ommer, “High-resolution image synthesis with latent diffusion models,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10684–10695, 2022. +[282] C. Ledig, L. Theis, F. Huszar, J. Caballero, A. Cunningham, A. Acosta, ´ A. Aitken, A. Tejani, J. Totz, Z. Wang, et al., “Photo-realistic single image super-resolution using a generative adversarial network,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4681–4690, 2017. +[283] L. Wei, S. Zhang, W. Gao, and Q. Tian, “Person transfer gan to bridge domain gap for person re-identification,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 79–88, 2018. +[284] A. Radford, L. Metz, and S. Chintala, “Unsupervised representation learning with deep convolutional generative adversarial networks,” arXiv preprint arXiv:1511.06434, 2015. +[285] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio, “Generative adversarial networks,” Communications of the ACM, vol. 63, no. 11, pp. 139–144, 2020. +[286] S. Gu, D. Chen, J. Bao, F. Wen, B. Zhang, D. Chen, L. Yuan, and B. Guo, “Vector quantized diffusion model for text-to-image synthesis,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10696–10706, 2022. +[287] P. Esser, R. Rombach, A. Blattmann, and B. Ommer, “Imagebart: Bidirectional context with multinomial diffusion for autoregressive image synthesis,” Advances in neural information processing systems, vol. 34, pp. 3518–3532, 2021. +[288] S. Bond-Taylor, P. Hessey, H. Sasaki, T. P. Breckon, and C. G. Willcocks, “Unleashing transformers: Parallel token prediction with discrete absorbing diffusion for fast high-resolution image generation from vector-quantized codes,” in European Conference on Computer Vision, pp. 170–188, Springer, 2022. +[289] C. Manning and H. Schutze, Foundations of statistical natural language processing. MIT press, 1999. +[290] D. Jurafsky, Speech & language processing. Pearson Education India, 2000. +[291] J. Hirschberg and C. D. Manning, “Advances in natural language processing,” Science, vol. 349, no. 6245, pp. 261–266, 2015. +[292] T. Young, D. Hazarika, S. Poria, and E. Cambria, “Recent trends in deep learning based natural language processing,” ieee Computational intelligenCe magazine, vol. 13, no. 3, pp. 55–75, 2018. +[293] Y. Liu, M. Ott, N. Goyal, J. Du, M. Joshi, D. Chen, O. Levy, M. Lewis, L. Zettlemoyer, and V. Stoyanov, “Roberta: A robustly optimized bert pretraining approach,” arXiv preprint arXiv:1907.11692, 2019. +[294] D. Adiwardana, M.-T. Luong, D. R. So, J. Hall, N. Fiedel, R. Thoppilan, Z. Yang, A. Kulshreshtha, G. Nemade, Y. Lu, et al., “Towards a human-like open-domain chatbot,” arXiv preprint arXiv:2001.09977, 2020. +[295] L. Zhang, S. Wang, and B. Liu, “Deep learning for sentiment analysis: A survey,” Wiley interdisciplinary reviews: data mining and knowledge discovery, vol. 8, no. 4, p. e1253, 2018. +[296] G. Lample, M. Ballesteros, S. Subramanian, K. Kawakami, and C. Dyer, “Neural architectures for named entity recognition,” arXiv preprint arXiv:1603.01360, 2016. +[297] D. Yu and L. Deng, Automatic speech recognition, vol. 1. Springer, 2016. +[298] D. Bahdanau, K. Cho, and Y. Bengio, “Neural machine translation by jointly learning to align and translate,” arXiv preprint arXiv:1409.0473, 2014. +[299] T.-H. Wen, M. Gasic, N. Mrksic, P.-H. Su, D. Vandyke, and S. Young, “Semantically conditioned lstm-based natural language generation for spoken dialogue systems,” arXiv preprint arXiv:1508.01745, 2015. +[300] E. Reiter and R. Dale, “Building applied natural language generation systems,” Natural Language Engineering, vol. 3, no. 1, pp. 57–87, 1997. +[301] A. M. Rush, S. Chopra, and J. Weston, “A neural attention model for abstractive sentence summarization,” arXiv preprint arXiv:1509.00685, 2015. +[302] K. Papineni, S. Roukos, T. Ward, and W.-J. Zhu, “Bleu: a method for automatic evaluation of machine translation,” in Proceedings of the 40th annual meeting of the Association for Computational Linguistics, pp. 311–318, 2002. +[303] P. F. Brown, J. Cocke, S. A. Della Pietra, V. J. Della Pietra, F. Jelinek, J. Lafferty, R. L. Mercer, and P. S. Roossin, “A statistical approach to machine translation,” Computational linguistics, vol. 16, no. 2, pp. 79– 85, 1990. +[304] Y. Wu, M. Schuster, Z. Chen, Q. V. Le, M. Norouzi, W. Macherey, M. Krikun, Y. Cao, Q. Gao, K. Macherey, et al., “Google’s neural machine translation system: Bridging the gap between human and machine translation,” arXiv preprint arXiv:1609.08144, 2016. \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/MOE/auto/MOE_content_list.json b/backend/ingestion_pipeline/output/MOE/auto/MOE_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..e17e4d4ce1fae5a7ce6108e0f93fcff9699ffde5 --- /dev/null +++ b/backend/ingestion_pipeline/output/MOE/auto/MOE_content_list.json @@ -0,0 +1,1220 @@ +[ + { + "type": "text", + "text": "A Comprehensive Survey of Mixture-of-Experts: Algorithms, Theory, and Applications ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "Siyuan Mu and Sen Lin ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Abstract—Artificial intelligence (AI) has achieved astonishing successes in many domains, especially with the recent breakthroughs in the development of foundational large models. These large models, leveraging their extensive training data, provide versatile solutions for a wide range of downstream tasks. However, as modern datasets become increasingly diverse and complex, the development of large AI models faces two major challenges: (1) the enormous consumption of computational resources and deployment difficulties, and (2) the difficulty in fitting heterogeneous and complex data, which limits the usability of the models. Mixture of Experts (MoE) models has recently attracted much attention in addressing these challenges, by dynamically selecting and activating the most relevant submodels to process input data. It has been shown that MoEs can significantly improve model performance and efficiency with fewer resources, particularly excelling in handling large-scale, multimodal data. Given the tremendous potential MoE has demonstrated across various domains, it is urgent to provide a comprehensive summary of recent advancements of MoEs in many important fields. Existing surveys on MoE have their limitations, e.g., being outdated or lacking discussion on certain key areas, and we aim to address these gaps. In this paper, we first introduce the basic design of MoE, including gating functions, expert networks, routing mechanisms, training strategies, and system design. We then explore the algorithm design of MoE in important machine learning paradigms such as continual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning. Additionally, we summarize theoretical studies aimed at understanding MoE and review its applications in computer vision and natural language processing. Finally, we discuss promising future research directions. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Index Terms—Mixture-of-Experts, Continual Learning, MetaLearning, Multi-Task Learning, Reinforcement Learning, Federated Learning, Computer Vision, Natural Language Processing ", + "page_idx": 0 + }, + { + "type": "text", + "text": "I. INTRODUCTION ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "Artificial Intelligence (AI) has emerged as a transformative force in modern technologies, demonstrating remarkable successes across multiple domains from computer vision [1], [2], [3] and speech recognition [4], [5] to healthcare [6] and autonomous systems [7]. A key driver behind this is the development of foundation models, such as BERT [8], CLIP [9], GPT-4 [10] which are large-scale neural networks pretrained on massive datasets and provide versatile solutions for a wide range of downstream tasks. Building upon the pretrained knowledge, these models can be further fine-tuned with minimal additional training to adapt to specific applications, making them indispensable tools for handling increasingly complex and diverse tasks in many real-world scenarios. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "", + "page_idx": 0 + }, + { + "type": "text", + "text": "However, as AI applications expand, modern datasets are becoming more diverse and complex. They often contain multimodal data (e.g., text, images, and audio) and exhibit intricate structures (e.g., graphs or hierarchical relationships). This diversity and complexity introduce two significant challenges: (1) the computational cost of training and deploying large models grows exponentially, making it unsustainable for many applications [11], and (2) integrating conflicting or heterogeneous knowledge within a single model becomes increasingly difficult, often leading to unstable training dynamics and suboptimal performance [12]. These challenges underscore the need for more efficient and scalable architectures capable of meeting the growing demands of modern AI tasks. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "One promising approach to addressing these challenges is the Mixture of Experts (MoE) architecture, which has attracted much attention recently. Originally proposed in [13], [14], MoE adopts a “divide and conquer” strategy that fundamentally differs from traditional dense models. While conventional models activate all parameters for every input, MoE models dynamically select and activate only the most relevant subset of parameters based on the characteristics of the input data. This approach not only enhances the specialization of individual experts but also mitigates the difficulties associated with training on diverse and conflicting tasks. Furthermore, the selective activation mechanism allows MoE models to significantly expand their capacity and handle diverse knowledge domains without proportionally increasing computational costs, thereby achieving an optimal balance between performance and efficiency [15], [16]. By leveraging the strengths of specialized “experts” for different tasks or data types, MoE provides a scalable and flexible framework for tackling the challenges posed by complex, multifaceted datasets. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Notably, the MoE model architecture has demonstrated its unique advantages and tremendous potentials especially in large language models (LLMs) [184], [185], [186], [21], [15], [20], [52], [187], [188], [189], [190], [191], [192], [193], [194], [195]. For instance, the Switch Transformer [15] achieves 7 times faster in pre-training speed compared to the T5-Base [196] model, and shows improved performance across all 101 languages in a multilingual setting. It has also successfully scaled the number of parameters to the trillion level, achieving a pre-training speed 4 times faster than the T5- XXL [196] model at this scale. GLaM [20] has also expanded its parameters to the trillion level, enhancing the model’s ability to utilize contextual information. Deepspeed-moe [52] leverages MoE and model compression techniques to reduce the size of MoE models by 3.7 times. ST-MoE [187] has further investigated the stability and transferability of MoE models, proposing various methods such as Router z-loss to ensure training stability. Ultimately, on the SuperGLUE [197] benchmark, the ST-MoE-32B model surpassed the previous state-of-the-art models. OpenMoE [191] has experimented with decoder-only MoE and provided an in-depth discussion on the routing mechanisms of MoE, making significant contributions to the open-source community’s understanding of MoE architectures. Mixtral ${ \\bf 8 } { \\bf \\times } 7 { \\bf B }$ [22], despite processing each token with only 13 billion active parameters, is able to access a total of 47 billion parameters thanks to its distinctive architecture. This allows Mixtral ${ } ^ { 8 \\mathrm { x } 7 \\mathrm { B } }$ to achieve higher parameter efficiency and effectively control computational costs. The impressive performance of the DeepSeek series [198], [199], [53], [200] has also garnered significant attention. These models leverage MoE architectures to achieve state-ofthe-art results on a variety of benchmarks while maintaining manageable computational requirements. ", + "page_idx": 0 + }, + { + "type": "image", + "img_path": "images/7a89037bb830acff4d6906979097eac9d166333a3a32003326f58f543bd26e4f.jpg", + "image_caption": [ + "Fig. 1. The roadmap of Mixture of Experts (MoE) covered in this paper. " + ], + "image_footnote": [], + "page_idx": 1 + }, + { + "type": "text", + "text": "", + "page_idx": 2 + }, + { + "type": "text", + "text": "Beyond efficiency, MoE models also offer opportunities to improve model interpretability [101], [201], [35], [202]. By learning intrinsic allocation mechanisms, researchers can gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability not only enhances our understanding of the model behaviors but also opens new avenues for designing more robust and transparent AI systems. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "Given the rapidly growing research interests in MoE and the huge potentials of MoE in various application domains, there is an urgent need of a comprehensive survey for summarizing and disseminating the recent advances of MoE, in order to elicit escalating attentions and inspire further research ideas in this field. Nevertheless, the early surveys of MoE [203], [204] were published ten years ago and have not incorporated the new development in the area. There is only one new survey [205] that emerged last year, which however 1) emphasized more on the basic designs of MoE and 2) did not provide a broad discussion on the use of MoEs in important machine learning paradigms and application fields such as computer vision. The theory development in MoE has also not been covered. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "And although some other new concurrent surveys have been uploaded online very recently during the preparation of our paper, these surveys still either focus on a special aspect of MoE, such as applications in big data [206], inference optimization [207] and LLMs [208], or cover multiple topics very briefly [209]. To the best of our knowledge, our paper is the first survey that comprehensively summarizes the latest advancement in MoE, which includes four key components: basic design strategies of MoE, MoE-based algorithm designs in mainstream machine learning directions, theory towards understanding MoE in various scenarios, and an in-depth review of applications of MoE in both computer vision and natural language processing. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "This paper will be organized as follows (as illustrated in ", + "page_idx": 2 + }, + { + "type": "text", + "text": "Figure 1). In Section II, we will provide a comprehensive introduction to the basic designs of MoE, ranging from basic architecture design to training strategies to system optimization strategies. In Section III, we will introduce the recent MoEbased algorithm design in four important machine learning paradigms, including continual learning, meta-learning, multitask learning, reinforcement learning, and federated learning, which seeks to provide readers a general idea about how MoE can be leveraged to improve the algorithm design in these domains. In Section IV, we will summarize the efforts towards building the theoretical understanding of MoE, which covers a variety of aspects in MoE, such as different gating functions, different expert models, and different learning scenarios. In Section V, we will present the recent applications of MoE in two major domains, i.e., computer vision and natural language processing, where we look into multiple important subproblems in each domain. Future research directions will be discussed in Section VI, followed by the conclusion in Section VII. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "II. BASIC DESIGNS OF MOE ", + "text_level": 1, + "page_idx": 2 + }, + { + "type": "text", + "text": "In this section, we will focus on the basic framework and design considerations in MoE to help readers understand the general workflow of MoE, as shown in Figure 2. More specifically, we will first introduce the key components in the design of MoE, including the gating function, the expert networks, and the routing mechanism. The first two components essentially form a basic framework of MoE, whereas the last component characterizes how the gating function handles the input data. Next, we will introduce the strategies, i.e., loss function and pipeline design, so as to guarantee proper training of MoEs. In the end, system designs will be discussed to optimize the system efficiency of MoE from multiple perspectives. ", + "page_idx": 2 + }, + { + "type": "image", + "img_path": "images/25ac1650d6400589cbff90e22301afd16ec3dbfabbff7cc90491ce1be966f81d.jpg", + "image_caption": [ + "Fig. 2. The simple schematic of a standard MoE architecture. " + ], + "image_footnote": [], + "page_idx": 2 + }, + { + "type": "text", + "text": "A. Gating Function ", + "text_level": 1, + "page_idx": 3 + }, + { + "type": "text", + "text": "The gating function serves as the mathematical implementation of a router, determining how input data is allocated to designated experts. Clearly, the effectiveness of MoE models is intrinsically tied to this allocation strategy, making the design of the gating function a critical consideration. Below, we provide a detailed discussion on the principles and considerations for designing an effective gating function. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "When selecting a gating function, the following criteria should be prioritized: (1) The function must accurately discern the characteristics of both input data and experts. This enables the assignment of similar data to the same expert or group of experts, ensuring that each expert receives a sufficiently large and coherent training set. Such specialization allows experts to develop expertise in specific knowledge domains. (2) The input data should be distributed as evenly as possible among the predefined experts. An uneven distribution can lead to model collapse, which reduces the efficiency of the MoE framework by underutilizing experts and impairs performance due to insufficient separation of conflicting knowledge in the training data. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "1) Linear Gating. Based on these considerations, most existing MoE models [15], [17], [18], [19], [20] use a linear function with softmax as their gating functions due to its simplicity and effectiveness, which is also referred as softmax gating: ", + "page_idx": 3 + }, + { + "type": "equation", + "img_path": "images/1d3f62261aa8522a066756dcc523f3a847520f925dbd6918e9b2c2bf4861faa0.jpg", + "text": "$$\nG ( x ) _ { i } = \\mathrm { s o f t m a x } ( \\mathrm { T o p K } ( g ( x ) + \\mathcal { R } _ { \\mathrm { n o i s e } } , k ) ) _ { i } ,\n$$", + "text_format": "latex", + "page_idx": 3 + }, + { + "type": "equation", + "img_path": "images/1e51258f43ae07e4bd4bcbf533d3ef9f118265a24425177ff86bf624081388a4.jpg", + "text": "$$\n\\mathrm { T o p K } ( v ) = { \\left\\{ \\begin{array} { l l } { v _ { i } } & { { \\mathrm { i f ~ } } v _ { i } { \\mathrm { ~ i s ~ o n e ~ o f ~ t h e ~ t o p ~ } } k { \\mathrm { ~ e l e m e n } } } \\\\ { - \\infty } & { { \\mathrm { o t h e r w i s e . } } } \\end{array} \\right. }\n$$", + "text_format": "latex", + "page_idx": 3 + }, + { + "type": "text", + "text": "Here $G$ represents the gating function, the TopK function retains the $k$ highest scoring inputs out of $N$ experts and sets the rest to negative infinity, $g$ represents the gating value calculated with a linear function prior to the softmax operation, $x$ denotes the input, $\\mathcal { R } _ { \\mathrm { n o i s e } }$ represents the noise to encourage expert exploration, $w$ denotes the model parameters, and $k$ is a hyperparameter that can either be learned or manually set. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "The order of the TopK and softmax operations in the above expression is flexible and can be designed based on specific requirements. One approach is to perform the TopK operation before softmax [16], [22], [20]. This method quickly filters out the most relevant experts, eliminating the need to compute softmax for all experts and thereby reducing computational overhead. However, the scores obtained after TopK may not conform to a probability distribution, necessitating an additional normalization step. Moreover, the TopK operation is inherently “hard,” potentially excluding experts with low scores that could still contribute meaningfully. Alternatively, the TopK function can be applied after softmax [21], [17], [15], [18]. In this case, the softmax function first normalizes the scores into a probability distribution, providing statistically meaningful activation weights for each expert. This approach offers more clear guidance on determining the value of $k$ in the TopK operation. However, it requires computing softmax for all experts, resulting in higher computational costs. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "When the MoE is incorporated into existing models, usually a Transformer [210], we typically replace the Feed-Forward ", + "page_idx": 3 + }, + { + "type": "text", + "text": "Network (FFN) layer within a transformer block by using an MoE layer. There are several reasons [16] behind this design choice: First, the computational cost of the FFN layer typically constitutes a significant portion of the total computational cost in a Transformer, especially in deep models. By replacing the FFN layer with an MoE layer, the computational cost can be significantly reduced while maintaining the model’s expressive power. Additionally, replacing the Self-Attention layer would disrupt the core mechanism of the Transformer, which is not aligned with our objectives. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "2) Non-linear Gating. The gating functions can also be non-linear. Specifically, a gating function design based on cosine distance is proposed in GMoE [23] for domain generalization tasks, which is shown as follows: ", + "page_idx": 3 + }, + { + "type": "equation", + "img_path": "images/ece9b529814ddbf29dc3a56780614290296041059da7eb1ac0cbdd863fcaef8b.jpg", + "text": "$$\nG ( x ) = \\mathrm { T o p K } \\left( \\mathrm { s o f t m a x } \\left( \\frac { E ^ { T } W _ { l i n e a r } x } { \\tau \\| W _ { l i n e a r } x \\| \\| E \\| } \\right) \\right)\n$$", + "text_format": "latex", + "page_idx": 3 + }, + { + "type": "text", + "text": "where $\\boldsymbol { x } \\in \\mathbb { R } ^ { d _ { e } }$ is the input of MoE module, $W _ { l i n e a r } \\in \\mathbb { R } ^ { d _ { e } }$ is a learnable linear transformation for $x$ , responsible for projecting $x$ into a hypersphere space. The number of expert networks is $N$ , and $\\boldsymbol { E } \\in \\mathbb { R } ^ { d _ { e } \\times N }$ represents the features of the $N$ expert networks. In the gating function, the input $x$ is projected into a new space and compared with the expert embeddings $E$ using cosine similarity to determine which experts each input $x$ should be assigned to. In this way, the expert embeddings $E$ can capture the feature representations of different experts and are gradually optimized during training to better adapt to the task requirements. Additinally, the temperature parameter $\\tau$ controls the sharpness of the gating distribution. A smaller $\\tau$ makes the distribution sharper, favoring the selection of a few experts, while a larger $\\tau$ makes the distribution smoother, allowing more experts to participate. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "Comprehensive theoretical and experimental evidence has been provided in [23] to demonstrate the superiority of using cosine routers over linear routers in domain generalization tasks. Specifically, the cosine router excels at handling crossdomain data, capturing visual attributes, and enhancing the model’s generalization capability and efficiency. There are also more studies that have employed cosine routers for better performance [24], [25], which encourages us to explore more on the design of gating functions beyond the cosine routers. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "In addition to the cosine gating function, there are many other designs of nonlinear functions, such as the gating function based on exponential Family of Distributions [26] as shown in Equation (4), ", + "page_idx": 3 + }, + { + "type": "equation", + "img_path": "images/f843d7d53b239fe54493006ded6c28334617952a69bdf26f7985b4e7832ae86a.jpg", + "text": "$$\nG _ { j } ( x , \\nu ) = \\frac { \\beta _ { j } D ( x | \\nu _ { j } ) } { \\sum _ { i } \\beta _ { i } D ( x | \\nu _ { i } ) } ,\n$$", + "text_format": "latex", + "page_idx": 3 + }, + { + "type": "text", + "text": "Here $\\beta _ { j }$ is the prior probability of the $j$ th expert network, satisfying $\\begin{array} { r } { \\sum _ { j } \\beta _ { j } = 1 } \\end{array}$ and $\\beta _ { j } \\geq 0$ . $D ( x | \\nu _ { j } )$ is the conditional probability density function of input $x$ under the $j$ th expert network, belonging to the exponential family distribution. This approach analytically updates the gating function during iterations, and overcomes the nonlinear relationships introduced by softmax and the additional iterative optimization steps that follow (such as IRLS, Iteratively Reweighted Least Squares). The most common example is the Gaussian distribution. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "There is also a special gating function in Soft MoE [27] that no longer employs a discrete token allocation mechanism. Specifically, Soft MoE calculates the weights between each token and each expert, then uses these weights for weighted averaging to generate input slots. Consequently, the slots processed by each expert are a weighted combination of all tokens, rather than individual tokens. This approach avoids potential token dropping issues due to load imbalances and optimization difficulties caused by discrete operations such as TopK. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "Gating functions based on the Student-t distribution [211] are particularly suitable for data groups exhibiting long-tail phenomena or outliers, because they offer more robust fitting capabilities. [28] utilizes a multinomial probit model [212], [213] to determine the expert model that each observation belongs to. ", + "page_idx": 4 + }, + { + "type": "image", + "img_path": "images/13b002358a1e3cdbbff3c9e548b2af7213ef2e52392ed0d3a456d659ffe88b1f.jpg", + "image_caption": [ + "Fig. 3. Various expert networks for the MoE layer schematic. " + ], + "image_footnote": [], + "page_idx": 4 + }, + { + "type": "text", + "text": "B. Expert Networks ", + "text_level": 1, + "page_idx": 4 + }, + { + "type": "text", + "text": "The expert network is a core component of the MoE architecture. By dynamically selecting the most suitable expert network through the gating function, MoE efficiently allocates input data, enabling different experts to specialize in distinct knowledge domains. This design enhances the model’s overall performance, generalization ability, and computational efficiency, particularly when handling complex and diverse tasks. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "In principle, each expert network in MoE can function as an independent network model, similar to a single network model (e.g., [29], [30]). However, in practice, to ensure efficiency and scalability, expert networks are often integrated into a single network model, with specific layers replaced by MoE layers [16], [15], [21]. Notably, MoE layers can be introduced at specific levels of existing neural network models without altering the overall structure, demonstrating high flexibility and broad applicability. Currently, the most widely used MoE layers include the following types (Figure 3): ", + "page_idx": 4 + }, + { + "type": "text", + "text": "1) Replace the FFN layer in Transformer with an MoE layer. The MoE layer can be characterized as follows: ", + "page_idx": 4 + }, + { + "type": "equation", + "img_path": "images/a7b445c5231aa62511e14598625392e37bbc0eee4b5f5cd3c834d0901c2eff86.jpg", + "text": "$$\n\\mathsf { M o E } ( x ) = \\sum _ { i \\in I D } w _ { i } M _ { i } ( x )\n$$", + "text_format": "latex", + "page_idx": 4 + }, + { + "type": "text", + "text": "where $I D$ represents the set of indices of experts selected by the gating function, $w _ { i }$ is the weight assigned to the ith expert, and $M _ { i } ( x )$ defines a two-layer FFN expert model. One key reason for introducing the MoE mechanism into the FFN layer is due to the higher sparsity and domain specificity of the FFN layer in Transformer. It has been shown [17] that the FFN layer exhibits higher sparsity compared to self-attention layers, mainly because not all units in the fully-connected FFN layer will be activated simultaneously in order to prevent overfitting. This will make the FNN layer more suitable to incorporate sparse activation mechanisms. Furthermore, [17] reveals the Emergent Modularity phenomenon in pre-trained Transformer models, indicating a significant association between neuron activations and specific tasks. This further motivates the idea of leveraging the MoE structure to reflect the modular nature of pre-trained Transformers. Therefore, due to its inherent sparsity and task relevance, the FFN layer in Transformer becomes an ideal choice for introducing the MoE mechanism. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "2) Apply MoE to the attention module in Transformer. This will lead to a special type of MoE, namely mixture-ofattention (MoA) [32]. Specifically, MoA consists of a set of attention heads with different parameters, where each attention head can be regarded as an expert $f _ { 1 } , . . . , f _ { N }$ . For a given input, the gating function selects the TopK attention heads based on the importance scores of the input, and the final output is generated as a weighted sum of only these selected heads’ outputs. This design allows the model to focus on the most relevant attention heads, enhancing performance without significantly increasing computational costs, and is highly scalable to support larger parameter sizes. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "Compared to the standard multi-head attention mechanism [210], the key advantage of MoA lies in its use of a gating network to dynamically select the most relevant attention heads for each input token and compute a weighted sum of their outputs. This approach eliminates the requirement for all attention heads to process every input, enabling MoA to achieve superior model performance with reduced computational overhead. Consequently, MoA exhibits enhanced scalability, and particularly this model can attain higher BLEU scores [302] than Transformer with 213 million parameters while requiring significantly less computation. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "Inspired by MoA, numerous studies have been proposed to improve upon this design. SwitchHead [31] attempts to independently introduce the MoE mechanism for each head’s key, query, value, and output projection, and employs a noncompetitive selection activation function. This will therefore reduce the number of attention matrices that need to be computed, significantly lowering computational and memory requirements. MoH [33] enhances the standard MoE method by sharing heads and a two-stage routing strategy, and can further fine-tune pre-trained multi-head attention models into MoH models, enhancing their applicability. In addition, this work integrates the proposed MoH framework with various model frameworks including the encoder-decoder architecture, such as ViT [1], DiT [214], and decoder-only LLMs [215], which are applied in various tasks and demonstrate great potentials of MoH. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "", + "page_idx": 5 + }, + { + "type": "text", + "text": "3) Apply MoE to CNN layers. Integrating CNN into the MoE architecture can fully leverage CNN’s strengths in local feature extraction, achieving more refined task allocation and improved computational efficiency. As a result, many studies have attempted to effectively combine MoE with CNN. For example, in [140], a simple pMoE structure is adopted, where the MoE layer consists of a gating kernel (a trainable weight network) and multiple expert networks composed of two-layer CNN networks. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "Image data possesses high local correlation and spatial hierarchical structure, which aligns well with the design philosophy of CNNs. As a result, Convolutional Mixture of Experts (CMoE) is often applied to computer vision tasks. For instance, [38] utilizes the MoE framework to decompose fine-grained classification problems into subspace problems, allowing each expert CNN network to focus on different subproblems and improving classification performance. Building on [38], [37] proposes an attention-based MoE framework to enhance the model’s generalization ability and classification performance under limited data conditions. [39] addresses the issue of parallel training of independent expert networks in MoE models, alleviating the need for multiple GPUs in large-scale supervised visual tasks. Meanwhile, [35] focuses on exploring how to enhance the interpretability of CNNs while maintaining model performance in computer vision tasks. Additionally, a small number of works have explored the potential of CMoE in other domains, such as [36]. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "C. Routing Strategy ", + "text_level": 1, + "page_idx": 5 + }, + { + "type": "text", + "text": "A critical consideration in the design of MoE is determining the level at which experts should specialize in knowledge. For instance, in computer vision, certain tasks may emphasize more on the global features, while others demand precise local perception. Consequently, selecting an appropriate routing level—defined by the frequency of routing decisions—is essential to ensure the MoE model effectively meets the requirements of specific tasks. The following discussion extends the classification strategy proposed in Uni-Perceiver-MoE [40] and outlines several common routing strategies: token-level routing, modality-level routing, task-level routing, and otherlevel routing. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "1) Token-Level Routing Strategy determines routing decisions based on token representations, making it the most classic routing approach. Tokens also come in various types, among which the most common ones we encounter are text tokens and image tokens (patch tokens). ", + "page_idx": 5 + }, + { + "type": "text", + "text": "In terms of text tokens, to mitigate underfitting and preserve representation diversity, MaskMoE [41] introduces a novel token-level routing strategy. This approach generates a mask vector for each token in the vocabulary and adjusts the number of visible experts for tokens of varying frequencies before training. For infrequent tokens, MaskMoE restricts routing to a single expert via routing masks, ensuring consistent training for these tokens. For frequent tokens, it permits multiple visible experts to capture contextual nuances. Additionally, [42] proposes a token-level recurring routing strategy that employs recurrent neural networks to dynamically adjust expert selection based on input sequence context. This strategy improves the model’s accuracy in processing complex linguistic structures, optimizes computational resource utilization, and effectively addresses long-range dependencies. Consequently, it achieves enhanced efficiency and performance across diverse natural language processing tasks. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "", + "page_idx": 5 + }, + { + "type": "text", + "text": "The usage of patch tokens, as discussed in [140], is often built upon the ViT architecture. This strategy divides an image into multiple patches and dynamically routes each patch to the most suitable expert for processing. By adaptively selecting experts based on the local features of the image, it optimizes computational resource utilization and enhances the model’s performance in handling complex visual tasks. Additionally, V-MoE [17] introduces a Batch Priority Routing (BPR) strategy, which 1) calculates the importance of each image patch, 2) sorts them in descending order of importance, and 3) assigns experts to patches accordingly. Experimental results demonstrate that BPR can maintain performance comparable to a dense model while processing only $1 5 \\% - 3 0 \\%$ of the image patches, showcasing significant advantages by standard Routing. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "Apart from these two common types, there are also audio tokens [36], time series token [45], etc., all of which can be freely combined with MoE to help the model achieve better learning performance. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "2) Modality-Level Routing Strategy routes tokens based on their modality, emulating the practice of employing specialized encoders for distinct modalities to minimize interference between them. The Uni-MoE model [43] is designed to effectively process and understand multi-modal data through a structured approach. First, it introduces connectors trained using cross-modal data to achieve data alignment, mapping diverse modalities into a unified language representation space. Simultaneously, it trains modality-specific expert systems on cross-modal instruction datasets, so as to enhance each expert’s specialized capabilities and activate their task-specific preferences. Subsequently, the model utilizes LoRA [216] for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Following instruction tuning, Uni-MoE is evaluated on a comprehensive and diverse multi-modal dataset. The results indicate that the model significantly reduces performance discrepancies when processing mixed data, improves collaboration efficiency among multiple experts, and enhances generalization capabilities, highlighting the potential of the MoE architecture in developing a unified multi-modal large language model. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "3) Task-Level Routing Strategy determines routing based on task IDs, ensuring that different tasks are routed to distinct experts, thereby effectively minimizing interference between tasks. This approach is particularly advantageous for multitask learning. For instance, [44] explores multilingual machine translation tasks, where task boundaries are defined by target languages, language pairs, or unique task IDs. And the experts are selected at the task level according to these boundaries. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "Compared to token-level routing strategies, this approach only requires loading a subset of experts relevant to the current task during inference, rather than loading all experts of the entire model. This results in reduced communication costs between devices and lower memory usage. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "4) Other-Level Routing Strategies encompass a variety of approaches, such as context-level and attribute-level routing strategies [40]. The context-level routing strategy employs global pooling to provide global context information to the router, enabling it to generate reliable routing strategies based on the contextual information of the current token representation. In contrast, attribute-level routing incorporates an 8- dimensional binary embedding, which includes attributes such as the modalities of the current task and token (indices 0- 5), the causation type of the model (index 6), and the token source (index 7). These rich information enables models to handle more complex and different tasks. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "D. Training Strategies ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "text", + "text": "Due to the sparse activations inherent in MoE-based architectures, directly applying the functions and procedures used for training dense models to MoE-based sparse models is not straightforward. To improve training effectiveness, achieve faster convergence, and enhance performance on target tasks, numerous studies like [15], [17], [16], [18], [46] have explored the methods for training these sparse models. In the following section, we summarize and discuss some representative techniques. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "1) Auxiliary Loss Function Design. In addition to standard training losses, auxiliary loss functions are often introduced during MoE training to enhance learning performance, improve model efficiency, and stabilize the training process. One type of auxiliary losses widely used in practice is the load balancing loss, which aims to balance the allocation of inputs across all experts to fully utilize the capacity of the MoE. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "A well-known challenge in MoE training is the risk of model collapse, where a small subset of experts receives the majority of inputs, while others receive almost none, leading to an imbalance in expert utilization. To mitigate this issue, [16] proposes Importance and Load loss functions, which are defined as follows: ", + "page_idx": 6 + }, + { + "type": "equation", + "img_path": "images/d13935e988a50e14228e774a62dd673c86a7f77ba9503a17d6d9a99945e0cfdb.jpg", + "text": "$$\n\\operatorname { L o a d } ( X ) _ { i } = \\sum _ { x \\in X } P ( x , i )\n$$", + "text_format": "latex", + "page_idx": 6 + }, + { + "type": "equation", + "img_path": "images/b38fc4377125eb74bfaefc9348701ee985cf87117a2edb1f741ac3a8e4910b9c.jpg", + "text": "$$\n{ \\mathrm { I m p o r t a n c e } } ( X ) _ { i } = \\sum _ { x \\in X } G ( x ) _ { i }\n$$", + "text_format": "latex", + "page_idx": 6 + }, + { + "type": "equation", + "img_path": "images/74442a5fdcbcc294aaf1e9efe50cea10387daf5ec040876ab72b53664188597b.jpg", + "text": "$$\nL _ { \\mathrm { l o a d } } ( X ) = w _ { \\mathrm { l o a d } } \\cdot ( \\mathbf { C o V } ( \\mathbf { L o a d } ( X ) ) ) ^ { 2 }\n$$", + "text_format": "latex", + "page_idx": 6 + }, + { + "type": "equation", + "img_path": "images/81dae62120ff60172a995d5b575f2c6be808e8faa66e28731a53e4e2efef0b61.jpg", + "text": "$$\nL _ { \\mathrm { i m p o r t a n c e } } ( X ) = w _ { \\mathrm { i m p o r t a n c e } } \\cdot \\left( \\mathbf { C o V } ( \\mathrm { I m p o r t a n c e } ( X ) ) \\right) ^ { 2 }\n$$", + "text_format": "latex", + "page_idx": 6 + }, + { + "type": "text", + "text": "where wimportance and $w _ { l o a d }$ are hyperparameters controlling the influence of expert importance balance and load balancing, respectively, and $P ( x , i )$ denotes the probability that $G ( x ) _ { i }$ is non-zero given new random noise selections. Here, $\\operatorname { C o V }$ stands for the coefficient of variation. These two loss functions are incorporated into the overall model loss function to promote balanced usage and load distribution among experts, thereby enhancing model performance and stability. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "", + "page_idx": 6 + }, + { + "type": "text", + "text": "The Switch Transformer [15] (as shown in Equation (12)) simplifies the approach above based on [16], trading a slight reduction in accuracy for improved efficiency: ", + "page_idx": 6 + }, + { + "type": "equation", + "img_path": "images/13de9a264b2cd18a40221278c2daee84560772e56ff8796f6b3ca6b36731eda4.jpg", + "text": "$$\nf _ { i } = \\frac { 1 } { T } \\sum _ { x \\in { \\mathcal { B } } } \\mathbb { 1 } \\left\\{ \\operatorname { a r g m a x } G ( x ) = i \\right\\}\n$$", + "text_format": "latex", + "page_idx": 6 + }, + { + "type": "equation", + "img_path": "images/bf01177d672f112ff31b6beea971316887248f8bb88c42238ed4cb8a32699a9d.jpg", + "text": "$$\nQ _ { i } = \\frac { 1 } { T } \\sum _ { x \\in B } G ( x ) _ { i } ,\n$$", + "text_format": "latex", + "page_idx": 6 + }, + { + "type": "equation", + "img_path": "images/60eadda9af46a4bd359181a7b89abbd25e30c952749ff12dea32ca222e91b7d1.jpg", + "text": "$$\n\\mathrm { l o s s } = \\boldsymbol { \\alpha } \\cdot \\boldsymbol { N } \\cdot \\sum _ { i = 1 } ^ { N } f _ { i } \\cdot Q _ { i } .\n$$", + "text_format": "latex", + "page_idx": 6 + }, + { + "type": "text", + "text": "Here $T$ is the total number of tokens in the batch, $\\boldsymbol { B }$ is the set of tokens in the batch, $f _ { i }$ is the proportion of tokens assigned to expert $i$ , $Q _ { i }$ is the routing probability ratio assigned to expert $i$ , and $\\alpha$ is a hyperparameter used to control the weight of the auxiliary loss. Ideally, all experts should receive tasks evenly, with each processing an equal amount of input data, such that the expected values of $f$ and $Q$ are both $1 / N$ . When the distribution is uniform, this auxiliary loss function reaches its minimum. Expert capacity [16] refers to the maximum number of data points each expert can process. Insufficient expert capacity may result in skipped input data during training, leading to under-trained experts; conversely, increasing capacity reduces dropped tokens but may also waste computational and memory resources. V-MoE [17] normalizes $L _ { I m p o r t a n c e }$ and $L _ { L o a d }$ when applying the auxiliary loss function to visual tasks, achieving a more stable training process. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "2) Expert Selection. It is clear that the performance and efficiency of MoE models heavily depend on the expert selection for data inputs. While the gating function primarily determines expert selection, additional design choices can further enhance MoE models. The TopK strategy, which selects the best $K$ experts among all experts to process the data, significantly increases model capacity without proportionally escalating computational costs. For example, [16] has shown that the MoE model can scale to over 1000 times of the size of traditional neural networks while maintaining computational efficiency. On the other hand, the TopK strategy can be removed in order to further enhance the efficiency. For instance, V-MoE [17] replaces TopK with a Top-1 strategy to simplify computation and reduce resource wastage. Moreover, randomness is usually introduced for expert selection inside the TopK function (as shown in Equation (1)), by adding Gaussian noise to expert activations during the selection process [16]. This mechanism encourages expert exploration with random selections and prevents over-reliance on specific experts, which mitigates load imbalance and optimizes resource utilization. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Dynamic expert selection mechanisms have also been explored in the literature. Notably, [46] proposes a Top-P routing strategy, which determines the number of activated experts at each time by setting a probability threshold $P$ . For each input data, the gating network calculates a score for each expert, corresponding to a probability distribution of an expert being selected, and the experts are sorted in a descending order of their scores. The strategy then progressively accumulates the scores of the experts until the cumulative value exceeds $P$ , activating all accumulated experts to process the token. This allows the model to adaptively adjust the number of selected experts based on input complexity, enabling flexible and efficient resource allocation. To reduce overfitting and improving generalization, [48] proposes a dropout regularization method tailored for the tree structure of Hierarchical Mixture of Experts (HMoE) [47], which randomly drops expert networks of different branches according to the hierarchical structure. Experimental results demonstrate that this method enhances model performance, providing smoother fitting outcomes, better generalization, and lower validation error rates compared to models without dropout. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "", + "page_idx": 7 + }, + { + "type": "text", + "text": "3) Pipeline Design. Given the sparsity nature and need of dynamic data allocation in MoE architectures, a well-designed pipeline plays a crucial role in the training of MoE models, in order to maximize the utilization of computational resources, reduce time and costs, and ensure stable convergence of the model. In general, the pipeline design for MoE seeks to optimize resource allocation and efficiently distribute data among experts. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "As mentioned before, BPR [17] achieves sparsity reuse by prioritizing important samples for processing. The advantages of BPR lie in its efficient resource utilization and reduction of unnecessary computations. RMoE [18] designs a pipeline particularly for downstream tasks such as segmentation and detection. More specifically, RMoE decomposes the weights of MoE experts into core and residual weights, where the core weights inherit knowledge from pre-trained non-MoE models and only the residual weights will be finetuned. This will significantly shorten the training time and reduce the training costs. During inference, both sets of weights will be combined to ensure the good performance of the MoE model. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "E. System Design ", + "text_level": 1, + "page_idx": 7 + }, + { + "type": "text", + "text": "The MoE architecture is gaining popularity in the edge deployment and capacity scaling of large models [15], [51], [52], offering significant flexibility and scalability. However, its nature of inherent non-uniform workload distribution and dynamic expert selection imposes strict requirements on the system’s resource allocation, communication efficiency, and overall performance optimization. This will introduce new system challenges such as increased synchronization overhead, hampering the efficiency and stability of model execution. In this section, we outline some common methods currently available to enhance the system designs for MoE from three dimensions: computation, communication, and memory. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "1) Computation. In the application of MoE models, due to their inherent dynamic characteristics, there may be significant disparities in the number of tasks processed by different experts, making the issue of non-uniform workload distribution particularly pronounced. Particularly, in large-scale distributed system environments, standard MoE architectures require synchronization among expert operations [49], i.e., all experts must complete their current tasks before moving on to the next computation step. However, some experts may finish work earlier due to smaller assigned task volumes, leading to idle timeslots and wasted computational resources. Moreover, as the MoE model capacity expands, computational complexity significantly increases [15], intensifying the demand for better computation strategy design. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "", + "page_idx": 7 + }, + { + "type": "text", + "text": "Various attempts have been made in the literature to mitigate this problem. The paper [15] proposes and discusses several parallel strategies, including data parallelism, expert parallelism, and model parallelism, but different parallel methods have varying requirements for the distribution of data and model parameters. To enable the system to quickly adapt to dynamic load changes, [50] designs a unified distribution layout to manage the model’s parameters and input data. This can accommodate the distribution requirements of various parallel strategies, achieving zero-cost switching of parallel strategies. Based on this distribution, [50] also further develops multiple optimization techniques, such as the ALLto-ALL optimization algorithm mentioned later. Moreover, Soft MoE [27] introduces an improved scheduling algorithm that uses gradient-based routing selection methods, making the computation process smoother and more efficient. This approach reduces unnecessary synchronization wait times, lowers overall synchronization overhead, and boosts system throughput and efficiency. DeepSeek-V3 [53] introduces several enhancements to the communication process. Firstly, it concurrently processes two micro-batches with comparable computational loads, overlapping the attention mechanism and MoE component of one micro-batch with the dispatch and combine operations of another. This technique not only boosts throughput but also masks the overhead associated with all-to-all and tensor parallel communications, thereby substantially diminishing reliance on communication bandwidth. Furthermore, an FP8 format is employed for low-precision communication; activations are quantized to FP8 prior to upprojection in MoE using integral power-of-two scaling factors to mitigate quantization errors, a method similarly applied to activation gradients before down-projection in MoE. Lastly, to alleviate all-to-all communication bottlenecks, particularly among GPUs, a more efficient processing strategy has been devised. The specific implementation is available as opensource on GitHub at https://github.com/deepseek-ai/DeepEP. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "2) Communication. In the training of MoE models, input data must be distributed to the experts via an All-to-All communication pattern, which usually results in a significant demand on the communication bandwidth. On the other hand, due to the dynamic nature of expert selection, the amount of communication in the system can substantially fluctuate, such that the communication demands between iterations can also be very different. Clearly, this communication pattern is difficult to predict and optimize, thereby increasing the risk of network congestion. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "Considering that only a portion of MoE models are activated at any given time, on-demand loading strategies [19] can be adopted when scheduling the model, i.e., weights are loaded into the on-chip memory only when the corresponding expert is selected. This method reduces frequent access to external DRAM, effectively alleviating the pressure on memory bandwidth. Moreover, different experts within the MoE can be assigned to distinct compute units or cores, achieving tasklevel parallel processing [15]. This strategy not only increases the system throughput but also fully exploits the parallelism provided by Multi-Chip Modules (MCMs). In addition to expert-level parallelism, other studies have proposed various parallelization strategies such as data parallelism, model parallelism or tensor parallelism [15], allowing more flexible design and the use of different parallel methods according to task characteristics [50], [54], [55]. To further optimize performance, systems such as TUTEL [50] and FasterMOE [49] simultaneously run the communication operations with other computational tasks to hide communication latency and reduce the impact of communication on overall runtime. Moreover, hardware features have also been utilized to motivate various communication patterns to reduce the need of bandwidth, e.g., EdgeMOE [51] and M3ViT [19]. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "", + "page_idx": 8 + }, + { + "type": "text", + "text": "3) Memory. The MoE model typically contains a large number of parameters due to the usage of multiple experts. This will need a large amount of memory, which sometimes may even exceed the storage capacity of a single device, thereby limiting the scalability of the MoE model. Moreover, due to the randomness and dynamics in expert selection, the memory access patterns of MoE models can become extremely complex. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "To address these issues, Switch-Transformer [15] proposes a parameter migration strategy that leverage the memory space of multiple devices in a collective manner, to store a large volume of parameters through parallel communication mechanisms. This method effectively distributes the pressure of parameter storage, enhancing the system’s overall storage capacity and computational efficiency. DeepSpeed-MoE [52] adopts a hierarchical storage management scheme, integrating local high-speed caches with remote slower storage to construct a multi-level storage architecture. This design ensures that frequently used parameters can be accessed quickly while also accommodating less frequently used but necessary parameters, thus achieving more efficient memory utilization without compromising performance. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "III. ALGORITHMS ", + "text_level": 1, + "page_idx": 8 + }, + { + "type": "text", + "text": "Due to the effectiveness and the strength in handling diverse knowledge in data, there have been rapidly growing interests in applying the MoE architecture into various machine learning paradigms, leading to improved algorithm designs. To showcase this and the great potentials of MoE in solving more complex learning scenarios, we will delve into the MoEbased algorithm designs for four widely investigated domains, i.e., continual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "A. Continual Learning ", + "text_level": 1, + "page_idx": 8 + }, + { + "type": "text", + "text": "Continual learning [217] seeks to build an agent that can continuously learn a sequence of different tasks, corresponding to a non-stationary environment with data distribution shifts, to mimic the extraordinary lifelong learning capability of human beings. In particular, in continual learning a model is continuously adapted based on the new data without access to previous data. This will lead to a key challenge in continual learning, the so-called “Catastrophic Forgetting” [218], which refers to the phenomenon that neural networks can easily forget the previously acquired knowledge when learning the new task. Seeing that the MoE framework dynamically selects the most appropriate sub-model for each input, enabling the model to handle diverse tasks without a substantial increase in computational overhead, multiple efforts have been made in the literature to leverage MoE to facilitate better continual learning algorithm designs. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "", + "page_idx": 8 + }, + { + "type": "text", + "text": "The idea of applying MoE in continual learning is first explored [60] which builds a model with a set of experts for task-free continual learning [219], i.e., a more general continual learning setup where the explicit task definition and task boundary information are unavailable. In particular, by following the expansion-based continual learning approaches, a Continual Neural Dirichlet Process Mixture (CN-DPM) model is introduced, where each expert model in CN-DPM handles a subset of data and the number of expert models dynamically expands based on the Bayesian nonparametric framework. However, the gating mechanism to determine the expert selection for current input data in [60] relies on a generative model for each expert. [65] improves over the design by showing that a gating mechanism based only on the input data is feasible. In particular, [65] considers a hierarchical variational continual learning (HVCL) setup with multiple priors, and shows that leveraging multiple experts can alleviate problems in HVCL such as known task boundaries and increased computation cost. To this end, a standard MoE model is built based on [16] where two different strategies are proposed to encourage expert diversity, which, as the authors believe, may mitigate forgetting since experts specialize in different tasks. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "Recently, pre-trained model based continual learning [220] has attracted much attention by leveraging the powerful pretrained models to facilitate better continual learning. This further spurs a new category of continual learning approaches, i.e., the prompt-based continual learning approaches [70], which have demonstrated superior performance compared to standard continual learning approaches. Thus motivated, there have emerged several attempts in leveraging MoE to design better prompt-based approaches for continual learning with pretrained models. Specifically, by shedding lights on the connection between self-attention in Vision Transformer [1] and a mixture of experts, [66] interprets applying prefix tuning in pre-trained models as adding new experts, which can be leveraged to facilitate efficient model adaptation for new tasks. Based on this, a novel gating mechanism named Non-linear Residual Gates (NoRGa) is proposed to improve the parameter efficiency in prefix tuning, where non-linear activation functions and residual connections are introduced within the gating function. [63] develops a mixture of task-specific experts (MoTE) framework, where a task-specific adapter (i.e., expert) is trained for each new task. To enhance the feature robustness and reduce cross-task feature overlap, an expert evaluation strategy and an Expert Peer-Voting Mechanism are further introduced, where the most trustworthy experts will be selected for feature fusion at inference. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "Considering the recent breakthroughs in large language models, several studies have explored the usage of MoE in the continual adaptation of language models. [59] investigates the continual adaptation of pretrained language models, where an MoE-based architecture, i.e., Lifelong-MoE, is proposed to address the forgetting problem. In particular, new experts will be introduced for new data distributions, while regularizationbased strategies on both experts and gating functions are used to retain the knowledge for old tasks. A new architecture PMoE is proposed in [34] to address the forgetting for continual learning in large language models. By using shallow layers for general knowledge and deep layers for new knowledge, new experts are progressively added to deep layers, where a router efficiently allocates new knowledge to appropriate experts based on deep features. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "The application of MoE in continual adaptation based on vision-language models has also been studied very recently. [56] introduces the parameter-efficient MoE-Adapters framework for continual adaptation with the CLIP model [9]. This framework leverages Adapters as experts and employs a taskspecific router to select the most suitable experts for the current task, thereby accelerating adaptation and fostering expert collaboration. Additionally, the authors propose a Distribution Discriminative Auto-Selector (DDAS) to enhance the model’s zero-shot recognition capabilities, which automatically allocates test data to either the MoE-Adapters or the original CLIP model, ensuring accurate predictions for both seen and unseen data. [64] observes that the usage of a shared layer in MoE-based models can lead to unsatisfying performance for continual learning. To address this, an expert merging strategy is proposed to merge the two most frequently selected experts based on the tracking of expert usage. The merged experts will be used to update the least frequently selected expert. This helps to prevent the same feature being learned as different features by multiple experts. Additionally, the least important parts of the model are regularly removed, saving computational resources. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "Moreover, the MoE-based models have been leveraged in various specific applications of continual learning. For example, [57] studies the problem of continual test time adaptation and introduces the Mixture-of-Activation-SparsityExperts (MoASE) adapter to address the forgetting problem therein. By decomposing the neuron activation into high and low activation components, MoASE develops a Domain-Aware Gate to utilize domain information for expert combination and an Activation Sparsity Gate for more accurate feature decomposition. [67] studies the continual traffic forecasting problem and introduces a novel MoE-based model, i.e., TFMoE, to efficiently retain past knowledge. The traffic flow is divided into homogeneous groups, where each group is handled by an expert model. [69] applies MoE to continual medical image segmentation, updating only relevant experts for new data while fixing other network parameters. [139] exploits MoE in mobile edge computing (MEC) networks, dynamically selecting experts for task offloading while optimizing gating network parameters to minimize computational delays. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "There have also been some studies in the literature that leverage multiple expert models, instead of a single model, for continual learning. For example, [71] proposes a framework where an expert model is trained for each task and a gating mechanism to select the relevant expert at test time. [72] uses a fixed number of small networks to learn all tasks in continual learning in parallel and shows that the performance can be better than a single big model. [73] investigates the impact of different ensemble models on the performance of continual learning. The SEED method proposed in [61] optimizes the model ensemble training by selecting a single expert for new task learning based on Gaussian distribution similarity, ensuring effective learning of new tasks while preserving prior knowledge. EVOLVE [62] leverages multiple pre-trained models as experts to enhance self-supervised continual learning on local clients. In particular, EVOLVE employs an expert aggregation loss to distill guidance information and dynamically adjusts expert weights based on new task data. While these studies do not exactly leverage the MoE architecture, they still demonstrate the great potentials of leveraging multiple experts to facilitate better continual learning. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "", + "page_idx": 9 + }, + { + "type": "text", + "text": "B. Meta-Learning ", + "text_level": 1, + "page_idx": 9 + }, + { + "type": "text", + "text": "The core of meta-learning [221], [222], [223], [224], [225] lies in learning to learn, focusing on enabling models to quickly learn new tasks from a small amount of data, thereby improving the generalization and adaptability of machine learning systems. MoE can be used to enhance the rapid learning capability of meta-learning methods because it leverages multiple expert models to learn the distinct core features of each domain. By capturing the differences and connections between various tasks in a better way, MoE has great potentials in promoting more efficient learning and adaptation of new tasks by the model. In what follows, we will go over the recent development in the field of meta-learning by leveraging MoE models. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "While the most popular meta-learning approach in the past decade is the optimization-based approach [226], [227] due to its simplicity and efficiency, neural processes (NPs) based approaches [228] recently gain increasing attention for metalearning, which directly learn meta-representations and do not require additional gradient updates during fast adaptation. However, the standard NPs consider use a single global Gaussian latentvariable to model tasks, leading to a lack of expressive power when dealing with complex tasks generated from a mixture of stochastic processes. To alleviate this issue, [70] proposes the Mixture of Expert Neural Processes (MoE-NPs), with multiple latent variables and discrete assignment latent variables. The multiple latent variables are used to construct a mixture of NPs experts to define various functional priors, and the discrete assignment variable controls the expert selection for each data point in prediction. An evidence lower bound is derived to optimize the proposed model, which demonstrates promising performance in both few-shot supervised learning and meta-reinforcement learning. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "As meta-learning has demonstrated the superior capability in fast adaptation for novel scenarios, it has been recently applied to generalizable dynamical system reconstruction (DSR) [229] for learning across varying environments with a small amount of data, which is particular important for scientific discovery using scientific data. While promising, metalearning typically relies on the assumption that all tasks (or environments) follow the same task distribution, limiting its applications in scenarios with less similar environments. To address this, [79] proposes the Mixture of Experts Reconstructors (MixER) by augmenting existing contextual meta-learning approaches [230] with the Top-1 MoE architecture. In particular, MixER consists of multiple experts, each corresponding to a meta-model to capture the shared knowledge, and a linear gating function which takes the context information, instead of state vectors, as input. An unsupervised routing mechanism is further designed to optimize the MoE-based models. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "", + "page_idx": 10 + }, + { + "type": "text", + "text": "Besides these studies, MoE has also been leveraged together with meta-learning for various applications. Domain adaptation (DA) [231] is a subfield of transfer learning which seeks to adapt the model trained for the source domain to perform well on a related but different target domain. The standard formation of DA considers the transfer from a single domain, whereas multiple sources can be available in practice. However, most existing methods use a single model to learn all source tasks. To address this, [77] leverages MoE models to explicitly characterize the relationships between different source domains and the target domain, where the prediction for a target example will be based on a weighted combination of all experts’ predictions. Here the weights capture the similarity of the target example with each source domain, which are learned through metric-based meta-learning approaches [232] by constructing a meta-training procedure with multiple multisource-single-target pairs. [74] investigates a slightly different problem where some unlabeled data from the target domain will be exploited, and propose Meta-Distillation of MoE where a student model is built from each multi-source-single-target pair. Here, a MoE model is used as a teacher student, and each expert is separately trained using supervised learning on each source domain to extract its discriminative features. For domain adaptation, the unlabeled data from the target domain will be passed through all experts and the knowledge from all experts will be aggregated by an aggregator to guide the distillation from the teacher to the student. The student model and the aggregator will be jointly trained using optimization based meta-learning. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Other studies, which also leverage MoE together with metalearning, investigate some specific applications of domain adaptation. For instance, [75] studies the domain generalizable person re-identification task (DG ReID), where each expert in the MoE model learns the knowledge from one source domain and all the features from these experts are integrated based on an adaptive voting process for the unseen target domain. As the specific target domain is generally unknown during training, an optimization-based meta-learning approach is proposed to train the voting network, which is jointly trained with the expert networks given their couplings in the algorithm design. [78] shares the same design philosophy as [75] but studies the domain generalization of face anti-spoofing, where the domain expert models are meta-trained using optimizationbased methods. [76] investigates the generalization of multiaccess control in heterogeneous wireless networks. Traditional meta-reinforcement learning (meta-RL) methods may not fully capture the subtle differences between different tasks, leading to insufficient adaptability in new environments [233]. When designing a General Multiple Access (GMA) protocol, the challenges posed by varying network configurations in different testing environments need to be considered. [76] thus introduces the MoE model to enhance the model’s representational capacity and reduce overfitting to specific tasks [203]. Specifically, an MoE-enhanced encoder network is introduced in designing the GMA protocol, where each expert model in the linear gating MoE inside the encoder independently encodes each state transition into latent representations. These latent representations are then combined to generate a final comprehensive task representation, which will be leveraged by SAC [234] for individual protocol learning within meta-RL of the generalizable GMA protocol learning. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "", + "page_idx": 10 + }, + { + "type": "text", + "text": "C. Multi-task Learning ", + "text_level": 1, + "page_idx": 10 + }, + { + "type": "text", + "text": "Multi-task learning (MTL) [235], [236], [237] is a machine learning paradigm whose core idea is to simultaneously learn multiple related tasks to improve the generalization ability and performance of the model. Essentially, it provides the model with rich prior knowledge to enhance its performance. This determines that multi-task learning algorithms need to leverage shared information among tasks, typically achieved by sharing part of the model’s parameters or representations. However, this approach has exposed some shortcomings when dealing with complex data [93]. The MoE model, on the other hand, can intelligently select the most suitable sub-model for processing based on the characteristics of the input data, naturally decoupling different tasks and effectively handling the complex relationships between them. This gives MoE a greater advantage when dealing with complex tasks [87], and as a result, it has gradually gained more attention and been applied to many important sub-tasks in multi-task learning. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "To more efficiently handle the relationships among multiple tasks in multi-task learning, [93] proposes an important variant of MoE called Multi-gate Mixture-of-Experts (MMoE), which sets up a separate gating network for each task. The gating network can further select different expert networks based on the specific characteristics of the current task, decoupling each task into different gate functions. This avoids the mutual interference of tasks with large differences, and alleviates the significant performance degradation of traditional methods when processing multi-task data with large differences due to shared underlying networks. [95] finds that MMoE still cannot fully resolve the issue of Negative Transfer, and in some tasks, its performance is even worse than that of single-task models [95]. As a result, they designe several optimization strategies to further mitigate the Negative Transfer problem in MMoE by penalizing overly similar experts, enhancing the fine-grained interaction among experts, and balancing the importance of tasks with varying amounts of data during model training. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Multi-task reinforcement learning is an important branch of multi-task learning [238]. It aims to promote the learning of diverse skills by agents to enhance their ability to handle complex tasks. However, existing methods lack guarantees on the diversity of learned representations, which may lead to representation collapse into similar representations, thus limiting their generalization ability [96], [239], [240], [241], [242]. To address this issue, [80] introduces a method called Mixture of Orthogonal Experts (MOOR), which utilizes multiple expert models responsible for generating different representations. In this case, each expert is responsible for different aspects of the task, encouraging the model to learn more diverse skills. To ensure efficient differentiations among experts, MOOR introduces the Gram-Schmidt orthogonalization method into MoE to force each expert to generate mutually orthogonal features, further limiting the possibility of experts generating redundant representations. [96] investigates contextual multitask RL and proposed a novel approach to encode an input observation into multiple representations using a mixture of encoders. These representations correspond to different skills or objects, and can be selected for any given task based on the context information. This approach gives the learning agent a more fine-grained control on the information shared across tasks and alleviates negative interference. Instead of naively sharing parameters across all tasks in traditional approaches, [85] proposes an attention-based MoE approach for multi-task reinforcement learning, which seeks to learn a compositional policy for each task. In particular, each expert network learns task-specific skills and specializes in different parts of the multi-task representation space. An attention module was fu introduced to integrate the expert outputs, we propose an attention module to generate connections between tasks and experts to achieve the best performance automatically. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "", + "page_idx": 11 + }, + { + "type": "text", + "text": "Multi-task learning techniques have also garnered significant attention in recommendation systems because they can simultaneously meet the modeling needs of multiple perspectives, improving recommendation performance. However, many existing multi-task recommendation systems struggle to balance parameter sharing and resource utilization. Some MoE-based methods, while more flexible, also face issues such as unstable training or resource waste [93], [13], [99]. [92] improves the standard MoE framework by proposing a new framework called Mixture-of-Masked-Experts (MoME). First, MoME no longer trains independent sub-networks for each expert but extracts expert sub-networks from an over-parameterized base network, generating diverse expert networks by learning different binary masks. Thus, during training, only one base network and a set of binary masks need to be trained, effectively saving resources. Additionally, MoME designs multi-level masks: neuron-level masks are used to filter out unimportant neurons in the base network, while weight-level masks are used to generate diverse expert networks. To further enhance the robustness of the mask learning process, MoME uses a probability formula based on an approximate Bernoulli distribution to determine mask elements and achieves model sparsity through $L _ { 0 }$ regularization, enabling efficient parameter sharing. [76] also focuses on recommendation system design, noting that existing multitask learning models [93], [98] typically use MLP as the expert model. However, using MLP models may not generate distinctive features for different tasks, leading to gradient conflicts and thus affecting model performance. Therefore, this work proposes a new expert network called the Task-Intensive Expert Model, whose parameters are specifically generated by a hyper-network based on different task embeddings, making it more distinctive and alleviating gradient conflict issues. ", + "page_idx": 11 + }, + { + "type": "text", + "text": "", + "page_idx": 11 + }, + { + "type": "text", + "text": "[91] further investigates multi-domain multi-task recommendation tasks, where multi-domain scenarios introduce more complex data dependencies that existing methods cannot handle well [243]. [91] decouples the originally complex tasks and introduces shared expert modules, domain expert modules, and task expert modules using MoE. These modules learn cross-domain and cross-task common knowledge, domainspecific user preferences, and task-specific user preferences, respectively , enabling the model to capture user preferences from multiple perspectives and better handle complex dependencies between domains and tasks. ", + "page_idx": 11 + }, + { + "type": "text", + "text": "Tasks in machine vision encompass various types, each with its corresponding deep models. However, many of these tasks often follow similar pipeline designs [81]. Aggregating the models of these similar tasks into a multi-task model can significantly improve the efficiency of training and inference while maintaining the performance of individual tasks. Considering that MoE not only allows for flexible model expansion but also handles dependencies between different tasks, it is frequently used in the design of visual multi-task models. [89], [19], [97] primarily apply MoE to improve the encoder. [89] introduces MoE layers into the attention modules and MLP blocks of ViT [1] and designs a new loss function to encourage strong yet sparse dependencies between tasks and experts, ensuring that each task is only related to a few experts. This can reduce the likelihood of gradient conflicts between tasks. [19] also incorporates MoE layers into ViT and discusses the advantages and disadvantages of two gating functions in application scenarios: one configures a different router for each task, while the other uses a shared router to achieve dynamic routing by concatenating task embeddings with input tokens. It was found that the first gating method is more effective for handling multiple tasks. [97] inserts sparsely activated MoE layers into ViT and computes the model’s loss on the validation set during each iteration. By using the loss as feedback to dynamically increase or decrease the number of experts, the cumbersome process of manually adjusting model size can be avoided. ", + "page_idx": 11 + }, + { + "type": "text", + "text": "A few works have also attempted to introduce MoE into the decoder. [86] finds that different task decoders, due to shared decoding parameters, result in a static feature decoding process, leading to insufficient distinction in taskspecific features. Therefore, MoE was introduced as a decoder to decompose backbone features into task-agnostic features from different aspects, making the decoding process of taskspecific features more fine-grained. This work also utilizes convolutional operations to expand the receptive field of the gating network, which enriches the contextual information in the decision-making process. [81] argues that in traditional MoE structures, experts can only interact through routers, thus only establishing connections between some tasks. By adding a $3 { \\times } 3$ convolutional layer after the encoder, which is optimized by all tasks, it can learn common features across all tasks, providing the model with more global information ", + "page_idx": 11 + }, + { + "type": "text", + "text": "to aid decision-making. ", + "page_idx": 12 + }, + { + "type": "text", + "text": "The combination of mutli-task learning and MoE has further been explored in other application scenarios. [83] replaces the expert networks in MoE with LSTMs [244], leveraging the advantages of LSTMs in handling sequential data to improve performance in processing user activity data streams. The work in [94] applies MMoE to Digital Rock Physics Analysis tasks, addressing the issue of significant computational and memory resource consumption encountered by traditional numerical simulation methods for rock analysis [245], [246]. By utilizing MMoE, [94] transforms serial operations into parallel operations, reducing interference between multiple analysis tasks. [84] focuses on Heterogeneous Multi-task Learning tasks. In particular, this study only employed the MMoE framework but also introduced some stochastic mechanisms that restrict certain experts to handle specific tasks or disconnect certain experts from the current task, thus enhancing expert exploration. ", + "page_idx": 12 + }, + { + "type": "text", + "text": "D. Reinforcement learning ", + "text_level": 1, + "page_idx": 12 + }, + { + "type": "text", + "text": "Reinforcement Learning (RL) plays a pivotal role in decision making in many real-world applications, such as robotics, games, autonomous driving, and healthcare [247], [248], [249], [250], which seeks to learn a policy by interacting with the environments. However, its practical development suffers from several significant challenges, including computational inefficiency and limited adaptability within high-dimensional state spaces and complex dynamic environments [102]. By dynamically selecting the most appropriate expert based on input data, the MoE mechanism enhances RL agents’ flexibility in responding to diverse demand patterns and environmental changes, thus improving overall performance. In what follows, we summarize the recent advance in leveraging MoE in RL and showcase its potential in various applications. ", + "page_idx": 12 + }, + { + "type": "text", + "text": "The application of MoE in RL has a long history. One notable direction is the so-called modular RL, which breaks down complex RL problems into smaller modules and builds multiple sub-agents to handle a specific aspect of the task. Notably, [125] considers nonlinear and nonstationary control tasks, and proposes a multiple model-based RL (MMRL) system with multiple modules (i.e., experts). Each module has a dynamics model and a controller, where the state predictions and the action outputs are the weighted combination of all module outputs, with the weights calculated using a gaussian softmax function of the module state prediction error. Multiple studies have been proposed by following up this work. [106] introduces a concept of ‘modular reward’ which combines both the actual reward and the imaginary reward of appropriate module selections for the task. This will promote independent learning of different modules, which further leads to accurate estimation of global value functions of the composite policy. [107] constructs multiple experts to specialize in different regions of the overall state space, where standard RL approaches can be used for each expert to capture different information of the underlying state space. This is particularly useful for RL problems with large state spaces. ", + "page_idx": 12 + }, + { + "type": "text", + "text": "On the other hand, the idea of modular RL has also been investigated in the design of value-based approaches. ", + "page_idx": 12 + }, + { + "type": "text", + "text": "Specifically, [108] introduces a novel mixture of actor-critic experts (MACE) architecture with multiple actor-critic pairs for learning terrain-adaptive dynamic locomotion skills, where each pair will specialize in particular aspects of the motions. MACE is shown to be able to learn more quickly than the standard single actor-critic pair approach. [109] follows this network architecture and learning algorithm to solve MDP problems with a mixture of discrete and continuous actions, in the context of policy learning for the safe falling problem. [126] considers the skill knowledge transfer in multi-task RL and proposes a transfer expert RL architecture (TERL), where both actor and critic consist of a hierarchical structure with the experts and a gating network. The gating network will thus determine the expert selection of different tasks for either policy learning in the actor or value function learning in the critic. Several key features are designed in both gating network and experts to increase the capability of solving new tasks. [110] also considers a multi-task RL framework for transfer learning, which seeks to leverage the pretraining of multiple source tasks to facilitate the learning of new target tasks. Different from the traditional case where only one expert is activated at a particular timestep, this work proposes a model to enable the activation of multiple expert simultaneously. Each expert can specialize in a distribution of actions, whereas the composite policy can be obtained through a composition of these distributions. ", + "page_idx": 12 + }, + { + "type": "text", + "text": "More recently, [111] constructs the policy in policy iteration by leveraging the MoE architecture, where the action of each expert is determined based on the distance to a prototypical state, in order to ensure the policy is interpretable. [100] introduces Probabilistic Mixture-of-Experts (PMOE), which employs Gaussian mixture models for multi-modal policy representation and frequency approximation gradients to address non-differentiability during optimization. This approach overcomes the limitations of unimodal policies in traditional deep RL, enabling algorithms to learn varied strategies in tasks with multiple optimal solutions. More importantly, PMOE can be potentially applied in generic off-policy and on-policy deep RL algorithms using stochastic policies, e.g., Soft Actor-Critic (SAC) [234] and Proximal Policy Optimization (PPO) [251]. To improve the sample efficiency of [108] and accelerate model-free RL for terrain-adaptive locomotion skills learning, [112] proposes to generalize model-based value expansion (MVE) [252], a technique to obtain better state-action values by using more reliable targets, to a mixture of actor-critic experts. [101] proposes an MoE framework incorporating Bayesian functions that autonomously identify and combine promising sub-regions from multiple source tasks across different regions of the state space. By utilizing state-dependent Dirichlet prior distributions to learn similarities between dynamics in source and target tasks, and updating these priors using state transition data from the target environment, this method improves robustness against sparse or delayed rewards, even when there are errors in dynamic estimation. ", + "page_idx": 12 + }, + { + "type": "text", + "text": "The attention of leveraging MoE in RL has gained increasing attention last year due to the success of MoE in LLMs. [115] investigates of the impact of MoE layers in the DNNs used in value-based deep RL approaches, and shows that the performance of various deep RL algorithms can be significantly improved by incorporating soft MoEs [27] to replay the penultimate layers. Similar phenomenons have been observed in different RL setups, such as online RL, offline RL [253], and RL with a small amount of interactions. [113] considers multi-task robot learning and seeks to leverage offline RL to learn from both good demonstrations and sub-optimal data. In particular, the policy network is constructed as an MoE-based Transformer encoder to generate action tokens. [254] proposes a Diverse Skill Learning (Di-SkilL) method which aims to enable agents to acquire more skills in RL. In particular, each expert is modeled as a contextual motion primitive, adjusting behavioral strategies according to the current context and optimizing related distributions to focus on optimal performance sub-regions. Di-SkilL effectively addresses hard discontinuities and multimodality in unknown environments by representing each expert’s contextual distribution using energy-based models. [114] proposes a novel method named SMOSE for continuous control tasks. The controller is built upon a Top-1 MoE architecture, where each expert is trained to learn different basic skills and the router is trained to learn to appropriately assign tasks to experts. [102] investigates MoEs’ capability to manage non-stationarity — handling and adapting to changes in the environment or data distribution over time — in deep RL settings characterized by “amplified” non-stationarity via multi-task training. It finds that MoE supports network plasticity and is particularly effective in highly non-stationary conditions, providing fresh insights into addressing non-stationary training environments in RL. [103] explores visual deep RL to enable robots to acquire skills from visual inputs and proposes a method named MENTOR, which replaces the traditional MLP layers in visual RL agents by using the MoE architecture for action generations. ", + "page_idx": 12 + }, + { + "type": "text", + "text": "", + "page_idx": 13 + }, + { + "type": "text", + "text": "The application of MoE in other domains of RL, such as multi-agent RL and imitation learning, has also been explored. For instance, [116] applies modular RL to soccer robot. [117] proposes a method to assign multiple modules to different situations, in order to learn purposive behaviors for specified situations related to other agents. Similar to [125], in [117] each module consists of a prediction model and a planner, and the module that provides the best estimation of state transitions will be chosen. [118] uses modular RL with MoE to learn competitive behaviors in multi-agent systems. For imitation learning, [119] considers the problem of robot table tennis by allowing robot to learn through interactions with human, where an approach with mixtures of motor experts is proposed to generalize basic movements to various situations. Here each expert corresponds to a motor policy. [121] constructs a mixture of interaction experts to learn various interaction patterns from human demonstrations, based on Gaussian mixture models. [122] leverages Gaussian mixture models to handle the model collapse problem in learning generalized movement representations from human demonstrations. [123] leverages a mixture of movement primitives to imitate versatile human demonstrations. [124] trains a variational autoencoder with a mixture density network to capture the complexity and variability in Human-Robot Interaction. Given the diversity of constraints under which demonstration data may be collected, [104] presents Multi-Modal Inverse Constrained Reinforcement Learning (MMICRL), which uses flow-based density estimation for unsupervised expert identification and infers specific agent constraints, thus enhancing the adaptability and reliability of inverse constrained reinforcement learning algorithms. The strategy of ensemble methods that carries a very similar idea with MoE has also been widely used in RL, in terms of model ensembles [255], value function ensembles [256], and policy ensembles [257], [258]. ", + "page_idx": 13 + }, + { + "type": "text", + "text": "", + "page_idx": 13 + }, + { + "type": "text", + "text": "Finally, we summarize several attempts on applying MoE in specific applications of RL. For example, [105] confronts the challenge of driving chatbots with RL by developing several RL algorithms tailored for Dialogue Management. Leveraging the hierarchical structure of MoE-based language models enables offline RL methods to operate within a significantly reduced action space, making RL problems more tractable while generating discourse that reflects diverse intentions. Similarly, in video processing [259] and investment portfolio management [260], MoE-based approaches dynamically activate specific expert models based on current data, achieving higher accuracy, lower computational costs, and enhanced adaptability to changing environments. [120] leverage MoE models to scale up the parameters of RL models in optimal execution tasks. ", + "page_idx": 13 + }, + { + "type": "text", + "text": "E. Federated learning ", + "text_level": 1, + "page_idx": 13 + }, + { + "type": "text", + "text": "Federated Learning [261] is proposed to address the challenge of how different data owners can effectively exchange data without compromising user privacy and ensuring data security. By first training multiple local models on different servers and then aggregating these local model parameters using various rules to update the global model, the federated learning paradigm not only fully leverages distributed yet information-rich data but also efficiently utilizes the computational resources of multiple clients, inspiring a series of subsequent work, particularly in the field of recommendation systems [262], [263], [264]. ", + "page_idx": 13 + }, + { + "type": "text", + "text": "When updating the global model using multiple local model parameters, one of the most common rules is Federated Averaging (FedAVG) [265]. This rule assigns weights to the corresponding local models based on the size of each client’s local dataset during parameter updates, and then updates the global model using the weighted combinations of local parameters. However, this rule relies on a manually defined simple heuristic, which not only requires each model to be initialized with the same random seed for convergence but is also unsuitable for scenarios where the data distribution among clients is highly heterogeneous [265]. Considering the hybrid nature of MoE, [127] is the first to introduce the MoE architecture into the federated learning setting. Specifically, this work proposes to train a general model using aggregated data and domainspecific models for each client using private data, and then use a gating mechanism to determine the contribution of each model’s output to the learning task. Compared to FedAVG, this approach better generates outputs based on task characteristics. [128] adopts a similar approach but focuses more on scenarios with stronger data heterogeneity across clients. Additionally, an opt-out mechanism is designed to ensure that clients with sensitive data could choose not to participate in the data integration process, thereby safeguarding data security. Some other work has also followed this combined approach [129]. ", + "page_idx": 13 + }, + { + "type": "text", + "text": "", + "page_idx": 14 + }, + { + "type": "text", + "text": "An important goal of federated learning is to effectively integrate data from multiple clients. However, it is evident that real-world data distributions are highly complex and variable. Therefore, a major challenge in federated learning is data heterogeneity, which can manifest in two ways: one where clients share the same conditional distribution but have different marginal distributions, and the other where the opposite is true. Both scenarios can harm the model’s learning performance. Recently some studies have made substantial efforts to address this challenge. For example, [130] introduces two improvements: First, this work incorporates client identifier information into the gating decision; Second, to reduce the difficulty of training MoE expert models on non-IID data, which could lead to model degradation, a variational lower bound is leveraged to derive a unified global variational approximation, which replaces the true posterior distribution of all clients during training. [131] proposes an improved model fine-tuning method, where a general model is first trained and each client only fine-tunes the shallow parameters in the general model. Additionally, for complex high-dimensional data, this work uses partial model parameters to extract features from the raw data before feeding them into the gating function to make inputs distinguishable. [132] first trains local models on each client and then uses the clustering method IFCA [133] to iteratively cluster all clients, generating a global cluster model for each cluster. Finally, a gating mechanism is used to combine the outputs of the global cluster models and the local models to produce the final result. [134] also introduces a MoE layer on the server side but dynamically determines the number of top-K experts to retain based on the client’s resource conditions during routing, fully utilizing limited computational resources. ", + "page_idx": 14 + }, + { + "type": "text", + "text": "In addition to the discussion on heterogeneity, another significant challenge in federated learning is communication overhead. Each round of communication between decentralized servers incurs substantial costs. Generally, there are two approaches to address this issue. The first approach is to reduce the amount of information that needs to be communicated in each round by transmitting only critical model parameters. For example, the number of experts in the locally trained MoE layer can be reduced, discarding some expert parameters that contribute less to the output in exchange for improved communication efficiency [135], [134]. Alternatively, only the most important MoE models can be selected for transmission. The second approach is to reduce the number of communication rounds, such as in One-shot Federated Learning (OFL), where typically only a single round of communication is performed during training to aggregate client models on the central server. After this, clients no longer participate in subsequent optimization updates. However, many popular OFL methods [136], [137] employ lossy aggregation, where aggregating all local models into a single global model results in knowledge loss, especially when model heterogeneity is strong [266]. In contrast, [138] proposes to treat all local models as expert models and train a specialized lightweight gating function using additional data to aggregate these experts. This approach effectively preserves the knowledge of local models while reducing communication overhead. ", + "page_idx": 14 + }, + { + "type": "text", + "text": "", + "page_idx": 14 + }, + { + "type": "text", + "text": "IV. THEORY ", + "text_level": 1, + "page_idx": 14 + }, + { + "type": "text", + "text": "Although the MoE model has a long history and achieved great empirical success in practice during the past few years [267], [16], the theory behind it is largely under-explored, especially in deep neural networks. Recently, some studies have initiated the attempt to build theoretical understandings of MoE. In this section, we will delve into these studies, aiming to provide the readers a basic idea of the theory development in this area. ", + "page_idx": 14 + }, + { + "type": "text", + "text": "Most of the theory development for MoE so far mainly focus on simple models. Early studies in this area seek to understand the approximation capacity of MoE models. For instance, [141] investigates the convergence rate for hierarchical MoE models where the experts are exponential family regression models. [142] characterizes the convergence rate for hierarchical MoE models with generalized linear models as the experts. [143] provides the error bounds for functional approximation using MoE models and shows the convergence to any sufficiently differentiable target function in the Sobolev space. [144] provides an alternative result of this through a universal approximation theorem for MoE models with softmax gating functions and linear experts, without imposing assumptions on the differentiability of the target function. [145] considers a standard MoE model with softmax gating functions where the experts are polynomial regression models, and characterizes the convergence rate of the maximum likelihood estimator (MLE) depending on the number of experts and the order of the polynomial model. ", + "page_idx": 14 + }, + { + "type": "text", + "text": "Recently, some studies have emerged and aimed to characterize the convergence of MLE for MoE models with different gating functions for regression problems. For instance, [146] characterizes the convergence rate of the MLE for Gaussian MoE models with covariate-free gating functions, by leveraging techniques from optimal transport. [147] attempts to understand the parameter estimation of the MLE for Gaussian MoE models with softmax gating functions, By leveraging novel Voronoi loss functions to capture the interactions between the gating and experts, the convergence rate of MLE is established. The convergence of MLE for Gaussian MoE models with other types of gating functions, such as Gaussian density gating [148] and top-K sparse softmax gating [149], has also been investigated. [150] studies a more general setup of MoE models with softmax gating for least square estimation, and characterizes the convergence rates for different types of expert model. The theoretical understanding behind the recently emerged cosine gating function is developed in [25] for lease square estimation. ", + "page_idx": 14 + }, + { + "type": "text", + "text": "In contrast, the theoretical understanding of MoE models for classification problems is less explored. [151] investigates the classification problem with the MoE models including softmax gating and multinominal logistic expert models. In particular, the convergence rates for density estimation and parameter estimation are established. A novel class of modified softmax gating functions is further proposed to improve the convergence rate for parameter estimation when part of expert parameters vanish. [151] also studies the inefficiency issues encountered by the gating function in MoE during training. Specifically, when some expert parameters vanish (i.e., the parameters of certain expert models approach zero or become insignificant), the interaction between the standard softmax gating function and the expert functions through partial differential equations (PDEs) significantly slows down the parameter estimation rate [146], [149], [147], [148]. This paper thoroughly investigated the problem under an improved softmax gating function setting. Specifically, they used a bounded function $M ( X )$ to transform the input $X$ before passing it to the softmax gating function. Although the expert parameters still depend on the input $X$ , the transformed $X$ no longer has a linear relationship with the original $M ( X )$ , thereby eliminating the interaction between gating parameters and expert parameters and significantly improving the model’s convergence speed and stability. ", + "page_idx": 14 + }, + { + "type": "text", + "text": "", + "page_idx": 15 + }, + { + "type": "text", + "text": "Most of the successes of MoE models nowadays happen with more complex expert models, such as deep neural networks. However, the theoretical understanding of MoEs in deep learning remains elusive compared to the theoretical studies of MoE in simple models, largely due to the limited understanding of deep neural networks. [29] seeks to fill this gap and makes the first attempt to understand the behaviors of MoEs in deep learning. More specifically, they consider a standard MoE architecture with softmax gating, where each expert model is a two-layer CNN, and investigate a binary classification problem where the dataset contains multiple clusters. The authors show that any single-expert model with a two-layer CNN cannot achieve more than $8 7 . 5 \\%$ accuracy on this specific dataset, while a linear MoE model performs slightly better than a single-expert model but still falls short of a nonlinear MoE model. With sufficient expert exploration during the training, it can be shown that the router can automatically learn the cluster structure of the data and dynamically route the data to the most suitable expert. Following this work, [140] investigates the patch-level routing for MoE models (pMoE) with linear gating in solving a supervised binary classification task, where each expert is a two-layer CNN. They show that the pMoE model can achieve similar generalization performance with standard CNN but with a reduced sample complexity. One of the key reasons behind this, also theoretically and empirically justified, is that an appropriately trained patch-level router can route the classdiscriminative patches of one class to the same expert and drop some class-irrelevant patches. ", + "page_idx": 15 + }, + { + "type": "text", + "text": "With the increasingly broad applications of MoE in many problems, the theoretical studies of MoE start to emerge beyond the general machine learning setup. [152] explores the usage of MoE models in handling multilevel data while building the theoretical understanding therein. Notably, multilevel data is very common in practical applications [268], [269], such as hierarchical data with a nested structure where different levels are correlated. Ignoring the dependencies within the data can lead to spurious, misleading, or biased clustering and prediction outcomes [270]. To better capture the dependencies, [152] proposes a Mixed MoE to handle multi-level data, which we define as MeMoE in this work. This approach not only introduces random effects into the gating function, making the computed gating values depend not only on input variables but also on random effects. This helps the model better capture random effects in multi-level data when dynamically adjusting expert weights. At the same time, to simplify the model, the expert functions are separated from the random effects, and the probability distribution of the expert model no longer depends on input variables but only on output variables. Under certain regularity conditions, this paper proves that the MeMoE is dense in the sense of weak convergence for any continuous mixed-effects model. In the special case of hierarchical multi-level data, this paper further proves that MeMoE can approximate the complex dependency structures of random effects between different factor levels in multi-level data. ", + "page_idx": 15 + }, + { + "type": "text", + "text": "", + "page_idx": 15 + }, + { + "type": "text", + "text": "[30] investigates how integrating the MoE framework into models can effectively mitigate generalization and forgetting issues in continual learning [271], [272], under the setup of over-parameterized linear regression tasks and a linear gating MoE model. The authors prove that a sufficiently trained MoE model can diversify experts to specialize in different tasks, which minimize the interference across tasks and reduce the forgetting in continual learning. To ensure the stability of the gating function, the update of the gating network must be terminated in a timely manner for new task learning. Explicit expressions for expected forgetting and overall generalization error are also derived, quantitatively evaluating the impact of MoE in continual learning. [139] theoretically investigates the usage of the MoE framework in mobile edge computing (MEC) on handling continuous task streams therein. Specifically, each MEC service station is treated as an expert model, updating its local model based on the data distribution of tasks. An adaptive gating network was proposed to dynamically allocate tasks to different experts, ensuring that each expert converges and specializes in specific task types. Additionally, the paper derived the minimum number of experts required to ensure system convergence and proved that the MoE model can control the overall generalization error within a small constant range, significantly outperforming traditional MEC offloading strategies. ", + "page_idx": 15 + }, + { + "type": "text", + "text": "V. APPLICATIONS ", + "text_level": 1, + "page_idx": 15 + }, + { + "type": "text", + "text": "In this section, we investigate the applications of MoE in two broad application domains, computer vision (CV) and natural language processing (NLP). By examining the influence of MoE in tasks ranging from image classification to machine translation, we highlight how this architectures enhance specialization, scalability, and adaptability, offering insights into their practical impact and future potential across diverse real-world scenarios. ", + "page_idx": 15 + }, + { + "type": "text", + "text": "A. Computer vision ", + "text_level": 1, + "page_idx": 15 + }, + { + "type": "text", + "text": "With the rapid development and maturation of the CV field, the focus of both academia and industry has gradually shifted towards how CV technologies can be effectively implemented in specific application scenarios. However, this process has encountered several challenges such as resource constraints in edge deployment, difficulties in model scalability, and computational efficiency. These issues have pointed to the need of the redesign of existing models, especially when dealing with large volumes of data and complex tasks, where traditional model architectures often struggle to find an ideal balance between performance, flexibility, and stability. Since MoE has attracted renewed attention due to its performance advantages demonstrated in Mixtral 8x7B [22], an increasing number of studies have attempted to apply it in the CV field, to boost the state-of-the-art performance. Since the MoE architecture introduces multiple specialized experts to handle specific types of inputs and dynamically adjusts the activation levels of different experts based on the input data, it not only helps alleviate hardware resource bottlenecks but also enhances the model’s ability to handle diverse visual tasks, thereby optimizing both performance and stability. Therefore, in this subsection we will focus on the application of MoE in the field of CV by reviewing recent advancements from four bedrock aspects, i.e., classification, detection, segmentation, and generation. The aim is to provide valuable references for future explorations to address the challenges in the CV field. ", + "page_idx": 15 + }, + { + "type": "text", + "text": "", + "page_idx": 16 + }, + { + "type": "text", + "text": "1) Image Classification. Image classification, as one of the most fundamental machine learning tasks, is a key component of many CV tasks. Therefore, understanding the performance and limitations of MoE in image classification can, to some extent, reflect its potentials for application in other CV tasks. ", + "page_idx": 16 + }, + { + "type": "text", + "text": "Notably, [17] proposes and validates a new approach, namely V-MoE, to cope with visual tasks, by replacing the MLP layers in Vision-Transformer [1] with sparse MoE layers. V-MoE can scale the model to 15 billion parameters and demonstrates the efficiency gains from this simple combination in image classification tasks. Further explorations within the traditional MoE framework have been conducted. [153] dissects the MoE architecture, providing a detailed exploration of its training and optimization. The paper discusses how the number of expert networks, the number of MOE layers, and their placement affect the model’s performance, efficiency, and stability. ", + "page_idx": 16 + }, + { + "type": "text", + "text": "As expert networks are a key component of MoE, many efforts have been made to optimize them. ViMOE [154] introduces the concept of shared experts, where a shared expert handles common knowledge required for classification, while other specialized experts focus on specific knowledge. This approach mitigates the difficulty in exploring optimal configurations due to the sensitivity of MoE layers to expert setups and enhances training stability. The paper also systematically analyzes routing behaviors, examining routing strategies, the number of experts, and the placement of MoE layers. It visualizes routing behaviors with heatmaps, finding that MoE layers closer to the output handle more semantically rich feature maps, leading to more specialized tasks for experts. Consequently, the last L layers of the model should be replaced with sparse MoE layers. The analysis suggests that both the number of experts and the size of $\\mathrm { L }$ are related to the degree of routing, and more does not necessarily mean better performance. To some degree, the base model introduced in [155] shares similarities with the shared expert concept proposed in ViMOE [154]. In CLIP-MoE [156], the MoE architecture is applied to enhance the capabilities of the CLIP model through a method called Diversified Multiplet Upcycling. The authors fine-tune a series of pre-trained CLIP models using multi-stage contrastive learning, extracting expert networks that focus on different aspects of the input data, and integrating these experts into the MoE architecture. ", + "page_idx": 16 + }, + { + "type": "text", + "text": "", + "page_idx": 16 + }, + { + "type": "text", + "text": "Other papers delve deeper into the design of gating functions. [27] introduces a novel technique called Soft MoE, which differs from traditional hard assignment of input tokens to experts by using a weighted average of all tokens for soft assignment. Therefore, each expert processes different parts of these weighted combinations. This method retains the advantages of the MoE architecture in scaling model capacity. Besides, it also improves training stability, reduces inference time, and effectively addresses the token dropping issue common in MoE training, creating a new paradigm for gating functions. [155] addresses the overfitting problem encountered when using MOE on small datasets by designing an architecture that incorporates early exit mechanisms and pre-training. Specifically, the model pre-trains a base model during the training phase and pre-determines the number of experts using k-means clustering. During inference, if the base model has high confidence in a sample’s prediction, it can opt for an early exit, bypassing the subsequent MoE layers for specialized learning. Otherwise, the sample is passed to the MoE layers for specialized learning, and the outputs from both the MoE layers and the base model are combined by Ensemblers to produce the final output. ", + "page_idx": 16 + }, + { + "type": "text", + "text": "[158] focuses on improving the design of gating mechanisms in Hierarchical Mixture of Experts (HMoE) models to address performance bottlenecks in handling complex inputs and executing specific tasks. Specifically, this work proposes a method that goes beyond the traditional Softmax gating function by using Laplace gating strategies for both hierarchical and task allocation. By customizing gating functions for each expert group, the HMoE model can allocate resources more effectively without increasing computational burden and improve performance on complex datasets. Additionally, it explores the intrinsic interactions between first-level and second-level gating parameters, which significantly affect the convergence speed of model parameter estimation, providing a thoughtful direction for allocating complex or hierarchical datasets. [157] designs a deep mixture algorithm called DeepME (Deep Mixture Experts) for efficiently handling large-scale image processing tasks. It groups similar image categories based on semantic relevance, allowing for some overlap between categories. This ensures that each task group contains image categories with similar learning complexities, and specific base deep networks are trained for these groups. Additionally, a gating network is trained to combine all base deep networks, generating a mixed network with larger outputs to effectively handle large-scale datasets containing thousands of categories. ", + "page_idx": 16 + }, + { + "type": "text", + "text": "2) Object Detection. Object detection is also one of the important tasks in the field of CV. Building on image classification, it requires the model to not only detect objects but also output the location of each classified object, where ensuring the computational efficiency of the model is more challenging compared to that in image classification. ", + "page_idx": 16 + }, + { + "type": "text", + "text": "", + "page_idx": 17 + }, + { + "type": "text", + "text": "Similarly, many studies have explored the impact of simply integrating MoE with base models for object detection. MoCaE [159] has shown that directly using simple methods from deep ensemble (DEs) [273] to integrate different object detectors with the MoE architecture does not improve model performance and may even have adverse effects. The underlying reason is that simply adding different detectors leads to unfair competition, thereby affecting the final detection results. To address this, this work introduces Early Calibration and Late Calibration to adjust the confidence levels of different detectors, better reflecting their true detection performance. Experimental results have shown that MoCaE yields significant gains over single models and DEs on several real-world challenging detection tasks. ", + "page_idx": 17 + }, + { + "type": "text", + "text": "[160] replaces the FFN layer in the traditional transformer with the MoE-HCO block, proposing an event-stream-based object detection framework called MvHeat-DET. The MoEHCO block selects the most suitable transformation branch for the current features through a policy network, providing various signal transformation expert networks. Therefore, the input events can have more diverse and suitable processing modules. It also uses frequency embedding to predict thermal diffusion coefficients to simulate the heat conduction process. This will enable the model to better capture spatiotemporal dynamic features in event streams while maintaining efficient computation, demonstrating high practical values. To help the model better understand and process multi-source datasets, DAMEX [161] proposes a data-aware MoE architecture, by replacing the FFN layer in the transformer with an MoE layer. Different experts are trained to learn data from different sources, enhancing the model’s generalization capability. Traditional two-stage methods [274], [275] require multiple classification heads to detect data from different datasets, leading to an increase in parameters with mixed datasets. In contrast, the data-aware MoE layer can achieve excellent performance without significantly increasing the number of parameters. [162] addresses the diversity and ambiguity of the task itself, by transforming the original single-mask prediction task into a multi-mask prediction task and predicting human preference scores for each possible salient object mask. To enable the model to handle multiple tasks more efficiently, this paper leverages the MoE architecture to solve the integrated training problem of the two tasks, and overcomes the inconsistency in input and output formats between the two subtasks. In particular, this work replaces the FFN layer in DaViT [276] with an MoE layer, which contains two experts: the PFFN layer for handling the PSOD (Pluralistic Salient Object Detection) task and the Q-FFN for handling the MQP (Mask Quality Predictor) task. This allows the model to dynamically select the most suitable expert network for the current task, improving model performance without significantly increasing the number of parameters. ", + "page_idx": 17 + }, + { + "type": "text", + "text": "3) Semantic Segmentation. Semantic segmentation requires classifying each pixel in the input image. As a result, processing high-resolution images may significantly increase the demand on the hardware, hindering the model’s practical applications. Compared to traditional segmentation models, the MoE-based model can provide the following benefits: 1) The MoE architecture alleviates hardware pressure through its sparse activation and divide-and-conquer strategy, enhancing the model’s practicality. 2) Some studies [163], [164] have also found that using MoE can achieve excellent performance in semantic segmentation tasks that require greater model stability and generalization. 3) MoE also enjoys a better interpretability in terms of knowledge specialization. ", + "page_idx": 17 + }, + { + "type": "text", + "text": "", + "page_idx": 17 + }, + { + "type": "text", + "text": "[166] seeks to leverage MoE to achieve a good balance between computational complexity and representational capacity in deep neural networks. In particular, traditional convolutional networks are combined with shallow embedding networks and multi-head sparse gating networks, dynamically selecting and executing partial networks at each convolutional layer. This can improve the accuracy while reducing prediction costs without significantly increasing the network width. Furthermore, this work proposes two DeepMoE variants including wideDeepMoE and narrow-DeepMoE. The first one is suitable for applications requiring high accuracy, whereas the second one is designed for computational resource-limited scenarios. Swin2-MoSE [167] demonstrates that MoE can also be applied to improve semantic segmentation models, especially on remote sensing images. The authors design an MoE layer called MoE-SM, which includes an SM (Smart Merger) module to merge the outputs of various experts and adopts a new perexample strategy instead of the commonly used per-token one. This can ensure that all tokens of each example are processed by the same expert, enhancing the model’s competitiveness in semantic segmentation tasks. ", + "page_idx": 17 + }, + { + "type": "text", + "text": "Some studies have also investigated the usage of MoE in the segmentation for autonomous driving related scenarios. For example, [165] aims to leverage MoE to better understand autonomous driving scenarios which can further lead to improved algorithm design. Due to its architecture design, MoE inherently enjoys better transparency. Compared to other general models [273], [277], the MoE models can not only provide the final overall model output, but also enable the analysis of the outputs of individual expert models and their consistency or divergence with the overall output during the decision-making process. This mechanism provides more detailed information about how the models work, offering better interpretability while maintaining performance close to that of a single baseline model. A common issue in segmenting urban and highway traffic scenes is vulnerability to adversarial attacks. To address this, [163] attempts to use MoE given its properties of more dynamic model selections compared to traditional methods [278], [279], [280]. This work shows that the MoE models exhibits higher robustness against instancespecific attacks, universal white-box adversarial attacks, and cross-model transfer attacks, maintaining relatively high accuracy under these attacks. Additionally, the MoE models with additional convolutional layers show even stronger resistance to attacks. These results indicate that MoE not only improves model performance but also enhances model robustness and stability. ", + "page_idx": 17 + }, + { + "type": "text", + "text": "4) Image Generation. Image generation can produce realistic and diverse images, which is very useful in many applications [281], [282], [283], [284]. However, current image generation technologies still face various challenges such as low generation quality, limited diversity, and poor adaptability to complex tasks. By decomposing the complex problem of image generation into multiple simpler and core tasks, MoE leverages the collaboration among the experts to enhance the quality of generated images, improve the diversity of outputs, and further enrich detail representations. ", + "page_idx": 18 + }, + { + "type": "text", + "text": "RAPHAEL [168] introduces two types of MoE models for temporal control and spatial settings during generation, respectively. On one hand, a spatial MoE layer is responsible for depicting different text concepts in specific image regions, allowing each text token to learn specific visual features through specialized experts. This can enhance the representation of different concepts. On the other hand, a temporal MoE layer focuses on processing these concepts at different time steps of the diffusion process to handle varying degrees of noise impact. This configuration results in billions of diffusion paths from the network input to the output, each path acting as a “painter” for specific concepts and image regions, achieving finer text-to-image alignment and improving the quality and aesthetic appeal of generated images. The application of MoE enables RAPHAEL to flexibly switch between multiple styles and closely adhere to text prompts. ", + "page_idx": 18 + }, + { + "type": "text", + "text": "GANs [285] are known to struggle to learn multimodal data distributions when processing complex datasets, leading to generated images with poor-quality. To address this, [169] proposes MEGAN with multiple generator networks, where each network focuses on learning specific modal distributions in the dataset. This design allows each generator to focus on different data subsets, generating more diverse and higherquality images. ", + "page_idx": 18 + }, + { + "type": "text", + "text": "A novel design of MoA is introduced in [32] by creating two attention paths, i.e., a personalized branch and a nonpersonalized prior branch, allowing the model to retain its powerful generation capabilities while minimizing interference with the personalized part. This specially designed MoA can intelligently adjust the generation process based on the input text and subject image. By optimizing the fusion of personalized and generic content, high-fidelity personalized image generation can be achieved without sacrificing image diversity or quality. Additionally, the learning routing mechanism in [32] dynamically manages pixel distribution at each level, further improving the performance for image generation tasks that involve multiple subjects and complex interactions. ", + "page_idx": 18 + }, + { + "type": "text", + "text": "Text2Human [170] applies MoE to the transformer encoder based on the diffusion model [286], [287], [288], enabling conditional generation of clothing with different texture types. Specifically, the MoE model routes input features to different expert heads based on the texture attributes mentioned in the text prompt, with each expert head responsible for predicting tokens of specific textures. Based on the synthesis and control of more complex textures, this method increases the model’s ability to handle details while avoiding the computational burden of training separate samplers for each texture. ", + "page_idx": 18 + }, + { + "type": "text", + "text": "B. Natural Language Processing ", + "text_level": 1, + "page_idx": 18 + }, + { + "type": "text", + "text": "As a core research area of artificial intelligence, NLP focuses on enabling computers to understand, generate, and process human language [289], [290]. It plays a significant role in promoting human-computer interaction, information extraction, knowledge mining, cross-lingual communication, and automation. However, the field of NLP still faces challenges such as the trade-off between model capacity and computational cost, poor adaptability to multi-task and multidomain scenarios, sparse data and long-tail problems, insufficient reasoning and logical capabilities, and the need for personalization and dynamic adaptability. ", + "page_idx": 18 + }, + { + "type": "text", + "text": "The MoE architecture effectively alleviates these challenges through mechanisms such as sparse activation and the allocation of different expert models for different tasks or domains. This not only reduces computational costs but also enhances model performance in multi-task, low-resource scenarios, and complex reasoning tasks, while supporting personalized services. In light of the application of MoE in the NLP field, this subsection will summarize and review relevant work from the perspectives of Natural Language Understanding (NLU) and Natural Language Generation (NLG). ", + "page_idx": 18 + }, + { + "type": "text", + "text": "1) Natural Language Understanding. The advancement of NLU technology enables machines to understand and interpret human language, by bridging the gap between human communication and machine processing [291], [292]. This allows systems to perform tasks such as intent recognition, entity extraction, and semantic analysis [8], [293], which are crucial for applications such as virtual assistants, chatbots [294], sentiment analysis [295], and information extraction [296]. However, the further development of NLU is hindered by the complexity, ambiguity, and diversity of human language. MoE allows systems to dynamically leverage expert networks for different linguistic tasks or domains. For example, one expert may specialize in syntactic parsing, while another focuses on sentiment analysis, thereby enhancing the model’s ability to effectively handle various complex linguistic patterns. This specialization and adaptability make MoE a powerful method for extending and refining NLU systems, enabling more accurate and context-aware language understanding. Since the use of specially designed MoE architectures to enhance model performance in NLG tasks has not yet reached a scale sufficient for sub-domain classification, this section will only summarize some representative work in recent years. ", + "page_idx": 18 + }, + { + "type": "text", + "text": "GLaM [20] introduces an MoE architecture to make the training and inference processes more efficient. It significantly reduces the required computational resources and energy consumption while maintaining or even improving model performance. This encouraging result highlights the great potentials in leveraging MoE to address the issue of high computational resource consumption in large-scale, intensive language models for NLU tasks. ", + "page_idx": 18 + }, + { + "type": "text", + "text": "MoE-LPR [171] designs a two-phase training strategy for the MoE-based model. In the first phase, the original model is converted into an MoE architecture, and new expert modules are added, which improves the model’s capability for new languages without using original language data. In the second phase, a small amount of original language data is used for review, and a language prior routing mechanism is employed to restore and maintain the performance of the original language. Experimental results demonstrate the excellent scalability and stability of MoE-LPR, providing a new perspective for multilingual natural language understanding tasks. ", + "page_idx": 18 + }, + { + "type": "text", + "text": "", + "page_idx": 19 + }, + { + "type": "text", + "text": "When speech is transcribed into text, errors from Automatic Speech Recognition (ASR) systems [297] often affect the accuracy of subsequent NLU components. To address this, [172] proposes an MoE-based framework, namely MoE-SLU, aiming to mitigate the impact of ASR errors on spoken language understanding performance. MoE-SLU employs three strategies to generate additional transcripts and uses MoE to weight and average these transcripts. By enhancing the model’s ability to capture keywords, MoE-SLU is more robust to ASR errors, achieving state-of-the-art performance on three benchmark SLU datasets. The performance of MoE-SLU can be further improved through regularized predictions. ", + "page_idx": 19 + }, + { + "type": "text", + "text": "To address the issue of interference in multi-task learning, particularly among NLU tasks, MT-TaG [87] introduces a sparsely activated MoE architecture and designs a task-aware gating mechanism to route inputs to specific expert networks. Compared to traditional dense models, MT-TaG demonstrates superior performance in multi-task learning, especially in lowresource task transfer, efficient generalization, and handling unrelated tasks. MoPE-BAF [173] designs various soft prompt experts, including text prompts, image prompts, and unified prompts, based on a unified vision-language model to enrich unimodal representations and promote multimodal interaction. By introducing a block-aware prompt fusion mechanism, the model achieves cross-modal prompt attention across Transformer layers, smoothly transitioning from unimodal representations to multimodal fusion. Experimental results show that MoPE-BAF significantly improves performance in fewshot settings for multimodal sarcasm detection and sentiment analysis tasks, demonstrating the effectiveness of MoE in deep multimodal semantic understanding tasks. ", + "page_idx": 19 + }, + { + "type": "text", + "text": "2) Natural Language Generation. NLG can transform structured data or concepts into natural and fluent text, widely applied in machine translation [298], dialogue systems [299], content creation [300], and information summarization [301], among other fields. To achieve diverse and precise language expression, NLG systems require strong model capacity to capture complex linguistic structures and contextual dependencies, while effectively handling interference in multi-task learning to maintain high performance across different scenarios. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible NLG systems. ", + "page_idx": 19 + }, + { + "type": "text", + "text": "(a) Text Generation. Text generation has numerous applications in NLP. Through effective text processing, NLP systems can accurately understand, generate, and transform human language, which is crucial for achieving more advanced NLP applications. However, text processing still faces challenges such as insufficient generation diversity and uncontrollable generated content. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. ", + "page_idx": 19 + }, + { + "type": "text", + "text": "", + "page_idx": 19 + }, + { + "type": "text", + "text": "In [174], MoE is introduced into the generator of a language GAN, leveraging multiple experts to collaboratively generate high-quality sentences, with each expert acting as a recurrent neural network that autoregressively produces the current token representation. Additionally, the Feature Statistics Alignment (FSA) paradigm is incorporated to further optimize the learning signals during generator training, making the generated text more closely aligned with the real data distribution. In RetGen [175], during inference, a retriever first obtains the top K most relevant documents and their corresponding probabilities. Then, K independently trained transformer-based generation models process each document along with the same context, combining the partially generated results with the current consensus to produce their respective output distributions. The final output distribution is a weighted combination of these independent generation results, with weights determined by the document relevance probabilities. This approach overcomes issues such as ignoring document relevance information when simply concatenating multiple documents as input, allowing the model to more effectively utilize document relevance information to guide the text generation process. LogicMoE [176] focuses on solving the problem of table-to-text generation. In the designed LogicMoE architecture, each expert acts as a specialized generator for a specific logical type, responsible for generating sentences that meet the requirements of that logical type. This design not only improves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. ", + "page_idx": 19 + }, + { + "type": "text", + "text": "(b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content. This mechanism not only improves translation accuracy and fluency but also better handles complex scenarios involving multiple languages and domains, thereby enhancing the performance and adaptability of machine translation. ", + "page_idx": 19 + }, + { + "type": "text", + "text": "[16] innovatively introduces Sparsely-Gated MoE technology for conditional computation. Applying MoE to language modeling and machine translation tasks not only significantly improves model performance on large datasets but also achieves efficient utilization of computational resources. Gshard [21] replaces traditional feedforward network layers with MoE layers and adopts conditional computation to achieve efficient utilization of computational resources and flexible expansion of model capacity. MoE-based Transformer models at different scales are designed and trained to meet translation needs from high-resource to low-resource languages. Experimental results show that the MoE models trained using GShard significantly improve translation quality, while achieving higher training efficiency and lower costs compared to dense models under the same hardware conditions. [178] also introduces a selective activation mechanism by replacing some dense model layers with MoE layers, significantly enhancing the model’s representational capacity with similar inference and training efficiency. This approach is particularly beneficial for high-resource languages due to the increased model capacity, while also helping low-resource languages reduce interference from unrelated languages. Additionally, to address the issues in large-scale MoE models, such as quick overfitting in low-resource directions, regularization and curriculum learning strategies are applied to optimize complex training dynamics. A good balance is achieved between cross-lingual transfer and interference in multilingual machine translation. [179] also leverages sparse activation mechanisms to significantly enhance the model’s representational capacity without increasing computational costs. ", + "page_idx": 19 + }, + { + "type": "text", + "text": "", + "page_idx": 20 + }, + { + "type": "text", + "text": "In order to address the inefficiency issues encountered during the deployment and inference stages of MoE models, [180] proposes three optimization techniques, including dynamic gating, expert caching, and load balancing methods, to improve the inference efficiency of MoE models in language modeling and machine translation tasks. ", + "page_idx": 20 + }, + { + "type": "text", + "text": "3) Multimodal Fusion. Multimodal fusion integrates information from text and other modalities, providing richer and more comprehensive data representations. In particular, multimodal fusion can capture contextual clues and semantic details that single modalities cannot provide, thereby enhancing the model’s understanding and predictive capabilities. In multimodal fusion scenarios, using MoE allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. This not only improves the overall performance of the model but also enhances its flexibility and scalability, allowing for better performance in complex multimodal tasks. ", + "page_idx": 20 + }, + { + "type": "text", + "text": "LIMoE [182], as the first large-scale multimodal mixture of experts model, can simultaneously process image and text data and align their representations through contrastive learning. Additionally, this study demonstrates the organic emergence of modality-specific experts in LIMoE, where experts spontaneously specialize in handling specific types of data or tasks,. This indicates that the model not only effectively allocates resources for different tasks but also promotes cross-modal and cross-task knowledge transfer. LLaVA-MoLE [181] addresses the issue of data conflicts in multimodal large language models when fine-tuning with mixed-domain instruction data, by proposing the use of sparse LoRA Mixture of Experts (MoLE). The proposed method selects the most suitable LoRA expert for each input token based on its embedding features in the attention layers, allowing the model to adapt to inputs from different domains. This effectively mitigates performance degradation caused by mixing different types of instruction data. The Hunyuan model [183] is the first Chinese MoE multimodal large model, achieving a score of 71.95 on SuperClue-V, surpassing some international top models and demonstrating its unique advantages in the context of Chinese culture. ", + "page_idx": 20 + }, + { + "type": "text", + "text": "", + "page_idx": 20 + }, + { + "type": "text", + "text": "VI. FUTURE DIRECTIONS ", + "text_level": 1, + "page_idx": 20 + }, + { + "type": "text", + "text": "MoE models present significant opportunities for advancing machine learning in real-world applications, but they also face several challenges that must be addressed to unlock their full potentials. In this section, we discuss some of the key future research directions for MoE models. ", + "page_idx": 20 + }, + { + "type": "text", + "text": "A. Training stability and load balancing ", + "text_level": 1, + "page_idx": 20 + }, + { + "type": "text", + "text": "One of the most critical challenges in MoE models is ensuring training stability and load balancing among experts. Due to the dynamic nature of expert selection, some experts may receive significantly more data than others, leading to imbalanced training and potential model collapse. Future work should focus on developing more robust training strategies that ensure balanced utilization of experts. Techniques such as adaptive load balancing, dynamic expert capacity adjustment, and regularization methods that penalize over-reliance on specific experts could be explored. In some cases, theoretical studies on the convergence properties of MoE models under different load balancing strategies would provide valuable insights into designing more stable training algorithms. Additionally, the sparsity of MoE during training also poses challenges for stable model training, requiring more work to explore and optimize existing training strategies. ", + "page_idx": 20 + }, + { + "type": "text", + "text": "B. Training and system efficiency ", + "text_level": 1, + "page_idx": 20 + }, + { + "type": "text", + "text": "While MoE models offer the advantage of conditional computation, their training and inference efficiency remain a concern, especially in large-scale applications. Hardware advancements have reduced computational costs, but high latency remains a persistent issue. Future research should focus on optimizing hardware-software co-design, particularly for conditional computation. Techniques such as efficient memory management, reduced communication overhead, and parallel processing strategies could significantly improve the scalability of MoE models. Combining MoE with conditional computation techniques may also open new avenues for dynamic resource allocation and task-specific adaptations, further enhancing efficiency. ", + "page_idx": 20 + }, + { + "type": "text", + "text": "C. Architecture design ", + "text_level": 1, + "page_idx": 20 + }, + { + "type": "text", + "text": "The design of MoE architectures, particularly the determination of the number of experts and their specialization, is another area that requires further exploration. Current approaches often rely on heuristic methods or static setting to decide the number of experts, which may not be optimal for all tasks. Future work should investigate more principled approaches to determining the number of experts, such as using metalearning or reinforcement learning to dynamically adjust the architecture based on task complexity and data distribution. Additionally, novel architecture designs that integrate MoE with other neural network components, such as attention mechanisms or graph neural networks, could lead to more powerful and flexible models. ", + "page_idx": 20 + }, + { + "type": "text", + "text": "", + "page_idx": 21 + }, + { + "type": "text", + "text": "D. Theory development ", + "text_level": 1, + "page_idx": 21 + }, + { + "type": "text", + "text": "Improving the interpretability of MoE models remains a critical area for future work. While MoE architectures have demonstrated remarkable scalability and performance, the theoretical underpinnings of their behavior—such as expert routing decisions and clustering mechanisms—are not yet fully understood, especially in modern deep neural networks. More rigorous theoretical studies are needed to explain these characteristics, which could lead to more robust and reliable models. This would also shed light on the design of better gating function and expert network as well. ", + "page_idx": 21 + }, + { + "type": "text", + "text": "E. Tailored algorithm design ", + "text_level": 1, + "page_idx": 21 + }, + { + "type": "text", + "text": "MoE models have shown great promise in various machine learning paradigms, but their potential in combination with other learning paradigms remains underexplored. Future work should investigate the integration of MoE with other learning frameworks, such as contrastive learning, transfer learning, and self-supervised learning. For example, in federated learning, MoE models could be used to handle heterogeneous data distributions across clients by assigning different experts to different clients. Exploring these combinations could lead to more versatile and powerful learning systems. ", + "page_idx": 21 + }, + { + "type": "text", + "text": "F. New applications ", + "text_level": 1, + "page_idx": 21 + }, + { + "type": "text", + "text": "Although MoE has been extensively explored in NLP, its potential in other domains remains underexplored. For instance, in computer vision, recent work has shown that MoE models can achieve performance that continues to improve with training, suggesting untapped potential in areas like image segmentation, object detection, and multimodal learning. Further exploration in these domains could yield significant breakthroughs. Additionally, MoE models could be applied to emerging fields such as healthcare, robotics, autonomous systems, education, finance, as well as recommendation systems, where the ability to handle diverse and complex tasks is crucial. Developing MoE models tailored to these specific applications could lead to more effective and efficient solutions. ", + "page_idx": 21 + }, + { + "type": "text", + "text": "VII. CONCLUSION ", + "text_level": 1, + "page_idx": 21 + }, + { + "type": "text", + "text": "This comprehensive survey delves into the integration of the MoE architecture with various domains. Starting from various basic designs of the MoE architecture and training strategies, we highlight its synergy with important machine learning algorithms, alongside the recent theoretical advancements for understanding MoE. Furthermore, we provide a systematic summary of MoE in two critical application domains, computer vision and natural language processing, and shed light on the important future designs for improving the design and impact of MoE. We hope that this work will serve as a valuable reference for researchers in the field and beyond, elicit escalating attentions, and inspire further research ideas in MoE. ", + "page_idx": 21 + }, + { + "type": "text", + "text": "", + "page_idx": 21 + }, + { + "type": "text", + "text": "REFERENCES ", + "text_level": 1, + "page_idx": 21 + }, + { + "type": "text", + "text": "[1] A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, et al., “An image is worth 16x16 words: Transformers for image recognition at scale,” arXiv preprint arXiv:2010.11929, 2020. \n[2] A. Kirillov, E. Mintun, N. Ravi, H. Mao, C. Rolland, L. Gustafson, T. Xiao, S. Whitehead, A. C. Berg, W.-Y. Lo, et al., “Segment anything,” in Proceedings of the IEEE/CVF international conference on computer vision, pp. 4015–4026, 2023. \n[3] Y. Shi, N. Wang, and X. Guo, “Yolov: Making still image object detectors great at video object detection,” in Proceedings of the AAAI conference on artificial intelligence, vol. 37, pp. 2254–2262, 2023. \n[4] A. Radford, J. W. Kim, T. Xu, G. Brockman, C. McLeavey, and I. Sutskever, “Robust speech recognition via large-scale weak supervision,” in International conference on machine learning, pp. 28492– 28518, PMLR, 2023. \n[5] K. An, Q. Chen, C. Deng, Z. Du, C. Gao, Z. Gao, Y. Gu, T. He, H. Hu, K. Hu, et al., “Funaudiollm: Voice understanding and generation foundation models for natural interaction between humans and llms,” arXiv preprint arXiv:2407.04051, 2024. \n[6] P. Rajpurkar, E. Chen, O. Banerjee, and E. J. Topol, “Ai in health and medicine,” Nature medicine, vol. 28, no. 1, pp. 31–38, 2022. \n[7] L. Cao, “Autoai: Autonomous ai,” IEEE Intelligent Systems, vol. 37, no. 5, pp. 3–5, 2022. \n[8] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “Bert: Pre-training of deep bidirectional transformers for language understanding,” in Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), pp. 4171–4186, 2019. \n[9] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, et al., “Learning transferable visual models from natural language supervision,” in International conference on machine learning, pp. 8748–8763, PmLR, 2021. \n[10] J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S. Anadkat, et al., “Gpt-4 technical report,” arXiv preprint arXiv:2303.08774, 2023. \n[11] C. Thompson Neil, G. Kristjan, L. Keeheon, and F. Manso Gabriel, “The computational limits of deep learning,” ArXiv, Cornell University, juillet, 2020. \n[12] C. Sun, A. Shrivastava, S. Singh, and A. Gupta, “Revisiting unreasonable effectiveness of data in deep learning era,” in Proceedings of the IEEE international conference on computer vision, pp. 843–852, 2017. \n[13] R. A. Jacobs, M. I. Jordan, S. J. Nowlan, and G. E. Hinton, “Adaptive mixtures of local experts,” Neural computation, vol. 3, no. 1, pp. 79–87, 1991. \n[14] M. I. Jordan and R. A. Jacobs, “Hierarchical mixtures of experts and the em algorithm,” Neural computation, vol. 6, no. 2, pp. 181–214, 1994. \n[15] W. Fedus, B. Zoph, and N. Shazeer, “Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity,” Journal of Machine Learning Research, vol. 23, no. 120, pp. 1–39, 2022. \n[16] N. Shazeer, A. Mirhoseini, K. Maziarz, A. Davis, Q. Le, G. Hinton, and J. Dean, “Outrageously large neural networks: The sparsely-gated mixture-of-experts layer,” arXiv preprint arXiv:1701.06538, 2017. \n[17] C. Riquelme, J. Puigcerver, B. Mustafa, M. Neumann, R. Jenatton, A. Susano Pinto, D. Keysers, and N. Houlsby, “Scaling vision with sparse mixture of experts,” Advances in Neural Information Processing Systems, vol. 34, pp. 8583–8595, 2021. \n[18] L. Wu, M. Liu, Y. Chen, D. Chen, X. Dai, and L. Yuan, “Residual mixture of experts,” arXiv preprint arXiv:2204.09636, 2022. \n[19] Z. Fan, R. Sarkar, Z. Jiang, T. Chen, K. Zou, Y. Cheng, C. Hao, Z. Wang, et al., $\\mathbf { \\cdots } \\mathbf { M } ^ { 3 }$ vit: Mixture-of-experts vision transformer for efficient multi-task learning with model-accelerator co-design,” Advances in Neural Information Processing Systems, vol. 35, pp. 28441–28457, 2022. \n[20] N. Du, Y. Huang, A. M. Dai, S. Tong, D. Lepikhin, Y. Xu, M. Krikun, Y. Zhou, A. W. Yu, O. Firat, et al., “Glam: Efficient scaling of language models with mixture-of-experts,” in International conference on machine learning, pp. 5547–5569, PMLR, 2022. \n[21] D. Lepikhin, H. Lee, Y. Xu, D. Chen, O. Firat, Y. Huang, M. Krikun, N. Shazeer, and Z. Chen, “Gshard: Scaling giant models with conditional computation and automatic sharding,” arXiv preprint arXiv:2006.16668, 2020. \n[22] A. Q. Jiang, A. Sablayrolles, A. Roux, A. Mensch, B. Savary, C. Bamford, D. S. Chaplot, D. d. l. Casas, E. B. Hanna, F. Bressand, et al., “Mixtral of experts,” arXiv preprint arXiv:2401.04088, 2024. \n[23] B. Li, Y. Shen, J. Yang, Y. Wang, J. Ren, T. Che, J. Zhang, and Z. Liu, “Sparse mixture-of-experts are domain generalizable learners,” arXiv preprint arXiv:2206.04046, 2022. \n[24] Z. Chi, L. Dong, S. Huang, D. Dai, S. Ma, B. Patra, S. Singhal, P. Bajaj, X. Song, X.-L. Mao, et al., “On the representation collapse of sparse mixture of experts,” Advances in Neural Information Processing Systems, vol. 35, pp. 34600–34613, 2022. \n[25] H. Nguyen, P. Akbarian, T. Pham, T. Nguyen, S. Zhang, and N. Ho, “Statistical advantages of perturbing cosine router in sparse mixture of experts,” arXiv preprint arXiv:2405.14131, 2024. \n[26] L. Xu, M. Jordan, and G. E. Hinton, “An alternative model for mixtures of experts,” Advances in neural information processing systems, vol. 7, 1994. \n[27] J. Puigcerver, C. Riquelme, B. Mustafa, and N. Houlsby, “From sparse to soft mixtures of experts,” arXiv preprint arXiv:2308.00951, 2023. \n[28] J. Geweke and M. Keane, “Smoothly mixing regressions,” Journal of Econometrics, vol. 138, no. 1, pp. 252–290, 2007. \n[29] Z. Chen, Y. Deng, Y. Wu, Q. Gu, and Y. Li, “Towards understanding mixture of experts in deep learning,” arXiv preprint arXiv:2208.02813, 2022. \n[30] H. Li, S. Lin, L. Duan, Y. Liang, and N. B. Shroff, “Theory on mixtureof-experts in continual learning,” arXiv preprint arXiv:2406.16437, 2024. \n[31] R. Csordas, P. Piekos, K. Irie, and J. Schmidhuber, “Switchhead: ´ Accelerating transformers with mixture-of-experts attention,” arXiv preprint arXiv:2312.07987, 2023. \n[32] K.-C. Wang, D. Ostashev, Y. Fang, S. Tulyakov, and K. Aberman, “Moa: Mixture-of-attention for subject-context disentanglement in personalized image generation,” in SIGGRAPH Asia 2024 Conference Papers, SA ’24, (New York, NY, USA), Association for Computing Machinery, 2024. \n[33] P. Jin, B. Zhu, L. Yuan, and S. Yan, “Moh: Multi-head attention as mixture-of-head attention,” arXiv preprint arXiv:2410.11842, 2024. \n[34] M. J. Jung and J. Kim, “Pmoe: Progressive mixture of experts with asymmetric transformer for continual learning,” arXiv preprint arXiv:2407.21571, 2024. \n[35] S. Pavlitska, C. Hubschneider, L. Struppek, and J. M. Zollner, ¨ “Sparsely-gated mixture-of-expert layers for CNN interpretability,” in 2023 International Joint Conference on Neural Networks (IJCNN), pp. 1–10, IEEE. \n[36] Y. Yi, K.-Y. Chen, and H.-Y. Gu, “Mixture of CNN experts from multiple acoustic feature domain for music genre classification,” in 2019 Asia-Pacific Signal and Information Processing Association Annual Summit and Conference (APSIPA ASC), pp. 1250–1255, IEEE. \n[37] L. Zhang, S. Huang, and W. Liu, “Enhancing mixture-of-experts by leveraging attention for fine-grained recognition,” vol. 24, pp. 4409– 4421. \n[38] L. Zhang, S. Huang, W. Liu, and D. Tao, “Learning a mixture of granularity-specific experts for fine-grained categorization,” in 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 8330–8339, IEEE. \n[39] S. Gross, M. Ranzato, and A. Szlam, “Hard mixtures of experts for large scale weakly supervised vision,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 6865– 6873, 2017. \n[40] J. Zhu, X. Zhu, W. Wang, X. Wang, H. Li, X. Wang, and J. Dai, “Uniperceiver-moe: Learning sparse generalist models with conditional moes,” Advances in Neural Information Processing Systems, vol. 35, pp. 2664–2678, 2022. \n[41] Z. Su, Z. Lin, X. Bai, X. Wu, Y. Xiong, H. Lian, G. Ma, H. Chen, G. Ding, W. Zhou, et al., “Maskmoe: Boosting token-level learning via routing mask in mixture-of-experts,” arXiv preprint arXiv:2407.09816, 2024. \n[42] E. Pedicir, L. Miller, and L. Robinson, “Novel token-level recurrent routing for enhanced mixture-of-experts performance,” Authorea Preprints, 2024. \n[43] Y. Li, S. Jiang, B. Hu, L. Wang, W. Zhong, W. Luo, L. Ma, and M. Zhang, “Uni-moe: Scaling unified multimodal llms with mixture of experts,” arXiv preprint arXiv:2405.11273, 2024. \n[44] S. Kudugunta, Y. Huang, A. Bapna, M. Krikun, D. Lepikhin, M.-T. Luong, and O. Firat, “Beyond distillation: Task-level mixture-of-experts for efficient inference,” arXiv preprint arXiv:2110.03742, 2021. \n[45] X. Shi, S. Wang, Y. Nie, D. Li, Z. Ye, Q. Wen, and M. Jin, “Time-moe: Billion-scale time series foundation models with mixture of experts,” arXiv preprint arXiv:2409.16040, 2024. \n[46] Q. Huang, Z. An, N. Zhuang, M. Tao, C. Zhang, Y. Jin, K. Xu, L. Chen, S. Huang, and Y. Feng, “Harder tasks need more experts: Dynamic routing in moe models,” arXiv preprint arXiv:2403.07652, 2024. \n[47] A. Wang, X. Sun, R. Xie, S. Li, J. Zhu, Z. Yang, P. Zhao, J. Han, Z. Kang, D. Wang, et al., “Hmoe: Heterogeneous mixture of experts for language modeling,” arXiv preprint arXiv:2408.10681, 2024. \n[48] O. Irsoy and E. Alpaydın, “Dropout regularization in hierarchical mixture of experts,” Neurocomputing, vol. 419, pp. 148–156, 2021. \n[49] J. He, J. Zhai, T. Antunes, H. Wang, F. Luo, S. Shi, and Q. Li, “Fastermoe: modeling and optimizing training of large-scale dynamic pretrained models,” in Proceedings of the 27th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, pp. 120–134, 2022. \n[50] C. Hwang, W. Cui, Y. Xiong, Z. Yang, Z. Liu, H. Hu, Z. Wang, R. Salas, J. Jose, P. Ram, et al., “Tutel: Adaptive mixture-of-experts at scale,” Proceedings of Machine Learning and Systems, vol. 5, pp. 269–287, 2023. \n[51] R. Sarkar, H. Liang, Z. Fan, Z. Wang, and C. Hao, “Edge-moe: Memory-efficient multi-task vision transformer architecture with tasklevel sparsity via mixture-of-experts,” in 2023 IEEE/ACM International Conference on Computer Aided Design (ICCAD), pp. 01–09, IEEE, 2023. \n[52] S. Rajbhandari, C. Li, Z. Yao, M. Zhang, R. Y. Aminabadi, A. A. Awan, J. Rasley, and Y. He, “Deepspeed-moe: Advancing mixtureof-experts inference and training to power next-generation ai scale,” in International conference on machine learning, pp. 18332–18346, PMLR, 2022. \n[53] A. Liu, B. Feng, B. Xue, B. Wang, B. Wu, C. Lu, C. Zhao, C. Deng, C. Zhang, C. Ruan, et al., “Deepseek-v3 technical report,” arXiv preprint arXiv:2412.19437, 2024. \n[54] S. Singh, O. Ruwase, A. A. Awan, S. Rajbhandari, Y. He, and A. Bhatele, “A hybrid tensor-expert-data parallelism approach to optimize mixture-of-experts training,” in Proceedings of the 37th International Conference on Supercomputing, pp. 203–214, 2023. \n[55] J. Yao, Q. Anthony, A. Shafi, H. Subramoni, and D. K. D. Panda, “Exploiting inter-layer expert affinity for accelerating mixture-of-experts model inference,” in 2024 IEEE International Parallel and Distributed Processing Symposium (IPDPS), pp. 915–925, IEEE, 2024. \n[56] J. Yu, Y. Zhuge, L. Zhang, P. Hu, D. Wang, H. Lu, and Y. He, “Boosting continual learning of vision-language models via mixture-of-experts adapters,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 23219–23230, June 2024. \n[57] R. Zhang, A. Cheng, Y. Luo, G. Dai, H. Yang, J. Liu, R. Xu, L. Du, Y. Du, Y. Jiang, et al., “Decomposing the neurons: Activation sparsity via mixture of experts for continual test time adaptation,” arXiv preprint arXiv:2405.16486, 2024. \n[58] Y. Zhou, T. Lei, H. Liu, N. Du, Y. Huang, V. Zhao, A. M. Dai, Q. V. Le, J. Laudon, et al., “Mixture-of-experts with expert choice routing,” Advances in Neural Information Processing Systems, vol. 35, pp. 7103– 7114, 2022. \n[59] W. Chen, Y. Zhou, N. Du, Y. Huang, J. Laudon, Z. Chen, and C. Cui, “Lifelong language pretraining with distribution-specialized experts,” in International Conference on Machine Learning, pp. 5383–5395, PMLR, 2023. \n[60] S. Lee, J. Ha, D. Zhang, and G. Kim, “A neural dirichlet process mixture model for task-free continual learning,” arXiv preprint arXiv:2001.00689, 2020. \n[61] G. Rypes´c, S. Cygert, V. Khan, T. Trzci ´ nski, B. Zieli ´ nski, and B. Twar- ´ dowski, “Divide and not forget: Ensemble of selectively trained experts in continual learning,” arXiv preprint arXiv:2401.10191, 2024. \n[62] X. Yu, T. Rosing, and Y. Guo, “Evolve: Enhancing unsupervised continual learning with multiple experts,” in 2024 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 2355– 2366, IEEE. \n[63] L. Li, Z. Wu, and Y. Ji, “Mote: Mixture of task-specific experts for pretrained model-based continual learning,” Available at SSRN 5035279, 2024. \n[64] S. Park, “Learning more generalized experts by merging experts in mixture-of-experts,” arXiv preprint arXiv:2405.11530, 2024. \n[65] H. Hihn and D. A. Braun, “Mixture-of-variational-experts for continual learning,” arXiv preprint arXiv:2110.12667, 2021. of experts meets prompt-based continual learning,” Advances in Neural Information Processing Systems, vol. 37, pp. 119025–119062, 2024. \n[67] S. Lee and C. Park, “Continual traffic forecasting via mixture of experts,” arXiv preprint arXiv:2406.03140, 2024. \n[68] M. Wang, H. Su, S. Wang, S. Wang, N. Yin, L. Shen, L. Lan, L. Yang, and X. Cao, “Graph convolutional mixture-of-experts learner network for long-tailed domain generalization,” pp. 1–1. \n[69] Q. Chen, L. Zhu, H. He, X. Zhang, S. Zeng, Q. Ren, and Y. Lu, “Lowrank mixture-of-experts for continual medical image segmentation,” in Medical Image Computing and Computer Assisted Intervention – MICCAI 2024 (M. G. Linguraru, Q. Dou, A. Feragen, S. Giannarou, B. Glocker, K. Lekadir, and J. A. Schnabel, eds.), vol. 15008, pp. 382– 392, Springer Nature Switzerland. Series Title: Lecture Notes in Computer Science. \n[70] Z. Wang, Z. Zhang, C.-Y. Lee, H. Zhang, R. Sun, X. Ren, G. Su, V. Perot, J. Dy, and T. Pfister, “Learning to prompt for continual learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 139–149, 2022. \n[71] R. Aljundi, P. Chakravarty, and T. Tuytelaars, “Expert gate: Lifelong learning with a network of experts,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3366–3375, 2017. \n[72] L. Wang, X. Zhang, Q. Li, J. Zhu, and Y. Zhong, “Coscl: Cooperation of small continual learners is stronger than a big one,” in European Conference on Computer Vision, pp. 254–271, Springer, 2022. \n[73] T. Doan, S. I. Mirzadeh, and M. Farajtabar, “Continual learning beyond a single model,” in Conference on Lifelong Learning Agents, pp. 961– 991, PMLR, 2023. \n[74] T. Zhong, Z. Chi, L. Gu, Y. Wang, Y. Yu, and J. Tang, “Metadmoe: Adapting to domain shift by meta-distillation from mixture-ofexperts,” Advances in Neural Information Processing Systems, vol. 35, pp. 22243–22257, 2022. \n[75] Y. Dai, X. Li, J. Liu, Z. Tong, and L.-Y. Duan, “Generalizable person re-identification with relevance-aware mixture of experts,” in 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 16140–16149, IEEE. \n[76] Z. Liu, X. Wang, C. Feng, X. Sun, W. Zhan, and X. Chen, “Metareinforcement learning with mixture of experts for generalizable multi access in heterogeneous wireless networks,” arXiv preprint arXiv:2412.03850, 2024. \n[77] J. Guo, D. J. Shah, and R. Barzilay, “Multi-source domain adaptation with mixture of experts,” arXiv preprint arXiv:1809.02256, 2018. \n[78] Q. Zhou, K.-Y. Zhang, T. Yao, R. Yi, S. Ding, and L. Ma, “Adaptive mixture of experts learning for generalizable face anti-spoofing,” in Proceedings of the 30th ACM International Conference on Multimedia, pp. 6009–6018. \n[79] R. D. Nzoyem, D. A. Barton, and T. Deakin, “Towards foundational models for dynamical system reconstruction: Hierarchical metalearning via mixture of experts,” arXiv preprint arXiv:2502.05335, 2025. \n[80] A. Hendawy, J. Peters, and C. D’Eramo, “Multi-task reinforcement learning with mixture of orthogonal experts,” arXiv preprint arXiv:2311.11385, 2023. \n[81] Y. Yang, P.-T. Jiang, Q. Hou, H. Zhang, J. Chen, and B. Li, “Multi-task dense prediction via mixture of low-rank experts,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 27927–27937, 2024. \n[82] L. Shen, A. Tang, E. Yang, G. Guo, Y. Luo, L. Zhang, X. Cao, B. Du, and D. Tao, “Efficient and effective weight-ensembling mixture of experts for multi-task model merging,” arXiv preprint arXiv:2410.21804, 2024. \n[83] Z. Qin, Y. Cheng, Z. Zhao, Z. Chen, D. Metzler, and J. Qin, “Multitask mixture of sequential experts for user activity streams,” in Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 3083–3091, ACM. \n[84] R. Aoki, F. Tung, and G. L. Oliveira, “Heterogeneous multi-task learning with expert diversity,” vol. 19, no. 6, pp. 3093–3102. \n[85] G. Cheng, L. Dong, W. Cai, and C. Sun, “Multi-task reinforcement learning with attention-based mixture of experts,” IEEE Robotics and Automation Letters, vol. 8, no. 6, pp. 3812–3819, 2023. \n[86] H. Ye and D. Xu, “Taskexpert: Dynamically assembling multi-task representations with memorial mixture-of-experts,” in Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 21828–21837, October 2023. \n[87] S. Gupta, S. Mukherjee, K. Subudhi, E. Gonzalez, D. Jose, A. H. Awadallah, and J. Gao, “Sparsely activated mixture-of-experts are robust multi-task learners,” arXiv preprint arXiv:2204.07689, 2022. \n[88] H. Hazimeh, Z. Zhao, A. Chowdhery, M. Sathiamoorthy, Y. Chen, R. Mazumder, L. Hong, and E. Chi, “Dselect-k: Differentiable selection in the mixture of experts with applications to multi-task learning,” Advances in Neural Information Processing Systems, vol. 34, pp. 29335– 29347, 2021. \n[89] Z. Chen, Y. Shen, M. Ding, Z. Chen, H. Zhao, E. Learned-Miller, and C. Gan, “Mod-squad: Designing mixtures of experts as modular multitask learners,” in 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 11828–11837, IEEE. \n[90] M. Reuss, J. Pari, P. Agrawal, and R. Lioutikov, “Efficient diffusion transformer policies with mixture of expert denoisers for multitask learning,” arXiv preprint arXiv:2412.12953, 2024. \n[91] Z. Zhang, S. Liu, J. Yu, Q. Cai, X. Zhao, C. Zhang, Z. Liu, Q. Liu, H. Zhao, L. Hu, P. Jiang, and K. Gai, “M3oe: Multi-domain multitask mixture-of experts recommendation framework,” in Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 893–902. \n[92] J. Xu, L. Sun, and D. Zhao, “MoME: Mixture-of-masked-experts for efficient multi-task recommendation,” in Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 2527–2531, ACM. \n[93] J. Ma, Z. Zhao, X. Yi, J. Chen, L. Hong, and E. H. Chi, “Modeling task relationships in multi-task learning with multi-gate mixture-of-experts,” in Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 1930–1939, ACM. \n[94] Z. Hou and D. Cao, “Estimating elastic parameters from digital rock images based on multi-task learning with multi-gate mixture-ofexperts,” vol. 213, p. 110310. \n[95] S. Wang, Y. Li, H. Li, T. Zhu, Z. Li, and W. Ou, “Multi-task learning with calibrated mixture of insightful experts,” in 2022 IEEE 38th International Conference on Data Engineering (ICDE), pp. 3307–3319, IEEE. \n[96] S. Sodhani, A. Zhang, and J. Pineau, “Multi-task reinforcement learning with context-based representations,” in International Conference on Machine Learning, pp. 9767–9779, PMLR, 2021. \n[97] T. Chen, X. Chen, X. Du, A. Rashwan, F. Yang, H. Chen, Z. Wang, and Y. Li, “AdaMV-MoE: Adaptive multi-task vision mixture-ofexperts,” in 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 17300–17311, IEEE. \n[98] H. Tang, J. Liu, M. Zhao, and X. Gong, “Progressive layered extraction (ple): A novel multi-task learning (mtl) model for personalized recommendations,” in Proceedings of the 14th ACM conference on recommender systems, pp. 269–278, 2020. \n[99] C. Louizos, M. Welling, and D. P. Kingma, “Learning sparse neural networks through $l _ { - } 0$ regularization,” arXiv preprint arXiv:1712.01312, 2017. \n[100] J. Ren, Y. Li, Z. Ding, W. Pan, and H. Dong, “Probabilistic mixtureof-experts for efficient deep reinforcement learning,” arXiv preprint arXiv:2104.09122, 2021. \n[101] M. Gimelfarb, S. Sanner, and C.-G. Lee, “Contextual policy transfer in reinforcement learning domains via deep mixtures-of-experts,” in Proceedings of the Thirty-Seventh Conference on Uncertainty in Artificial Intelligence (C. de Campos and M. H. Maathuis, eds.), vol. 161 of Proceedings of Machine Learning Research, pp. 1787–1797, PMLR, 27–30 Jul 2021. \n[102] T. Willi, J. Obando-Ceron, J. Foerster, K. Dziugaite, and P. S. Castro, “Mixture of experts in a mixture of rl settings,” arXiv preprint arXiv:2406.18420, 2024. \n[103] S. Huang, Z. Zhang, T. Liang, Y. Xu, Z. Kou, C. Lu, G. Xu, Z. Xue, and H. Xu, “Mentor: Mixture-of-experts network with taskoriented perturbation for visual reinforcement learning,” arXiv preprint arXiv:2410.14972, 2024. \n[104] G. Qiao, G. Liu, P. Poupart, and Z. Xu, “Multi-modal inverse constrained reinforcement learning from a mixture of demonstrations,” Advances in Neural Information Processing Systems, vol. 36, pp. 60384– 60396, 2023. \n[105] D. Gupta, Y. Chow, A. Tulepbergenov, M. Ghavamzadeh, and C. Boutilier, “Offline reinforcement learning for mixture-of-expert dialogue management,” Advances in Neural Information Processing Systems, vol. 36, pp. 5912–5935, 2023. \n[106] K. Samejima, K. Doya, and M. Kawato, “Inter-module credit assignment in modular reinforcement learning,” Neural Networks, vol. 16, no. 7, pp. 985–994, 2003. \n[107] H. Van Seijen, B. Bakker, L. Kester, et al., “Switching between different state representations in reinforcement learning,” in Proceedings of the 26th IASTED International Conference on Artificial Intelligence and Applications, pp. 226–231, 2008. \n[108] X. B. Peng, G. Berseth, and M. Van de Panne, “Terrain-adaptive locomotion skills using deep reinforcement learning,” ACM Transactions on Graphics (TOG), vol. 35, no. 4, pp. 1–12, 2016. \n[109] V. C. Kumar, S. Ha, and C. K. Liu, “Learning a unified control policy for safe falling,” in 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 3940–3947, IEEE, 2017. \n[110] X. B. Peng, M. Chang, G. Zhang, P. Abbeel, and S. Levine, “Mcp: Learning composable hierarchical control with multiplicative compositional policies,” Advances in neural information processing systems, vol. 32, 2019. \n[111] R. Akrour, D. Tateo, and J. Peters, “Continuous action reinforcement learning from a mixture of interpretable experts,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 44, no. 10, pp. 6795– 6806, 2021. \n[112] K. S. Refaat and K. Ding, “Accelerated deep reinforcement learning of terrain-adaptive locomotion skills,” in Deep RL Workshop NeurIPS 2021, 2021. \n[113] W. Song, H. Zhao, P. Ding, C. Cui, S. Lyu, Y. Fan, and D. Wang, “Germ: A generalist robotic model with mixture-of-experts for quadruped robot,” in 2024 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 11879–11886, IEEE, 2024. \n[114] M. Vincze, L. Ferrarotti, L. L. Custode, B. Lepri, and G. Iacca, “Smose: Sparse mixture of shallow experts for interpretable reinforcement learning in continuous control tasks,” arXiv preprint arXiv:2412.13053, 2024. \n[115] J. Obando-Ceron, G. Sokar, T. Willi, C. Lyle, J. Farebrother, J. Foerster, G. K. Dziugaite, D. Precup, and P. S. Castro, “Mixtures of experts unlock parameter scaling for deep rl,” arXiv preprint arXiv:2402.08609, 2024. \n[116] Y. Takahashi and M. Asada, “Modular learning systems for soccer robot,” in Proceedings of the Fourth International Symposium on Human and Artificial Intelligence Systems, pp. 370–375, Citeseer, 2004. \n[117] Y. Takahashi, K. Edazawa, and M. Asada, “Modular learning system and scheduling for behavior acquisition in multi-agent environment,” in RoboCup 2004: Robot Soccer World Cup VIII 8, pp. 548–555, Springer, 2005. \n[118] Y. Takahashi, K. Edazawa, K. Noma, and M. Asada, “Simultaneous learning to acquire competitive behaviors in multi-agent system based on a modular learning system,” in 2005 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 2016–2022, IEEE, 2005. \n[119] K. Mulling, J. Kober, O. Kroemer, and J. Peters, “Learning to select and ¨ generalize striking movements in robot table tennis,” The International Journal of Robotics Research, vol. 32, no. 3, pp. 263–279, 2013. \n[120] K. Li, M. Cucuringu, L. Sanchez-Betancourt, and T. Willi, “Mixtures´ of experts for scaling up neural networks in order execution,” in Proceedings of the 5th ACM International Conference on AI in Finance, pp. 669–676, 2024. \n[121] M. Ewerton, G. Neumann, R. Lioutikov, H. B. Amor, J. Peters, and G. Maeda, “Learning multiple collaborative tasks with a mixture of interaction primitives,” in 2015 IEEE International Conference on Robotics and Automation (ICRA), pp. 1535–1542, IEEE, 2015. \n[122] Y. Zhou, J. Gao, and T. Asfour, “Movement primitive learning and generalization: Using mixture density networks,” IEEE Robotics & Automation Magazine, vol. 27, no. 2, pp. 22–32, 2020. \n[123] N. Freymuth, N. Schreiber, P. Becker, A. Taranovic, and G. Neumann, “Inferring versatile behavior from demonstrations by matching geometric descriptors,” arXiv preprint arXiv:2210.08121, 2022. \n[124] V. Prasad, A. Kshirsagar, D. K. R. Stock-Homburg, J. Peters, and G. Chalvatzaki, “Moveint: Mixture of variational experts for learning human-robot interactions from demonstrations,” IEEE Robotics and Automation Letters, 2024. \n[125] K. Doya, K. Samejima, K.-i. Katagiri, and M. Kawato, “Multiple model-based reinforcement learning,” Neural computation, vol. 14, no. 6, pp. 1347–1369, 2002. \n[126] P. Tommasino, D. Caligiore, M. Mirolli, and G. Baldassarre, “A reinforcement learning architecture that transfers knowledge between skills when solving multiple tasks,” IEEE Transactions on Cognitive and Developmental Systems, vol. 11, no. 2, pp. 292–317, 2016. \n[127] D. Peterson, P. Kanani, and V. J. Marathe, “Private federated learning with domain adaptation,” arXiv preprint arXiv:1912.06733, 2019. \n[128] E. L. Zec, O. Mogren, J. Martinsson, L. R. Sutfeld, and D. Gillblad, ¨ “Specialized federated learning using a mixture of experts,” arXiv preprint arXiv:2010.02056, 2020. \n[129] S. K. Pye and H. Yu, “Personalised federated learning: A combinational approach,” arXiv preprint arXiv:2108.09618, 2021. \n[130] M. Reisser, C. Louizos, E. Gavves, and M. Welling, “Federated mixture of experts,” arXiv preprint arXiv:2107.06724, 2021. \n[131] B. Guo, Y. Mei, D. Xiao, and W. Wu, “Pfl-moe: Personalized federated learning based on mixture of experts,” in Web and Big Data: 5th International Joint Conference, APWeb-WAIM 2021, Guangzhou, China, August 23–25, 2021, Proceedings, Part I 5, pp. 480–486, Springer, 2021. \n[132] M. Isaksson, E. L. Zec, R. Coster, D. Gillblad, and ¨ S. Girdzijauskas, ˇ “Adaptive expert models for personalization in federated learning,” arXiv preprint arXiv:2206.07832, 2022. \n[133] A. Ghosh, J. Chung, D. Yin, and K. Ramchandran, “An efficient framework for clustered federated learning,” Advances in neural information processing systems, vol. 33, pp. 19586–19597, 2020. \n[134] V.-T. Tran, L. H. Khiem, and V. Q. Pham, “Revisiting sparse mixture of experts for resource-adaptive federated fine-tuning foundation models,” in ICLR 2025 Workshop on Modularity for Collaborative, Decentralized, and Continual Deep Learning, 2025. \n[135] C. Dun, M. H. Garcia, G. Zheng, A. H. Awadallah, R. Sim, A. Kyrillidis, and D. Dimitriadis, “Fedjets: Efficient just-in-time personalization with federated mixture of experts,” arXiv preprint arXiv:2306.08586, 2023. \n[136] C. E. Heinbaugh, E. Luz-Ricca, and H. Shao, “Data-free one-shot federated learning under very high statistical heterogeneity,” in The Eleventh International Conference on Learning Representations, 2023. \n[137] S. Su, B. Li, and X. Xue, “One-shot federated learning without serverside training,” Neural Networks, vol. 164, pp. 203–215, 2023. \n[138] H. Zeng, M. Xu, T. Zhou, X. Wu, J. Kang, Z. Cai, and D. Niyato, “Oneshot-but-not-degraded federated learning,” in Proceedings of the 32nd ACM International Conference on Multimedia, MM ’24, (New York, NY, USA), p. 11070–11079, Association for Computing Machinery, 2024. \n[139] H. Li and L. Duan, “Theory of mixture-of-experts for mobile edge computing,” arXiv preprint arXiv:2412.15690, 2024. \n[140] M. N. R. Chowdhury, S. Zhang, M. Wang, S. Liu, and P.-Y. Chen, “Patch-level routing in mixture-of-experts is provably sample-efficient for convolutional neural networks,” in International Conference on Machine Learning, pp. 6074–6114, PMLR, 2023. \n[141] W. Jiang and M. A. Tanner, “Hierarchical mixtures-of-experts for exponential family regression models: approximation and maximum likelihood estimation,” Annals of Statistics, pp. 987–1011, 1999. \n[142] W. Jiang and M. A. Tanner, “On the approximation rate of hierarchical mixtures-of-experts for generalized linear models,” Neural computation, vol. 11, no. 5, pp. 1183–1198, 1999. \n[143] A. J. Zeevi, R. Meir, and V. Maiorov, “Error bounds for functional approximation and estimation using mixtures of experts,” IEEE Transactions on Information Theory, vol. 44, no. 3, pp. 1010–1025, 1998. \n[144] H. D. Nguyen, L. R. Lloyd-Jones, and G. J. McLachlan, “A universal approximation theorem for mixture-of-experts models,” Neural computation, vol. 28, no. 12, pp. 2585–2593, 2016. \n[145] E. F. Mendes and W. Jiang, “On convergence rates of mixtures of polynomial experts,” Neural computation, vol. 24, no. 11, pp. 3025– 3051, 2012. \n[146] N. Ho, C.-Y. Yang, and M. I. Jordan, “Convergence rates for gaussian mixtures of experts,” Journal of Machine Learning Research, vol. 23, no. 323, pp. 1–81, 2022. \n[147] H. Nguyen, T. Nguyen, and N. Ho, “Demystifying softmax gating function in gaussian mixture of experts,” Advances in Neural Information Processing Systems, vol. 36, pp. 4624–4652, 2023. \n[148] H. Nguyen, P. Akbarian, F. Yan, and N. Ho, “Statistical perspective of top-k sparse softmax gating mixture of experts,” arXiv preprint arXiv:2309.13850, 2023. \n[149] H. Nguyen, T. Nguyen, K. Nguyen, and N. Ho, “Towards convergence rates for parameter estimation in gaussian-gated mixture of experts,” in International Conference on Artificial Intelligence and Statistics, pp. 2683–2691, PMLR, 2024. \n[150] H. Nguyen, N. Ho, and A. Rinaldo, “On least square estimation in softmax gating mixture of experts,” arXiv preprint arXiv:2402.02952, 2024. \n[151] H. Nguyen, P. Akbarian, T. Nguyen, and N. Ho, “A general theory for softmax gating multinomial logistic mixture of experts,” arXiv preprint arXiv:2310.14188, 2023. \n[152] T. C. Fung and S. C. Tseung, “Mixture of experts models for multilevel data: Modelling framework and approximation theory,” Neurocomput \n[153] M. Videau, A. Leite, M. Schoenauer, and O. Teytaud, “Mixture of experts in image classification: What’s the sweet spot?,” arXiv preprint arXiv:2411.18322, 2024. \n[154] X. Han, L. Wei, Z. Dou, Z. Wang, C. Qiang, X. He, Y. Sun, Z. Han, and Q. Tian, “Vimoe: An empirical study of designing vision mixtureof-experts,” arXiv preprint arXiv:2410.15732, 2024. \n[155] A. Royer, I. Karmanov, A. Skliar, B. E. Bejnordi, and T. Blankevoort, “Revisiting single-gated mixtures of experts,” arXiv preprint arXiv:2304.05497, 2023. \n[156] J. Zhang, X. Qu, T. Zhu, and Y. Cheng, “Clip-moe: Towards building mixture of experts for clip with diversified multiplet upcycling,” arXiv preprint arXiv:2409.19291, 2024. \n[157] M. He, G. Lv, W. He, J. Fan, and G. Zeng, “DeepME: Deep mixture experts for large-scale image classification,” in Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, pp. 722–728, International Joint Conferences on Artificial Intelligence Organization. \n[158] H. Nguyen, X. Han, C. W. Harris, S. Saria, and N. Ho, “On expert estimation in hierarchical mixture of experts: Beyond softmax gating functions,” arXiv preprint arXiv:2410.02935, 2024. \n[159] K. Oksuz, S. Kuzucu, T. Joy, and P. K. Dokania, “Mocae: Mixture of calibrated experts significantly improves object detection,” arXiv preprint arXiv:2309.14976, 2023. \n[160] X. Wang, Y. Jin, W. Wu, W. Zhang, L. Zhu, B. Jiang, and Y. Tian, “Object detection using event camera: A moe heat conduction based detector and a new benchmark dataset,” arXiv preprint arXiv:2412.06647, 2024. \n[161] Y. Jain, H. Behl, Z. Kira, and V. Vineet, “Damex: Dataset-aware mixture-of-experts for visual understanding of mixture-of-datasets,” Advances in Neural Information Processing Systems, vol. 36, 2024. \n[162] X. Feng, Y. Li, D. Chen, C. Qiao, J. Yuan, L. Yuan, and G. Hua, “Pluralistic salient object detection,” arXiv preprint arXiv:2409.02368, 2024. \n[163] S. Pavlitska, E. Eisen, and J. M. Zollner, “Towards adversarial ro- ¨ bustness of model-level mixture-of-experts architectures for semantic segmentation,” arXiv preprint arXiv:2412.11608, 2024. \n[164] C. Zhu, B. Xiao, L. Shi, S. Xu, and X. Zheng, “Customize segment anything model for multi-modal semantic segmentation with mixture of lora experts,” arXiv preprint arXiv:2412.04220, 2024. \n[165] S. Pavlitskaya, C. Hubschneider, M. Weber, R. Moritz, F. Huger, P. Schlicht, and J. M. Zollner, “Using mixture of expert models to gain insights into semantic segmentation,” in 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pp. 1399–1406, IEEE. \n[166] X. Wang, F. Yu, L. Dunlap, Y.-A. Ma, R. Wang, A. Mirhoseini, T. Darrell, and J. E. Gonzalez, “Deep mixture of experts via shallow embedding,” in Uncertainty in artificial intelligence, pp. 552–562, PMLR, 2020. \n[167] L. Rossi, V. Bernuzzi, T. Fontanini, M. Bertozzi, and A. Prati, “Swin2- mose: A new single image supersolution model for remote sensing,” IET Image Processing, vol. 19, no. 1, p. e13303, 2025. \n[168] Z. Xue, G. Song, Q. Guo, B. Liu, Z. Zong, Y. Liu, and P. Luo, “Raphael: Text-to-image generation via large mixture of diffusion paths,” Advances in Neural Information Processing Systems, vol. 36, pp. 41693–41706, 2023. \n[169] D. K. Park, S. Yoo, H. Bahng, J. Choo, and N. Park, “Megan: Mixture of experts of generative adversarial networks for multimodal image generation,” arXiv preprint arXiv:1805.02481, 2018. \n[170] Y. Jiang, S. Yang, H. Qiu, W. Wu, C. C. Loy, and Z. Liu, “Text2human: Text-driven controllable human image generation,” ACM Transactions on Graphics (TOG), vol. 41, no. 4, pp. 1–11, 2022. \n[171] H. Zhou, Z. Wang, S. Huang, X. Huang, X. Han, J. Feng, C. Deng, W. Luo, and J. Chen, “Moe-lpr: Multilingual extension of large language models through mixture-of-experts with language priors routing,” arXiv preprint arXiv:2408.11396, 2024. \n[172] X. Cheng, Z. Zhu, X. Zhuang, Z. Chen, Z. Huang, and Y. Zou, “MoESLU: Towards ASR-robust spoken language understanding via mixtureof-experts,” in Findings of the Association for Computational Linguistics ACL 2024, pp. 14868–14879, Association for Computational Linguistics. \n[173] Z. Wu, H.-Y. Huang, F. Qu, and Y. Wu, “Mixture-of-promptexperts for multi-modal semantic understanding,” arXiv preprint arXiv:2403.11311, 2024. \n[174] Y. Chai, Q. Yin, and J. Zhang, “Improved training of mixture-of-experts language gans,” in ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 1–5, 2023. \n[175] Y. Zhang, S. Sun, X. Gao, Y. Fang, C. Brockett, M. Galley, J. Gao, and B. Dolan, “Retgen: A joint framework for retrieval and grounded text generation modeling,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 36, pp. 11739–11747, 2022. \n[176] J. Wu and M. Hou, “Enhancing diversity for logical $<$ $ table-to-text$ generation with mixture of experts,” vol. 41, no. 4, p. e13533. \n[177] E. Frantar and D. Alistarh, “Qmoe: Practical sub-1-bit compression of trillion-parameter models,” arXiv preprint arXiv:2310.16795, 2023. \n[178] M. R. Costa-Jussa, J. Cross, O. C¸ elebi, M. Elbayad, K. Heafield, \\` K. Heffernan, E. Kalbassi, J. Lam, D. Licht, J. Maillard, et al., “No language left behind: Scaling human-centered machine translation,” arXiv preprint arXiv:2207.04672, 2022. \n[179] NLLB Team, M. R. Costa-jussa, J. Cross, O. C¸ elebi, M. Elbayad, \\` K. Heafield, K. Heffernan, E. Kalbassi, J. Lam, D. Licht, J. Maillard, A. Sun, S. Wang, G. Wenzek, A. Youngblood, B. Akula, L. Barrault, G. M. Gonzalez, P. Hansanti, J. Hoffman, S. Jarrett, K. R. Sadagopan, D. Rowe, S. Spruit, C. Tran, P. Andrews, N. F. Ayan, S. Bhosale, S. Edunov, A. Fan, C. Gao, V. Goswami, F. Guzman, P. Koehn, ´ A. Mourachko, C. Ropers, S. Saleem, H. Schwenk, and J. Wang, “Scaling neural machine translation to 200 languages,” vol. 630, no. 8018, pp. 841–846. \n[180] H. Huang, N. Ardalani, A. Sun, L. Ke, H.-H. S. Lee, A. Sridhar, S. Bhosale, C.-J. Wu, and B. Lee, “Towards moe deployment: Mitigating inefficiencies in mixture-of-expert (moe) inference,” arXiv preprint arXiv:2303.06182, 2023. \n[181] S. Chen, Z. Jie, and L. Ma, “Llava-mole: Sparse mixture of lora experts for mitigating data conflicts in instruction finetuning mllms,” arXiv preprint arXiv:2401.16160, 2024. \n[182] B. Mustafa, C. Riquelme, J. Puigcerver, R. Jenatton, and N. Houlsby, “Multimodal contrastive learning with limoe: the language-image mixture of experts,” Advances in Neural Information Processing Systems, vol. 35, pp. 9564–9576, 2022. \n[183] X. Sun, Y. Chen, Y. Huang, R. Xie, J. Zhu, K. Zhang, S. Li, Z. Yang, J. Han, X. Shu, et al., “Hunyuan-large: An open-source moe model with 52 billion activated parameters by tencent,” arXiv preprint arXiv:2411.02265, 2024. \n[184] A. Yang, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Li, D. Liu, F. Huang, H. Wei, et al., “Qwen2. 5 technical report,” arXiv preprint arXiv:2412.15115, 2024. \n[185] T. Wei, B. Zhu, L. Zhao, C. Cheng, B. Li, W. Lu, P. Cheng, ¨ J. Zhang, X. Zhang, L. Zeng, et al., “Skywork-moe: A deep dive into training techniques for mixture-of-experts language models, 2024,” URL https://arxiv. org/abs/2406.06563, 2024. \n[186] N. Gupta and J. Yip, “Dbrx: Creating an llm from scratch using databricks,” in Databricks Data Intelligence Platform: Unlocking the GenAI Revolution, pp. 311–330, Springer, 2024. \n[187] B. Zoph, I. Bello, S. Kumar, N. Du, Y. Huang, J. Dean, N. Shazeer, and W. Fedus, “St-moe: Designing stable and transferable sparse expert models,” arXiv preprint arXiv:2202.08906, 2022. \n[188] T. Zhu, X. Qu, D. Dong, J. Ruan, J. Tong, C. He, and Y. Cheng, “Llama-moe: Building mixture-of-experts from llama with continual pre-training,” in Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 15913–15923, 2024. \n[189] X. Qu, D. Dong, X. Hu, T. Zhu, W. Sun, and Y. Cheng, “Llama-moe v2: Exploring sparsity of llama from perspective of mixture-of-experts with post-training,” arXiv preprint arXiv:2411.15708, 2024. \n[190] A. Vavre, E. He, D. Liu, Z. Yan, J. Yang, N. Tajbakhsh, and A. Aithal, “Llama 3 meets moe: Efficient upcycling,” arXiv preprint arXiv:2412.09952, 2024. \n[191] F. Xue, Z. Zheng, Y. Fu, J. Ni, Z. Zheng, W. Zhou, and Y. You, “Openmoe: An early effort on open mixture-of-experts language models,” arXiv preprint arXiv:2402.01739, 2024. \n[192] B. Lenz, O. Lieber, A. Arazi, A. Bergman, A. Manevich, B. Peleg, B. Aviram, C. Almagor, C. Fridman, D. Padnos, et al., “Jamba: Hybrid transformer-mamba language models,” in The Thirteenth International Conference on Learning Representations, 2025. \n[193] J. Team, B. Lenz, A. Arazi, A. Bergman, A. Manevich, B. Peleg, B. Aviram, C. Almagor, C. Fridman, D. Padnos, et al., “Jamba1.5: Hybrid transformer-mamba models at scale,” arXiv preprint arXiv:2408.12570, 2024. \n[194] O. Lieber, B. Lenz, H. Bata, G. Cohen, J. Osin, I. Dalmedigos, E. Safahi, S. Meirom, Y. Belinkov, S. Shalev-Shwartz, et al., “Jamba: A hybrid transformer-mamba language model,” arXiv preprint arXiv:2403.19887, 2024. \n[195] S. Wu, J. Luo, X. Chen, L. Li, X. Zhao, T. Yu, C. Wang, Y. Wang, F. Wang, W. Qiao, et al., “Yuan 2.0-m32: Mixture of experts with attention router,” arXiv preprint arXiv:2405.17976, 2024. \n[196] C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu, “Exploring the limits of transfer learning with a unified text-to-text transformer,” Journal of machine learning research, vol. 21, no. 140, pp. 1–67, 2020. \n[197] P.-E. Sarlin, D. DeTone, T. Malisiewicz, and A. Rabinovich, “Superglue: Learning feature matching with graph neural networks,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 4938–4947, 2020. \n[198] D. Dai, C. Deng, C. Zhao, R. Xu, H. Gao, D. Chen, J. Li, W. Zeng, X. Yu, Y. Wu, et al., “Deepseekmoe: Towards ultimate expert specialization in mixture-of-experts language models,” arXiv preprint arXiv:2401.06066, 2024. \n[199] DeepSeek-AI, A. Liu, B. Feng, B. Wang, B. Wang, B. Liu, C. Zhao, C. Dengr, C. Ruan, D. Dai, D. Guo, D. Yang, D. Chen, D. Ji, E. Li, F. Lin, F. Luo, G. Hao, G. Chen, G. Li, H. Zhang, H. Xu, H. Yang, H. Zhang, H. Ding, H. Xin, H. Gao, H. Li, H. Qu, J. L. Cai, J. Liang, J. Guo, J. Ni, J. Li, J. Chen, J. Yuan, J. Qiu, J. Song, K. Dong, K. Gao, K. Guan, L. Wang, L. Zhang, L. Xu, L. Xia, L. Zhao, L. Zhang, M. Li, M. Wang, M. Zhang, M. Zhang, M. Tang, M. Li, N. Tian, P. Huang, P. Wang, P. Zhang, Q. Zhu, Q. Chen, Q. Du, R. J. Chen, R. L. Jin, R. Ge, R. Pan, R. Xu, R. Chen, S. S. Li, S. Lu, S. Zhou, S. Chen, S. Wu, S. Ye, S. Ma, S. Wang, S. Zhou, S. Yu, S. Zhou, S. Zheng, T. Wang, T. Pei, T. Yuan, T. Sun, W. L. Xiao, W. Zeng, W. An, W. Liu, W. Liang, W. Gao, W. Zhang, X. Q. Li, X. Jin, X. Wang, X. Bi, X. Liu, X. Wang, X. Shen, X. Chen, X. Chen, X. Nie, X. Sun, X. Wang, X. Liu, X. Xie, X. Yu, X. Song, X. Zhou, X. Yang, X. Lu, X. Su, Y. Wu, Y. K. Li, Y. X. Wei, Y. X. Zhu, Y. Xu, Y. Huang, Y. Li, Y. Zhao, Y. Sun, Y. Li, Y. Wang, Y. Zheng, Y. Zhang, Y. Xiong, Y. Zhao, Y. He, Y. Tang, Y. Piao, Y. Dong, Y. Tan, Y. Liu, Y. Wang, Y. Guo, Y. Zhu, Y. Wang, Y. Zou, Y. Zha, Y. Ma, Y. Yan, Y. You, Y. Liu, Z. Z. Ren, Z. Ren, Z. Sha, Z. Fu, Z. Huang, Z. Zhang, Z. Xie, Z. Hao, Z. Shao, Z. Wen, Z. Xu, Z. Zhang, Z. Li, Z. Wang, Z. Gu, Z. Li, and Z. Xie, “DeepSeek-v2: A strong, economical, and efficient mixture-of-experts language model,” arXiv preprint arXiv:2405.04434, no. arXiv:2405.04434. \n[200] DeepSeek-AI, D. Guo, D. Yang, H. Zhang, J. Song, R. Zhang, R. Xu, Q. Zhu, S. Ma, P. Wang, X. Bi, X. Zhang, X. Yu, Y. Wu, Z. F. Wu, Z. Gou, Z. Shao, Z. Li, Z. Gao, A. Liu, B. Xue, B. Wang, B. Wu, B. Feng, C. Lu, C. Zhao, C. Deng, C. Zhang, C. Ruan, D. Dai, D. Chen, D. Ji, E. Li, F. Lin, F. Dai, F. Luo, G. Hao, G. Chen, G. Li, H. Zhang, H. Bao, H. Xu, H. Wang, H. Ding, H. Xin, H. Gao, H. Qu, H. Li, J. Guo, J. Li, J. Wang, J. Chen, J. Yuan, J. Qiu, J. Li, J. L. Cai, J. Ni, J. Liang, J. Chen, K. Dong, K. Hu, K. Gao, K. Guan, K. Huang, K. Yu, L. Wang, L. Zhang, L. Zhao, L. Wang, L. Zhang, L. Xu, L. Xia, M. Zhang, M. Zhang, M. Tang, M. Li, M. Wang, M. Li, N. Tian, P. Huang, P. Zhang, Q. Wang, Q. Chen, Q. Du, R. Ge, R. Zhang, R. Pan, R. Wang, R. J. Chen, R. L. Jin, R. Chen, S. Lu, S. Zhou, S. Chen, S. Ye, S. Wang, S. Yu, S. Zhou, S. Pan, S. S. Li, S. Zhou, S. Wu, S. Ye, T. Yun, T. Pei, T. Sun, T. Wang, W. Zeng, W. Zhao, W. Liu, W. Liang, W. Gao, W. Yu, W. Zhang, W. L. Xiao, W. An, X. Liu, X. Wang, X. Chen, X. Nie, X. Cheng, X. Liu, X. Xie, X. Liu, X. Yang, X. Li, X. Su, X. Lin, X. Q. Li, X. Jin, X. Shen, X. Chen, X. Sun, X. Wang, X. Song, X. Zhou, X. Wang, X. Shan, Y. K. Li, Y. Q. Wang, Y. X. Wei, Y. Zhang, Y. Xu, Y. Li, Y. Zhao, Y. Sun, Y. Wang, Y. Yu, Y. Zhang, Y. Shi, Y. Xiong, Y. He, Y. Piao, Y. Wang, Y. Tan, Y. Ma, Y. Liu, Y. Guo, Y. Ou, Y. Wang, Y. Gong, Y. Zou, Y. He, Y. Xiong, Y. Luo, Y. You, Y. Liu, Y. Zhou, Y. X. Zhu, Y. Xu, Y. Huang, Y. Li, Y. Zheng, Y. Zhu, Y. Ma, Y. Tang, Y. Zha, Y. Yan, Z. Z. Ren, Z. Ren, Z. Sha, Z. Fu, Z. Xu, Z. Xie, Z. Zhang, Z. Hao, Z. Ma, Z. Yan, Z. Wu, Z. Gu, Z. Zhu, Z. Liu, Z. Li, Z. Xie, Z. Song, Z. Pan, Z. Huang, Z. Xu, Z. Zhang, and Z. Zhang, “DeepSeek-r1: Incentivizing reasoning capability in LLMs via reinforcement learning,” arXiv preprint arXiv:2501.12948, no. arXiv:2501.12948, 2025. \n[201] R. Akrour, D. Tateo, and J. Peters, “Continuous action reinforcement learning from a mixture of interpretable experts,” vol. 44, no. 10, pp. 6795–6806. \n[202] T. C. Fung, A. L. Badescu, and X. S. Lin, “A class of mixture of experts models for general insurance: Theoretical developments,” vol. 89, pp. 111–127. \n[203] S. E. Yuksel, J. N. Wilson, and P. D. Gader, “Twenty years of mixture of experts,” IEEE transactions on neural networks and learning systems, vol. 23, no. 8, pp. 1177–1193, 2012. \n[204] S. Masoudnia and R. Ebrahimpour, “Mixture of experts: a literature survey,” Artificial Intelligence Review, vol. 42, pp. 275–293, 2014. \n[205] W. Cai, J. Jiang, F. Wang, J. Tang, S. Kim, and J. Huang, “A survey on mixture of experts,” arXiv preprint arXiv:2407.06204, 2024. \n[206] W. Gan, Z. Ning, Z. Qi, and P. S. Yu, “Mixture of experts (moe): A big data perspective,” arXiv preprint arXiv:2501.16352, 2025. \n[207] J. Liu, P. Tang, W. Wang, Y. Ren, X. Hou, P.-A. Heng, M. Guo, and C. Li, “A survey on inference optimization techniques for mixture of experts models,” arXiv preprint arXiv:2412.14219, 2024. \n[208] A. Vats, R. Raja, V. Jain, and A. Chadha, “The evolution of mixture of experts: A survey from basics to breakthroughs,” Preprints (August 2024), 2024. \n[209] V. Dimitri, B. Regina, and M. Alfonz, “A survey on mixture of experts: Advancements, challenges, and future directions,” Authorea Preprints, 2025. \n[210] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin, “Attention is all you need,” Advances in neural information processing systems, vol. 30, 2017. \n[211] S. Ingrassia, S. C. Minotti, and G. Vittadini, “Local statistical modeling via a cluster-weighted approach with elliptical distributions,” Journal of classification, vol. 29, pp. 363–401, 2012. \n[212] J. Geweke, M. Keane, and D. Runkle, “Alternative computational approaches to inference in the multinomial probit model,” The review of economics and statistics, pp. 609–632, 1994. \n[213] M. P. Keane, “A note on identification in the multinomial probit model,” Journal of Business & Economic Statistics, vol. 10, no. 2, pp. 193–200, 1992. \n[214] W. Peebles and S. Xie, “Scalable diffusion models with transformers,” in Proceedings of the IEEE/CVF international conference on computer vision, pp. 4195–4205, 2023. \n[215] B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, et al., “Language models are few-shot learners,” arXiv preprint arXiv:2005.14165, vol. 1, p. 3, 2020. \n[216] E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al., “Lora: Low-rank adaptation of large language models.,” ICLR, vol. 1, no. 2, p. 3, 2022. \n[217] S. Lin, L. Yang, D. Fan, and J. Zhang, “Trgp: Trust region gradient projection for continual learning,” arXiv preprint arXiv:2202.02931, 2022. \n[218] S. Lin, L. Yang, D. Fan, and J. Zhang, “Beyond not-forgetting: Continual learning with backward knowledge transfer,” Advances in Neural Information Processing Systems, vol. 35, pp. 16165–16177, 2022. \n[219] R. Aljundi, K. Kelchtermans, and T. Tuytelaars, “Task-free continual learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 11254–11263, 2019. \n[220] D.-W. Zhou, H.-L. Sun, J. Ning, H.-J. Ye, and D.-C. Zhan, “Continual learning with pre-trained models: A survey,” arXiv preprint arXiv:2401.16386, 2024. \n[221] Q. Sun, Y. Liu, T.-S. Chua, and B. Schiele, “Meta-transfer learning for few-shot learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 403–412, 2019. \n[222] Y. Chen, Z. Liu, H. Xu, T. Darrell, and X. Wang, “Meta-baseline: Exploring simple meta-learning for few-shot learning,” in Proceedings of the IEEE/CVF international conference on computer vision, pp. 9062– 9071, 2021. \n[223] M. Ren, E. Triantafillou, S. Ravi, J. Snell, K. Swersky, J. B. Tenenbaum, H. Larochelle, and R. S. Zemel, “Meta-learning for semisupervised few-shot classification,” arXiv preprint arXiv:1803.00676, 2018. \n[224] A. Santoro, S. Bartunov, M. Botvinick, D. Wierstra, and T. Lillicrap, “Meta-learning with memory-augmented neural networks,” in International conference on machine learning, pp. 1842–1850, PMLR, 2016. \n[225] J. Snell, K. Swersky, and R. Zemel, “Prototypical networks for few-shot learning,” Advances in neural information processing systems, vol. 30, 2017. \n[226] C. Finn, P. Abbeel, and S. Levine, “Model-agnostic meta-learning for fast adaptation of deep networks,” in International conference on machine learning, pp. 1126–1135, PMLR, 2017. \n[227] A. Nichol and J. Schulman, “Reptile: a scalable metalearning algorithm,” arXiv preprint arXiv:1803.02999, vol. 2, no. 3, p. 4, 2018. \n[228] M. Garnelo, J. Schwarz, D. Rosenbaum, F. Viola, D. J. Rezende, S. Eslami, and Y. W. Teh, “Neural processes,” arXiv preprint arXiv:1807.01622, 2018. \n[229] N. Goring, F. Hess, M. Brenner, Z. Monfared, and D. Durstewitz, “Out- ¨ of-domain generalization in dynamical systems reconstruction,” arXiv preprint arXiv:2402.18377, 2024. \n[230] R. D. Nzoyem, D. A. Barton, and T. Deakin, “Extending contextual self-modulation: Meta-learning across modalities, task dimensionalities, and data regimes,” arXiv preprint arXiv:2410.01655, 2024. \n[231] A. Farahani, S. Voghoei, K. Rasheed, and H. R. Arabnia, “A brief review of domain adaptation,” Advances in data science and information engineering: proceedings from ICDATA 2020 and IKE 2020, pp. 877– 894, 2021. \n[232] O. Vinyals, C. Blundell, T. Lillicrap, D. Wierstra, et al., “Matching networks for one shot learning,” Advances in neural information processing systems, vol. 29, 2016. \n[233] K. Rakelly, A. Zhou, C. Finn, S. Levine, and D. Quillen, “Efficient offpolicy meta-reinforcement learning via probabilistic context variables,” in International conference on machine learning, pp. 5331–5340, PMLR, 2019. \n[234] T. Haarnoja, A. Zhou, P. Abbeel, and S. Levine, “Soft actor-critic: Offpolicy maximum entropy deep reinforcement learning with a stochastic actor,” in International conference on machine learning, pp. 1861– 1870, Pmlr, 2018. \n[235] R. Caruana, “Multitask learning,” Machine learning, vol. 28, pp. 41– 75, 1997. \n[236] K.-H. Thung and C.-Y. Wee, “A brief review on multi-task learning,” Multimedia Tools and Applications, vol. 77, no. 22, pp. 29705–29725, 2018. \n[237] Y. Zhang and Q. Yang, “An overview of multi-task learning,” National Science Review, vol. 5, no. 1, pp. 30–43, 2018. \n[238] N. Vithayathil Varghese and Q. H. Mahmoud, “A survey of multi-task deep reinforcement learning,” Electronics, vol. 9, no. 9, p. 1363, 2020. \n[239] C. D’Eramo, D. Tateo, A. Bonarini, M. Restelli, and J. Peters, “Sharing knowledge in multi-task deep reinforcement learning,” arXiv preprint arXiv:2401.09561, 2024. \n[240] L. Sun, H. Zhang, W. Xu, and M. Tomizuka, “Paco: Parametercompositional multi-task reinforcement learning,” Advances in Neural Information Processing Systems, vol. 35, pp. 21495–21507, 2022. \n[241] C. Devin, A. Gupta, T. Darrell, P. Abbeel, and S. Levine, “Learning modular neural network policies for multi-task and multi-robot transfer,” in 2017 IEEE international conference on robotics and automation (ICRA), pp. 2169–2176, IEEE, 2017. \n[242] R. Yang, H. Xu, Y. Wu, and X. Wang, “Multi-task reinforcement learning with soft modularization,” Advances in Neural Information Processing Systems, vol. 33, pp. 4767–4777, 2020. \n[243] Q. Zhang, X. Liao, Q. Liu, J. Xu, and B. Zheng, “Leaving no one behind: A multi-scenario multi-task meta learning approach for advertiser modeling,” in Proceedings of the Fifteenth ACM International Conference on Web Search and Data Mining, pp. 1368–1376, 2022. \n[244] A. Graves and A. Graves, “Long short-term memory,” Supervised sequence labelling with recurrent neural networks, pp. 37–45, 2012. \n[245] R. Cui, D. Cao, Q. Liu, Z. Zhu, and Y. Jia, “Vp and vs prediction from digital rock images using a combination of u-net and convolutional neural networks,” Geophysics, vol. 86, no. 1, pp. MR27–MR37, 2021. \n[246] S. Karimpouli, S. Khoshlesan, E. H. Saenger, and H. H. Koochi, “Application of alternative digital rock physics methods in a real case study: a challenge between clean and cemented samples,” Geophysical Prospecting, vol. 66, no. 4, pp. 767–783, 2018. \n[247] J. Kober, J. A. Bagnell, and J. Peters, “Reinforcement learning in robotics: A survey,” The International Journal of Robotics Research, vol. 32, no. 11, pp. 1238–1274, 2013. \n[248] I. Szita, “Reinforcement learning in games,” in Reinforcement Learning: State-of-the-art, pp. 539–577, Springer, 2012. \n[249] B. R. Kiran, I. Sobh, V. Talpaert, P. Mannion, A. A. Al Sallab, S. Yogamani, and P. Perez, “Deep reinforcement learning for autonomous ´ driving: A survey,” IEEE transactions on intelligent transportation systems, vol. 23, no. 6, pp. 4909–4926, 2021. \n[250] C. Yu, J. Liu, S. Nemati, and G. Yin, “Reinforcement learning in healthcare: A survey,” ACM Computing Surveys (CSUR), vol. 55, no. 1, pp. 1–36, 2021. \n[251] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, “Proximal policy optimization algorithms,” arXiv preprint arXiv:1707.06347, 2017. \n[252] V. Feinberg, A. Wan, I. Stoica, M. I. Jordan, J. E. Gonzalez, and S. Levine, “Model-based value estimation for efficient model-free reinforcement learning,” arXiv preprint arXiv:1803.00101, 2018. \n[253] S. Levine, A. Kumar, G. Tucker, and J. Fu, “Offline reinforcement learning: Tutorial, review, and perspectives on open problems,” arXiv preprint arXiv:2005.01643, 2020. \n[254] O. Celik, A. Taranovic, and G. Neumann, “Acquiring diverse skills using curriculum reinforcement learning with mixture of experts,” rYi, print arXiv:2403.06966 \n[255] T. Kurutach, I. Clavera, Y. Duan, A. Tamar, and P. Abbeel, “Model-ensemble trust-region policy optimization,” arXiv preprint arXiv:1802.10592, 2018. \n[256] K. Lee, M. Laskin, A. Srinivas, and P. Abbeel, “Sunrise: A simple unified framework for ensemble learning in deep reinforcement learning,” in International Conference on Machine Learning, pp. 6131–6141, PMLR, 2021. \n[257] Z. Yang, K. Ren, X. Luo, M. Liu, W. Liu, J. Bian, W. Zhang, and D. Li, “Towards applicable reinforcement learning: Improving the generalization and sample efficiency with policy ensemble,” arXiv preprint arXiv:2205.09284, 2022. \n[258] X. Lou, J. Guo, J. Zhang, J. Wang, K. Huang, and Y. Du, “Pecan: Leveraging policy ensemble for context-aware zero-shot human-ai coordination,” arXiv preprint arXiv:2301.06387, 2023. \n[259] H. Mohammadi, E. Nazerfard, and T. Firoozi, “Reinforcement learningbased mixture of vision transformers for video violence recognition,” arXiv preprint arXiv:2310.03108, 2023. \n[260] Z. Wei, D. Chen, Y. Zhang, D. Wen, X. Nie, and L. Xie, “Deep reinforcement learning portfolio model based on mixture of experts,” vol. 55, no. 5, p. 347. \n[261] H. B. McMahan, E. Moore, D. Ramage, and B. A. y Arcas, “Federated learning of deep networks using model averaging,” arXiv preprint arXiv:1602.05629, vol. 2, no. 2, pp. 15–18, 2016. \n[262] Z. Liu, L. Yang, Z. Fan, H. Peng, and P. S. Yu, “Federated social recommendation with graph neural network,” ACM Transactions on Intelligent Systems and Technology (TIST), vol. 13, no. 4, pp. 1–24, 2022. \n[263] C. Wu, F. Wu, Y. Cao, Y. Huang, and X. Xie, “Fedgnn: Federated graph neural network for privacy-preserving recommendation,” arXiv preprint arXiv:2102.04925, 2021. \n[264] A. Flanagan, W. Oyomno, A. Grigorievskiy, K. E. Tan, S. A. Khan, and M. Ammad-Ud-Din, “Federated multi-view matrix factorization for personalized recommendations,” in Machine Learning and Knowledge Discovery in Databases: European Conference, ECML PKDD 2020, Ghent, Belgium, September 14–18, 2020, Proceedings, Part II, (Berlin, Heidelberg), p. 324–347, Springer-Verlag, 2020. \n[265] B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, “Communication-efficient learning of deep networks from decentralized data,” in Artificial intelligence and statistics, pp. 1273–1282, PMLR, 2017. \n[266] N. Guha, A. Talwalkar, and V. Smith, “One-shot federated learning,” arXiv preprint arXiv:1902.11175, 2019. \n[267] D. Eigen, M. Ranzato, and I. Sutskever, “Learning factored representations in a deep mixture of experts,” arXiv preprint arXiv:1312.4314, 2013. \n[268] M. Aitkin and N. Longford, “Statistical modelling issues in school effectiveness studies,” Journal of the Royal Statistical Society: Series A (General), vol. 149, no. 1, pp. 1–26, 1986. \n[269] H. Goldstein, “Multilevel mixed linear model analysis using iterative generalized least squares,” Biometrika, vol. 73, no. 1, pp. 43–56, 1986. \n[270] H. Goldstein, Multilevel statistical models. John Wiley & Sons, 2011. \n[271] M. McCloskey and N. J. Cohen, “Catastrophic interference in connectionist networks: The sequential learning problem,” in Psychology of learning and motivation, vol. 24, pp. 109–165, Elsevier, 1989. \n[272] J. Kirkpatrick, R. Pascanu, N. Rabinowitz, J. Veness, G. Desjardins, A. A. Rusu, K. Milan, J. Quan, T. Ramalho, A. Grabska-Barwinska, et al., “Overcoming catastrophic forgetting in neural networks,” Proceedings of the national academy of sciences, vol. 114, no. 13, pp. 3521–3526, 2017. \n[273] B. Lakshminarayanan, A. Pritzel, and C. Blundell, “Simple and scalable predictive uncertainty estimation using deep ensembles,” Advances in neural information processing systems, vol. 30, 2017. \n[274] X. Zhou, V. Koltun, and P. Krahenb ¨ uhl, “Simple multi-dataset detec- ¨ tion,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 7571–7580, 2022. \n[275] X. Wang, Z. Cai, D. Gao, and N. Vasconcelos, “Towards universal object detection by domain attention,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 7289–7298, 2019. \n[276] M. Ding, B. Xiao, N. Codella, P. Luo, J. Wang, and L. Yuan, “Davit: Dual attention vision transformers,” in European conference on computer vision, pp. 74–92, Springer, 2022. \n[277] A. Kendall and Y. Gal, “What uncertainties do we need in bayesian deep learning for computer vision?,” Advances in neural information processing systems, vol. 30, 2017. \n[278] M. Abbasi and C. Gagne, “Robustness to adversarial examples through ´ an ensemble of specialists,” arXiv preprint arXiv:1702.06856, 2017. \n[279] S. Kariyappa and M. Qureshi, “Improving adversarial robustness of ensembles with diversity training. 2019,” Available: arXiv, 1901. \n[280] T. Pang, K. Xu, C. Du, N. Chen, and J. Zhu, “Improving adversarial robustness via promoting ensemble diversity,” in International Conference on Machine Learning, pp. 4970–4979, PMLR, 2019. \n[281] R. Rombach, A. Blattmann, D. Lorenz, P. Esser, and B. Ommer, “High-resolution image synthesis with latent diffusion models,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10684–10695, 2022. \n[282] C. Ledig, L. Theis, F. Huszar, J. Caballero, A. Cunningham, A. Acosta, ´ A. Aitken, A. Tejani, J. Totz, Z. Wang, et al., “Photo-realistic single image super-resolution using a generative adversarial network,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4681–4690, 2017. \n[283] L. Wei, S. Zhang, W. Gao, and Q. Tian, “Person transfer gan to bridge domain gap for person re-identification,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 79–88, 2018. \n[284] A. Radford, L. Metz, and S. Chintala, “Unsupervised representation learning with deep convolutional generative adversarial networks,” arXiv preprint arXiv:1511.06434, 2015. \n[285] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio, “Generative adversarial networks,” Communications of the ACM, vol. 63, no. 11, pp. 139–144, 2020. \n[286] S. Gu, D. Chen, J. Bao, F. Wen, B. Zhang, D. Chen, L. Yuan, and B. Guo, “Vector quantized diffusion model for text-to-image synthesis,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10696–10706, 2022. \n[287] P. Esser, R. Rombach, A. Blattmann, and B. Ommer, “Imagebart: Bidirectional context with multinomial diffusion for autoregressive image synthesis,” Advances in neural information processing systems, vol. 34, pp. 3518–3532, 2021. \n[288] S. Bond-Taylor, P. Hessey, H. Sasaki, T. P. Breckon, and C. G. Willcocks, “Unleashing transformers: Parallel token prediction with discrete absorbing diffusion for fast high-resolution image generation from vector-quantized codes,” in European Conference on Computer Vision, pp. 170–188, Springer, 2022. \n[289] C. Manning and H. Schutze, Foundations of statistical natural language processing. MIT press, 1999. \n[290] D. Jurafsky, Speech & language processing. Pearson Education India, 2000. \n[291] J. Hirschberg and C. D. Manning, “Advances in natural language processing,” Science, vol. 349, no. 6245, pp. 261–266, 2015. \n[292] T. Young, D. Hazarika, S. Poria, and E. Cambria, “Recent trends in deep learning based natural language processing,” ieee Computational intelligenCe magazine, vol. 13, no. 3, pp. 55–75, 2018. \n[293] Y. Liu, M. Ott, N. Goyal, J. Du, M. Joshi, D. Chen, O. Levy, M. Lewis, L. Zettlemoyer, and V. Stoyanov, “Roberta: A robustly optimized bert pretraining approach,” arXiv preprint arXiv:1907.11692, 2019. \n[294] D. Adiwardana, M.-T. Luong, D. R. So, J. Hall, N. Fiedel, R. Thoppilan, Z. Yang, A. Kulshreshtha, G. Nemade, Y. Lu, et al., “Towards a human-like open-domain chatbot,” arXiv preprint arXiv:2001.09977, 2020. \n[295] L. Zhang, S. Wang, and B. Liu, “Deep learning for sentiment analysis: A survey,” Wiley interdisciplinary reviews: data mining and knowledge discovery, vol. 8, no. 4, p. e1253, 2018. \n[296] G. Lample, M. Ballesteros, S. Subramanian, K. Kawakami, and C. Dyer, “Neural architectures for named entity recognition,” arXiv preprint arXiv:1603.01360, 2016. \n[297] D. Yu and L. Deng, Automatic speech recognition, vol. 1. Springer, 2016. \n[298] D. Bahdanau, K. Cho, and Y. Bengio, “Neural machine translation by jointly learning to align and translate,” arXiv preprint arXiv:1409.0473, 2014. \n[299] T.-H. Wen, M. Gasic, N. Mrksic, P.-H. Su, D. Vandyke, and S. Young, “Semantically conditioned lstm-based natural language generation for spoken dialogue systems,” arXiv preprint arXiv:1508.01745, 2015. \n[300] E. Reiter and R. Dale, “Building applied natural language generation systems,” Natural Language Engineering, vol. 3, no. 1, pp. 57–87, 1997. \n[301] A. M. Rush, S. Chopra, and J. Weston, “A neural attention model for abstractive sentence summarization,” arXiv preprint arXiv:1509.00685, 2015. \n[302] K. Papineni, S. Roukos, T. Ward, and W.-J. Zhu, “Bleu: a method for automatic evaluation of machine translation,” in Proceedings of the 40th annual meeting of the Association for Computational Linguistics, pp. 311–318, 2002. \n[303] P. F. Brown, J. Cocke, S. A. Della Pietra, V. J. Della Pietra, F. Jelinek, J. Lafferty, R. L. Mercer, and P. S. Roossin, “A statistical approach to machine translation,” Computational linguistics, vol. 16, no. 2, pp. 79– 85, 1990. \n[304] Y. Wu, M. Schuster, Z. Chen, Q. V. Le, M. Norouzi, W. Macherey, M. Krikun, Y. Cao, Q. Gao, K. Macherey, et al., “Google’s neural machine translation system: Bridging the gap between human and machine translation,” arXiv preprint arXiv:1609.08144, 2016. ", + "page_idx": 21 + }, + { + "type": "text", + "text": "", + "page_idx": 22 + }, + { + "type": "text", + "text": "", + "page_idx": 22 + }, + { + "type": "text", + "text": "", + "page_idx": 23 + }, + { + "type": "text", + "text": "", + "page_idx": 23 + }, + { + "type": "text", + "text": "", + "page_idx": 24 + }, + { + "type": "text", + "text": "", + "page_idx": 24 + }, + { + "type": "text", + "text": "", + "page_idx": 25 + }, + { + "type": "text", + "text": "", + "page_idx": 25 + }, + { + "type": "text", + "text": "", + "page_idx": 26 + }, + { + "type": "text", + "text": "", + "page_idx": 26 + }, + { + "type": "text", + "text": "", + "page_idx": 27 + }, + { + "type": "text", + "text": "", + "page_idx": 27 + }, + { + "type": "text", + "text": "", + "page_idx": 28 + }, + { + "type": "text", + "text": "", + "page_idx": 28 + } +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/13b002358a1e3cdbbff3c9e548b2af7213ef2e52392ed0d3a456d659ffe88b1f.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/13b002358a1e3cdbbff3c9e548b2af7213ef2e52392ed0d3a456d659ffe88b1f.jpg new file mode 100644 index 0000000000000000000000000000000000000000..796f4b2622a5b25bbc86421380dd75df957208c2 Binary files /dev/null and b/backend/ingestion_pipeline/output/MOE/auto/images/13b002358a1e3cdbbff3c9e548b2af7213ef2e52392ed0d3a456d659ffe88b1f.jpg differ diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/13de9a264b2cd18a40221278c2daee84560772e56ff8796f6b3ca6b36731eda4.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/13de9a264b2cd18a40221278c2daee84560772e56ff8796f6b3ca6b36731eda4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b3a2570fc6b41adaacb381de0df6a8bfc09e8a6a Binary files /dev/null and b/backend/ingestion_pipeline/output/MOE/auto/images/13de9a264b2cd18a40221278c2daee84560772e56ff8796f6b3ca6b36731eda4.jpg differ diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/1d3f62261aa8522a066756dcc523f3a847520f925dbd6918e9b2c2bf4861faa0.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/1d3f62261aa8522a066756dcc523f3a847520f925dbd6918e9b2c2bf4861faa0.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b897c8d1f6e3f0a39d3af5268eb1255783d00f01 Binary files /dev/null and b/backend/ingestion_pipeline/output/MOE/auto/images/1d3f62261aa8522a066756dcc523f3a847520f925dbd6918e9b2c2bf4861faa0.jpg differ diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/1e51258f43ae07e4bd4bcbf533d3ef9f118265a24425177ff86bf624081388a4.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/1e51258f43ae07e4bd4bcbf533d3ef9f118265a24425177ff86bf624081388a4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..800fc2d46dd432a99b565ff3d455d404bca9152a Binary files /dev/null and b/backend/ingestion_pipeline/output/MOE/auto/images/1e51258f43ae07e4bd4bcbf533d3ef9f118265a24425177ff86bf624081388a4.jpg differ diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/25ac1650d6400589cbff90e22301afd16ec3dbfabbff7cc90491ce1be966f81d.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/25ac1650d6400589cbff90e22301afd16ec3dbfabbff7cc90491ce1be966f81d.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9a66dc36ab4b9477a9a9f2f900c3fe14471ec5c9 Binary files /dev/null and b/backend/ingestion_pipeline/output/MOE/auto/images/25ac1650d6400589cbff90e22301afd16ec3dbfabbff7cc90491ce1be966f81d.jpg differ diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/60eadda9af46a4bd359181a7b89abbd25e30c952749ff12dea32ca222e91b7d1.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/60eadda9af46a4bd359181a7b89abbd25e30c952749ff12dea32ca222e91b7d1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..20ea407c039242285473a36ab1d7db882b1f8dfa Binary files /dev/null and b/backend/ingestion_pipeline/output/MOE/auto/images/60eadda9af46a4bd359181a7b89abbd25e30c952749ff12dea32ca222e91b7d1.jpg differ diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/74442a5fdcbcc294aaf1e9efe50cea10387daf5ec040876ab72b53664188597b.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/74442a5fdcbcc294aaf1e9efe50cea10387daf5ec040876ab72b53664188597b.jpg new file mode 100644 index 0000000000000000000000000000000000000000..66152c330db211eadc6fc8e6ab6556c436388cb3 Binary files /dev/null and b/backend/ingestion_pipeline/output/MOE/auto/images/74442a5fdcbcc294aaf1e9efe50cea10387daf5ec040876ab72b53664188597b.jpg differ diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/7a89037bb830acff4d6906979097eac9d166333a3a32003326f58f543bd26e4f.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/7a89037bb830acff4d6906979097eac9d166333a3a32003326f58f543bd26e4f.jpg new file mode 100644 index 0000000000000000000000000000000000000000..cf46eb736ee2bdf69c0619d9003d6ab293d8cc8e --- /dev/null +++ b/backend/ingestion_pipeline/output/MOE/auto/images/7a89037bb830acff4d6906979097eac9d166333a3a32003326f58f543bd26e4f.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c9a1b91e40b9867c3fc38908dabfd4c9bb5b18d359f49888a1d4534d7af79108 +size 452078 diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/81dae62120ff60172a995d5b575f2c6be808e8faa66e28731a53e4e2efef0b61.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/81dae62120ff60172a995d5b575f2c6be808e8faa66e28731a53e4e2efef0b61.jpg new file mode 100644 index 0000000000000000000000000000000000000000..430ad213ed0f994087b01b11b8f8807e0b19063b Binary files /dev/null and b/backend/ingestion_pipeline/output/MOE/auto/images/81dae62120ff60172a995d5b575f2c6be808e8faa66e28731a53e4e2efef0b61.jpg differ diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/a7b445c5231aa62511e14598625392e37bbc0eee4b5f5cd3c834d0901c2eff86.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/a7b445c5231aa62511e14598625392e37bbc0eee4b5f5cd3c834d0901c2eff86.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f1e2ac9d3e0af03ed3dc2915621dde4ebacc114c Binary files /dev/null and b/backend/ingestion_pipeline/output/MOE/auto/images/a7b445c5231aa62511e14598625392e37bbc0eee4b5f5cd3c834d0901c2eff86.jpg differ diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/b38fc4377125eb74bfaefc9348701ee985cf87117a2edb1f741ac3a8e4910b9c.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/b38fc4377125eb74bfaefc9348701ee985cf87117a2edb1f741ac3a8e4910b9c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..697b61e4c2971cc734a77c6932ea32a757f82fa1 Binary files /dev/null and b/backend/ingestion_pipeline/output/MOE/auto/images/b38fc4377125eb74bfaefc9348701ee985cf87117a2edb1f741ac3a8e4910b9c.jpg differ diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/bf01177d672f112ff31b6beea971316887248f8bb88c42238ed4cb8a32699a9d.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/bf01177d672f112ff31b6beea971316887248f8bb88c42238ed4cb8a32699a9d.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0cab9331a950c7b9918146460c44c1a7d2ccfde7 Binary files /dev/null and b/backend/ingestion_pipeline/output/MOE/auto/images/bf01177d672f112ff31b6beea971316887248f8bb88c42238ed4cb8a32699a9d.jpg differ diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/d13935e988a50e14228e774a62dd673c86a7f77ba9503a17d6d9a99945e0cfdb.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/d13935e988a50e14228e774a62dd673c86a7f77ba9503a17d6d9a99945e0cfdb.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3e0d5d0ac764483e2763bcfc61729ffabfad1582 Binary files /dev/null and b/backend/ingestion_pipeline/output/MOE/auto/images/d13935e988a50e14228e774a62dd673c86a7f77ba9503a17d6d9a99945e0cfdb.jpg differ diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/ece9b529814ddbf29dc3a56780614290296041059da7eb1ac0cbdd863fcaef8b.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/ece9b529814ddbf29dc3a56780614290296041059da7eb1ac0cbdd863fcaef8b.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b36468b1efb65ff8de10d2118353b0b1e72df9d5 Binary files /dev/null and b/backend/ingestion_pipeline/output/MOE/auto/images/ece9b529814ddbf29dc3a56780614290296041059da7eb1ac0cbdd863fcaef8b.jpg differ diff --git a/backend/ingestion_pipeline/output/MOE/auto/images/f843d7d53b239fe54493006ded6c28334617952a69bdf26f7985b4e7832ae86a.jpg b/backend/ingestion_pipeline/output/MOE/auto/images/f843d7d53b239fe54493006ded6c28334617952a69bdf26f7985b4e7832ae86a.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a98084033ca6b621c415f3b54e82b60e3e384d17 Binary files /dev/null and b/backend/ingestion_pipeline/output/MOE/auto/images/f843d7d53b239fe54493006ded6c28334617952a69bdf26f7985b4e7832ae86a.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/React_paper.md b/backend/ingestion_pipeline/output/React_paper/auto/React_paper.md new file mode 100644 index 0000000000000000000000000000000000000000..ca21c3e9727cc9e89d09e45690c48139ba160120 --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/React_paper.md @@ -0,0 +1,437 @@ +# REAct: SyNERGIzING REASoNING AND AcTING IN LANGUAGE MODELS + +Shunyu $\mathrm { Y a o } ^ { * , 1 }$ , Jeffrey Zhao2, Dian $\mathrm { Y u } ^ { 2 }$ , Nan $\mathrm { D u } ^ { 2 }$ , Izhak Shafran2, Karthik Narasimhan1, Yuan Cao2 + +1Department of Computer Science, Princeton University 2Google Research, Brain team 1{shunyuy,karthikn}@princeton.edu ²{jeffreyzhao,dianyu,dunan,izhak,yuancao} @google.com + +# ABSTRACT + +While large language models (LLMs) have demonstrated impressive performance across tasks in language understanding and interactive decision making, their abilities for reasoning (e.g. chain-of-thought prompting) and acting (e.g. action plan generation) have primarily been studied as separate topics. In this paper, we explore the use of LLMs to generate both reasoning traces and task-specific actions in an interleaved manner, allowing for greater synergy between the two: reasoning traces help the model induce, track, and update action plans as well as handle exceptions, while actions allow it to interface with and gather additional information from external sources such as knowledge bases or environments. We apply our approach, named ReAct, to a diverse set of language and decision making tasks and demonstrate its effectiveness over state-of-the-art baselines in addition to improved human interpretability and trustworthiness. Concretely, on question answering (HotpotQA) and fact verification (Fever), ReAct overcomes prevalent issues of hallucination and error propagation in chain-of-thought reasoning by interacting with a simple Wikipedia API, and generating human-like task-solving trajectories that are more interpretable than baselines without reasoning traces. Furthermore, on two interactive decision making benchmarks (ALFWorld and WebShop), ReAct outperforms imitation and reinforcement learning methods by an absolute success rate of $34 \%$ and $10 \%$ respectively, while being prompted with only one or two in-context examples. + +# 1 INTRODUCTION + +A unique feature of human intelligence is the ability to seamlessly combine task-oriented actions with verbal reasoning (or inner speech, Alderson-Day & Fernyhough, 2015), which has been theorized to play an important role in human cognition for enabling self-regulation or strategization (Vygotsky, 1987; Luria, 1965; Fernyhough, 2010) and maintaining a working memory (Baddeley, 1992). Consider the example of cooking up a dish in the kitchen. Between any two specific actions, we may reason in language in order to track progress ("'now that everything is cut, I should heat up the pot of water'), to handle exceptions or adjust the plan according to the situation ("I don't have salt, so let me use soy sauce and pepper instead"), and to realize when external information is needed ("how do I prepare dough? Let me search on the Internet'). We may also act (open a cookbook to read the recipe, open the fridge, check ingredients) to support the reasoning and to answer questions ("What dish can I make right now?"). This tight synergy between "acting'" and "reasoning'" allows humans to learn new tasks quickly and perform robust decision making or reasoning, even under previously unseen circumstances or facing information uncertainties. + +Recent results have hinted at the possibility of combining verbal reasoning with interactive decision making in autonomous systems. On one hand, properly prompted large language models (LLMs) have demonstrated emergent capabilities to carry out several steps of reasoning traces to derive answers from questions in arithmetic, commonsense, and symbolic reasoning tasks (Wei et al. 2022). However, this "chain-of-thought'" reasoning is a static black box, in that the model uses its own internal representations to generate thoughts and is not grounded in the external world, which limits its ability to reason reactively or update its knowledge. This can lead to issues like fact hallucination and error propagation over the reasoning process (Figure 1 (1b)). On the other hand, recent work has explored the use of pre-trained language models for planning and acting in interactive environments (Ahn et al., 2022; Nakano et al., 2021; Yao et al., 2020; Huang et al., 2022a), with a focus on predicting actions via language priors. These approaches usually convert multi-modal observations into text, use a language model to generate domain-specifi c actions or plans, and then use a controller to choose or execute them. However, they do not employ language models to reason abstractly about high-level goals or maintain a working memory to support acting, barring Huang et al. (2022b) who perform a limited form of verbal reasoning to reiterate spatial facts about the current state. Beyond such simple embodied tasks to interact with a few blocks, there have not been studies on how reasoning and acting can be combined in a synergistic manner for general task solving, and if such a combination can bring systematic benefits compared to reasoning or acting alone. + +![This image is of **moderate complexity**, presenting two distinct sections that compare different prompting methods for language models. The top section, "(1) Hotspot QA," contrasts "Standard," "Chain-of-thought (CoT, Reason Only)," "Act-only," and "ReAct (Reason+Act)" prompting strategies in solving a question about the Apple Remote. The bottom section, "(2) AlfWorld," compares "Act-only" and "ReAct (Reason+Act)" prompting for a game-playing task. Each sub-section details a sequence of "Act" (action) and "Obs" (observation) steps, with some including "Thought" processes, illustrating the model's reasoning and execution flow. The visual layout clearly delineates the different methods and their outcomes, highlighting successful (green checkmark) and unsuccessful (red X) attempts.](images/69d01dabe525b457a0dea4899633824d7c6a020e8bcd57f87b2f5c5cc3dae77c.jpg) +Figure 1: (1) Comparison of 4 prompting methods, (a) St andard, (b) Chain-of-thought (CoT, Reason Only), (c) Act-only, and (d) ReAct (Reason+Act), solving a HotpotQA (Yang et al., 2018) question. (2) Comparison of (a) Act-only and (b) ReAct prompting to solve an AlfWorld (Shridhar et al., 2020b) game. In both domains, we omit in-context examples in the prompt, and only show task solving trajectories generated by the model (Act, Thought) and the environment (Obs). + +In this work, we present ReAct, a general paradigm to combine reasoning and acting with language models for solving diverse language reasoning and decision making tasks (Figure 1). ReAct prompts LLMs to generate both verbal reasoning traces and actions pertaining to a task in an interleaved manner, which allows the model to perform dynamic reasoning to create, maintain, and adjust high-level plans for acting (reason to act), while also interact with the external environments (e.g. Wikipedia) to incorporate additional information into reasoning (act to reason). + +We conduct empirical evaluations of ReAct and state-of-the-art baselines on four diverse benchmarks: question answering (HotPotQA, Yang et al., 2018), fact verification (Fever, Thorne et al., 2018), text-based game (ALFWorld, Shridhar et al., 2020b), and webpage navigation (WebShop, Yao et al., 2022). For HotPotQA and Fever, with access to a Wikipedia API that the model can interact with, ReAct outperforms vanilla action generation models while being competitive with chain-ofthought reasoning (CoT) (Wei et al., 2022). The best approach overallis a combination of ReAct and CoT that allows for the use of both internal knowledge and externally obtained information during reasoning. On ALFWorld and WebShop, two or even one-shot ReAct prompting is able to outperform imitation or reinforcement learning methods trained with $1 0 ^ { 3 } \sim \mathrm { { 1 0 ^ { 5 } } }$ task instances, with an absolute improvement of $34 \%$ and $10 \%$ in success rates respectively. We also demonstrate the importance of sparse, versatile reasoning in decision making by showing consistent advantages over controlled baselines with actions only. Besides general applicability and performance boost, the combination of reasoning and acting also contributes to model interpretability, trustworthiness, and diagnosability across all domains, as humans can readily distinguish information from model's internal knowledge versus external environments, as well as inspect reasoning traces to understand the decision basis of model actions. + +To summarize, our key contributions are the following: (1) we introduce ReAct, a novel promptbased paradigm to synergize reasoning and acting in language models for general task solving; (2) we perform extensive experiments across diverse benchmarks to showcase the advantage of ReAct in a few-shot learning setup over prior approaches that perform either reasoning or action generation in isolation; (3) we present systematic ablations and analysis to understand the importance of acting in reasoning tasks, and reasoning in interactive tasks; (4) we analyze the limitations of ReAct under the prompting setup (i.e. limited support of reasoning and acting behaviors), and perform initial fi netuning experiments showing the potential of ReAct to improve with additional training data. Scaling up ReAct to train and operate on more tasks and combining it with complementary paradigms like reinforcement learning could further unlock the potential of large language models. + +# 2 REAcT: SYNERGIZING REASONING $^ +$ ACTING + +Consider a general setup of an agent interacting with an environment for task solving. At time step $t$ , an agent receives an observation $o _ { t } \in \mathcal { O }$ from the environment and takes an action $a _ { t } \in { \mathcal { A } }$ following some policy $\pi ( a _ { t } | c _ { t } )$ , where $c _ { t } = \left( o _ { 1 } , a _ { 1 } , \cdot \cdot \cdot , o _ { t - 1 } , a _ { t - 1 } , o _ { t } \right)$ is the context to the agent. Learning a policy is challenging when the mapping $c _ { t } \mapsto a _ { t }$ is highly implicit and requires extensive computation. For example, the agent shown in Figure 1(lc) is unable to generate the correct final action (Act 4) to finish the QA task as it requires complex reasoning over the trajectory context (Question, Act 1-3, Obs 1-3). Similarly, the agent shown in Figure 1(2a) fails to comprehend from the context that sinkbasin 1 does not contain peppershaker 1, thus keep producing hallucinating actions. + +The idea of ReAct is simple: we augment the agent's action space to ${ \hat { \mathcal { A } } } = { \mathcal { A } } \cup { \mathcal { L } }$ , where $\mathcal { L }$ is the space of language. An action $\hat { a } _ { t } \in \mathcal { L }$ in the language space, which we will refer to as a thought or a reasoning trace, does not affect the external environment, thus leading to no observation feedback. Instead, a thought $\hat { a } _ { t }$ aims to compose useful information by reasoning over the current context $c _ { t }$ , and update the context $\boldsymbol c _ { t + 1 } = \left( c _ { t } , \hat { a } _ { t } \right)$ to support future reasoning or acting. As shown in Figure 1, there could be various types of useful thoughts, e.g. decomposing task goals and create action plans (2b, Act 1; 1d, Thought 1), injecting commonsense knowledge relevant to task solving (2b, Act 1), extracting important parts from observations (1d, Thought2, 4), track progress and transit action plans (2b, Act 8), handle exceptions and adjust action plans (1d, Thought 3), and so on. + +However, as the language space $\mathcal { L }$ is unlimited, learning in this augmented action space is difficult and requires strong language priors. In this paper, we mainly focus on the setup where a frozen large language model, PaLM-540B (Chowdhery et al., 2022)1, is prompted with few-shot in-context examples to generate both domain-specifc actions and free-form language thoughts for task solving (Figure 1 (1d), (2b)). Each in-context example is a human trajectory of actions, thoughts, and environment observations to solve a task instance (see Appendix C). For the tasks where reasoning is of primary importance (Figure 1(1), we alternate the generation of thoughts and actions so that the task-solving trajectory consists of multiple thought-action-observation steps. In contrast, for decision making tasks that potentially involve a large number of actions (Figure 1(2)), thoughts only need to appear sparsely in the most relevant positions of a trajectory, so we let the language model decide the asynchronous occurrence of thoughts and actions for itself. + +Since decision making and reasoning capabilities are integrated into a large language model, ReAct enjoys several unique features: A) Intuitive and easy to design: Designing ReAct prompts is straightforward as human annotators just type down their thoughts in language on top of their actions taken. No ad-hoc format choice, thought design, or example selection is used in this paper. We detail prompt design for each task in Sections 3 and 4. B) General and flexible: Due to the flexible thought space and thought-action occurrence format, ReAct works for diverse tasks with distinct action spaces and reasoning needs, including but not limited to QA, fact verification, text game, and web navigation. C) Performant and robust: ReAct shows strong generalization to new task instances while learning solely from one to six in-context examples, consistently outperforming baselines with only reasoning or acting across different domains. We also show in Section 3 additional benefits when finetuning is enabled, and in Section 4 how ReAct performance is robust to prompt selections. D) Human aligned and controllable: ReAct promises an interpretable sequential decision making and reasoning process where humans can easily inspect reasoning and factual correctness. Moreover, humans can also control or correct the agent behavior on the go by thought editing, as shown in Figure 5 in Section 4. + +# 3 KNOWLEDGE-INTENSIVE REASONING TASKS + +We begin with knowledge-intensive reasoning tasks like multi-hop question answering and fact verification. As shown in Figure 1(1d), by interacting with a Wikipedia API, ReAct is able to retrieve information to support reasoning, while also use reasoning to target what to retrieve next, demonstrating a synergy of reasoning and acting. + +# 3.1 SETUP + +Domains We consider two datasets challenging knowledge retrieval and reasoning: (1) HotPotQA (Yang et al., 2018), a multi-hop question answering benchmark that requires reasoning over two or more Wikipedia passages, and (2) FEVER (Thorne et al., 2018), a fact verification benchmark where each claim is annotated SUPPORTS, REFUTES, or NOT ENOUGH INFO, based on if there exists a Wikipedia passage to verify the claim. In this work, we operate in a question-only setup for both tasks, where models only receive the question/claim as input without access to support paragraphs, and have to rely on their internal knowledge or retrieve knowledge via interacting with an external environment to support reasoning. + +Action Space We design a simple Wikipedia web API with three types of actions to support interactive information retrieval: (1) search[ent ity], which returns the first 5 sentences from the corresponding ent i ty wiki page if it exists, or else suggests top-5 similar entities from the Wikipedia search engine, (2) 1ookup[st ring], which would return the next sentence in the page containing st ring, simulating $\mathrm { C t r l { + } F }$ functionality on the browser. (3) finish[an swer], which would finish the current task with an s wer. We note that this action space mostly can only retrieve a small part of a passage based on exact passage name, which is significantly weaker than state-of-theart lexical or neural retrievers. The purpose is to simulate how humans would interact with Wikipedia, and force models to retrieve via explicit reasoning in language. + +# 3.2 METHODS + +ReAct Prompting For HotpotQA and Fever, we randomly select 6 and 3 cases2 from the training set and manually compose ReAct-format trajectories to use as few-shot exemplars in the prompts. Similar to Figure 1(d), each trajectory consists of multiple thought-action-observation steps (i.e. dense thought), where free-form thoughts are used for various purposes. Specifically, we use a combination of thoughts that decompose questions ("I need to search x, fi nd y, then find $\mathbf { Z } ^ { \dag }$ ), extract information from Wikipedia observations ${ } ^ { 6 6 } \mathbf { X }$ was started in $1 8 4 4 ^ { \circ }$ , "The paragraph does not tell x'"), perform commonsense ( $\mathbf { \mu } ^ { 6 6 } \mathbf { X }$ is not y, so z must instead be...") or arithmetic reasoning ( $^ { } 1 8 4 4 < 1 9 8 9 ^ { \cdots }$ ), guide search reformulation ("maybe I can search/look up x instead'"), and synthesize the final answer (".so the answer is x"). See Appendix C for more details. + +Table 1: PaLM-540B prompting results on HotpotQA and Fever. + +
Prompt MethodaHotEotOAFever
standard28.757.1
CoT (Wei et al., 22) CoT−SC (Wang et al, 2022a)29.4 33.456.3 60.4
Act25.758.9
ReAct CoT-SC→ReAct27.460.9
ReAct→CoT-SC34.2 35.164.6
Supervised SoTAb67.562.0 89.5
+ +HotpotQA EM is 27.1, 28.9, 33.8 for standard, CoT, CoT–SC in Wang et al. (2022b). b(Zhu et al., 2021; Lewis et al., 2020) + +![This image displays two line graphs comparing the performance of different methods based on the number of CoT-SC trials. The left graph, labeled "HotpotQA EM," shows Exact Match scores, with the "ReAct -> CoT-SC" method achieving the highest scores, peaking around 34.5. The right graph, labeled "Fever Acc," illustrates accuracy scores, where "CoT-SC -> ReAct" reaches the highest accuracy, around 65.0. Both graphs show that the "CoT-SC" method demonstrates a significant performance increase with more trials, while "ReAct" and "CoT" methods show relatively stable performance across trials.](images/171e40ed5124fb8222b6b5c65d5bcb93b3e24ea67229f3bc706a756f0bf4fbb3.jpg) +Figure 2: PaLM-540B prompting results with respect to number of CoT–sC samples used. + +Baselines We systematically ablate ReAct trajectories to build prompts for multiple baselines (with formats as Figure 1(1la-1c): (a) Standard prompting (St anda rd), which removes al thoughts, actions, observations in ReAct trajectories. (b) Chain-of-thought prompting (CoT) (Wei et al., 2022), which removes actions and observations and serve as a reasoning-only baseline. We also build a self-consistency baseline (CoT–sC) (Wang et al., 2022a;b) by sampling $2 1 \thinspace \mathrm { C o T }$ trajectories with decoding temperature 0.7 during inference and adopting the majority answer, which is found to consistently boost performance over CoT. (c) Acting-only prompt (Act), which removes thoughts in ReAct trajectories, loosely resembling how WebGPT (Nakano et al., 2021) interacts with the Internet to answer questions, though it operates on a different task and action space, and uses imitation and reinforcement learning instead of prompting. + +Combining Internal and External Knowledge As will be detail in Section 3.3, we observe that the problem solving process demonstrated by ReAct is more factual and grounded, whereas CoT is more accurate in formulating reasoning structure but can easily suffer from hallucinated facts or thoughts. We therefore propose to incorporate ReAct and CoT–sC, and let the model decide when to switch to the other method based on the following heuristics: A) $\mathtt { R e A c t } \to \mathtt { C o T } \mathtt { - } \mathtt { S } \mathtt { C }$ C: when ReAct fails to return an answer within given steps, back off to $\mathsf { C o T - S C }$ . We set 7 and 5 steps for HotpotQA and FEVER respectively as we find more steps will not improve ReAct performance3. B) CoT $- s \mathtt { C } \to \mathtt { R e A c 1 }$ : when the majority answer among $n \ C { \circ { \mathrm { T } } { - } { \mathrm { S } } { \mathrm { C } } }$ samples occurs less than $n / 2$ times (i.e. internal knowledge might not support the task confidently), back off to ReAct. + +Finetuning Due to the challenge of manually annotating reasoning traces and actions at scale, we consider a bootstraping approach similar to Zelikman et al. (2022), using 3,000 trajectories with correct answers generated by ReAct (also for other baselines) to finetune smaller language models (PaLM-8/62B) to decode trajectories (all thoughts, actions, observations) conditioned on input questions/claims. More details are in Appendix B.1. + +# 3.3 RESULTS AND OBSERVATIONS + +ReAct outperforms Act consistently Table 1 shows HotpotQA and Fever results using PaLM540B as the base model with different prompting methods. We note that ReAct is better than Act on both tasks, demonstrating the value of reasoning to guide acting, especially for synthesizing the final answer, as shown in Figure 1 (1c-d). Fine-tuning results 3 also confirm the benefit of reasoning traces for more informed acting. + +Table 2: Types of success and failure modes of ReAct and CoT on HotpotQA, as well as thein percentages in randomly selected examples studied by human. + +
|TypeDefinitionReActCoT
Success94%86%
Trle possiveCorrec e ing ace and cts
FailureReasoning errorWrong reasoning trace (including failing to recover from repetitive steps)47%16%
Search result errorSearch return empty or does not contain useful information23%-
HallucinationHallucinated reasoning trace or facts0%56%
Label ambiguityRight prediction but did not match the label precisely29%28%
+ +ReAct vs. CoT On the other hand, ReAct outperforms CoT on Fever (60.9 vs. 56.3) and slightly lags behind CoT on HotpotQA (27.4 vs. 29.4). Fever claims for SUPPORTS/REFUTES might only differ by a slight amount (see Appendix D.1), so acting to retrieve accurate and up-to-date knowledge is vital. To better understand the behavioral difference between ReAct and CoT on HotpotQA, we randomly sampled 50 trajectories with correct and incorrect answers (judged by EM) from ReAct and CoT respectively (thus 200 examples in total), and manually labeled their success and failure modes in Table 2. Some key observations are as follows: + +A) Hallucination is a serious problem for CoT, resulting in much higher false positive rate than ReAct $14 \%$ Vs. $6 \%$ ) in success mode, and make up its major failure mode $( 5 6 \% )$ . In contrast, the problem solving trajectory of ReActis more grounded, fact-driven, and trustworthy, thanks to the access of an external knowledge base. + +B) While interleaving reasoning, action and observation steps improves ReAct's groundedness and trustworthiness, such a structural constraint also reduces its flexibility in formulating reasoning steps, leading to more reasoning error rate than CoT. we note that there is one frequent error pattern specific to ReAct, in which the model repetitively generates the previous thoughts and actions, and we categorize it as part of "reasoning error'” as the model fails to reason about what the proper next action to take and jump out of the $\mathrm { l o o p ^ { 4 } }$ . + +C) For ReAct, successfully retrieving informative knowledge via search is critical. Noninformative search, which counts for $23 \%$ of the error cases, derails the model reasoning and gives it a hard time to recover and reformulate thoughts. This is perhaps an expected trade-off between factuality and flexibility, which motivates our proposed strategies of combining two methods. + +We provide examples for each success and failure modes in Appendix E.1. We also find some HotpotQA questions may contain outdated answer labels, see Figure 4 for example. + +ReAct $^ +$ coT-SC perform best for prompting LLMs Also shown in Table 1, the best prompting method on HotpotQA and Fever are ReAct $ \subset \mathrm { o T } - S \subset$ and $\mathtt { C o T - S C } \to \mathtt { R e A c t }$ respectively. Furthermore, Figure 2 shows how different methods perform with respect to the number of $\mathsf { C o T - S C }$ samples used. While two $\mathrm { R e a c t } + \mathrm { C o T } - \mathrm { S C }$ methods are advantageous at one task each, they both significantly and consistently outperform CoT–sC across different number of samples, reaching $\mathsf { C o T - S C }$ performance with 21 samples using merely 3-5 samples. These results indicate the value of properly combining model internal knowledge and external knowledge for reasoning tasks. + +ReAct performs best for fine-tuning Figure 3 shows the scaling effect of prompting/finetuning four methods (St andard, CoT, Act, ReAct) on HotpotQA. With PaLM-8/62B, prompting ReAct performs worst among four methods due to the diff culty to learn both reasoning and acting from in-context examples. However, when finetuned with just 3,000 examples, ReAct becomes the best method among the four, with PaLM-8B finetuned ReAct outperforming all PaLM-62B prompting methods, and PaLM-62B finetuned ReAct outperforming all 540B prompting methods. In contrast, finetuning St andard or CoT is significantly worse than finetuning ReAct or Act for both PaLM8/62B, as the former essentially teaches models to memorize (potentially halluincated) knowledge facts, and the latter teaches models how to (reason and) act to access information from Wikipedia, a more generalizable skill for knowledge reasoning. As all prompting methods are still significantly far from domain-specific state-of-the-art approaches (Table 1), we believe finetuning with more human-written data might be a better way to unleash the power of ReAct . + +![This image is a moderate complexity bar chart comparing the "HotpotQA EM" (Exact Match) scores for different methods across various model sizes. The chart is divided into two main sections: "learning = prompt" and "learning = finetune." Within each section, bars represent model sizes of 8b, 62b, and 540b. Four methods are compared: Standard, CoT, Act, and ReAct, indicated by different bar colors. The "finetune" section generally shows higher scores than the "prompt" section, with the ReAct method achieving the highest scores across most sizes.](images/4c3b0e92c6dd6f297dab55532d495e593945818c5f158f452b08e194416f1e1f.jpg) +Figure 3: Scaling results for prompting and finetuning on HotPotQA with ReAct (ours) and baselines. + +# 4 DECISION MAKING TAsKS + +We also test ReAct on two language-based interactive decision-making tasks, ALFWorld and WebShop, both of which feature complex environments that require agents to act over long horizons with sparse rewards, warranting the need for reasoning to act and explore effectively. + +ALFWorld ALFWorld (Shridhar et al., 2020b) (Figure 1(2) is a synthetic text-based game designed to align with the embodied ALFRED benchmark (Shridhar et al., 2020a). It includes 6 types of tasks in which an agent needs to achieve a high-level goal (e.g. examine paper under desklamp) by navigating and interacting with a simulated household via text actions (e.g. go to coffeetable 1, take paper 2, use desklamp 1). A task instance can have more than 50 locations and take an expert policy more than 50 steps to solve, thus challenging an agent to plan and track subgoals, as well as explore systematically (e.g. check all desks one by one for desklamp). In particular, one challenge built into ALFWorld is the need to determine likely locations for common household items (e.g. desklamps will likely be on desks, shelfs, or dressers), making this environment a good fit for LLMs to exploit their pretrained commonsense knowledge. To prompt ReAct, we randomly annotate three trajectories from the training set for each task type, where each trajectory includes sparse thoughts that (1) decompose the goal, (2) track subgoal completion, (3) determine the next subgoal, and (4) reason via commonsense where to find an object and what to do with it. We show prompts used for ALFWorld in Appendix C.4. Following Shridhar et al. (2020b), we evaluate on 134 unseen evaluation games in a task-specific setup. For robustness, we construct 6 prompts for each task type through each permutation of 2 annotated trajectories from the 3 we annotate. Act prompts are constructed using the same trajectories, but without thoughts — since task instances are randomly chosen from the training set, it favors neither ReAct nor Act and provides a fair and controlled comparison to test the importance of sparse thoughts. For baselines, we use BUTLER (Shridhar et al., 2020b), an imitation learning agent trained on $\mathrm { \bar { 1 0 ^ { 5 } } }$ expert trajectories for each task type5. + +WebShop Can ReAct also interact with noisy real-world language environments for practical applications? We investigate WebShop (Yao et al., 2022), a recently proposed online shopping website environment with 1.18M real-world products and 12k human instructions. Unlike ALFWorld, Webshop contains a high variety of structured and unstructured texts (e.g. product titles, descriptions, and options crawled from Amazon), and requires an agent to purchase a product based on a user instruction (e.g."I am looking for a nightstand with drawers. It should have a nickel finish, and priced lower than $\$ 140$ ) through web interactions (e.g. search "nightstand drawers", choose buttons such as "color: modern-nickel-white'"' or “back to search'"). This task is evaluated by average score (percentage of desired atributes covered by the chosen product averaged across all episodes) and success rate (percentage of episodes where the chosen product satisfies all requirements) on 500 test instructions. We formulate Act prompts with actions to search, choose product, choose options, and buy, with ReAct prompts additionally reasoning to determine what to explore, when to buy, and what products options are relevant to the instruction. See Table 6 for an example prompt, and Table 10 for model predictions in the Appendix. We compare to an imitation learning (IL) method trained with 1,012 human annotated trajectories, and a imitation $^ +$ reinforcement learning $( \mathrm { I L } + \mathrm { R L } )$ method additionally trained with 10,587 training instructions. + +
MethodScoreSR
Act ReAct62.3 66.630.1 40.0
IL59.929.1
IL+RL62.428.7
Human Expert82.159.6
+ +Table 3: AlfWorld task-specific success rates $( \% )$ . BUTLER and ${ \bf B U T L E R } _ { g }$ results are from Table 4 of Shridhar et al. (2020b). All methods use greedy decoding, except that BUTLER uses beam search. + +
MethodPickCleanHeatCoolLookPick2All
ACt (best of 6))88427467724145
ReAct (avg)65398376552457
ReAct (besto 6)92589686784171
ReAct −IM (avg)55596055232448
ReAct −IM (best of 6)62688757393353
BUTLER (cest f 8)33267076171222
BUTLER (best of 8))463974100222437
+ +Table 4: Score and success rate (SR) on Webshop. $\mathrm { I L / I L + R L }$ taken from Yao et al. (2022). + +Results ReAct outperforms Act on both ALFWorld (Table 3) and Webshop (Table 4). On ALFWorld, the best ReAct trial achieves an average success rate of $71 \%$ , signifi cantly outperforming the best Act $( 4 5 \% )$ and BUTLER $( 3 7 \% )$ trials. In fact, even the worse ReAct trial $(48 \% )$ beats the best trial of both methods. Moreover, the advantage of $_ { \mathrm { R e A c t } }$ over Act is consistent across six controlled trials, with relative performance gain ranging from $33 \%$ to $90 \%$ and averaging $62 \%$ . Qualitatively, we saw that, without any thoughts at all, Act fails to correctly decompose goals into smaller subgoals, or loses track of the current state of the environment. Example trajectories comparing ReAct and Act can be found in Appendix D.2.1 and Appendix D.2.2. + +On Webshop, one-shot Act prompting already performs on par with IL and $\mathrm { I L + R L }$ methods. With additional sparse reasoning, ReAct achieves significantly better performance, with an absolute $10 \%$ improvement over the previous best success rate. By checking examples, we find that ReAct is more likely to identify instruction-relevant products and options by reasoning to bridge the gap between noisy observations and actions (e.g. "For 'space-saving ottoman bench for living room', the item has options '39x18x18inch' and blue' and seems good to buy."). However, existing methods are still far from the performance of expert humans (Table 4), who perform significantly more product explorations and query re-formulations that are stil challenging for prompting-based methods. + +On the value of internal reasoning vs. external feedback To our knowledge, ReAct is the first demonstration of combined reasoning and action using an LLM applied to an interactive environment within a closed-loop system. Perhaps the closest prior work is Inner Monologue (IM), from Huang et al. (2022b), in which actions from an embodied agent are motivated by an eponymous "'inner monologue". However, IM's "inner monologue" is limited to observations of the environment state and what needs to be completed by the agent for the goal to be satisfied. In contrast, the reasoning traces in ReAct for decision making is flexible and sparse, allowing diverse reasoning types (see Section 2) to be induced for different tasks. + +To demonstrate the differences between ReAct and IM, and to highlight the importance of internal reasoning vs. simple reactions to external feedback, we ran an ablation experiment using a thought pattern composed of IM-like dense external feedback. As can be seen in Table 3, ReAct substantially outperforms IM-style prompting (ReAct –IM) (71 vs. 53 overall success rate), with consistent advantages on five out of six tasks. Qualitatively, we observed that ReAct – IM often made mistakes in identifying when subgoals were finished, or what the next subgoal should be, due to a lack of highlevel goal decomposition. Additionally, many ReAct – IM trajectories struggled to determine where an item would likely be within the ALFWorld environment, due to a lack of commonsense reasoning. Both shortcomings can be addressed in the ReAct paradigm. More details about ReAct -IM is in Appendix B.2. An example prompt for ReAct – IM can be found in Appendix C.4, and an example trajectory in Appendix D.2.3. + +# 5 RELATED WORK + +Language model for reasoning Perhaps the most well-known work of using LLMs for reasoning is Chain-of-Thought (CoT) (Wei et al., 2022), which reveals the ability of LLMs to formulate their own "thinking procedure" for problem solving. Several follow-up works have since been performed, including least-to-most prompting for solving complicated tasks (Zhou et al., 2022), zero-shotCoT (Kojima et al., 2022), and reasoning with self-consistency (Wang et al., 2022a). Recently, (Madaan & Yazdanbakhsh, 2022) systematically studied the formulation and structure of CoT, and observed that the presence of symbols, patterns and texts is crucial to the effectiveness of CoT. Other work has also been extended to more sophisticated reasoning architecture beyond simple prompting. For example Selection-Inference (Creswell et al., 2022) divides the reasoning process into two steps of “selection" and "inference". STaR (Zelikman et al., 2022) bootstraps the reasoning process by finetuning the model on correct rationales generated by the model itself. Faithful reasoning (Creswell & Shanahan, 2022) decomposes multi-step reasoning into three steps, each performed by a dedicated LM respectively. Similar approaches like Scratchpad (Nye et al., 2021), which finetunes a LM on intermediate computation steps, also demonstrate improvement on multi-step computation problems. In contrast to these methods, ReAct performs more than just isolated, fixed reasoning, and integrates model actions and their corresponding observations into a coherent stream of inputs for the model to reason more accurately and tackle tasks beyond reasoning (e.g. interactive decision making). + +Language model for decision making The strong capability of LLMs has enabled them to perform tasks beyond language generation, and it is becoming more popular to take advantage of LLMs as a policy model for decision making, especially in interactive environments. WebGPT (Nakano et al., 2021) uses an LM to interact with web browsers, navigate through web pages, and infer answers to complicated questions from ELI5 (Fan et al., 2019). In comparison to ReAct, WebGPT does not explicitly model the thinking and reasoning procedure, instead rely on expensive human feedback for reinforcement learning. In conversation modeling, chatbots like BlenderBot (Shuster et al., 2022b) and Sparrow (Glaese et al., 2022) and task-oriented dialogue systems like SimpleTOD (Hosseini-Asl et al., 2020) also train LMs to make decision about API calls. Unlike ReAct, they do not explicitly consider the reasoning procedure either, and also relies on expensive datasets and human feedback collections for policy learning. In contrast, ReAct learns a policy in a much cheaper way, since the decision making process only requires language description of the reasoning procedure.6 + +LLMS have also been increasingly employed in interactive and embodied environments for planning and decision making. Perhaps most relevant to ReAct in this respect are SayCan (Ahn et al., 2022) and Inner Monologue (Huang et al., 2022b), which use LLMs for robotic action planning and decision making. In SayCan, LLMs were prompted to directly predict possible actions a robot can take, which is then reranked by an affordance model grounded on the visual environments for final prediction. Inner Monologue made further improvements by adding the eponymous "'inner monologue'", which is implemented as injected feedback from the environment. To our knowledge, Inner Monologue is the first work that demonstrates such a closed-loop system, which ReAct builds on. However, we argue that Inner Monologue does not truly comprise of inner thoughts — this is elaborated in Section 4. We also note that leveraging language as semantically-rich inputs in the process of interactive decision making has been shown to be successful under other settings (Abramson et al., 2020; Karamcheti et al., 2021; Huang et al., 2022a; Li et al., 2022). It is becoming more evident that with the help of LLMs, language as a fundamental cognitive mechanism wil play a critical role in interaction and decision making. What is more, progress in LLMs has also inspired the development of versatile and generalist agents like Reed et al. (2022). + +# 6 CONCLUSION + +We have proposed ReAct – a simple yet effective method for synergizing reasoning and acting in large language models. Through a diverse set of experiments on multi-hop question-answering, fact checking, and interactive decision-making tasks, we show that ReAct leads to superior performance with interpretable decision traces. Despite the simplicity of our method, complex tasks with large action spaces require more demonstrations to learn well, which unfortunately can easily go beyond the input length limit of in-context learning. We explore the fine-tuning approach on HotpotQA with initial promising results, but learning from more high-quality human annotations wil be the desiderata to further improve the performance. Scaling up ReAct with multi-task training and combining it with complementary paradigms ike reinforcement learning could result in stronger agents that further unlock the potential of LLMs for more applications. + +# ACKNOWLEDGMENTS + +We thank the support and feedback of many people from Google Brain team and Princeton NLP Group. This work was supported in part by the National Science Foundation under Grant No. 2107048. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation. + +# REPRODUCIBILITY STATEMENT + +Our main experiments are done on PaLM (Chowdhery et al., 2022), which is not an openly accessible model yet. To increase reproducibility, we have included all used prompts in Appendix C, aditional experiments using GPT-3 (Brown et al., 2020) in Appendix A.1, and associated GPT-3 ReAct prompting code at https://anonymous .4open.science/r/ReAct-2268/. + +# ETHICS STATEMENT + +ReAct prompts large language models to generate more human interpretable, diagnosable, and controllable task-solving trajectories than previous methods. However, hooking up a large language model with an action space to interact with external environments (e.g. the web, physical environments) has potential dangers, e.g. looking up inappropriate or private information, or taking harmful actions in an environment. Our experiments minimize such risks by limiting the interactions to specific websites (Wikipedia or WebShop) that are free of private information, without any dangerous actions in the action space design (i.e. models cannot really buy products on WebShop the research benchmark, or edit Wikipedia). We believe researchers should be aware of such risks before designing more extensive experiments in the future. + +# REFERENCES + +Josh Abramson, Arun Ahuja, Iain Barr, Arthur Brussee, Federico Carnevale, Mary Cassin, Rachita Chhaparia, Stephen Clark, Bogdan Damoc, Andrew Dudzik, Petko Georgiev, Aurelia Guy, Tim Harley, Felix Hill, Alden Hung, Zachary Kenton, Jessica Landon, Timothy Lillicrap, Kory Mathewson, Soǎa Mokrá, Alistair Muldal, Adam Santoro, Nikolay Savinov, Vikrant Varma, Greg Wayne, Duncan Williams, Nathaniel Wong, Chen Yan, and Rui Zhu. Imitating interactive intelligence, 2020.URL https://arxiv.org/abs/2012.05672. +Michael Ahn, Anthony Brohan, Noah Brown, Yevgen Chebotar, Omar Cortes, Byron David, Chelsea Finn, Chuyuan Fu, Keerthana Gopalakrishnan, Karol Hausman, Alex Herzog, Daniel Ho, Jasmine Hsu, Julian Ibarz, Brian Ichter, Alex Irpan, Eric Jang, Rosario Jauregui Ruano, Kyle Jeffrey, Sally Jesmonth, Nikhil J Joshi, Ryan Julian, Dmitry Kalashnikov, Yuheng Kuang, Kuang-Huei Lee, Sergey Levine, Yao Lu, Linda Luu, Carolina Parada, Peter Pastor, Jornell Quiambao, Kanishka Rao, Jarek Rettinghouse, Diego Reyes, Pierre Sermanet, Nicolas Sievers, Clayton Tan, Alexander Toshev, Vincent Vanhoucke, Fei Xia, Ted Xiao, Peng Xu, Sichun Xu, Mengyuan Yan, and Andy Zeng. Do as i can, not as i say: Grounding language in robotic affordances, 2022. URL https://arxiv.org/abs/2204.01691. +Ben Alderson-Day and Charles Fernyhough. Inner speech: development, cognitive functions, phenomenology, and neurobiology. Psychological bulletin, 141(5):931, 2015. +Alan Baddeley. Working memory. Science, 255(5044):556–559, 1992. +Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020. + +Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022. + +Antonia Creswel and Murray Shanahan. Faithful reasoning using large language models, 2022. URL https://arxiv.org/abs/2208.14271. + +Antonia Creswell, Murray Shanahan, and Irina Higgins. Selection-inference: Exploiting large language models for interpretable logical reasoning, 2022. URL https : / /arxiv . org/abs / 2205.09712. + +Angela Fan, Yacine Jernite, Ethan Perez, David Grangier, Jason Weston, and Michael Auli. ELI5: Long form question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 3558–3567, Florence, Italy, July 2019. Association for Computational Linguistics. doi: 10.18653/v1/P19-1346. URL https : //aclanthology .org/ P19–1346. + +Charles Fernyhough. Vygotsky, luria, and the social brain. Self and social regulation: Social interaction and the development of social understanding and executive functions, pp. 56–79, 2010. + +Amelia Glaese, Nat McAleese, Maja Trebacz, John Aslanides, Vlad Firoiu, Timo Ewalds, Maribeth Rauh, Laura Weidinger, Martin Chadwick, Phoebe Thacker, Lucy Campbell-Gillingham, Jonathan Uesato, Po-Sen Huang, Ramona Comanescu, Fan Yang, Abigail See, Sumanth Dathathri, Rory Greig, Charlie Chen, Doug Fritz, Jaume Sanchez Elias, Richard Green, Soǎa Mokrá, Nicholas Fernando, Boxi Wu, Rachel Foley, Susannah Young, Iason Gabriel, William Isaac, John Mellor, Demis Hassabis, Koray Kavukcuoglu, Lisa Anne Hendricks, and Geoffrey Irving. Improving alignment of dialogue agents via targeted human judgements, 2022. URL https://storage.googleapis.com/deepmind-media/DeepMind. com/Authors-Notes/sparrow/sparrow-final.pdf. + +Ehsan Hosseini-Asl, Bryan McCann, Chien-Sheng Wu, Semih Yavuz, and Richard Socher. A simple language model for task-oriented dialogue. Advances in Neural Information Processing Systems, 33:20179–20191, 2020. + +Wenlong Huang, Pieter Abbeel, Deepak Pathak, and Igor Mordatch. Language models as zero-shot planners: Extracting actionable knowledge for embodied agents. arXiv preprint arXiv:2201.07207, 2022a. + +Wenlong Huang, Fei Xia, Ted Xiao, Harris Chan, Jacky Liang, Pete Florence, Andy Zeng, Jonathan Tompson, Igor Mordatch, Yevgen Chebotar, et al. Inner monologue: Embodied reasoning through planning with language models. arXiv preprint arXiv:2207.05608, 2022b. + +Siddharth Karamcheti, Megha Srivastava, Percy Liang, and Dorsa Sadigh. Lila: Language-informed latent actions. In CoRL, pp. 1379–1390, 2021. URL https : //proceedings .mlr .press/ vl64/karamcheti22a.html. + +Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. Large language models are zero-shot reasoners. arXiv preprint arXiv:2205.11916, 2022. + +Angeliki Lazaridou, Elena Gribovskaya, Wojciech Stokowiec, and Nikolai Grigorev. Internetaugmented language models through few-shot prompting for open-domain question answering. arXiv preprint arXiv:2203.05115, 2022. + +Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in Neural Information Processing Systems, 33: 9459–9474, 2020. + +Shuang Li, Xavier Puig, Chris Paxton, Yilun Du, Clinton Wang, Linxi Fan, Tao Chen, De-An Huang, Ekin Akyürek, Anima Anandkumar, Jacob Andreas, Igor Mordatch, Antonio Torralba, and Yuke Zhu. Pre-trained language models for interactive decision-making, 2022. URL ht tp s : //arxiv.org/abs/2202.01771. + +Aleksandr Romanovich Luria. Ls vygotsky and the problem of localization of functions. Neuropsychologia, 3(4):387–392, 1965. +Aman Madaan and Amir Yazdanbakhsh. Text and patterns: For effective chain of thought, it takes two to tango, 2022. URL https://arxiv.org/abs/2209.07686. +Vincent Micheli and Frangois Fleuret. Language models are few-shot butlers. arXiv preprint arXiv:2104.07972, 2021. +Reichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, Xu Jiang, Karl Cobbe, Tyna Eloundou, Gretchen Krueger, Kevin Button, Matthew Knight, Benjamin Chess, and John Schulman. Webgpt: Browser-assisted question-answering with human feedback, 2021. URL https : //arxiv. org/abs/2112.09332. +Maxwell Nye, Anders Johan Andreassen, Guy Gur-Ari, Henryk Michalewski, Jacob Austin, David Bieber, David Dohan, Aitor Lewkowycz, Maarten Bosma, David Luan, Charles Sutton, and Augustus Odena. Show your work: Scratchpads for intermediate computation with language models, 2021. URL https: //arxiv.org/abs/2112.00114. +Scott Reed, Konrad Zolna, Emilio Parisotto, Sergio Gomez Colmenarejo, Alexander Novikov, Gabriel Barth-Maron, Mai Gimenez, Yury Sulsky, Jackie Kay, Jost Tobias Springenberg, Tom Eccles, Jake Bruce, Ali Razavi, Ashley Edwards, Nicolas Heess, Yutian Chen, Raia Hadsell, Oriol Vinyals, Mahyar Bordbar, and Nando de Freitas. A generalist agent, 2022. URL ht tps : //arxiv.org/abs/2205.06175. +Mohit Shridhar, Jesse Thomason, Daniel Gordon, Yonatan Bisk, Winson Han, Roozbeh Mottaghi, Luke Zetlemoyer and Dieter Fox. Alfred: A benchmark for interpreting grounded instructions for everyday tasks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10740–10749, 2020a. +Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Coté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. Alfworld: Aligning text and embodied environments for interactive learning. arXiv preprint arXiv:2010.03768, 2020b. +Kurt Shuster, Mojtaba Komeili, Leonard Adolphs, Stephen Roller, Arthur Szlam, and Jason Weston. Language models that seek for knowledge: Modular search & generation for dialogue and prompt completion. arXiv preprint arXiv:2203.13224, 2022a. +Kurt Shuster ingXu Mojtaba Komei Da Ju Eric Michael mith, Stephen Roller, Megan U Moya Chen, Kushal Arora, Joshua Lane, Morteza Behrooz, William Ngan, Spencer Poff, Naman Goyal, Arthur Szlam, Y-Lan Boureau, Melanie Kambadur, and Jason Weston. Blenderbot 3: a deployed conversational agent that continually learns to responsibly engage, 2022b. URL https://arxiv.org/abs/2208.03188. +James Thorne, Andreas Vlachos, Christos Christodoulopoulos, and Arpit Mittal. Fever: a large-scale dataset for fact extraction and verifi cation. arXiv preprint arXiv: 1803.05355, 2018. +Lev S Vygotsky. Thinking and speech. The collected works of LS Vygotsky, 1:39–285, 1987. +Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models, 2022a.URL https://arxiv.org/abs/2203.11171. +Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, and Denny Zhou. Rationale-augmented ensembles in language models. arXiv preprint arXiv:2207.00747, 2022b. +Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models. arXiv preprint arXiv:2201.11903, 2022. +Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William W Cohen, Ruslan Salakhutdinov, and Christopher D Manning. Hotpotqa: A dataset for diverse, explainable multi-hop question answering. arXiv preprint arXiv:1809.09600, 2018. + +Shunyu Yao, Rohan Rao, Matthew Hausknecht, and Karthik Narasimhan. Keep CALM and explore: Language models for action generation in text-based games. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 8736–8754, Online, November 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.emnlp-main.704. URL https://aclanthology.org/2020.emnlp-main.704. Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. Webshop: Towards scalable real-world web interaction with grounded language agents. arXiv preprint arXiv:2207.01206, 2022. Eric Zelikman, Yuhuai Wu, Jesse Mu, and Noah D. Goodman. Star: Bootstrapping reasoning with reasoning, 2022. URL https://arxiv.org/abs/2203.14465. Denny Zhou, Nathanael Schärli, Le Hou, Jason Wei, Nathan Scales, Xuezhi Wang, Dale Schuurmans, Olivier Bousquet, Quoc Le, and Ed Chi. Least-to-most prompting enables complex reasoning in large language models, 2022. URL https : //arxiv.org/abs/2205.10625. Yunchang Zhu, Liang Pang, Yanyan Lan, Huawei Shen, and Xueqi Cheng. Adaptive information seeking for open-domain question answering. arXiv preprint arXiv:2109.06747, 2021. + +# A ADDITIONAL RESULTS + +A.1 GPT-3 ExPERIMENTS + +
PaLM-540BGPT-3
HotpotQA (exact match)29.430.8
ALFWorld (success rate %)70.978.4
+ +Table 5: ReAct prompting results using PaLM-540B vs. GPT-3 (text-davinci-002, greedy decoding). On HotpotQA, we randomly sample a subset of 500 validation questions. On ALFWorld, we use all 134 unseen validation task instances, and use the best prompt set according to PaLM-540B. + +We run additional GPT-3 (Brown et al., 2020) experiments to confirm ReAct prompting performance is general across different large language models. As shown in Table 5, GPT-3 (text-davinci-002, greedy decoding) consistently outperforms PaLM-540B on HotpotQA and ALFWorld, possibly because it is finetuned with human instruction following. This indicates ReAct prompting is effective across different large language models on diferent tasks. The code for these experiments are at https://react-lm.github.io/. + +# .2 REAcT OBTAINS UP-TO-DATE KNOWLEDGE ON HoTPoTQA + +(1) Hotspot QA (1d) ReAct (Reason + Act) +Question: How many rooms are in the hotel that is home to Thought 1: I need to search cirque du soleil show Mystere, +the Cirque du Soleil show Mystere? find the hotel it is in, then find the number of rooms in +HotpotQA label: 2, 664 Outdated tht h slarch[cirque du soleil show Mystere obs 1: Could not find Cirque du soleil show Mystere. (1a) standard (1c) Act-only similar:['cirque du soleil' +Answer: 3,000 Act 1: Search[Cirque du Soleil ] Thought 2: To find the hotel, I can search Mystere (Cirque obs 1: Cirque du Soleil is a du soleil). Canadian entertainment company. Act 2: search[Mystere (Cirque du Soleil) ] (1b) CoT (Reason Only) Act 2: Lookup[Mystere] obs 2: Mystère (my-steer) is Held in a custom theatre at +Thought: Let's think step Obs 2: No more results the Treasure Island Hotel and Casino $\cdots$ +y sep.he hotel tht is shostereirue d +Soleil show Mystere is obs 3: Could not find.. Treasure Island Hotel and Casino next and find the number olei SearchMystereCirque du +the answer is 2,885. obs 4: Mystère (my-steer) is and Treasure Island otel and Casin with2884 rms +Answer: 2,885 At 5: Lookup eare Island Thought 4: Treasure Island Hotel and Casino has 2, 884 rooms Hotel and Casino] and 220 suites. So the answer is 3,104. X . (end without answer) Act 4: Finish[3, 104] Up-to-date + +Figure 4: Another example HotpotQA question, where the original label is outdated. Only ReAct is able to obtain the up-to-date answer thanks to real-world web interaction plus reasoning. + +During trajectory inspection, we also find that sometimes ReAct does not agree with dataset labels as the labels themselves could be outdated. For example, as shown in Figure 4, the question asks about the size of a hotel, which increased from the HotpotQA construction time. While St andard and CoT give wrong answers due to hallucination, Act fails despite the access of real-world web interaction, due to a lack of reasoning to guide how to interact with the Internet for QA. Only ReAct is able to retrieve up-to-date information from the Internet and provide a reasonable answer. Therefore, better incorporation of reasoning abilities might benefit recent Internet-augmented language models (Nakano et al., 2021; Lazaridou et al., 2022; Shuster et al., 2022a) for up-to-date task solving. + +# A.3 HUMAN-IN-THE-LOOP BEHAVIOR CORRECTION ON ALFWoRLD + +We also explore human-in-the-loop interaction with ReAct, to allow a human to inspect and edit ReAct's reasoning traces. Figure 5 shows that by simply removing a hallucinating sentence in Act 17 and adding some hints in Act 23, ReAct can be made to change its behavior drastically to align with these human thought edits and succeed in the task. From a human perspective, solving such a task becomes significantly easier, from typing tens of actions to only editing a couple of thoughts, which enables new forms of human-machine collaboration. We note that such a policy edit on-the-go is difficult for Act and previous RL methods, as a human cannot change the model parameters, and changing a few actions might not edit the rest of the model behavior. This paradigm is also more than human dialogue to update the goal or subgoal as in Huang et al. (2022b) — while editing $_ { \mathrm { R e A c t } }$ thoughts can do these, it can also modify the model's internal belief, reasoning styles, or anything the flexible thought space supports, for better task solving. We believe this is an exciting direction for human alignment and leave more systematic study as future work. + +![This image is of moderate complexity, presenting a comparison of two AI agent trajectories in the AlfWorld environment. Panel (a) shows a "ReAct" trajectory that fails, indicated by a red 'X', due to a hallucinated thought in Act 17. Panel (b) illustrates a "ReAct (Human Thought edit)" trajectory where human intervention corrects the thought process in Acts 17 and 23. This edited trajectory successfully leads to the desired outcome, as shown by the green checkmark, by producing more accurate reasoning and actions. The comparison highlights the effectiveness of human-in-the-loop correction for AI behavior.](images/cd2e94d69f99658328815ba6ccee179d6aecd126347c9af7d744f9d58a151086.jpg) +Figure 5: A human-in-the-loop behavior correction example with ReAct in AlfWorld. (a) ReAct trajectory fails due to a hallucinating thought (Act 17). (b) By a human simply editing two thoughts (Act 17, 23), the ReAct trajectory produces desirable reasoning traces and actions and succeeds. + +# B EXPERIMENT DETAILS + +# B.1 HoTPOTQA FINETUNING DETAILS + +For all finetuning we use a batch size of 64. On PaLM-8B, we finetune ReAct and Act methods for 4, 000 steps and St andard and CoT methods for 2, 000 steps. On PaLM-62B, we finetune ReAct and Act methods for 4, 000 steps and st andard and CoT methods for 1, 00 steps. We find ReAct and Act methods generally benefit from more training steps (and more training data), while St an dard and CoT methods degrade soon after finetuning. + +# B.2 ALFWORLD IM-STYLE DETAILS + +For the IM-style ablation, the same expert trajectories used in ReAct are reannotated with dense external feedback thoughts within these trajectories, that limit ReAct – IM to only think about (1) decomposing the current goal and (2) the current subgoal that needs to be completed. In particular, ReAct–IM lacks thoughts that (1) determine when a subgoal is completed (2) determine what the next subgoal should be (3) inducing the LLM to refer to its internal pretraining knowledge to identify where items can be within the environment. + +# C PROMPTS + +# C.1 HOTPOTQA + +
Hotpot QA Prompts
Original QuestionWhat is the elevation range for the area that the eastern sector of the Colorado orogeny extends into?
Answer1,800 t0 7,000 ft
QuestionMusician and satirist Allie Goertz wrote a song about the "The Simpsons"
Answercharacter Milhouse, who Matt Groening named after who? Richard Nixon
QuestionWhich documentary is about Finnish rock groups, Adam Clayton Powell or The
AnswerSaimaa Gesture? The Saimaa Gesture
Question Answerwhat profession does Nicholas Ray and Elia Kazan have in common? director, screenwriter, actor
Question AnswerWhich magazine was started first Arthur's Magazine or First for Women? Arthur's Magazine
QuestionWere Pavel Urysohn and Leonid Levin known for the same type of work?
AnswerYes
Act Questionwhat is the elevation range for the area that the eastern sector of the
Action 1Colorado orogeny extends into? Search[colorado orogeny]
Observation 1The Colorado orogeny was an episode of mountain building (an orogeny) in
colorado and surrounding areas. Lookup[eastern sector]
Action 2 Observation 2(Result 1 / 1) The eastern sector extends into the High Plains and is called
the Central Plains orogeny. Search [High Plains]
Action 3 Observation 3High Plains refers to one of two distinct land regions:
Action 4Search [High Plains (United States)] The High Plains are a subregion of the Great Plains. From east to west, the
Observation 4High Plains rise in elevation from around 1,800 to 7,000 ft (550 to 2,130
m).[3] Finish[1,800 to 7,000 ft]
Action 5Musician and satirist Allie Goertz wrote a song about the "The Simpsons"
Questioncharacter Milhouse, who Matt Groening named after who?
Action1 Observation1Search [Milhouse] Milhouse Mussolini Van Houten is a recurring character in the Fox animated
television series The Simpsons voiced by Pamela Hayden and created by Matt Groening.
Action 2Lookup[named after] (Result 1 / 1) Milhouse was named after U.S. president Richard Nixon, whose
Observation 2middle name was Milhous.
Action 3Finish[Richard Nixon]
which documentary is about Finnish rock groups, Adam Clayton Powell or The
QuestionSaimaa Gesture?
Action 1Search[Adam Clayton Powell] Could not find [Adam Clayton Powell]. Similar: ['Adam Clayton Powell
Observation 1III','seventh Avenue (Manhattan)', 'Adam Clayton Powell Jr. state Office
Building','Isabel Washington Powell', 'Adam Powell', 'Adam Clayton Powell
(film)', 'Giancarlo Esposito'].
Search[Adam Clayton Powell (film)]
Action 2Adam Clayton Powell is a 1989 American documentary film directed by
Observation 2
Richard Kilberg. The film is about the rise and fall of influential
African-American politician Adam Clayton Powell Jr.[3] [4] It was later aired
as part of the PBs series The American Experience.
Action 3Finish [The Saimaa Gesture]
QuestionWhat profession does Nicholas Ray and Elia Kazan have in common?
search[Nicholas Ray]
Action1
Observation 1
Nicholas Ray (born Raymond Nicholas Kienzle Jr., August 7, 1911 – June 16,
1979) was an American film director, screenwriter, and actor best known for
Action 2
the 1955 film Rebel without a Cause.
Observation 2Search [Elia Kazan]
+ +Hotpot QA Prompts – Continued from previous page + +
ervation1
Action 2Search[First for Women] First for Women is a woman's magazine published by Bauer Media Group in the
Observation 2UsA.[1] The magazine was started in 1989.
Action 3Finish [Arthur's Magazine]
Question Action 1Were Pavel Urysohn and Leonid Levin known for the same type of work? Search[Pavel Urysohn]
Observation 1Pavel Samuilovich Urysohn (February 3, 1898 – August 17, 1924) was a Soviet
mathematician who is best known for his contributions in dimension theory.
Action 2Search [Leonid Levin] Leonid Anatolievich Levin is a Soviet-American mathematician and computer
Observation 2scientist.
Action 3Finish[yes]
COTwhat is the elevation range for the area that the eastern sector of the
QuestionColorado orogeny extends into? Let's think step by step. The eastern sector of Colorado orogeny extends
Thoughtinto the High Plains. High Plains rise in elevation from around 1,800 to 7,000 ft, so the answer is 1,800 to 7,000 ft.
Answer1,800 to 7,000 ft
QuestionMusician and satirist Allie Goertz wrote a song about the "The simpsons" character Milhouse, who Matt Groening named after who?
ThoughtLet's think step by step. Milhouse was named after U.S. president Richard Nixon, so the answer is Richard Nixon.
AnswerRichard Nixon
Questionwhich documentary is about Finnish rock groups, Adam Clayton Powell or The Saimaa Gesture?
ThoughtLet's think step by step. Adam Clayton Powell (film) is a documentary about an African-American politician, not Finnish rock groups. So the documentary
Answerabout Finnish rock groups must instead be The Saimaa Gesture. The Saimaa Gesture
QuestionWhat profession does Nicholas Ray and Elia Kazan have in common?
ThoughtLet's think step by step. Professions of Nicholas Ray are director, screenwriter, and actor. Professions of Elia Kazan are director, producer, screenwriter, and actor. So profession Nicholas Ray and Elia Kazan have in
Answercommon is director, screenwriter, and actor. director, screenwriter, actor
Questionwhich magazine was started first Arthur's Magazine or First for Women?
ThoughtLet's think step by step. Arthur's Magazine was started in 1844. First for Women was started in 1989. 1844 (Arthur's Magazine) < 1989 (First for
Women), so Arthur's Magazine was started first. Arthur's Magazine
Answerwere Pavel Urysohn and Leonid Levin known for the same type of work?
Question ThoughtLet's think step by step. Pavel Urysohn is a mathematician. Leonid Levin is a mathematician and computer scientist. So Pavel Urysohn and Leonid
Levin have the same type of work.
AnswerYes
ReAct Questionwhat is the elevation range for the area that the eastern sector of the
Thought1Colorado orogeny extends into? I need to search Colorado orogeny, find the area that the eastern sector
of the colorado orogeny extends into, then find the elevation range of the area.
Action 1Search[colorado orogeny]
Observation 1The Colorado orogeny was an episode of mountain building (an orogeny) in colorado and surrounding areas.
Thought2It does not mention the eastern sector. So I need to look up eastern
Action2sector. Lookup[eastern sector]
Observation 2(Result 1 / 1) The eastern sector extends into the High Plains and is called
the Central Plains orogeny.
Thought 3The eastern sector of Colorado orogeny extends into the High Plains. so I
need to search High Plains and find its elevation range.
Action 3Search [High Plains]
Observation 3High Plains refers to one of two distinct land regions
Though4
I need to instead search High Plains (United States).
Action 4Search[High Plains (United States)]
+ +Question + +
Thought 1The question simplifies to "The Simpsons" character Milhouse is named after who. I only need to search Milhouse and find who it is named after.
Action 1Search [Milhouse]
Observation 1Milhouse Mussolini Van Houten is a recurring character in the Fox animated television series The Simpsons voiced by Pamela Hayden and created by Matt
Groening. The paragraph does not tell who Milhouse is named after, maybe I can look up
Thought2"named after".
Action 2 Observation 2Lookup [named after] (Result 1 / 1) Milhouse was named after U.S. president Richard Nixon, whose
Thought 3middle name was Milhous. Milhouse was named after U.S. president Richard Nixon, so the answer is
Richard Nixon.
Action 3Finish [Richard Nixon]
QuestionWhich documentary is about Finnish rock groups, Adam Clayton Powell or The Saimaa Gesture?
Thought 1I need to search Adam Clayton Powell and The Saimaa Gesture, and find which documentary is about Finnish rock groups.
Action 1 Observation1Search[Adam Clayton Powell] Could not find [Adam Clayton Powell]. Similar: ['Adam Clayton Powell
III','Seventh Avenue (Manhattan)','Adam Clayton Powell Jr. State Office Building','Isabel Washington Powell','Adam Powell','Adam Clayton Powell
Thought 2(film)','Giancarlo Esposito']. To find the documentary, I can search Adam Clayton Powell (film).
Action 2 Observation 2Search[Adam Clayton Powell (film) ] Adam ciayton Powell is a 1989 American documentary film directed by
Richard Kilberg. The film is about the rise and fall of influential African-American politician Adam Clayton Powell Jr.[3] [4] It was later aired
Thought 3as part of the PBs series The American Experience. Adam Clayton Powell (film) is a documentary about an African-American
politician, not Finnish rock groups. so the documentary about Finnish rock groups must instead be The Saimaa Gesture.
Action 3Finish[The Saimaa Gesture]
QuestionWhat profession does Nicholas Ray and Elia Kazan have in common?
Thought1I need to search Nicholas Ray and Elia Kazan, find their professions, then find the profession they have in common.
Action 1Search [Nicholas Ray]
Observation 1Nicholas Ray (born Raymond Nicholas Kienzle Jr., August 7, 1911 – June 16, 1979) was an American film director, screenwriter, and actor best known for
the 1955 film Rebel Without a Cause.
Thought 2Professions of Nicholas Ray are director, screenwriter, and actor. I need to search Elia Kazan next and find his professions.
Action 2Search[Elia Kazan]
Observation 2Elia Kazan was an American film and theatre director, producer, screenwriter
and actor. Professions of Elia Kazan are director, producer, screenwriter, and actor.
Thought 3So profession Nicholas Ray and Elia Kazan have in common is director,
screenwriter, and actor.
Action 3Finish[director, screenwriter, actor]
which magazine was started first Arthur's Magazine or First for Women?
Question Thought 1I need to search Arthur's Magazine and First for Women, and find which was
started first.
Action 1Search [Arthur's Magazine]
Observation 1Arthur's Magazine (1844-1846) was an American literary periodical published
in Philadelphia in the 19th century.
Thought 2Arthur's Magazine was started in 1844. I need to search First for Women
next.
Action 2Search[First for Women]
Observation 2First for Women is a woman's magazine published by Bauer Media Group in the
UsA.[1] The magazine was started in 1989.
Thought 3First for Women was started in 1989. 1844 (Arthur's Magazine) < 1989 (First
for Women), so Arthur's Magazine was started first.
Action 3Finish [Arthur's Magazine]
were Pavel Urysohn and Leonid Levin known for the same type of work?
Question
Thought 1
I need to search Pavel Urysohn and Leonid Levin, find their types of work,
then find if they are the same.
Action 1
Search[Pavel Urysohn]
+ +Hotpot QA Prompts – Continued from previous page + +
Observation1Pavel Samuilovich Urysohn (February 3, 1898 – August 17, 1924) was a Sovietmathematician who is best known for his contributions in dimension theory.
Thought 2Pavel Urysohn is a mathematician. I need to search Leonid Levin next and
Action 2find its type of work. Search[Leonid Levin]
Observation 2Leonid Anatolievich Levin is a soviet-American mathematician and computer
Thought 3scientist.
Leonid Levin is a mathematician and computer scientist. So Pavel Urysohn
Action 3Finish[yes]and Leonid Levin have the same type of work.
+ +C.2 FEVER + +
FEVER Prompts
OriginalDetermine if there is Observation that suppoRTs or REFuTEs a Claim, or if there is NOT ENOUGH INFORMATION.
claimNikolaj Coster-waldau worked with the Fox Broadcasting Company.
AnswerSUPPORTS
claim AnswerStranger Things is set in Bloomington, Indiana. REFUTES
claimBeautiful reached number two on the Billboard Hot 100 in 2003. NOT ENOUGH INFO
Answer ActDetermine if there is Observation that suppoRTs or REFuTEs a Claim, or if there is NOT ENOUGH INFORMATION.
claim Action2 Observation 1Nikolaj Coster-waldau worked with the Fox Broadcasting Company. Search [Nikolaj Coster-Waldau] Nikolaj william Coster-Waldau (born 27 July 1970) is a Danish actor and producer. He graduated from the Danish National school of Performing Arts in Copenhagen in 1993, [1] and had his breakthrough role in Denmark with the film Nightwatch (1994). He played Jaime Lannister in the HBo fantasy drama series Game of Thrones, for which he received two Primetime Emmy Award nominations for Outstanding Supporting Actor in a Drama Series.. Coster-waldau has appeared in numerous films in his native Denmark and
(2013). In the U.S, his debut film role was in the war film Black Hawk Down (2001), playing Medal of Honor recipient Gary Gordon.[2] He then played a detective in the short-lived Fox television series New Amsterdam (2008), and appeared in the 20o9 Fox television film Virtuality, originally intended as apilot.
Action 2Finish[SUPPORTS] Stranger Things is set in Bloomington, Indiana.
Claim Action1 Observation1Search[stranger Things] Stranger Things is an American science fiction horror drama television series created by the Duffer Brothers. set in the 1980s, primarily in
the fictional town of Hawkins, Indiana, the series centers on a number of mysteries and supernatural events occurring around the town and their impact on an ensemble of child and adult characters.
Action 2Finish [REFUTES]
claim Action1Beautiful reached number two on the Billboard Hot 100 in 2003. Search[Beautiful]
Observation 1Could not find [Beautiful]. Similar: ['Beautiful','Beautiful, Beautiful', 'A Beautiful Mind (film)', 'Beautiful (Christina Aguilera song)', 'Life Is
Beautiful']. Search[Beautiful (Christina Aguilera song)
Action 2 Observation 2"Beautiful" is a song recorded by American singer Christina Aguilera for her fourth studio album, stripped (20o2).
Action 3Lookup[Billboard Hot 100] (Result 1 / 3) The song peaked at number two on the Billboard Hot 100 in the
Observation 3United states, where it was certified Gold for 500,o00 units shipped.
Action 4Finish [NOT ENOUGH INFO]
Determine if there is Observation that suppoRTs or REFuTEs a Claim, or if
COTthere is NOT ENOUGH INFORMATION.
Nikolaj Coster-waldau worked with the Fox Broadcasting Company.
claimNikolaj william Coster-waldau appeared in the 2009 Fox television film
Thought
Virtuality, so he has worked with the Fox Broadcasting Company.
SUPPORTS
Answer
claim
Stranger Things is set in Bloomington, Indiana.
Stranger Things is in the fictional town of Hawkins, Indiana, not in
Thought
Bloomington, Indiana.
Answer
REFUTES
Continued on next page
+ +Fever Prompts – Continued from previous page + +
claim Thought AnswerBeautiful reached number two on the Billboard Hot 100 in 2003. The song peaked at number two on the Billboard Hot 100 in the United states, but not sure if it was in 2003. NOT ENOUGH INFO
ReActDetermine if there is Observation that suPPoRTS or REFUTES a Claim, or if there is NOT ENOUGH INFORMATION.
claimNikolaj Coster-Waldau worked with the Fox Broadcasting Company. I need to search Nikolaj Coster-Waldau and find if he has worked with the
Thought1 Action 1Fox Broadcasting Company. Search[Nikolaj Coster-Waldau] Nikolaj William Coster-Waldau (born 27 July 1970) is a Danish actor and
Observation 1producer. He graduated from the Danish National School of Performing Arts in Copenhagen in 1993, [1] and had his breakthrough role in Denmark with the film Nightwatch (1994). He played Jaime Lannister in the HBo fantasy drama series Game of Thrones, for which he received two Primetime Emmy Award nominations for Outstanding Supporting Actor in a Drama Series.. Coster-Waldau has appeared in numerous films in his native Denmark and Scandinavia, including Headhunters (2011) and A Thousand Times Good Night (2013). In the U.S, his debut film role was in the war film Black Hawk Down
(2001), playing Medal of Honor recipient Gary Gordon.[2] He then played a detective in the short-lived Fox television series New Amsterdam (2008), and appeared in the 20o9 Fox television film virtuality, originally intended as a pilot.
Thought 2Because he "appeared in the 2oo9 Fox television film virtuality", he should have worked with the Fox Broadcasting Company. Finish[SUPPORTS]
Claim Thought1Stranger Things is set in Bloomington, Indiana. I should search for stranger Things, and see if it is set in Bloomington, Indiana.
Action 1Search [stranger Things] Stranger Things is an American science fiction horror drama television
Observation 1series created by the Duffer Brothers. set in the 198os, primarily in the fictional town of Hawkins, Indiana, the series centers on a number of mysteries and supernatural events occurring around the town and their impact
Thought 2on an ensemble of child and adult characters. The observation says that it is set in a "fictional town of Hawkins,
Action 2Indiana", so it is not set in Bloomington. Finish[REFUTES]
Beautiful reached number two on the Billboard Hot 100 in 2003.
Claim Thought 1I need to search the song Beautiful and find if it reached number two on the Billboard Hot 100 in 2003.
Action 1Search[Beautiful]
Observation 1Could not find [Beautiful]. Similar: ['Beautiful','Beautiful, Beautiful', 'A Beautiful Mind (film)','Beautiful (Christina Aguilera song)','Life Is
Beautiful']. From suggestions, I should search "Beautiful (Christina Aguilera song)" to
Thought 2find the song.
Action 2Search [Beautiful (Christina Aguilera song)] "Beautiful" is a song recorded by American singer Christina Aguilera for her
Observation 2fourth studio album, Stripped (2002).
Thought 3It does not mention Billboard, so I need to look up "Billboard Hot 10o" to find if it reached number two on it in 2003.
Action 3Lookup[Billboard Hot 100]
Observation 3(Result 1 / 3) The song peaked at number two on the Billboard Hot 100 in the
United states, where it was certified Gold for 5o0,ooo units shipped.
if it was in 2003. I am not sure if this claim is true or not.
It only says the song peaked at number two on the Billboard Hot ioo, but not
Thought 4
Action 4
Finish [NOT ENOUGH INFO]
+ +# C.3 WEBSHOP + +[B078GWRC1J] +Bright Citrus Deodorant by Earth Mama | Natural and Safe for +Sensitive Skin, Pregnancy and Breastfeeding, Contains Organic +Calendula 3-Ounce +\$10.99 +[B078GTKVXY] +Ginger Fresh Deodorant by Earth Mama | Natural and Safe for +Sensitive Skin, Pregnancy and Breastfeeding, Contains Organic +Calendula 3-Ounce +\$10.99 +[B08KBVJ4XN] +Barrel and Oak - Aluminum-Free Deodorant, Deodorant for Men +, Essential Oil-Based Scent, 24-Hour Odor Protection, Cedar +& Patchouli Blend, Gentle on Sensitive Skin (Mountain Sage, +2.7 oz, 2-Pack) +\$15.95 Action: click [B078GWRC1J] +Observation: +[Back to Search] +[Prev] +scent [assorted scents][bright citrus][calming lavender][ginger [fresh] simply non-scents] +size [travel set (4-pack)][3 ounce (pack of 1)][3-ounce (2 -pack)] +Bright Citrus Deodorant by Earth Mama I Natural and Safe for Sensitive Skin, Pregnancy and Breastfeeding, Contains Organic Calendula 3-Ounce +Price: $\$ 10.99$ +Rating: N.A. +[Description] +[Features] +[Reviews] +[Buy Now] + +Action: click[bright citrus] Observation: You have clicked bright citrus. + +Action: click[3 ounce (pack of 1)] Observation: You have clicked 3 ounce (pack of 1). + +Action: click[Buy Now] + +Action: think[B078GWRC1J and B078GTKVXY are bright citrus deodorant less then 50 dollars. I can check B078GWRC1J first. Observation: OK. + +Action: click [B078GWRC1J] +Observation: +[Back to Search] +[Prev] +scent [assorted scents][bright citrus][calming lavender][ginger [fresh] simply non-scents] +size [travel set (4-pack)][3 ounce (pack of 1)][3-ounce (2 -pack)] +Bright Citrus Deodorant by Earth Mama | Natural and Safe for Sensitive Skin, Pregnancy and Breastfeeding, Contains Organic Calendula 3-Ounce +Price: \$10.99 +Rating: N.A. +[Description] +[Features] +[Reviews] +[Buy Now] +Action: think[For 3 ounce bottle of bright citrus deodorant for sensitive skin, the item has options 'bright citrus' +and '3 ounce (pack of 1)' and seems good to buy.] +Observation: OK. +Action: click[bright citrus] +Observation: You have clicked bright citrus. +Action: click[3 ounce (pack of 1)] +Observation: You have clicked 3 ounce (pack of 1). +Action: click[Buy Now] + +# C.4 ALFWORLD + +You are in the middle of a room. Looking quickly around you, you see a cabinet 13, a cabinet 12, a cabinet 11, a cabinet 10, a cabinet 9, a cabinet 8, a cabinet 7, a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 1, a diningtable 1, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1. Your task is to: put a clean lettuce in diningtable. +$>$ think: To solve the task, I need to find and take a lettuce, then clean it with sinkbasin, then put it in diningtable. +OK. +> think: First I need to find a lettuce. A lettuce is more likely to appear in fridge (1), diningtable (1), sinkbasin (1), stoveburner (1-3), cabinet (1-13). I can check one by one, starting with fridge 1. +OK. +> go to fridge 1 +The fridge 1 is closed. +> open fridge 1 +You open the fridge 1. The fridge 1 is open. In it, you see a cup 3, a egg 2, a potato 3, and a potato 2. +> go to diningtable 1 +On the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a fork 2, a knife 2, a knife 1, a ladle 1, a lettuce 1, a mug 2, a mug 1, a pan 2, a peppershaker 1, a spatula 3, a tomato 2, and a tomato 1. +> think: Now I find a lettuce (1). Next, I need to take it. +OK. +$>$ take lettuce 1 from diningtable 1 +You pick up the lettuce 1 from the diningtable 1. +$>$ think: Now I take a lettuce (1). Next, I need to go to sinkbasin (1) and clean it. +OK. +> go to sinkbasin 1 +On the sinkbasin 1, you see a apple 2, a ladle 2, a spoon 1, and a tomato 3. > clean lettuce 1 with sinkbasin 1 +You clean the lettuce 1 using the sinkbasin 1. +$>$ think: Now I clean a lettuce (1). Next, I need to put it in/on diningtable 1. OK. +$>$ go to diningtable 1 +On the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a for 2, a knife 2, a knife 1, a ladle 1, a mug 2, a mug 1, a pan 2, a peppershaker 1, a spatula 3, a tomato 2, and a tomato 1. +> put lettuce 1 in/on diningtable 1 +You put the lettuce 1 in/on the diningtable 1. + +Table 9: An ReAct– IM prompt on the ALFWorld clean task. + +
You are in the middle of a room. Looking quickly around you, you see a cabinet 13, a cabinet 12, a cabinet 11, a cabinet 10, a cabinet 9, a cabinet 8, a cabinet
7, a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 1, a diningtable 1, a drawer 1, a fridge 1, a
garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a
stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: put a clean lettuce in diningtable.
> think: To solve the task, I need to find and take a lettuce, then clean it with
OK.sinkbasin, then put it in diningtable.
> think: First I need to find a lettuce.
OK.
> go to fridge 1
The fridge 1 is closed.
> think: First I need to find a lettuce.
OK. > open fridge 1
You open the fridge 1. The fridge 1 is open. In it, you see a cup 3, a egg 2, a
potato 3, and a potato 2.
OK.> think: First I need to find a lettuce.
>go to diningtable 1
on the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a
fork 2, a knife 2, a knife 1, a ladle 1, a lettuce 1, a mug 2, a mug 1, a pan 2, a
peppershaker 1, a spatula 3, a tomato 2, and a tomato 1.
OK.> think: First I need to find a lettuce.
> take lettuce 1 from diningtable 1
You pick up the lettuce 1 from the diningtable 1.
> think: I need to clean this lettuce (1) using sinkbasin 1.
OK.
>go to sinkbasin 1
On the sinkbasin 1, you see a apple 2, a ladle 2, a spoon 1, and a tomato 3.
OK.> think: I need to clean this lettuce (1) using sinkbasin 1.
> clean lettuce 1 with sinkbasin 1
> think: I need to put this cleaned lettuce (1) in/on diningtable 1.You clean the lettuce 1 using the sinkbasin 1.
OK.
>go to diningtable 1
on the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a for
2, a knife 2, a knife 1, a ladle 1, a mug 2, a mug 1, a pan 2, a peppershaker 1, a
spatula 3, a tomato 2, and a tomato 1.
>think: I need to put this cleaned lettuce (1) in/on diningtable 1.
OK. > put lettuce 1 in/on diningtable 1
+ +D TRAJECTORIES + +# D.1 FEVER TRAJECTORIES + +We provide some trajectories produced by ReAct, CoTand Acton several randomly selected examples from the FEVER dev set below. Search results are omitted to space. + +Example 2491 (gt: REFUTES) + +
ReAct
Claim:Bermuda Triangle is a loosely-defined region in the Pacific Ocean.
Thought 1:I need to search Bermuda Triangle and find if it is in the Pacific Ocean.
Action 1:Search [Bermuda Triangle]
Observation 1:Reportedly haunted locations...
Thought 2:Ocean, so it is not in the Pacific Ocean.The observation says that it is in the western part of the North Atlantic
Action 2:Finish [REFUTES]
Observation 2:Episode finished
Act
Claim:Bermuda Triangle is a loosely-defined region in the Pacific Ocean.
Action1: Search [Bermuda Triangle]
Observation1: Reportedly haunted locations:...
Action 2:Finish [REFUTES]
Observation 2:Episode finished
COT
Claim:Bermuda Triangle is a loosely-defined region in the Pacific Ocean.
Thought:Let's think step by step. The Bermuda Triangle is a loosely-defined region
Answer:REFUTESin the Atlantic Ocean. The Pacific Ocean is not the Atlantic Ocean.
+ +Example 5908 (gt: SUPPORTS) + +
ReAct
Claim:Princess Mononoke is a film.I need to search Princess Mononoke and find if it is a film.
Thought 1:
Action 1:Search [Princess Mononoke]
Observation 1:Princess Mononoke
Thought 2:From the observation, it says that Princess Mononoke is a film.
Action 2:Finish[SUPPORTS]
Observation 2:Episode finished
Act
Claim:Princess Mononoke is a film.
Action 1:Search [Princess Mononoke]
Observation 1:Princess Mononoke
Action 2:Finish [SUPPORTS]
Observation 2:Episode finished
COT Claim:
Thought:Princess Mononoke is a film.Let's think step by step. Princess Mononoke is a movie, and movies are
films.
Answer:SUPPORTS
+ +Example 1951 (gt: REFUTES) + +
ReAct
Claim:Soyuz was part of the American space program.
Thought 1:I need to search Soyuz and find if it was part of the American space program.
Action 1:Search [Soyuz]
Observation 1:Soyuz is a transliteration...
Thought 2:It does not mention the American space program, so I need to search
"American space program" to find if it was part of it.
Action 2:Search [American space program]
Observation 2:The space policy...
Thought 3:It does not mention Soyuz, so I am not sure if this claim is true or not.
Action 3:Finish [NOT ENOUGH INFO]
Observation 3:Episode finished
Act
Claim:Soyuz was part of the American space program.
Action 1:Search [Soyuz]
Observation 1:Soyuz is a transliteration...
Action 2:
Observation 2:Finish [NOT ENOUGH INFO]
Episode finished
COT
Claim:Soyuz was part of the American space program.
Thought:Let's think step by step. Soyuz is a Russian spacecraft. The American
space program is NASA. NAsA and Russia have worked together on the
International Space Station.
Answer:
SUPPORTS
+ +Example 3208 (gt: REFUTES) + +
ReAct
Claim:I need to search for Reign Over Me and find if it is an American film madeReign Over Me is an American film made in 2010.
Thought 1:in 2010.
Action 1:Search [Reign Over Me]
Observation 1: Thought 2:Reign Over Me ...
made in 2010.The observation says that it is an American film made in 2007, so it is not
Action 2:Finish [REFUTES]
Observation 2:Episode finished
Act
Claim:Reign Over Me is an American film made in 2010.
Action 1:Search [Reign Over Me]
Action 2:Finish [SUPPORTS]
Observation 2:Episode finished
COT
Claim:Reign Over Me is an American film made in 2010.
Thought:Let's think step by step. First, is Reign Over Me an American film?Yes,
it is. Second, was it made in 2010? Yes, it was.
Answer:
SUPPORTS
+ +# D.2 ALFWORLD TRAJECTORIES + +We provide an example trajectory of ReAct, Act, and ReAct – IM on the same ALFWorld game, pick_clean_then_place_in_recep-Knife-None-CounterTop-10/ trial_T20190909_110445_675754. + +D.2.1 REACT TRAJECTORY + +ReAct is able to correctly find the knife, clean it, and then place it on a countertop. + +ReAct ALFWorld trajectory + +
You are in the middle of a room.Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a
countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasil1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster
1. Your task is to: put a clean knife in countertop.
> think: To solve the task, I need to find and take a knife, then clean it with
sinkbasin, then put it in countertop.
OK.
> think: First I need to find a knife. A knife is more likely to appear in cabinet
(1-6), drawer (1-3), countertop (1-3), fridge (1), garbagecan (1), shelf (1-3),
cabinet 1.sinkbasin (1), stoveburner (1-4), toaster (1). I can check one by one, starting wit)
OK.
> go to cabinet 1
> go to cabinet 2on the cabinet 1, you see a bowl 1.
> go to cabinet 3The cabinet 2 is closed.
On the cabinet 3, you see a glassbottle 1.
> go to cabinet 4
> go to cabinet 5On the cabinet 4, you see a mug 1.
The cabinet 5 is closed. > go to cabinet 6
The cabinet 6 is closed.
> go to drawer 1
> go to drawer 2The drawer 1 is closed.
The drawer 2 is closed.
> go to drawer 3
The drawer 3 is closed.
> go to countertop 1
> go to countertop 2on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
On the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a knife 1, a
plate 2, a potato 3, and a statue 1.
> think: Now I find a knife (1). Next, I need to take it.
OK.
> take knife 1 from countertop 2
You pick up the knife 1 from the countertop 2.
OK.> think: Now I take a knife (1). Next, I need to go to sinkbasin (1) and clean it.
> go to sinkbasin 1
On the sinkbasin 1, you see a fork 3, a lettuce 3, and a spatula 2.
> clean knife 1 with sinkbasin 1
You clean the knife 1 using the sinkbasin 1.
> think: Now I clean a knife (1). Next, I need to put it in/on countertop 1.
OK.
> go to countertop 1
on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
+ +# D.2.2 ACT TRAJECTORY + +Act is able to correctly ind the knife, but tries to clean it using a sinkbasin before actually going to the sinkbasin. From there on, the model is unable to recover, and is stuck repeating the same sequence of commands. With ReAct, an existing thought would have concretely identifed that the knife had been taken, and that the next subgoal was to go to a sinkbasin to clean it. + +Act ALFWorld trajectory + +
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster
Your task is to: put a clean knife in countertop. > go to countertop 1 on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2. > go to countertop 2 on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a knife 1, a
plate 2, a potato 3, and a statue 1. > take knife 1 from countertop 2 > go to countertop 1You pick up the knife 1 from the countertop 2.
> clean knife 1 with sinkbasin 1 Nothing happens. > go to countertop 3on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
2, a tomato 1, and a vase 2.on the countertop 3, you see a bread 3, a butterknife 2, a cellphone 1, a creditcard 1, a fork 2, a houseplant 1, a knife 2, a spatula 1, a statue 3, a tomato 3, a tomato
> take knife 2 from countertop 3 Nothing happens. > go to countertop 2
potato 3, and a statue 1.on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a plate 2, a
Nothing happens.
> take knife 1 from countertop 2
> go to countertop 1
> clean knife 1 with sinkbasin 1on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
Nothing happens.
> go to countertop 3
2, a tomato l, and a vase 2.on the countertop 3, you see a bread 3, a butterknife 2, a cellphone 1, a creditcard
> take knife 2 from countertop 31, a fork 2, a houseplant 1, a knife 2, a spatula 1, a statue 3, a tomato 3, a tomato
Nothing happens.
> go to countertop 2
potato 3, and a statue 1.on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a plate 2, a
Nothing happens.> take knife 1 from countertop 2
> go to countertop 1
> clean knife 1 with sinkbasin 1on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
Nothing happens.
> go to countertop 3
1, a fork 2, a houseplant 1, a knife 2, a spatula 1, a statue 3, a tomato 3, a tomatoon the countertop 3, you see a bread 3, a butterknife 2, a cellphone 1, a creditcard
2, a tomato 1, and a vase 2.
> take knife 2 from countertop 3
Nothing happens.
> go to countertop 2
on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a plate 2, a
potato 3, and a statue 1.
> take knife 1 from countertop 2
Nothing happens.
> go to countertop 1
on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
> clean knife 1 with sinkbasin 1
+ +# D.2.3 REACT-IM TRAJECTORY + +ReAct –IM is able to correctly find the knife, but is unable to clean it as well. The LLM then gets stuck trying to place this knife on a countertop. One possible issue is the incorrect thought think: I need to find a clean knife., which seems to trick the LLM in believing that the knife is already cleaned. In ReAct, this sequence of subgoals would be concretely captured by each thought. + +ReAct–IM ALFWorld trajectory + +
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbas 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaste: 1. Your task is to: put a clean knife in countertop. > think: To solve the task, I need to find and take a clean knife, then put it in countertop. OK. > think: I need to find a clean knife.
+ +Table 10: Example trajectories for Webshop predicted by Act and ReAct. Compared to Act, ReAct uses reasoning to find products that satisfy all target attributes. + +
Instruction: get me a sixteen pack of apple cinnamon freeze dried banana chips, and price lower than 50.00 dollars
ActReAct
Action: search [sixteen pack apple cinnamon freeze dried bananaAction: seareh [sixteen pack apple cinnamon freeze dried banana
chips] Observation:chips] Observation:
[ Back to Search ][ Back to Search]
Page 1 (Total results: 50)Page 1 (Total results: 50)
[Next][Nex]
[B0061IVFZE][B0061IVFZE]
Brothers-ALL-Natural Fruit Crisps, Strawberry Banana, 0.42 - Ounce (Pack of 100)Brothers-ALL-Natural Fruit Crisps, Strawberry Banana, 0.42 - Ounce (Pack of 100)
$85.0$85.0
[B096H2P6G2] Moon Fruit Freeze Dried Fruit Snacks. Fruit Snacks for Kids -[B096H2P6G2] Moon Fruit Freeze Dried Fruit Snacks. Fruit Snacks for Kids -
(Variety Pack) $18.99(Variety Pack) $18.99
[B092JLLYK6][B092JLLYK6]
Nature's Turn Freeze-Dried Fruit Snacks - Banana Crisps - Perfect For School Lunches or an On-The-Go Snack - No Sugar Added,Nature's Turn Freeze-Dried Fruit Snacks - Banana Crisps - Perfect For School Lunches or an On-The-Go Snack - No Sugar Added,
Non GMO, Gluten Free, Nothing Artificial (0.53oz) 6-Pack $12.99Non GMO, Gluten Free, Nothing Artificial (0.53oz) 6-Pack $12.99
Action: click [B0061IVFZE]Action: think[B0061IVFZE is strawberry banana, not apple cinnamon.
Observation:B096H2P6G2 is fruit snacks, not freeze dried banana chips. B092LLYK is banana crisps, not apple cinnamon.I can che
[Back to Search] [Prev]B092JLLYK6 first.
flavor name [asian pear][bananalfuj apple & cinnamon][strawberryObservation: OK.
banana] Brothers-ALL-Natural Fruit Crisps, Strawberry Banana,
0.42 Ounce (Pack of 100)Action: click[B092JLLYK6]
Price: $85.0Observation:
Rating: N.A.[Back to Search]
[Description][Prev]
[Features]fiavor name [aple]lapple cinnamon][banana][cantaloupepeach][pear]
[Reviews][strawberry strawberry bananal[sampler variety pack][mega variety
[Buy Now]pack][orchard variety pack]
size [0.53 ounce (pack of 6)][0.53 ounce (pack of 8)]I0.53 ounce (pack
Action: click[Buy Now]of 16)] Nature's Turn Freeze-Dried Fruit Snacks - Banana Crisps - Perfect
For School Lunches or an On-The-Go Snack - No Sugar Added, Non
GMO, Gluten Free, Nothing Artificial (0.53oz) 6-Pack
Price: $12.99
Rating: N.A.
[Description]
[Features]
[Reviews]
[Buy Now]
Action: think[For sixteen pack of apple cinnamon freeze dried banana
chips, the item has options 'apple cinnamon' and '0.53 ounce (pack of
16)' and seems good to buy.] Observation: OK.
Action: click[apple cinnamon]
Observation: You have clicked apple cinnamon.
Action: click[0.53 ounce (pack of 16)]
Observation: You have clicked 0.53 ounce (pack of 16).
Action: click[Buy Now]
Score: 0.125
Score: 1.0
+ +# E MoRE ANALYSIS + +# E.1 SuccESS AND FAILURE MoDEs ANALYsIS + +We provide some examples corresponding to the success and error mode analysis given in Sec. 3.3. +Search results and non-representative steps are omitted to reduce space. + +
Success: True positive
ReAct
Question:Author David Chanoff has collaborated with a U.S. Navy admiral who served as the ambassador to the United Kingdom under which President?
Thought 1:I need to search David Chanoff and find the U.S. Navy admiral he
Action 1:collaborated with. Search [David Chanoff]
Observation 1:David Chanoff is a noted author...
Action 2:Search [william J. Crowe]
Observation 2:William J. Crowe is...
Thought 3:william J. Crowe served as the ambassador to the United Kingdom under
Action 3:President Bill Clinton. So the answer is Bill Clinton. Finish [Bill Clinton]
Observation 3:Episode finished
CoT
Question:What was the name of the team that represented an Arizona university in
Thought:the conference that covers a broad expanse of the western United States, including Arizona, California, and New Mexico? Let's think step by step. The name of the team that represented an Arizona
university in the conference that covers a broad expanse of the western United States, including Arizona, California, and New Mexico is Arizona
Answer:State Sun Devils. Arizona State Sun Devils
+ +Success: False positive + +
ReAct
Question:Did the board game San Marco or About Time come out first?
Thought 1:I need to search San Marco and About Time, and find which came out first. Search[San Marco]
Action 1: Observation 1:San Marco is one of the ... The was built in venice.
Thought 2:San Marco is a sestiere of Venice. I need to search About Time next.
Action 2:
Observation 2:Could not find [About Time]. Similar: [...].
Thought 3:About Time is a 2013 film. so San Marco came out first.
Action 3: Observation 3:
CoTEpisode finished
Question:Was Vanderbilt University or Emory University founded first?
Thought:Let's think step by step. Vanderbilt University was founded in 1873. Emory
University was founded in 1836. 1873 (Vanderbilt University) > 1836 (Emory
University), so Vanderbilt University was founded first.
Answer:Emory University
+ +Failure: Reasoning error + +
ReAct
Question:what was the middle name of the actress who was cast alongside Harvey Fierstein, Linda Hart, Dick Latessa, Clarke Thorell, Mary Bond Davis, Laura
Bell Bundy, Matthew Morrison, Corey Reynolds, and Marissa Jaret Winokur in Hairspray?
Thought 1:I need to search Harvey Fierstein, Linda Hart, Dick Latessa, Clarke Thorell, Mary Bond Davis, Laura Bell Bundy, Matthew Morrison, Corey Reynolds, and
Marissa Jaret Winokur, find the actress that was cast alongside them in Hairspray, then find its middle name.
Action 1:Search [Harvey Fierstein]
Observation 1: Thought 2:Harvey Forbes Fierstein Harvey Fierstein is an actor, playwright, and screenwriter. I need to
search Linda Hart next...
Action 2:
Search[Linda Hart] ...
CoT
Question:Who is older Danny Green or James Worthy?
Thought:
Let's think step by step. Danny Green was born in 1987. James Worthy was
born in 1961. 1987 (Danny Green) > 1961 (James Worthy), so Danny Green is
older.
Answer:
+ +Failure: Search error + +
ReAct Question:What does the goddess associated with the goddess frigg consists of what
tales?
Thought 1:I need to search goddess frigg and find its associated goddess.
Action 1: Observation 1:Search [goddess frigg]
Could not find goddess frigg. Similar: ['Frigg','Frigg and Freyja common origin hypothesis', 'Freyja (section Relation to Frigg and other goddesses
and figures)', 'Eir (redirect from Eir (goddess))', 'Baldr'].
Thought 2:I need to search Frigg instead...
+ +Failure: Hallucination + +
CoT
Question:what was the first year a scientific journal published by an organization located in the Bronx was published?
Thought:Let's think step by step. The first year a scientific journal published by an organization located in the Bronx was published was 1916.
Answer:1916(Label:1909)
+ +Failure: Label ambiguity + +
ReActwhat nationality is the man who developed the dictator game?
Question: Thought 1:nationality.I need to search dictator game, find the man who developed it, then find his
Action 1:Search [dictator game]
Observation 1:The dictator game is a popular experimental instrument in social psychology
Action 3:and economics...
Observation 3:Search [Amos Tversky] Amos Nathan Tversky..
Thought 4:Amos Tversky is an Israeli cognitive and mathematical psychologist. So the
man who developed the dictator game is Israeli.
Action 4:Finish[Israeli] (label:Israel-American)
CoT
Question:Kurt Fuller from Stockton, CA appeared in which American Detective Comedy
Drama television series created by Steve Franks?
Thought:Let's think step by step. Kurt Fuller from Stockton, CA appeared in Psych.
Psych is an American Detective Comedy Drama television series created by
Steve Franks.
Answer:Psych (label: Psych is an American detective comedy-drama)
\ No newline at end of file diff --git a/backend/ingestion_pipeline/output/React_paper/auto/React_paper.md.backup b/backend/ingestion_pipeline/output/React_paper/auto/React_paper.md.backup new file mode 100644 index 0000000000000000000000000000000000000000..5e0712031cdc87f3a5c7bbf59e0597bd77715eea --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/React_paper.md.backup @@ -0,0 +1,437 @@ +# REAct: SyNERGIzING REASoNING AND AcTING IN LANGUAGE MODELS + +Shunyu $\mathrm { Y a o } ^ { * , 1 }$ , Jeffrey Zhao2, Dian $\mathrm { Y u } ^ { 2 }$ , Nan $\mathrm { D u } ^ { 2 }$ , Izhak Shafran2, Karthik Narasimhan1, Yuan Cao2 + +1Department of Computer Science, Princeton University 2Google Research, Brain team 1{shunyuy,karthikn}@princeton.edu ²{jeffreyzhao,dianyu,dunan,izhak,yuancao} @google.com + +# ABSTRACT + +While large language models (LLMs) have demonstrated impressive performance across tasks in language understanding and interactive decision making, their abilities for reasoning (e.g. chain-of-thought prompting) and acting (e.g. action plan generation) have primarily been studied as separate topics. In this paper, we explore the use of LLMs to generate both reasoning traces and task-specific actions in an interleaved manner, allowing for greater synergy between the two: reasoning traces help the model induce, track, and update action plans as well as handle exceptions, while actions allow it to interface with and gather additional information from external sources such as knowledge bases or environments. We apply our approach, named ReAct, to a diverse set of language and decision making tasks and demonstrate its effectiveness over state-of-the-art baselines in addition to improved human interpretability and trustworthiness. Concretely, on question answering (HotpotQA) and fact verification (Fever), ReAct overcomes prevalent issues of hallucination and error propagation in chain-of-thought reasoning by interacting with a simple Wikipedia API, and generating human-like task-solving trajectories that are more interpretable than baselines without reasoning traces. Furthermore, on two interactive decision making benchmarks (ALFWorld and WebShop), ReAct outperforms imitation and reinforcement learning methods by an absolute success rate of $34 \%$ and $10 \%$ respectively, while being prompted with only one or two in-context examples. + +# 1 INTRODUCTION + +A unique feature of human intelligence is the ability to seamlessly combine task-oriented actions with verbal reasoning (or inner speech, Alderson-Day & Fernyhough, 2015), which has been theorized to play an important role in human cognition for enabling self-regulation or strategization (Vygotsky, 1987; Luria, 1965; Fernyhough, 2010) and maintaining a working memory (Baddeley, 1992). Consider the example of cooking up a dish in the kitchen. Between any two specific actions, we may reason in language in order to track progress ("'now that everything is cut, I should heat up the pot of water'), to handle exceptions or adjust the plan according to the situation ("I don't have salt, so let me use soy sauce and pepper instead"), and to realize when external information is needed ("how do I prepare dough? Let me search on the Internet'). We may also act (open a cookbook to read the recipe, open the fridge, check ingredients) to support the reasoning and to answer questions ("What dish can I make right now?"). This tight synergy between "acting'" and "reasoning'" allows humans to learn new tasks quickly and perform robust decision making or reasoning, even under previously unseen circumstances or facing information uncertainties. + +Recent results have hinted at the possibility of combining verbal reasoning with interactive decision making in autonomous systems. On one hand, properly prompted large language models (LLMs) have demonstrated emergent capabilities to carry out several steps of reasoning traces to derive answers from questions in arithmetic, commonsense, and symbolic reasoning tasks (Wei et al. 2022). However, this "chain-of-thought'" reasoning is a static black box, in that the model uses its own internal representations to generate thoughts and is not grounded in the external world, which limits its ability to reason reactively or update its knowledge. This can lead to issues like fact hallucination and error propagation over the reasoning process (Figure 1 (1b)). On the other hand, recent work has explored the use of pre-trained language models for planning and acting in interactive environments (Ahn et al., 2022; Nakano et al., 2021; Yao et al., 2020; Huang et al., 2022a), with a focus on predicting actions via language priors. These approaches usually convert multi-modal observations into text, use a language model to generate domain-specifi c actions or plans, and then use a controller to choose or execute them. However, they do not employ language models to reason abstractly about high-level goals or maintain a working memory to support acting, barring Huang et al. (2022b) who perform a limited form of verbal reasoning to reiterate spatial facts about the current state. Beyond such simple embodied tasks to interact with a few blocks, there have not been studies on how reasoning and acting can be combined in a synergistic manner for general task solving, and if such a combination can bring systematic benefits compared to reasoning or acting alone. + +![](images/69d01dabe525b457a0dea4899633824d7c6a020e8bcd57f87b2f5c5cc3dae77c.jpg) +Figure 1: (1) Comparison of 4 prompting methods, (a) St andard, (b) Chain-of-thought (CoT, Reason Only), (c) Act-only, and (d) ReAct (Reason+Act), solving a HotpotQA (Yang et al., 2018) question. (2) Comparison of (a) Act-only and (b) ReAct prompting to solve an AlfWorld (Shridhar et al., 2020b) game. In both domains, we omit in-context examples in the prompt, and only show task solving trajectories generated by the model (Act, Thought) and the environment (Obs). + +In this work, we present ReAct, a general paradigm to combine reasoning and acting with language models for solving diverse language reasoning and decision making tasks (Figure 1). ReAct prompts LLMs to generate both verbal reasoning traces and actions pertaining to a task in an interleaved manner, which allows the model to perform dynamic reasoning to create, maintain, and adjust high-level plans for acting (reason to act), while also interact with the external environments (e.g. Wikipedia) to incorporate additional information into reasoning (act to reason). + +We conduct empirical evaluations of ReAct and state-of-the-art baselines on four diverse benchmarks: question answering (HotPotQA, Yang et al., 2018), fact verification (Fever, Thorne et al., 2018), text-based game (ALFWorld, Shridhar et al., 2020b), and webpage navigation (WebShop, Yao et al., 2022). For HotPotQA and Fever, with access to a Wikipedia API that the model can interact with, ReAct outperforms vanilla action generation models while being competitive with chain-ofthought reasoning (CoT) (Wei et al., 2022). The best approach overallis a combination of ReAct and CoT that allows for the use of both internal knowledge and externally obtained information during reasoning. On ALFWorld and WebShop, two or even one-shot ReAct prompting is able to outperform imitation or reinforcement learning methods trained with $1 0 ^ { 3 } \sim \mathrm { { 1 0 ^ { 5 } } }$ task instances, with an absolute improvement of $34 \%$ and $10 \%$ in success rates respectively. We also demonstrate the importance of sparse, versatile reasoning in decision making by showing consistent advantages over controlled baselines with actions only. Besides general applicability and performance boost, the combination of reasoning and acting also contributes to model interpretability, trustworthiness, and diagnosability across all domains, as humans can readily distinguish information from model's internal knowledge versus external environments, as well as inspect reasoning traces to understand the decision basis of model actions. + +To summarize, our key contributions are the following: (1) we introduce ReAct, a novel promptbased paradigm to synergize reasoning and acting in language models for general task solving; (2) we perform extensive experiments across diverse benchmarks to showcase the advantage of ReAct in a few-shot learning setup over prior approaches that perform either reasoning or action generation in isolation; (3) we present systematic ablations and analysis to understand the importance of acting in reasoning tasks, and reasoning in interactive tasks; (4) we analyze the limitations of ReAct under the prompting setup (i.e. limited support of reasoning and acting behaviors), and perform initial fi netuning experiments showing the potential of ReAct to improve with additional training data. Scaling up ReAct to train and operate on more tasks and combining it with complementary paradigms like reinforcement learning could further unlock the potential of large language models. + +# 2 REAcT: SYNERGIZING REASONING $^ +$ ACTING + +Consider a general setup of an agent interacting with an environment for task solving. At time step $t$ , an agent receives an observation $o _ { t } \in \mathcal { O }$ from the environment and takes an action $a _ { t } \in { \mathcal { A } }$ following some policy $\pi ( a _ { t } | c _ { t } )$ , where $c _ { t } = \left( o _ { 1 } , a _ { 1 } , \cdot \cdot \cdot , o _ { t - 1 } , a _ { t - 1 } , o _ { t } \right)$ is the context to the agent. Learning a policy is challenging when the mapping $c _ { t } \mapsto a _ { t }$ is highly implicit and requires extensive computation. For example, the agent shown in Figure 1(lc) is unable to generate the correct final action (Act 4) to finish the QA task as it requires complex reasoning over the trajectory context (Question, Act 1-3, Obs 1-3). Similarly, the agent shown in Figure 1(2a) fails to comprehend from the context that sinkbasin 1 does not contain peppershaker 1, thus keep producing hallucinating actions. + +The idea of ReAct is simple: we augment the agent's action space to ${ \hat { \mathcal { A } } } = { \mathcal { A } } \cup { \mathcal { L } }$ , where $\mathcal { L }$ is the space of language. An action $\hat { a } _ { t } \in \mathcal { L }$ in the language space, which we will refer to as a thought or a reasoning trace, does not affect the external environment, thus leading to no observation feedback. Instead, a thought $\hat { a } _ { t }$ aims to compose useful information by reasoning over the current context $c _ { t }$ , and update the context $\boldsymbol c _ { t + 1 } = \left( c _ { t } , \hat { a } _ { t } \right)$ to support future reasoning or acting. As shown in Figure 1, there could be various types of useful thoughts, e.g. decomposing task goals and create action plans (2b, Act 1; 1d, Thought 1), injecting commonsense knowledge relevant to task solving (2b, Act 1), extracting important parts from observations (1d, Thought2, 4), track progress and transit action plans (2b, Act 8), handle exceptions and adjust action plans (1d, Thought 3), and so on. + +However, as the language space $\mathcal { L }$ is unlimited, learning in this augmented action space is difficult and requires strong language priors. In this paper, we mainly focus on the setup where a frozen large language model, PaLM-540B (Chowdhery et al., 2022)1, is prompted with few-shot in-context examples to generate both domain-specifc actions and free-form language thoughts for task solving (Figure 1 (1d), (2b)). Each in-context example is a human trajectory of actions, thoughts, and environment observations to solve a task instance (see Appendix C). For the tasks where reasoning is of primary importance (Figure 1(1), we alternate the generation of thoughts and actions so that the task-solving trajectory consists of multiple thought-action-observation steps. In contrast, for decision making tasks that potentially involve a large number of actions (Figure 1(2)), thoughts only need to appear sparsely in the most relevant positions of a trajectory, so we let the language model decide the asynchronous occurrence of thoughts and actions for itself. + +Since decision making and reasoning capabilities are integrated into a large language model, ReAct enjoys several unique features: A) Intuitive and easy to design: Designing ReAct prompts is straightforward as human annotators just type down their thoughts in language on top of their actions taken. No ad-hoc format choice, thought design, or example selection is used in this paper. We detail prompt design for each task in Sections 3 and 4. B) General and flexible: Due to the flexible thought space and thought-action occurrence format, ReAct works for diverse tasks with distinct action spaces and reasoning needs, including but not limited to QA, fact verification, text game, and web navigation. C) Performant and robust: ReAct shows strong generalization to new task instances while learning solely from one to six in-context examples, consistently outperforming baselines with only reasoning or acting across different domains. We also show in Section 3 additional benefits when finetuning is enabled, and in Section 4 how ReAct performance is robust to prompt selections. D) Human aligned and controllable: ReAct promises an interpretable sequential decision making and reasoning process where humans can easily inspect reasoning and factual correctness. Moreover, humans can also control or correct the agent behavior on the go by thought editing, as shown in Figure 5 in Section 4. + +# 3 KNOWLEDGE-INTENSIVE REASONING TASKS + +We begin with knowledge-intensive reasoning tasks like multi-hop question answering and fact verification. As shown in Figure 1(1d), by interacting with a Wikipedia API, ReAct is able to retrieve information to support reasoning, while also use reasoning to target what to retrieve next, demonstrating a synergy of reasoning and acting. + +# 3.1 SETUP + +Domains We consider two datasets challenging knowledge retrieval and reasoning: (1) HotPotQA (Yang et al., 2018), a multi-hop question answering benchmark that requires reasoning over two or more Wikipedia passages, and (2) FEVER (Thorne et al., 2018), a fact verification benchmark where each claim is annotated SUPPORTS, REFUTES, or NOT ENOUGH INFO, based on if there exists a Wikipedia passage to verify the claim. In this work, we operate in a question-only setup for both tasks, where models only receive the question/claim as input without access to support paragraphs, and have to rely on their internal knowledge or retrieve knowledge via interacting with an external environment to support reasoning. + +Action Space We design a simple Wikipedia web API with three types of actions to support interactive information retrieval: (1) search[ent ity], which returns the first 5 sentences from the corresponding ent i ty wiki page if it exists, or else suggests top-5 similar entities from the Wikipedia search engine, (2) 1ookup[st ring], which would return the next sentence in the page containing st ring, simulating $\mathrm { C t r l { + } F }$ functionality on the browser. (3) finish[an swer], which would finish the current task with an s wer. We note that this action space mostly can only retrieve a small part of a passage based on exact passage name, which is significantly weaker than state-of-theart lexical or neural retrievers. The purpose is to simulate how humans would interact with Wikipedia, and force models to retrieve via explicit reasoning in language. + +# 3.2 METHODS + +ReAct Prompting For HotpotQA and Fever, we randomly select 6 and 3 cases2 from the training set and manually compose ReAct-format trajectories to use as few-shot exemplars in the prompts. Similar to Figure 1(d), each trajectory consists of multiple thought-action-observation steps (i.e. dense thought), where free-form thoughts are used for various purposes. Specifically, we use a combination of thoughts that decompose questions ("I need to search x, fi nd y, then find $\mathbf { Z } ^ { \dag }$ ), extract information from Wikipedia observations ${ } ^ { 6 6 } \mathbf { X }$ was started in $1 8 4 4 ^ { \circ }$ , "The paragraph does not tell x'"), perform commonsense ( $\mathbf { \mu } ^ { 6 6 } \mathbf { X }$ is not y, so z must instead be...") or arithmetic reasoning ( $^ { } 1 8 4 4 < 1 9 8 9 ^ { \cdots }$ ), guide search reformulation ("maybe I can search/look up x instead'"), and synthesize the final answer (".so the answer is x"). See Appendix C for more details. + +Table 1: PaLM-540B prompting results on HotpotQA and Fever. + +
Prompt MethodaHotEotOAFever
standard28.757.1
CoT (Wei et al., 22) CoT−SC (Wang et al, 2022a)29.4 33.456.3 60.4
Act25.758.9
ReAct CoT-SC→ReAct27.460.9
ReAct→CoT-SC34.2 35.164.6
Supervised SoTAb67.562.0 89.5
+ +HotpotQA EM is 27.1, 28.9, 33.8 for standard, CoT, CoT–SC in Wang et al. (2022b). b(Zhu et al., 2021; Lewis et al., 2020) + +![](images/171e40ed5124fb8222b6b5c65d5bcb93b3e24ea67229f3bc706a756f0bf4fbb3.jpg) +Figure 2: PaLM-540B prompting results with respect to number of CoT–sC samples used. + +Baselines We systematically ablate ReAct trajectories to build prompts for multiple baselines (with formats as Figure 1(1la-1c): (a) Standard prompting (St anda rd), which removes al thoughts, actions, observations in ReAct trajectories. (b) Chain-of-thought prompting (CoT) (Wei et al., 2022), which removes actions and observations and serve as a reasoning-only baseline. We also build a self-consistency baseline (CoT–sC) (Wang et al., 2022a;b) by sampling $2 1 \thinspace \mathrm { C o T }$ trajectories with decoding temperature 0.7 during inference and adopting the majority answer, which is found to consistently boost performance over CoT. (c) Acting-only prompt (Act), which removes thoughts in ReAct trajectories, loosely resembling how WebGPT (Nakano et al., 2021) interacts with the Internet to answer questions, though it operates on a different task and action space, and uses imitation and reinforcement learning instead of prompting. + +Combining Internal and External Knowledge As will be detail in Section 3.3, we observe that the problem solving process demonstrated by ReAct is more factual and grounded, whereas CoT is more accurate in formulating reasoning structure but can easily suffer from hallucinated facts or thoughts. We therefore propose to incorporate ReAct and CoT–sC, and let the model decide when to switch to the other method based on the following heuristics: A) $\mathtt { R e A c t } \to \mathtt { C o T } \mathtt { - } \mathtt { S } \mathtt { C }$ C: when ReAct fails to return an answer within given steps, back off to $\mathsf { C o T - S C }$ . We set 7 and 5 steps for HotpotQA and FEVER respectively as we find more steps will not improve ReAct performance3. B) CoT $- s \mathtt { C } \to \mathtt { R e A c 1 }$ : when the majority answer among $n \ C { \circ { \mathrm { T } } { - } { \mathrm { S } } { \mathrm { C } } }$ samples occurs less than $n / 2$ times (i.e. internal knowledge might not support the task confidently), back off to ReAct. + +Finetuning Due to the challenge of manually annotating reasoning traces and actions at scale, we consider a bootstraping approach similar to Zelikman et al. (2022), using 3,000 trajectories with correct answers generated by ReAct (also for other baselines) to finetune smaller language models (PaLM-8/62B) to decode trajectories (all thoughts, actions, observations) conditioned on input questions/claims. More details are in Appendix B.1. + +# 3.3 RESULTS AND OBSERVATIONS + +ReAct outperforms Act consistently Table 1 shows HotpotQA and Fever results using PaLM540B as the base model with different prompting methods. We note that ReAct is better than Act on both tasks, demonstrating the value of reasoning to guide acting, especially for synthesizing the final answer, as shown in Figure 1 (1c-d). Fine-tuning results 3 also confirm the benefit of reasoning traces for more informed acting. + +Table 2: Types of success and failure modes of ReAct and CoT on HotpotQA, as well as thein percentages in randomly selected examples studied by human. + +
|TypeDefinitionReActCoT
Success94%86%
Trle possiveCorrec e ing ace and cts
FailureReasoning errorWrong reasoning trace (including failing to recover from repetitive steps)47%16%
Search result errorSearch return empty or does not contain useful information23%-
HallucinationHallucinated reasoning trace or facts0%56%
Label ambiguityRight prediction but did not match the label precisely29%28%
+ +ReAct vs. CoT On the other hand, ReAct outperforms CoT on Fever (60.9 vs. 56.3) and slightly lags behind CoT on HotpotQA (27.4 vs. 29.4). Fever claims for SUPPORTS/REFUTES might only differ by a slight amount (see Appendix D.1), so acting to retrieve accurate and up-to-date knowledge is vital. To better understand the behavioral difference between ReAct and CoT on HotpotQA, we randomly sampled 50 trajectories with correct and incorrect answers (judged by EM) from ReAct and CoT respectively (thus 200 examples in total), and manually labeled their success and failure modes in Table 2. Some key observations are as follows: + +A) Hallucination is a serious problem for CoT, resulting in much higher false positive rate than ReAct $14 \%$ Vs. $6 \%$ ) in success mode, and make up its major failure mode $( 5 6 \% )$ . In contrast, the problem solving trajectory of ReActis more grounded, fact-driven, and trustworthy, thanks to the access of an external knowledge base. + +B) While interleaving reasoning, action and observation steps improves ReAct's groundedness and trustworthiness, such a structural constraint also reduces its flexibility in formulating reasoning steps, leading to more reasoning error rate than CoT. we note that there is one frequent error pattern specific to ReAct, in which the model repetitively generates the previous thoughts and actions, and we categorize it as part of "reasoning error'” as the model fails to reason about what the proper next action to take and jump out of the $\mathrm { l o o p ^ { 4 } }$ . + +C) For ReAct, successfully retrieving informative knowledge via search is critical. Noninformative search, which counts for $23 \%$ of the error cases, derails the model reasoning and gives it a hard time to recover and reformulate thoughts. This is perhaps an expected trade-off between factuality and flexibility, which motivates our proposed strategies of combining two methods. + +We provide examples for each success and failure modes in Appendix E.1. We also find some HotpotQA questions may contain outdated answer labels, see Figure 4 for example. + +ReAct $^ +$ coT-SC perform best for prompting LLMs Also shown in Table 1, the best prompting method on HotpotQA and Fever are ReAct $ \subset \mathrm { o T } - S \subset$ and $\mathtt { C o T - S C } \to \mathtt { R e A c t }$ respectively. Furthermore, Figure 2 shows how different methods perform with respect to the number of $\mathsf { C o T - S C }$ samples used. While two $\mathrm { R e a c t } + \mathrm { C o T } - \mathrm { S C }$ methods are advantageous at one task each, they both significantly and consistently outperform CoT–sC across different number of samples, reaching $\mathsf { C o T - S C }$ performance with 21 samples using merely 3-5 samples. These results indicate the value of properly combining model internal knowledge and external knowledge for reasoning tasks. + +ReAct performs best for fine-tuning Figure 3 shows the scaling effect of prompting/finetuning four methods (St andard, CoT, Act, ReAct) on HotpotQA. With PaLM-8/62B, prompting ReAct performs worst among four methods due to the diff culty to learn both reasoning and acting from in-context examples. However, when finetuned with just 3,000 examples, ReAct becomes the best method among the four, with PaLM-8B finetuned ReAct outperforming all PaLM-62B prompting methods, and PaLM-62B finetuned ReAct outperforming all 540B prompting methods. In contrast, finetuning St andard or CoT is significantly worse than finetuning ReAct or Act for both PaLM8/62B, as the former essentially teaches models to memorize (potentially halluincated) knowledge facts, and the latter teaches models how to (reason and) act to access information from Wikipedia, a more generalizable skill for knowledge reasoning. As all prompting methods are still significantly far from domain-specific state-of-the-art approaches (Table 1), we believe finetuning with more human-written data might be a better way to unleash the power of ReAct . + +![](images/4c3b0e92c6dd6f297dab55532d495e593945818c5f158f452b08e194416f1e1f.jpg) +Figure 3: Scaling results for prompting and finetuning on HotPotQA with ReAct (ours) and baselines. + +# 4 DECISION MAKING TAsKS + +We also test ReAct on two language-based interactive decision-making tasks, ALFWorld and WebShop, both of which feature complex environments that require agents to act over long horizons with sparse rewards, warranting the need for reasoning to act and explore effectively. + +ALFWorld ALFWorld (Shridhar et al., 2020b) (Figure 1(2) is a synthetic text-based game designed to align with the embodied ALFRED benchmark (Shridhar et al., 2020a). It includes 6 types of tasks in which an agent needs to achieve a high-level goal (e.g. examine paper under desklamp) by navigating and interacting with a simulated household via text actions (e.g. go to coffeetable 1, take paper 2, use desklamp 1). A task instance can have more than 50 locations and take an expert policy more than 50 steps to solve, thus challenging an agent to plan and track subgoals, as well as explore systematically (e.g. check all desks one by one for desklamp). In particular, one challenge built into ALFWorld is the need to determine likely locations for common household items (e.g. desklamps will likely be on desks, shelfs, or dressers), making this environment a good fit for LLMs to exploit their pretrained commonsense knowledge. To prompt ReAct, we randomly annotate three trajectories from the training set for each task type, where each trajectory includes sparse thoughts that (1) decompose the goal, (2) track subgoal completion, (3) determine the next subgoal, and (4) reason via commonsense where to find an object and what to do with it. We show prompts used for ALFWorld in Appendix C.4. Following Shridhar et al. (2020b), we evaluate on 134 unseen evaluation games in a task-specific setup. For robustness, we construct 6 prompts for each task type through each permutation of 2 annotated trajectories from the 3 we annotate. Act prompts are constructed using the same trajectories, but without thoughts — since task instances are randomly chosen from the training set, it favors neither ReAct nor Act and provides a fair and controlled comparison to test the importance of sparse thoughts. For baselines, we use BUTLER (Shridhar et al., 2020b), an imitation learning agent trained on $\mathrm { \bar { 1 0 ^ { 5 } } }$ expert trajectories for each task type5. + +WebShop Can ReAct also interact with noisy real-world language environments for practical applications? We investigate WebShop (Yao et al., 2022), a recently proposed online shopping website environment with 1.18M real-world products and 12k human instructions. Unlike ALFWorld, Webshop contains a high variety of structured and unstructured texts (e.g. product titles, descriptions, and options crawled from Amazon), and requires an agent to purchase a product based on a user instruction (e.g."I am looking for a nightstand with drawers. It should have a nickel finish, and priced lower than $\$ 140$ ) through web interactions (e.g. search "nightstand drawers", choose buttons such as "color: modern-nickel-white'"' or “back to search'"). This task is evaluated by average score (percentage of desired atributes covered by the chosen product averaged across all episodes) and success rate (percentage of episodes where the chosen product satisfies all requirements) on 500 test instructions. We formulate Act prompts with actions to search, choose product, choose options, and buy, with ReAct prompts additionally reasoning to determine what to explore, when to buy, and what products options are relevant to the instruction. See Table 6 for an example prompt, and Table 10 for model predictions in the Appendix. We compare to an imitation learning (IL) method trained with 1,012 human annotated trajectories, and a imitation $^ +$ reinforcement learning $( \mathrm { I L } + \mathrm { R L } )$ method additionally trained with 10,587 training instructions. + +
MethodScoreSR
Act ReAct62.3 66.630.1 40.0
IL59.929.1
IL+RL62.428.7
Human Expert82.159.6
+ +Table 3: AlfWorld task-specific success rates $( \% )$ . BUTLER and ${ \bf B U T L E R } _ { g }$ results are from Table 4 of Shridhar et al. (2020b). All methods use greedy decoding, except that BUTLER uses beam search. + +
MethodPickCleanHeatCoolLookPick2All
ACt (best of 6))88427467724145
ReAct (avg)65398376552457
ReAct (besto 6)92589686784171
ReAct −IM (avg)55596055232448
ReAct −IM (best of 6)62688757393353
BUTLER (cest f 8)33267076171222
BUTLER (best of 8))463974100222437
+ +Table 4: Score and success rate (SR) on Webshop. $\mathrm { I L / I L + R L }$ taken from Yao et al. (2022). + +Results ReAct outperforms Act on both ALFWorld (Table 3) and Webshop (Table 4). On ALFWorld, the best ReAct trial achieves an average success rate of $71 \%$ , signifi cantly outperforming the best Act $( 4 5 \% )$ and BUTLER $( 3 7 \% )$ trials. In fact, even the worse ReAct trial $(48 \% )$ beats the best trial of both methods. Moreover, the advantage of $_ { \mathrm { R e A c t } }$ over Act is consistent across six controlled trials, with relative performance gain ranging from $33 \%$ to $90 \%$ and averaging $62 \%$ . Qualitatively, we saw that, without any thoughts at all, Act fails to correctly decompose goals into smaller subgoals, or loses track of the current state of the environment. Example trajectories comparing ReAct and Act can be found in Appendix D.2.1 and Appendix D.2.2. + +On Webshop, one-shot Act prompting already performs on par with IL and $\mathrm { I L + R L }$ methods. With additional sparse reasoning, ReAct achieves significantly better performance, with an absolute $10 \%$ improvement over the previous best success rate. By checking examples, we find that ReAct is more likely to identify instruction-relevant products and options by reasoning to bridge the gap between noisy observations and actions (e.g. "For 'space-saving ottoman bench for living room', the item has options '39x18x18inch' and blue' and seems good to buy."). However, existing methods are still far from the performance of expert humans (Table 4), who perform significantly more product explorations and query re-formulations that are stil challenging for prompting-based methods. + +On the value of internal reasoning vs. external feedback To our knowledge, ReAct is the first demonstration of combined reasoning and action using an LLM applied to an interactive environment within a closed-loop system. Perhaps the closest prior work is Inner Monologue (IM), from Huang et al. (2022b), in which actions from an embodied agent are motivated by an eponymous "'inner monologue". However, IM's "inner monologue" is limited to observations of the environment state and what needs to be completed by the agent for the goal to be satisfied. In contrast, the reasoning traces in ReAct for decision making is flexible and sparse, allowing diverse reasoning types (see Section 2) to be induced for different tasks. + +To demonstrate the differences between ReAct and IM, and to highlight the importance of internal reasoning vs. simple reactions to external feedback, we ran an ablation experiment using a thought pattern composed of IM-like dense external feedback. As can be seen in Table 3, ReAct substantially outperforms IM-style prompting (ReAct –IM) (71 vs. 53 overall success rate), with consistent advantages on five out of six tasks. Qualitatively, we observed that ReAct – IM often made mistakes in identifying when subgoals were finished, or what the next subgoal should be, due to a lack of highlevel goal decomposition. Additionally, many ReAct – IM trajectories struggled to determine where an item would likely be within the ALFWorld environment, due to a lack of commonsense reasoning. Both shortcomings can be addressed in the ReAct paradigm. More details about ReAct -IM is in Appendix B.2. An example prompt for ReAct – IM can be found in Appendix C.4, and an example trajectory in Appendix D.2.3. + +# 5 RELATED WORK + +Language model for reasoning Perhaps the most well-known work of using LLMs for reasoning is Chain-of-Thought (CoT) (Wei et al., 2022), which reveals the ability of LLMs to formulate their own "thinking procedure" for problem solving. Several follow-up works have since been performed, including least-to-most prompting for solving complicated tasks (Zhou et al., 2022), zero-shotCoT (Kojima et al., 2022), and reasoning with self-consistency (Wang et al., 2022a). Recently, (Madaan & Yazdanbakhsh, 2022) systematically studied the formulation and structure of CoT, and observed that the presence of symbols, patterns and texts is crucial to the effectiveness of CoT. Other work has also been extended to more sophisticated reasoning architecture beyond simple prompting. For example Selection-Inference (Creswell et al., 2022) divides the reasoning process into two steps of “selection" and "inference". STaR (Zelikman et al., 2022) bootstraps the reasoning process by finetuning the model on correct rationales generated by the model itself. Faithful reasoning (Creswell & Shanahan, 2022) decomposes multi-step reasoning into three steps, each performed by a dedicated LM respectively. Similar approaches like Scratchpad (Nye et al., 2021), which finetunes a LM on intermediate computation steps, also demonstrate improvement on multi-step computation problems. In contrast to these methods, ReAct performs more than just isolated, fixed reasoning, and integrates model actions and their corresponding observations into a coherent stream of inputs for the model to reason more accurately and tackle tasks beyond reasoning (e.g. interactive decision making). + +Language model for decision making The strong capability of LLMs has enabled them to perform tasks beyond language generation, and it is becoming more popular to take advantage of LLMs as a policy model for decision making, especially in interactive environments. WebGPT (Nakano et al., 2021) uses an LM to interact with web browsers, navigate through web pages, and infer answers to complicated questions from ELI5 (Fan et al., 2019). In comparison to ReAct, WebGPT does not explicitly model the thinking and reasoning procedure, instead rely on expensive human feedback for reinforcement learning. In conversation modeling, chatbots like BlenderBot (Shuster et al., 2022b) and Sparrow (Glaese et al., 2022) and task-oriented dialogue systems like SimpleTOD (Hosseini-Asl et al., 2020) also train LMs to make decision about API calls. Unlike ReAct, they do not explicitly consider the reasoning procedure either, and also relies on expensive datasets and human feedback collections for policy learning. In contrast, ReAct learns a policy in a much cheaper way, since the decision making process only requires language description of the reasoning procedure.6 + +LLMS have also been increasingly employed in interactive and embodied environments for planning and decision making. Perhaps most relevant to ReAct in this respect are SayCan (Ahn et al., 2022) and Inner Monologue (Huang et al., 2022b), which use LLMs for robotic action planning and decision making. In SayCan, LLMs were prompted to directly predict possible actions a robot can take, which is then reranked by an affordance model grounded on the visual environments for final prediction. Inner Monologue made further improvements by adding the eponymous "'inner monologue'", which is implemented as injected feedback from the environment. To our knowledge, Inner Monologue is the first work that demonstrates such a closed-loop system, which ReAct builds on. However, we argue that Inner Monologue does not truly comprise of inner thoughts — this is elaborated in Section 4. We also note that leveraging language as semantically-rich inputs in the process of interactive decision making has been shown to be successful under other settings (Abramson et al., 2020; Karamcheti et al., 2021; Huang et al., 2022a; Li et al., 2022). It is becoming more evident that with the help of LLMs, language as a fundamental cognitive mechanism wil play a critical role in interaction and decision making. What is more, progress in LLMs has also inspired the development of versatile and generalist agents like Reed et al. (2022). + +# 6 CONCLUSION + +We have proposed ReAct – a simple yet effective method for synergizing reasoning and acting in large language models. Through a diverse set of experiments on multi-hop question-answering, fact checking, and interactive decision-making tasks, we show that ReAct leads to superior performance with interpretable decision traces. Despite the simplicity of our method, complex tasks with large action spaces require more demonstrations to learn well, which unfortunately can easily go beyond the input length limit of in-context learning. We explore the fine-tuning approach on HotpotQA with initial promising results, but learning from more high-quality human annotations wil be the desiderata to further improve the performance. Scaling up ReAct with multi-task training and combining it with complementary paradigms ike reinforcement learning could result in stronger agents that further unlock the potential of LLMs for more applications. + +# ACKNOWLEDGMENTS + +We thank the support and feedback of many people from Google Brain team and Princeton NLP Group. This work was supported in part by the National Science Foundation under Grant No. 2107048. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation. + +# REPRODUCIBILITY STATEMENT + +Our main experiments are done on PaLM (Chowdhery et al., 2022), which is not an openly accessible model yet. To increase reproducibility, we have included all used prompts in Appendix C, aditional experiments using GPT-3 (Brown et al., 2020) in Appendix A.1, and associated GPT-3 ReAct prompting code at https://anonymous .4open.science/r/ReAct-2268/. + +# ETHICS STATEMENT + +ReAct prompts large language models to generate more human interpretable, diagnosable, and controllable task-solving trajectories than previous methods. However, hooking up a large language model with an action space to interact with external environments (e.g. the web, physical environments) has potential dangers, e.g. looking up inappropriate or private information, or taking harmful actions in an environment. Our experiments minimize such risks by limiting the interactions to specific websites (Wikipedia or WebShop) that are free of private information, without any dangerous actions in the action space design (i.e. models cannot really buy products on WebShop the research benchmark, or edit Wikipedia). We believe researchers should be aware of such risks before designing more extensive experiments in the future. + +# REFERENCES + +Josh Abramson, Arun Ahuja, Iain Barr, Arthur Brussee, Federico Carnevale, Mary Cassin, Rachita Chhaparia, Stephen Clark, Bogdan Damoc, Andrew Dudzik, Petko Georgiev, Aurelia Guy, Tim Harley, Felix Hill, Alden Hung, Zachary Kenton, Jessica Landon, Timothy Lillicrap, Kory Mathewson, Soǎa Mokrá, Alistair Muldal, Adam Santoro, Nikolay Savinov, Vikrant Varma, Greg Wayne, Duncan Williams, Nathaniel Wong, Chen Yan, and Rui Zhu. Imitating interactive intelligence, 2020.URL https://arxiv.org/abs/2012.05672. +Michael Ahn, Anthony Brohan, Noah Brown, Yevgen Chebotar, Omar Cortes, Byron David, Chelsea Finn, Chuyuan Fu, Keerthana Gopalakrishnan, Karol Hausman, Alex Herzog, Daniel Ho, Jasmine Hsu, Julian Ibarz, Brian Ichter, Alex Irpan, Eric Jang, Rosario Jauregui Ruano, Kyle Jeffrey, Sally Jesmonth, Nikhil J Joshi, Ryan Julian, Dmitry Kalashnikov, Yuheng Kuang, Kuang-Huei Lee, Sergey Levine, Yao Lu, Linda Luu, Carolina Parada, Peter Pastor, Jornell Quiambao, Kanishka Rao, Jarek Rettinghouse, Diego Reyes, Pierre Sermanet, Nicolas Sievers, Clayton Tan, Alexander Toshev, Vincent Vanhoucke, Fei Xia, Ted Xiao, Peng Xu, Sichun Xu, Mengyuan Yan, and Andy Zeng. Do as i can, not as i say: Grounding language in robotic affordances, 2022. URL https://arxiv.org/abs/2204.01691. +Ben Alderson-Day and Charles Fernyhough. Inner speech: development, cognitive functions, phenomenology, and neurobiology. Psychological bulletin, 141(5):931, 2015. +Alan Baddeley. Working memory. Science, 255(5044):556–559, 1992. +Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020. + +Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022. + +Antonia Creswel and Murray Shanahan. Faithful reasoning using large language models, 2022. URL https://arxiv.org/abs/2208.14271. + +Antonia Creswell, Murray Shanahan, and Irina Higgins. Selection-inference: Exploiting large language models for interpretable logical reasoning, 2022. URL https : / /arxiv . org/abs / 2205.09712. + +Angela Fan, Yacine Jernite, Ethan Perez, David Grangier, Jason Weston, and Michael Auli. ELI5: Long form question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 3558–3567, Florence, Italy, July 2019. Association for Computational Linguistics. doi: 10.18653/v1/P19-1346. URL https : //aclanthology .org/ P19–1346. + +Charles Fernyhough. Vygotsky, luria, and the social brain. Self and social regulation: Social interaction and the development of social understanding and executive functions, pp. 56–79, 2010. + +Amelia Glaese, Nat McAleese, Maja Trebacz, John Aslanides, Vlad Firoiu, Timo Ewalds, Maribeth Rauh, Laura Weidinger, Martin Chadwick, Phoebe Thacker, Lucy Campbell-Gillingham, Jonathan Uesato, Po-Sen Huang, Ramona Comanescu, Fan Yang, Abigail See, Sumanth Dathathri, Rory Greig, Charlie Chen, Doug Fritz, Jaume Sanchez Elias, Richard Green, Soǎa Mokrá, Nicholas Fernando, Boxi Wu, Rachel Foley, Susannah Young, Iason Gabriel, William Isaac, John Mellor, Demis Hassabis, Koray Kavukcuoglu, Lisa Anne Hendricks, and Geoffrey Irving. Improving alignment of dialogue agents via targeted human judgements, 2022. URL https://storage.googleapis.com/deepmind-media/DeepMind. com/Authors-Notes/sparrow/sparrow-final.pdf. + +Ehsan Hosseini-Asl, Bryan McCann, Chien-Sheng Wu, Semih Yavuz, and Richard Socher. A simple language model for task-oriented dialogue. Advances in Neural Information Processing Systems, 33:20179–20191, 2020. + +Wenlong Huang, Pieter Abbeel, Deepak Pathak, and Igor Mordatch. Language models as zero-shot planners: Extracting actionable knowledge for embodied agents. arXiv preprint arXiv:2201.07207, 2022a. + +Wenlong Huang, Fei Xia, Ted Xiao, Harris Chan, Jacky Liang, Pete Florence, Andy Zeng, Jonathan Tompson, Igor Mordatch, Yevgen Chebotar, et al. Inner monologue: Embodied reasoning through planning with language models. arXiv preprint arXiv:2207.05608, 2022b. + +Siddharth Karamcheti, Megha Srivastava, Percy Liang, and Dorsa Sadigh. Lila: Language-informed latent actions. In CoRL, pp. 1379–1390, 2021. URL https : //proceedings .mlr .press/ vl64/karamcheti22a.html. + +Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. Large language models are zero-shot reasoners. arXiv preprint arXiv:2205.11916, 2022. + +Angeliki Lazaridou, Elena Gribovskaya, Wojciech Stokowiec, and Nikolai Grigorev. Internetaugmented language models through few-shot prompting for open-domain question answering. arXiv preprint arXiv:2203.05115, 2022. + +Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in Neural Information Processing Systems, 33: 9459–9474, 2020. + +Shuang Li, Xavier Puig, Chris Paxton, Yilun Du, Clinton Wang, Linxi Fan, Tao Chen, De-An Huang, Ekin Akyürek, Anima Anandkumar, Jacob Andreas, Igor Mordatch, Antonio Torralba, and Yuke Zhu. Pre-trained language models for interactive decision-making, 2022. URL ht tp s : //arxiv.org/abs/2202.01771. + +Aleksandr Romanovich Luria. Ls vygotsky and the problem of localization of functions. Neuropsychologia, 3(4):387–392, 1965. +Aman Madaan and Amir Yazdanbakhsh. Text and patterns: For effective chain of thought, it takes two to tango, 2022. URL https://arxiv.org/abs/2209.07686. +Vincent Micheli and Frangois Fleuret. Language models are few-shot butlers. arXiv preprint arXiv:2104.07972, 2021. +Reichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, Xu Jiang, Karl Cobbe, Tyna Eloundou, Gretchen Krueger, Kevin Button, Matthew Knight, Benjamin Chess, and John Schulman. Webgpt: Browser-assisted question-answering with human feedback, 2021. URL https : //arxiv. org/abs/2112.09332. +Maxwell Nye, Anders Johan Andreassen, Guy Gur-Ari, Henryk Michalewski, Jacob Austin, David Bieber, David Dohan, Aitor Lewkowycz, Maarten Bosma, David Luan, Charles Sutton, and Augustus Odena. Show your work: Scratchpads for intermediate computation with language models, 2021. URL https: //arxiv.org/abs/2112.00114. +Scott Reed, Konrad Zolna, Emilio Parisotto, Sergio Gomez Colmenarejo, Alexander Novikov, Gabriel Barth-Maron, Mai Gimenez, Yury Sulsky, Jackie Kay, Jost Tobias Springenberg, Tom Eccles, Jake Bruce, Ali Razavi, Ashley Edwards, Nicolas Heess, Yutian Chen, Raia Hadsell, Oriol Vinyals, Mahyar Bordbar, and Nando de Freitas. A generalist agent, 2022. URL ht tps : //arxiv.org/abs/2205.06175. +Mohit Shridhar, Jesse Thomason, Daniel Gordon, Yonatan Bisk, Winson Han, Roozbeh Mottaghi, Luke Zetlemoyer and Dieter Fox. Alfred: A benchmark for interpreting grounded instructions for everyday tasks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10740–10749, 2020a. +Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Coté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. Alfworld: Aligning text and embodied environments for interactive learning. arXiv preprint arXiv:2010.03768, 2020b. +Kurt Shuster, Mojtaba Komeili, Leonard Adolphs, Stephen Roller, Arthur Szlam, and Jason Weston. Language models that seek for knowledge: Modular search & generation for dialogue and prompt completion. arXiv preprint arXiv:2203.13224, 2022a. +Kurt Shuster ingXu Mojtaba Komei Da Ju Eric Michael mith, Stephen Roller, Megan U Moya Chen, Kushal Arora, Joshua Lane, Morteza Behrooz, William Ngan, Spencer Poff, Naman Goyal, Arthur Szlam, Y-Lan Boureau, Melanie Kambadur, and Jason Weston. Blenderbot 3: a deployed conversational agent that continually learns to responsibly engage, 2022b. URL https://arxiv.org/abs/2208.03188. +James Thorne, Andreas Vlachos, Christos Christodoulopoulos, and Arpit Mittal. Fever: a large-scale dataset for fact extraction and verifi cation. arXiv preprint arXiv: 1803.05355, 2018. +Lev S Vygotsky. Thinking and speech. The collected works of LS Vygotsky, 1:39–285, 1987. +Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models, 2022a.URL https://arxiv.org/abs/2203.11171. +Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, and Denny Zhou. Rationale-augmented ensembles in language models. arXiv preprint arXiv:2207.00747, 2022b. +Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models. arXiv preprint arXiv:2201.11903, 2022. +Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William W Cohen, Ruslan Salakhutdinov, and Christopher D Manning. Hotpotqa: A dataset for diverse, explainable multi-hop question answering. arXiv preprint arXiv:1809.09600, 2018. + +Shunyu Yao, Rohan Rao, Matthew Hausknecht, and Karthik Narasimhan. Keep CALM and explore: Language models for action generation in text-based games. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 8736–8754, Online, November 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.emnlp-main.704. URL https://aclanthology.org/2020.emnlp-main.704. Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. Webshop: Towards scalable real-world web interaction with grounded language agents. arXiv preprint arXiv:2207.01206, 2022. Eric Zelikman, Yuhuai Wu, Jesse Mu, and Noah D. Goodman. Star: Bootstrapping reasoning with reasoning, 2022. URL https://arxiv.org/abs/2203.14465. Denny Zhou, Nathanael Schärli, Le Hou, Jason Wei, Nathan Scales, Xuezhi Wang, Dale Schuurmans, Olivier Bousquet, Quoc Le, and Ed Chi. Least-to-most prompting enables complex reasoning in large language models, 2022. URL https : //arxiv.org/abs/2205.10625. Yunchang Zhu, Liang Pang, Yanyan Lan, Huawei Shen, and Xueqi Cheng. Adaptive information seeking for open-domain question answering. arXiv preprint arXiv:2109.06747, 2021. + +# A ADDITIONAL RESULTS + +A.1 GPT-3 ExPERIMENTS + +
PaLM-540BGPT-3
HotpotQA (exact match)29.430.8
ALFWorld (success rate %)70.978.4
+ +Table 5: ReAct prompting results using PaLM-540B vs. GPT-3 (text-davinci-002, greedy decoding). On HotpotQA, we randomly sample a subset of 500 validation questions. On ALFWorld, we use all 134 unseen validation task instances, and use the best prompt set according to PaLM-540B. + +We run additional GPT-3 (Brown et al., 2020) experiments to confirm ReAct prompting performance is general across different large language models. As shown in Table 5, GPT-3 (text-davinci-002, greedy decoding) consistently outperforms PaLM-540B on HotpotQA and ALFWorld, possibly because it is finetuned with human instruction following. This indicates ReAct prompting is effective across different large language models on diferent tasks. The code for these experiments are at https://react-lm.github.io/. + +# .2 REAcT OBTAINS UP-TO-DATE KNOWLEDGE ON HoTPoTQA + +(1) Hotspot QA (1d) ReAct (Reason + Act) +Question: How many rooms are in the hotel that is home to Thought 1: I need to search cirque du soleil show Mystere, +the Cirque du Soleil show Mystere? find the hotel it is in, then find the number of rooms in +HotpotQA label: 2, 664 Outdated tht h slarch[cirque du soleil show Mystere obs 1: Could not find Cirque du soleil show Mystere. (1a) standard (1c) Act-only similar:['cirque du soleil' +Answer: 3,000 Act 1: Search[Cirque du Soleil ] Thought 2: To find the hotel, I can search Mystere (Cirque obs 1: Cirque du Soleil is a du soleil). Canadian entertainment company. Act 2: search[Mystere (Cirque du Soleil) ] (1b) CoT (Reason Only) Act 2: Lookup[Mystere] obs 2: Mystère (my-steer) is Held in a custom theatre at +Thought: Let's think step Obs 2: No more results the Treasure Island Hotel and Casino $\cdots$ +y sep.he hotel tht is shostereirue d +Soleil show Mystere is obs 3: Could not find.. Treasure Island Hotel and Casino next and find the number olei SearchMystereCirque du +the answer is 2,885. obs 4: Mystère (my-steer) is and Treasure Island otel and Casin with2884 rms +Answer: 2,885 At 5: Lookup eare Island Thought 4: Treasure Island Hotel and Casino has 2, 884 rooms Hotel and Casino] and 220 suites. So the answer is 3,104. X . (end without answer) Act 4: Finish[3, 104] Up-to-date + +Figure 4: Another example HotpotQA question, where the original label is outdated. Only ReAct is able to obtain the up-to-date answer thanks to real-world web interaction plus reasoning. + +During trajectory inspection, we also find that sometimes ReAct does not agree with dataset labels as the labels themselves could be outdated. For example, as shown in Figure 4, the question asks about the size of a hotel, which increased from the HotpotQA construction time. While St andard and CoT give wrong answers due to hallucination, Act fails despite the access of real-world web interaction, due to a lack of reasoning to guide how to interact with the Internet for QA. Only ReAct is able to retrieve up-to-date information from the Internet and provide a reasonable answer. Therefore, better incorporation of reasoning abilities might benefit recent Internet-augmented language models (Nakano et al., 2021; Lazaridou et al., 2022; Shuster et al., 2022a) for up-to-date task solving. + +# A.3 HUMAN-IN-THE-LOOP BEHAVIOR CORRECTION ON ALFWoRLD + +We also explore human-in-the-loop interaction with ReAct, to allow a human to inspect and edit ReAct's reasoning traces. Figure 5 shows that by simply removing a hallucinating sentence in Act 17 and adding some hints in Act 23, ReAct can be made to change its behavior drastically to align with these human thought edits and succeed in the task. From a human perspective, solving such a task becomes significantly easier, from typing tens of actions to only editing a couple of thoughts, which enables new forms of human-machine collaboration. We note that such a policy edit on-the-go is difficult for Act and previous RL methods, as a human cannot change the model parameters, and changing a few actions might not edit the rest of the model behavior. This paradigm is also more than human dialogue to update the goal or subgoal as in Huang et al. (2022b) — while editing $_ { \mathrm { R e A c t } }$ thoughts can do these, it can also modify the model's internal belief, reasoning styles, or anything the flexible thought space supports, for better task solving. We believe this is an exciting direction for human alignment and leave more systematic study as future work. + +![](images/cd2e94d69f99658328815ba6ccee179d6aecd126347c9af7d744f9d58a151086.jpg) +Figure 5: A human-in-the-loop behavior correction example with ReAct in AlfWorld. (a) ReAct trajectory fails due to a hallucinating thought (Act 17). (b) By a human simply editing two thoughts (Act 17, 23), the ReAct trajectory produces desirable reasoning traces and actions and succeeds. + +# B EXPERIMENT DETAILS + +# B.1 HoTPOTQA FINETUNING DETAILS + +For all finetuning we use a batch size of 64. On PaLM-8B, we finetune ReAct and Act methods for 4, 000 steps and St andard and CoT methods for 2, 000 steps. On PaLM-62B, we finetune ReAct and Act methods for 4, 000 steps and st andard and CoT methods for 1, 00 steps. We find ReAct and Act methods generally benefit from more training steps (and more training data), while St an dard and CoT methods degrade soon after finetuning. + +# B.2 ALFWORLD IM-STYLE DETAILS + +For the IM-style ablation, the same expert trajectories used in ReAct are reannotated with dense external feedback thoughts within these trajectories, that limit ReAct – IM to only think about (1) decomposing the current goal and (2) the current subgoal that needs to be completed. In particular, ReAct–IM lacks thoughts that (1) determine when a subgoal is completed (2) determine what the next subgoal should be (3) inducing the LLM to refer to its internal pretraining knowledge to identify where items can be within the environment. + +# C PROMPTS + +# C.1 HOTPOTQA + +
Hotpot QA Prompts
Original QuestionWhat is the elevation range for the area that the eastern sector of the Colorado orogeny extends into?
Answer1,800 t0 7,000 ft
QuestionMusician and satirist Allie Goertz wrote a song about the "The Simpsons"
Answercharacter Milhouse, who Matt Groening named after who? Richard Nixon
QuestionWhich documentary is about Finnish rock groups, Adam Clayton Powell or The
AnswerSaimaa Gesture? The Saimaa Gesture
Question Answerwhat profession does Nicholas Ray and Elia Kazan have in common? director, screenwriter, actor
Question AnswerWhich magazine was started first Arthur's Magazine or First for Women? Arthur's Magazine
QuestionWere Pavel Urysohn and Leonid Levin known for the same type of work?
AnswerYes
Act Questionwhat is the elevation range for the area that the eastern sector of the
Action 1Colorado orogeny extends into? Search[colorado orogeny]
Observation 1The Colorado orogeny was an episode of mountain building (an orogeny) in
colorado and surrounding areas. Lookup[eastern sector]
Action 2 Observation 2(Result 1 / 1) The eastern sector extends into the High Plains and is called
the Central Plains orogeny. Search [High Plains]
Action 3 Observation 3High Plains refers to one of two distinct land regions:
Action 4Search [High Plains (United States)] The High Plains are a subregion of the Great Plains. From east to west, the
Observation 4High Plains rise in elevation from around 1,800 to 7,000 ft (550 to 2,130
m).[3] Finish[1,800 to 7,000 ft]
Action 5Musician and satirist Allie Goertz wrote a song about the "The Simpsons"
Questioncharacter Milhouse, who Matt Groening named after who?
Action1 Observation1Search [Milhouse] Milhouse Mussolini Van Houten is a recurring character in the Fox animated
television series The Simpsons voiced by Pamela Hayden and created by Matt Groening.
Action 2Lookup[named after] (Result 1 / 1) Milhouse was named after U.S. president Richard Nixon, whose
Observation 2middle name was Milhous.
Action 3Finish[Richard Nixon]
which documentary is about Finnish rock groups, Adam Clayton Powell or The
QuestionSaimaa Gesture?
Action 1Search[Adam Clayton Powell] Could not find [Adam Clayton Powell]. Similar: ['Adam Clayton Powell
Observation 1III','seventh Avenue (Manhattan)', 'Adam Clayton Powell Jr. state Office
Building','Isabel Washington Powell', 'Adam Powell', 'Adam Clayton Powell
(film)', 'Giancarlo Esposito'].
Search[Adam Clayton Powell (film)]
Action 2Adam Clayton Powell is a 1989 American documentary film directed by
Observation 2
Richard Kilberg. The film is about the rise and fall of influential
African-American politician Adam Clayton Powell Jr.[3] [4] It was later aired
as part of the PBs series The American Experience.
Action 3Finish [The Saimaa Gesture]
QuestionWhat profession does Nicholas Ray and Elia Kazan have in common?
search[Nicholas Ray]
Action1
Observation 1
Nicholas Ray (born Raymond Nicholas Kienzle Jr., August 7, 1911 – June 16,
1979) was an American film director, screenwriter, and actor best known for
Action 2
the 1955 film Rebel without a Cause.
Observation 2Search [Elia Kazan]
+ +Hotpot QA Prompts – Continued from previous page + +
ervation1
Action 2Search[First for Women] First for Women is a woman's magazine published by Bauer Media Group in the
Observation 2UsA.[1] The magazine was started in 1989.
Action 3Finish [Arthur's Magazine]
Question Action 1Were Pavel Urysohn and Leonid Levin known for the same type of work? Search[Pavel Urysohn]
Observation 1Pavel Samuilovich Urysohn (February 3, 1898 – August 17, 1924) was a Soviet
mathematician who is best known for his contributions in dimension theory.
Action 2Search [Leonid Levin] Leonid Anatolievich Levin is a Soviet-American mathematician and computer
Observation 2scientist.
Action 3Finish[yes]
COTwhat is the elevation range for the area that the eastern sector of the
QuestionColorado orogeny extends into? Let's think step by step. The eastern sector of Colorado orogeny extends
Thoughtinto the High Plains. High Plains rise in elevation from around 1,800 to 7,000 ft, so the answer is 1,800 to 7,000 ft.
Answer1,800 to 7,000 ft
QuestionMusician and satirist Allie Goertz wrote a song about the "The simpsons" character Milhouse, who Matt Groening named after who?
ThoughtLet's think step by step. Milhouse was named after U.S. president Richard Nixon, so the answer is Richard Nixon.
AnswerRichard Nixon
Questionwhich documentary is about Finnish rock groups, Adam Clayton Powell or The Saimaa Gesture?
ThoughtLet's think step by step. Adam Clayton Powell (film) is a documentary about an African-American politician, not Finnish rock groups. So the documentary
Answerabout Finnish rock groups must instead be The Saimaa Gesture. The Saimaa Gesture
QuestionWhat profession does Nicholas Ray and Elia Kazan have in common?
ThoughtLet's think step by step. Professions of Nicholas Ray are director, screenwriter, and actor. Professions of Elia Kazan are director, producer, screenwriter, and actor. So profession Nicholas Ray and Elia Kazan have in
Answercommon is director, screenwriter, and actor. director, screenwriter, actor
Questionwhich magazine was started first Arthur's Magazine or First for Women?
ThoughtLet's think step by step. Arthur's Magazine was started in 1844. First for Women was started in 1989. 1844 (Arthur's Magazine) < 1989 (First for
Women), so Arthur's Magazine was started first. Arthur's Magazine
Answerwere Pavel Urysohn and Leonid Levin known for the same type of work?
Question ThoughtLet's think step by step. Pavel Urysohn is a mathematician. Leonid Levin is a mathematician and computer scientist. So Pavel Urysohn and Leonid
Levin have the same type of work.
AnswerYes
ReAct Questionwhat is the elevation range for the area that the eastern sector of the
Thought1Colorado orogeny extends into? I need to search Colorado orogeny, find the area that the eastern sector
of the colorado orogeny extends into, then find the elevation range of the area.
Action 1Search[colorado orogeny]
Observation 1The Colorado orogeny was an episode of mountain building (an orogeny) in colorado and surrounding areas.
Thought2It does not mention the eastern sector. So I need to look up eastern
Action2sector. Lookup[eastern sector]
Observation 2(Result 1 / 1) The eastern sector extends into the High Plains and is called
the Central Plains orogeny.
Thought 3The eastern sector of Colorado orogeny extends into the High Plains. so I
need to search High Plains and find its elevation range.
Action 3Search [High Plains]
Observation 3High Plains refers to one of two distinct land regions
Though4
I need to instead search High Plains (United States).
Action 4Search[High Plains (United States)]
+ +Question + +
Thought 1The question simplifies to "The Simpsons" character Milhouse is named after who. I only need to search Milhouse and find who it is named after.
Action 1Search [Milhouse]
Observation 1Milhouse Mussolini Van Houten is a recurring character in the Fox animated television series The Simpsons voiced by Pamela Hayden and created by Matt
Groening. The paragraph does not tell who Milhouse is named after, maybe I can look up
Thought2"named after".
Action 2 Observation 2Lookup [named after] (Result 1 / 1) Milhouse was named after U.S. president Richard Nixon, whose
Thought 3middle name was Milhous. Milhouse was named after U.S. president Richard Nixon, so the answer is
Richard Nixon.
Action 3Finish [Richard Nixon]
QuestionWhich documentary is about Finnish rock groups, Adam Clayton Powell or The Saimaa Gesture?
Thought 1I need to search Adam Clayton Powell and The Saimaa Gesture, and find which documentary is about Finnish rock groups.
Action 1 Observation1Search[Adam Clayton Powell] Could not find [Adam Clayton Powell]. Similar: ['Adam Clayton Powell
III','Seventh Avenue (Manhattan)','Adam Clayton Powell Jr. State Office Building','Isabel Washington Powell','Adam Powell','Adam Clayton Powell
Thought 2(film)','Giancarlo Esposito']. To find the documentary, I can search Adam Clayton Powell (film).
Action 2 Observation 2Search[Adam Clayton Powell (film) ] Adam ciayton Powell is a 1989 American documentary film directed by
Richard Kilberg. The film is about the rise and fall of influential African-American politician Adam Clayton Powell Jr.[3] [4] It was later aired
Thought 3as part of the PBs series The American Experience. Adam Clayton Powell (film) is a documentary about an African-American
politician, not Finnish rock groups. so the documentary about Finnish rock groups must instead be The Saimaa Gesture.
Action 3Finish[The Saimaa Gesture]
QuestionWhat profession does Nicholas Ray and Elia Kazan have in common?
Thought1I need to search Nicholas Ray and Elia Kazan, find their professions, then find the profession they have in common.
Action 1Search [Nicholas Ray]
Observation 1Nicholas Ray (born Raymond Nicholas Kienzle Jr., August 7, 1911 – June 16, 1979) was an American film director, screenwriter, and actor best known for
the 1955 film Rebel Without a Cause.
Thought 2Professions of Nicholas Ray are director, screenwriter, and actor. I need to search Elia Kazan next and find his professions.
Action 2Search[Elia Kazan]
Observation 2Elia Kazan was an American film and theatre director, producer, screenwriter
and actor. Professions of Elia Kazan are director, producer, screenwriter, and actor.
Thought 3So profession Nicholas Ray and Elia Kazan have in common is director,
screenwriter, and actor.
Action 3Finish[director, screenwriter, actor]
which magazine was started first Arthur's Magazine or First for Women?
Question Thought 1I need to search Arthur's Magazine and First for Women, and find which was
started first.
Action 1Search [Arthur's Magazine]
Observation 1Arthur's Magazine (1844-1846) was an American literary periodical published
in Philadelphia in the 19th century.
Thought 2Arthur's Magazine was started in 1844. I need to search First for Women
next.
Action 2Search[First for Women]
Observation 2First for Women is a woman's magazine published by Bauer Media Group in the
UsA.[1] The magazine was started in 1989.
Thought 3First for Women was started in 1989. 1844 (Arthur's Magazine) < 1989 (First
for Women), so Arthur's Magazine was started first.
Action 3Finish [Arthur's Magazine]
were Pavel Urysohn and Leonid Levin known for the same type of work?
Question
Thought 1
I need to search Pavel Urysohn and Leonid Levin, find their types of work,
then find if they are the same.
Action 1
Search[Pavel Urysohn]
+ +Hotpot QA Prompts – Continued from previous page + +
Observation1Pavel Samuilovich Urysohn (February 3, 1898 – August 17, 1924) was a Sovietmathematician who is best known for his contributions in dimension theory.
Thought 2Pavel Urysohn is a mathematician. I need to search Leonid Levin next and
Action 2find its type of work. Search[Leonid Levin]
Observation 2Leonid Anatolievich Levin is a soviet-American mathematician and computer
Thought 3scientist.
Leonid Levin is a mathematician and computer scientist. So Pavel Urysohn
Action 3Finish[yes]and Leonid Levin have the same type of work.
+ +C.2 FEVER + +
FEVER Prompts
OriginalDetermine if there is Observation that suppoRTs or REFuTEs a Claim, or if there is NOT ENOUGH INFORMATION.
claimNikolaj Coster-waldau worked with the Fox Broadcasting Company.
AnswerSUPPORTS
claim AnswerStranger Things is set in Bloomington, Indiana. REFUTES
claimBeautiful reached number two on the Billboard Hot 100 in 2003. NOT ENOUGH INFO
Answer ActDetermine if there is Observation that suppoRTs or REFuTEs a Claim, or if there is NOT ENOUGH INFORMATION.
claim Action2 Observation 1Nikolaj Coster-waldau worked with the Fox Broadcasting Company. Search [Nikolaj Coster-Waldau] Nikolaj william Coster-Waldau (born 27 July 1970) is a Danish actor and producer. He graduated from the Danish National school of Performing Arts in Copenhagen in 1993, [1] and had his breakthrough role in Denmark with the film Nightwatch (1994). He played Jaime Lannister in the HBo fantasy drama series Game of Thrones, for which he received two Primetime Emmy Award nominations for Outstanding Supporting Actor in a Drama Series.. Coster-waldau has appeared in numerous films in his native Denmark and
(2013). In the U.S, his debut film role was in the war film Black Hawk Down (2001), playing Medal of Honor recipient Gary Gordon.[2] He then played a detective in the short-lived Fox television series New Amsterdam (2008), and appeared in the 20o9 Fox television film Virtuality, originally intended as apilot.
Action 2Finish[SUPPORTS] Stranger Things is set in Bloomington, Indiana.
Claim Action1 Observation1Search[stranger Things] Stranger Things is an American science fiction horror drama television series created by the Duffer Brothers. set in the 1980s, primarily in
the fictional town of Hawkins, Indiana, the series centers on a number of mysteries and supernatural events occurring around the town and their impact on an ensemble of child and adult characters.
Action 2Finish [REFUTES]
claim Action1Beautiful reached number two on the Billboard Hot 100 in 2003. Search[Beautiful]
Observation 1Could not find [Beautiful]. Similar: ['Beautiful','Beautiful, Beautiful', 'A Beautiful Mind (film)', 'Beautiful (Christina Aguilera song)', 'Life Is
Beautiful']. Search[Beautiful (Christina Aguilera song)
Action 2 Observation 2"Beautiful" is a song recorded by American singer Christina Aguilera for her fourth studio album, stripped (20o2).
Action 3Lookup[Billboard Hot 100] (Result 1 / 3) The song peaked at number two on the Billboard Hot 100 in the
Observation 3United states, where it was certified Gold for 500,o00 units shipped.
Action 4Finish [NOT ENOUGH INFO]
Determine if there is Observation that suppoRTs or REFuTEs a Claim, or if
COTthere is NOT ENOUGH INFORMATION.
Nikolaj Coster-waldau worked with the Fox Broadcasting Company.
claimNikolaj william Coster-waldau appeared in the 2009 Fox television film
Thought
Virtuality, so he has worked with the Fox Broadcasting Company.
SUPPORTS
Answer
claim
Stranger Things is set in Bloomington, Indiana.
Stranger Things is in the fictional town of Hawkins, Indiana, not in
Thought
Bloomington, Indiana.
Answer
REFUTES
Continued on next page
+ +Fever Prompts – Continued from previous page + +
claim Thought AnswerBeautiful reached number two on the Billboard Hot 100 in 2003. The song peaked at number two on the Billboard Hot 100 in the United states, but not sure if it was in 2003. NOT ENOUGH INFO
ReActDetermine if there is Observation that suPPoRTS or REFUTES a Claim, or if there is NOT ENOUGH INFORMATION.
claimNikolaj Coster-Waldau worked with the Fox Broadcasting Company. I need to search Nikolaj Coster-Waldau and find if he has worked with the
Thought1 Action 1Fox Broadcasting Company. Search[Nikolaj Coster-Waldau] Nikolaj William Coster-Waldau (born 27 July 1970) is a Danish actor and
Observation 1producer. He graduated from the Danish National School of Performing Arts in Copenhagen in 1993, [1] and had his breakthrough role in Denmark with the film Nightwatch (1994). He played Jaime Lannister in the HBo fantasy drama series Game of Thrones, for which he received two Primetime Emmy Award nominations for Outstanding Supporting Actor in a Drama Series.. Coster-Waldau has appeared in numerous films in his native Denmark and Scandinavia, including Headhunters (2011) and A Thousand Times Good Night (2013). In the U.S, his debut film role was in the war film Black Hawk Down
(2001), playing Medal of Honor recipient Gary Gordon.[2] He then played a detective in the short-lived Fox television series New Amsterdam (2008), and appeared in the 20o9 Fox television film virtuality, originally intended as a pilot.
Thought 2Because he "appeared in the 2oo9 Fox television film virtuality", he should have worked with the Fox Broadcasting Company. Finish[SUPPORTS]
Claim Thought1Stranger Things is set in Bloomington, Indiana. I should search for stranger Things, and see if it is set in Bloomington, Indiana.
Action 1Search [stranger Things] Stranger Things is an American science fiction horror drama television
Observation 1series created by the Duffer Brothers. set in the 198os, primarily in the fictional town of Hawkins, Indiana, the series centers on a number of mysteries and supernatural events occurring around the town and their impact
Thought 2on an ensemble of child and adult characters. The observation says that it is set in a "fictional town of Hawkins,
Action 2Indiana", so it is not set in Bloomington. Finish[REFUTES]
Beautiful reached number two on the Billboard Hot 100 in 2003.
Claim Thought 1I need to search the song Beautiful and find if it reached number two on the Billboard Hot 100 in 2003.
Action 1Search[Beautiful]
Observation 1Could not find [Beautiful]. Similar: ['Beautiful','Beautiful, Beautiful', 'A Beautiful Mind (film)','Beautiful (Christina Aguilera song)','Life Is
Beautiful']. From suggestions, I should search "Beautiful (Christina Aguilera song)" to
Thought 2find the song.
Action 2Search [Beautiful (Christina Aguilera song)] "Beautiful" is a song recorded by American singer Christina Aguilera for her
Observation 2fourth studio album, Stripped (2002).
Thought 3It does not mention Billboard, so I need to look up "Billboard Hot 10o" to find if it reached number two on it in 2003.
Action 3Lookup[Billboard Hot 100]
Observation 3(Result 1 / 3) The song peaked at number two on the Billboard Hot 100 in the
United states, where it was certified Gold for 5o0,ooo units shipped.
if it was in 2003. I am not sure if this claim is true or not.
It only says the song peaked at number two on the Billboard Hot ioo, but not
Thought 4
Action 4
Finish [NOT ENOUGH INFO]
+ +# C.3 WEBSHOP + +[B078GWRC1J] +Bright Citrus Deodorant by Earth Mama | Natural and Safe for +Sensitive Skin, Pregnancy and Breastfeeding, Contains Organic +Calendula 3-Ounce +\$10.99 +[B078GTKVXY] +Ginger Fresh Deodorant by Earth Mama | Natural and Safe for +Sensitive Skin, Pregnancy and Breastfeeding, Contains Organic +Calendula 3-Ounce +\$10.99 +[B08KBVJ4XN] +Barrel and Oak - Aluminum-Free Deodorant, Deodorant for Men +, Essential Oil-Based Scent, 24-Hour Odor Protection, Cedar +& Patchouli Blend, Gentle on Sensitive Skin (Mountain Sage, +2.7 oz, 2-Pack) +\$15.95 Action: click [B078GWRC1J] +Observation: +[Back to Search] +[Prev] +scent [assorted scents][bright citrus][calming lavender][ginger [fresh] simply non-scents] +size [travel set (4-pack)][3 ounce (pack of 1)][3-ounce (2 -pack)] +Bright Citrus Deodorant by Earth Mama I Natural and Safe for Sensitive Skin, Pregnancy and Breastfeeding, Contains Organic Calendula 3-Ounce +Price: $\$ 10.99$ +Rating: N.A. +[Description] +[Features] +[Reviews] +[Buy Now] + +Action: click[bright citrus] Observation: You have clicked bright citrus. + +Action: click[3 ounce (pack of 1)] Observation: You have clicked 3 ounce (pack of 1). + +Action: click[Buy Now] + +Action: think[B078GWRC1J and B078GTKVXY are bright citrus deodorant less then 50 dollars. I can check B078GWRC1J first. Observation: OK. + +Action: click [B078GWRC1J] +Observation: +[Back to Search] +[Prev] +scent [assorted scents][bright citrus][calming lavender][ginger [fresh] simply non-scents] +size [travel set (4-pack)][3 ounce (pack of 1)][3-ounce (2 -pack)] +Bright Citrus Deodorant by Earth Mama | Natural and Safe for Sensitive Skin, Pregnancy and Breastfeeding, Contains Organic Calendula 3-Ounce +Price: \$10.99 +Rating: N.A. +[Description] +[Features] +[Reviews] +[Buy Now] +Action: think[For 3 ounce bottle of bright citrus deodorant for sensitive skin, the item has options 'bright citrus' +and '3 ounce (pack of 1)' and seems good to buy.] +Observation: OK. +Action: click[bright citrus] +Observation: You have clicked bright citrus. +Action: click[3 ounce (pack of 1)] +Observation: You have clicked 3 ounce (pack of 1). +Action: click[Buy Now] + +# C.4 ALFWORLD + +You are in the middle of a room. Looking quickly around you, you see a cabinet 13, a cabinet 12, a cabinet 11, a cabinet 10, a cabinet 9, a cabinet 8, a cabinet 7, a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 1, a diningtable 1, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1. Your task is to: put a clean lettuce in diningtable. +$>$ think: To solve the task, I need to find and take a lettuce, then clean it with sinkbasin, then put it in diningtable. +OK. +> think: First I need to find a lettuce. A lettuce is more likely to appear in fridge (1), diningtable (1), sinkbasin (1), stoveburner (1-3), cabinet (1-13). I can check one by one, starting with fridge 1. +OK. +> go to fridge 1 +The fridge 1 is closed. +> open fridge 1 +You open the fridge 1. The fridge 1 is open. In it, you see a cup 3, a egg 2, a potato 3, and a potato 2. +> go to diningtable 1 +On the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a fork 2, a knife 2, a knife 1, a ladle 1, a lettuce 1, a mug 2, a mug 1, a pan 2, a peppershaker 1, a spatula 3, a tomato 2, and a tomato 1. +> think: Now I find a lettuce (1). Next, I need to take it. +OK. +$>$ take lettuce 1 from diningtable 1 +You pick up the lettuce 1 from the diningtable 1. +$>$ think: Now I take a lettuce (1). Next, I need to go to sinkbasin (1) and clean it. +OK. +> go to sinkbasin 1 +On the sinkbasin 1, you see a apple 2, a ladle 2, a spoon 1, and a tomato 3. > clean lettuce 1 with sinkbasin 1 +You clean the lettuce 1 using the sinkbasin 1. +$>$ think: Now I clean a lettuce (1). Next, I need to put it in/on diningtable 1. OK. +$>$ go to diningtable 1 +On the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a for 2, a knife 2, a knife 1, a ladle 1, a mug 2, a mug 1, a pan 2, a peppershaker 1, a spatula 3, a tomato 2, and a tomato 1. +> put lettuce 1 in/on diningtable 1 +You put the lettuce 1 in/on the diningtable 1. + +Table 9: An ReAct– IM prompt on the ALFWorld clean task. + +
You are in the middle of a room. Looking quickly around you, you see a cabinet 13, a cabinet 12, a cabinet 11, a cabinet 10, a cabinet 9, a cabinet 8, a cabinet
7, a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 1, a diningtable 1, a drawer 1, a fridge 1, a
garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a
stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: put a clean lettuce in diningtable.
> think: To solve the task, I need to find and take a lettuce, then clean it with
OK.sinkbasin, then put it in diningtable.
> think: First I need to find a lettuce.
OK.
> go to fridge 1
The fridge 1 is closed.
> think: First I need to find a lettuce.
OK. > open fridge 1
You open the fridge 1. The fridge 1 is open. In it, you see a cup 3, a egg 2, a
potato 3, and a potato 2.
OK.> think: First I need to find a lettuce.
>go to diningtable 1
on the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a
fork 2, a knife 2, a knife 1, a ladle 1, a lettuce 1, a mug 2, a mug 1, a pan 2, a
peppershaker 1, a spatula 3, a tomato 2, and a tomato 1.
OK.> think: First I need to find a lettuce.
> take lettuce 1 from diningtable 1
You pick up the lettuce 1 from the diningtable 1.
> think: I need to clean this lettuce (1) using sinkbasin 1.
OK.
>go to sinkbasin 1
On the sinkbasin 1, you see a apple 2, a ladle 2, a spoon 1, and a tomato 3.
OK.> think: I need to clean this lettuce (1) using sinkbasin 1.
> clean lettuce 1 with sinkbasin 1
> think: I need to put this cleaned lettuce (1) in/on diningtable 1.You clean the lettuce 1 using the sinkbasin 1.
OK.
>go to diningtable 1
on the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a for
2, a knife 2, a knife 1, a ladle 1, a mug 2, a mug 1, a pan 2, a peppershaker 1, a
spatula 3, a tomato 2, and a tomato 1.
>think: I need to put this cleaned lettuce (1) in/on diningtable 1.
OK. > put lettuce 1 in/on diningtable 1
+ +D TRAJECTORIES + +# D.1 FEVER TRAJECTORIES + +We provide some trajectories produced by ReAct, CoTand Acton several randomly selected examples from the FEVER dev set below. Search results are omitted to space. + +Example 2491 (gt: REFUTES) + +
ReAct
Claim:Bermuda Triangle is a loosely-defined region in the Pacific Ocean.
Thought 1:I need to search Bermuda Triangle and find if it is in the Pacific Ocean.
Action 1:Search [Bermuda Triangle]
Observation 1:Reportedly haunted locations...
Thought 2:Ocean, so it is not in the Pacific Ocean.The observation says that it is in the western part of the North Atlantic
Action 2:Finish [REFUTES]
Observation 2:Episode finished
Act
Claim:Bermuda Triangle is a loosely-defined region in the Pacific Ocean.
Action1: Search [Bermuda Triangle]
Observation1: Reportedly haunted locations:...
Action 2:Finish [REFUTES]
Observation 2:Episode finished
COT
Claim:Bermuda Triangle is a loosely-defined region in the Pacific Ocean.
Thought:Let's think step by step. The Bermuda Triangle is a loosely-defined region
Answer:REFUTESin the Atlantic Ocean. The Pacific Ocean is not the Atlantic Ocean.
+ +Example 5908 (gt: SUPPORTS) + +
ReAct
Claim:Princess Mononoke is a film.I need to search Princess Mononoke and find if it is a film.
Thought 1:
Action 1:Search [Princess Mononoke]
Observation 1:Princess Mononoke
Thought 2:From the observation, it says that Princess Mononoke is a film.
Action 2:Finish[SUPPORTS]
Observation 2:Episode finished
Act
Claim:Princess Mononoke is a film.
Action 1:Search [Princess Mononoke]
Observation 1:Princess Mononoke
Action 2:Finish [SUPPORTS]
Observation 2:Episode finished
COT Claim:
Thought:Princess Mononoke is a film.Let's think step by step. Princess Mononoke is a movie, and movies are
films.
Answer:SUPPORTS
+ +Example 1951 (gt: REFUTES) + +
ReAct
Claim:Soyuz was part of the American space program.
Thought 1:I need to search Soyuz and find if it was part of the American space program.
Action 1:Search [Soyuz]
Observation 1:Soyuz is a transliteration...
Thought 2:It does not mention the American space program, so I need to search
"American space program" to find if it was part of it.
Action 2:Search [American space program]
Observation 2:The space policy...
Thought 3:It does not mention Soyuz, so I am not sure if this claim is true or not.
Action 3:Finish [NOT ENOUGH INFO]
Observation 3:Episode finished
Act
Claim:Soyuz was part of the American space program.
Action 1:Search [Soyuz]
Observation 1:Soyuz is a transliteration...
Action 2:
Observation 2:Finish [NOT ENOUGH INFO]
Episode finished
COT
Claim:Soyuz was part of the American space program.
Thought:Let's think step by step. Soyuz is a Russian spacecraft. The American
space program is NASA. NAsA and Russia have worked together on the
International Space Station.
Answer:
SUPPORTS
+ +Example 3208 (gt: REFUTES) + +
ReAct
Claim:I need to search for Reign Over Me and find if it is an American film madeReign Over Me is an American film made in 2010.
Thought 1:in 2010.
Action 1:Search [Reign Over Me]
Observation 1: Thought 2:Reign Over Me ...
made in 2010.The observation says that it is an American film made in 2007, so it is not
Action 2:Finish [REFUTES]
Observation 2:Episode finished
Act
Claim:Reign Over Me is an American film made in 2010.
Action 1:Search [Reign Over Me]
Action 2:Finish [SUPPORTS]
Observation 2:Episode finished
COT
Claim:Reign Over Me is an American film made in 2010.
Thought:Let's think step by step. First, is Reign Over Me an American film?Yes,
it is. Second, was it made in 2010? Yes, it was.
Answer:
SUPPORTS
+ +# D.2 ALFWORLD TRAJECTORIES + +We provide an example trajectory of ReAct, Act, and ReAct – IM on the same ALFWorld game, pick_clean_then_place_in_recep-Knife-None-CounterTop-10/ trial_T20190909_110445_675754. + +D.2.1 REACT TRAJECTORY + +ReAct is able to correctly find the knife, clean it, and then place it on a countertop. + +ReAct ALFWorld trajectory + +
You are in the middle of a room.Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a
countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasil1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster
1. Your task is to: put a clean knife in countertop.
> think: To solve the task, I need to find and take a knife, then clean it with
sinkbasin, then put it in countertop.
OK.
> think: First I need to find a knife. A knife is more likely to appear in cabinet
(1-6), drawer (1-3), countertop (1-3), fridge (1), garbagecan (1), shelf (1-3),
cabinet 1.sinkbasin (1), stoveburner (1-4), toaster (1). I can check one by one, starting wit)
OK.
> go to cabinet 1
> go to cabinet 2on the cabinet 1, you see a bowl 1.
> go to cabinet 3The cabinet 2 is closed.
On the cabinet 3, you see a glassbottle 1.
> go to cabinet 4
> go to cabinet 5On the cabinet 4, you see a mug 1.
The cabinet 5 is closed. > go to cabinet 6
The cabinet 6 is closed.
> go to drawer 1
> go to drawer 2The drawer 1 is closed.
The drawer 2 is closed.
> go to drawer 3
The drawer 3 is closed.
> go to countertop 1
> go to countertop 2on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
On the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a knife 1, a
plate 2, a potato 3, and a statue 1.
> think: Now I find a knife (1). Next, I need to take it.
OK.
> take knife 1 from countertop 2
You pick up the knife 1 from the countertop 2.
OK.> think: Now I take a knife (1). Next, I need to go to sinkbasin (1) and clean it.
> go to sinkbasin 1
On the sinkbasin 1, you see a fork 3, a lettuce 3, and a spatula 2.
> clean knife 1 with sinkbasin 1
You clean the knife 1 using the sinkbasin 1.
> think: Now I clean a knife (1). Next, I need to put it in/on countertop 1.
OK.
> go to countertop 1
on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
+ +# D.2.2 ACT TRAJECTORY + +Act is able to correctly ind the knife, but tries to clean it using a sinkbasin before actually going to the sinkbasin. From there on, the model is unable to recover, and is stuck repeating the same sequence of commands. With ReAct, an existing thought would have concretely identifed that the knife had been taken, and that the next subgoal was to go to a sinkbasin to clean it. + +Act ALFWorld trajectory + +
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster
Your task is to: put a clean knife in countertop. > go to countertop 1 on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2. > go to countertop 2 on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a knife 1, a
plate 2, a potato 3, and a statue 1. > take knife 1 from countertop 2 > go to countertop 1You pick up the knife 1 from the countertop 2.
> clean knife 1 with sinkbasin 1 Nothing happens. > go to countertop 3on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
2, a tomato 1, and a vase 2.on the countertop 3, you see a bread 3, a butterknife 2, a cellphone 1, a creditcard 1, a fork 2, a houseplant 1, a knife 2, a spatula 1, a statue 3, a tomato 3, a tomato
> take knife 2 from countertop 3 Nothing happens. > go to countertop 2
potato 3, and a statue 1.on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a plate 2, a
Nothing happens.
> take knife 1 from countertop 2
> go to countertop 1
> clean knife 1 with sinkbasin 1on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
Nothing happens.
> go to countertop 3
2, a tomato l, and a vase 2.on the countertop 3, you see a bread 3, a butterknife 2, a cellphone 1, a creditcard
> take knife 2 from countertop 31, a fork 2, a houseplant 1, a knife 2, a spatula 1, a statue 3, a tomato 3, a tomato
Nothing happens.
> go to countertop 2
potato 3, and a statue 1.on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a plate 2, a
Nothing happens.> take knife 1 from countertop 2
> go to countertop 1
> clean knife 1 with sinkbasin 1on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
Nothing happens.
> go to countertop 3
1, a fork 2, a houseplant 1, a knife 2, a spatula 1, a statue 3, a tomato 3, a tomatoon the countertop 3, you see a bread 3, a butterknife 2, a cellphone 1, a creditcard
2, a tomato 1, and a vase 2.
> take knife 2 from countertop 3
Nothing happens.
> go to countertop 2
on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a plate 2, a
potato 3, and a statue 1.
> take knife 1 from countertop 2
Nothing happens.
> go to countertop 1
on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
> clean knife 1 with sinkbasin 1
+ +# D.2.3 REACT-IM TRAJECTORY + +ReAct –IM is able to correctly find the knife, but is unable to clean it as well. The LLM then gets stuck trying to place this knife on a countertop. One possible issue is the incorrect thought think: I need to find a clean knife., which seems to trick the LLM in believing that the knife is already cleaned. In ReAct, this sequence of subgoals would be concretely captured by each thought. + +ReAct–IM ALFWorld trajectory + +
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbas 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaste: 1. Your task is to: put a clean knife in countertop. > think: To solve the task, I need to find and take a clean knife, then put it in countertop. OK. > think: I need to find a clean knife.
+ +Table 10: Example trajectories for Webshop predicted by Act and ReAct. Compared to Act, ReAct uses reasoning to find products that satisfy all target attributes. + +
Instruction: get me a sixteen pack of apple cinnamon freeze dried banana chips, and price lower than 50.00 dollars
ActReAct
Action: search [sixteen pack apple cinnamon freeze dried bananaAction: seareh [sixteen pack apple cinnamon freeze dried banana
chips] Observation:chips] Observation:
[ Back to Search ][ Back to Search]
Page 1 (Total results: 50)Page 1 (Total results: 50)
[Next][Nex]
[B0061IVFZE][B0061IVFZE]
Brothers-ALL-Natural Fruit Crisps, Strawberry Banana, 0.42 - Ounce (Pack of 100)Brothers-ALL-Natural Fruit Crisps, Strawberry Banana, 0.42 - Ounce (Pack of 100)
$85.0$85.0
[B096H2P6G2] Moon Fruit Freeze Dried Fruit Snacks. Fruit Snacks for Kids -[B096H2P6G2] Moon Fruit Freeze Dried Fruit Snacks. Fruit Snacks for Kids -
(Variety Pack) $18.99(Variety Pack) $18.99
[B092JLLYK6][B092JLLYK6]
Nature's Turn Freeze-Dried Fruit Snacks - Banana Crisps - Perfect For School Lunches or an On-The-Go Snack - No Sugar Added,Nature's Turn Freeze-Dried Fruit Snacks - Banana Crisps - Perfect For School Lunches or an On-The-Go Snack - No Sugar Added,
Non GMO, Gluten Free, Nothing Artificial (0.53oz) 6-Pack $12.99Non GMO, Gluten Free, Nothing Artificial (0.53oz) 6-Pack $12.99
Action: click [B0061IVFZE]Action: think[B0061IVFZE is strawberry banana, not apple cinnamon.
Observation:B096H2P6G2 is fruit snacks, not freeze dried banana chips. B092LLYK is banana crisps, not apple cinnamon.I can che
[Back to Search] [Prev]B092JLLYK6 first.
flavor name [asian pear][bananalfuj apple & cinnamon][strawberryObservation: OK.
banana] Brothers-ALL-Natural Fruit Crisps, Strawberry Banana,
0.42 Ounce (Pack of 100)Action: click[B092JLLYK6]
Price: $85.0Observation:
Rating: N.A.[Back to Search]
[Description][Prev]
[Features]fiavor name [aple]lapple cinnamon][banana][cantaloupepeach][pear]
[Reviews][strawberry strawberry bananal[sampler variety pack][mega variety
[Buy Now]pack][orchard variety pack]
size [0.53 ounce (pack of 6)][0.53 ounce (pack of 8)]I0.53 ounce (pack
Action: click[Buy Now]of 16)] Nature's Turn Freeze-Dried Fruit Snacks - Banana Crisps - Perfect
For School Lunches or an On-The-Go Snack - No Sugar Added, Non
GMO, Gluten Free, Nothing Artificial (0.53oz) 6-Pack
Price: $12.99
Rating: N.A.
[Description]
[Features]
[Reviews]
[Buy Now]
Action: think[For sixteen pack of apple cinnamon freeze dried banana
chips, the item has options 'apple cinnamon' and '0.53 ounce (pack of
16)' and seems good to buy.] Observation: OK.
Action: click[apple cinnamon]
Observation: You have clicked apple cinnamon.
Action: click[0.53 ounce (pack of 16)]
Observation: You have clicked 0.53 ounce (pack of 16).
Action: click[Buy Now]
Score: 0.125
Score: 1.0
+ +# E MoRE ANALYSIS + +# E.1 SuccESS AND FAILURE MoDEs ANALYsIS + +We provide some examples corresponding to the success and error mode analysis given in Sec. 3.3. +Search results and non-representative steps are omitted to reduce space. + +
Success: True positive
ReAct
Question:Author David Chanoff has collaborated with a U.S. Navy admiral who served as the ambassador to the United Kingdom under which President?
Thought 1:I need to search David Chanoff and find the U.S. Navy admiral he
Action 1:collaborated with. Search [David Chanoff]
Observation 1:David Chanoff is a noted author...
Action 2:Search [william J. Crowe]
Observation 2:William J. Crowe is...
Thought 3:william J. Crowe served as the ambassador to the United Kingdom under
Action 3:President Bill Clinton. So the answer is Bill Clinton. Finish [Bill Clinton]
Observation 3:Episode finished
CoT
Question:What was the name of the team that represented an Arizona university in
Thought:the conference that covers a broad expanse of the western United States, including Arizona, California, and New Mexico? Let's think step by step. The name of the team that represented an Arizona
university in the conference that covers a broad expanse of the western United States, including Arizona, California, and New Mexico is Arizona
Answer:State Sun Devils. Arizona State Sun Devils
+ +Success: False positive + +
ReAct
Question:Did the board game San Marco or About Time come out first?
Thought 1:I need to search San Marco and About Time, and find which came out first. Search[San Marco]
Action 1: Observation 1:San Marco is one of the ... The was built in venice.
Thought 2:San Marco is a sestiere of Venice. I need to search About Time next.
Action 2:
Observation 2:Could not find [About Time]. Similar: [...].
Thought 3:About Time is a 2013 film. so San Marco came out first.
Action 3: Observation 3:
CoTEpisode finished
Question:Was Vanderbilt University or Emory University founded first?
Thought:Let's think step by step. Vanderbilt University was founded in 1873. Emory
University was founded in 1836. 1873 (Vanderbilt University) > 1836 (Emory
University), so Vanderbilt University was founded first.
Answer:Emory University
+ +Failure: Reasoning error + +
ReAct
Question:what was the middle name of the actress who was cast alongside Harvey Fierstein, Linda Hart, Dick Latessa, Clarke Thorell, Mary Bond Davis, Laura
Bell Bundy, Matthew Morrison, Corey Reynolds, and Marissa Jaret Winokur in Hairspray?
Thought 1:I need to search Harvey Fierstein, Linda Hart, Dick Latessa, Clarke Thorell, Mary Bond Davis, Laura Bell Bundy, Matthew Morrison, Corey Reynolds, and
Marissa Jaret Winokur, find the actress that was cast alongside them in Hairspray, then find its middle name.
Action 1:Search [Harvey Fierstein]
Observation 1: Thought 2:Harvey Forbes Fierstein Harvey Fierstein is an actor, playwright, and screenwriter. I need to
search Linda Hart next...
Action 2:
Search[Linda Hart] ...
CoT
Question:Who is older Danny Green or James Worthy?
Thought:
Let's think step by step. Danny Green was born in 1987. James Worthy was
born in 1961. 1987 (Danny Green) > 1961 (James Worthy), so Danny Green is
older.
Answer:
+ +Failure: Search error + +
ReAct Question:What does the goddess associated with the goddess frigg consists of what
tales?
Thought 1:I need to search goddess frigg and find its associated goddess.
Action 1: Observation 1:Search [goddess frigg]
Could not find goddess frigg. Similar: ['Frigg','Frigg and Freyja common origin hypothesis', 'Freyja (section Relation to Frigg and other goddesses
and figures)', 'Eir (redirect from Eir (goddess))', 'Baldr'].
Thought 2:I need to search Frigg instead...
+ +Failure: Hallucination + +
CoT
Question:what was the first year a scientific journal published by an organization located in the Bronx was published?
Thought:Let's think step by step. The first year a scientific journal published by an organization located in the Bronx was published was 1916.
Answer:1916(Label:1909)
+ +Failure: Label ambiguity + +
ReActwhat nationality is the man who developed the dictator game?
Question: Thought 1:nationality.I need to search dictator game, find the man who developed it, then find his
Action 1:Search [dictator game]
Observation 1:The dictator game is a popular experimental instrument in social psychology
Action 3:and economics...
Observation 3:Search [Amos Tversky] Amos Nathan Tversky..
Thought 4:Amos Tversky is an Israeli cognitive and mathematical psychologist. So the
man who developed the dictator game is Israeli.
Action 4:Finish[Israeli] (label:Israel-American)
CoT
Question:Kurt Fuller from Stockton, CA appeared in which American Detective Comedy
Drama television series created by Steve Franks?
Thought:Let's think step by step. Kurt Fuller from Stockton, CA appeared in Psych.
Psych is an American Detective Comedy Drama television series created by
Steve Franks.
Answer:Psych (label: Psych is an American detective comedy-drama)
\ No newline at end of file diff --git a/backend/ingestion_pipeline/output/React_paper/auto/React_paper_content_list.json b/backend/ingestion_pipeline/output/React_paper/auto/React_paper_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..2906f9256286399c641ec0c30c8f718d07e28a3e --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/React_paper_content_list.json @@ -0,0 +1,925 @@ +[ + { + "type": "text", + "text": "REAct: SyNERGIzING REASoNING AND AcTING IN LANGUAGE MODELS ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "Shunyu $\\mathrm { Y a o } ^ { * , 1 }$ , Jeffrey Zhao2, Dian $\\mathrm { Y u } ^ { 2 }$ , Nan $\\mathrm { D u } ^ { 2 }$ , Izhak Shafran2, Karthik Narasimhan1, Yuan Cao2 ", + "page_idx": 0 + }, + { + "type": "text", + "text": "1Department of Computer Science, Princeton University 2Google Research, Brain team 1{shunyuy,karthikn}@princeton.edu ²{jeffreyzhao,dianyu,dunan,izhak,yuancao} @google.com ", + "page_idx": 0 + }, + { + "type": "text", + "text": "ABSTRACT ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "While large language models (LLMs) have demonstrated impressive performance across tasks in language understanding and interactive decision making, their abilities for reasoning (e.g. chain-of-thought prompting) and acting (e.g. action plan generation) have primarily been studied as separate topics. In this paper, we explore the use of LLMs to generate both reasoning traces and task-specific actions in an interleaved manner, allowing for greater synergy between the two: reasoning traces help the model induce, track, and update action plans as well as handle exceptions, while actions allow it to interface with and gather additional information from external sources such as knowledge bases or environments. We apply our approach, named ReAct, to a diverse set of language and decision making tasks and demonstrate its effectiveness over state-of-the-art baselines in addition to improved human interpretability and trustworthiness. Concretely, on question answering (HotpotQA) and fact verification (Fever), ReAct overcomes prevalent issues of hallucination and error propagation in chain-of-thought reasoning by interacting with a simple Wikipedia API, and generating human-like task-solving trajectories that are more interpretable than baselines without reasoning traces. Furthermore, on two interactive decision making benchmarks (ALFWorld and WebShop), ReAct outperforms imitation and reinforcement learning methods by an absolute success rate of $34 \\%$ and $10 \\%$ respectively, while being prompted with only one or two in-context examples. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "1 INTRODUCTION ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "A unique feature of human intelligence is the ability to seamlessly combine task-oriented actions with verbal reasoning (or inner speech, Alderson-Day & Fernyhough, 2015), which has been theorized to play an important role in human cognition for enabling self-regulation or strategization (Vygotsky, 1987; Luria, 1965; Fernyhough, 2010) and maintaining a working memory (Baddeley, 1992). Consider the example of cooking up a dish in the kitchen. Between any two specific actions, we may reason in language in order to track progress (\"'now that everything is cut, I should heat up the pot of water'), to handle exceptions or adjust the plan according to the situation (\"I don't have salt, so let me use soy sauce and pepper instead\"), and to realize when external information is needed (\"how do I prepare dough? Let me search on the Internet'). We may also act (open a cookbook to read the recipe, open the fridge, check ingredients) to support the reasoning and to answer questions (\"What dish can I make right now?\"). This tight synergy between \"acting'\" and \"reasoning'\" allows humans to learn new tasks quickly and perform robust decision making or reasoning, even under previously unseen circumstances or facing information uncertainties. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Recent results have hinted at the possibility of combining verbal reasoning with interactive decision making in autonomous systems. On one hand, properly prompted large language models (LLMs) have demonstrated emergent capabilities to carry out several steps of reasoning traces to derive answers from questions in arithmetic, commonsense, and symbolic reasoning tasks (Wei et al. 2022). However, this \"chain-of-thought'\" reasoning is a static black box, in that the model uses its own internal representations to generate thoughts and is not grounded in the external world, which limits its ability to reason reactively or update its knowledge. This can lead to issues like fact hallucination and error propagation over the reasoning process (Figure 1 (1b)). On the other hand, recent work has explored the use of pre-trained language models for planning and acting in interactive environments (Ahn et al., 2022; Nakano et al., 2021; Yao et al., 2020; Huang et al., 2022a), with a focus on predicting actions via language priors. These approaches usually convert multi-modal observations into text, use a language model to generate domain-specifi c actions or plans, and then use a controller to choose or execute them. However, they do not employ language models to reason abstractly about high-level goals or maintain a working memory to support acting, barring Huang et al. (2022b) who perform a limited form of verbal reasoning to reiterate spatial facts about the current state. Beyond such simple embodied tasks to interact with a few blocks, there have not been studies on how reasoning and acting can be combined in a synergistic manner for general task solving, and if such a combination can bring systematic benefits compared to reasoning or acting alone. ", + "page_idx": 0 + }, + { + "type": "image", + "img_path": "images/69d01dabe525b457a0dea4899633824d7c6a020e8bcd57f87b2f5c5cc3dae77c.jpg", + "image_caption": [ + "Figure 1: (1) Comparison of 4 prompting methods, (a) St andard, (b) Chain-of-thought (CoT, Reason Only), (c) Act-only, and (d) ReAct (Reason+Act), solving a HotpotQA (Yang et al., 2018) question. (2) Comparison of (a) Act-only and (b) ReAct prompting to solve an AlfWorld (Shridhar et al., 2020b) game. In both domains, we omit in-context examples in the prompt, and only show task solving trajectories generated by the model (Act, Thought) and the environment (Obs). " + ], + "image_footnote": [], + "page_idx": 1 + }, + { + "type": "text", + "text": "", + "page_idx": 1 + }, + { + "type": "text", + "text": "In this work, we present ReAct, a general paradigm to combine reasoning and acting with language models for solving diverse language reasoning and decision making tasks (Figure 1). ReAct prompts LLMs to generate both verbal reasoning traces and actions pertaining to a task in an interleaved manner, which allows the model to perform dynamic reasoning to create, maintain, and adjust high-level plans for acting (reason to act), while also interact with the external environments (e.g. Wikipedia) to incorporate additional information into reasoning (act to reason). ", + "page_idx": 1 + }, + { + "type": "text", + "text": "We conduct empirical evaluations of ReAct and state-of-the-art baselines on four diverse benchmarks: question answering (HotPotQA, Yang et al., 2018), fact verification (Fever, Thorne et al., 2018), text-based game (ALFWorld, Shridhar et al., 2020b), and webpage navigation (WebShop, Yao et al., 2022). For HotPotQA and Fever, with access to a Wikipedia API that the model can interact with, ReAct outperforms vanilla action generation models while being competitive with chain-ofthought reasoning (CoT) (Wei et al., 2022). The best approach overallis a combination of ReAct and CoT that allows for the use of both internal knowledge and externally obtained information during reasoning. On ALFWorld and WebShop, two or even one-shot ReAct prompting is able to outperform imitation or reinforcement learning methods trained with $1 0 ^ { 3 } \\sim \\mathrm { { 1 0 ^ { 5 } } }$ task instances, with an absolute improvement of $34 \\%$ and $10 \\%$ in success rates respectively. We also demonstrate the importance of sparse, versatile reasoning in decision making by showing consistent advantages over controlled baselines with actions only. Besides general applicability and performance boost, the combination of reasoning and acting also contributes to model interpretability, trustworthiness, and diagnosability across all domains, as humans can readily distinguish information from model's internal knowledge versus external environments, as well as inspect reasoning traces to understand the decision basis of model actions. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "To summarize, our key contributions are the following: (1) we introduce ReAct, a novel promptbased paradigm to synergize reasoning and acting in language models for general task solving; (2) we perform extensive experiments across diverse benchmarks to showcase the advantage of ReAct in a few-shot learning setup over prior approaches that perform either reasoning or action generation in isolation; (3) we present systematic ablations and analysis to understand the importance of acting in reasoning tasks, and reasoning in interactive tasks; (4) we analyze the limitations of ReAct under the prompting setup (i.e. limited support of reasoning and acting behaviors), and perform initial fi netuning experiments showing the potential of ReAct to improve with additional training data. Scaling up ReAct to train and operate on more tasks and combining it with complementary paradigms like reinforcement learning could further unlock the potential of large language models. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "2 REAcT: SYNERGIZING REASONING $^ +$ ACTING ", + "text_level": 1, + "page_idx": 2 + }, + { + "type": "text", + "text": "Consider a general setup of an agent interacting with an environment for task solving. At time step $t$ , an agent receives an observation $o _ { t } \\in \\mathcal { O }$ from the environment and takes an action $a _ { t } \\in { \\mathcal { A } }$ following some policy $\\pi ( a _ { t } | c _ { t } )$ , where $c _ { t } = \\left( o _ { 1 } , a _ { 1 } , \\cdot \\cdot \\cdot , o _ { t - 1 } , a _ { t - 1 } , o _ { t } \\right)$ is the context to the agent. Learning a policy is challenging when the mapping $c _ { t } \\mapsto a _ { t }$ is highly implicit and requires extensive computation. For example, the agent shown in Figure 1(lc) is unable to generate the correct final action (Act 4) to finish the QA task as it requires complex reasoning over the trajectory context (Question, Act 1-3, Obs 1-3). Similarly, the agent shown in Figure 1(2a) fails to comprehend from the context that sinkbasin 1 does not contain peppershaker 1, thus keep producing hallucinating actions. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "The idea of ReAct is simple: we augment the agent's action space to ${ \\hat { \\mathcal { A } } } = { \\mathcal { A } } \\cup { \\mathcal { L } }$ , where $\\mathcal { L }$ is the space of language. An action $\\hat { a } _ { t } \\in \\mathcal { L }$ in the language space, which we will refer to as a thought or a reasoning trace, does not affect the external environment, thus leading to no observation feedback. Instead, a thought $\\hat { a } _ { t }$ aims to compose useful information by reasoning over the current context $c _ { t }$ , and update the context $\\boldsymbol c _ { t + 1 } = \\left( c _ { t } , \\hat { a } _ { t } \\right)$ to support future reasoning or acting. As shown in Figure 1, there could be various types of useful thoughts, e.g. decomposing task goals and create action plans (2b, Act 1; 1d, Thought 1), injecting commonsense knowledge relevant to task solving (2b, Act 1), extracting important parts from observations (1d, Thought2, 4), track progress and transit action plans (2b, Act 8), handle exceptions and adjust action plans (1d, Thought 3), and so on. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "However, as the language space $\\mathcal { L }$ is unlimited, learning in this augmented action space is difficult and requires strong language priors. In this paper, we mainly focus on the setup where a frozen large language model, PaLM-540B (Chowdhery et al., 2022)1, is prompted with few-shot in-context examples to generate both domain-specifc actions and free-form language thoughts for task solving (Figure 1 (1d), (2b)). Each in-context example is a human trajectory of actions, thoughts, and environment observations to solve a task instance (see Appendix C). For the tasks where reasoning is of primary importance (Figure 1(1), we alternate the generation of thoughts and actions so that the task-solving trajectory consists of multiple thought-action-observation steps. In contrast, for decision making tasks that potentially involve a large number of actions (Figure 1(2)), thoughts only need to appear sparsely in the most relevant positions of a trajectory, so we let the language model decide the asynchronous occurrence of thoughts and actions for itself. ", + "page_idx": 2 + }, + { + "type": "text", + "text": "", + "page_idx": 3 + }, + { + "type": "text", + "text": "Since decision making and reasoning capabilities are integrated into a large language model, ReAct enjoys several unique features: A) Intuitive and easy to design: Designing ReAct prompts is straightforward as human annotators just type down their thoughts in language on top of their actions taken. No ad-hoc format choice, thought design, or example selection is used in this paper. We detail prompt design for each task in Sections 3 and 4. B) General and flexible: Due to the flexible thought space and thought-action occurrence format, ReAct works for diverse tasks with distinct action spaces and reasoning needs, including but not limited to QA, fact verification, text game, and web navigation. C) Performant and robust: ReAct shows strong generalization to new task instances while learning solely from one to six in-context examples, consistently outperforming baselines with only reasoning or acting across different domains. We also show in Section 3 additional benefits when finetuning is enabled, and in Section 4 how ReAct performance is robust to prompt selections. D) Human aligned and controllable: ReAct promises an interpretable sequential decision making and reasoning process where humans can easily inspect reasoning and factual correctness. Moreover, humans can also control or correct the agent behavior on the go by thought editing, as shown in Figure 5 in Section 4. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "3 KNOWLEDGE-INTENSIVE REASONING TASKS ", + "text_level": 1, + "page_idx": 3 + }, + { + "type": "text", + "text": "We begin with knowledge-intensive reasoning tasks like multi-hop question answering and fact verification. As shown in Figure 1(1d), by interacting with a Wikipedia API, ReAct is able to retrieve information to support reasoning, while also use reasoning to target what to retrieve next, demonstrating a synergy of reasoning and acting. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "3.1 SETUP ", + "text_level": 1, + "page_idx": 3 + }, + { + "type": "text", + "text": "Domains We consider two datasets challenging knowledge retrieval and reasoning: (1) HotPotQA (Yang et al., 2018), a multi-hop question answering benchmark that requires reasoning over two or more Wikipedia passages, and (2) FEVER (Thorne et al., 2018), a fact verification benchmark where each claim is annotated SUPPORTS, REFUTES, or NOT ENOUGH INFO, based on if there exists a Wikipedia passage to verify the claim. In this work, we operate in a question-only setup for both tasks, where models only receive the question/claim as input without access to support paragraphs, and have to rely on their internal knowledge or retrieve knowledge via interacting with an external environment to support reasoning. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "Action Space We design a simple Wikipedia web API with three types of actions to support interactive information retrieval: (1) search[ent ity], which returns the first 5 sentences from the corresponding ent i ty wiki page if it exists, or else suggests top-5 similar entities from the Wikipedia search engine, (2) 1ookup[st ring], which would return the next sentence in the page containing st ring, simulating $\\mathrm { C t r l { + } F }$ functionality on the browser. (3) finish[an swer], which would finish the current task with an s wer. We note that this action space mostly can only retrieve a small part of a passage based on exact passage name, which is significantly weaker than state-of-theart lexical or neural retrievers. The purpose is to simulate how humans would interact with Wikipedia, and force models to retrieve via explicit reasoning in language. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "3.2 METHODS ", + "text_level": 1, + "page_idx": 3 + }, + { + "type": "text", + "text": "ReAct Prompting For HotpotQA and Fever, we randomly select 6 and 3 cases2 from the training set and manually compose ReAct-format trajectories to use as few-shot exemplars in the prompts. Similar to Figure 1(d), each trajectory consists of multiple thought-action-observation steps (i.e. dense thought), where free-form thoughts are used for various purposes. Specifically, we use a combination of thoughts that decompose questions (\"I need to search x, fi nd y, then find $\\mathbf { Z } ^ { \\dag }$ ), extract information from Wikipedia observations ${ } ^ { 6 6 } \\mathbf { X }$ was started in $1 8 4 4 ^ { \\circ }$ , \"The paragraph does not tell x'\"), perform commonsense ( $\\mathbf { \\mu } ^ { 6 6 } \\mathbf { X }$ is not y, so z must instead be...\") or arithmetic reasoning ( $^ { } 1 8 4 4 < 1 9 8 9 ^ { \\cdots }$ ), guide search reformulation (\"maybe I can search/look up x instead'\"), and synthesize the final answer (\".so the answer is x\"). See Appendix C for more details. ", + "page_idx": 3 + }, + { + "type": "table", + "img_path": "images/e35ce6a7e5411deb6b633d6207827c7fa2ae7164a81ece9c9b25a2f3badcbf51.jpg", + "table_caption": [ + "Table 1: PaLM-540B prompting results on HotpotQA and Fever. " + ], + "table_footnote": [ + "HotpotQA EM is 27.1, 28.9, 33.8 for standard, CoT, CoT–SC in Wang et al. (2022b). b(Zhu et al., 2021; Lewis et al., 2020) " + ], + "table_body": "
Prompt MethodaHotEotOAFever
standard28.757.1
CoT (Wei et al., 22) CoT−SC (Wang et al, 2022a)29.4 33.456.3 60.4
Act25.758.9
ReAct CoT-SC→ReAct27.460.9
ReAct→CoT-SC34.2 35.164.6
Supervised SoTAb67.562.0 89.5
", + "page_idx": 4 + }, + { + "type": "image", + "img_path": "images/171e40ed5124fb8222b6b5c65d5bcb93b3e24ea67229f3bc706a756f0bf4fbb3.jpg", + "image_caption": [ + "Figure 2: PaLM-540B prompting results with respect to number of CoT–sC samples used. " + ], + "image_footnote": [], + "page_idx": 4 + }, + { + "type": "text", + "text": "", + "page_idx": 4 + }, + { + "type": "text", + "text": "Baselines We systematically ablate ReAct trajectories to build prompts for multiple baselines (with formats as Figure 1(1la-1c): (a) Standard prompting (St anda rd), which removes al thoughts, actions, observations in ReAct trajectories. (b) Chain-of-thought prompting (CoT) (Wei et al., 2022), which removes actions and observations and serve as a reasoning-only baseline. We also build a self-consistency baseline (CoT–sC) (Wang et al., 2022a;b) by sampling $2 1 \\thinspace \\mathrm { C o T }$ trajectories with decoding temperature 0.7 during inference and adopting the majority answer, which is found to consistently boost performance over CoT. (c) Acting-only prompt (Act), which removes thoughts in ReAct trajectories, loosely resembling how WebGPT (Nakano et al., 2021) interacts with the Internet to answer questions, though it operates on a different task and action space, and uses imitation and reinforcement learning instead of prompting. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "Combining Internal and External Knowledge As will be detail in Section 3.3, we observe that the problem solving process demonstrated by ReAct is more factual and grounded, whereas CoT is more accurate in formulating reasoning structure but can easily suffer from hallucinated facts or thoughts. We therefore propose to incorporate ReAct and CoT–sC, and let the model decide when to switch to the other method based on the following heuristics: A) $\\mathtt { R e A c t } \\to \\mathtt { C o T } \\mathtt { - } \\mathtt { S } \\mathtt { C }$ C: when ReAct fails to return an answer within given steps, back off to $\\mathsf { C o T - S C }$ . We set 7 and 5 steps for HotpotQA and FEVER respectively as we find more steps will not improve ReAct performance3. B) CoT $- s \\mathtt { C } \\to \\mathtt { R e A c 1 }$ : when the majority answer among $n \\ C { \\circ { \\mathrm { T } } { - } { \\mathrm { S } } { \\mathrm { C } } }$ samples occurs less than $n / 2$ times (i.e. internal knowledge might not support the task confidently), back off to ReAct. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "Finetuning Due to the challenge of manually annotating reasoning traces and actions at scale, we consider a bootstraping approach similar to Zelikman et al. (2022), using 3,000 trajectories with correct answers generated by ReAct (also for other baselines) to finetune smaller language models (PaLM-8/62B) to decode trajectories (all thoughts, actions, observations) conditioned on input questions/claims. More details are in Appendix B.1. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "3.3 RESULTS AND OBSERVATIONS ", + "text_level": 1, + "page_idx": 4 + }, + { + "type": "text", + "text": "ReAct outperforms Act consistently Table 1 shows HotpotQA and Fever results using PaLM540B as the base model with different prompting methods. We note that ReAct is better than Act on both tasks, demonstrating the value of reasoning to guide acting, especially for synthesizing the final answer, as shown in Figure 1 (1c-d). Fine-tuning results 3 also confirm the benefit of reasoning traces for more informed acting. ", + "page_idx": 4 + }, + { + "type": "table", + "img_path": "images/a66d84fa07260063d90bc52813f4509e46d7dc18333fadc0c21bb66383edf4fc.jpg", + "table_caption": [ + "Table 2: Types of success and failure modes of ReAct and CoT on HotpotQA, as well as thein percentages in randomly selected examples studied by human. " + ], + "table_footnote": [], + "table_body": "
|TypeDefinitionReActCoT
Success94%86%
Trle possiveCorrec e ing ace and cts
FailureReasoning errorWrong reasoning trace (including failing to recover from repetitive steps)47%16%
Search result errorSearch return empty or does not contain useful information23%-
HallucinationHallucinated reasoning trace or facts0%56%
Label ambiguityRight prediction but did not match the label precisely29%28%
", + "page_idx": 5 + }, + { + "type": "text", + "text": "ReAct vs. CoT On the other hand, ReAct outperforms CoT on Fever (60.9 vs. 56.3) and slightly lags behind CoT on HotpotQA (27.4 vs. 29.4). Fever claims for SUPPORTS/REFUTES might only differ by a slight amount (see Appendix D.1), so acting to retrieve accurate and up-to-date knowledge is vital. To better understand the behavioral difference between ReAct and CoT on HotpotQA, we randomly sampled 50 trajectories with correct and incorrect answers (judged by EM) from ReAct and CoT respectively (thus 200 examples in total), and manually labeled their success and failure modes in Table 2. Some key observations are as follows: ", + "page_idx": 5 + }, + { + "type": "text", + "text": "A) Hallucination is a serious problem for CoT, resulting in much higher false positive rate than ReAct $14 \\%$ Vs. $6 \\%$ ) in success mode, and make up its major failure mode $( 5 6 \\% )$ . In contrast, the problem solving trajectory of ReActis more grounded, fact-driven, and trustworthy, thanks to the access of an external knowledge base. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "B) While interleaving reasoning, action and observation steps improves ReAct's groundedness and trustworthiness, such a structural constraint also reduces its flexibility in formulating reasoning steps, leading to more reasoning error rate than CoT. we note that there is one frequent error pattern specific to ReAct, in which the model repetitively generates the previous thoughts and actions, and we categorize it as part of \"reasoning error'” as the model fails to reason about what the proper next action to take and jump out of the $\\mathrm { l o o p ^ { 4 } }$ . ", + "page_idx": 5 + }, + { + "type": "text", + "text": "C) For ReAct, successfully retrieving informative knowledge via search is critical. Noninformative search, which counts for $23 \\%$ of the error cases, derails the model reasoning and gives it a hard time to recover and reformulate thoughts. This is perhaps an expected trade-off between factuality and flexibility, which motivates our proposed strategies of combining two methods. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "We provide examples for each success and failure modes in Appendix E.1. We also find some HotpotQA questions may contain outdated answer labels, see Figure 4 for example. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "ReAct $^ +$ coT-SC perform best for prompting LLMs Also shown in Table 1, the best prompting method on HotpotQA and Fever are ReAct $ \\subset \\mathrm { o T } - S \\subset$ and $\\mathtt { C o T - S C } \\to \\mathtt { R e A c t }$ respectively. Furthermore, Figure 2 shows how different methods perform with respect to the number of $\\mathsf { C o T - S C }$ samples used. While two $\\mathrm { R e a c t } + \\mathrm { C o T } - \\mathrm { S C }$ methods are advantageous at one task each, they both significantly and consistently outperform CoT–sC across different number of samples, reaching $\\mathsf { C o T - S C }$ performance with 21 samples using merely 3-5 samples. These results indicate the value of properly combining model internal knowledge and external knowledge for reasoning tasks. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "ReAct performs best for fine-tuning Figure 3 shows the scaling effect of prompting/finetuning four methods (St andard, CoT, Act, ReAct) on HotpotQA. With PaLM-8/62B, prompting ReAct performs worst among four methods due to the diff culty to learn both reasoning and acting from in-context examples. However, when finetuned with just 3,000 examples, ReAct becomes the best method among the four, with PaLM-8B finetuned ReAct outperforming all PaLM-62B prompting methods, and PaLM-62B finetuned ReAct outperforming all 540B prompting methods. In contrast, finetuning St andard or CoT is significantly worse than finetuning ReAct or Act for both PaLM8/62B, as the former essentially teaches models to memorize (potentially halluincated) knowledge facts, and the latter teaches models how to (reason and) act to access information from Wikipedia, a more generalizable skill for knowledge reasoning. As all prompting methods are still significantly far from domain-specific state-of-the-art approaches (Table 1), we believe finetuning with more human-written data might be a better way to unleash the power of ReAct . ", + "page_idx": 5 + }, + { + "type": "image", + "img_path": "images/4c3b0e92c6dd6f297dab55532d495e593945818c5f158f452b08e194416f1e1f.jpg", + "image_caption": [ + "Figure 3: Scaling results for prompting and finetuning on HotPotQA with ReAct (ours) and baselines. " + ], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "4 DECISION MAKING TAsKS ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "text", + "text": "We also test ReAct on two language-based interactive decision-making tasks, ALFWorld and WebShop, both of which feature complex environments that require agents to act over long horizons with sparse rewards, warranting the need for reasoning to act and explore effectively. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "ALFWorld ALFWorld (Shridhar et al., 2020b) (Figure 1(2) is a synthetic text-based game designed to align with the embodied ALFRED benchmark (Shridhar et al., 2020a). It includes 6 types of tasks in which an agent needs to achieve a high-level goal (e.g. examine paper under desklamp) by navigating and interacting with a simulated household via text actions (e.g. go to coffeetable 1, take paper 2, use desklamp 1). A task instance can have more than 50 locations and take an expert policy more than 50 steps to solve, thus challenging an agent to plan and track subgoals, as well as explore systematically (e.g. check all desks one by one for desklamp). In particular, one challenge built into ALFWorld is the need to determine likely locations for common household items (e.g. desklamps will likely be on desks, shelfs, or dressers), making this environment a good fit for LLMs to exploit their pretrained commonsense knowledge. To prompt ReAct, we randomly annotate three trajectories from the training set for each task type, where each trajectory includes sparse thoughts that (1) decompose the goal, (2) track subgoal completion, (3) determine the next subgoal, and (4) reason via commonsense where to find an object and what to do with it. We show prompts used for ALFWorld in Appendix C.4. Following Shridhar et al. (2020b), we evaluate on 134 unseen evaluation games in a task-specific setup. For robustness, we construct 6 prompts for each task type through each permutation of 2 annotated trajectories from the 3 we annotate. Act prompts are constructed using the same trajectories, but without thoughts — since task instances are randomly chosen from the training set, it favors neither ReAct nor Act and provides a fair and controlled comparison to test the importance of sparse thoughts. For baselines, we use BUTLER (Shridhar et al., 2020b), an imitation learning agent trained on $\\mathrm { \\bar { 1 0 ^ { 5 } } }$ expert trajectories for each task type5. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "WebShop Can ReAct also interact with noisy real-world language environments for practical applications? We investigate WebShop (Yao et al., 2022), a recently proposed online shopping website environment with 1.18M real-world products and 12k human instructions. Unlike ALFWorld, Webshop contains a high variety of structured and unstructured texts (e.g. product titles, descriptions, and options crawled from Amazon), and requires an agent to purchase a product based on a user instruction (e.g.\"I am looking for a nightstand with drawers. It should have a nickel finish, and priced lower than $\\$ 140$ ) through web interactions (e.g. search \"nightstand drawers\", choose buttons such as \"color: modern-nickel-white'\"' or “back to search'\"). This task is evaluated by average score (percentage of desired atributes covered by the chosen product averaged across all episodes) and success rate (percentage of episodes where the chosen product satisfies all requirements) on 500 test instructions. We formulate Act prompts with actions to search, choose product, choose options, and buy, with ReAct prompts additionally reasoning to determine what to explore, when to buy, and what products options are relevant to the instruction. See Table 6 for an example prompt, and Table 10 for model predictions in the Appendix. We compare to an imitation learning (IL) method trained with 1,012 human annotated trajectories, and a imitation $^ +$ reinforcement learning $( \\mathrm { I L } + \\mathrm { R L } )$ method additionally trained with 10,587 training instructions. ", + "page_idx": 6 + }, + { + "type": "table", + "img_path": "images/0a3b3f8b365a46a6b989cc8ef7a108c9d0f3048d9fc85ba862fd364c7bea63ce.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
MethodScoreSR
Act ReAct62.3 66.630.1 40.0
IL59.929.1
IL+RL62.428.7
Human Expert82.159.6
", + "page_idx": 7 + }, + { + "type": "table", + "img_path": "images/d0861a11c5c7c6c6270a1c087ce8a1d094a3706d7424f6ea9cbbbfc8c435d793.jpg", + "table_caption": [ + "Table 3: AlfWorld task-specific success rates $( \\% )$ . BUTLER and ${ \\bf B U T L E R } _ { g }$ results are from Table 4 of Shridhar et al. (2020b). All methods use greedy decoding, except that BUTLER uses beam search. " + ], + "table_footnote": [ + "Table 4: Score and success rate (SR) on Webshop. $\\mathrm { I L / I L + R L }$ taken from Yao et al. (2022). " + ], + "table_body": "
MethodPickCleanHeatCoolLookPick2All
ACt (best of 6))88427467724145
ReAct (avg)65398376552457
ReAct (besto 6)92589686784171
ReAct −IM (avg)55596055232448
ReAct −IM (best of 6)62688757393353
BUTLER (cest f 8)33267076171222
BUTLER (best of 8))463974100222437
", + "page_idx": 7 + }, + { + "type": "text", + "text": "", + "page_idx": 7 + }, + { + "type": "text", + "text": "Results ReAct outperforms Act on both ALFWorld (Table 3) and Webshop (Table 4). On ALFWorld, the best ReAct trial achieves an average success rate of $71 \\%$ , signifi cantly outperforming the best Act $( 4 5 \\% )$ and BUTLER $( 3 7 \\% )$ trials. In fact, even the worse ReAct trial $(48 \\% )$ beats the best trial of both methods. Moreover, the advantage of $_ { \\mathrm { R e A c t } }$ over Act is consistent across six controlled trials, with relative performance gain ranging from $33 \\%$ to $90 \\%$ and averaging $62 \\%$ . Qualitatively, we saw that, without any thoughts at all, Act fails to correctly decompose goals into smaller subgoals, or loses track of the current state of the environment. Example trajectories comparing ReAct and Act can be found in Appendix D.2.1 and Appendix D.2.2. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "On Webshop, one-shot Act prompting already performs on par with IL and $\\mathrm { I L + R L }$ methods. With additional sparse reasoning, ReAct achieves significantly better performance, with an absolute $10 \\%$ improvement over the previous best success rate. By checking examples, we find that ReAct is more likely to identify instruction-relevant products and options by reasoning to bridge the gap between noisy observations and actions (e.g. \"For 'space-saving ottoman bench for living room', the item has options '39x18x18inch' and blue' and seems good to buy.\"). However, existing methods are still far from the performance of expert humans (Table 4), who perform significantly more product explorations and query re-formulations that are stil challenging for prompting-based methods. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "On the value of internal reasoning vs. external feedback To our knowledge, ReAct is the first demonstration of combined reasoning and action using an LLM applied to an interactive environment within a closed-loop system. Perhaps the closest prior work is Inner Monologue (IM), from Huang et al. (2022b), in which actions from an embodied agent are motivated by an eponymous \"'inner monologue\". However, IM's \"inner monologue\" is limited to observations of the environment state and what needs to be completed by the agent for the goal to be satisfied. In contrast, the reasoning traces in ReAct for decision making is flexible and sparse, allowing diverse reasoning types (see Section 2) to be induced for different tasks. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "To demonstrate the differences between ReAct and IM, and to highlight the importance of internal reasoning vs. simple reactions to external feedback, we ran an ablation experiment using a thought pattern composed of IM-like dense external feedback. As can be seen in Table 3, ReAct substantially outperforms IM-style prompting (ReAct –IM) (71 vs. 53 overall success rate), with consistent advantages on five out of six tasks. Qualitatively, we observed that ReAct – IM often made mistakes in identifying when subgoals were finished, or what the next subgoal should be, due to a lack of highlevel goal decomposition. Additionally, many ReAct – IM trajectories struggled to determine where an item would likely be within the ALFWorld environment, due to a lack of commonsense reasoning. Both shortcomings can be addressed in the ReAct paradigm. More details about ReAct -IM is in Appendix B.2. An example prompt for ReAct – IM can be found in Appendix C.4, and an example trajectory in Appendix D.2.3. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "5 RELATED WORK ", + "text_level": 1, + "page_idx": 8 + }, + { + "type": "text", + "text": "Language model for reasoning Perhaps the most well-known work of using LLMs for reasoning is Chain-of-Thought (CoT) (Wei et al., 2022), which reveals the ability of LLMs to formulate their own \"thinking procedure\" for problem solving. Several follow-up works have since been performed, including least-to-most prompting for solving complicated tasks (Zhou et al., 2022), zero-shotCoT (Kojima et al., 2022), and reasoning with self-consistency (Wang et al., 2022a). Recently, (Madaan & Yazdanbakhsh, 2022) systematically studied the formulation and structure of CoT, and observed that the presence of symbols, patterns and texts is crucial to the effectiveness of CoT. Other work has also been extended to more sophisticated reasoning architecture beyond simple prompting. For example Selection-Inference (Creswell et al., 2022) divides the reasoning process into two steps of “selection\" and \"inference\". STaR (Zelikman et al., 2022) bootstraps the reasoning process by finetuning the model on correct rationales generated by the model itself. Faithful reasoning (Creswell & Shanahan, 2022) decomposes multi-step reasoning into three steps, each performed by a dedicated LM respectively. Similar approaches like Scratchpad (Nye et al., 2021), which finetunes a LM on intermediate computation steps, also demonstrate improvement on multi-step computation problems. In contrast to these methods, ReAct performs more than just isolated, fixed reasoning, and integrates model actions and their corresponding observations into a coherent stream of inputs for the model to reason more accurately and tackle tasks beyond reasoning (e.g. interactive decision making). ", + "page_idx": 8 + }, + { + "type": "text", + "text": "Language model for decision making The strong capability of LLMs has enabled them to perform tasks beyond language generation, and it is becoming more popular to take advantage of LLMs as a policy model for decision making, especially in interactive environments. WebGPT (Nakano et al., 2021) uses an LM to interact with web browsers, navigate through web pages, and infer answers to complicated questions from ELI5 (Fan et al., 2019). In comparison to ReAct, WebGPT does not explicitly model the thinking and reasoning procedure, instead rely on expensive human feedback for reinforcement learning. In conversation modeling, chatbots like BlenderBot (Shuster et al., 2022b) and Sparrow (Glaese et al., 2022) and task-oriented dialogue systems like SimpleTOD (Hosseini-Asl et al., 2020) also train LMs to make decision about API calls. Unlike ReAct, they do not explicitly consider the reasoning procedure either, and also relies on expensive datasets and human feedback collections for policy learning. In contrast, ReAct learns a policy in a much cheaper way, since the decision making process only requires language description of the reasoning procedure.6 ", + "page_idx": 8 + }, + { + "type": "text", + "text": "LLMS have also been increasingly employed in interactive and embodied environments for planning and decision making. Perhaps most relevant to ReAct in this respect are SayCan (Ahn et al., 2022) and Inner Monologue (Huang et al., 2022b), which use LLMs for robotic action planning and decision making. In SayCan, LLMs were prompted to directly predict possible actions a robot can take, which is then reranked by an affordance model grounded on the visual environments for final prediction. Inner Monologue made further improvements by adding the eponymous \"'inner monologue'\", which is implemented as injected feedback from the environment. To our knowledge, Inner Monologue is the first work that demonstrates such a closed-loop system, which ReAct builds on. However, we argue that Inner Monologue does not truly comprise of inner thoughts — this is elaborated in Section 4. We also note that leveraging language as semantically-rich inputs in the process of interactive decision making has been shown to be successful under other settings (Abramson et al., 2020; Karamcheti et al., 2021; Huang et al., 2022a; Li et al., 2022). It is becoming more evident that with the help of LLMs, language as a fundamental cognitive mechanism wil play a critical role in interaction and decision making. What is more, progress in LLMs has also inspired the development of versatile and generalist agents like Reed et al. (2022). ", + "page_idx": 8 + }, + { + "type": "text", + "text": "6 CONCLUSION ", + "text_level": 1, + "page_idx": 8 + }, + { + "type": "text", + "text": "We have proposed ReAct – a simple yet effective method for synergizing reasoning and acting in large language models. Through a diverse set of experiments on multi-hop question-answering, fact checking, and interactive decision-making tasks, we show that ReAct leads to superior performance with interpretable decision traces. Despite the simplicity of our method, complex tasks with large action spaces require more demonstrations to learn well, which unfortunately can easily go beyond the input length limit of in-context learning. We explore the fine-tuning approach on HotpotQA with initial promising results, but learning from more high-quality human annotations wil be the desiderata to further improve the performance. Scaling up ReAct with multi-task training and combining it with complementary paradigms ike reinforcement learning could result in stronger agents that further unlock the potential of LLMs for more applications. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "", + "page_idx": 9 + }, + { + "type": "text", + "text": "ACKNOWLEDGMENTS ", + "text_level": 1, + "page_idx": 9 + }, + { + "type": "text", + "text": "We thank the support and feedback of many people from Google Brain team and Princeton NLP Group. This work was supported in part by the National Science Foundation under Grant No. 2107048. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "REPRODUCIBILITY STATEMENT ", + "text_level": 1, + "page_idx": 9 + }, + { + "type": "text", + "text": "Our main experiments are done on PaLM (Chowdhery et al., 2022), which is not an openly accessible model yet. To increase reproducibility, we have included all used prompts in Appendix C, aditional experiments using GPT-3 (Brown et al., 2020) in Appendix A.1, and associated GPT-3 ReAct prompting code at https://anonymous .4open.science/r/ReAct-2268/. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "ETHICS STATEMENT ", + "text_level": 1, + "page_idx": 9 + }, + { + "type": "text", + "text": "ReAct prompts large language models to generate more human interpretable, diagnosable, and controllable task-solving trajectories than previous methods. However, hooking up a large language model with an action space to interact with external environments (e.g. the web, physical environments) has potential dangers, e.g. looking up inappropriate or private information, or taking harmful actions in an environment. Our experiments minimize such risks by limiting the interactions to specific websites (Wikipedia or WebShop) that are free of private information, without any dangerous actions in the action space design (i.e. models cannot really buy products on WebShop the research benchmark, or edit Wikipedia). We believe researchers should be aware of such risks before designing more extensive experiments in the future. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "REFERENCES ", + "text_level": 1, + "page_idx": 9 + }, + { + "type": "text", + "text": "Josh Abramson, Arun Ahuja, Iain Barr, Arthur Brussee, Federico Carnevale, Mary Cassin, Rachita Chhaparia, Stephen Clark, Bogdan Damoc, Andrew Dudzik, Petko Georgiev, Aurelia Guy, Tim Harley, Felix Hill, Alden Hung, Zachary Kenton, Jessica Landon, Timothy Lillicrap, Kory Mathewson, Soǎa Mokrá, Alistair Muldal, Adam Santoro, Nikolay Savinov, Vikrant Varma, Greg Wayne, Duncan Williams, Nathaniel Wong, Chen Yan, and Rui Zhu. Imitating interactive intelligence, 2020.URL https://arxiv.org/abs/2012.05672. \nMichael Ahn, Anthony Brohan, Noah Brown, Yevgen Chebotar, Omar Cortes, Byron David, Chelsea Finn, Chuyuan Fu, Keerthana Gopalakrishnan, Karol Hausman, Alex Herzog, Daniel Ho, Jasmine Hsu, Julian Ibarz, Brian Ichter, Alex Irpan, Eric Jang, Rosario Jauregui Ruano, Kyle Jeffrey, Sally Jesmonth, Nikhil J Joshi, Ryan Julian, Dmitry Kalashnikov, Yuheng Kuang, Kuang-Huei Lee, Sergey Levine, Yao Lu, Linda Luu, Carolina Parada, Peter Pastor, Jornell Quiambao, Kanishka Rao, Jarek Rettinghouse, Diego Reyes, Pierre Sermanet, Nicolas Sievers, Clayton Tan, Alexander Toshev, Vincent Vanhoucke, Fei Xia, Ted Xiao, Peng Xu, Sichun Xu, Mengyuan Yan, and Andy Zeng. Do as i can, not as i say: Grounding language in robotic affordances, 2022. URL https://arxiv.org/abs/2204.01691. \nBen Alderson-Day and Charles Fernyhough. Inner speech: development, cognitive functions, phenomenology, and neurobiology. Psychological bulletin, 141(5):931, 2015. \nAlan Baddeley. Working memory. Science, 255(5044):556–559, 1992. \nTom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Antonia Creswel and Murray Shanahan. Faithful reasoning using large language models, 2022. URL https://arxiv.org/abs/2208.14271. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Antonia Creswell, Murray Shanahan, and Irina Higgins. Selection-inference: Exploiting large language models for interpretable logical reasoning, 2022. URL https : / /arxiv . org/abs / 2205.09712. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Angela Fan, Yacine Jernite, Ethan Perez, David Grangier, Jason Weston, and Michael Auli. ELI5: Long form question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 3558–3567, Florence, Italy, July 2019. Association for Computational Linguistics. doi: 10.18653/v1/P19-1346. URL https : //aclanthology .org/ P19–1346. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Charles Fernyhough. Vygotsky, luria, and the social brain. Self and social regulation: Social interaction and the development of social understanding and executive functions, pp. 56–79, 2010. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Amelia Glaese, Nat McAleese, Maja Trebacz, John Aslanides, Vlad Firoiu, Timo Ewalds, Maribeth Rauh, Laura Weidinger, Martin Chadwick, Phoebe Thacker, Lucy Campbell-Gillingham, Jonathan Uesato, Po-Sen Huang, Ramona Comanescu, Fan Yang, Abigail See, Sumanth Dathathri, Rory Greig, Charlie Chen, Doug Fritz, Jaume Sanchez Elias, Richard Green, Soǎa Mokrá, Nicholas Fernando, Boxi Wu, Rachel Foley, Susannah Young, Iason Gabriel, William Isaac, John Mellor, Demis Hassabis, Koray Kavukcuoglu, Lisa Anne Hendricks, and Geoffrey Irving. Improving alignment of dialogue agents via targeted human judgements, 2022. URL https://storage.googleapis.com/deepmind-media/DeepMind. com/Authors-Notes/sparrow/sparrow-final.pdf. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Ehsan Hosseini-Asl, Bryan McCann, Chien-Sheng Wu, Semih Yavuz, and Richard Socher. A simple language model for task-oriented dialogue. Advances in Neural Information Processing Systems, 33:20179–20191, 2020. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Wenlong Huang, Pieter Abbeel, Deepak Pathak, and Igor Mordatch. Language models as zero-shot planners: Extracting actionable knowledge for embodied agents. arXiv preprint arXiv:2201.07207, 2022a. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Wenlong Huang, Fei Xia, Ted Xiao, Harris Chan, Jacky Liang, Pete Florence, Andy Zeng, Jonathan Tompson, Igor Mordatch, Yevgen Chebotar, et al. Inner monologue: Embodied reasoning through planning with language models. arXiv preprint arXiv:2207.05608, 2022b. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Siddharth Karamcheti, Megha Srivastava, Percy Liang, and Dorsa Sadigh. Lila: Language-informed latent actions. In CoRL, pp. 1379–1390, 2021. URL https : //proceedings .mlr .press/ vl64/karamcheti22a.html. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. Large language models are zero-shot reasoners. arXiv preprint arXiv:2205.11916, 2022. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Angeliki Lazaridou, Elena Gribovskaya, Wojciech Stokowiec, and Nikolai Grigorev. Internetaugmented language models through few-shot prompting for open-domain question answering. arXiv preprint arXiv:2203.05115, 2022. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in Neural Information Processing Systems, 33: 9459–9474, 2020. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Shuang Li, Xavier Puig, Chris Paxton, Yilun Du, Clinton Wang, Linxi Fan, Tao Chen, De-An Huang, Ekin Akyürek, Anima Anandkumar, Jacob Andreas, Igor Mordatch, Antonio Torralba, and Yuke Zhu. Pre-trained language models for interactive decision-making, 2022. URL ht tp s : //arxiv.org/abs/2202.01771. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Aleksandr Romanovich Luria. Ls vygotsky and the problem of localization of functions. Neuropsychologia, 3(4):387–392, 1965. \nAman Madaan and Amir Yazdanbakhsh. Text and patterns: For effective chain of thought, it takes two to tango, 2022. URL https://arxiv.org/abs/2209.07686. \nVincent Micheli and Frangois Fleuret. Language models are few-shot butlers. arXiv preprint arXiv:2104.07972, 2021. \nReichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, Xu Jiang, Karl Cobbe, Tyna Eloundou, Gretchen Krueger, Kevin Button, Matthew Knight, Benjamin Chess, and John Schulman. Webgpt: Browser-assisted question-answering with human feedback, 2021. URL https : //arxiv. org/abs/2112.09332. \nMaxwell Nye, Anders Johan Andreassen, Guy Gur-Ari, Henryk Michalewski, Jacob Austin, David Bieber, David Dohan, Aitor Lewkowycz, Maarten Bosma, David Luan, Charles Sutton, and Augustus Odena. Show your work: Scratchpads for intermediate computation with language models, 2021. URL https: //arxiv.org/abs/2112.00114. \nScott Reed, Konrad Zolna, Emilio Parisotto, Sergio Gomez Colmenarejo, Alexander Novikov, Gabriel Barth-Maron, Mai Gimenez, Yury Sulsky, Jackie Kay, Jost Tobias Springenberg, Tom Eccles, Jake Bruce, Ali Razavi, Ashley Edwards, Nicolas Heess, Yutian Chen, Raia Hadsell, Oriol Vinyals, Mahyar Bordbar, and Nando de Freitas. A generalist agent, 2022. URL ht tps : //arxiv.org/abs/2205.06175. \nMohit Shridhar, Jesse Thomason, Daniel Gordon, Yonatan Bisk, Winson Han, Roozbeh Mottaghi, Luke Zetlemoyer and Dieter Fox. Alfred: A benchmark for interpreting grounded instructions for everyday tasks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10740–10749, 2020a. \nMohit Shridhar, Xingdi Yuan, Marc-Alexandre Coté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. Alfworld: Aligning text and embodied environments for interactive learning. arXiv preprint arXiv:2010.03768, 2020b. \nKurt Shuster, Mojtaba Komeili, Leonard Adolphs, Stephen Roller, Arthur Szlam, and Jason Weston. Language models that seek for knowledge: Modular search & generation for dialogue and prompt completion. arXiv preprint arXiv:2203.13224, 2022a. \nKurt Shuster ingXu Mojtaba Komei Da Ju Eric Michael mith, Stephen Roller, Megan U Moya Chen, Kushal Arora, Joshua Lane, Morteza Behrooz, William Ngan, Spencer Poff, Naman Goyal, Arthur Szlam, Y-Lan Boureau, Melanie Kambadur, and Jason Weston. Blenderbot 3: a deployed conversational agent that continually learns to responsibly engage, 2022b. URL https://arxiv.org/abs/2208.03188. \nJames Thorne, Andreas Vlachos, Christos Christodoulopoulos, and Arpit Mittal. Fever: a large-scale dataset for fact extraction and verifi cation. arXiv preprint arXiv: 1803.05355, 2018. \nLev S Vygotsky. Thinking and speech. The collected works of LS Vygotsky, 1:39–285, 1987. \nXuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models, 2022a.URL https://arxiv.org/abs/2203.11171. \nXuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, and Denny Zhou. Rationale-augmented ensembles in language models. arXiv preprint arXiv:2207.00747, 2022b. \nJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models. arXiv preprint arXiv:2201.11903, 2022. \nZhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William W Cohen, Ruslan Salakhutdinov, and Christopher D Manning. Hotpotqa: A dataset for diverse, explainable multi-hop question answering. arXiv preprint arXiv:1809.09600, 2018. ", + "page_idx": 11 + }, + { + "type": "text", + "text": "Shunyu Yao, Rohan Rao, Matthew Hausknecht, and Karthik Narasimhan. Keep CALM and explore: Language models for action generation in text-based games. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 8736–8754, Online, November 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.emnlp-main.704. URL https://aclanthology.org/2020.emnlp-main.704. Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. Webshop: Towards scalable real-world web interaction with grounded language agents. arXiv preprint arXiv:2207.01206, 2022. Eric Zelikman, Yuhuai Wu, Jesse Mu, and Noah D. Goodman. Star: Bootstrapping reasoning with reasoning, 2022. URL https://arxiv.org/abs/2203.14465. Denny Zhou, Nathanael Schärli, Le Hou, Jason Wei, Nathan Scales, Xuezhi Wang, Dale Schuurmans, Olivier Bousquet, Quoc Le, and Ed Chi. Least-to-most prompting enables complex reasoning in large language models, 2022. URL https : //arxiv.org/abs/2205.10625. Yunchang Zhu, Liang Pang, Yanyan Lan, Huawei Shen, and Xueqi Cheng. Adaptive information seeking for open-domain question answering. arXiv preprint arXiv:2109.06747, 2021. ", + "page_idx": 12 + }, + { + "type": "text", + "text": "A ADDITIONAL RESULTS ", + "text_level": 1, + "page_idx": 13 + }, + { + "type": "table", + "img_path": "images/240a6c100e3d289de177f96cc11a86543391e92e0b67cd38c780c9c8b4e5ac12.jpg", + "table_caption": [ + "A.1 GPT-3 ExPERIMENTS " + ], + "table_footnote": [], + "table_body": "
PaLM-540BGPT-3
HotpotQA (exact match)29.430.8
ALFWorld (success rate %)70.978.4
", + "page_idx": 13 + }, + { + "type": "text", + "text": "Table 5: ReAct prompting results using PaLM-540B vs. GPT-3 (text-davinci-002, greedy decoding). On HotpotQA, we randomly sample a subset of 500 validation questions. On ALFWorld, we use all 134 unseen validation task instances, and use the best prompt set according to PaLM-540B. ", + "page_idx": 13 + }, + { + "type": "text", + "text": "We run additional GPT-3 (Brown et al., 2020) experiments to confirm ReAct prompting performance is general across different large language models. As shown in Table 5, GPT-3 (text-davinci-002, greedy decoding) consistently outperforms PaLM-540B on HotpotQA and ALFWorld, possibly because it is finetuned with human instruction following. This indicates ReAct prompting is effective across different large language models on diferent tasks. The code for these experiments are at https://react-lm.github.io/. ", + "page_idx": 13 + }, + { + "type": "text", + "text": ".2 REAcT OBTAINS UP-TO-DATE KNOWLEDGE ON HoTPoTQA ", + "text_level": 1, + "page_idx": 13 + }, + { + "type": "text", + "text": "(1) Hotspot QA (1d) ReAct (Reason + Act) \nQuestion: How many rooms are in the hotel that is home to Thought 1: I need to search cirque du soleil show Mystere, \nthe Cirque du Soleil show Mystere? find the hotel it is in, then find the number of rooms in \nHotpotQA label: 2, 664 Outdated tht h slarch[cirque du soleil show Mystere obs 1: Could not find Cirque du soleil show Mystere. (1a) standard (1c) Act-only similar:['cirque du soleil' \nAnswer: 3,000 Act 1: Search[Cirque du Soleil ] Thought 2: To find the hotel, I can search Mystere (Cirque obs 1: Cirque du Soleil is a du soleil). Canadian entertainment company. Act 2: search[Mystere (Cirque du Soleil) ] (1b) CoT (Reason Only) Act 2: Lookup[Mystere] obs 2: Mystère (my-steer) is Held in a custom theatre at \nThought: Let's think step Obs 2: No more results the Treasure Island Hotel and Casino $\\cdots$ \ny sep.he hotel tht is shostereirue d \nSoleil show Mystere is obs 3: Could not find.. Treasure Island Hotel and Casino next and find the number olei SearchMystereCirque du \nthe answer is 2,885. obs 4: Mystère (my-steer) is and Treasure Island otel and Casin with2884 rms \nAnswer: 2,885 At 5: Lookup eare Island Thought 4: Treasure Island Hotel and Casino has 2, 884 rooms Hotel and Casino] and 220 suites. So the answer is 3,104. X . (end without answer) Act 4: Finish[3, 104] Up-to-date ", + "page_idx": 13 + }, + { + "type": "text", + "text": "Figure 4: Another example HotpotQA question, where the original label is outdated. Only ReAct is able to obtain the up-to-date answer thanks to real-world web interaction plus reasoning. ", + "page_idx": 13 + }, + { + "type": "text", + "text": "During trajectory inspection, we also find that sometimes ReAct does not agree with dataset labels as the labels themselves could be outdated. For example, as shown in Figure 4, the question asks about the size of a hotel, which increased from the HotpotQA construction time. While St andard and CoT give wrong answers due to hallucination, Act fails despite the access of real-world web interaction, due to a lack of reasoning to guide how to interact with the Internet for QA. Only ReAct is able to retrieve up-to-date information from the Internet and provide a reasonable answer. Therefore, better incorporation of reasoning abilities might benefit recent Internet-augmented language models (Nakano et al., 2021; Lazaridou et al., 2022; Shuster et al., 2022a) for up-to-date task solving. ", + "page_idx": 13 + }, + { + "type": "text", + "text": "A.3 HUMAN-IN-THE-LOOP BEHAVIOR CORRECTION ON ALFWoRLD ", + "text_level": 1, + "page_idx": 13 + }, + { + "type": "text", + "text": "We also explore human-in-the-loop interaction with ReAct, to allow a human to inspect and edit ReAct's reasoning traces. Figure 5 shows that by simply removing a hallucinating sentence in Act 17 and adding some hints in Act 23, ReAct can be made to change its behavior drastically to align with these human thought edits and succeed in the task. From a human perspective, solving such a task becomes significantly easier, from typing tens of actions to only editing a couple of thoughts, which enables new forms of human-machine collaboration. We note that such a policy edit on-the-go is difficult for Act and previous RL methods, as a human cannot change the model parameters, and changing a few actions might not edit the rest of the model behavior. This paradigm is also more than human dialogue to update the goal or subgoal as in Huang et al. (2022b) — while editing $_ { \\mathrm { R e A c t } }$ thoughts can do these, it can also modify the model's internal belief, reasoning styles, or anything the flexible thought space supports, for better task solving. We believe this is an exciting direction for human alignment and leave more systematic study as future work. ", + "page_idx": 13 + }, + { + "type": "image", + "img_path": "images/cd2e94d69f99658328815ba6ccee179d6aecd126347c9af7d744f9d58a151086.jpg", + "image_caption": [ + "Figure 5: A human-in-the-loop behavior correction example with ReAct in AlfWorld. (a) ReAct trajectory fails due to a hallucinating thought (Act 17). (b) By a human simply editing two thoughts (Act 17, 23), the ReAct trajectory produces desirable reasoning traces and actions and succeeds. " + ], + "image_footnote": [], + "page_idx": 14 + }, + { + "type": "text", + "text": "", + "page_idx": 14 + }, + { + "type": "text", + "text": "B EXPERIMENT DETAILS ", + "text_level": 1, + "page_idx": 14 + }, + { + "type": "text", + "text": "B.1 HoTPOTQA FINETUNING DETAILS ", + "text_level": 1, + "page_idx": 14 + }, + { + "type": "text", + "text": "For all finetuning we use a batch size of 64. On PaLM-8B, we finetune ReAct and Act methods for 4, 000 steps and St andard and CoT methods for 2, 000 steps. On PaLM-62B, we finetune ReAct and Act methods for 4, 000 steps and st andard and CoT methods for 1, 00 steps. We find ReAct and Act methods generally benefit from more training steps (and more training data), while St an dard and CoT methods degrade soon after finetuning. ", + "page_idx": 14 + }, + { + "type": "text", + "text": "B.2 ALFWORLD IM-STYLE DETAILS ", + "text_level": 1, + "page_idx": 14 + }, + { + "type": "text", + "text": "For the IM-style ablation, the same expert trajectories used in ReAct are reannotated with dense external feedback thoughts within these trajectories, that limit ReAct – IM to only think about (1) decomposing the current goal and (2) the current subgoal that needs to be completed. In particular, ReAct–IM lacks thoughts that (1) determine when a subgoal is completed (2) determine what the next subgoal should be (3) inducing the LLM to refer to its internal pretraining knowledge to identify where items can be within the environment. ", + "page_idx": 14 + }, + { + "type": "text", + "text": "C PROMPTS ", + "text_level": 1, + "page_idx": 15 + }, + { + "type": "text", + "text": "C.1 HOTPOTQA ", + "text_level": 1, + "page_idx": 15 + }, + { + "type": "table", + "img_path": "images/4c8d08f6e9dc725e3b192da81d95c66b9a92f21696c8b18a8e3e7aca2ab18857.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
Hotpot QA Prompts
Original QuestionWhat is the elevation range for the area that the eastern sector of the Colorado orogeny extends into?
Answer1,800 t0 7,000 ft
QuestionMusician and satirist Allie Goertz wrote a song about the "The Simpsons"
Answercharacter Milhouse, who Matt Groening named after who? Richard Nixon
QuestionWhich documentary is about Finnish rock groups, Adam Clayton Powell or The
AnswerSaimaa Gesture? The Saimaa Gesture
Question Answerwhat profession does Nicholas Ray and Elia Kazan have in common? director, screenwriter, actor
Question AnswerWhich magazine was started first Arthur's Magazine or First for Women? Arthur's Magazine
QuestionWere Pavel Urysohn and Leonid Levin known for the same type of work?
AnswerYes
Act Questionwhat is the elevation range for the area that the eastern sector of the
Action 1Colorado orogeny extends into? Search[colorado orogeny]
Observation 1The Colorado orogeny was an episode of mountain building (an orogeny) in
colorado and surrounding areas. Lookup[eastern sector]
Action 2 Observation 2(Result 1 / 1) The eastern sector extends into the High Plains and is called
the Central Plains orogeny. Search [High Plains]
Action 3 Observation 3High Plains refers to one of two distinct land regions:
Action 4Search [High Plains (United States)] The High Plains are a subregion of the Great Plains. From east to west, the
Observation 4High Plains rise in elevation from around 1,800 to 7,000 ft (550 to 2,130
m).[3] Finish[1,800 to 7,000 ft]
Action 5Musician and satirist Allie Goertz wrote a song about the "The Simpsons"
Questioncharacter Milhouse, who Matt Groening named after who?
Action1 Observation1Search [Milhouse] Milhouse Mussolini Van Houten is a recurring character in the Fox animated
television series The Simpsons voiced by Pamela Hayden and created by Matt Groening.
Action 2Lookup[named after] (Result 1 / 1) Milhouse was named after U.S. president Richard Nixon, whose
Observation 2middle name was Milhous.
Action 3Finish[Richard Nixon]
which documentary is about Finnish rock groups, Adam Clayton Powell or The
QuestionSaimaa Gesture?
Action 1Search[Adam Clayton Powell] Could not find [Adam Clayton Powell]. Similar: ['Adam Clayton Powell
Observation 1III','seventh Avenue (Manhattan)', 'Adam Clayton Powell Jr. state Office
Building','Isabel Washington Powell', 'Adam Powell', 'Adam Clayton Powell
(film)', 'Giancarlo Esposito'].
Search[Adam Clayton Powell (film)]
Action 2Adam Clayton Powell is a 1989 American documentary film directed by
Observation 2
Richard Kilberg. The film is about the rise and fall of influential
African-American politician Adam Clayton Powell Jr.[3] [4] It was later aired
as part of the PBs series The American Experience.
Action 3Finish [The Saimaa Gesture]
QuestionWhat profession does Nicholas Ray and Elia Kazan have in common?
search[Nicholas Ray]
Action1
Observation 1
Nicholas Ray (born Raymond Nicholas Kienzle Jr., August 7, 1911 – June 16,
1979) was an American film director, screenwriter, and actor best known for
Action 2
the 1955 film Rebel without a Cause.
Observation 2Search [Elia Kazan]
", + "page_idx": 15 + }, + { + "type": "table", + "img_path": "images/1ccfb7d1160d431d2af719bc8134b77340986ff29cdda76606580fd546c29c0d.jpg", + "table_caption": [ + "Hotpot QA Prompts – Continued from previous page " + ], + "table_footnote": [], + "table_body": "
ervation1
Action 2Search[First for Women] First for Women is a woman's magazine published by Bauer Media Group in the
Observation 2UsA.[1] The magazine was started in 1989.
Action 3Finish [Arthur's Magazine]
Question Action 1Were Pavel Urysohn and Leonid Levin known for the same type of work? Search[Pavel Urysohn]
Observation 1Pavel Samuilovich Urysohn (February 3, 1898 – August 17, 1924) was a Soviet
mathematician who is best known for his contributions in dimension theory.
Action 2Search [Leonid Levin] Leonid Anatolievich Levin is a Soviet-American mathematician and computer
Observation 2scientist.
Action 3Finish[yes]
COTwhat is the elevation range for the area that the eastern sector of the
QuestionColorado orogeny extends into? Let's think step by step. The eastern sector of Colorado orogeny extends
Thoughtinto the High Plains. High Plains rise in elevation from around 1,800 to 7,000 ft, so the answer is 1,800 to 7,000 ft.
Answer1,800 to 7,000 ft
QuestionMusician and satirist Allie Goertz wrote a song about the "The simpsons" character Milhouse, who Matt Groening named after who?
ThoughtLet's think step by step. Milhouse was named after U.S. president Richard Nixon, so the answer is Richard Nixon.
AnswerRichard Nixon
Questionwhich documentary is about Finnish rock groups, Adam Clayton Powell or The Saimaa Gesture?
ThoughtLet's think step by step. Adam Clayton Powell (film) is a documentary about an African-American politician, not Finnish rock groups. So the documentary
Answerabout Finnish rock groups must instead be The Saimaa Gesture. The Saimaa Gesture
QuestionWhat profession does Nicholas Ray and Elia Kazan have in common?
ThoughtLet's think step by step. Professions of Nicholas Ray are director, screenwriter, and actor. Professions of Elia Kazan are director, producer, screenwriter, and actor. So profession Nicholas Ray and Elia Kazan have in
Answercommon is director, screenwriter, and actor. director, screenwriter, actor
Questionwhich magazine was started first Arthur's Magazine or First for Women?
ThoughtLet's think step by step. Arthur's Magazine was started in 1844. First for Women was started in 1989. 1844 (Arthur's Magazine) < 1989 (First for
Women), so Arthur's Magazine was started first. Arthur's Magazine
Answerwere Pavel Urysohn and Leonid Levin known for the same type of work?
Question ThoughtLet's think step by step. Pavel Urysohn is a mathematician. Leonid Levin is a mathematician and computer scientist. So Pavel Urysohn and Leonid
Levin have the same type of work.
AnswerYes
ReAct Questionwhat is the elevation range for the area that the eastern sector of the
Thought1Colorado orogeny extends into? I need to search Colorado orogeny, find the area that the eastern sector
of the colorado orogeny extends into, then find the elevation range of the area.
Action 1Search[colorado orogeny]
Observation 1The Colorado orogeny was an episode of mountain building (an orogeny) in colorado and surrounding areas.
Thought2It does not mention the eastern sector. So I need to look up eastern
Action2sector. Lookup[eastern sector]
Observation 2(Result 1 / 1) The eastern sector extends into the High Plains and is called
the Central Plains orogeny.
Thought 3The eastern sector of Colorado orogeny extends into the High Plains. so I
need to search High Plains and find its elevation range.
Action 3Search [High Plains]
Observation 3High Plains refers to one of two distinct land regions
Though4
I need to instead search High Plains (United States).
Action 4Search[High Plains (United States)]
", + "page_idx": 16 + }, + { + "type": "text", + "text": "Question ", + "page_idx": 17 + }, + { + "type": "table", + "img_path": "images/39c142d4e1257ebc9816020500fcbf1e345a0b76ce110db2551a89b14ca4c6d6.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
Thought 1The question simplifies to "The Simpsons" character Milhouse is named after who. I only need to search Milhouse and find who it is named after.
Action 1Search [Milhouse]
Observation 1Milhouse Mussolini Van Houten is a recurring character in the Fox animated television series The Simpsons voiced by Pamela Hayden and created by Matt
Groening. The paragraph does not tell who Milhouse is named after, maybe I can look up
Thought2"named after".
Action 2 Observation 2Lookup [named after] (Result 1 / 1) Milhouse was named after U.S. president Richard Nixon, whose
Thought 3middle name was Milhous. Milhouse was named after U.S. president Richard Nixon, so the answer is
Richard Nixon.
Action 3Finish [Richard Nixon]
QuestionWhich documentary is about Finnish rock groups, Adam Clayton Powell or The Saimaa Gesture?
Thought 1I need to search Adam Clayton Powell and The Saimaa Gesture, and find which documentary is about Finnish rock groups.
Action 1 Observation1Search[Adam Clayton Powell] Could not find [Adam Clayton Powell]. Similar: ['Adam Clayton Powell
III','Seventh Avenue (Manhattan)','Adam Clayton Powell Jr. State Office Building','Isabel Washington Powell','Adam Powell','Adam Clayton Powell
Thought 2(film)','Giancarlo Esposito']. To find the documentary, I can search Adam Clayton Powell (film).
Action 2 Observation 2Search[Adam Clayton Powell (film) ] Adam ciayton Powell is a 1989 American documentary film directed by
Richard Kilberg. The film is about the rise and fall of influential African-American politician Adam Clayton Powell Jr.[3] [4] It was later aired
Thought 3as part of the PBs series The American Experience. Adam Clayton Powell (film) is a documentary about an African-American
politician, not Finnish rock groups. so the documentary about Finnish rock groups must instead be The Saimaa Gesture.
Action 3Finish[The Saimaa Gesture]
QuestionWhat profession does Nicholas Ray and Elia Kazan have in common?
Thought1I need to search Nicholas Ray and Elia Kazan, find their professions, then find the profession they have in common.
Action 1Search [Nicholas Ray]
Observation 1Nicholas Ray (born Raymond Nicholas Kienzle Jr., August 7, 1911 – June 16, 1979) was an American film director, screenwriter, and actor best known for
the 1955 film Rebel Without a Cause.
Thought 2Professions of Nicholas Ray are director, screenwriter, and actor. I need to search Elia Kazan next and find his professions.
Action 2Search[Elia Kazan]
Observation 2Elia Kazan was an American film and theatre director, producer, screenwriter
and actor. Professions of Elia Kazan are director, producer, screenwriter, and actor.
Thought 3So profession Nicholas Ray and Elia Kazan have in common is director,
screenwriter, and actor.
Action 3Finish[director, screenwriter, actor]
which magazine was started first Arthur's Magazine or First for Women?
Question Thought 1I need to search Arthur's Magazine and First for Women, and find which was
started first.
Action 1Search [Arthur's Magazine]
Observation 1Arthur's Magazine (1844-1846) was an American literary periodical published
in Philadelphia in the 19th century.
Thought 2Arthur's Magazine was started in 1844. I need to search First for Women
next.
Action 2Search[First for Women]
Observation 2First for Women is a woman's magazine published by Bauer Media Group in the
UsA.[1] The magazine was started in 1989.
Thought 3First for Women was started in 1989. 1844 (Arthur's Magazine) < 1989 (First
for Women), so Arthur's Magazine was started first.
Action 3Finish [Arthur's Magazine]
were Pavel Urysohn and Leonid Levin known for the same type of work?
Question
Thought 1
I need to search Pavel Urysohn and Leonid Levin, find their types of work,
then find if they are the same.
Action 1
Search[Pavel Urysohn]
", + "page_idx": 17 + }, + { + "type": "table", + "img_path": "images/4a302c01f7be5976c6354b70c047159e22c51c877896424ed5165ae867c12909.jpg", + "table_caption": [ + "Hotpot QA Prompts – Continued from previous page " + ], + "table_footnote": [], + "table_body": "
Observation1Pavel Samuilovich Urysohn (February 3, 1898 – August 17, 1924) was a Sovietmathematician who is best known for his contributions in dimension theory.
Thought 2Pavel Urysohn is a mathematician. I need to search Leonid Levin next and
Action 2find its type of work. Search[Leonid Levin]
Observation 2Leonid Anatolievich Levin is a soviet-American mathematician and computer
Thought 3scientist.
Leonid Levin is a mathematician and computer scientist. So Pavel Urysohn
Action 3Finish[yes]and Leonid Levin have the same type of work.
", + "page_idx": 18 + }, + { + "type": "table", + "img_path": "images/f6c58ec77debe0d5aebd61c3d43b76481230ef7fc460b742cd98292ae14dec4c.jpg", + "table_caption": [ + "C.2 FEVER " + ], + "table_footnote": [], + "table_body": "
FEVER Prompts
OriginalDetermine if there is Observation that suppoRTs or REFuTEs a Claim, or if there is NOT ENOUGH INFORMATION.
claimNikolaj Coster-waldau worked with the Fox Broadcasting Company.
AnswerSUPPORTS
claim AnswerStranger Things is set in Bloomington, Indiana. REFUTES
claimBeautiful reached number two on the Billboard Hot 100 in 2003. NOT ENOUGH INFO
Answer ActDetermine if there is Observation that suppoRTs or REFuTEs a Claim, or if there is NOT ENOUGH INFORMATION.
claim Action2 Observation 1Nikolaj Coster-waldau worked with the Fox Broadcasting Company. Search [Nikolaj Coster-Waldau] Nikolaj william Coster-Waldau (born 27 July 1970) is a Danish actor and producer. He graduated from the Danish National school of Performing Arts in Copenhagen in 1993, [1] and had his breakthrough role in Denmark with the film Nightwatch (1994). He played Jaime Lannister in the HBo fantasy drama series Game of Thrones, for which he received two Primetime Emmy Award nominations for Outstanding Supporting Actor in a Drama Series.. Coster-waldau has appeared in numerous films in his native Denmark and
(2013). In the U.S, his debut film role was in the war film Black Hawk Down (2001), playing Medal of Honor recipient Gary Gordon.[2] He then played a detective in the short-lived Fox television series New Amsterdam (2008), and appeared in the 20o9 Fox television film Virtuality, originally intended as apilot.
Action 2Finish[SUPPORTS] Stranger Things is set in Bloomington, Indiana.
Claim Action1 Observation1Search[stranger Things] Stranger Things is an American science fiction horror drama television series created by the Duffer Brothers. set in the 1980s, primarily in
the fictional town of Hawkins, Indiana, the series centers on a number of mysteries and supernatural events occurring around the town and their impact on an ensemble of child and adult characters.
Action 2Finish [REFUTES]
claim Action1Beautiful reached number two on the Billboard Hot 100 in 2003. Search[Beautiful]
Observation 1Could not find [Beautiful]. Similar: ['Beautiful','Beautiful, Beautiful', 'A Beautiful Mind (film)', 'Beautiful (Christina Aguilera song)', 'Life Is
Beautiful']. Search[Beautiful (Christina Aguilera song)
Action 2 Observation 2"Beautiful" is a song recorded by American singer Christina Aguilera for her fourth studio album, stripped (20o2).
Action 3Lookup[Billboard Hot 100] (Result 1 / 3) The song peaked at number two on the Billboard Hot 100 in the
Observation 3United states, where it was certified Gold for 500,o00 units shipped.
Action 4Finish [NOT ENOUGH INFO]
Determine if there is Observation that suppoRTs or REFuTEs a Claim, or if
COTthere is NOT ENOUGH INFORMATION.
Nikolaj Coster-waldau worked with the Fox Broadcasting Company.
claimNikolaj william Coster-waldau appeared in the 2009 Fox television film
Thought
Virtuality, so he has worked with the Fox Broadcasting Company.
SUPPORTS
Answer
claim
Stranger Things is set in Bloomington, Indiana.
Stranger Things is in the fictional town of Hawkins, Indiana, not in
Thought
Bloomington, Indiana.
Answer
REFUTES
Continued on next page
", + "page_idx": 19 + }, + { + "type": "table", + "img_path": "images/b37bc5751a854a8b6706e82d355f83f04ae7deb8fb9323e3353e39e62489db74.jpg", + "table_caption": [ + "Fever Prompts – Continued from previous page " + ], + "table_footnote": [], + "table_body": "
claim Thought AnswerBeautiful reached number two on the Billboard Hot 100 in 2003. The song peaked at number two on the Billboard Hot 100 in the United states, but not sure if it was in 2003. NOT ENOUGH INFO
ReActDetermine if there is Observation that suPPoRTS or REFUTES a Claim, or if there is NOT ENOUGH INFORMATION.
claimNikolaj Coster-Waldau worked with the Fox Broadcasting Company. I need to search Nikolaj Coster-Waldau and find if he has worked with the
Thought1 Action 1Fox Broadcasting Company. Search[Nikolaj Coster-Waldau] Nikolaj William Coster-Waldau (born 27 July 1970) is a Danish actor and
Observation 1producer. He graduated from the Danish National School of Performing Arts in Copenhagen in 1993, [1] and had his breakthrough role in Denmark with the film Nightwatch (1994). He played Jaime Lannister in the HBo fantasy drama series Game of Thrones, for which he received two Primetime Emmy Award nominations for Outstanding Supporting Actor in a Drama Series.. Coster-Waldau has appeared in numerous films in his native Denmark and Scandinavia, including Headhunters (2011) and A Thousand Times Good Night (2013). In the U.S, his debut film role was in the war film Black Hawk Down
(2001), playing Medal of Honor recipient Gary Gordon.[2] He then played a detective in the short-lived Fox television series New Amsterdam (2008), and appeared in the 20o9 Fox television film virtuality, originally intended as a pilot.
Thought 2Because he "appeared in the 2oo9 Fox television film virtuality", he should have worked with the Fox Broadcasting Company. Finish[SUPPORTS]
Claim Thought1Stranger Things is set in Bloomington, Indiana. I should search for stranger Things, and see if it is set in Bloomington, Indiana.
Action 1Search [stranger Things] Stranger Things is an American science fiction horror drama television
Observation 1series created by the Duffer Brothers. set in the 198os, primarily in the fictional town of Hawkins, Indiana, the series centers on a number of mysteries and supernatural events occurring around the town and their impact
Thought 2on an ensemble of child and adult characters. The observation says that it is set in a "fictional town of Hawkins,
Action 2Indiana", so it is not set in Bloomington. Finish[REFUTES]
Beautiful reached number two on the Billboard Hot 100 in 2003.
Claim Thought 1I need to search the song Beautiful and find if it reached number two on the Billboard Hot 100 in 2003.
Action 1Search[Beautiful]
Observation 1Could not find [Beautiful]. Similar: ['Beautiful','Beautiful, Beautiful', 'A Beautiful Mind (film)','Beautiful (Christina Aguilera song)','Life Is
Beautiful']. From suggestions, I should search "Beautiful (Christina Aguilera song)" to
Thought 2find the song.
Action 2Search [Beautiful (Christina Aguilera song)] "Beautiful" is a song recorded by American singer Christina Aguilera for her
Observation 2fourth studio album, Stripped (2002).
Thought 3It does not mention Billboard, so I need to look up "Billboard Hot 10o" to find if it reached number two on it in 2003.
Action 3Lookup[Billboard Hot 100]
Observation 3(Result 1 / 3) The song peaked at number two on the Billboard Hot 100 in the
United states, where it was certified Gold for 5o0,ooo units shipped.
if it was in 2003. I am not sure if this claim is true or not.
It only says the song peaked at number two on the Billboard Hot ioo, but not
Thought 4
Action 4
Finish [NOT ENOUGH INFO]
", + "page_idx": 20 + }, + { + "type": "text", + "text": "C.3 WEBSHOP ", + "text_level": 1, + "page_idx": 21 + }, + { + "type": "text", + "text": "[B078GWRC1J] \nBright Citrus Deodorant by Earth Mama | Natural and Safe for \nSensitive Skin, Pregnancy and Breastfeeding, Contains Organic \nCalendula 3-Ounce \n\\$10.99 \n[B078GTKVXY] \nGinger Fresh Deodorant by Earth Mama | Natural and Safe for \nSensitive Skin, Pregnancy and Breastfeeding, Contains Organic \nCalendula 3-Ounce \n\\$10.99 \n[B08KBVJ4XN] \nBarrel and Oak - Aluminum-Free Deodorant, Deodorant for Men \n, Essential Oil-Based Scent, 24-Hour Odor Protection, Cedar \n& Patchouli Blend, Gentle on Sensitive Skin (Mountain Sage, \n2.7 oz, 2-Pack) \n\\$15.95 Action: click [B078GWRC1J] \nObservation: \n[Back to Search] \n[Prev] \nscent [assorted scents][bright citrus][calming lavender][ginger [fresh] simply non-scents] \nsize [travel set (4-pack)][3 ounce (pack of 1)][3-ounce (2 -pack)] \nBright Citrus Deodorant by Earth Mama I Natural and Safe for Sensitive Skin, Pregnancy and Breastfeeding, Contains Organic Calendula 3-Ounce \nPrice: $\\$ 10.99$ \nRating: N.A. \n[Description] \n[Features] \n[Reviews] \n[Buy Now] ", + "page_idx": 21 + }, + { + "type": "text", + "text": "", + "page_idx": 21 + }, + { + "type": "text", + "text": "Action: click[bright citrus] Observation: You have clicked bright citrus. ", + "page_idx": 21 + }, + { + "type": "text", + "text": "Action: click[3 ounce (pack of 1)] Observation: You have clicked 3 ounce (pack of 1). ", + "page_idx": 21 + }, + { + "type": "text", + "text": "Action: click[Buy Now] ", + "page_idx": 21 + }, + { + "type": "text", + "text": "Action: think[B078GWRC1J and B078GTKVXY are bright citrus deodorant less then 50 dollars. I can check B078GWRC1J first. Observation: OK. ", + "page_idx": 21 + }, + { + "type": "text", + "text": "Action: click [B078GWRC1J] \nObservation: \n[Back to Search] \n[Prev] \nscent [assorted scents][bright citrus][calming lavender][ginger [fresh] simply non-scents] \nsize [travel set (4-pack)][3 ounce (pack of 1)][3-ounce (2 -pack)] \nBright Citrus Deodorant by Earth Mama | Natural and Safe for Sensitive Skin, Pregnancy and Breastfeeding, Contains Organic Calendula 3-Ounce \nPrice: \\$10.99 \nRating: N.A. \n[Description] \n[Features] \n[Reviews] \n[Buy Now] \nAction: think[For 3 ounce bottle of bright citrus deodorant for sensitive skin, the item has options 'bright citrus' \nand '3 ounce (pack of 1)' and seems good to buy.] \nObservation: OK. \nAction: click[bright citrus] \nObservation: You have clicked bright citrus. \nAction: click[3 ounce (pack of 1)] \nObservation: You have clicked 3 ounce (pack of 1). \nAction: click[Buy Now] ", + "page_idx": 21 + }, + { + "type": "text", + "text": "C.4 ALFWORLD ", + "text_level": 1, + "page_idx": 22 + }, + { + "type": "text", + "text": "You are in the middle of a room. Looking quickly around you, you see a cabinet 13, a cabinet 12, a cabinet 11, a cabinet 10, a cabinet 9, a cabinet 8, a cabinet 7, a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 1, a diningtable 1, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1. Your task is to: put a clean lettuce in diningtable. \n$>$ think: To solve the task, I need to find and take a lettuce, then clean it with sinkbasin, then put it in diningtable. \nOK. \n> think: First I need to find a lettuce. A lettuce is more likely to appear in fridge (1), diningtable (1), sinkbasin (1), stoveburner (1-3), cabinet (1-13). I can check one by one, starting with fridge 1. \nOK. \n> go to fridge 1 \nThe fridge 1 is closed. \n> open fridge 1 \nYou open the fridge 1. The fridge 1 is open. In it, you see a cup 3, a egg 2, a potato 3, and a potato 2. \n> go to diningtable 1 \nOn the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a fork 2, a knife 2, a knife 1, a ladle 1, a lettuce 1, a mug 2, a mug 1, a pan 2, a peppershaker 1, a spatula 3, a tomato 2, and a tomato 1. \n> think: Now I find a lettuce (1). Next, I need to take it. \nOK. \n$>$ take lettuce 1 from diningtable 1 \nYou pick up the lettuce 1 from the diningtable 1. \n$>$ think: Now I take a lettuce (1). Next, I need to go to sinkbasin (1) and clean it. \nOK. \n> go to sinkbasin 1 \nOn the sinkbasin 1, you see a apple 2, a ladle 2, a spoon 1, and a tomato 3. > clean lettuce 1 with sinkbasin 1 \nYou clean the lettuce 1 using the sinkbasin 1. \n$>$ think: Now I clean a lettuce (1). Next, I need to put it in/on diningtable 1. OK. \n$>$ go to diningtable 1 \nOn the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a for 2, a knife 2, a knife 1, a ladle 1, a mug 2, a mug 1, a pan 2, a peppershaker 1, a spatula 3, a tomato 2, and a tomato 1. \n> put lettuce 1 in/on diningtable 1 \nYou put the lettuce 1 in/on the diningtable 1. ", + "page_idx": 23 + }, + { + "type": "table", + "img_path": "images/fdb321ba5738fff4c524e9e00e4f1ed5921dca8af839e66a4ff7678e459131b3.jpg", + "table_caption": [ + "Table 9: An ReAct– IM prompt on the ALFWorld clean task. " + ], + "table_footnote": [], + "table_body": "
You are in the middle of a room. Looking quickly around you, you see a cabinet 13, a cabinet 12, a cabinet 11, a cabinet 10, a cabinet 9, a cabinet 8, a cabinet
7, a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 1, a diningtable 1, a drawer 1, a fridge 1, a
garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a
stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: put a clean lettuce in diningtable.
> think: To solve the task, I need to find and take a lettuce, then clean it with
OK.sinkbasin, then put it in diningtable.
> think: First I need to find a lettuce.
OK.
> go to fridge 1
The fridge 1 is closed.
> think: First I need to find a lettuce.
OK. > open fridge 1
You open the fridge 1. The fridge 1 is open. In it, you see a cup 3, a egg 2, a
potato 3, and a potato 2.
OK.> think: First I need to find a lettuce.
>go to diningtable 1
on the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a
fork 2, a knife 2, a knife 1, a ladle 1, a lettuce 1, a mug 2, a mug 1, a pan 2, a
peppershaker 1, a spatula 3, a tomato 2, and a tomato 1.
OK.> think: First I need to find a lettuce.
> take lettuce 1 from diningtable 1
You pick up the lettuce 1 from the diningtable 1.
> think: I need to clean this lettuce (1) using sinkbasin 1.
OK.
>go to sinkbasin 1
On the sinkbasin 1, you see a apple 2, a ladle 2, a spoon 1, and a tomato 3.
OK.> think: I need to clean this lettuce (1) using sinkbasin 1.
> clean lettuce 1 with sinkbasin 1
> think: I need to put this cleaned lettuce (1) in/on diningtable 1.You clean the lettuce 1 using the sinkbasin 1.
OK.
>go to diningtable 1
on the diningtable 1, you see a apple 1, a bread 1, a butterknife 2, a cup 2, a for
2, a knife 2, a knife 1, a ladle 1, a mug 2, a mug 1, a pan 2, a peppershaker 1, a
spatula 3, a tomato 2, and a tomato 1.
>think: I need to put this cleaned lettuce (1) in/on diningtable 1.
OK. > put lettuce 1 in/on diningtable 1
", + "page_idx": 24 + }, + { + "type": "text", + "text": "D TRAJECTORIES ", + "page_idx": 24 + }, + { + "type": "text", + "text": "D.1 FEVER TRAJECTORIES ", + "text_level": 1, + "page_idx": 24 + }, + { + "type": "text", + "text": "We provide some trajectories produced by ReAct, CoTand Acton several randomly selected examples from the FEVER dev set below. Search results are omitted to space. ", + "page_idx": 24 + }, + { + "type": "table", + "img_path": "images/cad9c73c708451951ce008b2ba9afbc2230f9d02d3dc38371524fe274865be3d.jpg", + "table_caption": [ + "Example 2491 (gt: REFUTES) " + ], + "table_footnote": [], + "table_body": "
ReAct
Claim:Bermuda Triangle is a loosely-defined region in the Pacific Ocean.
Thought 1:I need to search Bermuda Triangle and find if it is in the Pacific Ocean.
Action 1:Search [Bermuda Triangle]
Observation 1:Reportedly haunted locations...
Thought 2:Ocean, so it is not in the Pacific Ocean.The observation says that it is in the western part of the North Atlantic
Action 2:Finish [REFUTES]
Observation 2:Episode finished
Act
Claim:Bermuda Triangle is a loosely-defined region in the Pacific Ocean.
Action1: Search [Bermuda Triangle]
Observation1: Reportedly haunted locations:...
Action 2:Finish [REFUTES]
Observation 2:Episode finished
COT
Claim:Bermuda Triangle is a loosely-defined region in the Pacific Ocean.
Thought:Let's think step by step. The Bermuda Triangle is a loosely-defined region
Answer:REFUTESin the Atlantic Ocean. The Pacific Ocean is not the Atlantic Ocean.
", + "page_idx": 25 + }, + { + "type": "table", + "img_path": "images/3becf58400a1b4ec78db4d8ff7292dec5e96b83fbcc30984b681adf8f42a5309.jpg", + "table_caption": [ + "Example 5908 (gt: SUPPORTS) " + ], + "table_footnote": [], + "table_body": "
ReAct
Claim:Princess Mononoke is a film.I need to search Princess Mononoke and find if it is a film.
Thought 1:
Action 1:Search [Princess Mononoke]
Observation 1:Princess Mononoke
Thought 2:From the observation, it says that Princess Mononoke is a film.
Action 2:Finish[SUPPORTS]
Observation 2:Episode finished
Act
Claim:Princess Mononoke is a film.
Action 1:Search [Princess Mononoke]
Observation 1:Princess Mononoke
Action 2:Finish [SUPPORTS]
Observation 2:Episode finished
COT Claim:
Thought:Princess Mononoke is a film.Let's think step by step. Princess Mononoke is a movie, and movies are
films.
Answer:SUPPORTS
", + "page_idx": 25 + }, + { + "type": "table", + "img_path": "images/216ac4936e43ca618aad23c205b708cc0e316d6e380abd6f8745aa7c6f243ff8.jpg", + "table_caption": [ + "Example 1951 (gt: REFUTES) " + ], + "table_footnote": [], + "table_body": "
ReAct
Claim:Soyuz was part of the American space program.
Thought 1:I need to search Soyuz and find if it was part of the American space program.
Action 1:Search [Soyuz]
Observation 1:Soyuz is a transliteration...
Thought 2:It does not mention the American space program, so I need to search
"American space program" to find if it was part of it.
Action 2:Search [American space program]
Observation 2:The space policy...
Thought 3:It does not mention Soyuz, so I am not sure if this claim is true or not.
Action 3:Finish [NOT ENOUGH INFO]
Observation 3:Episode finished
Act
Claim:Soyuz was part of the American space program.
Action 1:Search [Soyuz]
Observation 1:Soyuz is a transliteration...
Action 2:
Observation 2:Finish [NOT ENOUGH INFO]
Episode finished
COT
Claim:Soyuz was part of the American space program.
Thought:Let's think step by step. Soyuz is a Russian spacecraft. The American
space program is NASA. NAsA and Russia have worked together on the
International Space Station.
Answer:
SUPPORTS
", + "page_idx": 25 + }, + { + "type": "table", + "img_path": "images/fe6c073fe7678f05bce4544bf095343f10ed09581ba6a7ce51b71e3cb56fbee4.jpg", + "table_caption": [ + "Example 3208 (gt: REFUTES) " + ], + "table_footnote": [], + "table_body": "
ReAct
Claim:I need to search for Reign Over Me and find if it is an American film madeReign Over Me is an American film made in 2010.
Thought 1:in 2010.
Action 1:Search [Reign Over Me]
Observation 1: Thought 2:Reign Over Me ...
made in 2010.The observation says that it is an American film made in 2007, so it is not
Action 2:Finish [REFUTES]
Observation 2:Episode finished
Act
Claim:Reign Over Me is an American film made in 2010.
Action 1:Search [Reign Over Me]
Action 2:Finish [SUPPORTS]
Observation 2:Episode finished
COT
Claim:Reign Over Me is an American film made in 2010.
Thought:Let's think step by step. First, is Reign Over Me an American film?Yes,
it is. Second, was it made in 2010? Yes, it was.
Answer:
SUPPORTS
", + "page_idx": 26 + }, + { + "type": "text", + "text": "D.2 ALFWORLD TRAJECTORIES ", + "text_level": 1, + "page_idx": 26 + }, + { + "type": "text", + "text": "We provide an example trajectory of ReAct, Act, and ReAct – IM on the same ALFWorld game, pick_clean_then_place_in_recep-Knife-None-CounterTop-10/ trial_T20190909_110445_675754. ", + "page_idx": 26 + }, + { + "type": "text", + "text": "D.2.1 REACT TRAJECTORY ", + "page_idx": 26 + }, + { + "type": "text", + "text": "ReAct is able to correctly find the knife, clean it, and then place it on a countertop. ", + "page_idx": 26 + }, + { + "type": "table", + "img_path": "images/659f41d4412dd2304297b1f91313f8c8c43690bdd94e00cd057786891791a805.jpg", + "table_caption": [ + "ReAct ALFWorld trajectory " + ], + "table_footnote": [], + "table_body": "
You are in the middle of a room.Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a
countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasil1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster
1. Your task is to: put a clean knife in countertop.
> think: To solve the task, I need to find and take a knife, then clean it with
sinkbasin, then put it in countertop.
OK.
> think: First I need to find a knife. A knife is more likely to appear in cabinet
(1-6), drawer (1-3), countertop (1-3), fridge (1), garbagecan (1), shelf (1-3),
cabinet 1.sinkbasin (1), stoveburner (1-4), toaster (1). I can check one by one, starting wit)
OK.
> go to cabinet 1
> go to cabinet 2on the cabinet 1, you see a bowl 1.
> go to cabinet 3The cabinet 2 is closed.
On the cabinet 3, you see a glassbottle 1.
> go to cabinet 4
> go to cabinet 5On the cabinet 4, you see a mug 1.
The cabinet 5 is closed. > go to cabinet 6
The cabinet 6 is closed.
> go to drawer 1
> go to drawer 2The drawer 1 is closed.
The drawer 2 is closed.
> go to drawer 3
The drawer 3 is closed.
> go to countertop 1
> go to countertop 2on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
On the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a knife 1, a
plate 2, a potato 3, and a statue 1.
> think: Now I find a knife (1). Next, I need to take it.
OK.
> take knife 1 from countertop 2
You pick up the knife 1 from the countertop 2.
OK.> think: Now I take a knife (1). Next, I need to go to sinkbasin (1) and clean it.
> go to sinkbasin 1
On the sinkbasin 1, you see a fork 3, a lettuce 3, and a spatula 2.
> clean knife 1 with sinkbasin 1
You clean the knife 1 using the sinkbasin 1.
> think: Now I clean a knife (1). Next, I need to put it in/on countertop 1.
OK.
> go to countertop 1
on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
", + "page_idx": 27 + }, + { + "type": "text", + "text": "D.2.2 ACT TRAJECTORY ", + "text_level": 1, + "page_idx": 27 + }, + { + "type": "text", + "text": "Act is able to correctly ind the knife, but tries to clean it using a sinkbasin before actually going to the sinkbasin. From there on, the model is unable to recover, and is stuck repeating the same sequence of commands. With ReAct, an existing thought would have concretely identifed that the knife had been taken, and that the next subgoal was to go to a sinkbasin to clean it. ", + "page_idx": 27 + }, + { + "type": "table", + "img_path": "images/d98a2efdd20e557dc2bd54f2ee6bf6f2cd4d467e12bbd31721ea9e4941ac71a7.jpg", + "table_caption": [ + "Act ALFWorld trajectory " + ], + "table_footnote": [], + "table_body": "
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster
Your task is to: put a clean knife in countertop. > go to countertop 1 on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2. > go to countertop 2 on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a knife 1, a
plate 2, a potato 3, and a statue 1. > take knife 1 from countertop 2 > go to countertop 1You pick up the knife 1 from the countertop 2.
> clean knife 1 with sinkbasin 1 Nothing happens. > go to countertop 3on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
2, a tomato 1, and a vase 2.on the countertop 3, you see a bread 3, a butterknife 2, a cellphone 1, a creditcard 1, a fork 2, a houseplant 1, a knife 2, a spatula 1, a statue 3, a tomato 3, a tomato
> take knife 2 from countertop 3 Nothing happens. > go to countertop 2
potato 3, and a statue 1.on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a plate 2, a
Nothing happens.
> take knife 1 from countertop 2
> go to countertop 1
> clean knife 1 with sinkbasin 1on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
Nothing happens.
> go to countertop 3
2, a tomato l, and a vase 2.on the countertop 3, you see a bread 3, a butterknife 2, a cellphone 1, a creditcard
> take knife 2 from countertop 31, a fork 2, a houseplant 1, a knife 2, a spatula 1, a statue 3, a tomato 3, a tomato
Nothing happens.
> go to countertop 2
potato 3, and a statue 1.on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a plate 2, a
Nothing happens.> take knife 1 from countertop 2
> go to countertop 1
> clean knife 1 with sinkbasin 1on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
Nothing happens.
> go to countertop 3
1, a fork 2, a houseplant 1, a knife 2, a spatula 1, a statue 3, a tomato 3, a tomatoon the countertop 3, you see a bread 3, a butterknife 2, a cellphone 1, a creditcard
2, a tomato 1, and a vase 2.
> take knife 2 from countertop 3
Nothing happens.
> go to countertop 2
on the countertop 2, you see a cup 1, a dishsponge 1, a glassbottle 3, a plate 2, a
potato 3, and a statue 1.
> take knife 1 from countertop 2
Nothing happens.
> go to countertop 1
on the countertop 1, you see a lettuce 2, a mug 2, a peppershaker 1, and a spoon 2.
> clean knife 1 with sinkbasin 1
", + "page_idx": 28 + }, + { + "type": "text", + "text": "D.2.3 REACT-IM TRAJECTORY ", + "text_level": 1, + "page_idx": 28 + }, + { + "type": "text", + "text": "ReAct –IM is able to correctly find the knife, but is unable to clean it as well. The LLM then gets stuck trying to place this knife on a countertop. One possible issue is the incorrect thought think: I need to find a clean knife., which seems to trick the LLM in believing that the knife is already cleaned. In ReAct, this sequence of subgoals would be concretely captured by each thought. ", + "page_idx": 28 + }, + { + "type": "table", + "img_path": "images/d78b1fc7e019e5a89414ccfae4e382351fbb5d3ebd5763f7ef21e27c5ed77f44.jpg", + "table_caption": [ + "ReAct–IM ALFWorld trajectory " + ], + "table_footnote": [], + "table_body": "
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbas 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaste: 1. Your task is to: put a clean knife in countertop. > think: To solve the task, I need to find and take a clean knife, then put it in countertop. OK. > think: I need to find a clean knife.
", + "page_idx": 29 + }, + { + "type": "table", + "img_path": "images/b23c3fe3506a56dbf706ed26daed4468dfc508dc16d3cb9bd170d73d5778f2a6.jpg", + "table_caption": [ + "Table 10: Example trajectories for Webshop predicted by Act and ReAct. Compared to Act, ReAct uses reasoning to find products that satisfy all target attributes. " + ], + "table_footnote": [], + "table_body": "
Instruction: get me a sixteen pack of apple cinnamon freeze dried banana chips, and price lower than 50.00 dollars
ActReAct
Action: search [sixteen pack apple cinnamon freeze dried bananaAction: seareh [sixteen pack apple cinnamon freeze dried banana
chips] Observation:chips] Observation:
[ Back to Search ][ Back to Search]
Page 1 (Total results: 50)Page 1 (Total results: 50)
[Next][Nex]
[B0061IVFZE][B0061IVFZE]
Brothers-ALL-Natural Fruit Crisps, Strawberry Banana, 0.42 - Ounce (Pack of 100)Brothers-ALL-Natural Fruit Crisps, Strawberry Banana, 0.42 - Ounce (Pack of 100)
$85.0$85.0
[B096H2P6G2] Moon Fruit Freeze Dried Fruit Snacks. Fruit Snacks for Kids -[B096H2P6G2] Moon Fruit Freeze Dried Fruit Snacks. Fruit Snacks for Kids -
(Variety Pack) $18.99(Variety Pack) $18.99
[B092JLLYK6][B092JLLYK6]
Nature's Turn Freeze-Dried Fruit Snacks - Banana Crisps - Perfect For School Lunches or an On-The-Go Snack - No Sugar Added,Nature's Turn Freeze-Dried Fruit Snacks - Banana Crisps - Perfect For School Lunches or an On-The-Go Snack - No Sugar Added,
Non GMO, Gluten Free, Nothing Artificial (0.53oz) 6-Pack $12.99Non GMO, Gluten Free, Nothing Artificial (0.53oz) 6-Pack $12.99
Action: click [B0061IVFZE]Action: think[B0061IVFZE is strawberry banana, not apple cinnamon.
Observation:B096H2P6G2 is fruit snacks, not freeze dried banana chips. B092LLYK is banana crisps, not apple cinnamon.I can che
[Back to Search] [Prev]B092JLLYK6 first.
flavor name [asian pear][bananalfuj apple & cinnamon][strawberryObservation: OK.
banana] Brothers-ALL-Natural Fruit Crisps, Strawberry Banana,
0.42 Ounce (Pack of 100)Action: click[B092JLLYK6]
Price: $85.0Observation:
Rating: N.A.[Back to Search]
[Description][Prev]
[Features]fiavor name [aple]lapple cinnamon][banana][cantaloupepeach][pear]
[Reviews][strawberry strawberry bananal[sampler variety pack][mega variety
[Buy Now]pack][orchard variety pack]
size [0.53 ounce (pack of 6)][0.53 ounce (pack of 8)]I0.53 ounce (pack
Action: click[Buy Now]of 16)] Nature's Turn Freeze-Dried Fruit Snacks - Banana Crisps - Perfect
For School Lunches or an On-The-Go Snack - No Sugar Added, Non
GMO, Gluten Free, Nothing Artificial (0.53oz) 6-Pack
Price: $12.99
Rating: N.A.
[Description]
[Features]
[Reviews]
[Buy Now]
Action: think[For sixteen pack of apple cinnamon freeze dried banana
chips, the item has options 'apple cinnamon' and '0.53 ounce (pack of
16)' and seems good to buy.] Observation: OK.
Action: click[apple cinnamon]
Observation: You have clicked apple cinnamon.
Action: click[0.53 ounce (pack of 16)]
Observation: You have clicked 0.53 ounce (pack of 16).
Action: click[Buy Now]
Score: 0.125
Score: 1.0
", + "page_idx": 30 + }, + { + "type": "text", + "text": "E MoRE ANALYSIS ", + "text_level": 1, + "page_idx": 31 + }, + { + "type": "text", + "text": "E.1 SuccESS AND FAILURE MoDEs ANALYsIS ", + "text_level": 1, + "page_idx": 31 + }, + { + "type": "text", + "text": "We provide some examples corresponding to the success and error mode analysis given in Sec. 3.3. \nSearch results and non-representative steps are omitted to reduce space. ", + "page_idx": 31 + }, + { + "type": "table", + "img_path": "images/64e2864c81b9df063470957f77d00dca3bac876ebd3a18a66de299896188a0e8.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
Success: True positive
ReAct
Question:Author David Chanoff has collaborated with a U.S. Navy admiral who served as the ambassador to the United Kingdom under which President?
Thought 1:I need to search David Chanoff and find the U.S. Navy admiral he
Action 1:collaborated with. Search [David Chanoff]
Observation 1:David Chanoff is a noted author...
Action 2:Search [william J. Crowe]
Observation 2:William J. Crowe is...
Thought 3:william J. Crowe served as the ambassador to the United Kingdom under
Action 3:President Bill Clinton. So the answer is Bill Clinton. Finish [Bill Clinton]
Observation 3:Episode finished
CoT
Question:What was the name of the team that represented an Arizona university in
Thought:the conference that covers a broad expanse of the western United States, including Arizona, California, and New Mexico? Let's think step by step. The name of the team that represented an Arizona
university in the conference that covers a broad expanse of the western United States, including Arizona, California, and New Mexico is Arizona
Answer:State Sun Devils. Arizona State Sun Devils
", + "page_idx": 31 + }, + { + "type": "table", + "img_path": "images/b226548f89474de2e8a64573b2870e8305a5f7e5c4f3f62def34e72b9e4cda51.jpg", + "table_caption": [ + "Success: False positive " + ], + "table_footnote": [], + "table_body": "
ReAct
Question:Did the board game San Marco or About Time come out first?
Thought 1:I need to search San Marco and About Time, and find which came out first. Search[San Marco]
Action 1: Observation 1:San Marco is one of the ... The was built in venice.
Thought 2:San Marco is a sestiere of Venice. I need to search About Time next.
Action 2:
Observation 2:Could not find [About Time]. Similar: [...].
Thought 3:About Time is a 2013 film. so San Marco came out first.
Action 3: Observation 3:
CoTEpisode finished
Question:Was Vanderbilt University or Emory University founded first?
Thought:Let's think step by step. Vanderbilt University was founded in 1873. Emory
University was founded in 1836. 1873 (Vanderbilt University) > 1836 (Emory
University), so Vanderbilt University was founded first.
Answer:Emory University
", + "page_idx": 31 + }, + { + "type": "table", + "img_path": "images/5f9b0e7c1061f532b8ebfc3e3964ce6f9a429c30b51beb1f1a58c1d2e43b5754.jpg", + "table_caption": [ + "Failure: Reasoning error " + ], + "table_footnote": [], + "table_body": "
ReAct
Question:what was the middle name of the actress who was cast alongside Harvey Fierstein, Linda Hart, Dick Latessa, Clarke Thorell, Mary Bond Davis, Laura
Bell Bundy, Matthew Morrison, Corey Reynolds, and Marissa Jaret Winokur in Hairspray?
Thought 1:I need to search Harvey Fierstein, Linda Hart, Dick Latessa, Clarke Thorell, Mary Bond Davis, Laura Bell Bundy, Matthew Morrison, Corey Reynolds, and
Marissa Jaret Winokur, find the actress that was cast alongside them in Hairspray, then find its middle name.
Action 1:Search [Harvey Fierstein]
Observation 1: Thought 2:Harvey Forbes Fierstein Harvey Fierstein is an actor, playwright, and screenwriter. I need to
search Linda Hart next...
Action 2:
Search[Linda Hart] ...
CoT
Question:Who is older Danny Green or James Worthy?
Thought:
Let's think step by step. Danny Green was born in 1987. James Worthy was
born in 1961. 1987 (Danny Green) > 1961 (James Worthy), so Danny Green is
older.
Answer:
", + "page_idx": 31 + }, + { + "type": "table", + "img_path": "images/b2c17e82841ba3f6bd64a861652500daca5fb87c7f4854bdc5fd96df95c15992.jpg", + "table_caption": [ + "Failure: Search error " + ], + "table_footnote": [], + "table_body": "
ReAct Question:What does the goddess associated with the goddess frigg consists of what
tales?
Thought 1:I need to search goddess frigg and find its associated goddess.
Action 1: Observation 1:Search [goddess frigg]
Could not find goddess frigg. Similar: ['Frigg','Frigg and Freyja common origin hypothesis', 'Freyja (section Relation to Frigg and other goddesses
and figures)', 'Eir (redirect from Eir (goddess))', 'Baldr'].
Thought 2:I need to search Frigg instead...
", + "page_idx": 32 + }, + { + "type": "table", + "img_path": "images/379fdd48318bb1305deca60c80f8266206d538f724ac05336d97d76d2fc138c3.jpg", + "table_caption": [ + "Failure: Hallucination " + ], + "table_footnote": [], + "table_body": "
CoT
Question:what was the first year a scientific journal published by an organization located in the Bronx was published?
Thought:Let's think step by step. The first year a scientific journal published by an organization located in the Bronx was published was 1916.
Answer:1916(Label:1909)
", + "page_idx": 32 + }, + { + "type": "table", + "img_path": "images/88ccbfd7b1fa3b65f967a98cc5b454395569bafbba6a949cd991bf116c9025aa.jpg", + "table_caption": [ + "Failure: Label ambiguity " + ], + "table_footnote": [], + "table_body": "
ReActwhat nationality is the man who developed the dictator game?
Question: Thought 1:nationality.I need to search dictator game, find the man who developed it, then find his
Action 1:Search [dictator game]
Observation 1:The dictator game is a popular experimental instrument in social psychology
Action 3:and economics...
Observation 3:Search [Amos Tversky] Amos Nathan Tversky..
Thought 4:Amos Tversky is an Israeli cognitive and mathematical psychologist. So the
man who developed the dictator game is Israeli.
Action 4:Finish[Israeli] (label:Israel-American)
CoT
Question:Kurt Fuller from Stockton, CA appeared in which American Detective Comedy
Drama television series created by Steve Franks?
Thought:Let's think step by step. Kurt Fuller from Stockton, CA appeared in Psych.
Psych is an American Detective Comedy Drama television series created by
Steve Franks.
Answer:Psych (label: Psych is an American detective comedy-drama)
", + "page_idx": 32 + } +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/0a3b3f8b365a46a6b989cc8ef7a108c9d0f3048d9fc85ba862fd364c7bea63ce.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/0a3b3f8b365a46a6b989cc8ef7a108c9d0f3048d9fc85ba862fd364c7bea63ce.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4241356df5b181dbc71b68648251430d2bb76b39 Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/0a3b3f8b365a46a6b989cc8ef7a108c9d0f3048d9fc85ba862fd364c7bea63ce.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/171e40ed5124fb8222b6b5c65d5bcb93b3e24ea67229f3bc706a756f0bf4fbb3.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/171e40ed5124fb8222b6b5c65d5bcb93b3e24ea67229f3bc706a756f0bf4fbb3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2ce2f0845873fb08e69cb208789f68ff736459f4 Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/171e40ed5124fb8222b6b5c65d5bcb93b3e24ea67229f3bc706a756f0bf4fbb3.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/1ccfb7d1160d431d2af719bc8134b77340986ff29cdda76606580fd546c29c0d.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/1ccfb7d1160d431d2af719bc8134b77340986ff29cdda76606580fd546c29c0d.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ed582b6381fcabbf59f55f9fc1c86c00ba839296 --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/images/1ccfb7d1160d431d2af719bc8134b77340986ff29cdda76606580fd546c29c0d.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:422112efc16cae109f664494840345b76058549e6acd025a9a928354105d789e +size 313527 diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/216ac4936e43ca618aad23c205b708cc0e316d6e380abd6f8745aa7c6f243ff8.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/216ac4936e43ca618aad23c205b708cc0e316d6e380abd6f8745aa7c6f243ff8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c728b66af2f469c23d381a8bc991bbec50b5848b Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/216ac4936e43ca618aad23c205b708cc0e316d6e380abd6f8745aa7c6f243ff8.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/240a6c100e3d289de177f96cc11a86543391e92e0b67cd38c780c9c8b4e5ac12.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/240a6c100e3d289de177f96cc11a86543391e92e0b67cd38c780c9c8b4e5ac12.jpg new file mode 100644 index 0000000000000000000000000000000000000000..99a38fc03f2a3f48e05953bcdd10f0703f9c790d Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/240a6c100e3d289de177f96cc11a86543391e92e0b67cd38c780c9c8b4e5ac12.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/379fdd48318bb1305deca60c80f8266206d538f724ac05336d97d76d2fc138c3.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/379fdd48318bb1305deca60c80f8266206d538f724ac05336d97d76d2fc138c3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..54758f623c4b8ef8a03bb13fb0db44d4ad518f0e Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/379fdd48318bb1305deca60c80f8266206d538f724ac05336d97d76d2fc138c3.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/39c142d4e1257ebc9816020500fcbf1e345a0b76ce110db2551a89b14ca4c6d6.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/39c142d4e1257ebc9816020500fcbf1e345a0b76ce110db2551a89b14ca4c6d6.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a8d2967340f1dba4bb64fbc17822f3babfe59d72 --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/images/39c142d4e1257ebc9816020500fcbf1e345a0b76ce110db2551a89b14ca4c6d6.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:159e8b282bef8105e68e35fe4290752d88e85629014983c17dd3e0c94cabb486 +size 313850 diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/3becf58400a1b4ec78db4d8ff7292dec5e96b83fbcc30984b681adf8f42a5309.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/3becf58400a1b4ec78db4d8ff7292dec5e96b83fbcc30984b681adf8f42a5309.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2dee86600ed3af3b254603fd4bd4a88081db260b Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/3becf58400a1b4ec78db4d8ff7292dec5e96b83fbcc30984b681adf8f42a5309.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/4a302c01f7be5976c6354b70c047159e22c51c877896424ed5165ae867c12909.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/4a302c01f7be5976c6354b70c047159e22c51c877896424ed5165ae867c12909.jpg new file mode 100644 index 0000000000000000000000000000000000000000..acfc3b6edec439720c348e477522e3a22eea0bd6 Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/4a302c01f7be5976c6354b70c047159e22c51c877896424ed5165ae867c12909.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/4c3b0e92c6dd6f297dab55532d495e593945818c5f158f452b08e194416f1e1f.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/4c3b0e92c6dd6f297dab55532d495e593945818c5f158f452b08e194416f1e1f.jpg new file mode 100644 index 0000000000000000000000000000000000000000..782cdea0ae092cf6847b0f04e2f90453397f31f6 Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/4c3b0e92c6dd6f297dab55532d495e593945818c5f158f452b08e194416f1e1f.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/4c8d08f6e9dc725e3b192da81d95c66b9a92f21696c8b18a8e3e7aca2ab18857.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/4c8d08f6e9dc725e3b192da81d95c66b9a92f21696c8b18a8e3e7aca2ab18857.jpg new file mode 100644 index 0000000000000000000000000000000000000000..96cc92c5684b957e2d7cb60aa6bfb61b09f3742d --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/images/4c8d08f6e9dc725e3b192da81d95c66b9a92f21696c8b18a8e3e7aca2ab18857.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63d176eb3702c38792cdd76f4bda5dcc8fc7756c0b2a9e07841709ae5d61e17b +size 282667 diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/5f9b0e7c1061f532b8ebfc3e3964ce6f9a429c30b51beb1f1a58c1d2e43b5754.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/5f9b0e7c1061f532b8ebfc3e3964ce6f9a429c30b51beb1f1a58c1d2e43b5754.jpg new file mode 100644 index 0000000000000000000000000000000000000000..783afbf747018503e3bde43c18e316e9c008feff Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/5f9b0e7c1061f532b8ebfc3e3964ce6f9a429c30b51beb1f1a58c1d2e43b5754.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/64e2864c81b9df063470957f77d00dca3bac876ebd3a18a66de299896188a0e8.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/64e2864c81b9df063470957f77d00dca3bac876ebd3a18a66de299896188a0e8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ac234f46c6d5ba5294c20424edad6384901de671 --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/images/64e2864c81b9df063470957f77d00dca3bac876ebd3a18a66de299896188a0e8.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:520534d6dd7d9a14bef166d8e828be54a4660be6210a33654d51955d6825a334 +size 101154 diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/659f41d4412dd2304297b1f91313f8c8c43690bdd94e00cd057786891791a805.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/659f41d4412dd2304297b1f91313f8c8c43690bdd94e00cd057786891791a805.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3079236665595290ea97b13be79dad3983d3dab6 --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/images/659f41d4412dd2304297b1f91313f8c8c43690bdd94e00cd057786891791a805.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e9d8769f7e8f048f04765453a4b5cc8b9e12acd003a2c0b212e66b83f030fe4 +size 176815 diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/69d01dabe525b457a0dea4899633824d7c6a020e8bcd57f87b2f5c5cc3dae77c.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/69d01dabe525b457a0dea4899633824d7c6a020e8bcd57f87b2f5c5cc3dae77c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..79e06ca27c11e4362e95249da92778103a7b96d0 --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/images/69d01dabe525b457a0dea4899633824d7c6a020e8bcd57f87b2f5c5cc3dae77c.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2789b600e9a15fcea6d8d54d12dad11ba00d2ac5a28d14745c46211236b4fcd7 +size 192267 diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/88ccbfd7b1fa3b65f967a98cc5b454395569bafbba6a949cd991bf116c9025aa.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/88ccbfd7b1fa3b65f967a98cc5b454395569bafbba6a949cd991bf116c9025aa.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2f1f0a68f84261582b14a123c18c46bfc75eaf4e Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/88ccbfd7b1fa3b65f967a98cc5b454395569bafbba6a949cd991bf116c9025aa.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/a66d84fa07260063d90bc52813f4509e46d7dc18333fadc0c21bb66383edf4fc.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/a66d84fa07260063d90bc52813f4509e46d7dc18333fadc0c21bb66383edf4fc.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ae8230d22283c623913f4b3a727e6dfcb781d7b8 Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/a66d84fa07260063d90bc52813f4509e46d7dc18333fadc0c21bb66383edf4fc.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/b226548f89474de2e8a64573b2870e8305a5f7e5c4f3f62def34e72b9e4cda51.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/b226548f89474de2e8a64573b2870e8305a5f7e5c4f3f62def34e72b9e4cda51.jpg new file mode 100644 index 0000000000000000000000000000000000000000..45b3cf09d6be54128c12ecddeac86d52909f4163 Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/b226548f89474de2e8a64573b2870e8305a5f7e5c4f3f62def34e72b9e4cda51.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/b23c3fe3506a56dbf706ed26daed4468dfc508dc16d3cb9bd170d73d5778f2a6.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/b23c3fe3506a56dbf706ed26daed4468dfc508dc16d3cb9bd170d73d5778f2a6.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3ad7c1dbffc5c5f5b788c3d3074de957ba971991 --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/images/b23c3fe3506a56dbf706ed26daed4468dfc508dc16d3cb9bd170d73d5778f2a6.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ab063362cc1f21b3256943236f095125bf877a0cdfebd9748e24f4f340576c7 +size 211666 diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/b2c17e82841ba3f6bd64a861652500daca5fb87c7f4854bdc5fd96df95c15992.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/b2c17e82841ba3f6bd64a861652500daca5fb87c7f4854bdc5fd96df95c15992.jpg new file mode 100644 index 0000000000000000000000000000000000000000..116044befb6bad67f3ccafc4c097d0890d68c100 Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/b2c17e82841ba3f6bd64a861652500daca5fb87c7f4854bdc5fd96df95c15992.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/b37bc5751a854a8b6706e82d355f83f04ae7deb8fb9323e3353e39e62489db74.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/b37bc5751a854a8b6706e82d355f83f04ae7deb8fb9323e3353e39e62489db74.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8651e0e77d2f2d559e13ec17bee5e17394ef4c8b --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/images/b37bc5751a854a8b6706e82d355f83f04ae7deb8fb9323e3353e39e62489db74.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63d5e26e209974efd7b399925739e634ee6bf5bdf30dcc6732277dac5968d147 +size 290022 diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/cad9c73c708451951ce008b2ba9afbc2230f9d02d3dc38371524fe274865be3d.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/cad9c73c708451951ce008b2ba9afbc2230f9d02d3dc38371524fe274865be3d.jpg new file mode 100644 index 0000000000000000000000000000000000000000..75aed1d1096af9b4a6ce441fae9e69edef0e648c Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/cad9c73c708451951ce008b2ba9afbc2230f9d02d3dc38371524fe274865be3d.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/cd2e94d69f99658328815ba6ccee179d6aecd126347c9af7d744f9d58a151086.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/cd2e94d69f99658328815ba6ccee179d6aecd126347c9af7d744f9d58a151086.jpg new file mode 100644 index 0000000000000000000000000000000000000000..448bef28b85bdc925cb9b9ae449650146c4b0668 --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/images/cd2e94d69f99658328815ba6ccee179d6aecd126347c9af7d744f9d58a151086.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3890faa64e27c332f8bde206d3de93e00438a8dd25f744bc3f9f65da4a71ca3a +size 104634 diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/d0861a11c5c7c6c6270a1c087ce8a1d094a3706d7424f6ea9cbbbfc8c435d793.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/d0861a11c5c7c6c6270a1c087ce8a1d094a3706d7424f6ea9cbbbfc8c435d793.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d5083c1daa96803de6a64fc8ce15cb2a0e515894 Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/d0861a11c5c7c6c6270a1c087ce8a1d094a3706d7424f6ea9cbbbfc8c435d793.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/d78b1fc7e019e5a89414ccfae4e382351fbb5d3ebd5763f7ef21e27c5ed77f44.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/d78b1fc7e019e5a89414ccfae4e382351fbb5d3ebd5763f7ef21e27c5ed77f44.jpg new file mode 100644 index 0000000000000000000000000000000000000000..06d82670db679673279b7e0eefdad63ac592e362 --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/images/d78b1fc7e019e5a89414ccfae4e382351fbb5d3ebd5763f7ef21e27c5ed77f44.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba2deca59c55dd264e93bf1630a08adbb9f00d3f313cddaeaf8fbcd746a230ad +size 159499 diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/d98a2efdd20e557dc2bd54f2ee6bf6f2cd4d467e12bbd31721ea9e4941ac71a7.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/d98a2efdd20e557dc2bd54f2ee6bf6f2cd4d467e12bbd31721ea9e4941ac71a7.jpg new file mode 100644 index 0000000000000000000000000000000000000000..abe3f03e6ac9a3714740e4b0e3d3a15bacd33be6 --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/images/d98a2efdd20e557dc2bd54f2ee6bf6f2cd4d467e12bbd31721ea9e4941ac71a7.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9ba85c782013559a61b05e89b3f7910a92a3c220a2d07c69ad0472a0739de8b +size 221822 diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/e35ce6a7e5411deb6b633d6207827c7fa2ae7164a81ece9c9b25a2f3badcbf51.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/e35ce6a7e5411deb6b633d6207827c7fa2ae7164a81ece9c9b25a2f3badcbf51.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e81c7bce6a36d330c827aaf8eaebb6a03e22efd3 Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/e35ce6a7e5411deb6b633d6207827c7fa2ae7164a81ece9c9b25a2f3badcbf51.jpg differ diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/f6c58ec77debe0d5aebd61c3d43b76481230ef7fc460b742cd98292ae14dec4c.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/f6c58ec77debe0d5aebd61c3d43b76481230ef7fc460b742cd98292ae14dec4c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e08f423105c5435a14380bee8ff576ece0018df5 --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/images/f6c58ec77debe0d5aebd61c3d43b76481230ef7fc460b742cd98292ae14dec4c.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46d937324de38f1133577a2f2704535c21cb1c13e5e6c9b149a7a8364026a228 +size 284210 diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/fdb321ba5738fff4c524e9e00e4f1ed5921dca8af839e66a4ff7678e459131b3.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/fdb321ba5738fff4c524e9e00e4f1ed5921dca8af839e66a4ff7678e459131b3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a84d9778579693cf129634dd8d60dc4817b2c771 --- /dev/null +++ b/backend/ingestion_pipeline/output/React_paper/auto/images/fdb321ba5738fff4c524e9e00e4f1ed5921dca8af839e66a4ff7678e459131b3.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8372c179c544310cb08c8a94bf8357e5e73e42a074cef365c29bab7f594fbd4e +size 164882 diff --git a/backend/ingestion_pipeline/output/React_paper/auto/images/fe6c073fe7678f05bce4544bf095343f10ed09581ba6a7ce51b71e3cb56fbee4.jpg b/backend/ingestion_pipeline/output/React_paper/auto/images/fe6c073fe7678f05bce4544bf095343f10ed09581ba6a7ce51b71e3cb56fbee4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f6ec1057f0ddf7c6941e075e6b74def48416388c Binary files /dev/null and b/backend/ingestion_pipeline/output/React_paper/auto/images/fe6c073fe7678f05bce4544bf095343f10ed09581ba6a7ce51b71e3cb56fbee4.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/Small Language Models in the Era of Large.md b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/Small Language Models in the Era of Large.md new file mode 100644 index 0000000000000000000000000000000000000000..990329ea9f35867a4069bc9a615637218616a0b7 --- /dev/null +++ b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/Small Language Models in the Era of Large.md @@ -0,0 +1,1249 @@ +# A Comprehensive Survey of Small Language Models in the Era of Large Language Models: Techniques, Enhancements, Applications, Collaboration with LLMs, and Trustworthiness + +FALI WANG, ZHIWEI ZHANG, XIANREN ZHANG, and ZONGYU WU, The Pennsylvania State + +University, USA + +TZUHAO MO, University of Pennsylvania, USA +QIUHAO LU, WANJING WANG, and RUI LI, UTHealth Houston, USA +JUNJIE XU, The Pennsylvania State University, USA +XIANFENG TANG and QI HE, Amazon, USA +YAO MA, Rensselaer Polytechnic Institute, USA +MING HUANG, UTHealth Houston, USA +SUHANG WANG∗, The Pennsylvania State University, USA + +Large language models (LLMs) have demonstrated emergent abilities in text generation, question answering, and reasoning, facilitating various tasks and domains. Despite their proficiency in various tasks, LLMs like PaLM 540B and Llama-3.1 405B face limitations due to large parameter sizes and computational demands, often requiring cloud API use which raises privacy concerns, limits real-time applications on edge devices, and increases fine-tuning costs. Additionally, LLMs often underperform in specialized domains such as healthcare and law due to insufficient domain-specific knowledge, necessitating specialized models. Therefore, Small Language Models (SLMs) are increasingly favored for their low inference latency, cost-effectiveness, efficient development, and easy customization and adaptability. These models are particularly well-suited for resource-limited environments and domain knowledge acquisition, addressing LLMs’ challenges and proving ideal for applications that require localized data handling for privacy, minimal inference latency for efficiency, and domain knowledge acquisition through lightweight fine-tuning. The rising demand for SLMs has spurred extensive research and development. However, a comprehensive survey investigating issues related to the definition, acquisition, application, enhancement, and reliability of SLM remains lacking, prompting us to conduct a detailed survey on these topics. The definition of SLMs varies widely, thus to standardize, we propose defining SLMs by their capability to perform specialized tasks and suitability for resource-constrained settings, setting boundaries based on the minimal size for emergent abilities and the maximum size sustainable under resource constraints. For other aspects, we provide a taxonomy of relevant models/methods and develop general frameworks for each category to enhance and utilize SLMs effectively. We have compiled the collected SLM models and related methods on GitHub: https://github.com/FairyFali/SLMs-Survey. + +# CCS Concepts: $\cdot$ Computing methodologies Natural language generation. + +# ACM Reference Format: + +Fali Wang, Zhiwei Zhang, Xianren Zhang, Zongyu Wu, TzuHao Mo, Qiuhao Lu, Wanjing Wang, Rui Li, Junjie Xu, Xianfeng Tang, Qi He, Yao Ma, Ming Huang, and Suhang Wang. 2018. A Comprehensive Survey of Small Language Models in the Era of Large Language Models: Techniques, Enhancements, Applications, Collaboration with LLMs, and Trustworthiness. J. ACM 37, 4, Article 111 (August 2018), 78 pages. https://doi.org/XXXXXXX.XXXXXXX + +# 1 INTRODUCTION + +The evolution of neural language models (LMs) from BERT’s [83] pre-training and fine-tuning paradigm to T5’s [284] pre-training plus prompting approach, and finally to GPT-3’s [37] pre-training plus in-context learning, has greatly enhanced natural language processing (NLP). These advancements have broadened NLP’s application across various fields, including language understanding [350], programming [255, 331], recommendation systems [369], information retrieval [44, 152, 228, 317], mobile-device control [87], scientific discovery [311, 436], medical question answering [34, 366], and legal question answering [11]. In particular, the recent emergence of proprietary commercial models including ChatGPT, Bard, and Claude, and open-sourced models such as Llama [94, 338, 339] has led to rapid growth in the development of large language models (LLMs). Even though neural networks consistently improve on various tasks with longer training times, larger datasets, and increased model sizes—a phenomenon known as a neural scaling law [166], these models unpredictably exhibit a sudden acquisition of versatile abilities, termed "emergent ability," once they reach a critical scale threshold, thereby supporting the "larger is better" trend. This ability is not present in small-scale models. For instance, the latest Llama-3.1 model with 405 billion parameters performs better in dialogue, logical reasoning, and programming compared to the smaller 7B counterpart [94]. + +Despite their prowess in complex tasks, LLMs’ huge parameters and computational needs impose significant limitations, hindering their adoption in many real-world applications. For example, the LLaMa 3.1 model with 405 billion parameters [94], trained on 16K H100 GPUs for 54 days, requires about 202.5 GB of GPU memory using int4 precision and has large inference latency. These issues present several challenges in specific contexts: (1) LLMs are generally hosted in the cloud and used via cloud-based APIs due to the large GPU memory and computational cost. Users need to upload their data to query LLMs, raising data leakage and privacy concerns, especially in high-stake scenarios such as healthcare, finance, and e-commerce; (2) Driven by personal agents, on-device deployment is a critical requirement. Several factors, including cloud costs, latency, and privacy concerns, hinder the on-device processing of cloud-based LLMs, and direct deployment is impractical due to their high parameter and cache requirements, which often exceed the capabilities of devices such as mobile phones; (3) Their large parameter count can cause inference delays from seconds to minutes, unsuitable for real-time applications. For instance, Llama 2 7B takes approximately 84 seconds to process 100 tokens on benchmarks including HellaSwag, TruthfulQA, MMLU, and Arc_C when run on a smartphone equipped with a Snapdragon 685 processor [336]; (4) To boost performance in specialized domains such as healthcare and law, where generic LLMs underperform, LLMs are often fine-tuned. However, this process is computationally expensive due to their large size. (5) Though general-purpose LLMs are powerful, many real-world applications require only specific abilities and domain knowledge, deploying general-purpose LLMs would be a waste of resources and such LLMs often cannot match the performance of models tailored for specific tasks [52, 125, 156, 275, 369]. + +Recently, small language models (SLMs) have shown great potential in alleviating these issues while achieving performance comparable to LLMs for domain-specific problems [1, 26, 116, 143, 223, 274, 333, 336, 402, 439]. Owing to fewer parameters, SLMs excel in efficiency, cost, flexibility, and customization. They provide significant computational Manuscript submitted to ACM + +![This image is a moderate complexity organizational chart or mind map detailing the structure of "Small Language Models" (SLMs). It begins with an introduction and concepts in building LLMs, branching into training methods, enhancement techniques, and applications of SLMs. The chart further categorizes SLM applications into QA, coding, recommender systems, web search, and mobile devices, and discusses techniques during deployment like memory and computing efficiency. It also lists various models, SLMs for specific tasks such as reliable generation and fine-tuning, and concepts like synergy and trustworthiness. Each branch includes specific sub-topics and references, indicated by bracketed numbers.](images/77c4c32c1adca3a145486fc4768303feb5c12b34b9a1d2be0efc16a27cd435fa.jpg) +Fig. 1. Overview of Small Language Models. + +![This image displays four bar charts, each representing download statistics for different large language model (LLM) families: GALACTICA, StableLM-2, Qwen, and Phi-3. The charts compare the number of downloads across various model sizes, indicated on the x-axis (e.g., 125M, 1.3B, 3.8B). The y-axis represents the download count, with scales varying between charts to accommodate different download volumes. Specific download numbers are labeled above each bar, highlighting significant differences in popularity for certain model sizes within each family. For instance, the GALACTICA 1.3B model has 6355 downloads, while the Qwen 1.5B model shows 3 million downloads.](images/df663fc0f0f03e94a63f985ffce187344c3d15b4e8e08b798ac33582aed8fd97.jpg) +Fig. 2. Download Statistics Last Month in Huggingface for LLMs with Various Model Sizes, obtained on October 7, 2024. + +savings in pre-training and inference with reduced memory and storage needs, which is vital for applications requiring efficient resource use. These small models are especially effective in resource-limited settings, performing well on low-power devices such as edge devices. Besides, SLMs improve on-device processing by enhancing privacy, security, response times, and personalization. This supports advanced personal assistants and cloud-independent applications, boosting energy efficiency and reducing carbon emissions. For example, the Llama 3.2 models (1B & 3B) demonstrate that local processing enables immediate execution of prompts and responses [7]. This approach protects privacy by keeping sensitive data such as patient health information (PHI), business data, personal messages, and calendar details local, enhancing confidentiality. It also allows for precise control over which queries are processed on-device versus those requiring cloud-based models. Therefore, small language models are gaining increasing attention as alternatives to LLMs, as indicated in Figure 2, which shows that SLMs are downloaded more frequently than larger models in the Hugging Face community, and Figure 3, which illustrates the growing popularity of SLM releases over time. + +Typically, LMs that exhibit emergent abilities are classified as LLMs. However, the categorization of SLMs remains unclear. Studies vary in their contexts: some define SLMs as models with fewer than one billion parameters [223], while others consider the term “small language model” relative to the larger counterparts [183, 327, 369], with no consensus on a unified definition in the current landscape of LLMs. Research suggests SLMs for mobile devices, typically possessing around 6GB of memory, consist of sub-billion parameter models [223], whereas others classify models with up to 10 billion parameters as small, noting their lack of emergent abilities [105]. Given their use in resource-constrained environments and for specific tasks, we propose a generalized definition: Given specific tasks and resource constraints, we define SLMs as falling within a range where the lower bound is the minimum size at which the model exhibits emergent abilities for a specialized task, and the upper bound is the largest size manageable within limited resource conditions. This definition integrates various perspectives and addresses factors related to mobile computing and capability thresholds. + +Due to the growing demand for SLMs, extensive literature has emerged on various aspects of SLMs. For example, several resource-efficient techniques [398] and training methods optimized for SLMs, such as quantization-aware training [221, 357, 400] and selective architectural component choices [223, 280, 336], aim to enhance performance in specific applications [36, 52, 275, 292, 382]. These methods have led to the development of numerous open-source, generalpurpose, and domain-specific SLMs [3, 26, 34, 333, 402, 435]. Beyond their inherent capabilities, SLMs can enhance LLMs by serving as modules or effective proxies [246, 297, 383, 399, 413, 450]. Furthermore, the complementary advantages of SLMs and LLMs can be leveraged collectively to better complete tasks [79, 204, 234, 307, 437]. Despite the commendable performance of SLMs, it is crucial not to overlook their credibility issues, such as the risks of adversarial attacks, producing hallucinations, and privacy breaches [88, 95, 138, 176, 176, 222, 248, 254, 273, 351, 354, 370, 371, 425, 445]. However, currently, there is no comprehensive survey thoroughly exploring these works on SLMs in the era of LLMs. Therefore, this paper offers the first comprehensive survey that analyzes various aspects of SLMs in the LLM era and their future directions. The overview structure of our paper is shown in Figure 1. To summarize, our major contributions are: + +![This image is a timeline illustrating the development of various small language models (SLMs) from before 2022 through 2025 and beyond. The timeline is structured horizontally, with key years and quarter ranges indicated by diagonal lines and numerical labels. It categorizes SLMs by their release or development period and visually groups models, often by developer or type, using distinct logos and color-coded blocks. The timeline highlights the rapid evolution and diversification of SLMs, with a notable increase in models appearing from 2023 onwards.](images/fe7a5deacc121dd09cb056dc09b2fd7d8e528d9525f679eca295d180628c994a.jpg) +Fig. 3. A timeline of existing small language models. + +• In Section 3, we examine various techniques for improving the performance of SLMs, including training from scratch, fine-tuning, knowledge distillation, quantization, and leveraging LLM-enhancing technologies to optimize SLMs. +• In Section 4, we discuss the tasks that SLMs can enhance and the deployment strategies that enable models to fit within the resource constraints of edge devices while maintaining acceptable inference speed. +• In Section 5, we collect SLMs with fewer than 7 billion parameters across both general-purpose and domain-specific applications, reviewing common architectural choices, training techniques, and datasets, and providing a comparative summary of performance across different model sizes. Recent SLMs are listed. +• In Section 6, we explore how SLMs can address key challenges faced by LLMs, such as high inference latency, labor-intensive fine-tuning, susceptibility to knowledge noise, and risks of copyright infringement. +• In Section 7, we survey two kinds of synergies between LLMs and SLMs: one involves cloud-based LLMs and local SLMs, while the other leverages the unique advantages of both to more effectively solve tasks. +• In Section 8, we investigate the trustworthiness issues of SLMs, including hallucination and privacy concerns, by providing a taxonomic summary of current evaluation methods. + +Concurrently with our survey, Lu et al. [229] evaluate open-source SLMs, focusing on their architectures, datasets, algorithms, and on-device performance metrics such as inference latency and memory usage. Van Nguyen et al. [345] delve into optimization strategies for SLMs, including model compression, pruning, and quantization. Chen and Varoquaux [49] investigate how SLMs enhance LLMs and vice versa. In contrast, our survey offers a more comprehensive review with the following differences: (1) we present a detailed taxonomy of recent advancements in SLMs in the era of LLMs; (2) we define SLMs based on emergent capabilities and device specifications, which refines previous unclear definitions related to LLMs; (3) we discuss SLM applications, especially in on-device tasks and deployment, topics previously unexplored; (4) we examine domain-specific SLMs previously overlooked; and (5) we additionally consider the synergy between SLMs and LLMs. + +# 2 FOUNDATIONAL CONCEPTS IN BUILDING LANGUAGE MODELS + +This section will introduce foundational concepts and background knowledge for language models, including the concepts of architecture and the training process, as well as methods for obtaining SLMs from LLMs. The advanced training strategy to improve SLM performance will be introduced in Section 3. + +# 2.1 Architecture of SLMs + +SLMs commonly employ the Transformer architecture [346] (see Figure 4), which utilizes self-attention mechanisms to manage long-range text dependencies, essential for maintaining performance with constrained resources. However, due to the attention mechanism, Transformers have large inference cost. Hence, to alleviate the issue, several subquadratictime architectures such as Mamba [117], Hymba [90], and xLSTM [25] are proposed. Next, we will give details of Transformer due to its popularity and briefly introduce newly emerged models. + +2.1.1 Transformer. The Transformer’s self-attention mechanism [346] allows language models to efficiently capture contextual information across longer sequences, even with limited resources. The Transformer generally adopts an encoder-decoder structure featuring self-attention mechanisms, feedforward networks, positional embeddings, and layer normalization. The Transformer architecture design tailored for SLMs is detailed in Section 5; this section will provide only foundational concepts. + +Self-Attention Mechanism enables the model to evaluate the importance of tokens relative to each other. The self-attention mechanism is written as + +$$ +{ \mathrm { A t t e n t i o n } } ( \mathbf { Q } , \mathbf { K } , \mathbf { V } ) = { \mathrm { s o f t m a x } } \left( { \frac { \mathbf { Q } \mathbf { K } ^ { \top } } { \sqrt { d _ { k } } } } \right) \mathbf { V } +$$ + +where ${ \bf { Q } } , { \bf { K } } ,$ and $\mathbf { V }$ are query, key, and value matrices, scaled by $\sqrt { d _ { k } }$ for stability where $d _ { k }$ is the dimension of key matrices. The dot product $\mathbf { Q } \mathbf { K } ^ { \top }$ reflects the similarity between the query and key vectors. + +![This image depicts the Transformer architecture, a neural network model. It illustrates an encoder-decoder structure, where the encoder (left) processes input sequences through multiple layers of Multi-Head Attention and Feed Forward networks, combined with Add & Norm operations. The decoder (right) similarly processes output sequences, incorporating Masked Multi-Head Attention to prevent attending to future tokens. Both input and output embeddings are combined with positional encoding before entering their respective processing blocks. The final output is generated through a Linear layer and a Softmax function to produce output probabilities.](images/0ec07b9236260ae50875f629ad20462a0550afc9867c569b52597bc40aa089be.jpg) +Fig. 4. Transformer architecture [346]. + +Multi-Head Attention (MHA) [346] is the first method that uses multiple heads to capture diverse information. MHA allows the model to attend to different parts of the input sequence using multiple attention heads as + +$\mathrm { M u l t i H e a d ( Q , K , V ) } = \mathrm { C o n c a t } ( \mathrm { h e a d } _ { 1 } , \mathrm { h e a d } _ { 2 } , \ldots , \mathrm { h e a d } _ { h } ) { \mathbf { W } } ^ { O } , \mathrm { w i t h ~ h e a d } _ { i } = \mathrm { A t t e n t i o n } ( \mathbf { Q } { \mathbf { W } } _ { i } ^ { Q } , \mathbf { K } { \mathbf { W } } _ { i } ^ { K } , \mathbf { V } { \mathbf { W } } _ { i } ^ { V } )$ (1) Each head in the Multi-Head Attention mechanism operates independently, allowing the model to capture diverse aspects of the data. The outputs are combined using learned projection matrices $\mathbf { W } _ { i } ^ { Q } , \mathbf { W } _ { i } ^ { K }$ , and $\mathbf { W } _ { i } ^ { V }$ , concatenated, and passed through the output projection matrix $\mathbf { W } ^ { O }$ . + +Building on this foundation, several modifications have been introduced to further optimize self-attention mechanisms for specific challenges such as memory efficiency and computational speed. To address the KV-cache bottleneck in MHA, Multi-Query Attention (MQA) [303] proposes that all attention heads share the same set of keys and values, which reduces the memory and computational overhead associated with storing and managing multiple key-value pairs. Grouped Query Attention (GQA) [8] serves as a middle ground between MHA and MQA. It introduces subgroups of query heads (fewer than the total number of attention heads), where each subgroup shares a single key and value head. + +Manuscript submitted to ACM + +Unlike MQA and GQA, which reduce the number of key and value heads, Multi-Head Latent Attention (MLA) [211] compresses the keys and values into a joint latent vector. This compression allows for efficient handling of key-value pairs while maintaining high performance, significantly reducing the KV-cache and improving inference efficiency. Flash Attention [73, 74] accelerates the self-attention mechanism by minimizing the memory overhead typical of standard attention calculations. This optimization allows SLMs to process longer sequences more efficiently, enhancing their functionality under strict hardware constraints. + +Feedforward Network (FFN) comprises two linear transformations separated by a non-linearity, typically modeled as $\mathrm { F F N } ( \mathbf { x } ) \ = \ \sigma ( \mathbf { x } \mathbf { W } _ { 1 } + b _ { 1 } ) \mathbf { W } _ { 2 } + b _ { 2 }$ . where $\mathbf { W } _ { 1 }$ and $\mathbf { W } _ { 2 }$ are the weight matrices, and $b _ { 1 }$ and $b _ { 2 }$ are bias terms. $\sigma$ is the activation function, which introduces non-linearity, allowing models to learn complex patterns. Generally, ReLU is used as the activation function. In addition to ReLU, activation functions such as GeLU and SiLU are also used in SLMs to improve performance. We give the details here: (i) ReLU (Rectified Linear Unit) [5] is defined as $\sigma ( x ) = \operatorname* { m a x } ( 0 , x )$ , which is commonly used for its simplicity and effectiveness. (ii) GELU (Gaussian Error Linear Unit) [135] is defined as ${ \mathrm { G E L U } } ( x ) = x \cdot \Phi ( x ) = x \cdot { \textstyle { \frac { 1 } { 2 } } } \left[ 1 + \operatorname { e r f } \left( { \frac { x } { \sqrt { 2 } } } \right) \right] ,$ , where $\Phi ( x )$ is the standard Gaussian CDF and erf is the error function. It is smoother than ReLU and widely used in models such as BERT [83] and GPT [282] for better gradient flow control. Since calculating the Gaussian error function for each neuron is computationally expensive and time-consuming, there are approximations using tanh and sigmoid functions, corresponding to $\mathrm { G E L U } _ { \mathrm { t a n h } }$ and SiLU: (iii) GELU with tanh is defined as $\mathrm { G E L U } _ { \mathrm { t a n h } } ( x ) = 0 . 5 \cdot x \cdot \left( 1 + \operatorname { t a n h } \left( \sqrt { \frac { 2 } { \pi } } \cdot ( x + 0 . 0 4 4 7 1 5 \cdot x ^ { 3 } ) \right) \right)$ This approximation uses the Tanh function to simplify computations. (iv) SiLU (Sigmoid Linear Unit) [97] is calculated as $\mathrm { S i L U } ( x ) = x \cdot \mathrm { s i g m o i d } ( x ) = x \cdot { \frac { 1 } { 1 + e ^ { - x } } } .$ . It effectively combines the sigmoid function with its input, enhancing modeling capabilities. (v) SwiGLU (Swish-Gated Linear Units) [304] integrates the Swish activation function with Gated Linear Units, defined as ${ \mathrm { S w i G L U } } ( x ) = { \mathrm { S w i s h } } ( x \cdot W + b ) \odot ( x \cdot V + c )$ where $W , V$ are the weight matrix and $b , c$ are the bias terms. The Swish function is expressed as $\operatorname { S w i s h } ( x ) = x \cdot \operatorname { s i g m o i d } ( x )$ . This combination enhances expressiveness and computational efficiency, making it a preferred choice in advanced models such as the Qwen series [402]. + +Positional Embeddings in Transformer models [346] are essential for capturing token order, providing context about relative positions within a sequence. Traditional positional embeddings in the Transformer architecture utilize a sinusoidal function, defined as: $\begin{array} { r } { P E ( p o s , 2 i ) = \sin \left( \frac { p o s } { 1 0 0 0 0 ^ { 2 i / d _ { \mathrm { m o d e l } } } } \right) } \end{array}$ $\begin{array} { r } { P E ( p o s , 2 i + 1 ) = \cos \left( \frac { p o s } { 1 0 0 0 0 ^ { 2 i / d _ { \mathrm { m o d e l } } } } \right) } \end{array}$ where ?????? represents the position within the sequence, $i$ is the dimension index, and $d _ { \mathrm { m o d e l } }$ is the dimensionality of the model. To improve the model’s capacity for understanding the relative positions of tokens within a sequence, Rotary Positional Embedding (RoPE) [318] introduces a rotational matrix to the embeddings. RoPE significantly enhances the positional encoding by maintaining the relative distances through rotational transformations, thus optimizing the model’s interpretative ability regarding sequence dynamics. + +Layer Normalization [185] stabilizes the training process by normalizing layer outputs, accelerating convergence. Two types of layer normalization are commonly used [185]: (i) Non-Parametric Layer Norm normalizes inputs using the mean and variance calculated across the layer’s dimensions without learnable parameters as $\textstyle \operatorname { L N } ( x ) = { \frac { x - \mu } { \sigma } }$ where $\mu$ is the mean and $\sigma$ is the standard deviation of the inputs. Its simplicity makes it ideal for SLMs. (ii) Parametric Layer Norm includes learnable parameters $\gamma$ and $\beta$ for adaptive scaling and bias, enhancing model flexibility: $\begin{array} { r } { \operatorname { P L N } ( x ) = \gamma \left( \frac { x - \mu } { \sigma } \right) + \beta } \end{array}$ Additionally, RMS Norm (Root Mean Square Layer Normalization) [431] simplifies the calculation by using the root mean square of inputs, reducing computational demands: $\begin{array} { r } { \mathrm { R M S N o r m } ( x ) = \gamma \frac { x } { \sqrt { \frac { 1 } { N } \sum _ { i = 1 } ^ { N } x _ { i } ^ { 2 } + \epsilon } } + \beta } \end{array}$ where $N$ is the number of inputs, $x _ { i }$ is the $i$ -th input, and $\epsilon$ is a small constant to prevent division by zero. + +2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data. Due to its focus on the immediate previous hidden state, as opposed to Transformer which requires access to all previous hidden states, Mamba achieves a higher utilization rate of model parameters. This makes it more suitable for SLMs. However, we identify two drawbacks of Mamba: (i) its focus on selectively capturing global information may compromise performance on tasks that require nuanced understanding, such as detailed sentiment analysis or complex entity recognition; and (ii) to balance inference speed, Mamba’s recurrent structure primarily encodes static global information, which limits its effectiveness in handling multi-round tasks within a single query, such as interactive dialogue systems or iterative problem-solving scenarios. + +![This image depicts the architecture of Mamba, a state-space model. The left inset shows a simplified recurrent structure with state $H_k$, input $x_k$, output $y_k$, and parameters $\bar{A}$, $\bar{B}$, and $C$. The main diagram illustrates the Mamba block, which takes "Inputs" and produces "Outputs." It includes two "Linear" layers, a "Conv" layer, a "Selective SSM" module, and two sigmoid activation functions ($\sigma$). The output of the "Selective SSM" is combined with the output of a second "Linear" layer via element-wise multiplication before passing through a final "Linear" layer to produce the overall output.](images/c910d53cf633fd17f0283ebbd319032712214d9a42da2f28a15fe0577ca151de.jpg) +Fig. 5. Mamba 1 architecture [117]. + +In language modeling, Mamba 1 [117] is pre-trained on the Pile dataset [108] using the training recipe from [37] and ranges from 125M to 1.3B parameters. It outperforms comparable models such as Pythia [31] and RWKV [270] in various tasks; for instance, Mamba-1.4B achieves a $3 2 . 8 \%$ accuracy on the Arc-Challenge [65] dataset, surpassing Pythia-1.4B’s $2 8 . 5 \%$ and RWKV-1.5B’s $2 9 . 4 \%$ . Mamba 2 [75] develops a theoretical framework linking SSMs with attention mechanisms through structured semi-separable matrices, enhancing the selective SSM to achieve $2 { - } 8 \mathrm { x }$ faster speeds while competing with Transformer models. Training and configuration for Mamba 2 align with Mamba 1. Additionally, Mamba-series models are applied widely across different fields [160, 280, 281, 463]. Other follow-up Mamba-based language models such as Falcon Mamba 7B [463] and Mistral 7B [160] also demonstrate the efficiency of the architecture for NLP tasks. Falcon Mamba 7B scales Mamba’s long-sequence processing capabilities to extensive language data, reducing memory overhead and making it ideal for long-form NLP tasks. Similarly, Mistral 7B incorporates Mamba’s efficient sequence handling ability to improve processing speed and computational efficiency in long-context NLP tasks, showcasing Mamba’s scalability and practicality for large-scale language modeling. + +2.1.3 Hymba. Attention heads in the Transformer facilitate high-resolution recall, while SSM heads in Mamba efficiently summarize context. To balance performance and efficiency for SLMs, Hymba [90] integrates both attention and SSM heads within the same layer, allowing for parallel and complementary processing of inputs, as depicted in Fig + +![This image depicts the architecture of the Hymba model. It begins with "Input Tokens" and "Meta Tokens" processed through an "Input Proj" layer to generate a "Latent Feature." This latent feature is then split into "SSM Feat." and "Attn Feat." which are fed into parallel "SSM Head" and "Attn Head" modules, respectively. The outputs of these heads are passed through "Gate Norm." layers, combined via a "Mean" operation, and finally projected through an "Output Proj" layer.](images/6cd678b847173b848c1429c04ccfa78a775c56e46fec00eed0142c8567e93bcd.jpg) +Fig. 6. Hymba [90] architecture. + +ure 6. This hybrid-head approach enables each layer to simultaneously leverage the high-resolution recall of attention heads and the contextual summarization of SSMs, increasing the model’s flexibility and expressiveness in managing diverse information flows and memory access patterns. + +Hymba has been developed in models of varying sizes—125M, 350M, and 1.5B, trained on a combination of the DCLM-Baseline-1.0 [192], SmolLM-Corpus [27], and a proprietary high-quality dataset, with token counts of 1 trillion, 250 billion, and 50 billion, respectively. The models incorporate the Warmup-Stable-Decay (WSD) learning rate scheduler [143] and the data annealing technique [94] to ensure stable pretraining, conducted on 128 NVIDIA A100 GPUs. The 1.5B base model was post-trained using full finetuning (FFT), followed by direct preference optimization (DPO) [283] to develop the Hymba-1.5B-Instruct model. In commonsense reasoning tasks, the Hymba 1.5B model surpasses Llama3.2-3B [7] by achieving $1 . 3 2 \%$ higher average accuracy, requiring an $1 1 . 6 7 \times$ smaller cache size, and delivering a $3 . 4 9 \times$ increase in processing speed. + +2.1.4 xLSTM. Long Short-Term Memory (LSTM) [137] shares a conceptual similarity with Mamba that achieves success in language modeling through the introduction of time-dependent weights. This similarity raises an intriguing question: how effective would LSTMs be at language modeling if scaled to billions of parameters, incorporating advanced techniques from modern LLMs while addressing known LSTM limitations? Inspired by this question, Beck et al. [25] propose xLSTM architecture, which performs favorably compared to state-of-the-art Transformers and SSMs in empirical evaluations. To address the limitations of LSTM, xLSTM designs exponential gates to enhance effectiveness with long sequences, expand memory cells from scalars to matrices to increase storage capacity, and remove memory mixing to enable parallel processing. + +To test the language modeling capabilities of xLSTM scaled to billions of parameters, it is trained on a large dataset comprising 300 billion tokens from SlimPajama [314] across various model sizes (125M, 350M, 760M, 1.3B). The performance of pre-trained xLSTM is compared against RWKV-4 [270], Llama [153], and Mamba [117] across 571 text domains of the PALOMA benchmark [237] and various downstream tasks. Across all model sizes and the majority of tasks, xLSTM consistently outperforms the others, suggesting that larger xLSTM models could become formidable competitors to existing Large Language Models that utilize Transformer technology. + +# 2.2 Training SLMs from Scratch + +Training SLMs from scratch entails several critical steps: (i) Pre-training, focused on acquiring general features and knowledge from the corpus; (ii) Fine-tuning, targeted at boosting the model’s abilities and performance for specific tasks; (iii) Decoding strategies, which involve the methods used for iteratively selecting the next token during generation. + +2.2.1 Pre-training. Typically, the pre-training paradigm for language models is divided into encoder-based and decoderbased approaches. Encoder-based models, such as BERT [83], utilize Masked Language Modeling (MLM) tasks where the goal is to predict masked tokens within a sentence. This is achieved by maximizing: + +$$ +\begin{array} { r } { P ( \mathrm { m a s k e d t o k e n } \mid \mathrm { c o n t e x t } ) = \mathrm { s o f t m a x } ( \mathbf { W } \cdot \mathbf { h } _ { \mathrm { m a s k } } + b ) , } \end{array} +$$ + +where masked token is the original token that has been masked, context represents the other unmasked tokens in the sentence, $\mathbf { W }$ and $^ { b }$ are trainable parameters of a linear output layer, $\mathbf { h } _ { \mathrm { m a s k } }$ is the output from the transformer encoder for the masked position, and softmax is the activation function that converts logits to probabilities over the vocabulary. This process enhances the model’s language encoding capabilities. Decoder-based models, such as GPT [282], employ + +Next Token Prediction (NTP) tasks, aiming to model the distribution of the next token by maximizing: + +$$ +\begin{array} { r } { P ( \mathrm { n e x t ~ t o k e n } \mid \mathrm { c o n t e x t } ) = \mathrm { s o f t m a x } ( \mathbf { W } \cdot \mathbf { h } _ { \mathrm { l a s t } } + b ) , } \end{array} +$$ + +where next token is the token that the model aims to predict, context represents the sequence of tokens preceding the token to be predicted, and $\mathbf { h } _ { \mathrm { l a s t } }$ is the output from the transformer encoder for the last token in the context. Effective data preprocessing, crucial for optimizing the performance of SLMs trained from scratch, involves meticulous data cleaning and strategic tokenization. + +Data Cleaning involves techniques such as filtering, deduplication, and noise reduction, which improve data quality and help the model generalize better. Filtering noisy or irrelevant data, addressing outliers, and handling imbalances in the dataset ensure that the training data is both representative and efficient. Deduplication, in particular, helps prevent overfitting by removing repeated instances, making the model more robust with efficient parameter usage. + +Tokenization plays a vital role in handling diverse vocabularies without increasing model size. Advanced methods such as Byte-Pair Encoding (BPE) [106] and WordPiece [316] break text into subwords [83], allowing the model to manage rare and compound words efficiently. These strategies ensure that SLMs maintain a balance between vocabulary coverage and model compactness, crucial for improving generalization while minimizing computational demands. + +2.2.2 Fine-Tuning. After the initial training, SLMs are fine-tuned on specific tasks using task-specific data and loss functions. Parameter-efficient fine-tuning methods [118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\Delta \mathbf { W } = \mathbf { A } \mathbf { B } ^ { \top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\mathbf { W } _ { \mathrm { f t } } = \mathbf { W } + \alpha \Delta \mathbf { W }$ where $\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks. Adapter Modules [140] are small, trainable layers inserted into the pre-trained model. These layers are fine-tuned on task-specific data, allowing the base model to remain fixed while the adapters learn the necessary adjustments. The typical structure of an adapter module includes a down-projection, a non-linearity, and an up-projection: Adapter $\mathbf { \Pi } ( \mathbf { h } ) = \mathbf { h } + \mathbf { W } _ { \mathrm { u p } } \cdot \sigma ( \mathbf { W } _ { \mathrm { d o w n } } \cdot \mathbf { h } + \mathbf { b } _ { \mathrm { d o w n } } ) + \mathbf { b } _ { \mathrm { u p } }$ where h is the input hidden state, $\mathbf { W } _ { \mathrm { d o w n } }$ and $\mathbf { W } _ { \mathrm { u p } }$ are the projection matrices, $\mathbf { b } _ { \mathrm { d o w n } }$ and ${ \bf b } _ { \mathrm { u p } }$ are the bias terms, and $\sigma$ is a non-linear activation function. + +2.2.3 Decoding Strategies. After pre-training or fine-tuning, employing an effective decoding strategy is crucial for generating output from language models. Decoding, the process of text generation from SLMs, involves iteratively selecting the next word. A fundamental method is the greedy search, which predicts the most likely token at each step. This is formally modeled as: $x _ { i } = \arg \operatorname* { m a x } _ { x } P ( x \mid x _ { < i } )$ , where $x _ { i }$ is the token with the highest probability at the $i$ -th step, conditioned on the preceding context $x _ { < i }$ . Other decoding strategies, such as beam search or top- $\mathbf { \nabla } \cdot \mathbf { k }$ sampling, are crucial for generating high-quality outputs. Beam search balances exploration and exploitation by considering multiple possible sequences simultaneously, while top- $\mathbf { \nabla } _ { \cdot \mathrm { k } }$ sampling introduces diversity and creativity in text generation. These strategies collectively ensure that SLMs are efficient and capable of delivering high performance across various natural language processing tasks. + +Manuscript submitted to ACM + +# 2.3 Obtain SLMs from LLMs + +Obtaining an SLM from an LLM is crucial for deploying in resource-constrained environments. Instead of training from scratch, leveraging an LLM allows for knowledge transfer, enabling SLMs to retain much of the LLM’s linguistic and domain knowledge with reduced training time and data. To obtain SLMs from LLMs, three primary techniques are used: pruning, knowledge distillation, and quantization. Pruning removes less critical parameters, reducing model size while aiming to maintain performance. Knowledge distillation transfers knowledge from a large teacher model to a smaller student model, preserving much of the original model’s understanding. Quantization decreases parameter precision, significantly lowering memory and computation needs with minimal impact on accuracy. These methods balance size reduction, efficiency, and performance retention. + +2.3.1 Pruning. Pruning is a technique used to reduce a model’s size and computational requirements (e.g., LLMs) without significantly sacrificing its performance [126]. This process involves identifying and removing less important or redundant parameters and components from the model. The primary goal of LLM pruning is to make the model more efficient, faster, and suitable for deployment in resource-constrained environments. Typically, pruning can be categorized into two main types: unstructured pruning and structured pruning. An illustration of unstructured pruning and structured pruning is shown in Figure 7. + +![This image is of moderate complexity. It illustrates two types of neural network pruning: (a) Unstructured Pruning and (b) Structured Pruning. Both diagrams show layers of neurons, with blue circles representing "Active Neurons" and pink circles indicating "Pruned Neurons." Unstructured pruning shows individual connections (dotted lines) and neurons being removed, resulting in a sparser network. Structured pruning, in contrast, removes entire neurons or groups of neurons, leading to a more organized reduction in network complexity. The figure visually distinguishes between these two methods of reducing the size of neural networks.](images/bc5d3036a35f80350c1a852c4442462e99358340f2f1f023976984b679b5e8f2.jpg) +Fig. 7. Unstructured and structured pruning. + +Unstructured Pruning [76, 102, 201, 300, 321, 438, 442] prunes an LLM by removing weights individually without considering its internal structure. The least significant parameters are pruned according to specific criteria (e.g. magnitude or impact on the output). This method can achieve significant compression while maintaining performance. However, it can also lead to irregular memory access patterns and reduced hardware efficiency because the pruned model lacks a regular structure. SparseGPT [102] is a representative unstructured pruning method that can reduce large-scale GPT models like OPT-175B [440] and BLOOM-176B [181] to up to $6 0 \%$ sparsity using a novel sparse regression solver. Wanda [321] combines weight magnitudes with input activations to efficiently identify and discard less impactful parameters. It operates in a single forward pass, rapidly achieving high sparsity without retraining. It is also worth noting that recent studies specifically address the compatibility issues between pruning and Low-rank Adaptation (LoRA) [142], such as LoRAPrune [438]. + +Structured Pruning [13, 19, 51, 110, 124, 188, 196, 232, 243, 305, 306, 385, 410, 446], which prunes an LLM by targeting entire structural components—such as neurons, channels, or layers—rather. This approach allows for a direct reduction in dimensionality, thus efficiently reducing model complexity and memory usage. Although structured pruning may lead to higher accuracy degradation than unstructured pruning, it simplifies implementation without requiring specialized hardware. ShortGPT [243] proposes the Block Influence (BI) metric, which measures the significance of each layer based on its transformation of hidden states. Essentially, a transformer block’s influence is measured by how much it alters the hidden states. By calculating BI scores, ShortGPT determines which layers contribute minimally to the overall performance and removes these low-importance layers. This simple yet effective layer removal strategy significantly reduces the model’s parameters and computational requirements. LLM Pruner [232] offers a method to efficiently prune LLMs without access to the original training dataset. It employs a three-step compression pipeline: Discovery (identifying interdependent structures), Estimation (evaluating the performance impact of each group), and Recovery (post-training to address performance loss). NutePrune [196] enhances structured pruning with a + +![This image illustrates two methods of knowledge distillation (KD): white-box and black-box. The white-box KD process shows training data being fed into a "Teacher Model" composed of multiple sequential layers, from which a "Student Model" is trained. In contrast, the black-box KD process uses training data and an "LLM API" (represented by the OpenAI logo) to train the "Student Model," implying the internal workings of the LLM are not directly accessible. Both diagrams depict a process where data is used to train a student model, with the key difference being the accessibility of the teacher model's architecture.](images/dac7bbe74f6604b3a7c2f738489f1e9f8bd44ea608360eca77d1fe9e35bf73c0.jpg) +Fig. 8. Illustration of white-box and black-box knowledge distillation [245]. + +Numerous-teacher method, employing variable sparsity masks and LoRA modules to guide the pruning process. This approach effectively reduces model size and complexity. COST-EFF [305] introduces a slenderized backbone—a form of structured pruning—and a multi-exit model that employs task-specific calibration through knowledge distillation. This slenderization reduces the model’s spatial footprint, while the multi-exit strategy effectively balances utility and runtime costs. To enhance the flexibility of structural pruning, DISP-LLM [110] breaks the structural dependencies in regular methods by allowing different layers to have different subsets of features along the embedding dimension. + +2.3.2 Knowledge Distillation. Knowledge distillation (KD) compresses a larger teacher model into a smaller student model by training the student to mimic the teacher’s outputs [136]. This enables the student to retain much of the teacher’s capabilities with fewer parameters, making it ideal for scaling down LLMs for resource-limited environments while maintaining performance. KD can be categorized into white-box and black-box approaches [361, 403, 457] as shown in Figure 8. In White-Box KD, the student has access to the teacher’s internal states or output distributions [6, 119, 157, 169, 173, 265, 381, 434]. Generalized Knowledge Distillation (GKD) [173] introduces skew KL divergence to stabilize gradients and enhance performance, using an adaptive off-policy approach to minimize noisy feedback and improve efficiency. Black-Box KD relies only on teacher outputs without having access to model internals [48, 182, 271, 360]. Methods like Distilling Step-by-Step [141] use teacher-generated rationales to train smaller models, improving performance with fewer examples. LaMini-LM [380] creates a diverse instruction dataset with GPT-3.5 Turbo responses, enabling robust performance in smaller models. + +![This image illustrates two quantization methods: Quantization-Aware Training (QAT) and Post-Training Quantization (PTQ). The QAT process begins with a "Full-Precision" model, undergoes "Decomposition" into a "Low-Precision" representation, and is then "Finetune[d] for downstream task" using "Training Data," resulting in a trainable low-precision model. PTQ starts with a "Full-Precision" model, decomposes it into a "Low-Precision" model, and optionally uses "Calibration Data" for refinement. The diagram uses fire icons to denote trainable components and snowflake icons for frozen components.](images/f384686f4977d2530cb223bab852d8696ab57ce6dde9887671940026792ea987.jpg) +Fig. 9. Illustration of quantization-aware training (QAT) and post-training quantization (PTQ). + +Table 1. Representative quantization methods. + +
MethodsBitTypeTechnical ContributionProblems
SqueezeLLM [170]3-bitPTQSensitivity-based non-uniform quantization, dense and sparse decompositionultra-low bit quantization
JSQ [122] FrameQuant [4]Flexible Fractional bitPTQJoint Sparsification and Quantization Fractional bit widthsbetter compression-accuracy trade-off s. better compression-accuracy trade-off s.
OneBit [400]1-bitPTQ PTQQuantization-aware knowledge distillation1-bit quantization
BiLLM [147]1-bitPTQCrucial Weights Selection, Block-based error compensation1-bit quantization
LQER [432] I-LLM [144]Flexible FlexiblePTQ PTQQuantization Error Minimization Fully-Smooth Block-Reconstruction, Dy-better compression-accuracy trade-offs Integer-only Quantization
PV-Tuning [239]namic Integer-only MatMul and Integer-only Non-linear Operators
BitNet [357]1-bit/2-bit 1-bitPTQPV algorithmbetter compression-accuracy trade-off s.
BitNet b1.58 [231]{-1, 0, 1}QAT1-bit Transformer Architecture1-bit quantization
PEQA [168]FlexibleQATTernary Parameters1-bit quantization
QATQuantization Scales OptimizationParameter-Efi cient Finetuning
QLoRA [81]NF4QAT4-bit NormalFloat and Double QuantizationParameter-Eficient Finetuning
+ +2.3.3 Quantization. Quantization reduces the storage and computational demands of LLMs by converting floatingpoint representations into lower-precision formats, significantly cutting both storage requirements and computational complexity. Existing methods fall into two categories: Post-Training Quantization (PTQ) and Quantization-Aware Training (QAT). Figure 9 illustrates the two quantization methods. Post-Training Quantization, applied after training, simplifies model compression without altering the architecture or requiring retraining, though it may result in precision loss. Consider a group or block of weights w; the linear operation can be expressed as $y = \mathbf { w x }$ , while the quantized version is given by ?? = ?? (w)x. Generally, the quantization function ?? is defined as [207]: ?? (w) = Δ · Round wΔ  , Δ = max( |w| )2?? −1 , where $N$ is the number of quantization bits, and $\Delta$ is the quantization scale factor determined by the absolute maximum value of w. Quantization-Aware Training (QAT) enhances LLM efficiency by directly incorporating quantization into the training process, often resulting in higher accuracy than PTQ. During QAT, the forward pass utilizes quantized weights $Q ( \mathbf { W } )$ and activations $Q ( \mathbf { X } )$ , while retaining full-precision values during the backward pass and for updating gradients to ensure stable learning dynamics. The comparisons of the post-training quantization methods are summarized in Table 1, detailing precision, addressed problems, and technical contributions of each method. + +2.3.4 Low-Rank Techniques. Low-rank techniques compress LLMs by approximating a high-dimensional weight matrix with two lower-dimensional matrices, reducing computational and memory requirements. A matrix $\mathbf { W } \in \mathbb { R } ^ { m \times n }$ is approximated as $\mathbf { W } \approx \mathbf { A } \times \mathbf { B }$ , where $\mathbf { A } \in \mathbb { R } ^ { m \times r }$ and $\mathbf { B } \in \mathbb { R } ^ { r \times n }$ , with $r$ much smaller than $m$ or $n$ , reducing the number of parameters. Building on this concept, Ji et al. [158] propose a low-rank method tailored for LLMs, leveraging the observation that while LLMs have high-rank weights, their feature interactions tend to exhibit low-rank properties. The method estimates feature distributions using pooled covariance matrices and allocates distinct compression ratios to layers based on their sensitivity to low-rank compression. A Bayesian optimization strategy, using a Gaussian process as the surrogate model, optimizes the allocation of low-rank dimensions, ensuring the model maintains performance while achieving significant compression. Transitioning from model compression to fine-tuning, Cho et al. [62] tackles system and data heterogeneity with the HETLORA method, which uses heterogeneous low-rank approximations to accommodate the diverse capabilities of clients and data complexities. By combining local rank self-pruning with sparsityweighted aggregation, it balances high and low-rank LoRA modules, improving convergence speed and performance compared to uniform approaches. LLM-Neo [409] combines knowledge distillation with low-rank adaptation (LoRA) to improve the efficiency of transferring knowledge from a teacher LLM to a compact student model. + +Table 2. Advanced enhancement methods for SLM. + +
TopicMethodMain Contribution
Training from ScratchMindLLM [412] MobiLlama [336] MobileLLM [223]Bilingual models with advanced features. On-device SLM with dual objectives for eficiency and capability. Optimizes LLM deployment on mobile with advanced architecture.
Supervised Fine-tuningMobileBERT [322] Alpaca 7B [329] RLHF [264] DPO [283]Compact BERT for efi cient f ne-tuning. Uses ChatGPT-generated tasks to tune Llama 7B. Trains using human-preferred data and reinforcement learning.
Data Quality in KDTinyStory [96] AS-ES [384] Self-Amplify [29]Dynamically adjusts log probabilities to prevent model degradation. Enhances narrative coherence in child-friendly datasets. Improves CoT by categorizing reasoning steps. Automates CoT data annotation for small models.
Distillation for SLMGKD [6] DistiLLM [173] Adapt-and-Distill [414] SmoothQuant [386]Aligns training and inference distributions using on-policy sequences. Uses skew KL divergence and adaptive off-policy for output utilization. Domain adapts both teacher and student models before distillation.
QuantizationBiLLM [147] LLM-QAT [221] PB-LLM [299] OneBit [400] BitNet [357] BitNet b1.58 [231]Balances quantization dificulty using per-channel scaling. Applies Hessian-based metrics for binary residual approximation. Uses data-free knowledge distiltion and logit distiltion for fine-tuning. Binarizes non-salient weights while preserving others in higher precision. Achieves near 1-bit quantization with minimal performance loss. Introduces 1-bit Transformer architecture with BitLinear layers.
esMa et al [234] SLM-RAG [215]Implements a ternary weight system in enhanced BitNet. Shows that SLMs with RAG can match LLM performance.
+ +# 3 ADVANCED ENHANCEMENT STRATEGIES FOR SMALL LANGUAGE MODELS + +With the foundational concepts introduced in Section 2, this section explores various advanced techniques that enhance the performance of SLMs, including innovative training methods for training SLMs from scratch, supervised fine-tuning (SFT) to align SLMs to adhere to instructions, advanced knowledge distillation and quantization techniques, and techniques frequently used in LLMs such as mixture-of-experts to enhance SLM for specific applications. A summary of enhancement techniques is also summarized in Table 2. + +# 3.1 Innovative Training Methods for Small Language Models from Scratch + +In scenarios with limited resources, we aim to train small language models to provide efficient, cost-effective solutions tailored for specific domains, while still maintaining competitive performance with larger models. Training small language models (SLMs) from scratch involves unique strategies that diverge significantly from those used for large language models (LLMs). This section synthesizes cutting-edge techniques tailored to optimize the inherent capabilities of SLMs, underscoring their potential to match or surpass larger counterparts in efficiency and effectiveness. As shown in Figure 10, the methods for training SLMs from scratch can be categorized into three primary categories: Architecture Design, Data Construction, and Optimization Strategy. Next, we introduce each category in detail. + +Architecture Design for SLMs When designing SLM architectures, parameter-sharing techniques are employed to minimize space usage and reduce the model’s size. As shown in the first part of Figure 10, parameter sharing is achieved by two approaches: (i) a single Feed-Forward Network (FFN) module is shared by every transformer layer. As shown in Figure 10 (1) middle, FFN layer sharing/reusing can maintain a smaller size while still benefiting from the depth and complexity gained through repeated processing of input data. This technique is firstly applied in MobiLlama [336] which surpasses the performance of existing SLMs of comparable size. (ii) Entire transformer blocks are shared. As shown in Manuscript submitted to ACM + +![This image is of **moderate complexity**, presenting three distinct sections illustrating innovative training methods for small language models. The first section, "Architecture Design: Parameter Sharing," contrasts a "Regular LLM" with "Shared FFN" and "Immediate Block Sharing" architectures, depicting stacked blocks containing FFN and MHSA layers. The second section, "Data Construction: Data Filtering," shows a process where "Datasets" are filtered using methods like "Format Cleaning, Deduplication, Sensitive Information Exclusion, Self-Repeating Content Filter" to produce "High quality Datasets." The third section, "Optimization Strategy: Multiple-round training," illustrates a cyclical process where "Hard samples" from "Datasets" are fed to an "SLM" (Small Language Model), resulting in "Training loss" that is then used to refine the process.](images/1d496ff147a34dad2f537bee9636ed019e3dc371882a648ff85001144a298f46.jpg) +Fig. 10. Innovative Training Methods for Small Language Models from Scratch + +Figure 10 (1) right, Transformer Block-wise Sharing is another parameter-sharing approach that maintains depth and complexity. There are different transformer block-wise sharing strategies such as repeating the transformer blocks all over again or repeating the immediate transformer block. This technique is applied in MobileLLMs [223] which has 125M and 350M parameters. MobileLLMs demonstrate performance improvements of $2 . 7 \%$ and $4 . 3 \%$ , respectively, compared to previous models with equivalent parameters. Moreover, they exhibit accuracy comparable to LLaMa-2-7B on API call tasks, highlighting the capabilities of smaller models in mobile environments. + +Data Construction For SLMs, the emphasis on data quality surpasses that of quantity and diversity [412]. Experiments demonstrate that using a quality filtering approach to remove low-quality data can lead to improved performance in SLMs [412]. Unlike large models, which can handle diverse and large datasets, SLMs benefit more from cleaner, high-quality data probably due to their limited capacity against noise. Generally, data processing has several steps: (i) Remove HTML, CSS, JS, and non-text elements for clean text; (ii) Filter low text-to-content ratio web pages; (iii) Deduplicate using SimHash [77, 293]; (iv) Exclude sensitive/offensive content with heuristics and token replacements; (v) Remove self-repeating phrases of advertisements to enhance dataset informativeness [47, 412]. These steps collectively ensure that training data has high-quality, informative texts. SLMs also significantly benefit from these techniques. For example, MindLLMs [412], which are bilingual lightweight language models (available in 1.3B and 3B versions), adopt these data processing techniques and achieve improved capability acquisition. + +Training Strategy for SLMs For LLMs, due to the large model size and data volume, LLMs are usually trained with one round. For SLMs, multiple-round training can be applied [328]. Considering some examples are hard to fit, hard examples can be trained with a high probability [328]. For each round of training, the data sampling probability is updated according to the overall loss of that sample. Experiments results show that two rounds of training and a $5 0 \%$ sampling rate are a good trade-off between performance and training efficiency. Tang et al. [328] show that a deep and thin neural architecture and multiple-round training can enhance the performance of the trained Pangu 1.5B pro model. This model outperforms the conventionally trained Pangu 1.5B and a series of other comparable large language models with similar model sizes on multiple benchmark datasets, achieving an average performance increase of $8 . 8 7 \%$ . + +![This image, labeled Fig. 11, illustrates three methods for fine-tuning Small Language Models (SLMs). Panel (a) shows fine-tuning on downstream tasks using task-specific data for Supervised Fine-Tuning (SFT) and Unsupervised Fine-Tuning (UFT). Panel (b) depicts instruction tuning, where unlabeled instructions are annotated or self-instructed to create LLM-annotated instructions, which are then used for SFT and UFT. Panel (c) outlines Preference Optimization, involving an LM Policy and a Reward model that uses preference data ($y_w$, $y_t$) to generate rewards and sample completions, creating a feedback loop.](images/bbd77bd34f4d7955af6799a68109e49f177df7268d73ddaf5fc5f74d572be046.jpg) +Fig. 11. Fine-tuning for Enhancing SLMs + +# 3.2 Supervised Fine-Tuning (SFT) for Enhancing SLM performance + +Supervised Fine-Tuning (SFT) employs a training methodology similar to pre-training but is specifically tailored to align models to adhere to the instructions encapsulated within various instructional datasets. This approach is designed to refine the model’s responsiveness and appropriateness to given contexts as dictated by the training data. For example, various models, such as Alpaca [329], UltraChat [86], WizardLM [392], SlimOrca [203], ShareGPT [356], Capybara [72], Deita [216], and MetaMathQA [420], incorporates a suite of conversational datasets to enhance their capabilities in context-aware dialogue and instruction adherence. Usually, as shown in Figure 11, existing SFT methods can be categorized into three categories: + +• (i) Classical fine-tuning with downstream data [83, 282] trains SLMs on task-specific annotated data, transferring general language representations to specific tasks such as sentiment analysis. In the LLM era, this approach remains effective, such as enhancing LLMs by calibrating responses or assigning risk scores with smaller models such as BERT [450], or optimizing for mobile devices with MobileBERT [322]. +• (ii) Instruction tuning with LLM-generated data [86, 203, 329] or human-generated questions with LLM annotations [356] aims to align generative models with specific instructions, enhancing their instruction-following and reasoning capabilities. For example, Alpaca 7B [329] uses 52k ChatGPT-generated instruction-following examples from 175 self-instructed seed tasks to tune Llama 7B [338]. Meanwhile, StableLM [26, 340] is trained on the Restruct-v1 dataset, which includes summarization, question-answering, and sentiment analysis tasks, using instruction data from [226]. +• (iii) Preference optimization with human feedback [264, 283, 356] aims to better align language models with human preferences. Reinforcement Learning from Human Feedback (RLHF) [264] gathers human-preferred data, trains a reward model, and fine-tunes the LM using reinforcement learning. Direct Preference Optimization (DPO) [283] provides a simpler alternative to RLHF. Unlike RLHF, DPO avoids explicit reward modeling and reinforcement learning techniques. Instead, it adjusts the log probabilities of preferred versus non-preferred responses using a dynamic weighting mechanism, preventing model degradation issues typical of methods relying on probability ratios. For instance, Llama 3.2 1B & 3B apply SFT and DPO in post-training to enhance alignment with instructions and human preferences. + +![This image depicts two distinct processes for generating data, likely for training or evaluating language models. The left side illustrates "Augment data from other models (e.g., GPT4)," starting with an instruction to create simple words, which is processed by an LLM to generate a "Complex Chain of Thoughts" (CoT) and then simplified into datasets. The right side shows "Generate data by itself," beginning with a question and multiple-choice answers, processed by an SLM to yield an answer and rationale, which is then used to extract keywords and form a CoT.](images/40b74914fda927e82ca795290fe714f8e91ef13c65ad3e542a958b9d257aa21e.jpg) +Fig. 12. Data Quality in Knowledge Distillation (KD) + +# 3.3 Data Quality in Knowledge Distillation (KD) + +Transitioning from the discussion on training SLMs from scratch, this section delves into the critical role of data quality in Knowledge Distillation (KD). The motivation here is to highlight how high-quality data generated from LLMs can significantly enhance the learning efficiency and performance of SLMs. The central idea is that meticulously crafted datasets when used in KD, enable SLMs to more effectively mimic the advanced capabilities of their larger counterparts. As shown in Figure 12, the data can come either from (1) other strong LLMs (e.g., GPT-4 [2]) which are much larger and more powerful than the target SLM, or (2) the target SLM itself. + +Augment Data from LLMs. LLM-generated data could be categorized as pre-training data and fine-tuning data. Firstly, due to the limitations of model size, studies have shown that training SLMs requires simple and comprehensible data [96, 183, 187, 384]. As shown in Figure 12 (1) left, TinyStory [96] shows that small models (tens of millions of parameters) can generate coherent stories for 3-4-year-olds. GPT-3.5 or GPT-4 [2] prompts create simple stories from three keywords chosen from a 1,500-word vocabulary, which are then used to train SLMs for similar outputs. This approach shows that simple and comprehensible data can help smaller models exhibit behaviors similar to those of larger language models, such as obeying scaling laws and achieving enhanced performance. On the other hand, many efforts to enhance the Chain-of-Thought (CoT) capabilities of small models involve using LLMs to generate high-quality fine-tuning CoT data. As shown in Figure 12 (1) right, these data train small models end-to-end to mimic CoT reasoning [235, 384]. AS-ES Learning [384] highlights that small models struggle with complex reasoning, even when provided detailed steps, as these require nuanced extraction and abstraction. Therefore, the study introduces a paradigm splitting reasoning into extractive segments (context reminders) and abstractive segments (inferred insights). + +Augment Data from Itself. Besides distilling data from other LLMs, language models can also train on their own +outputs [29, 145, 337]. Since voting strategies can improve the performance of LLMs, reasoning paths that lead to the +majority answer can be further utilized to fine-tune LLMs [145]. Similarly, SLMs can generate their training data with +the aid of existing rationale generation methods. Self-Amplify [29] notes that human annotation of Chain-of-Thought +(CoT) data is very time-consuming; thus, automated rationale generation methods have been proposed. These methods Manuscript submitted to ACM + +![This image displays three diagrams illustrating knowledge distillation techniques and domain gap handling. The top row shows "Distribution Mismatch" with three approaches: (a) Original KD, (b) On-policy Approach, and (c) Off-policy Approach, all involving a "Dataset," "Student q," "Teacher p," and a distillation metric "D(q,p)". The bottom row illustrates "Domain Gap" with (a) Domain Adaptation, showing a "Model in wiki domain" and "Model in Pubmed domain," and (b) Knowledge Distillation, depicting the process of distilling a "Large model" into a "Small model" and further examples involving "Large, pubmed model," "Small, pubmed model," "Large, wiki model," and "Small, wiki model."](images/5ef0bc349ca2896ceaffe910aeb9516f9094df1212bdea9facea688a55284eba.jpg) +(c) Adapt-and-Distill Fig. 13. Distillation Techniques for Enhancing SLM Performance. On-policy means learning only use data from the current studen (policy), while off-policy permits the use of previously gathered data. + +involve three main steps: (1) Selection of samples $( x , y )$ that the model predicts correctly as few-shot examples; (2) Rationale generation, where rationales are produced using post hoc explanation methods; (3) Prompt design for SLMs, where the final prompt is crafted based on the previously generated rationales. + +# 3.4 Distillation Techniques for Enhancing SLM Performance + +Following the discussion on data quality in KD, this section reviews specialized KD training strategies designed to enhance the performance of SLMs. The motivation is to address the unique challenges and constraints involved in distilling knowledge from LLMs to SLMs, ensuring that the smaller models can maximize their performance gains. As shown in Figure 13, two main gaps between LLMs and SLMs lead to challenges in distillation: distribution mismatch and domain gap. Distribution mismatch [6, 173] occurs when the distribution of output sequences during training does not align with the distribution of sequences that SLMs produce during inference, leading to suboptimal performance of the student model. The domain gap [414] arises when there is a discrepancy between the domains or tasks on which the LLMs and SLMs are trained and applied. This gap can cause significant degradation in the performance of the student model if not properly addressed during the distillation process. To address these issues, specialized strategies involve first aligning the teacher and student models with the target domain before proceeding with knowledge distillation. To explore these challenges further, we now delve into the details of these two branches of methods. + +Distribution Mismatch In original knowledge distillation, illustrated in Figure 13 Distribution Mismatch (a), the teacher and student are provided with the same input sequences $x$ and output labels $y$ , producing probability distributions for the next token $\cdot q$ and $p$ ). The loss is calculated as the difference between these two distributions, $D ( q , p )$ . However, a key challenge arises due to distribution mismatch: the output sequences during training $( y )$ differ in distribution from those the SLMs produce during inference $( y ^ { \prime } )$ . To address this challenge, various techniques have been proposed. As shown in Figure 13 Distribution Mismatch (b), one approach trains the student model using on-policy sequences—sequences generated by the student itself—guided by the teacher model’s feedback. Specifically, both the student and teacher take the same input $( x )$ and the student-generated output $( y ^ { \prime } )$ , producing probability distributions Manuscript submitted to ACM + +for the next token ( $\dot { \boldsymbol { g } }$ and $\mathcal { P }$ , respectively). The loss is calculated as the difference between these two distributions, $D ( q , p )$ . This approach helps the student model reduce the distribution gap between training and inference by learning from the teacher’s feedback on its own generated sequences. Generalized Knowledge Distillation (GKD) [6] is the first work using this technique and improves distillation outcomes. However, a drawback of this technique is that it requires the student to constantly produce new training sequences, which can be computationally expensive. To improve efficiency, as shown in Figure 13 Distribution Mismatch (c), an adaptive off-policy approach can be used to efficiently manage student-generated outputs by storing them in a replay buffer, thereby reducing computational costs. DistiLLM [173] employs this off-policy approach and improves the efficiency of KD. + +Domain Gap When training an SLM in a specific domain that differs from the domain of the LLMs, the gap between the two domains becomes problematic. As illustrated in Figure 13 Domain Gap (a), domain adaptation fine-tunes a language model, initially trained on a general corpus, using a specialized dataset such as PubMed to enhance performance in that specific domain. As illustrated in Figure 13 Domain Gap (b), Knowledge distillation transfers knowledge from the larger model to the smaller one. However, because the teacher model may not produce high-quality outputs on specialized datasets, domain adaptation is needed prior to knowledge distillation. As illustrated in Figure 13 Domain Gap (c), Adapt-and-Distill [414] tackles the domain gap by distilling general large models into smaller ones. This paper introduces AdaLM and demonstrates that the “Adapt-and-Distill” strategy—first involving domain adaptation of both the large teacher model and the small student model, followed by distillation—is the most effective compared to three other strategies: training directly from scratch, distillation followed by adaptation, and adapting the teacher model before distillation into a general small student model. These innovative techniques are crucial for enhancing the capabilities of SLMs, making them more efficient and effective for various applications. However, adapting both the teacher (LLMs) and the student (SLMs) models to the target domain can be time-consuming. Future research could focus on efficiently solving the domain gap problem. + +Insights: Here are some insights from distillation techniques: + +• Sampling SLM outputs during the training process is the main approach to resolving distribution mismatch. • Techniques like Adapt-and-Distill address the domain gap by first adapting both the teacher (LLMs) and the student (SLMs) models to the target domain before proceeding with distillation. + +# 3.5 Performance Improvement through Quantization + +As mentioned in Section 2, quantization is one of the most effective methods for adapting LLMs to SLMs. However, compression to smaller sizes often compromises performance. To address the performance drop associated with quantization, various methods have been proposed. This section examines how these quantization methods specifically enhance the performance of SLMs. While the general introduction to compression methods is discussed in the compression section, the focus here is on detailing those approaches that boost the efficiency and effectiveness of SLMs. As shown in Figure 9, we categorize these quantization methods into two main approaches: Post-Training Quantization (PTQ), where quantization is conducted on a well-trained fixed model, and Quantization-Aware Training (QAT), where quantization is integrated into the training process. This section introduces advanced techniques in PTQ and QAT respectively. + +Post-Training Quantization (PTQ) primarily includes weight quantization and activation quantization. Weight quantization aims to quantize model parameters while preserving performance. GPTQ [103] compresses LLMs to 4-bit or 2-bit by quantizing weights layer-by-layer to minimize layer-wise quantization errors. PB-LLM [299], applicable to both Manuscript submitted to ACM + +PTQ and QAT, retains the most salient weights while binarizing the rest based on magnitudes. BiLLM [147], another PTQ method, uses a Hessian-based metric to identify salient and non-salient weights. Salient weights undergo binary residual approximation to minimize loss, while non-salient weights are divided into sparse and concentrated groups for separate binarization, reducing quantization errors. Activation quantization faces challenges with outliers that can stretch the quantization range, causing most values to cluster at few bits and introducing significant errors. To address this, LLM.int8() [80] isolates outlier features for 16-bit processing and handles the rest in 8-bit. SmoothQuant [386] circumvents per-channel quantization issues by employing a "smoothing" technique that shifts the quantization challenge from activations to weights through a per-channel scaling transformation. This balance between activating and weight quantization allows effective 8-bit quantization (W8A8), preserving accuracy while significantly reducing memory and computational costs. SmoothQuant thus enhances the efficiency of SLMs in resource-constrained environments. + +Quantization-Aware Training (QAT) differs from PTQ in that it includes a training phase after the model has been quantized. When models are quantized to extremes, such as 2-bit or 1-bit, performance typically drops significantly, but further training can help the model retain its capabilities. For instance, to mitigate performance degradation from binarization, PB-LLM [299] selectively binarizes only non-salient weights, preserving the most salient ones at higher precision. This method effectively reduces the model size without significantly impacting performance. Salient weights are chosen based on their magnitude, ensuring that the most influential weights maintain higher precision to preserve the model’s reasoning capabilities. The paper explores both post-training quantization (PTQ) and quantization-aware training (QAT) to fine-tune and recover the performance of partially binarized models, achieving a balance between compression and accuracy. OneBit [400] and BitNet [357] address the severe performance degradation associated with 1-bit quantization by decomposing floating-point matrices and employing mixed-precision strategies. Specifically, OneBit introduces Sign-Value-Independent Decomposition (SVID), which decomposes a floating-point matrix into a 1-bit matrix and two floating-point vectors. This method allows LLMs to be quantized to a 1-bit level while minimizing performance loss. By retaining critical information with the floating-point vectors, OneBit effectively balances extreme compression with maintaining model accuracy. BitNet b1.58 [231] improves on the original BitNet by introducing a ternary matrix weight system -1, 0, 1, resulting in a 1.58-bit model. BitNet b1.58 matches the performance of full-precision models starting from a 3 billion parameter size while further reducing memory and latency costs. LLM-QAT [221] employs data-free knowledge distillation, where the pre-trained model itself generates data for fine-tuning the quantized model (student) using logit distillation from the full-precision model (teacher). This method incorporates quantization of weights, activations, and key-value cache, achieving accurate 4-bit quantization for weights and key-value caches, and 6-bit for activations, demonstrating substantial improvements over existing post-training quantization methods. + +Insights: Insights drawn from quantization strategies include: + +• Post-Training Quantization techniques primarily focus on quantizing model weights, where selecting salient weights is crucial. Beyond weight quantization, handling outliers in activation signals is a significant challenge in quantizing activations. +• Quantization-Aware Training methods show that low-bit quantization (e.g., 1-bit models) requires additional tuning to maintain performance. Knowledge can be distilled from the model before quantization to the quantized model. + +# 3.6 Techniques in LLMs Contributing to SLMs + +This subsection explores the potential of advanced techniques such as RAG and MoE, which enhance LLM performance, to also maintain or boost SLM performance within constrained computational budgets. However, effectively integrating these techniques into SLMs, which inherently possess limited capabilities, remains an unresolved challenge. + +Retrieval Augmented Generation (RAG) enhances the capabilities of language models in knowledge-intensive tasks by incorporating a retrieval mechanism. This approach allows models to access relevant contextual information from a data repository in response to user queries. By integrating this retrieved data, RAG-equipped models better understand specific topics, enabling more informed and accurate outputs. For SLMs, a significant concern is whether they possess the capacity for long-context reasoning. A recent study [215] compares SLMs at the 7B level with RAG to larger models such as GPT-3.5 and GPT-4, suggesting that SLMs equipped with RAG can sometimes perform comparably or even better than LLMs. These findings indicate that RAG for SLMs is effective and represents a promising direction for future research. + +Mixture-of-Experts (MoE) [39] has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs. The MoE framework is founded on a straightforward yet potent concept: distinct components of a model, referred to as “experts”, specialize in different tasks or data facets. In this paradigm, only the relevant experts are activated for a specific input, which manages computational costs while leveraging a vast pool of specialized knowledge. This scalable and adaptable approach enables increased model capacity without proportionally escalating computational demands. We argue that MoE is particularly suitable for SLM architectures [161] as it minimizes both computational load and memory overhead. However, research on MoE for SLMs remains sparse. Future studies could investigate how large LLM MoE architectures can be effectively compressed into small ones or how to develop an SLM with MoE tailored for specific devices from scratch. + +# 4 APPLICATIONS OF SMALL LANGUAGE MODELS + +In this section, we delve into the applications of small language models (SLMs) across various NLP tasks and their deployment strategies. Due to benefits such as enhanced privacy, faster inference, and lower memory requirements, many NLP applications are now leveraging SLMs over LLMs. Additionally, deploying SLMs often involves considerations of memory and runtime efficiency, which are crucial for optimizing resource use on budget-constrained edge devices, particularly mobile phones. Then, we will discuss task-specific applications of SLMs and their deployment methods on mobile and edge devices. + +# 4.1 Task-specific SLM Applications + +This subsection explores the diverse NLP tasks to which SLMs can contribute. Question-answering and coding represent generative tasks, while recommender systems and web search (though not strictly within the NLP domain) typically leverage the encoding capabilities of SLMs. Additionally, the application of SLMs on mobile devices is particularly well-suited due to constraints in memory and computing resources. The representative works are systematically organized in Table 3. + +4.1.1 SLM Applications in Question-Answering. Question-answering (QA) is a fundamental task in the NLP field, demanding language models to exhibit abilities in understanding language, reasoning, common sense, and recalling specialized knowledge. Typically, larger language models yield better QA performance. However, the substantial size of these models introduces challenges such as immense computational requirements, privacy concerns when using proprietary LLMs, and difficulties in customization. These issues lead researchers and developers to favor SLMs in scenarios that demand efficiency, privacy, and customization. Therefore, we explore methods to enhance the capabilities of SLMs in QA across three key areas: (i) Instruction Tuning of Generic SLMs for QA, (ii) Instruction Tuning of Domain-Specific SLMs for QA, and (iii) Enhancing SLMs for Out-of-Domain Questions. + +Table 3. Task-specific SLM Applications + +
AspectRepresentative workKey point
SLM in QAAlpaca [329] Stable Beluga 7B [238]Tune Llama 7B [338] using 52k ChatGPT-generated examples.
Fine-tuned BioGPT [125] Financial SLMs [275] ColBERT [112] Rationale Ranking [128] T-SAS [156]Employ explanation tuning to Llama-2 7B [339] on an Orca-style dataset. Fine-tuning BioGPT (1.6B) [230] on PubMedQA. Transfer financial knowledge from GPT-4 [2] to multiple SLMs. Fetch retrieval documents for SLMs to answer domain-specific questions. For unseen questions, combine retrieval with LLM-generated rationales.
SLM in CodingPhi-3.5-mini [1] TinyLlama [439] CodeLlama [292] CodeGemma [331]Enhance SLMs adaptability with self-generated pseudo labels. New addition to the Phi-3 series and focus on high-quality data. 1.1B Transformer model is trained on 3T corpus. A derivative of Llama 2 fine-tuned on domain-specific datasets. Fine-tuning Gemma to enhancing coding capabilities.
SLM in Recommen- dationPromptRec [382] SLIM [369] BiLLP [309] ONCE [214] RecLoRA [455] Content encoder [44, 152, 228]Training on prompt templates Step-by-step Knowledge Distillation LLaMa-2-7B as planner and reflector LLaMa-2-7B as Content Encoder Personalized low-rank adaptation
SLM in Web SearchRanker [63, 260] Rewriter [233] Octopus [52]Encode concatenated queries and documents. Re-rank retrieved documents using a specially SLM. Bridge the gap between queries and needed knowledge by rewriting inputs. Calling software APIs via learning in documents
SLM in Mobile- deviceMobileAgent [87] α-UMI [307] Mobile Interaction [42] AutoDroid [376] M4 [423] Agent for Text Rewriting [458]Standard Operating Procedure (SOP) SLMs serve as Multi-agents in tool uses. Text-to-action control and tests on 6GB and 4GB Android devices Interaction based on GUI and APP knowledge injection a foundation model handling all mobile AI tasks. Data Knowledge Distillation from LLMs
+ +Instruction Tuning Generic SLMs for QA. Despite the Phi series’ high question-answering capability, its training cost with over 3.4T tokens on 512 H100 GPUs for 10 days [1] is prohibitive for many researchers and developers. Instruction tuning [372] offers a cost-effective alternative, enhancing small models by fine-tuning on large model outputs. Alpaca 7B [329] tunes Llama 7B [338] with 52k ChatGPT-generated examples from 175 seed tasks. This behavior cloning mimics teacher models effectively but struggles in reasoning-intensive QA tasks where accuracy is key, not style [60]. To counter it, explanation tuning [238] enhances Llama-2 7B [339] using explanatory LLM answers to improve reasoning. However, its effectiveness varies with system instructions, and those effective for larger models like GPT-4 may not suit smaller ones. SLMs also struggle to identify optimal system instructions for different tasks. Therefore, Orca 2 [247] addresses this by promoting cautious reasoning, deciding which solution strategy to choose for a given task among direct answer generation, or “Slow Thinking” strategies (step-by-step, guess and check or explain-then-answer, etc.) and erasing specific system instructions during training. This involves (1) solution strategy is guided by the performance of Orca 1 [251], (2) writing task-specific system instructions corresponding to the chosen strategy to obtain teacher responses for each task, and (3) at training time, employing Prompt Erasing to replace student’s system instructions with generic ones vacated of details of how to approach the task, encouraging students learn not just task solutions but also deeper reasoning abilities. + +Table 4. Comparison of instruction-tuned domain SLMs for QA and LLMs on FinQA [56] and PubMedQA [163]. + +
ModelSizeInstruction tuned?Task NameShot TypeAccuracy (%)
GPT-4 [2]-×FinQAZero-shot77.5
Phi-3-Mini [1]2.7B√FinQAZero-shot77.6
Meditron-70B [55]70B×PubMedQAZero-shot81.6
RankRAG-1lama3-70B [421]70B×PubMedQAZero-shot79.8
Flan-PaLM [313]540B×PubMedQAFew-shot79.0
GAL 120B [330]120B×PubMedQAZero-shot77.6
Flan-PaLM [313]62B×PubMedQAFew-shot77.2
BioGPT [230]345M√PubMedQAZero-shot78.2
BioGPT-Large [230]1.5B√PubMedQAZero-shot81.0
+ +Instruction Tuning Domain SLMs for QA. Beyond instruction tuning for generic SLMs, tuning domain-specific SLMs is also crucial, as they provide specialized assistance where generic SLMs may underperform. Instruction-tuning generic SLMs can derive domain SLMs. We summarize some representatives in several domains. (1) In finance, Phogat et al. [275] transfer financial QA abilities from teacher LLMs such as GPT-4 [2] to specialized SLMs such as Phi-3-Mini [1], using datasets such as FinQA [56], ConvFinQA [57], and TATQA [454]. They train SLMs with Python programs created by the teacher model, which detail steps for financial reasoning, including concept comprehension, formula identification, entity extraction, and calculations. During inference, SLMs generate Python code that an external interpreter executes. (2) In the medical field, Guo et al. [125] enhance student SLMs, including domain-specific BioGPT (1.6B) [230] and general Llama 7B [338], by fine-tuning on enriched PubMedQA [163] data. This enhancement is achieved by generating new samples or rewriting existing ones using teacher LLMs, which include the highly knowledgeable GPT-4 and the relatively weaker ChatGPT. The best SLM, with under 1.6 billion parameters, achieves $7 5 . 4 \%$ accuracy, surpassing GPT-4’s $7 4 . 4 \%$ in few-shot settings on the PubmedQA test sets. It demonstrates that LLMs effectively refine and diversify question-answer pairs, leading to enhanced performance in a significantly smaller model after fine-tuning. We report the detailed results of comparisons of instruction-tuned domain-specific language models for QA and larger language models on FinQA [56] and PubMedQA [163], as shown in Table 4. + +Enhancing SLMs for Out-of-Domain Questions. One of the major advantages of LLMs is their strong comprehension and logical reasoning abilities, which SLMs often struggle to match due to their limited parameters, especially when handling unseen or out-of-domain questions. Various methods have been developed to address this limitation, including Retrieval-Augmented Generation (RAG) and self-adaptive techniques. + +(1) Retrieval-Augmented Generation (RAG): Incorporating External Knowledge for Domain-Specific QA. RAG addresses OOD questions by integrating external knowledge during inference, allowing models to access information beyond their pre-trained parameters. By retrieving relevant documents in real time, RAG enables small language models to provide accurate answers on specialized topics. In the telecommunications domain, Gichamba et al. [112] use ColBERT as a dense retrieval system to fetch documents from technical datasets. By encoding queries and documents separately, ColBERT computes relevance scores, helping small models like Phi-2 and Falcon-7B retrieve precise technical information to answer complex telecom-related queries. Rationale Ranking [128] addresses answering unseen questions using smaller language models by integrating external explanatory contexts from retrieval systems with reasoning rationales from LLMs. This method involves ranking both the retrieved explanatory contexts and LLM-generated rationales using a scoring module, which then combines them to form a cohesive context. Consequently, this integrated approach enhances the SLMs’ performance on unseen questions. + +(2) Self-Adaptive Techniques: Enhancing Model Adaptability with Self-Generated Pseudo Labels. Fine-tuning, while effective in adapting domain knowledge, can be impractical in realistic scenarios where labeled datasets are scarce. To overcome this, self-adaptive techniques employ self-generated pseudo labels to activate specific aspects of the target tasks, thereby enhancing model adaptability [312, 347]. Test-time Self-Adaptive Small LMs (T-SAS) [156] first stochastically generates multiple answers for an unlabeled question. The most plausible answer is then selected via majority voting to enhance pseudo-label accuracy, serving as a pseudo-label for training during test-time. + +Comparison between LLMs and SLMs for QA. When comparing LLMs such as GPT-4 [2] or BLOOM-175B [181] with fine-tuned SLMs in QA tasks, the benefits of SLMs are clear. LLMs, while versatile across multiple domains due to extensive pre-training, are computationally demanding, making them less ideal for resource-limited settings. SLMs, however, when fine-tuned for specific domains, often match or exceed the performance of larger models within those specialties. The trade-off is between large-scale models’ generalization and small-scale model’s specialization: LLMs handle diverse domains but may need additional techniques such as knowledge injection for domain-specific queries. In contrast, domain-specific SLMs, though less flexible, provide higher accuracy and more relevant responses, making them ideal for edge deployments where computational resources are scarce but domain precision is crucial. + +4.1.2 SLM Applications in Coding. The adoption of SLMs for coding offers an alternative to LLMs due to their lower computational needs and potential for domain-specific tuning. Despite LLMs’ proficiency in code generation and programming support, SLMs are advantageous for their faster inference, reduced operational costs, and suitability for real-time environments where rapid responses are crucial. Representative works are discussed next. The Phi series [1, 155, 200] showcase SLMs’ evolution in coding tasks. For instance, Phi-1 [120], a Transformer with 1.3B parameters, specializes in basic Python coding and achieves notable scores in benchmarks such as HumanEval [120], which includes 164 programming problems. Subsequent models, Phi-1.5 and Phi-2, have enhanced these capabilities, while Phi-3 demonstrated SLMs’ potential to rival larger models [1]. The latest model, Phi-3.5-mini, with 3.8B parameters, excels in long context tasks using advanced fine-tuning and optimization techniques, performing comparably to larger models such as Llama-3.1-8B-instruct [94] and surpassing smaller ones like Gemma-2 [333]. + +Another avenue of development is the fine-tuning of general-purpose SLMs for coding tasks [23, 121, 227, 292, 331]. For instance, CodeLlama models [292], derivatives of Llama 2 [339], undergo a rigorous fine-tuning process on domain-specific datasets, enhancing their proficiency in specific programming languages such as Python. They are trained to handle tasks such as syntax error detection, code suggestion, and infilling, where they learn to predict and complete missing parts of the code. This specialized fine-tuning improves their ability to interpret and execute detailed programming instructions, making them highly effective in real-time code editing environments [292]. CodeGemma models [331], stemming from Google DeepMind’s Gemma framework, also exhibit a focused approach to enhancing coding capabilities through fine-tuning. These models are specifically engineered for high-performance code generation and infilling, underpinned by extensive training on a vast corpus of over 500 billion to 1 trillion tokens, predominantly consisting of code. This comprehensive dataset enables CodeGemma models to excel in mathematical reasoning and complex problem-solving within code contexts, setting new benchmarks in latency-sensitive applications such as real-time IDE support and automated code reviews [331]. + +Comparison between SLMs and LLMs on Coding. Table 5 provides a comparative analysis of SLMs and LLMs on coding benchmarks HumanEval [50] and MBPP [20]. Insights include: (i) Small SLMs (1.3B - 3.8B Parameters) like Phi-3.5-mini [342] achieve high scores, demonstrating the efficacy of small models. Mid-sized SLMs (6.7B - 9B Parameters), such as DeepSeekCoder 6.7B [121] and Llama 3.1 8B [94], show improved performance, indicating that larger model sizes and enhanced training contribute to better accuracy. Large models (33B and above) like Llama 3.1 405B [94], GPT-4o [263], and Claude 3.5 Sonnet [15] excel, supporting the idea that bigger models generalize better across diverse coding tasks; (ii) There’s a notable trade-off between computational efficiency and performance, with larger models requiring more resources, impacting their practical deployment in constrained environments; (iii) Specialized training and fine-tuning, as used in models like DeepSeek-Coder [121], are crucial for excelling in coding tasks, though such models may not handle complex requests as effectively, highlighting the versatility of general SLMs for broader applications. + +Table 5. Performance comparison between SLMs and LLMs in coding benchmarks. All models listed are chat or instruct versions, and performance are sourced from respective research papers or technical reports [94, 121, 292, 331, 342]. + +
ModelSizeHumanEvalMBPP
DeepSeek-Coder [121]1.3B65.249.4
CodeGemma [331]2B37.849.2
Gemma 2 [333]2B17.740.2
Phi-3.5-mini [342]3.8B62.869.6
DeepSeek-Coder [121]6.7B78.665.4
CodeGemma [331]7B60.455.2
Llama 3.1 [94]8B66.569.4
Gemma 2 [33]9B61.069.3
GPT-3.5 Turbo-68.071.2
DeepSeek-Coder [121]33B79.370.0
Llama 3.1 [94]70B80.575.4
Llama 3.1 [94]405B89.078.8
GPT-4o OpenAI [263]-90.281.4
Claude 3.5 Sonnet [15]-92.076.6
+ +4.1.3 SLM Applications in Recommender Systems. Recommender systems are essential in various online services, helping to manage information overload and meet users’ personal needs. SLMs enhance recommendation systems by (1) addressing the cold start problem; (2) reducing popularity bias; (3) improving long-term planning; (4) serving as personalized recommenders; and (5) acting as content encoders. These applications show the versatility and effectiveness of SLMs in boosting performance and personalization in recommendation. Next, we introduce the details. + +SLM for System Cold Start Problem. Traditional recommendation systems, which utilize historical user-item interactions such as clicks, purchases, and ratings to learn representations and match items to users, fail in scenarios lacking any user-item interactions, known as the cold-start recommendation problem, often occurring in start-up businesses [289]. Although LLMs address this with in-context learning, their slow and costly inference restricts real-time use. Thus, PromptRec [382] explores using SLMs as in-context recommenders for recommendation system cold-start problems. However, SLMs often struggle without emergent context-learning abilities. To overcome this, SLMs are enhanced by pre-training on relevant corpora, using a improved C4 corpus subset [284], and by developing training prompts for different domains, enhancing cold-start performance. Results show that enhanced SLMs like BERT-mini [83], with 11.3M parameters, achieve BERT-large’s performance in cold-start scenarios, with only $1 7 \%$ of BERT-large’s inference time. Similarly, many studies have addressed the cold-start problem by leveraging BERT [133, 261, 441, 459]. For example, ADLRS [133] employs BERT to convert web-crawled item profiles into vectors that highlight key aspects, aiding recommender systems in acquiring essential initial information. + +SLM for Mitigating Popularity Bias. Popularity bias in recommender systems, marked by discrepancies between item popularity in training datasets and the real world, often stems from using closed-loop datasets with limited information. Recent LLMs leverage their broad open-world knowledge to better reason about user-item interactions [206, 214], reducing this bias by providing recommenders with more extensive item details. Using the chain-of-thought (CoT) prompting, LLMs decompose complex tasks into intermediate reasoning steps, enhancing understanding of user behavior and interests. However, LLMs’ high resource demands limit their practical use. To overcome this, the + +Step-by-step Knowledge Distillation Framework for Recommendation (SLIM) [369] distills LLM reasoning capabilities into SLMs, keeping just $4 \%$ of the original parameters, transitioning from ChatGPT to Llama 7B [338]. SLIM uses detailed LLM templates to extract reasoning steps and streamlined templates for fine-tuning, enabling SLMs to improve recommender systems by better reasoning on richer item information. + +SLM for Long-term Planning. Traditional recommender systems focus on optimizing immediate user responses, often maximizing short-term gains but overlooking long-term engagement. This can trap users in echo chambers and filter bubbles [107, 368]. To tackle this, integrating planning capabilities into recommendations to balance immediate and long-term outcomes is vital. LMs, with their extensive knowledge and reasoning abilities, are expected to enhance planning capabilities. BiLLP [309] adopts a hierarchical learning approach with macro and micro-learning phases. In macro-learning, a Planner and a Reflector, both as SLM instances like Llama-2-7B [339], operate; the Planner forms long-term plans using high-level experiences, while the Reflector updates plans based on past actions. Micro-learning uses an SLM-based Actor-Critic mechanism for personalized planning, with the Actor implementing plans and the Critic assessing actions for long-term benefits. The use of SLMs for long-term planning, similar to their use in cold-start scenarios, remains underexplored and merits further research. + +SLMs as a Personalized Recommender. Generative language model-based recommender systems require integrating user knowledge, typically achieved through fine-tuning. Fine-tuning techniques like LoRA [142] can incorporate extensive knowledge across all users by training an external module with a small number of parameters A and B, but this approach often overlooks individual user preferences. To address this, RecLoRA [455] utilizes Vicuna-7B [61] to integrate personalized knowledge into SLMs/LLMs tailored for recommendation tasks, as illustrated in Figure 14. Specifically, RecLoRA maintains a set of parallel, independent LoRA weights $( \mathbf { A } _ { i } , \mathbf { B } _ { i } )$ , allowing for the customization of language model parameters to match individual user preferences more effectively. + +![This image is of moderate complexity. + +Figure 14 illustrates a lifelong behavior sequence and personalized low-rank adaptation (LoRA) for recommendation. Panel (a) shows a user's purchase history, including a phone, camera, computer, clothing, cake, dress, and gift. Panels (b) and (c) depict two approaches to fine-tuning large language models (LLMs) using LoRA. Panel (b), "Non-personalized LoRA Finetune," shows multiple users interacting with LLMs (Claude 3, Gemini, Meta AI) to produce a single, non-personalized LoRA output (A and B). Panel (c), "Personalized LoRA Finetune," demonstrates how each user's interaction with LLMs results in a unique, personalized LoRA output (A1, B1; A2, B2; ... Ak, Bk), indicating a tailored adaptation for each individual.](images/3b43c2adad6b79f991c200f73540556e2caeebf4d3fa4388bf6043d9b05842b2.jpg) +Fig. 14. The illustration of lifelong behavior sequence and personalized low-rank adaption (LoRA) for recommendation [455]. + +SLM as a Content Encoder. Language models, particularly when deep, provide an effective starting point for finetuning on downstream tasks. In news recommendation systems, the representational capability of a model significantly impacts performance. Consequently, many news recommender systems now employ language models fine-tuned on specific datasets as text encoders. For example, Wu et al. [379] conducts pioneering work using a pre-trained language model to enhance large-scale news recommender systems by substituting traditional news encoders with a BERT model [83]. However, BERT may struggle to capture content as it is pre-trained on limited data. Therefore, ONCE [214] propose using Llama-2-7B [339] as an encoder to overcome the limitations of BERT in content-based recommendations. Additionally, the study explores the synergistic use of LLMs in recommendation systems, finding that SLMs optimized with LoRA [142] outperform the recommendation results of systems assisted by generic LLMs such as ChatGPT. + +4.1.4 SLM Applications in Web Search. Web search systems, involving retrieval and ranking, face challenges due to the diverse web documents and search queries. Traditional keyword-matching methods often fall short because of phrasing variations and the long-tail distribution of queries and content, complicating accurate semantic inference. Effective integration of retrieval and ranking models is also crucial. Language models, serving as content encoders, help overcome semantic challenges through their language understanding from pre-training [63, 89, 359]. Joint training of Manuscript submitted to ACM + +![This image is of **moderate complexity**. It presents three distinct diagrams illustrating the roles of SLM (Sequence-to-Sequence Language Model) in web search applications. Diagram (a) shows "SLM as a Content Encoder," where a passage and query are processed to generate features and a relevance score. Diagram (b) depicts "SLM as a Ranker," detailing how a query interacts with a retriever and passages to produce ranked top-k passages. Diagram (c) illustrates "SLM as a Rewriter," showing a query to LLM being rewritten and then used by a retriever to generate top-k passages for LLM generation.](images/55caed2c4f7f78a5d857a38a853bc5c203ddb2ed2f0ce8cc74b86cc6c50f991c.jpg) +Fig. 15. Roles of SLM in Web Search. + +retrieval and ranking models addresses integration, with SLMs ranking retrieved documents and acting as re-rankers. Additionally, SLMs serve as rewriters in scenarios requiring enhanced query understanding. Thus, in web search, SLMs fulfill three roles: (1) content encoder, (2) ranker, and (3) rewriter, as depicted in Figure 15. Next, we give details. + +SLM as a Content Encoder. Text embeddings are vector representations that encode semantic information, widely used in retrieval; SLM-based dense retrieval utilizes pre-trained deep language understanding to effectively tackle semantic challenges. H-ERNIE [63] employs a hierarchical model that encodes queries and documents at multiple granularity—character, word, and phrase—to improve specificity and relevance in web search results by aggregating finer details into coarser layers, addressing issues like ambiguous queries. Implicit Interaction $( I ^ { 3 } )$ [89] uses BERT [83] as a content encoder, generating implicit pseudo-queries from passages to enable high online efficiency with offline caching of passage vectors. However, ERNIE and BERT-style models overlook advancements in SLMs such as context length extension [292]. Thus, Peng et al. [272] employs LLaMa-7B [338] and Vicuna-7B [61] as semantic encoders for embedding retrieval, demonstrating improved performance through soft prompt tuning. CoCondenser [109] addresses sensitivity to noisy data and large batch requirements during dense retriever training. Using the Condenser architecture with Transformer blocks, the model condenses information into dense vectors effectively. + +SLM as a Ranker. The reranking task improves the order of multiple candidates to enhance retrieval quality because rerankers are more accurate than embedding retrievers. InPars (Inquisitive Parrots for Search) [36] employs the T5 base 220M [284] as a re-ranker to enhance the BM25 retriever [291]. Initially, BM25 selects 1K candidates, re-ranked by a fine-tuned T5 model (monoT5) adapted as a binary classifier to assess document-query relevance. Training data, generated by GPT-3 [37], formulates queries and selects random negative examples. Experiments show the monoT5- enhanced retriever significantly outperforms GPT-3; for example, it achieves a 0.3599 MAP score on the TREC-DL 2020 dataset [69], surpassing GPT-3’s 0.3163. + +SLM as a Rewriter. Queries to the retriever, typically just a few keywords, may reveal a knowledge gap between the query and the knowledge needed for effective retrieval, thus limiting performance. To address this, the “rewriteretrieve-read” framework [233] uses T5-large [284] to bridge the knowledge gap in queries by rewriting them for more effective retrieval. This rewriter, trained via reinforcement learning with downstream LLM performance as a reward, outperforms general LLM rewrites. For example, it achieves a 45.97 F1 score on HotpotQA, surpassing the generic LLM’s 43.85 F1 score. + +4.1.5 SLM Applications in Mobile-device. The use of cloud-based LLMs on devices raises privacy concerns and their large size limits real-time responses in urgent scenarios such as medical emergencies. To overcome these issues, researchers are creating smaller, domain-specific models (SLMs) that offer accurate results and suit mobile use. This subsection discusses SLM applications on mobile devices, focusing on three aspects: (1) software API calls, (2) mobile control, and (3) basic NLP applications. + +SLM for Tool Learning. Integrating LLMs with APIs enhances capabilities but incurs high training costs, prompting a shift to smaller, task-specific models that cut costs but risk errors. In response, Octopus [52] uses a diverse dataset from over 30K APIs and curriculum learning [217] to improve API function accuracy. This method boosts API performance in models like Codellama-7b [292] and Google’s Gemma series [332]. PhoneLM-1.5B-Call [417] is fine-tuned on DroidCall [389] datasets and achieves comparable performance compared to GPT-4o-mini [262]. $\alpha$ -UMI [307] employs SLMs as planners, callers, and summarizers within multi-agent systems, outperforming a single LLM in tool uses. + +SLM for Mobile Control. LM agents facilitate user-device interactions through taps, gestures, and text, automating tasks and enhancing user handsfree convenience. Unlike traditional developerbased approaches that require extensive developer effort to design interfaces and translate commands into API calls, LMs offer scalable automation via GUI-based text contents. MobileAgent [87] integrates instructions and Standard Operating Procedures (SOP) to improve SLMs for mobile control. As shown in Figure 16, it processes goals (e.g., booking a dental appointment) by analyzing screens, queries, prior actions, and UI elements, forming + +![This image illustrates a workflow for an AI agent interacting with a mobile application to book a dental appointment. The left side shows a screenshot of a hospital app interface, likely for Shanghai General Hospital, with options like "Outpatient Appointment" and "Find a Specialist." On the right, a textual description outlines the task's "Goal" (book a dentistry appointment), "Role" (provide action based on screen info), and "Previous Actions" (typing and pointing). The central "AI Agent" receives this information as input and outputs an "Action_type" and "Location" to execute a task, such as selecting "Outpatient appointment" at a specific screen coordinate.](images/844ac2068793ef36b83eb6f0bf3c6390326b42f040099f022d3cd83076a77653.jpg) +Fig. 16. An example workflow for an automated execution tool [87]. The screenshot in the left is taken from [87]. + +prompts to generate outputs and execute actions (e.g., selecting text, XPath). Fine-tuning Qwen-7B [23] on AIA medical data, it outperforms GPT-4 [2] on AitW [290], a key mobile benchmark, without extra inference costs. Carreira et al. [42] run a small offline model on mobile devices, fine-tuned with ChatGPT-3.5 data, enabling tasks like calls and web searches. RedPajama-INCITE-Chat-3B-v1 Computer [67], selected for its size and chat features, uses native code and quantization, performing well on 6GB and 4GB Android devices. + +AutoDroid [376] improves Android app interactions via GUI automation. Figure 17 shows LLMpowered task automation (e.g., setting a laundry reminder for Aug 17) in four steps: (1) click ’New Event’, (2) enter ’laundry’ in ’Title’, (3) click ’Save’, (4) finish. Using Vicuna-7B and app-specific knowledge, AutoDroid generates privacy-filtered prompts for tasks. On its DroidTask benchmark, it outperforms GPT-3.5 $( 3 4 . 7 \% )$ and GPT-4 $( 5 4 . 5 \% )$ with $5 7 . 7 \%$ accuracy. M4 (composable mobile foundation model) [423] introduces a 9.2B parameter model + +![This image is of **moderate complexity**. + +The figure illustrates a four-step process for a mobile task automation powered by an LLM and domain knowledge. It depicts a user's request "Task: Remind me to do laundry on August 17" and shows the corresponding mobile interface actions. Step 1 involves clicking "New event" on a calendar interface. Step 2 shows inputting "laundry" into the "Title" field. Step 3 demonstrates clicking "Save," which triggers the completion of the task as shown in Step 4, where the calendar displays the event. The diagram also visually represents the interaction between the LLM and domain knowledge, facilitating this automated task.](images/f0676f031f8be6ddbcdd421342e02c7aa2dd3e785aaeb77f576fd2a9803bf571.jpg) +Fig. 17. An illustration of Vicuna-7B-powered mobile task automation [42] shows a user asking to be reminded about doing laundry on Aug 17. The figure is taken from [42]. + +(7.5GB memory) for mobile AI tasks, managed by the OS and hardware. Currently limited to high-end devices, its applicability will expand with increasing mobile memory/storage. These works highlight customizing smaller, domain-specific SLMs to address memory limits while preserving functionality in mobile environments. + +SLM for Basic NLP Applications on Devices Performing basic NLP tasks such as text rewriting directly on the device can enable personalization while ensuring privacy. The sparse annotation on devices is a challenge. Qin et al. [278] utilizes self-supervised data selection and synthesis for on-device fine-tuning, leveraging sparse annotations and limited storage effectively. This approach, demonstrated in Figure 18, employs the Llama-3B model [338] and the LoRA fine-tuning method [142], enhancing personalization by efficiently managing data through metrics including embedding entropy and domain-specific scores. In mobile text rewriting, Zhu et al. [458] train the compact Palm 2-XXS model [14] using data generated by the larger Palm 2-L to ensure user privacy and accommodate device constraints. On its new benchmark, MESSAGEREWRITEEVAL, Palm 2-XXS achieves a BLEU score of 34.59, outperforming LLaMa-7B (16.65) [338]. tokens/s), proving its mobile efficiency for text rewriting. + +![This image depicts a framework for fine-tuning Large Language Models (LLMs) using both synthesized and user-generated data. The "Data Synthesis" section illustrates how an LLM generates new dialogue sets based on an initial input prompt, aiming for semantic similarity. Concurrently, "User-Generated Data" involves user prompts and feedback, which are processed through a "Data Selector." This selector tags domains, calculates metrics like EOE, DSS, and IDD, and forwards the processed data. Both synthesized and selected user data are used to fine-tune LLMs such as Claude 3, Gemini, and Meta AI, with user annotations playing a role in refining the original dialogue sets. The process is iterative, allowing for continuous improvement of the LLMs.](images/d4ef979fb35a43bc43f105144a9a822511b5247f2074c5314c41005aa974897d.jpg) +Fig. 18. Overview of fine-tuning SLMs with synthesized and user data [278]. Data Synthesis generates semantically similar text via prompts, creating dialogue sets. Data Selection processes user data, tags domains, and calculates metrics (EOE, DSS, IDD). Selected data fine-tunes SLMs with user annotations. The iterative framework refines SLMs through continuous data generation and selection. + +Tests on the Samsung S23 show lower latency (29 tokens/s) than a 4-bit LLaMa-7B on a MacBook M1 Pro (18-22 + +Insights: We draw several key insights from the development of task-specific SLMs: + +• There is considerable potential in enhancing the efficiency and effectiveness of small models by integrating self-adaptive techniques with further fine-tuning and optimization of RAG-based methods. +• The growing relevance of SLMs in coding highlights their cost-effectiveness and efficiency as alternatives to LLMs, providing quick processing and easy fine-tuning for specialized tasks; while LLMs handle complex tasks well, SLMs, optimized and fine-tuned on specific data, are increasingly essential in resource-limited settings. +• SLMs significantly enhance recommendation systems due to their robust generalization, reasoning abilities, and in-context learning, addressing key challenges such as cold-start problems and distribution biases. They support long-term planning, replace traditional encoders, and use parallel low-rank parameters to inject personalized user knowledge effectively. +• SLMs play a crucial role in web search such as document encoding, text reordering, and query rewriting, often outperforming LLMs through techniques such as supervised fine-tuning, soft prompt tuning, unsupervised contrastive loss, and reinforcement learning, thereby enhancing adaptability and efficiency. +• SLMs are utilized on mobile devices primarily for privacy and memory constraints, with applications in API calls and mobile control; they are typically developed by generating data with LLMs and fine-tuning with SLMs, or by using local SLMs to handle privacy with LLMs boosting performance, and their training involves innovative techniques like learning from data streams and managing non-IID time series data. + +Table 6. On-device Deployment Optimization Techniques + +
AspectRepresentative WorkKey Point
MeoyEDGE-LLM [422]Edge LLMs use LUC and adaptive tuning for eficiency
LLM-PQ [448]Optimize quantization and layer partitioning for complex setups.
AWQ [207]Preserve key weights based on activation distribution.
DMC [256]Adaptively compress KV cache, optimizing storage eficiency.
Transformer-Lite [193]Optimize KV cache to reduce redundancy and memory use.
LLMaaS [419]LLMaaS manages apps via chunk-wise KV cache optimization on mobiles.
Runtime Efmiciency Optimizationmllm-NPU [395]On-device NPU (neural processing units) to reduce prefill latency.
COST-EFF [305]Distill a multi-exit model from the original PLM.
LLMCad [394]Use SLM for fast token generation and cloud verification.
EdgeMoE [416]Predict expert needs, boosting inference speed and reducing latency.
LinguaLinked [447]Optimize data flow and load, enhancing multi-threading eficiency.
+ +# 4.2 SLM Deployment on Mobile and Edge Devices + +On-device applications benefit uniquely from the memory-saving efficiency and rapid runtime performance of SLMs, which offer advantages over LLMs. However, devices with extremely limited resources may still struggle with the parameter sizes of SLMs. To ensure both memory and runtime remain within acceptable range while still maintaining performance, it is crucial to integrate technologies that facilitate the deployment of SLMs on resource-constrained devices. The primary challenge for memory-efficient technologies arises from the inherent size of the SLMs and their associated caches. To address this, we survey existing works focused on compressing SLMs and their caches. Additionally, the large size of models significantly impacts runtime efficiency due to the extensive computing workload and potential weight transfers between the memory buffer and RAM/GPU memory. Other challenges include switching the Mixture of Experts between CPU and GPU memory and managing resource scheduling when deploying SLMs across multiple local devices. Therefore, in this subsection, we review representative works that address these challenges under two aspects: memory efficiency optimization and runtime efficiency optimization, as systematically compiled in Table 6. + +4.2.1 Memory Efficiency Optimization. Memory efficiency involves minimizing the memory usage of both the model and the KV cache during deployment. This is typically achieved through model compression techniques such as quantization [207, 285, 422, 448], the cache of MoE experts [416], and KV cache compression [165]. + +Compression on model parameters. Quantization, a common method for deploying SLMs, lowers numerical precision to significantly save memory while preserving accuracy. We detail quantization strategies in Sections 2.3.3 and 3.5, focusing here on representative works for edge devices. EDGE-LLM [422] adapts LLMs for edge devices using a Layer-wise Unified Compression (LUC) method that combines layer-specific pruning and quantization to reduce computational demands and an Adaptive Layer Tuning and Voting scheme to optimize memory use while ensuring performance. Meanwhile, LLM-PQ [448] addresses quantization and model layer partitioning for heterogeneous clusters, incorporating a Cost Model and an Indicator Generator to optimize bit-width assignment and layer partitioning through integer linear programming, enhancing quantization for complex computational setups. Activation-aware Weight Quantization (AWQ) [207] is a hardware-friendly, low-bit, weight-only quantization method for on-device LLMs, preserving essential weights based on activation distribution to minimize quantization loss. MoE- $\cdot \mathbf { I } ^ { 2 }$ [404] prune less important experts and applies low-rank decomposition to the remaining experts to further optimize efficiency. Manuscript submitted to ACM + +Cache of MoE Experts. Beyond standard quantization, which reduces storage for all model parameters, another strategy involves caching a mixture of experts (MoE). Driven by the fact that memory storage is more cost-effective and scalable than computing capacity, the MoE architecture [154] boosts performance while minimizing computational costs by activating only portions of the LLM as needed. However, this approach incurs significant memory overhead, making it impractical for edge device memory constraints. For example, Switch Transformers [100], with 32 experts per layer, require 54GBs of memory for inference, exceeding the capacity of most edge devices. Yi et al. [416] notes that in the Switch Transformers model, although most of the model weights $( 8 6 . 5 \% )$ are attributed to experts, these weights account for only a small fraction $( 2 6 . 4 \% )$ of the computations. To address this, EdgeMoE [416] introduces a method where experts are loaded into an expert memory buffer only when activated, achieving approximately $3 \times$ memory savings compared to the baseline where all weights are held in memory. + +KV Cache Compression. When serving LMs for inference, using a KV cache is common practice to avoid intensive recalculations and speed up generation [276]. However, cache memory consumption escalates with model size and sequence length, posing a challenge for edge devices. To manage this, offloading techniques transfer KV caches to CPU memory [12, 308], although this can introduce significant overhead due to the switching costs between GPUs and CPUs. Token dropping compresses cache size by keeping only key tokens, often identified by low attention scores [111, 220, 444]. However, this method struggles with complex tasks, especially at high compression levels, due to increased estimation errors in compressed KV values. GEAR [165] addresses these issues by enhancing KV cache quantization with error-reduction techniques, including: (i) quantizing caches of similar magnitudes to ultra-low precision, (ii) using a low-rank matrix for efficient quantization residual approximation, and (iii) employing a sparse matrix for correcting outliers. This approach separates coherent from incoherent approximation errors, enabling near-lossless KV cache compression and achieving up to $2 . 2 9 \times$ peak memory reduction. + +Besides, Dynamic Memory Compression (DMC) [256] adaptively compresses the KV cache by either adding new key and value representations directly or blending them with the top cache item using a weighted average. Transformer-Lite [193] tackles the redundancy of storing the KV cache twice in model inputs and outputs, which increases memory use. It optimizes storage by allocating a large tensor based on the maximum sequence length needed for inference. Sub-tensors are then created from this main tensor at different address offsets to serve as input and output KV caches, allowing direct writing to the correct locations during inference and removing extra copying steps. LLMaaS [419] introduces LLM as a Service for mobile devices, managing all apps through LLMS. This system uses chunk-wise KV cache compression and swapping, enabling efficient context switching within memory constraints. By segmenting the KV cache into independently compressed and swapped chunks, LLMS balances memory use and I/O bandwidth better than token-level or context-level management. + +4.2.2 Runtime Efficiency Optimization. The goal of decreasing computing workload aligns with enhancing memory efficiency through methods such as quantization, as mentioned in the previous section. Decreasing model weight precision or reducing the number of weights naturally lowers latency. Other runtime efficiency techniques of minimizing inference latency involve, reducing prefill latency, early exits, large and small model collaboration, decreasing switching time in MoE, and reducing latency in distributed SLMs. + +Reducing prefill latency. mllm-NPU [395] is the first LLM inference system that leverages on-device NPU (neural processing units) to reduce prefill latency and energy consumption. It incorporates a chunk-sharing graph, shadow outlier execution, and out-of-order subgraph execution to enhance NPU offloading efficiency. Experiments have shown mllm-NPU’s superior performance benefits, including up to $4 3 . 6 \times$ speedup and $5 9 . 5 \times$ energy savings. + +Dynamic Early Exits A decoupled runtime saving technique is dynamic early exits. Originating from BranchyNet [335], which introduces exit branches after specific convolution layers in the CNN model, this concept has been adapted for PLMs as Transformer layer-wise early exiting [391]. Early exiting enables dynamic acceleration during inference and reduces temporal overhead by allowing exit without passing through all model layers. To address the inconsistency issue arising from exiting at different layers, COST-EFF [305] distills a multi-exit model from the original PLM. + +Large and Small Model Collaboration Model collaboration, deploying SLMs on devices with cloud-based LLM support, enhances runtime efficiency. LLMs will increase latency when directly deployed via mobile engines like llama.cpp due to a large number of computing operations. LLMCad [394] addresses this by using a real-time, memoryresident SLM for simple tokens such as determiners and punctuation. The SLM generates tokens, while a cloud-based LLM verifies and corrects them, speeding up the process. LLMCad enhances token generation up to $9 . 3 \times$ by pairing the memory-resident SLM, Llama 2 7B, with the cloud-based LLM, Llama 2 13B, cutting latency from 16.2 to 3.9 seconds on Xiaomi Pro for TruthfulQA tasks [208]. + +Reducing MoE Switching Time. To reduce latency in MoE architectures caused by frequently switching experts in limited device memory, EdgeMoE [416] enhances runtime efficiency by preemptively predicting which expert will be needed, based on the observed long-tail distribution of unbalanced expert activations. It utilizes a statistical model, built offline, to estimate expert activation probabilities in transformer layers from previous activations. During inference, EdgeMoE preemptively loads the most likely needed expert, accelerating inference by $1 . 1 1 \times$ to $2 . 7 8 \times$ and significantly reducing latency. For instance, in a switch transformer model with 8 experts, latency drops from approximately 0.7s to 0.3s, outperforming the baseline method that preloads experts based on hit ratios. + +Reducing Latency in Distributed SLMs. Distributing an SLM across smaller devices reduces the need for extensive model compression while preserving accuracy. However, this approach faces challenges that incur latency such as managing diverse device capabilities, handling data dependencies between model segments, and adapting to dynamic resource availability. To address these issues, LinguaLinked [447] addresses these issues by optimizing model assignment to match device capabilities and minimize data transmission, implementing runtime load balancing to redistribute tasks and prevent bottlenecks, and enhancing communication for efficient data exchange between segments. With multi-threading, the system improves, achieving acceleration rates between $1 . 7 3 \times$ and $2 . 6 5 \times$ for both quantized and full-precision models. + +Insights: We draw several key insights from the deployment of SLMs: + +• Model size remains a bottleneck for both memory and runtime efficiency. A common solution is model quantization, which reduces model precision to save memory and lessen computing workload, thereby boosting inference speed [207, 223, 253, 285, 422, 448]. Similarly, KV cache compression also helps achieve these efficiency gains [165, 193, 256, 419]. +• Mixture of Experts (MoE) is commonly used in SLMs to enhance performance using the same computing resources, but it results in increased memory usage. To address this, only activated experts are loaded into the memory buffer while the majority are stored cold on disk. However, the cost of switching can slow down inference. Designing a preemptive expert pre-load strategy could therefore accelerate the inference [416]. +• Model collaboration between local SLMs and cloud-based LLMs enhances both memory and runtime efficiency by using smaller models on local devices, which are then verified by cloud LLMs to ensure performance is maintained. Using SLMs locally reduces memory usage and shortens the inference time from the local model. However, internet latency and delays in cloud LLM inference can still introduce latency. Verifying SLM outputs every $N$ tokens using LLMs can effectively mitigate this latency [394]. +• One deployment approach involves deploying SLMs/LLMs across multiple trusted local devices to maintain original performance while only loading a fraction of the model weights. However, this method can incur latency due to varying device capabilities and resource scheduling challenges. To address these issues, optimizing model assignment to align with device capabilities and minimizing data transmission are effective strategies [447]. + +# 5 GENERIC AND DOMAIN-SPECIFIC SMALL LANGUAGE MODELS + +This section investigates small language models (with fewer than 7 billion parameters) in both general and specific domains. It details the methods of obtaining these small language models, the datasets, and the evaluation tasks, exploring the techniques for acquiring SLMs through compression, fine-tuning, or training from scratch. Additionally, we summarize the representative small language models, as detailed in Table 7 and 10. + +# 5.1 Generic-domain SLMs + +Overview. SLMs, with fewer parameters than LLMs, enhance computational efficiency in pre-training, fine-tuning, and inference, reducing memory and energy demands—crucial for resource-limited environments. Their compact, localized nature boosts privacy, personalization, and response times, making them ideal for low-power edge devices. Therefore, SLMs are attracting increasing attention, and various models are being developed. Table 7 summarizes current representative generic-domain 42 SLMs/SLM families. Although all chosen SLMs have similar architectures, they vary in specific training datasets and techniques, with some datasets not being openly available. Taking the latest Llama 3.2 1B models [7] in Figure 19 as an example, its parameter size and use of filtered high-quality training data, pruning-based initialization, knowledge distillation pre-training tasks, and training techniques such as Supervised Fine-Tuning (SFT), Rejection Sampling (RS), and Direct Preference Optimization (DPO) distinguish it from others. + +![This image is a model card for the Llama 3.2 1B model. It details the model's specifications, including its developer (Meta AI), parameter count (1.23B), release date (9/25/2024), and license (Llama 3.2 Community License). The card also outlines dataset specifications, training details such as pre-text tasks (Knowledge Distillation) and pre-training methods (Pruning-based initialization, KD from Llama 3.1 8B & 70B), hardware used (H100-80GB), and post-training methods (SFT, RS, DPO). Finally, it presents evaluation metrics, including benchmark (MMLU English), motivation (Test Multi-subject Knowledge), and performance (Macro Avg 32.2), along with responsibility considerations like safety and evaluations.](images/5c4d53a6a4c5f09f4ddfaecb6f9efc56e2048c001e55fb6f1444260ba8c674b2.jpg) +Fig. 19. Llama 3.2 1B model card + +5.1.1 Architecture Design. From Table 7, we observe several trends in component choices for SLMs: + +(1) Recent SLMs frequently employ Grouped Query Attention (GQA) in self-attention mechanisms because it can reduce computational complexity. GQA achieves this by sharing query representations across multiple heads while keeping key and value representations separate. This approach aligns with the goals of SLM to enhance efficiency without compromising functionality. + +Table 7. High-level Overview and Training Details of Generic-domain Small Language Models. #Params means Parameter amounts. $" > "$ indicates parameters larger than 7B. + +
Model#ParamsDateParadigmDomainTraining DatasetsTraining Techniques
PhoneLM [417]0.5B;1.5B2024.1 Pre-trainGenericDCLM-baseline [192], tarCoderData [195]; OpenWebMath [267], Dolma-algebraic and Dolma-arXiv [315]RoPE, MHA, Gated FN, MNorm, ReLU, SDP, Fash Atention 2,ZeRO
Llama 3.2 [7]1B; 3B2024.9Pre-trainGenericno release (9T tokens)GQA, SiU, Mulingual Text and code, hared embedding, Prun- ing, Distilltion, FT, LHF, RS, O
Qwen 1 [23]1.8B; 7B;>2023.12Pre-rainGenericno releaseMHA; RoPE; SwiGLU; RMSNorm
Qwen 1.5 [23]0.5B;1.8B; 4B; 7B;>2024.2Pre-rainGenericno releaseMHA; RoPE; SwiGLU; MSNorm; Muligual support
Qwen 2 [402]0.5B1.5B; B;>2024.6Pre-trainGenericno releaseGQA; RoPE; SwiGLU; MSNorm; Multilingual support
Qwen 2.5 [402]0.5B;1.5B; 3B; 7B;2024.9Pre-trainGenericno releaseGQA; RoPE; wiGLU; RMSNorm; Multilingual support; Larger corpus
Gemma [332] Gemma 2 [33]2B; 7B2024.2Pre-trainGenericUnknownMHA, RoPE, GELUtanh
2B;>2024.7Pre-trainGenericUnknownQA Logi Sft-Capping; RMSNorm for Pre and Post-Normalization
SmolLM [9]135M ; 360M; 1.7B2024.7Pre-trainGenericsmollm-corpus [27]GQA, trapezoidal LR scheduler
H20-Danube3 [274]500M; 4B2024.7Pre-trainGenericUnknown
Fox-1 [334]1.6B2024.6Pre-trainGenericUnknown (3T tokens)GQA; Dep architecture
Rene [113] MiniCPM [143]1.3B 1.2B; 2.4B2024.5Pre-train Pre-trainGeneric GenericDolma-1.7 [315] Dolma [315]; C4 [284]; Pile[84]; tack [174]Mamba-2 layers, sing-window atetion (SWA)
2024.4Staroder [195] Ua hat [86]sIn [373]; Evolntruct [392]Warmup-Sable-Decay (WsD) larning ate scheduer
CT-LM [2]2B2024.4Pre-trainGenericMAP-CCChinese, MHA, RoPE, SwiGLU, MSNor
OLMo [116]1B; B2024.2Pre-trainGenericDolma[315] 1SwiGLU; RoPE, Non-Paraeteric LayerNo
TinyLlama [439]1B2024.1Pre-trainGenericSlimPajama [314] and StarCode [195]GQA, SiLU, FSDP, Flash Atention [73], xFormers [184]
Phi-1 [120]1.3B2023.6Pre-trainCodingCodeTextBook [120]22MHA, GELUtanh, RPE, FlshAttentio
Phi-1.5[20]1.3B2023.9Pre-trainGenericCodeTextBook [120];ynthetic Datasets (20)MHA, GEUanh,RE, FshAttentin, De ZeRSe2
Phi-2 [152.7B2023.12 Pre-trainGenericCodeTextBook [120];yntetic Datasets (20)MHA, GEUanh,RE, FshAttentin, De ZeRSe2
Phi-3 []3.8B; 7B;>2024.4Pre-trainGenericScaled-up dataset from phi-2MHA, SiLU, RoPE, FlashAttention, Deep ZeRO Stage 2
Phi-3.5 []]3.8B; 4.2B;6.6B2024.4Pre-trainGenericmore mulilingual and long-text data RefinedWeb [269], deduplicated PE [108],Maulilingual; Vision; MHA, SiU, RPE, FlashAtention, ZeR2
OpenELM [241]270M; 450M; 1.1B;3B2024.4Pre-trainGenericpartial RedPajama [67], partial Dolma v1.6 [315]No biases in FC layers; Pre-norm: RMSNorm; Pos encoding RoPE; Atention: GQA; FFN: SwiGLU; Tokenizer: LLaMA-style
MobiLlama[36]0.5B;0.8B2024.2Pre-trainGenericLLM360 Amber 3GQA; SwiGLU; Parameter-sharig
MobileLM [23]125M,; 350M2024.2Pre-trainGenericUnknow (1 tokens)iG N, ep and thin achitectues, eeding sharing, and grouped quy attenion
Cerebras-GPT [84]111M;256M; 590M; 1.3B;2.7B;6.B;>2023.4Pre-trainGenericPile [108]MHA; GELU; Maximal Update Parameterization
Pythi [31]14M:70M:160M:410M; 1B;1.4B;2.8B;6.9B;>2023.4Pre-trainGenericPile [108]MHA; GELU; Flash Atention [74]; RoPE [318]; ZeRO [286]
BLOOM2 [181]202.11 Pre-trainGenericR0OTS [10] ad 1 programming languges
Galactica [330]125M, 1.B; 6.7B; >2022.1Pe-tranScientificOpen-acces scientic materils (16bB tokens) but not releaseedMHA; GLU Laed Positinalmbedi
OPT [440]125M;350M;1.3B; 2.7B; 5.7B2022.5Pre-trainGenericPile [108] and Pushhift.io Reddit [24]MHA; ReLU
XGLM [209]1.7B; 2.9B;>2021.12Pre-trainnGenericCC100-XL-
GPT-Neo [33]125M; 350M; 1.3B; 2.7B2021.5Pre-trainGenericPil [108]
Megatron-gpt2 [310]355M; 2.5B;>2019.9Pre-trainGenericWikipedia[83], C-Stories [341], RealNew [430], OpenWebtext-
MINITRON [252]4B;>2024.7Distilaion;Generic8T tokens inNemotron-4[266]LR WSD Scheduler
Orca 2 [247]7B2023.11id1Pruning DistillationGenericOrca 2 datasetLLaMA-2-B based; prompt erasing
Orca[251]13B2023.6DistilationFLAN-v2 [225]From ChatGPT and GPT4, Explanation tuning; Progressive Learning
MINIMA [434]3B2023.11 DistilationGenericPie [108], Wudao [42] GitHub [67]From Llama-2-7B, Zero2, Pash Attention, Optimal teacher size
Dolly-v2 [686]3B; 7B;>2023.4Instruction tuningGenericDatabricks-dlly-15k68]6]from pythia
LaMini-LM [171]61M-7B2023.4DistilatonGenericLaMini instruction dataseta collection of SLMs distilld from ChatGPT-generated 2.58M instructions.
Specialized FlanT5 [105]]250M; 760M; 3B2023.1Instruction TuningGeneric (math)GSM8KBase modelis FlanT5
+ +(2) The choice of activation function should balance model capability and efficiency. ReLU, known for its efficiency, introduces greater sparsity to the model, which facilitates faster coefficient calculations for inference acceleration. In contrast, SwiGLU’s parameters are learned during training, allowing the model to dynamically adapt to diverse tasks and datasets, thereby enhancing model capabilities and establishing it as a state-of-the-art option. SiLU, situated between these two, is favored for its balance of computational efficiency and model performance. + +(3) RMS normalization is commonly used than layer normalization due to its reduced computational demands. + +A basic introduction to these options is provided in Section 2. Apart from component choices, there are notable innovations in architecture for SLMs: + +• Mobilellm [223] highlights that deeper models are more effective than wider ones for improving performance. • Embedding sharing [440] is crucial as embedding layers often constitute over $2 0 \%$ of a model’s parameters—for example, with 512 dimensions and a $3 2 \mathrm { k }$ vocabulary, each layer holds 16M parameters in a 125M-parameter model. Smaller models often reuse these weights for both input and output layers, enhancing efficiency and compactness. • Layer sharing [223] increases hidden layers in small Transformer models without additional storage costs. • Shared FFNs [336] make up about $6 5 \%$ of all trainable parameters, with attention mechanisms and heads accounting for the rest. Sharing FFN parameters across all transformer layers of an SLM is proposed to increase efficiency. • Architecture search ahead of pre-training. PhoneLM [417] proposes a principle for constructing on-device small language models: searching for a resource-efficient architecture on a given hardware to optimize the speed-capacity trade-off before pretraining. This approach inspires the tailored selection of architectural components for on-device SLMs, based on specific compositional requirements such as computing efficiency, model capability, and safety. + +A detailed description of these architectural designs can be found in Section 3.1. + +5.1.2 Training Datasets. From Table 7, we can observe a set of widely used training datasets in SLM development. We provide the details below: + +• Pile [108]: It comprises 22 smaller, high-quality diverse corpora from various domains, such as Pile-CC, PubMed Central, ArXiv, GitHub, and FreeLaw, designed to offer a comprehensive foundation for language model training. The dataset contains 207 billion tokens and totals 825 GB. +• C4 (Colossal Clean Crawled Corpus) [284]: This dataset includes 350 billion tokens, representing a cleaned version of the Common Crawl web corpus, intended to capture a wide snapshot of the internet 4. +• The Stack [174]: It contains 6 trillion tokens of source code from over 300 programming languages, useful for developing code-centric AI applications. Python-edu in smollm-corpus [27] consists of Python files that are scored 4 or more by the educational code model and are extracted from the stack-v2-train dataset. +• StarCoder [195]: It features 35 billion tokens, predominantly Python code, aimed at programming language understanding and generation. +• RedPajama [67]: This dataset encompasses 1.2 trillion tokens derived from over 100 billion text documents, processed using the CCNet pipeline to ensure a rich collection of web texts. +• RefinedWeb [269]: This dataset includes 5 trillion tokens of high-quality, extensively filtered web data, offering a valuable resource for training web-aware models. +• PushShift.io Reddit [24]: A around 5 billion tokens resource for social media data collection, analysis, and archiving, specifically of Reddit data, aiding research into social media dynamics. +• CulturaX [257]: It comprises 6.3 trillion tokens across 167 languages, supporting the development of models with extensive linguistic and cultural understanding. +• FineWeb [268], a large-scale (15-trillion tokens, 44 TB disk space) dataset for LLM pretraining. FineWeb is derived from 96 CommonCrawl snapshots. FineWeb-Edu is a subset of FineWeb constructed using scalable automated high-quality annotations for educational value. + +From the analysis of these datasets, we can derive several critical insights regarding the development of SLMs: (i) Data quality is crucial for training effective SLMs, involving sophisticated filtering like removing duplicates or irrelevant content, often with another LLM’s help. For example, the TinyStories corpus [96] is tailored for simplicity, ideal for training models to handle straightforward narratives. RedPajama-V2 [67] uses the CCNet pipeline to process 30B documents, providing quality signals and IDs for creating a 20B deduplicated dataset. (ii) Code Data: Source code constitutes a significant component of valuable data for training models, particularly because of its structured nature and logical content. Training on code data enhances a model’s reasoning capabilities and supports its ability to generalize across multiple natural languages, which is crucial for applications requiring robust problem-solving and interpretation skills in diverse coding environments [17, 104, 120, 236] + +5.1.3 Training Algorithms. To enhance the alignment of SLMs with desirable properties such as safety and reasoning, training algorithms, particularly during the fine-tuning phase, are crucial in evolving pre-trained SLMs. + +• Direct Preference Optimization (DPO) [283] presents a simpler alternative to RLHF for optimizing language models based on human preferences, preventing explicit reward modeling and reinforcement learning. Instead, DPO modifies log probabilities of responses with a dynamic weighting mechanism to prevent model degradation common in probability ratio-focused methods. The DPO loss function is: + +$\begin{array} { r } { \mathcal { L } _ { D P O } ( \pi _ { \theta } ; \pi _ { \mathrm { r e f } } ) = - \mathbb { E } _ { ( x , y _ { w } , y _ { l } ) \sim D } \left[ \log \sigma \left( \beta \log \frac { \pi _ { \theta } ( y _ { w } | x ) } { \pi _ { \mathrm { r e f } } ( y _ { w } | x ) } - \beta \log \frac { \pi _ { \theta } ( y _ { l } | x ) } { \pi _ { \mathrm { r e f } } ( y _ { l } | x ) } \right) \right] } \end{array}$ where $\pi _ { \theta }$ is the policy being optimized, $\pi _ { \mathrm { r e f } }$ is the reference policy, $D$ includes tuples $( x , y _ { w } , y _ { l } )$ , $\sigma$ is the sigmoid function, and $\beta$ scales the log-ratios between $\pi _ { \theta }$ and $\pi _ { \mathrm { r e f } }$ , guiding the model towards human-preferred outputs. • Reinforcement Learning from Contrast Distillation (RLCD) [405] aims to calibrate generative SLMs/LLMs towards embodying harmless and beneficial characteristics. The process starts with an unaligned LM and initial prompts, which are modified into two variants ${ p + }$ and $\hbar -$ , intended to promote and suppress, respectively, attributes like helpfulness and harmlessness. Upon inputting these prompts, the LM generates outputs $^ { o + }$ and $o -$ , with $^ { o + }$ automatically designated as the preferred response. This automation speeds up training by avoiding additional evaluative scoring. The training continues under the RLHF framework. • Conditioned Reinforcement Learning Fine-Tuning (C-RLFT), by OpenChat [356], enhances model performance by incorporating low-quality data during SFT. C-RLFT leverages varied data qualities with simple rewards (e.g., expert data at 1 credit, sub-optimal at 0.1), using distinct prompt tokens to condition data sources, eliminating costly human feedback. Similarly, Data Mix [274] trains on English text in three stages, reducing noisy web data progressively in each stage in favor of higher-quality data. • Explanation Tuning, proposed by Orca [251], addresses the limitations of standard instruction-based fine-tuning, which often restricts SLMs to style imitation rather than reasoning. It uses system prompts with instructions to direct GPT-4 to produce detailed explanations or perform step-by-step reasoning. The resulting instructions and the responses are used as a dataset for fine-tuning SLMs to have better ability of reasoning. + +• Progressive Learning, proposed by Orca [251], aims to bridge the capability gap between Orca and the more capable GPT-4. It starts with training on five million data points from ChatGPT, followed by one million from GPT-4. Research suggests that an intermediate-level teacher can improve distillation effects, enabling a stepwise learning approach where students start with simpler examples and gradually move to more complex ones, receiving improved reasoning and explanations from a more advanced teacher. +• Prompt Erasing introduced by Orac 2 [247], is a distillation strategy designed to enhance the independent reasoning capabilities of student SLMs. In this approach, a more capable teacher LLM is given intricate prompts intended to elicit specific strategic behaviors and more precise outcomes. During the training phase, the SLM is exposed only to the task instruction and the resulting behavior, without access to the original intricate prompts that initiate such responses. This technique, known as Prompt Erasing, positions the student model as a cautious reasoner because it not only learns to perform specific reasoning steps but also develops strategies for approaching tasks at a higher level. +• Maximal Update Parameterization $( \mu \mathbf { P } )$ optimizes control initialization, layer-wise learning rates, and activation magnitudes to ensure stable training regardless of model layer widths. This method enhances training stability and allows the same optimizer settings, especially learning rates, to be used across different model scales. For instance, Cerebras-GPT [314] employs $\mu \mathrm { P }$ to train its models efficiently. + +5.1.4 Model Performance. To compare the performance of SLMs, we have extracted experimental results from two recent and concurrent studies published in June 2024, OLMo [116] and MobiLlama [336], and the recently proposed edge-device Llama 3.2 1B & 3B in September 2024 5. The extracted results are merged and shown in Table 8. From the table, we can find that the following evaluation benchmarks are commonly used: + +(1) MMLU [134]: Evaluate broad knowledge across diverse fields such as humanities, science, technology, engineering, and management. It includes multiple-choice questions covering 57 tasks ranging from elementary mathematics to US history, computer science, law, and beyond, with a total of 14K test samples. +(2) HellaSwag [429]: Assesses the model’s ability to select the correct ending to scenarios from multiple options, testing common sense reasoning, including 10K test samples. +(3) ARC [65]: The AI2’s Reasoning Challenge (ARC) dataset features multiple-choice science exam questions for grades 3 to 9, divided into Easy and Challenge partitions, with the latter containing more complex questions necessitating reasoning. Most questions offer four answer choices. ARC includes a supporting knowledge base of 14.3M unstructured text passages, with 1.17K test samples in ARC_Challenge and 2.25K in ARC_Easy. +(4) PIQA [32]: A commonsense reasoning dataset designed to evaluate the physical knowledge of NLP models. It presents questions (goals) that require physical commonsense for correct resolution, alongside two detailed response options (sol1 and sol2). The dataset comprises 3,000 test samples. +(5) Winogrande [294]: a dataset structured as a fill-in-the-blank task with binary options, designed to assess commonsense reasoning. The dataset includes 1,767 test samples by default splits. + +Accuracy is used as the evaluation metric in the table. Open Language Model (OLMo) [116] is publicly available with its training data and code 6. MobiLlama [336] is a general-purpose SLM designed from scratch, available in 0.5B and 0.8B versions. It adopts a unique approach by using a shared FFN across all transformer blocks, enhancing efficiency. MobiLlama also show high efficiency on diverse hardware (Table 9). + +Table 8. Performance of Various SLMs on Common Benchmarks: data from MobiLlama [336], OLMo [116], and Llama 3.2. + +
Model Size RangeModelMMLUHellaSwagARCPIQAWinogrande
<1Bgpt-neo-125m26.030.323.062.551.8
tiny-starcoder-170M26.828.221.052.651.2
cerberas-gpt-256m26.829.022.061.452.5
opt-350m26.036.723.664.752.6
megatron-gpt2-345m24.339.224.266.953.0
LiteLlama26.238.524.967.749.9
gpt-sw3-356m25.937.123.664.953.0
pythia-410m27.340.926.267.253.1
xglm-564m25.234.624.664.953.0
Lamini-GPT-LM 0.59B25.531.624.263.947.8
MobiLlama 0.5B26.552.529.572.057.5
MobiLlama 0.8B26.954.130.273.257.5
StableLM 1.6B-68.243.874.0-
Pythia 1B-44.733.169.1-
TinyLlama 1.1B-58.734.871.1-
OLMo-1B-62.534.573.7-
OLMo 1.2B25.962.534.5-58.9
Boomer 1B25.431.622.3-51.0
Pythia-Dedup 1B24.349.629.1-54.0
Falcon-RW 1B25.463.135.1-61.9
Cerebras-GPT 1.3B26.738.526.1-53.6
Lamini 1.3B28.538.126.6-50.6
OPT1.3B24.654.529.6-59.7
GPT-NEO 1.3B24.848.531.3-57.1
Pythia-Deduped 1.4B25.555.032.656.9
MobiLlama 1.2B24.863.034.662.0
Gemma 2 2B57.861.176.7-
Llama 3.2 1B49.341.259.4
Llama 3.2 3B63.469.878.6-
Phi-3.5-mini 3.8B69.081.487.4-
Pythia 6.9B-63.844.175.1
Falcon-7B-75.947.578.5
LLaMA 7B-76.244.577.2
Llama 2 7B-76.848.576.7
MPT-7B-77.646.577.3
RPJ-INCITE-7B70.342.876.0
OLMo-7B76.448.578.4-
-
+ +Table 9. Comparison of MobiLlama 0.5B with large-base 1.2B, Llama2 7B, and Phi2-2.7B in terms of efficiency and resource consumption on low-end hardware devices [336]. + +
PlatformModel#ParamsPrecisionAvg Tokens/SecAvg Memory ConsumptionAvg Battery Consumption /1k TokensCPU Utilization
RTX2080TiLlama27Bbf1614.8527793 MB135.51 mAH31.62%
Phi22.7Bbf1632.1912071MB59.13 mAH24.73%
large-base1.2Bbf1650.616254MB18.91 mAH18.25%
MobiLlama0.5Bbf1663.383046 MB8.19mAH14.79%
CPU-i7Llama27B4bit5.964188 MB73.5 mAH49.16%
Phi22.7B4bit22.141972MB27.36 mAH34.92%
large-base1.2B4bit29.231163MB10.81 mAH30.84%
MobiLlama0.5B4bit36.32799 MB4.86 mAH24.64%
Snapdragon-685Llama27B4bit1.1934287 MB10.07 mAH77.41%
4bit2.8271893 MB16.01 mAH567.15%
lae-be2.B
MobiLlama0.5B4bit7.021770MB5.32mAH13.02%
+ +From Table 8 and 9, we can conclude that: (1) MobiLlama 0.5B and 0.8B demonstrate that a shared FFN design can facilitate excellent performance in SLMs with fewer than 1B parameters, even rivaling some models in the 1B-3B range. (2) The performance of MobiLlama 1.2B and OLMo 1.2B illustrates that advanced SLM architectures incorporating high-quality data, SwiGLU, non-parametric layer normalization, RoPE, BPE tokenization, and a shared FFN design can achieve competitive results among models with 1B-3B parameters. (3) MobiLlama demonstrates that SLMs can significantly reduce resource consumption on low-end hardware devices, achieving comparable performance while using a smaller proportion of battery power, memory, and GPU utilization. (4) Popular techniques such as pruning, quantization, distillation, SFT, and DPO, utilized in Llama 3.2, have substantially enhanced SLM performance. + +Insights: We draw several key insights from the development of generic-domain SLMs: + +• Typical SLM architectures generally incorporate features such as GQA, gated FFN with SiLU activations, RMS normalization, deep and thin architectures, embedding sharing, layer sharing, and shared FFNs. +• Although these components are widely used, current research has not yet thoroughly explored their specific contributions within SLMs. +• The importance of data quality in SLM research is increasingly emphasized, often considered more critical than the quantity of data and model architectural configurations. +• Post-pretraining, meticulous fine-tuning is often required to enhance the safety of SLMs, involving strategies to distill +capabilities from LLMs better. Common strategies include explanatory tuning, progressive learning, and prompt erasing. + +# 5.2 Domain-Specific SLMs + +Overview. The capability of LLMs to generate human-like text has significantly captured public interest, highlighting their potential in the field of general artificial intelligence. However, inefficiencies persist when integrating LLMs into specialized applications due to resource constraints. Unlike the need for extensive general knowledge and capabilities, domain-specific SLMs should focus on well-defined tasks and expertise pertinent to specific fields. For instance, specialized models can significantly impact biomedical research and healthcare by fine-tuning for interpretable mental health analysis, or assisting humans in legal dialogues and financial tasks through instruction tuning, showcasing their potential transformative influence. Given the limited number of SLMs specialized in specific domains, we demonstrate some existing SLMs individually across healthcare, science, finance, and law domains. + +5.2.1 SLMs for Healthcare. Hippocrates [3] is an open-source medical language model framework with free access to its data, codebase, checkpoints, and protocols 7. It utilizes a medical pre-training corpus from Medical Guidelines, PMCPatients [452], and PubMedQA-contexts [163], totaling about 300M tokens. The Hippo series, a 7B model, undergoes continuous pre-training, instruction tuning, and RLHF. Fine-tuned on Mistral and Llama-2, it rivals 70B models in some evaluation. For example, Hippo-Mistral 7B scores $5 9 . 9 \%$ on MedQA, outperforming Meditron 70B [55] at $5 8 . 5 \%$ . BioMedLM [34], a 2.7B GPT-style model trained on PubMed content [108], excels in biomedical QA after fine-tuning, achieving $5 7 . 3 \%$ on MedMCQA (dev) and $6 9 . 0 \%$ on MMLU medical genetics exams. Available on Hugging Face Hub 8. AdaLM [414] enhances domain-specific SLMs by continuing training on a medical-focused SLM atop a general pretrained model. It emperically validates adaptation then distillation is the most effective distillation way. AdaLM modified a BERT_base model (12 layers, 768 hidden size) [83] with a 16GB PubMed 9 abstracts corpus. MentalLLaMA [406] introduces the first IMHI dataset for mental health analysis and the first open-source LM for explainable analysis on social media. The IMHI is compiled from ten sources, totaling 105K samples. Expert-designed mental health analysis prompts are employed via ChatGPT for explanations. Based on Llama-2-7B, MentalLLaMA is instruction-tuned on this data and matches top methods in accuracy on the IMHI test set. Project code is available at 10. + +Table 10. High-level Overview and Training Details of Specific-domain Small Language Mode + +
Model#ParamsDateBase ModelsDomainTraining DatasetsTrain Techniques
Hippocrates [3]7B2024.4Instruction Tuning (LLaMA2 [339], Mistral [160])HealthcareMedical Guidelines, PMC-Patients [452], and PubMedQA- contexts [163]Continual pre-training, in- struction tuning, RLHF
BioMedLM [34]2.7B2024.3From scratch and Fine- tuningHealthcarePubMed [108]FSDP
BioMistral [178]7B2024.2Mistral [160]BiomedicinePubMed [108]Continual pretraining
MentaLLaMA [406]7B; 13B2023.9Instruction (LLaMA2 [339]) TuningHealthcareIMHI datasetRLHF; PEFT
AdaLM [414]34M2021.6Distiltion (BERT [83] or MiniLM [362])HealthcarePubMed [108]Continual pretraining, Adapt-and-Distill
Rho-1 [210]1B;7B2024.4TinyLlama-1.1B [439], Mistral-7B [160]Science (Math- ematic()cid)OpenWebMath [267]Continual pretraining
ChemLLM [436]7B2024.4Instruction Tuning (In- ternLM2)Science (Chem- istry)ChemDataContinual training and fine-tuning
SciGLM [435]6B2024.3Instruction Tuning (ChatGLM-6B)ScienceSciInstructSelf-reflective instruction annotation
Llemma [22]7B2023.10Code Llama 7BScience (Math- ematics)id)Proof-Pile-2 [22]Continual pre-training
OceanGPT [30]2B; 7B; 14B2023.10LLaMA2 [339]Science (Ocean)Open-access litera- ture, DoINSTRUCTContinual pre-training,In- struction tuning
AstroLLaMA [258]7B2023.9Tuning (LLaMA-2-7B)Science (As- tronomy)arXiv abstracts from KaggleContinual trining
DARWIN [388]7B2023.8LLaMa 7BScience (physics, chem- istry, and material)SciQ [375], Scien- tific paper[388], FAIR [388]Fine-tuning
MindLLM [412]1.3B; 3B2023.10From-scratch and Super- vised Fine-tuningLaw, FinancePile [108], Wudao [424], CBooksTrain on Bilingual Mixture Data, SFT
+ +5.2.2 SLMs for Science. SciGLM [435] is a collegiate-level scientific language model overcoming data scarcity with a self-reflective instruction annotation framework. Utilizing GPT-4 [2], it generates detailed reasoning for unlabeled scientific problems through three steps with designed prompts in Table ??: (i) CoT prompt for step-by-step answers (Prompt 1), (ii) reflective prompt for correcting errors (Prompt 2), and (iii) integrating the correct answer for clarity (Prompt 3). The SciInstruct dataset spans physics, chemistry, math, and proofs, tuning ChatGLM-6B’s [93] reasoning abilities. SciGLM boosts the base model’s (ChatGLM3-6B-Base) scientific QA accuracy by $3 . 0 6 \%$ on benchmarks such as CEval-Hard [149], CEval-Sci [149], MMLU-Sci [134], SciEval [319], and SciBench [363]. Llemma [22], an SLM derived from CodeLlama [292], specializes in mathematical reasoning. By continual pre-training, its 7B model is evolved on 55B tokens from the newly created Proof-Pile-2 dataset, which includes scientific papers, math web content, and mathematical code up until April 2023, to enhance few-shot capabilities. It excels in mathematical benchmarks like MATH [134], GSM8k [66], OCWCourses [186], MMLU-STEM [134], and SAT, surpassing all comparable open-weight models. ChemLLM [436] is a chemistry-focused language model that utilizes its proposed ChemData, a dataset designed for instruction tuning that transforms chemical data into dialogue format for training. ChemLLM is based on InternLM2-Base-7B [40], initially enhancing its language skills with a multi-corpus of 1.7 million Q&A pairs from Hugging Face, then fine-tunes using ChemData and the multi-corpus to maintain its general capabilities. ChemLLM excels in interdisciplinary chemical tasks within the proposed ChemBench, achieving results comparable to GPT-4 [2] and outperforming GPT-3.5 with a score of 92.6 in Mol2caption, slightly below that of GPT-4. AstroLLaMA [258] introduces an astronomy-focused language model. Based on Llama-2-7B [339] and enhanced via continual pre-training, it has been developed using over 300K astronomy abstracts from arXiv 11. AstroLLaMA achieves $3 0 \%$ lower perplexity than Llama-2-7B, indicating substantial improvements in domain adaptability. AstroLLaMA is available 12 for tasks such as automated paper summarization and conversational agent development in astronomy. + +Table 11. Prompts for self-reflective instruction annotation framework + +
Chain-of-Thought[Prompt 1] The following input consists of a science problem, please generate an elaborate step- by-step solution to the problem.
Reflective Generation[Prompt 2] The following input comprises a science problem and a corresponding solution. However, this solution is incorect, please reflect on its errors and then generate a correct step-by- step solution to the problem.
Prompt Answer[Prompt 3] The following input consists of a science problem, a corresponding solution, and the real answer. The given solution is incorrect, please reflect on its errors and then generate a correct step-by-step solution to the problem based on the real answer.
+ +5.2.3 SLMs for Finance and Law. MindLLM [412] introduces a bilingual (Chinese and English) SLM, pretrained on the Pile dataset [108] for English and WuDao [424], CBook, and various Chinese web content for Chinese. Bilingual training enhances capacity and prevents catastrophic forgetting. It explores specific domains such as law and finance through supervised fine-tuning. In law, it utilizes publicly available legal data, scenario-based Q&A from LaW-GPT [139], and NLP-based legal tasks from DISC-LawLLM [427]. In finance, EastMoney 13 is selected as the data source. + +Insights: We draw several key insights from the development of domain-specific SLMs: + +• Adapting SLMs to domain-specific data is a common practice for acquiring domain-specific SLMs, prompting many to create their datasets [258, 406, 435, 436]. These datasets are often annotated using LLMs like GPT-4 and used to continual pre-train or fine-tune general models such as LLaMa-2-7B [3, 34]. To ensure the data quality, specialized annotation frameworks are developed, such as SciGLM [435]. +• In domains with abundant corpora, training a general model from scratch and fine-tuning it using SFT [412] is practical. Bilingual settings during training can prevent catastrophic forgetting. +• Distilling general capabilities from LLMs while integrating domain-specific knowledge from corpora is another method for developing domain-specific SLMs [414]. + +Table 12. SLMs help LLMs in different aspects + +
AspectRepresentative workKey point
SL fo ealeAPRICOT [343]Trains aalxiliy del topdic 's cnfienc ui only textual inputs and outputs.
POLAR [450] Hallucination Detector in NMTUsing a BERT model to calibrate LLM responses. Using lightweight classifiers to detect hallucinations in Neural Ma-
[399]chine Translation.
SuperICL [393]
SLM Plug-ins provide confidence and prediction for contextual ex- emplars to aid in-context learning.
SuperContext [408]Specifi c SLM enhances ICL by providing confidence and predictions to overcome out-of-domain challenges.
Self-RAG [18]A proxy model labels special tokens during RAG data generation for fi ne-tuning.
SKR [365]Training a small model to detect its self-knowledge for better use of external knowledge.
SlimPLM [325]Detecting missing knowledge in LLMs with a slim proxy model, enhancing the LLM's knowledge integration.
In-Context RALM [287]Training a RoBERTa-based reranker for top-k BM25 documents using LM signals to enhance LM gains.
CRAG [401]Training a lightweight evaluator to assess document quality and trigger actions based on confidence levels.
GSR [148]Training a Generative Sub-graph Retriever (GSR) for relation chain in RAG when retrieving from knowledge graphs.
SLM for Prompt Extraction [443]Small model trained to predict confidence of extracted system
exratig L MPrompt Stealing Attacks [297]
Output2prompt [433]Using a sparse encoder-decoder-based T5 small model to reverse-
Model Purifying [197]engineer LLM inputs from outputs. Using SLMs to ensemble with LLMs, mitigating negative effects
from uncurated data.
Weak-to-Strong Search [453]Framing LLM alignment as a test-time greedy search to maximize
SLCoLM [327]the log-probability difference between tuned and untuned SLMs. Using SLM predictions to guide the LLM generation process in
SLM for LLM applications SLM for LLMHEF [413]Chinse n ang,
Contrastive decoding [198]Enhancing text quality by maximizing the difference between expert
Llama Guard [153]and amateur log probabilities. An LLM-based input-output safeguard model geared towards
safetySLM as Guardian [177]Human-AI conversation use cases. A smaller LLM for both harmful query detection and safeguard
response generation.
SLM for LLM evaluationSLIDE [449]Utilizing SLMs trained via contrast learning to distinguish and score responses in dialogue scenarios effectively.
Kuhn et al. [175]An SLM is used as the natural language inference classifier.
SelfCheckGPT [240]An SLM is used to calculate BERTScore.
Factscore [244]An SLM functions as the natural language inference classifier.
+ +# 6 SLMS FOR LLMS + +In this section, we provide a comprehensive review of how SLMs enhance LLMs. While LLMs are robust, they face challenges such as latency during inference, labor-intensive fine-tuning, noise filtration issues in retrieval, suboptimal zero-shot performance, copyright infringement risks, and evaluation difficulties. SLMs can help LLMs to alleviate these issues. Research in this field can be categorized into five primary areas: (i) using SLMs for reliable LLM generation; (ii) extracting prompts for LLMs using SLMs; (iii) fine-tuning LLMs with SLMs; (iv) applying SLMs in LLM applications; (v) utilizing SLMs as guardian; and (vi) evaluating LLMs using SLMs. A summary of representative work in each category along with their key point is given in Table 12. Next, we introduce each category in detail. + +# 6.1 SLM for Reliable LLM Generation + +Although LLMs generally produce fluent and convincing text, they can occasionally generate erroneous responses [159, 349]. Additionally, LLMs are susceptible to privacy breaches from untrusted data collection, which can erode user trust or cause harm. To address these issues, recent studies have focused on using SLMs to calibrate LLM confidence, detect hallucinations, and improve retrieval-augmented LLMs and their reasoning capabilities. + +![This image is of moderate complexity. It presents two distinct architectures for enhancing Large Language Models (LLMs) using a Secondary Language Model (SLM). The left diagram, "(a) SLM-based Calibrator," shows a "Question" feeding into an "LLM" which produces "LLM Answers." Simultaneously, the "Question" also feeds into an "SLM," which outputs "Calibrated Confidence." The right diagram, "(b) SLM-based Hallucination Detector," illustrates a similar flow where a "Question" goes to an "LLM" producing "LLM Internal States." The "Question" also inputs into an "SLM," which then outputs a "Hallucination score." Both architectures utilize dashed red arrows to indicate feedback or secondary processing paths from the LLM's output or internal states to the SLM.](images/fd9856ea9edd8abf68bb3993615db91a48a01c7506699c07a2722ea28ad8f21a.jpg) +Fig. 20. Architectures of Enhancing Calibration and Hallucination Detection of LLMs. + +Enhancing Calibration and Hallucination Detection of LLMs As illustrated in Figure 20 (a), to calibrate LLMs, an SLM processes both questions and LLM-generated answers to predict calibrated confidence. This training involves minimizing the discrepancy between estimated calibration error and predicted confidence score. For instance, APRICOT [343] uses an auxiliary DeBERTaV3 model [131] to assess LLM confidence in open-question scenarios, aiming to improve uncertainty expression and response adjustment. Similarly, POLAR [450] has developed a self-supervised approach that generates risk scores for each response to calibrate LLM confidence, utilizing a small BERT model [83] to synchronize LLM outputs with other weak supervision sources. As shown in Figure 20 (b), for hallucination detection, an SLM analyzes LLM internal states to output the likelihood of hallucination. This process uses supervised data obtained by testing the knowledge boundaries of the LLM. In neural machine translation, Xu et al. [399] develop a lightweight detector that analyzes token contributions to hallucinations, outperforming both model-free baselines and quality estimation classifiers. Furthermore, SAPLMA [21] found that LLM internal states can signal the truthfulness of statements, with a small BERT classifier trained to differentiate correct from incorrect predictions achieving accuracies of $7 1 \%$ to $8 3 \%$ . + +Enhancing Retrieval-Augmented Generation Generally, as shown in Figure 21, SLMs can also serve as proxy models to evaluate the familiarity of LLMs with user queries, determining whether LLMs need to retrieve additional information or can respond directly. For example, SlimPLM [325] is a small proxy model that assesses the necessity for LLM retrieval by generating heuristic answers. High-quality responses indicate that LLMs can handle queries independently, whereas lower-quality outputs require further retrieval. Additionally, Self-Knowledge Guided Retrieval (SKR) [365] enables SLMs to autonomously decide when LLMs should operate independently, based on their self-assessment of knowledge limitations. Further, SELF-RAG [18] improves the factual accuracy and quality of LLM outputs through on-demand retrieval and self-reflection. This method employs a small critic language model to issue reflective markers and make binary decisions regarding the need for further information retrieval. Moreover, some studies utilize SLMs to evaluate the relevance of retrieved documents. LongLLMLingua [162] employs SLMs to calculate the relevance of documents to a query $x ^ { q u e }$ using perplexity, as formalized by the equation: + +![This image depicts the architecture of a SLM (Search-Augmented Language Model) as a Heuristic RAG (Retrieval-Augmented Generation) Prober. A "Question" is processed by an "SLM" to generate "SLM Heuristic Answers." These answers, along with a "Retrieval Necessity Judgement Model," inform an "LLM" (Large Language Model). If the LLM determines retrieval is "known," it proceeds directly. If "unknown," a "Search Engine" is queried, retrieving "Retrieval Docs" which are then fed back to the LLM, ultimately producing "LLM Answers."](images/a799fdedf2acbfe0cf778e6b9e31f6394c944c22af26e4e01b46328d0a6c4a24.jpg) +Fig. 21. Architecture of SLM as a Heuristic RAG Prober. Manuscript submitted to ACM + +$$ +r _ { k } = - \frac { 1 } { N _ { c } } \sum _ { i } \log \phi _ { ^ { \mathrm { S L M } } } ( x _ { i } ^ { q u e } | x _ { k } ^ { d o c } ) , \quad k \in \{ 1 , 2 , . . . , K \} +$$ + +where $x _ { i } ^ { q u e }$ is the $i \cdot$ -th token in the query sequence, $x _ { k } ^ { d o c }$ is the retrieved document, and $N _ { c }$ is the total number of tokens in the query. $ { p _ { \mathrm { S L M } } }$ represents the probability generated by an SLM. CRAG [401] employs SLMs as evaluators of document relevance in the same way. RA-ISF [219] trains a small language model that checks the base LLM in self-knowledge, relevance judgment, and question decomposition. In addition, some research employs SLMs as re-rankers to refine the order of documents provided by initial retrieval efforts such as BM25 [291]. In-Context RALM [287] positions SLMs as rankers, optimizing the document sequence with a fine-tuning process on RoBERTa [218] as defined by the loss function: + +$$ +\operatorname* { m i n } _ { r a n k e r } \sum _ { i = 1 } ^ { k } - \log p _ { \mathrm { r a n k } } ( d _ { i } | \boldsymbol x _ { \le s _ { j } } ) \cdot p _ { \theta } ( \boldsymbol y | d _ { i } ; \boldsymbol x _ { \le s _ { j } } ) +$$ + +where $x _ { \leq s _ { i } }$ is a prefix sampled from the training data, $y = x _ { s _ { i } + 1 } , . . . , x _ { s _ { i } + s }$ represents the text to be generated in the next stride, $p _ { \theta } ( y | d _ { i } ; x _ { \le s i } )$ denotes the probability of the LLM generating $y$ given $d _ { i }$ and $x { \le } s i$ , and $p _ { \mathrm { r a n k } } ( d _ { i } | \boldsymbol x _ { \le s _ { j } } )$ is the ranking score of $d _ { i }$ . Lastly, some studies leverage SLMs to retrieve sub-graphs when utilizing knowledge graphs as external sources. Huang et al. [148] introduces the Generative Sub-graph Retriever (GSR), which employs SLMs to predict relation chains for answering questions, offering a cost-effective alternative to training LLMs. Specifically, it uses customized T5 (220M, 770M, and 3B) [284] as retrievers to enhance LLM readers, including Llama2-chat-7B [339] and Llama3-instruct-8B [94], on the WebQSP [418] and CWQ [324] datasets. + +Enhancing Reasoning Capabilities of LLMs As illustrated in Figure 22, SLMs enhance LLMs reasoning by transferring task knowledge to in-context examples, effectively reducing hallucinations. While In-context Learning (ICL) generally handles few-shot learning + +![This is a simple diagram illustrating a process involving a "SLM" (likely a Sequence Labeling Model) and an "LLM" (Large Language Model). The diagram shows that "Examples" and a "Question" are inputs to the SLM. The SLM then outputs information, including "Question | Predicted Label | Confidence | Ground Truth" and "Question | Predicted Label | Confidence," which are fed into the LLM. Finally, the LLM produces "LLM Answers." The diagram visually represents how the SLM processes input data and provides structured information to the LLM for generating answers.](images/ae6045a43b98b5c6bb8da34d5ac3c583c0ff5d17ee9737e665173841d5bfaff3.jpg) +Fig. 22. SLM transfers knowledge into ICL. + +with 16 to 32 examples, it struggles when faced with extensive supervised data. SLMs, specialized in task-specific training, complement the broader domain knowledge of extensively pre-trained LLMs. For example, SuperICL [393] incorporates SLMs as plugins for efficiently executing supervised tasks. It predicts labels for contextual examples and integrates these predictions with the input text and actual labels to enhance knowledge transfer, thereby boosting the understanding and responsiveness of LLMs. SuperContext [408] tackles challenges that LLMs encounter with new tasks and out-of-distribution data in natural language understanding by synergizing SLM outputs with LLM prompts during inference. This integration merges model predictions with their confidence levels, effectively leveraging SLM task-specific knowledge and LLM domain expertise. Furthermore, SLMs efficiently decompose complex reasoning by breaking tasks into simpler components, as demonstrated in [383]. This strategy increases efficiency and reduces deployment costs when SLMs and LLMs are used collaboratively, transforming complex tasks into manageable segments. + +![This image displays three distinct paradigms for extracting prompts from language models, labeled (a) Prompt Likelihood Estimation, (b) Prompt Parameter Extractor, and (c) Direct Model Inversion. Each paradigm illustrates a workflow involving either a Large Language Model (LLM, denoted by blue boxes) or a Small Language Model (SLM, denoted by yellow boxes), or both. The diagrams show the flow of "Language model outputs" and "Extracted prompts" through these models to achieve the final "Extracted prompt." These methods are presented as techniques for understanding and potentially reconstructing the inputs used by LLMs.](images/9c3657c5bb8abd7484009440e98895b181ebe7f9d445c79c6060797acd00bc03.jpg) +Fig. 24. SLM for LLM Prompt Extraction Paradigm. $M _ { S }$ denotes small language models and $M _ { L }$ denotes large language models. (a) SLM-based prompt estimation tries various attack prompts; $M _ { S }$ selects the most likely extracted one. (b) SLM-based Parameter Extractor identifies the type of input prompt. (c) SLM-based Model Inversion uses $M _ { S }$ to invert the LLM output back into the input. + +Alleviate Copyright and Privacy Issues of LLMs LLMs pose significant security risks due to their tendency to memorize training data, leading to potential privacy breaches and copyright infringement. As depicted in Figure 23, SLMs can assist LLMs in addressing copyright and privacy concerns arising from online data collection. By training on + +![This image depicts an ensemble architecture for combining a Large Language Model (LLM) and a Small Language Model (SLM). The diagram shows the LLM and SLM processing inputs, generating outputs represented as bar charts, which are then weighted by coefficients $\alpha$ and $1-\alpha$ respectively. These weighted outputs are fed into an "Ensemble" module, leading to a final output visualized as a radar chart. The radar charts on the left, labeled "Large scale (e.g. 15B)" and "Small scale (e.g. 3B)", illustrate performance metrics including Copyright Compliance, Protection against Data Poisoning, Protection of Privacy, Generation Performance, and Other Standard Performance, with different scales showing varying performance distributions.](images/626c7e9d43b4aab04b75e0c85a0ebd44a849b1c90de29088e83b6acbc899b0f8.jpg) +Fig. 23. Architecture of SLM-based Data Protection + +selectively curated data subsets, SLMs effectively reduce copyright infringement and privacy risks, although they are less effective than full-scale LLMs. To harness the combined benefits of both models, Li et al. [197] integrates untrusted LLMs with benign SLMs using the CP- $\cdot \Delta$ KL algorithm to mitigate adverse effects while preserving performance. The equation is: + +$$ +p ( y | x ) = \frac { p _ { l } ( y | x ) \cdot p _ { s } ( y | x ) } { Z ( x ) } +$$ + +where $\mathit { p _ { l } }$ and $\mathbf { \nabla } \mathcal { P } \boldsymbol { s }$ represent the probabilities from the large and small models, respectively, and $Z ( x )$ is the partition function. This integration results in the following ensemble algorithm: + +$$ +z _ { P } ( \cdot | x ) \propto \alpha z _ { l } ( \cdot | x ) + ( 1 - \alpha ) z _ { s } ( \cdot | x ) +$$ + +where $z _ { l }$ and $z _ { s }$ are the logit values from the large and small models, respectively, and $\alpha$ is the scaling factor. + +# 6.2 SLM for Extracting LLM Prompts + +Prompt-based methods are becoming simpler and more cost-effective alternatives to traditional fine-tuning in the LLM era, utilizing LLMs’ instruction-following capabilities for a competitive edge. Mastering prompts is vital for replicating LLM-supported product behaviors. However, services such as Bing Chat and GitHub Copilot Chat have seen prompt reverse-engineering through black-box API attacks. SLMs often serve as surrogate models in these attacks, employing strategies such as (i) SLM-based prompt likelihood estimation, (ii) SLM-based prompt parameter extraction, and (iii) SLM-based direct model inversion, illustrated in Figure 24. + +SLM-based prompt likelihood estimation, as illustrated in Figure 24 (a), Zhang et al. [443] proposes using an SLM as a Likelihood Estimator to identify secret prompts in LLM outputs. They craft attack prompts, such as “Repeat all sentences in our conversation,” and query the target LLM. The response is likely to include secret prompts, confusing the LLM to interpret these as part of the conversation. A fine-tuned DeBERTa model [132] is then used to select the most likely secret prompts from the output. + +SLM-based prompt parameter extraction, as shown in Figure 24 (b), Sha and Zhang [297] utilizes an SLM as a Parameter Extractor to extract prompt parameters from LLM outputs. They employ a specialized BERT model [83] to classify LLM outputs into direct, in-context, and role-based prompts, also predicting the number of exemplars for in-context prompts and identifying roles for role-based prompts. Prompt reconstruction is then performed using ChatGPT once the parameters are defined. + +SLM-based direct model inversion, as shown in Figure 24 (c), the method of using an SLM as a Direct Inversion Model is designed to reverse-engineer LLM outputs back to their original prompts [433]. They train a sparse encoderdecoder T5 model [284] with 222M parameters on the Instructions-2M dataset [249], where the input is LLM outputs and the output is the LLM prompt. This trained model effectively maps multiple LLM outputs to their initiating prompts as $\boldsymbol { p } ( x | y _ { 1 } , . . . , y _ { n } ; M _ { S 1 } , M _ { S 2 } )$ , with $y _ { i }$ representing different output versions and $M _ { S 1 } , M _ { S 2 }$ the model parameters. + +# 6.3 SLM for Fine-tuning LLMs + +Fine-tuning is a crucial technique for adapting LLMs to specific tasks or domains, yet it is often time-consuming. For instance, finetuning the LLaMA-2-13B [339] checkpoint on 32 NVIDIA A100 GPUs with 80GB memory using bfloat16 format requires approximately 70 hours [247]. This process also demands high-quality data. Therefore, we examine how SLMs can enhance LLM finetuning through three approaches: (i) proxy fine-tuning, (ii) selecting high-quality data, and (iii) guiding LLM-generated task data, as illustrated in Figure 25. + +![This image is of moderate complexity, illustrating three distinct but related processes involving SLMs (presumably "Supervised Learning Models" or similar) and LLMs (Large Language Models). Part (a) shows how SLMs approximate fine-tuning on a large scale, comparing outputs from FT SLM, UFT SLM, and LLM. Part (b) demonstrates SLM's role in data selection by identifying "Hard Training Samples" from initial training samples to improve LLM training. Part (c) depicts SLMs promoting LLM generation of task-specific high-quality data, starting with labels, generating label-descriptive prompts, feeding into an LLM, and using feedback to refine the SLM with a local dataset to create a synthetic dataset.](images/dbb90c927b541ccb1dbead5da7a8cacff664dcc463e7dcbbe77d6329cea8382d.jpg) +Fig. 25. SLM for LLM Fine-tuning. + +SLMs as proxy models: SLMs can approximate the gradient of fine-tuning large-scale LLMs on target datasets, avoiding the costly fine-tuning process in terms of time and computational resources. As shown in Figure 25 (a), Emulated Fine-Tuning (EFT) [246] simulates both unsupervised pre-training and supervised fine-tuning stages across different scales by manipulating log probabilities. EFT, for example, combines base log probabilities from a 70B model with behavioral deltas from a 7B model—these deltas represent differences between fine-tuned and unfine-tuned SLMs, effectively emulating outcomes for the Llama-2 series. This method allows fine-tuning on smaller models such as Falcon-7B [10] while capturing most benefits of fine-tuning larger models such as Falcon-180B, benefiting applications such as dialogue, question-answering, and code generation. Similarly, Proxy-tuning [212] adjusts LLM predictions by adding the differences between the outputs of a fine-tuned small model and its untuned version to the LLM’s output vocabulary during decoding, maintaining the advantages of large-scale pre-training while integrating small-scale fine-tuning benefits. Moreover, SLMs can act as proxies for approximate LLM fine-tuning during decoding. Weakto-Strong Search [453] strategy frames the alignment of LLMs as a test-time greedy search, aiming to maximize the log-probability difference between small tuned and untuned models while sampling from the frozen large model. This approach serves as a dual-purpose method: (1) a compute-efficient model up-scaling strategy that circumvents direct tuning of the large model, and (2) an instance of weak-to-strong generalization that bolsters a strong model with weak test-time guidance. + +SLMs play a role in selecting high-quality fine-tuning data for LLMs. Figure 25 (b) illustrates how SLMs within the same family as the LLM can identify training samples that are likely to be challenging, enhancing the training efficiency and generalization capability of the LLM. As demonstrated by Swayamdipta et al. [323] and further advanced by Mekala et al. [242], the learning percentage $L P ( i )$ is a metric used to curate high-quality datasets with hard samples: $\begin{array} { r } { L P ( i ) \ : = \ : \frac { P _ { i - 1 } - P _ { i } } { P _ { 0 } - P _ { n } } } \end{array}$ where $P _ { i }$ represents the perplexity at the end of epoch-??, and $P _ { 0 }$ is the initial perplexity. A higher $L P ( i )$ early in training indicates significant learning in the initial epochs, highlighting the potential of these samples to enhance LLMs. SmallToLarge (S2L) [411] utilizes training loss trajectories from smaller models to guide data selection for larger models fine-tuning. Experimental results demonstrate that S2L significantly enhances data efficiency in SFT for mathematical problem-solving, reducing the required training data to just $1 1 \%$ of the original MathInstruct dataset [428] to achieve performance comparable to that obtained using the full dataset. + +SLMs enhance the quality of LLM-generated data for specific tasks. As depicted in Figure 25 (c), CROSSLM [79] promotes the local training of SLMs on client-specific private data to mitigate privacy risks associated with server-based LLMs. An SLM trained in this manner can guide the server-side LLM to produce high-quality synthetic datasets. Feedback from SLMs regarding the quality of this synthetic data serves as a supervisory signal, enhancing both the quality of LLM outputs and the utility of the data for further training. + +# 6.4 SLM for LLM Applications + +LLMs are utilized across various applications due to their open-ended generation capabilities, yet they often lack specialized knowledge and other generation issues. SLMs can supplement this by providing taskspecific knowledge or reflecting weaknesses. Therefore, we explore how SLMs enhance the performance of LLMs in specific applications, focusing on open-ended generation, knowledge integration, relation extraction, and empathetic response. + +In open-ended text generation—such as writing assistance and story creation—LLMs often suffer from issues such as incoherence and thematic drift over extended sequences. Due to more frequent failure patterns observed in SLMs, such as short, repeated, and irrelevant strings, these patterns serve as negative examples for LLM decoding. + +![This image illustrates the "Contrastive Decoding" method for next token prediction in Large Language Models (LLMs). It shows an "Expert LM (GPT-2 XL)" and an "Amateur LM (GPT-2 small)" processing a given prompt: "Barack Obama was born in Honolulu, Hawaii. He was born in". The diagram depicts the probability distributions ($p_{EXP}$ and $p_{AMA}$) for potential next tokens from each LM, such as "Hawaii," "the," "Honolulu," and "1961." Contrastive Decoding then calculates the difference between the log probabilities of these tokens from the expert and amateur models, as shown in the table with values like $log p_{EXP} - log p_{AMA}$. Finally, it presents example continuations generated by "Greedy," "Nucleus," and "CD" (Contrastive Decoding) methods, highlighting how CD produces a more informative and contextually relevant output.](images/7bd4c45becca7b686c32b583209d1f7a73eb6551e34b45c46098c5c022c94672.jpg) +Fig. 26. Contrastive Decoding [198]. + +Contrastive Decoding (CD) [198] improves coherence and lexical diversity by leveraging the differential capabilities between a large model, OPT-13B [440], and a smaller model, OPT-125M. As illustrated in Figure 26, CD improves content quality by sampling generation based on the difference in log probabilities, $\log p _ { E X P } - \log p _ { A M A }$ , between an expert LM and an amateur LM, rather than relying solely on the expert LM’s log probability. This approach effectively reduces generative failures, including repetition. + +In knowledge injection, general LLMs may lack domain-specific expertise for specialized tasks like law or medicine [91, 353]. Domain-specific SLMs can supply crucial knowledge in a format suitable for LLMs. To this end, BLADE [189] integrates black-box LLMs with small domain-specific models. BLADE combines the comprehensive language capabilities of LLMs with the specialized knowledge of small LMs. As shown in + +1. Domain-specific 2. Knowledge 3. Bayesian Prompted pre-training Instruction Tuning Optimization + +![This image depicts the BLADE framework, illustrating a process involving multiple "SLM" (likely referring to a type of model or system) stages. The framework begins with "Domain-specific Knowledge" feeding into an initial SLM, followed by subsequent SLM stages labeled "pre-training," "instruction tuning," and "optimization." An "LLM" (Large Language Model) interacts with the SLM stages by generating feedback and receiving predictions. The process also incorporates "Question-oriented domain knowledge" and "Test Input," culminating in a "Train SLM" and "Inference" stage.](images/0e42f91999f7419cb80623e72013f86267aee5f36093e88b937c5c8097ca9307.jpg) +Fig. 27. BLADE Framework [189]. + +Figure 27, BLADE’s process includes: 1) pre-training SLMs on domain-specific data, 2) fine-tuning with knowledge instruction to meet task-specific needs, and 3) using joint Bayesian optimization to enhance synergy between the LLM and the small LM, boosting overall performance. + +In relation extraction, a field limited by scarce labeled data and prevalent long-tail categories, the “Train-GuidePredict” framework [327] employs SLMs to learn task-specific knowledge for dominant categories. SLMs struggle with rare categories, whereas LLMs manage these effectively due to their extensive pre-trained text. Therefore, this framework leverages the strengths of both models: it utilizes SLMs to acquire task knowledge and guide the LLM’s generative process with initial SLM predictions, enhancing the LLM’s handling of underrepresented categories. + +In generating empathetic responses, LLMs excel in expressiveness but struggle with nuanced emotions and cognition. HEF [413] addresses this by incorporating Small Empathy Models (SEMs) to enhance LLMs’ emotional and cognitive depth. This framework employs a two-tiered emotion prediction method: SEMs identify primary emotions, directing LLMs to concentrate on these emotions and their triggers, resulting in more accurate and empathetic responses. + +# 6.5 SLM for LLM Safety + +As demonstrated by various works [250, 302, 426, 460], LLMs are vulnerable to adversarial attacks and jailbreaking. For example, Wang et al. [358] shows that ChatGPT’s performance on adversarial datasets is still far from perfect, indicating that potential risks of adversarial vulnerability remain. Another example includes jailbreaking ChatGPT by asking it to ’pretend to be a sarcastic mean girl.’ Using such techniques, it has been shown that even the most advanced LLMs are far from being safe against generating potentially harmful content. Hence, the widely adopted LLM-based services to generate are at high risk of being misused for nefarious purposes. Consequently, resources such as the Llama 2 Responsible Use Guide 14 strongly advocate for implementing robust guardrails in products that utilize Generative AI. These guardrails are specifically designed to mitigate risks associated with both inputs to and outputs from the model, ensuring safeguards against the generation of high-risk or policy-violating content, as well as protecting against adversarial inputs and attempts to compromise the model. In addition to developing trustworthy LLMs, adopting SLMs for LLM safety [153, 177] has also attracted increasing attention. For example, Llama Guard [153], fine-tuned on Llama2-7B, has publicly released an input-output safeguard tool specifically for classifying safety risks in prompts and responses within conversational AI applications. However, this tool is limited to assessing the harmfulness of questions and answers and does not facilitate the generation of fluent, safe responses. In response to this limitation, Kwon et al. [177] fine-tune a specialized small language model with harmful query detection and safeguard answer generation tasks to accurately detect harmful user queries and generate appropriate safeguard explanations, thereby enhancing the safety measures in conversational AI. + +# 6.6 SLM for LLM Evaluation + +SLMs can also enhance the evaluation of LLMs. In dialog evaluation, generating dialog reference responses is computationally complex, making accurate assessment difficult due to the multiple plausible but semantically different responses possible for a single dialog context. Relying on LLM prompting for evaluation can lead to problems such as dependency on prompt wording and inconsistent results. One solution involves training specialized SLMs to evaluate LLMs, as these SLMs can be fine-tuned more quickly and generate outputs faster during inference, owing to their reduced number of parameters. For example, SLIDE [449] employs contrastive learning to fine-tune an SLM to effectively distinguish between positive and negative responses. Based on its observation that SLMs are more accurate in identifying positive responses and LLMs excel at classifying negative ones, the trained SLM is subsequently integrated with an LLM to assign a score to each response. The scoring method used is formalized as follows: + +$$ +s c o r e = \left\{ \begin{array} { l l } { s c o r e _ { S L M } , } & { \mathrm { i f } s c o r e _ { S L M } \ge 0 . 5 } \\ { s c o r e _ { L L M } , } & { \mathrm { e l i f } s c o r e _ { L L M } < 0 . 5 } \\ { \frac { s c o r e _ { S L M } + s c o r e _ { L L M } } { 2 } , } & { \mathrm { o t h e r w i s e } } \end{array} \right. +$$ + +This equation allows for adaptive response evaluation, leveraging the strengths of both models to ensure a more reliable and consistent assessment across varying dialogue contexts. In the natural language generation task, Kuhn et al. [175] designs a novel entropy to evaluate the uncertainty of LLMs. It aims to tackle the challenge of semantic equivalence [175]. For instance, $A$ ’s son is $B$ and $B$ is $A$ ’s son are semantically equivalent. It should not be considered uncertain if an LLM is unsure about which of the two previously mentioned sentences to generate due to semantic equivalence. A DeBERTa-Large [132] fine-tuned on the MNLI [378] dataset serves as the classifier guided by semantic equivalence in the clustering stage. SelfCheckGPT [240] proposes a black-box hallucination detection method for LLMs. The core idea is to leverage uncertainty derived from sampled outputs. To be specific, Manakul et al. [240] claim that an LLM trained on a concept generates responses that are similar and factually consistent. One of the five variants of SelfCheckGPT uses BertScore to achieve it. A DeBERTa-Large [218] is utilized to calculate the BERTScore. Factscore [244] is proposed to evaluate the factuality of LM-generated long-form content. It divides the generated long content into multiple short texts, enabling a more precise assessment of factual accuracy. In addition to manual evaluation, Min et al. [244] also proposes an automated evaluation framework to estimate Factscore which can reduce costs. LLaMa 7B [338] fine-tuned on Super-NaturalInstructions [367] is one of the LMs employed as an evaluation assistant and shows promising performance. They also employ Generalizable T5-based dense retrievers [259] to facilitate passage retrieval. + +Insights: SLMs can improve LLMs in various aspects, including enhancing the reliability of LLM generation, extracting prompts, fine-tuning, +application, and evaluation. This discussion seeks to answer when SLMs should be utilized to augment LLMs. We identify several suitable +scenarios: +• Adapting LLMs to specific tasks can require substantial computational resources and time. In such cases, a smaller model could be fine-tuned instead to serve functions such as hallucination detection. +• SLMs can outperform LLMs in certain aspects, hence combining SLMs with LLMs can create a more powerful model, e.g., SLMs typically have fewer security issues than LLMs, and integrating both can generate a model that is both powerful and secure. +• SLMs, despite their limitations, can alert LLMs to these issues, such as the tendency to produce repetitive vocabulary. Designing contrastive losses can help LLMs overcome these issues by learning from the nuanced feedback of SLMs. +• The fast inference speed and certain characteristics of SLMs can emulate and thus enhance the behavior of LLMs, acting as effective proxies. For example, the training data selection for LLMs can be guided by the difficulty metrics assessed by SLMs, and the parameter adjustments during the fine-tuning of SLMs can also approximate the fine-tuning processes of LLMs. + +Table 13. Synergy between SLMs and LLMs + +
SynergyRepresentative WorkKey Point
CoGenesis [437]Divide user instructions into general part by LLMs and private parts by SLMs.
LLMCad [394]Combine lightweight and high-precision LLMs for on-device inference.
Khattab et al. [167], Ma et al. [234]Focuse on LLM's reasoning and SLM's eficient decoding.
Cloud-Edge Synergy (Training)CROSSLM [79]Preserve client data privacy by training SLM locally and LLM remotely; mutual improvement using SLM-labeled data from LLM outputs.
Task-Centric Synergyα-UMi [307]Break down a single LLM into specialized agents.
SynCID [204]Merge LLM's semantic with SLM's speed; refine labels via contrastive learning.
Filter-then-rerank [234]SLMs process simple samples and flag complex ones for LLM reranking.
Data Shunt+ (DS+) [46]Process easy samples with SLMs and delegates hard samples to LLMs.
+ +# 7 SYNERGY BETWEEN SMALL AND LARGE LANGUAGE MODELS + +The synergy between small and large language models leverages the unique strengths of each to enhance overall system performance and efficiency. SLMs, being lightweight and resource-efficient, are ideal for deployment on edge devices, enabling rapid responses and low latency for straightforward tasks. LLMs, on the other hand, possess greater computational power and a deeper understanding of complex language patterns, allowing them to handle more intricate and nuanced tasks. By integrating SLMs and LLMs, systems can dynamically allocate tasks based on complexity, ensuring that simple queries are processed quickly on the edge while more demanding requests are escalated to the cloud. This collaborative approach optimizes resource usage, reduces operational costs, and maintains high-quality outputs across a diverse range of applications. The synergy between small and large language models can be categorized into two parts: cloud-edge synergy and task-centric synergy. Cloud-edge synergy refers to a setup where SLMs operate on edge devices, while LLMs reside on the server. When the SLM is not powerful enough, the LLM compensates by handling more complex tasks and providing additional support. Task-centric synergy refers to the scenario where SLMs and LLMs leverage their respective strengths to improve task-oriented efficiency. Table 13 summarizes representative work in each category and their key points. Next, we introduce each category in detail. + +![This image contains two diagrams illustrating synergy between Large Language Models (LLMs) and Specialized Language Models (SLMs). Diagram (a) depicts a "Specialized SLM on User Device" collaborating with a "Generic LLM on Cloud" through high-level knowledge and general instructions, enhancing privacy and performance during inference. Diagram (b) presents a client-server collaborative training framework where an LLM generates synthetic data from labels, which is then used to train a central SLM that communicates with multiple client SLMs (SLM 1, SLM 2, SLM 3), each with its own data source.](images/48df989cfaadb8fac983caaf7d5a0543997244da2d91323c876c84ed2b7ce3c2.jpg) +Fig. 28. Could-edge synergy between LLMs and SLMs. + +# 7.1 Cloud-Edge Synergy + +The current utilization of LLMs typically involves uploading private data to the cloud for response. Fine-tuning LLMs usually also requires uploading data to clouds for computing. However, this raises privacy concerns as the collection and usage of private data are constrained by personal privacy awareness and legal regulations [348]. Consequently, the cloud-edge synergy between SLMs and LLMs is proposed to alleviate this issue, i.e., SLMs handle privacy-sensitive data locally, LLMs handle de-identified or non-privacy-sensitive data, and these two models collaborate. This section discusses such cloud-edge synergy, dividing them into two categories: cloud-edge synergy during inference and cloud-edge synergy during training, as shown in Figure 28. + +Cloud-edge Synergy During Inference. CoGenesis [437] breaks down the user instruction into a general section and a personal section. The LLM generates replies solely based on general instruction, and the SLM considers both user instruction and additional personal context for its output generation. A fusion strategy blends the output of LLM and SLM synergistically. Xu et al. [397] introduces a split learning system for LLM agents in 6G networks, optimizing mobile device and cloud server collaboration. Mobile devices operate lightweight SLMs with 0–10B parameters for real-time tasks, while cloud servers handle larger LLMs with over 10B parameters for complex reasoning and planning. This setup allows efficient local task management on mobile devices and offloads heavy operations to cloud servers. The system’s architecture features three modules—perception, grounding, and alignment—facilitating effective communication to meet the sophisticated needs of 6G networks. + +Besides these frameworks, more specific models are proposed to facilitate the cloud-edge synergy. A common strategy is to use SLM’s fast decoding ability. LLM-to-SLM [28] proposes a framework in which the pre-trained frozen encoder-decoder LLM resides on the server and computes a high-quality representation of the prompt for the planning of an appropriate response. The SLM residing on the edge device, conditioned on this representation, decodes the response efficiently. Some variants put more emphasis on the reasoning ability of LLMs [167, 234, 298]. In Synergy of Thoughts [298], the SLMs generate multiple low-cost reasoning paths. If these paths conflict, the larger LLMs are invoked to provide reflective reasoning and correct any intuitive errors. Hao et al. [127] proposes a framework in which an SLM residing on the edge devices generates tokens, calling LLMs to verify and correct threshold-gated "harder" tokens, to achieve a controllable trade-off between inference quality and cost. LLMCad [394] presents an on-device inference engine addressing memory and latency issues in deploying LLMs on mobile devices. It combines a lightweight LM for token generation with a high-precision LLM for verification, leveraging a token tree structure and speculative generation for efficiency. Tested on devices such as Jetson TX2, it achieves up to $9 . 3 \times$ speedup for LLMs with over 10 billion parameters while maintaining accuracy. + +Cloud-edge Synergy During Training. CROSSLM [79] introduces a client-server collaborative training framework that preserves data privacy by having clients locally train SLMs instead of fine-tuning LLMs. The framework enables mutual enhancement through a feedback loop where SLMs evaluate LLM-generated synthetic data and provide feedback to improve the LLM’s generative capabilities, ensuring high-quality and task-specific data. Concurrently, the synthetic data trains the SLMs, boosting their performance. This cyclical exchange fosters cloud-edge synergy and mutual model improvement. + +# 7.2 Task-Centric Synergy + +The advent of LLMs has significantly propelled various natural language processing tasks and inspired research into their synergistic interactions with SLMs to enhance the performance of models tailored for specific tasks. This section introduces scenarios where small language models exhibit specialized capabilities after fine-tuning and discusses how combining their unique strengths with the versatile abilities of LLMs can yield superior performance on specific tasks. For example, LLMs excel at handling difficult examples or can rewrite content to eliminate task-irrelevant redundancy, thereby enhancing overall task performance, as illustrated in Figure 29, 30 and 31. + +$\alpha$ -UMi [307] introduces a multi-agent framework to enhance tool learning by overcoming the limitations of singleLLM approaches for complex tasks. It utilizes three specialized LMs—planner, caller, and summarizer—as depicted in Figure 29—each handling specific subtasks such as planning, tool invocation, and summarization. This modular design allows the use of small and large open-source LLMs (e.g., LLaMa-7B/12B) and supports easy tool updates. Evaluated on benchmarks like ToolBench [279] and ToolAlpaca [326], $\alpha$ -UMi outperforms traditional single-LLM methods and even exceeds GPT-4 in tool learning performance. + +![This is a simple diagram illustrating a workflow. It shows an "Instruction" input that interacts with a "Planner." The "Planner" then communicates with both a "Caller" and a "Summarizer" via bidirectional arrows. These components, in turn, interact with a collection of "Tools," represented by icons for R, Python, a pie chart with a pointer, and Java, through a circular feedback loop.](images/bc23a40ce635f273f1242537db1150953da333aa08351c4a52224d8b31af729a.jpg) +Fig. 29. Synergizing SLMs and LLMs in tool learning. + +SynCID [204] focuses on Conversational Intent Discovery (CID), a task where both known and new intents must be identified from user utterances in an open-world setting. SynCID combines LLMs’ deep semantic insights with SLMs’ agility and specialized capabilities. As illustrated in Figure 30, the framework uses LLM prompting to refine discourse and intent labels, enhancing semantic accuracy and assigning new labels to unlabeled data. SLMs are trained via contrastive learning to align + +![This diagram illustrates a process for conversational intent detection by synergizing Large Language Models (LLMs) and Semantic Learning Models (SLMs). An LLM processes unlabeled and labeled data to generate concise utterances and intent descriptors, including zero-shot labels. These descriptors are mapped to a "Descriptor Space," while the utterances are mapped to an "Utterance Space." An alignment process connects these two spaces, enabling the selection of utterances close to the center of existing and zero-shot intents. Finally, an LLM receives these selected utterances as clusters to assign a new label to a test utterance.](images/c81cb9b79eff7862cf4e886d507bc4aab412fb27e8b2d18cadc4977dc37d6307.jpg) +Fig. 30. Synergizing SLMs and LLMs in Conversational Intent Detection. + +semantic spaces of discourse and intent descriptors, reducing clustering distortion and improving new intent detection. +Tested on BANKING [43], CLINC [179], and StackOverflow [396], SynCID outperforms CID baselines significantly. + +Filter-then-rerank [234] addresses LLMs’ poor performance on simpler IE tasks by integrating LLMs and SLMs. SLMs act as filters, predicting and identifying difficult samples, while LLMs + +![This image depicts a flowchart illustrating a task-centric synergy between a Shallow Language Model (SLM) and a Large Language Model (LLM) for information extraction. The process begins with a "Test Input" that is processed by the SLM. Based on the SLM's confidence, a decision is made: if the task is deemed "Hard" (Y), it proceeds to the LLM for "Top-k reranking" and a "Prediction from LLM." If the task is not "Hard" (N), the process yields a "Prediction from SLM."](images/706a36e19b603c76d6aae7b544d112d98b1d3baf832b822766b357c5ba1f7446.jpg) +Fig. 31. Synergizing SLMs and LLMs in Information Extraction. + +rerank the top N candidate labels for these cases. As illustrated in Figure 31, SLM predictions are final for non-difficult samples, minimizing reliance on LLMs and reducing latency and costs; for those difficult samples, the top N predicted candidate labels from the SLM are passed to the LLM for reranking (predicting). Tested on small-sample IE tasks, this approach improves performance by an average of $2 . 4 \%$ compared to previous methods. Data Shunt $^ +$ $\mathbf { ( D S + ) }$ [46] introduces a framework to reduce costs by minimizing large model queries during inference and boosting LLM performance with SLMs for tasks like sentiment analysis and image processing. ${ \mathrm { D S } } +$ uses SLMs for “easy” samples within the main training distribution and LLMs for "hard" outliers or boundary cases, maintaining accuracy while reducing LLM use. It incorporates S4L and L4S modules with Prompt Pruning (PP) and 2-stage Confidence Distillation (2CD) for better input processing and knowledge transfer. Tests show ${ \mathrm { D S } } +$ outperforms fine-tuning in accuracy and cost efficiency, significantly cutting down on LLM queries. + +![This image is of **moderate complexity**. + +The image presents a taxonomy of trustworthy AI scenarios, categorized into four main areas: Robustness, Safety, Reliability, and Privacy/Fairness. Robustness is further divided into "Adversarial Robustness" and "Out-of-Distribution Robustness," each represented by a stylized icon (a flexing arm). Safety includes "Toxicity" and "Misinformation," with a warning triangle icon. Reliability encompasses "Hallucination" and "Sycophancy," depicted with clapping hands. Privacy is shown with a camera surveillance icon, and Fairness is illustrated by a balance scale. These categories and sub-categories are presented in distinct boxes, visually organizing the different aspects of trustworthy AI discussed in the section.](images/bd7e4807f7a9d6400352932e88e02d9e09460a88ebef1ff96ca0ce0b08089699.jpg) +Fig. 32. Scenarios we discuss in this section. The taxonomy is inspired by previous works [320, 351]. Please note that the trustworthy scenarios listed here are not exhaustive. + +# 8 TRUSTWORTHINESS IN SMALL LANGUAGE MODELS + +Language models have become ubiquitous in our daily lives, and we increasingly rely on them. However, they pose risks regarding their limitations in trustworthy dimensions like privacy and fairness. These concerns are especially critical in high-stakes domains such as healthcare [130] and finance [202]. Consequently, numerous studies have emerged to evaluate the trustworthiness of LMs [88, 95, 138, 176, 176, 248, 254, 273, 351, 370, 425]. In this section, we consider the works that benchmark various LMs’ trustworthiness and omit the specific attack methods [41, 53, 150, 461] or work [407] that only focuses on early pre-trained LMs like BERT [83] as they are already covered in previous survey papers [78, 115, 123, 288]. Inspired by previous works [320, 351], we discuss the following five key trustworthy scenarios: robustness, privacy, reliability, safety, and fairness, as shown in Figure 32. We consider two dimensions for robustness: Adversarial (Adv) Robustness [352] and Out-of-Distribution (OOD) Robustness [38, 213]. For safety, we explore two key concerns: Misinformation [344] and Toxicity [374]. For reliability, we focus on Hallucination [146] and Sycophancy [301]. Please note that these are just the aspects we are focusing on, and therefore this is not a comprehensive classification or taxonomy. For example, robustness also contains robustness to adversarial demonstration. + +Though there are a lot of works benchmarking LMs’ trustworthiness, their main focus is on LLMs. Therefore, we survey some representative works evaluating the trustworthiness of LMs, focusing specifically on those that include SLMs of around 7B parameters or smaller. We also summarize these works in Table 14. Next, we briefly introduce them. + +Holistic Evaluation of Language Models (HELM) [205] benchmarks a large number of LMs from various aspects, including a lot of metrics related to trustworthiness such as robustness and fairness. Do-Not-Answer [364] introduces a dataset to evaluate how LMs act when they face content that should not be answered. Wang et al. [364] also label the output of several LMs output on their dataset and then use the labeled data to train some classifiers. PromptRobust [456] constructs two kinds of adversarial prompts to evaluate LMs’ robustness: One kind is designed under non-adversarial settings with semantic integrity while another category is created under adversarial settings. Their results show that LMs perform poorly under such prompts. HaluEval [191] builds a dataset comprising both the samples generated by their proposed framework and human-labeled hallucinations. It facilitates analysis of when LMs produce hallucinated output and how well they detect hallucinated content. Then they use some strategies such as knowledge retrieval to help LMs better recognize hallucinations. Mo et al. [248] evaluates the trustworthiness of open-source LMs, presenting a variety of scenarios such as fairness and privacy. Results show that smaller LMs sometimes outperform larger ones in terms of trustworthiness. PrivLM-Bench [190] is designed to evaluate the privacy issues in LMs. It enables a fair comparison of privacy-preserving LMs by considering more than just differential privacy parameters. FFT [71] introduces around two thousand crafted examples to evaluate LMs’ performances on three trustworthy dimensions: factuality, fairness, and toxicity. Their results suggest that larger LMs do not always show better harmlessness. ROBBIE [98] first benchmarks various series of LMs using a lot of datasets, including two newly introduced datasets developed by ROBBIE. It also Manuscript submitted to ACM + +Table 14. Comparison of Different Works that Evaluate the Trustworthiness Issues in LMs. Please note that for the "No. of LMs" attribute, compressed or pruned LMs are not included in the count. + +
Aoueqdooks
Paper HELM [205]×√√×××√×
Do-Not-Answer [364]××√√××√√×
PromptRobust [456]√××××××××
HaluEval [191]××××√××××
Mo et al. [248]√×√×√√√√×
PrivLM-Bench [190]××××××√××
FFT [71]××√√√××√×
ROBBIE [98]××√××××√×
TrustLLM [320]√√√√√√√√×
RAmBLA [35]√×××√××××
JailbreakBench [45]××√√××√××
Xie et al. [390]××√×√××××
OR-Bench [70]××√√××√××
SORRY-Bench [387]××√√××√××
BeHonest [59]×××√√√×××
Hong et al. [138]√√√×××√√√
RUPBench [370]√××××××××
Nakka et al. [254]××√×××√√×
+ +evaluates mitigation techniques designed to reduce bias and toxicity. TrustLLM [320] is a comprehensive benchmark that contains a large number of datasets and various well-designed metrics to systematically evaluate various LMs across multiple trustworthy dimensions, including truthfulness, safety, fairness, robustness, privacy, and machine ethics. They also carefully design specific subcategories for each dimension. RAmBLA [35] evaluates the trustworthiness of four LMs as biomedical assistants from three dimensions: Robustness, High Recall, and Hallucination. RAmBLA suggests LMs with more parameters are less likely to cause hallucinations and may choose to reject providing an answer in uncertain situations. JailbreakBench [45] constructs a jailbreaking dataset named JBB-Behaviors and jailbreak artifacts to evaluate current LMs’ performance regarding jailbreaking. It also proposes a unified evaluation pipeline that can incorporate new jailbreak defense techniques. Xie et al. [390] tests online safety analysis methods, filling the gap where no methods focus on the generation phase. OR-Bench [70] constructs three datasets: OR-Bench-80K, OR-Bench-Hard-1K, and OR-Bench-Toxic, to systematically evaluate over-refusal problems in LMs, emphasizing the challenge of balancing safety alignment with the models’ usefulness. SORRY-Bench [387] systematically tests 43 different LMs to see how they perform when facing requests that should be refused. They also collect more than annotations created by humans and find that fine-tuned 7B LMs can achieve performance comparable to GPT-4 scale LMs as evaluators. BeHonest [59] evaluates the honesty of LMs from three aspects: Self-Knowledge, Non-Deceptiveness, and Consistency. They use many different metrics for each aspect. For example, sycophancy rate and lying rate are adopted in Non-Deceptiveness. The results in both the Self-Knowledge and Consistency parts reveal that larger model sizes generally bring improved performance for the Llama-2 [339] and Llama-3 [94] series. Hong et al. [138] examines the effects of compression Manuscript submitted to ACM + +methods, including quantization and pruning, on the trustworthiness of language models. They find that pruning and extreme quantization significantly affect the trustworthiness of LMs. RUPBench [370] comprises 15 reasoning datasets designed to assess the performance of LMs both in normal conditions and under various adversarial perturbations. Their results indicate that larger LMs generally demonstrate better resilience to perturbations. Nakka et al. [254] investigates the trust and ethical implications of SLMs deployed on personal devices. It reveals the vulnerabilities of on-device SLMs compared with their on-server counterparts. + +Please note that the dimensions discussed in this section reflect only those relevant to our current focus; additional dimensions may be discussed in those works, but not listed in table 14. For example, TrustLLM [320] also explores Machine Ethics. + +# 9 FUTURE DIRECTIONS + +In this section, we offer insights into several promising future research directions that could inspire and motivate the community to address existing gaps in the development of small language models. + +# 9.1 Developing Efficient SLM Model Architecture + +Although Transformers [346] are foundational in most language models, they face significant computational and memory challenges that worsen with model size, impacting training and autoregressive decoding. Recently, Mamba [117] has emerged as a promising alternative, adapting state space models to dynamically select inputs based on demands, thereby enhancing efficiency. Thereafter, xLSTM [25] demonstrates that an improved LSTM could function as an LLM, revealing the potential of traditional SSMs. The integration of global static information captured by SSMs with the dynamic information processing of Transformers could complement each other, leading to new architectures that balance effectiveness and efficiency. + +# 9.2 Addressing SLM Training Inefficiencies + +One study [85] explores the disparate learning dynamics between small and large language models. Utilizing the Pythia model suite, the research demonstrates that layers’ activations in larger models converge more rapidly and monotonically to their final states. This phenomenon is associated with a higher proportional effective rank (PER) in the parameters and gradients of larger models. The analysis enhances our understanding of training inefficiencies in small models and provides insights for future efforts, such as developing methods to increase the PER of layers’ parameters. + +# 9.3 Expanding Domain-Specific SLMs + +Domain-specific SLMs, which are tailored for specific fields, can provide a stronger foundation for relevant downstream tasks than general-purpose models. Currently, these models primarily focus on scientific and healthcare domains. However, there is significant potential for expansion into other key areas such as law, finance, education, telecommunications, and transportation. The scarcity of SLMs that cater to these domains presents an urgent call for research into developing more specialized models. + +# 9.4 Establishing Benchmarking and Leaderboard Platforms for SLMs + +Several compelling reasons justify the establishment of benchmarking and leaderboard platforms for SLMs. Firstly, most state-of-the-art SLMs are trained on proprietary datasets, which may include test sets from existing evaluation tasks, presenting challenges for fair capability comparisons. Secondly, many SLMs are designed for specific device applications, significantly differing from general open-domain tasks. Thus, there is a lack of comprehensive benchmarks that accurately reflect SLM performance in specific device applications. For example, SLMs deployed on smartphones often handle tasks sensitive to user data, such as auto-replies based on historical chat texts or GUI context understanding—tasks not typically included in current benchmarks, potentially leading to an underestimation of their importance. Finally, current evaluation tasks focus primarily on metrics like accuracy. Evaluating on-device SLMs involves balancing multiple factors, including overall capabilities, response times, storage and memory usage, power consumption, CPU utilization, additional fine-tuning requirements, and context window constraints, making comprehensive and detailed assessments essential. + +# 9.5 Enhancing SLM Performance and Efficiency + +In terms of enhancing SLM performance and efficiency, the efficiency of using teacher LLMs via instruction tuning can be further developed, such as Efficient Instruction Tuning of SLMs from LLMs-generated data, Optimizing Teacher LLM Selection for SLM Learning, and Applying Emerging Techniques from LLMs to SLMs. + +• Efficient Instruction Tuning of SLMs from LLMs-generated data. Enhancing the specialization of SLMs through instruction tuning from LLMs-generated data is crucial, yet finding the most cost-effective instructional strategies remains an underexplored status. Some key areas for exploration are: (1) Instruction Design Adaptability: The performance of LLMs and SLMs varies significantly with changes in instructions. Therefore, designing tailored instructions that effectively activate relevant sub-competencies and reasoning pathways in SLMs for specific tasks is crucial. This approach would optimize their ability to utilize instructional data, representing a significant future research direction. (2) SLM Capability Adaptability: Given that SLMs exhibit diverse capabilities across domains, simply supplying extensive data samples for instruction tuning is often inefficient, as SLMs may spend excessive time processing unnecessary data. To optimize efficiency when adapting to specific domains, we suggest first assessing the intrinsic capabilities of an SLM within those domains. Subsequently, one could select appropriate data and activate essential fine-grained capabilities to effectively adapt to domain shifts. This targeted approach ensures efficient and domainspecific instruction tuning. (3) Optimizing Data Efficiency: SLMs may possess missing or latent domain knowledge, and activating this latent knowledge may not require substantial data. Thus, identifying inherent knowledge within SLMs and determining the minimal data necessary for effective fine-tuning is a future direction. This research aims to optimize performance while minimizing training resources. +• Optimizing Teacher LLM Selection for SLM Learning. Teacher LLMs with different abilities and knowledge facilitate diverse applications for SLM training, including data rewriting and generation. Selecting the appropriate teacher model based on specific use cases is crucial. This process requires evaluating the teacher’s capabilities and knowledge to ensure optimal application. For example, GPT-4 excels in generating domain-specific data, outperforming ChatGPT, which may produce inferior outcomes. Strategic selection of teacher LLMs is essential for future work to ensure their strengths are effectively utilized to enhance SLM performance. +• Applying Emerging Techniques from LLMs to SLMs. To improve LLM performance, techniques such as RetrievalAugmented Generation (RAG) and Mixture of Experts (MoE) are employed. The adoption of RAG in SLMs shows significant promise [215], suggesting benefits from further tailoring retrieved information for SLMs. Future research should account for SLMs’ constraints, such as limited context windows, and customize RAG accordingly. MoE uses + +multiple experts to enhance learning without increasing active neurons, but its storage demands pose challenges for SLM deployment, making this a promising area for exploration. Additionally, the application of LLM techniques such as in-context learning and prompting engineering to maximize SLM performance, while accounting for SLMs’ constraints, warrants further investigation. + +# 9.6 Applications of SLMs + +In real-world applications, SLMs often need to provide personalized services and need to be updated periodically to reflect new needs and new knowledge. Hence, there are several promising directions in terms of the real-world application of SLMs, which are listed as follows: + +• LoRA for Personalized Services. Companies often provide personalized services, but user-specific complexities can render simple rules ineffective. Training a separate SLM for each user is impractical. LoRA suggests a method of separable training weights alongside fixed original weights, enabling scalable customization. For instance, RecLoRA [455] integrates personalized knowledge into SLMs/LLMs tailored for recommendation tasks by maintaining a set of parallel, independent LoRA weights. This approach effectively customizes language model parameters to align with individual user preferences. This approach is a promising direction that inspires further investigation. • Lifelong On-device Learning for Knowledge Injection. SLMs on devices can access local data without risking data privacy through two main methods. The first method uses retrieval-augmented generation to integrate local data into prompts, requiring SLMs with advanced processing and reasoning capabilities. The second method fine-tunes SLMs with local data, integrating customized knowledge into the model’s weights. However, this approach demands significant device resources, including memory and energy. A promising solution is lifelong learning, where SLMs continuously learn and adapt while in use. • Strategic Use of SLMs and LLMs in Multi-Agent Systems. LLMs can function as agents; however, their extensive capabilities are often underutilized in many scenarios, leading to resource wastage. Consequently, strategically routing to appropriately capable SLMs and LLMs within multi-agent systems can optimize cost and functionality. + +# 9.7 Multimodal SLMs + +Research on small language models also includes multimodal data. For example, SmolVLM [99] is a compact model that handles image and text inputs to produce text outputs, suitable for on-device use and various multimodal tasks. SOLO [54] integrates vision and language processing in a single 7B Transformer model. The limited scope of existing research on multimodal SLMs provides a compelling impetus for researchers to investigate the integration of various modalities, including audio and graphs. + +# 9.8 SLMs Assisting LLMs + +In Section 6, we introduced existing works on the use of SLMs to assist LLMs. For instance, EFT [246] emulates fine-tuning on LLMs by leveraging behavior deltas between SLMs’ pre-trained and fine-tuned weights to alleviate the time-cost issues associated with fine-tuning LLMs; SlimPLM [325] detects missing knowledge in LLMs using a slim proxy SLM to accelerate knowledge injection; Contrastive Decoding [198] enhances text quality by maximizing the difference between the log probabilities of an expert LLM and an amateur SLM to mitigate issues of low-quality generation. The research on adopting SLMs to assist LLMs is still in its early stages, with many promising directions yet to be explored. We list some as follows: + +• Enhancing LLM Performance Across Broader Tasks Through SLM Integration. SLMs can outperform LLMs in certain scenarios. For example, SLMs often present fewer security vulnerabilities compared to their larger counterparts and demonstrate superior performance on easier samples in specific tasks [197, 234]. Therefore, integrating SLMs with LLMs can promote the development of models that are not only more robust but also inherently safer. Currently, research in this domain is relatively sparse, suggesting that this collaborative framework could potentially be applied to a wider array of tasks. + +• Efficient Enhancement of LLMs through Proxy SLMs. Existing research [18, 212, 246, 325] indicates that SLMs, owing to their accelerated fine-tuning and inference speeds, can effectively mimic the behaviors of LLMs, thereby serving as efficient proxies for optimization. However, the application of SLMs as operational proxies for LLMs is currently underexplored. This mimicry could potentially be expanded to include various aspects of LLM functionality, such as the optimization of prompts, the filtration and integration of supplementary knowledge, and the management of additional knowledge repositories. + +• SLMs Assist in Managing Data Quality. LLMs tend to produce hallucinations and toxic content due to low-quality real-world training data. One solution is to remove these low-quality data [355]. However, directly eliminating low-quality content can diminish certain functionalities of LLMs, such as versatility [356]. Therefore, it is crucial to define more refined data quality assessment criteria across dimensions such as factuality, safety, and diversity [377] for real-world data. Researching efficient data selection methods using small models represents a valuable research direction. Additionally, while synthetic data serves as a vital complement to scarce human-generated data [224], the potential for small models to effectively manage synthetic data remains largely unexplored. + +• SLMs Assist in LLM Assessment. LLMs are producing vast amounts of increasingly complex texts, such as specialized code and scientific papers, presenting challenges not only for human evaluators but also for traditional assessment metrics. Consequently, developing effective evaluators to assess various aspects of generated content, including factuality, safety, and uncertainty, becomes crucial. Given their proficiency in handling specific tasks, exploring the potential of SLMs to evaluate LLM outputs is a promising research direction. + +• SLMs Optimize Query and Reduce Noise for LLM RAG. For Retrieval-Augmented Generation (RAG) using LLMs, differing query requirements between LLMs and search engines pose a challenge. The query for LLMs is often abstract and difficult for search engines to handle, so they require more detailed query keywords. Moreover, LLMs may not need all the information related to a query because they only require partial additional knowledge. Thus, intermediate agents are crucial to adapting LLM queries for search engines by clarifying the required detailed keywords that can search for necessary extra knowledge. Additionally, search engine outputs contain noises, requiring refinement to boost LLM efficiency. SLMs, skilled in a single task, are ideal for optimizing query rewriting and noise reduction in RAG systems, making their application in LLM RAG a promising research area. + +• SLMs safeguard LLM. Resources such as the Llama 2 Responsible Use Guide strongly advocate for the implementation of robust guardrails in products that utilize Generative AI. SLMs can be strategically designed to serve as such guardrails, mitigating risks associated with both inputs and outputs from the model. This approach ensures safeguards against the generation of high-risk or policy-violating content and provides protection against adversarial inputs and attempts to compromise the model. Future research can investigate the various safety roles that SLMs play in protecting LLMs. + +# 9.9 Synergy between Small and Large Language Models + +In Section 7, we discussed how small and large language models can complement each other. For example, CoGenesis [437] integrates SLMs for private data and LLMs for broader context, while Synergy of Thoughts [298] uses SLMs for initial reasoning and LLMs for conflict resolution. CROSSLM [79] shows how privacy can be preserved by training SLMs locally to support LLMs without data exposure. Research in this area is still evolving, and we outline several promising future directions below: + +• Refined Cloud-Edge Division of Labor. Current research mainly focuses on splitting tasks between edge-based SLMs and cloud-based LLMs along privacy-sensitive and non-sensitive data boundaries. A potential future direction involves more granular task partitioning: determining which subtasks should be handled locally by SLMs (e.g., initial data filtering, quick semantic parsing) and which should be delegated to the cloud-based LLM (e.g., advanced reasoning, complex generation). This approach can further optimize latency, privacy, and resource utilization. • Adaptive On-Device Specialization for Dynamic Environments. Although SLMs have shown the ability to handle private or personalized data locally, continuous changes in user preferences, application requirements, and data distributions pose challenges. Future work can explore adaptive strategies where edge-based SLMs dynamically specialize or update their parameters, guided by the cloud-based LLM. For instance, the LLM can periodically distill new knowledge into the SLM or provide feedback signals to help the SLM adapt to evolving scenarios. + +# 9.10 Trustworthy SLMs + +As SLMs are playing crucial roles in various aspects, understanding and improving the trustworthiness of SLMs are essential. Hence, two promising directions are: + +• A Comprehensive Evaluation of SLMs’ Trustworthiness. While numerous studies address trustworthiness issues in LLMs, research on SLMs remains sparse. Most existing literature focuses on models with at least 7 billion parameters, leaving a gap in the comprehensive analysis of SLMs’ trustworthiness. Current evaluations typically cover only a fraction of the necessary aspects. Therefore, a systematic assessment, such as TrustLLM [320], is essential to thoroughly evaluate the trustworthiness of SLMs and understand their reliability across various applications. • Developing Trustworthy SLMs. Developing trustworthy SLMs is crucial, with three key research directions: (i) Training SLMs to be trustworthy from scratch; (ii) Ensuring SLMs retain or gain trustworthiness when compressed from LLMs—maintaining trustworthiness if the LLM is trustworthy and instilling trustworthiness if it is not; (iii) Fine-tuning non-trustworthy SLMs to enhance their robustness. + +# 10 CONCLUSION + +This paper provides a comprehensive survey of Small Language Models (SLMs) with up to 7 billion parameters. Initially, we address the need to clearly define SLMs due to existing ambiguities in their characterization. We then present the foundational concepts essential for constructing SLMs. The survey progresses to explore enhancement techniques, including knowledge distillation and quantization, as well as strategies for adapting Large Language Models (LLMs) to SLM contexts. We survey representative SLMs, both general-domain and domain-specific, discussing their preferred datasets and architectural decisions. We also assess their applications across various tasks and deployment strategies on devices. Further, we investigate their role in augmenting the capabilities of LLMs, serving as proxies for fine-tuning and facilitating two types of synergies: cloud-local and task-centric. Additionally, we discuss the critical aspect of their trustworthiness. The paper concludes with key insights aimed at guiding future research on small language models. + +# REFERENCES + +[1] Marah Abdin, Sam Ade Jacobs, Ammar Ahmad Awan, Jyoti Aneja, Ahmed Awadallah, Hany Awadalla, Nguyen Bach, Amit Bahree, Arash Bakhtiari, Harkirat Behl, et al. 2024. Phi-3 technical report: A highly capable language model locally on your phone. arXiv preprint arXiv:2404.14219 (2024). [2] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774 (2023). +[3] Emre Can Acikgoz, Osman Batur İnce, Rayene Bench, Arda Anıl Boz, İlker Kesen, Aykut Erdem, and Erkut Erdem. 2024. Hippocrates: An Open-Source Framework for Advancing Large Language Models in Healthcare. arXiv preprint arXiv:2404.16621 (2024). +[4] Harshavardhan Adepu, Zhanpeng Zeng, Li Zhang, and Vikas Singh. 2024. FrameQuant: Flexible Low-Bit Quantization for Transformers. arXiv preprint arXiv:2403.06082 (2024). +[5] Abien Fred Agarap. 2018. Deep Learning using Rectified Linear Units (ReLU). CoRR abs/1803.08375 (2018). arXiv:1803.08375 http://arxiv.org/abs/ 1803.08375 +[6] Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. 2024. On-policy distillation of language models: Learning from self-generated mistakes. In The Twelfth International Conference on Learning Representations. +[7] Meta AI. 2024. Llama 3.2: Revolutionizing edge AI and vision with open, customizable models. https://ai.meta.com/blog/llama-3-2-connect-2024- vision-edge-mobile-devices/ Accessed: 2024-9-25. +[8] Joshua Ainslie, James Lee-Thorp, Michiel de Jong, Yury Zemlyanskiy, Federico Lebrón, and Sumit Sanghai. 2023. GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints. arXiv:2305.13245 [cs.CL] https://arxiv.org/abs/2305.13245 +[9] Loubna Ben Allal, Anton Lozhkov, Elie Bakouch, Leandro von Werra, and Thomas Wolf. 2024. SmolLM - blazingly fast and remarkably powerful. +[10] Ebtesam Almazrouei, Hamza Alobeidli, Abdulaziz Alshamsi, Alessandro Cappelli, Ruxandra Cojocaru, Mérouane Debbah, Étienne Goffinet, Daniel Hesslow, Julien Launay, Quentin Malartic, et al. 2023. The falcon series of open language models. arXiv preprint arXiv:2311.16867 (2023). +[11] Guilherme FCF Almeida, José Luiz Nunes, Neele Engelmann, Alex Wiegmann, and Marcelo de Araújo. 2024. Exploring the psychology of LLMs’ moral and legal reasoning. Artificial Intelligence 333 (2024), 104145. +[12] Reza Yazdani Aminabadi, Samyam Rajbhandari, Ammar Ahmad Awan, Cheng Li, Du Li, Elton Zheng, Olatunji Ruwase, Shaden Smith, Minjia Zhang, Jeff Rasley, et al. 2022. Deepspeed-inference: enabling efficient inference of transformer models at unprecedented scale. In SC22: International Conference for High Performance Computing, Networking, Storage and Analysis. IEEE, 1–15. +[13] Yongqi An, Xu Zhao, Tao Yu, Ming Tang, and Jinqiao Wang. 2024. Fluctuation-based adaptive structured pruning for large language models. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38. 10865–10873. +[14] Rohan Anil, Andrew M Dai, Orhan Firat, Melvin Johnson, Dmitry Lepikhin, Alexandre Passos, Siamak Shakeri, Emanuel Taropa, Paige Bailey, Zhifeng Chen, et al. 2023. Palm 2 technical report. arXiv preprint arXiv:2305.10403 (2023). +[15] AI Anthropic. 2024. The claude 3 model family: Opus, sonnet, haiku. Claude-3 Model Card 1 (2024). +[16] David Anugraha, Genta Indra Winata, Chenyue Li, Patrick Amadeus Irawan, and En-Shiun Annie Lee. 2024. ProxyLM: Predicting Language Model Performance on Multilingual Tasks via Proxy Models. arXiv preprint arXiv:2406.09334 (2024). +[17] Viraat Aryabumi, Yixuan Su, Raymond Ma, Adrien Morisot, Ivan Zhang, Acyr Locatelli, Marzieh Fadaee, Ahmet Üstün, and Sara Hooker. 2024. To Code, or Not To Code? Exploring Impact of Code in Pre-training. arXiv preprint arXiv:2408.10914 (2024). +[18] Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi. 2024. Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=hSyW5go0v8 +[19] Saleh Ashkboos, Maximilian L. Croci, Marcelo Gennari do Nascimento, Torsten Hoefler, and James Hensman. 2024. SliceGPT: Compress Large Language Models by Deleting Rows and Columns. In The Twelfth International Conference on Learning Representations. https://openreview.net/ forum?id=vXxardq6db +[20] Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. 2021. Program synthesis with large language models. arXiv preprint arXiv:2108.07732 (2021). +[21] Amos Azaria and Tom Mitchell. 2023. The Internal State of an LLM Knows When It’s Lying. In Findings of the Association for Computational Linguistics: EMNLP 2023. 967–976. +[22] Zhangir Azerbayev, Hailey Schoelkopf, Keiran Paster, Marco Dos Santos, Stephen McAleer, Albert Q Jiang, Jia Deng, Stella Biderman, and Sean Welleck. 2023. Llemma: An open language model for mathematics. arXiv preprint arXiv:2310.10631 (2023). +[23] Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, Binyuan Hui, Luo Ji, Mei Li, Junyang Lin, Runji Lin, Dayiheng Liu, Gao Liu, Chengqiang Lu, Keming Lu, Jianxin Ma, Rui Men, Xingzhang Ren, Xuancheng Ren, Chuanqi Tan, Sinan Tan, Jianhong Tu, Peng Wang, Shijie Wang, Wei Wang, Shengguang Wu, Benfeng Xu, Jin Xu, An Yang, Hao Yang, Jian Yang, Shusheng Yang, Yang Yao, Bowen Yu, Hongyi Yuan, Zheng Yuan, Jianwei Zhang, Xingxuan Zhang, Yichang Zhang, Zhenru Zhang, Chang Zhou, Jingren Zhou, Xiaohuan Zhou, and Tianhang Zhu. 2023. Qwen Technical Report. arXiv:2309.16609 [cs.CL] https://arxiv.org/abs/2309.16609 +[24] Jason Baumgartner, Savvas Zannettou, Brian Keegan, Megan Squire, and Jeremy Blackburn. 2020. The pushshift reddit dataset. In Proceedings of the international AAAI conference on web and social media, Vol. 14. 830–839. +[25] Maximilian Beck, Korbinian Pöppel, Markus Spanring, Andreas Auer, Oleksandra Prudnikova, Michael K Kopp, Günter Klambauer, Johannes Brandstetter, and Sepp Hochreiter. 2024. xLSTM: Extended Long Short-Term Memory. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=ARAxPPIAhq +[26] Marco Bellagente, Jonathan Tow, Dakota Mahan, Duy Phung, Maksym Zhuravinskyi, Reshinth Adithyan, James Baicoianu, Ben Brooks, Nathan Cooper, Ashish Datta, et al. 2024. Stable lm 2 1.6 b technical report. arXiv preprint arXiv:2402.17834 (2024). +[27] Loubna Ben Allal, Anton Lozhkov, Guilherme Penedo, Thomas Wolf, and Leandro von Werra. 2024. SmolLM-Corpus. https://huggingface.co/ datasets/HuggingFaceTB/smollm-corpus +[28] Benjamin Bergner, Andrii Skliar, Amelie Royer, Tijmen Blankevoort, Yuki Asano, and Babak Ehteshami Bejnordi. 2024. Think Big, Generate Quick: LLM-to-SLM for Fast Autoregressive Decoding. arXiv preprint arXiv:2402.16844 (2024). +[29] Milan Bhan, Jean-Noel Vittaut, Nicolas Chesneau, and Marie-Jeanne Lesot. 2024. Self-AMPLIFY: Improving Small Language Models with Self Post Hoc Explanations. arXiv preprint arXiv:2402.12038 (2024). +[30] Zhen Bi, Ningyu Zhang, Yida Xue, Yixin Ou, Daxiong Ji, Guozhou Zheng, and Huajun Chen. 2023. Oceangpt: A large language model for ocean science tasks. arXiv preprint arXiv:2310.02031 (2023). +[31] Stella Biderman, Hailey Schoelkopf, Quentin Anthony, Herbie Bradley, Kyle O’Brien, Eric Hallahan, Mohammad Aflah Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, Aviya Skowron, Lintang Sutawika, and Oskar van der Wal. 2023. Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling. arXiv:2304.01373 [cs.CL] https://arxiv.org/abs/2304.01373 +[32] Yonatan Bisk, Rowan Zellers, Jianfeng Gao, Yejin Choi, et al. 2020. Piqa: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, Vol. 34. 7432–7439. +[33] Sid Black, Leo Gao, Phil Wang, Connor Leahy, and Stella Biderman. 2021. GPT-Neo: Large Scale Autoregressive Language Modeling with MeshTensorflow. https://doi.org/10.5281/zenodo.5297715 If you use this software, please cite it using these metadata.. +[34] Elliot Bolton, Abhinav Venigalla, Michihiro Yasunaga, David Hall, Betty Xiong, Tony Lee, Roxana Daneshjou, Jonathan Frankle, Percy Liang, Michael Carbin, et al. 2024. Biomedlm: A 2.7 b parameter language model trained on biomedical text. arXiv preprint arXiv:2403.18421 (2024). +[35] William James Bolton, Rafael Poyiadzi, Edward R Morrell, Gabriela van Bergen Gonzalez Bueno, and Lea Goetz. 2024. RAmBLA: A Framework for Evaluating the Reliability of LLMs as Assistants in the Biomedical Domain. arXiv preprint arXiv:2403.14578 (2024). +[36] Luiz Bonifacio, Hugo Abonizio, Marzieh Fadaee, and Rodrigo Nogueira. 2022. Inpars: Data augmentation for information retrieval using large language models. arXiv preprint arXiv:2202.05144 (2022). +[37] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language Models are Few-Shot Learners. In Advances in Neural Information Processing Systems, H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (Eds.), Vol. 33. Curran Associates, Inc., 1877–1901. https://proceedings.neurips.cc/paper_files/paper/2020/file/1457c0d6bfcb4967418bfb8ac142f64a-Paper.pdf +[38] Saikiran Bulusu, Bhavya Kailkhura, Bo Li, Pramod K Varshney, and Dawn Song. 2020. Anomalous example detection in deep learning: A survey. IEEE Access 8 (2020), 132330–132347. +[39] Weilin Cai, Juyong Jiang, Fan Wang, Jing Tang, Sunghun Kim, and Jiayi Huang. 2024. A survey on mixture of experts. Authorea Preprints (2024). +[40] Zheng Cai, Maosong Cao, Haojiong Chen, Kai Chen, Keyu Chen, Xin Chen, Xun Chen, Zehui Chen, Zhi Chen, Pei Chu, et al. 2024. Internlm2 technical report. arXiv preprint arXiv:2403.17297 (2024). +[41] Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, et al. 2021. Extracting training data from large language models. In 30th USENIX Security Symposium (USENIX Security 21). 2633–2650. +[42] Samuel Carreira, Tomás Marques, José Ribeiro, and Carlos Grilo. 2023. Revolutionizing Mobile Interaction: Enabling a 3 Billion Parameter GPT LLM on Mobile. arXiv:2310.01434 [cs.CL] https://arxiv.org/abs/2310.01434 +[43] Iñigo Casanueva, Tadas Temčinas, Daniela Gerz, Matthew Henderson, and Ivan Vulić. 2020. Efficient Intent Detection with Dual Sentence Encoders. In Proceedings of the 2nd Workshop on Natural Language Processing for Conversational AI. Association for Computational Linguistics, Online, 38–45. +[44] Wei-Cheng Chang, X Yu Felix, Yin-Wen Chang, Yiming Yang, and Sanjiv Kumar. [n. d.]. Pre-training Tasks for Embedding-based Large-scale Retrieval. In International Conference on Learning Representations. +[45] Patrick Chao, Edoardo Debenedetti, Alexander Robey, Maksym Andriushchenko, Francesco Croce, Vikash Sehwag, Edgar Dobriban, Nicolas Flammarion, George J Pappas, Florian Tramer, et al. 2024. Jailbreakbench: An open robustness benchmark for jailbreaking large language models. arXiv preprint arXiv:2404.01318 (2024). +[46] Dong Chen, Shuo Zhang, Yueting Zhuang, Siliang Tang, Qidong Liu, Hua Wang, and Mingliang Xu. 2024. Improving Large Models with Small models: Lower Costs and Better Performance. arXiv preprint arXiv:2406.15471 (2024). +[47] Dong Chen, Yueting Zhuang, Shuo Zhang, Jinfeng Liu, Su Dong, and Siliang Tang. 2024. Data Shunt: Collaboration of Small and Large Models for Lower Costs and Better Performance. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38. 11249–11257. +[48] Hongzhan Chen, Siyue Wu, Xiaojun Quan, Rui Wang, Ming Yan, and Ji Zhang. 2023. MCC-KD: Multi-CoT Consistent Knowledge Distillation. In Findings of the Association for Computational Linguistics: EMNLP 2023. 6805–6820. +[49] Lihu Chen and Gaël Varoquaux. 2024. What is the role of small models in the llm era: A survey. arXiv preprint arXiv:2409.06857 (2024). +[50] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde De Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. 2021. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374 (2021). +[51] Tianyi Chen, Tianyu Ding, Badal Yadav, Ilya Zharkov, and Luming Liang. 2023. Lorashear: Efficient large language model structured pruning and knowledge recovery. arXiv preprint arXiv:2310.18356 (2023). +[52] Wei Chen, Zhiyuan Li, and Mingyuan Ma. 2024. Octopus: On-device language model for function calling of software APIs. arXiv:2404.01549 [cs.CL] https://arxiv.org/abs/2404.01549 +[53] Yangyi Chen, Fanchao Qi, Hongcheng Gao, Zhiyuan Liu, and Maosong Sun. 2022. Textual Backdoor Attacks Can Be More Harmful via Two Simple Tricks. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, EMNLP. 11215–11221. +[54] Yangyi Chen, Xingyao Wang, Hao Peng, and Heng Ji. 2024. A Single Transformer for Scalable Vision-Language Modeling. Transactions on Machine Learning Research (2024). https://openreview.net/forum?id=nuzFG0Rbhy +[55] Zeming Chen, Alejandro Hernández Cano, Angelika Romanou, Antoine Bonnet, Kyle Matoba, Francesco Salvi, Matteo Pagliardini, Simin Fan, Andreas Köpf, Amirkeivan Mohtashami, et al. 2023. MEDITRON-70B: Scaling Medical Pretraining for Large Language Models. arXiv preprint arXiv:2311.16079 (2023). +[56] Zhiyu Chen, Wenhu Chen, Charese Smiley, Sameena Shah, Iana Borova, Dylan Langdon, Reema Moussa, Matt Beane, Ting-Hao Huang, Bryan R Routledge, et al. 2021. FinQA: A Dataset of Numerical Reasoning over Financial Data. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. 3697–3711. +[57] Zhiyu Chen, Shiyang Li, Charese Smiley, Zhiqiang Ma, Sameena Shah, and William Yang Wang. 2022. ConvFinQA: Exploring the Chain of Numerical Reasoning in Conversational Finance Question Answering. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing. 6279–6292. +[58] Xiaoxue Cheng, Junyi Li, Wayne Xin Zhao, Hongzhi Zhang, Fuzheng Zhang, Di Zhang, Kun Gai, and Ji-Rong Wen. 2024. Small Agent Can Also Rock! Empowering Small Language Models as Hallucination Detector. arXiv preprint arXiv:2406.11277 (2024). +[59] Steffi Chern, Zhulin Hu, Yuqing Yang, Ethan Chern, Yuan Guo, Jiahe Jin, Binjie Wang, and Pengfei Liu. 2024. BeHonest: Benchmarking Honesty of Large Language Models. arXiv preprint arXiv:2406.13261 (2024). +[60] Yew Ken Chia, Pengfei Hong, Lidong Bing, and Soujanya Poria. 2024. InstructEval: Towards Holistic Evaluation of Instruction-Tuned Large Language Models. In Proceedings of the First edition of the Workshop on the Scaling Behavior of Large Language Models (SCALE-LLM 2024). 35–64. +[61] Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, Ion Stoica, and Eric P. Xing. 2023. Vicuna: An Open-Source Chatbot Impressing GPT-4 with $9 0 \% ^ { \star }$ ChatGPT Quality. https://lmsys.org/blog/2023- 03-30-vicuna/ +[62] Yae Jee Cho, Luyang Liu, Zheng Xu, Aldi Fahrezi, and Gauri Joshi. 2024. Heterogeneous LoRA for Federated Fine-tuning of On-Device Foundation Models. arXiv:2401.06432 [cs.LG] https://arxiv.org/abs/2401.06432 +[63] Xiaokai Chu, Jiashu Zhao, Lixin Zou, and Dawei Yin. 2022. H-ERNIE: A multi-granularity pre-trained language model for web search. In Proceedings of the 45th International ACM SIGIR conference on research and development in information retrieval. 1478–1489. +[64] Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Yunxuan Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, et al. 2024. Scaling instruction-finetuned language models. Journal of Machine Learning Research 25, 70 (2024), 1–53. +[65] Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457 (2018). +[66] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168 (2021). +[67] Together Computer. 2023. RedPajama: an Open Dataset for Training Large Language Models. https://github.com/togethercomputer/RedPajama-Data +[68] Mike Conover, Matt Hayes, Ankit Mathur, Jianwei Xie, Jun Wan, Sam Shah, Ali Ghodsi, Patrick Wendell, Matei Zaharia, and Reynold Xin. 2023. Free Dolly: Introducing the World’s First Truly Open Instruction-Tuned LLM. https://www.databricks.com/blog/2023/04/12/dolly-first-open-commerciallyviable-instruction-tuned-llm +[69] Nick Craswell, Bhaskar Mitra, Emine Yilmaz, and Daniel Campos. 2021. Overview of the TREC 2020 deep learning track. CoRR abs/2102.07662 (2021). arXiv:2102.07662 https://arxiv.org/abs/2102.07662 +[70] Justin Cui, Wei-Lin Chiang, Ion Stoica, and Cho-Jui Hsieh. 2024. OR-Bench: An Over-Refusal Benchmark for Large Language Models. arXiv preprint arXiv:2405.20947 (2024). +[71] Shiyao Cui, Zhenyu Zhang, Yilong Chen, Wenyuan Zhang, Tianyun Liu, Siqi Wang, and Tingwen Liu. 2023. Fft: Towards harmlessness evaluation and analysis for llms with factuality, fairness, toxicity. arXiv preprint arXiv:2311.18580 (2023). +[72] Luigi Daniele and Suphavadeeprasit. 2023. Amplify-Instruct: Synthetically Generated Diverse Multi-turn Conversations for efficient LLM Training. arXiv preprint arXiv:(coming soon) (2023). https://huggingface.co/datasets/LDJnr/Capybara +[73] Tri Dao. [n. d.]. FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning. In The Twelfth International Conference on Learning Representations. +[74] Tri Dao, Dan Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. 2022. Flashattention: Fast and memory-efficient exact attention with io-awareness. Advances in Neural Information Processing Systems 35 (2022), 16344–16359. +[75] Tri Dao and Albert Gu. 2024. Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality. arXiv preprint arXiv:2405.21060 (2024). +[76] Rocktim Jyoti Das, Liqun Ma, and Zhiqiang Shen. 2023. Beyond size: How gradients shape pruning decisions in large language models. arXiv preprint arXiv:2311.04902 (2023). +[77] Anirban Dasgupta, Ravi Kumar, and Tamás Sarlós. 2011. Fast locality-sensitive hashing. In Proceedings of the 17th ACM SIGKDD international conference on Knowledge discovery and data mining. 1073–1081. +[78] Pieter Delobelle, Ewoenam Kwaku Tokpo, Toon Calders, and Bettina Berendt. 2022. Measuring fairness with biased rulers: A comparative study on bias metrics for pre-trained language models. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics. 1693–1706. +[79] Yongheng Deng, Ziqing Qiao, Ju Ren, Yang Liu, and Yaoxue Zhang. 2023. Mutual enhancement of large and small language models with cross-silo knowledge transfer. arXiv preprint arXiv:2312.05842 (2023). +[80] Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. 2022. GPT3.int8(): 8-bit Matrix Multiplication for Transformers at Scale. In Advances in Neural Information Processing Systems, Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho (Eds.). https: //openreview.net/forum?id=dXiGWqBoxaD +[81] Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. 2024. Qlora: Efficient finetuning of quantized llms. Advances in Neural Information Processing Systems 36 (2024). +[82] Tim Dettmers and Luke Zettlemoyer. 2023. The case for 4-bit precision: k-bit inference scaling laws. In International Conference on Machine Learning. PMLR, 7750–7774. +[83] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). 4171–4186. +[84] Nolan Dey, Gurpreet Gosal, Zhiming Chen, Hemant Khachane, William Marshall, Ribhu Pathria, Marvin Tom, and Joel Hestness. 2023. Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Cluster. CoRR abs/2304.03208 (2023). +[85] Richard Diehl Martinez, Pietro Lesci, and Paula Buttery. 2024. Tending Towards Stability: Convergence Challenges in Small Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 3275–3286. https://doi.org/10.18653/v1/2024.findings-emnlp.187 +[86] Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Zhi Zheng, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. 2023. Enhancing chat language models by scaling high-quality instructional conversations. arXiv preprint arXiv:2305.14233 (2023). +[87] Tinghe Ding. 2024. MobileAgent: enhancing mobile control via human-machine interaction and SOP integration. arXiv:2401.04124 [cs.HC] https://arxiv.org/abs/2401.04124 +[88] Ricardo Dominguez-Olmedo, Moritz Hardt, and Celestine Mendler-Dünner. 2023. Questioning the survey responses of large language models. arXiv preprint arXiv:2306.07951 (2023). +[89] Qian Dong, Yiding Liu, Qingyao Ai, Haitao Li, Shuaiqiang Wang, Yiqun Liu, Dawei Yin, and Shaoping Ma. 2023. I3 retriever: incorporating implicit interaction in pre-trained language models for passage retrieval. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management. 441–451. +[90] Xin Dong, Yonggan Fu, Shizhe Diao, Wonmin Byeon, Zijia Chen, Ameya Sunil Mahabaleshwarkar, Shih-Yang Liu, Matthijs Van Keirsbilck, Min-Hung Chen, Yoshi Suhara, et al. 2024. Hymba: A Hybrid-head Architecture for Small Language Models. arXiv preprint arXiv:2411.13676 (2024). +[91] Jason Xiaotian Dou, Haiyi Mao, Runxue Bao, Paul Pu Liang, Xiaoqing Tan, Shiyi Zhang, Minxue Jia, Pengfei Zhou, and Zhi-Hong Mao. 2023. The Measurement of Knowledge in Knowledge Graphs. In Proceedings of the AAAI 2023 Workshop on Representation Learning for Responsible Human-Centric AI (R2HCAI). Association for the Advancement of Artificial Intelligence (AAAI) Washington . . +[92] Xinrun Du, Zhouliang Yu, Songyang Gao, Ding Pan, Yuyang Cheng, Ziyang Ma, Ruibin Yuan, Xingwei Qu, Jiaheng Liu, Tianyu Zheng, Xinchen Luo, Guorui Zhou, Wenhu Chen, and Ge Zhang. 2024. Chinese Tiny LLM: Pretraining a Chinese-Centric Large Language Model. arXiv:2404.04167 [cs.CL] https://arxiv.org/abs/2404.04167 +[93] Zhengxiao Du, Yujie Qian, Xiao Liu, Ming Ding, Jiezhong Qiu, Zhilin Yang, and Jie Tang. 2022. GLM: General Language Model Pretraining with Autoregressive Blank Infilling. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 320–335. +[94] Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, et al. 2024. The llama 3 herd of models. arXiv preprint arXiv:2407.21783 (2024). +[95] Kazuki Egashira, Mark Vero, Robin Staab, Jingxuan He, and Martin Vechev. 2024. Exploiting LLM Quantization. arXiv preprint arXiv:2405.18137 (2024). +[96] Ronen Eldan and Yuanzhi Li. 2023. Tinystories: How small can language models be and still speak coherent english? arXiv preprint arXiv:2305.07759 (2023). +[97] Stefan Elfwing, Eiji Uchibe, and Kenji Doya. 2018. Sigmoid-weighted linear units for neural network function approximation in reinforcement learning. Neural networks 107 (2018), 3–11. +[98] David Esiobu, Xiaoqing Tan, Saghar Hosseini, Megan Ung, Yuchen Zhang, Jude Fernandes, Jane Dwivedi-Yu, Eleonora Presani, Adina Williams, and Eric Smith. 2023. ROBBIE: Robust bias evaluation of large generative language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. 3764–3814. https://aclanthology.org/2023.emnlp-main.230 +[99] Hugging Face. 2024. SmolVLM - small yet mighty Vision Language Model. https://huggingface.co/blog/smolvlm Accessed: 2024-11-26. +[100] William Fedus, Barret Zoph, and Noam Shazeer. 2022. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research 23, 120 (2022), 1–39. +[101] Shangbin Feng, Weijia Shi, Yuyang Bai, Vidhisha Balachandran, Tianxing He, and Yulia Tsvetkov. 2023. Knowledge Card: Filling LLMs’ Knowledge Gaps with Plug-in Specialized Language Models. arXiv preprint arXiv:2305.09955 (2023). +[102] Elias Frantar and Dan Alistarh. 2023. Sparsegpt: Massive language models can be accurately pruned in one-shot. In International Conference on Machine Learning. PMLR, 10323–10337. +[103] Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. 2023. GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers. In The Eleventh International Conference on Learning Representations. +[104] Hao Fu, Yao; Peng and Tushar Khot. 2022. How does GPT Obtain its Ability? Tracing Emergent Abilities of Language Models to their Sources. Yao Fu’s Notion (Dec 2022). https://yaofu.notion.site/How-does-GPT-Obtain-its-Ability-Tracing-Emergent-Abilities-of-Language-Models-to-theirSources-b9a57ac0fcf74f30a1ab9e3e36fa1dc1 +[105] Yao Fu, Hao Peng, Litu Ou, Ashish Sabharwal, and Tushar Khot. 2023. Specializing smaller language models towards multi-step reasoning. In International Conference on Machine Learning. PMLR, 10421–10430. +[106] Philip Gage. 1994. A new algorithm for data compression. The C Users Journal 12, 2 (1994), 23–38. +[107] Chongming Gao, Shiqi Wang, Shijun Li, Jiawei Chen, Xiangnan He, Wenqiang Lei, Biao Li, Yuan Zhang, and Peng Jiang. 2023. CIRS: Bursting filter bubbles by counterfactual interactive recommender system. ACM Transactions on Information Systems 42, 1 (2023), 1–27. +[108] Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, et al. 2020. The Pile: An 800GB dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027 (2020). +[109] Luyu Gao and Jamie Callan. 2022. Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrieval. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2843–2853. +[110] Shangqian Gao, Chi-Heng Lin, Ting Hua, Zheng Tang, Yilin Shen, Hongxia Jin, and Yen-Chang Hsu. 2024. DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https: //openreview.net/forum?id=YxaY6tHgg0 +[111] Suyu Ge, Yunan Zhang, Liyuan Liu, Minjia Zhang, Jiawei Han, and Jianfeng Gao. 2024. Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=uNrFpDPMyo +[112] Alex Gichamba, Tewodros Kederalah Idris, Brian Ebiyau, Eric Nyberg, and Teruko Mitamura. 2024. ColBERT Retrieval and Ensemble Response Scoring for Language Model Question Answering. arXiv:2408.10808 [cs.CL] https://arxiv.org/abs/2408.10808 +[113] Karan Goel. 2024. The On-Device Intelligence Update. https://www.cartesia.ai/blog/on-device +[114] Aaron Gokaslan, Vanya Cohen, Ellie Pavlick, and Stefanie Tellex. 2019. Openwebtext corpus. +[115] Shreya Goyal, Sumanth Doddapaneni, Mitesh M Khapra, and Balaraman Ravindran. 2023. A survey of adversarial defenses and robustness in nlp. Comput. Surveys 55, 14s (2023), 1–39. +[116] Dirk Groeneveld, Iz Beltagy, Pete Walsh, Akshita Bhagia, Rodney Kinney, Oyvind Tafjord, Ananya Harsh Jha, Hamish Ivison, Ian Magnusson, Yizhong Wang, et al. 2024. Olmo: Accelerating the science of language models. arXiv preprint arXiv:2402.00838 (2024). +[117] Albert Gu and Tri Dao. 2023. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752 (2023). +[118] Naibin Gu, Peng Fu, Xiyu Liu, Bowen Shen, Zheng Lin, and Weiping Wang. 2024. Light-PEFT: Lightening Parameter-Efficient Fine-Tuning via Early Pruning. In Findings of the Association for Computational Linguistics: ACL 2024, Lun-Wei Ku, Andre Martins, and Vivek Srikumar (Eds.). Association for Computational Linguistics, Bangkok, Thailand, 7528–7541. https://doi.org/10.18653/v1/2024.findings-acl.447 +[119] Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. 2024. MiniLLM: Knowledge distillation of large language models. In The Twelfth International Conference on Learning Representations. +[120] Suriya Gunasekar, Yi Zhang, Jyoti Aneja, Caio César Teodoro Mendes, Allie Del Giorno, Sivakanth Gopi, Mojan Javaheripi, Piero Kauffmann, Gustavo de Rosa, Olli Saarikivi, Adil Salim, Shital Shah, Harkirat Singh Behl, Xin Wang, Sébastien Bubeck, Ronen Eldan, Adam Tauman Kalai, Yin Tat Lee, and Yuanzhi Li. 2023. Textbooks Are All You Need. arXiv:2306.11644 [cs.CL] https://arxiv.org/abs/2306.11644 +[121] Daya Guo, Qihao Zhu, Dejian Yang, Zhenda Xie, Kai Dong, Wentao Zhang, Guanting Chen, Xiao Bi, Yu Wu, YK Li, et al. 2024. DeepSeek-Coder: When the Large Language Model Meets Programming–The Rise of Code Intelligence. arXiv preprint arXiv:2401.14196 (2024). +[122] Jinyang Guo, Jianyu Wu, Zining Wang, Jiaheng Liu, Ge Yang, Yifu Ding, Ruihao Gong, Haotong Qin, and Xianglong Liu. 2024. Compressing large language models by joint sparsification and quantization. In Forty-first International Conference on Machine Learning. +[123] Shangwei Guo, Chunlong Xie, Jiwei Li, Lingjuan Lyu, and Tianwei Zhang. 2022. Threats to pre-trained language models: Survey and taxonomy. arXiv preprint arXiv:2202.06862 (2022). +[124] Song Guo, Jiahang Xu, Li Lyna Zhang, and Mao Yang. 2023. Compresso: Structured pruning with collaborative prompting learns compact large language models. arXiv preprint arXiv:2310.05015 (2023). +[125] Zhen Guo, Peiqi Wang, Yanwei Wang, and Shangdi Yu. 2023. Improving Small Language Models on PubMedQA via Generative Data Augmentation. arXiv:2305.07804 [cs.CL] https://arxiv.org/abs/2305.07804 +[126] Song Han, Jeff Pool, John Tran, and William Dally. 2015. Learning both weights and connections for efficient neural network. Advances in neural information processing systems 28 (2015). +[127] Zixu Hao, Huiqiang Jiang, Shiqi Jiang, Ju Ren, and Ting Cao. 2024. Hybrid SLM and LLM for Edge-Cloud Collaborative Inference. In Proceedings of the Workshop on Edge and Mobile Foundation Models. 36–41. +[128] Tim Hartill, Diana Benavides-Prado, Michael Witbrock, and Patricia J. Riddle. 2023. Answering Unseen Questions With Smaller Language Models Using Rationale Generation and Dense Retrieval. arXiv:2308.04711 [cs.CL] https://arxiv.org/abs/2308.04711 +[129] Tim Hartill, Neset Tan, Michael Witbrock, and Patricia J. Riddle. 2023. Teaching Smaller Language Models To Generalise To Unseen Compositional Questions. arXiv:2308.00946 [cs.CL] https://arxiv.org/abs/2308.00946 +[130] Kai He, Rui Mao, Qika Lin, Yucheng Ruan, Xiang Lan, Mengling Feng, and Erik Cambria. 2023. A survey of large language models for healthcare: from data, technology, and applications to accountability and ethics. arXiv preprint arXiv:2310.05694 (2023). +[131] Pengcheng He, Jianfeng Gao, and Weizhu Chen. 2023. DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with GradientDisentangled Embedding Sharing. In The Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=sE7- XhLxHA +[132] Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen. 2020. Deberta: Decoding-enhanced bert with disentangled attention. arXiv preprint arXiv:2006.03654 (2020). +[133] Narges Heidari, Parham Moradi, and Abbas Koochari. 2022. An attention-based deep learning method for solving the cold-start and sparsity issues of recommender systems. Knowledge-Based Systems 256 (2022), 109835. +[134] Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021. Measuring Massive Multitask Language Understanding. In International Conference on Learning Representations. https://openreview.net/forum?id=d7KBjmI3GmQ +[135] Dan Hendrycks and Kevin Gimpel. 2016. Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415 (2016). +[136] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531 (2015). +[137] Sepp Hochreiter and Jürgen Schmidhuber. 1996. LSTM can solve hard long time lag problems. Advances in neural information processing systems 9 (1996). +[138] Junyuan Hong, Jinhao Duan, Chenhui Zhang, Zhangheng Li, Chulin Xie, Kelsey Lieberman, James Diffenderfer, Brian R. Bartoldson, Ajay Kumar Jaiswal, Kaidi Xu, Bhavya Kailkhura, Dan Hendrycks, Dawn Song, Zhangyang Wang, and Bo Li. 2024. Decoding Compressed Trust: Scrutinizing the Trustworthiness of Efficient LLMs Under Compression. In Proceedings of the Forty-first International Conference on Machine Learning, ICML. https://openreview.net/forum?id=e3Dpq3WdMv +[139] Yutong Meng Yuhao Wang Hongcheng Liu, Yusheng Liao. 2023. XieZhi: Chinese Law Large Language Model. https://github.com/LiuHC0428/ LAW_GPT. +[140] Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin De Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. 2019. Parameter-efficient transfer learning for NLP. In International Conference on Machine Learning. PMLR, 2790–2799. +[141] Cheng-Yu Hsieh, Chun-Liang Li, Chih-kuan Yeh, Hootan Nakhost, Yasuhisa Fujii, Alex Ratner, Ranjay Krishna, Chen-Yu Lee, and Tomas Pfister. 2023. Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes. In Findings of the Association for Computational Linguistics: ACL 2023. 8003–8017. +[142] Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685 (2021). +[143] Shengding Hu, Yuge Tu, Xu Han, Chaoqun He, Ganqu Cui, Xiang Long, Zhi Zheng, Yewei Fang, Yuxiang Huang, Weilin Zhao, et al. 2024. Minicpm: Unveiling the potential of small language models with scalable training strategies. arXiv preprint arXiv:2404.06395 (2024). +[144] Xing Hu, Yuan Chen, Dawei Yang, Sifan Zhou, Zhihang Yuan, Jiangyong Yu, and Chen Xu. 2024. I-LLM: Efficient Integer-Only Inference for Fully-Quantized Low-Bit Large Language Models. arXiv preprint arXiv:2405.17849 (2024). +[145] Jiaxin Huang, Shixiang Shane Gu, Le Hou, Yuexin Wu, Xuezhi Wang, Hongkun Yu, and Jiawei Han. [n. d.]. Large Language Models Can Self-Improve. In The 2023 Conference on Empirical Methods in Natural Language Processing. +[146] Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, et al. 2023. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. arXiv preprint arXiv:2311.05232 (2023). +[147] Wei Huang, Yangdong Liu, Haotong Qin, Ying Li, Shiming Zhang, Xianglong Liu, Michele Magno, and Xiaojuan Qi. 2024. Billm: Pushing the limit of post-training quantization for llms. arXiv preprint arXiv:2402.04291 (2024). +[148] Wenyu Huang, Guancheng Zhou, Hongru Wang, Pavlos Vougiouklis, Mirella Lapata, and Jeff Z. Pan. 2024. Less is More: Making Smaller Language Models Competent Subgraph Retrievers for Multi-hop KGQA. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 15787–15803. https://doi.org/10.18653/v1/2024.findings-emnlp.927 +[149] Yuzhen Huang, Yuzhuo Bai, Zhihao Zhu, Junlei Zhang, Jinghan Zhang, Tangjun Su, Junteng Liu, Chuancheng Lv, Yikai Zhang, Yao Fu, et al. 2024. C-eval: A multi-level multi-discipline chinese evaluation suite for foundation models. Advances in Neural Information Processing Systems 36 (2024). +[150] Yangsibo Huang, Samyak Gupta, Mengzhou Xia, Kai Li, and Danqi Chen. 2023. Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation. arXiv preprint arXiv:2310.06987 (2023). +[151] Yuheng Huang, Jiayang Song, Zhijie Wang, Shengming Zhao, Huaming Chen, Felix Juefei-Xu, and Lei Ma. 2023. Look before you leap: An exploratory study of uncertainty measurement for large language models. arXiv preprint arXiv:2307.10236 (2023). +[152] Samuel Humeau, Kurt Shuster, Marie-Anne Lachaux, and Jason Weston. [n. d.]. Poly-encoders: Architectures and Pre-training Strategies for Fast and Accurate Multi-sentence Scoring. In International Conference on Learning Representations. +[153] Hakan Inan, Kartikeya Upasani, Jianfeng Chi, Rashi Rungta, Krithika Iyer, Yuning Mao, Michael Tontchev, Qing Hu, Brian Fuller, Davide Testuggine, et al. 2023. Llama guard: Llm-based input-output safeguard for human-ai conversations. arXiv preprint arXiv:2312.06674 (2023). +[154] Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and Geoffrey E Hinton. 1991. Adaptive mixtures of local experts. Neural computation 3, 1 (1991), 79–87. +[155] Mojan Javaheripi, Sébastien Bubeck, Marah Abdin, Jyoti Aneja, Sebastien Bubeck, Caio César Teodoro Mendes, Weizhu Chen, Allie Del Giorno, Ronen Eldan, Sivakanth Gopi, et al. 2023. Phi-2: The surprising power of small language models. Microsoft Research Blog (2023). +[156] Soyeong Jeong, Jinheon Baek, Sukmin Cho, Sung Hwang, and Jong C Park. 2023. Test-Time Self-Adaptive Small Language Models for Question Answering. In Findings of the Association for Computational Linguistics: EMNLP 2023. 15459–15469. +[157] Ananya Harsh Jha, Tom Sherborne, Evan Pete Walsh, Dirk Groeneveld, Emma Strubell, and Iz Beltagy. 2024. Just CHOP: Embarrassingly Simple LLM Compression. arXiv:2305.14864 [cs.CL] https://arxiv.org/abs/2305.14864 +[158] Yixin Ji, Yang Xiang, Juntao Li, Wei Chen, Zhongyi Liu, Kehai Chen, and Min Zhang. 2024. Feature-based Low-Rank Compression of Large Language Models via Bayesian Optimization. arXiv preprint arXiv:2405.10616 (2024). +[159] Ziwei Ji, Tiezheng Yu, Yan Xu, Nayeon Lee, Etsuko Ishii, and Pascale Fung. 2023. Towards mitigating LLM hallucination via self reflection. In Findings of the Association for Computational Linguistics: EMNLP 2023. 1827–1843. +[160] Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. 2023. Mistral 7B. arXiv preprint arXiv:2310.06825 (2023). +[161] Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, et al. 2024. Mixtral of experts. arXiv preprint arXiv:2401.04088 (2024). +[162] Huiqiang Jiang, Qianhui Wu, Xufang Luo, Dongsheng Li, Chin-Yew Lin, Yuqing Yang, and Lili Qiu. 2024. LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression. In ICLR 2024 Workshop on Mathematical and Empirical Understanding of Foundation Models. https://openreview.net/forum?id=9YvfRrpmyw +[163] Qiao Jin, Bhuwan Dhingra, Zhengping Liu, William Cohen, and Xinghua Lu. 2019. PubMedQA: A Dataset for Biomedical Research Question Answering. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). 2567–2577. +[164] Rudolph Emil Kalman. 1960. A new approach to linear filtering and prediction problems. (1960). +[165] Hao Kang, Qingru Zhang, Souvik Kundu, Geonhwa Jeong, Zaoxing Liu, Tushar Krishna, and Tuo Zhao. 2024. Gear: An efficient kv cache compression recipefor near-lossless generative inference of llm. arXiv preprint arXiv:2403.05527 (2024). +[166] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. 2020. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361 (2020). +[167] Omar Khattab, Arnav Singhvi, Paridhi Maheshwari, Zhiyuan Zhang, Keshav Santhanam, Sri Vardhamanan, Saiful Haq, Ashutosh Sharma, Thomas T Joshi, Hanna Moazam, et al. 2023. Dspy: Compiling declarative language model calls into self-improving pipelines. arXiv preprint arXiv:2310.03714 (2023). +[168] Jeonghoon Kim, Jung Hyun Lee, Sungdong Kim, Joonsuk Park, Kang Min Yoo, Se Jung Kwon, and Dongsoo Lee. 2024. Memory-efficient fine-tuning of compressed large language models via sub-4-bit integer quantization. Advances in Neural Information Processing Systems 36 (2024). +[169] Minsoo Kim, Sihwa Lee, Janghwan Lee, Sukjin Hong, Du-Seong Chang, Wonyong Sung, and Jungwook Choi. 2024. Token-scaled logit distillation for ternary weight generative language models. Advances in Neural Information Processing Systems 36 (2024). +[170] Sehoon Kim, Coleman Hooper, Amir Gholami, Zhen Dong, Xiuyu Li, Sheng Shen, Michael W Mahoney, and Kurt Keutzer. 2023. Squeezellm: Dense-and-sparse quantization. arXiv preprint arXiv:2306.07629 (2023). +[171] Yoon Kim and Alexander M Rush. 2016. Sequence-Level Knowledge Distillation. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing. 1317–1327. +[172] Young Jin Kim, Raffy Fahim, and Hany Hassan Awadalla. 2023. Mixture of Quantized Experts (MoQE): Complementary Effect of Low-bit Quantization and Robustness. arXiv preprint arXiv:2310.02410 (2023). +[173] Jongwoo Ko, Sungnyun Kim, Tianyi Chen, and Se-Young Yun. 2024. DistiLLM: Towards Streamlined Distillation for Large Language Models. arXiv preprint arXiv:2402.03898 (2024). +[174] Denis Kocetkov, Raymond Li, Loubna Ben Allal, Jia Li, Chenghao Mou, Carlos Muñoz Ferrandis, Yacine Jernite, Margaret Mitchell, Sean Hughes, Thomas Wolf, et al. 2022. The stack: 3 tb of permissively licensed source code. arXiv preprint arXiv:2211.15533 (2022). +[175] Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. 2023. Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generation. In Proceedings of the Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=VD-AYtP0dve +[176] Divyanshu Kumar, Anurakt Kumar, Sahil Agarwal, and Prashanth Harshangi. 2024. Fine-Tuning, Quantization, and LLMs: Navigating Unintended Outcomes. arXiv preprint arXiv:2404.04392 (2024). +[177] Ohjoon Kwon, Donghyeon Jeon, Nayoung Choi, Gyu-Hwung Cho, Hwiyeol Jo, Changbong Kim, Hyunwoo Lee, Inho Kang, Sun Kim, and Taiwoo Park. 2024. SLM as Guardian: Pioneering AI Safety with Small Language Model. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: Industry Track, Franck Dernoncourt, Daniel Preoţiuc-Pietro, and Anastasia Shimorina (Eds.). Association for Computational Linguistics, Miami, Florida, US, 1333–1350. https://doi.org/10.18653/v1/2024.emnlp-industry.99 +[178] Yanis Labrak, Adrien Bazoge, Emmanuel Morin, Pierre-Antoine Gourraud, Mickael Rouvier, and Richard Dufour. 2024. Biomistral: A collection of open-source pretrained large language models for medical domains. arXiv preprint arXiv:2402.10373 (2024). +[179] Stefan Larson, Anish Mahendran, Joseph J. Peper, Christopher Clarke, Andrew Lee, Parker Hill, Jonathan K. Kummerfeld, Kevin Leach, Michael A. Laurenzano, Lingjia Tang, and Jason Mars. 2019. An Evaluation Dataset for Intent Classification and Out-of-Scope Prediction. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Kentaro Inui, Jing Jiang, Vincent Ng, and Xiaojun Wan (Eds.). Association for Computational Linguistics, Hong Kong, China, +Manuscript submitted to ACM 1311–1316. https://doi.org/10.18653/v1/D19-1131 +[180] Hugo Laurençon, Lucile Saulnier, Thomas Wang, Christopher Akiki, Albert Villanova del Moral, Teven Le Scao, Leandro Von Werra, Chenghao Mou, Eduardo González Ponferrada, Huu Nguyen, et al. 2022. The bigscience roots corpus: A 1.6 tb composite multilingual dataset. Advances in Neural Information Processing Systems 35 (2022), 31809–31826. +[181] Teven Le Scao, Angela Fan, Christopher Akiki, Ellie Pavlick, Suzana Ilić, Daniel Hesslow, Roman Castagné, Alexandra Sasha Luccioni, François Yvon, Matthias Gallé, et al. 2023. Bloom: A 176b-parameter open-access multilingual language model. (2023). +[182] Hojae Lee, Junho Kim, and SangKeun Lee. 2024. Mentor-KD: Making Small Language Models Better Multi-step Reasoners. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 17643–17658. https://doi.org/10.18653/v1/2024.emnlp-main.977 +[183] Jooyoung Lee, Fan Yang, Thanh Tran, Qian Hu, Emre Barut, and Kai-Wei Chang. 2024. Can Small Language Models Help Large Language Models Reason Better?: LM-Guided Chain-of-Thought. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024). 2835–2843. +[184] Benjamin Lefaudeux, Francisco Massa, Diana Liskovich, Wenhan Xiong, Vittorio Caggiano, Sean Naren, Min Xu, Jieru Hu, Marta Tintore, Susan Zhang, Patrick Labatut, Daniel Haziza, Luca Wehrstedt, Jeremy Reizenstein, and Grigory Sizov. 2022. xFormers: A modular and hackable Transformer modelling library. https://github.com/facebookresearch/xformers. +[185] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. 2016. Layer normalization. ArXiv e-prints (2016), arXiv–1607. +[186] Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, et al. 2022. Solving quantitative reasoning problems with language models. Advances in Neural Information Processing Systems 35 (2022), 3843–3857. +[187] Chenglin Li, Qianglong Chen, Liangyue Li, Caiyu Wang, Yicheng Li, Zulong Chen, and Yin Zhang. 2023. Mixed distillation helps smaller language model better reasoning. arXiv preprint arXiv:2312.10730 (2023). +[188] Guangyan Li, Yongqiang Tang, and Wensheng Zhang. 2024. LoRAP: Transformer Sub-Layers Deserve Differentiated Structured Compression for Large Language Models. arXiv preprint arXiv:2404.09695 (2024). +[189] Haitao Li, Qingyao Ai, Jia Chen, Qian Dong, Zhijing Wu, Yiqun Liu, Chong Chen, and Qi Tian. 2024. BLADE: Enhancing Black-box Large Language Models with Small Domain-Specific Models. arXiv:2403.18365 [cs.CL] https://arxiv.org/abs/2403.18365 +[190] Haoran Li, Dadi Guo, Donghao Li, Wei Fan, Qi Hu, Xin Liu, Chunkit Chan, Duanyi Yao, Yuan Yao, and Yangqiu Song. 2024. PrivLM-Bench: A Multi-level Privacy Evaluation Benchmark for Language Models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics. 54–73. +[191] Junyi Li, Xiaoxue Cheng, Xin Zhao, Jian-Yun Nie, and Ji-Rong Wen. 2023. HaluEval: A Large-Scale Hallucination Evaluation Benchmark for Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, Singapore, 6449–6464. https://doi.org/10.18653/v1/2023.emnlp-main.397 +[192] Jeffrey Li, Alex Fang, Georgios Smyrnis, Maor Ivgi, Matt Jordan, Samir Gadre, Hritik Bansal, Etash Guha, Sedrick Keh, Kushal Arora, et al. 2024. Datacomp-lm: In search of the next generation of training sets for language models. arXiv preprint arXiv:2406.11794 (2024). +[193] Luchang Li, Sheng Qian, Jie Lu, Lunxi Yuan, Rui Wang, and Qin Xie. 2024. Transformer-Lite: High-efficiency Deployment of Large Language Models on Mobile Phone GPUs. arXiv:2403.20041 [cs.CL] https://arxiv.org/abs/2403.20041 +[194] Pingzhi Li, Xiaolong Jin, Yu Cheng, and Tianlong Chen. 2024. Examining Post-Training Quantization for Mixture-of-Experts: A Benchmark. arXiv preprint arXiv:2406.08155 (2024). +[195] Raymond Li, Loubna Ben Allal, Yangtian Zi, Niklas Muennighoff, Denis Kocetkov, Chenghao Mou, Marc Marone, Christopher Akiki, Jia Li, Jenny Chim, Qian Liu, Evgenii Zheltonozhskii, Terry Yue Zhuo, Thomas Wang, Olivier Dehaene, Mishig Davaadorj, Joel Lamy-Poirier, João Monteiro, Oleh Shliazhko, Nicolas Gontier, Nicholas Meade, Armel Zebaze, Ming-Ho Yee, Logesh Kumar Umapathi, Jian Zhu, Benjamin Lipkin, Muhtasham Oblokulov, Zhiruo Wang, Rudra Murthy, Jason Stillerman, Siva Sankalp Patel, Dmitry Abulkhanov, Marco Zocca, Manan Dey, Zhihan Zhang, Nour Fahmy, Urvashi Bhattacharyya, Wenhao Yu, Swayam Singh, Sasha Luccioni, Paulo Villegas, Maxim Kunakov, Fedor Zhdanov, Manuel Romero, Tony Lee, Nadav Timor, Jennifer Ding, Claire Schlesinger, Hailey Schoelkopf, Jan Ebert, Tri Dao, Mayank Mishra, Alex Gu, Jennifer Robinson, Carolyn Jane Anderson, Brendan Dolan-Gavitt, Danish Contractor, Siva Reddy, Daniel Fried, Dzmitry Bahdanau, Yacine Jernite, Carlos Muñoz Ferrandis, Sean Hughes, Thomas Wolf, Arjun Guha, Leandro von Werra, and Harm de Vries. 2023. StarCoder: may the source be with you! arXiv:2305.06161 [cs.CL] https://arxiv.org/abs/2305.06161 +[196] Shengrui Li, Xueting Han, and Jing Bai. 2024. Nuteprune: Efficient progressive pruning with numerous teachers for large language models. arXiv preprint arXiv:2402.09773 (2024). +[197] Tianlin Li, Qian Liu, Tianyu Pang, Chao Du, Qing Guo, Yang Liu, and Min Lin. 2024. Purifying large language models by ensembling a small language model. arXiv preprint arXiv:2402.14845 (2024). +[198] Xiang Lisa Li, Ari Holtzman, Daniel Fried, Percy Liang, Jason Eisner, Tatsunori B Hashimoto, Luke Zettlemoyer, and Mike Lewis. 2023. Contrastive Decoding: Open-ended Text Generation as Optimization. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 12286–12312. +[199] Xiang Lisa Li and Percy Liang. 2021. Prefix-tuning: Optimizing continuous prompts for generation. arXiv preprint arXiv:2101.00190 (2021). +[200] Yuanzhi Li, Sébastien Bubeck, Ronen Eldan, Allie Del Giorno, Suriya Gunasekar, and Yin Tat Lee. 2023. Textbooks Are All You Need II: phi-1.5 technical report. arXiv:2309.05463 [cs.CL] https://arxiv.org/abs/2309.05463 +[201] Yun Li, Lin Niu, Xipeng Zhang, Kai Liu, Jianchen Zhu, and Zhanhui Kang. 2023. E-sparse: Boosting the large language model inference through entropy-based n: M sparsity. arXiv preprint arXiv:2310.15929 (2023). +[202] Yinheng Li, Shaofei Wang, Han Ding, and Hang Chen. 2023. Large language models in finance: A survey. In Proceedings of the fourth ACM international conference on AI in finance. 374–382. +[203] Wing Lian, Guan Wang, Bleys Goodson, Eugene Pentland, Austin Cook, Chanvichet Vong, and "Teknium". 2023. SlimOrca: An Open Dataset of GPT-4 Augmented FLAN Reasoning Traces, with Verification. https://https://huggingface.co/Open-Orca/SlimOrca +[204] Jinggui Liang, Lizi Liao, Hao Fei, and Jing Jiang. 2024. Synergizing Large Language Models and Pre-Trained Smaller Models for Conversational Intent Discovery. In Findings of the Association for Computational Linguistics ACL 2024. 14133–14147. +[205] Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, Benjamin Newman, Binhang Yuan, Bobby Yan, Ce Zhang, Christian Alexander Cosgrove, Christopher D Manning, Christopher Re, Diana Acosta-Navas, Drew Arad Hudson, Eric Zelikman, Esin Durmus, Faisal Ladhak, Frieda Rong, Hongyu Ren, Huaxiu Yao, Jue WANG, Keshav Santhanam, Laurel Orr, Lucia Zheng, Mert Yuksekgonul, Mirac Suzgun, Nathan Kim, Neel Guha, Niladri S. Chatterji, Omar Khattab, Peter Henderson, Qian Huang, Ryan Andrew Chi, Sang Michael Xie, Shibani Santurkar, Surya Ganguli, Tatsunori Hashimoto, Thomas Icard, Tianyi Zhang, Vishrav Chaudhary, William Wang, Xuechen Li, Yifan Mai, Yuhui Zhang, and Yuta Koreeda. 2023. Holistic Evaluation of Language Models. Transactions on Machine Learning Research (2023). https://openreview.net/forum?id=iO4LZibEqW +[206] Jianghao Lin, Rong Shan, Chenxu Zhu, Kounianhua Du, Bo Chen, Shigang Quan, Ruiming Tang, Yong Yu, and Weinan Zhang. 2024. Rella: Retrieval-enhanced large language models for lifelong sequential behavior comprehension in recommendation. In Proceedings of the ACM on Web Conference 2024. 3497–3508. +[207] Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, and Song Han. 2024. AWQ: Activation-aware Weight Quantization for On-Device LLM Compression and Acceleration. Proceedings of Machine Learning and Systems 6 (2024), 87–100. +[208] Stephanie Lin, Jacob Hilton, and Owain Evans. 2022. TruthfulQA: Measuring How Models Mimic Human Falsehoods. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 3214–3252. +[209] Xi Victoria Lin, Todor Mihaylov, Mikel Artetxe, Tianlu Wang, Shuohui Chen, Daniel Simig, Myle Ott, Naman Goyal, Shruti Bhosale, Jingfei Du, Ramakanth Pasunuru, Sam Shleifer, Punit Singh Koura, Vishrav Chaudhary, Brian O’Horo, Jeff Wang, Luke Zettlemoyer, Zornitsa Kozareva, Mona Diab, Veselin Stoyanov, and Xian Li. 2022. Few-shot Learning with Multilingual Generative Language Models. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang (Eds.). Association for Computational Linguistics, Abu Dhabi, United Arab Emirates, 9019–9052. https://doi.org/10.18653/v1/2022.emnlp-main.616 +[210] Zhenghao Lin, Zhibin Gou, Yeyun Gong, Xiao Liu, Yelong Shen, Ruochen Xu, Chen Lin, Yujiu Yang, Jian Jiao, Nan Duan, et al. 2024. Rho-1: Not all tokens are what you need. arXiv preprint arXiv:2404.07965 (2024). +[211] Aixin Liu, Bei Feng, Bin Wang, Bingxuan Wang, Bo Liu, Chenggang Zhao, Chengqi Dengr, Chong Ruan, Damai Dai, Daya Guo, et al. 2024. Deepseek-v2: A strong, economical, and efficient mixture-of-experts language model. arXiv preprint arXiv:2405.04434 (2024). +[212] Alisa Liu, Xiaochuang Han, Yizhong Wang, Yulia Tsvetkov, Yejin Choi, and Noah A Smith. 2024. Tuning language models by proxy. arXiv preprint arXiv:2401.08565 (2024). +[213] Jiashuo Liu, Zheyan Shen, Yue He, Xingxuan Zhang, Renzhe Xu, Han Yu, and Peng Cui. 2021. Towards out-of-distribution generalization: A survey. arXiv preprint arXiv:2108.13624 (2021). +[214] Qijiong Liu, Nuo Chen, Tetsuya Sakai, and Xiao-Ming Wu. 2024. Once: Boosting content-based recommendation with both open-and closed-source large language models. In Proceedings of the 17th ACM International Conference on Web Search and Data Mining. 452–461. +[215] Suqing Liu, Zezhu Yu, Feiran Huang, Yousef Bulbulia, Andreas Bergen, and Michael Liut. 2024. Can Small Language Models With RetrievalAugmented Generation Replace Large Language Models When Learning Computer Science? In Proceedings of the 2024 on Innovation and Technology in Computer Science Education V. 1. 388–393. +[216] Wei Liu, Weihao Zeng, Keqing He, Yong Jiang, and Junxian He. 2023. What makes good data for alignment? a comprehensive study of automatic data selection in instruction tuning. arXiv preprint arXiv:2312.15685 (2023). +[217] Yinpeng Liu, Jiawei Liu, Xiang Shi, Qikai Cheng, and Wei Lu. 2024. Let’s Learn Step by Step: Enhancing In-Context Learning Ability with Curriculum Learning. arXiv preprint arXiv:2402.10738 (2024). +[218] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692 (2019). +[219] Yanming Liu, Xinyue Peng, Xuhong Zhang, Weihao Liu, Jianwei Yin, Jiannan Cao, and Tianyu Du. 2024. RA-ISF: Learning to Answer and Understand from Retrieval Augmentation via Iterative Self-Feedback. arXiv preprint arXiv:2403.06840 (2024). +[220] Zichang Liu, Aditya Desai, Fangshuo Liao, Weitao Wang, Victor Xie, Zhaozhuo Xu, Anastasios Kyrillidis, and Anshumali Shrivastava. 2024. Scissorhands: Exploiting the persistence of importance hypothesis for llm kv cache compression at test time. Advances in Neural Information Processing Systems 36 (2024). +[221] Zechun Liu, Barlas Oguz, Changsheng Zhao, Ernie Chang, Pierre Stock, Yashar Mehdad, Yangyang Shi, Raghuraman Krishnamoorthi, and Vikas Chandra. 2023. Llm-qat: Data-free quantization aware training for large language models. arXiv preprint arXiv:2305.17888 (2023). +[222] Zhengxiao Liu, Bowen Shen, Zheng Lin, Fali Wang, and Weiping Wang. 2023. Maximum Entropy Loss, the Silver Bullet Targeting Backdoor Attacks in Pre-trained Language Models. In Findings of the Association for Computational Linguistics: ACL 2023, Anna Rogers, Jordan Boyd-Graber, and Naoaki Okazaki (Eds.). Association for Computational Linguistics, Toronto, Canada, 3850–3868. https://doi.org/10.18653/v1/2023.findings-acl.237 +[223] Zechun Liu, Changsheng Zhao, Forrest Iandola, Chen Lai, Yuandong Tian, Igor Fedorov, Yunyang Xiong, Ernie Chang, Yangyang Shi, Raghuraman Krishnamoorthi, et al. 2024. Mobilellm: Optimizing sub-billion parameter language models for on-device use cases. arXiv preprint arXiv:2402.14905 (2024). +[224] Lin Long, Rui Wang, Ruixuan Xiao, Junbo Zhao, Xiao Ding, Gang Chen, and Haobo Wang. 2024. On LLMs-Driven Synthetic Data Generation, Curation, and Evaluation: A Survey. In Findings of the Association for Computational Linguistics ACL 2024. 11065–11082. +[225] Shayne Longpre, Le Hou, Tu Vu, Albert Webson, Hyung Won Chung, Yi Tay, Denny Zhou, Quoc V Le, Barret Zoph, Jason Wei, et al. 2023. The flan collection: Designing data and methods for effective instruction tuning. In International Conference on Machine Learning. PMLR, 22631–22648. +[226] Shayne Longpre, Robert Mahari, Anthony Chen, Naana Obeng-Marnu, Damien Sileo, William Brannon, Niklas Muennighoff, Nathan Khazam, Jad Kabbara, Kartik Perisetla, et al. 2023. The data provenance initiative: A large scale audit of dataset licensing & attribution in ai. arXiv preprint arXiv:2310.16787 (2023). +[227] Anton Lozhkov, Raymond Li, Loubna Ben Allal, Federico Cassano, Joel Lamy-Poirier, Nouamane Tazi, Ao Tang, Dmytro Pykhtar, Jiawei Liu, Yuxiang Wei, et al. 2024. Starcoder 2 and the stack v2: The next generation. arXiv preprint arXiv:2402.19173 (2024). +[228] Wenhao Lu, Jian Jiao, and Ruofei Zhang. 2020. Twinbert: Distilling knowledge to twin-structured compressed bert models for large-scale retrieval. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management. 2645–2652. +[229] Zhenyan Lu, Xiang Li, Dongqi Cai, Rongjie Yi, Fangming Liu, Xiwen Zhang, Nicholas D Lane, and Mengwei Xu. 2024. Small language models: Survey, measurements, and insights. arXiv preprint arXiv:2409.15790 (2024). +[230] Renqian Luo, Liai Sun, Yingce Xia, Tao Qin, Sheng Zhang, Hoifung Poon, and Tie-Yan Liu. 2022. BioGPT: generative pre-trained transformer for biomedical text generation and mining. Briefings in bioinformatics 23, 6 (2022), bbac409. +[231] Shuming Ma, Hongyu Wang, Lingxiao Ma, Lei Wang, Wenhui Wang, Shaohan Huang, Li Dong, Ruiping Wang, Jilong Xue, and Furu Wei. 2024. The era of 1-bit llms: All large language models are in 1.58 bits. arXiv preprint arXiv:2402.17764 (2024). +[232] Xinyin Ma, Gongfan Fang, and Xinchao Wang. 2023. Llm-pruner: On the structural pruning of large language models. Advances in neural information processing systems 36 (2023), 21702–21720. +[233] Xinbei Ma, Yeyun Gong, Pengcheng He, Hai Zhao, and Nan Duan. 2023. Query Rewriting in Retrieval-Augmented Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. 5303–5315. +[234] Yubo Ma, Yixin Cao, YongChing Hong, and Aixin Sun. 2023. Large language model is not a good few-shot information extractor, but a good reranker for hard samples! arXiv preprint arXiv:2303.08559 (2023). +[235] Yuhan Ma, Chenyou Fan, and Haiqi Jiang. 2023. Sci-cot: Leveraging large language models for enhanced knowledge distillation in small models for scientific qa. In 2023 9th International Conference on Computer and Communications (ICCC). IEEE, 2394–2398. +[236] YINGWEI MA, Yue Liu, Yue Yu, Yuanliang Zhang, Yu Jiang, Changjian Wang, and Shanshan Li. 2024. At Which Training Stage Does Code Data Help LLMs Reasoning?. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=KIPJKST4gw +[237] Ian Magnusson, Akshita Bhagia, Valentin Hofmann, Luca Soldaini, Ananya Harsh Jha, Oyvind Tafjord, Dustin Schwenk, Evan Pete Walsh, Yanai Elazar, Kyle Lo, et al. 2023. Paloma: A benchmark for evaluating language model fit. arXiv preprint arXiv:2312.10523 (2023). +[238] Dakota Mahan, Ryan Carlow, Louis Castricato, Nathan Cooper, and Christian Laforte. [n. d.]. Stable Beluga models. [https://huggingface.co/ stabilityai/StableBeluga2](https://huggingface.co/stabilityai/StableBeluga2) +[239] Vladimir Malinovskii, Denis Mazur, Ivan Ilin, Denis Kuznedelev, Konstantin Burlachenko, Kai Yi, Dan Alistarh, and Peter Richtarik. 2024. PV-Tuning: Beyond Straight-Through Estimation for Extreme LLM Compression. arXiv preprint arXiv:2405.14852 (2024). +[240] Potsawee Manakul, Adian Liusie, and Mark Gales. 2023. SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, Houda Bouamor, Juan Pino, and Kalika Bali (Eds.). Association for Computational Linguistics, Singapore, 9004–9017. https://doi.org/10.18653/v1/2023.emnlp-main.557 +[241] Sachin Mehta, Mohammad Hossein Sekhavat, Qingqing Cao, Maxwell Horton, Yanzi Jin, Chenfan Sun, Seyed Iman Mirzadeh, Mahyar Najibi, Dmitry Belenko, Peter Zatloukal, et al. 2024. Openelm: An efficient language model family with open training and inference framework. In Workshop on Efficient Systems for Foundation Models II@ ICML2024. +[242] Dheeraj Mekala, Alex Nguyen, and Jingbo Shang. 2024. Smaller language models are capable of selecting instruction-tuning training data for larger language models. arXiv preprint arXiv:2402.10430 (2024). +[243] Xin Men, Mingyu Xu, Qingyu Zhang, Bingning Wang, Hongyu Lin, Yaojie Lu, Xianpei Han, and Weipeng Chen. 2024. Shortgpt: Layers in large language models are more redundant than you expect. arXiv preprint arXiv:2403.03853 (2024). +[244] Sewon Min, Kalpesh Krishna, Xinxi Lyu, Mike Lewis, Wen-tau Yih, Pang Koh, Mohit Iyyer, Luke Zettlemoyer, and Hannaneh Hajishirzi. 2023. FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, Houda Bouamor, Juan Pino, and Kalika Bali (Eds.). Association for Computational Linguistics, Singapore, 12076–12100. https://doi.org/10.18653/v1/2023.emnlp-main.741 +[245] Go Min-su. 2024. Deep Learning Bible - 8. Large Language Models. WikiDocs. https://wikidocs.net/237419 +[246] Eric Mitchell, Rafael Rafailov, Archit Sharma, Chelsea Finn, and Christopher D Manning. 2024. An Emulator for Fine-tuning Large Language Models using Small Language Models. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=Eo7kv0sllr +[247] Arindam Mitra, Luciano Del Corro, Shweti Mahajan, Andres Codas, Clarisse Simoes, Sahaj Agarwal, Xuxi Chen, Anastasia Razdaibiedina, Erik Jones, Kriti Aggarwal, et al. 2023. Orca 2: Teaching small language models how to reason. arXiv preprint arXiv:2311.11045 (2023). +[248] Lingbo Mo, Boshi Wang, Muhao Chen, and Huan Sun. 2024. How Trustworthy are Open-Source LLMs? An Assessment under Malicious Demonstrations Shows their Vulnerabilities. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). 2775–2792. +[249] John Xavier Morris, Wenting Zhao, Justin T Chiu, Vitaly Shmatikov, and Alexander M Rush. 2024. Language Model Inversion. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=t9dWHpGkPj +[250] Maximilian Mozes, Xuanli He, Bennett Kleinberg, and Lewis D Griffin. 2023. Use of llms for illicit purposes: Threats, prevention measures, and vulnerabilities. arXiv preprint arXiv:2308.12833 (2023). +[251] Subhabrata Mukherjee, Arindam Mitra, Ganesh Jawahar, Sahaj Agarwal, Hamid Palangi, and Ahmed Awadallah. 2023. Orca: Progressive learning from complex explanation traces of gpt-4. arXiv preprint arXiv:2306.02707 (2023). +[252] Saurav Muralidharan, Sharath Turuvekere Sreenivas, Raviraj Joshi, Marcin Chochowski, Mostofa Patwary, Mohammad Shoeybi, Bryan Catanzaro, Jan Kautz, and Pavlo Molchanov. 2024. Compact language models via pruning and knowledge distillation. arXiv preprint arXiv:2407.14679 (2024). +[253] Rithesh Murthy, Liangwei Yang, Juntao Tan, Tulika Manoj Awalgaonkar, Yilun Zhou, Shelby Heinecke, Sachin Desai, Jason Wu, Ran Xu, Sarah Tan, Jianguo Zhang, Zhiwei Liu, Shirley Kokane, Zuxin Liu, Ming Zhu, Huan Wang, Caiming Xiong, and Silvio Savarese. 2024. MobileAIBench: Benchmarking LLMs and LMMs for On-Device Use Cases. arXiv:2406.10290 [cs.CL] https://arxiv.org/abs/2406.10290 +[254] Kalyan Nakka, Jimmy Dani, and Nitesh Saxena. 2024. Is On-Device AI Broken and Exploitable? Assessing the Trust and Ethics in Small Language Models. arXiv preprint arXiv:2406.05364 (2024). +[255] Daye Nam, Andrew Macvean, Vincent Hellendoorn, Bogdan Vasilescu, and Brad Myers. 2024. Using an llm to help with code understanding. In Proceedings of the IEEE/ACM 46th International Conference on Software Engineering. 1–13. +[256] Piotr Nawrot, Adrian Łańcucki, Marcin Chochowski, David Tarjan, and Edoardo Ponti. 2024. Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inference. In Forty-first International Conference on Machine Learning. https://openreview.net/forum?id=tDRYrAkOB7 +[257] Thuat Nguyen, Chien Van Nguyen, Viet Dac Lai, Hieu Man, Nghia Trung Ngo, Franck Dernoncourt, Ryan A Rossi, and Thien Huu Nguyen. 2024. CulturaX: A Cleaned, Enormous, and Multilingual Dataset for Large Language Models in 167 Languages. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024). 4226–4237. +[258] Tuan Dung Nguyen, Yuan-Sen Ting, Ioana Ciuca, Charles O’Neill, Ze-Chang Sun, Maja Jabłońska, Sandor Kruk, Ernest Perkowski, Jack Miller, Jason Jason Jingsh Li, et al. 2023. AstroLLaMA: Towards Specialized Foundation Models in Astronomy. In Proceedings of the Second Workshop on Information Extraction from Scientific Publications. 49–55. +[259] Jianmo Ni, Chen Qu, Jing Lu, Zhuyun Dai, Gustavo Hernandez Abrego, Ji Ma, Vincent Zhao, Yi Luan, Keith Hall, Ming-Wei Chang, and Yinfei Yang. 2022. Large Dual Encoders Are Generalizable Retrievers. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 9844–9855. https://doi.org/10.18653/v1/2022.emnlp-main.669 +[260] Rodrigo Nogueira and Kyunghyun Cho. 2019. Passage Re-ranking with BERT. arXiv preprint arXiv:1901.04085 (2019). +[261] A Noorian. 2024. A BERT-based sequential POI recommender system in social media. Computer Standards & Interfaces 87 (2024), 103766. +[262] OpenAI. 2024. GPT-4o mini: advancing cost-efficient intelligence. https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/ Accessed: 2024-7-18. +[263] OpenAI. 2024. Hello GPT-4o. https://openai.com/index/hello-gpt-4o/ Accessed: 2024-5-13. +[264] Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback. Advances in neural information processing systems 35 (2022), 27730–27744. +[265] Shankar Padmanabhan, Yasumasa Onoe, Michael Zhang, Greg Durrett, and Eunsol Choi. 2024. Propagating knowledge updates to lms through distillation. Advances in Neural Information Processing Systems 36 (2024). +[266] Jupinder Parmar, Shrimai Prabhumoye, Joseph Jennings, Mostofa Patwary, Sandeep Subramanian, Dan Su, Chen Zhu, Deepak Narayanan, Aastha Jhunjhunwala, Ayush Dattagupta, et al. 2024. Nemotron-4 15B Technical Report. arXiv preprint arXiv:2402.16819 (2024). +[267] Keiran Paster, Marco Dos Santos, Zhangir Azerbayev, and Jimmy Ba. 2024. OpenWebMath: An Open Dataset of High-Quality Mathematical Web Text. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=jKHmjlpViu +[268] Guilherme Penedo, Hynek Kydlíček, Loubna Ben allal, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, and Thomas Wolf. 2024. The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale. arXiv:2406.17557 [cs.CL] +[269] Guilherme Penedo, Quentin Malartic, Daniel Hesslow, Ruxandra Cojocaru, Alessandro Cappelli, Hamza Alobeidli, Baptiste Pannier, Ebtesam Almazrouei, and Julien Launay. 2023. The RefinedWeb dataset for Falcon LLM: outperforming curated corpora with web data, and web data only. arXiv preprint arXiv:2306.01116 (2023). +[270] Bo Peng, Eric Alcaide, Quentin Anthony, Alon Albalak, Samuel Arcadinho, Stella Biderman, Huanqi Cao, Xin Cheng, Michael Chung, Leon Derczynski, Xingjian Du, Matteo Grella, Kranthi Gv, Xuzheng He, Haowen Hou, Przemyslaw Kazienko, Jan Kocon, Jiaming Kong, Bartłomiej Koptyra, Hayden Lau, Jiaju Lin, Krishna Sri Ipsit Mantri, Ferdinand Mom, Atsushi Saito, Guangyu Song, Xiangru Tang, Johan Wind, Stanisław Woźniak, Zhenyuan Zhang, Qinghua Zhou, Jian Zhu, and Rui-Jie Zhu. 2023. RWKV: Reinventing RNNs for the Transformer Era. In Findings of the Association for Computational Linguistics: EMNLP 2023, Houda Bouamor, Juan Pino, and Kalika Bali (Eds.). Association for Computational Linguistics, Singapore, 14048–14077. https://doi.org/10.18653/v1/2023.findings-emnlp.936 +[271] Baolin Peng, Chunyuan Li, Pengcheng He, Michel Galley, and Jianfeng Gao. 2023. Instruction tuning with gpt-4. arXiv preprint arXiv:2304.03277 (2023). +[272] Zhiyuan Peng, Xuyang Wu, Qifan Wang, and Yi Fang. 2023. Soft prompt tuning for augmenting dense retrieval with large language models. arXiv preprint arXiv:2307.08303 (2023). +[273] Ethan Perez, Sam Ringer, Kamile Lukosiute, Karina Nguyen, Edwin Chen, Scott Heiner, Craig Pettit, Catherine Olsson, Sandipan Kundu, Saurav Kadavath, Andy Jones, Anna Chen, Benjamin Mann, Brian Israel, Bryan Seethor, Cameron McKinnon, Christopher Olah, Da Yan, Daniela Amodei, Dario Amodei, Dawn Drain, Dustin Li, Eli Tran-Johnson, Guro Khundadze, Jackson Kernion, James Landis, Jamie Kerr, Jared Mueller, Jeeyoon Hyun, Joshua Landau, Kamal Ndousse, Landon Goldberg, Liane Lovitt, Martin Lucas, Michael Sellitto, Miranda Zhang, Neerav Kingsland, Nelson Elhage, Nicholas Joseph, Noemi Mercado, Nova DasSarma, Oliver Rausch, Robin Larson, Sam McCandlish, Scott Johnston, Shauna Kravec, Sheer El Showk, Tamera Lanham, Timothy Telleen-Lawton, Tom Brown, Tom Henighan, Tristan Hume, Yuntao Bai, Zac Hatfield-Dodds, Jack Clark, Samuel R. Bowman, Amanda Askell, Roger Grosse, Danny Hernandez, Deep Ganguli, Evan Hubinger, Nicholas Schiefer, and Jared Kaplan. 2023. Discovering Language Model Behaviors with Model-Written Evaluations. In Findings of the Association for Computational Linguistics: ACL 2023. 13387–13434. +[274] Pascal Pfeiffer, Philipp Singer, Yauhen Babakhin, Gabor Fodor, Nischay Dhankhar, and Sri Satish Ambati. 2024. H2O-Danube3 Technical Report. arXiv preprint arXiv:2407.09276 (2024). +[275] Karmvir Singh Phogat, Sai Akhil Puranam, Sridhar Dasaratha, Chetan Harsha, and Shashishekar Ramakrishna. 2024. Fine-tuning Smaller Language Models for Question Answering over Financial Documents. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 10528–10548. https://doi.org/10.18653/v1/2024.findings-emnlp.617 +[276] Reiner Pope, Sholto Douglas, Aakanksha Chowdhery, Jacob Devlin, James Bradbury, Jonathan Heek, Kefan Xiao, Shivani Agrawal, and Jeff Dean. 2023. Efficiently scaling transformer inference. Proceedings of Machine Learning and Systems 5 (2023), 606–624. +[277] Ofir Press, Noah Smith, and Mike Lewis. 2022. Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation. In International Conference on Learning Representations. https://openreview.net/forum?id=R8sQPpGCv0 +[278] Ruiyang Qin, Jun Xia, Zhenge Jia, Meng Jiang, Ahmed Abbasi, Peipei Zhou, Jingtong Hu, and Yiyu Shi. 2023. Enabling on-device large language model personalization with self-supervised data selection and synthesis. arXiv preprint arXiv:2311.12275 (2023). +[279] Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, Yankai Lin, Xin Cong, Xiangru Tang, Bill Qian, et al. [n. d.]. ToolLLM: Facilitating Large Language Models to Master $1 6 0 0 0 +$ Real-world APIs. In The Twelfth International Conference on Learning Representations. +[280] Haohao $\mathrm { Q u } .$ , Liangbo Ning, Rui An, Wenqi Fan, Tyler Derr, Hui Liu, Xin Xu, and Qing Li. 2024. A survey of mamba. arXiv preprint arXiv:2408.01129 (2024). +[281] Haohao Qu, Yifeng Zhang, Liangbo Ning, Wenqi Fan, and Qing Li. 2024. Ssd4rec: a structured state space duality model for efficient sequential recommendation. arXiv preprint arXiv:2409.01192 (2024). +[282] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. 2019. Language models are unsupervised multitask learners. OpenAI blog 1, 8 (2019), 9. +[283] Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. 2024. Direct preference optimization: Your language model is secretly a reward model. Advances in Neural Information Processing Systems 36 (2024). +[284] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of machine learning research 21, 140 (2020), 1–67. +[285] Mohammad Wali Ur Rahman, Murad Mehrab Abrar, Hunter Gibbons Copening, Salim Hariri, Sicong Shao, Pratik Satam, and Soheil Salehi. 2023. Quantized Transformer Language Model Implementations on Edge Devices. arXiv:2310.03971 [cs.CL] https://arxiv.org/abs/2310.03971 +[286] Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, and Yuxiong He. 2020. Zero: Memory optimizations toward training trillion parameter models. In SC20: International Conference for High Performance Computing, Networking, Storage and Analysis. IEEE, 1–16. +[287] Ori Ram, Yoav Levine, Itay Dalmedigos, Dor Muhlgay, Amnon Shashua, Kevin Leyton-Brown, and Yoav Shoham. 2023. In-Context RetrievalAugmented Language Models. Transactions of the Association for Computational Linguistics 11 (2023), 1316–1331. +[288] Krithika Ramesh, Arnav Chavan, Shrey Pandit, and Sunayana Sitaram. 2023. A Comparative Study on the Impact of Model Compression Techniques on Fairness in Language Models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 15762–15782. https://aclanthology.org/2023.acl-long.878 +[289] Al Mamunur Rashid, George Karypis, and John Riedl. 2008. Learning preferences of new users in recommender systems: an information theoretic approach. Acm Sigkdd Explorations Newsletter 10, 2 (2008), 90–100. +[290] Christopher Rawles, Alice Li, Daniel Rodriguez, Oriana Riva, and Timothy Lillicrap. 2024. Androidinthewild: A large-scale dataset for android device control. Advances in Neural Information Processing Systems 36 (2024). +[291] Stephen Robertson, Hugo Zaragoza, et al. 2009. The probabilistic relevance framework: BM25 and beyond. Foundations and Trends® in Information Retrieval 3, 4 (2009), 333–389. +[292] Baptiste Roziere, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Tal Remez, Jérémy Rapin, et al. 2023. Code llama: Open foundation models for code. arXiv preprint arXiv:2308.12950 (2023). +[293] Caitlin Sadowski and Greg Levin. 2007. Simhash: Hash-based similarity detection. +[294] Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2021. Winogrande: An adversarial winograd schema challenge at scale. Commun. ACM 64, 9 (2021), 99–106. +[295] Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. 2024. Toolformer: Language models can teach themselves to use tools. Advances in Neural Information Processing Systems 36 (2024). +[296] Rico Sennrich, Jannis Vamvas, and Alireza Mohammadshahi. 2023. Mitigating Hallucinations and Off-target Machine Translation with SourceContrastive and Language-Contrastive Decoding. arXiv preprint arXiv:2309.07098 (2023). +[297] Zeyang Sha and Yang Zhang. 2024. Prompt stealing attacks against large language models. arXiv preprint arXiv:2402.12959 (2024). +[298] Yu Shang, Yu Li, Fengli Xu, and Yong Li. 2024. Synergy-of-Thoughts: Eliciting Efficient Reasoning in Hybrid Language Models. arXiv preprint arXiv:2402.02563 (2024). +[299] Yuzhang Shang, Zhihang Yuan, Qiang Wu, and Zhen Dong. 2023. PB-LLM: Partially Binarized Large Language Models. arXiv:2310.00034 [cs.LG] https://arxiv.org/abs/2310.00034 +[300] Hang Shao, Bei Liu, and Yanmin Qian. 2024. One-shot sensitivity-aware mixed sparsity pruning for large language models. In ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 11296–11300. +[301] Mrinank Sharma, Meg Tong, Tomasz Korbak, David Duvenaud, Amanda Askell, Samuel R Bowman, Newton Cheng, Esin Durmus, Zac HatfieldDodds, Scott R Johnston, et al. 2023. Towards understanding sycophancy in language models. arXiv preprint arXiv:2310.13548 (2023). +[302] Erfan Shayegani, Md Abdullah Al Mamun, Yu Fu, Pedram Zaree, Yue Dong, and Nael Abu-Ghazaleh. 2023. Survey of vulnerabilities in large language models revealed by adversarial attacks. arXiv preprint arXiv:2310.10844 (2023). +[303] Noam Shazeer. 2019. Fast transformer decoding: One write-head is all you need. arXiv preprint arXiv:1911.02150 (2019). +[304] Noam Shazeer. 2020. Glu variants improve transformer. arXiv preprint arXiv:2002.05202 (2020). +[305] Bowen Shen, Zheng Lin, Yuanxin Liu, Zhengxiao Liu, Lei Wang, and Weiping Wang. 2022. COST-EFF: Collaborative Optimization of Spatial and Temporal Efficiency with Slenderized Multi-exit Language Models. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang (Eds.). Association for Computational Linguistics, Abu Dhabi, United Arab Emirates, 1719–1730. https://doi.org/10.18653/v1/2022.emnlp-main.112 +[306] Bowen Shen, Zheng Lin, Daren Zha, Wei Liu, Jian Luan, Bin Wang, and Weiping Wang. 2024. Pruning Large Language Models to Intra-module Lowrank Architecture with Transitional Activations. In Findings of the Association for Computational Linguistics: ACL 2024, Lun-Wei Ku, Andre Martins, and Vivek Srikumar (Eds.). Association for Computational Linguistics, Bangkok, Thailand, 9781–9793. https://doi.org/10.18653/v1/2024.findings acl.582 +[307] Weizhou Shen, Chenliang Li, Hongzhan Chen, Ming Yan, Xiaojun Quan, Hehong Chen, Ji Zhang, and Fei Huang. 2024. Small LLMs Are Weak Tool Learners: A Multi-LLM Agent. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, Miami, Florida, USA, 16658–16680. https://doi.org/10.18653/v1/2024.emnlp-main.929 +[308] Ying Sheng, Lianmin Zheng, Binhang Yuan, Zhuohan Li, Max Ryabinin, Beidi Chen, Percy Liang, Christopher Ré, Ion Stoica, and Ce Zhang. 2023. Flexgen: High-throughput generative inference of large language models with a single gpu. In International Conference on Machine Learning. PMLR, 31094–31116. +[309] Wentao Shi, Xiangnan He, Yang Zhang, Chongming Gao, Xinyue Li, Jizhi Zhang, Qifan Wang, and Fuli Feng. 2024. Large language models are learnable planners for long-term recommendation. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval. 1893–1903. +[310] Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. 2019. Megatron-lm: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053 (2019). +[311] Parshin Shojaee, Kazem Meidani, Shashank Gupta, Amir Barati Farimani, and Chandan K Reddy. 2024. Llm-sr: Scientific equation discovery via programming with large language models. arXiv preprint arXiv:2404.18400 (2024). +[312] Manli Shu, Weili Nie, De-An Huang, Zhiding Yu, Tom Goldstein, Anima Anandkumar, and Chaowei Xiao. 2022. Test-time prompt tuning for zero-shot generalization in vision-language models. Advances in Neural Information Processing Systems 35 (2022), 14274–14289. +[313] Karan Singhal, Shekoofeh Azizi, Tao Tu, S Sara Mahdavi, Jason Wei, Hyung Won Chung, Nathan Scales, Ajay Tanwani, Heather Cole-Lewis, Stephen Pfohl, et al. 2023. Large language models encode clinical knowledge. Nature 620, 7972 (2023), 172–180. +[314] Daria Soboleva, Faisal Al-Khateeb, Robert Myers, Jacob R Steeves, Joel Hestness, and Nolan Dey. 2023. SlimPajama: A 627B token cleaned and deduplicated version of RedPajama. https://cerebras.ai/blog/slimpajama-a-627b-token-cleaned-and-deduplicated-version-of-redpajama. https://huggingface.co/datasets/cerebras/SlimPajama-627B +[315] Luca Soldaini, Rodney Kinney, Akshita Bhagia, Dustin Schwenk, David Atkinson, Russell Authur, Ben Bogin, Khyathi Chandu, Jennifer Dumas, Yanai Elazar, Valentin Hofmann, Ananya Harsh Jha, Sachin Kumar, Li Lucy, Xinxi Lyu, Nathan Lambert, Ian Magnusson, Jacob Morrison, Niklas Muennighoff, Aakanksha Naik, Crystal Nam, Matthew E. Peters, Abhilasha Ravichander, Kyle Richardson, Zejiang Shen, Emma Strubell, Nishant Subramani, Oyvind Tafjord, Pete Walsh, Luke Zettlemoyer, Noah A. Smith, Hannaneh Hajishirzi, Iz Beltagy, Dirk Groeneveld, Jesse Dodge, and Kyle Lo. 2024. Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Research. arXiv preprint (2024). +[316] Xinying Song, Alex Salcianu, Yang Song, Dave Dopson, and Denny Zhou. 2021. Fast WordPiece Tokenization. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. 2089–2103. +[317] Sofia Eleni Spatharioti, David M Rothschild, Daniel G Goldstein, and Jake M Hofman. 2023. Comparing traditional and llm-based search for consumer choice: A randomized experiment. arXiv preprint arXiv:2307.03744 (2023). +[318] Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. 2024. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing 568 (2024), 127063. +[319] Liangtai Sun, Yang Han, Zihan Zhao, Da Ma, Zhennan Shen, Baocai Chen, Lu Chen, and Kai Yu. 2024. Scieval: A multi-level large language model evaluation benchmark for scientific research. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38. 19053–19061. +[320] Lichao Sun, Yue Huang, Haoran Wang, Siyuan Wu, Qihui Zhang, Chujie Gao, Yixin Huang, Wenhan Lyu, Yixuan Zhang, Xiner Li, et al. 2024. Trustllm: Trustworthiness in large language models. arXiv preprint arXiv:2401.05561 (2024). +[321] Mingjie Sun, Zhuang Liu, Anna Bair, and J Zico Kolter. 2024. A Simple and Effective Pruning Approach for Large Language Models. In Proceedings of the Twelfth International Conference on Learning Representations, ICLR. +[322] Zhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu, Yiming Yang, and Denny Zhou. 2020. Mobilebert: a compact task-agnostic bert for resource-limited devices. arXiv preprint arXiv:2004.02984 (2020). +[323] Swabha Swayamdipta, Roy Schwartz, Nicholas Lourie, Yizhong Wang, Hannaneh Hajishirzi, Noah A Smith, and Yejin Choi. 2020. Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamics. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP). 9275–9293. +[324] Alon Talmor and Jonathan Berant. 2018. The Web as a Knowledge-Base for Answering Complex Questions. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), Marilyn Walker, Heng Ji, and Amanda Stent (Eds.). Association for Computational Linguistics, New Orleans, Louisiana, 641–651. https://doi.org/10.18653/v1/N18-1059 +[325] Jiejun Tan, Zhicheng Dou, Yutao Zhu, Peidong Guo, Kun Fang, and Ji-Rong Wen. 2024. Small Models, Big Insights: Leveraging Slim Proxy Models To Decide When and What to Retrieve for LLMs. arXiv preprint arXiv:2402.12052 (2024). +[326] Qiaoyu Tang, Ziliang Deng, Hongyu Lin, Xianpei Han, Qiao Liang, Boxi Cao, and Le Sun. 2023. Toolalpaca: Generalized tool learning for language models with 3000 simulated cases. arXiv preprint arXiv:2306.05301 (2023). +[327] Xuemei Tang, Jun Wang, and Qi Su. 2024. Small Language Model Is a Good Guide for Large Language Model in Chinese Entity Relation Extraction. arXiv preprint arXiv:2402.14373 (2024). +[328] Yehui Tang, Fangcheng Liu, Yunsheng Ni, Yuchuan Tian, Zheyuan Bai, Yi-Qi Hu, Sichao Liu, Shangling Jui, Kai Han, and Yunhe Wang. 2024. Rethinking optimization and architecture for tiny language models. arXiv preprint arXiv:2402.02791 (2024). +[329] Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. Stanford Alpaca: An Instruction-following LLaMA model. https://github.com/tatsu-lab/stanford_alpaca. +[330] Ross Taylor, Marcin Kardas, Guillem Cucurull, Thomas Scialom, Anthony Hartshorn, Elvis Saravia, Andrew Poulton, Viktor Kerkez, and Robert Stojnic. 2022. Galactica: A large language model for science. arXiv preprint arXiv:2211.09085 (2022). +[331] CodeGemma Team. 2024. Codegemma: Open code models based on gemma. arXiv preprint arXiv:2406.11409 (2024). +[332] Gemma Team, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre, Morgane Rivière, Mihir Sanjay Kale, Juliette Love, et al. 2024. Gemma: Open models based on gemini research and technology. arXiv preprint arXiv:2403.08295 (2024). +[333] Gemma Team, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhupatiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, et al. 2024. Gemma 2: Improving open language models at a practical size. arXiv preprint arXiv:2408.00118 (2024). +[334] TensorOpera Team. 2024. TensorOpera Unveils Fox Foundation Model: A Pioneering Small Language Model (SLM) for Cloud and Edge. https: //blog.tensoropera.ai/tensoropera-unveils-fox-foundation-model-a-pioneering-open-source-slm-leading-the-way-against-tech-giants/ Accessed: 2024-6-13. +[335] Surat Teerapittayanon, Bradley McDanel, and Hsiang-Tsung Kung. 2016. Branchynet: Fast inference via early exiting from deep neural networks. In 2016 23rd international conference on pattern recognition (ICPR). IEEE, 2464–2469. +[336] Omkar Thawakar, Ashmal Vayani, Salman Khan, Hisham Cholakal, Rao M Anwer, Michael Felsberg, Tim Baldwin, Eric P Xing, and Fahad Shahbaz Khan. 2024. Mobillama: Towards accurate and lightweight fully transparent gpt. arXiv preprint arXiv:2402.16840 (2024). +[337] Ye Tian, Baolin Peng, Linfeng Song, Lifeng Jin, Dian Yu, Haitao Mi, and Dong Yu. 2024. Toward Self-Improvement of LLMs via Imagination, Searching, and Criticizing. arXiv preprint arXivko2024distillm:2404.12253 (2024). +[338] Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971 (2023). +[339] Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288 (2023). +[340] Jonathan Tow, Marco Bellagente, Dakota Mahan, and Carlos Riquelme. [n. d.]. StableLM 3B 4E1T. [https://huggingface.co/stabilityai/stablelm-3b4e1t](https://huggingface.co/stabilityai/stablelm-3b-4e1t) +[341] Trieu H Trinh and Quoc V Le. 2018. A simple method for commonsense reasoning. arXiv preprint arXiv:1806.02847 (2018). +[342] Adina Trufinescu. 2024. Discover the New Multi-Lingual High-Quality Phi-3.5 SLMs. https://techcommunity.microsoft.com/t5/ai-azure-ai-servicesblog/discover-the-new-multi-lingual-high-quality-phi-3-5-slms/ba-p/4225280. +[343] Dennis Ulmer, Martin Gubri, Hwaran Lee, Sangdoo Yun, and Seong Joon Oh. 2024. Calibrating Large Language Models Using Their Generations Only. arXiv preprint arXiv:2403.05973 (2024). +[344] Sander Van Der Linden. 2022. Misinformation: susceptibility, spread, and interventions to immunize the public. Nature medicine 28, 3 (2022), 460–467. +[345] Chien Van Nguyen, Xuan Shen, Ryan Aponte, Yu Xia, Samyadeep Basu, Zhengmian Hu, Jian Chen, Mihir Parmar, Sasidhar Kunapuli, Joe Barrow, et al. 2024. A Survey of Small Language Models. arXiv preprint arXiv:2410.20011 (2024). +[346] A Vaswani. 2017. Attention is all you need. Advances in Neural Information Processing Systems (2017). +[347] Olga Veksler. 2023. Test time adaptation with regularized loss for weakly supervised salient object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 7360–7369. +[348] Paul Voigt and Axel Von dem Bussche. 2017. The eu general data protection regulation (gdpr). A Practical Guide, 1st Ed., Cham: Springer International Publishing 10, 3152676 (2017), 10–5555. +[349] Yuxian Wan, Wenlin Zhang, and Zhen Li. 2023. Multi-Task Feature Self-Distillation for Semi-Supervised Machine Translation. In International Conference on Neural Information Processing. Springer, 238–254. +[350] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. 2018. GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP. 353–355. +[351] Boxin Wang, Weixin Chen, Hengzhi Pei, Chulin Xie, Mintong Kang, Chenhui Zhang, Chejian Xu, Zidi Xiong, Ritik Dutta, Rylan Schaeffer, Sang T. Truong, Simran Arora, Mantas Mazeika, Dan Hendrycks, Zinan Lin, Yu Cheng, Sanmi Koyejo, Dawn Song, and Bo Li. 2023. DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Models. In Proceedings of the Annual Conference on Neural Information Processing Systems. +[352] Boxin Wang, Chejian Xu, Shuohang Wang, Zhe Gan, Yu Cheng, Jianfeng Gao, Ahmed Hassan Awadallah, and Bo Li. 2021. Adversarial glue: A multi-task benchmark for robustness evaluation of language models. arXiv preprint arXiv:2111.02840 (2021). +[353] Fali Wang, Runxue Bao, Suhang Wang, Wenchao Yu, Yanchi Liu, Wei Cheng, and Haifeng Chen. 2024. InfuserKI: Enhancing Large Language Models with Knowledge Graphs via Infuser-Guided Knowledge Integration. arXiv preprint arXiv:2402.11441 (2024). +[354] Fali Wang, Zheng Lin, Zhengxiao Liu, Mingyu Zheng, Lei Wang, and Daren Zha. 2021. Macrobert: Maximizing certified region of bert to adversarial word substitutions. In Database Systems for Advanced Applications: 26th International Conference, DASFAA 2021, Taipei, Taiwan, April 11–14, 2021, Proceedings, Part II 26. Springer, 253–261. +[355] Guan Wang, Sijie Cheng, Qiying Yu, and Changling Liu. 2023. OpenLLMs: Less is More for Open-source Models. https://doi.org/10.5281/zenodo.8105775 +[356] Guan Wang, Sijie Cheng, Xianyuan Zhan, Xiangang Li, Sen Song, and Yang Liu. 2024. OpenChat: Advancing Open-source Language Models with Mixed-Quality Data. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=AOJyfhWYHf +[357] Hongyu Wang, Shuming Ma, Li Dong, Shaohan Huang, Huaijie Wang, Lingxiao Ma, Fan Yang, Ruiping Wang, Yi Wu, and Furu Wei. 2023. Bitnet: Scaling 1-bit transformers for large language models. arXiv preprint arXiv:2310.11453 (2023). +[358] Jindong Wang, HU Xixu, Wenxin Hou, Hao Chen, Runkai Zheng, Yidong Wang, Linyi Yang, Wei Ye, Haojun Huang, Xiubo Geng, et al. [n. d.]. On the Robustness of ChatGPT: An Adversarial and Out-of-distribution Perspective. In ICLR 2023 Workshop on Trustworthy and Reliable Large-Scale Machine Learning Models. +[359] Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, and Furu Wei. 2024. Improving Text Embeddings with Large Language Models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 11897–11916. https://doi.org/10.18653/v1/2024.acl-long.642 +[360] Peifeng Wang, Zhengyang Wang, Zheng Li, Yifan Gao, Bing Yin, and Xiang Ren. 2023. SCOTT: Self-Consistent Chain-of-Thought Distillation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 5546–5558. +[361] Wenxiao Wang, Wei Chen, Yicong Luo, Yongliu Long, Zhengkai Lin, Liye Zhang, Binbin Lin, Deng Cai, and Xiaofei He. 2024. Model compression and efficient inference for large language models: A survey. arXiv preprint arXiv:2402.09748 (2024). +[362] Wenhui Wang, Furu Wei, Li Dong, Hangbo Bao, Nan Yang, and Ming Zhou. 2020. MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformers. arXiv:2002.10957 [cs.CL] https://arxiv.org/abs/2002.10957 +[363] Xiaoxuan Wang, Ziniu Hu, Pan Lu, Yanqiao Zhu, Jieyu Zhang, Satyen Subramaniam, Arjun R Loomba, Shichang Zhang, Yizhou Sun, and Wei Wang. 2024. SciBench: Evaluating College-Level Scientific Problem-Solving Abilities of Large Language Models. In Forty-first International Conference on Machine Learning. https://openreview.net/forum?id=bq1JEgioLr +[364] Yuxia Wang, Haonan Li, Xudong Han, Preslav Nakov, and Timothy Baldwin. 2024. Do-Not-Answer: Evaluating Safeguards in LLMs. In Findings of the Association for Computational Linguistics: EACL 2024. Association for Computational Linguistics, 896–911. https://aclanthology.org/2024.findingseacl.61 +[365] Yile Wang, Peng Li, Maosong Sun, and Yang Liu. 2023. Self-Knowledge Guided Retrieval Augmentation for Large Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2023. 10303–10315. +[366] Yubo Wang, Xueguang Ma, and Wenhu Chen. 2023. Augmenting black-box llms with medical textbooks for clinical question answering. arXiv preprint arXiv:2309.02233 (2023). +[367] Yizhong Wang, Swaroop Mishra, Pegah Alipoormolabashi, Yeganeh Kordi, Amirreza Mirzaei, Atharva Naik, Arjun Ashok, Arut Selvan Dhanasekaran, Anjana Arunkumar, David Stap, Eshaan Pathak, Giannis Karamanolakis, Haizhi Lai, Ishan Purohit, Ishani Mondal, Jacob Anderson, Kirby Kuznia, Krima Doshi, Kuntal Kumar Pal, Maitreya Patel, Mehrad Moradshahi, Mihir Parmar, Mirali Purohit, Neeraj Varshney, Phani Rohitha Kaza, Pulkit Verma, Ravsehaj Singh Puri, Rushang Karia, Savan Doshi, Shailaja Keyur Sampat, Siddhartha Mishra, Sujan Reddy A, Sumanta Patro, Tanay Dixit, and Xudong Shen. 2022. Super-NaturalInstructions: Generalization via Declarative Instructions on $1 6 0 0 +$ NLP Tasks. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 5085–5109. https://doi.org/10.18653/v1/2022.emnlp-main.340 +[368] Yuyan Wang, Mohit Sharma, Can Xu, Sriraj Badam, Qian Sun, Lee Richardson, Lisa Chung, Ed H. Chi, and Minmin Chen. 2022. Surrogate for Long-Term User Experience in Recommender Systems. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. Association for Computing Machinery, 4100–4109. https://doi.org/10.1145/3534678.3539073 +[369] Yuling Wang, Changxin Tian, Binbin Hu, Yanhua Yu, Ziqi Liu, Zhiqiang Zhang, Jun Zhou, Liang Pang, and Xiao Wang. 2024. Can Small Language Models be Good Reasoners for Sequential Recommendation?. In Proceedings of the ACM on Web Conference 2024. 3876–3887. +[370] Yuqing Wang and Yun Zhao. 2024. RUPBench: Benchmarking Reasoning Under Perturbations for Robustness Evaluation in Large Language Models. arXiv preprint arXiv:2406.11020 (2024). +[371] Zhepeng Wang, Runxue Bao, Yawen Wu, Jackson Taylor, Cao Xiao, Feng Zheng, Weiwen Jiang, Shangqian Gao, and Yanfu Zhang. 2024. Unlocking Memorization in Large Language Models with Dynamic Soft Prompting. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 9782–9796. https://doi.org/10.18653/v1/2024.emnlp-main.546 +[372] Jason Wei, Maarten Bosma, Vincent Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V Le. 2022. Finetuned Language Models are Zero-Shot Learners. In International Conference on Learning Representations. https://openreview.net/forum?id=gEZrGCozdqR +[373] Yuxiang Wei, Zhe Wang, Jiawei Liu, Yifeng Ding, and Lingming Zhang. 2023. Magicoder: Source code is all you need. arXiv preprint arXiv:2312.02120 (2023). +[374] Johannes Welbl, Amelia Glaese, Jonathan Uesato, Sumanth Dathathri, John Mellor, Lisa Anne Hendricks, Kirsty Anderson, Pushmeet Kohli, Ben Coppin, and Po-Sen Huang. 2021. Challenges in Detoxifying Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2021. Association for Computational Linguistics, 2447–2469. https://doi.org/10.18653/v1/2021.findings-emnlp.210 +[375] Johannes Welbl, Nelson F Liu, and Matt Gardner. 2017. Crowdsourcing Multiple Choice Science Questions. In Proceedings of the 3rd Workshop on Noisy User-generated Text. 94–106. +[376] Hao Wen, Yuanchun Li, Guohong Liu, Shanhui Zhao, Tao Yu, Toby Jia-Jun Li, Shiqi Jiang, Yunhao Liu, Yaqin Zhang, and Yunxin Liu. 2024. AutoDroid: LLM-powered Task Automation in Android. arXiv:2308.15272 [cs.AI] https://arxiv.org/abs/2308.15272 +[377] Alexander Wettig, Aatmik Gupta, Saumya Malik, and Danqi Chen. 2024. QuRating: Selecting High-Quality Data for Training Language Models. In Forty-first International Conference on Machine Learning. https://openreview.net/forum?id=GLGYYqPwjy +[378] Adina Williams, Nikita Nangia, and Samuel Bowman. 2018. A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers). Association for Computational Linguistics, New Orleans, Louisiana, 1112–1122. https://doi.org/10.18653/v1/N18-1101 +[379] Chuhan Wu, Fangzhao Wu, Tao Qi, and Yongfeng Huang. 2021. Empowering news recommendation with pre-trained language models. In Proceedings of the 44th international ACM SIGIR conference on research and development in information retrieval. 1652–1656. +[380] Minghao Wu, Abdul Waheed, Chiyu Zhang, Muhammad Abdul-Mageed, and Alham Fikri Aji. 2024. LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale Instructions. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), Yvette Graham and Matthew Purver (Eds.). Association for Computational Linguistics, St. Julian’s, Malta, 944–964. https://aclanthology.org/2024.eacl-long.57 +[381] Taiqiang Wu, Cheng Hou, Shanshan Lao, Jiayi Li, Ngai Wong, Zhe Zhao, and Yujiu Yang. 2024. Weight-Inherited Distillation for Task-Agnostic BERT Compression. In Findings of the Association for Computational Linguistics: NAACL 2024, Kevin Duh, Helena Gomez, and Steven Bethard (Eds.). Association for Computational Linguistics, Mexico City, Mexico, 13–28. https://doi.org/10.18653/v1/2024.findings-naacl.2 +[382] Xuansheng Wu, Huachi Zhou, Yucheng Shi, Wenlin Yao, Xiao Huang, and Ninghao Liu. 2024. Could Small Language Models Serve as Recommenders? Towards Data-centric Cold-start Recommendation. In Proceedings of the ACM on Web Conference 2024. 3566–3575. +[383] Zhuofeng Wu, He Bai, Aonan Zhang, Jiatao Gu, VG Vydiswaran, Navdeep Jaitly, and Yizhe Zhang. 2024. Divide-or-Conquer? Which Part Should You Distill Your LLM? arXiv preprint arXiv:2402.15000 (2024). +[384] Nuwa Xi, Yuhan Chen, Sendong Zhao, Haochun Wang, Bing Qin, and Ting Liu. 2024. AS-ES Learning: Towards Efficient CoT Learning in Small Models. arXiv preprint arXiv:2403.01969 (2024). +[385] Mengzhou Xia, Tianyu Gao, Zhiyuan Zeng, and Danqi Chen. 2024. Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=09iOdaeOzp +[386] Guangxuan Xiao, Ji Lin, Mickael Seznec, Hao Wu, Julien Demouth, and Song Han. 2023. Smoothquant: Accurate and efficient post-training quantization for large language models. In International Conference on Machine Learning. PMLR, 38087–38099. +[387] Tinghao Xie, Xiangyu Qi, Yi Zeng, Yangsibo Huang, Udari Madhushani Sehwag, Kaixuan Huang, Luxi He, Boyi Wei, Dacheng Li, Ying Sheng, et al. 2024. Sorry-bench: Systematically evaluating large language model safety refusal behaviors. arXiv preprint arXiv:2406.14598 (2024). +[388] Tong Xie, Yuwei Wan, Wei Huang, Zhenyu Yin, Yixuan Liu, Shaozhou Wang, Qingyuan Linghu, Chunyu Kit, Clara Grazian, Wenjie Zhang, et al. 2023. Darwin series: Domain specific large language models for natural science. arXiv preprint arXiv:2308.13565 (2023). +[389] Weikai Xie, Li Zhang, Shihe Wang, Rongjie Yi, and Mengwei Xu. 2024. DroidCall: A Dataset for LLM-powered Android Intent Invocation. arXiv preprint arXiv:2412.00402 (2024). +[390] Xuan Xie, Jiayang Song, Zhehua Zhou, Yuheng Huang, Da Song, and Lei Ma. 2024. Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forward. arXiv preprint arXiv:2404.08517 (2024). +[391] Ji Xin, Raphael Tang, Yaoliang Yu, and Jimmy Lin. 2021. BERxiT: Early Exiting for BERT with Better Fine-Tuning and Extension to Regression. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, Paola Merlo, Jorg Tiedemann, and Reut Tsarfaty (Eds.). Association for Computational Linguistics, Online, 91–104. https://doi.org/10.18653/v1/2021.eacl-main.8 +[392] Can Xu, Qingfeng Sun, Kai Zheng, Xiubo Geng, Pu Zhao, Jiazhan Feng, Chongyang Tao, and Daxin Jiang. 2023. Wizardlm: Empowering large language models to follow complex instructions. arXiv preprint arXiv:2304.12244 (2023). +[393] Canwen Xu, Yichong Xu, Shuohang Wang, Yang Liu, Chenguang Zhu, and Julian McAuley. 2023. Small models are valuable plug-ins for large language models. arXiv preprint arXiv:2305.08848 (2023). +[394] Daliang Xu, Wangsong Yin, Xin Jin, Ying Zhang, Shiyun Wei, Mengwei Xu, and Xuanzhe Liu. 2023. LLMCad: Fast and Scalable On-device Large Language Model Inference. arXiv:2309.04255 [cs.NI] https://arxiv.org/abs/2309.04255 +[395] Daliang Xu, Hao Zhang, Liming Yang, Ruiqi Liu, Gang Huang, Mengwei Xu, and Xuanzhe Liu. 2024. Empowering 1000 tokens/second on-device llm prefilling with mllm-npu. arXiv preprint arXiv:2407.05858 (2024). +[396] Jiaming Xu, Peng Wang, Guanhua Tian, Bo Xu, Jun Zhao, Fangyuan Wang, and Hongwei Hao. 2015. Short Text Clustering via Convolutional Neural Networks. In Proceedings of the 1st Workshop on Vector Space Modeling for Natural Language Processing, Phil Blunsom, Shay Cohen, Paramveer Dhillon, and Percy Liang (Eds.). Association for Computational Linguistics, Denver, Colorado, 62–69. https://doi.org/10.3115/v1/W15-1509 +[397] Minrui Xu, Niyato Dusit, Jiawen Kang, Zehui Xiong, Shiwen Mao, Zhu Han, Dong In Kim, and Khaled B Letaief. 2024. When large language model agents meet 6G networks: Perception, grounding, and alignment. arXiv preprint arXiv:2401.07764 (2024). +[398] Mengwei Xu, Wangsong Yin, Dongqi Cai, Rongjie Yi, Daliang Xu, Qipeng Wang, Bingyang Wu, Yihao Zhao, Chen Yang, Shihe Wang, et al. 2024. A survey of resource-efficient llm and multimodal foundation models. arXiv preprint arXiv:2401.08092 (2024). +[399] Weijia Xu, Sweta Agrawal, Eleftheria Briakou, Marianna Martindale, and Marine Carpuat. 2023. Understanding and Detecting Hallucinations in Neural Machine Translation via Model Introspection. Transactions of the Association for Computational Linguistics 11 (2023), 546–564. +[400] Yuzhuang Xu, Xu Han, Zonghan Yang, Shuo Wang, Qingfu Zhu, Zhiyuan Liu, Weidong Liu, and Wanxiang Che. 2024. OneBit: Towards Extremely Low-bit Large Language Models. arXiv preprint arXiv:2402.11295 (2024). +[401] Shi-Qi Yan, Jia-Chen Gu, Yun Zhu, and Zhen-Hua Ling. 2024. Corrective retrieval augmented generation. arXiv preprint arXiv:2401.15884 (2024). +[402] An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, et al. 2024. Qwen2 technical report. arXiv preprint arXiv:2407.10671 (2024). +[403] Chuanpeng Yang, Wang Lu, Yao Zhu, Yidong Wang, Qian Chen, Chenlong Gao, Bingjie Yan, and Yiqiang Chen. 2024. Survey on Knowledge Distillation for Large Language Models: Methods, Evaluation, and Application. arXiv preprint arXiv:2407.01885 (2024). +[404] Cheng Yang, Yang Sui, Jinqi Xiao, Lingyi Huang, Yu Gong, Yuanlin Duan, Wenqi Jia, Miao Yin, Yu Cheng, and Bo Yuan. 2024. MoE- $\mathrm { I } ^ { 2 }$ : Compressing Mixture of Experts Models through Inter-Expert Pruning and Intra-Expert Low-Rank Decomposition. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 10456–10466. https://doi.org/10.18653/v1/2024.findings-emnlp.612 +[405] Kevin Yang, Dan Klein, Asli Celikyilmaz, Nanyun Peng, and Yuandong Tian. 2024. RLCD: Reinforcement Learning from Contrastive Distillation for LM Alignment. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=v3XXtxWKi6 +[406] Kailai Yang, Tianlin Zhang, Ziyan Kuang, Qianqian Xie, Jimin Huang, and Sophia Ananiadou. 2024. MentaLLaMA: interpretable mental health analysis on social media with large language models. In Proceedings of the ACM on Web Conference 2024. 4489–4500. +[407] Linyi Yang, Shuibai Zhang, Libo Qin, Yafu Li, Yidong Wang, Hanmeng Liu, Jindong Wang, Xing Xie, and Yue Zhang. 2023. GLUE-X: Evaluating Natural Language Understanding Models from an Out-of-Distribution Generalization Perspective. In Findings of the Association for Computational Linguistics: ACL 2023. Association for Computational Linguistics, Toronto, Canada, 12731–12750. https://doi.org/10.18653/v1/2023.findings-acl.806 +[408] Linyi Yang, Shuibai Zhang, Zhuohao Yu, Guangsheng Bao, Yidong Wang, Jindong Wang, Ruochen Xu, Wei Ye, Xing Xie, Weizhu Chen, and Yue Zhang. 2024. Supervised Knowledge Makes Large Language Models Better In-context Learners. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=bAMPOUF227 +[409] Runming Yang, Taiqiang Wu, Jiahao Wang, Pengfei Hu, Ngai Wong, and Yujiu Yang. 2024. LLM-Neo: Parameter Efficient Knowledge Distillation for Large Language Models. arXiv preprint arXiv:2411.06839 (2024). +[410] Yifei Yang, Zouying Cao, and Hai Zhao. 2024. Laco: Large language model pruning via layer collapse. arXiv preprint arXiv:2402.11187 (2024). +[411] Yu Yang, Siddhartha Mishra, Jeffrey N Chiang, and Baharan Mirzasoleiman. 2024. SmallToLarge (S2L): Scalable Data Selection for Fine-tuning Large Language Models by Summarizing Training Trajectories of Small Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=K9IGlMQpif +[412] Yizhe Yang, Huashan Sun, Jiawei Li, Runheng Liu, Yinghao Li, Yuhang Liu, Heyan Huang, and Yang Gao. 2023. Mindllm: Pre-training lightweight large language model from scratch, evaluations and domain applications. arXiv preprint arXiv:2310.15777 (2023). +[413] Zhou Yang, Zhaochun Ren, Wang Yufeng, Shizhong Peng, Haizhou Sun, Xiaofei Zhu, and Xiangwen Liao. 2024. Enhancing Empathetic Response Generation by Augmenting LLMs with Small-scale Empathetic Models. arXiv preprint arXiv:2402.11801 (2024). +[414] Yunzhi Yao, Shaohan Huang, Wenhui Wang, Li Dong, and Furu Wei. 2021. Adapt-and-distill: Developing small, fast and effective pretrained language models for domains. arXiv preprint arXiv:2106.13474 (2021), 460–470. +[415] Mert Yazan, Suzan Verberne, and Frederik Situmeang. 2024. The Impact of Quantization on Retrieval-Augmented Generation: An Analysis of Small LLMs. arXiv preprint arXiv:2406.10251 (2024). +[416] Rongjie Yi, Liwei Guo, Shiyun Wei, Ao Zhou, Shangguang Wang, and Mengwei Xu. 2023. EdgeMoE: Fast On-Device Inference of MoE-based Large Language Models. arXiv:2308.14352 [cs.LG] https://arxiv.org/abs/2308.14352 +[417] Rongjie Yi, Xiang Li, Weikai Xie, Zhenyan Lu, Chenghua Wang, Ao Zhou, Shangguang Wang, Xiwen Zhang, and Mengwei Xu. 2024. PhoneLM: an Efficient and Capable Small Language Model Family through Principled Pre-training. arXiv preprint arXiv:2411.05046 (2024). +[418] Wen-tau Yih, Matthew Richardson, Chris Meek, Ming-Wei Chang, and Jina Suh. 2016. The Value of Semantic Parse Labeling for Knowledge Base Question Answering. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), Katrin Erk and Noah A. Smith (Eds.). Association for Computational Linguistics, Berlin, Germany, 201–206. https://doi.org/10.18653/v1/P16-2033 +[419] Wangsong Yin, Mengwei Xu, Yuanchun Li, and Xuanzhe Liu. 2024. LLM as a System Service on Mobile Devices. arXiv:2403.11805 [cs.OS] https://arxiv.org/abs/2403.11805 +[420] Longhui Yu, Weisen Jiang, Han Shi, Jincheng YU, Zhengying Liu, Yu Zhang, James Kwok, Zhenguo Li, Adrian Weller, and Weiyang Liu. 2024. MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=N8N0hgNDRt +[421] Yue Yu, Wei Ping, Zihan Liu, Boxin Wang, Jiaxuan You, Chao Zhang, Mohammad Shoeybi, and Bryan Catanzaro. 2024. Rankrag: Unifying context ranking with retrieval-augmented generation in llms. arXiv preprint arXiv:2407.02485 (2024). +[422] Zhongzhi Yu, Zheng Wang, Yuhan Li, Haoran You, Ruijie Gao, Xiaoya Zhou, Sreenidhi Reedy Bommu, Yang Katie Zhao, and Yingyan Celine Lin. 2024. EDGE-LLM: Enabling Efficient Large Language Model Adaptation on Edge Devices via Layerwise Unified Compression and Adaptive Layer Tuning and Voting. arXiv preprint arXiv:2406.15758 (2024). +[423] Jinliang Yuan, Chen Yang, Dongqi Cai, Shihe Wang, Xin Yuan, Zeling Zhang, Xiang Li, Dingge Zhang, Hanzi Mei, Xianqing Jia, et al. 2024. Mobile Foundation Model as Firmware. In Proceedings of the 30th Annual International Conference on Mobile Computing and Networking. 279–295. +[424] Sha Yuan, Hanyu Zhao, Zhengxiao Du, Ming Ding, Xiao Liu, Yukuo Cen, Xu Zou, Zhilin Yang, and Jie Tang. 2021. Wudaocorpora: A super large-scale chinese corpora for pre-training language models. AI Open 2 (2021), 65–68. +[425] Xiaohan Yuan, Jinfeng Li, Dongxia Wang, Yuefeng Chen, Xiaofeng Mao, Longtao Huang, Hui Xue, Wenhai Wang, Kui Ren, and Jingyi Wang. 2024. S-Eval: Automatic and Adaptive Test Generation for Benchmarking Safety Evaluation of Large Language Models. arXiv preprint arXiv:2405.14191 (2024). +[426] Youliang Yuan, Wenxiang Jiao, Wenxuan Wang, Jen tse Huang, Pinjia He, Shuming Shi, and Zhaopeng Tu. 2024. GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id= MbfAK4s61A +[427] Shengbin Yue, Wei Chen, Siyuan Wang, Bingxuan Li, Chenchen Shen, Shujun Liu, Yuxuan Zhou, Yao Xiao, Song Yun, Wei Lin, et al. 2023. Disc-lawllm: Fine-tuning large language models for intelligent legal services. arXiv preprint arXiv:2309.11325 (2023). +[428] Xiang Yue, Xingwei Qu, Ge Zhang, Yao Fu, Wenhao Huang, Huan Sun, Yu Su, and Wenhu Chen. [n. d.]. Mammoth: Building math generalist models through hybrid instruction tuning, 2023. URL https://arxiv. org/abs/2309.05653 ([n. d.]). +[429] Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. 2019. HellaSwag: Can a Machine Really Finish Your Sentence?. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics. 4791–4800. +[430] Rowan Zellers, Ari Holtzman, Hannah Rashkin, Yonatan Bisk, Ali Farhadi, Franziska Roesner, and Yejin Choi. 2019. Defending against neural fake news. Advances in neural information processing systems 32 (2019). +[431] Biao Zhang and Rico Sennrich. 2019. Root mean square layer normalization. Advances in Neural Information Processing Systems 32 (2019). +[432] Cheng Zhang, Jianyi Cheng, George A Constantinides, and Yiren Zhao. 2024. LQER: Low-Rank Quantization Error Reconstruction for LLMs. arXiv preprint arXiv:2402.02446 (2024). +[433] Collin Zhang, John X Morris, and Vitaly Shmatikov. 2024. Extracting Prompts by Inverting LLM Outputs. arXiv preprint arXiv:2405.15012 (2024). +[434] Chen Zhang, Dawei Song, Zheyu Ye, and Yan Gao. 2023. Towards the law of capacity gap in distilling language models. arXiv preprint arXiv:2311.07052 (2023). +[435] Dan Zhang, Ziniu Hu, Sining Zhoubian, Zhengxiao Du, Kaiyu Yang, Zihan Wang, Yisong Yue, Yuxiao Dong, and Jie Tang. 2024. Sciglm: Training scientific language models with self-reflective instruction annotation and tuning. arXiv preprint arXiv:2401.07950 (2024). +[436] Di Zhang, Wei Liu, Qian Tan, Jingdan Chen, Hang Yan, Yuliang Yan, Jiatong Li, Weiran Huang, Xiangyu Yue, Dongzhan Zhou, et al. 2024. Chemllm: A chemical large language model. arXiv preprint arXiv:2402.06852 (2024). +[437] Kaiyan Zhang, Jianyu Wang, Ermo Hua, Biqing Qi, Ning Ding, and Bowen Zhou. 2024. Cogenesis: A framework collaborating large and small language models for secure context-aware instruction following. arXiv preprint arXiv:2403.03129 (2024). +[438] Mingyang Zhang, Hao Chen, Chunhua Shen, Zhen Yang, Linlin Ou, Xinyi Yu, and Bohan Zhuang. 2023. Loraprune: Pruning meets low-rank parameter-efficient fine-tuning. arXiv preprint arXiv:2305.18403 (2023). +[439] Peiyuan Zhang, Guangtao Zeng, Tianduo Wang, and Wei Lu. 2024. TinyLlama: An Open-Source Small Language Model. arXiv:2401.02385 [cs.CL] https://arxiv.org/abs/2401.02385 +[440] Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. 2022. Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068 (2022). +[441] Xinran Zhang, Xin Yuan, Yunwei Li, and Yanru Zhang. 2019. Cold-Start representation learning: A recommendation approach with bert4Movie and movie2Vec. In Proceedings of the 27th ACM International Conference on Multimedia. 2612–2616. +[442] Yingtao Zhang, Haoli Bai, Haokun Lin, Jialin Zhao, Lu Hou, and Carlo Vittorio Cannistraci. 2024. Plug-and-play: An efficient post-training pruning method for large language models. In The Twelfth International Conference on Learning Representations. +[443] Yiming Zhang, Nicholas Carlini, and Daphne Ippolito. 2024. Effective Prompt Extraction from Language Models. arXiv:2307.06865 [cs.CL] https://arxiv.org/abs/2307.06865 +[444] Zhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen, Lianmin Zheng, Ruisi Cai, Zhao Song, Yuandong Tian, Christopher Ré, Clark Barrett, et al. 2024. H2o: Heavy-hitter oracle for efficient generative inference of large language models. Advances in Neural Information Processing Systems 36 (2024). +[445] Zhiwei Zhang, Fali Wang, Xiaomin Li, Zongyu Wu, Xianfeng Tang, Hui Liu, Qi He, Wenpeng Yin, and Suhang Wang. 2024. Does your LLM truly unlearn? An embarrassingly simple approach to recover unlearned knowledge. arXiv preprint arXiv:2410.16454 (2024). +[446] Bowen Zhao, Hannaneh Hajishirzi, and Qingqing Cao. 2024. APT: Adaptive Pruning and Tuning Pretrained Language Models for Efficient Training and Inference. In Forty-first International Conference on Machine Learning. +[447] Junchen Zhao, Yurun Song, Simeng Liu, Ian G. Harris, and Sangeetha Abdu Jyothi. 2023. LinguaLinked: A Distributed Large Language Model Inference System for Mobile Devices. arXiv:2312.00388 [cs.LG] https://arxiv.org/abs/2312.00388 +[448] Juntao Zhao, Borui Wan, Yanghua Peng, Haibin Lin, and Chuan Wu. 2024. LLM-PQ: Serving LLM on Heterogeneous Clusters with Phase-Aware Partition and Adaptive Quantization. arXiv preprint arXiv:2403.01136 (2024). +[449] Kun Zhao, Bohao Yang, Chen Tang, Chenghua Lin, and Liang Zhan. 2024. SLIDE: A Framework Integrating Small and Large Language Models for Open-Domain Dialogues Evaluation. arXiv preprint arXiv:2405.15924 (2024). +[450] Theodore Zhao, Mu Wei, J Samuel Preston, and Hoifung Poon. 2023. Automatic calibration and error correction for large language models via pareto optimal self-supervision. arXiv preprint arXiv:2306.16564 (2023). +[451] Youpeng Zhao, Ming Lin, Huadong Tang, Qiang Wu, and Jun Wang. 2024. Merino: Entropy-driven Design for Generative Language Models on IoT Devices. arXiv:2403.07921 [cs.LG] https://arxiv.org/abs/2403.07921 +[452] Zhengyun Zhao, Qiao Jin, Fangyuan Chen, Tuorui Peng, and Sheng Yu. 2022. Pmc-patients: A large-scale dataset of patient summaries and relations for benchmarking retrieval-based clinical decision support systems. arXiv preprint arXiv:2202.13876 (2022). +[453] Zhanhui Zhou, Zhixuan Liu, Jie Liu, Zhichen Dong, Chao Yang, and Yu Qiao. 2024. Weak-to-Strong Search: Align Large Language Models via Searching over Small Language Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/ forum?id=dOJ6CqWDf1 +[454] Fengbin Zhu, Wenqiang Lei, Youcheng Huang, Chao Wang, Shuo Zhang, Jiancheng Lv, Fuli Feng, and Tat-Seng Chua. 2021. TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Finance. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). 3277–3287. +[455] Jiachen Zhu, Jianghao Lin, Xinyi Dai, Bo Chen, Rong Shan, Jieming Zhu, Ruiming Tang, Yong Yu, and Weinan Zhang. 2024. Lifelong Personalized Low-Rank Adaptation of Large Language Models for Recommendation. arXiv preprint arXiv:2408.03533 (2024). +[456] Kaijie Zhu, Jindong Wang, Jiaheng Zhou, Zichen Wang, Hao Chen, Yidong Wang, Linyi Yang, Wei Ye, Yue Zhang, Neil Zhenqiang Gong, et al. 2023. Promptbench: Towards evaluating the robustness of large language models on adversarial prompts. arXiv preprint arXiv:2306.04528 (2023). +[457] Xunyu Zhu, Jian Li, Yong Liu, Can Ma, and Weiping Wang. 2023. A survey on model compression for large language models. arXiv preprint arXiv:2308.07633 (2023). +[458] Yun Zhu, Yinxiao Liu, Felix Stahlberg, Shankar Kumar, Yu hui Chen, Liangchen Luo, Lei Shu, Renjie Liu, Jindong Chen, and Lei Meng. 2023. Towards an On-device Agent for Text Rewriting. arXiv:2308.11807 [cs.CL] https://arxiv.org/abs/2308.11807 +[459] Yuanyuan Zhuang and Jaekyeong Kim. 2021. A bert-based multi-criteria recommender system for hotel promotion management. Sustainability 13, 14 (2021), 8039. +[460] Terry Yue Zhuo, Yujin Huang, Chunyang Chen, and Zhenchang Xing. 2023. Red teaming chatgpt via jailbreaking: Bias, robustness, reliability and toxicity. arXiv preprint arXiv:2301.12867 (2023). +[461] Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J Zico Kolter, and Matt Fredrikson. 2023. Universal and transferable adversarial attacks on aligned language models. arXiv preprint arXiv:2307.15043 (2023). +[462] Lixin Zou, Weixue Lu, Yiding Liu, Hengyi Cai, Xiaokai Chu, Dehong Ma, Daiting Shi, Yu Sun, Zhicong Cheng, Simiu Gu, et al. 2022. Pre-trained language model-based retrieval and ranking for web search. ACM Transactions on the Web 17, 1 (2022), 1–36. +[463] Jingwei Zuo, Maksim Velikanov, Dhia Eddine Rhaiem, Ilyas Chahed, Younes Belkada, Guillaume Kunsch, and Hakim Hacid. 2024. Falcon mamba: The first competitive attention-free 7b language model. arXiv preprint arXiv:2410.05355 (2024). \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/Small Language Models in the Era of Large.md.backup b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/Small Language Models in the Era of Large.md.backup new file mode 100644 index 0000000000000000000000000000000000000000..edf3b4a7f0f5ef81b6c65a9252a513a32164aab4 --- /dev/null +++ b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/Small Language Models in the Era of Large.md.backup @@ -0,0 +1,1243 @@ +# A Comprehensive Survey of Small Language Models in the Era of Large Language Models: Techniques, Enhancements, Applications, Collaboration with LLMs, and Trustworthiness + +FALI WANG, ZHIWEI ZHANG, XIANREN ZHANG, and ZONGYU WU, The Pennsylvania State + +University, USA + +TZUHAO MO, University of Pennsylvania, USA +QIUHAO LU, WANJING WANG, and RUI LI, UTHealth Houston, USA +JUNJIE XU, The Pennsylvania State University, USA +XIANFENG TANG and QI HE, Amazon, USA +YAO MA, Rensselaer Polytechnic Institute, USA +MING HUANG, UTHealth Houston, USA +SUHANG WANG∗, The Pennsylvania State University, USA + +Large language models (LLMs) have demonstrated emergent abilities in text generation, question answering, and reasoning, facilitating various tasks and domains. Despite their proficiency in various tasks, LLMs like PaLM 540B and Llama-3.1 405B face limitations due to large parameter sizes and computational demands, often requiring cloud API use which raises privacy concerns, limits real-time applications on edge devices, and increases fine-tuning costs. Additionally, LLMs often underperform in specialized domains such as healthcare and law due to insufficient domain-specific knowledge, necessitating specialized models. Therefore, Small Language Models (SLMs) are increasingly favored for their low inference latency, cost-effectiveness, efficient development, and easy customization and adaptability. These models are particularly well-suited for resource-limited environments and domain knowledge acquisition, addressing LLMs’ challenges and proving ideal for applications that require localized data handling for privacy, minimal inference latency for efficiency, and domain knowledge acquisition through lightweight fine-tuning. The rising demand for SLMs has spurred extensive research and development. However, a comprehensive survey investigating issues related to the definition, acquisition, application, enhancement, and reliability of SLM remains lacking, prompting us to conduct a detailed survey on these topics. The definition of SLMs varies widely, thus to standardize, we propose defining SLMs by their capability to perform specialized tasks and suitability for resource-constrained settings, setting boundaries based on the minimal size for emergent abilities and the maximum size sustainable under resource constraints. For other aspects, we provide a taxonomy of relevant models/methods and develop general frameworks for each category to enhance and utilize SLMs effectively. We have compiled the collected SLM models and related methods on GitHub: https://github.com/FairyFali/SLMs-Survey. + +# CCS Concepts: $\cdot$ Computing methodologies Natural language generation. + +# ACM Reference Format: + +Fali Wang, Zhiwei Zhang, Xianren Zhang, Zongyu Wu, TzuHao Mo, Qiuhao Lu, Wanjing Wang, Rui Li, Junjie Xu, Xianfeng Tang, Qi He, Yao Ma, Ming Huang, and Suhang Wang. 2018. A Comprehensive Survey of Small Language Models in the Era of Large Language Models: Techniques, Enhancements, Applications, Collaboration with LLMs, and Trustworthiness. J. ACM 37, 4, Article 111 (August 2018), 78 pages. https://doi.org/XXXXXXX.XXXXXXX + +# 1 INTRODUCTION + +The evolution of neural language models (LMs) from BERT’s [83] pre-training and fine-tuning paradigm to T5’s [284] pre-training plus prompting approach, and finally to GPT-3’s [37] pre-training plus in-context learning, has greatly enhanced natural language processing (NLP). These advancements have broadened NLP’s application across various fields, including language understanding [350], programming [255, 331], recommendation systems [369], information retrieval [44, 152, 228, 317], mobile-device control [87], scientific discovery [311, 436], medical question answering [34, 366], and legal question answering [11]. In particular, the recent emergence of proprietary commercial models including ChatGPT, Bard, and Claude, and open-sourced models such as Llama [94, 338, 339] has led to rapid growth in the development of large language models (LLMs). Even though neural networks consistently improve on various tasks with longer training times, larger datasets, and increased model sizes—a phenomenon known as a neural scaling law [166], these models unpredictably exhibit a sudden acquisition of versatile abilities, termed "emergent ability," once they reach a critical scale threshold, thereby supporting the "larger is better" trend. This ability is not present in small-scale models. For instance, the latest Llama-3.1 model with 405 billion parameters performs better in dialogue, logical reasoning, and programming compared to the smaller 7B counterpart [94]. + +Despite their prowess in complex tasks, LLMs’ huge parameters and computational needs impose significant limitations, hindering their adoption in many real-world applications. For example, the LLaMa 3.1 model with 405 billion parameters [94], trained on 16K H100 GPUs for 54 days, requires about 202.5 GB of GPU memory using int4 precision and has large inference latency. These issues present several challenges in specific contexts: (1) LLMs are generally hosted in the cloud and used via cloud-based APIs due to the large GPU memory and computational cost. Users need to upload their data to query LLMs, raising data leakage and privacy concerns, especially in high-stake scenarios such as healthcare, finance, and e-commerce; (2) Driven by personal agents, on-device deployment is a critical requirement. Several factors, including cloud costs, latency, and privacy concerns, hinder the on-device processing of cloud-based LLMs, and direct deployment is impractical due to their high parameter and cache requirements, which often exceed the capabilities of devices such as mobile phones; (3) Their large parameter count can cause inference delays from seconds to minutes, unsuitable for real-time applications. For instance, Llama 2 7B takes approximately 84 seconds to process 100 tokens on benchmarks including HellaSwag, TruthfulQA, MMLU, and Arc_C when run on a smartphone equipped with a Snapdragon 685 processor [336]; (4) To boost performance in specialized domains such as healthcare and law, where generic LLMs underperform, LLMs are often fine-tuned. However, this process is computationally expensive due to their large size. (5) Though general-purpose LLMs are powerful, many real-world applications require only specific abilities and domain knowledge, deploying general-purpose LLMs would be a waste of resources and such LLMs often cannot match the performance of models tailored for specific tasks [52, 125, 156, 275, 369]. + +Recently, small language models (SLMs) have shown great potential in alleviating these issues while achieving performance comparable to LLMs for domain-specific problems [1, 26, 116, 143, 223, 274, 333, 336, 402, 439]. Owing to fewer parameters, SLMs excel in efficiency, cost, flexibility, and customization. They provide significant computational Manuscript submitted to ACM + +![](images/77c4c32c1adca3a145486fc4768303feb5c12b34b9a1d2be0efc16a27cd435fa.jpg) +Fig. 1. Overview of Small Language Models. + +![](images/df663fc0f0f03e94a63f985ffce187344c3d15b4e8e08b798ac33582aed8fd97.jpg) +Fig. 2. Download Statistics Last Month in Huggingface for LLMs with Various Model Sizes, obtained on October 7, 2024. + +savings in pre-training and inference with reduced memory and storage needs, which is vital for applications requiring efficient resource use. These small models are especially effective in resource-limited settings, performing well on low-power devices such as edge devices. Besides, SLMs improve on-device processing by enhancing privacy, security, response times, and personalization. This supports advanced personal assistants and cloud-independent applications, boosting energy efficiency and reducing carbon emissions. For example, the Llama 3.2 models (1B & 3B) demonstrate that local processing enables immediate execution of prompts and responses [7]. This approach protects privacy by keeping sensitive data such as patient health information (PHI), business data, personal messages, and calendar details local, enhancing confidentiality. It also allows for precise control over which queries are processed on-device versus those requiring cloud-based models. Therefore, small language models are gaining increasing attention as alternatives to LLMs, as indicated in Figure 2, which shows that SLMs are downloaded more frequently than larger models in the Hugging Face community, and Figure 3, which illustrates the growing popularity of SLM releases over time. + +Typically, LMs that exhibit emergent abilities are classified as LLMs. However, the categorization of SLMs remains unclear. Studies vary in their contexts: some define SLMs as models with fewer than one billion parameters [223], while others consider the term “small language model” relative to the larger counterparts [183, 327, 369], with no consensus on a unified definition in the current landscape of LLMs. Research suggests SLMs for mobile devices, typically possessing around 6GB of memory, consist of sub-billion parameter models [223], whereas others classify models with up to 10 billion parameters as small, noting their lack of emergent abilities [105]. Given their use in resource-constrained environments and for specific tasks, we propose a generalized definition: Given specific tasks and resource constraints, we define SLMs as falling within a range where the lower bound is the minimum size at which the model exhibits emergent abilities for a specialized task, and the upper bound is the largest size manageable within limited resource conditions. This definition integrates various perspectives and addresses factors related to mobile computing and capability thresholds. + +Due to the growing demand for SLMs, extensive literature has emerged on various aspects of SLMs. For example, several resource-efficient techniques [398] and training methods optimized for SLMs, such as quantization-aware training [221, 357, 400] and selective architectural component choices [223, 280, 336], aim to enhance performance in specific applications [36, 52, 275, 292, 382]. These methods have led to the development of numerous open-source, generalpurpose, and domain-specific SLMs [3, 26, 34, 333, 402, 435]. Beyond their inherent capabilities, SLMs can enhance LLMs by serving as modules or effective proxies [246, 297, 383, 399, 413, 450]. Furthermore, the complementary advantages of SLMs and LLMs can be leveraged collectively to better complete tasks [79, 204, 234, 307, 437]. Despite the commendable performance of SLMs, it is crucial not to overlook their credibility issues, such as the risks of adversarial attacks, producing hallucinations, and privacy breaches [88, 95, 138, 176, 176, 222, 248, 254, 273, 351, 354, 370, 371, 425, 445]. However, currently, there is no comprehensive survey thoroughly exploring these works on SLMs in the era of LLMs. Therefore, this paper offers the first comprehensive survey that analyzes various aspects of SLMs in the LLM era and their future directions. The overview structure of our paper is shown in Figure 1. To summarize, our major contributions are: + +![](images/fe7a5deacc121dd09cb056dc09b2fd7d8e528d9525f679eca295d180628c994a.jpg) +Fig. 3. A timeline of existing small language models. + +• In Section 3, we examine various techniques for improving the performance of SLMs, including training from scratch, fine-tuning, knowledge distillation, quantization, and leveraging LLM-enhancing technologies to optimize SLMs. +• In Section 4, we discuss the tasks that SLMs can enhance and the deployment strategies that enable models to fit within the resource constraints of edge devices while maintaining acceptable inference speed. +• In Section 5, we collect SLMs with fewer than 7 billion parameters across both general-purpose and domain-specific applications, reviewing common architectural choices, training techniques, and datasets, and providing a comparative summary of performance across different model sizes. Recent SLMs are listed. +• In Section 6, we explore how SLMs can address key challenges faced by LLMs, such as high inference latency, labor-intensive fine-tuning, susceptibility to knowledge noise, and risks of copyright infringement. +• In Section 7, we survey two kinds of synergies between LLMs and SLMs: one involves cloud-based LLMs and local SLMs, while the other leverages the unique advantages of both to more effectively solve tasks. +• In Section 8, we investigate the trustworthiness issues of SLMs, including hallucination and privacy concerns, by providing a taxonomic summary of current evaluation methods. + +Concurrently with our survey, Lu et al. [229] evaluate open-source SLMs, focusing on their architectures, datasets, algorithms, and on-device performance metrics such as inference latency and memory usage. Van Nguyen et al. [345] delve into optimization strategies for SLMs, including model compression, pruning, and quantization. Chen and Varoquaux [49] investigate how SLMs enhance LLMs and vice versa. In contrast, our survey offers a more comprehensive review with the following differences: (1) we present a detailed taxonomy of recent advancements in SLMs in the era of LLMs; (2) we define SLMs based on emergent capabilities and device specifications, which refines previous unclear definitions related to LLMs; (3) we discuss SLM applications, especially in on-device tasks and deployment, topics previously unexplored; (4) we examine domain-specific SLMs previously overlooked; and (5) we additionally consider the synergy between SLMs and LLMs. + +# 2 FOUNDATIONAL CONCEPTS IN BUILDING LANGUAGE MODELS + +This section will introduce foundational concepts and background knowledge for language models, including the concepts of architecture and the training process, as well as methods for obtaining SLMs from LLMs. The advanced training strategy to improve SLM performance will be introduced in Section 3. + +# 2.1 Architecture of SLMs + +SLMs commonly employ the Transformer architecture [346] (see Figure 4), which utilizes self-attention mechanisms to manage long-range text dependencies, essential for maintaining performance with constrained resources. However, due to the attention mechanism, Transformers have large inference cost. Hence, to alleviate the issue, several subquadratictime architectures such as Mamba [117], Hymba [90], and xLSTM [25] are proposed. Next, we will give details of Transformer due to its popularity and briefly introduce newly emerged models. + +2.1.1 Transformer. The Transformer’s self-attention mechanism [346] allows language models to efficiently capture contextual information across longer sequences, even with limited resources. The Transformer generally adopts an encoder-decoder structure featuring self-attention mechanisms, feedforward networks, positional embeddings, and layer normalization. The Transformer architecture design tailored for SLMs is detailed in Section 5; this section will provide only foundational concepts. + +Self-Attention Mechanism enables the model to evaluate the importance of tokens relative to each other. The self-attention mechanism is written as + +$$ +{ \mathrm { A t t e n t i o n } } ( \mathbf { Q } , \mathbf { K } , \mathbf { V } ) = { \mathrm { s o f t m a x } } \left( { \frac { \mathbf { Q } \mathbf { K } ^ { \top } } { \sqrt { d _ { k } } } } \right) \mathbf { V } +$$ + +where ${ \bf { Q } } , { \bf { K } } ,$ and $\mathbf { V }$ are query, key, and value matrices, scaled by $\sqrt { d _ { k } }$ for stability where $d _ { k }$ is the dimension of key matrices. The dot product $\mathbf { Q } \mathbf { K } ^ { \top }$ reflects the similarity between the query and key vectors. + +![](images/0ec07b9236260ae50875f629ad20462a0550afc9867c569b52597bc40aa089be.jpg) +Fig. 4. Transformer architecture [346]. + +Multi-Head Attention (MHA) [346] is the first method that uses multiple heads to capture diverse information. MHA allows the model to attend to different parts of the input sequence using multiple attention heads as + +$\mathrm { M u l t i H e a d ( Q , K , V ) } = \mathrm { C o n c a t } ( \mathrm { h e a d } _ { 1 } , \mathrm { h e a d } _ { 2 } , \ldots , \mathrm { h e a d } _ { h } ) { \mathbf { W } } ^ { O } , \mathrm { w i t h ~ h e a d } _ { i } = \mathrm { A t t e n t i o n } ( \mathbf { Q } { \mathbf { W } } _ { i } ^ { Q } , \mathbf { K } { \mathbf { W } } _ { i } ^ { K } , \mathbf { V } { \mathbf { W } } _ { i } ^ { V } )$ (1) Each head in the Multi-Head Attention mechanism operates independently, allowing the model to capture diverse aspects of the data. The outputs are combined using learned projection matrices $\mathbf { W } _ { i } ^ { Q } , \mathbf { W } _ { i } ^ { K }$ , and $\mathbf { W } _ { i } ^ { V }$ , concatenated, and passed through the output projection matrix $\mathbf { W } ^ { O }$ . + +Building on this foundation, several modifications have been introduced to further optimize self-attention mechanisms for specific challenges such as memory efficiency and computational speed. To address the KV-cache bottleneck in MHA, Multi-Query Attention (MQA) [303] proposes that all attention heads share the same set of keys and values, which reduces the memory and computational overhead associated with storing and managing multiple key-value pairs. Grouped Query Attention (GQA) [8] serves as a middle ground between MHA and MQA. It introduces subgroups of query heads (fewer than the total number of attention heads), where each subgroup shares a single key and value head. + +Manuscript submitted to ACM + +Unlike MQA and GQA, which reduce the number of key and value heads, Multi-Head Latent Attention (MLA) [211] compresses the keys and values into a joint latent vector. This compression allows for efficient handling of key-value pairs while maintaining high performance, significantly reducing the KV-cache and improving inference efficiency. Flash Attention [73, 74] accelerates the self-attention mechanism by minimizing the memory overhead typical of standard attention calculations. This optimization allows SLMs to process longer sequences more efficiently, enhancing their functionality under strict hardware constraints. + +Feedforward Network (FFN) comprises two linear transformations separated by a non-linearity, typically modeled as $\mathrm { F F N } ( \mathbf { x } ) \ = \ \sigma ( \mathbf { x } \mathbf { W } _ { 1 } + b _ { 1 } ) \mathbf { W } _ { 2 } + b _ { 2 }$ . where $\mathbf { W } _ { 1 }$ and $\mathbf { W } _ { 2 }$ are the weight matrices, and $b _ { 1 }$ and $b _ { 2 }$ are bias terms. $\sigma$ is the activation function, which introduces non-linearity, allowing models to learn complex patterns. Generally, ReLU is used as the activation function. In addition to ReLU, activation functions such as GeLU and SiLU are also used in SLMs to improve performance. We give the details here: (i) ReLU (Rectified Linear Unit) [5] is defined as $\sigma ( x ) = \operatorname* { m a x } ( 0 , x )$ , which is commonly used for its simplicity and effectiveness. (ii) GELU (Gaussian Error Linear Unit) [135] is defined as ${ \mathrm { G E L U } } ( x ) = x \cdot \Phi ( x ) = x \cdot { \textstyle { \frac { 1 } { 2 } } } \left[ 1 + \operatorname { e r f } \left( { \frac { x } { \sqrt { 2 } } } \right) \right] ,$ , where $\Phi ( x )$ is the standard Gaussian CDF and erf is the error function. It is smoother than ReLU and widely used in models such as BERT [83] and GPT [282] for better gradient flow control. Since calculating the Gaussian error function for each neuron is computationally expensive and time-consuming, there are approximations using tanh and sigmoid functions, corresponding to $\mathrm { G E L U } _ { \mathrm { t a n h } }$ and SiLU: (iii) GELU with tanh is defined as $\mathrm { G E L U } _ { \mathrm { t a n h } } ( x ) = 0 . 5 \cdot x \cdot \left( 1 + \operatorname { t a n h } \left( \sqrt { \frac { 2 } { \pi } } \cdot ( x + 0 . 0 4 4 7 1 5 \cdot x ^ { 3 } ) \right) \right)$ This approximation uses the Tanh function to simplify computations. (iv) SiLU (Sigmoid Linear Unit) [97] is calculated as $\mathrm { S i L U } ( x ) = x \cdot \mathrm { s i g m o i d } ( x ) = x \cdot { \frac { 1 } { 1 + e ^ { - x } } } .$ . It effectively combines the sigmoid function with its input, enhancing modeling capabilities. (v) SwiGLU (Swish-Gated Linear Units) [304] integrates the Swish activation function with Gated Linear Units, defined as ${ \mathrm { S w i G L U } } ( x ) = { \mathrm { S w i s h } } ( x \cdot W + b ) \odot ( x \cdot V + c )$ where $W , V$ are the weight matrix and $b , c$ are the bias terms. The Swish function is expressed as $\operatorname { S w i s h } ( x ) = x \cdot \operatorname { s i g m o i d } ( x )$ . This combination enhances expressiveness and computational efficiency, making it a preferred choice in advanced models such as the Qwen series [402]. + +Positional Embeddings in Transformer models [346] are essential for capturing token order, providing context about relative positions within a sequence. Traditional positional embeddings in the Transformer architecture utilize a sinusoidal function, defined as: $\begin{array} { r } { P E ( p o s , 2 i ) = \sin \left( \frac { p o s } { 1 0 0 0 0 ^ { 2 i / d _ { \mathrm { m o d e l } } } } \right) } \end{array}$ $\begin{array} { r } { P E ( p o s , 2 i + 1 ) = \cos \left( \frac { p o s } { 1 0 0 0 0 ^ { 2 i / d _ { \mathrm { m o d e l } } } } \right) } \end{array}$ where ?????? represents the position within the sequence, $i$ is the dimension index, and $d _ { \mathrm { m o d e l } }$ is the dimensionality of the model. To improve the model’s capacity for understanding the relative positions of tokens within a sequence, Rotary Positional Embedding (RoPE) [318] introduces a rotational matrix to the embeddings. RoPE significantly enhances the positional encoding by maintaining the relative distances through rotational transformations, thus optimizing the model’s interpretative ability regarding sequence dynamics. + +Layer Normalization [185] stabilizes the training process by normalizing layer outputs, accelerating convergence. Two types of layer normalization are commonly used [185]: (i) Non-Parametric Layer Norm normalizes inputs using the mean and variance calculated across the layer’s dimensions without learnable parameters as $\textstyle \operatorname { L N } ( x ) = { \frac { x - \mu } { \sigma } }$ where $\mu$ is the mean and $\sigma$ is the standard deviation of the inputs. Its simplicity makes it ideal for SLMs. (ii) Parametric Layer Norm includes learnable parameters $\gamma$ and $\beta$ for adaptive scaling and bias, enhancing model flexibility: $\begin{array} { r } { \operatorname { P L N } ( x ) = \gamma \left( \frac { x - \mu } { \sigma } \right) + \beta } \end{array}$ Additionally, RMS Norm (Root Mean Square Layer Normalization) [431] simplifies the calculation by using the root mean square of inputs, reducing computational demands: $\begin{array} { r } { \mathrm { R M S N o r m } ( x ) = \gamma \frac { x } { \sqrt { \frac { 1 } { N } \sum _ { i = 1 } ^ { N } x _ { i } ^ { 2 } + \epsilon } } + \beta } \end{array}$ where $N$ is the number of inputs, $x _ { i }$ is the $i$ -th input, and $\epsilon$ is a small constant to prevent division by zero. + +2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data. Due to its focus on the immediate previous hidden state, as opposed to Transformer which requires access to all previous hidden states, Mamba achieves a higher utilization rate of model parameters. This makes it more suitable for SLMs. However, we identify two drawbacks of Mamba: (i) its focus on selectively capturing global information may compromise performance on tasks that require nuanced understanding, such as detailed sentiment analysis or complex entity recognition; and (ii) to balance inference speed, Mamba’s recurrent structure primarily encodes static global information, which limits its effectiveness in handling multi-round tasks within a single query, such as interactive dialogue systems or iterative problem-solving scenarios. + +![](images/c910d53cf633fd17f0283ebbd319032712214d9a42da2f28a15fe0577ca151de.jpg) +Fig. 5. Mamba 1 architecture [117]. + +In language modeling, Mamba 1 [117] is pre-trained on the Pile dataset [108] using the training recipe from [37] and ranges from 125M to 1.3B parameters. It outperforms comparable models such as Pythia [31] and RWKV [270] in various tasks; for instance, Mamba-1.4B achieves a $3 2 . 8 \%$ accuracy on the Arc-Challenge [65] dataset, surpassing Pythia-1.4B’s $2 8 . 5 \%$ and RWKV-1.5B’s $2 9 . 4 \%$ . Mamba 2 [75] develops a theoretical framework linking SSMs with attention mechanisms through structured semi-separable matrices, enhancing the selective SSM to achieve $2 { - } 8 \mathrm { x }$ faster speeds while competing with Transformer models. Training and configuration for Mamba 2 align with Mamba 1. Additionally, Mamba-series models are applied widely across different fields [160, 280, 281, 463]. Other follow-up Mamba-based language models such as Falcon Mamba 7B [463] and Mistral 7B [160] also demonstrate the efficiency of the architecture for NLP tasks. Falcon Mamba 7B scales Mamba’s long-sequence processing capabilities to extensive language data, reducing memory overhead and making it ideal for long-form NLP tasks. Similarly, Mistral 7B incorporates Mamba’s efficient sequence handling ability to improve processing speed and computational efficiency in long-context NLP tasks, showcasing Mamba’s scalability and practicality for large-scale language modeling. + +2.1.3 Hymba. Attention heads in the Transformer facilitate high-resolution recall, while SSM heads in Mamba efficiently summarize context. To balance performance and efficiency for SLMs, Hymba [90] integrates both attention and SSM heads within the same layer, allowing for parallel and complementary processing of inputs, as depicted in Fig + +![](images/6cd678b847173b848c1429c04ccfa78a775c56e46fec00eed0142c8567e93bcd.jpg) +Fig. 6. Hymba [90] architecture. + +ure 6. This hybrid-head approach enables each layer to simultaneously leverage the high-resolution recall of attention heads and the contextual summarization of SSMs, increasing the model’s flexibility and expressiveness in managing diverse information flows and memory access patterns. + +Hymba has been developed in models of varying sizes—125M, 350M, and 1.5B, trained on a combination of the DCLM-Baseline-1.0 [192], SmolLM-Corpus [27], and a proprietary high-quality dataset, with token counts of 1 trillion, 250 billion, and 50 billion, respectively. The models incorporate the Warmup-Stable-Decay (WSD) learning rate scheduler [143] and the data annealing technique [94] to ensure stable pretraining, conducted on 128 NVIDIA A100 GPUs. The 1.5B base model was post-trained using full finetuning (FFT), followed by direct preference optimization (DPO) [283] to develop the Hymba-1.5B-Instruct model. In commonsense reasoning tasks, the Hymba 1.5B model surpasses Llama3.2-3B [7] by achieving $1 . 3 2 \%$ higher average accuracy, requiring an $1 1 . 6 7 \times$ smaller cache size, and delivering a $3 . 4 9 \times$ increase in processing speed. + +2.1.4 xLSTM. Long Short-Term Memory (LSTM) [137] shares a conceptual similarity with Mamba that achieves success in language modeling through the introduction of time-dependent weights. This similarity raises an intriguing question: how effective would LSTMs be at language modeling if scaled to billions of parameters, incorporating advanced techniques from modern LLMs while addressing known LSTM limitations? Inspired by this question, Beck et al. [25] propose xLSTM architecture, which performs favorably compared to state-of-the-art Transformers and SSMs in empirical evaluations. To address the limitations of LSTM, xLSTM designs exponential gates to enhance effectiveness with long sequences, expand memory cells from scalars to matrices to increase storage capacity, and remove memory mixing to enable parallel processing. + +To test the language modeling capabilities of xLSTM scaled to billions of parameters, it is trained on a large dataset comprising 300 billion tokens from SlimPajama [314] across various model sizes (125M, 350M, 760M, 1.3B). The performance of pre-trained xLSTM is compared against RWKV-4 [270], Llama [153], and Mamba [117] across 571 text domains of the PALOMA benchmark [237] and various downstream tasks. Across all model sizes and the majority of tasks, xLSTM consistently outperforms the others, suggesting that larger xLSTM models could become formidable competitors to existing Large Language Models that utilize Transformer technology. + +# 2.2 Training SLMs from Scratch + +Training SLMs from scratch entails several critical steps: (i) Pre-training, focused on acquiring general features and knowledge from the corpus; (ii) Fine-tuning, targeted at boosting the model’s abilities and performance for specific tasks; (iii) Decoding strategies, which involve the methods used for iteratively selecting the next token during generation. + +2.2.1 Pre-training. Typically, the pre-training paradigm for language models is divided into encoder-based and decoderbased approaches. Encoder-based models, such as BERT [83], utilize Masked Language Modeling (MLM) tasks where the goal is to predict masked tokens within a sentence. This is achieved by maximizing: + +$$ +\begin{array} { r } { P ( \mathrm { m a s k e d t o k e n } \mid \mathrm { c o n t e x t } ) = \mathrm { s o f t m a x } ( \mathbf { W } \cdot \mathbf { h } _ { \mathrm { m a s k } } + b ) , } \end{array} +$$ + +where masked token is the original token that has been masked, context represents the other unmasked tokens in the sentence, $\mathbf { W }$ and $^ { b }$ are trainable parameters of a linear output layer, $\mathbf { h } _ { \mathrm { m a s k } }$ is the output from the transformer encoder for the masked position, and softmax is the activation function that converts logits to probabilities over the vocabulary. This process enhances the model’s language encoding capabilities. Decoder-based models, such as GPT [282], employ + +Next Token Prediction (NTP) tasks, aiming to model the distribution of the next token by maximizing: + +$$ +\begin{array} { r } { P ( \mathrm { n e x t ~ t o k e n } \mid \mathrm { c o n t e x t } ) = \mathrm { s o f t m a x } ( \mathbf { W } \cdot \mathbf { h } _ { \mathrm { l a s t } } + b ) , } \end{array} +$$ + +where next token is the token that the model aims to predict, context represents the sequence of tokens preceding the token to be predicted, and $\mathbf { h } _ { \mathrm { l a s t } }$ is the output from the transformer encoder for the last token in the context. Effective data preprocessing, crucial for optimizing the performance of SLMs trained from scratch, involves meticulous data cleaning and strategic tokenization. + +Data Cleaning involves techniques such as filtering, deduplication, and noise reduction, which improve data quality and help the model generalize better. Filtering noisy or irrelevant data, addressing outliers, and handling imbalances in the dataset ensure that the training data is both representative and efficient. Deduplication, in particular, helps prevent overfitting by removing repeated instances, making the model more robust with efficient parameter usage. + +Tokenization plays a vital role in handling diverse vocabularies without increasing model size. Advanced methods such as Byte-Pair Encoding (BPE) [106] and WordPiece [316] break text into subwords [83], allowing the model to manage rare and compound words efficiently. These strategies ensure that SLMs maintain a balance between vocabulary coverage and model compactness, crucial for improving generalization while minimizing computational demands. + +2.2.2 Fine-Tuning. After the initial training, SLMs are fine-tuned on specific tasks using task-specific data and loss functions. Parameter-efficient fine-tuning methods [118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\Delta \mathbf { W } = \mathbf { A } \mathbf { B } ^ { \top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\mathbf { W } _ { \mathrm { f t } } = \mathbf { W } + \alpha \Delta \mathbf { W }$ where $\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks. Adapter Modules [140] are small, trainable layers inserted into the pre-trained model. These layers are fine-tuned on task-specific data, allowing the base model to remain fixed while the adapters learn the necessary adjustments. The typical structure of an adapter module includes a down-projection, a non-linearity, and an up-projection: Adapter $\mathbf { \Pi } ( \mathbf { h } ) = \mathbf { h } + \mathbf { W } _ { \mathrm { u p } } \cdot \sigma ( \mathbf { W } _ { \mathrm { d o w n } } \cdot \mathbf { h } + \mathbf { b } _ { \mathrm { d o w n } } ) + \mathbf { b } _ { \mathrm { u p } }$ where h is the input hidden state, $\mathbf { W } _ { \mathrm { d o w n } }$ and $\mathbf { W } _ { \mathrm { u p } }$ are the projection matrices, $\mathbf { b } _ { \mathrm { d o w n } }$ and ${ \bf b } _ { \mathrm { u p } }$ are the bias terms, and $\sigma$ is a non-linear activation function. + +2.2.3 Decoding Strategies. After pre-training or fine-tuning, employing an effective decoding strategy is crucial for generating output from language models. Decoding, the process of text generation from SLMs, involves iteratively selecting the next word. A fundamental method is the greedy search, which predicts the most likely token at each step. This is formally modeled as: $x _ { i } = \arg \operatorname* { m a x } _ { x } P ( x \mid x _ { < i } )$ , where $x _ { i }$ is the token with the highest probability at the $i$ -th step, conditioned on the preceding context $x _ { < i }$ . Other decoding strategies, such as beam search or top- $\mathbf { \nabla } \cdot \mathbf { k }$ sampling, are crucial for generating high-quality outputs. Beam search balances exploration and exploitation by considering multiple possible sequences simultaneously, while top- $\mathbf { \nabla } _ { \cdot \mathrm { k } }$ sampling introduces diversity and creativity in text generation. These strategies collectively ensure that SLMs are efficient and capable of delivering high performance across various natural language processing tasks. + +Manuscript submitted to ACM + +# 2.3 Obtain SLMs from LLMs + +Obtaining an SLM from an LLM is crucial for deploying in resource-constrained environments. Instead of training from scratch, leveraging an LLM allows for knowledge transfer, enabling SLMs to retain much of the LLM’s linguistic and domain knowledge with reduced training time and data. To obtain SLMs from LLMs, three primary techniques are used: pruning, knowledge distillation, and quantization. Pruning removes less critical parameters, reducing model size while aiming to maintain performance. Knowledge distillation transfers knowledge from a large teacher model to a smaller student model, preserving much of the original model’s understanding. Quantization decreases parameter precision, significantly lowering memory and computation needs with minimal impact on accuracy. These methods balance size reduction, efficiency, and performance retention. + +2.3.1 Pruning. Pruning is a technique used to reduce a model’s size and computational requirements (e.g., LLMs) without significantly sacrificing its performance [126]. This process involves identifying and removing less important or redundant parameters and components from the model. The primary goal of LLM pruning is to make the model more efficient, faster, and suitable for deployment in resource-constrained environments. Typically, pruning can be categorized into two main types: unstructured pruning and structured pruning. An illustration of unstructured pruning and structured pruning is shown in Figure 7. + +![](images/bc5d3036a35f80350c1a852c4442462e99358340f2f1f023976984b679b5e8f2.jpg) +Fig. 7. Unstructured and structured pruning. + +Unstructured Pruning [76, 102, 201, 300, 321, 438, 442] prunes an LLM by removing weights individually without considering its internal structure. The least significant parameters are pruned according to specific criteria (e.g. magnitude or impact on the output). This method can achieve significant compression while maintaining performance. However, it can also lead to irregular memory access patterns and reduced hardware efficiency because the pruned model lacks a regular structure. SparseGPT [102] is a representative unstructured pruning method that can reduce large-scale GPT models like OPT-175B [440] and BLOOM-176B [181] to up to $6 0 \%$ sparsity using a novel sparse regression solver. Wanda [321] combines weight magnitudes with input activations to efficiently identify and discard less impactful parameters. It operates in a single forward pass, rapidly achieving high sparsity without retraining. It is also worth noting that recent studies specifically address the compatibility issues between pruning and Low-rank Adaptation (LoRA) [142], such as LoRAPrune [438]. + +Structured Pruning [13, 19, 51, 110, 124, 188, 196, 232, 243, 305, 306, 385, 410, 446], which prunes an LLM by targeting entire structural components—such as neurons, channels, or layers—rather. This approach allows for a direct reduction in dimensionality, thus efficiently reducing model complexity and memory usage. Although structured pruning may lead to higher accuracy degradation than unstructured pruning, it simplifies implementation without requiring specialized hardware. ShortGPT [243] proposes the Block Influence (BI) metric, which measures the significance of each layer based on its transformation of hidden states. Essentially, a transformer block’s influence is measured by how much it alters the hidden states. By calculating BI scores, ShortGPT determines which layers contribute minimally to the overall performance and removes these low-importance layers. This simple yet effective layer removal strategy significantly reduces the model’s parameters and computational requirements. LLM Pruner [232] offers a method to efficiently prune LLMs without access to the original training dataset. It employs a three-step compression pipeline: Discovery (identifying interdependent structures), Estimation (evaluating the performance impact of each group), and Recovery (post-training to address performance loss). NutePrune [196] enhances structured pruning with a + +![](images/dac7bbe74f6604b3a7c2f738489f1e9f8bd44ea608360eca77d1fe9e35bf73c0.jpg) +Fig. 8. Illustration of white-box and black-box knowledge distillation [245]. + +Numerous-teacher method, employing variable sparsity masks and LoRA modules to guide the pruning process. This approach effectively reduces model size and complexity. COST-EFF [305] introduces a slenderized backbone—a form of structured pruning—and a multi-exit model that employs task-specific calibration through knowledge distillation. This slenderization reduces the model’s spatial footprint, while the multi-exit strategy effectively balances utility and runtime costs. To enhance the flexibility of structural pruning, DISP-LLM [110] breaks the structural dependencies in regular methods by allowing different layers to have different subsets of features along the embedding dimension. + +2.3.2 Knowledge Distillation. Knowledge distillation (KD) compresses a larger teacher model into a smaller student model by training the student to mimic the teacher’s outputs [136]. This enables the student to retain much of the teacher’s capabilities with fewer parameters, making it ideal for scaling down LLMs for resource-limited environments while maintaining performance. KD can be categorized into white-box and black-box approaches [361, 403, 457] as shown in Figure 8. In White-Box KD, the student has access to the teacher’s internal states or output distributions [6, 119, 157, 169, 173, 265, 381, 434]. Generalized Knowledge Distillation (GKD) [173] introduces skew KL divergence to stabilize gradients and enhance performance, using an adaptive off-policy approach to minimize noisy feedback and improve efficiency. Black-Box KD relies only on teacher outputs without having access to model internals [48, 182, 271, 360]. Methods like Distilling Step-by-Step [141] use teacher-generated rationales to train smaller models, improving performance with fewer examples. LaMini-LM [380] creates a diverse instruction dataset with GPT-3.5 Turbo responses, enabling robust performance in smaller models. + +![](images/f384686f4977d2530cb223bab852d8696ab57ce6dde9887671940026792ea987.jpg) +Fig. 9. Illustration of quantization-aware training (QAT) and post-training quantization (PTQ). + +Table 1. Representative quantization methods. + +
MethodsBitTypeTechnical ContributionProblems
SqueezeLLM [170]3-bitPTQSensitivity-based non-uniform quantization, dense and sparse decompositionultra-low bit quantization
JSQ [122] FrameQuant [4]Flexible Fractional bitPTQJoint Sparsification and Quantization Fractional bit widthsbetter compression-accuracy trade-off s. better compression-accuracy trade-off s.
OneBit [400]1-bitPTQ PTQQuantization-aware knowledge distillation1-bit quantization
BiLLM [147]1-bitPTQCrucial Weights Selection, Block-based error compensation1-bit quantization
LQER [432] I-LLM [144]Flexible FlexiblePTQ PTQQuantization Error Minimization Fully-Smooth Block-Reconstruction, Dy-better compression-accuracy trade-offs Integer-only Quantization
PV-Tuning [239]namic Integer-only MatMul and Integer-only Non-linear Operators
BitNet [357]1-bit/2-bit 1-bitPTQPV algorithmbetter compression-accuracy trade-off s.
BitNet b1.58 [231]{-1, 0, 1}QAT1-bit Transformer Architecture1-bit quantization
PEQA [168]FlexibleQATTernary Parameters1-bit quantization
QATQuantization Scales OptimizationParameter-Efi cient Finetuning
QLoRA [81]NF4QAT4-bit NormalFloat and Double QuantizationParameter-Eficient Finetuning
+ +2.3.3 Quantization. Quantization reduces the storage and computational demands of LLMs by converting floatingpoint representations into lower-precision formats, significantly cutting both storage requirements and computational complexity. Existing methods fall into two categories: Post-Training Quantization (PTQ) and Quantization-Aware Training (QAT). Figure 9 illustrates the two quantization methods. Post-Training Quantization, applied after training, simplifies model compression without altering the architecture or requiring retraining, though it may result in precision loss. Consider a group or block of weights w; the linear operation can be expressed as $y = \mathbf { w x }$ , while the quantized version is given by ?? = ?? (w)x. Generally, the quantization function ?? is defined as [207]: ?? (w) = Δ · Round wΔ  , Δ = max( |w| )2?? −1 , where $N$ is the number of quantization bits, and $\Delta$ is the quantization scale factor determined by the absolute maximum value of w. Quantization-Aware Training (QAT) enhances LLM efficiency by directly incorporating quantization into the training process, often resulting in higher accuracy than PTQ. During QAT, the forward pass utilizes quantized weights $Q ( \mathbf { W } )$ and activations $Q ( \mathbf { X } )$ , while retaining full-precision values during the backward pass and for updating gradients to ensure stable learning dynamics. The comparisons of the post-training quantization methods are summarized in Table 1, detailing precision, addressed problems, and technical contributions of each method. + +2.3.4 Low-Rank Techniques. Low-rank techniques compress LLMs by approximating a high-dimensional weight matrix with two lower-dimensional matrices, reducing computational and memory requirements. A matrix $\mathbf { W } \in \mathbb { R } ^ { m \times n }$ is approximated as $\mathbf { W } \approx \mathbf { A } \times \mathbf { B }$ , where $\mathbf { A } \in \mathbb { R } ^ { m \times r }$ and $\mathbf { B } \in \mathbb { R } ^ { r \times n }$ , with $r$ much smaller than $m$ or $n$ , reducing the number of parameters. Building on this concept, Ji et al. [158] propose a low-rank method tailored for LLMs, leveraging the observation that while LLMs have high-rank weights, their feature interactions tend to exhibit low-rank properties. The method estimates feature distributions using pooled covariance matrices and allocates distinct compression ratios to layers based on their sensitivity to low-rank compression. A Bayesian optimization strategy, using a Gaussian process as the surrogate model, optimizes the allocation of low-rank dimensions, ensuring the model maintains performance while achieving significant compression. Transitioning from model compression to fine-tuning, Cho et al. [62] tackles system and data heterogeneity with the HETLORA method, which uses heterogeneous low-rank approximations to accommodate the diverse capabilities of clients and data complexities. By combining local rank self-pruning with sparsityweighted aggregation, it balances high and low-rank LoRA modules, improving convergence speed and performance compared to uniform approaches. LLM-Neo [409] combines knowledge distillation with low-rank adaptation (LoRA) to improve the efficiency of transferring knowledge from a teacher LLM to a compact student model. + +Table 2. Advanced enhancement methods for SLM. + +
TopicMethodMain Contribution
Training from ScratchMindLLM [412] MobiLlama [336] MobileLLM [223]Bilingual models with advanced features. On-device SLM with dual objectives for eficiency and capability. Optimizes LLM deployment on mobile with advanced architecture.
Supervised Fine-tuningMobileBERT [322] Alpaca 7B [329] RLHF [264] DPO [283]Compact BERT for efi cient f ne-tuning. Uses ChatGPT-generated tasks to tune Llama 7B. Trains using human-preferred data and reinforcement learning.
Data Quality in KDTinyStory [96] AS-ES [384] Self-Amplify [29]Dynamically adjusts log probabilities to prevent model degradation. Enhances narrative coherence in child-friendly datasets. Improves CoT by categorizing reasoning steps. Automates CoT data annotation for small models.
Distillation for SLMGKD [6] DistiLLM [173] Adapt-and-Distill [414] SmoothQuant [386]Aligns training and inference distributions using on-policy sequences. Uses skew KL divergence and adaptive off-policy for output utilization. Domain adapts both teacher and student models before distillation.
QuantizationBiLLM [147] LLM-QAT [221] PB-LLM [299] OneBit [400] BitNet [357] BitNet b1.58 [231]Balances quantization dificulty using per-channel scaling. Applies Hessian-based metrics for binary residual approximation. Uses data-free knowledge distiltion and logit distiltion for fine-tuning. Binarizes non-salient weights while preserving others in higher precision. Achieves near 1-bit quantization with minimal performance loss. Introduces 1-bit Transformer architecture with BitLinear layers.
esMa et al [234] SLM-RAG [215]Implements a ternary weight system in enhanced BitNet. Shows that SLMs with RAG can match LLM performance.
+ +# 3 ADVANCED ENHANCEMENT STRATEGIES FOR SMALL LANGUAGE MODELS + +With the foundational concepts introduced in Section 2, this section explores various advanced techniques that enhance the performance of SLMs, including innovative training methods for training SLMs from scratch, supervised fine-tuning (SFT) to align SLMs to adhere to instructions, advanced knowledge distillation and quantization techniques, and techniques frequently used in LLMs such as mixture-of-experts to enhance SLM for specific applications. A summary of enhancement techniques is also summarized in Table 2. + +# 3.1 Innovative Training Methods for Small Language Models from Scratch + +In scenarios with limited resources, we aim to train small language models to provide efficient, cost-effective solutions tailored for specific domains, while still maintaining competitive performance with larger models. Training small language models (SLMs) from scratch involves unique strategies that diverge significantly from those used for large language models (LLMs). This section synthesizes cutting-edge techniques tailored to optimize the inherent capabilities of SLMs, underscoring their potential to match or surpass larger counterparts in efficiency and effectiveness. As shown in Figure 10, the methods for training SLMs from scratch can be categorized into three primary categories: Architecture Design, Data Construction, and Optimization Strategy. Next, we introduce each category in detail. + +Architecture Design for SLMs When designing SLM architectures, parameter-sharing techniques are employed to minimize space usage and reduce the model’s size. As shown in the first part of Figure 10, parameter sharing is achieved by two approaches: (i) a single Feed-Forward Network (FFN) module is shared by every transformer layer. As shown in Figure 10 (1) middle, FFN layer sharing/reusing can maintain a smaller size while still benefiting from the depth and complexity gained through repeated processing of input data. This technique is firstly applied in MobiLlama [336] which surpasses the performance of existing SLMs of comparable size. (ii) Entire transformer blocks are shared. As shown in Manuscript submitted to ACM + +![](images/1d496ff147a34dad2f537bee9636ed019e3dc371882a648ff85001144a298f46.jpg) +Fig. 10. Innovative Training Methods for Small Language Models from Scratch + +Figure 10 (1) right, Transformer Block-wise Sharing is another parameter-sharing approach that maintains depth and complexity. There are different transformer block-wise sharing strategies such as repeating the transformer blocks all over again or repeating the immediate transformer block. This technique is applied in MobileLLMs [223] which has 125M and 350M parameters. MobileLLMs demonstrate performance improvements of $2 . 7 \%$ and $4 . 3 \%$ , respectively, compared to previous models with equivalent parameters. Moreover, they exhibit accuracy comparable to LLaMa-2-7B on API call tasks, highlighting the capabilities of smaller models in mobile environments. + +Data Construction For SLMs, the emphasis on data quality surpasses that of quantity and diversity [412]. Experiments demonstrate that using a quality filtering approach to remove low-quality data can lead to improved performance in SLMs [412]. Unlike large models, which can handle diverse and large datasets, SLMs benefit more from cleaner, high-quality data probably due to their limited capacity against noise. Generally, data processing has several steps: (i) Remove HTML, CSS, JS, and non-text elements for clean text; (ii) Filter low text-to-content ratio web pages; (iii) Deduplicate using SimHash [77, 293]; (iv) Exclude sensitive/offensive content with heuristics and token replacements; (v) Remove self-repeating phrases of advertisements to enhance dataset informativeness [47, 412]. These steps collectively ensure that training data has high-quality, informative texts. SLMs also significantly benefit from these techniques. For example, MindLLMs [412], which are bilingual lightweight language models (available in 1.3B and 3B versions), adopt these data processing techniques and achieve improved capability acquisition. + +Training Strategy for SLMs For LLMs, due to the large model size and data volume, LLMs are usually trained with one round. For SLMs, multiple-round training can be applied [328]. Considering some examples are hard to fit, hard examples can be trained with a high probability [328]. For each round of training, the data sampling probability is updated according to the overall loss of that sample. Experiments results show that two rounds of training and a $5 0 \%$ sampling rate are a good trade-off between performance and training efficiency. Tang et al. [328] show that a deep and thin neural architecture and multiple-round training can enhance the performance of the trained Pangu 1.5B pro model. This model outperforms the conventionally trained Pangu 1.5B and a series of other comparable large language models with similar model sizes on multiple benchmark datasets, achieving an average performance increase of $8 . 8 7 \%$ . + +![](images/bbd77bd34f4d7955af6799a68109e49f177df7268d73ddaf5fc5f74d572be046.jpg) +Fig. 11. Fine-tuning for Enhancing SLMs + +# 3.2 Supervised Fine-Tuning (SFT) for Enhancing SLM performance + +Supervised Fine-Tuning (SFT) employs a training methodology similar to pre-training but is specifically tailored to align models to adhere to the instructions encapsulated within various instructional datasets. This approach is designed to refine the model’s responsiveness and appropriateness to given contexts as dictated by the training data. For example, various models, such as Alpaca [329], UltraChat [86], WizardLM [392], SlimOrca [203], ShareGPT [356], Capybara [72], Deita [216], and MetaMathQA [420], incorporates a suite of conversational datasets to enhance their capabilities in context-aware dialogue and instruction adherence. Usually, as shown in Figure 11, existing SFT methods can be categorized into three categories: + +• (i) Classical fine-tuning with downstream data [83, 282] trains SLMs on task-specific annotated data, transferring general language representations to specific tasks such as sentiment analysis. In the LLM era, this approach remains effective, such as enhancing LLMs by calibrating responses or assigning risk scores with smaller models such as BERT [450], or optimizing for mobile devices with MobileBERT [322]. +• (ii) Instruction tuning with LLM-generated data [86, 203, 329] or human-generated questions with LLM annotations [356] aims to align generative models with specific instructions, enhancing their instruction-following and reasoning capabilities. For example, Alpaca 7B [329] uses 52k ChatGPT-generated instruction-following examples from 175 self-instructed seed tasks to tune Llama 7B [338]. Meanwhile, StableLM [26, 340] is trained on the Restruct-v1 dataset, which includes summarization, question-answering, and sentiment analysis tasks, using instruction data from [226]. +• (iii) Preference optimization with human feedback [264, 283, 356] aims to better align language models with human preferences. Reinforcement Learning from Human Feedback (RLHF) [264] gathers human-preferred data, trains a reward model, and fine-tunes the LM using reinforcement learning. Direct Preference Optimization (DPO) [283] provides a simpler alternative to RLHF. Unlike RLHF, DPO avoids explicit reward modeling and reinforcement learning techniques. Instead, it adjusts the log probabilities of preferred versus non-preferred responses using a dynamic weighting mechanism, preventing model degradation issues typical of methods relying on probability ratios. For instance, Llama 3.2 1B & 3B apply SFT and DPO in post-training to enhance alignment with instructions and human preferences. + +![](images/40b74914fda927e82ca795290fe714f8e91ef13c65ad3e542a958b9d257aa21e.jpg) +Fig. 12. Data Quality in Knowledge Distillation (KD) + +# 3.3 Data Quality in Knowledge Distillation (KD) + +Transitioning from the discussion on training SLMs from scratch, this section delves into the critical role of data quality in Knowledge Distillation (KD). The motivation here is to highlight how high-quality data generated from LLMs can significantly enhance the learning efficiency and performance of SLMs. The central idea is that meticulously crafted datasets when used in KD, enable SLMs to more effectively mimic the advanced capabilities of their larger counterparts. As shown in Figure 12, the data can come either from (1) other strong LLMs (e.g., GPT-4 [2]) which are much larger and more powerful than the target SLM, or (2) the target SLM itself. + +Augment Data from LLMs. LLM-generated data could be categorized as pre-training data and fine-tuning data. Firstly, due to the limitations of model size, studies have shown that training SLMs requires simple and comprehensible data [96, 183, 187, 384]. As shown in Figure 12 (1) left, TinyStory [96] shows that small models (tens of millions of parameters) can generate coherent stories for 3-4-year-olds. GPT-3.5 or GPT-4 [2] prompts create simple stories from three keywords chosen from a 1,500-word vocabulary, which are then used to train SLMs for similar outputs. This approach shows that simple and comprehensible data can help smaller models exhibit behaviors similar to those of larger language models, such as obeying scaling laws and achieving enhanced performance. On the other hand, many efforts to enhance the Chain-of-Thought (CoT) capabilities of small models involve using LLMs to generate high-quality fine-tuning CoT data. As shown in Figure 12 (1) right, these data train small models end-to-end to mimic CoT reasoning [235, 384]. AS-ES Learning [384] highlights that small models struggle with complex reasoning, even when provided detailed steps, as these require nuanced extraction and abstraction. Therefore, the study introduces a paradigm splitting reasoning into extractive segments (context reminders) and abstractive segments (inferred insights). + +Augment Data from Itself. Besides distilling data from other LLMs, language models can also train on their own +outputs [29, 145, 337]. Since voting strategies can improve the performance of LLMs, reasoning paths that lead to the +majority answer can be further utilized to fine-tune LLMs [145]. Similarly, SLMs can generate their training data with +the aid of existing rationale generation methods. Self-Amplify [29] notes that human annotation of Chain-of-Thought +(CoT) data is very time-consuming; thus, automated rationale generation methods have been proposed. These methods Manuscript submitted to ACM + +![](images/5ef0bc349ca2896ceaffe910aeb9516f9094df1212bdea9facea688a55284eba.jpg) +(c) Adapt-and-Distill Fig. 13. Distillation Techniques for Enhancing SLM Performance. On-policy means learning only use data from the current studen (policy), while off-policy permits the use of previously gathered data. + +involve three main steps: (1) Selection of samples $( x , y )$ that the model predicts correctly as few-shot examples; (2) Rationale generation, where rationales are produced using post hoc explanation methods; (3) Prompt design for SLMs, where the final prompt is crafted based on the previously generated rationales. + +# 3.4 Distillation Techniques for Enhancing SLM Performance + +Following the discussion on data quality in KD, this section reviews specialized KD training strategies designed to enhance the performance of SLMs. The motivation is to address the unique challenges and constraints involved in distilling knowledge from LLMs to SLMs, ensuring that the smaller models can maximize their performance gains. As shown in Figure 13, two main gaps between LLMs and SLMs lead to challenges in distillation: distribution mismatch and domain gap. Distribution mismatch [6, 173] occurs when the distribution of output sequences during training does not align with the distribution of sequences that SLMs produce during inference, leading to suboptimal performance of the student model. The domain gap [414] arises when there is a discrepancy between the domains or tasks on which the LLMs and SLMs are trained and applied. This gap can cause significant degradation in the performance of the student model if not properly addressed during the distillation process. To address these issues, specialized strategies involve first aligning the teacher and student models with the target domain before proceeding with knowledge distillation. To explore these challenges further, we now delve into the details of these two branches of methods. + +Distribution Mismatch In original knowledge distillation, illustrated in Figure 13 Distribution Mismatch (a), the teacher and student are provided with the same input sequences $x$ and output labels $y$ , producing probability distributions for the next token $\cdot q$ and $p$ ). The loss is calculated as the difference between these two distributions, $D ( q , p )$ . However, a key challenge arises due to distribution mismatch: the output sequences during training $( y )$ differ in distribution from those the SLMs produce during inference $( y ^ { \prime } )$ . To address this challenge, various techniques have been proposed. As shown in Figure 13 Distribution Mismatch (b), one approach trains the student model using on-policy sequences—sequences generated by the student itself—guided by the teacher model’s feedback. Specifically, both the student and teacher take the same input $( x )$ and the student-generated output $( y ^ { \prime } )$ , producing probability distributions Manuscript submitted to ACM + +for the next token ( $\dot { \boldsymbol { g } }$ and $\mathcal { P }$ , respectively). The loss is calculated as the difference between these two distributions, $D ( q , p )$ . This approach helps the student model reduce the distribution gap between training and inference by learning from the teacher’s feedback on its own generated sequences. Generalized Knowledge Distillation (GKD) [6] is the first work using this technique and improves distillation outcomes. However, a drawback of this technique is that it requires the student to constantly produce new training sequences, which can be computationally expensive. To improve efficiency, as shown in Figure 13 Distribution Mismatch (c), an adaptive off-policy approach can be used to efficiently manage student-generated outputs by storing them in a replay buffer, thereby reducing computational costs. DistiLLM [173] employs this off-policy approach and improves the efficiency of KD. + +Domain Gap When training an SLM in a specific domain that differs from the domain of the LLMs, the gap between the two domains becomes problematic. As illustrated in Figure 13 Domain Gap (a), domain adaptation fine-tunes a language model, initially trained on a general corpus, using a specialized dataset such as PubMed to enhance performance in that specific domain. As illustrated in Figure 13 Domain Gap (b), Knowledge distillation transfers knowledge from the larger model to the smaller one. However, because the teacher model may not produce high-quality outputs on specialized datasets, domain adaptation is needed prior to knowledge distillation. As illustrated in Figure 13 Domain Gap (c), Adapt-and-Distill [414] tackles the domain gap by distilling general large models into smaller ones. This paper introduces AdaLM and demonstrates that the “Adapt-and-Distill” strategy—first involving domain adaptation of both the large teacher model and the small student model, followed by distillation—is the most effective compared to three other strategies: training directly from scratch, distillation followed by adaptation, and adapting the teacher model before distillation into a general small student model. These innovative techniques are crucial for enhancing the capabilities of SLMs, making them more efficient and effective for various applications. However, adapting both the teacher (LLMs) and the student (SLMs) models to the target domain can be time-consuming. Future research could focus on efficiently solving the domain gap problem. + +Insights: Here are some insights from distillation techniques: + +• Sampling SLM outputs during the training process is the main approach to resolving distribution mismatch. • Techniques like Adapt-and-Distill address the domain gap by first adapting both the teacher (LLMs) and the student (SLMs) models to the target domain before proceeding with distillation. + +# 3.5 Performance Improvement through Quantization + +As mentioned in Section 2, quantization is one of the most effective methods for adapting LLMs to SLMs. However, compression to smaller sizes often compromises performance. To address the performance drop associated with quantization, various methods have been proposed. This section examines how these quantization methods specifically enhance the performance of SLMs. While the general introduction to compression methods is discussed in the compression section, the focus here is on detailing those approaches that boost the efficiency and effectiveness of SLMs. As shown in Figure 9, we categorize these quantization methods into two main approaches: Post-Training Quantization (PTQ), where quantization is conducted on a well-trained fixed model, and Quantization-Aware Training (QAT), where quantization is integrated into the training process. This section introduces advanced techniques in PTQ and QAT respectively. + +Post-Training Quantization (PTQ) primarily includes weight quantization and activation quantization. Weight quantization aims to quantize model parameters while preserving performance. GPTQ [103] compresses LLMs to 4-bit or 2-bit by quantizing weights layer-by-layer to minimize layer-wise quantization errors. PB-LLM [299], applicable to both Manuscript submitted to ACM + +PTQ and QAT, retains the most salient weights while binarizing the rest based on magnitudes. BiLLM [147], another PTQ method, uses a Hessian-based metric to identify salient and non-salient weights. Salient weights undergo binary residual approximation to minimize loss, while non-salient weights are divided into sparse and concentrated groups for separate binarization, reducing quantization errors. Activation quantization faces challenges with outliers that can stretch the quantization range, causing most values to cluster at few bits and introducing significant errors. To address this, LLM.int8() [80] isolates outlier features for 16-bit processing and handles the rest in 8-bit. SmoothQuant [386] circumvents per-channel quantization issues by employing a "smoothing" technique that shifts the quantization challenge from activations to weights through a per-channel scaling transformation. This balance between activating and weight quantization allows effective 8-bit quantization (W8A8), preserving accuracy while significantly reducing memory and computational costs. SmoothQuant thus enhances the efficiency of SLMs in resource-constrained environments. + +Quantization-Aware Training (QAT) differs from PTQ in that it includes a training phase after the model has been quantized. When models are quantized to extremes, such as 2-bit or 1-bit, performance typically drops significantly, but further training can help the model retain its capabilities. For instance, to mitigate performance degradation from binarization, PB-LLM [299] selectively binarizes only non-salient weights, preserving the most salient ones at higher precision. This method effectively reduces the model size without significantly impacting performance. Salient weights are chosen based on their magnitude, ensuring that the most influential weights maintain higher precision to preserve the model’s reasoning capabilities. The paper explores both post-training quantization (PTQ) and quantization-aware training (QAT) to fine-tune and recover the performance of partially binarized models, achieving a balance between compression and accuracy. OneBit [400] and BitNet [357] address the severe performance degradation associated with 1-bit quantization by decomposing floating-point matrices and employing mixed-precision strategies. Specifically, OneBit introduces Sign-Value-Independent Decomposition (SVID), which decomposes a floating-point matrix into a 1-bit matrix and two floating-point vectors. This method allows LLMs to be quantized to a 1-bit level while minimizing performance loss. By retaining critical information with the floating-point vectors, OneBit effectively balances extreme compression with maintaining model accuracy. BitNet b1.58 [231] improves on the original BitNet by introducing a ternary matrix weight system -1, 0, 1, resulting in a 1.58-bit model. BitNet b1.58 matches the performance of full-precision models starting from a 3 billion parameter size while further reducing memory and latency costs. LLM-QAT [221] employs data-free knowledge distillation, where the pre-trained model itself generates data for fine-tuning the quantized model (student) using logit distillation from the full-precision model (teacher). This method incorporates quantization of weights, activations, and key-value cache, achieving accurate 4-bit quantization for weights and key-value caches, and 6-bit for activations, demonstrating substantial improvements over existing post-training quantization methods. + +Insights: Insights drawn from quantization strategies include: + +• Post-Training Quantization techniques primarily focus on quantizing model weights, where selecting salient weights is crucial. Beyond weight quantization, handling outliers in activation signals is a significant challenge in quantizing activations. +• Quantization-Aware Training methods show that low-bit quantization (e.g., 1-bit models) requires additional tuning to maintain performance. Knowledge can be distilled from the model before quantization to the quantized model. + +# 3.6 Techniques in LLMs Contributing to SLMs + +This subsection explores the potential of advanced techniques such as RAG and MoE, which enhance LLM performance, to also maintain or boost SLM performance within constrained computational budgets. However, effectively integrating these techniques into SLMs, which inherently possess limited capabilities, remains an unresolved challenge. + +Retrieval Augmented Generation (RAG) enhances the capabilities of language models in knowledge-intensive tasks by incorporating a retrieval mechanism. This approach allows models to access relevant contextual information from a data repository in response to user queries. By integrating this retrieved data, RAG-equipped models better understand specific topics, enabling more informed and accurate outputs. For SLMs, a significant concern is whether they possess the capacity for long-context reasoning. A recent study [215] compares SLMs at the 7B level with RAG to larger models such as GPT-3.5 and GPT-4, suggesting that SLMs equipped with RAG can sometimes perform comparably or even better than LLMs. These findings indicate that RAG for SLMs is effective and represents a promising direction for future research. + +Mixture-of-Experts (MoE) [39] has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs. The MoE framework is founded on a straightforward yet potent concept: distinct components of a model, referred to as “experts”, specialize in different tasks or data facets. In this paradigm, only the relevant experts are activated for a specific input, which manages computational costs while leveraging a vast pool of specialized knowledge. This scalable and adaptable approach enables increased model capacity without proportionally escalating computational demands. We argue that MoE is particularly suitable for SLM architectures [161] as it minimizes both computational load and memory overhead. However, research on MoE for SLMs remains sparse. Future studies could investigate how large LLM MoE architectures can be effectively compressed into small ones or how to develop an SLM with MoE tailored for specific devices from scratch. + +# 4 APPLICATIONS OF SMALL LANGUAGE MODELS + +In this section, we delve into the applications of small language models (SLMs) across various NLP tasks and their deployment strategies. Due to benefits such as enhanced privacy, faster inference, and lower memory requirements, many NLP applications are now leveraging SLMs over LLMs. Additionally, deploying SLMs often involves considerations of memory and runtime efficiency, which are crucial for optimizing resource use on budget-constrained edge devices, particularly mobile phones. Then, we will discuss task-specific applications of SLMs and their deployment methods on mobile and edge devices. + +# 4.1 Task-specific SLM Applications + +This subsection explores the diverse NLP tasks to which SLMs can contribute. Question-answering and coding represent generative tasks, while recommender systems and web search (though not strictly within the NLP domain) typically leverage the encoding capabilities of SLMs. Additionally, the application of SLMs on mobile devices is particularly well-suited due to constraints in memory and computing resources. The representative works are systematically organized in Table 3. + +4.1.1 SLM Applications in Question-Answering. Question-answering (QA) is a fundamental task in the NLP field, demanding language models to exhibit abilities in understanding language, reasoning, common sense, and recalling specialized knowledge. Typically, larger language models yield better QA performance. However, the substantial size of these models introduces challenges such as immense computational requirements, privacy concerns when using proprietary LLMs, and difficulties in customization. These issues lead researchers and developers to favor SLMs in scenarios that demand efficiency, privacy, and customization. Therefore, we explore methods to enhance the capabilities of SLMs in QA across three key areas: (i) Instruction Tuning of Generic SLMs for QA, (ii) Instruction Tuning of Domain-Specific SLMs for QA, and (iii) Enhancing SLMs for Out-of-Domain Questions. + +Table 3. Task-specific SLM Applications + +
AspectRepresentative workKey point
SLM in QAAlpaca [329] Stable Beluga 7B [238]Tune Llama 7B [338] using 52k ChatGPT-generated examples.
Fine-tuned BioGPT [125] Financial SLMs [275] ColBERT [112] Rationale Ranking [128] T-SAS [156]Employ explanation tuning to Llama-2 7B [339] on an Orca-style dataset. Fine-tuning BioGPT (1.6B) [230] on PubMedQA. Transfer financial knowledge from GPT-4 [2] to multiple SLMs. Fetch retrieval documents for SLMs to answer domain-specific questions. For unseen questions, combine retrieval with LLM-generated rationales.
SLM in CodingPhi-3.5-mini [1] TinyLlama [439] CodeLlama [292] CodeGemma [331]Enhance SLMs adaptability with self-generated pseudo labels. New addition to the Phi-3 series and focus on high-quality data. 1.1B Transformer model is trained on 3T corpus. A derivative of Llama 2 fine-tuned on domain-specific datasets. Fine-tuning Gemma to enhancing coding capabilities.
SLM in Recommen- dationPromptRec [382] SLIM [369] BiLLP [309] ONCE [214] RecLoRA [455] Content encoder [44, 152, 228]Training on prompt templates Step-by-step Knowledge Distillation LLaMa-2-7B as planner and reflector LLaMa-2-7B as Content Encoder Personalized low-rank adaptation
SLM in Web SearchRanker [63, 260] Rewriter [233] Octopus [52]Encode concatenated queries and documents. Re-rank retrieved documents using a specially SLM. Bridge the gap between queries and needed knowledge by rewriting inputs. Calling software APIs via learning in documents
SLM in Mobile- deviceMobileAgent [87] α-UMI [307] Mobile Interaction [42] AutoDroid [376] M4 [423] Agent for Text Rewriting [458]Standard Operating Procedure (SOP) SLMs serve as Multi-agents in tool uses. Text-to-action control and tests on 6GB and 4GB Android devices Interaction based on GUI and APP knowledge injection a foundation model handling all mobile AI tasks. Data Knowledge Distillation from LLMs
+ +Instruction Tuning Generic SLMs for QA. Despite the Phi series’ high question-answering capability, its training cost with over 3.4T tokens on 512 H100 GPUs for 10 days [1] is prohibitive for many researchers and developers. Instruction tuning [372] offers a cost-effective alternative, enhancing small models by fine-tuning on large model outputs. Alpaca 7B [329] tunes Llama 7B [338] with 52k ChatGPT-generated examples from 175 seed tasks. This behavior cloning mimics teacher models effectively but struggles in reasoning-intensive QA tasks where accuracy is key, not style [60]. To counter it, explanation tuning [238] enhances Llama-2 7B [339] using explanatory LLM answers to improve reasoning. However, its effectiveness varies with system instructions, and those effective for larger models like GPT-4 may not suit smaller ones. SLMs also struggle to identify optimal system instructions for different tasks. Therefore, Orca 2 [247] addresses this by promoting cautious reasoning, deciding which solution strategy to choose for a given task among direct answer generation, or “Slow Thinking” strategies (step-by-step, guess and check or explain-then-answer, etc.) and erasing specific system instructions during training. This involves (1) solution strategy is guided by the performance of Orca 1 [251], (2) writing task-specific system instructions corresponding to the chosen strategy to obtain teacher responses for each task, and (3) at training time, employing Prompt Erasing to replace student’s system instructions with generic ones vacated of details of how to approach the task, encouraging students learn not just task solutions but also deeper reasoning abilities. + +Table 4. Comparison of instruction-tuned domain SLMs for QA and LLMs on FinQA [56] and PubMedQA [163]. + +
ModelSizeInstruction tuned?Task NameShot TypeAccuracy (%)
GPT-4 [2]-×FinQAZero-shot77.5
Phi-3-Mini [1]2.7B√FinQAZero-shot77.6
Meditron-70B [55]70B×PubMedQAZero-shot81.6
RankRAG-1lama3-70B [421]70B×PubMedQAZero-shot79.8
Flan-PaLM [313]540B×PubMedQAFew-shot79.0
GAL 120B [330]120B×PubMedQAZero-shot77.6
Flan-PaLM [313]62B×PubMedQAFew-shot77.2
BioGPT [230]345M√PubMedQAZero-shot78.2
BioGPT-Large [230]1.5B√PubMedQAZero-shot81.0
+ +Instruction Tuning Domain SLMs for QA. Beyond instruction tuning for generic SLMs, tuning domain-specific SLMs is also crucial, as they provide specialized assistance where generic SLMs may underperform. Instruction-tuning generic SLMs can derive domain SLMs. We summarize some representatives in several domains. (1) In finance, Phogat et al. [275] transfer financial QA abilities from teacher LLMs such as GPT-4 [2] to specialized SLMs such as Phi-3-Mini [1], using datasets such as FinQA [56], ConvFinQA [57], and TATQA [454]. They train SLMs with Python programs created by the teacher model, which detail steps for financial reasoning, including concept comprehension, formula identification, entity extraction, and calculations. During inference, SLMs generate Python code that an external interpreter executes. (2) In the medical field, Guo et al. [125] enhance student SLMs, including domain-specific BioGPT (1.6B) [230] and general Llama 7B [338], by fine-tuning on enriched PubMedQA [163] data. This enhancement is achieved by generating new samples or rewriting existing ones using teacher LLMs, which include the highly knowledgeable GPT-4 and the relatively weaker ChatGPT. The best SLM, with under 1.6 billion parameters, achieves $7 5 . 4 \%$ accuracy, surpassing GPT-4’s $7 4 . 4 \%$ in few-shot settings on the PubmedQA test sets. It demonstrates that LLMs effectively refine and diversify question-answer pairs, leading to enhanced performance in a significantly smaller model after fine-tuning. We report the detailed results of comparisons of instruction-tuned domain-specific language models for QA and larger language models on FinQA [56] and PubMedQA [163], as shown in Table 4. + +Enhancing SLMs for Out-of-Domain Questions. One of the major advantages of LLMs is their strong comprehension and logical reasoning abilities, which SLMs often struggle to match due to their limited parameters, especially when handling unseen or out-of-domain questions. Various methods have been developed to address this limitation, including Retrieval-Augmented Generation (RAG) and self-adaptive techniques. + +(1) Retrieval-Augmented Generation (RAG): Incorporating External Knowledge for Domain-Specific QA. RAG addresses OOD questions by integrating external knowledge during inference, allowing models to access information beyond their pre-trained parameters. By retrieving relevant documents in real time, RAG enables small language models to provide accurate answers on specialized topics. In the telecommunications domain, Gichamba et al. [112] use ColBERT as a dense retrieval system to fetch documents from technical datasets. By encoding queries and documents separately, ColBERT computes relevance scores, helping small models like Phi-2 and Falcon-7B retrieve precise technical information to answer complex telecom-related queries. Rationale Ranking [128] addresses answering unseen questions using smaller language models by integrating external explanatory contexts from retrieval systems with reasoning rationales from LLMs. This method involves ranking both the retrieved explanatory contexts and LLM-generated rationales using a scoring module, which then combines them to form a cohesive context. Consequently, this integrated approach enhances the SLMs’ performance on unseen questions. + +(2) Self-Adaptive Techniques: Enhancing Model Adaptability with Self-Generated Pseudo Labels. Fine-tuning, while effective in adapting domain knowledge, can be impractical in realistic scenarios where labeled datasets are scarce. To overcome this, self-adaptive techniques employ self-generated pseudo labels to activate specific aspects of the target tasks, thereby enhancing model adaptability [312, 347]. Test-time Self-Adaptive Small LMs (T-SAS) [156] first stochastically generates multiple answers for an unlabeled question. The most plausible answer is then selected via majority voting to enhance pseudo-label accuracy, serving as a pseudo-label for training during test-time. + +Comparison between LLMs and SLMs for QA. When comparing LLMs such as GPT-4 [2] or BLOOM-175B [181] with fine-tuned SLMs in QA tasks, the benefits of SLMs are clear. LLMs, while versatile across multiple domains due to extensive pre-training, are computationally demanding, making them less ideal for resource-limited settings. SLMs, however, when fine-tuned for specific domains, often match or exceed the performance of larger models within those specialties. The trade-off is between large-scale models’ generalization and small-scale model’s specialization: LLMs handle diverse domains but may need additional techniques such as knowledge injection for domain-specific queries. In contrast, domain-specific SLMs, though less flexible, provide higher accuracy and more relevant responses, making them ideal for edge deployments where computational resources are scarce but domain precision is crucial. + +4.1.2 SLM Applications in Coding. The adoption of SLMs for coding offers an alternative to LLMs due to their lower computational needs and potential for domain-specific tuning. Despite LLMs’ proficiency in code generation and programming support, SLMs are advantageous for their faster inference, reduced operational costs, and suitability for real-time environments where rapid responses are crucial. Representative works are discussed next. The Phi series [1, 155, 200] showcase SLMs’ evolution in coding tasks. For instance, Phi-1 [120], a Transformer with 1.3B parameters, specializes in basic Python coding and achieves notable scores in benchmarks such as HumanEval [120], which includes 164 programming problems. Subsequent models, Phi-1.5 and Phi-2, have enhanced these capabilities, while Phi-3 demonstrated SLMs’ potential to rival larger models [1]. The latest model, Phi-3.5-mini, with 3.8B parameters, excels in long context tasks using advanced fine-tuning and optimization techniques, performing comparably to larger models such as Llama-3.1-8B-instruct [94] and surpassing smaller ones like Gemma-2 [333]. + +Another avenue of development is the fine-tuning of general-purpose SLMs for coding tasks [23, 121, 227, 292, 331]. For instance, CodeLlama models [292], derivatives of Llama 2 [339], undergo a rigorous fine-tuning process on domain-specific datasets, enhancing their proficiency in specific programming languages such as Python. They are trained to handle tasks such as syntax error detection, code suggestion, and infilling, where they learn to predict and complete missing parts of the code. This specialized fine-tuning improves their ability to interpret and execute detailed programming instructions, making them highly effective in real-time code editing environments [292]. CodeGemma models [331], stemming from Google DeepMind’s Gemma framework, also exhibit a focused approach to enhancing coding capabilities through fine-tuning. These models are specifically engineered for high-performance code generation and infilling, underpinned by extensive training on a vast corpus of over 500 billion to 1 trillion tokens, predominantly consisting of code. This comprehensive dataset enables CodeGemma models to excel in mathematical reasoning and complex problem-solving within code contexts, setting new benchmarks in latency-sensitive applications such as real-time IDE support and automated code reviews [331]. + +Comparison between SLMs and LLMs on Coding. Table 5 provides a comparative analysis of SLMs and LLMs on coding benchmarks HumanEval [50] and MBPP [20]. Insights include: (i) Small SLMs (1.3B - 3.8B Parameters) like Phi-3.5-mini [342] achieve high scores, demonstrating the efficacy of small models. Mid-sized SLMs (6.7B - 9B Parameters), such as DeepSeekCoder 6.7B [121] and Llama 3.1 8B [94], show improved performance, indicating that larger model sizes and enhanced training contribute to better accuracy. Large models (33B and above) like Llama 3.1 405B [94], GPT-4o [263], and Claude 3.5 Sonnet [15] excel, supporting the idea that bigger models generalize better across diverse coding tasks; (ii) There’s a notable trade-off between computational efficiency and performance, with larger models requiring more resources, impacting their practical deployment in constrained environments; (iii) Specialized training and fine-tuning, as used in models like DeepSeek-Coder [121], are crucial for excelling in coding tasks, though such models may not handle complex requests as effectively, highlighting the versatility of general SLMs for broader applications. + +Table 5. Performance comparison between SLMs and LLMs in coding benchmarks. All models listed are chat or instruct versions, and performance are sourced from respective research papers or technical reports [94, 121, 292, 331, 342]. + +
ModelSizeHumanEvalMBPP
DeepSeek-Coder [121]1.3B65.249.4
CodeGemma [331]2B37.849.2
Gemma 2 [333]2B17.740.2
Phi-3.5-mini [342]3.8B62.869.6
DeepSeek-Coder [121]6.7B78.665.4
CodeGemma [331]7B60.455.2
Llama 3.1 [94]8B66.569.4
Gemma 2 [33]9B61.069.3
GPT-3.5 Turbo-68.071.2
DeepSeek-Coder [121]33B79.370.0
Llama 3.1 [94]70B80.575.4
Llama 3.1 [94]405B89.078.8
GPT-4o OpenAI [263]-90.281.4
Claude 3.5 Sonnet [15]-92.076.6
+ +4.1.3 SLM Applications in Recommender Systems. Recommender systems are essential in various online services, helping to manage information overload and meet users’ personal needs. SLMs enhance recommendation systems by (1) addressing the cold start problem; (2) reducing popularity bias; (3) improving long-term planning; (4) serving as personalized recommenders; and (5) acting as content encoders. These applications show the versatility and effectiveness of SLMs in boosting performance and personalization in recommendation. Next, we introduce the details. + +SLM for System Cold Start Problem. Traditional recommendation systems, which utilize historical user-item interactions such as clicks, purchases, and ratings to learn representations and match items to users, fail in scenarios lacking any user-item interactions, known as the cold-start recommendation problem, often occurring in start-up businesses [289]. Although LLMs address this with in-context learning, their slow and costly inference restricts real-time use. Thus, PromptRec [382] explores using SLMs as in-context recommenders for recommendation system cold-start problems. However, SLMs often struggle without emergent context-learning abilities. To overcome this, SLMs are enhanced by pre-training on relevant corpora, using a improved C4 corpus subset [284], and by developing training prompts for different domains, enhancing cold-start performance. Results show that enhanced SLMs like BERT-mini [83], with 11.3M parameters, achieve BERT-large’s performance in cold-start scenarios, with only $1 7 \%$ of BERT-large’s inference time. Similarly, many studies have addressed the cold-start problem by leveraging BERT [133, 261, 441, 459]. For example, ADLRS [133] employs BERT to convert web-crawled item profiles into vectors that highlight key aspects, aiding recommender systems in acquiring essential initial information. + +SLM for Mitigating Popularity Bias. Popularity bias in recommender systems, marked by discrepancies between item popularity in training datasets and the real world, often stems from using closed-loop datasets with limited information. Recent LLMs leverage their broad open-world knowledge to better reason about user-item interactions [206, 214], reducing this bias by providing recommenders with more extensive item details. Using the chain-of-thought (CoT) prompting, LLMs decompose complex tasks into intermediate reasoning steps, enhancing understanding of user behavior and interests. However, LLMs’ high resource demands limit their practical use. To overcome this, the + +Step-by-step Knowledge Distillation Framework for Recommendation (SLIM) [369] distills LLM reasoning capabilities into SLMs, keeping just $4 \%$ of the original parameters, transitioning from ChatGPT to Llama 7B [338]. SLIM uses detailed LLM templates to extract reasoning steps and streamlined templates for fine-tuning, enabling SLMs to improve recommender systems by better reasoning on richer item information. + +SLM for Long-term Planning. Traditional recommender systems focus on optimizing immediate user responses, often maximizing short-term gains but overlooking long-term engagement. This can trap users in echo chambers and filter bubbles [107, 368]. To tackle this, integrating planning capabilities into recommendations to balance immediate and long-term outcomes is vital. LMs, with their extensive knowledge and reasoning abilities, are expected to enhance planning capabilities. BiLLP [309] adopts a hierarchical learning approach with macro and micro-learning phases. In macro-learning, a Planner and a Reflector, both as SLM instances like Llama-2-7B [339], operate; the Planner forms long-term plans using high-level experiences, while the Reflector updates plans based on past actions. Micro-learning uses an SLM-based Actor-Critic mechanism for personalized planning, with the Actor implementing plans and the Critic assessing actions for long-term benefits. The use of SLMs for long-term planning, similar to their use in cold-start scenarios, remains underexplored and merits further research. + +SLMs as a Personalized Recommender. Generative language model-based recommender systems require integrating user knowledge, typically achieved through fine-tuning. Fine-tuning techniques like LoRA [142] can incorporate extensive knowledge across all users by training an external module with a small number of parameters A and B, but this approach often overlooks individual user preferences. To address this, RecLoRA [455] utilizes Vicuna-7B [61] to integrate personalized knowledge into SLMs/LLMs tailored for recommendation tasks, as illustrated in Figure 14. Specifically, RecLoRA maintains a set of parallel, independent LoRA weights $( \mathbf { A } _ { i } , \mathbf { B } _ { i } )$ , allowing for the customization of language model parameters to match individual user preferences more effectively. + +![](images/3b43c2adad6b79f991c200f73540556e2caeebf4d3fa4388bf6043d9b05842b2.jpg) +Fig. 14. The illustration of lifelong behavior sequence and personalized low-rank adaption (LoRA) for recommendation [455]. + +SLM as a Content Encoder. Language models, particularly when deep, provide an effective starting point for finetuning on downstream tasks. In news recommendation systems, the representational capability of a model significantly impacts performance. Consequently, many news recommender systems now employ language models fine-tuned on specific datasets as text encoders. For example, Wu et al. [379] conducts pioneering work using a pre-trained language model to enhance large-scale news recommender systems by substituting traditional news encoders with a BERT model [83]. However, BERT may struggle to capture content as it is pre-trained on limited data. Therefore, ONCE [214] propose using Llama-2-7B [339] as an encoder to overcome the limitations of BERT in content-based recommendations. Additionally, the study explores the synergistic use of LLMs in recommendation systems, finding that SLMs optimized with LoRA [142] outperform the recommendation results of systems assisted by generic LLMs such as ChatGPT. + +4.1.4 SLM Applications in Web Search. Web search systems, involving retrieval and ranking, face challenges due to the diverse web documents and search queries. Traditional keyword-matching methods often fall short because of phrasing variations and the long-tail distribution of queries and content, complicating accurate semantic inference. Effective integration of retrieval and ranking models is also crucial. Language models, serving as content encoders, help overcome semantic challenges through their language understanding from pre-training [63, 89, 359]. Joint training of Manuscript submitted to ACM + +![](images/55caed2c4f7f78a5d857a38a853bc5c203ddb2ed2f0ce8cc74b86cc6c50f991c.jpg) +Fig. 15. Roles of SLM in Web Search. + +retrieval and ranking models addresses integration, with SLMs ranking retrieved documents and acting as re-rankers. Additionally, SLMs serve as rewriters in scenarios requiring enhanced query understanding. Thus, in web search, SLMs fulfill three roles: (1) content encoder, (2) ranker, and (3) rewriter, as depicted in Figure 15. Next, we give details. + +SLM as a Content Encoder. Text embeddings are vector representations that encode semantic information, widely used in retrieval; SLM-based dense retrieval utilizes pre-trained deep language understanding to effectively tackle semantic challenges. H-ERNIE [63] employs a hierarchical model that encodes queries and documents at multiple granularity—character, word, and phrase—to improve specificity and relevance in web search results by aggregating finer details into coarser layers, addressing issues like ambiguous queries. Implicit Interaction $( I ^ { 3 } )$ [89] uses BERT [83] as a content encoder, generating implicit pseudo-queries from passages to enable high online efficiency with offline caching of passage vectors. However, ERNIE and BERT-style models overlook advancements in SLMs such as context length extension [292]. Thus, Peng et al. [272] employs LLaMa-7B [338] and Vicuna-7B [61] as semantic encoders for embedding retrieval, demonstrating improved performance through soft prompt tuning. CoCondenser [109] addresses sensitivity to noisy data and large batch requirements during dense retriever training. Using the Condenser architecture with Transformer blocks, the model condenses information into dense vectors effectively. + +SLM as a Ranker. The reranking task improves the order of multiple candidates to enhance retrieval quality because rerankers are more accurate than embedding retrievers. InPars (Inquisitive Parrots for Search) [36] employs the T5 base 220M [284] as a re-ranker to enhance the BM25 retriever [291]. Initially, BM25 selects 1K candidates, re-ranked by a fine-tuned T5 model (monoT5) adapted as a binary classifier to assess document-query relevance. Training data, generated by GPT-3 [37], formulates queries and selects random negative examples. Experiments show the monoT5- enhanced retriever significantly outperforms GPT-3; for example, it achieves a 0.3599 MAP score on the TREC-DL 2020 dataset [69], surpassing GPT-3’s 0.3163. + +SLM as a Rewriter. Queries to the retriever, typically just a few keywords, may reveal a knowledge gap between the query and the knowledge needed for effective retrieval, thus limiting performance. To address this, the “rewriteretrieve-read” framework [233] uses T5-large [284] to bridge the knowledge gap in queries by rewriting them for more effective retrieval. This rewriter, trained via reinforcement learning with downstream LLM performance as a reward, outperforms general LLM rewrites. For example, it achieves a 45.97 F1 score on HotpotQA, surpassing the generic LLM’s 43.85 F1 score. + +4.1.5 SLM Applications in Mobile-device. The use of cloud-based LLMs on devices raises privacy concerns and their large size limits real-time responses in urgent scenarios such as medical emergencies. To overcome these issues, researchers are creating smaller, domain-specific models (SLMs) that offer accurate results and suit mobile use. This subsection discusses SLM applications on mobile devices, focusing on three aspects: (1) software API calls, (2) mobile control, and (3) basic NLP applications. + +SLM for Tool Learning. Integrating LLMs with APIs enhances capabilities but incurs high training costs, prompting a shift to smaller, task-specific models that cut costs but risk errors. In response, Octopus [52] uses a diverse dataset from over 30K APIs and curriculum learning [217] to improve API function accuracy. This method boosts API performance in models like Codellama-7b [292] and Google’s Gemma series [332]. PhoneLM-1.5B-Call [417] is fine-tuned on DroidCall [389] datasets and achieves comparable performance compared to GPT-4o-mini [262]. $\alpha$ -UMI [307] employs SLMs as planners, callers, and summarizers within multi-agent systems, outperforming a single LLM in tool uses. + +SLM for Mobile Control. LM agents facilitate user-device interactions through taps, gestures, and text, automating tasks and enhancing user handsfree convenience. Unlike traditional developerbased approaches that require extensive developer effort to design interfaces and translate commands into API calls, LMs offer scalable automation via GUI-based text contents. MobileAgent [87] integrates instructions and Standard Operating Procedures (SOP) to improve SLMs for mobile control. As shown in Figure 16, it processes goals (e.g., booking a dental appointment) by analyzing screens, queries, prior actions, and UI elements, forming + +![](images/844ac2068793ef36b83eb6f0bf3c6390326b42f040099f022d3cd83076a77653.jpg) +Fig. 16. An example workflow for an automated execution tool [87]. The screenshot in the left is taken from [87]. + +prompts to generate outputs and execute actions (e.g., selecting text, XPath). Fine-tuning Qwen-7B [23] on AIA medical data, it outperforms GPT-4 [2] on AitW [290], a key mobile benchmark, without extra inference costs. Carreira et al. [42] run a small offline model on mobile devices, fine-tuned with ChatGPT-3.5 data, enabling tasks like calls and web searches. RedPajama-INCITE-Chat-3B-v1 Computer [67], selected for its size and chat features, uses native code and quantization, performing well on 6GB and 4GB Android devices. + +AutoDroid [376] improves Android app interactions via GUI automation. Figure 17 shows LLMpowered task automation (e.g., setting a laundry reminder for Aug 17) in four steps: (1) click ’New Event’, (2) enter ’laundry’ in ’Title’, (3) click ’Save’, (4) finish. Using Vicuna-7B and app-specific knowledge, AutoDroid generates privacy-filtered prompts for tasks. On its DroidTask benchmark, it outperforms GPT-3.5 $( 3 4 . 7 \% )$ and GPT-4 $( 5 4 . 5 \% )$ with $5 7 . 7 \%$ accuracy. M4 (composable mobile foundation model) [423] introduces a 9.2B parameter model + +![](images/f0676f031f8be6ddbcdd421342e02c7aa2dd3e785aaeb77f576fd2a9803bf571.jpg) +Fig. 17. An illustration of Vicuna-7B-powered mobile task automation [42] shows a user asking to be reminded about doing laundry on Aug 17. The figure is taken from [42]. + +(7.5GB memory) for mobile AI tasks, managed by the OS and hardware. Currently limited to high-end devices, its applicability will expand with increasing mobile memory/storage. These works highlight customizing smaller, domain-specific SLMs to address memory limits while preserving functionality in mobile environments. + +SLM for Basic NLP Applications on Devices Performing basic NLP tasks such as text rewriting directly on the device can enable personalization while ensuring privacy. The sparse annotation on devices is a challenge. Qin et al. [278] utilizes self-supervised data selection and synthesis for on-device fine-tuning, leveraging sparse annotations and limited storage effectively. This approach, demonstrated in Figure 18, employs the Llama-3B model [338] and the LoRA fine-tuning method [142], enhancing personalization by efficiently managing data through metrics including embedding entropy and domain-specific scores. In mobile text rewriting, Zhu et al. [458] train the compact Palm 2-XXS model [14] using data generated by the larger Palm 2-L to ensure user privacy and accommodate device constraints. On its new benchmark, MESSAGEREWRITEEVAL, Palm 2-XXS achieves a BLEU score of 34.59, outperforming LLaMa-7B (16.65) [338]. tokens/s), proving its mobile efficiency for text rewriting. + +![](images/d4ef979fb35a43bc43f105144a9a822511b5247f2074c5314c41005aa974897d.jpg) +Fig. 18. Overview of fine-tuning SLMs with synthesized and user data [278]. Data Synthesis generates semantically similar text via prompts, creating dialogue sets. Data Selection processes user data, tags domains, and calculates metrics (EOE, DSS, IDD). Selected data fine-tunes SLMs with user annotations. The iterative framework refines SLMs through continuous data generation and selection. + +Tests on the Samsung S23 show lower latency (29 tokens/s) than a 4-bit LLaMa-7B on a MacBook M1 Pro (18-22 + +Insights: We draw several key insights from the development of task-specific SLMs: + +• There is considerable potential in enhancing the efficiency and effectiveness of small models by integrating self-adaptive techniques with further fine-tuning and optimization of RAG-based methods. +• The growing relevance of SLMs in coding highlights their cost-effectiveness and efficiency as alternatives to LLMs, providing quick processing and easy fine-tuning for specialized tasks; while LLMs handle complex tasks well, SLMs, optimized and fine-tuned on specific data, are increasingly essential in resource-limited settings. +• SLMs significantly enhance recommendation systems due to their robust generalization, reasoning abilities, and in-context learning, addressing key challenges such as cold-start problems and distribution biases. They support long-term planning, replace traditional encoders, and use parallel low-rank parameters to inject personalized user knowledge effectively. +• SLMs play a crucial role in web search such as document encoding, text reordering, and query rewriting, often outperforming LLMs through techniques such as supervised fine-tuning, soft prompt tuning, unsupervised contrastive loss, and reinforcement learning, thereby enhancing adaptability and efficiency. +• SLMs are utilized on mobile devices primarily for privacy and memory constraints, with applications in API calls and mobile control; they are typically developed by generating data with LLMs and fine-tuning with SLMs, or by using local SLMs to handle privacy with LLMs boosting performance, and their training involves innovative techniques like learning from data streams and managing non-IID time series data. + +Table 6. On-device Deployment Optimization Techniques + +
AspectRepresentative WorkKey Point
MeoyEDGE-LLM [422]Edge LLMs use LUC and adaptive tuning for eficiency
LLM-PQ [448]Optimize quantization and layer partitioning for complex setups.
AWQ [207]Preserve key weights based on activation distribution.
DMC [256]Adaptively compress KV cache, optimizing storage eficiency.
Transformer-Lite [193]Optimize KV cache to reduce redundancy and memory use.
LLMaaS [419]LLMaaS manages apps via chunk-wise KV cache optimization on mobiles.
Runtime Efmiciency Optimizationmllm-NPU [395]On-device NPU (neural processing units) to reduce prefill latency.
COST-EFF [305]Distill a multi-exit model from the original PLM.
LLMCad [394]Use SLM for fast token generation and cloud verification.
EdgeMoE [416]Predict expert needs, boosting inference speed and reducing latency.
LinguaLinked [447]Optimize data flow and load, enhancing multi-threading eficiency.
+ +# 4.2 SLM Deployment on Mobile and Edge Devices + +On-device applications benefit uniquely from the memory-saving efficiency and rapid runtime performance of SLMs, which offer advantages over LLMs. However, devices with extremely limited resources may still struggle with the parameter sizes of SLMs. To ensure both memory and runtime remain within acceptable range while still maintaining performance, it is crucial to integrate technologies that facilitate the deployment of SLMs on resource-constrained devices. The primary challenge for memory-efficient technologies arises from the inherent size of the SLMs and their associated caches. To address this, we survey existing works focused on compressing SLMs and their caches. Additionally, the large size of models significantly impacts runtime efficiency due to the extensive computing workload and potential weight transfers between the memory buffer and RAM/GPU memory. Other challenges include switching the Mixture of Experts between CPU and GPU memory and managing resource scheduling when deploying SLMs across multiple local devices. Therefore, in this subsection, we review representative works that address these challenges under two aspects: memory efficiency optimization and runtime efficiency optimization, as systematically compiled in Table 6. + +4.2.1 Memory Efficiency Optimization. Memory efficiency involves minimizing the memory usage of both the model and the KV cache during deployment. This is typically achieved through model compression techniques such as quantization [207, 285, 422, 448], the cache of MoE experts [416], and KV cache compression [165]. + +Compression on model parameters. Quantization, a common method for deploying SLMs, lowers numerical precision to significantly save memory while preserving accuracy. We detail quantization strategies in Sections 2.3.3 and 3.5, focusing here on representative works for edge devices. EDGE-LLM [422] adapts LLMs for edge devices using a Layer-wise Unified Compression (LUC) method that combines layer-specific pruning and quantization to reduce computational demands and an Adaptive Layer Tuning and Voting scheme to optimize memory use while ensuring performance. Meanwhile, LLM-PQ [448] addresses quantization and model layer partitioning for heterogeneous clusters, incorporating a Cost Model and an Indicator Generator to optimize bit-width assignment and layer partitioning through integer linear programming, enhancing quantization for complex computational setups. Activation-aware Weight Quantization (AWQ) [207] is a hardware-friendly, low-bit, weight-only quantization method for on-device LLMs, preserving essential weights based on activation distribution to minimize quantization loss. MoE- $\cdot \mathbf { I } ^ { 2 }$ [404] prune less important experts and applies low-rank decomposition to the remaining experts to further optimize efficiency. Manuscript submitted to ACM + +Cache of MoE Experts. Beyond standard quantization, which reduces storage for all model parameters, another strategy involves caching a mixture of experts (MoE). Driven by the fact that memory storage is more cost-effective and scalable than computing capacity, the MoE architecture [154] boosts performance while minimizing computational costs by activating only portions of the LLM as needed. However, this approach incurs significant memory overhead, making it impractical for edge device memory constraints. For example, Switch Transformers [100], with 32 experts per layer, require 54GBs of memory for inference, exceeding the capacity of most edge devices. Yi et al. [416] notes that in the Switch Transformers model, although most of the model weights $( 8 6 . 5 \% )$ are attributed to experts, these weights account for only a small fraction $( 2 6 . 4 \% )$ of the computations. To address this, EdgeMoE [416] introduces a method where experts are loaded into an expert memory buffer only when activated, achieving approximately $3 \times$ memory savings compared to the baseline where all weights are held in memory. + +KV Cache Compression. When serving LMs for inference, using a KV cache is common practice to avoid intensive recalculations and speed up generation [276]. However, cache memory consumption escalates with model size and sequence length, posing a challenge for edge devices. To manage this, offloading techniques transfer KV caches to CPU memory [12, 308], although this can introduce significant overhead due to the switching costs between GPUs and CPUs. Token dropping compresses cache size by keeping only key tokens, often identified by low attention scores [111, 220, 444]. However, this method struggles with complex tasks, especially at high compression levels, due to increased estimation errors in compressed KV values. GEAR [165] addresses these issues by enhancing KV cache quantization with error-reduction techniques, including: (i) quantizing caches of similar magnitudes to ultra-low precision, (ii) using a low-rank matrix for efficient quantization residual approximation, and (iii) employing a sparse matrix for correcting outliers. This approach separates coherent from incoherent approximation errors, enabling near-lossless KV cache compression and achieving up to $2 . 2 9 \times$ peak memory reduction. + +Besides, Dynamic Memory Compression (DMC) [256] adaptively compresses the KV cache by either adding new key and value representations directly or blending them with the top cache item using a weighted average. Transformer-Lite [193] tackles the redundancy of storing the KV cache twice in model inputs and outputs, which increases memory use. It optimizes storage by allocating a large tensor based on the maximum sequence length needed for inference. Sub-tensors are then created from this main tensor at different address offsets to serve as input and output KV caches, allowing direct writing to the correct locations during inference and removing extra copying steps. LLMaaS [419] introduces LLM as a Service for mobile devices, managing all apps through LLMS. This system uses chunk-wise KV cache compression and swapping, enabling efficient context switching within memory constraints. By segmenting the KV cache into independently compressed and swapped chunks, LLMS balances memory use and I/O bandwidth better than token-level or context-level management. + +4.2.2 Runtime Efficiency Optimization. The goal of decreasing computing workload aligns with enhancing memory efficiency through methods such as quantization, as mentioned in the previous section. Decreasing model weight precision or reducing the number of weights naturally lowers latency. Other runtime efficiency techniques of minimizing inference latency involve, reducing prefill latency, early exits, large and small model collaboration, decreasing switching time in MoE, and reducing latency in distributed SLMs. + +Reducing prefill latency. mllm-NPU [395] is the first LLM inference system that leverages on-device NPU (neural processing units) to reduce prefill latency and energy consumption. It incorporates a chunk-sharing graph, shadow outlier execution, and out-of-order subgraph execution to enhance NPU offloading efficiency. Experiments have shown mllm-NPU’s superior performance benefits, including up to $4 3 . 6 \times$ speedup and $5 9 . 5 \times$ energy savings. + +Dynamic Early Exits A decoupled runtime saving technique is dynamic early exits. Originating from BranchyNet [335], which introduces exit branches after specific convolution layers in the CNN model, this concept has been adapted for PLMs as Transformer layer-wise early exiting [391]. Early exiting enables dynamic acceleration during inference and reduces temporal overhead by allowing exit without passing through all model layers. To address the inconsistency issue arising from exiting at different layers, COST-EFF [305] distills a multi-exit model from the original PLM. + +Large and Small Model Collaboration Model collaboration, deploying SLMs on devices with cloud-based LLM support, enhances runtime efficiency. LLMs will increase latency when directly deployed via mobile engines like llama.cpp due to a large number of computing operations. LLMCad [394] addresses this by using a real-time, memoryresident SLM for simple tokens such as determiners and punctuation. The SLM generates tokens, while a cloud-based LLM verifies and corrects them, speeding up the process. LLMCad enhances token generation up to $9 . 3 \times$ by pairing the memory-resident SLM, Llama 2 7B, with the cloud-based LLM, Llama 2 13B, cutting latency from 16.2 to 3.9 seconds on Xiaomi Pro for TruthfulQA tasks [208]. + +Reducing MoE Switching Time. To reduce latency in MoE architectures caused by frequently switching experts in limited device memory, EdgeMoE [416] enhances runtime efficiency by preemptively predicting which expert will be needed, based on the observed long-tail distribution of unbalanced expert activations. It utilizes a statistical model, built offline, to estimate expert activation probabilities in transformer layers from previous activations. During inference, EdgeMoE preemptively loads the most likely needed expert, accelerating inference by $1 . 1 1 \times$ to $2 . 7 8 \times$ and significantly reducing latency. For instance, in a switch transformer model with 8 experts, latency drops from approximately 0.7s to 0.3s, outperforming the baseline method that preloads experts based on hit ratios. + +Reducing Latency in Distributed SLMs. Distributing an SLM across smaller devices reduces the need for extensive model compression while preserving accuracy. However, this approach faces challenges that incur latency such as managing diverse device capabilities, handling data dependencies between model segments, and adapting to dynamic resource availability. To address these issues, LinguaLinked [447] addresses these issues by optimizing model assignment to match device capabilities and minimize data transmission, implementing runtime load balancing to redistribute tasks and prevent bottlenecks, and enhancing communication for efficient data exchange between segments. With multi-threading, the system improves, achieving acceleration rates between $1 . 7 3 \times$ and $2 . 6 5 \times$ for both quantized and full-precision models. + +Insights: We draw several key insights from the deployment of SLMs: + +• Model size remains a bottleneck for both memory and runtime efficiency. A common solution is model quantization, which reduces model precision to save memory and lessen computing workload, thereby boosting inference speed [207, 223, 253, 285, 422, 448]. Similarly, KV cache compression also helps achieve these efficiency gains [165, 193, 256, 419]. +• Mixture of Experts (MoE) is commonly used in SLMs to enhance performance using the same computing resources, but it results in increased memory usage. To address this, only activated experts are loaded into the memory buffer while the majority are stored cold on disk. However, the cost of switching can slow down inference. Designing a preemptive expert pre-load strategy could therefore accelerate the inference [416]. +• Model collaboration between local SLMs and cloud-based LLMs enhances both memory and runtime efficiency by using smaller models on local devices, which are then verified by cloud LLMs to ensure performance is maintained. Using SLMs locally reduces memory usage and shortens the inference time from the local model. However, internet latency and delays in cloud LLM inference can still introduce latency. Verifying SLM outputs every $N$ tokens using LLMs can effectively mitigate this latency [394]. +• One deployment approach involves deploying SLMs/LLMs across multiple trusted local devices to maintain original performance while only loading a fraction of the model weights. However, this method can incur latency due to varying device capabilities and resource scheduling challenges. To address these issues, optimizing model assignment to align with device capabilities and minimizing data transmission are effective strategies [447]. + +# 5 GENERIC AND DOMAIN-SPECIFIC SMALL LANGUAGE MODELS + +This section investigates small language models (with fewer than 7 billion parameters) in both general and specific domains. It details the methods of obtaining these small language models, the datasets, and the evaluation tasks, exploring the techniques for acquiring SLMs through compression, fine-tuning, or training from scratch. Additionally, we summarize the representative small language models, as detailed in Table 7 and 10. + +# 5.1 Generic-domain SLMs + +Overview. SLMs, with fewer parameters than LLMs, enhance computational efficiency in pre-training, fine-tuning, and inference, reducing memory and energy demands—crucial for resource-limited environments. Their compact, localized nature boosts privacy, personalization, and response times, making them ideal for low-power edge devices. Therefore, SLMs are attracting increasing attention, and various models are being developed. Table 7 summarizes current representative generic-domain 42 SLMs/SLM families. Although all chosen SLMs have similar architectures, they vary in specific training datasets and techniques, with some datasets not being openly available. Taking the latest Llama 3.2 1B models [7] in Figure 19 as an example, its parameter size and use of filtered high-quality training data, pruning-based initialization, knowledge distillation pre-training tasks, and training techniques such as Supervised Fine-Tuning (SFT), Rejection Sampling (RS), and Direct Preference Optimization (DPO) distinguish it from others. + +![](images/5c4d53a6a4c5f09f4ddfaecb6f9efc56e2048c001e55fb6f1444260ba8c674b2.jpg) +Fig. 19. Llama 3.2 1B model card + +5.1.1 Architecture Design. From Table 7, we observe several trends in component choices for SLMs: + +(1) Recent SLMs frequently employ Grouped Query Attention (GQA) in self-attention mechanisms because it can reduce computational complexity. GQA achieves this by sharing query representations across multiple heads while keeping key and value representations separate. This approach aligns with the goals of SLM to enhance efficiency without compromising functionality. + +Table 7. High-level Overview and Training Details of Generic-domain Small Language Models. #Params means Parameter amounts. $" > "$ indicates parameters larger than 7B. + +
Model#ParamsDateParadigmDomainTraining DatasetsTraining Techniques
PhoneLM [417]0.5B;1.5B2024.1 Pre-trainGenericDCLM-baseline [192], tarCoderData [195]; OpenWebMath [267], Dolma-algebraic and Dolma-arXiv [315]RoPE, MHA, Gated FN, MNorm, ReLU, SDP, Fash Atention 2,ZeRO
Llama 3.2 [7]1B; 3B2024.9Pre-trainGenericno release (9T tokens)GQA, SiU, Mulingual Text and code, hared embedding, Prun- ing, Distilltion, FT, LHF, RS, O
Qwen 1 [23]1.8B; 7B;>2023.12Pre-rainGenericno releaseMHA; RoPE; SwiGLU; RMSNorm
Qwen 1.5 [23]0.5B;1.8B; 4B; 7B;>2024.2Pre-rainGenericno releaseMHA; RoPE; SwiGLU; MSNorm; Muligual support
Qwen 2 [402]0.5B1.5B; B;>2024.6Pre-trainGenericno releaseGQA; RoPE; SwiGLU; MSNorm; Multilingual support
Qwen 2.5 [402]0.5B;1.5B; 3B; 7B;2024.9Pre-trainGenericno releaseGQA; RoPE; wiGLU; RMSNorm; Multilingual support; Larger corpus
Gemma [332] Gemma 2 [33]2B; 7B2024.2Pre-trainGenericUnknownMHA, RoPE, GELUtanh
2B;>2024.7Pre-trainGenericUnknownQA Logi Sft-Capping; RMSNorm for Pre and Post-Normalization
SmolLM [9]135M ; 360M; 1.7B2024.7Pre-trainGenericsmollm-corpus [27]GQA, trapezoidal LR scheduler
H20-Danube3 [274]500M; 4B2024.7Pre-trainGenericUnknown
Fox-1 [334]1.6B2024.6Pre-trainGenericUnknown (3T tokens)GQA; Dep architecture
Rene [113] MiniCPM [143]1.3B 1.2B; 2.4B2024.5Pre-train Pre-trainGeneric GenericDolma-1.7 [315] Dolma [315]; C4 [284]; Pile[84]; tack [174]Mamba-2 layers, sing-window atetion (SWA)
2024.4Staroder [195] Ua hat [86]sIn [373]; Evolntruct [392]Warmup-Sable-Decay (WsD) larning ate scheduer
CT-LM [2]2B2024.4Pre-trainGenericMAP-CCChinese, MHA, RoPE, SwiGLU, MSNor
OLMo [116]1B; B2024.2Pre-trainGenericDolma[315] 1SwiGLU; RoPE, Non-Paraeteric LayerNo
TinyLlama [439]1B2024.1Pre-trainGenericSlimPajama [314] and StarCode [195]GQA, SiLU, FSDP, Flash Atention [73], xFormers [184]
Phi-1 [120]1.3B2023.6Pre-trainCodingCodeTextBook [120]22MHA, GELUtanh, RPE, FlshAttentio
Phi-1.5[20]1.3B2023.9Pre-trainGenericCodeTextBook [120];ynthetic Datasets (20)MHA, GEUanh,RE, FshAttentin, De ZeRSe2
Phi-2 [152.7B2023.12 Pre-trainGenericCodeTextBook [120];yntetic Datasets (20)MHA, GEUanh,RE, FshAttentin, De ZeRSe2
Phi-3 []3.8B; 7B;>2024.4Pre-trainGenericScaled-up dataset from phi-2MHA, SiLU, RoPE, FlashAttention, Deep ZeRO Stage 2
Phi-3.5 []]3.8B; 4.2B;6.6B2024.4Pre-trainGenericmore mulilingual and long-text data RefinedWeb [269], deduplicated PE [108],Maulilingual; Vision; MHA, SiU, RPE, FlashAtention, ZeR2
OpenELM [241]270M; 450M; 1.1B;3B2024.4Pre-trainGenericpartial RedPajama [67], partial Dolma v1.6 [315]No biases in FC layers; Pre-norm: RMSNorm; Pos encoding RoPE; Atention: GQA; FFN: SwiGLU; Tokenizer: LLaMA-style
MobiLlama[36]0.5B;0.8B2024.2Pre-trainGenericLLM360 Amber 3GQA; SwiGLU; Parameter-sharig
MobileLM [23]125M,; 350M2024.2Pre-trainGenericUnknow (1 tokens)iG N, ep and thin achitectues, eeding sharing, and grouped quy attenion
Cerebras-GPT [84]111M;256M; 590M; 1.3B;2.7B;6.B;>2023.4Pre-trainGenericPile [108]MHA; GELU; Maximal Update Parameterization
Pythi [31]14M:70M:160M:410M; 1B;1.4B;2.8B;6.9B;>2023.4Pre-trainGenericPile [108]MHA; GELU; Flash Atention [74]; RoPE [318]; ZeRO [286]
BLOOM2 [181]202.11 Pre-trainGenericR0OTS [10] ad 1 programming languges
Galactica [330]125M, 1.B; 6.7B; >2022.1Pe-tranScientificOpen-acces scientic materils (16bB tokens) but not releaseedMHA; GLU Laed Positinalmbedi
OPT [440]125M;350M;1.3B; 2.7B; 5.7B2022.5Pre-trainGenericPile [108] and Pushhift.io Reddit [24]MHA; ReLU
XGLM [209]1.7B; 2.9B;>2021.12Pre-trainnGenericCC100-XL-
GPT-Neo [33]125M; 350M; 1.3B; 2.7B2021.5Pre-trainGenericPil [108]
Megatron-gpt2 [310]355M; 2.5B;>2019.9Pre-trainGenericWikipedia[83], C-Stories [341], RealNew [430], OpenWebtext-
MINITRON [252]4B;>2024.7Distilaion;Generic8T tokens inNemotron-4[266]LR WSD Scheduler
Orca 2 [247]7B2023.11id1Pruning DistillationGenericOrca 2 datasetLLaMA-2-B based; prompt erasing
Orca[251]13B2023.6DistilationFLAN-v2 [225]From ChatGPT and GPT4, Explanation tuning; Progressive Learning
MINIMA [434]3B2023.11 DistilationGenericPie [108], Wudao [42] GitHub [67]From Llama-2-7B, Zero2, Pash Attention, Optimal teacher size
Dolly-v2 [686]3B; 7B;>2023.4Instruction tuningGenericDatabricks-dlly-15k68]6]from pythia
LaMini-LM [171]61M-7B2023.4DistilatonGenericLaMini instruction dataseta collection of SLMs distilld from ChatGPT-generated 2.58M instructions.
Specialized FlanT5 [105]]250M; 760M; 3B2023.1Instruction TuningGeneric (math)GSM8KBase modelis FlanT5
+ +(2) The choice of activation function should balance model capability and efficiency. ReLU, known for its efficiency, introduces greater sparsity to the model, which facilitates faster coefficient calculations for inference acceleration. In contrast, SwiGLU’s parameters are learned during training, allowing the model to dynamically adapt to diverse tasks and datasets, thereby enhancing model capabilities and establishing it as a state-of-the-art option. SiLU, situated between these two, is favored for its balance of computational efficiency and model performance. + +(3) RMS normalization is commonly used than layer normalization due to its reduced computational demands. + +A basic introduction to these options is provided in Section 2. Apart from component choices, there are notable innovations in architecture for SLMs: + +• Mobilellm [223] highlights that deeper models are more effective than wider ones for improving performance. • Embedding sharing [440] is crucial as embedding layers often constitute over $2 0 \%$ of a model’s parameters—for example, with 512 dimensions and a $3 2 \mathrm { k }$ vocabulary, each layer holds 16M parameters in a 125M-parameter model. Smaller models often reuse these weights for both input and output layers, enhancing efficiency and compactness. • Layer sharing [223] increases hidden layers in small Transformer models without additional storage costs. • Shared FFNs [336] make up about $6 5 \%$ of all trainable parameters, with attention mechanisms and heads accounting for the rest. Sharing FFN parameters across all transformer layers of an SLM is proposed to increase efficiency. • Architecture search ahead of pre-training. PhoneLM [417] proposes a principle for constructing on-device small language models: searching for a resource-efficient architecture on a given hardware to optimize the speed-capacity trade-off before pretraining. This approach inspires the tailored selection of architectural components for on-device SLMs, based on specific compositional requirements such as computing efficiency, model capability, and safety. + +A detailed description of these architectural designs can be found in Section 3.1. + +5.1.2 Training Datasets. From Table 7, we can observe a set of widely used training datasets in SLM development. We provide the details below: + +• Pile [108]: It comprises 22 smaller, high-quality diverse corpora from various domains, such as Pile-CC, PubMed Central, ArXiv, GitHub, and FreeLaw, designed to offer a comprehensive foundation for language model training. The dataset contains 207 billion tokens and totals 825 GB. +• C4 (Colossal Clean Crawled Corpus) [284]: This dataset includes 350 billion tokens, representing a cleaned version of the Common Crawl web corpus, intended to capture a wide snapshot of the internet 4. +• The Stack [174]: It contains 6 trillion tokens of source code from over 300 programming languages, useful for developing code-centric AI applications. Python-edu in smollm-corpus [27] consists of Python files that are scored 4 or more by the educational code model and are extracted from the stack-v2-train dataset. +• StarCoder [195]: It features 35 billion tokens, predominantly Python code, aimed at programming language understanding and generation. +• RedPajama [67]: This dataset encompasses 1.2 trillion tokens derived from over 100 billion text documents, processed using the CCNet pipeline to ensure a rich collection of web texts. +• RefinedWeb [269]: This dataset includes 5 trillion tokens of high-quality, extensively filtered web data, offering a valuable resource for training web-aware models. +• PushShift.io Reddit [24]: A around 5 billion tokens resource for social media data collection, analysis, and archiving, specifically of Reddit data, aiding research into social media dynamics. +• CulturaX [257]: It comprises 6.3 trillion tokens across 167 languages, supporting the development of models with extensive linguistic and cultural understanding. +• FineWeb [268], a large-scale (15-trillion tokens, 44 TB disk space) dataset for LLM pretraining. FineWeb is derived from 96 CommonCrawl snapshots. FineWeb-Edu is a subset of FineWeb constructed using scalable automated high-quality annotations for educational value. + +From the analysis of these datasets, we can derive several critical insights regarding the development of SLMs: (i) Data quality is crucial for training effective SLMs, involving sophisticated filtering like removing duplicates or irrelevant content, often with another LLM’s help. For example, the TinyStories corpus [96] is tailored for simplicity, ideal for training models to handle straightforward narratives. RedPajama-V2 [67] uses the CCNet pipeline to process 30B documents, providing quality signals and IDs for creating a 20B deduplicated dataset. (ii) Code Data: Source code constitutes a significant component of valuable data for training models, particularly because of its structured nature and logical content. Training on code data enhances a model’s reasoning capabilities and supports its ability to generalize across multiple natural languages, which is crucial for applications requiring robust problem-solving and interpretation skills in diverse coding environments [17, 104, 120, 236] + +5.1.3 Training Algorithms. To enhance the alignment of SLMs with desirable properties such as safety and reasoning, training algorithms, particularly during the fine-tuning phase, are crucial in evolving pre-trained SLMs. + +• Direct Preference Optimization (DPO) [283] presents a simpler alternative to RLHF for optimizing language models based on human preferences, preventing explicit reward modeling and reinforcement learning. Instead, DPO modifies log probabilities of responses with a dynamic weighting mechanism to prevent model degradation common in probability ratio-focused methods. The DPO loss function is: + +$\begin{array} { r } { \mathcal { L } _ { D P O } ( \pi _ { \theta } ; \pi _ { \mathrm { r e f } } ) = - \mathbb { E } _ { ( x , y _ { w } , y _ { l } ) \sim D } \left[ \log \sigma \left( \beta \log \frac { \pi _ { \theta } ( y _ { w } | x ) } { \pi _ { \mathrm { r e f } } ( y _ { w } | x ) } - \beta \log \frac { \pi _ { \theta } ( y _ { l } | x ) } { \pi _ { \mathrm { r e f } } ( y _ { l } | x ) } \right) \right] } \end{array}$ where $\pi _ { \theta }$ is the policy being optimized, $\pi _ { \mathrm { r e f } }$ is the reference policy, $D$ includes tuples $( x , y _ { w } , y _ { l } )$ , $\sigma$ is the sigmoid function, and $\beta$ scales the log-ratios between $\pi _ { \theta }$ and $\pi _ { \mathrm { r e f } }$ , guiding the model towards human-preferred outputs. • Reinforcement Learning from Contrast Distillation (RLCD) [405] aims to calibrate generative SLMs/LLMs towards embodying harmless and beneficial characteristics. The process starts with an unaligned LM and initial prompts, which are modified into two variants ${ p + }$ and $\hbar -$ , intended to promote and suppress, respectively, attributes like helpfulness and harmlessness. Upon inputting these prompts, the LM generates outputs $^ { o + }$ and $o -$ , with $^ { o + }$ automatically designated as the preferred response. This automation speeds up training by avoiding additional evaluative scoring. The training continues under the RLHF framework. • Conditioned Reinforcement Learning Fine-Tuning (C-RLFT), by OpenChat [356], enhances model performance by incorporating low-quality data during SFT. C-RLFT leverages varied data qualities with simple rewards (e.g., expert data at 1 credit, sub-optimal at 0.1), using distinct prompt tokens to condition data sources, eliminating costly human feedback. Similarly, Data Mix [274] trains on English text in three stages, reducing noisy web data progressively in each stage in favor of higher-quality data. • Explanation Tuning, proposed by Orca [251], addresses the limitations of standard instruction-based fine-tuning, which often restricts SLMs to style imitation rather than reasoning. It uses system prompts with instructions to direct GPT-4 to produce detailed explanations or perform step-by-step reasoning. The resulting instructions and the responses are used as a dataset for fine-tuning SLMs to have better ability of reasoning. + +• Progressive Learning, proposed by Orca [251], aims to bridge the capability gap between Orca and the more capable GPT-4. It starts with training on five million data points from ChatGPT, followed by one million from GPT-4. Research suggests that an intermediate-level teacher can improve distillation effects, enabling a stepwise learning approach where students start with simpler examples and gradually move to more complex ones, receiving improved reasoning and explanations from a more advanced teacher. +• Prompt Erasing introduced by Orac 2 [247], is a distillation strategy designed to enhance the independent reasoning capabilities of student SLMs. In this approach, a more capable teacher LLM is given intricate prompts intended to elicit specific strategic behaviors and more precise outcomes. During the training phase, the SLM is exposed only to the task instruction and the resulting behavior, without access to the original intricate prompts that initiate such responses. This technique, known as Prompt Erasing, positions the student model as a cautious reasoner because it not only learns to perform specific reasoning steps but also develops strategies for approaching tasks at a higher level. +• Maximal Update Parameterization $( \mu \mathbf { P } )$ optimizes control initialization, layer-wise learning rates, and activation magnitudes to ensure stable training regardless of model layer widths. This method enhances training stability and allows the same optimizer settings, especially learning rates, to be used across different model scales. For instance, Cerebras-GPT [314] employs $\mu \mathrm { P }$ to train its models efficiently. + +5.1.4 Model Performance. To compare the performance of SLMs, we have extracted experimental results from two recent and concurrent studies published in June 2024, OLMo [116] and MobiLlama [336], and the recently proposed edge-device Llama 3.2 1B & 3B in September 2024 5. The extracted results are merged and shown in Table 8. From the table, we can find that the following evaluation benchmarks are commonly used: + +(1) MMLU [134]: Evaluate broad knowledge across diverse fields such as humanities, science, technology, engineering, and management. It includes multiple-choice questions covering 57 tasks ranging from elementary mathematics to US history, computer science, law, and beyond, with a total of 14K test samples. +(2) HellaSwag [429]: Assesses the model’s ability to select the correct ending to scenarios from multiple options, testing common sense reasoning, including 10K test samples. +(3) ARC [65]: The AI2’s Reasoning Challenge (ARC) dataset features multiple-choice science exam questions for grades 3 to 9, divided into Easy and Challenge partitions, with the latter containing more complex questions necessitating reasoning. Most questions offer four answer choices. ARC includes a supporting knowledge base of 14.3M unstructured text passages, with 1.17K test samples in ARC_Challenge and 2.25K in ARC_Easy. +(4) PIQA [32]: A commonsense reasoning dataset designed to evaluate the physical knowledge of NLP models. It presents questions (goals) that require physical commonsense for correct resolution, alongside two detailed response options (sol1 and sol2). The dataset comprises 3,000 test samples. +(5) Winogrande [294]: a dataset structured as a fill-in-the-blank task with binary options, designed to assess commonsense reasoning. The dataset includes 1,767 test samples by default splits. + +Accuracy is used as the evaluation metric in the table. Open Language Model (OLMo) [116] is publicly available with its training data and code 6. MobiLlama [336] is a general-purpose SLM designed from scratch, available in 0.5B and 0.8B versions. It adopts a unique approach by using a shared FFN across all transformer blocks, enhancing efficiency. MobiLlama also show high efficiency on diverse hardware (Table 9). + +Table 8. Performance of Various SLMs on Common Benchmarks: data from MobiLlama [336], OLMo [116], and Llama 3.2. + +
Model Size RangeModelMMLUHellaSwagARCPIQAWinogrande
<1Bgpt-neo-125m26.030.323.062.551.8
tiny-starcoder-170M26.828.221.052.651.2
cerberas-gpt-256m26.829.022.061.452.5
opt-350m26.036.723.664.752.6
megatron-gpt2-345m24.339.224.266.953.0
LiteLlama26.238.524.967.749.9
gpt-sw3-356m25.937.123.664.953.0
pythia-410m27.340.926.267.253.1
xglm-564m25.234.624.664.953.0
Lamini-GPT-LM 0.59B25.531.624.263.947.8
MobiLlama 0.5B26.552.529.572.057.5
MobiLlama 0.8B26.954.130.273.257.5
StableLM 1.6B-68.243.874.0-
Pythia 1B-44.733.169.1-
TinyLlama 1.1B-58.734.871.1-
OLMo-1B-62.534.573.7-
OLMo 1.2B25.962.534.5-58.9
Boomer 1B25.431.622.3-51.0
Pythia-Dedup 1B24.349.629.1-54.0
Falcon-RW 1B25.463.135.1-61.9
Cerebras-GPT 1.3B26.738.526.1-53.6
Lamini 1.3B28.538.126.6-50.6
OPT1.3B24.654.529.6-59.7
GPT-NEO 1.3B24.848.531.3-57.1
Pythia-Deduped 1.4B25.555.032.656.9
MobiLlama 1.2B24.863.034.662.0
Gemma 2 2B57.861.176.7-
Llama 3.2 1B49.341.259.4
Llama 3.2 3B63.469.878.6-
Phi-3.5-mini 3.8B69.081.487.4-
Pythia 6.9B-63.844.175.1
Falcon-7B-75.947.578.5
LLaMA 7B-76.244.577.2
Llama 2 7B-76.848.576.7
MPT-7B-77.646.577.3
RPJ-INCITE-7B70.342.876.0
OLMo-7B76.448.578.4-
-
+ +Table 9. Comparison of MobiLlama 0.5B with large-base 1.2B, Llama2 7B, and Phi2-2.7B in terms of efficiency and resource consumption on low-end hardware devices [336]. + +
PlatformModel#ParamsPrecisionAvg Tokens/SecAvg Memory ConsumptionAvg Battery Consumption /1k TokensCPU Utilization
RTX2080TiLlama27Bbf1614.8527793 MB135.51 mAH31.62%
Phi22.7Bbf1632.1912071MB59.13 mAH24.73%
large-base1.2Bbf1650.616254MB18.91 mAH18.25%
MobiLlama0.5Bbf1663.383046 MB8.19mAH14.79%
CPU-i7Llama27B4bit5.964188 MB73.5 mAH49.16%
Phi22.7B4bit22.141972MB27.36 mAH34.92%
large-base1.2B4bit29.231163MB10.81 mAH30.84%
MobiLlama0.5B4bit36.32799 MB4.86 mAH24.64%
Snapdragon-685Llama27B4bit1.1934287 MB10.07 mAH77.41%
4bit2.8271893 MB16.01 mAH567.15%
lae-be2.B
MobiLlama0.5B4bit7.021770MB5.32mAH13.02%
+ +From Table 8 and 9, we can conclude that: (1) MobiLlama 0.5B and 0.8B demonstrate that a shared FFN design can facilitate excellent performance in SLMs with fewer than 1B parameters, even rivaling some models in the 1B-3B range. (2) The performance of MobiLlama 1.2B and OLMo 1.2B illustrates that advanced SLM architectures incorporating high-quality data, SwiGLU, non-parametric layer normalization, RoPE, BPE tokenization, and a shared FFN design can achieve competitive results among models with 1B-3B parameters. (3) MobiLlama demonstrates that SLMs can significantly reduce resource consumption on low-end hardware devices, achieving comparable performance while using a smaller proportion of battery power, memory, and GPU utilization. (4) Popular techniques such as pruning, quantization, distillation, SFT, and DPO, utilized in Llama 3.2, have substantially enhanced SLM performance. + +Insights: We draw several key insights from the development of generic-domain SLMs: + +• Typical SLM architectures generally incorporate features such as GQA, gated FFN with SiLU activations, RMS normalization, deep and thin architectures, embedding sharing, layer sharing, and shared FFNs. +• Although these components are widely used, current research has not yet thoroughly explored their specific contributions within SLMs. +• The importance of data quality in SLM research is increasingly emphasized, often considered more critical than the quantity of data and model architectural configurations. +• Post-pretraining, meticulous fine-tuning is often required to enhance the safety of SLMs, involving strategies to distill +capabilities from LLMs better. Common strategies include explanatory tuning, progressive learning, and prompt erasing. + +# 5.2 Domain-Specific SLMs + +Overview. The capability of LLMs to generate human-like text has significantly captured public interest, highlighting their potential in the field of general artificial intelligence. However, inefficiencies persist when integrating LLMs into specialized applications due to resource constraints. Unlike the need for extensive general knowledge and capabilities, domain-specific SLMs should focus on well-defined tasks and expertise pertinent to specific fields. For instance, specialized models can significantly impact biomedical research and healthcare by fine-tuning for interpretable mental health analysis, or assisting humans in legal dialogues and financial tasks through instruction tuning, showcasing their potential transformative influence. Given the limited number of SLMs specialized in specific domains, we demonstrate some existing SLMs individually across healthcare, science, finance, and law domains. + +5.2.1 SLMs for Healthcare. Hippocrates [3] is an open-source medical language model framework with free access to its data, codebase, checkpoints, and protocols 7. It utilizes a medical pre-training corpus from Medical Guidelines, PMCPatients [452], and PubMedQA-contexts [163], totaling about 300M tokens. The Hippo series, a 7B model, undergoes continuous pre-training, instruction tuning, and RLHF. Fine-tuned on Mistral and Llama-2, it rivals 70B models in some evaluation. For example, Hippo-Mistral 7B scores $5 9 . 9 \%$ on MedQA, outperforming Meditron 70B [55] at $5 8 . 5 \%$ . BioMedLM [34], a 2.7B GPT-style model trained on PubMed content [108], excels in biomedical QA after fine-tuning, achieving $5 7 . 3 \%$ on MedMCQA (dev) and $6 9 . 0 \%$ on MMLU medical genetics exams. Available on Hugging Face Hub 8. AdaLM [414] enhances domain-specific SLMs by continuing training on a medical-focused SLM atop a general pretrained model. It emperically validates adaptation then distillation is the most effective distillation way. AdaLM modified a BERT_base model (12 layers, 768 hidden size) [83] with a 16GB PubMed 9 abstracts corpus. MentalLLaMA [406] introduces the first IMHI dataset for mental health analysis and the first open-source LM for explainable analysis on social media. The IMHI is compiled from ten sources, totaling 105K samples. Expert-designed mental health analysis prompts are employed via ChatGPT for explanations. Based on Llama-2-7B, MentalLLaMA is instruction-tuned on this data and matches top methods in accuracy on the IMHI test set. Project code is available at 10. + +Table 10. High-level Overview and Training Details of Specific-domain Small Language Mode + +
Model#ParamsDateBase ModelsDomainTraining DatasetsTrain Techniques
Hippocrates [3]7B2024.4Instruction Tuning (LLaMA2 [339], Mistral [160])HealthcareMedical Guidelines, PMC-Patients [452], and PubMedQA- contexts [163]Continual pre-training, in- struction tuning, RLHF
BioMedLM [34]2.7B2024.3From scratch and Fine- tuningHealthcarePubMed [108]FSDP
BioMistral [178]7B2024.2Mistral [160]BiomedicinePubMed [108]Continual pretraining
MentaLLaMA [406]7B; 13B2023.9Instruction (LLaMA2 [339]) TuningHealthcareIMHI datasetRLHF; PEFT
AdaLM [414]34M2021.6Distiltion (BERT [83] or MiniLM [362])HealthcarePubMed [108]Continual pretraining, Adapt-and-Distill
Rho-1 [210]1B;7B2024.4TinyLlama-1.1B [439], Mistral-7B [160]Science (Math- ematic()cid)OpenWebMath [267]Continual pretraining
ChemLLM [436]7B2024.4Instruction Tuning (In- ternLM2)Science (Chem- istry)ChemDataContinual training and fine-tuning
SciGLM [435]6B2024.3Instruction Tuning (ChatGLM-6B)ScienceSciInstructSelf-reflective instruction annotation
Llemma [22]7B2023.10Code Llama 7BScience (Math- ematics)id)Proof-Pile-2 [22]Continual pre-training
OceanGPT [30]2B; 7B; 14B2023.10LLaMA2 [339]Science (Ocean)Open-access litera- ture, DoINSTRUCTContinual pre-training,In- struction tuning
AstroLLaMA [258]7B2023.9Tuning (LLaMA-2-7B)Science (As- tronomy)arXiv abstracts from KaggleContinual trining
DARWIN [388]7B2023.8LLaMa 7BScience (physics, chem- istry, and material)SciQ [375], Scien- tific paper[388], FAIR [388]Fine-tuning
MindLLM [412]1.3B; 3B2023.10From-scratch and Super- vised Fine-tuningLaw, FinancePile [108], Wudao [424], CBooksTrain on Bilingual Mixture Data, SFT
+ +5.2.2 SLMs for Science. SciGLM [435] is a collegiate-level scientific language model overcoming data scarcity with a self-reflective instruction annotation framework. Utilizing GPT-4 [2], it generates detailed reasoning for unlabeled scientific problems through three steps with designed prompts in Table ??: (i) CoT prompt for step-by-step answers (Prompt 1), (ii) reflective prompt for correcting errors (Prompt 2), and (iii) integrating the correct answer for clarity (Prompt 3). The SciInstruct dataset spans physics, chemistry, math, and proofs, tuning ChatGLM-6B’s [93] reasoning abilities. SciGLM boosts the base model’s (ChatGLM3-6B-Base) scientific QA accuracy by $3 . 0 6 \%$ on benchmarks such as CEval-Hard [149], CEval-Sci [149], MMLU-Sci [134], SciEval [319], and SciBench [363]. Llemma [22], an SLM derived from CodeLlama [292], specializes in mathematical reasoning. By continual pre-training, its 7B model is evolved on 55B tokens from the newly created Proof-Pile-2 dataset, which includes scientific papers, math web content, and mathematical code up until April 2023, to enhance few-shot capabilities. It excels in mathematical benchmarks like MATH [134], GSM8k [66], OCWCourses [186], MMLU-STEM [134], and SAT, surpassing all comparable open-weight models. ChemLLM [436] is a chemistry-focused language model that utilizes its proposed ChemData, a dataset designed for instruction tuning that transforms chemical data into dialogue format for training. ChemLLM is based on InternLM2-Base-7B [40], initially enhancing its language skills with a multi-corpus of 1.7 million Q&A pairs from Hugging Face, then fine-tunes using ChemData and the multi-corpus to maintain its general capabilities. ChemLLM excels in interdisciplinary chemical tasks within the proposed ChemBench, achieving results comparable to GPT-4 [2] and outperforming GPT-3.5 with a score of 92.6 in Mol2caption, slightly below that of GPT-4. AstroLLaMA [258] introduces an astronomy-focused language model. Based on Llama-2-7B [339] and enhanced via continual pre-training, it has been developed using over 300K astronomy abstracts from arXiv 11. AstroLLaMA achieves $3 0 \%$ lower perplexity than Llama-2-7B, indicating substantial improvements in domain adaptability. AstroLLaMA is available 12 for tasks such as automated paper summarization and conversational agent development in astronomy. + +Table 11. Prompts for self-reflective instruction annotation framework + +
Chain-of-Thought[Prompt 1] The following input consists of a science problem, please generate an elaborate step- by-step solution to the problem.
Reflective Generation[Prompt 2] The following input comprises a science problem and a corresponding solution. However, this solution is incorect, please reflect on its errors and then generate a correct step-by- step solution to the problem.
Prompt Answer[Prompt 3] The following input consists of a science problem, a corresponding solution, and the real answer. The given solution is incorrect, please reflect on its errors and then generate a correct step-by-step solution to the problem based on the real answer.
+ +5.2.3 SLMs for Finance and Law. MindLLM [412] introduces a bilingual (Chinese and English) SLM, pretrained on the Pile dataset [108] for English and WuDao [424], CBook, and various Chinese web content for Chinese. Bilingual training enhances capacity and prevents catastrophic forgetting. It explores specific domains such as law and finance through supervised fine-tuning. In law, it utilizes publicly available legal data, scenario-based Q&A from LaW-GPT [139], and NLP-based legal tasks from DISC-LawLLM [427]. In finance, EastMoney 13 is selected as the data source. + +Insights: We draw several key insights from the development of domain-specific SLMs: + +• Adapting SLMs to domain-specific data is a common practice for acquiring domain-specific SLMs, prompting many to create their datasets [258, 406, 435, 436]. These datasets are often annotated using LLMs like GPT-4 and used to continual pre-train or fine-tune general models such as LLaMa-2-7B [3, 34]. To ensure the data quality, specialized annotation frameworks are developed, such as SciGLM [435]. +• In domains with abundant corpora, training a general model from scratch and fine-tuning it using SFT [412] is practical. Bilingual settings during training can prevent catastrophic forgetting. +• Distilling general capabilities from LLMs while integrating domain-specific knowledge from corpora is another method for developing domain-specific SLMs [414]. + +Table 12. SLMs help LLMs in different aspects + +
AspectRepresentative workKey point
SL fo ealeAPRICOT [343]Trains aalxiliy del topdic 's cnfienc ui only textual inputs and outputs.
POLAR [450] Hallucination Detector in NMTUsing a BERT model to calibrate LLM responses. Using lightweight classifiers to detect hallucinations in Neural Ma-
[399]chine Translation.
SuperICL [393]
SLM Plug-ins provide confidence and prediction for contextual ex- emplars to aid in-context learning.
SuperContext [408]Specifi c SLM enhances ICL by providing confidence and predictions to overcome out-of-domain challenges.
Self-RAG [18]A proxy model labels special tokens during RAG data generation for fi ne-tuning.
SKR [365]Training a small model to detect its self-knowledge for better use of external knowledge.
SlimPLM [325]Detecting missing knowledge in LLMs with a slim proxy model, enhancing the LLM's knowledge integration.
In-Context RALM [287]Training a RoBERTa-based reranker for top-k BM25 documents using LM signals to enhance LM gains.
CRAG [401]Training a lightweight evaluator to assess document quality and trigger actions based on confidence levels.
GSR [148]Training a Generative Sub-graph Retriever (GSR) for relation chain in RAG when retrieving from knowledge graphs.
SLM for Prompt Extraction [443]Small model trained to predict confidence of extracted system
exratig L MPrompt Stealing Attacks [297]
Output2prompt [433]Using a sparse encoder-decoder-based T5 small model to reverse-
Model Purifying [197]engineer LLM inputs from outputs. Using SLMs to ensemble with LLMs, mitigating negative effects
from uncurated data.
Weak-to-Strong Search [453]Framing LLM alignment as a test-time greedy search to maximize
SLCoLM [327]the log-probability difference between tuned and untuned SLMs. Using SLM predictions to guide the LLM generation process in
SLM for LLM applications SLM for LLMHEF [413]Chinse n ang,
Contrastive decoding [198]Enhancing text quality by maximizing the difference between expert
Llama Guard [153]and amateur log probabilities. An LLM-based input-output safeguard model geared towards
safetySLM as Guardian [177]Human-AI conversation use cases. A smaller LLM for both harmful query detection and safeguard
response generation.
SLM for LLM evaluationSLIDE [449]Utilizing SLMs trained via contrast learning to distinguish and score responses in dialogue scenarios effectively.
Kuhn et al. [175]An SLM is used as the natural language inference classifier.
SelfCheckGPT [240]An SLM is used to calculate BERTScore.
Factscore [244]An SLM functions as the natural language inference classifier.
+ +# 6 SLMS FOR LLMS + +In this section, we provide a comprehensive review of how SLMs enhance LLMs. While LLMs are robust, they face challenges such as latency during inference, labor-intensive fine-tuning, noise filtration issues in retrieval, suboptimal zero-shot performance, copyright infringement risks, and evaluation difficulties. SLMs can help LLMs to alleviate these issues. Research in this field can be categorized into five primary areas: (i) using SLMs for reliable LLM generation; (ii) extracting prompts for LLMs using SLMs; (iii) fine-tuning LLMs with SLMs; (iv) applying SLMs in LLM applications; (v) utilizing SLMs as guardian; and (vi) evaluating LLMs using SLMs. A summary of representative work in each category along with their key point is given in Table 12. Next, we introduce each category in detail. + +# 6.1 SLM for Reliable LLM Generation + +Although LLMs generally produce fluent and convincing text, they can occasionally generate erroneous responses [159, 349]. Additionally, LLMs are susceptible to privacy breaches from untrusted data collection, which can erode user trust or cause harm. To address these issues, recent studies have focused on using SLMs to calibrate LLM confidence, detect hallucinations, and improve retrieval-augmented LLMs and their reasoning capabilities. + +![](images/fd9856ea9edd8abf68bb3993615db91a48a01c7506699c07a2722ea28ad8f21a.jpg) +Fig. 20. Architectures of Enhancing Calibration and Hallucination Detection of LLMs. + +Enhancing Calibration and Hallucination Detection of LLMs As illustrated in Figure 20 (a), to calibrate LLMs, an SLM processes both questions and LLM-generated answers to predict calibrated confidence. This training involves minimizing the discrepancy between estimated calibration error and predicted confidence score. For instance, APRICOT [343] uses an auxiliary DeBERTaV3 model [131] to assess LLM confidence in open-question scenarios, aiming to improve uncertainty expression and response adjustment. Similarly, POLAR [450] has developed a self-supervised approach that generates risk scores for each response to calibrate LLM confidence, utilizing a small BERT model [83] to synchronize LLM outputs with other weak supervision sources. As shown in Figure 20 (b), for hallucination detection, an SLM analyzes LLM internal states to output the likelihood of hallucination. This process uses supervised data obtained by testing the knowledge boundaries of the LLM. In neural machine translation, Xu et al. [399] develop a lightweight detector that analyzes token contributions to hallucinations, outperforming both model-free baselines and quality estimation classifiers. Furthermore, SAPLMA [21] found that LLM internal states can signal the truthfulness of statements, with a small BERT classifier trained to differentiate correct from incorrect predictions achieving accuracies of $7 1 \%$ to $8 3 \%$ . + +Enhancing Retrieval-Augmented Generation Generally, as shown in Figure 21, SLMs can also serve as proxy models to evaluate the familiarity of LLMs with user queries, determining whether LLMs need to retrieve additional information or can respond directly. For example, SlimPLM [325] is a small proxy model that assesses the necessity for LLM retrieval by generating heuristic answers. High-quality responses indicate that LLMs can handle queries independently, whereas lower-quality outputs require further retrieval. Additionally, Self-Knowledge Guided Retrieval (SKR) [365] enables SLMs to autonomously decide when LLMs should operate independently, based on their self-assessment of knowledge limitations. Further, SELF-RAG [18] improves the factual accuracy and quality of LLM outputs through on-demand retrieval and self-reflection. This method employs a small critic language model to issue reflective markers and make binary decisions regarding the need for further information retrieval. Moreover, some studies utilize SLMs to evaluate the relevance of retrieved documents. LongLLMLingua [162] employs SLMs to calculate the relevance of documents to a query $x ^ { q u e }$ using perplexity, as formalized by the equation: + +![](images/a799fdedf2acbfe0cf778e6b9e31f6394c944c22af26e4e01b46328d0a6c4a24.jpg) +Fig. 21. Architecture of SLM as a Heuristic RAG Prober. Manuscript submitted to ACM + +$$ +r _ { k } = - \frac { 1 } { N _ { c } } \sum _ { i } \log \phi _ { ^ { \mathrm { S L M } } } ( x _ { i } ^ { q u e } | x _ { k } ^ { d o c } ) , \quad k \in \{ 1 , 2 , . . . , K \} +$$ + +where $x _ { i } ^ { q u e }$ is the $i \cdot$ -th token in the query sequence, $x _ { k } ^ { d o c }$ is the retrieved document, and $N _ { c }$ is the total number of tokens in the query. $ { p _ { \mathrm { S L M } } }$ represents the probability generated by an SLM. CRAG [401] employs SLMs as evaluators of document relevance in the same way. RA-ISF [219] trains a small language model that checks the base LLM in self-knowledge, relevance judgment, and question decomposition. In addition, some research employs SLMs as re-rankers to refine the order of documents provided by initial retrieval efforts such as BM25 [291]. In-Context RALM [287] positions SLMs as rankers, optimizing the document sequence with a fine-tuning process on RoBERTa [218] as defined by the loss function: + +$$ +\operatorname* { m i n } _ { r a n k e r } \sum _ { i = 1 } ^ { k } - \log p _ { \mathrm { r a n k } } ( d _ { i } | \boldsymbol x _ { \le s _ { j } } ) \cdot p _ { \theta } ( \boldsymbol y | d _ { i } ; \boldsymbol x _ { \le s _ { j } } ) +$$ + +where $x _ { \leq s _ { i } }$ is a prefix sampled from the training data, $y = x _ { s _ { i } + 1 } , . . . , x _ { s _ { i } + s }$ represents the text to be generated in the next stride, $p _ { \theta } ( y | d _ { i } ; x _ { \le s i } )$ denotes the probability of the LLM generating $y$ given $d _ { i }$ and $x { \le } s i$ , and $p _ { \mathrm { r a n k } } ( d _ { i } | \boldsymbol x _ { \le s _ { j } } )$ is the ranking score of $d _ { i }$ . Lastly, some studies leverage SLMs to retrieve sub-graphs when utilizing knowledge graphs as external sources. Huang et al. [148] introduces the Generative Sub-graph Retriever (GSR), which employs SLMs to predict relation chains for answering questions, offering a cost-effective alternative to training LLMs. Specifically, it uses customized T5 (220M, 770M, and 3B) [284] as retrievers to enhance LLM readers, including Llama2-chat-7B [339] and Llama3-instruct-8B [94], on the WebQSP [418] and CWQ [324] datasets. + +Enhancing Reasoning Capabilities of LLMs As illustrated in Figure 22, SLMs enhance LLMs reasoning by transferring task knowledge to in-context examples, effectively reducing hallucinations. While In-context Learning (ICL) generally handles few-shot learning + +![](images/ae6045a43b98b5c6bb8da34d5ac3c583c0ff5d17ee9737e665173841d5bfaff3.jpg) +Fig. 22. SLM transfers knowledge into ICL. + +with 16 to 32 examples, it struggles when faced with extensive supervised data. SLMs, specialized in task-specific training, complement the broader domain knowledge of extensively pre-trained LLMs. For example, SuperICL [393] incorporates SLMs as plugins for efficiently executing supervised tasks. It predicts labels for contextual examples and integrates these predictions with the input text and actual labels to enhance knowledge transfer, thereby boosting the understanding and responsiveness of LLMs. SuperContext [408] tackles challenges that LLMs encounter with new tasks and out-of-distribution data in natural language understanding by synergizing SLM outputs with LLM prompts during inference. This integration merges model predictions with their confidence levels, effectively leveraging SLM task-specific knowledge and LLM domain expertise. Furthermore, SLMs efficiently decompose complex reasoning by breaking tasks into simpler components, as demonstrated in [383]. This strategy increases efficiency and reduces deployment costs when SLMs and LLMs are used collaboratively, transforming complex tasks into manageable segments. + +![](images/9c3657c5bb8abd7484009440e98895b181ebe7f9d445c79c6060797acd00bc03.jpg) +Fig. 24. SLM for LLM Prompt Extraction Paradigm. $M _ { S }$ denotes small language models and $M _ { L }$ denotes large language models. (a) SLM-based prompt estimation tries various attack prompts; $M _ { S }$ selects the most likely extracted one. (b) SLM-based Parameter Extractor identifies the type of input prompt. (c) SLM-based Model Inversion uses $M _ { S }$ to invert the LLM output back into the input. + +Alleviate Copyright and Privacy Issues of LLMs LLMs pose significant security risks due to their tendency to memorize training data, leading to potential privacy breaches and copyright infringement. As depicted in Figure 23, SLMs can assist LLMs in addressing copyright and privacy concerns arising from online data collection. By training on + +![](images/626c7e9d43b4aab04b75e0c85a0ebd44a849b1c90de29088e83b6acbc899b0f8.jpg) +Fig. 23. Architecture of SLM-based Data Protection + +selectively curated data subsets, SLMs effectively reduce copyright infringement and privacy risks, although they are less effective than full-scale LLMs. To harness the combined benefits of both models, Li et al. [197] integrates untrusted LLMs with benign SLMs using the CP- $\cdot \Delta$ KL algorithm to mitigate adverse effects while preserving performance. The equation is: + +$$ +p ( y | x ) = \frac { p _ { l } ( y | x ) \cdot p _ { s } ( y | x ) } { Z ( x ) } +$$ + +where $\mathit { p _ { l } }$ and $\mathbf { \nabla } \mathcal { P } \boldsymbol { s }$ represent the probabilities from the large and small models, respectively, and $Z ( x )$ is the partition function. This integration results in the following ensemble algorithm: + +$$ +z _ { P } ( \cdot | x ) \propto \alpha z _ { l } ( \cdot | x ) + ( 1 - \alpha ) z _ { s } ( \cdot | x ) +$$ + +where $z _ { l }$ and $z _ { s }$ are the logit values from the large and small models, respectively, and $\alpha$ is the scaling factor. + +# 6.2 SLM for Extracting LLM Prompts + +Prompt-based methods are becoming simpler and more cost-effective alternatives to traditional fine-tuning in the LLM era, utilizing LLMs’ instruction-following capabilities for a competitive edge. Mastering prompts is vital for replicating LLM-supported product behaviors. However, services such as Bing Chat and GitHub Copilot Chat have seen prompt reverse-engineering through black-box API attacks. SLMs often serve as surrogate models in these attacks, employing strategies such as (i) SLM-based prompt likelihood estimation, (ii) SLM-based prompt parameter extraction, and (iii) SLM-based direct model inversion, illustrated in Figure 24. + +SLM-based prompt likelihood estimation, as illustrated in Figure 24 (a), Zhang et al. [443] proposes using an SLM as a Likelihood Estimator to identify secret prompts in LLM outputs. They craft attack prompts, such as “Repeat all sentences in our conversation,” and query the target LLM. The response is likely to include secret prompts, confusing the LLM to interpret these as part of the conversation. A fine-tuned DeBERTa model [132] is then used to select the most likely secret prompts from the output. + +SLM-based prompt parameter extraction, as shown in Figure 24 (b), Sha and Zhang [297] utilizes an SLM as a Parameter Extractor to extract prompt parameters from LLM outputs. They employ a specialized BERT model [83] to classify LLM outputs into direct, in-context, and role-based prompts, also predicting the number of exemplars for in-context prompts and identifying roles for role-based prompts. Prompt reconstruction is then performed using ChatGPT once the parameters are defined. + +SLM-based direct model inversion, as shown in Figure 24 (c), the method of using an SLM as a Direct Inversion Model is designed to reverse-engineer LLM outputs back to their original prompts [433]. They train a sparse encoderdecoder T5 model [284] with 222M parameters on the Instructions-2M dataset [249], where the input is LLM outputs and the output is the LLM prompt. This trained model effectively maps multiple LLM outputs to their initiating prompts as $\boldsymbol { p } ( x | y _ { 1 } , . . . , y _ { n } ; M _ { S 1 } , M _ { S 2 } )$ , with $y _ { i }$ representing different output versions and $M _ { S 1 } , M _ { S 2 }$ the model parameters. + +# 6.3 SLM for Fine-tuning LLMs + +Fine-tuning is a crucial technique for adapting LLMs to specific tasks or domains, yet it is often time-consuming. For instance, finetuning the LLaMA-2-13B [339] checkpoint on 32 NVIDIA A100 GPUs with 80GB memory using bfloat16 format requires approximately 70 hours [247]. This process also demands high-quality data. Therefore, we examine how SLMs can enhance LLM finetuning through three approaches: (i) proxy fine-tuning, (ii) selecting high-quality data, and (iii) guiding LLM-generated task data, as illustrated in Figure 25. + +![](images/dbb90c927b541ccb1dbead5da7a8cacff664dcc463e7dcbbe77d6329cea8382d.jpg) +Fig. 25. SLM for LLM Fine-tuning. + +SLMs as proxy models: SLMs can approximate the gradient of fine-tuning large-scale LLMs on target datasets, avoiding the costly fine-tuning process in terms of time and computational resources. As shown in Figure 25 (a), Emulated Fine-Tuning (EFT) [246] simulates both unsupervised pre-training and supervised fine-tuning stages across different scales by manipulating log probabilities. EFT, for example, combines base log probabilities from a 70B model with behavioral deltas from a 7B model—these deltas represent differences between fine-tuned and unfine-tuned SLMs, effectively emulating outcomes for the Llama-2 series. This method allows fine-tuning on smaller models such as Falcon-7B [10] while capturing most benefits of fine-tuning larger models such as Falcon-180B, benefiting applications such as dialogue, question-answering, and code generation. Similarly, Proxy-tuning [212] adjusts LLM predictions by adding the differences between the outputs of a fine-tuned small model and its untuned version to the LLM’s output vocabulary during decoding, maintaining the advantages of large-scale pre-training while integrating small-scale fine-tuning benefits. Moreover, SLMs can act as proxies for approximate LLM fine-tuning during decoding. Weakto-Strong Search [453] strategy frames the alignment of LLMs as a test-time greedy search, aiming to maximize the log-probability difference between small tuned and untuned models while sampling from the frozen large model. This approach serves as a dual-purpose method: (1) a compute-efficient model up-scaling strategy that circumvents direct tuning of the large model, and (2) an instance of weak-to-strong generalization that bolsters a strong model with weak test-time guidance. + +SLMs play a role in selecting high-quality fine-tuning data for LLMs. Figure 25 (b) illustrates how SLMs within the same family as the LLM can identify training samples that are likely to be challenging, enhancing the training efficiency and generalization capability of the LLM. As demonstrated by Swayamdipta et al. [323] and further advanced by Mekala et al. [242], the learning percentage $L P ( i )$ is a metric used to curate high-quality datasets with hard samples: $\begin{array} { r } { L P ( i ) \ : = \ : \frac { P _ { i - 1 } - P _ { i } } { P _ { 0 } - P _ { n } } } \end{array}$ where $P _ { i }$ represents the perplexity at the end of epoch-??, and $P _ { 0 }$ is the initial perplexity. A higher $L P ( i )$ early in training indicates significant learning in the initial epochs, highlighting the potential of these samples to enhance LLMs. SmallToLarge (S2L) [411] utilizes training loss trajectories from smaller models to guide data selection for larger models fine-tuning. Experimental results demonstrate that S2L significantly enhances data efficiency in SFT for mathematical problem-solving, reducing the required training data to just $1 1 \%$ of the original MathInstruct dataset [428] to achieve performance comparable to that obtained using the full dataset. + +SLMs enhance the quality of LLM-generated data for specific tasks. As depicted in Figure 25 (c), CROSSLM [79] promotes the local training of SLMs on client-specific private data to mitigate privacy risks associated with server-based LLMs. An SLM trained in this manner can guide the server-side LLM to produce high-quality synthetic datasets. Feedback from SLMs regarding the quality of this synthetic data serves as a supervisory signal, enhancing both the quality of LLM outputs and the utility of the data for further training. + +# 6.4 SLM for LLM Applications + +LLMs are utilized across various applications due to their open-ended generation capabilities, yet they often lack specialized knowledge and other generation issues. SLMs can supplement this by providing taskspecific knowledge or reflecting weaknesses. Therefore, we explore how SLMs enhance the performance of LLMs in specific applications, focusing on open-ended generation, knowledge integration, relation extraction, and empathetic response. + +In open-ended text generation—such as writing assistance and story creation—LLMs often suffer from issues such as incoherence and thematic drift over extended sequences. Due to more frequent failure patterns observed in SLMs, such as short, repeated, and irrelevant strings, these patterns serve as negative examples for LLM decoding. + +![](images/7bd4c45becca7b686c32b583209d1f7a73eb6551e34b45c46098c5c022c94672.jpg) +Fig. 26. Contrastive Decoding [198]. + +Contrastive Decoding (CD) [198] improves coherence and lexical diversity by leveraging the differential capabilities between a large model, OPT-13B [440], and a smaller model, OPT-125M. As illustrated in Figure 26, CD improves content quality by sampling generation based on the difference in log probabilities, $\log p _ { E X P } - \log p _ { A M A }$ , between an expert LM and an amateur LM, rather than relying solely on the expert LM’s log probability. This approach effectively reduces generative failures, including repetition. + +In knowledge injection, general LLMs may lack domain-specific expertise for specialized tasks like law or medicine [91, 353]. Domain-specific SLMs can supply crucial knowledge in a format suitable for LLMs. To this end, BLADE [189] integrates black-box LLMs with small domain-specific models. BLADE combines the comprehensive language capabilities of LLMs with the specialized knowledge of small LMs. As shown in + +1. Domain-specific 2. Knowledge 3. Bayesian Prompted pre-training Instruction Tuning Optimization + +![](images/0e42f91999f7419cb80623e72013f86267aee5f36093e88b937c5c8097ca9307.jpg) +Fig. 27. BLADE Framework [189]. + +Figure 27, BLADE’s process includes: 1) pre-training SLMs on domain-specific data, 2) fine-tuning with knowledge instruction to meet task-specific needs, and 3) using joint Bayesian optimization to enhance synergy between the LLM and the small LM, boosting overall performance. + +In relation extraction, a field limited by scarce labeled data and prevalent long-tail categories, the “Train-GuidePredict” framework [327] employs SLMs to learn task-specific knowledge for dominant categories. SLMs struggle with rare categories, whereas LLMs manage these effectively due to their extensive pre-trained text. Therefore, this framework leverages the strengths of both models: it utilizes SLMs to acquire task knowledge and guide the LLM’s generative process with initial SLM predictions, enhancing the LLM’s handling of underrepresented categories. + +In generating empathetic responses, LLMs excel in expressiveness but struggle with nuanced emotions and cognition. HEF [413] addresses this by incorporating Small Empathy Models (SEMs) to enhance LLMs’ emotional and cognitive depth. This framework employs a two-tiered emotion prediction method: SEMs identify primary emotions, directing LLMs to concentrate on these emotions and their triggers, resulting in more accurate and empathetic responses. + +# 6.5 SLM for LLM Safety + +As demonstrated by various works [250, 302, 426, 460], LLMs are vulnerable to adversarial attacks and jailbreaking. For example, Wang et al. [358] shows that ChatGPT’s performance on adversarial datasets is still far from perfect, indicating that potential risks of adversarial vulnerability remain. Another example includes jailbreaking ChatGPT by asking it to ’pretend to be a sarcastic mean girl.’ Using such techniques, it has been shown that even the most advanced LLMs are far from being safe against generating potentially harmful content. Hence, the widely adopted LLM-based services to generate are at high risk of being misused for nefarious purposes. Consequently, resources such as the Llama 2 Responsible Use Guide 14 strongly advocate for implementing robust guardrails in products that utilize Generative AI. These guardrails are specifically designed to mitigate risks associated with both inputs to and outputs from the model, ensuring safeguards against the generation of high-risk or policy-violating content, as well as protecting against adversarial inputs and attempts to compromise the model. In addition to developing trustworthy LLMs, adopting SLMs for LLM safety [153, 177] has also attracted increasing attention. For example, Llama Guard [153], fine-tuned on Llama2-7B, has publicly released an input-output safeguard tool specifically for classifying safety risks in prompts and responses within conversational AI applications. However, this tool is limited to assessing the harmfulness of questions and answers and does not facilitate the generation of fluent, safe responses. In response to this limitation, Kwon et al. [177] fine-tune a specialized small language model with harmful query detection and safeguard answer generation tasks to accurately detect harmful user queries and generate appropriate safeguard explanations, thereby enhancing the safety measures in conversational AI. + +# 6.6 SLM for LLM Evaluation + +SLMs can also enhance the evaluation of LLMs. In dialog evaluation, generating dialog reference responses is computationally complex, making accurate assessment difficult due to the multiple plausible but semantically different responses possible for a single dialog context. Relying on LLM prompting for evaluation can lead to problems such as dependency on prompt wording and inconsistent results. One solution involves training specialized SLMs to evaluate LLMs, as these SLMs can be fine-tuned more quickly and generate outputs faster during inference, owing to their reduced number of parameters. For example, SLIDE [449] employs contrastive learning to fine-tune an SLM to effectively distinguish between positive and negative responses. Based on its observation that SLMs are more accurate in identifying positive responses and LLMs excel at classifying negative ones, the trained SLM is subsequently integrated with an LLM to assign a score to each response. The scoring method used is formalized as follows: + +$$ +s c o r e = \left\{ \begin{array} { l l } { s c o r e _ { S L M } , } & { \mathrm { i f } s c o r e _ { S L M } \ge 0 . 5 } \\ { s c o r e _ { L L M } , } & { \mathrm { e l i f } s c o r e _ { L L M } < 0 . 5 } \\ { \frac { s c o r e _ { S L M } + s c o r e _ { L L M } } { 2 } , } & { \mathrm { o t h e r w i s e } } \end{array} \right. +$$ + +This equation allows for adaptive response evaluation, leveraging the strengths of both models to ensure a more reliable and consistent assessment across varying dialogue contexts. In the natural language generation task, Kuhn et al. [175] designs a novel entropy to evaluate the uncertainty of LLMs. It aims to tackle the challenge of semantic equivalence [175]. For instance, $A$ ’s son is $B$ and $B$ is $A$ ’s son are semantically equivalent. It should not be considered uncertain if an LLM is unsure about which of the two previously mentioned sentences to generate due to semantic equivalence. A DeBERTa-Large [132] fine-tuned on the MNLI [378] dataset serves as the classifier guided by semantic equivalence in the clustering stage. SelfCheckGPT [240] proposes a black-box hallucination detection method for LLMs. The core idea is to leverage uncertainty derived from sampled outputs. To be specific, Manakul et al. [240] claim that an LLM trained on a concept generates responses that are similar and factually consistent. One of the five variants of SelfCheckGPT uses BertScore to achieve it. A DeBERTa-Large [218] is utilized to calculate the BERTScore. Factscore [244] is proposed to evaluate the factuality of LM-generated long-form content. It divides the generated long content into multiple short texts, enabling a more precise assessment of factual accuracy. In addition to manual evaluation, Min et al. [244] also proposes an automated evaluation framework to estimate Factscore which can reduce costs. LLaMa 7B [338] fine-tuned on Super-NaturalInstructions [367] is one of the LMs employed as an evaluation assistant and shows promising performance. They also employ Generalizable T5-based dense retrievers [259] to facilitate passage retrieval. + +Insights: SLMs can improve LLMs in various aspects, including enhancing the reliability of LLM generation, extracting prompts, fine-tuning, +application, and evaluation. This discussion seeks to answer when SLMs should be utilized to augment LLMs. We identify several suitable +scenarios: +• Adapting LLMs to specific tasks can require substantial computational resources and time. In such cases, a smaller model could be fine-tuned instead to serve functions such as hallucination detection. +• SLMs can outperform LLMs in certain aspects, hence combining SLMs with LLMs can create a more powerful model, e.g., SLMs typically have fewer security issues than LLMs, and integrating both can generate a model that is both powerful and secure. +• SLMs, despite their limitations, can alert LLMs to these issues, such as the tendency to produce repetitive vocabulary. Designing contrastive losses can help LLMs overcome these issues by learning from the nuanced feedback of SLMs. +• The fast inference speed and certain characteristics of SLMs can emulate and thus enhance the behavior of LLMs, acting as effective proxies. For example, the training data selection for LLMs can be guided by the difficulty metrics assessed by SLMs, and the parameter adjustments during the fine-tuning of SLMs can also approximate the fine-tuning processes of LLMs. + +Table 13. Synergy between SLMs and LLMs + +
SynergyRepresentative WorkKey Point
CoGenesis [437]Divide user instructions into general part by LLMs and private parts by SLMs.
LLMCad [394]Combine lightweight and high-precision LLMs for on-device inference.
Khattab et al. [167], Ma et al. [234]Focuse on LLM's reasoning and SLM's eficient decoding.
Cloud-Edge Synergy (Training)CROSSLM [79]Preserve client data privacy by training SLM locally and LLM remotely; mutual improvement using SLM-labeled data from LLM outputs.
Task-Centric Synergyα-UMi [307]Break down a single LLM into specialized agents.
SynCID [204]Merge LLM's semantic with SLM's speed; refine labels via contrastive learning.
Filter-then-rerank [234]SLMs process simple samples and flag complex ones for LLM reranking.
Data Shunt+ (DS+) [46]Process easy samples with SLMs and delegates hard samples to LLMs.
+ +# 7 SYNERGY BETWEEN SMALL AND LARGE LANGUAGE MODELS + +The synergy between small and large language models leverages the unique strengths of each to enhance overall system performance and efficiency. SLMs, being lightweight and resource-efficient, are ideal for deployment on edge devices, enabling rapid responses and low latency for straightforward tasks. LLMs, on the other hand, possess greater computational power and a deeper understanding of complex language patterns, allowing them to handle more intricate and nuanced tasks. By integrating SLMs and LLMs, systems can dynamically allocate tasks based on complexity, ensuring that simple queries are processed quickly on the edge while more demanding requests are escalated to the cloud. This collaborative approach optimizes resource usage, reduces operational costs, and maintains high-quality outputs across a diverse range of applications. The synergy between small and large language models can be categorized into two parts: cloud-edge synergy and task-centric synergy. Cloud-edge synergy refers to a setup where SLMs operate on edge devices, while LLMs reside on the server. When the SLM is not powerful enough, the LLM compensates by handling more complex tasks and providing additional support. Task-centric synergy refers to the scenario where SLMs and LLMs leverage their respective strengths to improve task-oriented efficiency. Table 13 summarizes representative work in each category and their key points. Next, we introduce each category in detail. + +![](images/48df989cfaadb8fac983caaf7d5a0543997244da2d91323c876c84ed2b7ce3c2.jpg) +Fig. 28. Could-edge synergy between LLMs and SLMs. + +# 7.1 Cloud-Edge Synergy + +The current utilization of LLMs typically involves uploading private data to the cloud for response. Fine-tuning LLMs usually also requires uploading data to clouds for computing. However, this raises privacy concerns as the collection and usage of private data are constrained by personal privacy awareness and legal regulations [348]. Consequently, the cloud-edge synergy between SLMs and LLMs is proposed to alleviate this issue, i.e., SLMs handle privacy-sensitive data locally, LLMs handle de-identified or non-privacy-sensitive data, and these two models collaborate. This section discusses such cloud-edge synergy, dividing them into two categories: cloud-edge synergy during inference and cloud-edge synergy during training, as shown in Figure 28. + +Cloud-edge Synergy During Inference. CoGenesis [437] breaks down the user instruction into a general section and a personal section. The LLM generates replies solely based on general instruction, and the SLM considers both user instruction and additional personal context for its output generation. A fusion strategy blends the output of LLM and SLM synergistically. Xu et al. [397] introduces a split learning system for LLM agents in 6G networks, optimizing mobile device and cloud server collaboration. Mobile devices operate lightweight SLMs with 0–10B parameters for real-time tasks, while cloud servers handle larger LLMs with over 10B parameters for complex reasoning and planning. This setup allows efficient local task management on mobile devices and offloads heavy operations to cloud servers. The system’s architecture features three modules—perception, grounding, and alignment—facilitating effective communication to meet the sophisticated needs of 6G networks. + +Besides these frameworks, more specific models are proposed to facilitate the cloud-edge synergy. A common strategy is to use SLM’s fast decoding ability. LLM-to-SLM [28] proposes a framework in which the pre-trained frozen encoder-decoder LLM resides on the server and computes a high-quality representation of the prompt for the planning of an appropriate response. The SLM residing on the edge device, conditioned on this representation, decodes the response efficiently. Some variants put more emphasis on the reasoning ability of LLMs [167, 234, 298]. In Synergy of Thoughts [298], the SLMs generate multiple low-cost reasoning paths. If these paths conflict, the larger LLMs are invoked to provide reflective reasoning and correct any intuitive errors. Hao et al. [127] proposes a framework in which an SLM residing on the edge devices generates tokens, calling LLMs to verify and correct threshold-gated "harder" tokens, to achieve a controllable trade-off between inference quality and cost. LLMCad [394] presents an on-device inference engine addressing memory and latency issues in deploying LLMs on mobile devices. It combines a lightweight LM for token generation with a high-precision LLM for verification, leveraging a token tree structure and speculative generation for efficiency. Tested on devices such as Jetson TX2, it achieves up to $9 . 3 \times$ speedup for LLMs with over 10 billion parameters while maintaining accuracy. + +Cloud-edge Synergy During Training. CROSSLM [79] introduces a client-server collaborative training framework that preserves data privacy by having clients locally train SLMs instead of fine-tuning LLMs. The framework enables mutual enhancement through a feedback loop where SLMs evaluate LLM-generated synthetic data and provide feedback to improve the LLM’s generative capabilities, ensuring high-quality and task-specific data. Concurrently, the synthetic data trains the SLMs, boosting their performance. This cyclical exchange fosters cloud-edge synergy and mutual model improvement. + +# 7.2 Task-Centric Synergy + +The advent of LLMs has significantly propelled various natural language processing tasks and inspired research into their synergistic interactions with SLMs to enhance the performance of models tailored for specific tasks. This section introduces scenarios where small language models exhibit specialized capabilities after fine-tuning and discusses how combining their unique strengths with the versatile abilities of LLMs can yield superior performance on specific tasks. For example, LLMs excel at handling difficult examples or can rewrite content to eliminate task-irrelevant redundancy, thereby enhancing overall task performance, as illustrated in Figure 29, 30 and 31. + +$\alpha$ -UMi [307] introduces a multi-agent framework to enhance tool learning by overcoming the limitations of singleLLM approaches for complex tasks. It utilizes three specialized LMs—planner, caller, and summarizer—as depicted in Figure 29—each handling specific subtasks such as planning, tool invocation, and summarization. This modular design allows the use of small and large open-source LLMs (e.g., LLaMa-7B/12B) and supports easy tool updates. Evaluated on benchmarks like ToolBench [279] and ToolAlpaca [326], $\alpha$ -UMi outperforms traditional single-LLM methods and even exceeds GPT-4 in tool learning performance. + +![](images/bc23a40ce635f273f1242537db1150953da333aa08351c4a52224d8b31af729a.jpg) +Fig. 29. Synergizing SLMs and LLMs in tool learning. + +SynCID [204] focuses on Conversational Intent Discovery (CID), a task where both known and new intents must be identified from user utterances in an open-world setting. SynCID combines LLMs’ deep semantic insights with SLMs’ agility and specialized capabilities. As illustrated in Figure 30, the framework uses LLM prompting to refine discourse and intent labels, enhancing semantic accuracy and assigning new labels to unlabeled data. SLMs are trained via contrastive learning to align + +![](images/c81cb9b79eff7862cf4e886d507bc4aab412fb27e8b2d18cadc4977dc37d6307.jpg) +Fig. 30. Synergizing SLMs and LLMs in Conversational Intent Detection. + +semantic spaces of discourse and intent descriptors, reducing clustering distortion and improving new intent detection. +Tested on BANKING [43], CLINC [179], and StackOverflow [396], SynCID outperforms CID baselines significantly. + +Filter-then-rerank [234] addresses LLMs’ poor performance on simpler IE tasks by integrating LLMs and SLMs. SLMs act as filters, predicting and identifying difficult samples, while LLMs + +![](images/706a36e19b603c76d6aae7b544d112d98b1d3baf832b822766b357c5ba1f7446.jpg) +Fig. 31. Synergizing SLMs and LLMs in Information Extraction. + +rerank the top N candidate labels for these cases. As illustrated in Figure 31, SLM predictions are final for non-difficult samples, minimizing reliance on LLMs and reducing latency and costs; for those difficult samples, the top N predicted candidate labels from the SLM are passed to the LLM for reranking (predicting). Tested on small-sample IE tasks, this approach improves performance by an average of $2 . 4 \%$ compared to previous methods. Data Shunt $^ +$ $\mathbf { ( D S + ) }$ [46] introduces a framework to reduce costs by minimizing large model queries during inference and boosting LLM performance with SLMs for tasks like sentiment analysis and image processing. ${ \mathrm { D S } } +$ uses SLMs for “easy” samples within the main training distribution and LLMs for "hard" outliers or boundary cases, maintaining accuracy while reducing LLM use. It incorporates S4L and L4S modules with Prompt Pruning (PP) and 2-stage Confidence Distillation (2CD) for better input processing and knowledge transfer. Tests show ${ \mathrm { D S } } +$ outperforms fine-tuning in accuracy and cost efficiency, significantly cutting down on LLM queries. + +![](images/bd7e4807f7a9d6400352932e88e02d9e09460a88ebef1ff96ca0ce0b08089699.jpg) +Fig. 32. Scenarios we discuss in this section. The taxonomy is inspired by previous works [320, 351]. Please note that the trustworthy scenarios listed here are not exhaustive. + +# 8 TRUSTWORTHINESS IN SMALL LANGUAGE MODELS + +Language models have become ubiquitous in our daily lives, and we increasingly rely on them. However, they pose risks regarding their limitations in trustworthy dimensions like privacy and fairness. These concerns are especially critical in high-stakes domains such as healthcare [130] and finance [202]. Consequently, numerous studies have emerged to evaluate the trustworthiness of LMs [88, 95, 138, 176, 176, 248, 254, 273, 351, 370, 425]. In this section, we consider the works that benchmark various LMs’ trustworthiness and omit the specific attack methods [41, 53, 150, 461] or work [407] that only focuses on early pre-trained LMs like BERT [83] as they are already covered in previous survey papers [78, 115, 123, 288]. Inspired by previous works [320, 351], we discuss the following five key trustworthy scenarios: robustness, privacy, reliability, safety, and fairness, as shown in Figure 32. We consider two dimensions for robustness: Adversarial (Adv) Robustness [352] and Out-of-Distribution (OOD) Robustness [38, 213]. For safety, we explore two key concerns: Misinformation [344] and Toxicity [374]. For reliability, we focus on Hallucination [146] and Sycophancy [301]. Please note that these are just the aspects we are focusing on, and therefore this is not a comprehensive classification or taxonomy. For example, robustness also contains robustness to adversarial demonstration. + +Though there are a lot of works benchmarking LMs’ trustworthiness, their main focus is on LLMs. Therefore, we survey some representative works evaluating the trustworthiness of LMs, focusing specifically on those that include SLMs of around 7B parameters or smaller. We also summarize these works in Table 14. Next, we briefly introduce them. + +Holistic Evaluation of Language Models (HELM) [205] benchmarks a large number of LMs from various aspects, including a lot of metrics related to trustworthiness such as robustness and fairness. Do-Not-Answer [364] introduces a dataset to evaluate how LMs act when they face content that should not be answered. Wang et al. [364] also label the output of several LMs output on their dataset and then use the labeled data to train some classifiers. PromptRobust [456] constructs two kinds of adversarial prompts to evaluate LMs’ robustness: One kind is designed under non-adversarial settings with semantic integrity while another category is created under adversarial settings. Their results show that LMs perform poorly under such prompts. HaluEval [191] builds a dataset comprising both the samples generated by their proposed framework and human-labeled hallucinations. It facilitates analysis of when LMs produce hallucinated output and how well they detect hallucinated content. Then they use some strategies such as knowledge retrieval to help LMs better recognize hallucinations. Mo et al. [248] evaluates the trustworthiness of open-source LMs, presenting a variety of scenarios such as fairness and privacy. Results show that smaller LMs sometimes outperform larger ones in terms of trustworthiness. PrivLM-Bench [190] is designed to evaluate the privacy issues in LMs. It enables a fair comparison of privacy-preserving LMs by considering more than just differential privacy parameters. FFT [71] introduces around two thousand crafted examples to evaluate LMs’ performances on three trustworthy dimensions: factuality, fairness, and toxicity. Their results suggest that larger LMs do not always show better harmlessness. ROBBIE [98] first benchmarks various series of LMs using a lot of datasets, including two newly introduced datasets developed by ROBBIE. It also Manuscript submitted to ACM + +Table 14. Comparison of Different Works that Evaluate the Trustworthiness Issues in LMs. Please note that for the "No. of LMs" attribute, compressed or pruned LMs are not included in the count. + +
Aoueqdooks
Paper HELM [205]×√√×××√×
Do-Not-Answer [364]××√√××√√×
PromptRobust [456]√××××××××
HaluEval [191]××××√××××
Mo et al. [248]√×√×√√√√×
PrivLM-Bench [190]××××××√××
FFT [71]××√√√××√×
ROBBIE [98]××√××××√×
TrustLLM [320]√√√√√√√√×
RAmBLA [35]√×××√××××
JailbreakBench [45]××√√××√××
Xie et al. [390]××√×√××××
OR-Bench [70]××√√××√××
SORRY-Bench [387]××√√××√××
BeHonest [59]×××√√√×××
Hong et al. [138]√√√×××√√√
RUPBench [370]√××××××××
Nakka et al. [254]××√×××√√×
+ +evaluates mitigation techniques designed to reduce bias and toxicity. TrustLLM [320] is a comprehensive benchmark that contains a large number of datasets and various well-designed metrics to systematically evaluate various LMs across multiple trustworthy dimensions, including truthfulness, safety, fairness, robustness, privacy, and machine ethics. They also carefully design specific subcategories for each dimension. RAmBLA [35] evaluates the trustworthiness of four LMs as biomedical assistants from three dimensions: Robustness, High Recall, and Hallucination. RAmBLA suggests LMs with more parameters are less likely to cause hallucinations and may choose to reject providing an answer in uncertain situations. JailbreakBench [45] constructs a jailbreaking dataset named JBB-Behaviors and jailbreak artifacts to evaluate current LMs’ performance regarding jailbreaking. It also proposes a unified evaluation pipeline that can incorporate new jailbreak defense techniques. Xie et al. [390] tests online safety analysis methods, filling the gap where no methods focus on the generation phase. OR-Bench [70] constructs three datasets: OR-Bench-80K, OR-Bench-Hard-1K, and OR-Bench-Toxic, to systematically evaluate over-refusal problems in LMs, emphasizing the challenge of balancing safety alignment with the models’ usefulness. SORRY-Bench [387] systematically tests 43 different LMs to see how they perform when facing requests that should be refused. They also collect more than annotations created by humans and find that fine-tuned 7B LMs can achieve performance comparable to GPT-4 scale LMs as evaluators. BeHonest [59] evaluates the honesty of LMs from three aspects: Self-Knowledge, Non-Deceptiveness, and Consistency. They use many different metrics for each aspect. For example, sycophancy rate and lying rate are adopted in Non-Deceptiveness. The results in both the Self-Knowledge and Consistency parts reveal that larger model sizes generally bring improved performance for the Llama-2 [339] and Llama-3 [94] series. Hong et al. [138] examines the effects of compression Manuscript submitted to ACM + +methods, including quantization and pruning, on the trustworthiness of language models. They find that pruning and extreme quantization significantly affect the trustworthiness of LMs. RUPBench [370] comprises 15 reasoning datasets designed to assess the performance of LMs both in normal conditions and under various adversarial perturbations. Their results indicate that larger LMs generally demonstrate better resilience to perturbations. Nakka et al. [254] investigates the trust and ethical implications of SLMs deployed on personal devices. It reveals the vulnerabilities of on-device SLMs compared with their on-server counterparts. + +Please note that the dimensions discussed in this section reflect only those relevant to our current focus; additional dimensions may be discussed in those works, but not listed in table 14. For example, TrustLLM [320] also explores Machine Ethics. + +# 9 FUTURE DIRECTIONS + +In this section, we offer insights into several promising future research directions that could inspire and motivate the community to address existing gaps in the development of small language models. + +# 9.1 Developing Efficient SLM Model Architecture + +Although Transformers [346] are foundational in most language models, they face significant computational and memory challenges that worsen with model size, impacting training and autoregressive decoding. Recently, Mamba [117] has emerged as a promising alternative, adapting state space models to dynamically select inputs based on demands, thereby enhancing efficiency. Thereafter, xLSTM [25] demonstrates that an improved LSTM could function as an LLM, revealing the potential of traditional SSMs. The integration of global static information captured by SSMs with the dynamic information processing of Transformers could complement each other, leading to new architectures that balance effectiveness and efficiency. + +# 9.2 Addressing SLM Training Inefficiencies + +One study [85] explores the disparate learning dynamics between small and large language models. Utilizing the Pythia model suite, the research demonstrates that layers’ activations in larger models converge more rapidly and monotonically to their final states. This phenomenon is associated with a higher proportional effective rank (PER) in the parameters and gradients of larger models. The analysis enhances our understanding of training inefficiencies in small models and provides insights for future efforts, such as developing methods to increase the PER of layers’ parameters. + +# 9.3 Expanding Domain-Specific SLMs + +Domain-specific SLMs, which are tailored for specific fields, can provide a stronger foundation for relevant downstream tasks than general-purpose models. Currently, these models primarily focus on scientific and healthcare domains. However, there is significant potential for expansion into other key areas such as law, finance, education, telecommunications, and transportation. The scarcity of SLMs that cater to these domains presents an urgent call for research into developing more specialized models. + +# 9.4 Establishing Benchmarking and Leaderboard Platforms for SLMs + +Several compelling reasons justify the establishment of benchmarking and leaderboard platforms for SLMs. Firstly, most state-of-the-art SLMs are trained on proprietary datasets, which may include test sets from existing evaluation tasks, presenting challenges for fair capability comparisons. Secondly, many SLMs are designed for specific device applications, significantly differing from general open-domain tasks. Thus, there is a lack of comprehensive benchmarks that accurately reflect SLM performance in specific device applications. For example, SLMs deployed on smartphones often handle tasks sensitive to user data, such as auto-replies based on historical chat texts or GUI context understanding—tasks not typically included in current benchmarks, potentially leading to an underestimation of their importance. Finally, current evaluation tasks focus primarily on metrics like accuracy. Evaluating on-device SLMs involves balancing multiple factors, including overall capabilities, response times, storage and memory usage, power consumption, CPU utilization, additional fine-tuning requirements, and context window constraints, making comprehensive and detailed assessments essential. + +# 9.5 Enhancing SLM Performance and Efficiency + +In terms of enhancing SLM performance and efficiency, the efficiency of using teacher LLMs via instruction tuning can be further developed, such as Efficient Instruction Tuning of SLMs from LLMs-generated data, Optimizing Teacher LLM Selection for SLM Learning, and Applying Emerging Techniques from LLMs to SLMs. + +• Efficient Instruction Tuning of SLMs from LLMs-generated data. Enhancing the specialization of SLMs through instruction tuning from LLMs-generated data is crucial, yet finding the most cost-effective instructional strategies remains an underexplored status. Some key areas for exploration are: (1) Instruction Design Adaptability: The performance of LLMs and SLMs varies significantly with changes in instructions. Therefore, designing tailored instructions that effectively activate relevant sub-competencies and reasoning pathways in SLMs for specific tasks is crucial. This approach would optimize their ability to utilize instructional data, representing a significant future research direction. (2) SLM Capability Adaptability: Given that SLMs exhibit diverse capabilities across domains, simply supplying extensive data samples for instruction tuning is often inefficient, as SLMs may spend excessive time processing unnecessary data. To optimize efficiency when adapting to specific domains, we suggest first assessing the intrinsic capabilities of an SLM within those domains. Subsequently, one could select appropriate data and activate essential fine-grained capabilities to effectively adapt to domain shifts. This targeted approach ensures efficient and domainspecific instruction tuning. (3) Optimizing Data Efficiency: SLMs may possess missing or latent domain knowledge, and activating this latent knowledge may not require substantial data. Thus, identifying inherent knowledge within SLMs and determining the minimal data necessary for effective fine-tuning is a future direction. This research aims to optimize performance while minimizing training resources. +• Optimizing Teacher LLM Selection for SLM Learning. Teacher LLMs with different abilities and knowledge facilitate diverse applications for SLM training, including data rewriting and generation. Selecting the appropriate teacher model based on specific use cases is crucial. This process requires evaluating the teacher’s capabilities and knowledge to ensure optimal application. For example, GPT-4 excels in generating domain-specific data, outperforming ChatGPT, which may produce inferior outcomes. Strategic selection of teacher LLMs is essential for future work to ensure their strengths are effectively utilized to enhance SLM performance. +• Applying Emerging Techniques from LLMs to SLMs. To improve LLM performance, techniques such as RetrievalAugmented Generation (RAG) and Mixture of Experts (MoE) are employed. The adoption of RAG in SLMs shows significant promise [215], suggesting benefits from further tailoring retrieved information for SLMs. Future research should account for SLMs’ constraints, such as limited context windows, and customize RAG accordingly. MoE uses + +multiple experts to enhance learning without increasing active neurons, but its storage demands pose challenges for SLM deployment, making this a promising area for exploration. Additionally, the application of LLM techniques such as in-context learning and prompting engineering to maximize SLM performance, while accounting for SLMs’ constraints, warrants further investigation. + +# 9.6 Applications of SLMs + +In real-world applications, SLMs often need to provide personalized services and need to be updated periodically to reflect new needs and new knowledge. Hence, there are several promising directions in terms of the real-world application of SLMs, which are listed as follows: + +• LoRA for Personalized Services. Companies often provide personalized services, but user-specific complexities can render simple rules ineffective. Training a separate SLM for each user is impractical. LoRA suggests a method of separable training weights alongside fixed original weights, enabling scalable customization. For instance, RecLoRA [455] integrates personalized knowledge into SLMs/LLMs tailored for recommendation tasks by maintaining a set of parallel, independent LoRA weights. This approach effectively customizes language model parameters to align with individual user preferences. This approach is a promising direction that inspires further investigation. • Lifelong On-device Learning for Knowledge Injection. SLMs on devices can access local data without risking data privacy through two main methods. The first method uses retrieval-augmented generation to integrate local data into prompts, requiring SLMs with advanced processing and reasoning capabilities. The second method fine-tunes SLMs with local data, integrating customized knowledge into the model’s weights. However, this approach demands significant device resources, including memory and energy. A promising solution is lifelong learning, where SLMs continuously learn and adapt while in use. • Strategic Use of SLMs and LLMs in Multi-Agent Systems. LLMs can function as agents; however, their extensive capabilities are often underutilized in many scenarios, leading to resource wastage. Consequently, strategically routing to appropriately capable SLMs and LLMs within multi-agent systems can optimize cost and functionality. + +# 9.7 Multimodal SLMs + +Research on small language models also includes multimodal data. For example, SmolVLM [99] is a compact model that handles image and text inputs to produce text outputs, suitable for on-device use and various multimodal tasks. SOLO [54] integrates vision and language processing in a single 7B Transformer model. The limited scope of existing research on multimodal SLMs provides a compelling impetus for researchers to investigate the integration of various modalities, including audio and graphs. + +# 9.8 SLMs Assisting LLMs + +In Section 6, we introduced existing works on the use of SLMs to assist LLMs. For instance, EFT [246] emulates fine-tuning on LLMs by leveraging behavior deltas between SLMs’ pre-trained and fine-tuned weights to alleviate the time-cost issues associated with fine-tuning LLMs; SlimPLM [325] detects missing knowledge in LLMs using a slim proxy SLM to accelerate knowledge injection; Contrastive Decoding [198] enhances text quality by maximizing the difference between the log probabilities of an expert LLM and an amateur SLM to mitigate issues of low-quality generation. The research on adopting SLMs to assist LLMs is still in its early stages, with many promising directions yet to be explored. We list some as follows: + +• Enhancing LLM Performance Across Broader Tasks Through SLM Integration. SLMs can outperform LLMs in certain scenarios. For example, SLMs often present fewer security vulnerabilities compared to their larger counterparts and demonstrate superior performance on easier samples in specific tasks [197, 234]. Therefore, integrating SLMs with LLMs can promote the development of models that are not only more robust but also inherently safer. Currently, research in this domain is relatively sparse, suggesting that this collaborative framework could potentially be applied to a wider array of tasks. + +• Efficient Enhancement of LLMs through Proxy SLMs. Existing research [18, 212, 246, 325] indicates that SLMs, owing to their accelerated fine-tuning and inference speeds, can effectively mimic the behaviors of LLMs, thereby serving as efficient proxies for optimization. However, the application of SLMs as operational proxies for LLMs is currently underexplored. This mimicry could potentially be expanded to include various aspects of LLM functionality, such as the optimization of prompts, the filtration and integration of supplementary knowledge, and the management of additional knowledge repositories. + +• SLMs Assist in Managing Data Quality. LLMs tend to produce hallucinations and toxic content due to low-quality real-world training data. One solution is to remove these low-quality data [355]. However, directly eliminating low-quality content can diminish certain functionalities of LLMs, such as versatility [356]. Therefore, it is crucial to define more refined data quality assessment criteria across dimensions such as factuality, safety, and diversity [377] for real-world data. Researching efficient data selection methods using small models represents a valuable research direction. Additionally, while synthetic data serves as a vital complement to scarce human-generated data [224], the potential for small models to effectively manage synthetic data remains largely unexplored. + +• SLMs Assist in LLM Assessment. LLMs are producing vast amounts of increasingly complex texts, such as specialized code and scientific papers, presenting challenges not only for human evaluators but also for traditional assessment metrics. Consequently, developing effective evaluators to assess various aspects of generated content, including factuality, safety, and uncertainty, becomes crucial. Given their proficiency in handling specific tasks, exploring the potential of SLMs to evaluate LLM outputs is a promising research direction. + +• SLMs Optimize Query and Reduce Noise for LLM RAG. For Retrieval-Augmented Generation (RAG) using LLMs, differing query requirements between LLMs and search engines pose a challenge. The query for LLMs is often abstract and difficult for search engines to handle, so they require more detailed query keywords. Moreover, LLMs may not need all the information related to a query because they only require partial additional knowledge. Thus, intermediate agents are crucial to adapting LLM queries for search engines by clarifying the required detailed keywords that can search for necessary extra knowledge. Additionally, search engine outputs contain noises, requiring refinement to boost LLM efficiency. SLMs, skilled in a single task, are ideal for optimizing query rewriting and noise reduction in RAG systems, making their application in LLM RAG a promising research area. + +• SLMs safeguard LLM. Resources such as the Llama 2 Responsible Use Guide strongly advocate for the implementation of robust guardrails in products that utilize Generative AI. SLMs can be strategically designed to serve as such guardrails, mitigating risks associated with both inputs and outputs from the model. This approach ensures safeguards against the generation of high-risk or policy-violating content and provides protection against adversarial inputs and attempts to compromise the model. Future research can investigate the various safety roles that SLMs play in protecting LLMs. + +# 9.9 Synergy between Small and Large Language Models + +In Section 7, we discussed how small and large language models can complement each other. For example, CoGenesis [437] integrates SLMs for private data and LLMs for broader context, while Synergy of Thoughts [298] uses SLMs for initial reasoning and LLMs for conflict resolution. CROSSLM [79] shows how privacy can be preserved by training SLMs locally to support LLMs without data exposure. Research in this area is still evolving, and we outline several promising future directions below: + +• Refined Cloud-Edge Division of Labor. Current research mainly focuses on splitting tasks between edge-based SLMs and cloud-based LLMs along privacy-sensitive and non-sensitive data boundaries. A potential future direction involves more granular task partitioning: determining which subtasks should be handled locally by SLMs (e.g., initial data filtering, quick semantic parsing) and which should be delegated to the cloud-based LLM (e.g., advanced reasoning, complex generation). This approach can further optimize latency, privacy, and resource utilization. • Adaptive On-Device Specialization for Dynamic Environments. Although SLMs have shown the ability to handle private or personalized data locally, continuous changes in user preferences, application requirements, and data distributions pose challenges. Future work can explore adaptive strategies where edge-based SLMs dynamically specialize or update their parameters, guided by the cloud-based LLM. For instance, the LLM can periodically distill new knowledge into the SLM or provide feedback signals to help the SLM adapt to evolving scenarios. + +# 9.10 Trustworthy SLMs + +As SLMs are playing crucial roles in various aspects, understanding and improving the trustworthiness of SLMs are essential. Hence, two promising directions are: + +• A Comprehensive Evaluation of SLMs’ Trustworthiness. While numerous studies address trustworthiness issues in LLMs, research on SLMs remains sparse. Most existing literature focuses on models with at least 7 billion parameters, leaving a gap in the comprehensive analysis of SLMs’ trustworthiness. Current evaluations typically cover only a fraction of the necessary aspects. Therefore, a systematic assessment, such as TrustLLM [320], is essential to thoroughly evaluate the trustworthiness of SLMs and understand their reliability across various applications. • Developing Trustworthy SLMs. Developing trustworthy SLMs is crucial, with three key research directions: (i) Training SLMs to be trustworthy from scratch; (ii) Ensuring SLMs retain or gain trustworthiness when compressed from LLMs—maintaining trustworthiness if the LLM is trustworthy and instilling trustworthiness if it is not; (iii) Fine-tuning non-trustworthy SLMs to enhance their robustness. + +# 10 CONCLUSION + +This paper provides a comprehensive survey of Small Language Models (SLMs) with up to 7 billion parameters. Initially, we address the need to clearly define SLMs due to existing ambiguities in their characterization. We then present the foundational concepts essential for constructing SLMs. The survey progresses to explore enhancement techniques, including knowledge distillation and quantization, as well as strategies for adapting Large Language Models (LLMs) to SLM contexts. We survey representative SLMs, both general-domain and domain-specific, discussing their preferred datasets and architectural decisions. We also assess their applications across various tasks and deployment strategies on devices. Further, we investigate their role in augmenting the capabilities of LLMs, serving as proxies for fine-tuning and facilitating two types of synergies: cloud-local and task-centric. Additionally, we discuss the critical aspect of their trustworthiness. The paper concludes with key insights aimed at guiding future research on small language models. + +# REFERENCES + +[1] Marah Abdin, Sam Ade Jacobs, Ammar Ahmad Awan, Jyoti Aneja, Ahmed Awadallah, Hany Awadalla, Nguyen Bach, Amit Bahree, Arash Bakhtiari, Harkirat Behl, et al. 2024. Phi-3 technical report: A highly capable language model locally on your phone. arXiv preprint arXiv:2404.14219 (2024). [2] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774 (2023). +[3] Emre Can Acikgoz, Osman Batur İnce, Rayene Bench, Arda Anıl Boz, İlker Kesen, Aykut Erdem, and Erkut Erdem. 2024. Hippocrates: An Open-Source Framework for Advancing Large Language Models in Healthcare. arXiv preprint arXiv:2404.16621 (2024). +[4] Harshavardhan Adepu, Zhanpeng Zeng, Li Zhang, and Vikas Singh. 2024. FrameQuant: Flexible Low-Bit Quantization for Transformers. arXiv preprint arXiv:2403.06082 (2024). +[5] Abien Fred Agarap. 2018. Deep Learning using Rectified Linear Units (ReLU). CoRR abs/1803.08375 (2018). arXiv:1803.08375 http://arxiv.org/abs/ 1803.08375 +[6] Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. 2024. On-policy distillation of language models: Learning from self-generated mistakes. In The Twelfth International Conference on Learning Representations. +[7] Meta AI. 2024. Llama 3.2: Revolutionizing edge AI and vision with open, customizable models. https://ai.meta.com/blog/llama-3-2-connect-2024- vision-edge-mobile-devices/ Accessed: 2024-9-25. +[8] Joshua Ainslie, James Lee-Thorp, Michiel de Jong, Yury Zemlyanskiy, Federico Lebrón, and Sumit Sanghai. 2023. GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints. arXiv:2305.13245 [cs.CL] https://arxiv.org/abs/2305.13245 +[9] Loubna Ben Allal, Anton Lozhkov, Elie Bakouch, Leandro von Werra, and Thomas Wolf. 2024. SmolLM - blazingly fast and remarkably powerful. +[10] Ebtesam Almazrouei, Hamza Alobeidli, Abdulaziz Alshamsi, Alessandro Cappelli, Ruxandra Cojocaru, Mérouane Debbah, Étienne Goffinet, Daniel Hesslow, Julien Launay, Quentin Malartic, et al. 2023. The falcon series of open language models. arXiv preprint arXiv:2311.16867 (2023). +[11] Guilherme FCF Almeida, José Luiz Nunes, Neele Engelmann, Alex Wiegmann, and Marcelo de Araújo. 2024. Exploring the psychology of LLMs’ moral and legal reasoning. Artificial Intelligence 333 (2024), 104145. +[12] Reza Yazdani Aminabadi, Samyam Rajbhandari, Ammar Ahmad Awan, Cheng Li, Du Li, Elton Zheng, Olatunji Ruwase, Shaden Smith, Minjia Zhang, Jeff Rasley, et al. 2022. Deepspeed-inference: enabling efficient inference of transformer models at unprecedented scale. In SC22: International Conference for High Performance Computing, Networking, Storage and Analysis. IEEE, 1–15. +[13] Yongqi An, Xu Zhao, Tao Yu, Ming Tang, and Jinqiao Wang. 2024. Fluctuation-based adaptive structured pruning for large language models. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38. 10865–10873. +[14] Rohan Anil, Andrew M Dai, Orhan Firat, Melvin Johnson, Dmitry Lepikhin, Alexandre Passos, Siamak Shakeri, Emanuel Taropa, Paige Bailey, Zhifeng Chen, et al. 2023. Palm 2 technical report. arXiv preprint arXiv:2305.10403 (2023). +[15] AI Anthropic. 2024. The claude 3 model family: Opus, sonnet, haiku. Claude-3 Model Card 1 (2024). +[16] David Anugraha, Genta Indra Winata, Chenyue Li, Patrick Amadeus Irawan, and En-Shiun Annie Lee. 2024. ProxyLM: Predicting Language Model Performance on Multilingual Tasks via Proxy Models. arXiv preprint arXiv:2406.09334 (2024). +[17] Viraat Aryabumi, Yixuan Su, Raymond Ma, Adrien Morisot, Ivan Zhang, Acyr Locatelli, Marzieh Fadaee, Ahmet Üstün, and Sara Hooker. 2024. To Code, or Not To Code? Exploring Impact of Code in Pre-training. arXiv preprint arXiv:2408.10914 (2024). +[18] Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi. 2024. Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=hSyW5go0v8 +[19] Saleh Ashkboos, Maximilian L. Croci, Marcelo Gennari do Nascimento, Torsten Hoefler, and James Hensman. 2024. SliceGPT: Compress Large Language Models by Deleting Rows and Columns. In The Twelfth International Conference on Learning Representations. https://openreview.net/ forum?id=vXxardq6db +[20] Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. 2021. Program synthesis with large language models. arXiv preprint arXiv:2108.07732 (2021). +[21] Amos Azaria and Tom Mitchell. 2023. The Internal State of an LLM Knows When It’s Lying. In Findings of the Association for Computational Linguistics: EMNLP 2023. 967–976. +[22] Zhangir Azerbayev, Hailey Schoelkopf, Keiran Paster, Marco Dos Santos, Stephen McAleer, Albert Q Jiang, Jia Deng, Stella Biderman, and Sean Welleck. 2023. Llemma: An open language model for mathematics. arXiv preprint arXiv:2310.10631 (2023). +[23] Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, Binyuan Hui, Luo Ji, Mei Li, Junyang Lin, Runji Lin, Dayiheng Liu, Gao Liu, Chengqiang Lu, Keming Lu, Jianxin Ma, Rui Men, Xingzhang Ren, Xuancheng Ren, Chuanqi Tan, Sinan Tan, Jianhong Tu, Peng Wang, Shijie Wang, Wei Wang, Shengguang Wu, Benfeng Xu, Jin Xu, An Yang, Hao Yang, Jian Yang, Shusheng Yang, Yang Yao, Bowen Yu, Hongyi Yuan, Zheng Yuan, Jianwei Zhang, Xingxuan Zhang, Yichang Zhang, Zhenru Zhang, Chang Zhou, Jingren Zhou, Xiaohuan Zhou, and Tianhang Zhu. 2023. Qwen Technical Report. arXiv:2309.16609 [cs.CL] https://arxiv.org/abs/2309.16609 +[24] Jason Baumgartner, Savvas Zannettou, Brian Keegan, Megan Squire, and Jeremy Blackburn. 2020. The pushshift reddit dataset. In Proceedings of the international AAAI conference on web and social media, Vol. 14. 830–839. +[25] Maximilian Beck, Korbinian Pöppel, Markus Spanring, Andreas Auer, Oleksandra Prudnikova, Michael K Kopp, Günter Klambauer, Johannes Brandstetter, and Sepp Hochreiter. 2024. xLSTM: Extended Long Short-Term Memory. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=ARAxPPIAhq +[26] Marco Bellagente, Jonathan Tow, Dakota Mahan, Duy Phung, Maksym Zhuravinskyi, Reshinth Adithyan, James Baicoianu, Ben Brooks, Nathan Cooper, Ashish Datta, et al. 2024. Stable lm 2 1.6 b technical report. arXiv preprint arXiv:2402.17834 (2024). +[27] Loubna Ben Allal, Anton Lozhkov, Guilherme Penedo, Thomas Wolf, and Leandro von Werra. 2024. SmolLM-Corpus. https://huggingface.co/ datasets/HuggingFaceTB/smollm-corpus +[28] Benjamin Bergner, Andrii Skliar, Amelie Royer, Tijmen Blankevoort, Yuki Asano, and Babak Ehteshami Bejnordi. 2024. Think Big, Generate Quick: LLM-to-SLM for Fast Autoregressive Decoding. arXiv preprint arXiv:2402.16844 (2024). +[29] Milan Bhan, Jean-Noel Vittaut, Nicolas Chesneau, and Marie-Jeanne Lesot. 2024. Self-AMPLIFY: Improving Small Language Models with Self Post Hoc Explanations. arXiv preprint arXiv:2402.12038 (2024). +[30] Zhen Bi, Ningyu Zhang, Yida Xue, Yixin Ou, Daxiong Ji, Guozhou Zheng, and Huajun Chen. 2023. Oceangpt: A large language model for ocean science tasks. arXiv preprint arXiv:2310.02031 (2023). +[31] Stella Biderman, Hailey Schoelkopf, Quentin Anthony, Herbie Bradley, Kyle O’Brien, Eric Hallahan, Mohammad Aflah Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, Aviya Skowron, Lintang Sutawika, and Oskar van der Wal. 2023. Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling. arXiv:2304.01373 [cs.CL] https://arxiv.org/abs/2304.01373 +[32] Yonatan Bisk, Rowan Zellers, Jianfeng Gao, Yejin Choi, et al. 2020. Piqa: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, Vol. 34. 7432–7439. +[33] Sid Black, Leo Gao, Phil Wang, Connor Leahy, and Stella Biderman. 2021. GPT-Neo: Large Scale Autoregressive Language Modeling with MeshTensorflow. https://doi.org/10.5281/zenodo.5297715 If you use this software, please cite it using these metadata.. +[34] Elliot Bolton, Abhinav Venigalla, Michihiro Yasunaga, David Hall, Betty Xiong, Tony Lee, Roxana Daneshjou, Jonathan Frankle, Percy Liang, Michael Carbin, et al. 2024. Biomedlm: A 2.7 b parameter language model trained on biomedical text. arXiv preprint arXiv:2403.18421 (2024). +[35] William James Bolton, Rafael Poyiadzi, Edward R Morrell, Gabriela van Bergen Gonzalez Bueno, and Lea Goetz. 2024. RAmBLA: A Framework for Evaluating the Reliability of LLMs as Assistants in the Biomedical Domain. arXiv preprint arXiv:2403.14578 (2024). +[36] Luiz Bonifacio, Hugo Abonizio, Marzieh Fadaee, and Rodrigo Nogueira. 2022. Inpars: Data augmentation for information retrieval using large language models. arXiv preprint arXiv:2202.05144 (2022). +[37] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language Models are Few-Shot Learners. In Advances in Neural Information Processing Systems, H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (Eds.), Vol. 33. Curran Associates, Inc., 1877–1901. https://proceedings.neurips.cc/paper_files/paper/2020/file/1457c0d6bfcb4967418bfb8ac142f64a-Paper.pdf +[38] Saikiran Bulusu, Bhavya Kailkhura, Bo Li, Pramod K Varshney, and Dawn Song. 2020. Anomalous example detection in deep learning: A survey. IEEE Access 8 (2020), 132330–132347. +[39] Weilin Cai, Juyong Jiang, Fan Wang, Jing Tang, Sunghun Kim, and Jiayi Huang. 2024. A survey on mixture of experts. Authorea Preprints (2024). +[40] Zheng Cai, Maosong Cao, Haojiong Chen, Kai Chen, Keyu Chen, Xin Chen, Xun Chen, Zehui Chen, Zhi Chen, Pei Chu, et al. 2024. Internlm2 technical report. arXiv preprint arXiv:2403.17297 (2024). +[41] Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, et al. 2021. Extracting training data from large language models. In 30th USENIX Security Symposium (USENIX Security 21). 2633–2650. +[42] Samuel Carreira, Tomás Marques, José Ribeiro, and Carlos Grilo. 2023. Revolutionizing Mobile Interaction: Enabling a 3 Billion Parameter GPT LLM on Mobile. arXiv:2310.01434 [cs.CL] https://arxiv.org/abs/2310.01434 +[43] Iñigo Casanueva, Tadas Temčinas, Daniela Gerz, Matthew Henderson, and Ivan Vulić. 2020. Efficient Intent Detection with Dual Sentence Encoders. In Proceedings of the 2nd Workshop on Natural Language Processing for Conversational AI. Association for Computational Linguistics, Online, 38–45. +[44] Wei-Cheng Chang, X Yu Felix, Yin-Wen Chang, Yiming Yang, and Sanjiv Kumar. [n. d.]. Pre-training Tasks for Embedding-based Large-scale Retrieval. In International Conference on Learning Representations. +[45] Patrick Chao, Edoardo Debenedetti, Alexander Robey, Maksym Andriushchenko, Francesco Croce, Vikash Sehwag, Edgar Dobriban, Nicolas Flammarion, George J Pappas, Florian Tramer, et al. 2024. Jailbreakbench: An open robustness benchmark for jailbreaking large language models. arXiv preprint arXiv:2404.01318 (2024). +[46] Dong Chen, Shuo Zhang, Yueting Zhuang, Siliang Tang, Qidong Liu, Hua Wang, and Mingliang Xu. 2024. Improving Large Models with Small models: Lower Costs and Better Performance. arXiv preprint arXiv:2406.15471 (2024). +[47] Dong Chen, Yueting Zhuang, Shuo Zhang, Jinfeng Liu, Su Dong, and Siliang Tang. 2024. Data Shunt: Collaboration of Small and Large Models for Lower Costs and Better Performance. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38. 11249–11257. +[48] Hongzhan Chen, Siyue Wu, Xiaojun Quan, Rui Wang, Ming Yan, and Ji Zhang. 2023. MCC-KD: Multi-CoT Consistent Knowledge Distillation. In Findings of the Association for Computational Linguistics: EMNLP 2023. 6805–6820. +[49] Lihu Chen and Gaël Varoquaux. 2024. What is the role of small models in the llm era: A survey. arXiv preprint arXiv:2409.06857 (2024). +[50] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde De Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. 2021. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374 (2021). +[51] Tianyi Chen, Tianyu Ding, Badal Yadav, Ilya Zharkov, and Luming Liang. 2023. Lorashear: Efficient large language model structured pruning and knowledge recovery. arXiv preprint arXiv:2310.18356 (2023). +[52] Wei Chen, Zhiyuan Li, and Mingyuan Ma. 2024. Octopus: On-device language model for function calling of software APIs. arXiv:2404.01549 [cs.CL] https://arxiv.org/abs/2404.01549 +[53] Yangyi Chen, Fanchao Qi, Hongcheng Gao, Zhiyuan Liu, and Maosong Sun. 2022. Textual Backdoor Attacks Can Be More Harmful via Two Simple Tricks. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, EMNLP. 11215–11221. +[54] Yangyi Chen, Xingyao Wang, Hao Peng, and Heng Ji. 2024. A Single Transformer for Scalable Vision-Language Modeling. Transactions on Machine Learning Research (2024). https://openreview.net/forum?id=nuzFG0Rbhy +[55] Zeming Chen, Alejandro Hernández Cano, Angelika Romanou, Antoine Bonnet, Kyle Matoba, Francesco Salvi, Matteo Pagliardini, Simin Fan, Andreas Köpf, Amirkeivan Mohtashami, et al. 2023. MEDITRON-70B: Scaling Medical Pretraining for Large Language Models. arXiv preprint arXiv:2311.16079 (2023). +[56] Zhiyu Chen, Wenhu Chen, Charese Smiley, Sameena Shah, Iana Borova, Dylan Langdon, Reema Moussa, Matt Beane, Ting-Hao Huang, Bryan R Routledge, et al. 2021. FinQA: A Dataset of Numerical Reasoning over Financial Data. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. 3697–3711. +[57] Zhiyu Chen, Shiyang Li, Charese Smiley, Zhiqiang Ma, Sameena Shah, and William Yang Wang. 2022. ConvFinQA: Exploring the Chain of Numerical Reasoning in Conversational Finance Question Answering. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing. 6279–6292. +[58] Xiaoxue Cheng, Junyi Li, Wayne Xin Zhao, Hongzhi Zhang, Fuzheng Zhang, Di Zhang, Kun Gai, and Ji-Rong Wen. 2024. Small Agent Can Also Rock! Empowering Small Language Models as Hallucination Detector. arXiv preprint arXiv:2406.11277 (2024). +[59] Steffi Chern, Zhulin Hu, Yuqing Yang, Ethan Chern, Yuan Guo, Jiahe Jin, Binjie Wang, and Pengfei Liu. 2024. BeHonest: Benchmarking Honesty of Large Language Models. arXiv preprint arXiv:2406.13261 (2024). +[60] Yew Ken Chia, Pengfei Hong, Lidong Bing, and Soujanya Poria. 2024. InstructEval: Towards Holistic Evaluation of Instruction-Tuned Large Language Models. In Proceedings of the First edition of the Workshop on the Scaling Behavior of Large Language Models (SCALE-LLM 2024). 35–64. +[61] Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, Ion Stoica, and Eric P. Xing. 2023. Vicuna: An Open-Source Chatbot Impressing GPT-4 with $9 0 \% ^ { \star }$ ChatGPT Quality. https://lmsys.org/blog/2023- 03-30-vicuna/ +[62] Yae Jee Cho, Luyang Liu, Zheng Xu, Aldi Fahrezi, and Gauri Joshi. 2024. Heterogeneous LoRA for Federated Fine-tuning of On-Device Foundation Models. arXiv:2401.06432 [cs.LG] https://arxiv.org/abs/2401.06432 +[63] Xiaokai Chu, Jiashu Zhao, Lixin Zou, and Dawei Yin. 2022. H-ERNIE: A multi-granularity pre-trained language model for web search. In Proceedings of the 45th International ACM SIGIR conference on research and development in information retrieval. 1478–1489. +[64] Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Yunxuan Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, et al. 2024. Scaling instruction-finetuned language models. Journal of Machine Learning Research 25, 70 (2024), 1–53. +[65] Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457 (2018). +[66] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168 (2021). +[67] Together Computer. 2023. RedPajama: an Open Dataset for Training Large Language Models. https://github.com/togethercomputer/RedPajama-Data +[68] Mike Conover, Matt Hayes, Ankit Mathur, Jianwei Xie, Jun Wan, Sam Shah, Ali Ghodsi, Patrick Wendell, Matei Zaharia, and Reynold Xin. 2023. Free Dolly: Introducing the World’s First Truly Open Instruction-Tuned LLM. https://www.databricks.com/blog/2023/04/12/dolly-first-open-commerciallyviable-instruction-tuned-llm +[69] Nick Craswell, Bhaskar Mitra, Emine Yilmaz, and Daniel Campos. 2021. Overview of the TREC 2020 deep learning track. CoRR abs/2102.07662 (2021). arXiv:2102.07662 https://arxiv.org/abs/2102.07662 +[70] Justin Cui, Wei-Lin Chiang, Ion Stoica, and Cho-Jui Hsieh. 2024. OR-Bench: An Over-Refusal Benchmark for Large Language Models. arXiv preprint arXiv:2405.20947 (2024). +[71] Shiyao Cui, Zhenyu Zhang, Yilong Chen, Wenyuan Zhang, Tianyun Liu, Siqi Wang, and Tingwen Liu. 2023. Fft: Towards harmlessness evaluation and analysis for llms with factuality, fairness, toxicity. arXiv preprint arXiv:2311.18580 (2023). +[72] Luigi Daniele and Suphavadeeprasit. 2023. Amplify-Instruct: Synthetically Generated Diverse Multi-turn Conversations for efficient LLM Training. arXiv preprint arXiv:(coming soon) (2023). https://huggingface.co/datasets/LDJnr/Capybara +[73] Tri Dao. [n. d.]. FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning. In The Twelfth International Conference on Learning Representations. +[74] Tri Dao, Dan Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. 2022. Flashattention: Fast and memory-efficient exact attention with io-awareness. Advances in Neural Information Processing Systems 35 (2022), 16344–16359. +[75] Tri Dao and Albert Gu. 2024. Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality. arXiv preprint arXiv:2405.21060 (2024). +[76] Rocktim Jyoti Das, Liqun Ma, and Zhiqiang Shen. 2023. Beyond size: How gradients shape pruning decisions in large language models. arXiv preprint arXiv:2311.04902 (2023). +[77] Anirban Dasgupta, Ravi Kumar, and Tamás Sarlós. 2011. Fast locality-sensitive hashing. In Proceedings of the 17th ACM SIGKDD international conference on Knowledge discovery and data mining. 1073–1081. +[78] Pieter Delobelle, Ewoenam Kwaku Tokpo, Toon Calders, and Bettina Berendt. 2022. Measuring fairness with biased rulers: A comparative study on bias metrics for pre-trained language models. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics. 1693–1706. +[79] Yongheng Deng, Ziqing Qiao, Ju Ren, Yang Liu, and Yaoxue Zhang. 2023. Mutual enhancement of large and small language models with cross-silo knowledge transfer. arXiv preprint arXiv:2312.05842 (2023). +[80] Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. 2022. GPT3.int8(): 8-bit Matrix Multiplication for Transformers at Scale. In Advances in Neural Information Processing Systems, Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho (Eds.). https: //openreview.net/forum?id=dXiGWqBoxaD +[81] Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. 2024. Qlora: Efficient finetuning of quantized llms. Advances in Neural Information Processing Systems 36 (2024). +[82] Tim Dettmers and Luke Zettlemoyer. 2023. The case for 4-bit precision: k-bit inference scaling laws. In International Conference on Machine Learning. PMLR, 7750–7774. +[83] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). 4171–4186. +[84] Nolan Dey, Gurpreet Gosal, Zhiming Chen, Hemant Khachane, William Marshall, Ribhu Pathria, Marvin Tom, and Joel Hestness. 2023. Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Cluster. CoRR abs/2304.03208 (2023). +[85] Richard Diehl Martinez, Pietro Lesci, and Paula Buttery. 2024. Tending Towards Stability: Convergence Challenges in Small Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 3275–3286. https://doi.org/10.18653/v1/2024.findings-emnlp.187 +[86] Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Zhi Zheng, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. 2023. Enhancing chat language models by scaling high-quality instructional conversations. arXiv preprint arXiv:2305.14233 (2023). +[87] Tinghe Ding. 2024. MobileAgent: enhancing mobile control via human-machine interaction and SOP integration. arXiv:2401.04124 [cs.HC] https://arxiv.org/abs/2401.04124 +[88] Ricardo Dominguez-Olmedo, Moritz Hardt, and Celestine Mendler-Dünner. 2023. Questioning the survey responses of large language models. arXiv preprint arXiv:2306.07951 (2023). +[89] Qian Dong, Yiding Liu, Qingyao Ai, Haitao Li, Shuaiqiang Wang, Yiqun Liu, Dawei Yin, and Shaoping Ma. 2023. I3 retriever: incorporating implicit interaction in pre-trained language models for passage retrieval. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management. 441–451. +[90] Xin Dong, Yonggan Fu, Shizhe Diao, Wonmin Byeon, Zijia Chen, Ameya Sunil Mahabaleshwarkar, Shih-Yang Liu, Matthijs Van Keirsbilck, Min-Hung Chen, Yoshi Suhara, et al. 2024. Hymba: A Hybrid-head Architecture for Small Language Models. arXiv preprint arXiv:2411.13676 (2024). +[91] Jason Xiaotian Dou, Haiyi Mao, Runxue Bao, Paul Pu Liang, Xiaoqing Tan, Shiyi Zhang, Minxue Jia, Pengfei Zhou, and Zhi-Hong Mao. 2023. The Measurement of Knowledge in Knowledge Graphs. In Proceedings of the AAAI 2023 Workshop on Representation Learning for Responsible Human-Centric AI (R2HCAI). Association for the Advancement of Artificial Intelligence (AAAI) Washington . . +[92] Xinrun Du, Zhouliang Yu, Songyang Gao, Ding Pan, Yuyang Cheng, Ziyang Ma, Ruibin Yuan, Xingwei Qu, Jiaheng Liu, Tianyu Zheng, Xinchen Luo, Guorui Zhou, Wenhu Chen, and Ge Zhang. 2024. Chinese Tiny LLM: Pretraining a Chinese-Centric Large Language Model. arXiv:2404.04167 [cs.CL] https://arxiv.org/abs/2404.04167 +[93] Zhengxiao Du, Yujie Qian, Xiao Liu, Ming Ding, Jiezhong Qiu, Zhilin Yang, and Jie Tang. 2022. GLM: General Language Model Pretraining with Autoregressive Blank Infilling. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 320–335. +[94] Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, et al. 2024. The llama 3 herd of models. arXiv preprint arXiv:2407.21783 (2024). +[95] Kazuki Egashira, Mark Vero, Robin Staab, Jingxuan He, and Martin Vechev. 2024. Exploiting LLM Quantization. arXiv preprint arXiv:2405.18137 (2024). +[96] Ronen Eldan and Yuanzhi Li. 2023. Tinystories: How small can language models be and still speak coherent english? arXiv preprint arXiv:2305.07759 (2023). +[97] Stefan Elfwing, Eiji Uchibe, and Kenji Doya. 2018. Sigmoid-weighted linear units for neural network function approximation in reinforcement learning. Neural networks 107 (2018), 3–11. +[98] David Esiobu, Xiaoqing Tan, Saghar Hosseini, Megan Ung, Yuchen Zhang, Jude Fernandes, Jane Dwivedi-Yu, Eleonora Presani, Adina Williams, and Eric Smith. 2023. ROBBIE: Robust bias evaluation of large generative language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. 3764–3814. https://aclanthology.org/2023.emnlp-main.230 +[99] Hugging Face. 2024. SmolVLM - small yet mighty Vision Language Model. https://huggingface.co/blog/smolvlm Accessed: 2024-11-26. +[100] William Fedus, Barret Zoph, and Noam Shazeer. 2022. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research 23, 120 (2022), 1–39. +[101] Shangbin Feng, Weijia Shi, Yuyang Bai, Vidhisha Balachandran, Tianxing He, and Yulia Tsvetkov. 2023. Knowledge Card: Filling LLMs’ Knowledge Gaps with Plug-in Specialized Language Models. arXiv preprint arXiv:2305.09955 (2023). +[102] Elias Frantar and Dan Alistarh. 2023. Sparsegpt: Massive language models can be accurately pruned in one-shot. In International Conference on Machine Learning. PMLR, 10323–10337. +[103] Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. 2023. GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers. In The Eleventh International Conference on Learning Representations. +[104] Hao Fu, Yao; Peng and Tushar Khot. 2022. How does GPT Obtain its Ability? Tracing Emergent Abilities of Language Models to their Sources. Yao Fu’s Notion (Dec 2022). https://yaofu.notion.site/How-does-GPT-Obtain-its-Ability-Tracing-Emergent-Abilities-of-Language-Models-to-theirSources-b9a57ac0fcf74f30a1ab9e3e36fa1dc1 +[105] Yao Fu, Hao Peng, Litu Ou, Ashish Sabharwal, and Tushar Khot. 2023. Specializing smaller language models towards multi-step reasoning. In International Conference on Machine Learning. PMLR, 10421–10430. +[106] Philip Gage. 1994. A new algorithm for data compression. The C Users Journal 12, 2 (1994), 23–38. +[107] Chongming Gao, Shiqi Wang, Shijun Li, Jiawei Chen, Xiangnan He, Wenqiang Lei, Biao Li, Yuan Zhang, and Peng Jiang. 2023. CIRS: Bursting filter bubbles by counterfactual interactive recommender system. ACM Transactions on Information Systems 42, 1 (2023), 1–27. +[108] Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, et al. 2020. The Pile: An 800GB dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027 (2020). +[109] Luyu Gao and Jamie Callan. 2022. Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrieval. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2843–2853. +[110] Shangqian Gao, Chi-Heng Lin, Ting Hua, Zheng Tang, Yilin Shen, Hongxia Jin, and Yen-Chang Hsu. 2024. DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https: //openreview.net/forum?id=YxaY6tHgg0 +[111] Suyu Ge, Yunan Zhang, Liyuan Liu, Minjia Zhang, Jiawei Han, and Jianfeng Gao. 2024. Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=uNrFpDPMyo +[112] Alex Gichamba, Tewodros Kederalah Idris, Brian Ebiyau, Eric Nyberg, and Teruko Mitamura. 2024. ColBERT Retrieval and Ensemble Response Scoring for Language Model Question Answering. arXiv:2408.10808 [cs.CL] https://arxiv.org/abs/2408.10808 +[113] Karan Goel. 2024. The On-Device Intelligence Update. https://www.cartesia.ai/blog/on-device +[114] Aaron Gokaslan, Vanya Cohen, Ellie Pavlick, and Stefanie Tellex. 2019. Openwebtext corpus. +[115] Shreya Goyal, Sumanth Doddapaneni, Mitesh M Khapra, and Balaraman Ravindran. 2023. A survey of adversarial defenses and robustness in nlp. Comput. Surveys 55, 14s (2023), 1–39. +[116] Dirk Groeneveld, Iz Beltagy, Pete Walsh, Akshita Bhagia, Rodney Kinney, Oyvind Tafjord, Ananya Harsh Jha, Hamish Ivison, Ian Magnusson, Yizhong Wang, et al. 2024. Olmo: Accelerating the science of language models. arXiv preprint arXiv:2402.00838 (2024). +[117] Albert Gu and Tri Dao. 2023. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752 (2023). +[118] Naibin Gu, Peng Fu, Xiyu Liu, Bowen Shen, Zheng Lin, and Weiping Wang. 2024. Light-PEFT: Lightening Parameter-Efficient Fine-Tuning via Early Pruning. In Findings of the Association for Computational Linguistics: ACL 2024, Lun-Wei Ku, Andre Martins, and Vivek Srikumar (Eds.). Association for Computational Linguistics, Bangkok, Thailand, 7528–7541. https://doi.org/10.18653/v1/2024.findings-acl.447 +[119] Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. 2024. MiniLLM: Knowledge distillation of large language models. In The Twelfth International Conference on Learning Representations. +[120] Suriya Gunasekar, Yi Zhang, Jyoti Aneja, Caio César Teodoro Mendes, Allie Del Giorno, Sivakanth Gopi, Mojan Javaheripi, Piero Kauffmann, Gustavo de Rosa, Olli Saarikivi, Adil Salim, Shital Shah, Harkirat Singh Behl, Xin Wang, Sébastien Bubeck, Ronen Eldan, Adam Tauman Kalai, Yin Tat Lee, and Yuanzhi Li. 2023. Textbooks Are All You Need. arXiv:2306.11644 [cs.CL] https://arxiv.org/abs/2306.11644 +[121] Daya Guo, Qihao Zhu, Dejian Yang, Zhenda Xie, Kai Dong, Wentao Zhang, Guanting Chen, Xiao Bi, Yu Wu, YK Li, et al. 2024. DeepSeek-Coder: When the Large Language Model Meets Programming–The Rise of Code Intelligence. arXiv preprint arXiv:2401.14196 (2024). +[122] Jinyang Guo, Jianyu Wu, Zining Wang, Jiaheng Liu, Ge Yang, Yifu Ding, Ruihao Gong, Haotong Qin, and Xianglong Liu. 2024. Compressing large language models by joint sparsification and quantization. In Forty-first International Conference on Machine Learning. +[123] Shangwei Guo, Chunlong Xie, Jiwei Li, Lingjuan Lyu, and Tianwei Zhang. 2022. Threats to pre-trained language models: Survey and taxonomy. arXiv preprint arXiv:2202.06862 (2022). +[124] Song Guo, Jiahang Xu, Li Lyna Zhang, and Mao Yang. 2023. Compresso: Structured pruning with collaborative prompting learns compact large language models. arXiv preprint arXiv:2310.05015 (2023). +[125] Zhen Guo, Peiqi Wang, Yanwei Wang, and Shangdi Yu. 2023. Improving Small Language Models on PubMedQA via Generative Data Augmentation. arXiv:2305.07804 [cs.CL] https://arxiv.org/abs/2305.07804 +[126] Song Han, Jeff Pool, John Tran, and William Dally. 2015. Learning both weights and connections for efficient neural network. Advances in neural information processing systems 28 (2015). +[127] Zixu Hao, Huiqiang Jiang, Shiqi Jiang, Ju Ren, and Ting Cao. 2024. Hybrid SLM and LLM for Edge-Cloud Collaborative Inference. In Proceedings of the Workshop on Edge and Mobile Foundation Models. 36–41. +[128] Tim Hartill, Diana Benavides-Prado, Michael Witbrock, and Patricia J. Riddle. 2023. Answering Unseen Questions With Smaller Language Models Using Rationale Generation and Dense Retrieval. arXiv:2308.04711 [cs.CL] https://arxiv.org/abs/2308.04711 +[129] Tim Hartill, Neset Tan, Michael Witbrock, and Patricia J. Riddle. 2023. Teaching Smaller Language Models To Generalise To Unseen Compositional Questions. arXiv:2308.00946 [cs.CL] https://arxiv.org/abs/2308.00946 +[130] Kai He, Rui Mao, Qika Lin, Yucheng Ruan, Xiang Lan, Mengling Feng, and Erik Cambria. 2023. A survey of large language models for healthcare: from data, technology, and applications to accountability and ethics. arXiv preprint arXiv:2310.05694 (2023). +[131] Pengcheng He, Jianfeng Gao, and Weizhu Chen. 2023. DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with GradientDisentangled Embedding Sharing. In The Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=sE7- XhLxHA +[132] Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen. 2020. Deberta: Decoding-enhanced bert with disentangled attention. arXiv preprint arXiv:2006.03654 (2020). +[133] Narges Heidari, Parham Moradi, and Abbas Koochari. 2022. An attention-based deep learning method for solving the cold-start and sparsity issues of recommender systems. Knowledge-Based Systems 256 (2022), 109835. +[134] Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021. Measuring Massive Multitask Language Understanding. In International Conference on Learning Representations. https://openreview.net/forum?id=d7KBjmI3GmQ +[135] Dan Hendrycks and Kevin Gimpel. 2016. Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415 (2016). +[136] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531 (2015). +[137] Sepp Hochreiter and Jürgen Schmidhuber. 1996. LSTM can solve hard long time lag problems. Advances in neural information processing systems 9 (1996). +[138] Junyuan Hong, Jinhao Duan, Chenhui Zhang, Zhangheng Li, Chulin Xie, Kelsey Lieberman, James Diffenderfer, Brian R. Bartoldson, Ajay Kumar Jaiswal, Kaidi Xu, Bhavya Kailkhura, Dan Hendrycks, Dawn Song, Zhangyang Wang, and Bo Li. 2024. Decoding Compressed Trust: Scrutinizing the Trustworthiness of Efficient LLMs Under Compression. In Proceedings of the Forty-first International Conference on Machine Learning, ICML. https://openreview.net/forum?id=e3Dpq3WdMv +[139] Yutong Meng Yuhao Wang Hongcheng Liu, Yusheng Liao. 2023. XieZhi: Chinese Law Large Language Model. https://github.com/LiuHC0428/ LAW_GPT. +[140] Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin De Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. 2019. Parameter-efficient transfer learning for NLP. In International Conference on Machine Learning. PMLR, 2790–2799. +[141] Cheng-Yu Hsieh, Chun-Liang Li, Chih-kuan Yeh, Hootan Nakhost, Yasuhisa Fujii, Alex Ratner, Ranjay Krishna, Chen-Yu Lee, and Tomas Pfister. 2023. Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes. In Findings of the Association for Computational Linguistics: ACL 2023. 8003–8017. +[142] Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685 (2021). +[143] Shengding Hu, Yuge Tu, Xu Han, Chaoqun He, Ganqu Cui, Xiang Long, Zhi Zheng, Yewei Fang, Yuxiang Huang, Weilin Zhao, et al. 2024. Minicpm: Unveiling the potential of small language models with scalable training strategies. arXiv preprint arXiv:2404.06395 (2024). +[144] Xing Hu, Yuan Chen, Dawei Yang, Sifan Zhou, Zhihang Yuan, Jiangyong Yu, and Chen Xu. 2024. I-LLM: Efficient Integer-Only Inference for Fully-Quantized Low-Bit Large Language Models. arXiv preprint arXiv:2405.17849 (2024). +[145] Jiaxin Huang, Shixiang Shane Gu, Le Hou, Yuexin Wu, Xuezhi Wang, Hongkun Yu, and Jiawei Han. [n. d.]. Large Language Models Can Self-Improve. In The 2023 Conference on Empirical Methods in Natural Language Processing. +[146] Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, et al. 2023. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. arXiv preprint arXiv:2311.05232 (2023). +[147] Wei Huang, Yangdong Liu, Haotong Qin, Ying Li, Shiming Zhang, Xianglong Liu, Michele Magno, and Xiaojuan Qi. 2024. Billm: Pushing the limit of post-training quantization for llms. arXiv preprint arXiv:2402.04291 (2024). +[148] Wenyu Huang, Guancheng Zhou, Hongru Wang, Pavlos Vougiouklis, Mirella Lapata, and Jeff Z. Pan. 2024. Less is More: Making Smaller Language Models Competent Subgraph Retrievers for Multi-hop KGQA. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 15787–15803. https://doi.org/10.18653/v1/2024.findings-emnlp.927 +[149] Yuzhen Huang, Yuzhuo Bai, Zhihao Zhu, Junlei Zhang, Jinghan Zhang, Tangjun Su, Junteng Liu, Chuancheng Lv, Yikai Zhang, Yao Fu, et al. 2024. C-eval: A multi-level multi-discipline chinese evaluation suite for foundation models. Advances in Neural Information Processing Systems 36 (2024). +[150] Yangsibo Huang, Samyak Gupta, Mengzhou Xia, Kai Li, and Danqi Chen. 2023. Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation. arXiv preprint arXiv:2310.06987 (2023). +[151] Yuheng Huang, Jiayang Song, Zhijie Wang, Shengming Zhao, Huaming Chen, Felix Juefei-Xu, and Lei Ma. 2023. Look before you leap: An exploratory study of uncertainty measurement for large language models. arXiv preprint arXiv:2307.10236 (2023). +[152] Samuel Humeau, Kurt Shuster, Marie-Anne Lachaux, and Jason Weston. [n. d.]. Poly-encoders: Architectures and Pre-training Strategies for Fast and Accurate Multi-sentence Scoring. In International Conference on Learning Representations. +[153] Hakan Inan, Kartikeya Upasani, Jianfeng Chi, Rashi Rungta, Krithika Iyer, Yuning Mao, Michael Tontchev, Qing Hu, Brian Fuller, Davide Testuggine, et al. 2023. Llama guard: Llm-based input-output safeguard for human-ai conversations. arXiv preprint arXiv:2312.06674 (2023). +[154] Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and Geoffrey E Hinton. 1991. Adaptive mixtures of local experts. Neural computation 3, 1 (1991), 79–87. +[155] Mojan Javaheripi, Sébastien Bubeck, Marah Abdin, Jyoti Aneja, Sebastien Bubeck, Caio César Teodoro Mendes, Weizhu Chen, Allie Del Giorno, Ronen Eldan, Sivakanth Gopi, et al. 2023. Phi-2: The surprising power of small language models. Microsoft Research Blog (2023). +[156] Soyeong Jeong, Jinheon Baek, Sukmin Cho, Sung Hwang, and Jong C Park. 2023. Test-Time Self-Adaptive Small Language Models for Question Answering. In Findings of the Association for Computational Linguistics: EMNLP 2023. 15459–15469. +[157] Ananya Harsh Jha, Tom Sherborne, Evan Pete Walsh, Dirk Groeneveld, Emma Strubell, and Iz Beltagy. 2024. Just CHOP: Embarrassingly Simple LLM Compression. arXiv:2305.14864 [cs.CL] https://arxiv.org/abs/2305.14864 +[158] Yixin Ji, Yang Xiang, Juntao Li, Wei Chen, Zhongyi Liu, Kehai Chen, and Min Zhang. 2024. Feature-based Low-Rank Compression of Large Language Models via Bayesian Optimization. arXiv preprint arXiv:2405.10616 (2024). +[159] Ziwei Ji, Tiezheng Yu, Yan Xu, Nayeon Lee, Etsuko Ishii, and Pascale Fung. 2023. Towards mitigating LLM hallucination via self reflection. In Findings of the Association for Computational Linguistics: EMNLP 2023. 1827–1843. +[160] Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. 2023. Mistral 7B. arXiv preprint arXiv:2310.06825 (2023). +[161] Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, et al. 2024. Mixtral of experts. arXiv preprint arXiv:2401.04088 (2024). +[162] Huiqiang Jiang, Qianhui Wu, Xufang Luo, Dongsheng Li, Chin-Yew Lin, Yuqing Yang, and Lili Qiu. 2024. LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression. In ICLR 2024 Workshop on Mathematical and Empirical Understanding of Foundation Models. https://openreview.net/forum?id=9YvfRrpmyw +[163] Qiao Jin, Bhuwan Dhingra, Zhengping Liu, William Cohen, and Xinghua Lu. 2019. PubMedQA: A Dataset for Biomedical Research Question Answering. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). 2567–2577. +[164] Rudolph Emil Kalman. 1960. A new approach to linear filtering and prediction problems. (1960). +[165] Hao Kang, Qingru Zhang, Souvik Kundu, Geonhwa Jeong, Zaoxing Liu, Tushar Krishna, and Tuo Zhao. 2024. Gear: An efficient kv cache compression recipefor near-lossless generative inference of llm. arXiv preprint arXiv:2403.05527 (2024). +[166] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. 2020. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361 (2020). +[167] Omar Khattab, Arnav Singhvi, Paridhi Maheshwari, Zhiyuan Zhang, Keshav Santhanam, Sri Vardhamanan, Saiful Haq, Ashutosh Sharma, Thomas T Joshi, Hanna Moazam, et al. 2023. Dspy: Compiling declarative language model calls into self-improving pipelines. arXiv preprint arXiv:2310.03714 (2023). +[168] Jeonghoon Kim, Jung Hyun Lee, Sungdong Kim, Joonsuk Park, Kang Min Yoo, Se Jung Kwon, and Dongsoo Lee. 2024. Memory-efficient fine-tuning of compressed large language models via sub-4-bit integer quantization. Advances in Neural Information Processing Systems 36 (2024). +[169] Minsoo Kim, Sihwa Lee, Janghwan Lee, Sukjin Hong, Du-Seong Chang, Wonyong Sung, and Jungwook Choi. 2024. Token-scaled logit distillation for ternary weight generative language models. Advances in Neural Information Processing Systems 36 (2024). +[170] Sehoon Kim, Coleman Hooper, Amir Gholami, Zhen Dong, Xiuyu Li, Sheng Shen, Michael W Mahoney, and Kurt Keutzer. 2023. Squeezellm: Dense-and-sparse quantization. arXiv preprint arXiv:2306.07629 (2023). +[171] Yoon Kim and Alexander M Rush. 2016. Sequence-Level Knowledge Distillation. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing. 1317–1327. +[172] Young Jin Kim, Raffy Fahim, and Hany Hassan Awadalla. 2023. Mixture of Quantized Experts (MoQE): Complementary Effect of Low-bit Quantization and Robustness. arXiv preprint arXiv:2310.02410 (2023). +[173] Jongwoo Ko, Sungnyun Kim, Tianyi Chen, and Se-Young Yun. 2024. DistiLLM: Towards Streamlined Distillation for Large Language Models. arXiv preprint arXiv:2402.03898 (2024). +[174] Denis Kocetkov, Raymond Li, Loubna Ben Allal, Jia Li, Chenghao Mou, Carlos Muñoz Ferrandis, Yacine Jernite, Margaret Mitchell, Sean Hughes, Thomas Wolf, et al. 2022. The stack: 3 tb of permissively licensed source code. arXiv preprint arXiv:2211.15533 (2022). +[175] Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. 2023. Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generation. In Proceedings of the Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=VD-AYtP0dve +[176] Divyanshu Kumar, Anurakt Kumar, Sahil Agarwal, and Prashanth Harshangi. 2024. Fine-Tuning, Quantization, and LLMs: Navigating Unintended Outcomes. arXiv preprint arXiv:2404.04392 (2024). +[177] Ohjoon Kwon, Donghyeon Jeon, Nayoung Choi, Gyu-Hwung Cho, Hwiyeol Jo, Changbong Kim, Hyunwoo Lee, Inho Kang, Sun Kim, and Taiwoo Park. 2024. SLM as Guardian: Pioneering AI Safety with Small Language Model. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: Industry Track, Franck Dernoncourt, Daniel Preoţiuc-Pietro, and Anastasia Shimorina (Eds.). Association for Computational Linguistics, Miami, Florida, US, 1333–1350. https://doi.org/10.18653/v1/2024.emnlp-industry.99 +[178] Yanis Labrak, Adrien Bazoge, Emmanuel Morin, Pierre-Antoine Gourraud, Mickael Rouvier, and Richard Dufour. 2024. Biomistral: A collection of open-source pretrained large language models for medical domains. arXiv preprint arXiv:2402.10373 (2024). +[179] Stefan Larson, Anish Mahendran, Joseph J. Peper, Christopher Clarke, Andrew Lee, Parker Hill, Jonathan K. Kummerfeld, Kevin Leach, Michael A. Laurenzano, Lingjia Tang, and Jason Mars. 2019. An Evaluation Dataset for Intent Classification and Out-of-Scope Prediction. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Kentaro Inui, Jing Jiang, Vincent Ng, and Xiaojun Wan (Eds.). Association for Computational Linguistics, Hong Kong, China, +Manuscript submitted to ACM 1311–1316. https://doi.org/10.18653/v1/D19-1131 +[180] Hugo Laurençon, Lucile Saulnier, Thomas Wang, Christopher Akiki, Albert Villanova del Moral, Teven Le Scao, Leandro Von Werra, Chenghao Mou, Eduardo González Ponferrada, Huu Nguyen, et al. 2022. The bigscience roots corpus: A 1.6 tb composite multilingual dataset. Advances in Neural Information Processing Systems 35 (2022), 31809–31826. +[181] Teven Le Scao, Angela Fan, Christopher Akiki, Ellie Pavlick, Suzana Ilić, Daniel Hesslow, Roman Castagné, Alexandra Sasha Luccioni, François Yvon, Matthias Gallé, et al. 2023. Bloom: A 176b-parameter open-access multilingual language model. (2023). +[182] Hojae Lee, Junho Kim, and SangKeun Lee. 2024. Mentor-KD: Making Small Language Models Better Multi-step Reasoners. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 17643–17658. https://doi.org/10.18653/v1/2024.emnlp-main.977 +[183] Jooyoung Lee, Fan Yang, Thanh Tran, Qian Hu, Emre Barut, and Kai-Wei Chang. 2024. Can Small Language Models Help Large Language Models Reason Better?: LM-Guided Chain-of-Thought. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024). 2835–2843. +[184] Benjamin Lefaudeux, Francisco Massa, Diana Liskovich, Wenhan Xiong, Vittorio Caggiano, Sean Naren, Min Xu, Jieru Hu, Marta Tintore, Susan Zhang, Patrick Labatut, Daniel Haziza, Luca Wehrstedt, Jeremy Reizenstein, and Grigory Sizov. 2022. xFormers: A modular and hackable Transformer modelling library. https://github.com/facebookresearch/xformers. +[185] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. 2016. Layer normalization. ArXiv e-prints (2016), arXiv–1607. +[186] Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, et al. 2022. Solving quantitative reasoning problems with language models. Advances in Neural Information Processing Systems 35 (2022), 3843–3857. +[187] Chenglin Li, Qianglong Chen, Liangyue Li, Caiyu Wang, Yicheng Li, Zulong Chen, and Yin Zhang. 2023. Mixed distillation helps smaller language model better reasoning. arXiv preprint arXiv:2312.10730 (2023). +[188] Guangyan Li, Yongqiang Tang, and Wensheng Zhang. 2024. LoRAP: Transformer Sub-Layers Deserve Differentiated Structured Compression for Large Language Models. arXiv preprint arXiv:2404.09695 (2024). +[189] Haitao Li, Qingyao Ai, Jia Chen, Qian Dong, Zhijing Wu, Yiqun Liu, Chong Chen, and Qi Tian. 2024. BLADE: Enhancing Black-box Large Language Models with Small Domain-Specific Models. arXiv:2403.18365 [cs.CL] https://arxiv.org/abs/2403.18365 +[190] Haoran Li, Dadi Guo, Donghao Li, Wei Fan, Qi Hu, Xin Liu, Chunkit Chan, Duanyi Yao, Yuan Yao, and Yangqiu Song. 2024. PrivLM-Bench: A Multi-level Privacy Evaluation Benchmark for Language Models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics. 54–73. +[191] Junyi Li, Xiaoxue Cheng, Xin Zhao, Jian-Yun Nie, and Ji-Rong Wen. 2023. HaluEval: A Large-Scale Hallucination Evaluation Benchmark for Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, Singapore, 6449–6464. https://doi.org/10.18653/v1/2023.emnlp-main.397 +[192] Jeffrey Li, Alex Fang, Georgios Smyrnis, Maor Ivgi, Matt Jordan, Samir Gadre, Hritik Bansal, Etash Guha, Sedrick Keh, Kushal Arora, et al. 2024. Datacomp-lm: In search of the next generation of training sets for language models. arXiv preprint arXiv:2406.11794 (2024). +[193] Luchang Li, Sheng Qian, Jie Lu, Lunxi Yuan, Rui Wang, and Qin Xie. 2024. Transformer-Lite: High-efficiency Deployment of Large Language Models on Mobile Phone GPUs. arXiv:2403.20041 [cs.CL] https://arxiv.org/abs/2403.20041 +[194] Pingzhi Li, Xiaolong Jin, Yu Cheng, and Tianlong Chen. 2024. Examining Post-Training Quantization for Mixture-of-Experts: A Benchmark. arXiv preprint arXiv:2406.08155 (2024). +[195] Raymond Li, Loubna Ben Allal, Yangtian Zi, Niklas Muennighoff, Denis Kocetkov, Chenghao Mou, Marc Marone, Christopher Akiki, Jia Li, Jenny Chim, Qian Liu, Evgenii Zheltonozhskii, Terry Yue Zhuo, Thomas Wang, Olivier Dehaene, Mishig Davaadorj, Joel Lamy-Poirier, João Monteiro, Oleh Shliazhko, Nicolas Gontier, Nicholas Meade, Armel Zebaze, Ming-Ho Yee, Logesh Kumar Umapathi, Jian Zhu, Benjamin Lipkin, Muhtasham Oblokulov, Zhiruo Wang, Rudra Murthy, Jason Stillerman, Siva Sankalp Patel, Dmitry Abulkhanov, Marco Zocca, Manan Dey, Zhihan Zhang, Nour Fahmy, Urvashi Bhattacharyya, Wenhao Yu, Swayam Singh, Sasha Luccioni, Paulo Villegas, Maxim Kunakov, Fedor Zhdanov, Manuel Romero, Tony Lee, Nadav Timor, Jennifer Ding, Claire Schlesinger, Hailey Schoelkopf, Jan Ebert, Tri Dao, Mayank Mishra, Alex Gu, Jennifer Robinson, Carolyn Jane Anderson, Brendan Dolan-Gavitt, Danish Contractor, Siva Reddy, Daniel Fried, Dzmitry Bahdanau, Yacine Jernite, Carlos Muñoz Ferrandis, Sean Hughes, Thomas Wolf, Arjun Guha, Leandro von Werra, and Harm de Vries. 2023. StarCoder: may the source be with you! arXiv:2305.06161 [cs.CL] https://arxiv.org/abs/2305.06161 +[196] Shengrui Li, Xueting Han, and Jing Bai. 2024. Nuteprune: Efficient progressive pruning with numerous teachers for large language models. arXiv preprint arXiv:2402.09773 (2024). +[197] Tianlin Li, Qian Liu, Tianyu Pang, Chao Du, Qing Guo, Yang Liu, and Min Lin. 2024. Purifying large language models by ensembling a small language model. arXiv preprint arXiv:2402.14845 (2024). +[198] Xiang Lisa Li, Ari Holtzman, Daniel Fried, Percy Liang, Jason Eisner, Tatsunori B Hashimoto, Luke Zettlemoyer, and Mike Lewis. 2023. Contrastive Decoding: Open-ended Text Generation as Optimization. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 12286–12312. +[199] Xiang Lisa Li and Percy Liang. 2021. Prefix-tuning: Optimizing continuous prompts for generation. arXiv preprint arXiv:2101.00190 (2021). +[200] Yuanzhi Li, Sébastien Bubeck, Ronen Eldan, Allie Del Giorno, Suriya Gunasekar, and Yin Tat Lee. 2023. Textbooks Are All You Need II: phi-1.5 technical report. arXiv:2309.05463 [cs.CL] https://arxiv.org/abs/2309.05463 +[201] Yun Li, Lin Niu, Xipeng Zhang, Kai Liu, Jianchen Zhu, and Zhanhui Kang. 2023. E-sparse: Boosting the large language model inference through entropy-based n: M sparsity. arXiv preprint arXiv:2310.15929 (2023). +[202] Yinheng Li, Shaofei Wang, Han Ding, and Hang Chen. 2023. Large language models in finance: A survey. In Proceedings of the fourth ACM international conference on AI in finance. 374–382. +[203] Wing Lian, Guan Wang, Bleys Goodson, Eugene Pentland, Austin Cook, Chanvichet Vong, and "Teknium". 2023. SlimOrca: An Open Dataset of GPT-4 Augmented FLAN Reasoning Traces, with Verification. https://https://huggingface.co/Open-Orca/SlimOrca +[204] Jinggui Liang, Lizi Liao, Hao Fei, and Jing Jiang. 2024. Synergizing Large Language Models and Pre-Trained Smaller Models for Conversational Intent Discovery. In Findings of the Association for Computational Linguistics ACL 2024. 14133–14147. +[205] Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, Benjamin Newman, Binhang Yuan, Bobby Yan, Ce Zhang, Christian Alexander Cosgrove, Christopher D Manning, Christopher Re, Diana Acosta-Navas, Drew Arad Hudson, Eric Zelikman, Esin Durmus, Faisal Ladhak, Frieda Rong, Hongyu Ren, Huaxiu Yao, Jue WANG, Keshav Santhanam, Laurel Orr, Lucia Zheng, Mert Yuksekgonul, Mirac Suzgun, Nathan Kim, Neel Guha, Niladri S. Chatterji, Omar Khattab, Peter Henderson, Qian Huang, Ryan Andrew Chi, Sang Michael Xie, Shibani Santurkar, Surya Ganguli, Tatsunori Hashimoto, Thomas Icard, Tianyi Zhang, Vishrav Chaudhary, William Wang, Xuechen Li, Yifan Mai, Yuhui Zhang, and Yuta Koreeda. 2023. Holistic Evaluation of Language Models. Transactions on Machine Learning Research (2023). https://openreview.net/forum?id=iO4LZibEqW +[206] Jianghao Lin, Rong Shan, Chenxu Zhu, Kounianhua Du, Bo Chen, Shigang Quan, Ruiming Tang, Yong Yu, and Weinan Zhang. 2024. Rella: Retrieval-enhanced large language models for lifelong sequential behavior comprehension in recommendation. In Proceedings of the ACM on Web Conference 2024. 3497–3508. +[207] Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, and Song Han. 2024. AWQ: Activation-aware Weight Quantization for On-Device LLM Compression and Acceleration. Proceedings of Machine Learning and Systems 6 (2024), 87–100. +[208] Stephanie Lin, Jacob Hilton, and Owain Evans. 2022. TruthfulQA: Measuring How Models Mimic Human Falsehoods. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 3214–3252. +[209] Xi Victoria Lin, Todor Mihaylov, Mikel Artetxe, Tianlu Wang, Shuohui Chen, Daniel Simig, Myle Ott, Naman Goyal, Shruti Bhosale, Jingfei Du, Ramakanth Pasunuru, Sam Shleifer, Punit Singh Koura, Vishrav Chaudhary, Brian O’Horo, Jeff Wang, Luke Zettlemoyer, Zornitsa Kozareva, Mona Diab, Veselin Stoyanov, and Xian Li. 2022. Few-shot Learning with Multilingual Generative Language Models. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang (Eds.). Association for Computational Linguistics, Abu Dhabi, United Arab Emirates, 9019–9052. https://doi.org/10.18653/v1/2022.emnlp-main.616 +[210] Zhenghao Lin, Zhibin Gou, Yeyun Gong, Xiao Liu, Yelong Shen, Ruochen Xu, Chen Lin, Yujiu Yang, Jian Jiao, Nan Duan, et al. 2024. Rho-1: Not all tokens are what you need. arXiv preprint arXiv:2404.07965 (2024). +[211] Aixin Liu, Bei Feng, Bin Wang, Bingxuan Wang, Bo Liu, Chenggang Zhao, Chengqi Dengr, Chong Ruan, Damai Dai, Daya Guo, et al. 2024. Deepseek-v2: A strong, economical, and efficient mixture-of-experts language model. arXiv preprint arXiv:2405.04434 (2024). +[212] Alisa Liu, Xiaochuang Han, Yizhong Wang, Yulia Tsvetkov, Yejin Choi, and Noah A Smith. 2024. Tuning language models by proxy. arXiv preprint arXiv:2401.08565 (2024). +[213] Jiashuo Liu, Zheyan Shen, Yue He, Xingxuan Zhang, Renzhe Xu, Han Yu, and Peng Cui. 2021. Towards out-of-distribution generalization: A survey. arXiv preprint arXiv:2108.13624 (2021). +[214] Qijiong Liu, Nuo Chen, Tetsuya Sakai, and Xiao-Ming Wu. 2024. Once: Boosting content-based recommendation with both open-and closed-source large language models. In Proceedings of the 17th ACM International Conference on Web Search and Data Mining. 452–461. +[215] Suqing Liu, Zezhu Yu, Feiran Huang, Yousef Bulbulia, Andreas Bergen, and Michael Liut. 2024. Can Small Language Models With RetrievalAugmented Generation Replace Large Language Models When Learning Computer Science? In Proceedings of the 2024 on Innovation and Technology in Computer Science Education V. 1. 388–393. +[216] Wei Liu, Weihao Zeng, Keqing He, Yong Jiang, and Junxian He. 2023. What makes good data for alignment? a comprehensive study of automatic data selection in instruction tuning. arXiv preprint arXiv:2312.15685 (2023). +[217] Yinpeng Liu, Jiawei Liu, Xiang Shi, Qikai Cheng, and Wei Lu. 2024. Let’s Learn Step by Step: Enhancing In-Context Learning Ability with Curriculum Learning. arXiv preprint arXiv:2402.10738 (2024). +[218] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692 (2019). +[219] Yanming Liu, Xinyue Peng, Xuhong Zhang, Weihao Liu, Jianwei Yin, Jiannan Cao, and Tianyu Du. 2024. RA-ISF: Learning to Answer and Understand from Retrieval Augmentation via Iterative Self-Feedback. arXiv preprint arXiv:2403.06840 (2024). +[220] Zichang Liu, Aditya Desai, Fangshuo Liao, Weitao Wang, Victor Xie, Zhaozhuo Xu, Anastasios Kyrillidis, and Anshumali Shrivastava. 2024. Scissorhands: Exploiting the persistence of importance hypothesis for llm kv cache compression at test time. Advances in Neural Information Processing Systems 36 (2024). +[221] Zechun Liu, Barlas Oguz, Changsheng Zhao, Ernie Chang, Pierre Stock, Yashar Mehdad, Yangyang Shi, Raghuraman Krishnamoorthi, and Vikas Chandra. 2023. Llm-qat: Data-free quantization aware training for large language models. arXiv preprint arXiv:2305.17888 (2023). +[222] Zhengxiao Liu, Bowen Shen, Zheng Lin, Fali Wang, and Weiping Wang. 2023. Maximum Entropy Loss, the Silver Bullet Targeting Backdoor Attacks in Pre-trained Language Models. In Findings of the Association for Computational Linguistics: ACL 2023, Anna Rogers, Jordan Boyd-Graber, and Naoaki Okazaki (Eds.). Association for Computational Linguistics, Toronto, Canada, 3850–3868. https://doi.org/10.18653/v1/2023.findings-acl.237 +[223] Zechun Liu, Changsheng Zhao, Forrest Iandola, Chen Lai, Yuandong Tian, Igor Fedorov, Yunyang Xiong, Ernie Chang, Yangyang Shi, Raghuraman Krishnamoorthi, et al. 2024. Mobilellm: Optimizing sub-billion parameter language models for on-device use cases. arXiv preprint arXiv:2402.14905 (2024). +[224] Lin Long, Rui Wang, Ruixuan Xiao, Junbo Zhao, Xiao Ding, Gang Chen, and Haobo Wang. 2024. On LLMs-Driven Synthetic Data Generation, Curation, and Evaluation: A Survey. In Findings of the Association for Computational Linguistics ACL 2024. 11065–11082. +[225] Shayne Longpre, Le Hou, Tu Vu, Albert Webson, Hyung Won Chung, Yi Tay, Denny Zhou, Quoc V Le, Barret Zoph, Jason Wei, et al. 2023. The flan collection: Designing data and methods for effective instruction tuning. In International Conference on Machine Learning. PMLR, 22631–22648. +[226] Shayne Longpre, Robert Mahari, Anthony Chen, Naana Obeng-Marnu, Damien Sileo, William Brannon, Niklas Muennighoff, Nathan Khazam, Jad Kabbara, Kartik Perisetla, et al. 2023. The data provenance initiative: A large scale audit of dataset licensing & attribution in ai. arXiv preprint arXiv:2310.16787 (2023). +[227] Anton Lozhkov, Raymond Li, Loubna Ben Allal, Federico Cassano, Joel Lamy-Poirier, Nouamane Tazi, Ao Tang, Dmytro Pykhtar, Jiawei Liu, Yuxiang Wei, et al. 2024. Starcoder 2 and the stack v2: The next generation. arXiv preprint arXiv:2402.19173 (2024). +[228] Wenhao Lu, Jian Jiao, and Ruofei Zhang. 2020. Twinbert: Distilling knowledge to twin-structured compressed bert models for large-scale retrieval. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management. 2645–2652. +[229] Zhenyan Lu, Xiang Li, Dongqi Cai, Rongjie Yi, Fangming Liu, Xiwen Zhang, Nicholas D Lane, and Mengwei Xu. 2024. Small language models: Survey, measurements, and insights. arXiv preprint arXiv:2409.15790 (2024). +[230] Renqian Luo, Liai Sun, Yingce Xia, Tao Qin, Sheng Zhang, Hoifung Poon, and Tie-Yan Liu. 2022. BioGPT: generative pre-trained transformer for biomedical text generation and mining. Briefings in bioinformatics 23, 6 (2022), bbac409. +[231] Shuming Ma, Hongyu Wang, Lingxiao Ma, Lei Wang, Wenhui Wang, Shaohan Huang, Li Dong, Ruiping Wang, Jilong Xue, and Furu Wei. 2024. The era of 1-bit llms: All large language models are in 1.58 bits. arXiv preprint arXiv:2402.17764 (2024). +[232] Xinyin Ma, Gongfan Fang, and Xinchao Wang. 2023. Llm-pruner: On the structural pruning of large language models. Advances in neural information processing systems 36 (2023), 21702–21720. +[233] Xinbei Ma, Yeyun Gong, Pengcheng He, Hai Zhao, and Nan Duan. 2023. Query Rewriting in Retrieval-Augmented Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. 5303–5315. +[234] Yubo Ma, Yixin Cao, YongChing Hong, and Aixin Sun. 2023. Large language model is not a good few-shot information extractor, but a good reranker for hard samples! arXiv preprint arXiv:2303.08559 (2023). +[235] Yuhan Ma, Chenyou Fan, and Haiqi Jiang. 2023. Sci-cot: Leveraging large language models for enhanced knowledge distillation in small models for scientific qa. In 2023 9th International Conference on Computer and Communications (ICCC). IEEE, 2394–2398. +[236] YINGWEI MA, Yue Liu, Yue Yu, Yuanliang Zhang, Yu Jiang, Changjian Wang, and Shanshan Li. 2024. At Which Training Stage Does Code Data Help LLMs Reasoning?. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=KIPJKST4gw +[237] Ian Magnusson, Akshita Bhagia, Valentin Hofmann, Luca Soldaini, Ananya Harsh Jha, Oyvind Tafjord, Dustin Schwenk, Evan Pete Walsh, Yanai Elazar, Kyle Lo, et al. 2023. Paloma: A benchmark for evaluating language model fit. arXiv preprint arXiv:2312.10523 (2023). +[238] Dakota Mahan, Ryan Carlow, Louis Castricato, Nathan Cooper, and Christian Laforte. [n. d.]. Stable Beluga models. [https://huggingface.co/ stabilityai/StableBeluga2](https://huggingface.co/stabilityai/StableBeluga2) +[239] Vladimir Malinovskii, Denis Mazur, Ivan Ilin, Denis Kuznedelev, Konstantin Burlachenko, Kai Yi, Dan Alistarh, and Peter Richtarik. 2024. PV-Tuning: Beyond Straight-Through Estimation for Extreme LLM Compression. arXiv preprint arXiv:2405.14852 (2024). +[240] Potsawee Manakul, Adian Liusie, and Mark Gales. 2023. SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, Houda Bouamor, Juan Pino, and Kalika Bali (Eds.). Association for Computational Linguistics, Singapore, 9004–9017. https://doi.org/10.18653/v1/2023.emnlp-main.557 +[241] Sachin Mehta, Mohammad Hossein Sekhavat, Qingqing Cao, Maxwell Horton, Yanzi Jin, Chenfan Sun, Seyed Iman Mirzadeh, Mahyar Najibi, Dmitry Belenko, Peter Zatloukal, et al. 2024. Openelm: An efficient language model family with open training and inference framework. In Workshop on Efficient Systems for Foundation Models II@ ICML2024. +[242] Dheeraj Mekala, Alex Nguyen, and Jingbo Shang. 2024. Smaller language models are capable of selecting instruction-tuning training data for larger language models. arXiv preprint arXiv:2402.10430 (2024). +[243] Xin Men, Mingyu Xu, Qingyu Zhang, Bingning Wang, Hongyu Lin, Yaojie Lu, Xianpei Han, and Weipeng Chen. 2024. Shortgpt: Layers in large language models are more redundant than you expect. arXiv preprint arXiv:2403.03853 (2024). +[244] Sewon Min, Kalpesh Krishna, Xinxi Lyu, Mike Lewis, Wen-tau Yih, Pang Koh, Mohit Iyyer, Luke Zettlemoyer, and Hannaneh Hajishirzi. 2023. FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, Houda Bouamor, Juan Pino, and Kalika Bali (Eds.). Association for Computational Linguistics, Singapore, 12076–12100. https://doi.org/10.18653/v1/2023.emnlp-main.741 +[245] Go Min-su. 2024. Deep Learning Bible - 8. Large Language Models. WikiDocs. https://wikidocs.net/237419 +[246] Eric Mitchell, Rafael Rafailov, Archit Sharma, Chelsea Finn, and Christopher D Manning. 2024. An Emulator for Fine-tuning Large Language Models using Small Language Models. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=Eo7kv0sllr +[247] Arindam Mitra, Luciano Del Corro, Shweti Mahajan, Andres Codas, Clarisse Simoes, Sahaj Agarwal, Xuxi Chen, Anastasia Razdaibiedina, Erik Jones, Kriti Aggarwal, et al. 2023. Orca 2: Teaching small language models how to reason. arXiv preprint arXiv:2311.11045 (2023). +[248] Lingbo Mo, Boshi Wang, Muhao Chen, and Huan Sun. 2024. How Trustworthy are Open-Source LLMs? An Assessment under Malicious Demonstrations Shows their Vulnerabilities. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). 2775–2792. +[249] John Xavier Morris, Wenting Zhao, Justin T Chiu, Vitaly Shmatikov, and Alexander M Rush. 2024. Language Model Inversion. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=t9dWHpGkPj +[250] Maximilian Mozes, Xuanli He, Bennett Kleinberg, and Lewis D Griffin. 2023. Use of llms for illicit purposes: Threats, prevention measures, and vulnerabilities. arXiv preprint arXiv:2308.12833 (2023). +[251] Subhabrata Mukherjee, Arindam Mitra, Ganesh Jawahar, Sahaj Agarwal, Hamid Palangi, and Ahmed Awadallah. 2023. Orca: Progressive learning from complex explanation traces of gpt-4. arXiv preprint arXiv:2306.02707 (2023). +[252] Saurav Muralidharan, Sharath Turuvekere Sreenivas, Raviraj Joshi, Marcin Chochowski, Mostofa Patwary, Mohammad Shoeybi, Bryan Catanzaro, Jan Kautz, and Pavlo Molchanov. 2024. Compact language models via pruning and knowledge distillation. arXiv preprint arXiv:2407.14679 (2024). +[253] Rithesh Murthy, Liangwei Yang, Juntao Tan, Tulika Manoj Awalgaonkar, Yilun Zhou, Shelby Heinecke, Sachin Desai, Jason Wu, Ran Xu, Sarah Tan, Jianguo Zhang, Zhiwei Liu, Shirley Kokane, Zuxin Liu, Ming Zhu, Huan Wang, Caiming Xiong, and Silvio Savarese. 2024. MobileAIBench: Benchmarking LLMs and LMMs for On-Device Use Cases. arXiv:2406.10290 [cs.CL] https://arxiv.org/abs/2406.10290 +[254] Kalyan Nakka, Jimmy Dani, and Nitesh Saxena. 2024. Is On-Device AI Broken and Exploitable? Assessing the Trust and Ethics in Small Language Models. arXiv preprint arXiv:2406.05364 (2024). +[255] Daye Nam, Andrew Macvean, Vincent Hellendoorn, Bogdan Vasilescu, and Brad Myers. 2024. Using an llm to help with code understanding. In Proceedings of the IEEE/ACM 46th International Conference on Software Engineering. 1–13. +[256] Piotr Nawrot, Adrian Łańcucki, Marcin Chochowski, David Tarjan, and Edoardo Ponti. 2024. Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inference. In Forty-first International Conference on Machine Learning. https://openreview.net/forum?id=tDRYrAkOB7 +[257] Thuat Nguyen, Chien Van Nguyen, Viet Dac Lai, Hieu Man, Nghia Trung Ngo, Franck Dernoncourt, Ryan A Rossi, and Thien Huu Nguyen. 2024. CulturaX: A Cleaned, Enormous, and Multilingual Dataset for Large Language Models in 167 Languages. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024). 4226–4237. +[258] Tuan Dung Nguyen, Yuan-Sen Ting, Ioana Ciuca, Charles O’Neill, Ze-Chang Sun, Maja Jabłońska, Sandor Kruk, Ernest Perkowski, Jack Miller, Jason Jason Jingsh Li, et al. 2023. AstroLLaMA: Towards Specialized Foundation Models in Astronomy. In Proceedings of the Second Workshop on Information Extraction from Scientific Publications. 49–55. +[259] Jianmo Ni, Chen Qu, Jing Lu, Zhuyun Dai, Gustavo Hernandez Abrego, Ji Ma, Vincent Zhao, Yi Luan, Keith Hall, Ming-Wei Chang, and Yinfei Yang. 2022. Large Dual Encoders Are Generalizable Retrievers. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 9844–9855. https://doi.org/10.18653/v1/2022.emnlp-main.669 +[260] Rodrigo Nogueira and Kyunghyun Cho. 2019. Passage Re-ranking with BERT. arXiv preprint arXiv:1901.04085 (2019). +[261] A Noorian. 2024. A BERT-based sequential POI recommender system in social media. Computer Standards & Interfaces 87 (2024), 103766. +[262] OpenAI. 2024. GPT-4o mini: advancing cost-efficient intelligence. https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/ Accessed: 2024-7-18. +[263] OpenAI. 2024. Hello GPT-4o. https://openai.com/index/hello-gpt-4o/ Accessed: 2024-5-13. +[264] Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback. Advances in neural information processing systems 35 (2022), 27730–27744. +[265] Shankar Padmanabhan, Yasumasa Onoe, Michael Zhang, Greg Durrett, and Eunsol Choi. 2024. Propagating knowledge updates to lms through distillation. Advances in Neural Information Processing Systems 36 (2024). +[266] Jupinder Parmar, Shrimai Prabhumoye, Joseph Jennings, Mostofa Patwary, Sandeep Subramanian, Dan Su, Chen Zhu, Deepak Narayanan, Aastha Jhunjhunwala, Ayush Dattagupta, et al. 2024. Nemotron-4 15B Technical Report. arXiv preprint arXiv:2402.16819 (2024). +[267] Keiran Paster, Marco Dos Santos, Zhangir Azerbayev, and Jimmy Ba. 2024. OpenWebMath: An Open Dataset of High-Quality Mathematical Web Text. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=jKHmjlpViu +[268] Guilherme Penedo, Hynek Kydlíček, Loubna Ben allal, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, and Thomas Wolf. 2024. The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale. arXiv:2406.17557 [cs.CL] +[269] Guilherme Penedo, Quentin Malartic, Daniel Hesslow, Ruxandra Cojocaru, Alessandro Cappelli, Hamza Alobeidli, Baptiste Pannier, Ebtesam Almazrouei, and Julien Launay. 2023. The RefinedWeb dataset for Falcon LLM: outperforming curated corpora with web data, and web data only. arXiv preprint arXiv:2306.01116 (2023). +[270] Bo Peng, Eric Alcaide, Quentin Anthony, Alon Albalak, Samuel Arcadinho, Stella Biderman, Huanqi Cao, Xin Cheng, Michael Chung, Leon Derczynski, Xingjian Du, Matteo Grella, Kranthi Gv, Xuzheng He, Haowen Hou, Przemyslaw Kazienko, Jan Kocon, Jiaming Kong, Bartłomiej Koptyra, Hayden Lau, Jiaju Lin, Krishna Sri Ipsit Mantri, Ferdinand Mom, Atsushi Saito, Guangyu Song, Xiangru Tang, Johan Wind, Stanisław Woźniak, Zhenyuan Zhang, Qinghua Zhou, Jian Zhu, and Rui-Jie Zhu. 2023. RWKV: Reinventing RNNs for the Transformer Era. In Findings of the Association for Computational Linguistics: EMNLP 2023, Houda Bouamor, Juan Pino, and Kalika Bali (Eds.). Association for Computational Linguistics, Singapore, 14048–14077. https://doi.org/10.18653/v1/2023.findings-emnlp.936 +[271] Baolin Peng, Chunyuan Li, Pengcheng He, Michel Galley, and Jianfeng Gao. 2023. Instruction tuning with gpt-4. arXiv preprint arXiv:2304.03277 (2023). +[272] Zhiyuan Peng, Xuyang Wu, Qifan Wang, and Yi Fang. 2023. Soft prompt tuning for augmenting dense retrieval with large language models. arXiv preprint arXiv:2307.08303 (2023). +[273] Ethan Perez, Sam Ringer, Kamile Lukosiute, Karina Nguyen, Edwin Chen, Scott Heiner, Craig Pettit, Catherine Olsson, Sandipan Kundu, Saurav Kadavath, Andy Jones, Anna Chen, Benjamin Mann, Brian Israel, Bryan Seethor, Cameron McKinnon, Christopher Olah, Da Yan, Daniela Amodei, Dario Amodei, Dawn Drain, Dustin Li, Eli Tran-Johnson, Guro Khundadze, Jackson Kernion, James Landis, Jamie Kerr, Jared Mueller, Jeeyoon Hyun, Joshua Landau, Kamal Ndousse, Landon Goldberg, Liane Lovitt, Martin Lucas, Michael Sellitto, Miranda Zhang, Neerav Kingsland, Nelson Elhage, Nicholas Joseph, Noemi Mercado, Nova DasSarma, Oliver Rausch, Robin Larson, Sam McCandlish, Scott Johnston, Shauna Kravec, Sheer El Showk, Tamera Lanham, Timothy Telleen-Lawton, Tom Brown, Tom Henighan, Tristan Hume, Yuntao Bai, Zac Hatfield-Dodds, Jack Clark, Samuel R. Bowman, Amanda Askell, Roger Grosse, Danny Hernandez, Deep Ganguli, Evan Hubinger, Nicholas Schiefer, and Jared Kaplan. 2023. Discovering Language Model Behaviors with Model-Written Evaluations. In Findings of the Association for Computational Linguistics: ACL 2023. 13387–13434. +[274] Pascal Pfeiffer, Philipp Singer, Yauhen Babakhin, Gabor Fodor, Nischay Dhankhar, and Sri Satish Ambati. 2024. H2O-Danube3 Technical Report. arXiv preprint arXiv:2407.09276 (2024). +[275] Karmvir Singh Phogat, Sai Akhil Puranam, Sridhar Dasaratha, Chetan Harsha, and Shashishekar Ramakrishna. 2024. Fine-tuning Smaller Language Models for Question Answering over Financial Documents. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 10528–10548. https://doi.org/10.18653/v1/2024.findings-emnlp.617 +[276] Reiner Pope, Sholto Douglas, Aakanksha Chowdhery, Jacob Devlin, James Bradbury, Jonathan Heek, Kefan Xiao, Shivani Agrawal, and Jeff Dean. 2023. Efficiently scaling transformer inference. Proceedings of Machine Learning and Systems 5 (2023), 606–624. +[277] Ofir Press, Noah Smith, and Mike Lewis. 2022. Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation. In International Conference on Learning Representations. https://openreview.net/forum?id=R8sQPpGCv0 +[278] Ruiyang Qin, Jun Xia, Zhenge Jia, Meng Jiang, Ahmed Abbasi, Peipei Zhou, Jingtong Hu, and Yiyu Shi. 2023. Enabling on-device large language model personalization with self-supervised data selection and synthesis. arXiv preprint arXiv:2311.12275 (2023). +[279] Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, Yankai Lin, Xin Cong, Xiangru Tang, Bill Qian, et al. [n. d.]. ToolLLM: Facilitating Large Language Models to Master $1 6 0 0 0 +$ Real-world APIs. In The Twelfth International Conference on Learning Representations. +[280] Haohao $\mathrm { Q u } .$ , Liangbo Ning, Rui An, Wenqi Fan, Tyler Derr, Hui Liu, Xin Xu, and Qing Li. 2024. A survey of mamba. arXiv preprint arXiv:2408.01129 (2024). +[281] Haohao Qu, Yifeng Zhang, Liangbo Ning, Wenqi Fan, and Qing Li. 2024. Ssd4rec: a structured state space duality model for efficient sequential recommendation. arXiv preprint arXiv:2409.01192 (2024). +[282] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. 2019. Language models are unsupervised multitask learners. OpenAI blog 1, 8 (2019), 9. +[283] Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. 2024. Direct preference optimization: Your language model is secretly a reward model. Advances in Neural Information Processing Systems 36 (2024). +[284] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of machine learning research 21, 140 (2020), 1–67. +[285] Mohammad Wali Ur Rahman, Murad Mehrab Abrar, Hunter Gibbons Copening, Salim Hariri, Sicong Shao, Pratik Satam, and Soheil Salehi. 2023. Quantized Transformer Language Model Implementations on Edge Devices. arXiv:2310.03971 [cs.CL] https://arxiv.org/abs/2310.03971 +[286] Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, and Yuxiong He. 2020. Zero: Memory optimizations toward training trillion parameter models. In SC20: International Conference for High Performance Computing, Networking, Storage and Analysis. IEEE, 1–16. +[287] Ori Ram, Yoav Levine, Itay Dalmedigos, Dor Muhlgay, Amnon Shashua, Kevin Leyton-Brown, and Yoav Shoham. 2023. In-Context RetrievalAugmented Language Models. Transactions of the Association for Computational Linguistics 11 (2023), 1316–1331. +[288] Krithika Ramesh, Arnav Chavan, Shrey Pandit, and Sunayana Sitaram. 2023. A Comparative Study on the Impact of Model Compression Techniques on Fairness in Language Models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 15762–15782. https://aclanthology.org/2023.acl-long.878 +[289] Al Mamunur Rashid, George Karypis, and John Riedl. 2008. Learning preferences of new users in recommender systems: an information theoretic approach. Acm Sigkdd Explorations Newsletter 10, 2 (2008), 90–100. +[290] Christopher Rawles, Alice Li, Daniel Rodriguez, Oriana Riva, and Timothy Lillicrap. 2024. Androidinthewild: A large-scale dataset for android device control. Advances in Neural Information Processing Systems 36 (2024). +[291] Stephen Robertson, Hugo Zaragoza, et al. 2009. The probabilistic relevance framework: BM25 and beyond. Foundations and Trends® in Information Retrieval 3, 4 (2009), 333–389. +[292] Baptiste Roziere, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Tal Remez, Jérémy Rapin, et al. 2023. Code llama: Open foundation models for code. arXiv preprint arXiv:2308.12950 (2023). +[293] Caitlin Sadowski and Greg Levin. 2007. Simhash: Hash-based similarity detection. +[294] Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2021. Winogrande: An adversarial winograd schema challenge at scale. Commun. ACM 64, 9 (2021), 99–106. +[295] Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. 2024. Toolformer: Language models can teach themselves to use tools. Advances in Neural Information Processing Systems 36 (2024). +[296] Rico Sennrich, Jannis Vamvas, and Alireza Mohammadshahi. 2023. Mitigating Hallucinations and Off-target Machine Translation with SourceContrastive and Language-Contrastive Decoding. arXiv preprint arXiv:2309.07098 (2023). +[297] Zeyang Sha and Yang Zhang. 2024. Prompt stealing attacks against large language models. arXiv preprint arXiv:2402.12959 (2024). +[298] Yu Shang, Yu Li, Fengli Xu, and Yong Li. 2024. Synergy-of-Thoughts: Eliciting Efficient Reasoning in Hybrid Language Models. arXiv preprint arXiv:2402.02563 (2024). +[299] Yuzhang Shang, Zhihang Yuan, Qiang Wu, and Zhen Dong. 2023. PB-LLM: Partially Binarized Large Language Models. arXiv:2310.00034 [cs.LG] https://arxiv.org/abs/2310.00034 +[300] Hang Shao, Bei Liu, and Yanmin Qian. 2024. One-shot sensitivity-aware mixed sparsity pruning for large language models. In ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 11296–11300. +[301] Mrinank Sharma, Meg Tong, Tomasz Korbak, David Duvenaud, Amanda Askell, Samuel R Bowman, Newton Cheng, Esin Durmus, Zac HatfieldDodds, Scott R Johnston, et al. 2023. Towards understanding sycophancy in language models. arXiv preprint arXiv:2310.13548 (2023). +[302] Erfan Shayegani, Md Abdullah Al Mamun, Yu Fu, Pedram Zaree, Yue Dong, and Nael Abu-Ghazaleh. 2023. Survey of vulnerabilities in large language models revealed by adversarial attacks. arXiv preprint arXiv:2310.10844 (2023). +[303] Noam Shazeer. 2019. Fast transformer decoding: One write-head is all you need. arXiv preprint arXiv:1911.02150 (2019). +[304] Noam Shazeer. 2020. Glu variants improve transformer. arXiv preprint arXiv:2002.05202 (2020). +[305] Bowen Shen, Zheng Lin, Yuanxin Liu, Zhengxiao Liu, Lei Wang, and Weiping Wang. 2022. COST-EFF: Collaborative Optimization of Spatial and Temporal Efficiency with Slenderized Multi-exit Language Models. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang (Eds.). Association for Computational Linguistics, Abu Dhabi, United Arab Emirates, 1719–1730. https://doi.org/10.18653/v1/2022.emnlp-main.112 +[306] Bowen Shen, Zheng Lin, Daren Zha, Wei Liu, Jian Luan, Bin Wang, and Weiping Wang. 2024. Pruning Large Language Models to Intra-module Lowrank Architecture with Transitional Activations. In Findings of the Association for Computational Linguistics: ACL 2024, Lun-Wei Ku, Andre Martins, and Vivek Srikumar (Eds.). Association for Computational Linguistics, Bangkok, Thailand, 9781–9793. https://doi.org/10.18653/v1/2024.findings acl.582 +[307] Weizhou Shen, Chenliang Li, Hongzhan Chen, Ming Yan, Xiaojun Quan, Hehong Chen, Ji Zhang, and Fei Huang. 2024. Small LLMs Are Weak Tool Learners: A Multi-LLM Agent. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, Miami, Florida, USA, 16658–16680. https://doi.org/10.18653/v1/2024.emnlp-main.929 +[308] Ying Sheng, Lianmin Zheng, Binhang Yuan, Zhuohan Li, Max Ryabinin, Beidi Chen, Percy Liang, Christopher Ré, Ion Stoica, and Ce Zhang. 2023. Flexgen: High-throughput generative inference of large language models with a single gpu. In International Conference on Machine Learning. PMLR, 31094–31116. +[309] Wentao Shi, Xiangnan He, Yang Zhang, Chongming Gao, Xinyue Li, Jizhi Zhang, Qifan Wang, and Fuli Feng. 2024. Large language models are learnable planners for long-term recommendation. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval. 1893–1903. +[310] Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. 2019. Megatron-lm: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053 (2019). +[311] Parshin Shojaee, Kazem Meidani, Shashank Gupta, Amir Barati Farimani, and Chandan K Reddy. 2024. Llm-sr: Scientific equation discovery via programming with large language models. arXiv preprint arXiv:2404.18400 (2024). +[312] Manli Shu, Weili Nie, De-An Huang, Zhiding Yu, Tom Goldstein, Anima Anandkumar, and Chaowei Xiao. 2022. Test-time prompt tuning for zero-shot generalization in vision-language models. Advances in Neural Information Processing Systems 35 (2022), 14274–14289. +[313] Karan Singhal, Shekoofeh Azizi, Tao Tu, S Sara Mahdavi, Jason Wei, Hyung Won Chung, Nathan Scales, Ajay Tanwani, Heather Cole-Lewis, Stephen Pfohl, et al. 2023. Large language models encode clinical knowledge. Nature 620, 7972 (2023), 172–180. +[314] Daria Soboleva, Faisal Al-Khateeb, Robert Myers, Jacob R Steeves, Joel Hestness, and Nolan Dey. 2023. SlimPajama: A 627B token cleaned and deduplicated version of RedPajama. https://cerebras.ai/blog/slimpajama-a-627b-token-cleaned-and-deduplicated-version-of-redpajama. https://huggingface.co/datasets/cerebras/SlimPajama-627B +[315] Luca Soldaini, Rodney Kinney, Akshita Bhagia, Dustin Schwenk, David Atkinson, Russell Authur, Ben Bogin, Khyathi Chandu, Jennifer Dumas, Yanai Elazar, Valentin Hofmann, Ananya Harsh Jha, Sachin Kumar, Li Lucy, Xinxi Lyu, Nathan Lambert, Ian Magnusson, Jacob Morrison, Niklas Muennighoff, Aakanksha Naik, Crystal Nam, Matthew E. Peters, Abhilasha Ravichander, Kyle Richardson, Zejiang Shen, Emma Strubell, Nishant Subramani, Oyvind Tafjord, Pete Walsh, Luke Zettlemoyer, Noah A. Smith, Hannaneh Hajishirzi, Iz Beltagy, Dirk Groeneveld, Jesse Dodge, and Kyle Lo. 2024. Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Research. arXiv preprint (2024). +[316] Xinying Song, Alex Salcianu, Yang Song, Dave Dopson, and Denny Zhou. 2021. Fast WordPiece Tokenization. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. 2089–2103. +[317] Sofia Eleni Spatharioti, David M Rothschild, Daniel G Goldstein, and Jake M Hofman. 2023. Comparing traditional and llm-based search for consumer choice: A randomized experiment. arXiv preprint arXiv:2307.03744 (2023). +[318] Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. 2024. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing 568 (2024), 127063. +[319] Liangtai Sun, Yang Han, Zihan Zhao, Da Ma, Zhennan Shen, Baocai Chen, Lu Chen, and Kai Yu. 2024. Scieval: A multi-level large language model evaluation benchmark for scientific research. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38. 19053–19061. +[320] Lichao Sun, Yue Huang, Haoran Wang, Siyuan Wu, Qihui Zhang, Chujie Gao, Yixin Huang, Wenhan Lyu, Yixuan Zhang, Xiner Li, et al. 2024. Trustllm: Trustworthiness in large language models. arXiv preprint arXiv:2401.05561 (2024). +[321] Mingjie Sun, Zhuang Liu, Anna Bair, and J Zico Kolter. 2024. A Simple and Effective Pruning Approach for Large Language Models. In Proceedings of the Twelfth International Conference on Learning Representations, ICLR. +[322] Zhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu, Yiming Yang, and Denny Zhou. 2020. Mobilebert: a compact task-agnostic bert for resource-limited devices. arXiv preprint arXiv:2004.02984 (2020). +[323] Swabha Swayamdipta, Roy Schwartz, Nicholas Lourie, Yizhong Wang, Hannaneh Hajishirzi, Noah A Smith, and Yejin Choi. 2020. Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamics. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP). 9275–9293. +[324] Alon Talmor and Jonathan Berant. 2018. The Web as a Knowledge-Base for Answering Complex Questions. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), Marilyn Walker, Heng Ji, and Amanda Stent (Eds.). Association for Computational Linguistics, New Orleans, Louisiana, 641–651. https://doi.org/10.18653/v1/N18-1059 +[325] Jiejun Tan, Zhicheng Dou, Yutao Zhu, Peidong Guo, Kun Fang, and Ji-Rong Wen. 2024. Small Models, Big Insights: Leveraging Slim Proxy Models To Decide When and What to Retrieve for LLMs. arXiv preprint arXiv:2402.12052 (2024). +[326] Qiaoyu Tang, Ziliang Deng, Hongyu Lin, Xianpei Han, Qiao Liang, Boxi Cao, and Le Sun. 2023. Toolalpaca: Generalized tool learning for language models with 3000 simulated cases. arXiv preprint arXiv:2306.05301 (2023). +[327] Xuemei Tang, Jun Wang, and Qi Su. 2024. Small Language Model Is a Good Guide for Large Language Model in Chinese Entity Relation Extraction. arXiv preprint arXiv:2402.14373 (2024). +[328] Yehui Tang, Fangcheng Liu, Yunsheng Ni, Yuchuan Tian, Zheyuan Bai, Yi-Qi Hu, Sichao Liu, Shangling Jui, Kai Han, and Yunhe Wang. 2024. Rethinking optimization and architecture for tiny language models. arXiv preprint arXiv:2402.02791 (2024). +[329] Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. Stanford Alpaca: An Instruction-following LLaMA model. https://github.com/tatsu-lab/stanford_alpaca. +[330] Ross Taylor, Marcin Kardas, Guillem Cucurull, Thomas Scialom, Anthony Hartshorn, Elvis Saravia, Andrew Poulton, Viktor Kerkez, and Robert Stojnic. 2022. Galactica: A large language model for science. arXiv preprint arXiv:2211.09085 (2022). +[331] CodeGemma Team. 2024. Codegemma: Open code models based on gemma. arXiv preprint arXiv:2406.11409 (2024). +[332] Gemma Team, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre, Morgane Rivière, Mihir Sanjay Kale, Juliette Love, et al. 2024. Gemma: Open models based on gemini research and technology. arXiv preprint arXiv:2403.08295 (2024). +[333] Gemma Team, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhupatiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, et al. 2024. Gemma 2: Improving open language models at a practical size. arXiv preprint arXiv:2408.00118 (2024). +[334] TensorOpera Team. 2024. TensorOpera Unveils Fox Foundation Model: A Pioneering Small Language Model (SLM) for Cloud and Edge. https: //blog.tensoropera.ai/tensoropera-unveils-fox-foundation-model-a-pioneering-open-source-slm-leading-the-way-against-tech-giants/ Accessed: 2024-6-13. +[335] Surat Teerapittayanon, Bradley McDanel, and Hsiang-Tsung Kung. 2016. Branchynet: Fast inference via early exiting from deep neural networks. In 2016 23rd international conference on pattern recognition (ICPR). IEEE, 2464–2469. +[336] Omkar Thawakar, Ashmal Vayani, Salman Khan, Hisham Cholakal, Rao M Anwer, Michael Felsberg, Tim Baldwin, Eric P Xing, and Fahad Shahbaz Khan. 2024. Mobillama: Towards accurate and lightweight fully transparent gpt. arXiv preprint arXiv:2402.16840 (2024). +[337] Ye Tian, Baolin Peng, Linfeng Song, Lifeng Jin, Dian Yu, Haitao Mi, and Dong Yu. 2024. Toward Self-Improvement of LLMs via Imagination, Searching, and Criticizing. arXiv preprint arXivko2024distillm:2404.12253 (2024). +[338] Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971 (2023). +[339] Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288 (2023). +[340] Jonathan Tow, Marco Bellagente, Dakota Mahan, and Carlos Riquelme. [n. d.]. StableLM 3B 4E1T. [https://huggingface.co/stabilityai/stablelm-3b4e1t](https://huggingface.co/stabilityai/stablelm-3b-4e1t) +[341] Trieu H Trinh and Quoc V Le. 2018. A simple method for commonsense reasoning. arXiv preprint arXiv:1806.02847 (2018). +[342] Adina Trufinescu. 2024. Discover the New Multi-Lingual High-Quality Phi-3.5 SLMs. https://techcommunity.microsoft.com/t5/ai-azure-ai-servicesblog/discover-the-new-multi-lingual-high-quality-phi-3-5-slms/ba-p/4225280. +[343] Dennis Ulmer, Martin Gubri, Hwaran Lee, Sangdoo Yun, and Seong Joon Oh. 2024. Calibrating Large Language Models Using Their Generations Only. arXiv preprint arXiv:2403.05973 (2024). +[344] Sander Van Der Linden. 2022. Misinformation: susceptibility, spread, and interventions to immunize the public. Nature medicine 28, 3 (2022), 460–467. +[345] Chien Van Nguyen, Xuan Shen, Ryan Aponte, Yu Xia, Samyadeep Basu, Zhengmian Hu, Jian Chen, Mihir Parmar, Sasidhar Kunapuli, Joe Barrow, et al. 2024. A Survey of Small Language Models. arXiv preprint arXiv:2410.20011 (2024). +[346] A Vaswani. 2017. Attention is all you need. Advances in Neural Information Processing Systems (2017). +[347] Olga Veksler. 2023. Test time adaptation with regularized loss for weakly supervised salient object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 7360–7369. +[348] Paul Voigt and Axel Von dem Bussche. 2017. The eu general data protection regulation (gdpr). A Practical Guide, 1st Ed., Cham: Springer International Publishing 10, 3152676 (2017), 10–5555. +[349] Yuxian Wan, Wenlin Zhang, and Zhen Li. 2023. Multi-Task Feature Self-Distillation for Semi-Supervised Machine Translation. In International Conference on Neural Information Processing. Springer, 238–254. +[350] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. 2018. GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP. 353–355. +[351] Boxin Wang, Weixin Chen, Hengzhi Pei, Chulin Xie, Mintong Kang, Chenhui Zhang, Chejian Xu, Zidi Xiong, Ritik Dutta, Rylan Schaeffer, Sang T. Truong, Simran Arora, Mantas Mazeika, Dan Hendrycks, Zinan Lin, Yu Cheng, Sanmi Koyejo, Dawn Song, and Bo Li. 2023. DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Models. In Proceedings of the Annual Conference on Neural Information Processing Systems. +[352] Boxin Wang, Chejian Xu, Shuohang Wang, Zhe Gan, Yu Cheng, Jianfeng Gao, Ahmed Hassan Awadallah, and Bo Li. 2021. Adversarial glue: A multi-task benchmark for robustness evaluation of language models. arXiv preprint arXiv:2111.02840 (2021). +[353] Fali Wang, Runxue Bao, Suhang Wang, Wenchao Yu, Yanchi Liu, Wei Cheng, and Haifeng Chen. 2024. InfuserKI: Enhancing Large Language Models with Knowledge Graphs via Infuser-Guided Knowledge Integration. arXiv preprint arXiv:2402.11441 (2024). +[354] Fali Wang, Zheng Lin, Zhengxiao Liu, Mingyu Zheng, Lei Wang, and Daren Zha. 2021. Macrobert: Maximizing certified region of bert to adversarial word substitutions. In Database Systems for Advanced Applications: 26th International Conference, DASFAA 2021, Taipei, Taiwan, April 11–14, 2021, Proceedings, Part II 26. Springer, 253–261. +[355] Guan Wang, Sijie Cheng, Qiying Yu, and Changling Liu. 2023. OpenLLMs: Less is More for Open-source Models. https://doi.org/10.5281/zenodo.8105775 +[356] Guan Wang, Sijie Cheng, Xianyuan Zhan, Xiangang Li, Sen Song, and Yang Liu. 2024. OpenChat: Advancing Open-source Language Models with Mixed-Quality Data. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=AOJyfhWYHf +[357] Hongyu Wang, Shuming Ma, Li Dong, Shaohan Huang, Huaijie Wang, Lingxiao Ma, Fan Yang, Ruiping Wang, Yi Wu, and Furu Wei. 2023. Bitnet: Scaling 1-bit transformers for large language models. arXiv preprint arXiv:2310.11453 (2023). +[358] Jindong Wang, HU Xixu, Wenxin Hou, Hao Chen, Runkai Zheng, Yidong Wang, Linyi Yang, Wei Ye, Haojun Huang, Xiubo Geng, et al. [n. d.]. On the Robustness of ChatGPT: An Adversarial and Out-of-distribution Perspective. In ICLR 2023 Workshop on Trustworthy and Reliable Large-Scale Machine Learning Models. +[359] Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, and Furu Wei. 2024. Improving Text Embeddings with Large Language Models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 11897–11916. https://doi.org/10.18653/v1/2024.acl-long.642 +[360] Peifeng Wang, Zhengyang Wang, Zheng Li, Yifan Gao, Bing Yin, and Xiang Ren. 2023. SCOTT: Self-Consistent Chain-of-Thought Distillation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 5546–5558. +[361] Wenxiao Wang, Wei Chen, Yicong Luo, Yongliu Long, Zhengkai Lin, Liye Zhang, Binbin Lin, Deng Cai, and Xiaofei He. 2024. Model compression and efficient inference for large language models: A survey. arXiv preprint arXiv:2402.09748 (2024). +[362] Wenhui Wang, Furu Wei, Li Dong, Hangbo Bao, Nan Yang, and Ming Zhou. 2020. MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformers. arXiv:2002.10957 [cs.CL] https://arxiv.org/abs/2002.10957 +[363] Xiaoxuan Wang, Ziniu Hu, Pan Lu, Yanqiao Zhu, Jieyu Zhang, Satyen Subramaniam, Arjun R Loomba, Shichang Zhang, Yizhou Sun, and Wei Wang. 2024. SciBench: Evaluating College-Level Scientific Problem-Solving Abilities of Large Language Models. In Forty-first International Conference on Machine Learning. https://openreview.net/forum?id=bq1JEgioLr +[364] Yuxia Wang, Haonan Li, Xudong Han, Preslav Nakov, and Timothy Baldwin. 2024. Do-Not-Answer: Evaluating Safeguards in LLMs. In Findings of the Association for Computational Linguistics: EACL 2024. Association for Computational Linguistics, 896–911. https://aclanthology.org/2024.findingseacl.61 +[365] Yile Wang, Peng Li, Maosong Sun, and Yang Liu. 2023. Self-Knowledge Guided Retrieval Augmentation for Large Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2023. 10303–10315. +[366] Yubo Wang, Xueguang Ma, and Wenhu Chen. 2023. Augmenting black-box llms with medical textbooks for clinical question answering. arXiv preprint arXiv:2309.02233 (2023). +[367] Yizhong Wang, Swaroop Mishra, Pegah Alipoormolabashi, Yeganeh Kordi, Amirreza Mirzaei, Atharva Naik, Arjun Ashok, Arut Selvan Dhanasekaran, Anjana Arunkumar, David Stap, Eshaan Pathak, Giannis Karamanolakis, Haizhi Lai, Ishan Purohit, Ishani Mondal, Jacob Anderson, Kirby Kuznia, Krima Doshi, Kuntal Kumar Pal, Maitreya Patel, Mehrad Moradshahi, Mihir Parmar, Mirali Purohit, Neeraj Varshney, Phani Rohitha Kaza, Pulkit Verma, Ravsehaj Singh Puri, Rushang Karia, Savan Doshi, Shailaja Keyur Sampat, Siddhartha Mishra, Sujan Reddy A, Sumanta Patro, Tanay Dixit, and Xudong Shen. 2022. Super-NaturalInstructions: Generalization via Declarative Instructions on $1 6 0 0 +$ NLP Tasks. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 5085–5109. https://doi.org/10.18653/v1/2022.emnlp-main.340 +[368] Yuyan Wang, Mohit Sharma, Can Xu, Sriraj Badam, Qian Sun, Lee Richardson, Lisa Chung, Ed H. Chi, and Minmin Chen. 2022. Surrogate for Long-Term User Experience in Recommender Systems. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. Association for Computing Machinery, 4100–4109. https://doi.org/10.1145/3534678.3539073 +[369] Yuling Wang, Changxin Tian, Binbin Hu, Yanhua Yu, Ziqi Liu, Zhiqiang Zhang, Jun Zhou, Liang Pang, and Xiao Wang. 2024. Can Small Language Models be Good Reasoners for Sequential Recommendation?. In Proceedings of the ACM on Web Conference 2024. 3876–3887. +[370] Yuqing Wang and Yun Zhao. 2024. RUPBench: Benchmarking Reasoning Under Perturbations for Robustness Evaluation in Large Language Models. arXiv preprint arXiv:2406.11020 (2024). +[371] Zhepeng Wang, Runxue Bao, Yawen Wu, Jackson Taylor, Cao Xiao, Feng Zheng, Weiwen Jiang, Shangqian Gao, and Yanfu Zhang. 2024. Unlocking Memorization in Large Language Models with Dynamic Soft Prompting. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 9782–9796. https://doi.org/10.18653/v1/2024.emnlp-main.546 +[372] Jason Wei, Maarten Bosma, Vincent Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V Le. 2022. Finetuned Language Models are Zero-Shot Learners. In International Conference on Learning Representations. https://openreview.net/forum?id=gEZrGCozdqR +[373] Yuxiang Wei, Zhe Wang, Jiawei Liu, Yifeng Ding, and Lingming Zhang. 2023. Magicoder: Source code is all you need. arXiv preprint arXiv:2312.02120 (2023). +[374] Johannes Welbl, Amelia Glaese, Jonathan Uesato, Sumanth Dathathri, John Mellor, Lisa Anne Hendricks, Kirsty Anderson, Pushmeet Kohli, Ben Coppin, and Po-Sen Huang. 2021. Challenges in Detoxifying Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2021. Association for Computational Linguistics, 2447–2469. https://doi.org/10.18653/v1/2021.findings-emnlp.210 +[375] Johannes Welbl, Nelson F Liu, and Matt Gardner. 2017. Crowdsourcing Multiple Choice Science Questions. In Proceedings of the 3rd Workshop on Noisy User-generated Text. 94–106. +[376] Hao Wen, Yuanchun Li, Guohong Liu, Shanhui Zhao, Tao Yu, Toby Jia-Jun Li, Shiqi Jiang, Yunhao Liu, Yaqin Zhang, and Yunxin Liu. 2024. AutoDroid: LLM-powered Task Automation in Android. arXiv:2308.15272 [cs.AI] https://arxiv.org/abs/2308.15272 +[377] Alexander Wettig, Aatmik Gupta, Saumya Malik, and Danqi Chen. 2024. QuRating: Selecting High-Quality Data for Training Language Models. In Forty-first International Conference on Machine Learning. https://openreview.net/forum?id=GLGYYqPwjy +[378] Adina Williams, Nikita Nangia, and Samuel Bowman. 2018. A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers). Association for Computational Linguistics, New Orleans, Louisiana, 1112–1122. https://doi.org/10.18653/v1/N18-1101 +[379] Chuhan Wu, Fangzhao Wu, Tao Qi, and Yongfeng Huang. 2021. Empowering news recommendation with pre-trained language models. In Proceedings of the 44th international ACM SIGIR conference on research and development in information retrieval. 1652–1656. +[380] Minghao Wu, Abdul Waheed, Chiyu Zhang, Muhammad Abdul-Mageed, and Alham Fikri Aji. 2024. LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale Instructions. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), Yvette Graham and Matthew Purver (Eds.). Association for Computational Linguistics, St. Julian’s, Malta, 944–964. https://aclanthology.org/2024.eacl-long.57 +[381] Taiqiang Wu, Cheng Hou, Shanshan Lao, Jiayi Li, Ngai Wong, Zhe Zhao, and Yujiu Yang. 2024. Weight-Inherited Distillation for Task-Agnostic BERT Compression. In Findings of the Association for Computational Linguistics: NAACL 2024, Kevin Duh, Helena Gomez, and Steven Bethard (Eds.). Association for Computational Linguistics, Mexico City, Mexico, 13–28. https://doi.org/10.18653/v1/2024.findings-naacl.2 +[382] Xuansheng Wu, Huachi Zhou, Yucheng Shi, Wenlin Yao, Xiao Huang, and Ninghao Liu. 2024. Could Small Language Models Serve as Recommenders? Towards Data-centric Cold-start Recommendation. In Proceedings of the ACM on Web Conference 2024. 3566–3575. +[383] Zhuofeng Wu, He Bai, Aonan Zhang, Jiatao Gu, VG Vydiswaran, Navdeep Jaitly, and Yizhe Zhang. 2024. Divide-or-Conquer? Which Part Should You Distill Your LLM? arXiv preprint arXiv:2402.15000 (2024). +[384] Nuwa Xi, Yuhan Chen, Sendong Zhao, Haochun Wang, Bing Qin, and Ting Liu. 2024. AS-ES Learning: Towards Efficient CoT Learning in Small Models. arXiv preprint arXiv:2403.01969 (2024). +[385] Mengzhou Xia, Tianyu Gao, Zhiyuan Zeng, and Danqi Chen. 2024. Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=09iOdaeOzp +[386] Guangxuan Xiao, Ji Lin, Mickael Seznec, Hao Wu, Julien Demouth, and Song Han. 2023. Smoothquant: Accurate and efficient post-training quantization for large language models. In International Conference on Machine Learning. PMLR, 38087–38099. +[387] Tinghao Xie, Xiangyu Qi, Yi Zeng, Yangsibo Huang, Udari Madhushani Sehwag, Kaixuan Huang, Luxi He, Boyi Wei, Dacheng Li, Ying Sheng, et al. 2024. Sorry-bench: Systematically evaluating large language model safety refusal behaviors. arXiv preprint arXiv:2406.14598 (2024). +[388] Tong Xie, Yuwei Wan, Wei Huang, Zhenyu Yin, Yixuan Liu, Shaozhou Wang, Qingyuan Linghu, Chunyu Kit, Clara Grazian, Wenjie Zhang, et al. 2023. Darwin series: Domain specific large language models for natural science. arXiv preprint arXiv:2308.13565 (2023). +[389] Weikai Xie, Li Zhang, Shihe Wang, Rongjie Yi, and Mengwei Xu. 2024. DroidCall: A Dataset for LLM-powered Android Intent Invocation. arXiv preprint arXiv:2412.00402 (2024). +[390] Xuan Xie, Jiayang Song, Zhehua Zhou, Yuheng Huang, Da Song, and Lei Ma. 2024. Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forward. arXiv preprint arXiv:2404.08517 (2024). +[391] Ji Xin, Raphael Tang, Yaoliang Yu, and Jimmy Lin. 2021. BERxiT: Early Exiting for BERT with Better Fine-Tuning and Extension to Regression. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, Paola Merlo, Jorg Tiedemann, and Reut Tsarfaty (Eds.). Association for Computational Linguistics, Online, 91–104. https://doi.org/10.18653/v1/2021.eacl-main.8 +[392] Can Xu, Qingfeng Sun, Kai Zheng, Xiubo Geng, Pu Zhao, Jiazhan Feng, Chongyang Tao, and Daxin Jiang. 2023. Wizardlm: Empowering large language models to follow complex instructions. arXiv preprint arXiv:2304.12244 (2023). +[393] Canwen Xu, Yichong Xu, Shuohang Wang, Yang Liu, Chenguang Zhu, and Julian McAuley. 2023. Small models are valuable plug-ins for large language models. arXiv preprint arXiv:2305.08848 (2023). +[394] Daliang Xu, Wangsong Yin, Xin Jin, Ying Zhang, Shiyun Wei, Mengwei Xu, and Xuanzhe Liu. 2023. LLMCad: Fast and Scalable On-device Large Language Model Inference. arXiv:2309.04255 [cs.NI] https://arxiv.org/abs/2309.04255 +[395] Daliang Xu, Hao Zhang, Liming Yang, Ruiqi Liu, Gang Huang, Mengwei Xu, and Xuanzhe Liu. 2024. Empowering 1000 tokens/second on-device llm prefilling with mllm-npu. arXiv preprint arXiv:2407.05858 (2024). +[396] Jiaming Xu, Peng Wang, Guanhua Tian, Bo Xu, Jun Zhao, Fangyuan Wang, and Hongwei Hao. 2015. Short Text Clustering via Convolutional Neural Networks. In Proceedings of the 1st Workshop on Vector Space Modeling for Natural Language Processing, Phil Blunsom, Shay Cohen, Paramveer Dhillon, and Percy Liang (Eds.). Association for Computational Linguistics, Denver, Colorado, 62–69. https://doi.org/10.3115/v1/W15-1509 +[397] Minrui Xu, Niyato Dusit, Jiawen Kang, Zehui Xiong, Shiwen Mao, Zhu Han, Dong In Kim, and Khaled B Letaief. 2024. When large language model agents meet 6G networks: Perception, grounding, and alignment. arXiv preprint arXiv:2401.07764 (2024). +[398] Mengwei Xu, Wangsong Yin, Dongqi Cai, Rongjie Yi, Daliang Xu, Qipeng Wang, Bingyang Wu, Yihao Zhao, Chen Yang, Shihe Wang, et al. 2024. A survey of resource-efficient llm and multimodal foundation models. arXiv preprint arXiv:2401.08092 (2024). +[399] Weijia Xu, Sweta Agrawal, Eleftheria Briakou, Marianna Martindale, and Marine Carpuat. 2023. Understanding and Detecting Hallucinations in Neural Machine Translation via Model Introspection. Transactions of the Association for Computational Linguistics 11 (2023), 546–564. +[400] Yuzhuang Xu, Xu Han, Zonghan Yang, Shuo Wang, Qingfu Zhu, Zhiyuan Liu, Weidong Liu, and Wanxiang Che. 2024. OneBit: Towards Extremely Low-bit Large Language Models. arXiv preprint arXiv:2402.11295 (2024). +[401] Shi-Qi Yan, Jia-Chen Gu, Yun Zhu, and Zhen-Hua Ling. 2024. Corrective retrieval augmented generation. arXiv preprint arXiv:2401.15884 (2024). +[402] An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, et al. 2024. Qwen2 technical report. arXiv preprint arXiv:2407.10671 (2024). +[403] Chuanpeng Yang, Wang Lu, Yao Zhu, Yidong Wang, Qian Chen, Chenlong Gao, Bingjie Yan, and Yiqiang Chen. 2024. Survey on Knowledge Distillation for Large Language Models: Methods, Evaluation, and Application. arXiv preprint arXiv:2407.01885 (2024). +[404] Cheng Yang, Yang Sui, Jinqi Xiao, Lingyi Huang, Yu Gong, Yuanlin Duan, Wenqi Jia, Miao Yin, Yu Cheng, and Bo Yuan. 2024. MoE- $\mathrm { I } ^ { 2 }$ : Compressing Mixture of Experts Models through Inter-Expert Pruning and Intra-Expert Low-Rank Decomposition. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 10456–10466. https://doi.org/10.18653/v1/2024.findings-emnlp.612 +[405] Kevin Yang, Dan Klein, Asli Celikyilmaz, Nanyun Peng, and Yuandong Tian. 2024. RLCD: Reinforcement Learning from Contrastive Distillation for LM Alignment. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=v3XXtxWKi6 +[406] Kailai Yang, Tianlin Zhang, Ziyan Kuang, Qianqian Xie, Jimin Huang, and Sophia Ananiadou. 2024. MentaLLaMA: interpretable mental health analysis on social media with large language models. In Proceedings of the ACM on Web Conference 2024. 4489–4500. +[407] Linyi Yang, Shuibai Zhang, Libo Qin, Yafu Li, Yidong Wang, Hanmeng Liu, Jindong Wang, Xing Xie, and Yue Zhang. 2023. GLUE-X: Evaluating Natural Language Understanding Models from an Out-of-Distribution Generalization Perspective. In Findings of the Association for Computational Linguistics: ACL 2023. Association for Computational Linguistics, Toronto, Canada, 12731–12750. https://doi.org/10.18653/v1/2023.findings-acl.806 +[408] Linyi Yang, Shuibai Zhang, Zhuohao Yu, Guangsheng Bao, Yidong Wang, Jindong Wang, Ruochen Xu, Wei Ye, Xing Xie, Weizhu Chen, and Yue Zhang. 2024. Supervised Knowledge Makes Large Language Models Better In-context Learners. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=bAMPOUF227 +[409] Runming Yang, Taiqiang Wu, Jiahao Wang, Pengfei Hu, Ngai Wong, and Yujiu Yang. 2024. LLM-Neo: Parameter Efficient Knowledge Distillation for Large Language Models. arXiv preprint arXiv:2411.06839 (2024). +[410] Yifei Yang, Zouying Cao, and Hai Zhao. 2024. Laco: Large language model pruning via layer collapse. arXiv preprint arXiv:2402.11187 (2024). +[411] Yu Yang, Siddhartha Mishra, Jeffrey N Chiang, and Baharan Mirzasoleiman. 2024. SmallToLarge (S2L): Scalable Data Selection for Fine-tuning Large Language Models by Summarizing Training Trajectories of Small Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=K9IGlMQpif +[412] Yizhe Yang, Huashan Sun, Jiawei Li, Runheng Liu, Yinghao Li, Yuhang Liu, Heyan Huang, and Yang Gao. 2023. Mindllm: Pre-training lightweight large language model from scratch, evaluations and domain applications. arXiv preprint arXiv:2310.15777 (2023). +[413] Zhou Yang, Zhaochun Ren, Wang Yufeng, Shizhong Peng, Haizhou Sun, Xiaofei Zhu, and Xiangwen Liao. 2024. Enhancing Empathetic Response Generation by Augmenting LLMs with Small-scale Empathetic Models. arXiv preprint arXiv:2402.11801 (2024). +[414] Yunzhi Yao, Shaohan Huang, Wenhui Wang, Li Dong, and Furu Wei. 2021. Adapt-and-distill: Developing small, fast and effective pretrained language models for domains. arXiv preprint arXiv:2106.13474 (2021), 460–470. +[415] Mert Yazan, Suzan Verberne, and Frederik Situmeang. 2024. The Impact of Quantization on Retrieval-Augmented Generation: An Analysis of Small LLMs. arXiv preprint arXiv:2406.10251 (2024). +[416] Rongjie Yi, Liwei Guo, Shiyun Wei, Ao Zhou, Shangguang Wang, and Mengwei Xu. 2023. EdgeMoE: Fast On-Device Inference of MoE-based Large Language Models. arXiv:2308.14352 [cs.LG] https://arxiv.org/abs/2308.14352 +[417] Rongjie Yi, Xiang Li, Weikai Xie, Zhenyan Lu, Chenghua Wang, Ao Zhou, Shangguang Wang, Xiwen Zhang, and Mengwei Xu. 2024. PhoneLM: an Efficient and Capable Small Language Model Family through Principled Pre-training. arXiv preprint arXiv:2411.05046 (2024). +[418] Wen-tau Yih, Matthew Richardson, Chris Meek, Ming-Wei Chang, and Jina Suh. 2016. The Value of Semantic Parse Labeling for Knowledge Base Question Answering. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), Katrin Erk and Noah A. Smith (Eds.). Association for Computational Linguistics, Berlin, Germany, 201–206. https://doi.org/10.18653/v1/P16-2033 +[419] Wangsong Yin, Mengwei Xu, Yuanchun Li, and Xuanzhe Liu. 2024. LLM as a System Service on Mobile Devices. arXiv:2403.11805 [cs.OS] https://arxiv.org/abs/2403.11805 +[420] Longhui Yu, Weisen Jiang, Han Shi, Jincheng YU, Zhengying Liu, Yu Zhang, James Kwok, Zhenguo Li, Adrian Weller, and Weiyang Liu. 2024. MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=N8N0hgNDRt +[421] Yue Yu, Wei Ping, Zihan Liu, Boxin Wang, Jiaxuan You, Chao Zhang, Mohammad Shoeybi, and Bryan Catanzaro. 2024. Rankrag: Unifying context ranking with retrieval-augmented generation in llms. arXiv preprint arXiv:2407.02485 (2024). +[422] Zhongzhi Yu, Zheng Wang, Yuhan Li, Haoran You, Ruijie Gao, Xiaoya Zhou, Sreenidhi Reedy Bommu, Yang Katie Zhao, and Yingyan Celine Lin. 2024. EDGE-LLM: Enabling Efficient Large Language Model Adaptation on Edge Devices via Layerwise Unified Compression and Adaptive Layer Tuning and Voting. arXiv preprint arXiv:2406.15758 (2024). +[423] Jinliang Yuan, Chen Yang, Dongqi Cai, Shihe Wang, Xin Yuan, Zeling Zhang, Xiang Li, Dingge Zhang, Hanzi Mei, Xianqing Jia, et al. 2024. Mobile Foundation Model as Firmware. In Proceedings of the 30th Annual International Conference on Mobile Computing and Networking. 279–295. +[424] Sha Yuan, Hanyu Zhao, Zhengxiao Du, Ming Ding, Xiao Liu, Yukuo Cen, Xu Zou, Zhilin Yang, and Jie Tang. 2021. Wudaocorpora: A super large-scale chinese corpora for pre-training language models. AI Open 2 (2021), 65–68. +[425] Xiaohan Yuan, Jinfeng Li, Dongxia Wang, Yuefeng Chen, Xiaofeng Mao, Longtao Huang, Hui Xue, Wenhai Wang, Kui Ren, and Jingyi Wang. 2024. S-Eval: Automatic and Adaptive Test Generation for Benchmarking Safety Evaluation of Large Language Models. arXiv preprint arXiv:2405.14191 (2024). +[426] Youliang Yuan, Wenxiang Jiao, Wenxuan Wang, Jen tse Huang, Pinjia He, Shuming Shi, and Zhaopeng Tu. 2024. GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id= MbfAK4s61A +[427] Shengbin Yue, Wei Chen, Siyuan Wang, Bingxuan Li, Chenchen Shen, Shujun Liu, Yuxuan Zhou, Yao Xiao, Song Yun, Wei Lin, et al. 2023. Disc-lawllm: Fine-tuning large language models for intelligent legal services. arXiv preprint arXiv:2309.11325 (2023). +[428] Xiang Yue, Xingwei Qu, Ge Zhang, Yao Fu, Wenhao Huang, Huan Sun, Yu Su, and Wenhu Chen. [n. d.]. Mammoth: Building math generalist models through hybrid instruction tuning, 2023. URL https://arxiv. org/abs/2309.05653 ([n. d.]). +[429] Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. 2019. HellaSwag: Can a Machine Really Finish Your Sentence?. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics. 4791–4800. +[430] Rowan Zellers, Ari Holtzman, Hannah Rashkin, Yonatan Bisk, Ali Farhadi, Franziska Roesner, and Yejin Choi. 2019. Defending against neural fake news. Advances in neural information processing systems 32 (2019). +[431] Biao Zhang and Rico Sennrich. 2019. Root mean square layer normalization. Advances in Neural Information Processing Systems 32 (2019). +[432] Cheng Zhang, Jianyi Cheng, George A Constantinides, and Yiren Zhao. 2024. LQER: Low-Rank Quantization Error Reconstruction for LLMs. arXiv preprint arXiv:2402.02446 (2024). +[433] Collin Zhang, John X Morris, and Vitaly Shmatikov. 2024. Extracting Prompts by Inverting LLM Outputs. arXiv preprint arXiv:2405.15012 (2024). +[434] Chen Zhang, Dawei Song, Zheyu Ye, and Yan Gao. 2023. Towards the law of capacity gap in distilling language models. arXiv preprint arXiv:2311.07052 (2023). +[435] Dan Zhang, Ziniu Hu, Sining Zhoubian, Zhengxiao Du, Kaiyu Yang, Zihan Wang, Yisong Yue, Yuxiao Dong, and Jie Tang. 2024. Sciglm: Training scientific language models with self-reflective instruction annotation and tuning. arXiv preprint arXiv:2401.07950 (2024). +[436] Di Zhang, Wei Liu, Qian Tan, Jingdan Chen, Hang Yan, Yuliang Yan, Jiatong Li, Weiran Huang, Xiangyu Yue, Dongzhan Zhou, et al. 2024. Chemllm: A chemical large language model. arXiv preprint arXiv:2402.06852 (2024). +[437] Kaiyan Zhang, Jianyu Wang, Ermo Hua, Biqing Qi, Ning Ding, and Bowen Zhou. 2024. Cogenesis: A framework collaborating large and small language models for secure context-aware instruction following. arXiv preprint arXiv:2403.03129 (2024). +[438] Mingyang Zhang, Hao Chen, Chunhua Shen, Zhen Yang, Linlin Ou, Xinyi Yu, and Bohan Zhuang. 2023. Loraprune: Pruning meets low-rank parameter-efficient fine-tuning. arXiv preprint arXiv:2305.18403 (2023). +[439] Peiyuan Zhang, Guangtao Zeng, Tianduo Wang, and Wei Lu. 2024. TinyLlama: An Open-Source Small Language Model. arXiv:2401.02385 [cs.CL] https://arxiv.org/abs/2401.02385 +[440] Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. 2022. Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068 (2022). +[441] Xinran Zhang, Xin Yuan, Yunwei Li, and Yanru Zhang. 2019. Cold-Start representation learning: A recommendation approach with bert4Movie and movie2Vec. In Proceedings of the 27th ACM International Conference on Multimedia. 2612–2616. +[442] Yingtao Zhang, Haoli Bai, Haokun Lin, Jialin Zhao, Lu Hou, and Carlo Vittorio Cannistraci. 2024. Plug-and-play: An efficient post-training pruning method for large language models. In The Twelfth International Conference on Learning Representations. +[443] Yiming Zhang, Nicholas Carlini, and Daphne Ippolito. 2024. Effective Prompt Extraction from Language Models. arXiv:2307.06865 [cs.CL] https://arxiv.org/abs/2307.06865 +[444] Zhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen, Lianmin Zheng, Ruisi Cai, Zhao Song, Yuandong Tian, Christopher Ré, Clark Barrett, et al. 2024. H2o: Heavy-hitter oracle for efficient generative inference of large language models. Advances in Neural Information Processing Systems 36 (2024). +[445] Zhiwei Zhang, Fali Wang, Xiaomin Li, Zongyu Wu, Xianfeng Tang, Hui Liu, Qi He, Wenpeng Yin, and Suhang Wang. 2024. Does your LLM truly unlearn? An embarrassingly simple approach to recover unlearned knowledge. arXiv preprint arXiv:2410.16454 (2024). +[446] Bowen Zhao, Hannaneh Hajishirzi, and Qingqing Cao. 2024. APT: Adaptive Pruning and Tuning Pretrained Language Models for Efficient Training and Inference. In Forty-first International Conference on Machine Learning. +[447] Junchen Zhao, Yurun Song, Simeng Liu, Ian G. Harris, and Sangeetha Abdu Jyothi. 2023. LinguaLinked: A Distributed Large Language Model Inference System for Mobile Devices. arXiv:2312.00388 [cs.LG] https://arxiv.org/abs/2312.00388 +[448] Juntao Zhao, Borui Wan, Yanghua Peng, Haibin Lin, and Chuan Wu. 2024. LLM-PQ: Serving LLM on Heterogeneous Clusters with Phase-Aware Partition and Adaptive Quantization. arXiv preprint arXiv:2403.01136 (2024). +[449] Kun Zhao, Bohao Yang, Chen Tang, Chenghua Lin, and Liang Zhan. 2024. SLIDE: A Framework Integrating Small and Large Language Models for Open-Domain Dialogues Evaluation. arXiv preprint arXiv:2405.15924 (2024). +[450] Theodore Zhao, Mu Wei, J Samuel Preston, and Hoifung Poon. 2023. Automatic calibration and error correction for large language models via pareto optimal self-supervision. arXiv preprint arXiv:2306.16564 (2023). +[451] Youpeng Zhao, Ming Lin, Huadong Tang, Qiang Wu, and Jun Wang. 2024. Merino: Entropy-driven Design for Generative Language Models on IoT Devices. arXiv:2403.07921 [cs.LG] https://arxiv.org/abs/2403.07921 +[452] Zhengyun Zhao, Qiao Jin, Fangyuan Chen, Tuorui Peng, and Sheng Yu. 2022. Pmc-patients: A large-scale dataset of patient summaries and relations for benchmarking retrieval-based clinical decision support systems. arXiv preprint arXiv:2202.13876 (2022). +[453] Zhanhui Zhou, Zhixuan Liu, Jie Liu, Zhichen Dong, Chao Yang, and Yu Qiao. 2024. Weak-to-Strong Search: Align Large Language Models via Searching over Small Language Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/ forum?id=dOJ6CqWDf1 +[454] Fengbin Zhu, Wenqiang Lei, Youcheng Huang, Chao Wang, Shuo Zhang, Jiancheng Lv, Fuli Feng, and Tat-Seng Chua. 2021. TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Finance. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). 3277–3287. +[455] Jiachen Zhu, Jianghao Lin, Xinyi Dai, Bo Chen, Rong Shan, Jieming Zhu, Ruiming Tang, Yong Yu, and Weinan Zhang. 2024. Lifelong Personalized Low-Rank Adaptation of Large Language Models for Recommendation. arXiv preprint arXiv:2408.03533 (2024). +[456] Kaijie Zhu, Jindong Wang, Jiaheng Zhou, Zichen Wang, Hao Chen, Yidong Wang, Linyi Yang, Wei Ye, Yue Zhang, Neil Zhenqiang Gong, et al. 2023. Promptbench: Towards evaluating the robustness of large language models on adversarial prompts. arXiv preprint arXiv:2306.04528 (2023). +[457] Xunyu Zhu, Jian Li, Yong Liu, Can Ma, and Weiping Wang. 2023. A survey on model compression for large language models. arXiv preprint arXiv:2308.07633 (2023). +[458] Yun Zhu, Yinxiao Liu, Felix Stahlberg, Shankar Kumar, Yu hui Chen, Liangchen Luo, Lei Shu, Renjie Liu, Jindong Chen, and Lei Meng. 2023. Towards an On-device Agent for Text Rewriting. arXiv:2308.11807 [cs.CL] https://arxiv.org/abs/2308.11807 +[459] Yuanyuan Zhuang and Jaekyeong Kim. 2021. A bert-based multi-criteria recommender system for hotel promotion management. Sustainability 13, 14 (2021), 8039. +[460] Terry Yue Zhuo, Yujin Huang, Chunyang Chen, and Zhenchang Xing. 2023. Red teaming chatgpt via jailbreaking: Bias, robustness, reliability and toxicity. arXiv preprint arXiv:2301.12867 (2023). +[461] Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J Zico Kolter, and Matt Fredrikson. 2023. Universal and transferable adversarial attacks on aligned language models. arXiv preprint arXiv:2307.15043 (2023). +[462] Lixin Zou, Weixue Lu, Yiding Liu, Hengyi Cai, Xiaokai Chu, Dehong Ma, Daiting Shi, Yu Sun, Zhicong Cheng, Simiu Gu, et al. 2022. Pre-trained language model-based retrieval and ranking for web search. ACM Transactions on the Web 17, 1 (2022), 1–36. +[463] Jingwei Zuo, Maksim Velikanov, Dhia Eddine Rhaiem, Ilyas Chahed, Younes Belkada, Guillaume Kunsch, and Hakim Hacid. 2024. Falcon mamba: The first competitive attention-free 7b language model. arXiv preprint arXiv:2410.05355 (2024). \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/Small Language Models in the Era of Large_content_list.json b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/Small Language Models in the Era of Large_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..45f5017c1843274443be28aec5405c47006957a4 --- /dev/null +++ b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/Small Language Models in the Era of Large_content_list.json @@ -0,0 +1,2054 @@ +[ + { + "type": "text", + "text": "A Comprehensive Survey of Small Language Models in the Era of Large Language Models: Techniques, Enhancements, Applications, Collaboration with LLMs, and Trustworthiness ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "FALI WANG, ZHIWEI ZHANG, XIANREN ZHANG, and ZONGYU WU, The Pennsylvania State ", + "page_idx": 0 + }, + { + "type": "text", + "text": "University, USA ", + "page_idx": 0 + }, + { + "type": "text", + "text": "TZUHAO MO, University of Pennsylvania, USA \nQIUHAO LU, WANJING WANG, and RUI LI, UTHealth Houston, USA \nJUNJIE XU, The Pennsylvania State University, USA \nXIANFENG TANG and QI HE, Amazon, USA \nYAO MA, Rensselaer Polytechnic Institute, USA \nMING HUANG, UTHealth Houston, USA \nSUHANG WANG∗, The Pennsylvania State University, USA ", + "page_idx": 0 + }, + { + "type": "text", + "text": "Large language models (LLMs) have demonstrated emergent abilities in text generation, question answering, and reasoning, facilitating various tasks and domains. Despite their proficiency in various tasks, LLMs like PaLM 540B and Llama-3.1 405B face limitations due to large parameter sizes and computational demands, often requiring cloud API use which raises privacy concerns, limits real-time applications on edge devices, and increases fine-tuning costs. Additionally, LLMs often underperform in specialized domains such as healthcare and law due to insufficient domain-specific knowledge, necessitating specialized models. Therefore, Small Language Models (SLMs) are increasingly favored for their low inference latency, cost-effectiveness, efficient development, and easy customization and adaptability. These models are particularly well-suited for resource-limited environments and domain knowledge acquisition, addressing LLMs’ challenges and proving ideal for applications that require localized data handling for privacy, minimal inference latency for efficiency, and domain knowledge acquisition through lightweight fine-tuning. The rising demand for SLMs has spurred extensive research and development. However, a comprehensive survey investigating issues related to the definition, acquisition, application, enhancement, and reliability of SLM remains lacking, prompting us to conduct a detailed survey on these topics. The definition of SLMs varies widely, thus to standardize, we propose defining SLMs by their capability to perform specialized tasks and suitability for resource-constrained settings, setting boundaries based on the minimal size for emergent abilities and the maximum size sustainable under resource constraints. For other aspects, we provide a taxonomy of relevant models/methods and develop general frameworks for each category to enhance and utilize SLMs effectively. We have compiled the collected SLM models and related methods on GitHub: https://github.com/FairyFali/SLMs-Survey. ", + "page_idx": 0 + }, + { + "type": "text", + "text": "CCS Concepts: $\\cdot$ Computing methodologies Natural language generation. ", + "text_level": 1, + "page_idx": 1 + }, + { + "type": "text", + "text": "ACM Reference Format: ", + "text_level": 1, + "page_idx": 1 + }, + { + "type": "text", + "text": "Fali Wang, Zhiwei Zhang, Xianren Zhang, Zongyu Wu, TzuHao Mo, Qiuhao Lu, Wanjing Wang, Rui Li, Junjie Xu, Xianfeng Tang, Qi He, Yao Ma, Ming Huang, and Suhang Wang. 2018. A Comprehensive Survey of Small Language Models in the Era of Large Language Models: Techniques, Enhancements, Applications, Collaboration with LLMs, and Trustworthiness. J. ACM 37, 4, Article 111 (August 2018), 78 pages. https://doi.org/XXXXXXX.XXXXXXX ", + "page_idx": 1 + }, + { + "type": "text", + "text": "1 INTRODUCTION ", + "text_level": 1, + "page_idx": 1 + }, + { + "type": "text", + "text": "The evolution of neural language models (LMs) from BERT’s [83] pre-training and fine-tuning paradigm to T5’s [284] pre-training plus prompting approach, and finally to GPT-3’s [37] pre-training plus in-context learning, has greatly enhanced natural language processing (NLP). These advancements have broadened NLP’s application across various fields, including language understanding [350], programming [255, 331], recommendation systems [369], information retrieval [44, 152, 228, 317], mobile-device control [87], scientific discovery [311, 436], medical question answering [34, 366], and legal question answering [11]. In particular, the recent emergence of proprietary commercial models including ChatGPT, Bard, and Claude, and open-sourced models such as Llama [94, 338, 339] has led to rapid growth in the development of large language models (LLMs). Even though neural networks consistently improve on various tasks with longer training times, larger datasets, and increased model sizes—a phenomenon known as a neural scaling law [166], these models unpredictably exhibit a sudden acquisition of versatile abilities, termed \"emergent ability,\" once they reach a critical scale threshold, thereby supporting the \"larger is better\" trend. This ability is not present in small-scale models. For instance, the latest Llama-3.1 model with 405 billion parameters performs better in dialogue, logical reasoning, and programming compared to the smaller 7B counterpart [94]. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "Despite their prowess in complex tasks, LLMs’ huge parameters and computational needs impose significant limitations, hindering their adoption in many real-world applications. For example, the LLaMa 3.1 model with 405 billion parameters [94], trained on 16K H100 GPUs for 54 days, requires about 202.5 GB of GPU memory using int4 precision and has large inference latency. These issues present several challenges in specific contexts: (1) LLMs are generally hosted in the cloud and used via cloud-based APIs due to the large GPU memory and computational cost. Users need to upload their data to query LLMs, raising data leakage and privacy concerns, especially in high-stake scenarios such as healthcare, finance, and e-commerce; (2) Driven by personal agents, on-device deployment is a critical requirement. Several factors, including cloud costs, latency, and privacy concerns, hinder the on-device processing of cloud-based LLMs, and direct deployment is impractical due to their high parameter and cache requirements, which often exceed the capabilities of devices such as mobile phones; (3) Their large parameter count can cause inference delays from seconds to minutes, unsuitable for real-time applications. For instance, Llama 2 7B takes approximately 84 seconds to process 100 tokens on benchmarks including HellaSwag, TruthfulQA, MMLU, and Arc_C when run on a smartphone equipped with a Snapdragon 685 processor [336]; (4) To boost performance in specialized domains such as healthcare and law, where generic LLMs underperform, LLMs are often fine-tuned. However, this process is computationally expensive due to their large size. (5) Though general-purpose LLMs are powerful, many real-world applications require only specific abilities and domain knowledge, deploying general-purpose LLMs would be a waste of resources and such LLMs often cannot match the performance of models tailored for specific tasks [52, 125, 156, 275, 369]. ", + "page_idx": 1 + }, + { + "type": "text", + "text": "Recently, small language models (SLMs) have shown great potential in alleviating these issues while achieving performance comparable to LLMs for domain-specific problems [1, 26, 116, 143, 223, 274, 333, 336, 402, 439]. Owing to fewer parameters, SLMs excel in efficiency, cost, flexibility, and customization. They provide significant computational Manuscript submitted to ACM ", + "page_idx": 1 + }, + { + "type": "image", + "img_path": "images/77c4c32c1adca3a145486fc4768303feb5c12b34b9a1d2be0efc16a27cd435fa.jpg", + "image_caption": [ + "Fig. 1. Overview of Small Language Models. " + ], + "image_footnote": [], + "page_idx": 2 + }, + { + "type": "image", + "img_path": "images/df663fc0f0f03e94a63f985ffce187344c3d15b4e8e08b798ac33582aed8fd97.jpg", + "image_caption": [ + "Fig. 2. Download Statistics Last Month in Huggingface for LLMs with Various Model Sizes, obtained on October 7, 2024. " + ], + "image_footnote": [], + "page_idx": 3 + }, + { + "type": "text", + "text": "savings in pre-training and inference with reduced memory and storage needs, which is vital for applications requiring efficient resource use. These small models are especially effective in resource-limited settings, performing well on low-power devices such as edge devices. Besides, SLMs improve on-device processing by enhancing privacy, security, response times, and personalization. This supports advanced personal assistants and cloud-independent applications, boosting energy efficiency and reducing carbon emissions. For example, the Llama 3.2 models (1B & 3B) demonstrate that local processing enables immediate execution of prompts and responses [7]. This approach protects privacy by keeping sensitive data such as patient health information (PHI), business data, personal messages, and calendar details local, enhancing confidentiality. It also allows for precise control over which queries are processed on-device versus those requiring cloud-based models. Therefore, small language models are gaining increasing attention as alternatives to LLMs, as indicated in Figure 2, which shows that SLMs are downloaded more frequently than larger models in the Hugging Face community, and Figure 3, which illustrates the growing popularity of SLM releases over time. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "Typically, LMs that exhibit emergent abilities are classified as LLMs. However, the categorization of SLMs remains unclear. Studies vary in their contexts: some define SLMs as models with fewer than one billion parameters [223], while others consider the term “small language model” relative to the larger counterparts [183, 327, 369], with no consensus on a unified definition in the current landscape of LLMs. Research suggests SLMs for mobile devices, typically possessing around 6GB of memory, consist of sub-billion parameter models [223], whereas others classify models with up to 10 billion parameters as small, noting their lack of emergent abilities [105]. Given their use in resource-constrained environments and for specific tasks, we propose a generalized definition: Given specific tasks and resource constraints, we define SLMs as falling within a range where the lower bound is the minimum size at which the model exhibits emergent abilities for a specialized task, and the upper bound is the largest size manageable within limited resource conditions. This definition integrates various perspectives and addresses factors related to mobile computing and capability thresholds. ", + "page_idx": 3 + }, + { + "type": "text", + "text": "Due to the growing demand for SLMs, extensive literature has emerged on various aspects of SLMs. For example, several resource-efficient techniques [398] and training methods optimized for SLMs, such as quantization-aware training [221, 357, 400] and selective architectural component choices [223, 280, 336], aim to enhance performance in specific applications [36, 52, 275, 292, 382]. These methods have led to the development of numerous open-source, generalpurpose, and domain-specific SLMs [3, 26, 34, 333, 402, 435]. Beyond their inherent capabilities, SLMs can enhance LLMs by serving as modules or effective proxies [246, 297, 383, 399, 413, 450]. Furthermore, the complementary advantages of SLMs and LLMs can be leveraged collectively to better complete tasks [79, 204, 234, 307, 437]. Despite the commendable performance of SLMs, it is crucial not to overlook their credibility issues, such as the risks of adversarial attacks, producing hallucinations, and privacy breaches [88, 95, 138, 176, 176, 222, 248, 254, 273, 351, 354, 370, 371, 425, 445]. However, currently, there is no comprehensive survey thoroughly exploring these works on SLMs in the era of LLMs. Therefore, this paper offers the first comprehensive survey that analyzes various aspects of SLMs in the LLM era and their future directions. The overview structure of our paper is shown in Figure 1. To summarize, our major contributions are: ", + "page_idx": 3 + }, + { + "type": "image", + "img_path": "images/fe7a5deacc121dd09cb056dc09b2fd7d8e528d9525f679eca295d180628c994a.jpg", + "image_caption": [ + "Fig. 3. A timeline of existing small language models. " + ], + "image_footnote": [], + "page_idx": 4 + }, + { + "type": "text", + "text": "• In Section 3, we examine various techniques for improving the performance of SLMs, including training from scratch, fine-tuning, knowledge distillation, quantization, and leveraging LLM-enhancing technologies to optimize SLMs. \n• In Section 4, we discuss the tasks that SLMs can enhance and the deployment strategies that enable models to fit within the resource constraints of edge devices while maintaining acceptable inference speed. \n• In Section 5, we collect SLMs with fewer than 7 billion parameters across both general-purpose and domain-specific applications, reviewing common architectural choices, training techniques, and datasets, and providing a comparative summary of performance across different model sizes. Recent SLMs are listed. \n• In Section 6, we explore how SLMs can address key challenges faced by LLMs, such as high inference latency, labor-intensive fine-tuning, susceptibility to knowledge noise, and risks of copyright infringement. \n• In Section 7, we survey two kinds of synergies between LLMs and SLMs: one involves cloud-based LLMs and local SLMs, while the other leverages the unique advantages of both to more effectively solve tasks. \n• In Section 8, we investigate the trustworthiness issues of SLMs, including hallucination and privacy concerns, by providing a taxonomic summary of current evaluation methods. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "Concurrently with our survey, Lu et al. [229] evaluate open-source SLMs, focusing on their architectures, datasets, algorithms, and on-device performance metrics such as inference latency and memory usage. Van Nguyen et al. [345] delve into optimization strategies for SLMs, including model compression, pruning, and quantization. Chen and Varoquaux [49] investigate how SLMs enhance LLMs and vice versa. In contrast, our survey offers a more comprehensive review with the following differences: (1) we present a detailed taxonomy of recent advancements in SLMs in the era of LLMs; (2) we define SLMs based on emergent capabilities and device specifications, which refines previous unclear definitions related to LLMs; (3) we discuss SLM applications, especially in on-device tasks and deployment, topics previously unexplored; (4) we examine domain-specific SLMs previously overlooked; and (5) we additionally consider the synergy between SLMs and LLMs. ", + "page_idx": 4 + }, + { + "type": "text", + "text": "2 FOUNDATIONAL CONCEPTS IN BUILDING LANGUAGE MODELS", + "text_level": 1, + "page_idx": 5 + }, + { + "type": "text", + "text": "This section will introduce foundational concepts and background knowledge for language models, including the concepts of architecture and the training process, as well as methods for obtaining SLMs from LLMs. The advanced training strategy to improve SLM performance will be introduced in Section 3. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "2.1 Architecture of SLMs ", + "text_level": 1, + "page_idx": 5 + }, + { + "type": "text", + "text": "SLMs commonly employ the Transformer architecture [346] (see Figure 4), which utilizes self-attention mechanisms to manage long-range text dependencies, essential for maintaining performance with constrained resources. However, due to the attention mechanism, Transformers have large inference cost. Hence, to alleviate the issue, several subquadratictime architectures such as Mamba [117], Hymba [90], and xLSTM [25] are proposed. Next, we will give details of Transformer due to its popularity and briefly introduce newly emerged models. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "2.1.1 Transformer. The Transformer’s self-attention mechanism [346] allows language models to efficiently capture contextual information across longer sequences, even with limited resources. The Transformer generally adopts an encoder-decoder structure featuring self-attention mechanisms, feedforward networks, positional embeddings, and layer normalization. The Transformer architecture design tailored for SLMs is detailed in Section 5; this section will provide only foundational concepts. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "Self-Attention Mechanism enables the model to evaluate the importance of tokens relative to each other. The self-attention mechanism is written as ", + "page_idx": 5 + }, + { + "type": "equation", + "img_path": "images/3894a8927993b4576a6a54284923fe726c5e26ec8a2798c33b22908330f309b7.jpg", + "text": "$$\n{ \\mathrm { A t t e n t i o n } } ( \\mathbf { Q } , \\mathbf { K } , \\mathbf { V } ) = { \\mathrm { s o f t m a x } } \\left( { \\frac { \\mathbf { Q } \\mathbf { K } ^ { \\top } } { \\sqrt { d _ { k } } } } \\right) \\mathbf { V }\n$$", + "text_format": "latex", + "page_idx": 5 + }, + { + "type": "text", + "text": "where ${ \\bf { Q } } , { \\bf { K } } ,$ and $\\mathbf { V }$ are query, key, and value matrices, scaled by $\\sqrt { d _ { k } }$ for stability where $d _ { k }$ is the dimension of key matrices. The dot product $\\mathbf { Q } \\mathbf { K } ^ { \\top }$ reflects the similarity between the query and key vectors. ", + "page_idx": 5 + }, + { + "type": "image", + "img_path": "images/0ec07b9236260ae50875f629ad20462a0550afc9867c569b52597bc40aa089be.jpg", + "image_caption": [ + "Fig. 4. Transformer architecture [346]. " + ], + "image_footnote": [], + "page_idx": 5 + }, + { + "type": "text", + "text": "Multi-Head Attention (MHA) [346] is the first method that uses multiple heads to capture diverse information. MHA allows the model to attend to different parts of the input sequence using multiple attention heads as ", + "page_idx": 5 + }, + { + "type": "text", + "text": "$\\mathrm { M u l t i H e a d ( Q , K , V ) } = \\mathrm { C o n c a t } ( \\mathrm { h e a d } _ { 1 } , \\mathrm { h e a d } _ { 2 } , \\ldots , \\mathrm { h e a d } _ { h } ) { \\mathbf { W } } ^ { O } , \\mathrm { w i t h ~ h e a d } _ { i } = \\mathrm { A t t e n t i o n } ( \\mathbf { Q } { \\mathbf { W } } _ { i } ^ { Q } , \\mathbf { K } { \\mathbf { W } } _ { i } ^ { K } , \\mathbf { V } { \\mathbf { W } } _ { i } ^ { V } )$ (1) Each head in the Multi-Head Attention mechanism operates independently, allowing the model to capture diverse aspects of the data. The outputs are combined using learned projection matrices $\\mathbf { W } _ { i } ^ { Q } , \\mathbf { W } _ { i } ^ { K }$ , and $\\mathbf { W } _ { i } ^ { V }$ , concatenated, and passed through the output projection matrix $\\mathbf { W } ^ { O }$ . ", + "page_idx": 5 + }, + { + "type": "text", + "text": "Building on this foundation, several modifications have been introduced to further optimize self-attention mechanisms for specific challenges such as memory efficiency and computational speed. To address the KV-cache bottleneck in MHA, Multi-Query Attention (MQA) [303] proposes that all attention heads share the same set of keys and values, which reduces the memory and computational overhead associated with storing and managing multiple key-value pairs. Grouped Query Attention (GQA) [8] serves as a middle ground between MHA and MQA. It introduces subgroups of query heads (fewer than the total number of attention heads), where each subgroup shares a single key and value head. ", + "page_idx": 5 + }, + { + "type": "text", + "text": "Manuscript submitted to ACM ", + "page_idx": 5 + }, + { + "type": "text", + "text": "Unlike MQA and GQA, which reduce the number of key and value heads, Multi-Head Latent Attention (MLA) [211] compresses the keys and values into a joint latent vector. This compression allows for efficient handling of key-value pairs while maintaining high performance, significantly reducing the KV-cache and improving inference efficiency. Flash Attention [73, 74] accelerates the self-attention mechanism by minimizing the memory overhead typical of standard attention calculations. This optimization allows SLMs to process longer sequences more efficiently, enhancing their functionality under strict hardware constraints. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Feedforward Network (FFN) comprises two linear transformations separated by a non-linearity, typically modeled as $\\mathrm { F F N } ( \\mathbf { x } ) \\ = \\ \\sigma ( \\mathbf { x } \\mathbf { W } _ { 1 } + b _ { 1 } ) \\mathbf { W } _ { 2 } + b _ { 2 }$ . where $\\mathbf { W } _ { 1 }$ and $\\mathbf { W } _ { 2 }$ are the weight matrices, and $b _ { 1 }$ and $b _ { 2 }$ are bias terms. $\\sigma$ is the activation function, which introduces non-linearity, allowing models to learn complex patterns. Generally, ReLU is used as the activation function. In addition to ReLU, activation functions such as GeLU and SiLU are also used in SLMs to improve performance. We give the details here: (i) ReLU (Rectified Linear Unit) [5] is defined as $\\sigma ( x ) = \\operatorname* { m a x } ( 0 , x )$ , which is commonly used for its simplicity and effectiveness. (ii) GELU (Gaussian Error Linear Unit) [135] is defined as ${ \\mathrm { G E L U } } ( x ) = x \\cdot \\Phi ( x ) = x \\cdot { \\textstyle { \\frac { 1 } { 2 } } } \\left[ 1 + \\operatorname { e r f } \\left( { \\frac { x } { \\sqrt { 2 } } } \\right) \\right] ,$ , where $\\Phi ( x )$ is the standard Gaussian CDF and erf is the error function. It is smoother than ReLU and widely used in models such as BERT [83] and GPT [282] for better gradient flow control. Since calculating the Gaussian error function for each neuron is computationally expensive and time-consuming, there are approximations using tanh and sigmoid functions, corresponding to $\\mathrm { G E L U } _ { \\mathrm { t a n h } }$ and SiLU: (iii) GELU with tanh is defined as $\\mathrm { G E L U } _ { \\mathrm { t a n h } } ( x ) = 0 . 5 \\cdot x \\cdot \\left( 1 + \\operatorname { t a n h } \\left( \\sqrt { \\frac { 2 } { \\pi } } \\cdot ( x + 0 . 0 4 4 7 1 5 \\cdot x ^ { 3 } ) \\right) \\right)$ This approximation uses the Tanh function to simplify computations. (iv) SiLU (Sigmoid Linear Unit) [97] is calculated as $\\mathrm { S i L U } ( x ) = x \\cdot \\mathrm { s i g m o i d } ( x ) = x \\cdot { \\frac { 1 } { 1 + e ^ { - x } } } .$ . It effectively combines the sigmoid function with its input, enhancing modeling capabilities. (v) SwiGLU (Swish-Gated Linear Units) [304] integrates the Swish activation function with Gated Linear Units, defined as ${ \\mathrm { S w i G L U } } ( x ) = { \\mathrm { S w i s h } } ( x \\cdot W + b ) \\odot ( x \\cdot V + c )$ where $W , V$ are the weight matrix and $b , c$ are the bias terms. The Swish function is expressed as $\\operatorname { S w i s h } ( x ) = x \\cdot \\operatorname { s i g m o i d } ( x )$ . This combination enhances expressiveness and computational efficiency, making it a preferred choice in advanced models such as the Qwen series [402]. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Positional Embeddings in Transformer models [346] are essential for capturing token order, providing context about relative positions within a sequence. Traditional positional embeddings in the Transformer architecture utilize a sinusoidal function, defined as: $\\begin{array} { r } { P E ( p o s , 2 i ) = \\sin \\left( \\frac { p o s } { 1 0 0 0 0 ^ { 2 i / d _ { \\mathrm { m o d e l } } } } \\right) } \\end{array}$ $\\begin{array} { r } { P E ( p o s , 2 i + 1 ) = \\cos \\left( \\frac { p o s } { 1 0 0 0 0 ^ { 2 i / d _ { \\mathrm { m o d e l } } } } \\right) } \\end{array}$ where ?????? represents the position within the sequence, $i$ is the dimension index, and $d _ { \\mathrm { m o d e l } }$ is the dimensionality of the model. To improve the model’s capacity for understanding the relative positions of tokens within a sequence, Rotary Positional Embedding (RoPE) [318] introduces a rotational matrix to the embeddings. RoPE significantly enhances the positional encoding by maintaining the relative distances through rotational transformations, thus optimizing the model’s interpretative ability regarding sequence dynamics. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Layer Normalization [185] stabilizes the training process by normalizing layer outputs, accelerating convergence. Two types of layer normalization are commonly used [185]: (i) Non-Parametric Layer Norm normalizes inputs using the mean and variance calculated across the layer’s dimensions without learnable parameters as $\\textstyle \\operatorname { L N } ( x ) = { \\frac { x - \\mu } { \\sigma } }$ where $\\mu$ is the mean and $\\sigma$ is the standard deviation of the inputs. Its simplicity makes it ideal for SLMs. (ii) Parametric Layer Norm includes learnable parameters $\\gamma$ and $\\beta$ for adaptive scaling and bias, enhancing model flexibility: $\\begin{array} { r } { \\operatorname { P L N } ( x ) = \\gamma \\left( \\frac { x - \\mu } { \\sigma } \\right) + \\beta } \\end{array}$ Additionally, RMS Norm (Root Mean Square Layer Normalization) [431] simplifies the calculation by using the root mean square of inputs, reducing computational demands: $\\begin{array} { r } { \\mathrm { R M S N o r m } ( x ) = \\gamma \\frac { x } { \\sqrt { \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } x _ { i } ^ { 2 } + \\epsilon } } + \\beta } \\end{array}$ where $N$ is the number of inputs, $x _ { i }$ is the $i$ -th input, and $\\epsilon$ is a small constant to prevent division by zero. ", + "page_idx": 6 + }, + { + "type": "text", + "text": "2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data. Due to its focus on the immediate previous hidden state, as opposed to Transformer which requires access to all previous hidden states, Mamba achieves a higher utilization rate of model parameters. This makes it more suitable for SLMs. However, we identify two drawbacks of Mamba: (i) its focus on selectively capturing global information may compromise performance on tasks that require nuanced understanding, such as detailed sentiment analysis or complex entity recognition; and (ii) to balance inference speed, Mamba’s recurrent structure primarily encodes static global information, which limits its effectiveness in handling multi-round tasks within a single query, such as interactive dialogue systems or iterative problem-solving scenarios. ", + "page_idx": 7 + }, + { + "type": "image", + "img_path": "images/c910d53cf633fd17f0283ebbd319032712214d9a42da2f28a15fe0577ca151de.jpg", + "image_caption": [ + "Fig. 5. Mamba 1 architecture [117]. " + ], + "image_footnote": [], + "page_idx": 7 + }, + { + "type": "text", + "text": "", + "page_idx": 7 + }, + { + "type": "text", + "text": "In language modeling, Mamba 1 [117] is pre-trained on the Pile dataset [108] using the training recipe from [37] and ranges from 125M to 1.3B parameters. It outperforms comparable models such as Pythia [31] and RWKV [270] in various tasks; for instance, Mamba-1.4B achieves a $3 2 . 8 \\%$ accuracy on the Arc-Challenge [65] dataset, surpassing Pythia-1.4B’s $2 8 . 5 \\%$ and RWKV-1.5B’s $2 9 . 4 \\%$ . Mamba 2 [75] develops a theoretical framework linking SSMs with attention mechanisms through structured semi-separable matrices, enhancing the selective SSM to achieve $2 { - } 8 \\mathrm { x }$ faster speeds while competing with Transformer models. Training and configuration for Mamba 2 align with Mamba 1. Additionally, Mamba-series models are applied widely across different fields [160, 280, 281, 463]. Other follow-up Mamba-based language models such as Falcon Mamba 7B [463] and Mistral 7B [160] also demonstrate the efficiency of the architecture for NLP tasks. Falcon Mamba 7B scales Mamba’s long-sequence processing capabilities to extensive language data, reducing memory overhead and making it ideal for long-form NLP tasks. Similarly, Mistral 7B incorporates Mamba’s efficient sequence handling ability to improve processing speed and computational efficiency in long-context NLP tasks, showcasing Mamba’s scalability and practicality for large-scale language modeling. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "2.1.3 Hymba. Attention heads in the Transformer facilitate high-resolution recall, while SSM heads in Mamba efficiently summarize context. To balance performance and efficiency for SLMs, Hymba [90] integrates both attention and SSM heads within the same layer, allowing for parallel and complementary processing of inputs, as depicted in Fig", + "page_idx": 7 + }, + { + "type": "image", + "img_path": "images/6cd678b847173b848c1429c04ccfa78a775c56e46fec00eed0142c8567e93bcd.jpg", + "image_caption": [ + "Fig. 6. Hymba [90] architecture. " + ], + "image_footnote": [], + "page_idx": 7 + }, + { + "type": "text", + "text": "ure 6. This hybrid-head approach enables each layer to simultaneously leverage the high-resolution recall of attention heads and the contextual summarization of SSMs, increasing the model’s flexibility and expressiveness in managing diverse information flows and memory access patterns. ", + "page_idx": 7 + }, + { + "type": "text", + "text": "", + "page_idx": 8 + }, + { + "type": "text", + "text": "Hymba has been developed in models of varying sizes—125M, 350M, and 1.5B, trained on a combination of the DCLM-Baseline-1.0 [192], SmolLM-Corpus [27], and a proprietary high-quality dataset, with token counts of 1 trillion, 250 billion, and 50 billion, respectively. The models incorporate the Warmup-Stable-Decay (WSD) learning rate scheduler [143] and the data annealing technique [94] to ensure stable pretraining, conducted on 128 NVIDIA A100 GPUs. The 1.5B base model was post-trained using full finetuning (FFT), followed by direct preference optimization (DPO) [283] to develop the Hymba-1.5B-Instruct model. In commonsense reasoning tasks, the Hymba 1.5B model surpasses Llama3.2-3B [7] by achieving $1 . 3 2 \\%$ higher average accuracy, requiring an $1 1 . 6 7 \\times$ smaller cache size, and delivering a $3 . 4 9 \\times$ increase in processing speed. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "2.1.4 xLSTM. Long Short-Term Memory (LSTM) [137] shares a conceptual similarity with Mamba that achieves success in language modeling through the introduction of time-dependent weights. This similarity raises an intriguing question: how effective would LSTMs be at language modeling if scaled to billions of parameters, incorporating advanced techniques from modern LLMs while addressing known LSTM limitations? Inspired by this question, Beck et al. [25] propose xLSTM architecture, which performs favorably compared to state-of-the-art Transformers and SSMs in empirical evaluations. To address the limitations of LSTM, xLSTM designs exponential gates to enhance effectiveness with long sequences, expand memory cells from scalars to matrices to increase storage capacity, and remove memory mixing to enable parallel processing. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "To test the language modeling capabilities of xLSTM scaled to billions of parameters, it is trained on a large dataset comprising 300 billion tokens from SlimPajama [314] across various model sizes (125M, 350M, 760M, 1.3B). The performance of pre-trained xLSTM is compared against RWKV-4 [270], Llama [153], and Mamba [117] across 571 text domains of the PALOMA benchmark [237] and various downstream tasks. Across all model sizes and the majority of tasks, xLSTM consistently outperforms the others, suggesting that larger xLSTM models could become formidable competitors to existing Large Language Models that utilize Transformer technology. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "2.2 Training SLMs from Scratch ", + "text_level": 1, + "page_idx": 8 + }, + { + "type": "text", + "text": "Training SLMs from scratch entails several critical steps: (i) Pre-training, focused on acquiring general features and knowledge from the corpus; (ii) Fine-tuning, targeted at boosting the model’s abilities and performance for specific tasks; (iii) Decoding strategies, which involve the methods used for iteratively selecting the next token during generation. ", + "page_idx": 8 + }, + { + "type": "text", + "text": "2.2.1 Pre-training. Typically, the pre-training paradigm for language models is divided into encoder-based and decoderbased approaches. Encoder-based models, such as BERT [83], utilize Masked Language Modeling (MLM) tasks where the goal is to predict masked tokens within a sentence. This is achieved by maximizing: ", + "page_idx": 8 + }, + { + "type": "equation", + "img_path": "images/88af859599a62dce2c28c3668d1cdea5e01201f40e87bdbce8df43504141cd84.jpg", + "text": "$$\n\\begin{array} { r } { P ( \\mathrm { m a s k e d t o k e n } \\mid \\mathrm { c o n t e x t } ) = \\mathrm { s o f t m a x } ( \\mathbf { W } \\cdot \\mathbf { h } _ { \\mathrm { m a s k } } + b ) , } \\end{array}\n$$", + "text_format": "latex", + "page_idx": 8 + }, + { + "type": "text", + "text": "where masked token is the original token that has been masked, context represents the other unmasked tokens in the sentence, $\\mathbf { W }$ and $^ { b }$ are trainable parameters of a linear output layer, $\\mathbf { h } _ { \\mathrm { m a s k } }$ is the output from the transformer encoder for the masked position, and softmax is the activation function that converts logits to probabilities over the vocabulary. This process enhances the model’s language encoding capabilities. Decoder-based models, such as GPT [282], employ ", + "page_idx": 8 + }, + { + "type": "text", + "text": "Next Token Prediction (NTP) tasks, aiming to model the distribution of the next token by maximizing: ", + "page_idx": 9 + }, + { + "type": "equation", + "img_path": "images/94d107ba2821c802b7a73aa1983a1886476e568dfa1529db7ab8ea32a3f5338d.jpg", + "text": "$$\n\\begin{array} { r } { P ( \\mathrm { n e x t ~ t o k e n } \\mid \\mathrm { c o n t e x t } ) = \\mathrm { s o f t m a x } ( \\mathbf { W } \\cdot \\mathbf { h } _ { \\mathrm { l a s t } } + b ) , } \\end{array}\n$$", + "text_format": "latex", + "page_idx": 9 + }, + { + "type": "text", + "text": "where next token is the token that the model aims to predict, context represents the sequence of tokens preceding the token to be predicted, and $\\mathbf { h } _ { \\mathrm { l a s t } }$ is the output from the transformer encoder for the last token in the context. Effective data preprocessing, crucial for optimizing the performance of SLMs trained from scratch, involves meticulous data cleaning and strategic tokenization. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "Data Cleaning involves techniques such as filtering, deduplication, and noise reduction, which improve data quality and help the model generalize better. Filtering noisy or irrelevant data, addressing outliers, and handling imbalances in the dataset ensure that the training data is both representative and efficient. Deduplication, in particular, helps prevent overfitting by removing repeated instances, making the model more robust with efficient parameter usage. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "Tokenization plays a vital role in handling diverse vocabularies without increasing model size. Advanced methods such as Byte-Pair Encoding (BPE) [106] and WordPiece [316] break text into subwords [83], allowing the model to manage rare and compound words efficiently. These strategies ensure that SLMs maintain a balance between vocabulary coverage and model compactness, crucial for improving generalization while minimizing computational demands. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "2.2.2 Fine-Tuning. After the initial training, SLMs are fine-tuned on specific tasks using task-specific data and loss functions. Parameter-efficient fine-tuning methods [118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\Delta \\mathbf { W } = \\mathbf { A } \\mathbf { B } ^ { \\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\mathbf { W } _ { \\mathrm { f t } } = \\mathbf { W } + \\alpha \\Delta \\mathbf { W }$ where $\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks. Adapter Modules [140] are small, trainable layers inserted into the pre-trained model. These layers are fine-tuned on task-specific data, allowing the base model to remain fixed while the adapters learn the necessary adjustments. The typical structure of an adapter module includes a down-projection, a non-linearity, and an up-projection: Adapter $\\mathbf { \\Pi } ( \\mathbf { h } ) = \\mathbf { h } + \\mathbf { W } _ { \\mathrm { u p } } \\cdot \\sigma ( \\mathbf { W } _ { \\mathrm { d o w n } } \\cdot \\mathbf { h } + \\mathbf { b } _ { \\mathrm { d o w n } } ) + \\mathbf { b } _ { \\mathrm { u p } }$ where h is the input hidden state, $\\mathbf { W } _ { \\mathrm { d o w n } }$ and $\\mathbf { W } _ { \\mathrm { u p } }$ are the projection matrices, $\\mathbf { b } _ { \\mathrm { d o w n } }$ and ${ \\bf b } _ { \\mathrm { u p } }$ are the bias terms, and $\\sigma$ is a non-linear activation function. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "2.2.3 Decoding Strategies. After pre-training or fine-tuning, employing an effective decoding strategy is crucial for generating output from language models. Decoding, the process of text generation from SLMs, involves iteratively selecting the next word. A fundamental method is the greedy search, which predicts the most likely token at each step. This is formally modeled as: $x _ { i } = \\arg \\operatorname* { m a x } _ { x } P ( x \\mid x _ { < i } )$ , where $x _ { i }$ is the token with the highest probability at the $i$ -th step, conditioned on the preceding context $x _ { < i }$ . Other decoding strategies, such as beam search or top- $\\mathbf { \\nabla } \\cdot \\mathbf { k }$ sampling, are crucial for generating high-quality outputs. Beam search balances exploration and exploitation by considering multiple possible sequences simultaneously, while top- $\\mathbf { \\nabla } _ { \\cdot \\mathrm { k } }$ sampling introduces diversity and creativity in text generation. These strategies collectively ensure that SLMs are efficient and capable of delivering high performance across various natural language processing tasks. ", + "page_idx": 9 + }, + { + "type": "text", + "text": "Manuscript submitted to ACM ", + "page_idx": 9 + }, + { + "type": "text", + "text": "2.3 Obtain SLMs from LLMs ", + "text_level": 1, + "page_idx": 10 + }, + { + "type": "text", + "text": "Obtaining an SLM from an LLM is crucial for deploying in resource-constrained environments. Instead of training from scratch, leveraging an LLM allows for knowledge transfer, enabling SLMs to retain much of the LLM’s linguistic and domain knowledge with reduced training time and data. To obtain SLMs from LLMs, three primary techniques are used: pruning, knowledge distillation, and quantization. Pruning removes less critical parameters, reducing model size while aiming to maintain performance. Knowledge distillation transfers knowledge from a large teacher model to a smaller student model, preserving much of the original model’s understanding. Quantization decreases parameter precision, significantly lowering memory and computation needs with minimal impact on accuracy. These methods balance size reduction, efficiency, and performance retention. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "2.3.1 Pruning. Pruning is a technique used to reduce a model’s size and computational requirements (e.g., LLMs) without significantly sacrificing its performance [126]. This process involves identifying and removing less important or redundant parameters and components from the model. The primary goal of LLM pruning is to make the model more efficient, faster, and suitable for deployment in resource-constrained environments. Typically, pruning can be categorized into two main types: unstructured pruning and structured pruning. An illustration of unstructured pruning and structured pruning is shown in Figure 7. ", + "page_idx": 10 + }, + { + "type": "image", + "img_path": "images/bc5d3036a35f80350c1a852c4442462e99358340f2f1f023976984b679b5e8f2.jpg", + "image_caption": [ + "Fig. 7. Unstructured and structured pruning. " + ], + "image_footnote": [], + "page_idx": 10 + }, + { + "type": "text", + "text": "Unstructured Pruning [76, 102, 201, 300, 321, 438, 442] prunes an LLM by removing weights individually without considering its internal structure. The least significant parameters are pruned according to specific criteria (e.g. magnitude or impact on the output). This method can achieve significant compression while maintaining performance. However, it can also lead to irregular memory access patterns and reduced hardware efficiency because the pruned model lacks a regular structure. SparseGPT [102] is a representative unstructured pruning method that can reduce large-scale GPT models like OPT-175B [440] and BLOOM-176B [181] to up to $6 0 \\%$ sparsity using a novel sparse regression solver. Wanda [321] combines weight magnitudes with input activations to efficiently identify and discard less impactful parameters. It operates in a single forward pass, rapidly achieving high sparsity without retraining. It is also worth noting that recent studies specifically address the compatibility issues between pruning and Low-rank Adaptation (LoRA) [142], such as LoRAPrune [438]. ", + "page_idx": 10 + }, + { + "type": "text", + "text": "Structured Pruning [13, 19, 51, 110, 124, 188, 196, 232, 243, 305, 306, 385, 410, 446], which prunes an LLM by targeting entire structural components—such as neurons, channels, or layers—rather. This approach allows for a direct reduction in dimensionality, thus efficiently reducing model complexity and memory usage. Although structured pruning may lead to higher accuracy degradation than unstructured pruning, it simplifies implementation without requiring specialized hardware. ShortGPT [243] proposes the Block Influence (BI) metric, which measures the significance of each layer based on its transformation of hidden states. Essentially, a transformer block’s influence is measured by how much it alters the hidden states. By calculating BI scores, ShortGPT determines which layers contribute minimally to the overall performance and removes these low-importance layers. This simple yet effective layer removal strategy significantly reduces the model’s parameters and computational requirements. LLM Pruner [232] offers a method to efficiently prune LLMs without access to the original training dataset. It employs a three-step compression pipeline: Discovery (identifying interdependent structures), Estimation (evaluating the performance impact of each group), and Recovery (post-training to address performance loss). NutePrune [196] enhances structured pruning with a ", + "page_idx": 10 + }, + { + "type": "image", + "img_path": "images/dac7bbe74f6604b3a7c2f738489f1e9f8bd44ea608360eca77d1fe9e35bf73c0.jpg", + "image_caption": [ + "Fig. 8. Illustration of white-box and black-box knowledge distillation [245]. " + ], + "image_footnote": [], + "page_idx": 11 + }, + { + "type": "text", + "text": "Numerous-teacher method, employing variable sparsity masks and LoRA modules to guide the pruning process. This approach effectively reduces model size and complexity. COST-EFF [305] introduces a slenderized backbone—a form of structured pruning—and a multi-exit model that employs task-specific calibration through knowledge distillation. This slenderization reduces the model’s spatial footprint, while the multi-exit strategy effectively balances utility and runtime costs. To enhance the flexibility of structural pruning, DISP-LLM [110] breaks the structural dependencies in regular methods by allowing different layers to have different subsets of features along the embedding dimension. ", + "page_idx": 11 + }, + { + "type": "text", + "text": "2.3.2 Knowledge Distillation. Knowledge distillation (KD) compresses a larger teacher model into a smaller student model by training the student to mimic the teacher’s outputs [136]. This enables the student to retain much of the teacher’s capabilities with fewer parameters, making it ideal for scaling down LLMs for resource-limited environments while maintaining performance. KD can be categorized into white-box and black-box approaches [361, 403, 457] as shown in Figure 8. In White-Box KD, the student has access to the teacher’s internal states or output distributions [6, 119, 157, 169, 173, 265, 381, 434]. Generalized Knowledge Distillation (GKD) [173] introduces skew KL divergence to stabilize gradients and enhance performance, using an adaptive off-policy approach to minimize noisy feedback and improve efficiency. Black-Box KD relies only on teacher outputs without having access to model internals [48, 182, 271, 360]. Methods like Distilling Step-by-Step [141] use teacher-generated rationales to train smaller models, improving performance with fewer examples. LaMini-LM [380] creates a diverse instruction dataset with GPT-3.5 Turbo responses, enabling robust performance in smaller models. ", + "page_idx": 11 + }, + { + "type": "image", + "img_path": "images/f384686f4977d2530cb223bab852d8696ab57ce6dde9887671940026792ea987.jpg", + "image_caption": [ + "Fig. 9. Illustration of quantization-aware training (QAT) and post-training quantization (PTQ). " + ], + "image_footnote": [], + "page_idx": 11 + }, + { + "type": "table", + "img_path": "images/53be93c32e7dfda8e6f37a75c53b4f3413729758e8e135240489a3c89db07e90.jpg", + "table_caption": [ + "Table 1. Representative quantization methods. " + ], + "table_footnote": [], + "table_body": "
MethodsBitTypeTechnical ContributionProblems
SqueezeLLM [170]3-bitPTQSensitivity-based non-uniform quantization, dense and sparse decompositionultra-low bit quantization
JSQ [122] FrameQuant [4]Flexible Fractional bitPTQJoint Sparsification and Quantization Fractional bit widthsbetter compression-accuracy trade-off s. better compression-accuracy trade-off s.
OneBit [400]1-bitPTQ PTQQuantization-aware knowledge distillation1-bit quantization
BiLLM [147]1-bitPTQCrucial Weights Selection, Block-based error compensation1-bit quantization
LQER [432] I-LLM [144]Flexible FlexiblePTQ PTQQuantization Error Minimization Fully-Smooth Block-Reconstruction, Dy-better compression-accuracy trade-offs Integer-only Quantization
PV-Tuning [239]namic Integer-only MatMul and Integer-only Non-linear Operators
BitNet [357]1-bit/2-bit 1-bitPTQPV algorithmbetter compression-accuracy trade-off s.
BitNet b1.58 [231]{-1, 0, 1}QAT1-bit Transformer Architecture1-bit quantization
PEQA [168]FlexibleQATTernary Parameters1-bit quantization
QATQuantization Scales OptimizationParameter-Efi cient Finetuning
QLoRA [81]NF4QAT4-bit NormalFloat and Double QuantizationParameter-Eficient Finetuning
", + "page_idx": 12 + }, + { + "type": "text", + "text": "2.3.3 Quantization. Quantization reduces the storage and computational demands of LLMs by converting floatingpoint representations into lower-precision formats, significantly cutting both storage requirements and computational complexity. Existing methods fall into two categories: Post-Training Quantization (PTQ) and Quantization-Aware Training (QAT). Figure 9 illustrates the two quantization methods. Post-Training Quantization, applied after training, simplifies model compression without altering the architecture or requiring retraining, though it may result in precision loss. Consider a group or block of weights w; the linear operation can be expressed as $y = \\mathbf { w x }$ , while the quantized version is given by ?? = ?? (w)x. Generally, the quantization function ?? is defined as [207]: ?? (w) = Δ · Round \u0000 wΔ \u0001 , Δ = max( |w| )2?? −1 , where $N$ is the number of quantization bits, and $\\Delta$ is the quantization scale factor determined by the absolute maximum value of w. Quantization-Aware Training (QAT) enhances LLM efficiency by directly incorporating quantization into the training process, often resulting in higher accuracy than PTQ. During QAT, the forward pass utilizes quantized weights $Q ( \\mathbf { W } )$ and activations $Q ( \\mathbf { X } )$ , while retaining full-precision values during the backward pass and for updating gradients to ensure stable learning dynamics. The comparisons of the post-training quantization methods are summarized in Table 1, detailing precision, addressed problems, and technical contributions of each method. ", + "page_idx": 12 + }, + { + "type": "text", + "text": "2.3.4 Low-Rank Techniques. Low-rank techniques compress LLMs by approximating a high-dimensional weight matrix with two lower-dimensional matrices, reducing computational and memory requirements. A matrix $\\mathbf { W } \\in \\mathbb { R } ^ { m \\times n }$ is approximated as $\\mathbf { W } \\approx \\mathbf { A } \\times \\mathbf { B }$ , where $\\mathbf { A } \\in \\mathbb { R } ^ { m \\times r }$ and $\\mathbf { B } \\in \\mathbb { R } ^ { r \\times n }$ , with $r$ much smaller than $m$ or $n$ , reducing the number of parameters. Building on this concept, Ji et al. [158] propose a low-rank method tailored for LLMs, leveraging the observation that while LLMs have high-rank weights, their feature interactions tend to exhibit low-rank properties. The method estimates feature distributions using pooled covariance matrices and allocates distinct compression ratios to layers based on their sensitivity to low-rank compression. A Bayesian optimization strategy, using a Gaussian process as the surrogate model, optimizes the allocation of low-rank dimensions, ensuring the model maintains performance while achieving significant compression. Transitioning from model compression to fine-tuning, Cho et al. [62] tackles system and data heterogeneity with the HETLORA method, which uses heterogeneous low-rank approximations to accommodate the diverse capabilities of clients and data complexities. By combining local rank self-pruning with sparsityweighted aggregation, it balances high and low-rank LoRA modules, improving convergence speed and performance compared to uniform approaches. LLM-Neo [409] combines knowledge distillation with low-rank adaptation (LoRA) to improve the efficiency of transferring knowledge from a teacher LLM to a compact student model. ", + "page_idx": 12 + }, + { + "type": "table", + "img_path": "images/44f9650b49eb7c89c591d11d800486203087d3a89226fb46f167c63eb3d54e49.jpg", + "table_caption": [ + "Table 2. Advanced enhancement methods for SLM. " + ], + "table_footnote": [], + "table_body": "
TopicMethodMain Contribution
Training from ScratchMindLLM [412] MobiLlama [336] MobileLLM [223]Bilingual models with advanced features. On-device SLM with dual objectives for eficiency and capability. Optimizes LLM deployment on mobile with advanced architecture.
Supervised Fine-tuningMobileBERT [322] Alpaca 7B [329] RLHF [264] DPO [283]Compact BERT for efi cient f ne-tuning. Uses ChatGPT-generated tasks to tune Llama 7B. Trains using human-preferred data and reinforcement learning.
Data Quality in KDTinyStory [96] AS-ES [384] Self-Amplify [29]Dynamically adjusts log probabilities to prevent model degradation. Enhances narrative coherence in child-friendly datasets. Improves CoT by categorizing reasoning steps. Automates CoT data annotation for small models.
Distillation for SLMGKD [6] DistiLLM [173] Adapt-and-Distill [414] SmoothQuant [386]Aligns training and inference distributions using on-policy sequences. Uses skew KL divergence and adaptive off-policy for output utilization. Domain adapts both teacher and student models before distillation.
QuantizationBiLLM [147] LLM-QAT [221] PB-LLM [299] OneBit [400] BitNet [357] BitNet b1.58 [231]Balances quantization dificulty using per-channel scaling. Applies Hessian-based metrics for binary residual approximation. Uses data-free knowledge distiltion and logit distiltion for fine-tuning. Binarizes non-salient weights while preserving others in higher precision. Achieves near 1-bit quantization with minimal performance loss. Introduces 1-bit Transformer architecture with BitLinear layers.
esMa et al [234] SLM-RAG [215]Implements a ternary weight system in enhanced BitNet. Shows that SLMs with RAG can match LLM performance.
", + "page_idx": 13 + }, + { + "type": "text", + "text": "3 ADVANCED ENHANCEMENT STRATEGIES FOR SMALL LANGUAGE MODELS ", + "text_level": 1, + "page_idx": 13 + }, + { + "type": "text", + "text": "With the foundational concepts introduced in Section 2, this section explores various advanced techniques that enhance the performance of SLMs, including innovative training methods for training SLMs from scratch, supervised fine-tuning (SFT) to align SLMs to adhere to instructions, advanced knowledge distillation and quantization techniques, and techniques frequently used in LLMs such as mixture-of-experts to enhance SLM for specific applications. A summary of enhancement techniques is also summarized in Table 2. ", + "page_idx": 13 + }, + { + "type": "text", + "text": "3.1 Innovative Training Methods for Small Language Models from Scratch ", + "text_level": 1, + "page_idx": 13 + }, + { + "type": "text", + "text": "In scenarios with limited resources, we aim to train small language models to provide efficient, cost-effective solutions tailored for specific domains, while still maintaining competitive performance with larger models. Training small language models (SLMs) from scratch involves unique strategies that diverge significantly from those used for large language models (LLMs). This section synthesizes cutting-edge techniques tailored to optimize the inherent capabilities of SLMs, underscoring their potential to match or surpass larger counterparts in efficiency and effectiveness. As shown in Figure 10, the methods for training SLMs from scratch can be categorized into three primary categories: Architecture Design, Data Construction, and Optimization Strategy. Next, we introduce each category in detail. ", + "page_idx": 13 + }, + { + "type": "text", + "text": "Architecture Design for SLMs When designing SLM architectures, parameter-sharing techniques are employed to minimize space usage and reduce the model’s size. As shown in the first part of Figure 10, parameter sharing is achieved by two approaches: (i) a single Feed-Forward Network (FFN) module is shared by every transformer layer. As shown in Figure 10 (1) middle, FFN layer sharing/reusing can maintain a smaller size while still benefiting from the depth and complexity gained through repeated processing of input data. This technique is firstly applied in MobiLlama [336] which surpasses the performance of existing SLMs of comparable size. (ii) Entire transformer blocks are shared. As shown in Manuscript submitted to ACM ", + "page_idx": 13 + }, + { + "type": "image", + "img_path": "images/1d496ff147a34dad2f537bee9636ed019e3dc371882a648ff85001144a298f46.jpg", + "image_caption": [ + "Fig. 10. Innovative Training Methods for Small Language Models from Scratch " + ], + "image_footnote": [], + "page_idx": 14 + }, + { + "type": "text", + "text": "Figure 10 (1) right, Transformer Block-wise Sharing is another parameter-sharing approach that maintains depth and complexity. There are different transformer block-wise sharing strategies such as repeating the transformer blocks all over again or repeating the immediate transformer block. This technique is applied in MobileLLMs [223] which has 125M and 350M parameters. MobileLLMs demonstrate performance improvements of $2 . 7 \\%$ and $4 . 3 \\%$ , respectively, compared to previous models with equivalent parameters. Moreover, they exhibit accuracy comparable to LLaMa-2-7B on API call tasks, highlighting the capabilities of smaller models in mobile environments. ", + "page_idx": 14 + }, + { + "type": "text", + "text": "Data Construction For SLMs, the emphasis on data quality surpasses that of quantity and diversity [412]. Experiments demonstrate that using a quality filtering approach to remove low-quality data can lead to improved performance in SLMs [412]. Unlike large models, which can handle diverse and large datasets, SLMs benefit more from cleaner, high-quality data probably due to their limited capacity against noise. Generally, data processing has several steps: (i) Remove HTML, CSS, JS, and non-text elements for clean text; (ii) Filter low text-to-content ratio web pages; (iii) Deduplicate using SimHash [77, 293]; (iv) Exclude sensitive/offensive content with heuristics and token replacements; (v) Remove self-repeating phrases of advertisements to enhance dataset informativeness [47, 412]. These steps collectively ensure that training data has high-quality, informative texts. SLMs also significantly benefit from these techniques. For example, MindLLMs [412], which are bilingual lightweight language models (available in 1.3B and 3B versions), adopt these data processing techniques and achieve improved capability acquisition. ", + "page_idx": 14 + }, + { + "type": "text", + "text": "Training Strategy for SLMs For LLMs, due to the large model size and data volume, LLMs are usually trained with one round. For SLMs, multiple-round training can be applied [328]. Considering some examples are hard to fit, hard examples can be trained with a high probability [328]. For each round of training, the data sampling probability is updated according to the overall loss of that sample. Experiments results show that two rounds of training and a $5 0 \\%$ sampling rate are a good trade-off between performance and training efficiency. Tang et al. [328] show that a deep and thin neural architecture and multiple-round training can enhance the performance of the trained Pangu 1.5B pro model. This model outperforms the conventionally trained Pangu 1.5B and a series of other comparable large language models with similar model sizes on multiple benchmark datasets, achieving an average performance increase of $8 . 8 7 \\%$ . ", + "page_idx": 14 + }, + { + "type": "image", + "img_path": "images/bbd77bd34f4d7955af6799a68109e49f177df7268d73ddaf5fc5f74d572be046.jpg", + "image_caption": [ + "Fig. 11. Fine-tuning for Enhancing SLMs " + ], + "image_footnote": [], + "page_idx": 15 + }, + { + "type": "text", + "text": "3.2 Supervised Fine-Tuning (SFT) for Enhancing SLM performance ", + "text_level": 1, + "page_idx": 15 + }, + { + "type": "text", + "text": "Supervised Fine-Tuning (SFT) employs a training methodology similar to pre-training but is specifically tailored to align models to adhere to the instructions encapsulated within various instructional datasets. This approach is designed to refine the model’s responsiveness and appropriateness to given contexts as dictated by the training data. For example, various models, such as Alpaca [329], UltraChat [86], WizardLM [392], SlimOrca [203], ShareGPT [356], Capybara [72], Deita [216], and MetaMathQA [420], incorporates a suite of conversational datasets to enhance their capabilities in context-aware dialogue and instruction adherence. Usually, as shown in Figure 11, existing SFT methods can be categorized into three categories: ", + "page_idx": 15 + }, + { + "type": "text", + "text": "• (i) Classical fine-tuning with downstream data [83, 282] trains SLMs on task-specific annotated data, transferring general language representations to specific tasks such as sentiment analysis. In the LLM era, this approach remains effective, such as enhancing LLMs by calibrating responses or assigning risk scores with smaller models such as BERT [450], or optimizing for mobile devices with MobileBERT [322]. \n• (ii) Instruction tuning with LLM-generated data [86, 203, 329] or human-generated questions with LLM annotations [356] aims to align generative models with specific instructions, enhancing their instruction-following and reasoning capabilities. For example, Alpaca 7B [329] uses 52k ChatGPT-generated instruction-following examples from 175 self-instructed seed tasks to tune Llama 7B [338]. Meanwhile, StableLM [26, 340] is trained on the Restruct-v1 dataset, which includes summarization, question-answering, and sentiment analysis tasks, using instruction data from [226]. \n• (iii) Preference optimization with human feedback [264, 283, 356] aims to better align language models with human preferences. Reinforcement Learning from Human Feedback (RLHF) [264] gathers human-preferred data, trains a reward model, and fine-tunes the LM using reinforcement learning. Direct Preference Optimization (DPO) [283] provides a simpler alternative to RLHF. Unlike RLHF, DPO avoids explicit reward modeling and reinforcement learning techniques. Instead, it adjusts the log probabilities of preferred versus non-preferred responses using a dynamic weighting mechanism, preventing model degradation issues typical of methods relying on probability ratios. For instance, Llama 3.2 1B & 3B apply SFT and DPO in post-training to enhance alignment with instructions and human preferences. ", + "page_idx": 15 + }, + { + "type": "image", + "img_path": "images/40b74914fda927e82ca795290fe714f8e91ef13c65ad3e542a958b9d257aa21e.jpg", + "image_caption": [ + "Fig. 12. Data Quality in Knowledge Distillation (KD) " + ], + "image_footnote": [], + "page_idx": 16 + }, + { + "type": "text", + "text": "3.3 Data Quality in Knowledge Distillation (KD) ", + "text_level": 1, + "page_idx": 16 + }, + { + "type": "text", + "text": "Transitioning from the discussion on training SLMs from scratch, this section delves into the critical role of data quality in Knowledge Distillation (KD). The motivation here is to highlight how high-quality data generated from LLMs can significantly enhance the learning efficiency and performance of SLMs. The central idea is that meticulously crafted datasets when used in KD, enable SLMs to more effectively mimic the advanced capabilities of their larger counterparts. As shown in Figure 12, the data can come either from (1) other strong LLMs (e.g., GPT-4 [2]) which are much larger and more powerful than the target SLM, or (2) the target SLM itself. ", + "page_idx": 16 + }, + { + "type": "text", + "text": "Augment Data from LLMs. LLM-generated data could be categorized as pre-training data and fine-tuning data. Firstly, due to the limitations of model size, studies have shown that training SLMs requires simple and comprehensible data [96, 183, 187, 384]. As shown in Figure 12 (1) left, TinyStory [96] shows that small models (tens of millions of parameters) can generate coherent stories for 3-4-year-olds. GPT-3.5 or GPT-4 [2] prompts create simple stories from three keywords chosen from a 1,500-word vocabulary, which are then used to train SLMs for similar outputs. This approach shows that simple and comprehensible data can help smaller models exhibit behaviors similar to those of larger language models, such as obeying scaling laws and achieving enhanced performance. On the other hand, many efforts to enhance the Chain-of-Thought (CoT) capabilities of small models involve using LLMs to generate high-quality fine-tuning CoT data. As shown in Figure 12 (1) right, these data train small models end-to-end to mimic CoT reasoning [235, 384]. AS-ES Learning [384] highlights that small models struggle with complex reasoning, even when provided detailed steps, as these require nuanced extraction and abstraction. Therefore, the study introduces a paradigm splitting reasoning into extractive segments (context reminders) and abstractive segments (inferred insights). ", + "page_idx": 16 + }, + { + "type": "text", + "text": "Augment Data from Itself. Besides distilling data from other LLMs, language models can also train on their own \noutputs [29, 145, 337]. Since voting strategies can improve the performance of LLMs, reasoning paths that lead to the \nmajority answer can be further utilized to fine-tune LLMs [145]. Similarly, SLMs can generate their training data with \nthe aid of existing rationale generation methods. Self-Amplify [29] notes that human annotation of Chain-of-Thought \n(CoT) data is very time-consuming; thus, automated rationale generation methods have been proposed. These methods Manuscript submitted to ACM ", + "page_idx": 16 + }, + { + "type": "image", + "img_path": "images/5ef0bc349ca2896ceaffe910aeb9516f9094df1212bdea9facea688a55284eba.jpg", + "image_caption": [ + "(c) Adapt-and-Distill Fig. 13. Distillation Techniques for Enhancing SLM Performance. On-policy means learning only use data from the current studen (policy), while off-policy permits the use of previously gathered data. " + ], + "image_footnote": [], + "page_idx": 17 + }, + { + "type": "text", + "text": "involve three main steps: (1) Selection of samples $( x , y )$ that the model predicts correctly as few-shot examples; (2) Rationale generation, where rationales are produced using post hoc explanation methods; (3) Prompt design for SLMs, where the final prompt is crafted based on the previously generated rationales. ", + "page_idx": 17 + }, + { + "type": "text", + "text": "3.4 Distillation Techniques for Enhancing SLM Performance ", + "text_level": 1, + "page_idx": 17 + }, + { + "type": "text", + "text": "Following the discussion on data quality in KD, this section reviews specialized KD training strategies designed to enhance the performance of SLMs. The motivation is to address the unique challenges and constraints involved in distilling knowledge from LLMs to SLMs, ensuring that the smaller models can maximize their performance gains. As shown in Figure 13, two main gaps between LLMs and SLMs lead to challenges in distillation: distribution mismatch and domain gap. Distribution mismatch [6, 173] occurs when the distribution of output sequences during training does not align with the distribution of sequences that SLMs produce during inference, leading to suboptimal performance of the student model. The domain gap [414] arises when there is a discrepancy between the domains or tasks on which the LLMs and SLMs are trained and applied. This gap can cause significant degradation in the performance of the student model if not properly addressed during the distillation process. To address these issues, specialized strategies involve first aligning the teacher and student models with the target domain before proceeding with knowledge distillation. To explore these challenges further, we now delve into the details of these two branches of methods. ", + "page_idx": 17 + }, + { + "type": "text", + "text": "Distribution Mismatch In original knowledge distillation, illustrated in Figure 13 Distribution Mismatch (a), the teacher and student are provided with the same input sequences $x$ and output labels $y$ , producing probability distributions for the next token $\\cdot q$ and $p$ ). The loss is calculated as the difference between these two distributions, $D ( q , p )$ . However, a key challenge arises due to distribution mismatch: the output sequences during training $( y )$ differ in distribution from those the SLMs produce during inference $( y ^ { \\prime } )$ . To address this challenge, various techniques have been proposed. As shown in Figure 13 Distribution Mismatch (b), one approach trains the student model using on-policy sequences—sequences generated by the student itself—guided by the teacher model’s feedback. Specifically, both the student and teacher take the same input $( x )$ and the student-generated output $( y ^ { \\prime } )$ , producing probability distributions Manuscript submitted to ACM ", + "page_idx": 17 + }, + { + "type": "text", + "text": "for the next token ( $\\dot { \\boldsymbol { g } }$ and $\\mathcal { P }$ , respectively). The loss is calculated as the difference between these two distributions, $D ( q , p )$ . This approach helps the student model reduce the distribution gap between training and inference by learning from the teacher’s feedback on its own generated sequences. Generalized Knowledge Distillation (GKD) [6] is the first work using this technique and improves distillation outcomes. However, a drawback of this technique is that it requires the student to constantly produce new training sequences, which can be computationally expensive. To improve efficiency, as shown in Figure 13 Distribution Mismatch (c), an adaptive off-policy approach can be used to efficiently manage student-generated outputs by storing them in a replay buffer, thereby reducing computational costs. DistiLLM [173] employs this off-policy approach and improves the efficiency of KD. ", + "page_idx": 18 + }, + { + "type": "text", + "text": "Domain Gap When training an SLM in a specific domain that differs from the domain of the LLMs, the gap between the two domains becomes problematic. As illustrated in Figure 13 Domain Gap (a), domain adaptation fine-tunes a language model, initially trained on a general corpus, using a specialized dataset such as PubMed to enhance performance in that specific domain. As illustrated in Figure 13 Domain Gap (b), Knowledge distillation transfers knowledge from the larger model to the smaller one. However, because the teacher model may not produce high-quality outputs on specialized datasets, domain adaptation is needed prior to knowledge distillation. As illustrated in Figure 13 Domain Gap (c), Adapt-and-Distill [414] tackles the domain gap by distilling general large models into smaller ones. This paper introduces AdaLM and demonstrates that the “Adapt-and-Distill” strategy—first involving domain adaptation of both the large teacher model and the small student model, followed by distillation—is the most effective compared to three other strategies: training directly from scratch, distillation followed by adaptation, and adapting the teacher model before distillation into a general small student model. These innovative techniques are crucial for enhancing the capabilities of SLMs, making them more efficient and effective for various applications. However, adapting both the teacher (LLMs) and the student (SLMs) models to the target domain can be time-consuming. Future research could focus on efficiently solving the domain gap problem. ", + "page_idx": 18 + }, + { + "type": "text", + "text": "Insights: Here are some insights from distillation techniques: ", + "page_idx": 18 + }, + { + "type": "text", + "text": "• Sampling SLM outputs during the training process is the main approach to resolving distribution mismatch. • Techniques like Adapt-and-Distill address the domain gap by first adapting both the teacher (LLMs) and the student (SLMs) models to the target domain before proceeding with distillation. ", + "page_idx": 18 + }, + { + "type": "text", + "text": "3.5 Performance Improvement through Quantization ", + "text_level": 1, + "page_idx": 18 + }, + { + "type": "text", + "text": "As mentioned in Section 2, quantization is one of the most effective methods for adapting LLMs to SLMs. However, compression to smaller sizes often compromises performance. To address the performance drop associated with quantization, various methods have been proposed. This section examines how these quantization methods specifically enhance the performance of SLMs. While the general introduction to compression methods is discussed in the compression section, the focus here is on detailing those approaches that boost the efficiency and effectiveness of SLMs. As shown in Figure 9, we categorize these quantization methods into two main approaches: Post-Training Quantization (PTQ), where quantization is conducted on a well-trained fixed model, and Quantization-Aware Training (QAT), where quantization is integrated into the training process. This section introduces advanced techniques in PTQ and QAT respectively. ", + "page_idx": 18 + }, + { + "type": "text", + "text": "Post-Training Quantization (PTQ) primarily includes weight quantization and activation quantization. Weight quantization aims to quantize model parameters while preserving performance. GPTQ [103] compresses LLMs to 4-bit or 2-bit by quantizing weights layer-by-layer to minimize layer-wise quantization errors. PB-LLM [299], applicable to both Manuscript submitted to ACM ", + "page_idx": 18 + }, + { + "type": "text", + "text": "PTQ and QAT, retains the most salient weights while binarizing the rest based on magnitudes. BiLLM [147], another PTQ method, uses a Hessian-based metric to identify salient and non-salient weights. Salient weights undergo binary residual approximation to minimize loss, while non-salient weights are divided into sparse and concentrated groups for separate binarization, reducing quantization errors. Activation quantization faces challenges with outliers that can stretch the quantization range, causing most values to cluster at few bits and introducing significant errors. To address this, LLM.int8() [80] isolates outlier features for 16-bit processing and handles the rest in 8-bit. SmoothQuant [386] circumvents per-channel quantization issues by employing a \"smoothing\" technique that shifts the quantization challenge from activations to weights through a per-channel scaling transformation. This balance between activating and weight quantization allows effective 8-bit quantization (W8A8), preserving accuracy while significantly reducing memory and computational costs. SmoothQuant thus enhances the efficiency of SLMs in resource-constrained environments. ", + "page_idx": 19 + }, + { + "type": "text", + "text": "Quantization-Aware Training (QAT) differs from PTQ in that it includes a training phase after the model has been quantized. When models are quantized to extremes, such as 2-bit or 1-bit, performance typically drops significantly, but further training can help the model retain its capabilities. For instance, to mitigate performance degradation from binarization, PB-LLM [299] selectively binarizes only non-salient weights, preserving the most salient ones at higher precision. This method effectively reduces the model size without significantly impacting performance. Salient weights are chosen based on their magnitude, ensuring that the most influential weights maintain higher precision to preserve the model’s reasoning capabilities. The paper explores both post-training quantization (PTQ) and quantization-aware training (QAT) to fine-tune and recover the performance of partially binarized models, achieving a balance between compression and accuracy. OneBit [400] and BitNet [357] address the severe performance degradation associated with 1-bit quantization by decomposing floating-point matrices and employing mixed-precision strategies. Specifically, OneBit introduces Sign-Value-Independent Decomposition (SVID), which decomposes a floating-point matrix into a 1-bit matrix and two floating-point vectors. This method allows LLMs to be quantized to a 1-bit level while minimizing performance loss. By retaining critical information with the floating-point vectors, OneBit effectively balances extreme compression with maintaining model accuracy. BitNet b1.58 [231] improves on the original BitNet by introducing a ternary matrix weight system -1, 0, 1, resulting in a 1.58-bit model. BitNet b1.58 matches the performance of full-precision models starting from a 3 billion parameter size while further reducing memory and latency costs. LLM-QAT [221] employs data-free knowledge distillation, where the pre-trained model itself generates data for fine-tuning the quantized model (student) using logit distillation from the full-precision model (teacher). This method incorporates quantization of weights, activations, and key-value cache, achieving accurate 4-bit quantization for weights and key-value caches, and 6-bit for activations, demonstrating substantial improvements over existing post-training quantization methods. ", + "page_idx": 19 + }, + { + "type": "text", + "text": "Insights: Insights drawn from quantization strategies include: ", + "page_idx": 19 + }, + { + "type": "text", + "text": "• Post-Training Quantization techniques primarily focus on quantizing model weights, where selecting salient weights is crucial. Beyond weight quantization, handling outliers in activation signals is a significant challenge in quantizing activations. \n• Quantization-Aware Training methods show that low-bit quantization (e.g., 1-bit models) requires additional tuning to maintain performance. Knowledge can be distilled from the model before quantization to the quantized model. ", + "page_idx": 19 + }, + { + "type": "text", + "text": "3.6 Techniques in LLMs Contributing to SLMs ", + "text_level": 1, + "page_idx": 20 + }, + { + "type": "text", + "text": "This subsection explores the potential of advanced techniques such as RAG and MoE, which enhance LLM performance, to also maintain or boost SLM performance within constrained computational budgets. However, effectively integrating these techniques into SLMs, which inherently possess limited capabilities, remains an unresolved challenge. ", + "page_idx": 20 + }, + { + "type": "text", + "text": "Retrieval Augmented Generation (RAG) enhances the capabilities of language models in knowledge-intensive tasks by incorporating a retrieval mechanism. This approach allows models to access relevant contextual information from a data repository in response to user queries. By integrating this retrieved data, RAG-equipped models better understand specific topics, enabling more informed and accurate outputs. For SLMs, a significant concern is whether they possess the capacity for long-context reasoning. A recent study [215] compares SLMs at the 7B level with RAG to larger models such as GPT-3.5 and GPT-4, suggesting that SLMs equipped with RAG can sometimes perform comparably or even better than LLMs. These findings indicate that RAG for SLMs is effective and represents a promising direction for future research. ", + "page_idx": 20 + }, + { + "type": "text", + "text": "Mixture-of-Experts (MoE) [39] has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs. The MoE framework is founded on a straightforward yet potent concept: distinct components of a model, referred to as “experts”, specialize in different tasks or data facets. In this paradigm, only the relevant experts are activated for a specific input, which manages computational costs while leveraging a vast pool of specialized knowledge. This scalable and adaptable approach enables increased model capacity without proportionally escalating computational demands. We argue that MoE is particularly suitable for SLM architectures [161] as it minimizes both computational load and memory overhead. However, research on MoE for SLMs remains sparse. Future studies could investigate how large LLM MoE architectures can be effectively compressed into small ones or how to develop an SLM with MoE tailored for specific devices from scratch. ", + "page_idx": 20 + }, + { + "type": "text", + "text": "4 APPLICATIONS OF SMALL LANGUAGE MODELS ", + "text_level": 1, + "page_idx": 20 + }, + { + "type": "text", + "text": "In this section, we delve into the applications of small language models (SLMs) across various NLP tasks and their deployment strategies. Due to benefits such as enhanced privacy, faster inference, and lower memory requirements, many NLP applications are now leveraging SLMs over LLMs. Additionally, deploying SLMs often involves considerations of memory and runtime efficiency, which are crucial for optimizing resource use on budget-constrained edge devices, particularly mobile phones. Then, we will discuss task-specific applications of SLMs and their deployment methods on mobile and edge devices. ", + "page_idx": 20 + }, + { + "type": "text", + "text": "4.1 Task-specific SLM Applications ", + "text_level": 1, + "page_idx": 20 + }, + { + "type": "text", + "text": "This subsection explores the diverse NLP tasks to which SLMs can contribute. Question-answering and coding represent generative tasks, while recommender systems and web search (though not strictly within the NLP domain) typically leverage the encoding capabilities of SLMs. Additionally, the application of SLMs on mobile devices is particularly well-suited due to constraints in memory and computing resources. The representative works are systematically organized in Table 3. ", + "page_idx": 20 + }, + { + "type": "text", + "text": "4.1.1 SLM Applications in Question-Answering. Question-answering (QA) is a fundamental task in the NLP field, demanding language models to exhibit abilities in understanding language, reasoning, common sense, and recalling specialized knowledge. Typically, larger language models yield better QA performance. However, the substantial size of these models introduces challenges such as immense computational requirements, privacy concerns when using proprietary LLMs, and difficulties in customization. These issues lead researchers and developers to favor SLMs in scenarios that demand efficiency, privacy, and customization. Therefore, we explore methods to enhance the capabilities of SLMs in QA across three key areas: (i) Instruction Tuning of Generic SLMs for QA, (ii) Instruction Tuning of Domain-Specific SLMs for QA, and (iii) Enhancing SLMs for Out-of-Domain Questions. ", + "page_idx": 20 + }, + { + "type": "table", + "img_path": "images/93144e9125c92890e1eada7cf6aca7e81e7846ea281be533d7a92908374ae4f4.jpg", + "table_caption": [ + "Table 3. Task-specific SLM Applications " + ], + "table_footnote": [], + "table_body": "
AspectRepresentative workKey point
SLM in QAAlpaca [329] Stable Beluga 7B [238]Tune Llama 7B [338] using 52k ChatGPT-generated examples.
Fine-tuned BioGPT [125] Financial SLMs [275] ColBERT [112] Rationale Ranking [128] T-SAS [156]Employ explanation tuning to Llama-2 7B [339] on an Orca-style dataset. Fine-tuning BioGPT (1.6B) [230] on PubMedQA. Transfer financial knowledge from GPT-4 [2] to multiple SLMs. Fetch retrieval documents for SLMs to answer domain-specific questions. For unseen questions, combine retrieval with LLM-generated rationales.
SLM in CodingPhi-3.5-mini [1] TinyLlama [439] CodeLlama [292] CodeGemma [331]Enhance SLMs adaptability with self-generated pseudo labels. New addition to the Phi-3 series and focus on high-quality data. 1.1B Transformer model is trained on 3T corpus. A derivative of Llama 2 fine-tuned on domain-specific datasets. Fine-tuning Gemma to enhancing coding capabilities.
SLM in Recommen- dationPromptRec [382] SLIM [369] BiLLP [309] ONCE [214] RecLoRA [455] Content encoder [44, 152, 228]Training on prompt templates Step-by-step Knowledge Distillation LLaMa-2-7B as planner and reflector LLaMa-2-7B as Content Encoder Personalized low-rank adaptation
SLM in Web SearchRanker [63, 260] Rewriter [233] Octopus [52]Encode concatenated queries and documents. Re-rank retrieved documents using a specially SLM. Bridge the gap between queries and needed knowledge by rewriting inputs. Calling software APIs via learning in documents
SLM in Mobile- deviceMobileAgent [87] α-UMI [307] Mobile Interaction [42] AutoDroid [376] M4 [423] Agent for Text Rewriting [458]Standard Operating Procedure (SOP) SLMs serve as Multi-agents in tool uses. Text-to-action control and tests on 6GB and 4GB Android devices Interaction based on GUI and APP knowledge injection a foundation model handling all mobile AI tasks. Data Knowledge Distillation from LLMs
", + "page_idx": 21 + }, + { + "type": "text", + "text": "", + "page_idx": 21 + }, + { + "type": "text", + "text": "Instruction Tuning Generic SLMs for QA. Despite the Phi series’ high question-answering capability, its training cost with over 3.4T tokens on 512 H100 GPUs for 10 days [1] is prohibitive for many researchers and developers. Instruction tuning [372] offers a cost-effective alternative, enhancing small models by fine-tuning on large model outputs. Alpaca 7B [329] tunes Llama 7B [338] with 52k ChatGPT-generated examples from 175 seed tasks. This behavior cloning mimics teacher models effectively but struggles in reasoning-intensive QA tasks where accuracy is key, not style [60]. To counter it, explanation tuning [238] enhances Llama-2 7B [339] using explanatory LLM answers to improve reasoning. However, its effectiveness varies with system instructions, and those effective for larger models like GPT-4 may not suit smaller ones. SLMs also struggle to identify optimal system instructions for different tasks. Therefore, Orca 2 [247] addresses this by promoting cautious reasoning, deciding which solution strategy to choose for a given task among direct answer generation, or “Slow Thinking” strategies (step-by-step, guess and check or explain-then-answer, etc.) and erasing specific system instructions during training. This involves (1) solution strategy is guided by the performance of Orca 1 [251], (2) writing task-specific system instructions corresponding to the chosen strategy to obtain teacher responses for each task, and (3) at training time, employing Prompt Erasing to replace student’s system instructions with generic ones vacated of details of how to approach the task, encouraging students learn not just task solutions but also deeper reasoning abilities. ", + "page_idx": 21 + }, + { + "type": "table", + "img_path": "images/8baa83545500b3c7be9594e42743fe1ff1961b3ea45d6d6638141e7d356b2eec.jpg", + "table_caption": [ + "Table 4. Comparison of instruction-tuned domain SLMs for QA and LLMs on FinQA [56] and PubMedQA [163]. " + ], + "table_footnote": [], + "table_body": "
ModelSizeInstruction tuned?Task NameShot TypeAccuracy (%)
GPT-4 [2]-×FinQAZero-shot77.5
Phi-3-Mini [1]2.7B√FinQAZero-shot77.6
Meditron-70B [55]70B×PubMedQAZero-shot81.6
RankRAG-1lama3-70B [421]70B×PubMedQAZero-shot79.8
Flan-PaLM [313]540B×PubMedQAFew-shot79.0
GAL 120B [330]120B×PubMedQAZero-shot77.6
Flan-PaLM [313]62B×PubMedQAFew-shot77.2
BioGPT [230]345M√PubMedQAZero-shot78.2
BioGPT-Large [230]1.5B√PubMedQAZero-shot81.0
", + "page_idx": 22 + }, + { + "type": "text", + "text": "", + "page_idx": 22 + }, + { + "type": "text", + "text": "Instruction Tuning Domain SLMs for QA. Beyond instruction tuning for generic SLMs, tuning domain-specific SLMs is also crucial, as they provide specialized assistance where generic SLMs may underperform. Instruction-tuning generic SLMs can derive domain SLMs. We summarize some representatives in several domains. (1) In finance, Phogat et al. [275] transfer financial QA abilities from teacher LLMs such as GPT-4 [2] to specialized SLMs such as Phi-3-Mini [1], using datasets such as FinQA [56], ConvFinQA [57], and TATQA [454]. They train SLMs with Python programs created by the teacher model, which detail steps for financial reasoning, including concept comprehension, formula identification, entity extraction, and calculations. During inference, SLMs generate Python code that an external interpreter executes. (2) In the medical field, Guo et al. [125] enhance student SLMs, including domain-specific BioGPT (1.6B) [230] and general Llama 7B [338], by fine-tuning on enriched PubMedQA [163] data. This enhancement is achieved by generating new samples or rewriting existing ones using teacher LLMs, which include the highly knowledgeable GPT-4 and the relatively weaker ChatGPT. The best SLM, with under 1.6 billion parameters, achieves $7 5 . 4 \\%$ accuracy, surpassing GPT-4’s $7 4 . 4 \\%$ in few-shot settings on the PubmedQA test sets. It demonstrates that LLMs effectively refine and diversify question-answer pairs, leading to enhanced performance in a significantly smaller model after fine-tuning. We report the detailed results of comparisons of instruction-tuned domain-specific language models for QA and larger language models on FinQA [56] and PubMedQA [163], as shown in Table 4. ", + "page_idx": 22 + }, + { + "type": "text", + "text": "Enhancing SLMs for Out-of-Domain Questions. One of the major advantages of LLMs is their strong comprehension and logical reasoning abilities, which SLMs often struggle to match due to their limited parameters, especially when handling unseen or out-of-domain questions. Various methods have been developed to address this limitation, including Retrieval-Augmented Generation (RAG) and self-adaptive techniques. ", + "page_idx": 22 + }, + { + "type": "text", + "text": "(1) Retrieval-Augmented Generation (RAG): Incorporating External Knowledge for Domain-Specific QA. RAG addresses OOD questions by integrating external knowledge during inference, allowing models to access information beyond their pre-trained parameters. By retrieving relevant documents in real time, RAG enables small language models to provide accurate answers on specialized topics. In the telecommunications domain, Gichamba et al. [112] use ColBERT as a dense retrieval system to fetch documents from technical datasets. By encoding queries and documents separately, ColBERT computes relevance scores, helping small models like Phi-2 and Falcon-7B retrieve precise technical information to answer complex telecom-related queries. Rationale Ranking [128] addresses answering unseen questions using smaller language models by integrating external explanatory contexts from retrieval systems with reasoning rationales from LLMs. This method involves ranking both the retrieved explanatory contexts and LLM-generated rationales using a scoring module, which then combines them to form a cohesive context. Consequently, this integrated approach enhances the SLMs’ performance on unseen questions. ", + "page_idx": 22 + }, + { + "type": "text", + "text": "", + "page_idx": 23 + }, + { + "type": "text", + "text": "(2) Self-Adaptive Techniques: Enhancing Model Adaptability with Self-Generated Pseudo Labels. Fine-tuning, while effective in adapting domain knowledge, can be impractical in realistic scenarios where labeled datasets are scarce. To overcome this, self-adaptive techniques employ self-generated pseudo labels to activate specific aspects of the target tasks, thereby enhancing model adaptability [312, 347]. Test-time Self-Adaptive Small LMs (T-SAS) [156] first stochastically generates multiple answers for an unlabeled question. The most plausible answer is then selected via majority voting to enhance pseudo-label accuracy, serving as a pseudo-label for training during test-time. ", + "page_idx": 23 + }, + { + "type": "text", + "text": "Comparison between LLMs and SLMs for QA. When comparing LLMs such as GPT-4 [2] or BLOOM-175B [181] with fine-tuned SLMs in QA tasks, the benefits of SLMs are clear. LLMs, while versatile across multiple domains due to extensive pre-training, are computationally demanding, making them less ideal for resource-limited settings. SLMs, however, when fine-tuned for specific domains, often match or exceed the performance of larger models within those specialties. The trade-off is between large-scale models’ generalization and small-scale model’s specialization: LLMs handle diverse domains but may need additional techniques such as knowledge injection for domain-specific queries. In contrast, domain-specific SLMs, though less flexible, provide higher accuracy and more relevant responses, making them ideal for edge deployments where computational resources are scarce but domain precision is crucial. ", + "page_idx": 23 + }, + { + "type": "text", + "text": "4.1.2 SLM Applications in Coding. The adoption of SLMs for coding offers an alternative to LLMs due to their lower computational needs and potential for domain-specific tuning. Despite LLMs’ proficiency in code generation and programming support, SLMs are advantageous for their faster inference, reduced operational costs, and suitability for real-time environments where rapid responses are crucial. Representative works are discussed next. The Phi series [1, 155, 200] showcase SLMs’ evolution in coding tasks. For instance, Phi-1 [120], a Transformer with 1.3B parameters, specializes in basic Python coding and achieves notable scores in benchmarks such as HumanEval [120], which includes 164 programming problems. Subsequent models, Phi-1.5 and Phi-2, have enhanced these capabilities, while Phi-3 demonstrated SLMs’ potential to rival larger models [1]. The latest model, Phi-3.5-mini, with 3.8B parameters, excels in long context tasks using advanced fine-tuning and optimization techniques, performing comparably to larger models such as Llama-3.1-8B-instruct [94] and surpassing smaller ones like Gemma-2 [333]. ", + "page_idx": 23 + }, + { + "type": "text", + "text": "Another avenue of development is the fine-tuning of general-purpose SLMs for coding tasks [23, 121, 227, 292, 331]. For instance, CodeLlama models [292], derivatives of Llama 2 [339], undergo a rigorous fine-tuning process on domain-specific datasets, enhancing their proficiency in specific programming languages such as Python. They are trained to handle tasks such as syntax error detection, code suggestion, and infilling, where they learn to predict and complete missing parts of the code. This specialized fine-tuning improves their ability to interpret and execute detailed programming instructions, making them highly effective in real-time code editing environments [292]. CodeGemma models [331], stemming from Google DeepMind’s Gemma framework, also exhibit a focused approach to enhancing coding capabilities through fine-tuning. These models are specifically engineered for high-performance code generation and infilling, underpinned by extensive training on a vast corpus of over 500 billion to 1 trillion tokens, predominantly consisting of code. This comprehensive dataset enables CodeGemma models to excel in mathematical reasoning and complex problem-solving within code contexts, setting new benchmarks in latency-sensitive applications such as real-time IDE support and automated code reviews [331]. ", + "page_idx": 23 + }, + { + "type": "text", + "text": "Comparison between SLMs and LLMs on Coding. Table 5 provides a comparative analysis of SLMs and LLMs on coding benchmarks HumanEval [50] and MBPP [20]. Insights include: (i) Small SLMs (1.3B - 3.8B Parameters) like Phi-3.5-mini [342] achieve high scores, demonstrating the efficacy of small models. Mid-sized SLMs (6.7B - 9B Parameters), such as DeepSeekCoder 6.7B [121] and Llama 3.1 8B [94], show improved performance, indicating that larger model sizes and enhanced training contribute to better accuracy. Large models (33B and above) like Llama 3.1 405B [94], GPT-4o [263], and Claude 3.5 Sonnet [15] excel, supporting the idea that bigger models generalize better across diverse coding tasks; (ii) There’s a notable trade-off between computational efficiency and performance, with larger models requiring more resources, impacting their practical deployment in constrained environments; (iii) Specialized training and fine-tuning, as used in models like DeepSeek-Coder [121], are crucial for excelling in coding tasks, though such models may not handle complex requests as effectively, highlighting the versatility of general SLMs for broader applications. ", + "page_idx": 24 + }, + { + "type": "table", + "img_path": "images/d571433f38a77ba849a7f2215c689dd115b7b307778fb86df6c4b41005282e82.jpg", + "table_caption": [ + "Table 5. Performance comparison between SLMs and LLMs in coding benchmarks. All models listed are chat or instruct versions, and performance are sourced from respective research papers or technical reports [94, 121, 292, 331, 342]. " + ], + "table_footnote": [], + "table_body": "
ModelSizeHumanEvalMBPP
DeepSeek-Coder [121]1.3B65.249.4
CodeGemma [331]2B37.849.2
Gemma 2 [333]2B17.740.2
Phi-3.5-mini [342]3.8B62.869.6
DeepSeek-Coder [121]6.7B78.665.4
CodeGemma [331]7B60.455.2
Llama 3.1 [94]8B66.569.4
Gemma 2 [33]9B61.069.3
GPT-3.5 Turbo-68.071.2
DeepSeek-Coder [121]33B79.370.0
Llama 3.1 [94]70B80.575.4
Llama 3.1 [94]405B89.078.8
GPT-4o OpenAI [263]-90.281.4
Claude 3.5 Sonnet [15]-92.076.6
", + "page_idx": 24 + }, + { + "type": "text", + "text": "4.1.3 SLM Applications in Recommender Systems. Recommender systems are essential in various online services, helping to manage information overload and meet users’ personal needs. SLMs enhance recommendation systems by (1) addressing the cold start problem; (2) reducing popularity bias; (3) improving long-term planning; (4) serving as personalized recommenders; and (5) acting as content encoders. These applications show the versatility and effectiveness of SLMs in boosting performance and personalization in recommendation. Next, we introduce the details. ", + "page_idx": 24 + }, + { + "type": "text", + "text": "SLM for System Cold Start Problem. Traditional recommendation systems, which utilize historical user-item interactions such as clicks, purchases, and ratings to learn representations and match items to users, fail in scenarios lacking any user-item interactions, known as the cold-start recommendation problem, often occurring in start-up businesses [289]. Although LLMs address this with in-context learning, their slow and costly inference restricts real-time use. Thus, PromptRec [382] explores using SLMs as in-context recommenders for recommendation system cold-start problems. However, SLMs often struggle without emergent context-learning abilities. To overcome this, SLMs are enhanced by pre-training on relevant corpora, using a improved C4 corpus subset [284], and by developing training prompts for different domains, enhancing cold-start performance. Results show that enhanced SLMs like BERT-mini [83], with 11.3M parameters, achieve BERT-large’s performance in cold-start scenarios, with only $1 7 \\%$ of BERT-large’s inference time. Similarly, many studies have addressed the cold-start problem by leveraging BERT [133, 261, 441, 459]. For example, ADLRS [133] employs BERT to convert web-crawled item profiles into vectors that highlight key aspects, aiding recommender systems in acquiring essential initial information. ", + "page_idx": 24 + }, + { + "type": "text", + "text": "SLM for Mitigating Popularity Bias. Popularity bias in recommender systems, marked by discrepancies between item popularity in training datasets and the real world, often stems from using closed-loop datasets with limited information. Recent LLMs leverage their broad open-world knowledge to better reason about user-item interactions [206, 214], reducing this bias by providing recommenders with more extensive item details. Using the chain-of-thought (CoT) prompting, LLMs decompose complex tasks into intermediate reasoning steps, enhancing understanding of user behavior and interests. However, LLMs’ high resource demands limit their practical use. To overcome this, the ", + "page_idx": 24 + }, + { + "type": "text", + "text": "Step-by-step Knowledge Distillation Framework for Recommendation (SLIM) [369] distills LLM reasoning capabilities into SLMs, keeping just $4 \\%$ of the original parameters, transitioning from ChatGPT to Llama 7B [338]. SLIM uses detailed LLM templates to extract reasoning steps and streamlined templates for fine-tuning, enabling SLMs to improve recommender systems by better reasoning on richer item information. ", + "page_idx": 25 + }, + { + "type": "text", + "text": "SLM for Long-term Planning. Traditional recommender systems focus on optimizing immediate user responses, often maximizing short-term gains but overlooking long-term engagement. This can trap users in echo chambers and filter bubbles [107, 368]. To tackle this, integrating planning capabilities into recommendations to balance immediate and long-term outcomes is vital. LMs, with their extensive knowledge and reasoning abilities, are expected to enhance planning capabilities. BiLLP [309] adopts a hierarchical learning approach with macro and micro-learning phases. In macro-learning, a Planner and a Reflector, both as SLM instances like Llama-2-7B [339], operate; the Planner forms long-term plans using high-level experiences, while the Reflector updates plans based on past actions. Micro-learning uses an SLM-based Actor-Critic mechanism for personalized planning, with the Actor implementing plans and the Critic assessing actions for long-term benefits. The use of SLMs for long-term planning, similar to their use in cold-start scenarios, remains underexplored and merits further research. ", + "page_idx": 25 + }, + { + "type": "text", + "text": "SLMs as a Personalized Recommender. Generative language model-based recommender systems require integrating user knowledge, typically achieved through fine-tuning. Fine-tuning techniques like LoRA [142] can incorporate extensive knowledge across all users by training an external module with a small number of parameters A and B, but this approach often overlooks individual user preferences. To address this, RecLoRA [455] utilizes Vicuna-7B [61] to integrate personalized knowledge into SLMs/LLMs tailored for recommendation tasks, as illustrated in Figure 14. Specifically, RecLoRA maintains a set of parallel, independent LoRA weights $( \\mathbf { A } _ { i } , \\mathbf { B } _ { i } )$ , allowing for the customization of language model parameters to match individual user preferences more effectively. ", + "page_idx": 25 + }, + { + "type": "image", + "img_path": "images/3b43c2adad6b79f991c200f73540556e2caeebf4d3fa4388bf6043d9b05842b2.jpg", + "image_caption": [ + "Fig. 14. The illustration of lifelong behavior sequence and personalized low-rank adaption (LoRA) for recommendation [455]. " + ], + "image_footnote": [], + "page_idx": 25 + }, + { + "type": "text", + "text": "SLM as a Content Encoder. Language models, particularly when deep, provide an effective starting point for finetuning on downstream tasks. In news recommendation systems, the representational capability of a model significantly impacts performance. Consequently, many news recommender systems now employ language models fine-tuned on specific datasets as text encoders. For example, Wu et al. [379] conducts pioneering work using a pre-trained language model to enhance large-scale news recommender systems by substituting traditional news encoders with a BERT model [83]. However, BERT may struggle to capture content as it is pre-trained on limited data. Therefore, ONCE [214] propose using Llama-2-7B [339] as an encoder to overcome the limitations of BERT in content-based recommendations. Additionally, the study explores the synergistic use of LLMs in recommendation systems, finding that SLMs optimized with LoRA [142] outperform the recommendation results of systems assisted by generic LLMs such as ChatGPT. ", + "page_idx": 25 + }, + { + "type": "text", + "text": "4.1.4 SLM Applications in Web Search. Web search systems, involving retrieval and ranking, face challenges due to the diverse web documents and search queries. Traditional keyword-matching methods often fall short because of phrasing variations and the long-tail distribution of queries and content, complicating accurate semantic inference. Effective integration of retrieval and ranking models is also crucial. Language models, serving as content encoders, help overcome semantic challenges through their language understanding from pre-training [63, 89, 359]. Joint training of Manuscript submitted to ACM ", + "page_idx": 25 + }, + { + "type": "image", + "img_path": "images/55caed2c4f7f78a5d857a38a853bc5c203ddb2ed2f0ce8cc74b86cc6c50f991c.jpg", + "image_caption": [ + "Fig. 15. Roles of SLM in Web Search. " + ], + "image_footnote": [], + "page_idx": 26 + }, + { + "type": "text", + "text": "retrieval and ranking models addresses integration, with SLMs ranking retrieved documents and acting as re-rankers. Additionally, SLMs serve as rewriters in scenarios requiring enhanced query understanding. Thus, in web search, SLMs fulfill three roles: (1) content encoder, (2) ranker, and (3) rewriter, as depicted in Figure 15. Next, we give details. ", + "page_idx": 26 + }, + { + "type": "text", + "text": "SLM as a Content Encoder. Text embeddings are vector representations that encode semantic information, widely used in retrieval; SLM-based dense retrieval utilizes pre-trained deep language understanding to effectively tackle semantic challenges. H-ERNIE [63] employs a hierarchical model that encodes queries and documents at multiple granularity—character, word, and phrase—to improve specificity and relevance in web search results by aggregating finer details into coarser layers, addressing issues like ambiguous queries. Implicit Interaction $( I ^ { 3 } )$ [89] uses BERT [83] as a content encoder, generating implicit pseudo-queries from passages to enable high online efficiency with offline caching of passage vectors. However, ERNIE and BERT-style models overlook advancements in SLMs such as context length extension [292]. Thus, Peng et al. [272] employs LLaMa-7B [338] and Vicuna-7B [61] as semantic encoders for embedding retrieval, demonstrating improved performance through soft prompt tuning. CoCondenser [109] addresses sensitivity to noisy data and large batch requirements during dense retriever training. Using the Condenser architecture with Transformer blocks, the model condenses information into dense vectors effectively. ", + "page_idx": 26 + }, + { + "type": "text", + "text": "SLM as a Ranker. The reranking task improves the order of multiple candidates to enhance retrieval quality because rerankers are more accurate than embedding retrievers. InPars (Inquisitive Parrots for Search) [36] employs the T5 base 220M [284] as a re-ranker to enhance the BM25 retriever [291]. Initially, BM25 selects 1K candidates, re-ranked by a fine-tuned T5 model (monoT5) adapted as a binary classifier to assess document-query relevance. Training data, generated by GPT-3 [37], formulates queries and selects random negative examples. Experiments show the monoT5- enhanced retriever significantly outperforms GPT-3; for example, it achieves a 0.3599 MAP score on the TREC-DL 2020 dataset [69], surpassing GPT-3’s 0.3163. ", + "page_idx": 26 + }, + { + "type": "text", + "text": "SLM as a Rewriter. Queries to the retriever, typically just a few keywords, may reveal a knowledge gap between the query and the knowledge needed for effective retrieval, thus limiting performance. To address this, the “rewriteretrieve-read” framework [233] uses T5-large [284] to bridge the knowledge gap in queries by rewriting them for more effective retrieval. This rewriter, trained via reinforcement learning with downstream LLM performance as a reward, outperforms general LLM rewrites. For example, it achieves a 45.97 F1 score on HotpotQA, surpassing the generic LLM’s 43.85 F1 score. ", + "page_idx": 26 + }, + { + "type": "text", + "text": "4.1.5 SLM Applications in Mobile-device. The use of cloud-based LLMs on devices raises privacy concerns and their large size limits real-time responses in urgent scenarios such as medical emergencies. To overcome these issues, researchers are creating smaller, domain-specific models (SLMs) that offer accurate results and suit mobile use. This subsection discusses SLM applications on mobile devices, focusing on three aspects: (1) software API calls, (2) mobile control, and (3) basic NLP applications. ", + "page_idx": 27 + }, + { + "type": "text", + "text": "SLM for Tool Learning. Integrating LLMs with APIs enhances capabilities but incurs high training costs, prompting a shift to smaller, task-specific models that cut costs but risk errors. In response, Octopus [52] uses a diverse dataset from over 30K APIs and curriculum learning [217] to improve API function accuracy. This method boosts API performance in models like Codellama-7b [292] and Google’s Gemma series [332]. PhoneLM-1.5B-Call [417] is fine-tuned on DroidCall [389] datasets and achieves comparable performance compared to GPT-4o-mini [262]. $\\alpha$ -UMI [307] employs SLMs as planners, callers, and summarizers within multi-agent systems, outperforming a single LLM in tool uses. ", + "page_idx": 27 + }, + { + "type": "text", + "text": "SLM for Mobile Control. LM agents facilitate user-device interactions through taps, gestures, and text, automating tasks and enhancing user handsfree convenience. Unlike traditional developerbased approaches that require extensive developer effort to design interfaces and translate commands into API calls, LMs offer scalable automation via GUI-based text contents. MobileAgent [87] integrates instructions and Standard Operating Procedures (SOP) to improve SLMs for mobile control. As shown in Figure 16, it processes goals (e.g., booking a dental appointment) by analyzing screens, queries, prior actions, and UI elements, forming ", + "page_idx": 27 + }, + { + "type": "image", + "img_path": "images/844ac2068793ef36b83eb6f0bf3c6390326b42f040099f022d3cd83076a77653.jpg", + "image_caption": [ + "Fig. 16. An example workflow for an automated execution tool [87]. The screenshot in the left is taken from [87]. " + ], + "image_footnote": [], + "page_idx": 27 + }, + { + "type": "text", + "text": "prompts to generate outputs and execute actions (e.g., selecting text, XPath). Fine-tuning Qwen-7B [23] on AIA medical data, it outperforms GPT-4 [2] on AitW [290], a key mobile benchmark, without extra inference costs. Carreira et al. [42] run a small offline model on mobile devices, fine-tuned with ChatGPT-3.5 data, enabling tasks like calls and web searches. RedPajama-INCITE-Chat-3B-v1 Computer [67], selected for its size and chat features, uses native code and quantization, performing well on 6GB and 4GB Android devices. ", + "page_idx": 27 + }, + { + "type": "text", + "text": "AutoDroid [376] improves Android app interactions via GUI automation. Figure 17 shows LLMpowered task automation (e.g., setting a laundry reminder for Aug 17) in four steps: (1) click ’New Event’, (2) enter ’laundry’ in ’Title’, (3) click ’Save’, (4) finish. Using Vicuna-7B and app-specific knowledge, AutoDroid generates privacy-filtered prompts for tasks. On its DroidTask benchmark, it outperforms GPT-3.5 $( 3 4 . 7 \\% )$ and GPT-4 $( 5 4 . 5 \\% )$ with $5 7 . 7 \\%$ accuracy. M4 (composable mobile foundation model) [423] introduces a 9.2B parameter model ", + "page_idx": 27 + }, + { + "type": "image", + "img_path": "images/f0676f031f8be6ddbcdd421342e02c7aa2dd3e785aaeb77f576fd2a9803bf571.jpg", + "image_caption": [ + "Fig. 17. An illustration of Vicuna-7B-powered mobile task automation [42] shows a user asking to be reminded about doing laundry on Aug 17. The figure is taken from [42]. " + ], + "image_footnote": [], + "page_idx": 27 + }, + { + "type": "text", + "text": "(7.5GB memory) for mobile AI tasks, managed by the OS and hardware. Currently limited to high-end devices, its applicability will expand with increasing mobile memory/storage. These works highlight customizing smaller, domain-specific SLMs to address memory limits while preserving functionality in mobile environments. ", + "page_idx": 28 + }, + { + "type": "text", + "text": "SLM for Basic NLP Applications on Devices Performing basic NLP tasks such as text rewriting directly on the device can enable personalization while ensuring privacy. The sparse annotation on devices is a challenge. Qin et al. [278] utilizes self-supervised data selection and synthesis for on-device fine-tuning, leveraging sparse annotations and limited storage effectively. This approach, demonstrated in Figure 18, employs the Llama-3B model [338] and the LoRA fine-tuning method [142], enhancing personalization by efficiently managing data through metrics including embedding entropy and domain-specific scores. In mobile text rewriting, Zhu et al. [458] train the compact Palm 2-XXS model [14] using data generated by the larger Palm 2-L to ensure user privacy and accommodate device constraints. On its new benchmark, MESSAGEREWRITEEVAL, Palm 2-XXS achieves a BLEU score of 34.59, outperforming LLaMa-7B (16.65) [338]. tokens/s), proving its mobile efficiency for text rewriting. ", + "page_idx": 28 + }, + { + "type": "image", + "img_path": "images/d4ef979fb35a43bc43f105144a9a822511b5247f2074c5314c41005aa974897d.jpg", + "image_caption": [ + "Fig. 18. Overview of fine-tuning SLMs with synthesized and user data [278]. Data Synthesis generates semantically similar text via prompts, creating dialogue sets. Data Selection processes user data, tags domains, and calculates metrics (EOE, DSS, IDD). Selected data fine-tunes SLMs with user annotations. The iterative framework refines SLMs through continuous data generation and selection. " + ], + "image_footnote": [], + "page_idx": 28 + }, + { + "type": "text", + "text": "Tests on the Samsung S23 show lower latency (29 tokens/s) than a 4-bit LLaMa-7B on a MacBook M1 Pro (18-22 ", + "page_idx": 28 + }, + { + "type": "text", + "text": "Insights: We draw several key insights from the development of task-specific SLMs: ", + "page_idx": 28 + }, + { + "type": "text", + "text": "• There is considerable potential in enhancing the efficiency and effectiveness of small models by integrating self-adaptive techniques with further fine-tuning and optimization of RAG-based methods. \n• The growing relevance of SLMs in coding highlights their cost-effectiveness and efficiency as alternatives to LLMs, providing quick processing and easy fine-tuning for specialized tasks; while LLMs handle complex tasks well, SLMs, optimized and fine-tuned on specific data, are increasingly essential in resource-limited settings. \n• SLMs significantly enhance recommendation systems due to their robust generalization, reasoning abilities, and in-context learning, addressing key challenges such as cold-start problems and distribution biases. They support long-term planning, replace traditional encoders, and use parallel low-rank parameters to inject personalized user knowledge effectively. \n• SLMs play a crucial role in web search such as document encoding, text reordering, and query rewriting, often outperforming LLMs through techniques such as supervised fine-tuning, soft prompt tuning, unsupervised contrastive loss, and reinforcement learning, thereby enhancing adaptability and efficiency. \n• SLMs are utilized on mobile devices primarily for privacy and memory constraints, with applications in API calls and mobile control; they are typically developed by generating data with LLMs and fine-tuning with SLMs, or by using local SLMs to handle privacy with LLMs boosting performance, and their training involves innovative techniques like learning from data streams and managing non-IID time series data. ", + "page_idx": 28 + }, + { + "type": "table", + "img_path": "images/f9283173cfd5cc41848dbdac8e8581006a4d40a4141bae56cd4912f55bdac1a1.jpg", + "table_caption": [ + "Table 6. On-device Deployment Optimization Techniques " + ], + "table_footnote": [], + "table_body": "
AspectRepresentative WorkKey Point
MeoyEDGE-LLM [422]Edge LLMs use LUC and adaptive tuning for eficiency
LLM-PQ [448]Optimize quantization and layer partitioning for complex setups.
AWQ [207]Preserve key weights based on activation distribution.
DMC [256]Adaptively compress KV cache, optimizing storage eficiency.
Transformer-Lite [193]Optimize KV cache to reduce redundancy and memory use.
LLMaaS [419]LLMaaS manages apps via chunk-wise KV cache optimization on mobiles.
Runtime Efmiciency Optimizationmllm-NPU [395]On-device NPU (neural processing units) to reduce prefill latency.
COST-EFF [305]Distill a multi-exit model from the original PLM.
LLMCad [394]Use SLM for fast token generation and cloud verification.
EdgeMoE [416]Predict expert needs, boosting inference speed and reducing latency.
LinguaLinked [447]Optimize data flow and load, enhancing multi-threading eficiency.
", + "page_idx": 29 + }, + { + "type": "text", + "text": "4.2 SLM Deployment on Mobile and Edge Devices ", + "text_level": 1, + "page_idx": 29 + }, + { + "type": "text", + "text": "On-device applications benefit uniquely from the memory-saving efficiency and rapid runtime performance of SLMs, which offer advantages over LLMs. However, devices with extremely limited resources may still struggle with the parameter sizes of SLMs. To ensure both memory and runtime remain within acceptable range while still maintaining performance, it is crucial to integrate technologies that facilitate the deployment of SLMs on resource-constrained devices. The primary challenge for memory-efficient technologies arises from the inherent size of the SLMs and their associated caches. To address this, we survey existing works focused on compressing SLMs and their caches. Additionally, the large size of models significantly impacts runtime efficiency due to the extensive computing workload and potential weight transfers between the memory buffer and RAM/GPU memory. Other challenges include switching the Mixture of Experts between CPU and GPU memory and managing resource scheduling when deploying SLMs across multiple local devices. Therefore, in this subsection, we review representative works that address these challenges under two aspects: memory efficiency optimization and runtime efficiency optimization, as systematically compiled in Table 6. ", + "page_idx": 29 + }, + { + "type": "text", + "text": "4.2.1 Memory Efficiency Optimization. Memory efficiency involves minimizing the memory usage of both the model and the KV cache during deployment. This is typically achieved through model compression techniques such as quantization [207, 285, 422, 448], the cache of MoE experts [416], and KV cache compression [165]. ", + "page_idx": 29 + }, + { + "type": "text", + "text": "Compression on model parameters. Quantization, a common method for deploying SLMs, lowers numerical precision to significantly save memory while preserving accuracy. We detail quantization strategies in Sections 2.3.3 and 3.5, focusing here on representative works for edge devices. EDGE-LLM [422] adapts LLMs for edge devices using a Layer-wise Unified Compression (LUC) method that combines layer-specific pruning and quantization to reduce computational demands and an Adaptive Layer Tuning and Voting scheme to optimize memory use while ensuring performance. Meanwhile, LLM-PQ [448] addresses quantization and model layer partitioning for heterogeneous clusters, incorporating a Cost Model and an Indicator Generator to optimize bit-width assignment and layer partitioning through integer linear programming, enhancing quantization for complex computational setups. Activation-aware Weight Quantization (AWQ) [207] is a hardware-friendly, low-bit, weight-only quantization method for on-device LLMs, preserving essential weights based on activation distribution to minimize quantization loss. MoE- $\\cdot \\mathbf { I } ^ { 2 }$ [404] prune less important experts and applies low-rank decomposition to the remaining experts to further optimize efficiency. Manuscript submitted to ACM ", + "page_idx": 29 + }, + { + "type": "text", + "text": "Cache of MoE Experts. Beyond standard quantization, which reduces storage for all model parameters, another strategy involves caching a mixture of experts (MoE). Driven by the fact that memory storage is more cost-effective and scalable than computing capacity, the MoE architecture [154] boosts performance while minimizing computational costs by activating only portions of the LLM as needed. However, this approach incurs significant memory overhead, making it impractical for edge device memory constraints. For example, Switch Transformers [100], with 32 experts per layer, require 54GBs of memory for inference, exceeding the capacity of most edge devices. Yi et al. [416] notes that in the Switch Transformers model, although most of the model weights $( 8 6 . 5 \\% )$ are attributed to experts, these weights account for only a small fraction $( 2 6 . 4 \\% )$ of the computations. To address this, EdgeMoE [416] introduces a method where experts are loaded into an expert memory buffer only when activated, achieving approximately $3 \\times$ memory savings compared to the baseline where all weights are held in memory. ", + "page_idx": 30 + }, + { + "type": "text", + "text": "KV Cache Compression. When serving LMs for inference, using a KV cache is common practice to avoid intensive recalculations and speed up generation [276]. However, cache memory consumption escalates with model size and sequence length, posing a challenge for edge devices. To manage this, offloading techniques transfer KV caches to CPU memory [12, 308], although this can introduce significant overhead due to the switching costs between GPUs and CPUs. Token dropping compresses cache size by keeping only key tokens, often identified by low attention scores [111, 220, 444]. However, this method struggles with complex tasks, especially at high compression levels, due to increased estimation errors in compressed KV values. GEAR [165] addresses these issues by enhancing KV cache quantization with error-reduction techniques, including: (i) quantizing caches of similar magnitudes to ultra-low precision, (ii) using a low-rank matrix for efficient quantization residual approximation, and (iii) employing a sparse matrix for correcting outliers. This approach separates coherent from incoherent approximation errors, enabling near-lossless KV cache compression and achieving up to $2 . 2 9 \\times$ peak memory reduction. ", + "page_idx": 30 + }, + { + "type": "text", + "text": "Besides, Dynamic Memory Compression (DMC) [256] adaptively compresses the KV cache by either adding new key and value representations directly or blending them with the top cache item using a weighted average. Transformer-Lite [193] tackles the redundancy of storing the KV cache twice in model inputs and outputs, which increases memory use. It optimizes storage by allocating a large tensor based on the maximum sequence length needed for inference. Sub-tensors are then created from this main tensor at different address offsets to serve as input and output KV caches, allowing direct writing to the correct locations during inference and removing extra copying steps. LLMaaS [419] introduces LLM as a Service for mobile devices, managing all apps through LLMS. This system uses chunk-wise KV cache compression and swapping, enabling efficient context switching within memory constraints. By segmenting the KV cache into independently compressed and swapped chunks, LLMS balances memory use and I/O bandwidth better than token-level or context-level management. ", + "page_idx": 30 + }, + { + "type": "text", + "text": "4.2.2 Runtime Efficiency Optimization. The goal of decreasing computing workload aligns with enhancing memory efficiency through methods such as quantization, as mentioned in the previous section. Decreasing model weight precision or reducing the number of weights naturally lowers latency. Other runtime efficiency techniques of minimizing inference latency involve, reducing prefill latency, early exits, large and small model collaboration, decreasing switching time in MoE, and reducing latency in distributed SLMs. ", + "page_idx": 30 + }, + { + "type": "text", + "text": "Reducing prefill latency. mllm-NPU [395] is the first LLM inference system that leverages on-device NPU (neural processing units) to reduce prefill latency and energy consumption. It incorporates a chunk-sharing graph, shadow outlier execution, and out-of-order subgraph execution to enhance NPU offloading efficiency. Experiments have shown mllm-NPU’s superior performance benefits, including up to $4 3 . 6 \\times$ speedup and $5 9 . 5 \\times$ energy savings. ", + "page_idx": 30 + }, + { + "type": "text", + "text": "Dynamic Early Exits A decoupled runtime saving technique is dynamic early exits. Originating from BranchyNet [335], which introduces exit branches after specific convolution layers in the CNN model, this concept has been adapted for PLMs as Transformer layer-wise early exiting [391]. Early exiting enables dynamic acceleration during inference and reduces temporal overhead by allowing exit without passing through all model layers. To address the inconsistency issue arising from exiting at different layers, COST-EFF [305] distills a multi-exit model from the original PLM. ", + "page_idx": 31 + }, + { + "type": "text", + "text": "Large and Small Model Collaboration Model collaboration, deploying SLMs on devices with cloud-based LLM support, enhances runtime efficiency. LLMs will increase latency when directly deployed via mobile engines like llama.cpp due to a large number of computing operations. LLMCad [394] addresses this by using a real-time, memoryresident SLM for simple tokens such as determiners and punctuation. The SLM generates tokens, while a cloud-based LLM verifies and corrects them, speeding up the process. LLMCad enhances token generation up to $9 . 3 \\times$ by pairing the memory-resident SLM, Llama 2 7B, with the cloud-based LLM, Llama 2 13B, cutting latency from 16.2 to 3.9 seconds on Xiaomi Pro for TruthfulQA tasks [208]. ", + "page_idx": 31 + }, + { + "type": "text", + "text": "Reducing MoE Switching Time. To reduce latency in MoE architectures caused by frequently switching experts in limited device memory, EdgeMoE [416] enhances runtime efficiency by preemptively predicting which expert will be needed, based on the observed long-tail distribution of unbalanced expert activations. It utilizes a statistical model, built offline, to estimate expert activation probabilities in transformer layers from previous activations. During inference, EdgeMoE preemptively loads the most likely needed expert, accelerating inference by $1 . 1 1 \\times$ to $2 . 7 8 \\times$ and significantly reducing latency. For instance, in a switch transformer model with 8 experts, latency drops from approximately 0.7s to 0.3s, outperforming the baseline method that preloads experts based on hit ratios. ", + "page_idx": 31 + }, + { + "type": "text", + "text": "Reducing Latency in Distributed SLMs. Distributing an SLM across smaller devices reduces the need for extensive model compression while preserving accuracy. However, this approach faces challenges that incur latency such as managing diverse device capabilities, handling data dependencies between model segments, and adapting to dynamic resource availability. To address these issues, LinguaLinked [447] addresses these issues by optimizing model assignment to match device capabilities and minimize data transmission, implementing runtime load balancing to redistribute tasks and prevent bottlenecks, and enhancing communication for efficient data exchange between segments. With multi-threading, the system improves, achieving acceleration rates between $1 . 7 3 \\times$ and $2 . 6 5 \\times$ for both quantized and full-precision models. ", + "page_idx": 31 + }, + { + "type": "text", + "text": "Insights: We draw several key insights from the deployment of SLMs: ", + "page_idx": 31 + }, + { + "type": "text", + "text": "• Model size remains a bottleneck for both memory and runtime efficiency. A common solution is model quantization, which reduces model precision to save memory and lessen computing workload, thereby boosting inference speed [207, 223, 253, 285, 422, 448]. Similarly, KV cache compression also helps achieve these efficiency gains [165, 193, 256, 419]. \n• Mixture of Experts (MoE) is commonly used in SLMs to enhance performance using the same computing resources, but it results in increased memory usage. To address this, only activated experts are loaded into the memory buffer while the majority are stored cold on disk. However, the cost of switching can slow down inference. Designing a preemptive expert pre-load strategy could therefore accelerate the inference [416]. \n• Model collaboration between local SLMs and cloud-based LLMs enhances both memory and runtime efficiency by using smaller models on local devices, which are then verified by cloud LLMs to ensure performance is maintained. Using SLMs locally reduces memory usage and shortens the inference time from the local model. However, internet latency and delays in cloud LLM inference can still introduce latency. Verifying SLM outputs every $N$ tokens using LLMs can effectively mitigate this latency [394]. \n• One deployment approach involves deploying SLMs/LLMs across multiple trusted local devices to maintain original performance while only loading a fraction of the model weights. However, this method can incur latency due to varying device capabilities and resource scheduling challenges. To address these issues, optimizing model assignment to align with device capabilities and minimizing data transmission are effective strategies [447]. ", + "page_idx": 31 + }, + { + "type": "text", + "text": "5 GENERIC AND DOMAIN-SPECIFIC SMALL LANGUAGE MODELS", + "text_level": 1, + "page_idx": 32 + }, + { + "type": "text", + "text": "This section investigates small language models (with fewer than 7 billion parameters) in both general and specific domains. It details the methods of obtaining these small language models, the datasets, and the evaluation tasks, exploring the techniques for acquiring SLMs through compression, fine-tuning, or training from scratch. Additionally, we summarize the representative small language models, as detailed in Table 7 and 10. ", + "page_idx": 32 + }, + { + "type": "text", + "text": "5.1 Generic-domain SLMs ", + "text_level": 1, + "page_idx": 32 + }, + { + "type": "text", + "text": "Overview. SLMs, with fewer parameters than LLMs, enhance computational efficiency in pre-training, fine-tuning, and inference, reducing memory and energy demands—crucial for resource-limited environments. Their compact, localized nature boosts privacy, personalization, and response times, making them ideal for low-power edge devices. Therefore, SLMs are attracting increasing attention, and various models are being developed. Table 7 summarizes current representative generic-domain 42 SLMs/SLM families. Although all chosen SLMs have similar architectures, they vary in specific training datasets and techniques, with some datasets not being openly available. Taking the latest Llama 3.2 1B models [7] in Figure 19 as an example, its parameter size and use of filtered high-quality training data, pruning-based initialization, knowledge distillation pre-training tasks, and training techniques such as Supervised Fine-Tuning (SFT), Rejection Sampling (RS), and Direct Preference Optimization (DPO) distinguish it from others. ", + "page_idx": 32 + }, + { + "type": "image", + "img_path": "images/5c4d53a6a4c5f09f4ddfaecb6f9efc56e2048c001e55fb6f1444260ba8c674b2.jpg", + "image_caption": [ + "Fig. 19. Llama 3.2 1B model card " + ], + "image_footnote": [], + "page_idx": 32 + }, + { + "type": "text", + "text": "5.1.1 Architecture Design. From Table 7, we observe several trends in component choices for SLMs: ", + "page_idx": 32 + }, + { + "type": "text", + "text": "(1) Recent SLMs frequently employ Grouped Query Attention (GQA) in self-attention mechanisms because it can reduce computational complexity. GQA achieves this by sharing query representations across multiple heads while keeping key and value representations separate. This approach aligns with the goals of SLM to enhance efficiency without compromising functionality. ", + "page_idx": 32 + }, + { + "type": "table", + "img_path": "images/7f16686f1105451014a37e7f8be3e8ce3938b447496f6b7451f897a2796e66ac.jpg", + "table_caption": [ + "Table 7. High-level Overview and Training Details of Generic-domain Small Language Models. #Params means Parameter amounts. $\" > \"$ indicates parameters larger than 7B. " + ], + "table_footnote": [], + "table_body": "
Model#ParamsDateParadigmDomainTraining DatasetsTraining Techniques
PhoneLM [417]0.5B;1.5B2024.1 Pre-trainGenericDCLM-baseline [192], tarCoderData [195]; OpenWebMath [267], Dolma-algebraic and Dolma-arXiv [315]RoPE, MHA, Gated FN, MNorm, ReLU, SDP, Fash Atention 2,ZeRO
Llama 3.2 [7]1B; 3B2024.9Pre-trainGenericno release (9T tokens)GQA, SiU, Mulingual Text and code, hared embedding, Prun- ing, Distilltion, FT, LHF, RS, O
Qwen 1 [23]1.8B; 7B;>2023.12Pre-rainGenericno releaseMHA; RoPE; SwiGLU; RMSNorm
Qwen 1.5 [23]0.5B;1.8B; 4B; 7B;>2024.2Pre-rainGenericno releaseMHA; RoPE; SwiGLU; MSNorm; Muligual support
Qwen 2 [402]0.5B1.5B; B;>2024.6Pre-trainGenericno releaseGQA; RoPE; SwiGLU; MSNorm; Multilingual support
Qwen 2.5 [402]0.5B;1.5B; 3B; 7B;2024.9Pre-trainGenericno releaseGQA; RoPE; wiGLU; RMSNorm; Multilingual support; Larger corpus
Gemma [332] Gemma 2 [33]2B; 7B2024.2Pre-trainGenericUnknownMHA, RoPE, GELUtanh
2B;>2024.7Pre-trainGenericUnknownQA Logi Sft-Capping; RMSNorm for Pre and Post-Normalization
SmolLM [9]135M ; 360M; 1.7B2024.7Pre-trainGenericsmollm-corpus [27]GQA, trapezoidal LR scheduler
H20-Danube3 [274]500M; 4B2024.7Pre-trainGenericUnknown
Fox-1 [334]1.6B2024.6Pre-trainGenericUnknown (3T tokens)GQA; Dep architecture
Rene [113] MiniCPM [143]1.3B 1.2B; 2.4B2024.5Pre-train Pre-trainGeneric GenericDolma-1.7 [315] Dolma [315]; C4 [284]; Pile[84]; tack [174]Mamba-2 layers, sing-window atetion (SWA)
2024.4Staroder [195] Ua hat [86]sIn [373]; Evolntruct [392]Warmup-Sable-Decay (WsD) larning ate scheduer
CT-LM [2]2B2024.4Pre-trainGenericMAP-CCChinese, MHA, RoPE, SwiGLU, MSNor
OLMo [116]1B; B2024.2Pre-trainGenericDolma[315] 1SwiGLU; RoPE, Non-Paraeteric LayerNo
TinyLlama [439]1B2024.1Pre-trainGenericSlimPajama [314] and StarCode [195]GQA, SiLU, FSDP, Flash Atention [73], xFormers [184]
Phi-1 [120]1.3B2023.6Pre-trainCodingCodeTextBook [120]22MHA, GELUtanh, RPE, FlshAttentio
Phi-1.5[20]1.3B2023.9Pre-trainGenericCodeTextBook [120];ynthetic Datasets (20)MHA, GEUanh,RE, FshAttentin, De ZeRSe2
Phi-2 [152.7B2023.12 Pre-trainGenericCodeTextBook [120];yntetic Datasets (20)MHA, GEUanh,RE, FshAttentin, De ZeRSe2
Phi-3 []3.8B; 7B;>2024.4Pre-trainGenericScaled-up dataset from phi-2MHA, SiLU, RoPE, FlashAttention, Deep ZeRO Stage 2
Phi-3.5 []]3.8B; 4.2B;6.6B2024.4Pre-trainGenericmore mulilingual and long-text data RefinedWeb [269], deduplicated PE [108],Maulilingual; Vision; MHA, SiU, RPE, FlashAtention, ZeR2
OpenELM [241]270M; 450M; 1.1B;3B2024.4Pre-trainGenericpartial RedPajama [67], partial Dolma v1.6 [315]No biases in FC layers; Pre-norm: RMSNorm; Pos encoding RoPE; Atention: GQA; FFN: SwiGLU; Tokenizer: LLaMA-style
MobiLlama[36]0.5B;0.8B2024.2Pre-trainGenericLLM360 Amber 3GQA; SwiGLU; Parameter-sharig
MobileLM [23]125M,; 350M2024.2Pre-trainGenericUnknow (1 tokens)iG N, ep and thin achitectues, eeding sharing, and grouped quy attenion
Cerebras-GPT [84]111M;256M; 590M; 1.3B;2.7B;6.B;>2023.4Pre-trainGenericPile [108]MHA; GELU; Maximal Update Parameterization
Pythi [31]14M:70M:160M:410M; 1B;1.4B;2.8B;6.9B;>2023.4Pre-trainGenericPile [108]MHA; GELU; Flash Atention [74]; RoPE [318]; ZeRO [286]
BLOOM2 [181]202.11 Pre-trainGenericR0OTS [10] ad 1 programming languges
Galactica [330]125M, 1.B; 6.7B; >2022.1Pe-tranScientificOpen-acces scientic materils (16bB tokens) but not releaseedMHA; GLU Laed Positinalmbedi
OPT [440]125M;350M;1.3B; 2.7B; 5.7B2022.5Pre-trainGenericPile [108] and Pushhift.io Reddit [24]MHA; ReLU
XGLM [209]1.7B; 2.9B;>2021.12Pre-trainnGenericCC100-XL-
GPT-Neo [33]125M; 350M; 1.3B; 2.7B2021.5Pre-trainGenericPil [108]
Megatron-gpt2 [310]355M; 2.5B;>2019.9Pre-trainGenericWikipedia[83], C-Stories [341], RealNew [430], OpenWebtext-
MINITRON [252]4B;>2024.7Distilaion;Generic8T tokens inNemotron-4[266]LR WSD Scheduler
Orca 2 [247]7B2023.11id1Pruning DistillationGenericOrca 2 datasetLLaMA-2-B based; prompt erasing
Orca[251]13B2023.6DistilationFLAN-v2 [225]From ChatGPT and GPT4, Explanation tuning; Progressive Learning
MINIMA [434]3B2023.11 DistilationGenericPie [108], Wudao [42] GitHub [67]From Llama-2-7B, Zero2, Pash Attention, Optimal teacher size
Dolly-v2 [686]3B; 7B;>2023.4Instruction tuningGenericDatabricks-dlly-15k68]6]from pythia
LaMini-LM [171]61M-7B2023.4DistilatonGenericLaMini instruction dataseta collection of SLMs distilld from ChatGPT-generated 2.58M instructions.
Specialized FlanT5 [105]]250M; 760M; 3B2023.1Instruction TuningGeneric (math)GSM8KBase modelis FlanT5
", + "page_idx": 33 + }, + { + "type": "text", + "text": "(2) The choice of activation function should balance model capability and efficiency. ReLU, known for its efficiency, introduces greater sparsity to the model, which facilitates faster coefficient calculations for inference acceleration. In contrast, SwiGLU’s parameters are learned during training, allowing the model to dynamically adapt to diverse tasks and datasets, thereby enhancing model capabilities and establishing it as a state-of-the-art option. SiLU, situated between these two, is favored for its balance of computational efficiency and model performance. ", + "page_idx": 34 + }, + { + "type": "text", + "text": "(3) RMS normalization is commonly used than layer normalization due to its reduced computational demands. ", + "page_idx": 34 + }, + { + "type": "text", + "text": "A basic introduction to these options is provided in Section 2. Apart from component choices, there are notable innovations in architecture for SLMs: ", + "page_idx": 34 + }, + { + "type": "text", + "text": "• Mobilellm [223] highlights that deeper models are more effective than wider ones for improving performance. • Embedding sharing [440] is crucial as embedding layers often constitute over $2 0 \\%$ of a model’s parameters—for example, with 512 dimensions and a $3 2 \\mathrm { k }$ vocabulary, each layer holds 16M parameters in a 125M-parameter model. Smaller models often reuse these weights for both input and output layers, enhancing efficiency and compactness. • Layer sharing [223] increases hidden layers in small Transformer models without additional storage costs. • Shared FFNs [336] make up about $6 5 \\%$ of all trainable parameters, with attention mechanisms and heads accounting for the rest. Sharing FFN parameters across all transformer layers of an SLM is proposed to increase efficiency. • Architecture search ahead of pre-training. PhoneLM [417] proposes a principle for constructing on-device small language models: searching for a resource-efficient architecture on a given hardware to optimize the speed-capacity trade-off before pretraining. This approach inspires the tailored selection of architectural components for on-device SLMs, based on specific compositional requirements such as computing efficiency, model capability, and safety. ", + "page_idx": 34 + }, + { + "type": "text", + "text": "A detailed description of these architectural designs can be found in Section 3.1. ", + "page_idx": 34 + }, + { + "type": "text", + "text": "5.1.2 Training Datasets. From Table 7, we can observe a set of widely used training datasets in SLM development. We provide the details below: ", + "page_idx": 34 + }, + { + "type": "text", + "text": "• Pile [108]: It comprises 22 smaller, high-quality diverse corpora from various domains, such as Pile-CC, PubMed Central, ArXiv, GitHub, and FreeLaw, designed to offer a comprehensive foundation for language model training. The dataset contains 207 billion tokens and totals 825 GB. \n• C4 (Colossal Clean Crawled Corpus) [284]: This dataset includes 350 billion tokens, representing a cleaned version of the Common Crawl web corpus, intended to capture a wide snapshot of the internet 4. \n• The Stack [174]: It contains 6 trillion tokens of source code from over 300 programming languages, useful for developing code-centric AI applications. Python-edu in smollm-corpus [27] consists of Python files that are scored 4 or more by the educational code model and are extracted from the stack-v2-train dataset. \n• StarCoder [195]: It features 35 billion tokens, predominantly Python code, aimed at programming language understanding and generation. \n• RedPajama [67]: This dataset encompasses 1.2 trillion tokens derived from over 100 billion text documents, processed using the CCNet pipeline to ensure a rich collection of web texts. \n• RefinedWeb [269]: This dataset includes 5 trillion tokens of high-quality, extensively filtered web data, offering a valuable resource for training web-aware models. \n• PushShift.io Reddit [24]: A around 5 billion tokens resource for social media data collection, analysis, and archiving, specifically of Reddit data, aiding research into social media dynamics. \n• CulturaX [257]: It comprises 6.3 trillion tokens across 167 languages, supporting the development of models with extensive linguistic and cultural understanding. \n• FineWeb [268], a large-scale (15-trillion tokens, 44 TB disk space) dataset for LLM pretraining. FineWeb is derived from 96 CommonCrawl snapshots. FineWeb-Edu is a subset of FineWeb constructed using scalable automated high-quality annotations for educational value. ", + "page_idx": 34 + }, + { + "type": "text", + "text": "", + "page_idx": 35 + }, + { + "type": "text", + "text": "From the analysis of these datasets, we can derive several critical insights regarding the development of SLMs: (i) Data quality is crucial for training effective SLMs, involving sophisticated filtering like removing duplicates or irrelevant content, often with another LLM’s help. For example, the TinyStories corpus [96] is tailored for simplicity, ideal for training models to handle straightforward narratives. RedPajama-V2 [67] uses the CCNet pipeline to process 30B documents, providing quality signals and IDs for creating a 20B deduplicated dataset. (ii) Code Data: Source code constitutes a significant component of valuable data for training models, particularly because of its structured nature and logical content. Training on code data enhances a model’s reasoning capabilities and supports its ability to generalize across multiple natural languages, which is crucial for applications requiring robust problem-solving and interpretation skills in diverse coding environments [17, 104, 120, 236] ", + "page_idx": 35 + }, + { + "type": "text", + "text": "5.1.3 Training Algorithms. To enhance the alignment of SLMs with desirable properties such as safety and reasoning, training algorithms, particularly during the fine-tuning phase, are crucial in evolving pre-trained SLMs. ", + "page_idx": 35 + }, + { + "type": "text", + "text": "• Direct Preference Optimization (DPO) [283] presents a simpler alternative to RLHF for optimizing language models based on human preferences, preventing explicit reward modeling and reinforcement learning. Instead, DPO modifies log probabilities of responses with a dynamic weighting mechanism to prevent model degradation common in probability ratio-focused methods. The DPO loss function is: ", + "page_idx": 35 + }, + { + "type": "text", + "text": "$\\begin{array} { r } { \\mathcal { L } _ { D P O } ( \\pi _ { \\theta } ; \\pi _ { \\mathrm { r e f } } ) = - \\mathbb { E } _ { ( x , y _ { w } , y _ { l } ) \\sim D } \\left[ \\log \\sigma \\left( \\beta \\log \\frac { \\pi _ { \\theta } ( y _ { w } | x ) } { \\pi _ { \\mathrm { r e f } } ( y _ { w } | x ) } - \\beta \\log \\frac { \\pi _ { \\theta } ( y _ { l } | x ) } { \\pi _ { \\mathrm { r e f } } ( y _ { l } | x ) } \\right) \\right] } \\end{array}$ where $\\pi _ { \\theta }$ is the policy being optimized, $\\pi _ { \\mathrm { r e f } }$ is the reference policy, $D$ includes tuples $( x , y _ { w } , y _ { l } )$ , $\\sigma$ is the sigmoid function, and $\\beta$ scales the log-ratios between $\\pi _ { \\theta }$ and $\\pi _ { \\mathrm { r e f } }$ , guiding the model towards human-preferred outputs. • Reinforcement Learning from Contrast Distillation (RLCD) [405] aims to calibrate generative SLMs/LLMs towards embodying harmless and beneficial characteristics. The process starts with an unaligned LM and initial prompts, which are modified into two variants ${ p + }$ and $\\hbar -$ , intended to promote and suppress, respectively, attributes like helpfulness and harmlessness. Upon inputting these prompts, the LM generates outputs $^ { o + }$ and $o -$ , with $^ { o + }$ automatically designated as the preferred response. This automation speeds up training by avoiding additional evaluative scoring. The training continues under the RLHF framework. • Conditioned Reinforcement Learning Fine-Tuning (C-RLFT), by OpenChat [356], enhances model performance by incorporating low-quality data during SFT. C-RLFT leverages varied data qualities with simple rewards (e.g., expert data at 1 credit, sub-optimal at 0.1), using distinct prompt tokens to condition data sources, eliminating costly human feedback. Similarly, Data Mix [274] trains on English text in three stages, reducing noisy web data progressively in each stage in favor of higher-quality data. • Explanation Tuning, proposed by Orca [251], addresses the limitations of standard instruction-based fine-tuning, which often restricts SLMs to style imitation rather than reasoning. It uses system prompts with instructions to direct GPT-4 to produce detailed explanations or perform step-by-step reasoning. The resulting instructions and the responses are used as a dataset for fine-tuning SLMs to have better ability of reasoning. ", + "page_idx": 35 + }, + { + "type": "text", + "text": "• Progressive Learning, proposed by Orca [251], aims to bridge the capability gap between Orca and the more capable GPT-4. It starts with training on five million data points from ChatGPT, followed by one million from GPT-4. Research suggests that an intermediate-level teacher can improve distillation effects, enabling a stepwise learning approach where students start with simpler examples and gradually move to more complex ones, receiving improved reasoning and explanations from a more advanced teacher. \n• Prompt Erasing introduced by Orac 2 [247], is a distillation strategy designed to enhance the independent reasoning capabilities of student SLMs. In this approach, a more capable teacher LLM is given intricate prompts intended to elicit specific strategic behaviors and more precise outcomes. During the training phase, the SLM is exposed only to the task instruction and the resulting behavior, without access to the original intricate prompts that initiate such responses. This technique, known as Prompt Erasing, positions the student model as a cautious reasoner because it not only learns to perform specific reasoning steps but also develops strategies for approaching tasks at a higher level. \n• Maximal Update Parameterization $( \\mu \\mathbf { P } )$ optimizes control initialization, layer-wise learning rates, and activation magnitudes to ensure stable training regardless of model layer widths. This method enhances training stability and allows the same optimizer settings, especially learning rates, to be used across different model scales. For instance, Cerebras-GPT [314] employs $\\mu \\mathrm { P }$ to train its models efficiently. ", + "page_idx": 36 + }, + { + "type": "text", + "text": "5.1.4 Model Performance. To compare the performance of SLMs, we have extracted experimental results from two recent and concurrent studies published in June 2024, OLMo [116] and MobiLlama [336], and the recently proposed edge-device Llama 3.2 1B & 3B in September 2024 5. The extracted results are merged and shown in Table 8. From the table, we can find that the following evaluation benchmarks are commonly used: ", + "page_idx": 36 + }, + { + "type": "text", + "text": "(1) MMLU [134]: Evaluate broad knowledge across diverse fields such as humanities, science, technology, engineering, and management. It includes multiple-choice questions covering 57 tasks ranging from elementary mathematics to US history, computer science, law, and beyond, with a total of 14K test samples. \n(2) HellaSwag [429]: Assesses the model’s ability to select the correct ending to scenarios from multiple options, testing common sense reasoning, including 10K test samples. \n(3) ARC [65]: The AI2’s Reasoning Challenge (ARC) dataset features multiple-choice science exam questions for grades 3 to 9, divided into Easy and Challenge partitions, with the latter containing more complex questions necessitating reasoning. Most questions offer four answer choices. ARC includes a supporting knowledge base of 14.3M unstructured text passages, with 1.17K test samples in ARC_Challenge and 2.25K in ARC_Easy. \n(4) PIQA [32]: A commonsense reasoning dataset designed to evaluate the physical knowledge of NLP models. It presents questions (goals) that require physical commonsense for correct resolution, alongside two detailed response options (sol1 and sol2). The dataset comprises 3,000 test samples. \n(5) Winogrande [294]: a dataset structured as a fill-in-the-blank task with binary options, designed to assess commonsense reasoning. The dataset includes 1,767 test samples by default splits. ", + "page_idx": 36 + }, + { + "type": "text", + "text": "Accuracy is used as the evaluation metric in the table. Open Language Model (OLMo) [116] is publicly available with its training data and code 6. MobiLlama [336] is a general-purpose SLM designed from scratch, available in 0.5B and 0.8B versions. It adopts a unique approach by using a shared FFN across all transformer blocks, enhancing efficiency. MobiLlama also show high efficiency on diverse hardware (Table 9). ", + "page_idx": 36 + }, + { + "type": "table", + "img_path": "images/48eac85984db214f1239d2587a5c9212bbe0e83f4df0523301ac0d5c88ed7b07.jpg", + "table_caption": [ + "Table 8. Performance of Various SLMs on Common Benchmarks: data from MobiLlama [336], OLMo [116], and Llama 3.2. " + ], + "table_footnote": [], + "table_body": "
Model Size RangeModelMMLUHellaSwagARCPIQAWinogrande
<1Bgpt-neo-125m26.030.323.062.551.8
tiny-starcoder-170M26.828.221.052.651.2
cerberas-gpt-256m26.829.022.061.452.5
opt-350m26.036.723.664.752.6
megatron-gpt2-345m24.339.224.266.953.0
LiteLlama26.238.524.967.749.9
gpt-sw3-356m25.937.123.664.953.0
pythia-410m27.340.926.267.253.1
xglm-564m25.234.624.664.953.0
Lamini-GPT-LM 0.59B25.531.624.263.947.8
MobiLlama 0.5B26.552.529.572.057.5
MobiLlama 0.8B26.954.130.273.257.5
StableLM 1.6B-68.243.874.0-
Pythia 1B-44.733.169.1-
TinyLlama 1.1B-58.734.871.1-
OLMo-1B-62.534.573.7-
OLMo 1.2B25.962.534.5-58.9
Boomer 1B25.431.622.3-51.0
Pythia-Dedup 1B24.349.629.1-54.0
Falcon-RW 1B25.463.135.1-61.9
Cerebras-GPT 1.3B26.738.526.1-53.6
Lamini 1.3B28.538.126.6-50.6
OPT1.3B24.654.529.6-59.7
GPT-NEO 1.3B24.848.531.3-57.1
Pythia-Deduped 1.4B25.555.032.656.9
MobiLlama 1.2B24.863.034.662.0
Gemma 2 2B57.861.176.7-
Llama 3.2 1B49.341.259.4
Llama 3.2 3B63.469.878.6-
Phi-3.5-mini 3.8B69.081.487.4-
Pythia 6.9B-63.844.175.1
Falcon-7B-75.947.578.5
LLaMA 7B-76.244.577.2
Llama 2 7B-76.848.576.7
MPT-7B-77.646.577.3
RPJ-INCITE-7B70.342.876.0
OLMo-7B76.448.578.4-
-
", + "page_idx": 37 + }, + { + "type": "table", + "img_path": "images/7b09e9822fef32fc9cbff258819269c0c4e3644175f3124d16a3d7db4ff3a24f.jpg", + "table_caption": [ + "Table 9. Comparison of MobiLlama 0.5B with large-base 1.2B, Llama2 7B, and Phi2-2.7B in terms of efficiency and resource consumption on low-end hardware devices [336]. " + ], + "table_footnote": [], + "table_body": "
PlatformModel#ParamsPrecisionAvg Tokens/SecAvg Memory ConsumptionAvg Battery Consumption /1k TokensCPU Utilization
RTX2080TiLlama27Bbf1614.8527793 MB135.51 mAH31.62%
Phi22.7Bbf1632.1912071MB59.13 mAH24.73%
large-base1.2Bbf1650.616254MB18.91 mAH18.25%
MobiLlama0.5Bbf1663.383046 MB8.19mAH14.79%
CPU-i7Llama27B4bit5.964188 MB73.5 mAH49.16%
Phi22.7B4bit22.141972MB27.36 mAH34.92%
large-base1.2B4bit29.231163MB10.81 mAH30.84%
MobiLlama0.5B4bit36.32799 MB4.86 mAH24.64%
Snapdragon-685Llama27B4bit1.1934287 MB10.07 mAH77.41%
4bit2.8271893 MB16.01 mAH567.15%
lae-be2.B
MobiLlama0.5B4bit7.021770MB5.32mAH13.02%
", + "page_idx": 37 + }, + { + "type": "text", + "text": "From Table 8 and 9, we can conclude that: (1) MobiLlama 0.5B and 0.8B demonstrate that a shared FFN design can facilitate excellent performance in SLMs with fewer than 1B parameters, even rivaling some models in the 1B-3B range. (2) The performance of MobiLlama 1.2B and OLMo 1.2B illustrates that advanced SLM architectures incorporating high-quality data, SwiGLU, non-parametric layer normalization, RoPE, BPE tokenization, and a shared FFN design can achieve competitive results among models with 1B-3B parameters. (3) MobiLlama demonstrates that SLMs can significantly reduce resource consumption on low-end hardware devices, achieving comparable performance while using a smaller proportion of battery power, memory, and GPU utilization. (4) Popular techniques such as pruning, quantization, distillation, SFT, and DPO, utilized in Llama 3.2, have substantially enhanced SLM performance. ", + "page_idx": 38 + }, + { + "type": "text", + "text": "Insights: We draw several key insights from the development of generic-domain SLMs: ", + "page_idx": 38 + }, + { + "type": "text", + "text": "• Typical SLM architectures generally incorporate features such as GQA, gated FFN with SiLU activations, RMS normalization, deep and thin architectures, embedding sharing, layer sharing, and shared FFNs. \n• Although these components are widely used, current research has not yet thoroughly explored their specific contributions within SLMs. \n• The importance of data quality in SLM research is increasingly emphasized, often considered more critical than the quantity of data and model architectural configurations. \n• Post-pretraining, meticulous fine-tuning is often required to enhance the safety of SLMs, involving strategies to distill \ncapabilities from LLMs better. Common strategies include explanatory tuning, progressive learning, and prompt erasing. ", + "page_idx": 38 + }, + { + "type": "text", + "text": "5.2 Domain-Specific SLMs ", + "text_level": 1, + "page_idx": 38 + }, + { + "type": "text", + "text": "Overview. The capability of LLMs to generate human-like text has significantly captured public interest, highlighting their potential in the field of general artificial intelligence. However, inefficiencies persist when integrating LLMs into specialized applications due to resource constraints. Unlike the need for extensive general knowledge and capabilities, domain-specific SLMs should focus on well-defined tasks and expertise pertinent to specific fields. For instance, specialized models can significantly impact biomedical research and healthcare by fine-tuning for interpretable mental health analysis, or assisting humans in legal dialogues and financial tasks through instruction tuning, showcasing their potential transformative influence. Given the limited number of SLMs specialized in specific domains, we demonstrate some existing SLMs individually across healthcare, science, finance, and law domains. ", + "page_idx": 38 + }, + { + "type": "text", + "text": "5.2.1 SLMs for Healthcare. Hippocrates [3] is an open-source medical language model framework with free access to its data, codebase, checkpoints, and protocols 7. It utilizes a medical pre-training corpus from Medical Guidelines, PMCPatients [452], and PubMedQA-contexts [163], totaling about 300M tokens. The Hippo series, a 7B model, undergoes continuous pre-training, instruction tuning, and RLHF. Fine-tuned on Mistral and Llama-2, it rivals 70B models in some evaluation. For example, Hippo-Mistral 7B scores $5 9 . 9 \\%$ on MedQA, outperforming Meditron 70B [55] at $5 8 . 5 \\%$ . BioMedLM [34], a 2.7B GPT-style model trained on PubMed content [108], excels in biomedical QA after fine-tuning, achieving $5 7 . 3 \\%$ on MedMCQA (dev) and $6 9 . 0 \\%$ on MMLU medical genetics exams. Available on Hugging Face Hub 8. AdaLM [414] enhances domain-specific SLMs by continuing training on a medical-focused SLM atop a general pretrained model. It emperically validates adaptation then distillation is the most effective distillation way. AdaLM modified a BERT_base model (12 layers, 768 hidden size) [83] with a 16GB PubMed 9 abstracts corpus. MentalLLaMA [406] introduces the first IMHI dataset for mental health analysis and the first open-source LM for explainable analysis on social media. The IMHI is compiled from ten sources, totaling 105K samples. Expert-designed mental health analysis prompts are employed via ChatGPT for explanations. Based on Llama-2-7B, MentalLLaMA is instruction-tuned on this data and matches top methods in accuracy on the IMHI test set. Project code is available at 10. ", + "page_idx": 38 + }, + { + "type": "table", + "img_path": "images/0a6052d959b55329f431979166c399bb48eb201513690234f56f7bc1ed2ca143.jpg", + "table_caption": [ + "Table 10. High-level Overview and Training Details of Specific-domain Small Language Mode " + ], + "table_footnote": [], + "table_body": "
Model#ParamsDateBase ModelsDomainTraining DatasetsTrain Techniques
Hippocrates [3]7B2024.4Instruction Tuning (LLaMA2 [339], Mistral [160])HealthcareMedical Guidelines, PMC-Patients [452], and PubMedQA- contexts [163]Continual pre-training, in- struction tuning, RLHF
BioMedLM [34]2.7B2024.3From scratch and Fine- tuningHealthcarePubMed [108]FSDP
BioMistral [178]7B2024.2Mistral [160]BiomedicinePubMed [108]Continual pretraining
MentaLLaMA [406]7B; 13B2023.9Instruction (LLaMA2 [339]) TuningHealthcareIMHI datasetRLHF; PEFT
AdaLM [414]34M2021.6Distiltion (BERT [83] or MiniLM [362])HealthcarePubMed [108]Continual pretraining, Adapt-and-Distill
Rho-1 [210]1B;7B2024.4TinyLlama-1.1B [439], Mistral-7B [160]Science (Math- ematic()cid)OpenWebMath [267]Continual pretraining
ChemLLM [436]7B2024.4Instruction Tuning (In- ternLM2)Science (Chem- istry)ChemDataContinual training and fine-tuning
SciGLM [435]6B2024.3Instruction Tuning (ChatGLM-6B)ScienceSciInstructSelf-reflective instruction annotation
Llemma [22]7B2023.10Code Llama 7BScience (Math- ematics)id)Proof-Pile-2 [22]Continual pre-training
OceanGPT [30]2B; 7B; 14B2023.10LLaMA2 [339]Science (Ocean)Open-access litera- ture, DoINSTRUCTContinual pre-training,In- struction tuning
AstroLLaMA [258]7B2023.9Tuning (LLaMA-2-7B)Science (As- tronomy)arXiv abstracts from KaggleContinual trining
DARWIN [388]7B2023.8LLaMa 7BScience (physics, chem- istry, and material)SciQ [375], Scien- tific paper[388], FAIR [388]Fine-tuning
MindLLM [412]1.3B; 3B2023.10From-scratch and Super- vised Fine-tuningLaw, FinancePile [108], Wudao [424], CBooksTrain on Bilingual Mixture Data, SFT
", + "page_idx": 39 + }, + { + "type": "text", + "text": "", + "page_idx": 39 + }, + { + "type": "text", + "text": "5.2.2 SLMs for Science. SciGLM [435] is a collegiate-level scientific language model overcoming data scarcity with a self-reflective instruction annotation framework. Utilizing GPT-4 [2], it generates detailed reasoning for unlabeled scientific problems through three steps with designed prompts in Table ??: (i) CoT prompt for step-by-step answers (Prompt 1), (ii) reflective prompt for correcting errors (Prompt 2), and (iii) integrating the correct answer for clarity (Prompt 3). The SciInstruct dataset spans physics, chemistry, math, and proofs, tuning ChatGLM-6B’s [93] reasoning abilities. SciGLM boosts the base model’s (ChatGLM3-6B-Base) scientific QA accuracy by $3 . 0 6 \\%$ on benchmarks such as CEval-Hard [149], CEval-Sci [149], MMLU-Sci [134], SciEval [319], and SciBench [363]. Llemma [22], an SLM derived from CodeLlama [292], specializes in mathematical reasoning. By continual pre-training, its 7B model is evolved on 55B tokens from the newly created Proof-Pile-2 dataset, which includes scientific papers, math web content, and mathematical code up until April 2023, to enhance few-shot capabilities. It excels in mathematical benchmarks like MATH [134], GSM8k [66], OCWCourses [186], MMLU-STEM [134], and SAT, surpassing all comparable open-weight models. ChemLLM [436] is a chemistry-focused language model that utilizes its proposed ChemData, a dataset designed for instruction tuning that transforms chemical data into dialogue format for training. ChemLLM is based on InternLM2-Base-7B [40], initially enhancing its language skills with a multi-corpus of 1.7 million Q&A pairs from Hugging Face, then fine-tunes using ChemData and the multi-corpus to maintain its general capabilities. ChemLLM excels in interdisciplinary chemical tasks within the proposed ChemBench, achieving results comparable to GPT-4 [2] and outperforming GPT-3.5 with a score of 92.6 in Mol2caption, slightly below that of GPT-4. AstroLLaMA [258] introduces an astronomy-focused language model. Based on Llama-2-7B [339] and enhanced via continual pre-training, it has been developed using over 300K astronomy abstracts from arXiv 11. AstroLLaMA achieves $3 0 \\%$ lower perplexity than Llama-2-7B, indicating substantial improvements in domain adaptability. AstroLLaMA is available 12 for tasks such as automated paper summarization and conversational agent development in astronomy. ", + "page_idx": 39 + }, + { + "type": "table", + "img_path": "images/6095b11a617839e4830381c5584b8c024a668a165c10e234f2a66366d522a074.jpg", + "table_caption": [ + "Table 11. Prompts for self-reflective instruction annotation framework " + ], + "table_footnote": [], + "table_body": "
Chain-of-Thought[Prompt 1] The following input consists of a science problem, please generate an elaborate step- by-step solution to the problem.
Reflective Generation[Prompt 2] The following input comprises a science problem and a corresponding solution. However, this solution is incorect, please reflect on its errors and then generate a correct step-by- step solution to the problem.
Prompt Answer[Prompt 3] The following input consists of a science problem, a corresponding solution, and the real answer. The given solution is incorrect, please reflect on its errors and then generate a correct step-by-step solution to the problem based on the real answer.
", + "page_idx": 40 + }, + { + "type": "text", + "text": "", + "page_idx": 40 + }, + { + "type": "text", + "text": "5.2.3 SLMs for Finance and Law. MindLLM [412] introduces a bilingual (Chinese and English) SLM, pretrained on the Pile dataset [108] for English and WuDao [424], CBook, and various Chinese web content for Chinese. Bilingual training enhances capacity and prevents catastrophic forgetting. It explores specific domains such as law and finance through supervised fine-tuning. In law, it utilizes publicly available legal data, scenario-based Q&A from LaW-GPT [139], and NLP-based legal tasks from DISC-LawLLM [427]. In finance, EastMoney 13 is selected as the data source. ", + "page_idx": 40 + }, + { + "type": "text", + "text": "Insights: We draw several key insights from the development of domain-specific SLMs: ", + "page_idx": 40 + }, + { + "type": "text", + "text": "• Adapting SLMs to domain-specific data is a common practice for acquiring domain-specific SLMs, prompting many to create their datasets [258, 406, 435, 436]. These datasets are often annotated using LLMs like GPT-4 and used to continual pre-train or fine-tune general models such as LLaMa-2-7B [3, 34]. To ensure the data quality, specialized annotation frameworks are developed, such as SciGLM [435]. \n• In domains with abundant corpora, training a general model from scratch and fine-tuning it using SFT [412] is practical. Bilingual settings during training can prevent catastrophic forgetting. \n• Distilling general capabilities from LLMs while integrating domain-specific knowledge from corpora is another method for developing domain-specific SLMs [414]. ", + "page_idx": 40 + }, + { + "type": "table", + "img_path": "images/d7614a38b998519482b9ad9ab776369620dacab6d03d9d1eb88cbd8282792b50.jpg", + "table_caption": [ + "Table 12. SLMs help LLMs in different aspects " + ], + "table_footnote": [], + "table_body": "
AspectRepresentative workKey point
SL fo ealeAPRICOT [343]Trains aalxiliy del topdic 's cnfienc ui only textual inputs and outputs.
POLAR [450] Hallucination Detector in NMTUsing a BERT model to calibrate LLM responses. Using lightweight classifiers to detect hallucinations in Neural Ma-
[399]chine Translation.
SuperICL [393]
SLM Plug-ins provide confidence and prediction for contextual ex- emplars to aid in-context learning.
SuperContext [408]Specifi c SLM enhances ICL by providing confidence and predictions to overcome out-of-domain challenges.
Self-RAG [18]A proxy model labels special tokens during RAG data generation for fi ne-tuning.
SKR [365]Training a small model to detect its self-knowledge for better use of external knowledge.
SlimPLM [325]Detecting missing knowledge in LLMs with a slim proxy model, enhancing the LLM's knowledge integration.
In-Context RALM [287]Training a RoBERTa-based reranker for top-k BM25 documents using LM signals to enhance LM gains.
CRAG [401]Training a lightweight evaluator to assess document quality and trigger actions based on confidence levels.
GSR [148]Training a Generative Sub-graph Retriever (GSR) for relation chain in RAG when retrieving from knowledge graphs.
SLM for Prompt Extraction [443]Small model trained to predict confidence of extracted system
exratig L MPrompt Stealing Attacks [297]
Output2prompt [433]Using a sparse encoder-decoder-based T5 small model to reverse-
Model Purifying [197]engineer LLM inputs from outputs. Using SLMs to ensemble with LLMs, mitigating negative effects
from uncurated data.
Weak-to-Strong Search [453]Framing LLM alignment as a test-time greedy search to maximize
SLCoLM [327]the log-probability difference between tuned and untuned SLMs. Using SLM predictions to guide the LLM generation process in
SLM for LLM applications SLM for LLMHEF [413]Chinse n ang,
Contrastive decoding [198]Enhancing text quality by maximizing the difference between expert
Llama Guard [153]and amateur log probabilities. An LLM-based input-output safeguard model geared towards
safetySLM as Guardian [177]Human-AI conversation use cases. A smaller LLM for both harmful query detection and safeguard
response generation.
SLM for LLM evaluationSLIDE [449]Utilizing SLMs trained via contrast learning to distinguish and score responses in dialogue scenarios effectively.
Kuhn et al. [175]An SLM is used as the natural language inference classifier.
SelfCheckGPT [240]An SLM is used to calculate BERTScore.
Factscore [244]An SLM functions as the natural language inference classifier.
", + "page_idx": 41 + }, + { + "type": "text", + "text": "6 SLMS FOR LLMS ", + "text_level": 1, + "page_idx": 42 + }, + { + "type": "text", + "text": "In this section, we provide a comprehensive review of how SLMs enhance LLMs. While LLMs are robust, they face challenges such as latency during inference, labor-intensive fine-tuning, noise filtration issues in retrieval, suboptimal zero-shot performance, copyright infringement risks, and evaluation difficulties. SLMs can help LLMs to alleviate these issues. Research in this field can be categorized into five primary areas: (i) using SLMs for reliable LLM generation; (ii) extracting prompts for LLMs using SLMs; (iii) fine-tuning LLMs with SLMs; (iv) applying SLMs in LLM applications; (v) utilizing SLMs as guardian; and (vi) evaluating LLMs using SLMs. A summary of representative work in each category along with their key point is given in Table 12. Next, we introduce each category in detail. ", + "page_idx": 42 + }, + { + "type": "text", + "text": "6.1 SLM for Reliable LLM Generation ", + "text_level": 1, + "page_idx": 42 + }, + { + "type": "text", + "text": "Although LLMs generally produce fluent and convincing text, they can occasionally generate erroneous responses [159, 349]. Additionally, LLMs are susceptible to privacy breaches from untrusted data collection, which can erode user trust or cause harm. To address these issues, recent studies have focused on using SLMs to calibrate LLM confidence, detect hallucinations, and improve retrieval-augmented LLMs and their reasoning capabilities. ", + "page_idx": 42 + }, + { + "type": "image", + "img_path": "images/fd9856ea9edd8abf68bb3993615db91a48a01c7506699c07a2722ea28ad8f21a.jpg", + "image_caption": [ + "Fig. 20. Architectures of Enhancing Calibration and Hallucination Detection of LLMs. " + ], + "image_footnote": [], + "page_idx": 42 + }, + { + "type": "text", + "text": "Enhancing Calibration and Hallucination Detection of LLMs As illustrated in Figure 20 (a), to calibrate LLMs, an SLM processes both questions and LLM-generated answers to predict calibrated confidence. This training involves minimizing the discrepancy between estimated calibration error and predicted confidence score. For instance, APRICOT [343] uses an auxiliary DeBERTaV3 model [131] to assess LLM confidence in open-question scenarios, aiming to improve uncertainty expression and response adjustment. Similarly, POLAR [450] has developed a self-supervised approach that generates risk scores for each response to calibrate LLM confidence, utilizing a small BERT model [83] to synchronize LLM outputs with other weak supervision sources. As shown in Figure 20 (b), for hallucination detection, an SLM analyzes LLM internal states to output the likelihood of hallucination. This process uses supervised data obtained by testing the knowledge boundaries of the LLM. In neural machine translation, Xu et al. [399] develop a lightweight detector that analyzes token contributions to hallucinations, outperforming both model-free baselines and quality estimation classifiers. Furthermore, SAPLMA [21] found that LLM internal states can signal the truthfulness of statements, with a small BERT classifier trained to differentiate correct from incorrect predictions achieving accuracies of $7 1 \\%$ to $8 3 \\%$ . ", + "page_idx": 42 + }, + { + "type": "text", + "text": "Enhancing Retrieval-Augmented Generation Generally, as shown in Figure 21, SLMs can also serve as proxy models to evaluate the familiarity of LLMs with user queries, determining whether LLMs need to retrieve additional information or can respond directly. For example, SlimPLM [325] is a small proxy model that assesses the necessity for LLM retrieval by generating heuristic answers. High-quality responses indicate that LLMs can handle queries independently, whereas lower-quality outputs require further retrieval. Additionally, Self-Knowledge Guided Retrieval (SKR) [365] enables SLMs to autonomously decide when LLMs should operate independently, based on their self-assessment of knowledge limitations. Further, SELF-RAG [18] improves the factual accuracy and quality of LLM outputs through on-demand retrieval and self-reflection. This method employs a small critic language model to issue reflective markers and make binary decisions regarding the need for further information retrieval. Moreover, some studies utilize SLMs to evaluate the relevance of retrieved documents. LongLLMLingua [162] employs SLMs to calculate the relevance of documents to a query $x ^ { q u e }$ using perplexity, as formalized by the equation: ", + "page_idx": 42 + }, + { + "type": "image", + "img_path": "images/a799fdedf2acbfe0cf778e6b9e31f6394c944c22af26e4e01b46328d0a6c4a24.jpg", + "image_caption": [ + "Fig. 21. Architecture of SLM as a Heuristic RAG Prober. Manuscript submitted to ACM " + ], + "image_footnote": [], + "page_idx": 42 + }, + { + "type": "text", + "text": "", + "page_idx": 43 + }, + { + "type": "equation", + "img_path": "images/ef74fcffda1a392094f0f94d29a585fc18aa9ad52d2ac41e1321d14a23c723e1.jpg", + "text": "$$\nr _ { k } = - \\frac { 1 } { N _ { c } } \\sum _ { i } \\log \\phi _ { ^ { \\mathrm { S L M } } } ( x _ { i } ^ { q u e } | x _ { k } ^ { d o c } ) , \\quad k \\in \\{ 1 , 2 , . . . , K \\}\n$$", + "text_format": "latex", + "page_idx": 43 + }, + { + "type": "text", + "text": "where $x _ { i } ^ { q u e }$ is the $i \\cdot$ -th token in the query sequence, $x _ { k } ^ { d o c }$ is the retrieved document, and $N _ { c }$ is the total number of tokens in the query. $ { p _ { \\mathrm { S L M } } }$ represents the probability generated by an SLM. CRAG [401] employs SLMs as evaluators of document relevance in the same way. RA-ISF [219] trains a small language model that checks the base LLM in self-knowledge, relevance judgment, and question decomposition. In addition, some research employs SLMs as re-rankers to refine the order of documents provided by initial retrieval efforts such as BM25 [291]. In-Context RALM [287] positions SLMs as rankers, optimizing the document sequence with a fine-tuning process on RoBERTa [218] as defined by the loss function: ", + "page_idx": 43 + }, + { + "type": "equation", + "img_path": "images/a0e58b835f756db84f4d3ab50e36df5b318a17cdc9bfb01a6fa698a1f2f3fd53.jpg", + "text": "$$\n\\operatorname* { m i n } _ { r a n k e r } \\sum _ { i = 1 } ^ { k } - \\log p _ { \\mathrm { r a n k } } ( d _ { i } | \\boldsymbol x _ { \\le s _ { j } } ) \\cdot p _ { \\theta } ( \\boldsymbol y | d _ { i } ; \\boldsymbol x _ { \\le s _ { j } } )\n$$", + "text_format": "latex", + "page_idx": 43 + }, + { + "type": "text", + "text": "where $x _ { \\leq s _ { i } }$ is a prefix sampled from the training data, $y = x _ { s _ { i } + 1 } , . . . , x _ { s _ { i } + s }$ represents the text to be generated in the next stride, $p _ { \\theta } ( y | d _ { i } ; x _ { \\le s i } )$ denotes the probability of the LLM generating $y$ given $d _ { i }$ and $x { \\le } s i$ , and $p _ { \\mathrm { r a n k } } ( d _ { i } | \\boldsymbol x _ { \\le s _ { j } } )$ is the ranking score of $d _ { i }$ . Lastly, some studies leverage SLMs to retrieve sub-graphs when utilizing knowledge graphs as external sources. Huang et al. [148] introduces the Generative Sub-graph Retriever (GSR), which employs SLMs to predict relation chains for answering questions, offering a cost-effective alternative to training LLMs. Specifically, it uses customized T5 (220M, 770M, and 3B) [284] as retrievers to enhance LLM readers, including Llama2-chat-7B [339] and Llama3-instruct-8B [94], on the WebQSP [418] and CWQ [324] datasets. ", + "page_idx": 43 + }, + { + "type": "text", + "text": "Enhancing Reasoning Capabilities of LLMs As illustrated in Figure 22, SLMs enhance LLMs reasoning by transferring task knowledge to in-context examples, effectively reducing hallucinations. While In-context Learning (ICL) generally handles few-shot learning ", + "page_idx": 43 + }, + { + "type": "image", + "img_path": "images/ae6045a43b98b5c6bb8da34d5ac3c583c0ff5d17ee9737e665173841d5bfaff3.jpg", + "image_caption": [ + "Fig. 22. SLM transfers knowledge into ICL. " + ], + "image_footnote": [], + "page_idx": 43 + }, + { + "type": "text", + "text": "with 16 to 32 examples, it struggles when faced with extensive supervised data. SLMs, specialized in task-specific training, complement the broader domain knowledge of extensively pre-trained LLMs. For example, SuperICL [393] incorporates SLMs as plugins for efficiently executing supervised tasks. It predicts labels for contextual examples and integrates these predictions with the input text and actual labels to enhance knowledge transfer, thereby boosting the understanding and responsiveness of LLMs. SuperContext [408] tackles challenges that LLMs encounter with new tasks and out-of-distribution data in natural language understanding by synergizing SLM outputs with LLM prompts during inference. This integration merges model predictions with their confidence levels, effectively leveraging SLM task-specific knowledge and LLM domain expertise. Furthermore, SLMs efficiently decompose complex reasoning by breaking tasks into simpler components, as demonstrated in [383]. This strategy increases efficiency and reduces deployment costs when SLMs and LLMs are used collaboratively, transforming complex tasks into manageable segments. ", + "page_idx": 43 + }, + { + "type": "image", + "img_path": "images/9c3657c5bb8abd7484009440e98895b181ebe7f9d445c79c6060797acd00bc03.jpg", + "image_caption": [ + "Fig. 24. SLM for LLM Prompt Extraction Paradigm. $M _ { S }$ denotes small language models and $M _ { L }$ denotes large language models. (a) SLM-based prompt estimation tries various attack prompts; $M _ { S }$ selects the most likely extracted one. (b) SLM-based Parameter Extractor identifies the type of input prompt. (c) SLM-based Model Inversion uses $M _ { S }$ to invert the LLM output back into the input. " + ], + "image_footnote": [], + "page_idx": 44 + }, + { + "type": "text", + "text": "", + "page_idx": 44 + }, + { + "type": "text", + "text": "Alleviate Copyright and Privacy Issues of LLMs LLMs pose significant security risks due to their tendency to memorize training data, leading to potential privacy breaches and copyright infringement. As depicted in Figure 23, SLMs can assist LLMs in addressing copyright and privacy concerns arising from online data collection. By training on ", + "page_idx": 44 + }, + { + "type": "image", + "img_path": "images/626c7e9d43b4aab04b75e0c85a0ebd44a849b1c90de29088e83b6acbc899b0f8.jpg", + "image_caption": [ + "Fig. 23. Architecture of SLM-based Data Protection " + ], + "image_footnote": [], + "page_idx": 44 + }, + { + "type": "text", + "text": "selectively curated data subsets, SLMs effectively reduce copyright infringement and privacy risks, although they are less effective than full-scale LLMs. To harness the combined benefits of both models, Li et al. [197] integrates untrusted LLMs with benign SLMs using the CP- $\\cdot \\Delta$ KL algorithm to mitigate adverse effects while preserving performance. The equation is: ", + "page_idx": 44 + }, + { + "type": "equation", + "img_path": "images/82acd32e9310bc792c3dd697686c96c5f1c2b71aadd2ce2266ccd1554e652fa2.jpg", + "text": "$$\np ( y | x ) = \\frac { p _ { l } ( y | x ) \\cdot p _ { s } ( y | x ) } { Z ( x ) }\n$$", + "text_format": "latex", + "page_idx": 44 + }, + { + "type": "text", + "text": "where $\\mathit { p _ { l } }$ and $\\mathbf { \\nabla } \\mathcal { P } \\boldsymbol { s }$ represent the probabilities from the large and small models, respectively, and $Z ( x )$ is the partition function. This integration results in the following ensemble algorithm: ", + "page_idx": 44 + }, + { + "type": "equation", + "img_path": "images/9bd4f68b8f9c3534da0d42f0c2d493cf2cc4ce5cd199e4fb28f21df6a636c011.jpg", + "text": "$$\nz _ { P } ( \\cdot | x ) \\propto \\alpha z _ { l } ( \\cdot | x ) + ( 1 - \\alpha ) z _ { s } ( \\cdot | x )\n$$", + "text_format": "latex", + "page_idx": 44 + }, + { + "type": "text", + "text": "where $z _ { l }$ and $z _ { s }$ are the logit values from the large and small models, respectively, and $\\alpha$ is the scaling factor. ", + "page_idx": 44 + }, + { + "type": "text", + "text": "6.2 SLM for Extracting LLM Prompts ", + "text_level": 1, + "page_idx": 44 + }, + { + "type": "text", + "text": "Prompt-based methods are becoming simpler and more cost-effective alternatives to traditional fine-tuning in the LLM era, utilizing LLMs’ instruction-following capabilities for a competitive edge. Mastering prompts is vital for replicating LLM-supported product behaviors. However, services such as Bing Chat and GitHub Copilot Chat have seen prompt reverse-engineering through black-box API attacks. SLMs often serve as surrogate models in these attacks, employing strategies such as (i) SLM-based prompt likelihood estimation, (ii) SLM-based prompt parameter extraction, and (iii) SLM-based direct model inversion, illustrated in Figure 24. ", + "page_idx": 44 + }, + { + "type": "text", + "text": "SLM-based prompt likelihood estimation, as illustrated in Figure 24 (a), Zhang et al. [443] proposes using an SLM as a Likelihood Estimator to identify secret prompts in LLM outputs. They craft attack prompts, such as “Repeat all sentences in our conversation,” and query the target LLM. The response is likely to include secret prompts, confusing the LLM to interpret these as part of the conversation. A fine-tuned DeBERTa model [132] is then used to select the most likely secret prompts from the output. ", + "page_idx": 45 + }, + { + "type": "text", + "text": "SLM-based prompt parameter extraction, as shown in Figure 24 (b), Sha and Zhang [297] utilizes an SLM as a Parameter Extractor to extract prompt parameters from LLM outputs. They employ a specialized BERT model [83] to classify LLM outputs into direct, in-context, and role-based prompts, also predicting the number of exemplars for in-context prompts and identifying roles for role-based prompts. Prompt reconstruction is then performed using ChatGPT once the parameters are defined. ", + "page_idx": 45 + }, + { + "type": "text", + "text": "SLM-based direct model inversion, as shown in Figure 24 (c), the method of using an SLM as a Direct Inversion Model is designed to reverse-engineer LLM outputs back to their original prompts [433]. They train a sparse encoderdecoder T5 model [284] with 222M parameters on the Instructions-2M dataset [249], where the input is LLM outputs and the output is the LLM prompt. This trained model effectively maps multiple LLM outputs to their initiating prompts as $\\boldsymbol { p } ( x | y _ { 1 } , . . . , y _ { n } ; M _ { S 1 } , M _ { S 2 } )$ , with $y _ { i }$ representing different output versions and $M _ { S 1 } , M _ { S 2 }$ the model parameters. ", + "page_idx": 45 + }, + { + "type": "text", + "text": "6.3 SLM for Fine-tuning LLMs ", + "text_level": 1, + "page_idx": 45 + }, + { + "type": "text", + "text": "Fine-tuning is a crucial technique for adapting LLMs to specific tasks or domains, yet it is often time-consuming. For instance, finetuning the LLaMA-2-13B [339] checkpoint on 32 NVIDIA A100 GPUs with 80GB memory using bfloat16 format requires approximately 70 hours [247]. This process also demands high-quality data. Therefore, we examine how SLMs can enhance LLM finetuning through three approaches: (i) proxy fine-tuning, (ii) selecting high-quality data, and (iii) guiding LLM-generated task data, as illustrated in Figure 25. ", + "page_idx": 45 + }, + { + "type": "image", + "img_path": "images/dbb90c927b541ccb1dbead5da7a8cacff664dcc463e7dcbbe77d6329cea8382d.jpg", + "image_caption": [ + "Fig. 25. SLM for LLM Fine-tuning. " + ], + "image_footnote": [], + "page_idx": 45 + }, + { + "type": "text", + "text": "SLMs as proxy models: SLMs can approximate the gradient of fine-tuning large-scale LLMs on target datasets, avoiding the costly fine-tuning process in terms of time and computational resources. As shown in Figure 25 (a), Emulated Fine-Tuning (EFT) [246] simulates both unsupervised pre-training and supervised fine-tuning stages across different scales by manipulating log probabilities. EFT, for example, combines base log probabilities from a 70B model with behavioral deltas from a 7B model—these deltas represent differences between fine-tuned and unfine-tuned SLMs, effectively emulating outcomes for the Llama-2 series. This method allows fine-tuning on smaller models such as Falcon-7B [10] while capturing most benefits of fine-tuning larger models such as Falcon-180B, benefiting applications such as dialogue, question-answering, and code generation. Similarly, Proxy-tuning [212] adjusts LLM predictions by adding the differences between the outputs of a fine-tuned small model and its untuned version to the LLM’s output vocabulary during decoding, maintaining the advantages of large-scale pre-training while integrating small-scale fine-tuning benefits. Moreover, SLMs can act as proxies for approximate LLM fine-tuning during decoding. Weakto-Strong Search [453] strategy frames the alignment of LLMs as a test-time greedy search, aiming to maximize the log-probability difference between small tuned and untuned models while sampling from the frozen large model. This approach serves as a dual-purpose method: (1) a compute-efficient model up-scaling strategy that circumvents direct tuning of the large model, and (2) an instance of weak-to-strong generalization that bolsters a strong model with weak test-time guidance. ", + "page_idx": 45 + }, + { + "type": "text", + "text": "", + "page_idx": 46 + }, + { + "type": "text", + "text": "SLMs play a role in selecting high-quality fine-tuning data for LLMs. Figure 25 (b) illustrates how SLMs within the same family as the LLM can identify training samples that are likely to be challenging, enhancing the training efficiency and generalization capability of the LLM. As demonstrated by Swayamdipta et al. [323] and further advanced by Mekala et al. [242], the learning percentage $L P ( i )$ is a metric used to curate high-quality datasets with hard samples: $\\begin{array} { r } { L P ( i ) \\ : = \\ : \\frac { P _ { i - 1 } - P _ { i } } { P _ { 0 } - P _ { n } } } \\end{array}$ where $P _ { i }$ represents the perplexity at the end of epoch-??, and $P _ { 0 }$ is the initial perplexity. A higher $L P ( i )$ early in training indicates significant learning in the initial epochs, highlighting the potential of these samples to enhance LLMs. SmallToLarge (S2L) [411] utilizes training loss trajectories from smaller models to guide data selection for larger models fine-tuning. Experimental results demonstrate that S2L significantly enhances data efficiency in SFT for mathematical problem-solving, reducing the required training data to just $1 1 \\%$ of the original MathInstruct dataset [428] to achieve performance comparable to that obtained using the full dataset. ", + "page_idx": 46 + }, + { + "type": "text", + "text": "SLMs enhance the quality of LLM-generated data for specific tasks. As depicted in Figure 25 (c), CROSSLM [79] promotes the local training of SLMs on client-specific private data to mitigate privacy risks associated with server-based LLMs. An SLM trained in this manner can guide the server-side LLM to produce high-quality synthetic datasets. Feedback from SLMs regarding the quality of this synthetic data serves as a supervisory signal, enhancing both the quality of LLM outputs and the utility of the data for further training. ", + "page_idx": 46 + }, + { + "type": "text", + "text": "6.4 SLM for LLM Applications ", + "text_level": 1, + "page_idx": 46 + }, + { + "type": "text", + "text": "LLMs are utilized across various applications due to their open-ended generation capabilities, yet they often lack specialized knowledge and other generation issues. SLMs can supplement this by providing taskspecific knowledge or reflecting weaknesses. Therefore, we explore how SLMs enhance the performance of LLMs in specific applications, focusing on open-ended generation, knowledge integration, relation extraction, and empathetic response. ", + "page_idx": 46 + }, + { + "type": "text", + "text": "In open-ended text generation—such as writing assistance and story creation—LLMs often suffer from issues such as incoherence and thematic drift over extended sequences. Due to more frequent failure patterns observed in SLMs, such as short, repeated, and irrelevant strings, these patterns serve as negative examples for LLM decoding. ", + "page_idx": 46 + }, + { + "type": "image", + "img_path": "images/7bd4c45becca7b686c32b583209d1f7a73eb6551e34b45c46098c5c022c94672.jpg", + "image_caption": [ + "Fig. 26. Contrastive Decoding [198]. " + ], + "image_footnote": [], + "page_idx": 46 + }, + { + "type": "text", + "text": "Contrastive Decoding (CD) [198] improves coherence and lexical diversity by leveraging the differential capabilities between a large model, OPT-13B [440], and a smaller model, OPT-125M. As illustrated in Figure 26, CD improves content quality by sampling generation based on the difference in log probabilities, $\\log p _ { E X P } - \\log p _ { A M A }$ , between an expert LM and an amateur LM, rather than relying solely on the expert LM’s log probability. This approach effectively reduces generative failures, including repetition. ", + "page_idx": 46 + }, + { + "type": "text", + "text": "In knowledge injection, general LLMs may lack domain-specific expertise for specialized tasks like law or medicine [91, 353]. Domain-specific SLMs can supply crucial knowledge in a format suitable for LLMs. To this end, BLADE [189] integrates black-box LLMs with small domain-specific models. BLADE combines the comprehensive language capabilities of LLMs with the specialized knowledge of small LMs. As shown in ", + "page_idx": 47 + }, + { + "type": "text", + "text": "1. Domain-specific 2. Knowledge 3. Bayesian Prompted pre-training Instruction Tuning Optimization ", + "page_idx": 47 + }, + { + "type": "image", + "img_path": "images/0e42f91999f7419cb80623e72013f86267aee5f36093e88b937c5c8097ca9307.jpg", + "image_caption": [ + "Fig. 27. BLADE Framework [189]. " + ], + "image_footnote": [], + "page_idx": 47 + }, + { + "type": "text", + "text": "Figure 27, BLADE’s process includes: 1) pre-training SLMs on domain-specific data, 2) fine-tuning with knowledge instruction to meet task-specific needs, and 3) using joint Bayesian optimization to enhance synergy between the LLM and the small LM, boosting overall performance. ", + "page_idx": 47 + }, + { + "type": "text", + "text": "In relation extraction, a field limited by scarce labeled data and prevalent long-tail categories, the “Train-GuidePredict” framework [327] employs SLMs to learn task-specific knowledge for dominant categories. SLMs struggle with rare categories, whereas LLMs manage these effectively due to their extensive pre-trained text. Therefore, this framework leverages the strengths of both models: it utilizes SLMs to acquire task knowledge and guide the LLM’s generative process with initial SLM predictions, enhancing the LLM’s handling of underrepresented categories. ", + "page_idx": 47 + }, + { + "type": "text", + "text": "In generating empathetic responses, LLMs excel in expressiveness but struggle with nuanced emotions and cognition. HEF [413] addresses this by incorporating Small Empathy Models (SEMs) to enhance LLMs’ emotional and cognitive depth. This framework employs a two-tiered emotion prediction method: SEMs identify primary emotions, directing LLMs to concentrate on these emotions and their triggers, resulting in more accurate and empathetic responses. ", + "page_idx": 47 + }, + { + "type": "text", + "text": "6.5 SLM for LLM Safety ", + "text_level": 1, + "page_idx": 47 + }, + { + "type": "text", + "text": "As demonstrated by various works [250, 302, 426, 460], LLMs are vulnerable to adversarial attacks and jailbreaking. For example, Wang et al. [358] shows that ChatGPT’s performance on adversarial datasets is still far from perfect, indicating that potential risks of adversarial vulnerability remain. Another example includes jailbreaking ChatGPT by asking it to ’pretend to be a sarcastic mean girl.’ Using such techniques, it has been shown that even the most advanced LLMs are far from being safe against generating potentially harmful content. Hence, the widely adopted LLM-based services to generate are at high risk of being misused for nefarious purposes. Consequently, resources such as the Llama 2 Responsible Use Guide 14 strongly advocate for implementing robust guardrails in products that utilize Generative AI. These guardrails are specifically designed to mitigate risks associated with both inputs to and outputs from the model, ensuring safeguards against the generation of high-risk or policy-violating content, as well as protecting against adversarial inputs and attempts to compromise the model. In addition to developing trustworthy LLMs, adopting SLMs for LLM safety [153, 177] has also attracted increasing attention. For example, Llama Guard [153], fine-tuned on Llama2-7B, has publicly released an input-output safeguard tool specifically for classifying safety risks in prompts and responses within conversational AI applications. However, this tool is limited to assessing the harmfulness of questions and answers and does not facilitate the generation of fluent, safe responses. In response to this limitation, Kwon et al. [177] fine-tune a specialized small language model with harmful query detection and safeguard answer generation tasks to accurately detect harmful user queries and generate appropriate safeguard explanations, thereby enhancing the safety measures in conversational AI. ", + "page_idx": 47 + }, + { + "type": "text", + "text": "6.6 SLM for LLM Evaluation ", + "text_level": 1, + "page_idx": 48 + }, + { + "type": "text", + "text": "SLMs can also enhance the evaluation of LLMs. In dialog evaluation, generating dialog reference responses is computationally complex, making accurate assessment difficult due to the multiple plausible but semantically different responses possible for a single dialog context. Relying on LLM prompting for evaluation can lead to problems such as dependency on prompt wording and inconsistent results. One solution involves training specialized SLMs to evaluate LLMs, as these SLMs can be fine-tuned more quickly and generate outputs faster during inference, owing to their reduced number of parameters. For example, SLIDE [449] employs contrastive learning to fine-tune an SLM to effectively distinguish between positive and negative responses. Based on its observation that SLMs are more accurate in identifying positive responses and LLMs excel at classifying negative ones, the trained SLM is subsequently integrated with an LLM to assign a score to each response. The scoring method used is formalized as follows: ", + "page_idx": 48 + }, + { + "type": "equation", + "img_path": "images/4a08ec6fabe50723da4c06d5e69d62aad4ee613e005bc0895166e807df16ef81.jpg", + "text": "$$\ns c o r e = \\left\\{ \\begin{array} { l l } { s c o r e _ { S L M } , } & { \\mathrm { i f } s c o r e _ { S L M } \\ge 0 . 5 } \\\\ { s c o r e _ { L L M } , } & { \\mathrm { e l i f } s c o r e _ { L L M } < 0 . 5 } \\\\ { \\frac { s c o r e _ { S L M } + s c o r e _ { L L M } } { 2 } , } & { \\mathrm { o t h e r w i s e } } \\end{array} \\right.\n$$", + "text_format": "latex", + "page_idx": 48 + }, + { + "type": "text", + "text": "This equation allows for adaptive response evaluation, leveraging the strengths of both models to ensure a more reliable and consistent assessment across varying dialogue contexts. In the natural language generation task, Kuhn et al. [175] designs a novel entropy to evaluate the uncertainty of LLMs. It aims to tackle the challenge of semantic equivalence [175]. For instance, $A$ ’s son is $B$ and $B$ is $A$ ’s son are semantically equivalent. It should not be considered uncertain if an LLM is unsure about which of the two previously mentioned sentences to generate due to semantic equivalence. A DeBERTa-Large [132] fine-tuned on the MNLI [378] dataset serves as the classifier guided by semantic equivalence in the clustering stage. SelfCheckGPT [240] proposes a black-box hallucination detection method for LLMs. The core idea is to leverage uncertainty derived from sampled outputs. To be specific, Manakul et al. [240] claim that an LLM trained on a concept generates responses that are similar and factually consistent. One of the five variants of SelfCheckGPT uses BertScore to achieve it. A DeBERTa-Large [218] is utilized to calculate the BERTScore. Factscore [244] is proposed to evaluate the factuality of LM-generated long-form content. It divides the generated long content into multiple short texts, enabling a more precise assessment of factual accuracy. In addition to manual evaluation, Min et al. [244] also proposes an automated evaluation framework to estimate Factscore which can reduce costs. LLaMa 7B [338] fine-tuned on Super-NaturalInstructions [367] is one of the LMs employed as an evaluation assistant and shows promising performance. They also employ Generalizable T5-based dense retrievers [259] to facilitate passage retrieval. ", + "page_idx": 48 + }, + { + "type": "text", + "text": "Insights: SLMs can improve LLMs in various aspects, including enhancing the reliability of LLM generation, extracting prompts, fine-tuning, \napplication, and evaluation. This discussion seeks to answer when SLMs should be utilized to augment LLMs. We identify several suitable \nscenarios: \n• Adapting LLMs to specific tasks can require substantial computational resources and time. In such cases, a smaller model could be fine-tuned instead to serve functions such as hallucination detection. \n• SLMs can outperform LLMs in certain aspects, hence combining SLMs with LLMs can create a more powerful model, e.g., SLMs typically have fewer security issues than LLMs, and integrating both can generate a model that is both powerful and secure. \n• SLMs, despite their limitations, can alert LLMs to these issues, such as the tendency to produce repetitive vocabulary. Designing contrastive losses can help LLMs overcome these issues by learning from the nuanced feedback of SLMs. \n• The fast inference speed and certain characteristics of SLMs can emulate and thus enhance the behavior of LLMs, acting as effective proxies. For example, the training data selection for LLMs can be guided by the difficulty metrics assessed by SLMs, and the parameter adjustments during the fine-tuning of SLMs can also approximate the fine-tuning processes of LLMs. ", + "page_idx": 48 + }, + { + "type": "table", + "img_path": "images/7a301bf14d27246d671fe2f019348067a554dcdd7dc6af2604ebd4ebba48dcc3.jpg", + "table_caption": [ + "Table 13. Synergy between SLMs and LLMs " + ], + "table_footnote": [], + "table_body": "
SynergyRepresentative WorkKey Point
CoGenesis [437]Divide user instructions into general part by LLMs and private parts by SLMs.
LLMCad [394]Combine lightweight and high-precision LLMs for on-device inference.
Khattab et al. [167], Ma et al. [234]Focuse on LLM's reasoning and SLM's eficient decoding.
Cloud-Edge Synergy (Training)CROSSLM [79]Preserve client data privacy by training SLM locally and LLM remotely; mutual improvement using SLM-labeled data from LLM outputs.
Task-Centric Synergyα-UMi [307]Break down a single LLM into specialized agents.
SynCID [204]Merge LLM's semantic with SLM's speed; refine labels via contrastive learning.
Filter-then-rerank [234]SLMs process simple samples and flag complex ones for LLM reranking.
Data Shunt+ (DS+) [46]Process easy samples with SLMs and delegates hard samples to LLMs.
", + "page_idx": 49 + }, + { + "type": "text", + "text": "7 SYNERGY BETWEEN SMALL AND LARGE LANGUAGE MODELS ", + "text_level": 1, + "page_idx": 49 + }, + { + "type": "text", + "text": "The synergy between small and large language models leverages the unique strengths of each to enhance overall system performance and efficiency. SLMs, being lightweight and resource-efficient, are ideal for deployment on edge devices, enabling rapid responses and low latency for straightforward tasks. LLMs, on the other hand, possess greater computational power and a deeper understanding of complex language patterns, allowing them to handle more intricate and nuanced tasks. By integrating SLMs and LLMs, systems can dynamically allocate tasks based on complexity, ensuring that simple queries are processed quickly on the edge while more demanding requests are escalated to the cloud. This collaborative approach optimizes resource usage, reduces operational costs, and maintains high-quality outputs across a diverse range of applications. The synergy between small and large language models can be categorized into two parts: cloud-edge synergy and task-centric synergy. Cloud-edge synergy refers to a setup where SLMs operate on edge devices, while LLMs reside on the server. When the SLM is not powerful enough, the LLM compensates by handling more complex tasks and providing additional support. Task-centric synergy refers to the scenario where SLMs and LLMs leverage their respective strengths to improve task-oriented efficiency. Table 13 summarizes representative work in each category and their key points. Next, we introduce each category in detail. ", + "page_idx": 49 + }, + { + "type": "image", + "img_path": "images/48df989cfaadb8fac983caaf7d5a0543997244da2d91323c876c84ed2b7ce3c2.jpg", + "image_caption": [ + "Fig. 28. Could-edge synergy between LLMs and SLMs. " + ], + "image_footnote": [], + "page_idx": 49 + }, + { + "type": "text", + "text": "7.1 Cloud-Edge Synergy ", + "text_level": 1, + "page_idx": 50 + }, + { + "type": "text", + "text": "The current utilization of LLMs typically involves uploading private data to the cloud for response. Fine-tuning LLMs usually also requires uploading data to clouds for computing. However, this raises privacy concerns as the collection and usage of private data are constrained by personal privacy awareness and legal regulations [348]. Consequently, the cloud-edge synergy between SLMs and LLMs is proposed to alleviate this issue, i.e., SLMs handle privacy-sensitive data locally, LLMs handle de-identified or non-privacy-sensitive data, and these two models collaborate. This section discusses such cloud-edge synergy, dividing them into two categories: cloud-edge synergy during inference and cloud-edge synergy during training, as shown in Figure 28. ", + "page_idx": 50 + }, + { + "type": "text", + "text": "Cloud-edge Synergy During Inference. CoGenesis [437] breaks down the user instruction into a general section and a personal section. The LLM generates replies solely based on general instruction, and the SLM considers both user instruction and additional personal context for its output generation. A fusion strategy blends the output of LLM and SLM synergistically. Xu et al. [397] introduces a split learning system for LLM agents in 6G networks, optimizing mobile device and cloud server collaboration. Mobile devices operate lightweight SLMs with 0–10B parameters for real-time tasks, while cloud servers handle larger LLMs with over 10B parameters for complex reasoning and planning. This setup allows efficient local task management on mobile devices and offloads heavy operations to cloud servers. The system’s architecture features three modules—perception, grounding, and alignment—facilitating effective communication to meet the sophisticated needs of 6G networks. ", + "page_idx": 50 + }, + { + "type": "text", + "text": "Besides these frameworks, more specific models are proposed to facilitate the cloud-edge synergy. A common strategy is to use SLM’s fast decoding ability. LLM-to-SLM [28] proposes a framework in which the pre-trained frozen encoder-decoder LLM resides on the server and computes a high-quality representation of the prompt for the planning of an appropriate response. The SLM residing on the edge device, conditioned on this representation, decodes the response efficiently. Some variants put more emphasis on the reasoning ability of LLMs [167, 234, 298]. In Synergy of Thoughts [298], the SLMs generate multiple low-cost reasoning paths. If these paths conflict, the larger LLMs are invoked to provide reflective reasoning and correct any intuitive errors. Hao et al. [127] proposes a framework in which an SLM residing on the edge devices generates tokens, calling LLMs to verify and correct threshold-gated \"harder\" tokens, to achieve a controllable trade-off between inference quality and cost. LLMCad [394] presents an on-device inference engine addressing memory and latency issues in deploying LLMs on mobile devices. It combines a lightweight LM for token generation with a high-precision LLM for verification, leveraging a token tree structure and speculative generation for efficiency. Tested on devices such as Jetson TX2, it achieves up to $9 . 3 \\times$ speedup for LLMs with over 10 billion parameters while maintaining accuracy. ", + "page_idx": 50 + }, + { + "type": "text", + "text": "Cloud-edge Synergy During Training. CROSSLM [79] introduces a client-server collaborative training framework that preserves data privacy by having clients locally train SLMs instead of fine-tuning LLMs. The framework enables mutual enhancement through a feedback loop where SLMs evaluate LLM-generated synthetic data and provide feedback to improve the LLM’s generative capabilities, ensuring high-quality and task-specific data. Concurrently, the synthetic data trains the SLMs, boosting their performance. This cyclical exchange fosters cloud-edge synergy and mutual model improvement. ", + "page_idx": 50 + }, + { + "type": "text", + "text": "7.2 Task-Centric Synergy ", + "text_level": 1, + "page_idx": 50 + }, + { + "type": "text", + "text": "The advent of LLMs has significantly propelled various natural language processing tasks and inspired research into their synergistic interactions with SLMs to enhance the performance of models tailored for specific tasks. This section introduces scenarios where small language models exhibit specialized capabilities after fine-tuning and discusses how combining their unique strengths with the versatile abilities of LLMs can yield superior performance on specific tasks. For example, LLMs excel at handling difficult examples or can rewrite content to eliminate task-irrelevant redundancy, thereby enhancing overall task performance, as illustrated in Figure 29, 30 and 31. ", + "page_idx": 50 + }, + { + "type": "text", + "text": "", + "page_idx": 51 + }, + { + "type": "text", + "text": "$\\alpha$ -UMi [307] introduces a multi-agent framework to enhance tool learning by overcoming the limitations of singleLLM approaches for complex tasks. It utilizes three specialized LMs—planner, caller, and summarizer—as depicted in Figure 29—each handling specific subtasks such as planning, tool invocation, and summarization. This modular design allows the use of small and large open-source LLMs (e.g., LLaMa-7B/12B) and supports easy tool updates. Evaluated on benchmarks like ToolBench [279] and ToolAlpaca [326], $\\alpha$ -UMi outperforms traditional single-LLM methods and even exceeds GPT-4 in tool learning performance. ", + "page_idx": 51 + }, + { + "type": "image", + "img_path": "images/bc23a40ce635f273f1242537db1150953da333aa08351c4a52224d8b31af729a.jpg", + "image_caption": [ + "Fig. 29. Synergizing SLMs and LLMs in tool learning. " + ], + "image_footnote": [], + "page_idx": 51 + }, + { + "type": "text", + "text": "", + "page_idx": 51 + }, + { + "type": "text", + "text": "SynCID [204] focuses on Conversational Intent Discovery (CID), a task where both known and new intents must be identified from user utterances in an open-world setting. SynCID combines LLMs’ deep semantic insights with SLMs’ agility and specialized capabilities. As illustrated in Figure 30, the framework uses LLM prompting to refine discourse and intent labels, enhancing semantic accuracy and assigning new labels to unlabeled data. SLMs are trained via contrastive learning to align ", + "page_idx": 51 + }, + { + "type": "image", + "img_path": "images/c81cb9b79eff7862cf4e886d507bc4aab412fb27e8b2d18cadc4977dc37d6307.jpg", + "image_caption": [ + "Fig. 30. Synergizing SLMs and LLMs in Conversational Intent Detection. " + ], + "image_footnote": [], + "page_idx": 51 + }, + { + "type": "text", + "text": "semantic spaces of discourse and intent descriptors, reducing clustering distortion and improving new intent detection. \nTested on BANKING [43], CLINC [179], and StackOverflow [396], SynCID outperforms CID baselines significantly. ", + "page_idx": 51 + }, + { + "type": "text", + "text": "Filter-then-rerank [234] addresses LLMs’ poor performance on simpler IE tasks by integrating LLMs and SLMs. SLMs act as filters, predicting and identifying difficult samples, while LLMs ", + "page_idx": 51 + }, + { + "type": "image", + "img_path": "images/706a36e19b603c76d6aae7b544d112d98b1d3baf832b822766b357c5ba1f7446.jpg", + "image_caption": [ + "Fig. 31. Synergizing SLMs and LLMs in Information Extraction. " + ], + "image_footnote": [], + "page_idx": 51 + }, + { + "type": "text", + "text": "rerank the top N candidate labels for these cases. As illustrated in Figure 31, SLM predictions are final for non-difficult samples, minimizing reliance on LLMs and reducing latency and costs; for those difficult samples, the top N predicted candidate labels from the SLM are passed to the LLM for reranking (predicting). Tested on small-sample IE tasks, this approach improves performance by an average of $2 . 4 \\%$ compared to previous methods. Data Shunt $^ +$ $\\mathbf { ( D S + ) }$ [46] introduces a framework to reduce costs by minimizing large model queries during inference and boosting LLM performance with SLMs for tasks like sentiment analysis and image processing. ${ \\mathrm { D S } } +$ uses SLMs for “easy” samples within the main training distribution and LLMs for \"hard\" outliers or boundary cases, maintaining accuracy while reducing LLM use. It incorporates S4L and L4S modules with Prompt Pruning (PP) and 2-stage Confidence Distillation (2CD) for better input processing and knowledge transfer. Tests show ${ \\mathrm { D S } } +$ outperforms fine-tuning in accuracy and cost efficiency, significantly cutting down on LLM queries. ", + "page_idx": 51 + }, + { + "type": "image", + "img_path": "images/bd7e4807f7a9d6400352932e88e02d9e09460a88ebef1ff96ca0ce0b08089699.jpg", + "image_caption": [ + "Fig. 32. Scenarios we discuss in this section. The taxonomy is inspired by previous works [320, 351]. Please note that the trustworthy scenarios listed here are not exhaustive. " + ], + "image_footnote": [], + "page_idx": 52 + }, + { + "type": "text", + "text": "8 TRUSTWORTHINESS IN SMALL LANGUAGE MODELS", + "text_level": 1, + "page_idx": 52 + }, + { + "type": "text", + "text": "Language models have become ubiquitous in our daily lives, and we increasingly rely on them. However, they pose risks regarding their limitations in trustworthy dimensions like privacy and fairness. These concerns are especially critical in high-stakes domains such as healthcare [130] and finance [202]. Consequently, numerous studies have emerged to evaluate the trustworthiness of LMs [88, 95, 138, 176, 176, 248, 254, 273, 351, 370, 425]. In this section, we consider the works that benchmark various LMs’ trustworthiness and omit the specific attack methods [41, 53, 150, 461] or work [407] that only focuses on early pre-trained LMs like BERT [83] as they are already covered in previous survey papers [78, 115, 123, 288]. Inspired by previous works [320, 351], we discuss the following five key trustworthy scenarios: robustness, privacy, reliability, safety, and fairness, as shown in Figure 32. We consider two dimensions for robustness: Adversarial (Adv) Robustness [352] and Out-of-Distribution (OOD) Robustness [38, 213]. For safety, we explore two key concerns: Misinformation [344] and Toxicity [374]. For reliability, we focus on Hallucination [146] and Sycophancy [301]. Please note that these are just the aspects we are focusing on, and therefore this is not a comprehensive classification or taxonomy. For example, robustness also contains robustness to adversarial demonstration. ", + "page_idx": 52 + }, + { + "type": "text", + "text": "Though there are a lot of works benchmarking LMs’ trustworthiness, their main focus is on LLMs. Therefore, we survey some representative works evaluating the trustworthiness of LMs, focusing specifically on those that include SLMs of around 7B parameters or smaller. We also summarize these works in Table 14. Next, we briefly introduce them. ", + "page_idx": 52 + }, + { + "type": "text", + "text": "Holistic Evaluation of Language Models (HELM) [205] benchmarks a large number of LMs from various aspects, including a lot of metrics related to trustworthiness such as robustness and fairness. Do-Not-Answer [364] introduces a dataset to evaluate how LMs act when they face content that should not be answered. Wang et al. [364] also label the output of several LMs output on their dataset and then use the labeled data to train some classifiers. PromptRobust [456] constructs two kinds of adversarial prompts to evaluate LMs’ robustness: One kind is designed under non-adversarial settings with semantic integrity while another category is created under adversarial settings. Their results show that LMs perform poorly under such prompts. HaluEval [191] builds a dataset comprising both the samples generated by their proposed framework and human-labeled hallucinations. It facilitates analysis of when LMs produce hallucinated output and how well they detect hallucinated content. Then they use some strategies such as knowledge retrieval to help LMs better recognize hallucinations. Mo et al. [248] evaluates the trustworthiness of open-source LMs, presenting a variety of scenarios such as fairness and privacy. Results show that smaller LMs sometimes outperform larger ones in terms of trustworthiness. PrivLM-Bench [190] is designed to evaluate the privacy issues in LMs. It enables a fair comparison of privacy-preserving LMs by considering more than just differential privacy parameters. FFT [71] introduces around two thousand crafted examples to evaluate LMs’ performances on three trustworthy dimensions: factuality, fairness, and toxicity. Their results suggest that larger LMs do not always show better harmlessness. ROBBIE [98] first benchmarks various series of LMs using a lot of datasets, including two newly introduced datasets developed by ROBBIE. It also Manuscript submitted to ACM ", + "page_idx": 52 + }, + { + "type": "text", + "text": "Table 14. Comparison of Different Works that Evaluate the Trustworthiness Issues in LMs. Please note that for the \"No. of LMs\" attribute, compressed or pruned LMs are not included in the count. ", + "page_idx": 53 + }, + { + "type": "table", + "img_path": "images/54ba53e905e4b1507712565596bc939d3eaf80a4bbe0e0ae6a1b42bff2ef742e.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
Aoueqdooks
Paper HELM [205]×√√×××√×
Do-Not-Answer [364]××√√××√√×
PromptRobust [456]√××××××××
HaluEval [191]××××√××××
Mo et al. [248]√×√×√√√√×
PrivLM-Bench [190]××××××√××
FFT [71]××√√√××√×
ROBBIE [98]××√××××√×
TrustLLM [320]√√√√√√√√×
RAmBLA [35]√×××√××××
JailbreakBench [45]××√√××√××
Xie et al. [390]××√×√××××
OR-Bench [70]××√√××√××
SORRY-Bench [387]××√√××√××
BeHonest [59]×××√√√×××
Hong et al. [138]√√√×××√√√
RUPBench [370]√××××××××
Nakka et al. [254]××√×××√√×
", + "page_idx": 53 + }, + { + "type": "text", + "text": "evaluates mitigation techniques designed to reduce bias and toxicity. TrustLLM [320] is a comprehensive benchmark that contains a large number of datasets and various well-designed metrics to systematically evaluate various LMs across multiple trustworthy dimensions, including truthfulness, safety, fairness, robustness, privacy, and machine ethics. They also carefully design specific subcategories for each dimension. RAmBLA [35] evaluates the trustworthiness of four LMs as biomedical assistants from three dimensions: Robustness, High Recall, and Hallucination. RAmBLA suggests LMs with more parameters are less likely to cause hallucinations and may choose to reject providing an answer in uncertain situations. JailbreakBench [45] constructs a jailbreaking dataset named JBB-Behaviors and jailbreak artifacts to evaluate current LMs’ performance regarding jailbreaking. It also proposes a unified evaluation pipeline that can incorporate new jailbreak defense techniques. Xie et al. [390] tests online safety analysis methods, filling the gap where no methods focus on the generation phase. OR-Bench [70] constructs three datasets: OR-Bench-80K, OR-Bench-Hard-1K, and OR-Bench-Toxic, to systematically evaluate over-refusal problems in LMs, emphasizing the challenge of balancing safety alignment with the models’ usefulness. SORRY-Bench [387] systematically tests 43 different LMs to see how they perform when facing requests that should be refused. They also collect more than annotations created by humans and find that fine-tuned 7B LMs can achieve performance comparable to GPT-4 scale LMs as evaluators. BeHonest [59] evaluates the honesty of LMs from three aspects: Self-Knowledge, Non-Deceptiveness, and Consistency. They use many different metrics for each aspect. For example, sycophancy rate and lying rate are adopted in Non-Deceptiveness. The results in both the Self-Knowledge and Consistency parts reveal that larger model sizes generally bring improved performance for the Llama-2 [339] and Llama-3 [94] series. Hong et al. [138] examines the effects of compression Manuscript submitted to ACM ", + "page_idx": 53 + }, + { + "type": "text", + "text": "methods, including quantization and pruning, on the trustworthiness of language models. They find that pruning and extreme quantization significantly affect the trustworthiness of LMs. RUPBench [370] comprises 15 reasoning datasets designed to assess the performance of LMs both in normal conditions and under various adversarial perturbations. Their results indicate that larger LMs generally demonstrate better resilience to perturbations. Nakka et al. [254] investigates the trust and ethical implications of SLMs deployed on personal devices. It reveals the vulnerabilities of on-device SLMs compared with their on-server counterparts. ", + "page_idx": 54 + }, + { + "type": "text", + "text": "Please note that the dimensions discussed in this section reflect only those relevant to our current focus; additional dimensions may be discussed in those works, but not listed in table 14. For example, TrustLLM [320] also explores Machine Ethics. ", + "page_idx": 54 + }, + { + "type": "text", + "text": "9 FUTURE DIRECTIONS ", + "text_level": 1, + "page_idx": 54 + }, + { + "type": "text", + "text": "In this section, we offer insights into several promising future research directions that could inspire and motivate the community to address existing gaps in the development of small language models. ", + "page_idx": 54 + }, + { + "type": "text", + "text": "9.1 Developing Efficient SLM Model Architecture ", + "text_level": 1, + "page_idx": 54 + }, + { + "type": "text", + "text": "Although Transformers [346] are foundational in most language models, they face significant computational and memory challenges that worsen with model size, impacting training and autoregressive decoding. Recently, Mamba [117] has emerged as a promising alternative, adapting state space models to dynamically select inputs based on demands, thereby enhancing efficiency. Thereafter, xLSTM [25] demonstrates that an improved LSTM could function as an LLM, revealing the potential of traditional SSMs. The integration of global static information captured by SSMs with the dynamic information processing of Transformers could complement each other, leading to new architectures that balance effectiveness and efficiency. ", + "page_idx": 54 + }, + { + "type": "text", + "text": "9.2 Addressing SLM Training Inefficiencies ", + "text_level": 1, + "page_idx": 54 + }, + { + "type": "text", + "text": "One study [85] explores the disparate learning dynamics between small and large language models. Utilizing the Pythia model suite, the research demonstrates that layers’ activations in larger models converge more rapidly and monotonically to their final states. This phenomenon is associated with a higher proportional effective rank (PER) in the parameters and gradients of larger models. The analysis enhances our understanding of training inefficiencies in small models and provides insights for future efforts, such as developing methods to increase the PER of layers’ parameters. ", + "page_idx": 54 + }, + { + "type": "text", + "text": "9.3 Expanding Domain-Specific SLMs ", + "text_level": 1, + "page_idx": 54 + }, + { + "type": "text", + "text": "Domain-specific SLMs, which are tailored for specific fields, can provide a stronger foundation for relevant downstream tasks than general-purpose models. Currently, these models primarily focus on scientific and healthcare domains. However, there is significant potential for expansion into other key areas such as law, finance, education, telecommunications, and transportation. The scarcity of SLMs that cater to these domains presents an urgent call for research into developing more specialized models. ", + "page_idx": 54 + }, + { + "type": "text", + "text": "9.4 Establishing Benchmarking and Leaderboard Platforms for SLMs ", + "text_level": 1, + "page_idx": 54 + }, + { + "type": "text", + "text": "Several compelling reasons justify the establishment of benchmarking and leaderboard platforms for SLMs. Firstly, most state-of-the-art SLMs are trained on proprietary datasets, which may include test sets from existing evaluation tasks, presenting challenges for fair capability comparisons. Secondly, many SLMs are designed for specific device applications, significantly differing from general open-domain tasks. Thus, there is a lack of comprehensive benchmarks that accurately reflect SLM performance in specific device applications. For example, SLMs deployed on smartphones often handle tasks sensitive to user data, such as auto-replies based on historical chat texts or GUI context understanding—tasks not typically included in current benchmarks, potentially leading to an underestimation of their importance. Finally, current evaluation tasks focus primarily on metrics like accuracy. Evaluating on-device SLMs involves balancing multiple factors, including overall capabilities, response times, storage and memory usage, power consumption, CPU utilization, additional fine-tuning requirements, and context window constraints, making comprehensive and detailed assessments essential. ", + "page_idx": 54 + }, + { + "type": "text", + "text": "", + "page_idx": 55 + }, + { + "type": "text", + "text": "9.5 Enhancing SLM Performance and Efficiency ", + "text_level": 1, + "page_idx": 55 + }, + { + "type": "text", + "text": "In terms of enhancing SLM performance and efficiency, the efficiency of using teacher LLMs via instruction tuning can be further developed, such as Efficient Instruction Tuning of SLMs from LLMs-generated data, Optimizing Teacher LLM Selection for SLM Learning, and Applying Emerging Techniques from LLMs to SLMs. ", + "page_idx": 55 + }, + { + "type": "text", + "text": "• Efficient Instruction Tuning of SLMs from LLMs-generated data. Enhancing the specialization of SLMs through instruction tuning from LLMs-generated data is crucial, yet finding the most cost-effective instructional strategies remains an underexplored status. Some key areas for exploration are: (1) Instruction Design Adaptability: The performance of LLMs and SLMs varies significantly with changes in instructions. Therefore, designing tailored instructions that effectively activate relevant sub-competencies and reasoning pathways in SLMs for specific tasks is crucial. This approach would optimize their ability to utilize instructional data, representing a significant future research direction. (2) SLM Capability Adaptability: Given that SLMs exhibit diverse capabilities across domains, simply supplying extensive data samples for instruction tuning is often inefficient, as SLMs may spend excessive time processing unnecessary data. To optimize efficiency when adapting to specific domains, we suggest first assessing the intrinsic capabilities of an SLM within those domains. Subsequently, one could select appropriate data and activate essential fine-grained capabilities to effectively adapt to domain shifts. This targeted approach ensures efficient and domainspecific instruction tuning. (3) Optimizing Data Efficiency: SLMs may possess missing or latent domain knowledge, and activating this latent knowledge may not require substantial data. Thus, identifying inherent knowledge within SLMs and determining the minimal data necessary for effective fine-tuning is a future direction. This research aims to optimize performance while minimizing training resources. \n• Optimizing Teacher LLM Selection for SLM Learning. Teacher LLMs with different abilities and knowledge facilitate diverse applications for SLM training, including data rewriting and generation. Selecting the appropriate teacher model based on specific use cases is crucial. This process requires evaluating the teacher’s capabilities and knowledge to ensure optimal application. For example, GPT-4 excels in generating domain-specific data, outperforming ChatGPT, which may produce inferior outcomes. Strategic selection of teacher LLMs is essential for future work to ensure their strengths are effectively utilized to enhance SLM performance. \n• Applying Emerging Techniques from LLMs to SLMs. To improve LLM performance, techniques such as RetrievalAugmented Generation (RAG) and Mixture of Experts (MoE) are employed. The adoption of RAG in SLMs shows significant promise [215], suggesting benefits from further tailoring retrieved information for SLMs. Future research should account for SLMs’ constraints, such as limited context windows, and customize RAG accordingly. MoE uses ", + "page_idx": 55 + }, + { + "type": "text", + "text": "multiple experts to enhance learning without increasing active neurons, but its storage demands pose challenges for SLM deployment, making this a promising area for exploration. Additionally, the application of LLM techniques such as in-context learning and prompting engineering to maximize SLM performance, while accounting for SLMs’ constraints, warrants further investigation. ", + "page_idx": 56 + }, + { + "type": "text", + "text": "9.6 Applications of SLMs ", + "text_level": 1, + "page_idx": 56 + }, + { + "type": "text", + "text": "In real-world applications, SLMs often need to provide personalized services and need to be updated periodically to reflect new needs and new knowledge. Hence, there are several promising directions in terms of the real-world application of SLMs, which are listed as follows: ", + "page_idx": 56 + }, + { + "type": "text", + "text": "• LoRA for Personalized Services. Companies often provide personalized services, but user-specific complexities can render simple rules ineffective. Training a separate SLM for each user is impractical. LoRA suggests a method of separable training weights alongside fixed original weights, enabling scalable customization. For instance, RecLoRA [455] integrates personalized knowledge into SLMs/LLMs tailored for recommendation tasks by maintaining a set of parallel, independent LoRA weights. This approach effectively customizes language model parameters to align with individual user preferences. This approach is a promising direction that inspires further investigation. • Lifelong On-device Learning for Knowledge Injection. SLMs on devices can access local data without risking data privacy through two main methods. The first method uses retrieval-augmented generation to integrate local data into prompts, requiring SLMs with advanced processing and reasoning capabilities. The second method fine-tunes SLMs with local data, integrating customized knowledge into the model’s weights. However, this approach demands significant device resources, including memory and energy. A promising solution is lifelong learning, where SLMs continuously learn and adapt while in use. • Strategic Use of SLMs and LLMs in Multi-Agent Systems. LLMs can function as agents; however, their extensive capabilities are often underutilized in many scenarios, leading to resource wastage. Consequently, strategically routing to appropriately capable SLMs and LLMs within multi-agent systems can optimize cost and functionality. ", + "page_idx": 56 + }, + { + "type": "text", + "text": "9.7 Multimodal SLMs ", + "text_level": 1, + "page_idx": 56 + }, + { + "type": "text", + "text": "Research on small language models also includes multimodal data. For example, SmolVLM [99] is a compact model that handles image and text inputs to produce text outputs, suitable for on-device use and various multimodal tasks. SOLO [54] integrates vision and language processing in a single 7B Transformer model. The limited scope of existing research on multimodal SLMs provides a compelling impetus for researchers to investigate the integration of various modalities, including audio and graphs. ", + "page_idx": 56 + }, + { + "type": "text", + "text": "9.8 SLMs Assisting LLMs ", + "text_level": 1, + "page_idx": 56 + }, + { + "type": "text", + "text": "In Section 6, we introduced existing works on the use of SLMs to assist LLMs. For instance, EFT [246] emulates fine-tuning on LLMs by leveraging behavior deltas between SLMs’ pre-trained and fine-tuned weights to alleviate the time-cost issues associated with fine-tuning LLMs; SlimPLM [325] detects missing knowledge in LLMs using a slim proxy SLM to accelerate knowledge injection; Contrastive Decoding [198] enhances text quality by maximizing the difference between the log probabilities of an expert LLM and an amateur SLM to mitigate issues of low-quality generation. The research on adopting SLMs to assist LLMs is still in its early stages, with many promising directions yet to be explored. We list some as follows: ", + "page_idx": 56 + }, + { + "type": "text", + "text": "• Enhancing LLM Performance Across Broader Tasks Through SLM Integration. SLMs can outperform LLMs in certain scenarios. For example, SLMs often present fewer security vulnerabilities compared to their larger counterparts and demonstrate superior performance on easier samples in specific tasks [197, 234]. Therefore, integrating SLMs with LLMs can promote the development of models that are not only more robust but also inherently safer. Currently, research in this domain is relatively sparse, suggesting that this collaborative framework could potentially be applied to a wider array of tasks. ", + "page_idx": 57 + }, + { + "type": "text", + "text": "• Efficient Enhancement of LLMs through Proxy SLMs. Existing research [18, 212, 246, 325] indicates that SLMs, owing to their accelerated fine-tuning and inference speeds, can effectively mimic the behaviors of LLMs, thereby serving as efficient proxies for optimization. However, the application of SLMs as operational proxies for LLMs is currently underexplored. This mimicry could potentially be expanded to include various aspects of LLM functionality, such as the optimization of prompts, the filtration and integration of supplementary knowledge, and the management of additional knowledge repositories. ", + "page_idx": 57 + }, + { + "type": "text", + "text": "• SLMs Assist in Managing Data Quality. LLMs tend to produce hallucinations and toxic content due to low-quality real-world training data. One solution is to remove these low-quality data [355]. However, directly eliminating low-quality content can diminish certain functionalities of LLMs, such as versatility [356]. Therefore, it is crucial to define more refined data quality assessment criteria across dimensions such as factuality, safety, and diversity [377] for real-world data. Researching efficient data selection methods using small models represents a valuable research direction. Additionally, while synthetic data serves as a vital complement to scarce human-generated data [224], the potential for small models to effectively manage synthetic data remains largely unexplored. ", + "page_idx": 57 + }, + { + "type": "text", + "text": "• SLMs Assist in LLM Assessment. LLMs are producing vast amounts of increasingly complex texts, such as specialized code and scientific papers, presenting challenges not only for human evaluators but also for traditional assessment metrics. Consequently, developing effective evaluators to assess various aspects of generated content, including factuality, safety, and uncertainty, becomes crucial. Given their proficiency in handling specific tasks, exploring the potential of SLMs to evaluate LLM outputs is a promising research direction. ", + "page_idx": 57 + }, + { + "type": "text", + "text": "• SLMs Optimize Query and Reduce Noise for LLM RAG. For Retrieval-Augmented Generation (RAG) using LLMs, differing query requirements between LLMs and search engines pose a challenge. The query for LLMs is often abstract and difficult for search engines to handle, so they require more detailed query keywords. Moreover, LLMs may not need all the information related to a query because they only require partial additional knowledge. Thus, intermediate agents are crucial to adapting LLM queries for search engines by clarifying the required detailed keywords that can search for necessary extra knowledge. Additionally, search engine outputs contain noises, requiring refinement to boost LLM efficiency. SLMs, skilled in a single task, are ideal for optimizing query rewriting and noise reduction in RAG systems, making their application in LLM RAG a promising research area. ", + "page_idx": 57 + }, + { + "type": "text", + "text": "• SLMs safeguard LLM. Resources such as the Llama 2 Responsible Use Guide strongly advocate for the implementation of robust guardrails in products that utilize Generative AI. SLMs can be strategically designed to serve as such guardrails, mitigating risks associated with both inputs and outputs from the model. This approach ensures safeguards against the generation of high-risk or policy-violating content and provides protection against adversarial inputs and attempts to compromise the model. Future research can investigate the various safety roles that SLMs play in protecting LLMs. ", + "page_idx": 57 + }, + { + "type": "text", + "text": "9.9 Synergy between Small and Large Language Models ", + "text_level": 1, + "page_idx": 58 + }, + { + "type": "text", + "text": "In Section 7, we discussed how small and large language models can complement each other. For example, CoGenesis [437] integrates SLMs for private data and LLMs for broader context, while Synergy of Thoughts [298] uses SLMs for initial reasoning and LLMs for conflict resolution. CROSSLM [79] shows how privacy can be preserved by training SLMs locally to support LLMs without data exposure. Research in this area is still evolving, and we outline several promising future directions below: ", + "page_idx": 58 + }, + { + "type": "text", + "text": "• Refined Cloud-Edge Division of Labor. Current research mainly focuses on splitting tasks between edge-based SLMs and cloud-based LLMs along privacy-sensitive and non-sensitive data boundaries. A potential future direction involves more granular task partitioning: determining which subtasks should be handled locally by SLMs (e.g., initial data filtering, quick semantic parsing) and which should be delegated to the cloud-based LLM (e.g., advanced reasoning, complex generation). This approach can further optimize latency, privacy, and resource utilization. • Adaptive On-Device Specialization for Dynamic Environments. Although SLMs have shown the ability to handle private or personalized data locally, continuous changes in user preferences, application requirements, and data distributions pose challenges. Future work can explore adaptive strategies where edge-based SLMs dynamically specialize or update their parameters, guided by the cloud-based LLM. For instance, the LLM can periodically distill new knowledge into the SLM or provide feedback signals to help the SLM adapt to evolving scenarios. ", + "page_idx": 58 + }, + { + "type": "text", + "text": "9.10 Trustworthy SLMs ", + "text_level": 1, + "page_idx": 58 + }, + { + "type": "text", + "text": "As SLMs are playing crucial roles in various aspects, understanding and improving the trustworthiness of SLMs are essential. Hence, two promising directions are: ", + "page_idx": 58 + }, + { + "type": "text", + "text": "• A Comprehensive Evaluation of SLMs’ Trustworthiness. While numerous studies address trustworthiness issues in LLMs, research on SLMs remains sparse. Most existing literature focuses on models with at least 7 billion parameters, leaving a gap in the comprehensive analysis of SLMs’ trustworthiness. Current evaluations typically cover only a fraction of the necessary aspects. Therefore, a systematic assessment, such as TrustLLM [320], is essential to thoroughly evaluate the trustworthiness of SLMs and understand their reliability across various applications. • Developing Trustworthy SLMs. Developing trustworthy SLMs is crucial, with three key research directions: (i) Training SLMs to be trustworthy from scratch; (ii) Ensuring SLMs retain or gain trustworthiness when compressed from LLMs—maintaining trustworthiness if the LLM is trustworthy and instilling trustworthiness if it is not; (iii) Fine-tuning non-trustworthy SLMs to enhance their robustness. ", + "page_idx": 58 + }, + { + "type": "text", + "text": "10 CONCLUSION ", + "text_level": 1, + "page_idx": 58 + }, + { + "type": "text", + "text": "This paper provides a comprehensive survey of Small Language Models (SLMs) with up to 7 billion parameters. Initially, we address the need to clearly define SLMs due to existing ambiguities in their characterization. We then present the foundational concepts essential for constructing SLMs. The survey progresses to explore enhancement techniques, including knowledge distillation and quantization, as well as strategies for adapting Large Language Models (LLMs) to SLM contexts. We survey representative SLMs, both general-domain and domain-specific, discussing their preferred datasets and architectural decisions. We also assess their applications across various tasks and deployment strategies on devices. Further, we investigate their role in augmenting the capabilities of LLMs, serving as proxies for fine-tuning and facilitating two types of synergies: cloud-local and task-centric. Additionally, we discuss the critical aspect of their trustworthiness. The paper concludes with key insights aimed at guiding future research on small language models. ", + "page_idx": 58 + }, + { + "type": "text", + "text": "REFERENCES ", + "text_level": 1, + "page_idx": 59 + }, + { + "type": "text", + "text": "[1] Marah Abdin, Sam Ade Jacobs, Ammar Ahmad Awan, Jyoti Aneja, Ahmed Awadallah, Hany Awadalla, Nguyen Bach, Amit Bahree, Arash Bakhtiari, Harkirat Behl, et al. 2024. Phi-3 technical report: A highly capable language model locally on your phone. arXiv preprint arXiv:2404.14219 (2024). [2] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774 (2023). \n[3] Emre Can Acikgoz, Osman Batur İnce, Rayene Bench, Arda Anıl Boz, İlker Kesen, Aykut Erdem, and Erkut Erdem. 2024. Hippocrates: An Open-Source Framework for Advancing Large Language Models in Healthcare. arXiv preprint arXiv:2404.16621 (2024). \n[4] Harshavardhan Adepu, Zhanpeng Zeng, Li Zhang, and Vikas Singh. 2024. FrameQuant: Flexible Low-Bit Quantization for Transformers. arXiv preprint arXiv:2403.06082 (2024). \n[5] Abien Fred Agarap. 2018. Deep Learning using Rectified Linear Units (ReLU). CoRR abs/1803.08375 (2018). arXiv:1803.08375 http://arxiv.org/abs/ 1803.08375 \n[6] Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. 2024. On-policy distillation of language models: Learning from self-generated mistakes. In The Twelfth International Conference on Learning Representations. \n[7] Meta AI. 2024. Llama 3.2: Revolutionizing edge AI and vision with open, customizable models. https://ai.meta.com/blog/llama-3-2-connect-2024- vision-edge-mobile-devices/ Accessed: 2024-9-25. \n[8] Joshua Ainslie, James Lee-Thorp, Michiel de Jong, Yury Zemlyanskiy, Federico Lebrón, and Sumit Sanghai. 2023. GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints. arXiv:2305.13245 [cs.CL] https://arxiv.org/abs/2305.13245 \n[9] Loubna Ben Allal, Anton Lozhkov, Elie Bakouch, Leandro von Werra, and Thomas Wolf. 2024. SmolLM - blazingly fast and remarkably powerful. \n[10] Ebtesam Almazrouei, Hamza Alobeidli, Abdulaziz Alshamsi, Alessandro Cappelli, Ruxandra Cojocaru, Mérouane Debbah, Étienne Goffinet, Daniel Hesslow, Julien Launay, Quentin Malartic, et al. 2023. The falcon series of open language models. arXiv preprint arXiv:2311.16867 (2023). \n[11] Guilherme FCF Almeida, José Luiz Nunes, Neele Engelmann, Alex Wiegmann, and Marcelo de Araújo. 2024. Exploring the psychology of LLMs’ moral and legal reasoning. Artificial Intelligence 333 (2024), 104145. \n[12] Reza Yazdani Aminabadi, Samyam Rajbhandari, Ammar Ahmad Awan, Cheng Li, Du Li, Elton Zheng, Olatunji Ruwase, Shaden Smith, Minjia Zhang, Jeff Rasley, et al. 2022. Deepspeed-inference: enabling efficient inference of transformer models at unprecedented scale. In SC22: International Conference for High Performance Computing, Networking, Storage and Analysis. IEEE, 1–15. \n[13] Yongqi An, Xu Zhao, Tao Yu, Ming Tang, and Jinqiao Wang. 2024. Fluctuation-based adaptive structured pruning for large language models. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38. 10865–10873. \n[14] Rohan Anil, Andrew M Dai, Orhan Firat, Melvin Johnson, Dmitry Lepikhin, Alexandre Passos, Siamak Shakeri, Emanuel Taropa, Paige Bailey, Zhifeng Chen, et al. 2023. Palm 2 technical report. arXiv preprint arXiv:2305.10403 (2023). \n[15] AI Anthropic. 2024. The claude 3 model family: Opus, sonnet, haiku. Claude-3 Model Card 1 (2024). \n[16] David Anugraha, Genta Indra Winata, Chenyue Li, Patrick Amadeus Irawan, and En-Shiun Annie Lee. 2024. ProxyLM: Predicting Language Model Performance on Multilingual Tasks via Proxy Models. arXiv preprint arXiv:2406.09334 (2024). \n[17] Viraat Aryabumi, Yixuan Su, Raymond Ma, Adrien Morisot, Ivan Zhang, Acyr Locatelli, Marzieh Fadaee, Ahmet Üstün, and Sara Hooker. 2024. To Code, or Not To Code? Exploring Impact of Code in Pre-training. arXiv preprint arXiv:2408.10914 (2024). \n[18] Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi. 2024. Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=hSyW5go0v8 \n[19] Saleh Ashkboos, Maximilian L. Croci, Marcelo Gennari do Nascimento, Torsten Hoefler, and James Hensman. 2024. SliceGPT: Compress Large Language Models by Deleting Rows and Columns. In The Twelfth International Conference on Learning Representations. https://openreview.net/ forum?id=vXxardq6db \n[20] Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. 2021. Program synthesis with large language models. arXiv preprint arXiv:2108.07732 (2021). \n[21] Amos Azaria and Tom Mitchell. 2023. The Internal State of an LLM Knows When It’s Lying. In Findings of the Association for Computational Linguistics: EMNLP 2023. 967–976. \n[22] Zhangir Azerbayev, Hailey Schoelkopf, Keiran Paster, Marco Dos Santos, Stephen McAleer, Albert Q Jiang, Jia Deng, Stella Biderman, and Sean Welleck. 2023. Llemma: An open language model for mathematics. arXiv preprint arXiv:2310.10631 (2023). \n[23] Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, Binyuan Hui, Luo Ji, Mei Li, Junyang Lin, Runji Lin, Dayiheng Liu, Gao Liu, Chengqiang Lu, Keming Lu, Jianxin Ma, Rui Men, Xingzhang Ren, Xuancheng Ren, Chuanqi Tan, Sinan Tan, Jianhong Tu, Peng Wang, Shijie Wang, Wei Wang, Shengguang Wu, Benfeng Xu, Jin Xu, An Yang, Hao Yang, Jian Yang, Shusheng Yang, Yang Yao, Bowen Yu, Hongyi Yuan, Zheng Yuan, Jianwei Zhang, Xingxuan Zhang, Yichang Zhang, Zhenru Zhang, Chang Zhou, Jingren Zhou, Xiaohuan Zhou, and Tianhang Zhu. 2023. Qwen Technical Report. arXiv:2309.16609 [cs.CL] https://arxiv.org/abs/2309.16609 \n[24] Jason Baumgartner, Savvas Zannettou, Brian Keegan, Megan Squire, and Jeremy Blackburn. 2020. The pushshift reddit dataset. In Proceedings of the international AAAI conference on web and social media, Vol. 14. 830–839. \n[25] Maximilian Beck, Korbinian Pöppel, Markus Spanring, Andreas Auer, Oleksandra Prudnikova, Michael K Kopp, Günter Klambauer, Johannes Brandstetter, and Sepp Hochreiter. 2024. xLSTM: Extended Long Short-Term Memory. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=ARAxPPIAhq \n[26] Marco Bellagente, Jonathan Tow, Dakota Mahan, Duy Phung, Maksym Zhuravinskyi, Reshinth Adithyan, James Baicoianu, Ben Brooks, Nathan Cooper, Ashish Datta, et al. 2024. Stable lm 2 1.6 b technical report. arXiv preprint arXiv:2402.17834 (2024). \n[27] Loubna Ben Allal, Anton Lozhkov, Guilherme Penedo, Thomas Wolf, and Leandro von Werra. 2024. SmolLM-Corpus. https://huggingface.co/ datasets/HuggingFaceTB/smollm-corpus \n[28] Benjamin Bergner, Andrii Skliar, Amelie Royer, Tijmen Blankevoort, Yuki Asano, and Babak Ehteshami Bejnordi. 2024. Think Big, Generate Quick: LLM-to-SLM for Fast Autoregressive Decoding. arXiv preprint arXiv:2402.16844 (2024). \n[29] Milan Bhan, Jean-Noel Vittaut, Nicolas Chesneau, and Marie-Jeanne Lesot. 2024. Self-AMPLIFY: Improving Small Language Models with Self Post Hoc Explanations. arXiv preprint arXiv:2402.12038 (2024). \n[30] Zhen Bi, Ningyu Zhang, Yida Xue, Yixin Ou, Daxiong Ji, Guozhou Zheng, and Huajun Chen. 2023. Oceangpt: A large language model for ocean science tasks. arXiv preprint arXiv:2310.02031 (2023). \n[31] Stella Biderman, Hailey Schoelkopf, Quentin Anthony, Herbie Bradley, Kyle O’Brien, Eric Hallahan, Mohammad Aflah Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, Aviya Skowron, Lintang Sutawika, and Oskar van der Wal. 2023. Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling. arXiv:2304.01373 [cs.CL] https://arxiv.org/abs/2304.01373 \n[32] Yonatan Bisk, Rowan Zellers, Jianfeng Gao, Yejin Choi, et al. 2020. Piqa: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, Vol. 34. 7432–7439. \n[33] Sid Black, Leo Gao, Phil Wang, Connor Leahy, and Stella Biderman. 2021. GPT-Neo: Large Scale Autoregressive Language Modeling with MeshTensorflow. https://doi.org/10.5281/zenodo.5297715 If you use this software, please cite it using these metadata.. \n[34] Elliot Bolton, Abhinav Venigalla, Michihiro Yasunaga, David Hall, Betty Xiong, Tony Lee, Roxana Daneshjou, Jonathan Frankle, Percy Liang, Michael Carbin, et al. 2024. Biomedlm: A 2.7 b parameter language model trained on biomedical text. arXiv preprint arXiv:2403.18421 (2024). \n[35] William James Bolton, Rafael Poyiadzi, Edward R Morrell, Gabriela van Bergen Gonzalez Bueno, and Lea Goetz. 2024. RAmBLA: A Framework for Evaluating the Reliability of LLMs as Assistants in the Biomedical Domain. arXiv preprint arXiv:2403.14578 (2024). \n[36] Luiz Bonifacio, Hugo Abonizio, Marzieh Fadaee, and Rodrigo Nogueira. 2022. Inpars: Data augmentation for information retrieval using large language models. arXiv preprint arXiv:2202.05144 (2022). \n[37] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language Models are Few-Shot Learners. In Advances in Neural Information Processing Systems, H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (Eds.), Vol. 33. Curran Associates, Inc., 1877–1901. https://proceedings.neurips.cc/paper_files/paper/2020/file/1457c0d6bfcb4967418bfb8ac142f64a-Paper.pdf \n[38] Saikiran Bulusu, Bhavya Kailkhura, Bo Li, Pramod K Varshney, and Dawn Song. 2020. Anomalous example detection in deep learning: A survey. IEEE Access 8 (2020), 132330–132347. \n[39] Weilin Cai, Juyong Jiang, Fan Wang, Jing Tang, Sunghun Kim, and Jiayi Huang. 2024. A survey on mixture of experts. Authorea Preprints (2024). \n[40] Zheng Cai, Maosong Cao, Haojiong Chen, Kai Chen, Keyu Chen, Xin Chen, Xun Chen, Zehui Chen, Zhi Chen, Pei Chu, et al. 2024. Internlm2 technical report. arXiv preprint arXiv:2403.17297 (2024). \n[41] Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, et al. 2021. Extracting training data from large language models. In 30th USENIX Security Symposium (USENIX Security 21). 2633–2650. \n[42] Samuel Carreira, Tomás Marques, José Ribeiro, and Carlos Grilo. 2023. Revolutionizing Mobile Interaction: Enabling a 3 Billion Parameter GPT LLM on Mobile. arXiv:2310.01434 [cs.CL] https://arxiv.org/abs/2310.01434 \n[43] Iñigo Casanueva, Tadas Temčinas, Daniela Gerz, Matthew Henderson, and Ivan Vulić. 2020. Efficient Intent Detection with Dual Sentence Encoders. In Proceedings of the 2nd Workshop on Natural Language Processing for Conversational AI. Association for Computational Linguistics, Online, 38–45. \n[44] Wei-Cheng Chang, X Yu Felix, Yin-Wen Chang, Yiming Yang, and Sanjiv Kumar. [n. d.]. Pre-training Tasks for Embedding-based Large-scale Retrieval. In International Conference on Learning Representations. \n[45] Patrick Chao, Edoardo Debenedetti, Alexander Robey, Maksym Andriushchenko, Francesco Croce, Vikash Sehwag, Edgar Dobriban, Nicolas Flammarion, George J Pappas, Florian Tramer, et al. 2024. Jailbreakbench: An open robustness benchmark for jailbreaking large language models. arXiv preprint arXiv:2404.01318 (2024). \n[46] Dong Chen, Shuo Zhang, Yueting Zhuang, Siliang Tang, Qidong Liu, Hua Wang, and Mingliang Xu. 2024. Improving Large Models with Small models: Lower Costs and Better Performance. arXiv preprint arXiv:2406.15471 (2024). \n[47] Dong Chen, Yueting Zhuang, Shuo Zhang, Jinfeng Liu, Su Dong, and Siliang Tang. 2024. Data Shunt: Collaboration of Small and Large Models for Lower Costs and Better Performance. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38. 11249–11257. \n[48] Hongzhan Chen, Siyue Wu, Xiaojun Quan, Rui Wang, Ming Yan, and Ji Zhang. 2023. MCC-KD: Multi-CoT Consistent Knowledge Distillation. In Findings of the Association for Computational Linguistics: EMNLP 2023. 6805–6820. \n[49] Lihu Chen and Gaël Varoquaux. 2024. What is the role of small models in the llm era: A survey. arXiv preprint arXiv:2409.06857 (2024). \n[50] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde De Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. 2021. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374 (2021). \n[51] Tianyi Chen, Tianyu Ding, Badal Yadav, Ilya Zharkov, and Luming Liang. 2023. Lorashear: Efficient large language model structured pruning and knowledge recovery. arXiv preprint arXiv:2310.18356 (2023). \n[52] Wei Chen, Zhiyuan Li, and Mingyuan Ma. 2024. Octopus: On-device language model for function calling of software APIs. arXiv:2404.01549 [cs.CL] https://arxiv.org/abs/2404.01549 \n[53] Yangyi Chen, Fanchao Qi, Hongcheng Gao, Zhiyuan Liu, and Maosong Sun. 2022. Textual Backdoor Attacks Can Be More Harmful via Two Simple Tricks. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, EMNLP. 11215–11221. \n[54] Yangyi Chen, Xingyao Wang, Hao Peng, and Heng Ji. 2024. A Single Transformer for Scalable Vision-Language Modeling. Transactions on Machine Learning Research (2024). https://openreview.net/forum?id=nuzFG0Rbhy \n[55] Zeming Chen, Alejandro Hernández Cano, Angelika Romanou, Antoine Bonnet, Kyle Matoba, Francesco Salvi, Matteo Pagliardini, Simin Fan, Andreas Köpf, Amirkeivan Mohtashami, et al. 2023. MEDITRON-70B: Scaling Medical Pretraining for Large Language Models. arXiv preprint arXiv:2311.16079 (2023). \n[56] Zhiyu Chen, Wenhu Chen, Charese Smiley, Sameena Shah, Iana Borova, Dylan Langdon, Reema Moussa, Matt Beane, Ting-Hao Huang, Bryan R Routledge, et al. 2021. FinQA: A Dataset of Numerical Reasoning over Financial Data. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. 3697–3711. \n[57] Zhiyu Chen, Shiyang Li, Charese Smiley, Zhiqiang Ma, Sameena Shah, and William Yang Wang. 2022. ConvFinQA: Exploring the Chain of Numerical Reasoning in Conversational Finance Question Answering. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing. 6279–6292. \n[58] Xiaoxue Cheng, Junyi Li, Wayne Xin Zhao, Hongzhi Zhang, Fuzheng Zhang, Di Zhang, Kun Gai, and Ji-Rong Wen. 2024. Small Agent Can Also Rock! Empowering Small Language Models as Hallucination Detector. arXiv preprint arXiv:2406.11277 (2024). \n[59] Steffi Chern, Zhulin Hu, Yuqing Yang, Ethan Chern, Yuan Guo, Jiahe Jin, Binjie Wang, and Pengfei Liu. 2024. BeHonest: Benchmarking Honesty of Large Language Models. arXiv preprint arXiv:2406.13261 (2024). \n[60] Yew Ken Chia, Pengfei Hong, Lidong Bing, and Soujanya Poria. 2024. InstructEval: Towards Holistic Evaluation of Instruction-Tuned Large Language Models. In Proceedings of the First edition of the Workshop on the Scaling Behavior of Large Language Models (SCALE-LLM 2024). 35–64. \n[61] Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, Ion Stoica, and Eric P. Xing. 2023. Vicuna: An Open-Source Chatbot Impressing GPT-4 with $9 0 \\% ^ { \\star }$ ChatGPT Quality. https://lmsys.org/blog/2023- 03-30-vicuna/ \n[62] Yae Jee Cho, Luyang Liu, Zheng Xu, Aldi Fahrezi, and Gauri Joshi. 2024. Heterogeneous LoRA for Federated Fine-tuning of On-Device Foundation Models. arXiv:2401.06432 [cs.LG] https://arxiv.org/abs/2401.06432 \n[63] Xiaokai Chu, Jiashu Zhao, Lixin Zou, and Dawei Yin. 2022. H-ERNIE: A multi-granularity pre-trained language model for web search. In Proceedings of the 45th International ACM SIGIR conference on research and development in information retrieval. 1478–1489. \n[64] Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Yunxuan Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, et al. 2024. Scaling instruction-finetuned language models. Journal of Machine Learning Research 25, 70 (2024), 1–53. \n[65] Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457 (2018). \n[66] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168 (2021). \n[67] Together Computer. 2023. RedPajama: an Open Dataset for Training Large Language Models. https://github.com/togethercomputer/RedPajama-Data \n[68] Mike Conover, Matt Hayes, Ankit Mathur, Jianwei Xie, Jun Wan, Sam Shah, Ali Ghodsi, Patrick Wendell, Matei Zaharia, and Reynold Xin. 2023. Free Dolly: Introducing the World’s First Truly Open Instruction-Tuned LLM. https://www.databricks.com/blog/2023/04/12/dolly-first-open-commerciallyviable-instruction-tuned-llm \n[69] Nick Craswell, Bhaskar Mitra, Emine Yilmaz, and Daniel Campos. 2021. Overview of the TREC 2020 deep learning track. CoRR abs/2102.07662 (2021). arXiv:2102.07662 https://arxiv.org/abs/2102.07662 \n[70] Justin Cui, Wei-Lin Chiang, Ion Stoica, and Cho-Jui Hsieh. 2024. OR-Bench: An Over-Refusal Benchmark for Large Language Models. arXiv preprint arXiv:2405.20947 (2024). \n[71] Shiyao Cui, Zhenyu Zhang, Yilong Chen, Wenyuan Zhang, Tianyun Liu, Siqi Wang, and Tingwen Liu. 2023. Fft: Towards harmlessness evaluation and analysis for llms with factuality, fairness, toxicity. arXiv preprint arXiv:2311.18580 (2023). \n[72] Luigi Daniele and Suphavadeeprasit. 2023. Amplify-Instruct: Synthetically Generated Diverse Multi-turn Conversations for efficient LLM Training. arXiv preprint arXiv:(coming soon) (2023). https://huggingface.co/datasets/LDJnr/Capybara \n[73] Tri Dao. [n. d.]. FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning. In The Twelfth International Conference on Learning Representations. \n[74] Tri Dao, Dan Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. 2022. Flashattention: Fast and memory-efficient exact attention with io-awareness. Advances in Neural Information Processing Systems 35 (2022), 16344–16359. \n[75] Tri Dao and Albert Gu. 2024. Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality. arXiv preprint arXiv:2405.21060 (2024). \n[76] Rocktim Jyoti Das, Liqun Ma, and Zhiqiang Shen. 2023. Beyond size: How gradients shape pruning decisions in large language models. arXiv preprint arXiv:2311.04902 (2023). \n[77] Anirban Dasgupta, Ravi Kumar, and Tamás Sarlós. 2011. Fast locality-sensitive hashing. In Proceedings of the 17th ACM SIGKDD international conference on Knowledge discovery and data mining. 1073–1081. \n[78] Pieter Delobelle, Ewoenam Kwaku Tokpo, Toon Calders, and Bettina Berendt. 2022. Measuring fairness with biased rulers: A comparative study on bias metrics for pre-trained language models. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics. 1693–1706. \n[79] Yongheng Deng, Ziqing Qiao, Ju Ren, Yang Liu, and Yaoxue Zhang. 2023. Mutual enhancement of large and small language models with cross-silo knowledge transfer. arXiv preprint arXiv:2312.05842 (2023). \n[80] Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. 2022. GPT3.int8(): 8-bit Matrix Multiplication for Transformers at Scale. In Advances in Neural Information Processing Systems, Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho (Eds.). https: //openreview.net/forum?id=dXiGWqBoxaD \n[81] Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. 2024. Qlora: Efficient finetuning of quantized llms. Advances in Neural Information Processing Systems 36 (2024). \n[82] Tim Dettmers and Luke Zettlemoyer. 2023. The case for 4-bit precision: k-bit inference scaling laws. In International Conference on Machine Learning. PMLR, 7750–7774. \n[83] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). 4171–4186. \n[84] Nolan Dey, Gurpreet Gosal, Zhiming Chen, Hemant Khachane, William Marshall, Ribhu Pathria, Marvin Tom, and Joel Hestness. 2023. Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Cluster. CoRR abs/2304.03208 (2023). \n[85] Richard Diehl Martinez, Pietro Lesci, and Paula Buttery. 2024. Tending Towards Stability: Convergence Challenges in Small Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 3275–3286. https://doi.org/10.18653/v1/2024.findings-emnlp.187 \n[86] Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Zhi Zheng, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. 2023. Enhancing chat language models by scaling high-quality instructional conversations. arXiv preprint arXiv:2305.14233 (2023). \n[87] Tinghe Ding. 2024. MobileAgent: enhancing mobile control via human-machine interaction and SOP integration. arXiv:2401.04124 [cs.HC] https://arxiv.org/abs/2401.04124 \n[88] Ricardo Dominguez-Olmedo, Moritz Hardt, and Celestine Mendler-Dünner. 2023. Questioning the survey responses of large language models. arXiv preprint arXiv:2306.07951 (2023). \n[89] Qian Dong, Yiding Liu, Qingyao Ai, Haitao Li, Shuaiqiang Wang, Yiqun Liu, Dawei Yin, and Shaoping Ma. 2023. I3 retriever: incorporating implicit interaction in pre-trained language models for passage retrieval. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management. 441–451. \n[90] Xin Dong, Yonggan Fu, Shizhe Diao, Wonmin Byeon, Zijia Chen, Ameya Sunil Mahabaleshwarkar, Shih-Yang Liu, Matthijs Van Keirsbilck, Min-Hung Chen, Yoshi Suhara, et al. 2024. Hymba: A Hybrid-head Architecture for Small Language Models. arXiv preprint arXiv:2411.13676 (2024). \n[91] Jason Xiaotian Dou, Haiyi Mao, Runxue Bao, Paul Pu Liang, Xiaoqing Tan, Shiyi Zhang, Minxue Jia, Pengfei Zhou, and Zhi-Hong Mao. 2023. The Measurement of Knowledge in Knowledge Graphs. In Proceedings of the AAAI 2023 Workshop on Representation Learning for Responsible Human-Centric AI (R2HCAI). Association for the Advancement of Artificial Intelligence (AAAI) Washington . . \n[92] Xinrun Du, Zhouliang Yu, Songyang Gao, Ding Pan, Yuyang Cheng, Ziyang Ma, Ruibin Yuan, Xingwei Qu, Jiaheng Liu, Tianyu Zheng, Xinchen Luo, Guorui Zhou, Wenhu Chen, and Ge Zhang. 2024. Chinese Tiny LLM: Pretraining a Chinese-Centric Large Language Model. arXiv:2404.04167 [cs.CL] https://arxiv.org/abs/2404.04167 \n[93] Zhengxiao Du, Yujie Qian, Xiao Liu, Ming Ding, Jiezhong Qiu, Zhilin Yang, and Jie Tang. 2022. GLM: General Language Model Pretraining with Autoregressive Blank Infilling. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 320–335. \n[94] Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, et al. 2024. The llama 3 herd of models. arXiv preprint arXiv:2407.21783 (2024). \n[95] Kazuki Egashira, Mark Vero, Robin Staab, Jingxuan He, and Martin Vechev. 2024. Exploiting LLM Quantization. arXiv preprint arXiv:2405.18137 (2024). \n[96] Ronen Eldan and Yuanzhi Li. 2023. Tinystories: How small can language models be and still speak coherent english? arXiv preprint arXiv:2305.07759 (2023). \n[97] Stefan Elfwing, Eiji Uchibe, and Kenji Doya. 2018. Sigmoid-weighted linear units for neural network function approximation in reinforcement learning. Neural networks 107 (2018), 3–11. \n[98] David Esiobu, Xiaoqing Tan, Saghar Hosseini, Megan Ung, Yuchen Zhang, Jude Fernandes, Jane Dwivedi-Yu, Eleonora Presani, Adina Williams, and Eric Smith. 2023. ROBBIE: Robust bias evaluation of large generative language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. 3764–3814. https://aclanthology.org/2023.emnlp-main.230 \n[99] Hugging Face. 2024. SmolVLM - small yet mighty Vision Language Model. https://huggingface.co/blog/smolvlm Accessed: 2024-11-26. \n[100] William Fedus, Barret Zoph, and Noam Shazeer. 2022. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research 23, 120 (2022), 1–39. \n[101] Shangbin Feng, Weijia Shi, Yuyang Bai, Vidhisha Balachandran, Tianxing He, and Yulia Tsvetkov. 2023. Knowledge Card: Filling LLMs’ Knowledge Gaps with Plug-in Specialized Language Models. arXiv preprint arXiv:2305.09955 (2023). \n[102] Elias Frantar and Dan Alistarh. 2023. Sparsegpt: Massive language models can be accurately pruned in one-shot. In International Conference on Machine Learning. PMLR, 10323–10337. \n[103] Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. 2023. GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers. In The Eleventh International Conference on Learning Representations. \n[104] Hao Fu, Yao; Peng and Tushar Khot. 2022. How does GPT Obtain its Ability? Tracing Emergent Abilities of Language Models to their Sources. Yao Fu’s Notion (Dec 2022). https://yaofu.notion.site/How-does-GPT-Obtain-its-Ability-Tracing-Emergent-Abilities-of-Language-Models-to-theirSources-b9a57ac0fcf74f30a1ab9e3e36fa1dc1 \n[105] Yao Fu, Hao Peng, Litu Ou, Ashish Sabharwal, and Tushar Khot. 2023. Specializing smaller language models towards multi-step reasoning. In International Conference on Machine Learning. PMLR, 10421–10430. \n[106] Philip Gage. 1994. A new algorithm for data compression. The C Users Journal 12, 2 (1994), 23–38. \n[107] Chongming Gao, Shiqi Wang, Shijun Li, Jiawei Chen, Xiangnan He, Wenqiang Lei, Biao Li, Yuan Zhang, and Peng Jiang. 2023. CIRS: Bursting filter bubbles by counterfactual interactive recommender system. ACM Transactions on Information Systems 42, 1 (2023), 1–27. \n[108] Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, et al. 2020. The Pile: An 800GB dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027 (2020). \n[109] Luyu Gao and Jamie Callan. 2022. Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrieval. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2843–2853. \n[110] Shangqian Gao, Chi-Heng Lin, Ting Hua, Zheng Tang, Yilin Shen, Hongxia Jin, and Yen-Chang Hsu. 2024. DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https: //openreview.net/forum?id=YxaY6tHgg0 \n[111] Suyu Ge, Yunan Zhang, Liyuan Liu, Minjia Zhang, Jiawei Han, and Jianfeng Gao. 2024. Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=uNrFpDPMyo \n[112] Alex Gichamba, Tewodros Kederalah Idris, Brian Ebiyau, Eric Nyberg, and Teruko Mitamura. 2024. ColBERT Retrieval and Ensemble Response Scoring for Language Model Question Answering. arXiv:2408.10808 [cs.CL] https://arxiv.org/abs/2408.10808 \n[113] Karan Goel. 2024. The On-Device Intelligence Update. https://www.cartesia.ai/blog/on-device \n[114] Aaron Gokaslan, Vanya Cohen, Ellie Pavlick, and Stefanie Tellex. 2019. Openwebtext corpus. \n[115] Shreya Goyal, Sumanth Doddapaneni, Mitesh M Khapra, and Balaraman Ravindran. 2023. A survey of adversarial defenses and robustness in nlp. Comput. Surveys 55, 14s (2023), 1–39. \n[116] Dirk Groeneveld, Iz Beltagy, Pete Walsh, Akshita Bhagia, Rodney Kinney, Oyvind Tafjord, Ananya Harsh Jha, Hamish Ivison, Ian Magnusson, Yizhong Wang, et al. 2024. Olmo: Accelerating the science of language models. arXiv preprint arXiv:2402.00838 (2024). \n[117] Albert Gu and Tri Dao. 2023. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752 (2023). \n[118] Naibin Gu, Peng Fu, Xiyu Liu, Bowen Shen, Zheng Lin, and Weiping Wang. 2024. Light-PEFT: Lightening Parameter-Efficient Fine-Tuning via Early Pruning. In Findings of the Association for Computational Linguistics: ACL 2024, Lun-Wei Ku, Andre Martins, and Vivek Srikumar (Eds.). Association for Computational Linguistics, Bangkok, Thailand, 7528–7541. https://doi.org/10.18653/v1/2024.findings-acl.447 \n[119] Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. 2024. MiniLLM: Knowledge distillation of large language models. In The Twelfth International Conference on Learning Representations. \n[120] Suriya Gunasekar, Yi Zhang, Jyoti Aneja, Caio César Teodoro Mendes, Allie Del Giorno, Sivakanth Gopi, Mojan Javaheripi, Piero Kauffmann, Gustavo de Rosa, Olli Saarikivi, Adil Salim, Shital Shah, Harkirat Singh Behl, Xin Wang, Sébastien Bubeck, Ronen Eldan, Adam Tauman Kalai, Yin Tat Lee, and Yuanzhi Li. 2023. Textbooks Are All You Need. arXiv:2306.11644 [cs.CL] https://arxiv.org/abs/2306.11644 \n[121] Daya Guo, Qihao Zhu, Dejian Yang, Zhenda Xie, Kai Dong, Wentao Zhang, Guanting Chen, Xiao Bi, Yu Wu, YK Li, et al. 2024. DeepSeek-Coder: When the Large Language Model Meets Programming–The Rise of Code Intelligence. arXiv preprint arXiv:2401.14196 (2024). \n[122] Jinyang Guo, Jianyu Wu, Zining Wang, Jiaheng Liu, Ge Yang, Yifu Ding, Ruihao Gong, Haotong Qin, and Xianglong Liu. 2024. Compressing large language models by joint sparsification and quantization. In Forty-first International Conference on Machine Learning. \n[123] Shangwei Guo, Chunlong Xie, Jiwei Li, Lingjuan Lyu, and Tianwei Zhang. 2022. Threats to pre-trained language models: Survey and taxonomy. arXiv preprint arXiv:2202.06862 (2022). \n[124] Song Guo, Jiahang Xu, Li Lyna Zhang, and Mao Yang. 2023. Compresso: Structured pruning with collaborative prompting learns compact large language models. arXiv preprint arXiv:2310.05015 (2023). \n[125] Zhen Guo, Peiqi Wang, Yanwei Wang, and Shangdi Yu. 2023. Improving Small Language Models on PubMedQA via Generative Data Augmentation. arXiv:2305.07804 [cs.CL] https://arxiv.org/abs/2305.07804 \n[126] Song Han, Jeff Pool, John Tran, and William Dally. 2015. Learning both weights and connections for efficient neural network. Advances in neural information processing systems 28 (2015). \n[127] Zixu Hao, Huiqiang Jiang, Shiqi Jiang, Ju Ren, and Ting Cao. 2024. Hybrid SLM and LLM for Edge-Cloud Collaborative Inference. In Proceedings of the Workshop on Edge and Mobile Foundation Models. 36–41. \n[128] Tim Hartill, Diana Benavides-Prado, Michael Witbrock, and Patricia J. Riddle. 2023. Answering Unseen Questions With Smaller Language Models Using Rationale Generation and Dense Retrieval. arXiv:2308.04711 [cs.CL] https://arxiv.org/abs/2308.04711 \n[129] Tim Hartill, Neset Tan, Michael Witbrock, and Patricia J. Riddle. 2023. Teaching Smaller Language Models To Generalise To Unseen Compositional Questions. arXiv:2308.00946 [cs.CL] https://arxiv.org/abs/2308.00946 \n[130] Kai He, Rui Mao, Qika Lin, Yucheng Ruan, Xiang Lan, Mengling Feng, and Erik Cambria. 2023. A survey of large language models for healthcare: from data, technology, and applications to accountability and ethics. arXiv preprint arXiv:2310.05694 (2023). \n[131] Pengcheng He, Jianfeng Gao, and Weizhu Chen. 2023. DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with GradientDisentangled Embedding Sharing. In The Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=sE7- XhLxHA \n[132] Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen. 2020. Deberta: Decoding-enhanced bert with disentangled attention. arXiv preprint arXiv:2006.03654 (2020). \n[133] Narges Heidari, Parham Moradi, and Abbas Koochari. 2022. An attention-based deep learning method for solving the cold-start and sparsity issues of recommender systems. Knowledge-Based Systems 256 (2022), 109835. \n[134] Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021. Measuring Massive Multitask Language Understanding. In International Conference on Learning Representations. https://openreview.net/forum?id=d7KBjmI3GmQ \n[135] Dan Hendrycks and Kevin Gimpel. 2016. Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415 (2016). \n[136] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531 (2015). \n[137] Sepp Hochreiter and Jürgen Schmidhuber. 1996. LSTM can solve hard long time lag problems. Advances in neural information processing systems 9 (1996). \n[138] Junyuan Hong, Jinhao Duan, Chenhui Zhang, Zhangheng Li, Chulin Xie, Kelsey Lieberman, James Diffenderfer, Brian R. Bartoldson, Ajay Kumar Jaiswal, Kaidi Xu, Bhavya Kailkhura, Dan Hendrycks, Dawn Song, Zhangyang Wang, and Bo Li. 2024. Decoding Compressed Trust: Scrutinizing the Trustworthiness of Efficient LLMs Under Compression. In Proceedings of the Forty-first International Conference on Machine Learning, ICML. https://openreview.net/forum?id=e3Dpq3WdMv \n[139] Yutong Meng Yuhao Wang Hongcheng Liu, Yusheng Liao. 2023. XieZhi: Chinese Law Large Language Model. https://github.com/LiuHC0428/ LAW_GPT. \n[140] Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin De Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. 2019. Parameter-efficient transfer learning for NLP. In International Conference on Machine Learning. PMLR, 2790–2799. \n[141] Cheng-Yu Hsieh, Chun-Liang Li, Chih-kuan Yeh, Hootan Nakhost, Yasuhisa Fujii, Alex Ratner, Ranjay Krishna, Chen-Yu Lee, and Tomas Pfister. 2023. Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes. In Findings of the Association for Computational Linguistics: ACL 2023. 8003–8017. \n[142] Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685 (2021). \n[143] Shengding Hu, Yuge Tu, Xu Han, Chaoqun He, Ganqu Cui, Xiang Long, Zhi Zheng, Yewei Fang, Yuxiang Huang, Weilin Zhao, et al. 2024. Minicpm: Unveiling the potential of small language models with scalable training strategies. arXiv preprint arXiv:2404.06395 (2024). \n[144] Xing Hu, Yuan Chen, Dawei Yang, Sifan Zhou, Zhihang Yuan, Jiangyong Yu, and Chen Xu. 2024. I-LLM: Efficient Integer-Only Inference for Fully-Quantized Low-Bit Large Language Models. arXiv preprint arXiv:2405.17849 (2024). \n[145] Jiaxin Huang, Shixiang Shane Gu, Le Hou, Yuexin Wu, Xuezhi Wang, Hongkun Yu, and Jiawei Han. [n. d.]. Large Language Models Can Self-Improve. In The 2023 Conference on Empirical Methods in Natural Language Processing. \n[146] Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, et al. 2023. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. arXiv preprint arXiv:2311.05232 (2023). \n[147] Wei Huang, Yangdong Liu, Haotong Qin, Ying Li, Shiming Zhang, Xianglong Liu, Michele Magno, and Xiaojuan Qi. 2024. Billm: Pushing the limit of post-training quantization for llms. arXiv preprint arXiv:2402.04291 (2024). \n[148] Wenyu Huang, Guancheng Zhou, Hongru Wang, Pavlos Vougiouklis, Mirella Lapata, and Jeff Z. Pan. 2024. Less is More: Making Smaller Language Models Competent Subgraph Retrievers for Multi-hop KGQA. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 15787–15803. https://doi.org/10.18653/v1/2024.findings-emnlp.927 \n[149] Yuzhen Huang, Yuzhuo Bai, Zhihao Zhu, Junlei Zhang, Jinghan Zhang, Tangjun Su, Junteng Liu, Chuancheng Lv, Yikai Zhang, Yao Fu, et al. 2024. C-eval: A multi-level multi-discipline chinese evaluation suite for foundation models. Advances in Neural Information Processing Systems 36 (2024). \n[150] Yangsibo Huang, Samyak Gupta, Mengzhou Xia, Kai Li, and Danqi Chen. 2023. Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation. arXiv preprint arXiv:2310.06987 (2023). \n[151] Yuheng Huang, Jiayang Song, Zhijie Wang, Shengming Zhao, Huaming Chen, Felix Juefei-Xu, and Lei Ma. 2023. Look before you leap: An exploratory study of uncertainty measurement for large language models. arXiv preprint arXiv:2307.10236 (2023). \n[152] Samuel Humeau, Kurt Shuster, Marie-Anne Lachaux, and Jason Weston. [n. d.]. Poly-encoders: Architectures and Pre-training Strategies for Fast and Accurate Multi-sentence Scoring. In International Conference on Learning Representations. \n[153] Hakan Inan, Kartikeya Upasani, Jianfeng Chi, Rashi Rungta, Krithika Iyer, Yuning Mao, Michael Tontchev, Qing Hu, Brian Fuller, Davide Testuggine, et al. 2023. Llama guard: Llm-based input-output safeguard for human-ai conversations. arXiv preprint arXiv:2312.06674 (2023). \n[154] Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and Geoffrey E Hinton. 1991. Adaptive mixtures of local experts. Neural computation 3, 1 (1991), 79–87. \n[155] Mojan Javaheripi, Sébastien Bubeck, Marah Abdin, Jyoti Aneja, Sebastien Bubeck, Caio César Teodoro Mendes, Weizhu Chen, Allie Del Giorno, Ronen Eldan, Sivakanth Gopi, et al. 2023. Phi-2: The surprising power of small language models. Microsoft Research Blog (2023). \n[156] Soyeong Jeong, Jinheon Baek, Sukmin Cho, Sung Hwang, and Jong C Park. 2023. Test-Time Self-Adaptive Small Language Models for Question Answering. In Findings of the Association for Computational Linguistics: EMNLP 2023. 15459–15469. \n[157] Ananya Harsh Jha, Tom Sherborne, Evan Pete Walsh, Dirk Groeneveld, Emma Strubell, and Iz Beltagy. 2024. Just CHOP: Embarrassingly Simple LLM Compression. arXiv:2305.14864 [cs.CL] https://arxiv.org/abs/2305.14864 \n[158] Yixin Ji, Yang Xiang, Juntao Li, Wei Chen, Zhongyi Liu, Kehai Chen, and Min Zhang. 2024. Feature-based Low-Rank Compression of Large Language Models via Bayesian Optimization. arXiv preprint arXiv:2405.10616 (2024). \n[159] Ziwei Ji, Tiezheng Yu, Yan Xu, Nayeon Lee, Etsuko Ishii, and Pascale Fung. 2023. Towards mitigating LLM hallucination via self reflection. In Findings of the Association for Computational Linguistics: EMNLP 2023. 1827–1843. \n[160] Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. 2023. Mistral 7B. arXiv preprint arXiv:2310.06825 (2023). \n[161] Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, et al. 2024. Mixtral of experts. arXiv preprint arXiv:2401.04088 (2024). \n[162] Huiqiang Jiang, Qianhui Wu, Xufang Luo, Dongsheng Li, Chin-Yew Lin, Yuqing Yang, and Lili Qiu. 2024. LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression. In ICLR 2024 Workshop on Mathematical and Empirical Understanding of Foundation Models. https://openreview.net/forum?id=9YvfRrpmyw \n[163] Qiao Jin, Bhuwan Dhingra, Zhengping Liu, William Cohen, and Xinghua Lu. 2019. PubMedQA: A Dataset for Biomedical Research Question Answering. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). 2567–2577. \n[164] Rudolph Emil Kalman. 1960. A new approach to linear filtering and prediction problems. (1960). \n[165] Hao Kang, Qingru Zhang, Souvik Kundu, Geonhwa Jeong, Zaoxing Liu, Tushar Krishna, and Tuo Zhao. 2024. Gear: An efficient kv cache compression recipefor near-lossless generative inference of llm. arXiv preprint arXiv:2403.05527 (2024). \n[166] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. 2020. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361 (2020). \n[167] Omar Khattab, Arnav Singhvi, Paridhi Maheshwari, Zhiyuan Zhang, Keshav Santhanam, Sri Vardhamanan, Saiful Haq, Ashutosh Sharma, Thomas T Joshi, Hanna Moazam, et al. 2023. Dspy: Compiling declarative language model calls into self-improving pipelines. arXiv preprint arXiv:2310.03714 (2023). \n[168] Jeonghoon Kim, Jung Hyun Lee, Sungdong Kim, Joonsuk Park, Kang Min Yoo, Se Jung Kwon, and Dongsoo Lee. 2024. Memory-efficient fine-tuning of compressed large language models via sub-4-bit integer quantization. Advances in Neural Information Processing Systems 36 (2024). \n[169] Minsoo Kim, Sihwa Lee, Janghwan Lee, Sukjin Hong, Du-Seong Chang, Wonyong Sung, and Jungwook Choi. 2024. Token-scaled logit distillation for ternary weight generative language models. Advances in Neural Information Processing Systems 36 (2024). \n[170] Sehoon Kim, Coleman Hooper, Amir Gholami, Zhen Dong, Xiuyu Li, Sheng Shen, Michael W Mahoney, and Kurt Keutzer. 2023. Squeezellm: Dense-and-sparse quantization. arXiv preprint arXiv:2306.07629 (2023). \n[171] Yoon Kim and Alexander M Rush. 2016. Sequence-Level Knowledge Distillation. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing. 1317–1327. \n[172] Young Jin Kim, Raffy Fahim, and Hany Hassan Awadalla. 2023. Mixture of Quantized Experts (MoQE): Complementary Effect of Low-bit Quantization and Robustness. arXiv preprint arXiv:2310.02410 (2023). \n[173] Jongwoo Ko, Sungnyun Kim, Tianyi Chen, and Se-Young Yun. 2024. DistiLLM: Towards Streamlined Distillation for Large Language Models. arXiv preprint arXiv:2402.03898 (2024). \n[174] Denis Kocetkov, Raymond Li, Loubna Ben Allal, Jia Li, Chenghao Mou, Carlos Muñoz Ferrandis, Yacine Jernite, Margaret Mitchell, Sean Hughes, Thomas Wolf, et al. 2022. The stack: 3 tb of permissively licensed source code. arXiv preprint arXiv:2211.15533 (2022). \n[175] Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. 2023. Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generation. In Proceedings of the Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=VD-AYtP0dve \n[176] Divyanshu Kumar, Anurakt Kumar, Sahil Agarwal, and Prashanth Harshangi. 2024. Fine-Tuning, Quantization, and LLMs: Navigating Unintended Outcomes. arXiv preprint arXiv:2404.04392 (2024). \n[177] Ohjoon Kwon, Donghyeon Jeon, Nayoung Choi, Gyu-Hwung Cho, Hwiyeol Jo, Changbong Kim, Hyunwoo Lee, Inho Kang, Sun Kim, and Taiwoo Park. 2024. SLM as Guardian: Pioneering AI Safety with Small Language Model. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: Industry Track, Franck Dernoncourt, Daniel Preoţiuc-Pietro, and Anastasia Shimorina (Eds.). Association for Computational Linguistics, Miami, Florida, US, 1333–1350. https://doi.org/10.18653/v1/2024.emnlp-industry.99 \n[178] Yanis Labrak, Adrien Bazoge, Emmanuel Morin, Pierre-Antoine Gourraud, Mickael Rouvier, and Richard Dufour. 2024. Biomistral: A collection of open-source pretrained large language models for medical domains. arXiv preprint arXiv:2402.10373 (2024). \n[179] Stefan Larson, Anish Mahendran, Joseph J. Peper, Christopher Clarke, Andrew Lee, Parker Hill, Jonathan K. Kummerfeld, Kevin Leach, Michael A. Laurenzano, Lingjia Tang, and Jason Mars. 2019. An Evaluation Dataset for Intent Classification and Out-of-Scope Prediction. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Kentaro Inui, Jing Jiang, Vincent Ng, and Xiaojun Wan (Eds.). Association for Computational Linguistics, Hong Kong, China, \nManuscript submitted to ACM 1311–1316. https://doi.org/10.18653/v1/D19-1131 \n[180] Hugo Laurençon, Lucile Saulnier, Thomas Wang, Christopher Akiki, Albert Villanova del Moral, Teven Le Scao, Leandro Von Werra, Chenghao Mou, Eduardo González Ponferrada, Huu Nguyen, et al. 2022. The bigscience roots corpus: A 1.6 tb composite multilingual dataset. Advances in Neural Information Processing Systems 35 (2022), 31809–31826. \n[181] Teven Le Scao, Angela Fan, Christopher Akiki, Ellie Pavlick, Suzana Ilić, Daniel Hesslow, Roman Castagné, Alexandra Sasha Luccioni, François Yvon, Matthias Gallé, et al. 2023. Bloom: A 176b-parameter open-access multilingual language model. (2023). \n[182] Hojae Lee, Junho Kim, and SangKeun Lee. 2024. Mentor-KD: Making Small Language Models Better Multi-step Reasoners. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 17643–17658. https://doi.org/10.18653/v1/2024.emnlp-main.977 \n[183] Jooyoung Lee, Fan Yang, Thanh Tran, Qian Hu, Emre Barut, and Kai-Wei Chang. 2024. Can Small Language Models Help Large Language Models Reason Better?: LM-Guided Chain-of-Thought. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024). 2835–2843. \n[184] Benjamin Lefaudeux, Francisco Massa, Diana Liskovich, Wenhan Xiong, Vittorio Caggiano, Sean Naren, Min Xu, Jieru Hu, Marta Tintore, Susan Zhang, Patrick Labatut, Daniel Haziza, Luca Wehrstedt, Jeremy Reizenstein, and Grigory Sizov. 2022. xFormers: A modular and hackable Transformer modelling library. https://github.com/facebookresearch/xformers. \n[185] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. 2016. Layer normalization. ArXiv e-prints (2016), arXiv–1607. \n[186] Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, et al. 2022. Solving quantitative reasoning problems with language models. Advances in Neural Information Processing Systems 35 (2022), 3843–3857. \n[187] Chenglin Li, Qianglong Chen, Liangyue Li, Caiyu Wang, Yicheng Li, Zulong Chen, and Yin Zhang. 2023. Mixed distillation helps smaller language model better reasoning. arXiv preprint arXiv:2312.10730 (2023). \n[188] Guangyan Li, Yongqiang Tang, and Wensheng Zhang. 2024. LoRAP: Transformer Sub-Layers Deserve Differentiated Structured Compression for Large Language Models. arXiv preprint arXiv:2404.09695 (2024). \n[189] Haitao Li, Qingyao Ai, Jia Chen, Qian Dong, Zhijing Wu, Yiqun Liu, Chong Chen, and Qi Tian. 2024. BLADE: Enhancing Black-box Large Language Models with Small Domain-Specific Models. arXiv:2403.18365 [cs.CL] https://arxiv.org/abs/2403.18365 \n[190] Haoran Li, Dadi Guo, Donghao Li, Wei Fan, Qi Hu, Xin Liu, Chunkit Chan, Duanyi Yao, Yuan Yao, and Yangqiu Song. 2024. PrivLM-Bench: A Multi-level Privacy Evaluation Benchmark for Language Models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics. 54–73. \n[191] Junyi Li, Xiaoxue Cheng, Xin Zhao, Jian-Yun Nie, and Ji-Rong Wen. 2023. HaluEval: A Large-Scale Hallucination Evaluation Benchmark for Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, Singapore, 6449–6464. https://doi.org/10.18653/v1/2023.emnlp-main.397 \n[192] Jeffrey Li, Alex Fang, Georgios Smyrnis, Maor Ivgi, Matt Jordan, Samir Gadre, Hritik Bansal, Etash Guha, Sedrick Keh, Kushal Arora, et al. 2024. Datacomp-lm: In search of the next generation of training sets for language models. arXiv preprint arXiv:2406.11794 (2024). \n[193] Luchang Li, Sheng Qian, Jie Lu, Lunxi Yuan, Rui Wang, and Qin Xie. 2024. Transformer-Lite: High-efficiency Deployment of Large Language Models on Mobile Phone GPUs. arXiv:2403.20041 [cs.CL] https://arxiv.org/abs/2403.20041 \n[194] Pingzhi Li, Xiaolong Jin, Yu Cheng, and Tianlong Chen. 2024. Examining Post-Training Quantization for Mixture-of-Experts: A Benchmark. arXiv preprint arXiv:2406.08155 (2024). \n[195] Raymond Li, Loubna Ben Allal, Yangtian Zi, Niklas Muennighoff, Denis Kocetkov, Chenghao Mou, Marc Marone, Christopher Akiki, Jia Li, Jenny Chim, Qian Liu, Evgenii Zheltonozhskii, Terry Yue Zhuo, Thomas Wang, Olivier Dehaene, Mishig Davaadorj, Joel Lamy-Poirier, João Monteiro, Oleh Shliazhko, Nicolas Gontier, Nicholas Meade, Armel Zebaze, Ming-Ho Yee, Logesh Kumar Umapathi, Jian Zhu, Benjamin Lipkin, Muhtasham Oblokulov, Zhiruo Wang, Rudra Murthy, Jason Stillerman, Siva Sankalp Patel, Dmitry Abulkhanov, Marco Zocca, Manan Dey, Zhihan Zhang, Nour Fahmy, Urvashi Bhattacharyya, Wenhao Yu, Swayam Singh, Sasha Luccioni, Paulo Villegas, Maxim Kunakov, Fedor Zhdanov, Manuel Romero, Tony Lee, Nadav Timor, Jennifer Ding, Claire Schlesinger, Hailey Schoelkopf, Jan Ebert, Tri Dao, Mayank Mishra, Alex Gu, Jennifer Robinson, Carolyn Jane Anderson, Brendan Dolan-Gavitt, Danish Contractor, Siva Reddy, Daniel Fried, Dzmitry Bahdanau, Yacine Jernite, Carlos Muñoz Ferrandis, Sean Hughes, Thomas Wolf, Arjun Guha, Leandro von Werra, and Harm de Vries. 2023. StarCoder: may the source be with you! arXiv:2305.06161 [cs.CL] https://arxiv.org/abs/2305.06161 \n[196] Shengrui Li, Xueting Han, and Jing Bai. 2024. Nuteprune: Efficient progressive pruning with numerous teachers for large language models. arXiv preprint arXiv:2402.09773 (2024). \n[197] Tianlin Li, Qian Liu, Tianyu Pang, Chao Du, Qing Guo, Yang Liu, and Min Lin. 2024. Purifying large language models by ensembling a small language model. arXiv preprint arXiv:2402.14845 (2024). \n[198] Xiang Lisa Li, Ari Holtzman, Daniel Fried, Percy Liang, Jason Eisner, Tatsunori B Hashimoto, Luke Zettlemoyer, and Mike Lewis. 2023. Contrastive Decoding: Open-ended Text Generation as Optimization. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 12286–12312. \n[199] Xiang Lisa Li and Percy Liang. 2021. Prefix-tuning: Optimizing continuous prompts for generation. arXiv preprint arXiv:2101.00190 (2021). \n[200] Yuanzhi Li, Sébastien Bubeck, Ronen Eldan, Allie Del Giorno, Suriya Gunasekar, and Yin Tat Lee. 2023. Textbooks Are All You Need II: phi-1.5 technical report. arXiv:2309.05463 [cs.CL] https://arxiv.org/abs/2309.05463 \n[201] Yun Li, Lin Niu, Xipeng Zhang, Kai Liu, Jianchen Zhu, and Zhanhui Kang. 2023. E-sparse: Boosting the large language model inference through entropy-based n: M sparsity. arXiv preprint arXiv:2310.15929 (2023). \n[202] Yinheng Li, Shaofei Wang, Han Ding, and Hang Chen. 2023. Large language models in finance: A survey. In Proceedings of the fourth ACM international conference on AI in finance. 374–382. \n[203] Wing Lian, Guan Wang, Bleys Goodson, Eugene Pentland, Austin Cook, Chanvichet Vong, and \"Teknium\". 2023. SlimOrca: An Open Dataset of GPT-4 Augmented FLAN Reasoning Traces, with Verification. https://https://huggingface.co/Open-Orca/SlimOrca \n[204] Jinggui Liang, Lizi Liao, Hao Fei, and Jing Jiang. 2024. Synergizing Large Language Models and Pre-Trained Smaller Models for Conversational Intent Discovery. In Findings of the Association for Computational Linguistics ACL 2024. 14133–14147. \n[205] Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, Benjamin Newman, Binhang Yuan, Bobby Yan, Ce Zhang, Christian Alexander Cosgrove, Christopher D Manning, Christopher Re, Diana Acosta-Navas, Drew Arad Hudson, Eric Zelikman, Esin Durmus, Faisal Ladhak, Frieda Rong, Hongyu Ren, Huaxiu Yao, Jue WANG, Keshav Santhanam, Laurel Orr, Lucia Zheng, Mert Yuksekgonul, Mirac Suzgun, Nathan Kim, Neel Guha, Niladri S. Chatterji, Omar Khattab, Peter Henderson, Qian Huang, Ryan Andrew Chi, Sang Michael Xie, Shibani Santurkar, Surya Ganguli, Tatsunori Hashimoto, Thomas Icard, Tianyi Zhang, Vishrav Chaudhary, William Wang, Xuechen Li, Yifan Mai, Yuhui Zhang, and Yuta Koreeda. 2023. Holistic Evaluation of Language Models. Transactions on Machine Learning Research (2023). https://openreview.net/forum?id=iO4LZibEqW \n[206] Jianghao Lin, Rong Shan, Chenxu Zhu, Kounianhua Du, Bo Chen, Shigang Quan, Ruiming Tang, Yong Yu, and Weinan Zhang. 2024. Rella: Retrieval-enhanced large language models for lifelong sequential behavior comprehension in recommendation. In Proceedings of the ACM on Web Conference 2024. 3497–3508. \n[207] Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, and Song Han. 2024. AWQ: Activation-aware Weight Quantization for On-Device LLM Compression and Acceleration. Proceedings of Machine Learning and Systems 6 (2024), 87–100. \n[208] Stephanie Lin, Jacob Hilton, and Owain Evans. 2022. TruthfulQA: Measuring How Models Mimic Human Falsehoods. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 3214–3252. \n[209] Xi Victoria Lin, Todor Mihaylov, Mikel Artetxe, Tianlu Wang, Shuohui Chen, Daniel Simig, Myle Ott, Naman Goyal, Shruti Bhosale, Jingfei Du, Ramakanth Pasunuru, Sam Shleifer, Punit Singh Koura, Vishrav Chaudhary, Brian O’Horo, Jeff Wang, Luke Zettlemoyer, Zornitsa Kozareva, Mona Diab, Veselin Stoyanov, and Xian Li. 2022. Few-shot Learning with Multilingual Generative Language Models. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang (Eds.). Association for Computational Linguistics, Abu Dhabi, United Arab Emirates, 9019–9052. https://doi.org/10.18653/v1/2022.emnlp-main.616 \n[210] Zhenghao Lin, Zhibin Gou, Yeyun Gong, Xiao Liu, Yelong Shen, Ruochen Xu, Chen Lin, Yujiu Yang, Jian Jiao, Nan Duan, et al. 2024. Rho-1: Not all tokens are what you need. arXiv preprint arXiv:2404.07965 (2024). \n[211] Aixin Liu, Bei Feng, Bin Wang, Bingxuan Wang, Bo Liu, Chenggang Zhao, Chengqi Dengr, Chong Ruan, Damai Dai, Daya Guo, et al. 2024. Deepseek-v2: A strong, economical, and efficient mixture-of-experts language model. arXiv preprint arXiv:2405.04434 (2024). \n[212] Alisa Liu, Xiaochuang Han, Yizhong Wang, Yulia Tsvetkov, Yejin Choi, and Noah A Smith. 2024. Tuning language models by proxy. arXiv preprint arXiv:2401.08565 (2024). \n[213] Jiashuo Liu, Zheyan Shen, Yue He, Xingxuan Zhang, Renzhe Xu, Han Yu, and Peng Cui. 2021. Towards out-of-distribution generalization: A survey. arXiv preprint arXiv:2108.13624 (2021). \n[214] Qijiong Liu, Nuo Chen, Tetsuya Sakai, and Xiao-Ming Wu. 2024. Once: Boosting content-based recommendation with both open-and closed-source large language models. In Proceedings of the 17th ACM International Conference on Web Search and Data Mining. 452–461. \n[215] Suqing Liu, Zezhu Yu, Feiran Huang, Yousef Bulbulia, Andreas Bergen, and Michael Liut. 2024. Can Small Language Models With RetrievalAugmented Generation Replace Large Language Models When Learning Computer Science? In Proceedings of the 2024 on Innovation and Technology in Computer Science Education V. 1. 388–393. \n[216] Wei Liu, Weihao Zeng, Keqing He, Yong Jiang, and Junxian He. 2023. What makes good data for alignment? a comprehensive study of automatic data selection in instruction tuning. arXiv preprint arXiv:2312.15685 (2023). \n[217] Yinpeng Liu, Jiawei Liu, Xiang Shi, Qikai Cheng, and Wei Lu. 2024. Let’s Learn Step by Step: Enhancing In-Context Learning Ability with Curriculum Learning. arXiv preprint arXiv:2402.10738 (2024). \n[218] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692 (2019). \n[219] Yanming Liu, Xinyue Peng, Xuhong Zhang, Weihao Liu, Jianwei Yin, Jiannan Cao, and Tianyu Du. 2024. RA-ISF: Learning to Answer and Understand from Retrieval Augmentation via Iterative Self-Feedback. arXiv preprint arXiv:2403.06840 (2024). \n[220] Zichang Liu, Aditya Desai, Fangshuo Liao, Weitao Wang, Victor Xie, Zhaozhuo Xu, Anastasios Kyrillidis, and Anshumali Shrivastava. 2024. Scissorhands: Exploiting the persistence of importance hypothesis for llm kv cache compression at test time. Advances in Neural Information Processing Systems 36 (2024). \n[221] Zechun Liu, Barlas Oguz, Changsheng Zhao, Ernie Chang, Pierre Stock, Yashar Mehdad, Yangyang Shi, Raghuraman Krishnamoorthi, and Vikas Chandra. 2023. Llm-qat: Data-free quantization aware training for large language models. arXiv preprint arXiv:2305.17888 (2023). \n[222] Zhengxiao Liu, Bowen Shen, Zheng Lin, Fali Wang, and Weiping Wang. 2023. Maximum Entropy Loss, the Silver Bullet Targeting Backdoor Attacks in Pre-trained Language Models. In Findings of the Association for Computational Linguistics: ACL 2023, Anna Rogers, Jordan Boyd-Graber, and Naoaki Okazaki (Eds.). Association for Computational Linguistics, Toronto, Canada, 3850–3868. https://doi.org/10.18653/v1/2023.findings-acl.237 \n[223] Zechun Liu, Changsheng Zhao, Forrest Iandola, Chen Lai, Yuandong Tian, Igor Fedorov, Yunyang Xiong, Ernie Chang, Yangyang Shi, Raghuraman Krishnamoorthi, et al. 2024. Mobilellm: Optimizing sub-billion parameter language models for on-device use cases. arXiv preprint arXiv:2402.14905 (2024). \n[224] Lin Long, Rui Wang, Ruixuan Xiao, Junbo Zhao, Xiao Ding, Gang Chen, and Haobo Wang. 2024. On LLMs-Driven Synthetic Data Generation, Curation, and Evaluation: A Survey. In Findings of the Association for Computational Linguistics ACL 2024. 11065–11082. \n[225] Shayne Longpre, Le Hou, Tu Vu, Albert Webson, Hyung Won Chung, Yi Tay, Denny Zhou, Quoc V Le, Barret Zoph, Jason Wei, et al. 2023. The flan collection: Designing data and methods for effective instruction tuning. In International Conference on Machine Learning. PMLR, 22631–22648. \n[226] Shayne Longpre, Robert Mahari, Anthony Chen, Naana Obeng-Marnu, Damien Sileo, William Brannon, Niklas Muennighoff, Nathan Khazam, Jad Kabbara, Kartik Perisetla, et al. 2023. The data provenance initiative: A large scale audit of dataset licensing & attribution in ai. arXiv preprint arXiv:2310.16787 (2023). \n[227] Anton Lozhkov, Raymond Li, Loubna Ben Allal, Federico Cassano, Joel Lamy-Poirier, Nouamane Tazi, Ao Tang, Dmytro Pykhtar, Jiawei Liu, Yuxiang Wei, et al. 2024. Starcoder 2 and the stack v2: The next generation. arXiv preprint arXiv:2402.19173 (2024). \n[228] Wenhao Lu, Jian Jiao, and Ruofei Zhang. 2020. Twinbert: Distilling knowledge to twin-structured compressed bert models for large-scale retrieval. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management. 2645–2652. \n[229] Zhenyan Lu, Xiang Li, Dongqi Cai, Rongjie Yi, Fangming Liu, Xiwen Zhang, Nicholas D Lane, and Mengwei Xu. 2024. Small language models: Survey, measurements, and insights. arXiv preprint arXiv:2409.15790 (2024). \n[230] Renqian Luo, Liai Sun, Yingce Xia, Tao Qin, Sheng Zhang, Hoifung Poon, and Tie-Yan Liu. 2022. BioGPT: generative pre-trained transformer for biomedical text generation and mining. Briefings in bioinformatics 23, 6 (2022), bbac409. \n[231] Shuming Ma, Hongyu Wang, Lingxiao Ma, Lei Wang, Wenhui Wang, Shaohan Huang, Li Dong, Ruiping Wang, Jilong Xue, and Furu Wei. 2024. The era of 1-bit llms: All large language models are in 1.58 bits. arXiv preprint arXiv:2402.17764 (2024). \n[232] Xinyin Ma, Gongfan Fang, and Xinchao Wang. 2023. Llm-pruner: On the structural pruning of large language models. Advances in neural information processing systems 36 (2023), 21702–21720. \n[233] Xinbei Ma, Yeyun Gong, Pengcheng He, Hai Zhao, and Nan Duan. 2023. Query Rewriting in Retrieval-Augmented Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. 5303–5315. \n[234] Yubo Ma, Yixin Cao, YongChing Hong, and Aixin Sun. 2023. Large language model is not a good few-shot information extractor, but a good reranker for hard samples! arXiv preprint arXiv:2303.08559 (2023). \n[235] Yuhan Ma, Chenyou Fan, and Haiqi Jiang. 2023. Sci-cot: Leveraging large language models for enhanced knowledge distillation in small models for scientific qa. In 2023 9th International Conference on Computer and Communications (ICCC). IEEE, 2394–2398. \n[236] YINGWEI MA, Yue Liu, Yue Yu, Yuanliang Zhang, Yu Jiang, Changjian Wang, and Shanshan Li. 2024. At Which Training Stage Does Code Data Help LLMs Reasoning?. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=KIPJKST4gw \n[237] Ian Magnusson, Akshita Bhagia, Valentin Hofmann, Luca Soldaini, Ananya Harsh Jha, Oyvind Tafjord, Dustin Schwenk, Evan Pete Walsh, Yanai Elazar, Kyle Lo, et al. 2023. Paloma: A benchmark for evaluating language model fit. arXiv preprint arXiv:2312.10523 (2023). \n[238] Dakota Mahan, Ryan Carlow, Louis Castricato, Nathan Cooper, and Christian Laforte. [n. d.]. Stable Beluga models. [https://huggingface.co/ stabilityai/StableBeluga2](https://huggingface.co/stabilityai/StableBeluga2) \n[239] Vladimir Malinovskii, Denis Mazur, Ivan Ilin, Denis Kuznedelev, Konstantin Burlachenko, Kai Yi, Dan Alistarh, and Peter Richtarik. 2024. PV-Tuning: Beyond Straight-Through Estimation for Extreme LLM Compression. arXiv preprint arXiv:2405.14852 (2024). \n[240] Potsawee Manakul, Adian Liusie, and Mark Gales. 2023. SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, Houda Bouamor, Juan Pino, and Kalika Bali (Eds.). Association for Computational Linguistics, Singapore, 9004–9017. https://doi.org/10.18653/v1/2023.emnlp-main.557 \n[241] Sachin Mehta, Mohammad Hossein Sekhavat, Qingqing Cao, Maxwell Horton, Yanzi Jin, Chenfan Sun, Seyed Iman Mirzadeh, Mahyar Najibi, Dmitry Belenko, Peter Zatloukal, et al. 2024. Openelm: An efficient language model family with open training and inference framework. In Workshop on Efficient Systems for Foundation Models II@ ICML2024. \n[242] Dheeraj Mekala, Alex Nguyen, and Jingbo Shang. 2024. Smaller language models are capable of selecting instruction-tuning training data for larger language models. arXiv preprint arXiv:2402.10430 (2024). \n[243] Xin Men, Mingyu Xu, Qingyu Zhang, Bingning Wang, Hongyu Lin, Yaojie Lu, Xianpei Han, and Weipeng Chen. 2024. Shortgpt: Layers in large language models are more redundant than you expect. arXiv preprint arXiv:2403.03853 (2024). \n[244] Sewon Min, Kalpesh Krishna, Xinxi Lyu, Mike Lewis, Wen-tau Yih, Pang Koh, Mohit Iyyer, Luke Zettlemoyer, and Hannaneh Hajishirzi. 2023. FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, Houda Bouamor, Juan Pino, and Kalika Bali (Eds.). Association for Computational Linguistics, Singapore, 12076–12100. https://doi.org/10.18653/v1/2023.emnlp-main.741 \n[245] Go Min-su. 2024. Deep Learning Bible - 8. Large Language Models. WikiDocs. https://wikidocs.net/237419 \n[246] Eric Mitchell, Rafael Rafailov, Archit Sharma, Chelsea Finn, and Christopher D Manning. 2024. An Emulator for Fine-tuning Large Language Models using Small Language Models. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=Eo7kv0sllr \n[247] Arindam Mitra, Luciano Del Corro, Shweti Mahajan, Andres Codas, Clarisse Simoes, Sahaj Agarwal, Xuxi Chen, Anastasia Razdaibiedina, Erik Jones, Kriti Aggarwal, et al. 2023. Orca 2: Teaching small language models how to reason. arXiv preprint arXiv:2311.11045 (2023). \n[248] Lingbo Mo, Boshi Wang, Muhao Chen, and Huan Sun. 2024. How Trustworthy are Open-Source LLMs? An Assessment under Malicious Demonstrations Shows their Vulnerabilities. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). 2775–2792. \n[249] John Xavier Morris, Wenting Zhao, Justin T Chiu, Vitaly Shmatikov, and Alexander M Rush. 2024. Language Model Inversion. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=t9dWHpGkPj \n[250] Maximilian Mozes, Xuanli He, Bennett Kleinberg, and Lewis D Griffin. 2023. Use of llms for illicit purposes: Threats, prevention measures, and vulnerabilities. arXiv preprint arXiv:2308.12833 (2023). \n[251] Subhabrata Mukherjee, Arindam Mitra, Ganesh Jawahar, Sahaj Agarwal, Hamid Palangi, and Ahmed Awadallah. 2023. Orca: Progressive learning from complex explanation traces of gpt-4. arXiv preprint arXiv:2306.02707 (2023). \n[252] Saurav Muralidharan, Sharath Turuvekere Sreenivas, Raviraj Joshi, Marcin Chochowski, Mostofa Patwary, Mohammad Shoeybi, Bryan Catanzaro, Jan Kautz, and Pavlo Molchanov. 2024. Compact language models via pruning and knowledge distillation. arXiv preprint arXiv:2407.14679 (2024). \n[253] Rithesh Murthy, Liangwei Yang, Juntao Tan, Tulika Manoj Awalgaonkar, Yilun Zhou, Shelby Heinecke, Sachin Desai, Jason Wu, Ran Xu, Sarah Tan, Jianguo Zhang, Zhiwei Liu, Shirley Kokane, Zuxin Liu, Ming Zhu, Huan Wang, Caiming Xiong, and Silvio Savarese. 2024. MobileAIBench: Benchmarking LLMs and LMMs for On-Device Use Cases. arXiv:2406.10290 [cs.CL] https://arxiv.org/abs/2406.10290 \n[254] Kalyan Nakka, Jimmy Dani, and Nitesh Saxena. 2024. Is On-Device AI Broken and Exploitable? Assessing the Trust and Ethics in Small Language Models. arXiv preprint arXiv:2406.05364 (2024). \n[255] Daye Nam, Andrew Macvean, Vincent Hellendoorn, Bogdan Vasilescu, and Brad Myers. 2024. Using an llm to help with code understanding. In Proceedings of the IEEE/ACM 46th International Conference on Software Engineering. 1–13. \n[256] Piotr Nawrot, Adrian Łańcucki, Marcin Chochowski, David Tarjan, and Edoardo Ponti. 2024. Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inference. In Forty-first International Conference on Machine Learning. https://openreview.net/forum?id=tDRYrAkOB7 \n[257] Thuat Nguyen, Chien Van Nguyen, Viet Dac Lai, Hieu Man, Nghia Trung Ngo, Franck Dernoncourt, Ryan A Rossi, and Thien Huu Nguyen. 2024. CulturaX: A Cleaned, Enormous, and Multilingual Dataset for Large Language Models in 167 Languages. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024). 4226–4237. \n[258] Tuan Dung Nguyen, Yuan-Sen Ting, Ioana Ciuca, Charles O’Neill, Ze-Chang Sun, Maja Jabłońska, Sandor Kruk, Ernest Perkowski, Jack Miller, Jason Jason Jingsh Li, et al. 2023. AstroLLaMA: Towards Specialized Foundation Models in Astronomy. In Proceedings of the Second Workshop on Information Extraction from Scientific Publications. 49–55. \n[259] Jianmo Ni, Chen Qu, Jing Lu, Zhuyun Dai, Gustavo Hernandez Abrego, Ji Ma, Vincent Zhao, Yi Luan, Keith Hall, Ming-Wei Chang, and Yinfei Yang. 2022. Large Dual Encoders Are Generalizable Retrievers. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 9844–9855. https://doi.org/10.18653/v1/2022.emnlp-main.669 \n[260] Rodrigo Nogueira and Kyunghyun Cho. 2019. Passage Re-ranking with BERT. arXiv preprint arXiv:1901.04085 (2019). \n[261] A Noorian. 2024. A BERT-based sequential POI recommender system in social media. Computer Standards & Interfaces 87 (2024), 103766. \n[262] OpenAI. 2024. GPT-4o mini: advancing cost-efficient intelligence. https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/ Accessed: 2024-7-18. \n[263] OpenAI. 2024. Hello GPT-4o. https://openai.com/index/hello-gpt-4o/ Accessed: 2024-5-13. \n[264] Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback. Advances in neural information processing systems 35 (2022), 27730–27744. \n[265] Shankar Padmanabhan, Yasumasa Onoe, Michael Zhang, Greg Durrett, and Eunsol Choi. 2024. Propagating knowledge updates to lms through distillation. Advances in Neural Information Processing Systems 36 (2024). \n[266] Jupinder Parmar, Shrimai Prabhumoye, Joseph Jennings, Mostofa Patwary, Sandeep Subramanian, Dan Su, Chen Zhu, Deepak Narayanan, Aastha Jhunjhunwala, Ayush Dattagupta, et al. 2024. Nemotron-4 15B Technical Report. arXiv preprint arXiv:2402.16819 (2024). \n[267] Keiran Paster, Marco Dos Santos, Zhangir Azerbayev, and Jimmy Ba. 2024. OpenWebMath: An Open Dataset of High-Quality Mathematical Web Text. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=jKHmjlpViu \n[268] Guilherme Penedo, Hynek Kydlíček, Loubna Ben allal, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, and Thomas Wolf. 2024. The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale. arXiv:2406.17557 [cs.CL] \n[269] Guilherme Penedo, Quentin Malartic, Daniel Hesslow, Ruxandra Cojocaru, Alessandro Cappelli, Hamza Alobeidli, Baptiste Pannier, Ebtesam Almazrouei, and Julien Launay. 2023. The RefinedWeb dataset for Falcon LLM: outperforming curated corpora with web data, and web data only. arXiv preprint arXiv:2306.01116 (2023). \n[270] Bo Peng, Eric Alcaide, Quentin Anthony, Alon Albalak, Samuel Arcadinho, Stella Biderman, Huanqi Cao, Xin Cheng, Michael Chung, Leon Derczynski, Xingjian Du, Matteo Grella, Kranthi Gv, Xuzheng He, Haowen Hou, Przemyslaw Kazienko, Jan Kocon, Jiaming Kong, Bartłomiej Koptyra, Hayden Lau, Jiaju Lin, Krishna Sri Ipsit Mantri, Ferdinand Mom, Atsushi Saito, Guangyu Song, Xiangru Tang, Johan Wind, Stanisław Woźniak, Zhenyuan Zhang, Qinghua Zhou, Jian Zhu, and Rui-Jie Zhu. 2023. RWKV: Reinventing RNNs for the Transformer Era. In Findings of the Association for Computational Linguistics: EMNLP 2023, Houda Bouamor, Juan Pino, and Kalika Bali (Eds.). Association for Computational Linguistics, Singapore, 14048–14077. https://doi.org/10.18653/v1/2023.findings-emnlp.936 \n[271] Baolin Peng, Chunyuan Li, Pengcheng He, Michel Galley, and Jianfeng Gao. 2023. Instruction tuning with gpt-4. arXiv preprint arXiv:2304.03277 (2023). \n[272] Zhiyuan Peng, Xuyang Wu, Qifan Wang, and Yi Fang. 2023. Soft prompt tuning for augmenting dense retrieval with large language models. arXiv preprint arXiv:2307.08303 (2023). \n[273] Ethan Perez, Sam Ringer, Kamile Lukosiute, Karina Nguyen, Edwin Chen, Scott Heiner, Craig Pettit, Catherine Olsson, Sandipan Kundu, Saurav Kadavath, Andy Jones, Anna Chen, Benjamin Mann, Brian Israel, Bryan Seethor, Cameron McKinnon, Christopher Olah, Da Yan, Daniela Amodei, Dario Amodei, Dawn Drain, Dustin Li, Eli Tran-Johnson, Guro Khundadze, Jackson Kernion, James Landis, Jamie Kerr, Jared Mueller, Jeeyoon Hyun, Joshua Landau, Kamal Ndousse, Landon Goldberg, Liane Lovitt, Martin Lucas, Michael Sellitto, Miranda Zhang, Neerav Kingsland, Nelson Elhage, Nicholas Joseph, Noemi Mercado, Nova DasSarma, Oliver Rausch, Robin Larson, Sam McCandlish, Scott Johnston, Shauna Kravec, Sheer El Showk, Tamera Lanham, Timothy Telleen-Lawton, Tom Brown, Tom Henighan, Tristan Hume, Yuntao Bai, Zac Hatfield-Dodds, Jack Clark, Samuel R. Bowman, Amanda Askell, Roger Grosse, Danny Hernandez, Deep Ganguli, Evan Hubinger, Nicholas Schiefer, and Jared Kaplan. 2023. Discovering Language Model Behaviors with Model-Written Evaluations. In Findings of the Association for Computational Linguistics: ACL 2023. 13387–13434. \n[274] Pascal Pfeiffer, Philipp Singer, Yauhen Babakhin, Gabor Fodor, Nischay Dhankhar, and Sri Satish Ambati. 2024. H2O-Danube3 Technical Report. arXiv preprint arXiv:2407.09276 (2024). \n[275] Karmvir Singh Phogat, Sai Akhil Puranam, Sridhar Dasaratha, Chetan Harsha, and Shashishekar Ramakrishna. 2024. Fine-tuning Smaller Language Models for Question Answering over Financial Documents. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 10528–10548. https://doi.org/10.18653/v1/2024.findings-emnlp.617 \n[276] Reiner Pope, Sholto Douglas, Aakanksha Chowdhery, Jacob Devlin, James Bradbury, Jonathan Heek, Kefan Xiao, Shivani Agrawal, and Jeff Dean. 2023. Efficiently scaling transformer inference. Proceedings of Machine Learning and Systems 5 (2023), 606–624. \n[277] Ofir Press, Noah Smith, and Mike Lewis. 2022. Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation. In International Conference on Learning Representations. https://openreview.net/forum?id=R8sQPpGCv0 \n[278] Ruiyang Qin, Jun Xia, Zhenge Jia, Meng Jiang, Ahmed Abbasi, Peipei Zhou, Jingtong Hu, and Yiyu Shi. 2023. Enabling on-device large language model personalization with self-supervised data selection and synthesis. arXiv preprint arXiv:2311.12275 (2023). \n[279] Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, Yankai Lin, Xin Cong, Xiangru Tang, Bill Qian, et al. [n. d.]. ToolLLM: Facilitating Large Language Models to Master $1 6 0 0 0 +$ Real-world APIs. In The Twelfth International Conference on Learning Representations. \n[280] Haohao $\\mathrm { Q u } .$ , Liangbo Ning, Rui An, Wenqi Fan, Tyler Derr, Hui Liu, Xin Xu, and Qing Li. 2024. A survey of mamba. arXiv preprint arXiv:2408.01129 (2024). \n[281] Haohao Qu, Yifeng Zhang, Liangbo Ning, Wenqi Fan, and Qing Li. 2024. Ssd4rec: a structured state space duality model for efficient sequential recommendation. arXiv preprint arXiv:2409.01192 (2024). \n[282] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. 2019. Language models are unsupervised multitask learners. OpenAI blog 1, 8 (2019), 9. \n[283] Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. 2024. Direct preference optimization: Your language model is secretly a reward model. Advances in Neural Information Processing Systems 36 (2024). \n[284] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of machine learning research 21, 140 (2020), 1–67. \n[285] Mohammad Wali Ur Rahman, Murad Mehrab Abrar, Hunter Gibbons Copening, Salim Hariri, Sicong Shao, Pratik Satam, and Soheil Salehi. 2023. Quantized Transformer Language Model Implementations on Edge Devices. arXiv:2310.03971 [cs.CL] https://arxiv.org/abs/2310.03971 \n[286] Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, and Yuxiong He. 2020. Zero: Memory optimizations toward training trillion parameter models. In SC20: International Conference for High Performance Computing, Networking, Storage and Analysis. IEEE, 1–16. \n[287] Ori Ram, Yoav Levine, Itay Dalmedigos, Dor Muhlgay, Amnon Shashua, Kevin Leyton-Brown, and Yoav Shoham. 2023. In-Context RetrievalAugmented Language Models. Transactions of the Association for Computational Linguistics 11 (2023), 1316–1331. \n[288] Krithika Ramesh, Arnav Chavan, Shrey Pandit, and Sunayana Sitaram. 2023. A Comparative Study on the Impact of Model Compression Techniques on Fairness in Language Models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 15762–15782. https://aclanthology.org/2023.acl-long.878 \n[289] Al Mamunur Rashid, George Karypis, and John Riedl. 2008. Learning preferences of new users in recommender systems: an information theoretic approach. Acm Sigkdd Explorations Newsletter 10, 2 (2008), 90–100. \n[290] Christopher Rawles, Alice Li, Daniel Rodriguez, Oriana Riva, and Timothy Lillicrap. 2024. Androidinthewild: A large-scale dataset for android device control. Advances in Neural Information Processing Systems 36 (2024). \n[291] Stephen Robertson, Hugo Zaragoza, et al. 2009. The probabilistic relevance framework: BM25 and beyond. Foundations and Trends® in Information Retrieval 3, 4 (2009), 333–389. \n[292] Baptiste Roziere, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Tal Remez, Jérémy Rapin, et al. 2023. Code llama: Open foundation models for code. arXiv preprint arXiv:2308.12950 (2023). \n[293] Caitlin Sadowski and Greg Levin. 2007. Simhash: Hash-based similarity detection. \n[294] Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2021. Winogrande: An adversarial winograd schema challenge at scale. Commun. ACM 64, 9 (2021), 99–106. \n[295] Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. 2024. Toolformer: Language models can teach themselves to use tools. Advances in Neural Information Processing Systems 36 (2024). \n[296] Rico Sennrich, Jannis Vamvas, and Alireza Mohammadshahi. 2023. Mitigating Hallucinations and Off-target Machine Translation with SourceContrastive and Language-Contrastive Decoding. arXiv preprint arXiv:2309.07098 (2023). \n[297] Zeyang Sha and Yang Zhang. 2024. Prompt stealing attacks against large language models. arXiv preprint arXiv:2402.12959 (2024). \n[298] Yu Shang, Yu Li, Fengli Xu, and Yong Li. 2024. Synergy-of-Thoughts: Eliciting Efficient Reasoning in Hybrid Language Models. arXiv preprint arXiv:2402.02563 (2024). \n[299] Yuzhang Shang, Zhihang Yuan, Qiang Wu, and Zhen Dong. 2023. PB-LLM: Partially Binarized Large Language Models. arXiv:2310.00034 [cs.LG] https://arxiv.org/abs/2310.00034 \n[300] Hang Shao, Bei Liu, and Yanmin Qian. 2024. One-shot sensitivity-aware mixed sparsity pruning for large language models. In ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 11296–11300. \n[301] Mrinank Sharma, Meg Tong, Tomasz Korbak, David Duvenaud, Amanda Askell, Samuel R Bowman, Newton Cheng, Esin Durmus, Zac HatfieldDodds, Scott R Johnston, et al. 2023. Towards understanding sycophancy in language models. arXiv preprint arXiv:2310.13548 (2023). \n[302] Erfan Shayegani, Md Abdullah Al Mamun, Yu Fu, Pedram Zaree, Yue Dong, and Nael Abu-Ghazaleh. 2023. Survey of vulnerabilities in large language models revealed by adversarial attacks. arXiv preprint arXiv:2310.10844 (2023). \n[303] Noam Shazeer. 2019. Fast transformer decoding: One write-head is all you need. arXiv preprint arXiv:1911.02150 (2019). \n[304] Noam Shazeer. 2020. Glu variants improve transformer. arXiv preprint arXiv:2002.05202 (2020). \n[305] Bowen Shen, Zheng Lin, Yuanxin Liu, Zhengxiao Liu, Lei Wang, and Weiping Wang. 2022. COST-EFF: Collaborative Optimization of Spatial and Temporal Efficiency with Slenderized Multi-exit Language Models. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang (Eds.). Association for Computational Linguistics, Abu Dhabi, United Arab Emirates, 1719–1730. https://doi.org/10.18653/v1/2022.emnlp-main.112 \n[306] Bowen Shen, Zheng Lin, Daren Zha, Wei Liu, Jian Luan, Bin Wang, and Weiping Wang. 2024. Pruning Large Language Models to Intra-module Lowrank Architecture with Transitional Activations. In Findings of the Association for Computational Linguistics: ACL 2024, Lun-Wei Ku, Andre Martins, and Vivek Srikumar (Eds.). Association for Computational Linguistics, Bangkok, Thailand, 9781–9793. https://doi.org/10.18653/v1/2024.findings acl.582 \n[307] Weizhou Shen, Chenliang Li, Hongzhan Chen, Ming Yan, Xiaojun Quan, Hehong Chen, Ji Zhang, and Fei Huang. 2024. Small LLMs Are Weak Tool Learners: A Multi-LLM Agent. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, Miami, Florida, USA, 16658–16680. https://doi.org/10.18653/v1/2024.emnlp-main.929 \n[308] Ying Sheng, Lianmin Zheng, Binhang Yuan, Zhuohan Li, Max Ryabinin, Beidi Chen, Percy Liang, Christopher Ré, Ion Stoica, and Ce Zhang. 2023. Flexgen: High-throughput generative inference of large language models with a single gpu. In International Conference on Machine Learning. PMLR, 31094–31116. \n[309] Wentao Shi, Xiangnan He, Yang Zhang, Chongming Gao, Xinyue Li, Jizhi Zhang, Qifan Wang, and Fuli Feng. 2024. Large language models are learnable planners for long-term recommendation. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval. 1893–1903. \n[310] Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. 2019. Megatron-lm: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053 (2019). \n[311] Parshin Shojaee, Kazem Meidani, Shashank Gupta, Amir Barati Farimani, and Chandan K Reddy. 2024. Llm-sr: Scientific equation discovery via programming with large language models. arXiv preprint arXiv:2404.18400 (2024). \n[312] Manli Shu, Weili Nie, De-An Huang, Zhiding Yu, Tom Goldstein, Anima Anandkumar, and Chaowei Xiao. 2022. Test-time prompt tuning for zero-shot generalization in vision-language models. Advances in Neural Information Processing Systems 35 (2022), 14274–14289. \n[313] Karan Singhal, Shekoofeh Azizi, Tao Tu, S Sara Mahdavi, Jason Wei, Hyung Won Chung, Nathan Scales, Ajay Tanwani, Heather Cole-Lewis, Stephen Pfohl, et al. 2023. Large language models encode clinical knowledge. Nature 620, 7972 (2023), 172–180. \n[314] Daria Soboleva, Faisal Al-Khateeb, Robert Myers, Jacob R Steeves, Joel Hestness, and Nolan Dey. 2023. SlimPajama: A 627B token cleaned and deduplicated version of RedPajama. https://cerebras.ai/blog/slimpajama-a-627b-token-cleaned-and-deduplicated-version-of-redpajama. https://huggingface.co/datasets/cerebras/SlimPajama-627B \n[315] Luca Soldaini, Rodney Kinney, Akshita Bhagia, Dustin Schwenk, David Atkinson, Russell Authur, Ben Bogin, Khyathi Chandu, Jennifer Dumas, Yanai Elazar, Valentin Hofmann, Ananya Harsh Jha, Sachin Kumar, Li Lucy, Xinxi Lyu, Nathan Lambert, Ian Magnusson, Jacob Morrison, Niklas Muennighoff, Aakanksha Naik, Crystal Nam, Matthew E. Peters, Abhilasha Ravichander, Kyle Richardson, Zejiang Shen, Emma Strubell, Nishant Subramani, Oyvind Tafjord, Pete Walsh, Luke Zettlemoyer, Noah A. Smith, Hannaneh Hajishirzi, Iz Beltagy, Dirk Groeneveld, Jesse Dodge, and Kyle Lo. 2024. Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Research. arXiv preprint (2024). \n[316] Xinying Song, Alex Salcianu, Yang Song, Dave Dopson, and Denny Zhou. 2021. Fast WordPiece Tokenization. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. 2089–2103. \n[317] Sofia Eleni Spatharioti, David M Rothschild, Daniel G Goldstein, and Jake M Hofman. 2023. Comparing traditional and llm-based search for consumer choice: A randomized experiment. arXiv preprint arXiv:2307.03744 (2023). \n[318] Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. 2024. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing 568 (2024), 127063. \n[319] Liangtai Sun, Yang Han, Zihan Zhao, Da Ma, Zhennan Shen, Baocai Chen, Lu Chen, and Kai Yu. 2024. Scieval: A multi-level large language model evaluation benchmark for scientific research. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38. 19053–19061. \n[320] Lichao Sun, Yue Huang, Haoran Wang, Siyuan Wu, Qihui Zhang, Chujie Gao, Yixin Huang, Wenhan Lyu, Yixuan Zhang, Xiner Li, et al. 2024. Trustllm: Trustworthiness in large language models. arXiv preprint arXiv:2401.05561 (2024). \n[321] Mingjie Sun, Zhuang Liu, Anna Bair, and J Zico Kolter. 2024. A Simple and Effective Pruning Approach for Large Language Models. In Proceedings of the Twelfth International Conference on Learning Representations, ICLR. \n[322] Zhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu, Yiming Yang, and Denny Zhou. 2020. Mobilebert: a compact task-agnostic bert for resource-limited devices. arXiv preprint arXiv:2004.02984 (2020). \n[323] Swabha Swayamdipta, Roy Schwartz, Nicholas Lourie, Yizhong Wang, Hannaneh Hajishirzi, Noah A Smith, and Yejin Choi. 2020. Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamics. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP). 9275–9293. \n[324] Alon Talmor and Jonathan Berant. 2018. The Web as a Knowledge-Base for Answering Complex Questions. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), Marilyn Walker, Heng Ji, and Amanda Stent (Eds.). Association for Computational Linguistics, New Orleans, Louisiana, 641–651. https://doi.org/10.18653/v1/N18-1059 \n[325] Jiejun Tan, Zhicheng Dou, Yutao Zhu, Peidong Guo, Kun Fang, and Ji-Rong Wen. 2024. Small Models, Big Insights: Leveraging Slim Proxy Models To Decide When and What to Retrieve for LLMs. arXiv preprint arXiv:2402.12052 (2024). \n[326] Qiaoyu Tang, Ziliang Deng, Hongyu Lin, Xianpei Han, Qiao Liang, Boxi Cao, and Le Sun. 2023. Toolalpaca: Generalized tool learning for language models with 3000 simulated cases. arXiv preprint arXiv:2306.05301 (2023). \n[327] Xuemei Tang, Jun Wang, and Qi Su. 2024. Small Language Model Is a Good Guide for Large Language Model in Chinese Entity Relation Extraction. arXiv preprint arXiv:2402.14373 (2024). \n[328] Yehui Tang, Fangcheng Liu, Yunsheng Ni, Yuchuan Tian, Zheyuan Bai, Yi-Qi Hu, Sichao Liu, Shangling Jui, Kai Han, and Yunhe Wang. 2024. Rethinking optimization and architecture for tiny language models. arXiv preprint arXiv:2402.02791 (2024). \n[329] Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. Stanford Alpaca: An Instruction-following LLaMA model. https://github.com/tatsu-lab/stanford_alpaca. \n[330] Ross Taylor, Marcin Kardas, Guillem Cucurull, Thomas Scialom, Anthony Hartshorn, Elvis Saravia, Andrew Poulton, Viktor Kerkez, and Robert Stojnic. 2022. Galactica: A large language model for science. arXiv preprint arXiv:2211.09085 (2022). \n[331] CodeGemma Team. 2024. Codegemma: Open code models based on gemma. arXiv preprint arXiv:2406.11409 (2024). \n[332] Gemma Team, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre, Morgane Rivière, Mihir Sanjay Kale, Juliette Love, et al. 2024. Gemma: Open models based on gemini research and technology. arXiv preprint arXiv:2403.08295 (2024). \n[333] Gemma Team, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhupatiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, et al. 2024. Gemma 2: Improving open language models at a practical size. arXiv preprint arXiv:2408.00118 (2024). \n[334] TensorOpera Team. 2024. TensorOpera Unveils Fox Foundation Model: A Pioneering Small Language Model (SLM) for Cloud and Edge. https: //blog.tensoropera.ai/tensoropera-unveils-fox-foundation-model-a-pioneering-open-source-slm-leading-the-way-against-tech-giants/ Accessed: 2024-6-13. \n[335] Surat Teerapittayanon, Bradley McDanel, and Hsiang-Tsung Kung. 2016. Branchynet: Fast inference via early exiting from deep neural networks. In 2016 23rd international conference on pattern recognition (ICPR). IEEE, 2464–2469. \n[336] Omkar Thawakar, Ashmal Vayani, Salman Khan, Hisham Cholakal, Rao M Anwer, Michael Felsberg, Tim Baldwin, Eric P Xing, and Fahad Shahbaz Khan. 2024. Mobillama: Towards accurate and lightweight fully transparent gpt. arXiv preprint arXiv:2402.16840 (2024). \n[337] Ye Tian, Baolin Peng, Linfeng Song, Lifeng Jin, Dian Yu, Haitao Mi, and Dong Yu. 2024. Toward Self-Improvement of LLMs via Imagination, Searching, and Criticizing. arXiv preprint arXivko2024distillm:2404.12253 (2024). \n[338] Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971 (2023). \n[339] Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288 (2023). \n[340] Jonathan Tow, Marco Bellagente, Dakota Mahan, and Carlos Riquelme. [n. d.]. StableLM 3B 4E1T. [https://huggingface.co/stabilityai/stablelm-3b4e1t](https://huggingface.co/stabilityai/stablelm-3b-4e1t) \n[341] Trieu H Trinh and Quoc V Le. 2018. A simple method for commonsense reasoning. arXiv preprint arXiv:1806.02847 (2018). \n[342] Adina Trufinescu. 2024. Discover the New Multi-Lingual High-Quality Phi-3.5 SLMs. https://techcommunity.microsoft.com/t5/ai-azure-ai-servicesblog/discover-the-new-multi-lingual-high-quality-phi-3-5-slms/ba-p/4225280. \n[343] Dennis Ulmer, Martin Gubri, Hwaran Lee, Sangdoo Yun, and Seong Joon Oh. 2024. Calibrating Large Language Models Using Their Generations Only. arXiv preprint arXiv:2403.05973 (2024). \n[344] Sander Van Der Linden. 2022. Misinformation: susceptibility, spread, and interventions to immunize the public. Nature medicine 28, 3 (2022), 460–467. \n[345] Chien Van Nguyen, Xuan Shen, Ryan Aponte, Yu Xia, Samyadeep Basu, Zhengmian Hu, Jian Chen, Mihir Parmar, Sasidhar Kunapuli, Joe Barrow, et al. 2024. A Survey of Small Language Models. arXiv preprint arXiv:2410.20011 (2024). \n[346] A Vaswani. 2017. Attention is all you need. Advances in Neural Information Processing Systems (2017). \n[347] Olga Veksler. 2023. Test time adaptation with regularized loss for weakly supervised salient object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 7360–7369. \n[348] Paul Voigt and Axel Von dem Bussche. 2017. The eu general data protection regulation (gdpr). A Practical Guide, 1st Ed., Cham: Springer International Publishing 10, 3152676 (2017), 10–5555. \n[349] Yuxian Wan, Wenlin Zhang, and Zhen Li. 2023. Multi-Task Feature Self-Distillation for Semi-Supervised Machine Translation. In International Conference on Neural Information Processing. Springer, 238–254. \n[350] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. 2018. GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP. 353–355. \n[351] Boxin Wang, Weixin Chen, Hengzhi Pei, Chulin Xie, Mintong Kang, Chenhui Zhang, Chejian Xu, Zidi Xiong, Ritik Dutta, Rylan Schaeffer, Sang T. Truong, Simran Arora, Mantas Mazeika, Dan Hendrycks, Zinan Lin, Yu Cheng, Sanmi Koyejo, Dawn Song, and Bo Li. 2023. DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Models. In Proceedings of the Annual Conference on Neural Information Processing Systems. \n[352] Boxin Wang, Chejian Xu, Shuohang Wang, Zhe Gan, Yu Cheng, Jianfeng Gao, Ahmed Hassan Awadallah, and Bo Li. 2021. Adversarial glue: A multi-task benchmark for robustness evaluation of language models. arXiv preprint arXiv:2111.02840 (2021). \n[353] Fali Wang, Runxue Bao, Suhang Wang, Wenchao Yu, Yanchi Liu, Wei Cheng, and Haifeng Chen. 2024. InfuserKI: Enhancing Large Language Models with Knowledge Graphs via Infuser-Guided Knowledge Integration. arXiv preprint arXiv:2402.11441 (2024). \n[354] Fali Wang, Zheng Lin, Zhengxiao Liu, Mingyu Zheng, Lei Wang, and Daren Zha. 2021. Macrobert: Maximizing certified region of bert to adversarial word substitutions. In Database Systems for Advanced Applications: 26th International Conference, DASFAA 2021, Taipei, Taiwan, April 11–14, 2021, Proceedings, Part II 26. Springer, 253–261. \n[355] Guan Wang, Sijie Cheng, Qiying Yu, and Changling Liu. 2023. OpenLLMs: Less is More for Open-source Models. https://doi.org/10.5281/zenodo.8105775 \n[356] Guan Wang, Sijie Cheng, Xianyuan Zhan, Xiangang Li, Sen Song, and Yang Liu. 2024. OpenChat: Advancing Open-source Language Models with Mixed-Quality Data. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=AOJyfhWYHf \n[357] Hongyu Wang, Shuming Ma, Li Dong, Shaohan Huang, Huaijie Wang, Lingxiao Ma, Fan Yang, Ruiping Wang, Yi Wu, and Furu Wei. 2023. Bitnet: Scaling 1-bit transformers for large language models. arXiv preprint arXiv:2310.11453 (2023). \n[358] Jindong Wang, HU Xixu, Wenxin Hou, Hao Chen, Runkai Zheng, Yidong Wang, Linyi Yang, Wei Ye, Haojun Huang, Xiubo Geng, et al. [n. d.]. On the Robustness of ChatGPT: An Adversarial and Out-of-distribution Perspective. In ICLR 2023 Workshop on Trustworthy and Reliable Large-Scale Machine Learning Models. \n[359] Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, and Furu Wei. 2024. Improving Text Embeddings with Large Language Models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 11897–11916. https://doi.org/10.18653/v1/2024.acl-long.642 \n[360] Peifeng Wang, Zhengyang Wang, Zheng Li, Yifan Gao, Bing Yin, and Xiang Ren. 2023. SCOTT: Self-Consistent Chain-of-Thought Distillation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 5546–5558. \n[361] Wenxiao Wang, Wei Chen, Yicong Luo, Yongliu Long, Zhengkai Lin, Liye Zhang, Binbin Lin, Deng Cai, and Xiaofei He. 2024. Model compression and efficient inference for large language models: A survey. arXiv preprint arXiv:2402.09748 (2024). \n[362] Wenhui Wang, Furu Wei, Li Dong, Hangbo Bao, Nan Yang, and Ming Zhou. 2020. MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformers. arXiv:2002.10957 [cs.CL] https://arxiv.org/abs/2002.10957 \n[363] Xiaoxuan Wang, Ziniu Hu, Pan Lu, Yanqiao Zhu, Jieyu Zhang, Satyen Subramaniam, Arjun R Loomba, Shichang Zhang, Yizhou Sun, and Wei Wang. 2024. SciBench: Evaluating College-Level Scientific Problem-Solving Abilities of Large Language Models. In Forty-first International Conference on Machine Learning. https://openreview.net/forum?id=bq1JEgioLr \n[364] Yuxia Wang, Haonan Li, Xudong Han, Preslav Nakov, and Timothy Baldwin. 2024. Do-Not-Answer: Evaluating Safeguards in LLMs. In Findings of the Association for Computational Linguistics: EACL 2024. Association for Computational Linguistics, 896–911. https://aclanthology.org/2024.findingseacl.61 \n[365] Yile Wang, Peng Li, Maosong Sun, and Yang Liu. 2023. Self-Knowledge Guided Retrieval Augmentation for Large Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2023. 10303–10315. \n[366] Yubo Wang, Xueguang Ma, and Wenhu Chen. 2023. Augmenting black-box llms with medical textbooks for clinical question answering. arXiv preprint arXiv:2309.02233 (2023). \n[367] Yizhong Wang, Swaroop Mishra, Pegah Alipoormolabashi, Yeganeh Kordi, Amirreza Mirzaei, Atharva Naik, Arjun Ashok, Arut Selvan Dhanasekaran, Anjana Arunkumar, David Stap, Eshaan Pathak, Giannis Karamanolakis, Haizhi Lai, Ishan Purohit, Ishani Mondal, Jacob Anderson, Kirby Kuznia, Krima Doshi, Kuntal Kumar Pal, Maitreya Patel, Mehrad Moradshahi, Mihir Parmar, Mirali Purohit, Neeraj Varshney, Phani Rohitha Kaza, Pulkit Verma, Ravsehaj Singh Puri, Rushang Karia, Savan Doshi, Shailaja Keyur Sampat, Siddhartha Mishra, Sujan Reddy A, Sumanta Patro, Tanay Dixit, and Xudong Shen. 2022. Super-NaturalInstructions: Generalization via Declarative Instructions on $1 6 0 0 +$ NLP Tasks. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 5085–5109. https://doi.org/10.18653/v1/2022.emnlp-main.340 \n[368] Yuyan Wang, Mohit Sharma, Can Xu, Sriraj Badam, Qian Sun, Lee Richardson, Lisa Chung, Ed H. Chi, and Minmin Chen. 2022. Surrogate for Long-Term User Experience in Recommender Systems. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. Association for Computing Machinery, 4100–4109. https://doi.org/10.1145/3534678.3539073 \n[369] Yuling Wang, Changxin Tian, Binbin Hu, Yanhua Yu, Ziqi Liu, Zhiqiang Zhang, Jun Zhou, Liang Pang, and Xiao Wang. 2024. Can Small Language Models be Good Reasoners for Sequential Recommendation?. In Proceedings of the ACM on Web Conference 2024. 3876–3887. \n[370] Yuqing Wang and Yun Zhao. 2024. RUPBench: Benchmarking Reasoning Under Perturbations for Robustness Evaluation in Large Language Models. arXiv preprint arXiv:2406.11020 (2024). \n[371] Zhepeng Wang, Runxue Bao, Yawen Wu, Jackson Taylor, Cao Xiao, Feng Zheng, Weiwen Jiang, Shangqian Gao, and Yanfu Zhang. 2024. Unlocking Memorization in Large Language Models with Dynamic Soft Prompting. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 9782–9796. https://doi.org/10.18653/v1/2024.emnlp-main.546 \n[372] Jason Wei, Maarten Bosma, Vincent Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V Le. 2022. Finetuned Language Models are Zero-Shot Learners. In International Conference on Learning Representations. https://openreview.net/forum?id=gEZrGCozdqR \n[373] Yuxiang Wei, Zhe Wang, Jiawei Liu, Yifeng Ding, and Lingming Zhang. 2023. Magicoder: Source code is all you need. arXiv preprint arXiv:2312.02120 (2023). \n[374] Johannes Welbl, Amelia Glaese, Jonathan Uesato, Sumanth Dathathri, John Mellor, Lisa Anne Hendricks, Kirsty Anderson, Pushmeet Kohli, Ben Coppin, and Po-Sen Huang. 2021. Challenges in Detoxifying Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2021. Association for Computational Linguistics, 2447–2469. https://doi.org/10.18653/v1/2021.findings-emnlp.210 \n[375] Johannes Welbl, Nelson F Liu, and Matt Gardner. 2017. Crowdsourcing Multiple Choice Science Questions. In Proceedings of the 3rd Workshop on Noisy User-generated Text. 94–106. \n[376] Hao Wen, Yuanchun Li, Guohong Liu, Shanhui Zhao, Tao Yu, Toby Jia-Jun Li, Shiqi Jiang, Yunhao Liu, Yaqin Zhang, and Yunxin Liu. 2024. AutoDroid: LLM-powered Task Automation in Android. arXiv:2308.15272 [cs.AI] https://arxiv.org/abs/2308.15272 \n[377] Alexander Wettig, Aatmik Gupta, Saumya Malik, and Danqi Chen. 2024. QuRating: Selecting High-Quality Data for Training Language Models. In Forty-first International Conference on Machine Learning. https://openreview.net/forum?id=GLGYYqPwjy \n[378] Adina Williams, Nikita Nangia, and Samuel Bowman. 2018. A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers). Association for Computational Linguistics, New Orleans, Louisiana, 1112–1122. https://doi.org/10.18653/v1/N18-1101 \n[379] Chuhan Wu, Fangzhao Wu, Tao Qi, and Yongfeng Huang. 2021. Empowering news recommendation with pre-trained language models. In Proceedings of the 44th international ACM SIGIR conference on research and development in information retrieval. 1652–1656. \n[380] Minghao Wu, Abdul Waheed, Chiyu Zhang, Muhammad Abdul-Mageed, and Alham Fikri Aji. 2024. LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale Instructions. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), Yvette Graham and Matthew Purver (Eds.). Association for Computational Linguistics, St. Julian’s, Malta, 944–964. https://aclanthology.org/2024.eacl-long.57 \n[381] Taiqiang Wu, Cheng Hou, Shanshan Lao, Jiayi Li, Ngai Wong, Zhe Zhao, and Yujiu Yang. 2024. Weight-Inherited Distillation for Task-Agnostic BERT Compression. In Findings of the Association for Computational Linguistics: NAACL 2024, Kevin Duh, Helena Gomez, and Steven Bethard (Eds.). Association for Computational Linguistics, Mexico City, Mexico, 13–28. https://doi.org/10.18653/v1/2024.findings-naacl.2 \n[382] Xuansheng Wu, Huachi Zhou, Yucheng Shi, Wenlin Yao, Xiao Huang, and Ninghao Liu. 2024. Could Small Language Models Serve as Recommenders? Towards Data-centric Cold-start Recommendation. In Proceedings of the ACM on Web Conference 2024. 3566–3575. \n[383] Zhuofeng Wu, He Bai, Aonan Zhang, Jiatao Gu, VG Vydiswaran, Navdeep Jaitly, and Yizhe Zhang. 2024. Divide-or-Conquer? Which Part Should You Distill Your LLM? arXiv preprint arXiv:2402.15000 (2024). \n[384] Nuwa Xi, Yuhan Chen, Sendong Zhao, Haochun Wang, Bing Qin, and Ting Liu. 2024. AS-ES Learning: Towards Efficient CoT Learning in Small Models. arXiv preprint arXiv:2403.01969 (2024). \n[385] Mengzhou Xia, Tianyu Gao, Zhiyuan Zeng, and Danqi Chen. 2024. Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=09iOdaeOzp \n[386] Guangxuan Xiao, Ji Lin, Mickael Seznec, Hao Wu, Julien Demouth, and Song Han. 2023. Smoothquant: Accurate and efficient post-training quantization for large language models. In International Conference on Machine Learning. PMLR, 38087–38099. \n[387] Tinghao Xie, Xiangyu Qi, Yi Zeng, Yangsibo Huang, Udari Madhushani Sehwag, Kaixuan Huang, Luxi He, Boyi Wei, Dacheng Li, Ying Sheng, et al. 2024. Sorry-bench: Systematically evaluating large language model safety refusal behaviors. arXiv preprint arXiv:2406.14598 (2024). \n[388] Tong Xie, Yuwei Wan, Wei Huang, Zhenyu Yin, Yixuan Liu, Shaozhou Wang, Qingyuan Linghu, Chunyu Kit, Clara Grazian, Wenjie Zhang, et al. 2023. Darwin series: Domain specific large language models for natural science. arXiv preprint arXiv:2308.13565 (2023). \n[389] Weikai Xie, Li Zhang, Shihe Wang, Rongjie Yi, and Mengwei Xu. 2024. DroidCall: A Dataset for LLM-powered Android Intent Invocation. arXiv preprint arXiv:2412.00402 (2024). \n[390] Xuan Xie, Jiayang Song, Zhehua Zhou, Yuheng Huang, Da Song, and Lei Ma. 2024. Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forward. arXiv preprint arXiv:2404.08517 (2024). \n[391] Ji Xin, Raphael Tang, Yaoliang Yu, and Jimmy Lin. 2021. BERxiT: Early Exiting for BERT with Better Fine-Tuning and Extension to Regression. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, Paola Merlo, Jorg Tiedemann, and Reut Tsarfaty (Eds.). Association for Computational Linguistics, Online, 91–104. https://doi.org/10.18653/v1/2021.eacl-main.8 \n[392] Can Xu, Qingfeng Sun, Kai Zheng, Xiubo Geng, Pu Zhao, Jiazhan Feng, Chongyang Tao, and Daxin Jiang. 2023. Wizardlm: Empowering large language models to follow complex instructions. arXiv preprint arXiv:2304.12244 (2023). \n[393] Canwen Xu, Yichong Xu, Shuohang Wang, Yang Liu, Chenguang Zhu, and Julian McAuley. 2023. Small models are valuable plug-ins for large language models. arXiv preprint arXiv:2305.08848 (2023). \n[394] Daliang Xu, Wangsong Yin, Xin Jin, Ying Zhang, Shiyun Wei, Mengwei Xu, and Xuanzhe Liu. 2023. LLMCad: Fast and Scalable On-device Large Language Model Inference. arXiv:2309.04255 [cs.NI] https://arxiv.org/abs/2309.04255 \n[395] Daliang Xu, Hao Zhang, Liming Yang, Ruiqi Liu, Gang Huang, Mengwei Xu, and Xuanzhe Liu. 2024. Empowering 1000 tokens/second on-device llm prefilling with mllm-npu. arXiv preprint arXiv:2407.05858 (2024). \n[396] Jiaming Xu, Peng Wang, Guanhua Tian, Bo Xu, Jun Zhao, Fangyuan Wang, and Hongwei Hao. 2015. Short Text Clustering via Convolutional Neural Networks. In Proceedings of the 1st Workshop on Vector Space Modeling for Natural Language Processing, Phil Blunsom, Shay Cohen, Paramveer Dhillon, and Percy Liang (Eds.). Association for Computational Linguistics, Denver, Colorado, 62–69. https://doi.org/10.3115/v1/W15-1509 \n[397] Minrui Xu, Niyato Dusit, Jiawen Kang, Zehui Xiong, Shiwen Mao, Zhu Han, Dong In Kim, and Khaled B Letaief. 2024. When large language model agents meet 6G networks: Perception, grounding, and alignment. arXiv preprint arXiv:2401.07764 (2024). \n[398] Mengwei Xu, Wangsong Yin, Dongqi Cai, Rongjie Yi, Daliang Xu, Qipeng Wang, Bingyang Wu, Yihao Zhao, Chen Yang, Shihe Wang, et al. 2024. A survey of resource-efficient llm and multimodal foundation models. arXiv preprint arXiv:2401.08092 (2024). \n[399] Weijia Xu, Sweta Agrawal, Eleftheria Briakou, Marianna Martindale, and Marine Carpuat. 2023. Understanding and Detecting Hallucinations in Neural Machine Translation via Model Introspection. Transactions of the Association for Computational Linguistics 11 (2023), 546–564. \n[400] Yuzhuang Xu, Xu Han, Zonghan Yang, Shuo Wang, Qingfu Zhu, Zhiyuan Liu, Weidong Liu, and Wanxiang Che. 2024. OneBit: Towards Extremely Low-bit Large Language Models. arXiv preprint arXiv:2402.11295 (2024). \n[401] Shi-Qi Yan, Jia-Chen Gu, Yun Zhu, and Zhen-Hua Ling. 2024. Corrective retrieval augmented generation. arXiv preprint arXiv:2401.15884 (2024). \n[402] An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, et al. 2024. Qwen2 technical report. arXiv preprint arXiv:2407.10671 (2024). \n[403] Chuanpeng Yang, Wang Lu, Yao Zhu, Yidong Wang, Qian Chen, Chenlong Gao, Bingjie Yan, and Yiqiang Chen. 2024. Survey on Knowledge Distillation for Large Language Models: Methods, Evaluation, and Application. arXiv preprint arXiv:2407.01885 (2024). \n[404] Cheng Yang, Yang Sui, Jinqi Xiao, Lingyi Huang, Yu Gong, Yuanlin Duan, Wenqi Jia, Miao Yin, Yu Cheng, and Bo Yuan. 2024. MoE- $\\mathrm { I } ^ { 2 }$ : Compressing Mixture of Experts Models through Inter-Expert Pruning and Intra-Expert Low-Rank Decomposition. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 10456–10466. https://doi.org/10.18653/v1/2024.findings-emnlp.612 \n[405] Kevin Yang, Dan Klein, Asli Celikyilmaz, Nanyun Peng, and Yuandong Tian. 2024. RLCD: Reinforcement Learning from Contrastive Distillation for LM Alignment. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=v3XXtxWKi6 \n[406] Kailai Yang, Tianlin Zhang, Ziyan Kuang, Qianqian Xie, Jimin Huang, and Sophia Ananiadou. 2024. MentaLLaMA: interpretable mental health analysis on social media with large language models. In Proceedings of the ACM on Web Conference 2024. 4489–4500. \n[407] Linyi Yang, Shuibai Zhang, Libo Qin, Yafu Li, Yidong Wang, Hanmeng Liu, Jindong Wang, Xing Xie, and Yue Zhang. 2023. GLUE-X: Evaluating Natural Language Understanding Models from an Out-of-Distribution Generalization Perspective. In Findings of the Association for Computational Linguistics: ACL 2023. Association for Computational Linguistics, Toronto, Canada, 12731–12750. https://doi.org/10.18653/v1/2023.findings-acl.806 \n[408] Linyi Yang, Shuibai Zhang, Zhuohao Yu, Guangsheng Bao, Yidong Wang, Jindong Wang, Ruochen Xu, Wei Ye, Xing Xie, Weizhu Chen, and Yue Zhang. 2024. Supervised Knowledge Makes Large Language Models Better In-context Learners. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=bAMPOUF227 \n[409] Runming Yang, Taiqiang Wu, Jiahao Wang, Pengfei Hu, Ngai Wong, and Yujiu Yang. 2024. LLM-Neo: Parameter Efficient Knowledge Distillation for Large Language Models. arXiv preprint arXiv:2411.06839 (2024). \n[410] Yifei Yang, Zouying Cao, and Hai Zhao. 2024. Laco: Large language model pruning via layer collapse. arXiv preprint arXiv:2402.11187 (2024). \n[411] Yu Yang, Siddhartha Mishra, Jeffrey N Chiang, and Baharan Mirzasoleiman. 2024. SmallToLarge (S2L): Scalable Data Selection for Fine-tuning Large Language Models by Summarizing Training Trajectories of Small Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=K9IGlMQpif \n[412] Yizhe Yang, Huashan Sun, Jiawei Li, Runheng Liu, Yinghao Li, Yuhang Liu, Heyan Huang, and Yang Gao. 2023. Mindllm: Pre-training lightweight large language model from scratch, evaluations and domain applications. arXiv preprint arXiv:2310.15777 (2023). \n[413] Zhou Yang, Zhaochun Ren, Wang Yufeng, Shizhong Peng, Haizhou Sun, Xiaofei Zhu, and Xiangwen Liao. 2024. Enhancing Empathetic Response Generation by Augmenting LLMs with Small-scale Empathetic Models. arXiv preprint arXiv:2402.11801 (2024). \n[414] Yunzhi Yao, Shaohan Huang, Wenhui Wang, Li Dong, and Furu Wei. 2021. Adapt-and-distill: Developing small, fast and effective pretrained language models for domains. arXiv preprint arXiv:2106.13474 (2021), 460–470. \n[415] Mert Yazan, Suzan Verberne, and Frederik Situmeang. 2024. The Impact of Quantization on Retrieval-Augmented Generation: An Analysis of Small LLMs. arXiv preprint arXiv:2406.10251 (2024). \n[416] Rongjie Yi, Liwei Guo, Shiyun Wei, Ao Zhou, Shangguang Wang, and Mengwei Xu. 2023. EdgeMoE: Fast On-Device Inference of MoE-based Large Language Models. arXiv:2308.14352 [cs.LG] https://arxiv.org/abs/2308.14352 \n[417] Rongjie Yi, Xiang Li, Weikai Xie, Zhenyan Lu, Chenghua Wang, Ao Zhou, Shangguang Wang, Xiwen Zhang, and Mengwei Xu. 2024. PhoneLM: an Efficient and Capable Small Language Model Family through Principled Pre-training. arXiv preprint arXiv:2411.05046 (2024). \n[418] Wen-tau Yih, Matthew Richardson, Chris Meek, Ming-Wei Chang, and Jina Suh. 2016. The Value of Semantic Parse Labeling for Knowledge Base Question Answering. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), Katrin Erk and Noah A. Smith (Eds.). Association for Computational Linguistics, Berlin, Germany, 201–206. https://doi.org/10.18653/v1/P16-2033 \n[419] Wangsong Yin, Mengwei Xu, Yuanchun Li, and Xuanzhe Liu. 2024. LLM as a System Service on Mobile Devices. arXiv:2403.11805 [cs.OS] https://arxiv.org/abs/2403.11805 \n[420] Longhui Yu, Weisen Jiang, Han Shi, Jincheng YU, Zhengying Liu, Yu Zhang, James Kwok, Zhenguo Li, Adrian Weller, and Weiyang Liu. 2024. MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=N8N0hgNDRt \n[421] Yue Yu, Wei Ping, Zihan Liu, Boxin Wang, Jiaxuan You, Chao Zhang, Mohammad Shoeybi, and Bryan Catanzaro. 2024. Rankrag: Unifying context ranking with retrieval-augmented generation in llms. arXiv preprint arXiv:2407.02485 (2024). \n[422] Zhongzhi Yu, Zheng Wang, Yuhan Li, Haoran You, Ruijie Gao, Xiaoya Zhou, Sreenidhi Reedy Bommu, Yang Katie Zhao, and Yingyan Celine Lin. 2024. EDGE-LLM: Enabling Efficient Large Language Model Adaptation on Edge Devices via Layerwise Unified Compression and Adaptive Layer Tuning and Voting. arXiv preprint arXiv:2406.15758 (2024). \n[423] Jinliang Yuan, Chen Yang, Dongqi Cai, Shihe Wang, Xin Yuan, Zeling Zhang, Xiang Li, Dingge Zhang, Hanzi Mei, Xianqing Jia, et al. 2024. Mobile Foundation Model as Firmware. In Proceedings of the 30th Annual International Conference on Mobile Computing and Networking. 279–295. \n[424] Sha Yuan, Hanyu Zhao, Zhengxiao Du, Ming Ding, Xiao Liu, Yukuo Cen, Xu Zou, Zhilin Yang, and Jie Tang. 2021. Wudaocorpora: A super large-scale chinese corpora for pre-training language models. AI Open 2 (2021), 65–68. \n[425] Xiaohan Yuan, Jinfeng Li, Dongxia Wang, Yuefeng Chen, Xiaofeng Mao, Longtao Huang, Hui Xue, Wenhai Wang, Kui Ren, and Jingyi Wang. 2024. S-Eval: Automatic and Adaptive Test Generation for Benchmarking Safety Evaluation of Large Language Models. arXiv preprint arXiv:2405.14191 (2024). \n[426] Youliang Yuan, Wenxiang Jiao, Wenxuan Wang, Jen tse Huang, Pinjia He, Shuming Shi, and Zhaopeng Tu. 2024. GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id= MbfAK4s61A \n[427] Shengbin Yue, Wei Chen, Siyuan Wang, Bingxuan Li, Chenchen Shen, Shujun Liu, Yuxuan Zhou, Yao Xiao, Song Yun, Wei Lin, et al. 2023. Disc-lawllm: Fine-tuning large language models for intelligent legal services. arXiv preprint arXiv:2309.11325 (2023). \n[428] Xiang Yue, Xingwei Qu, Ge Zhang, Yao Fu, Wenhao Huang, Huan Sun, Yu Su, and Wenhu Chen. [n. d.]. Mammoth: Building math generalist models through hybrid instruction tuning, 2023. URL https://arxiv. org/abs/2309.05653 ([n. d.]). \n[429] Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. 2019. HellaSwag: Can a Machine Really Finish Your Sentence?. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics. 4791–4800. \n[430] Rowan Zellers, Ari Holtzman, Hannah Rashkin, Yonatan Bisk, Ali Farhadi, Franziska Roesner, and Yejin Choi. 2019. Defending against neural fake news. Advances in neural information processing systems 32 (2019). \n[431] Biao Zhang and Rico Sennrich. 2019. Root mean square layer normalization. Advances in Neural Information Processing Systems 32 (2019). \n[432] Cheng Zhang, Jianyi Cheng, George A Constantinides, and Yiren Zhao. 2024. LQER: Low-Rank Quantization Error Reconstruction for LLMs. arXiv preprint arXiv:2402.02446 (2024). \n[433] Collin Zhang, John X Morris, and Vitaly Shmatikov. 2024. Extracting Prompts by Inverting LLM Outputs. arXiv preprint arXiv:2405.15012 (2024). \n[434] Chen Zhang, Dawei Song, Zheyu Ye, and Yan Gao. 2023. Towards the law of capacity gap in distilling language models. arXiv preprint arXiv:2311.07052 (2023). \n[435] Dan Zhang, Ziniu Hu, Sining Zhoubian, Zhengxiao Du, Kaiyu Yang, Zihan Wang, Yisong Yue, Yuxiao Dong, and Jie Tang. 2024. Sciglm: Training scientific language models with self-reflective instruction annotation and tuning. arXiv preprint arXiv:2401.07950 (2024). \n[436] Di Zhang, Wei Liu, Qian Tan, Jingdan Chen, Hang Yan, Yuliang Yan, Jiatong Li, Weiran Huang, Xiangyu Yue, Dongzhan Zhou, et al. 2024. Chemllm: A chemical large language model. arXiv preprint arXiv:2402.06852 (2024). \n[437] Kaiyan Zhang, Jianyu Wang, Ermo Hua, Biqing Qi, Ning Ding, and Bowen Zhou. 2024. Cogenesis: A framework collaborating large and small language models for secure context-aware instruction following. arXiv preprint arXiv:2403.03129 (2024). \n[438] Mingyang Zhang, Hao Chen, Chunhua Shen, Zhen Yang, Linlin Ou, Xinyi Yu, and Bohan Zhuang. 2023. Loraprune: Pruning meets low-rank parameter-efficient fine-tuning. arXiv preprint arXiv:2305.18403 (2023). \n[439] Peiyuan Zhang, Guangtao Zeng, Tianduo Wang, and Wei Lu. 2024. TinyLlama: An Open-Source Small Language Model. arXiv:2401.02385 [cs.CL] https://arxiv.org/abs/2401.02385 \n[440] Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. 2022. Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068 (2022). \n[441] Xinran Zhang, Xin Yuan, Yunwei Li, and Yanru Zhang. 2019. Cold-Start representation learning: A recommendation approach with bert4Movie and movie2Vec. In Proceedings of the 27th ACM International Conference on Multimedia. 2612–2616. \n[442] Yingtao Zhang, Haoli Bai, Haokun Lin, Jialin Zhao, Lu Hou, and Carlo Vittorio Cannistraci. 2024. Plug-and-play: An efficient post-training pruning method for large language models. In The Twelfth International Conference on Learning Representations. \n[443] Yiming Zhang, Nicholas Carlini, and Daphne Ippolito. 2024. Effective Prompt Extraction from Language Models. arXiv:2307.06865 [cs.CL] https://arxiv.org/abs/2307.06865 \n[444] Zhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen, Lianmin Zheng, Ruisi Cai, Zhao Song, Yuandong Tian, Christopher Ré, Clark Barrett, et al. 2024. H2o: Heavy-hitter oracle for efficient generative inference of large language models. Advances in Neural Information Processing Systems 36 (2024). \n[445] Zhiwei Zhang, Fali Wang, Xiaomin Li, Zongyu Wu, Xianfeng Tang, Hui Liu, Qi He, Wenpeng Yin, and Suhang Wang. 2024. Does your LLM truly unlearn? An embarrassingly simple approach to recover unlearned knowledge. arXiv preprint arXiv:2410.16454 (2024). \n[446] Bowen Zhao, Hannaneh Hajishirzi, and Qingqing Cao. 2024. APT: Adaptive Pruning and Tuning Pretrained Language Models for Efficient Training and Inference. In Forty-first International Conference on Machine Learning. \n[447] Junchen Zhao, Yurun Song, Simeng Liu, Ian G. Harris, and Sangeetha Abdu Jyothi. 2023. LinguaLinked: A Distributed Large Language Model Inference System for Mobile Devices. arXiv:2312.00388 [cs.LG] https://arxiv.org/abs/2312.00388 \n[448] Juntao Zhao, Borui Wan, Yanghua Peng, Haibin Lin, and Chuan Wu. 2024. LLM-PQ: Serving LLM on Heterogeneous Clusters with Phase-Aware Partition and Adaptive Quantization. arXiv preprint arXiv:2403.01136 (2024). \n[449] Kun Zhao, Bohao Yang, Chen Tang, Chenghua Lin, and Liang Zhan. 2024. SLIDE: A Framework Integrating Small and Large Language Models for Open-Domain Dialogues Evaluation. arXiv preprint arXiv:2405.15924 (2024). \n[450] Theodore Zhao, Mu Wei, J Samuel Preston, and Hoifung Poon. 2023. Automatic calibration and error correction for large language models via pareto optimal self-supervision. arXiv preprint arXiv:2306.16564 (2023). \n[451] Youpeng Zhao, Ming Lin, Huadong Tang, Qiang Wu, and Jun Wang. 2024. Merino: Entropy-driven Design for Generative Language Models on IoT Devices. arXiv:2403.07921 [cs.LG] https://arxiv.org/abs/2403.07921 \n[452] Zhengyun Zhao, Qiao Jin, Fangyuan Chen, Tuorui Peng, and Sheng Yu. 2022. Pmc-patients: A large-scale dataset of patient summaries and relations for benchmarking retrieval-based clinical decision support systems. arXiv preprint arXiv:2202.13876 (2022). \n[453] Zhanhui Zhou, Zhixuan Liu, Jie Liu, Zhichen Dong, Chao Yang, and Yu Qiao. 2024. Weak-to-Strong Search: Align Large Language Models via Searching over Small Language Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/ forum?id=dOJ6CqWDf1 \n[454] Fengbin Zhu, Wenqiang Lei, Youcheng Huang, Chao Wang, Shuo Zhang, Jiancheng Lv, Fuli Feng, and Tat-Seng Chua. 2021. TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Finance. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). 3277–3287. \n[455] Jiachen Zhu, Jianghao Lin, Xinyi Dai, Bo Chen, Rong Shan, Jieming Zhu, Ruiming Tang, Yong Yu, and Weinan Zhang. 2024. Lifelong Personalized Low-Rank Adaptation of Large Language Models for Recommendation. arXiv preprint arXiv:2408.03533 (2024). \n[456] Kaijie Zhu, Jindong Wang, Jiaheng Zhou, Zichen Wang, Hao Chen, Yidong Wang, Linyi Yang, Wei Ye, Yue Zhang, Neil Zhenqiang Gong, et al. 2023. Promptbench: Towards evaluating the robustness of large language models on adversarial prompts. arXiv preprint arXiv:2306.04528 (2023). \n[457] Xunyu Zhu, Jian Li, Yong Liu, Can Ma, and Weiping Wang. 2023. A survey on model compression for large language models. arXiv preprint arXiv:2308.07633 (2023). \n[458] Yun Zhu, Yinxiao Liu, Felix Stahlberg, Shankar Kumar, Yu hui Chen, Liangchen Luo, Lei Shu, Renjie Liu, Jindong Chen, and Lei Meng. 2023. Towards an On-device Agent for Text Rewriting. arXiv:2308.11807 [cs.CL] https://arxiv.org/abs/2308.11807 \n[459] Yuanyuan Zhuang and Jaekyeong Kim. 2021. A bert-based multi-criteria recommender system for hotel promotion management. Sustainability 13, 14 (2021), 8039. \n[460] Terry Yue Zhuo, Yujin Huang, Chunyang Chen, and Zhenchang Xing. 2023. Red teaming chatgpt via jailbreaking: Bias, robustness, reliability and toxicity. arXiv preprint arXiv:2301.12867 (2023). \n[461] Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J Zico Kolter, and Matt Fredrikson. 2023. Universal and transferable adversarial attacks on aligned language models. arXiv preprint arXiv:2307.15043 (2023). \n[462] Lixin Zou, Weixue Lu, Yiding Liu, Hengyi Cai, Xiaokai Chu, Dehong Ma, Daiting Shi, Yu Sun, Zhicong Cheng, Simiu Gu, et al. 2022. Pre-trained language model-based retrieval and ranking for web search. ACM Transactions on the Web 17, 1 (2022), 1–36. \n[463] Jingwei Zuo, Maksim Velikanov, Dhia Eddine Rhaiem, Ilyas Chahed, Younes Belkada, Guillaume Kunsch, and Hakim Hacid. 2024. Falcon mamba: The first competitive attention-free 7b language model. arXiv preprint arXiv:2410.05355 (2024). ", + "page_idx": 59 + }, + { + "type": "text", + "text": "", + "page_idx": 60 + }, + { + "type": "text", + "text": "", + "page_idx": 61 + }, + { + "type": "text", + "text": "", + "page_idx": 62 + }, + { + "type": "text", + "text": "", + "page_idx": 63 + }, + { + "type": "text", + "text": "", + "page_idx": 64 + }, + { + "type": "text", + "text": "", + "page_idx": 65 + }, + { + "type": "text", + "text": "", + "page_idx": 66 + }, + { + "type": "text", + "text": "", + "page_idx": 67 + }, + { + "type": "text", + "text": "", + "page_idx": 68 + }, + { + "type": "text", + "text": "", + "page_idx": 69 + }, + { + "type": "text", + "text": "", + "page_idx": 70 + }, + { + "type": "text", + "text": "", + "page_idx": 71 + }, + { + "type": "text", + "text": "", + "page_idx": 72 + }, + { + "type": "text", + "text": "", + "page_idx": 73 + }, + { + "type": "text", + "text": "", + "page_idx": 74 + }, + { + "type": "text", + "text": "", + "page_idx": 75 + }, + { + "type": "text", + "text": "", + "page_idx": 76 + }, + { + "type": "text", + "text": "", + "page_idx": 77 + } +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/0a6052d959b55329f431979166c399bb48eb201513690234f56f7bc1ed2ca143.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/0a6052d959b55329f431979166c399bb48eb201513690234f56f7bc1ed2ca143.jpg new file mode 100644 index 0000000000000000000000000000000000000000..31b8e407cefc2607e25b3533fa8006e376133e17 --- /dev/null +++ b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/0a6052d959b55329f431979166c399bb48eb201513690234f56f7bc1ed2ca143.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9603ac6fda9447f98f44c9de13765564f30473663f7e67241d189dd6d87335ec +size 184002 diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/0e42f91999f7419cb80623e72013f86267aee5f36093e88b937c5c8097ca9307.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/0e42f91999f7419cb80623e72013f86267aee5f36093e88b937c5c8097ca9307.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f35cf98277999d57aeafd022ece256272cb2780d Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/0e42f91999f7419cb80623e72013f86267aee5f36093e88b937c5c8097ca9307.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/0ec07b9236260ae50875f629ad20462a0550afc9867c569b52597bc40aa089be.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/0ec07b9236260ae50875f629ad20462a0550afc9867c569b52597bc40aa089be.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2786db0d190a3158241770873a7b6b754bc5a02f Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/0ec07b9236260ae50875f629ad20462a0550afc9867c569b52597bc40aa089be.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/1d496ff147a34dad2f537bee9636ed019e3dc371882a648ff85001144a298f46.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/1d496ff147a34dad2f537bee9636ed019e3dc371882a648ff85001144a298f46.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bcf37fba3a7a81477a5108bf05696bf09a45652d Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/1d496ff147a34dad2f537bee9636ed019e3dc371882a648ff85001144a298f46.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/3894a8927993b4576a6a54284923fe726c5e26ec8a2798c33b22908330f309b7.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/3894a8927993b4576a6a54284923fe726c5e26ec8a2798c33b22908330f309b7.jpg new file mode 100644 index 0000000000000000000000000000000000000000..21c7c7642e54253d3539311272ba429c825306bf Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/3894a8927993b4576a6a54284923fe726c5e26ec8a2798c33b22908330f309b7.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/3b43c2adad6b79f991c200f73540556e2caeebf4d3fa4388bf6043d9b05842b2.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/3b43c2adad6b79f991c200f73540556e2caeebf4d3fa4388bf6043d9b05842b2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..35ec309d01a7728b3f0deb9136180556411f9c88 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/3b43c2adad6b79f991c200f73540556e2caeebf4d3fa4388bf6043d9b05842b2.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/40b74914fda927e82ca795290fe714f8e91ef13c65ad3e542a958b9d257aa21e.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/40b74914fda927e82ca795290fe714f8e91ef13c65ad3e542a958b9d257aa21e.jpg new file mode 100644 index 0000000000000000000000000000000000000000..837a8ab3eae9e85d9ec4cf0eda7b83a72acb8d9e Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/40b74914fda927e82ca795290fe714f8e91ef13c65ad3e542a958b9d257aa21e.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/44f9650b49eb7c89c591d11d800486203087d3a89226fb46f167c63eb3d54e49.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/44f9650b49eb7c89c591d11d800486203087d3a89226fb46f167c63eb3d54e49.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4d185f14930e2b813fd283742c32c1d00db5fa7b --- /dev/null +++ b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/44f9650b49eb7c89c591d11d800486203087d3a89226fb46f167c63eb3d54e49.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:28d594c01b252bade04788690cd27d3230db46af4e57524ef753196f10887a9f +size 191363 diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/48df989cfaadb8fac983caaf7d5a0543997244da2d91323c876c84ed2b7ce3c2.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/48df989cfaadb8fac983caaf7d5a0543997244da2d91323c876c84ed2b7ce3c2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7c41b8ce43485f648e9dcb245c2c91c404517922 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/48df989cfaadb8fac983caaf7d5a0543997244da2d91323c876c84ed2b7ce3c2.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/48eac85984db214f1239d2587a5c9212bbe0e83f4df0523301ac0d5c88ed7b07.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/48eac85984db214f1239d2587a5c9212bbe0e83f4df0523301ac0d5c88ed7b07.jpg new file mode 100644 index 0000000000000000000000000000000000000000..33a6e1356ff569fa7a2c6219c279235fabd4598d --- /dev/null +++ b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/48eac85984db214f1239d2587a5c9212bbe0e83f4df0523301ac0d5c88ed7b07.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:547451a627955a4b3e7184866b64368042f6641aa170462b0c29b2314229b1ec +size 114102 diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/4a08ec6fabe50723da4c06d5e69d62aad4ee613e005bc0895166e807df16ef81.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/4a08ec6fabe50723da4c06d5e69d62aad4ee613e005bc0895166e807df16ef81.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8c99edfa4dc432323cc241edd689a2a3c495adc2 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/4a08ec6fabe50723da4c06d5e69d62aad4ee613e005bc0895166e807df16ef81.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/53be93c32e7dfda8e6f37a75c53b4f3413729758e8e135240489a3c89db07e90.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/53be93c32e7dfda8e6f37a75c53b4f3413729758e8e135240489a3c89db07e90.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e37f17cb64880e5dae491e3197f7392b86dbf151 --- /dev/null +++ b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/53be93c32e7dfda8e6f37a75c53b4f3413729758e8e135240489a3c89db07e90.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0f7ddc12e875e2759da1f85e734e790f5215d4dd5643322a70a202471484499 +size 114350 diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/54ba53e905e4b1507712565596bc939d3eaf80a4bbe0e0ae6a1b42bff2ef742e.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/54ba53e905e4b1507712565596bc939d3eaf80a4bbe0e0ae6a1b42bff2ef742e.jpg new file mode 100644 index 0000000000000000000000000000000000000000..412267bc91429c2bdb34eb7855d6073de9b24860 --- /dev/null +++ b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/54ba53e905e4b1507712565596bc939d3eaf80a4bbe0e0ae6a1b42bff2ef742e.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7ce979fa3bf0f5b58115eb989c1253613209ddada1f64b0cc53ca22f91379b6 +size 113131 diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/55caed2c4f7f78a5d857a38a853bc5c203ddb2ed2f0ce8cc74b86cc6c50f991c.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/55caed2c4f7f78a5d857a38a853bc5c203ddb2ed2f0ce8cc74b86cc6c50f991c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f2e2662760063dc6f619b2056364a854437f8ee1 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/55caed2c4f7f78a5d857a38a853bc5c203ddb2ed2f0ce8cc74b86cc6c50f991c.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/5c4d53a6a4c5f09f4ddfaecb6f9efc56e2048c001e55fb6f1444260ba8c674b2.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/5c4d53a6a4c5f09f4ddfaecb6f9efc56e2048c001e55fb6f1444260ba8c674b2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c667a4146c807b3e1a287f2cd983a29427d00224 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/5c4d53a6a4c5f09f4ddfaecb6f9efc56e2048c001e55fb6f1444260ba8c674b2.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/5ef0bc349ca2896ceaffe910aeb9516f9094df1212bdea9facea688a55284eba.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/5ef0bc349ca2896ceaffe910aeb9516f9094df1212bdea9facea688a55284eba.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5a7322c774b9a503f5c0c3703fad60b7ca78a37f Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/5ef0bc349ca2896ceaffe910aeb9516f9094df1212bdea9facea688a55284eba.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/6095b11a617839e4830381c5584b8c024a668a165c10e234f2a66366d522a074.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/6095b11a617839e4830381c5584b8c024a668a165c10e234f2a66366d522a074.jpg new file mode 100644 index 0000000000000000000000000000000000000000..498365ae7288df07973d2459966688967dee3c88 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/6095b11a617839e4830381c5584b8c024a668a165c10e234f2a66366d522a074.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/626c7e9d43b4aab04b75e0c85a0ebd44a849b1c90de29088e83b6acbc899b0f8.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/626c7e9d43b4aab04b75e0c85a0ebd44a849b1c90de29088e83b6acbc899b0f8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3441adbc5afeff3a5a2220f1444e2e7950b0c9f0 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/626c7e9d43b4aab04b75e0c85a0ebd44a849b1c90de29088e83b6acbc899b0f8.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/6cd678b847173b848c1429c04ccfa78a775c56e46fec00eed0142c8567e93bcd.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/6cd678b847173b848c1429c04ccfa78a775c56e46fec00eed0142c8567e93bcd.jpg new file mode 100644 index 0000000000000000000000000000000000000000..25383565ec669fdcc4f1b518b83922fa6c76c978 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/6cd678b847173b848c1429c04ccfa78a775c56e46fec00eed0142c8567e93bcd.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/706a36e19b603c76d6aae7b544d112d98b1d3baf832b822766b357c5ba1f7446.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/706a36e19b603c76d6aae7b544d112d98b1d3baf832b822766b357c5ba1f7446.jpg new file mode 100644 index 0000000000000000000000000000000000000000..aaa8b1f1d0737b13c7c8853ffeedb03da98cbf22 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/706a36e19b603c76d6aae7b544d112d98b1d3baf832b822766b357c5ba1f7446.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/77c4c32c1adca3a145486fc4768303feb5c12b34b9a1d2be0efc16a27cd435fa.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/77c4c32c1adca3a145486fc4768303feb5c12b34b9a1d2be0efc16a27cd435fa.jpg new file mode 100644 index 0000000000000000000000000000000000000000..856279b80c0dfe8f96ef862d7dd113f467f19323 --- /dev/null +++ b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/77c4c32c1adca3a145486fc4768303feb5c12b34b9a1d2be0efc16a27cd435fa.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe6c7cc07521c415ee0a233ef95e19a31e9cefb8fa1c8f69165be7f84ddf6d67 +size 389633 diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/7a301bf14d27246d671fe2f019348067a554dcdd7dc6af2604ebd4ebba48dcc3.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/7a301bf14d27246d671fe2f019348067a554dcdd7dc6af2604ebd4ebba48dcc3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c5a76291ca63e41ff20c61d6dbaf691ff4867abb --- /dev/null +++ b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/7a301bf14d27246d671fe2f019348067a554dcdd7dc6af2604ebd4ebba48dcc3.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b222da3e6c2b59bc6a384408e3018f0d3321915b256e0eb5db13f8db8338cf2d +size 136785 diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/7b09e9822fef32fc9cbff258819269c0c4e3644175f3124d16a3d7db4ff3a24f.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/7b09e9822fef32fc9cbff258819269c0c4e3644175f3124d16a3d7db4ff3a24f.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f3d763fc9a05bae1d6dae162e113c1db74bcfb80 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/7b09e9822fef32fc9cbff258819269c0c4e3644175f3124d16a3d7db4ff3a24f.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/7bd4c45becca7b686c32b583209d1f7a73eb6551e34b45c46098c5c022c94672.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/7bd4c45becca7b686c32b583209d1f7a73eb6551e34b45c46098c5c022c94672.jpg new file mode 100644 index 0000000000000000000000000000000000000000..41b8af9514e85cde1852c2ad5e3a34ac1598d1c1 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/7bd4c45becca7b686c32b583209d1f7a73eb6551e34b45c46098c5c022c94672.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/7f16686f1105451014a37e7f8be3e8ce3938b447496f6b7451f897a2796e66ac.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/7f16686f1105451014a37e7f8be3e8ce3938b447496f6b7451f897a2796e66ac.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3e1712a9ac2115b36d0b4e30416f85fdce6439f2 --- /dev/null +++ b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/7f16686f1105451014a37e7f8be3e8ce3938b447496f6b7451f897a2796e66ac.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b56500ed8c994d610117e33fe938b30c4b1b3d6550c0cf1b057aaadecedaf9d7 +size 360540 diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/82acd32e9310bc792c3dd697686c96c5f1c2b71aadd2ce2266ccd1554e652fa2.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/82acd32e9310bc792c3dd697686c96c5f1c2b71aadd2ce2266ccd1554e652fa2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..722f41b80d74500a81513f1f9aeba0f2fabd37b6 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/82acd32e9310bc792c3dd697686c96c5f1c2b71aadd2ce2266ccd1554e652fa2.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/8357051feb9ba91a2f6080b1b919594dacd3ca414ddea2fd7e406b800ad3f918.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/8357051feb9ba91a2f6080b1b919594dacd3ca414ddea2fd7e406b800ad3f918.jpg new file mode 100644 index 0000000000000000000000000000000000000000..cf1540cd6e7596ec54bd79ac05fab9f11b020eb7 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/8357051feb9ba91a2f6080b1b919594dacd3ca414ddea2fd7e406b800ad3f918.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/844ac2068793ef36b83eb6f0bf3c6390326b42f040099f022d3cd83076a77653.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/844ac2068793ef36b83eb6f0bf3c6390326b42f040099f022d3cd83076a77653.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5182c94a2b7dcf3373a4f976e0d50ad79d2a9663 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/844ac2068793ef36b83eb6f0bf3c6390326b42f040099f022d3cd83076a77653.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/88af859599a62dce2c28c3668d1cdea5e01201f40e87bdbce8df43504141cd84.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/88af859599a62dce2c28c3668d1cdea5e01201f40e87bdbce8df43504141cd84.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f346c26775e5eaad8326cfc6fdccae7a70bc81f0 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/88af859599a62dce2c28c3668d1cdea5e01201f40e87bdbce8df43504141cd84.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/8baa83545500b3c7be9594e42743fe1ff1961b3ea45d6d6638141e7d356b2eec.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/8baa83545500b3c7be9594e42743fe1ff1961b3ea45d6d6638141e7d356b2eec.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0ad0204ca2bbcb42238a60c4cf4ddd536104e6c6 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/8baa83545500b3c7be9594e42743fe1ff1961b3ea45d6d6638141e7d356b2eec.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/93144e9125c92890e1eada7cf6aca7e81e7846ea281be533d7a92908374ae4f4.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/93144e9125c92890e1eada7cf6aca7e81e7846ea281be533d7a92908374ae4f4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..01b4cf897ded7ad4f700a2b09ccb4505b9c23de6 --- /dev/null +++ b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/93144e9125c92890e1eada7cf6aca7e81e7846ea281be533d7a92908374ae4f4.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15e3c0805bbb4de792ea186711868407675e928a3df17e52dfbf53a3ce2ae869 +size 191904 diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/94d107ba2821c802b7a73aa1983a1886476e568dfa1529db7ab8ea32a3f5338d.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/94d107ba2821c802b7a73aa1983a1886476e568dfa1529db7ab8ea32a3f5338d.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ec39eac4408037427c231c95540eb352ab5fd5d3 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/94d107ba2821c802b7a73aa1983a1886476e568dfa1529db7ab8ea32a3f5338d.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/9bd4f68b8f9c3534da0d42f0c2d493cf2cc4ce5cd199e4fb28f21df6a636c011.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/9bd4f68b8f9c3534da0d42f0c2d493cf2cc4ce5cd199e4fb28f21df6a636c011.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5786a22a0568338908b105b52fa66fd4b45a341e Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/9bd4f68b8f9c3534da0d42f0c2d493cf2cc4ce5cd199e4fb28f21df6a636c011.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/9c3657c5bb8abd7484009440e98895b181ebe7f9d445c79c6060797acd00bc03.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/9c3657c5bb8abd7484009440e98895b181ebe7f9d445c79c6060797acd00bc03.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4e318670d4b515bf67095670238e57ccd9719ccd Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/9c3657c5bb8abd7484009440e98895b181ebe7f9d445c79c6060797acd00bc03.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/a0e58b835f756db84f4d3ab50e36df5b318a17cdc9bfb01a6fa698a1f2f3fd53.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/a0e58b835f756db84f4d3ab50e36df5b318a17cdc9bfb01a6fa698a1f2f3fd53.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c18f31634f9cfcef608868654a17696fd1e68a50 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/a0e58b835f756db84f4d3ab50e36df5b318a17cdc9bfb01a6fa698a1f2f3fd53.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/a799fdedf2acbfe0cf778e6b9e31f6394c944c22af26e4e01b46328d0a6c4a24.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/a799fdedf2acbfe0cf778e6b9e31f6394c944c22af26e4e01b46328d0a6c4a24.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4fabbc4b7043aa53d460efb6c51dac42e795d3cc Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/a799fdedf2acbfe0cf778e6b9e31f6394c944c22af26e4e01b46328d0a6c4a24.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/ae6045a43b98b5c6bb8da34d5ac3c583c0ff5d17ee9737e665173841d5bfaff3.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/ae6045a43b98b5c6bb8da34d5ac3c583c0ff5d17ee9737e665173841d5bfaff3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8c46750b121a467623847b8863c894e9cf167f9a Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/ae6045a43b98b5c6bb8da34d5ac3c583c0ff5d17ee9737e665173841d5bfaff3.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/bbd77bd34f4d7955af6799a68109e49f177df7268d73ddaf5fc5f74d572be046.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/bbd77bd34f4d7955af6799a68109e49f177df7268d73ddaf5fc5f74d572be046.jpg new file mode 100644 index 0000000000000000000000000000000000000000..633bdba296c90f0192d3fb7975e709eae9b5e3d1 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/bbd77bd34f4d7955af6799a68109e49f177df7268d73ddaf5fc5f74d572be046.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/bc23a40ce635f273f1242537db1150953da333aa08351c4a52224d8b31af729a.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/bc23a40ce635f273f1242537db1150953da333aa08351c4a52224d8b31af729a.jpg new file mode 100644 index 0000000000000000000000000000000000000000..75e4c606384c8454aa8e07ce9e970bc2c064fe06 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/bc23a40ce635f273f1242537db1150953da333aa08351c4a52224d8b31af729a.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/bc5d3036a35f80350c1a852c4442462e99358340f2f1f023976984b679b5e8f2.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/bc5d3036a35f80350c1a852c4442462e99358340f2f1f023976984b679b5e8f2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b1682e784f388e7ab6371c973bdd2ca657e7420a Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/bc5d3036a35f80350c1a852c4442462e99358340f2f1f023976984b679b5e8f2.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/bd7e4807f7a9d6400352932e88e02d9e09460a88ebef1ff96ca0ce0b08089699.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/bd7e4807f7a9d6400352932e88e02d9e09460a88ebef1ff96ca0ce0b08089699.jpg new file mode 100644 index 0000000000000000000000000000000000000000..837f58feabae28e0d9362472f637161458d8fb46 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/bd7e4807f7a9d6400352932e88e02d9e09460a88ebef1ff96ca0ce0b08089699.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/c81cb9b79eff7862cf4e886d507bc4aab412fb27e8b2d18cadc4977dc37d6307.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/c81cb9b79eff7862cf4e886d507bc4aab412fb27e8b2d18cadc4977dc37d6307.jpg new file mode 100644 index 0000000000000000000000000000000000000000..047a6a8fdd0932418ab1b83f226a208fcdb979cc Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/c81cb9b79eff7862cf4e886d507bc4aab412fb27e8b2d18cadc4977dc37d6307.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/c910d53cf633fd17f0283ebbd319032712214d9a42da2f28a15fe0577ca151de.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/c910d53cf633fd17f0283ebbd319032712214d9a42da2f28a15fe0577ca151de.jpg new file mode 100644 index 0000000000000000000000000000000000000000..712ce7f431af64fb1a8228d20c8ecd64c55b15dd Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/c910d53cf633fd17f0283ebbd319032712214d9a42da2f28a15fe0577ca151de.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/d4ef979fb35a43bc43f105144a9a822511b5247f2074c5314c41005aa974897d.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/d4ef979fb35a43bc43f105144a9a822511b5247f2074c5314c41005aa974897d.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bccf61be8562b2c389b08ff56e7d7041f53c3216 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/d4ef979fb35a43bc43f105144a9a822511b5247f2074c5314c41005aa974897d.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/d571433f38a77ba849a7f2215c689dd115b7b307778fb86df6c4b41005282e82.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/d571433f38a77ba849a7f2215c689dd115b7b307778fb86df6c4b41005282e82.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3e7c3360fc1986300ec3c9ea05e3cf03f0051684 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/d571433f38a77ba849a7f2215c689dd115b7b307778fb86df6c4b41005282e82.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/d7614a38b998519482b9ad9ab776369620dacab6d03d9d1eb88cbd8282792b50.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/d7614a38b998519482b9ad9ab776369620dacab6d03d9d1eb88cbd8282792b50.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c7fec376c8f0b111c54e03b1b3ce1f046c8d4855 --- /dev/null +++ b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/d7614a38b998519482b9ad9ab776369620dacab6d03d9d1eb88cbd8282792b50.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd671fb9ceb07a9a7b8a884498ef0c3bf9c92dc96fecf3cd639172a5b63ba8f1 +size 370724 diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/dac7bbe74f6604b3a7c2f738489f1e9f8bd44ea608360eca77d1fe9e35bf73c0.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/dac7bbe74f6604b3a7c2f738489f1e9f8bd44ea608360eca77d1fe9e35bf73c0.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3dfd551062d616d7b1b78b7916d94d6dd5a63a90 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/dac7bbe74f6604b3a7c2f738489f1e9f8bd44ea608360eca77d1fe9e35bf73c0.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/dbb90c927b541ccb1dbead5da7a8cacff664dcc463e7dcbbe77d6329cea8382d.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/dbb90c927b541ccb1dbead5da7a8cacff664dcc463e7dcbbe77d6329cea8382d.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d87c6ad61aea1815304b566e8c4f35eb9497bcbc Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/dbb90c927b541ccb1dbead5da7a8cacff664dcc463e7dcbbe77d6329cea8382d.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/dece5590539dc7049aef671544f34321e40828974152d71cc6046df5cb4796bb.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/dece5590539dc7049aef671544f34321e40828974152d71cc6046df5cb4796bb.jpg new file mode 100644 index 0000000000000000000000000000000000000000..55b9f44d940918668524cf9073b4394500260e62 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/dece5590539dc7049aef671544f34321e40828974152d71cc6046df5cb4796bb.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/df663fc0f0f03e94a63f985ffce187344c3d15b4e8e08b798ac33582aed8fd97.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/df663fc0f0f03e94a63f985ffce187344c3d15b4e8e08b798ac33582aed8fd97.jpg new file mode 100644 index 0000000000000000000000000000000000000000..345b23c733a6873dae6370697a090a02a34579df Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/df663fc0f0f03e94a63f985ffce187344c3d15b4e8e08b798ac33582aed8fd97.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/ef74fcffda1a392094f0f94d29a585fc18aa9ad52d2ac41e1321d14a23c723e1.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/ef74fcffda1a392094f0f94d29a585fc18aa9ad52d2ac41e1321d14a23c723e1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..25780bef798e8b31ad8474bfd710507fa0d1d566 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/ef74fcffda1a392094f0f94d29a585fc18aa9ad52d2ac41e1321d14a23c723e1.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/f0676f031f8be6ddbcdd421342e02c7aa2dd3e785aaeb77f576fd2a9803bf571.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/f0676f031f8be6ddbcdd421342e02c7aa2dd3e785aaeb77f576fd2a9803bf571.jpg new file mode 100644 index 0000000000000000000000000000000000000000..76044195b1b5b5709dd658ddd885dee780dfc6ff Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/f0676f031f8be6ddbcdd421342e02c7aa2dd3e785aaeb77f576fd2a9803bf571.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/f384686f4977d2530cb223bab852d8696ab57ce6dde9887671940026792ea987.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/f384686f4977d2530cb223bab852d8696ab57ce6dde9887671940026792ea987.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4a1ae183ae0e15699472b1219f7b2f88292c54a9 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/f384686f4977d2530cb223bab852d8696ab57ce6dde9887671940026792ea987.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/f9283173cfd5cc41848dbdac8e8581006a4d40a4141bae56cd4912f55bdac1a1.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/f9283173cfd5cc41848dbdac8e8581006a4d40a4141bae56cd4912f55bdac1a1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9f7c7e4c71f626433e279fb338f435bad21f3f19 --- /dev/null +++ b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/f9283173cfd5cc41848dbdac8e8581006a4d40a4141bae56cd4912f55bdac1a1.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:560555e2f47927edba049787a8c03756d5828499d0f608f2579801e7144ec7eb +size 138263 diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/fd9856ea9edd8abf68bb3993615db91a48a01c7506699c07a2722ea28ad8f21a.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/fd9856ea9edd8abf68bb3993615db91a48a01c7506699c07a2722ea28ad8f21a.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b13ba80ff6ddb58983523747055f65ecd4135ed4 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/fd9856ea9edd8abf68bb3993615db91a48a01c7506699c07a2722ea28ad8f21a.jpg differ diff --git a/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/fe7a5deacc121dd09cb056dc09b2fd7d8e528d9525f679eca295d180628c994a.jpg b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/fe7a5deacc121dd09cb056dc09b2fd7d8e528d9525f679eca295d180628c994a.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8b05e82c6bacd079826a6f5160d4688773fa6eb1 Binary files /dev/null and b/backend/ingestion_pipeline/output/Small Language Models in the Era of Large/auto/images/fe7a5deacc121dd09cb056dc09b2fd7d8e528d9525f679eca295d180628c994a.jpg differ diff --git a/backend/ingestion_pipeline/pdfs/Attention Is All You Need.pdf b/backend/ingestion_pipeline/pdfs/Attention Is All You Need.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c448a903a90bdd82fd43f7bb036028e369191070 --- /dev/null +++ b/backend/ingestion_pipeline/pdfs/Attention Is All You Need.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bdfaa68d8984f0dc02beaca527b76f207d99b666d31d1da728ee0728182df697 +size 2215244 diff --git a/backend/ingestion_pipeline/pdfs/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1).pdf b/backend/ingestion_pipeline/pdfs/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1).pdf new file mode 100644 index 0000000000000000000000000000000000000000..cc0ae8e0682a4bbffa07d847174dca968563955a --- /dev/null +++ b/backend/ingestion_pipeline/pdfs/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1).pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a52040947c9cf22b3d2e440d78c8e0e4746f9f542ef9bee6d857d0857c1acde +size 1867945 diff --git a/backend/ingestion_pipeline/pdfs/Communication-Efficient Learning of Deep Networks.pdf b/backend/ingestion_pipeline/pdfs/Communication-Efficient Learning of Deep Networks.pdf new file mode 100644 index 0000000000000000000000000000000000000000..13f5b0674d290c89c76232fa90a2840159d01e26 --- /dev/null +++ b/backend/ingestion_pipeline/pdfs/Communication-Efficient Learning of Deep Networks.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2faf5593d9db413dee96a9be6ab9527cb0413b34fd5024aa60db3a5ad5795384 +size 1311201 diff --git a/backend/ingestion_pipeline/pdfs/MOE.pdf b/backend/ingestion_pipeline/pdfs/MOE.pdf new file mode 100644 index 0000000000000000000000000000000000000000..26dc4153d9395d7f446a6c132cc48e0af6bcfca0 --- /dev/null +++ b/backend/ingestion_pipeline/pdfs/MOE.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a12ef2353aeb3894afc015ad88803d47fc6e8522a176f90ffbfdf850ad0d5710 +size 628115 diff --git a/backend/ingestion_pipeline/pdfs/React_paper.pdf b/backend/ingestion_pipeline/pdfs/React_paper.pdf new file mode 100644 index 0000000000000000000000000000000000000000..db998c93a06115fc2ffde481f51039bbade9d676 --- /dev/null +++ b/backend/ingestion_pipeline/pdfs/React_paper.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f285b0971ae4a790e402fb93966bed3adde2cf0a04977d08b2b40d6ab0cace69 +size 633805 diff --git a/backend/ingestion_pipeline/pdfs/Small Language Models in the Era of Large.pdf b/backend/ingestion_pipeline/pdfs/Small Language Models in the Era of Large.pdf new file mode 100644 index 0000000000000000000000000000000000000000..098a8af1ec6ee8a42defaff8b0a1bbc9cc670e51 --- /dev/null +++ b/backend/ingestion_pipeline/pdfs/Small Language Models in the Era of Large.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:647f2fe8eed3404fc981b677567530e0752be7f81064a3567b434dffcefde8d6 +size 5076889 diff --git a/backend/ingestion_pipeline/prefect_pipeline_orchestrator.py b/backend/ingestion_pipeline/prefect_pipeline_orchestrator.py new file mode 100644 index 0000000000000000000000000000000000000000..cc37202878e262f65f5021da16d8af21be747e11 --- /dev/null +++ b/backend/ingestion_pipeline/prefect_pipeline_orchestrator.py @@ -0,0 +1,463 @@ +""" +Professional Document Processing Pipeline with Prefect Orchestration + +A production-ready pipeline that orchestrates PDF processing, VLM enhancement, +semantic chunking, and RAG ingestion using Prefect workflow management. + +Dependencies: +- Prefect for workflow orchestration and monitoring +- All existing pipeline components (PDF pipeline, VLM enhancement, chunking, RAG ingestion) + +Architecture: +This orchestrator wraps all refactored components with Prefect tasks and flows, +providing monitoring, error handling, retries, and professional workflow management. +""" + +import asyncio +import logging +from pathlib import Path +from typing import Dict, Any, Optional, List +from dataclasses import dataclass +from datetime import datetime, timedelta + +from prefect import task, flow +from prefect.blocks.system import Secret +from prefect.task_runners import ConcurrentTaskRunner +from prefect.logging import get_run_logger + +# Import our refactored components +from local_mineru.pipelines.pdf_to_enriched_semantic_chunks_pipeline import PDFToEnrichedMarkdownPipeline +from local_mineru.vlm_enhancing.vlm_pipeline import VLMPipeline, PipelineConfig +from local_mineru.chunker.semantic_chunker import SemanticChunker +from lightrag_instance.chunk_ingestion_engine import ChunkIngestionEngine # Temporarily disabled until LightRAG is properly installed + + +@dataclass +class PipelineConfiguration: + """Comprehensive configuration for the document processing pipeline.""" + + # Input/Output paths + pdf_input_directory: Path + output_directory: Path + chunked_output_file: Path + + # Processing settings + chunk_size: int = 512 + overlap: int = 100 + max_concurrent_vlm_requests: int = 5 + + # VLM settings + gemini_model: str = "gemini-2.5-flash-lite" + enable_vlm_enhancement: bool = True + backup_original_files: bool = True + + # LightRAG settings + enable_rag_ingestion: bool = True + rag_working_directory: Optional[Path] = None + + # Error handling + max_retries: int = 3 + retry_delay_seconds: int = 30 + continue_on_errors: bool = True + + # Logging + log_level: str = "INFO" + + +@task( + name="PDF Processing", + description="Convert PDFs to enriched markdown using MinerU", + retries=3, + retry_delay_seconds=30 +) +async def process_pdfs_task(config: PipelineConfiguration) -> Dict[str, Any]: + """ + Process PDF files to enriched markdown format. + + Args: + config: Pipeline configuration + + Returns: + Dict[str, Any]: Processing results and statistics + """ + logger = get_run_logger() + logger.info(f"Starting PDF processing for directory: {config.pdf_input_directory}") + + try: + # Initialize PDF pipeline with proper arguments + pdf_pipeline = PDFToEnrichedMarkdownPipeline( + pdf_directory=config.pdf_input_directory, + output_directory=config.output_directory, + enable_vlm=False, # VLM will be handled separately + enable_chunking=False # Chunking will be handled separately + ) + + # Process PDFs to markdown + success = await pdf_pipeline.process() + + if success: + logger.info("PDF processing completed successfully") + return { + "status": "success", + "processed_files": 1, # The pipeline doesn't return detailed stats + "message": "PDF processing completed successfully" + } + else: + logger.error("PDF processing failed") + return { + "status": "failed", + "processed_files": 0, + "message": "PDF processing failed" + } + + except Exception as e: + logger.error(f"PDF processing failed: {e}") + raise + + +@task( + name="VLM Enhancement", + description="Enhance markdown files with AI-generated image descriptions", + retries=2, + retry_delay_seconds=45 +) +async def vlm_enhancement_task(config: PipelineConfiguration, pdf_results: Dict[str, Any]) -> Dict[str, Any]: + """ + Enhance markdown files with VLM-generated image descriptions. + + Args: + config: Pipeline configuration + pdf_results: Results from PDF processing task + + Returns: + Dict[str, Any]: VLM enhancement results + """ + logger = get_run_logger() + + if not config.enable_vlm_enhancement: + logger.info("VLM enhancement disabled, skipping") + return {"skipped": True, "reason": "VLM enhancement disabled"} + + logger.info(f"Starting VLM enhancement for directory: {config.output_directory}") + + try: + # Configure VLM pipeline + vlm_config = PipelineConfig( + gemini_model=config.gemini_model, + backup_original_files=config.backup_original_files, + max_concurrent_requests=config.max_concurrent_vlm_requests, + log_level=config.log_level + ) + + # Initialize and run VLM pipeline + vlm_pipeline = VLMPipeline(vlm_config) + results = await vlm_pipeline.process_directory(config.output_directory) + + logger.info(f"VLM enhancement completed: {results['successful_descriptions']} descriptions generated") + return results + + except Exception as e: + logger.error(f"VLM enhancement failed: {e}") + if not config.continue_on_errors: + raise + return {"failed": True, "error": str(e)} + + +@task( + name="Semantic Chunking", + description="Create semantic chunks from processed markdown files", + retries=2, + retry_delay_seconds=15 +) +async def semantic_chunking_task(config: PipelineConfiguration, vlm_results: Dict[str, Any]) -> Dict[str, Any]: + """ + Create semantic chunks from processed markdown files. + + Args: + config: Pipeline configuration + vlm_results: Results from VLM enhancement task + + Returns: + Dict[str, Any]: Chunking results + """ + logger = get_run_logger() + logger.info(f"Starting semantic chunking with chunk_size={config.chunk_size}, overlap={config.overlap}") + + try: + # Initialize semantic chunker + chunker = SemanticChunker( + chunk_size=config.chunk_size, + overlap=config.overlap + ) + + # Process all markdown files in output directory + results = chunker.process_output_directory( + output_dir=config.output_directory, + save_to=config.chunked_output_file + ) + + chunks_generated = results.get('summary', {}).get('total_chunks_generated', 0) + logger.info(f"Semantic chunking completed: {chunks_generated} chunks generated") + return results + + except Exception as e: + logger.error(f"Semantic chunking failed: {e}") + raise + + +@task( + name="RAG Ingestion", + description="Ingest semantic chunks into LightRAG knowledge graph", + retries=2, + retry_delay_seconds=20 +) +async def rag_ingestion_task(config: PipelineConfiguration, chunk_results: Dict[str, Any]) -> Dict[str, Any]: + """ + Ingest semantic chunks into LightRAG knowledge graph. + + Args: + config: Pipeline configuration + chunk_results: Results from semantic chunking task + + Returns: + Dict[str, Any]: RAG ingestion results + """ + logger = get_run_logger() + + if not config.enable_rag_ingestion: + logger.info("RAG ingestion disabled, skipping") + return {"skipped": True, "reason": "RAG ingestion disabled"} + + logger.info(f"Starting RAG ingestion from: {config.chunked_output_file}") + + ingestion_engine = None + try: + # Initialize chunk ingestion engine + ingestion_engine = ChunkIngestionEngine() + + # Initialize the RAG instance + await ingestion_engine.initialize() + + # Process chunks using the correct instance method + await ingestion_engine.process_chunks_file( + chunks_file_path=Path(config.chunked_output_file), + batch_size=125, # Optimized batch size + start_batch=0, # Start from beginning + max_concurrent_batches=2 # Conservative concurrency for stability + ) + + # Load chunks data to get summary information + chunks_data = ingestion_engine.load_chunks_from_file(Path(config.chunked_output_file)) + summary = ingestion_engine.chunk_formatter.get_chunks_summary(chunks_data) + + # Format results to match expected interface + results = { + "success": True, + "total_chunks_processed": summary.get('total_chunks_generated', 0), + "total_files_processed": summary.get('total_files_processed', 0), + "average_chunks_per_file": summary.get('average_chunks_per_file', 0), + "ingestion_completed": True + } + + logger.info(f"RAG ingestion completed: {results['total_chunks_processed']} chunks ingested from {results['total_files_processed']} files") + return results + + except Exception as e: + logger.error(f"RAG ingestion failed: {e}") + if not config.continue_on_errors: + raise + return {"failed": True, "error": str(e)} + finally: + # Ensure proper cleanup of RAG resources + if ingestion_engine: + try: + await ingestion_engine.finalize() + logger.info("RAG ingestion engine finalized successfully") + except Exception as cleanup_error: + logger.warning(f"Error during cleanup: {cleanup_error}") + + +@flow( + name="Document Processing Pipeline", + description="Complete pipeline for processing academic papers from PDF to RAG", + task_runner=ConcurrentTaskRunner(), + log_prints=True +) +async def document_processing_pipeline(config: PipelineConfiguration) -> Dict[str, Any]: + """ + Main document processing pipeline flow. + + Args: + config: Complete pipeline configuration + + Returns: + Dict[str, Any]: Comprehensive pipeline results + """ + logger = get_run_logger() + pipeline_start_time = datetime.now() + + logger.info("🚀 Starting Document Processing Pipeline") + logger.info(f"Input directory: {config.pdf_input_directory}") + logger.info(f"Output directory: {config.output_directory}") + logger.info(f"Configuration: VLM={config.enable_vlm_enhancement}, RAG={config.enable_rag_ingestion}") + + # Ensure output directories exist + config.output_directory.mkdir(parents=True, exist_ok=True) + config.chunked_output_file.parent.mkdir(parents=True, exist_ok=True) + + try: + # Stage 1: PDF Processing + logger.info("📄 Stage 1: PDF Processing") + pdf_results = await process_pdfs_task(config) + + # Stage 2: VLM Enhancement (optional) + logger.info("🖼️ Stage 2: VLM Enhancement") + vlm_results = await vlm_enhancement_task(config, pdf_results) + + # Stage 3: Semantic Chunking + logger.info("🧩 Stage 3: Semantic Chunking") + chunk_results = await semantic_chunking_task(config, vlm_results) + + # Stage 4: RAG Ingestion (optional) + logger.info("🧠 Stage 4: RAG Ingestion") + rag_results = await rag_ingestion_task(config, chunk_results) + + # Calculate pipeline metrics + pipeline_duration = datetime.now() - pipeline_start_time + + # Compile comprehensive results + pipeline_results = { + "pipeline_status": "SUCCESS", + "pipeline_duration_seconds": pipeline_duration.total_seconds(), + "stages": { + "pdf_processing": pdf_results, + "vlm_enhancement": vlm_results, + "semantic_chunking": chunk_results, + "rag_ingestion": rag_results + }, + "summary": { + "total_files_processed": pdf_results.get("processed_files", 0), + "total_images_enhanced": vlm_results.get("successful_descriptions", 0), + "total_chunks_generated": chunk_results.get("summary", {}).get("total_chunks_generated", 0), + "total_chunks_ingested": rag_results.get("total_chunks_processed", 0) + }, + "configuration": { + "chunk_size": config.chunk_size, + "overlap": config.overlap, + "vlm_enabled": config.enable_vlm_enhancement, + "rag_enabled": config.enable_rag_ingestion + } + } + + logger.info("✅ Document Processing Pipeline Completed Successfully!") + logger.info(f"Duration: {pipeline_duration}") + logger.info(f"Files processed: {pipeline_results['summary']['total_files_processed']}") + logger.info(f"Images enhanced: {pipeline_results['summary']['total_images_enhanced']}") + logger.info(f"Chunks generated: {pipeline_results['summary']['total_chunks_generated']}") + logger.info(f"Chunks ingested: {pipeline_results['summary']['total_chunks_ingested']}") + + return pipeline_results + + except Exception as e: + pipeline_duration = datetime.now() - pipeline_start_time + logger.error(f"❌ Pipeline failed after {pipeline_duration}: {e}") + + error_results = { + "pipeline_status": "FAILED", + "pipeline_duration_seconds": pipeline_duration.total_seconds(), + "error": str(e), + "configuration": { + "chunk_size": config.chunk_size, + "overlap": config.overlap, + "vlm_enabled": config.enable_vlm_enhancement, + "rag_enabled": config.enable_rag_ingestion + } + } + + if config.continue_on_errors: + return error_results + else: + raise + + +# Convenience Functions + +def create_default_config( + pdf_input_directory: str, + output_directory: str, + chunked_output_file: str +) -> PipelineConfiguration: + """ + Create a default pipeline configuration. + + Args: + pdf_input_directory: Directory containing PDF files + output_directory: Directory for processed output + chunked_output_file: File path for chunked results + + Returns: + PipelineConfiguration: Default configuration + """ + return PipelineConfiguration( + pdf_input_directory=Path(pdf_input_directory), + output_directory=Path(output_directory), + chunked_output_file=Path(chunked_output_file) + ) + + +async def run_pipeline_simple( + pdf_directory: str, + output_directory: str, + enable_vlm: bool = True, + enable_rag: bool = True +) -> Dict[str, Any]: + """ + Simple function to run the complete pipeline with minimal configuration. + + Args: + pdf_directory: Directory containing PDF files + output_directory: Directory for processed output + enable_vlm: Whether to enable VLM enhancement + enable_rag: Whether to enable RAG ingestion + + Returns: + Dict[str, Any]: Pipeline results + """ + config = PipelineConfiguration( + pdf_input_directory=Path(pdf_directory), + output_directory=Path(output_directory), + chunked_output_file=Path(output_directory).parent / "chunked_output" / "semantic_chunks.json", + enable_vlm_enhancement=enable_vlm, + enable_rag_ingestion=enable_rag + ) + + return await document_processing_pipeline(config) + + +# Example Usage +async def main(): + """Example of how to use the pipeline.""" + # Create configuration + config = PipelineConfiguration( + pdf_input_directory=Path("input_pdfs"), + output_directory=Path("backend/ingestion_pipeline/output"), + chunked_output_file=Path("backend/ingestion_pipeline/chunked_output/semantic_chunks.json"), + chunk_size=512, + overlap=100, + enable_vlm_enhancement=True, + enable_rag_ingestion=True, + max_concurrent_vlm_requests=5 + ) + + # Run the pipeline + results = await document_processing_pipeline(config) + + # Print results + print(f"Pipeline Status: {results['pipeline_status']}") + print(f"Duration: {results['pipeline_duration_seconds']:.2f} seconds") + print(f"Files Processed: {results['summary']['total_files_processed']}") + print(f"Chunks Generated: {results['summary']['total_chunks_generated']}") + + +if __name__ == "__main__": + asyncio.run(main()) \ No newline at end of file diff --git a/backend/ingestion_pipeline/run_prefect_pipeline.py b/backend/ingestion_pipeline/run_prefect_pipeline.py new file mode 100644 index 0000000000000000000000000000000000000000..da67c611f8aa8b58f4344333727c629948dc698c --- /dev/null +++ b/backend/ingestion_pipeline/run_prefect_pipeline.py @@ -0,0 +1,107 @@ +""" +Simple script to run the Prefect-orchestrated document processing pipeline. + +This script demonstrates how to use the professional pipeline orchestrator +with monitoring and error handling capabilities. +""" + +import asyncio +from pathlib import Path +from prefect_pipeline_orchestrator import ( + document_processing_pipeline, + PipelineConfiguration, + run_pipeline_simple +) + + +async def run_example_pipeline(): + """Run an example pipeline with your actual directories.""" + + # Configure your pipeline paths + config = PipelineConfiguration( + # Update these paths to your actual directories + pdf_input_directory=Path("C:/Users/User/Projects/paper_verifier/backend/ingestion_pipeline/pdfs"), + output_directory=Path("C:/Users/User/Projects/paper_verifier/backend/ingestion_pipeline/output"), + chunked_output_file=Path("C:/Users/User/Projects/paper_verifier/backend/ingestion_pipeline/chunked_output/semantic_chunks.json"), + + # Processing settings + chunk_size=512, + overlap=100, + max_concurrent_vlm_requests=3, # Reduced for stability + + # Feature toggles + enable_vlm_enhancement=True, + enable_rag_ingestion=True, + + # Error handling + continue_on_errors=True, + max_retries=2, + + # Logging + log_level="INFO" + ) + + print("🚀 Starting Prefect-orchestrated Document Processing Pipeline") + print(f"📁 Input: {config.pdf_input_directory}") + print(f"📁 Output: {config.output_directory}") + print(f"🖼️ VLM Enhancement: {config.enable_vlm_enhancement}") + print(f"🧠 RAG Ingestion: {config.enable_rag_ingestion}") + print("\n" + "="*60) + + try: + # Run the pipeline + results = await document_processing_pipeline(config) + + # Display results + print("\n" + "="*60) + print("✅ PIPELINE COMPLETED SUCCESSFULLY!") + print("="*60) + print(f"Status: {results['pipeline_status']}") + print(f"Duration: {results['pipeline_duration_seconds']:.2f} seconds") + print(f"Files Processed: {results['summary']['total_files_processed']}") + print(f"Images Enhanced: {results['summary']['total_images_enhanced']}") + print(f"Chunks Generated: {results['summary']['total_chunks_generated']}") + print(f"Chunks Ingested: {results['summary']['total_chunks_ingested']}") + + return results + + except Exception as e: + print("\n" + "="*60) + print("❌ PIPELINE FAILED!") + print("="*60) + print(f"Error: {e}") + raise + + +async def run_simple_example(): + """Run the pipeline using the simplified interface.""" + + print("🎯 Running Simplified Pipeline Interface") + print("="*50) + + results = await run_pipeline_simple( + pdf_directory="C:/Users/User/Projects/paper_verifier/backend/ingestion_pipeline/pdfs", + output_directory="C:/Users/User/Projects/paper_verifier/backend/ingestion_pipeline/output", + enable_vlm=True, + enable_rag=True + ) + + print(f"✅ Simple pipeline completed: {results['pipeline_status']}") + return results + + +if __name__ == "__main__": + print("Prefect Document Processing Pipeline") + print("="*50) + print("1. Make sure Prefect server is running: prefect server start") + print("2. Open http://localhost:4200 to view the beautiful UI") + print("3. Run this script to see your pipeline in action!") + print("="*50) + + # Choose which example to run + choice = input("\nRun (1) Full Configuration or (2) Simple Interface? [1/2]: ").strip() + + if choice == "2": + asyncio.run(run_simple_example()) + else: + asyncio.run(run_example_pipeline()) \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md b/backend/ingestion_pipeline/tests/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md new file mode 100644 index 0000000000000000000000000000000000000000..1f347e181cb752b42c053d60bfb14a010a45d7f6 --- /dev/null +++ b/backend/ingestion_pipeline/tests/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md @@ -0,0 +1,127 @@ +# BILLING DISPUTE ADJUSTMENT PROCESS FLOW + +# Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 + +![This image is a detailed process flow diagram illustrating the "Billing Dispute Adjustment Process" for "Data-Revised v2/2021". The overall structure is a top-down, left-to-right flow, organized into horizontal swimlanes representing different roles: Customer, Sales, SBP (Sales Business Partner) / Business Finance, and Dispute Management / Business Finance. The diagram uses a combination of rectangular boxes for process steps and diamond shapes for decision points, connected by directional arrows indicating the flow of actions. A timeline is depicted at the bottom, showing the duration of various stages, such as "Within 14 Days or based on agreement," "1-3 Working Days," and "3-60 Days." + +The process begins with the "Customer" initiating a dispute notification, followed by the "Sales" department validating the dispute and requesting additional information if needed. If the dispute is deemed "Valid," the process moves to the "SBP, Business Finance" for provision of credit adjustment or revenue accrual. If deemed "Invalid," the customer is informed, and a reverse POD might be requested. A key decision point, "Complete?", appears after step 5, where the "Dispute Management, Business Finance" role assesses the resolution. If not complete, the process loops back for further investigation and coordination. + +The diagram meticulously outlines each step with numbered actions and sub-points. For instance, step 6 involves coordinating and investigating the dispute by customer and respective stakeholders, including sales, product, CX, GIT, and other units, with a thorough investigation through a series of meetings. A critical decision point, "Dispute valid?", determines the subsequent actions, leading either to informing sales of an invalid dispute (step 7) or proceeding with the investigation and proposal preparation (step 9). + +The process flow continues through various proposal preparations, including "Pre-BACR Proposal Paper sitting" (step 13) and "BACR Proposal Paper sitting" (step 14), with a decision point for "Approved?". If approved, the process leads to updating tracking databases and reporting (step 18) and eventually to verifying the adjustment reflection in the bill (step 20), marking the "End" of the process. If not approved, it returns to Sales for commercial settlement or other suitable arrangements (step 15). + +The visual hierarchy is established through the clear swimlane organization and the numbering of process steps, guiding the reader through the sequence of operations. Color is used sparingly, with blue rectangles for process steps and swimlane headers, white for decision diamonds, and light blue for the background. Text is predominantly black, using a sans-serif font, with clear, concise descriptions for each step. The overall communication purpose is to provide a standardized, step-by-step guide for managing and resolving billing disputes, ensuring all necessary actions, roles, and decision points are clearly defined for efficient processing and adjustment.](images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg) + +*AI-generated description: This flowchart details the billing dispute adjustment process. It outlines the steps taken by Customer, Sales, SBP Business Finance, and Dispute Management/Business Finance departments. The process begins with a customer dispute notification and progresses through validation, investigation, proposal preparation, and potential approval or rejection, ultimately leading to a verified adjustment reflected in the billing.* + +# Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 + +![This image is a detailed process flow diagram outlining the "Billing Dispute Adjustment Process for Voice - Revised v2/2021". The diagram is structured with distinct vertical swimlanes representing different departments: Customer, Sales, RRM (Revenue Recognition Management), and Dispute Management/Business Finance (DM). A horizontal "Time Line" is depicted at the bottom, indicating the duration of various stages. The overall layout is top-down, starting with a "Start" oval and concluding with an "End" oval, with interconnected rectangular process steps and diamond-shaped decision points. + +The process begins with the Customer (Step 1), who notifies a dispute via correspondence or email, providing details like the list of disputed items, invoice, amount, and reason. Sales (Step 2) receives this notification, validates the dispute against the agreement, and submits it to RRM with customer-provided details. RRM (Step 3) receives the dispute notification and checks its validity against DMP and threshold listing. If valid, the process moves to Step 4, where RRM raises a POD (Proof of Delivery) and conducts thorough investigation to segregate root causes, categorizing them as Error by Human (TMW), Error by GIT, or Error by System, and prepares an adjustment calculation. If not valid, the process proceeds to Step 5, where the dispute is notified as invalid to the Customer. + +Following a valid dispute investigation (Step 4), the process leads to Step 6, where Dispute Management/Business Finance receives and verifies the Dispute Request Form (DRF) against evidence, checking clause validity, preventive actions, related invoices, and performing calculations. If the dispute is deemed complete, it moves to Step 7 for justification preparation in the BACR (Billing Adjustment Committee Review) proposal paper format, including credit or debit adjustments and obtaining stakeholder approval. If not complete, it proceeds to Step 8 to request additional information. + +Step 9 involves reviewing, amending, and approving the Adjustment Proposal Paper to DM, with updated slides based on feedback, before submission to the BACR Secretariat. Step 10 is receiving the endorsed BACR Proposal Paper and slide, checking document completeness, and establishing a Pre-BACR for a challenge session. A checklist (10.2) verifies documents from submission. If the dispute is not BACR-related (decision point after Step 10), Sales proceeds with necessary approval under non-BACR (Step 15). If it is BACR-related, it moves to a Pre-BACR Sitting (Step 12). + +Following the Pre-BACR Sitting (Step 12), a decision is made: BACR or Non-BACR. If Non-BACR, it goes to Step 15. If BACR, it proceeds to a BACR Sitting (Step 13). At the BACR Sitting, a decision on approval is made. If not approved, the case is returned to Sales for further negotiation (Step 14). If approved, the next steps involve circulating action items and status (Step 16), notifying Sales or the owner of the approval status, and providing minutes of the meeting for the BACR sitting. + +Finally, Step 17 involves updating the Dispute Tracking Database, Monthly Dashboard Reporting, creating AR# via NOVA/ICP (excluding SAP), and updating documentation in T-M-Box. Step 18 is preparing the adjustment form, followed by Step 19, which includes posting AR# for NOVA and ICP, POD or Accrual reversal and adjustment, notifying Sales, SBP, and Customer of the adjustment, and marking the process as "End". The timeline at the bottom indicates specific durations for Sales (Within 14 Days or based on agreement), RRM (Within 29 Days or based on agreement & complexity), and DM (3-46 Days, with specific BACR minimum working days noted). The color palette is predominantly blue for process boxes, white for text, and grey for swimlane headers, with red arrows indicating flow direction. The font appears to be a standard sans-serif, ensuring legibility. The overall purpose is to provide a clear, step-by-step guide for managing and resolving billing disputes, ensuring accountability and timely resolution across different departments.](Revenue Reconciliation Management) + +*AI-generated description: This flowchart outlines the billing dispute adjustment process. It details the steps involved, starting with customer notification and progressing through sales, RRM (Revenue Reconciliation Management), and Dispute Management/Business Finance. Key stages include dispute validation, investigation, proposal preparation, and various review stages (Pre-BACR, BACR) before final adjustment and closure. The timeline indicates specific durations for each phase, emphasizing timely resolution.* + +•Escalation Process based on Deadline + +
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2 More than 7 DaysGMAGM
3 More than 14 DaysVPVP
+ +Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) + +•Escalation Process based on Aging + +
ItemAging Time LineLevel of escalation in Sales Level of escalation in DM
130 to 60 DaysAGMManager
2 More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
+ +Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : + +
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4 QuarterlyVPReport of the POD status update & escalation if on 4rd week of last month of the quarter
+ +![This image depicts a timeline or roadmap for a "Billing Dispute Adjustment Process Flow for Voice - Revised v2/2021." The overall structure is a curved, upward-sloping band, visually representing progression through time, with distinct milestones marked by colored oval shapes. The timeline begins on the left with "Jun'20" in a green oval and progresses to the right and upward through "Jul'20" (blue oval), "Aug'20" (purple oval), "Sep/Oct '20" (red oval), "Nov'20" (gold oval), and concludes with "Q1'21" (yellow oval). Each dated milestone is accompanied by bulleted text describing the specific activities or outcomes associated with that period. + +Starting from the left, the "Jun'20" milestone indicates "Completed 1st draft with RRM process for Voice on 24." The "Jul'20" milestone details "Reviewed 1st draft for Data with SBP23 Jul 2020." Moving to "Aug'20," the activity is "Sync and finalized 2nd Draft with SBP and RRM on 13 Aug 2020 and Internal DM on 17 Aug 2020." The "Sep/Oct '20" milestone signifies the action to "-Obtain green light from both BC Sales, RRM and SBP in Sep and Oct 2020." Following this, "Nov'20" is associated with "-Awareness, endorsement & circulation." Finally, the "Q1'21" milestone marks the culmination with "- Sign off documentation in Mar 2021 (Subject to finalization of Dispute Policy) & Review effectiveness in Q1 2021." + +The visual hierarchy is established by the prominent placement and distinct colors of the dated ovals, guiding the viewer's eye through the chronological sequence. The text descriptions are presented in a clear, sans-serif font, with bullet points organizing the information under each date. The color palette includes green, blue, purple, red, gold, and yellow for the milestone markers, against a light blue background for the timeline band and white for the surrounding area. The overall purpose of this visual is to communicate the phased approach and key deliverables of the voice billing dispute adjustment process over an approximately ten-month period, from June 2020 to the first quarter of 2021. The roadmap effectively outlines the project's progression, key decision points, and final outcomes.](images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg) + +*AI-generated description: This image is a timeline illustrating the billing dispute adjustment process for voice services. It begins in June 2020 with the completion of the first draft of the RRM process for voice. Key milestones include reviewing the first draft in July 2020, synchronizing and finalizing the second draft in August 2020, obtaining approval from BC Sales, RRM, and SBP in September/October 2020, and achieving awareness, endorsement, and circulation in November 2020. The process concludes with the sign-off of documentation in March 2021, subject to the finalization of the Dispute Policy and a review of effectiveness in Q1 2021.* + +MILESTONE FOR PROCESS IMPROVEMENT + +![The image displays a stylized, folded paper map with a prominent red location pin positioned centrally above it. The map itself is depicted with a perspective view, showing folded sections that create a three-dimensional effect. It features a color palette of blues for water bodies, green for land or parks, and yellow and white for roads and urban areas. The red location pin is a classic map marker shape, with a rounded top and a pointed bottom, rendered with a glossy finish and a distinct inner circle, suggesting a precise point of interest. The overall composition is clean and modern, with a subtle gradient background that transitions from light gray to white, drawing focus to the map and pin. This visual element serves as an icon or graphic representation, likely symbolizing location, navigation, or a specific destination within the context of a document. Given the document context provided ("Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021"), this image might represent the location where a service was provided, a customer's service address, or a point of reference for a billing dispute. The visual hierarchy clearly emphasizes the location pin, indicating its importance as the focal point of the graphic. The use of a map and pin is a universally understood metaphor for geographical positioning and is effectively employed here to convey a sense of place relevant to the billing dispute process. The graphic is likely intended to be illustrative rather than data-driven, providing a visual cue to the geographical aspect of the process.](images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg) + +*AI-generated description: This image depicts a stylized, folded map with a prominent red location pin centered on it. The map shows various colored areas representing land and water, with yellow lines indicating roads. The location pin, a common symbol for GPS or navigation, suggests a focus on a specific place or point of interest within the context of the "Billing Dispute Adjustment Process Flow for Voice."* + +Jun 2020 + +# Progress Tracking + +
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020√
2.Reviewed 1st draft for Data with SBP.23 July 2020V
3. Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020V
4. Sync and finalized with Internal DMV
Obtain green light from stakeholders BC SalesSeptember/October 2020√
O RRM
5.O SBP
Awareness to
o International Sales4 November 2020V
O Awareness to Malaysian Carrier Sales9 November 2020√
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
+ +# Jointly Prepared and Proposed By: + +![The image displays a handwritten signature, presented in black ink against a plain white background. The signature is positioned centrally within the frame and appears to be a cursive script, characteristic of a personal endorsement or authorization. The overall structure is simple, focusing solely on the signature itself without any surrounding text or graphical elements. + +The signature begins with a prominent, sweeping upward stroke on the left, which then transitions into a series of connected, flowing characters. The first discernible letter appears to be an uppercase "F" or a stylized "J," characterized by a strong vertical downstroke followed by a curved horizontal element. This is immediately followed by what seems to be a lowercase "r" or "n," with a distinct loop or curve. The subsequent characters are more abstract and fluid, forming a continuous line that suggests rapid, confident writing. + +A notable feature is a distinct loop or oval shape towards the right side of the signature, which could represent a letter like "a" or "o," or a flourish. The signature concludes with a trailing horizontal line extending to the right, a common stylistic element in cursive writing to complete the endorsement. The handwriting is generally legible in its overall form, conveying a sense of personal authentication, though the specific letters are stylized and may require context to definitively interpret. + +Within the provided document context, this signature would likely serve as the mark of an individual or entity "Jointly Prepared and Proposed By," indicating their agreement, approval, or authorship of the document. The visual hierarchy is entirely dedicated to this signature, emphasizing its importance as a point of validation. The technical details are limited to the black ink on white background, with no discernible font styles or formatting beyond the natural characteristics of handwriting. The functional purpose is to provide a legally or formally recognized mark of assent or origin. The simplicity of the presentation ensures that the signature itself is the sole focus, communicating personal commitment or responsibility.](images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg) + +*AI-generated description: The image displays a handwritten signature in black ink on a white background. The signature appears to be a stylized representation of a name, with flowing lines and loops. Given the context of the document section "Jointly Prepared and Proposed By:", this signature likely represents the endorsement or approval of one of the parties involved in the preparation and proposal of the document.* + +![The image displays a handwritten signature or mark, likely from a document section titled "Jointly Prepared and Proposed By:". The overall composition is horizontal, with the primary element being a long, continuous line of dark grey or black ink on a white background. This line is not a standard signature with legible letters but rather a stylized, abstract mark. It begins on the far left with a short, thick horizontal stroke, followed by a series of connected, angular shapes that suggest cursive lettering but are too abstract to decipher specific characters. There's a prominent upward stroke that forms a peak, followed by a downward curve and then a series of smaller, more fragmented strokes. In the center of the composition, slightly below the main line, is a short, horizontal dash or stroke, also in dark ink. The main line continues to the right, becoming thinner and more elongated, with a slight upward curve at its very end. The ink appears to be applied with a pen or marker, exhibiting some variation in thickness and intensity, indicating a fluid application. The context suggests this mark serves as an authentication or endorsement, representing the "proposed by" entity in a formal document. The lack of clear letterforms implies it might be a unique personal or organizational mark rather than a typical written name. The visual hierarchy is dominated by this single, prominent mark, with no other textual or graphical elements present. The purpose is to visually confirm agreement or submission by the entity it represents.](images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg) + +*AI-generated description: The image displays a handwritten signature or mark, likely representing an endorsement or approval. It consists of a horizontal line with several intersecting strokes and a smaller mark below the main line. This visual element is positioned within the context of a document section titled "Jointly Prepared and Proposed By," suggesting it signifies agreement or authorship by one or more parties.* + +Irna Binti Ibrahim +Manager Dispute International 2 +Date: 17/03/2021 + +![The image displays a handwritten signature, rendered in a light gray ink against a white background. The signature is positioned centrally within the frame, suggesting it is the primary focus of this visual element. Structurally, it is a single, continuous stroke, characteristic of a cursive signature. The visual hierarchy is established by the signature itself, which occupies the majority of the visible space. + +The signature begins on the left with a large, looping flourish that forms what appears to be the initial capital letter, possibly an "R" or a similar cursive capital. This loop is elegantly curved and extends upwards before descending. Following this initial flourish, the signature transitions into a series of connected, smaller strokes that form the body of the name. These middle strokes are more compact and appear to represent lowercase letters, exhibiting a fluid, connected style. The signature concludes on the right with a long, sweeping horizontal line that trails off to the right, adding a sense of completion and dynamism. + +The color of the ink is a muted, light gray, providing a subtle contrast against the stark white background. The line weight of the signature varies slightly, with some strokes appearing thicker than others, indicating the pressure applied during the writing process. The overall style is flowing and somewhat stylized, suggesting a personal and perhaps formal inscription. + +In the context of a document section labeled "Jointly Prepared and Proposed By:", this signature serves as an authentication or endorsement. It visually represents the agreement or contribution of an individual to the document's content. The functional purpose of this element is to provide a unique, handwritten mark of identity and approval, fulfilling a legal or formal requirement for attribution. The absence of any accompanying text or other graphical elements emphasizes the singular importance of this signature as a representation of an individual's involvement. The legibility of the signature is moderate; while the initial flourish and the trailing line are clear, the central portion is more abstract and characteristic of a personal shorthand, making it difficult to decipher specific letters without prior knowledge of the signatory's name.](images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg) + +*AI-generated description: The image displays a handwritten signature in a light gray color against a white background. The signature appears to be a stylized cursive "R" followed by a series of connected, wavy lines that trail off to the right. This signature likely serves as an endorsement or approval, as indicated by its placement in a section titled "Jointly Prepared and Proposed By."* + +Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 + +Roshani Binti Yahya +Manager Dispute International 1 +Date: 17/03/2021 + +Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 + +Reviewed By: + +![The image displays a handwritten signature, likely intended for a document section labeled "Jointly Prepared and Proposed By:". The signature is rendered in a dark, likely black or dark blue, ink on a white background, with no other visual elements present. Structurally, it occupies the central portion of the image, with a slight upward curve from left to right. The handwriting is cursive and appears to be a personal name. The first letter, a capital "N", is large and looping, forming the beginning of the signature. This is followed by lowercase letters "o", "r", "m", "a", "n", "a", "h", "m", "a", "t", and a final flourish that suggests the end of the name, possibly a "y" or a stylized ending. The strokes are generally fluid, indicating a confident and practiced hand. The overall legibility is moderate; while the individual letters can be discerned, the cursive style and potential variations in pressure might require careful examination for precise interpretation. The functional purpose of this visual element is to authenticate or attribute the preparation and proposal of a document to the individual whose name is signed. Within the context of a document, this signature serves as a formal identifier and signifies agreement or responsibility. The absence of any other graphical or textual elements emphasizes the singular importance of this signature as the sole content of the image.](images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg) + +*AI-generated description: The image displays a handwritten signature that reads "Normahamat". This signature likely represents the name of an individual or entity that jointly prepared and proposed the document, as indicated by the surrounding text.* + +Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 + +Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 + +# Approved By: + +![The image displays a signature in black ink on a white background, consistent with its placement in an "Approved By:" section of a document. Structurally, the signature occupies the central portion of the frame, with no surrounding text or graphical elements. The composition is focused solely on the handwritten mark, implying its primary function is to authenticate or approve the document. + +The signature itself is a fluid, cursive script. It begins with a prominent, looping stroke on the left, which appears to form the initial part of a name or a stylized flourish. This is followed by a series of connected, flowing characters that suggest letters, though they are not clearly legible as standard English alphabet characters. The overall impression is one of rapid, confident execution. A distinct upward curve leads into what might be an "a" or similar vowel, followed by what could be an "s" or a trailing flourish. The signature concludes with a strong, diagonal line extending from the lower right, serving as a definitive underline or a final flourish. + +The color palette is monochromatic, consisting solely of black ink against a pure white background, which is typical for official documents requiring a signature. The line weight varies slightly, with some strokes appearing bolder than others, suggesting the pressure applied by the writing instrument. The visual hierarchy is absolute; the signature is the sole element, commanding all attention and representing the approval of an unnamed individual. + +Functionally, this signature serves as a legally binding mark of approval or authorization within the context of a larger document. Its presence signifies that the document has been reviewed and accepted by the signatory. The illegibility of the specific characters, while common in signatures, emphasizes the symbolic rather than literal communicative aspect of this element; it represents authority and agreement. The overall purpose is to provide a clear, albeit stylized, indication of official endorsement.](images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg) + +*AI-generated description: The image displays a handwritten signature in black ink on a white background. The signature is cursive and appears to be a stylized representation of a name. Given the context "Approved By:", this signature likely signifies official approval or authorization within the document.* + +Nazidah Binti Ahmad Azli Head Business Finance Date: \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup b/backend/ingestion_pipeline/tests/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup new file mode 100644 index 0000000000000000000000000000000000000000..2ba00a18ed13b3ab10ae7895c273c95c59a9688c --- /dev/null +++ b/backend/ingestion_pipeline/tests/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup @@ -0,0 +1,87 @@ +# BILLING DISPUTE ADJUSTMENT PROCESS FLOW + +# Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 + +![This flowchart details the billing dispute adjustment process. It outlines the steps taken by Customer, Sales, SBP Business Finance, and Dispute Management/Business Finance departments. The process begins with a customer dispute notification and progresses through validation, investigation, proposal preparation, and potential approval or rejection, ultimately leading to a verified adjustment reflected in the billing.](images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg) + +*AI-generated description: This flowchart details the billing dispute adjustment process. It outlines the steps taken by Customer, Sales, SBP Business Finance, and Dispute Management/Business Finance departments. The process begins with a customer dispute notification and progresses through validation, investigation, proposal preparation, and potential approval or rejection, ultimately leading to a verified adjustment reflected in the billing.* + +# Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 + +![This flowchart outlines the billing dispute adjustment process. It details the steps involved, starting with customer notification and progressing through sales, RRM (Revenue Reconciliation Management), and Dispute Management/Business Finance. Key stages include dispute validation, investigation, proposal preparation, and various review stages (Pre-BACR, BACR) before final adjustment and closure. The timeline indicates specific durations for each phase, emphasizing timely resolution.](images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg) + +*AI-generated description: This flowchart outlines the billing dispute adjustment process. It details the steps involved, starting with customer notification and progressing through sales, RRM (Revenue Reconciliation Management), and Dispute Management/Business Finance. Key stages include dispute validation, investigation, proposal preparation, and various review stages (Pre-BACR, BACR) before final adjustment and closure. The timeline indicates specific durations for each phase, emphasizing timely resolution.* + +•Escalation Process based on Deadline + +
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2 More than 7 DaysGMAGM
3 More than 14 DaysVPVP
+ +Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) + +•Escalation Process based on Aging + +
ItemAging Time LineLevel of escalation in Sales Level of escalation in DM
130 to 60 DaysAGMManager
2 More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
+ +Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : + +
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4 QuarterlyVPReport of the POD status update & escalation if on 4rd week of last month of the quarter
+ +![This image is a timeline illustrating the billing dispute adjustment process for voice services. It begins in June 2020 with the completion of the first draft of the RRM process for voice. Key milestones include reviewing the first draft in July 2020, synchronizing and finalizing the second draft in August 2020, obtaining approval from BC Sales, RRM, and SBP in September/October 2020, and achieving awareness, endorsement, and circulation in November 2020. The process concludes with the sign-off of documentation in March 2021, subject to the finalization of the Dispute Policy and a review of effectiveness in Q1 2021.](images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg) + +*AI-generated description: This image is a timeline illustrating the billing dispute adjustment process for voice services. It begins in June 2020 with the completion of the first draft of the RRM process for voice. Key milestones include reviewing the first draft in July 2020, synchronizing and finalizing the second draft in August 2020, obtaining approval from BC Sales, RRM, and SBP in September/October 2020, and achieving awareness, endorsement, and circulation in November 2020. The process concludes with the sign-off of documentation in March 2021, subject to the finalization of the Dispute Policy and a review of effectiveness in Q1 2021.* + +MILESTONE FOR PROCESS IMPROVEMENT + +![This image depicts a stylized, folded map with a prominent red location pin centered on it. The map shows various colored areas representing land and water, with yellow lines indicating roads. The location pin, a common symbol for GPS or navigation, suggests a focus on a specific place or point of interest within the context of the "Billing Dispute Adjustment Process Flow for Voice."](images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg) + +*AI-generated description: This image depicts a stylized, folded map with a prominent red location pin centered on it. The map shows various colored areas representing land and water, with yellow lines indicating roads. The location pin, a common symbol for GPS or navigation, suggests a focus on a specific place or point of interest within the context of the "Billing Dispute Adjustment Process Flow for Voice."* + +Jun 2020 + +# Progress Tracking + +
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020√
2.Reviewed 1st draft for Data with SBP.23 July 2020V
3. Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020V
4. Sync and finalized with Internal DMV
Obtain green light from stakeholders BC SalesSeptember/October 2020√
O RRM
5.O SBP
Awareness to
o International Sales4 November 2020V
O Awareness to Malaysian Carrier Sales9 November 2020√
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
+ +# Jointly Prepared and Proposed By: + +![The image displays a handwritten signature in black ink on a white background. The signature appears to be a stylized representation of a name, with flowing lines and loops. Given the context of the document section "Jointly Prepared and Proposed By:", this signature likely represents the endorsement or approval of one of the parties involved in the preparation and proposal of the document.](images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg) + +*AI-generated description: The image displays a handwritten signature in black ink on a white background. The signature appears to be a stylized representation of a name, with flowing lines and loops. Given the context of the document section "Jointly Prepared and Proposed By:", this signature likely represents the endorsement or approval of one of the parties involved in the preparation and proposal of the document.* + +![The image displays a handwritten signature or mark, likely representing an endorsement or approval. It consists of a horizontal line with several intersecting strokes and a smaller mark below the main line. This visual element is positioned within the context of a document section titled "Jointly Prepared and Proposed By," suggesting it signifies agreement or authorship by one or more parties.](images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg) + +*AI-generated description: The image displays a handwritten signature or mark, likely representing an endorsement or approval. It consists of a horizontal line with several intersecting strokes and a smaller mark below the main line. This visual element is positioned within the context of a document section titled "Jointly Prepared and Proposed By," suggesting it signifies agreement or authorship by one or more parties.* + +Irna Binti Ibrahim +Manager Dispute International 2 +Date: 17/03/2021 + +![The image displays a handwritten signature in a light gray color against a white background. The signature appears to be a stylized cursive "R" followed by a series of connected, wavy lines that trail off to the right. This signature likely serves as an endorsement or approval, as indicated by its placement in a section titled "Jointly Prepared and Proposed By."](images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg) + +*AI-generated description: The image displays a handwritten signature in a light gray color against a white background. The signature appears to be a stylized cursive "R" followed by a series of connected, wavy lines that trail off to the right. This signature likely serves as an endorsement or approval, as indicated by its placement in a section titled "Jointly Prepared and Proposed By."* + +Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 + +Roshani Binti Yahya +Manager Dispute International 1 +Date: 17/03/2021 + +Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 + +Reviewed By: + +![The image displays a handwritten signature that reads "Normahamat". This signature likely represents the name of an individual or entity that jointly prepared and proposed the document, as indicated by the surrounding text.](images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg) + +*AI-generated description: The image displays a handwritten signature that reads "Normahamat". This signature likely represents the name of an individual or entity that jointly prepared and proposed the document, as indicated by the surrounding text.* + +Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 + +Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 + +# Approved By: + +![The image displays a handwritten signature in black ink on a white background. The signature is cursive and appears to be a stylized representation of a name. Given the context "Approved By:", this signature likely signifies official approval or authorization within the document.](images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg) + +*AI-generated description: The image displays a handwritten signature in black ink on a white background. The signature is cursive and appears to be a stylized representation of a name. Given the context "Approved By:", this signature likely signifies official approval or authorization within the document.* + +Nazidah Binti Ahmad Azli Head Business Finance Date: \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json b/backend/ingestion_pipeline/tests/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..00882dbaa1b239126e8311df57c62cdad29faf48 --- /dev/null +++ b/backend/ingestion_pipeline/tests/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json @@ -0,0 +1,194 @@ +[ + { + "type": "text", + "text": "BILLING DISPUTE ADJUSTMENT PROCESS FLOW ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 ", + "text_level": 1, + "page_idx": 1 + }, + { + "type": "image", + "img_path": "images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 1 + }, + { + "type": "text", + "text": "Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 ", + "text_level": 1, + "page_idx": 2 + }, + { + "type": "image", + "img_path": "images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 2 + }, + { + "type": "table", + "img_path": "images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg", + "table_caption": [ + "•Escalation Process based on Deadline " + ], + "table_footnote": [ + "Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) " + ], + "table_body": "
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2 More than 7 DaysGMAGM
3 More than 14 DaysVPVP
", + "page_idx": 3 + }, + { + "type": "table", + "img_path": "images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg", + "table_caption": [ + "•Escalation Process based on Aging " + ], + "table_footnote": [], + "table_body": "
ItemAging Time LineLevel of escalation in Sales Level of escalation in DM
130 to 60 DaysAGMManager
2 More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
", + "page_idx": 3 + }, + { + "type": "text", + "text": "Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : ", + "page_idx": 3 + }, + { + "type": "table", + "img_path": "images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4 QuarterlyVPReport of the POD status update & escalation if on 4rd week of last month of the quarter
", + "page_idx": 3 + }, + { + "type": "image", + "img_path": "images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 4 + }, + { + "type": "text", + "text": "MILESTONE FOR PROCESS IMPROVEMENT ", + "page_idx": 4 + }, + { + "type": "image", + "img_path": "images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 4 + }, + { + "type": "text", + "text": "Jun 2020 ", + "page_idx": 4 + }, + { + "type": "text", + "text": "Progress Tracking ", + "text_level": 1, + "page_idx": 5 + }, + { + "type": "table", + "img_path": "images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020√
2.Reviewed 1st draft for Data with SBP.23 July 2020V
3. Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020V
4. Sync and finalized with Internal DMV
Obtain green light from stakeholders BC SalesSeptember/October 2020√
O RRM
5.O SBP
Awareness to
o International Sales4 November 2020V
O Awareness to Malaysian Carrier Sales9 November 2020√
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
", + "page_idx": 5 + }, + { + "type": "text", + "text": "Jointly Prepared and Proposed By: ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Irna Binti Ibrahim \nManager Dispute International 2 \nDate: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Roshani Binti Yahya \nManager Dispute International 1 \nDate: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Reviewed By: ", + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Approved By: ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Nazidah Binti Ahmad Azli Head Business Finance Date: ", + "page_idx": 6 + } +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg b/backend/ingestion_pipeline/tests/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bfc3376d2c7cd24be8bfee072f3e5cd4cb8cf0e4 Binary files /dev/null and b/backend/ingestion_pipeline/tests/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg differ diff --git a/backend/ingestion_pipeline/tests/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg b/backend/ingestion_pipeline/tests/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f0ec5b2f913b19171b0b9c923e8592dd64877dee --- /dev/null +++ b/backend/ingestion_pipeline/tests/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f32a9542c9ee33a12296323c5df1797a00410977607ff8af4b4ec37bd4453d50 +size 114207 diff --git a/backend/ingestion_pipeline/tests/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg b/backend/ingestion_pipeline/tests/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1859e4331befa53741151d06c4ee70166fc79ef3 Binary files /dev/null and b/backend/ingestion_pipeline/tests/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg differ diff --git a/backend/ingestion_pipeline/tests/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg b/backend/ingestion_pipeline/tests/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg new file mode 100644 index 0000000000000000000000000000000000000000..149436559d9871438d0d8078ae550e9561dbe84b --- /dev/null +++ b/backend/ingestion_pipeline/tests/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b61835ee583bde760c61e0f3add80c933201635298fcc77fd3d79bbe6dff87f +size 408638 diff --git a/backend/ingestion_pipeline/tests/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg b/backend/ingestion_pipeline/tests/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5ef91f59b8c6e4fd9fd6d13f7383c252e5e4c72f Binary files /dev/null and b/backend/ingestion_pipeline/tests/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg differ diff --git a/backend/ingestion_pipeline/tests/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg b/backend/ingestion_pipeline/tests/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9eb1a1537c09144a02368e60e774c21e7fd03cb6 Binary files /dev/null and b/backend/ingestion_pipeline/tests/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg differ diff --git a/backend/ingestion_pipeline/tests/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg b/backend/ingestion_pipeline/tests/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg new file mode 100644 index 0000000000000000000000000000000000000000..77d9509c3c88e5fc38e3eb1e7d88dab79d452f47 --- /dev/null +++ b/backend/ingestion_pipeline/tests/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71b8a33acf98bd7059ef50abc62bb6843328ac09bf01dbbc9924e09d9541ab3a +size 325091 diff --git a/backend/ingestion_pipeline/tests/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg b/backend/ingestion_pipeline/tests/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg new file mode 100644 index 0000000000000000000000000000000000000000..db805c2f69c85f730af6cd721583a52786e694f2 Binary files /dev/null and b/backend/ingestion_pipeline/tests/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg differ diff --git a/backend/ingestion_pipeline/tests/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg b/backend/ingestion_pipeline/tests/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..35bf0a4b70c5fb982e75817512177defd2d3cca6 Binary files /dev/null and b/backend/ingestion_pipeline/tests/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg differ diff --git a/backend/ingestion_pipeline/tests/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg b/backend/ingestion_pipeline/tests/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6c8e538246912d6d7af07d3e422ebf0cc2fbd35f Binary files /dev/null and b/backend/ingestion_pipeline/tests/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg differ diff --git a/backend/ingestion_pipeline/tests/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg b/backend/ingestion_pipeline/tests/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg new file mode 100644 index 0000000000000000000000000000000000000000..272ff1ea13a2dbf98717498a1fd4f91417625380 --- /dev/null +++ b/backend/ingestion_pipeline/tests/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86283025b05afb09e1204921928be01b93214d021f5858a8b465e4467a866db9 +size 224700 diff --git a/backend/ingestion_pipeline/tests/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg b/backend/ingestion_pipeline/tests/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3842d78b2ae939b8d5ef8e4a2874fca22f8303a3 Binary files /dev/null and b/backend/ingestion_pipeline/tests/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg differ diff --git a/backend/ingestion_pipeline/tests/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg b/backend/ingestion_pipeline/tests/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..dcefe49c8c90aeecfc10d9faefb976b56796cc2a Binary files /dev/null and b/backend/ingestion_pipeline/tests/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg differ diff --git a/backend/ingestion_pipeline/tests/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg b/backend/ingestion_pipeline/tests/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1e52b7385279f68ce6ce3488bb820a064dd84666 Binary files /dev/null and b/backend/ingestion_pipeline/tests/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg differ diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md new file mode 100644 index 0000000000000000000000000000000000000000..2d28e65460a6e0bff314538eb81e48d96a44c0f6 --- /dev/null +++ b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md @@ -0,0 +1,185 @@ +# BILLING DISPUTE ADJUSTMENT PROCESS FLOW + +# Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 + +![This image is a detailed flowchart illustrating the "Billing Dispute Adjustment Process Flow for Data-Revised v2/2021." The overall structure is organized into distinct swimlanes representing different roles: Customer, Sales, SBP (Sales Business Partner) / Business Finance, and Dispute Management / Business Finance. The process begins at the top with a "Start" oval and progresses downwards through a series of rectangular process steps, diamond-shaped decision points, and connecting arrows, ultimately leading to an "End" oval. The visual hierarchy is established by the clear swimlane divisions and the sequential numbering of the process steps, guiding the viewer through the workflow. + +The process initiates with the "Customer" (Step 1) notifying a dispute, followed by the "Sales" department (Step 2) validating the dispute and requesting information. A decision point labeled "Valid?" determines the next action. If the dispute is not valid ("N"), it proceeds to "Reject/ Request additional information" (Step 3), which then loops back to the Sales department. If valid ("Y"), the process moves to the "SBP, Business Finance" swimlane (Step 4) for provision of dispute for credit adjustment or revenue accrual. The "Dispute Management, Business Finance" swimlane then receives the DRF against evidence (Step 5) and coordinates to investigate the dispute (Step 6). + +A critical decision point, "Complete?", follows Step 6. If not complete ("N"), it leads to the "Dispute valid?" decision point. If the dispute is deemed invalid ("N"), it informs Sales via email (Step 7) and advises Sales to proceed with Non BACR cases (Step 7). If the dispute is valid ("Y"), it proceeds to Step 9, where justification for disputed cases is prepared. The process then involves preparing a BACR Proposal Paper (Step 10), verifying the document (Step 11), and a decision point "Approved?". If not approved ("N"), it leads to returning to Sales for commercial settlement (Step 15) or proceeding with a Non BACR proposal (Step 16). If approved ("Y"), the process moves to circulating next actions (Step 17) and updating tracking databases (Step 18). + +The final stages involve receiving notifications for reverse POD (Step 19) and verifying the adjustment reflected in the bill (Step 20), culminating in the "End" state. The flowchart utilizes a consistent color scheme with blue for swimlane headers and light gray for process boxes, with black text for readability. Arrows are predominantly black, indicating the flow direction. The timeline is visually represented at the bottom with segments for "Within 14 Days or based on agreement," "1-3 Working Days," and "3-60 Days," indicating the duration of various stages. The overall purpose of this flowchart is to clearly define the steps, responsibilities, and decision points involved in resolving billing disputes and processing associated adjustments within the organization.](images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg) + +*AI-generated description: This image is a detailed flowchart illustrating the "Billing Dispute Adjustment Process Flow for Data-Revised v2/2021." The overall structure is organized into distinct swimlanes representing different roles: Customer, Sales, SBP (Sales Business Partner) / Business Finance, and Dispute Management / Business Finance. The process begins at the top with a "Start" oval and progresses downwards through a series of rectangular process steps, diamond-shaped decision points, and connecting arrows, ultimately leading to an "End" oval. The visual hierarchy is established by the clear swimlane divisions and the sequential numbering of the process steps, guiding the viewer through the workflow. + +The process initiates with the "Customer" (Step 1) notifying a dispute, followed by the "Sales" department (Step 2) validating the dispute and requesting information. A decision point labeled "Valid?" determines the next action. If the dispute is not valid ("N"), it proceeds to "Reject/ Request additional information" (Step 3), which then loops back to the Sales department. If valid ("Y"), the process moves to the "SBP, Business Finance" swimlane (Step 4) for provision of dispute for credit adjustment or revenue accrual. The "Dispute Management, Business Finance" swimlane then receives the DRF against evidence (Step 5) and coordinates to investigate the dispute (Step 6). + +A critical decision point, "Complete?", follows Step 6. If not complete ("N"), it leads to the "Dispute valid?" decision point. If the dispute is deemed invalid ("N"), it informs Sales via email (Step 7) and advises Sales to proceed with Non BACR cases (Step 7). If the dispute is valid ("Y"), it proceeds to Step 9, where justification for disputed cases is prepared. The process then involves preparing a BACR Proposal Paper (Step 10), verifying the document (Step 11), and a decision point "Approved?". If not approved ("N"), it leads to returning to Sales for commercial settlement (Step 15) or proceeding with a Non BACR proposal (Step 16). If approved ("Y"), the process moves to circulating next actions (Step 17) and updating tracking databases (Step 18). + +The final stages involve receiving notifications for reverse POD (Step 19) and verifying the adjustment reflected in the bill (Step 20), culminating in the "End" state. The flowchart utilizes a consistent color scheme with blue for swimlane headers and light gray for process boxes, with black text for readability. Arrows are predominantly black, indicating the flow direction. The timeline is visually represented at the bottom with segments for "Within 14 Days or based on agreement," "1-3 Working Days," and "3-60 Days," indicating the duration of various stages. The overall purpose of this flowchart is to clearly define the steps, responsibilities, and decision points involved in resolving billing disputes and processing associated adjustments within the organization.* + +*AI-generated description: This flowchart details the billing dispute adjustment process. It outlines the steps taken by Customer, Sales, SBP Business Finance, and Dispute Management/Business Finance departments. The process begins with a customer dispute notification and progresses through validation, investigation, proposal preparation, and potential approval or rejection, ultimately leading to a verified adjustment reflected in the billing.* + +# Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 + +![This image is a detailed process flow diagram illustrating the "Billing Dispute Adjustment Process" for voice services, revised in 2021. The diagram is structured into distinct horizontal swimlanes representing different departments: Customer, Sales, RRM (Revenue Recognition Management), and Dispute Management/Business Finance (DM). A "Time Line" swimlane is positioned at the bottom, indicating timeframes for various stages. The overall layout is top-to-bottom, following a chronological sequence of actions and decisions, with clear directional arrows connecting the process steps. + +The process begins with "Start" at the top and proceeds to step 1, where the Customer notifies a dispute. This is followed by Sales receiving the notification (step 2), RRM validating the dispute (step 3), and then a decision point regarding validity. If invalid, the dispute is notified to the Customer (step 5); if valid, RRM proceeds to investigate root causes and prepare calculations (step 4). The process then moves to Dispute Management/Business Finance for evidence verification and communication (step 6), with a completion check. If not complete, additional information is requested (step 8). + +Upon completion of step 6, the process branches to step 7, where justification for the disputed case is prepared in the BACR (Billing Adjustment Committee Review) proposal paper format. This leads to a decision point: "BACR or Non-BACR?" (step 12). If Non-BACR, Sales proceeds with necessary approval (step 15). If BACR, the process moves to a BACR Sitting (step 13), followed by an "Approved?" decision. If not approved, the case returns to Sales for further negotiation (step 14). If approved, the process moves to step 16, where next actions and status are circulated, and the Sales or Owner is notified. + +Following step 16, or step 15 if Non-BACR, the process leads to step 17, which involves updating the Dispute Tracking Database, Monthly Dashboard Reporting, creating AR# via NOVA/ICP, and updating documentation in T-Box. Finally, step 19 details the post-adjustment actions, including posting AR# for NOVA and ICP, POD or Accrual reversal and adjustment, and notifying Sales, SBP, and Customer of the adjustment, culminating in the "End" state. + +Key elements include numbered process steps within rectangular boxes, decision diamonds with "Y" and "N" branches, and swimlanes clearly demarcating responsibilities. The "Time Line" swimlane indicates specific durations, such as "Within 14 Days or based on agreement" for Sales, "Within 29 Days or based on agreement & complexity of the cases" for RRM, and "3-46 Days" for DM, with further details on BACR minimum working days. The color palette is predominantly blue for process boxes and white for text, with red arrows indicating flow and a red horizontal line for the timeline. Font styles appear to be standard sans-serif, ensuring legibility. The overall purpose is to provide a clear, standardized procedure for managing and resolving billing disputes, ensuring accountability and timely resolution.](Revenue Reconciliation Management) + +*AI-generated description: This image is a detailed process flow diagram illustrating the "Billing Dispute Adjustment Process" for voice services, revised in 2021. The diagram is structured into distinct horizontal swimlanes representing different departments: Customer, Sales, RRM (Revenue Recognition Management), and Dispute Management/Business Finance (DM). A "Time Line" swimlane is positioned at the bottom, indicating timeframes for various stages. The overall layout is top-to-bottom, following a chronological sequence of actions and decisions, with clear directional arrows connecting the process steps. + +The process begins with "Start" at the top and proceeds to step 1, where the Customer notifies a dispute. This is followed by Sales receiving the notification (step 2), RRM validating the dispute (step 3), and then a decision point regarding validity. If invalid, the dispute is notified to the Customer (step 5); if valid, RRM proceeds to investigate root causes and prepare calculations (step 4). The process then moves to Dispute Management/Business Finance for evidence verification and communication (step 6), with a completion check. If not complete, additional information is requested (step 8). + +Upon completion of step 6, the process branches to step 7, where justification for the disputed case is prepared in the BACR (Billing Adjustment Committee Review) proposal paper format. This leads to a decision point: "BACR or Non-BACR?" (step 12). If Non-BACR, Sales proceeds with necessary approval (step 15). If BACR, the process moves to a BACR Sitting (step 13), followed by an "Approved?" decision. If not approved, the case returns to Sales for further negotiation (step 14). If approved, the process moves to step 16, where next actions and status are circulated, and the Sales or Owner is notified. + +Following step 16, or step 15 if Non-BACR, the process leads to step 17, which involves updating the Dispute Tracking Database, Monthly Dashboard Reporting, creating AR# via NOVA/ICP, and updating documentation in T-Box. Finally, step 19 details the post-adjustment actions, including posting AR# for NOVA and ICP, POD or Accrual reversal and adjustment, and notifying Sales, SBP, and Customer of the adjustment, culminating in the "End" state. + +Key elements include numbered process steps within rectangular boxes, decision diamonds with "Y" and "N" branches, and swimlanes clearly demarcating responsibilities. The "Time Line" swimlane indicates specific durations, such as "Within 14 Days or based on agreement" for Sales, "Within 29 Days or based on agreement & complexity of the cases" for RRM, and "3-46 Days" for DM, with further details on BACR minimum working days. The color palette is predominantly blue for process boxes and white for text, with red arrows indicating flow and a red horizontal line for the timeline. Font styles appear to be standard sans-serif, ensuring legibility. The overall purpose is to provide a clear, standardized procedure for managing and resolving billing disputes, ensuring accountability and timely resolution.* + +*AI-generated description: This flowchart outlines the billing dispute adjustment process. It details the steps involved, starting with customer notification and progressing through sales, RRM (Revenue Reconciliation Management), and Dispute Management/Business Finance. Key stages include dispute validation, investigation, proposal preparation, and various review stages (Pre-BACR, BACR) before final adjustment and closure. The timeline indicates specific durations for each phase, emphasizing timely resolution.* + +•Escalation Process based on Deadline + +
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2 More than 7 DaysGMAGM
3 More than 14 DaysVPVP
+ +Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) + +•Escalation Process based on Aging + +
ItemAging Time LineLevel of escalation in Sales Level of escalation in DM
130 to 60 DaysAGMManager
2 More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
+ +Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : + +
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4 QuarterlyVPReport of the POD status update & escalation if on 4rd week of last month of the quarter
+ +![This image depicts a timeline illustrating the "Billing Dispute Adjustment Process Flow for Voice - Revised v2/2021." The overall structure is a horizontal timeline, presented as a curved, light blue arrow pointing from left to right, indicating progression over time. Key milestones are marked by colored, oval-shaped callouts along this arrow, each containing a date or date range. The visual hierarchy is established by the prominent placement of these date callouts and the associated descriptive text below them. + +Starting from the left, the first callout is a green oval labeled "Jun'20," with accompanying text detailing the completion of the "1st draft with RRM process for Voice on 24." To its right, a blue oval labeled "Jul'20" indicates the review of the "1st draft for Data with SBP23 Jul 2020." Further along the timeline, a purple oval labeled "Aug'20" describes a "Sync and finalized 2nd Draft with SBP and RRM on 13 Aug 2020 and Internal DM on 17 Aug 2020." + +Continuing to the right, a vibrant pink oval labeled "Sep/Oct '20" signifies the task to "-Obtain green light from both BC Sales, RRM and SBP in Sep and Oct 2020." Following this, a mustard yellow oval labeled "Nov'20" indicates "-Awareness, endorsement & circulation." The final milestone, a bright yellow oval labeled "Q1'21," marks the completion of the process with "-Sign off documentation in Mar 2021 (Subject to finalization of Dispute Policy) & Review effectiveness in Q1 2021." The text is presented in a clean, sans-serif font, with bullet points used for clarity. The color palette uses distinct, bright colors for the date markers to differentiate each stage, against a light blue background for the timeline arrow and white for the general background. This visual representation serves to clearly outline the sequential steps and expected timelines for the dispute adjustment process, facilitating understanding and project management.](images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg) + +*AI-generated description: This image depicts a timeline illustrating the "Billing Dispute Adjustment Process Flow for Voice - Revised v2/2021." The overall structure is a horizontal timeline, presented as a curved, light blue arrow pointing from left to right, indicating progression over time. Key milestones are marked by colored, oval-shaped callouts along this arrow, each containing a date or date range. The visual hierarchy is established by the prominent placement of these date callouts and the associated descriptive text below them. + +Starting from the left, the first callout is a green oval labeled "Jun'20," with accompanying text detailing the completion of the "1st draft with RRM process for Voice on 24." To its right, a blue oval labeled "Jul'20" indicates the review of the "1st draft for Data with SBP23 Jul 2020." Further along the timeline, a purple oval labeled "Aug'20" describes a "Sync and finalized 2nd Draft with SBP and RRM on 13 Aug 2020 and Internal DM on 17 Aug 2020." + +Continuing to the right, a vibrant pink oval labeled "Sep/Oct '20" signifies the task to "-Obtain green light from both BC Sales, RRM and SBP in Sep and Oct 2020." Following this, a mustard yellow oval labeled "Nov'20" indicates "-Awareness, endorsement & circulation." The final milestone, a bright yellow oval labeled "Q1'21," marks the completion of the process with "-Sign off documentation in Mar 2021 (Subject to finalization of Dispute Policy) & Review effectiveness in Q1 2021." The text is presented in a clean, sans-serif font, with bullet points used for clarity. The color palette uses distinct, bright colors for the date markers to differentiate each stage, against a light blue background for the timeline arrow and white for the general background. This visual representation serves to clearly outline the sequential steps and expected timelines for the dispute adjustment process, facilitating understanding and project management.* + +*AI-generated description: This image is a timeline illustrating the billing dispute adjustment process for voice services. It begins in June 2020 with the completion of the first draft of the RRM process for voice. Key milestones include reviewing the first draft in July 2020, synchronizing and finalizing the second draft in August 2020, obtaining approval from BC Sales, RRM, and SBP in September/October 2020, and achieving awareness, endorsement, and circulation in November 2020. The process concludes with the sign-off of documentation in March 2021, subject to the finalization of the Dispute Policy and a review of effectiveness in Q1 2021.* + +MILESTONE FOR PROCESS IMPROVEMENT + +![This image is a stylized graphic depicting a folded map with a prominent red location pin. The map itself is rendered in a perspective view, showing a network of roads in yellow and white against a background of green and blue areas, suggesting land and water features. The map is folded in a way that creates sharp angles and highlights its three-dimensional form. Dominating the upper central portion of the image is a bright red, glossy location pin, a common icon used to mark a specific point on a map. The pin has a distinct teardrop shape with a circular red dot at its apex, and it casts a subtle shadow on the map below, enhancing the sense of depth. The overall color palette is vibrant, with the red pin standing out against the more muted tones of the map and the light gray background. The graphic is clean and modern, likely intended to represent concepts related to navigation, location services, or geographical data. Given the document context provided ("Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021"), this graphic likely serves as a visual metaphor or header element, possibly indicating a geographical aspect of the billing dispute or the location where a service was provided. The visual hierarchy is established by the bright red pin, drawing immediate attention to the central theme of location. The graphic's purpose is to visually communicate a connection to place within the broader context of a billing dispute process.](images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg) + +*AI-generated description: This image is a stylized graphic depicting a folded map with a prominent red location pin. The map itself is rendered in a perspective view, showing a network of roads in yellow and white against a background of green and blue areas, suggesting land and water features. The map is folded in a way that creates sharp angles and highlights its three-dimensional form. Dominating the upper central portion of the image is a bright red, glossy location pin, a common icon used to mark a specific point on a map. The pin has a distinct teardrop shape with a circular red dot at its apex, and it casts a subtle shadow on the map below, enhancing the sense of depth. The overall color palette is vibrant, with the red pin standing out against the more muted tones of the map and the light gray background. The graphic is clean and modern, likely intended to represent concepts related to navigation, location services, or geographical data. Given the document context provided ("Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021"), this graphic likely serves as a visual metaphor or header element, possibly indicating a geographical aspect of the billing dispute or the location where a service was provided. The visual hierarchy is established by the bright red pin, drawing immediate attention to the central theme of location. The graphic's purpose is to visually communicate a connection to place within the broader context of a billing dispute process.* + +*AI-generated description: This image depicts a stylized, folded map with a prominent red location pin centered on it. The map shows various colored areas representing land and water, with yellow lines indicating roads. The location pin, a common symbol for GPS or navigation, suggests a focus on a specific place or point of interest within the context of the "Billing Dispute Adjustment Process Flow for Voice."* + +Jun 2020 + +# Progress Tracking + +
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020√
2.Reviewed 1st draft for Data with SBP.23 July 2020V
3. Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020V
4. Sync and finalized with Internal DMV
Obtain green light from stakeholders BC SalesSeptember/October 2020√
O RRM
5.O SBP
Awareness to
o International Sales4 November 2020V
O Awareness to Malaysian Carrier Sales9 November 2020√
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
+ +# Jointly Prepared and Proposed By: + +![The image displays a single, handwritten signature in black ink on a white background, intended to represent a signature within a document section titled "Jointly Prepared and Proposed By:". The signature begins with a prominent, looping capital "F" that extends from the left side of the frame, with its initial stroke curving upwards and then downwards. Following the "F", a cursive "r" is clearly discernible, characterized by its flowing, connected form. The subsequent letters appear to be "n" and "a", also rendered in a cursive style, with the "n" featuring two distinct humps and the "a" forming a closed loop. The overall signature exhibits a fluid, continuous motion, suggesting a practiced and perhaps rapid execution. The lines are relatively thin and consistent in thickness, indicating the use of a pen or fine-tipped marker. The signature is positioned centrally within the frame, occupying a significant portion of the horizontal space. Its presence in the context of "Jointly Prepared and Proposed By:" signifies an endorsement or agreement by the individual whose signature this is. The legibility, while generally good for a cursive signature, relies on the distinct shapes of the initial "F" and "r" to establish identity. The absence of any other text or graphical elements focuses the viewer's attention solely on the signature itself. This visual element serves the functional purpose of authenticating a document or proposal, indicating the approval and commitment of the signatory. The simplicity of the presentation emphasizes the personal mark of the individual as a key component of the document's preparation and proposal.](images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg) + +*AI-generated description: The image displays a single, handwritten signature in black ink on a white background, intended to represent a signature within a document section titled "Jointly Prepared and Proposed By:". The signature begins with a prominent, looping capital "F" that extends from the left side of the frame, with its initial stroke curving upwards and then downwards. Following the "F", a cursive "r" is clearly discernible, characterized by its flowing, connected form. The subsequent letters appear to be "n" and "a", also rendered in a cursive style, with the "n" featuring two distinct humps and the "a" forming a closed loop. The overall signature exhibits a fluid, continuous motion, suggesting a practiced and perhaps rapid execution. The lines are relatively thin and consistent in thickness, indicating the use of a pen or fine-tipped marker. The signature is positioned centrally within the frame, occupying a significant portion of the horizontal space. Its presence in the context of "Jointly Prepared and Proposed By:" signifies an endorsement or agreement by the individual whose signature this is. The legibility, while generally good for a cursive signature, relies on the distinct shapes of the initial "F" and "r" to establish identity. The absence of any other text or graphical elements focuses the viewer's attention solely on the signature itself. This visual element serves the functional purpose of authenticating a document or proposal, indicating the approval and commitment of the signatory. The simplicity of the presentation emphasizes the personal mark of the individual as a key component of the document's preparation and proposal.* + +*AI-generated description: The image displays a handwritten signature in black ink on a white background. The signature appears to be a stylized representation of a name, with flowing lines and loops. Given the context of the document section "Jointly Prepared and Proposed By:", this signature likely represents the endorsement or approval of one of the parties involved in the preparation and proposal of the document.* + +![The image displays a handwritten signature, likely from a document section labeled "Jointly Prepared and Proposed By:". The signature is rendered in a dark, possibly black or dark blue, ink on a white or very light background, suggesting it is a scanned or photocopied document. Structurally, the signature spans horizontally across the frame, with a prominent central flourish. The overall composition is linear and dynamic, characterized by varying line weights and a sense of rapid execution. + +The signature begins on the far left with a horizontal stroke that appears to be the start of a letter or flourish. This is followed by a series of connected strokes forming a complex central element, which includes loops and sharp angles, suggesting cursive handwriting. A distinct horizontal line segment is positioned below this central cluster, possibly representing a dot or a short stroke within a letter. The signature extends to the right with a long, sweeping horizontal line that terminates with a slight upward curve. The handwriting is somewhat stylized and not entirely legible, typical of personal signatures. + +The visual hierarchy is dominated by the signature itself, which occupies the majority of the image space. There are no other discernible text elements, symbols, or graphical components present. The color palette is monochromatic, consisting of dark ink against a light background, which aids in the clarity of the handwritten marks. The formatting is informal, as expected for a signature. + +The functional purpose of this visual element is to provide an official endorsement or authentication of the document by the individual whose signature is depicted. Within the context of "Jointly Prepared and Proposed By:", this signature signifies agreement and authorship. The visual style, with its flowing lines and unique character, serves to identify the signatory and add a personal touch to the formal document. The lack of other elements emphasizes the singular importance of this signature in validating the document's content and origin. The overall communication is one of formal approval and shared responsibility for the document's creation.](images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg) + +*AI-generated description: The image displays a handwritten signature, likely from a document section labeled "Jointly Prepared and Proposed By:". The signature is rendered in a dark, possibly black or dark blue, ink on a white or very light background, suggesting it is a scanned or photocopied document. Structurally, the signature spans horizontally across the frame, with a prominent central flourish. The overall composition is linear and dynamic, characterized by varying line weights and a sense of rapid execution. + +The signature begins on the far left with a horizontal stroke that appears to be the start of a letter or flourish. This is followed by a series of connected strokes forming a complex central element, which includes loops and sharp angles, suggesting cursive handwriting. A distinct horizontal line segment is positioned below this central cluster, possibly representing a dot or a short stroke within a letter. The signature extends to the right with a long, sweeping horizontal line that terminates with a slight upward curve. The handwriting is somewhat stylized and not entirely legible, typical of personal signatures. + +The visual hierarchy is dominated by the signature itself, which occupies the majority of the image space. There are no other discernible text elements, symbols, or graphical components present. The color palette is monochromatic, consisting of dark ink against a light background, which aids in the clarity of the handwritten marks. The formatting is informal, as expected for a signature. + +The functional purpose of this visual element is to provide an official endorsement or authentication of the document by the individual whose signature is depicted. Within the context of "Jointly Prepared and Proposed By:", this signature signifies agreement and authorship. The visual style, with its flowing lines and unique character, serves to identify the signatory and add a personal touch to the formal document. The lack of other elements emphasizes the singular importance of this signature in validating the document's content and origin. The overall communication is one of formal approval and shared responsibility for the document's creation.* + +*AI-generated description: The image displays a handwritten signature or mark, likely representing an endorsement or approval. It consists of a horizontal line with several intersecting strokes and a smaller mark below the main line. This visual element is positioned within the context of a document section titled "Jointly Prepared and Proposed By," suggesting it signifies agreement or authorship by one or more parties.* + +Irna Binti Ibrahim +Manager Dispute International 2 +Date: 17/03/2021 + +![The image displays a single, handwritten signature rendered in a light gray ink against a white background. Structurally, the signature occupies the central portion of the frame, with a clear emphasis on its fluid, cursive form. The visual hierarchy is dominated by the signature itself, which is the sole element present. + +Content-wise, the signature begins with a prominent, looping flourish that appears to form the initial capital letter, possibly an "R" or a similar ascender. This is followed by a series of connected, lowercase cursive letters, characterized by sharp angles and undulating curves, suggesting a rapid and personal writing style. The overall impression is of a stylized, abbreviated signature, typical for official documents or personal correspondence. The ink color is a neutral, muted gray, contributing to a professional yet understated appearance. + +Contextually, given the provided document context "Section: Jointly Prepared and Proposed By:", this signature likely represents the endorsement or approval of one of the parties involved in the joint preparation and proposal. Its placement and singular nature suggest it serves as a formal mark of agreement or authorship. The lack of any accompanying text or graphical elements reinforces its role as a distinct identifier. + +Technically, the signature's line weight is consistent throughout, indicating a single stroke or a pen with uniform ink flow. The image resolution is sufficient to discern the fine details of the penmanship, though specific measurements of the signature's dimensions or the exact font characteristics are not applicable as it is a freehand inscription. The overall communication purpose is to authenticate a document and signify the involvement or agreement of the individual whose signature is depicted. The significance lies in its legal or official capacity as a mark of consent or responsibility within the context of the document it is associated with.](images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg) + +*AI-generated description: The image displays a single, handwritten signature rendered in a light gray ink against a white background. Structurally, the signature occupies the central portion of the frame, with a clear emphasis on its fluid, cursive form. The visual hierarchy is dominated by the signature itself, which is the sole element present. + +Content-wise, the signature begins with a prominent, looping flourish that appears to form the initial capital letter, possibly an "R" or a similar ascender. This is followed by a series of connected, lowercase cursive letters, characterized by sharp angles and undulating curves, suggesting a rapid and personal writing style. The overall impression is of a stylized, abbreviated signature, typical for official documents or personal correspondence. The ink color is a neutral, muted gray, contributing to a professional yet understated appearance. + +Contextually, given the provided document context "Section: Jointly Prepared and Proposed By:", this signature likely represents the endorsement or approval of one of the parties involved in the joint preparation and proposal. Its placement and singular nature suggest it serves as a formal mark of agreement or authorship. The lack of any accompanying text or graphical elements reinforces its role as a distinct identifier. + +Technically, the signature's line weight is consistent throughout, indicating a single stroke or a pen with uniform ink flow. The image resolution is sufficient to discern the fine details of the penmanship, though specific measurements of the signature's dimensions or the exact font characteristics are not applicable as it is a freehand inscription. The overall communication purpose is to authenticate a document and signify the involvement or agreement of the individual whose signature is depicted. The significance lies in its legal or official capacity as a mark of consent or responsibility within the context of the document it is associated with.* + +*AI-generated description: The image displays a handwritten signature in a light gray color against a white background. The signature appears to be a stylized cursive "R" followed by a series of connected, wavy lines that trail off to the right. This signature likely serves as an endorsement or approval, as indicated by its placement in a section titled "Jointly Prepared and Proposed By."* + +Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 + +Roshani Binti Yahya +Manager Dispute International 1 +Date: 17/03/2021 + +Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 + +Reviewed By: + +![The image displays a handwritten signature, likely intended for a document section titled "Jointly Prepared and Proposed By:". The signature is rendered in a dark, likely black or dark blue, ink on a white background, suggesting it is a scanned or photographed element from a physical document. The handwriting is cursive and appears to be a personal signature, characterized by flowing lines and a consistent slant to the right. The overall structure is a single line of text, occupying the central horizontal space of the image. + +The content analysis reveals the signature to be "Norman Ahmad". The first name, "Norman", begins with a capital 'N' formed by a large, sweeping upward curve followed by a downward stroke, then a connected 'o', 'r', 'm', 'a', and 'n'. The 'o' is a closed loop, and the 'r', 'm', and 'n' are formed with typical cursive connections. The second name, "Ahmad", starts with a capital 'A' that is somewhat stylized, appearing as a sharp upward stroke followed by a downward diagonal. This is followed by 'h', 'm', 'a', 'd'. The 'h' has a distinct loop, and the 'm' and 'd' are connected in a fluid manner. The dot above the 'i' in "Norman" is a small, distinct mark. + +The visual hierarchy is minimal, as the signature is the sole element and is presented as the primary content. There are no other textual labels, graphical elements, or data visualizations present. The context of "Jointly Prepared and Proposed By:" indicates that this signature serves as an affirmation or endorsement by an individual named Norman Ahmad, signifying their involvement in the preparation or proposal of the document. The functional purpose of this visual element is to provide an official mark of approval or authorship. + +Technically, the signature is rendered in a single color of ink, with varying line thickness depending on the pressure applied during writing. The image resolution appears sufficient to discern the individual strokes and letter formations. The positioning of the signature is centered within the frame, implying it is meant to be a focal point within its designated section of a larger document. The overall communication purpose is to authenticate the document and attribute responsibility or agreement to Norman Ahmad. The legibility is good, allowing for clear identification of the name.](images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg) + +*AI-generated description: The image displays a handwritten signature, likely intended for a document section titled "Jointly Prepared and Proposed By:". The signature is rendered in a dark, likely black or dark blue, ink on a white background, suggesting it is a scanned or photographed element from a physical document. The handwriting is cursive and appears to be a personal signature, characterized by flowing lines and a consistent slant to the right. The overall structure is a single line of text, occupying the central horizontal space of the image. + +The content analysis reveals the signature to be "Norman Ahmad". The first name, "Norman", begins with a capital 'N' formed by a large, sweeping upward curve followed by a downward stroke, then a connected 'o', 'r', 'm', 'a', and 'n'. The 'o' is a closed loop, and the 'r', 'm', and 'n' are formed with typical cursive connections. The second name, "Ahmad", starts with a capital 'A' that is somewhat stylized, appearing as a sharp upward stroke followed by a downward diagonal. This is followed by 'h', 'm', 'a', 'd'. The 'h' has a distinct loop, and the 'm' and 'd' are connected in a fluid manner. The dot above the 'i' in "Norman" is a small, distinct mark. + +The visual hierarchy is minimal, as the signature is the sole element and is presented as the primary content. There are no other textual labels, graphical elements, or data visualizations present. The context of "Jointly Prepared and Proposed By:" indicates that this signature serves as an affirmation or endorsement by an individual named Norman Ahmad, signifying their involvement in the preparation or proposal of the document. The functional purpose of this visual element is to provide an official mark of approval or authorship. + +Technically, the signature is rendered in a single color of ink, with varying line thickness depending on the pressure applied during writing. The image resolution appears sufficient to discern the individual strokes and letter formations. The positioning of the signature is centered within the frame, implying it is meant to be a focal point within its designated section of a larger document. The overall communication purpose is to authenticate the document and attribute responsibility or agreement to Norman Ahmad. The legibility is good, allowing for clear identification of the name.* + +*AI-generated description: The image displays a handwritten signature that reads "Normahamat". This signature likely represents the name of an individual or entity that jointly prepared and proposed the document, as indicated by the surrounding text.* + +Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 + +Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 + +# Approved By: + +![The image displays a handwritten signature in black ink on a white background, consistent with its context as an "Approved By:" section of a document. The signature is characterized by a flowing, cursive script, suggesting a personal and informal authorization. Structurally, the signature occupies the central portion of the frame, with no surrounding text or graphical elements to provide further context or hierarchy. + +The signature begins with a large, looping stroke that forms the initial part of the name, possibly an uppercase letter. This is followed by a series of connected cursive letters that appear to spell out a name. The script is generally legible, though some characters are stylized and may require careful interpretation. Specifically, the signature seems to start with a prominent loop, followed by what could be interpreted as "O" or a similar rounded letter, then a descending stroke, and finally a series of connected letters that form the latter part of the name. The final part of the signature includes a flourish or underline that extends diagonally from the bottom right to the top right, adding a sense of completion and emphasis. + +The ink color is a solid, dark black, providing high contrast against the white background, which enhances the legibility of the handwritten script. The line thickness of the signature varies slightly, indicating the pressure applied during writing. The overall impression is that of a confident and practiced signature. Given the context of an "Approved By:" section, this signature serves as the sole visual indicator of approval or authorization for the document it is affixed to. Its presence signifies that an individual has reviewed and formally accepted the content of the document. The simplicity of the visual presentation, focusing solely on the signature, underscores its critical function in the approval process.](images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg) + +*AI-generated description: The image displays a handwritten signature in black ink on a white background, consistent with its context as an "Approved By:" section of a document. The signature is characterized by a flowing, cursive script, suggesting a personal and informal authorization. Structurally, the signature occupies the central portion of the frame, with no surrounding text or graphical elements to provide further context or hierarchy. + +The signature begins with a large, looping stroke that forms the initial part of the name, possibly an uppercase letter. This is followed by a series of connected cursive letters that appear to spell out a name. The script is generally legible, though some characters are stylized and may require careful interpretation. Specifically, the signature seems to start with a prominent loop, followed by what could be interpreted as "O" or a similar rounded letter, then a descending stroke, and finally a series of connected letters that form the latter part of the name. The final part of the signature includes a flourish or underline that extends diagonally from the bottom right to the top right, adding a sense of completion and emphasis. + +The ink color is a solid, dark black, providing high contrast against the white background, which enhances the legibility of the handwritten script. The line thickness of the signature varies slightly, indicating the pressure applied during writing. The overall impression is that of a confident and practiced signature. Given the context of an "Approved By:" section, this signature serves as the sole visual indicator of approval or authorization for the document it is affixed to. Its presence signifies that an individual has reviewed and formally accepted the content of the document. The simplicity of the visual presentation, focusing solely on the signature, underscores its critical function in the approval process.* + +*AI-generated description: The image displays a handwritten signature in black ink on a white background. The signature is cursive and appears to be a stylized representation of a name. Given the context "Approved By:", this signature likely signifies official approval or authorization within the document.* + +Nazidah Binti Ahmad Azli Head Business Finance Date: \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup new file mode 100644 index 0000000000000000000000000000000000000000..2ba00a18ed13b3ab10ae7895c273c95c59a9688c --- /dev/null +++ b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup @@ -0,0 +1,87 @@ +# BILLING DISPUTE ADJUSTMENT PROCESS FLOW + +# Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 + +![This flowchart details the billing dispute adjustment process. It outlines the steps taken by Customer, Sales, SBP Business Finance, and Dispute Management/Business Finance departments. The process begins with a customer dispute notification and progresses through validation, investigation, proposal preparation, and potential approval or rejection, ultimately leading to a verified adjustment reflected in the billing.](images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg) + +*AI-generated description: This flowchart details the billing dispute adjustment process. It outlines the steps taken by Customer, Sales, SBP Business Finance, and Dispute Management/Business Finance departments. The process begins with a customer dispute notification and progresses through validation, investigation, proposal preparation, and potential approval or rejection, ultimately leading to a verified adjustment reflected in the billing.* + +# Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 + +![This flowchart outlines the billing dispute adjustment process. It details the steps involved, starting with customer notification and progressing through sales, RRM (Revenue Reconciliation Management), and Dispute Management/Business Finance. Key stages include dispute validation, investigation, proposal preparation, and various review stages (Pre-BACR, BACR) before final adjustment and closure. The timeline indicates specific durations for each phase, emphasizing timely resolution.](images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg) + +*AI-generated description: This flowchart outlines the billing dispute adjustment process. It details the steps involved, starting with customer notification and progressing through sales, RRM (Revenue Reconciliation Management), and Dispute Management/Business Finance. Key stages include dispute validation, investigation, proposal preparation, and various review stages (Pre-BACR, BACR) before final adjustment and closure. The timeline indicates specific durations for each phase, emphasizing timely resolution.* + +•Escalation Process based on Deadline + +
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2 More than 7 DaysGMAGM
3 More than 14 DaysVPVP
+ +Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) + +•Escalation Process based on Aging + +
ItemAging Time LineLevel of escalation in Sales Level of escalation in DM
130 to 60 DaysAGMManager
2 More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
+ +Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : + +
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4 QuarterlyVPReport of the POD status update & escalation if on 4rd week of last month of the quarter
+ +![This image is a timeline illustrating the billing dispute adjustment process for voice services. It begins in June 2020 with the completion of the first draft of the RRM process for voice. Key milestones include reviewing the first draft in July 2020, synchronizing and finalizing the second draft in August 2020, obtaining approval from BC Sales, RRM, and SBP in September/October 2020, and achieving awareness, endorsement, and circulation in November 2020. The process concludes with the sign-off of documentation in March 2021, subject to the finalization of the Dispute Policy and a review of effectiveness in Q1 2021.](images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg) + +*AI-generated description: This image is a timeline illustrating the billing dispute adjustment process for voice services. It begins in June 2020 with the completion of the first draft of the RRM process for voice. Key milestones include reviewing the first draft in July 2020, synchronizing and finalizing the second draft in August 2020, obtaining approval from BC Sales, RRM, and SBP in September/October 2020, and achieving awareness, endorsement, and circulation in November 2020. The process concludes with the sign-off of documentation in March 2021, subject to the finalization of the Dispute Policy and a review of effectiveness in Q1 2021.* + +MILESTONE FOR PROCESS IMPROVEMENT + +![This image depicts a stylized, folded map with a prominent red location pin centered on it. The map shows various colored areas representing land and water, with yellow lines indicating roads. The location pin, a common symbol for GPS or navigation, suggests a focus on a specific place or point of interest within the context of the "Billing Dispute Adjustment Process Flow for Voice."](images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg) + +*AI-generated description: This image depicts a stylized, folded map with a prominent red location pin centered on it. The map shows various colored areas representing land and water, with yellow lines indicating roads. The location pin, a common symbol for GPS or navigation, suggests a focus on a specific place or point of interest within the context of the "Billing Dispute Adjustment Process Flow for Voice."* + +Jun 2020 + +# Progress Tracking + +
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020√
2.Reviewed 1st draft for Data with SBP.23 July 2020V
3. Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020V
4. Sync and finalized with Internal DMV
Obtain green light from stakeholders BC SalesSeptember/October 2020√
O RRM
5.O SBP
Awareness to
o International Sales4 November 2020V
O Awareness to Malaysian Carrier Sales9 November 2020√
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
+ +# Jointly Prepared and Proposed By: + +![The image displays a handwritten signature in black ink on a white background. The signature appears to be a stylized representation of a name, with flowing lines and loops. Given the context of the document section "Jointly Prepared and Proposed By:", this signature likely represents the endorsement or approval of one of the parties involved in the preparation and proposal of the document.](images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg) + +*AI-generated description: The image displays a handwritten signature in black ink on a white background. The signature appears to be a stylized representation of a name, with flowing lines and loops. Given the context of the document section "Jointly Prepared and Proposed By:", this signature likely represents the endorsement or approval of one of the parties involved in the preparation and proposal of the document.* + +![The image displays a handwritten signature or mark, likely representing an endorsement or approval. It consists of a horizontal line with several intersecting strokes and a smaller mark below the main line. This visual element is positioned within the context of a document section titled "Jointly Prepared and Proposed By," suggesting it signifies agreement or authorship by one or more parties.](images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg) + +*AI-generated description: The image displays a handwritten signature or mark, likely representing an endorsement or approval. It consists of a horizontal line with several intersecting strokes and a smaller mark below the main line. This visual element is positioned within the context of a document section titled "Jointly Prepared and Proposed By," suggesting it signifies agreement or authorship by one or more parties.* + +Irna Binti Ibrahim +Manager Dispute International 2 +Date: 17/03/2021 + +![The image displays a handwritten signature in a light gray color against a white background. The signature appears to be a stylized cursive "R" followed by a series of connected, wavy lines that trail off to the right. This signature likely serves as an endorsement or approval, as indicated by its placement in a section titled "Jointly Prepared and Proposed By."](images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg) + +*AI-generated description: The image displays a handwritten signature in a light gray color against a white background. The signature appears to be a stylized cursive "R" followed by a series of connected, wavy lines that trail off to the right. This signature likely serves as an endorsement or approval, as indicated by its placement in a section titled "Jointly Prepared and Proposed By."* + +Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 + +Roshani Binti Yahya +Manager Dispute International 1 +Date: 17/03/2021 + +Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 + +Reviewed By: + +![The image displays a handwritten signature that reads "Normahamat". This signature likely represents the name of an individual or entity that jointly prepared and proposed the document, as indicated by the surrounding text.](images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg) + +*AI-generated description: The image displays a handwritten signature that reads "Normahamat". This signature likely represents the name of an individual or entity that jointly prepared and proposed the document, as indicated by the surrounding text.* + +Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 + +Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 + +# Approved By: + +![The image displays a handwritten signature in black ink on a white background. The signature is cursive and appears to be a stylized representation of a name. Given the context "Approved By:", this signature likely signifies official approval or authorization within the document.](images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg) + +*AI-generated description: The image displays a handwritten signature in black ink on a white background. The signature is cursive and appears to be a stylized representation of a name. Given the context "Approved By:", this signature likely signifies official approval or authorization within the document.* + +Nazidah Binti Ahmad Azli Head Business Finance Date: \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..00882dbaa1b239126e8311df57c62cdad29faf48 --- /dev/null +++ b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json @@ -0,0 +1,194 @@ +[ + { + "type": "text", + "text": "BILLING DISPUTE ADJUSTMENT PROCESS FLOW ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 ", + "text_level": 1, + "page_idx": 1 + }, + { + "type": "image", + "img_path": "images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 1 + }, + { + "type": "text", + "text": "Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 ", + "text_level": 1, + "page_idx": 2 + }, + { + "type": "image", + "img_path": "images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 2 + }, + { + "type": "table", + "img_path": "images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg", + "table_caption": [ + "•Escalation Process based on Deadline " + ], + "table_footnote": [ + "Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) " + ], + "table_body": "
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2 More than 7 DaysGMAGM
3 More than 14 DaysVPVP
", + "page_idx": 3 + }, + { + "type": "table", + "img_path": "images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg", + "table_caption": [ + "•Escalation Process based on Aging " + ], + "table_footnote": [], + "table_body": "
ItemAging Time LineLevel of escalation in Sales Level of escalation in DM
130 to 60 DaysAGMManager
2 More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
", + "page_idx": 3 + }, + { + "type": "text", + "text": "Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : ", + "page_idx": 3 + }, + { + "type": "table", + "img_path": "images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4 QuarterlyVPReport of the POD status update & escalation if on 4rd week of last month of the quarter
", + "page_idx": 3 + }, + { + "type": "image", + "img_path": "images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 4 + }, + { + "type": "text", + "text": "MILESTONE FOR PROCESS IMPROVEMENT ", + "page_idx": 4 + }, + { + "type": "image", + "img_path": "images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 4 + }, + { + "type": "text", + "text": "Jun 2020 ", + "page_idx": 4 + }, + { + "type": "text", + "text": "Progress Tracking ", + "text_level": 1, + "page_idx": 5 + }, + { + "type": "table", + "img_path": "images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020√
2.Reviewed 1st draft for Data with SBP.23 July 2020V
3. Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020V
4. Sync and finalized with Internal DMV
Obtain green light from stakeholders BC SalesSeptember/October 2020√
O RRM
5.O SBP
Awareness to
o International Sales4 November 2020V
O Awareness to Malaysian Carrier Sales9 November 2020√
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
", + "page_idx": 5 + }, + { + "type": "text", + "text": "Jointly Prepared and Proposed By: ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Irna Binti Ibrahim \nManager Dispute International 2 \nDate: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Roshani Binti Yahya \nManager Dispute International 1 \nDate: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Reviewed By: ", + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Approved By: ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Nazidah Binti Ahmad Azli Head Business Finance Date: ", + "page_idx": 6 + } +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bfc3376d2c7cd24be8bfee072f3e5cd4cb8cf0e4 Binary files /dev/null and b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg differ diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f0ec5b2f913b19171b0b9c923e8592dd64877dee --- /dev/null +++ b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f32a9542c9ee33a12296323c5df1797a00410977607ff8af4b4ec37bd4453d50 +size 114207 diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1859e4331befa53741151d06c4ee70166fc79ef3 Binary files /dev/null and b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg differ diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg new file mode 100644 index 0000000000000000000000000000000000000000..149436559d9871438d0d8078ae550e9561dbe84b --- /dev/null +++ b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b61835ee583bde760c61e0f3add80c933201635298fcc77fd3d79bbe6dff87f +size 408638 diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5ef91f59b8c6e4fd9fd6d13f7383c252e5e4c72f Binary files /dev/null and b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg differ diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9eb1a1537c09144a02368e60e774c21e7fd03cb6 Binary files /dev/null and b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg differ diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg new file mode 100644 index 0000000000000000000000000000000000000000..77d9509c3c88e5fc38e3eb1e7d88dab79d452f47 --- /dev/null +++ b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71b8a33acf98bd7059ef50abc62bb6843328ac09bf01dbbc9924e09d9541ab3a +size 325091 diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg new file mode 100644 index 0000000000000000000000000000000000000000..db805c2f69c85f730af6cd721583a52786e694f2 Binary files /dev/null and b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg differ diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..35bf0a4b70c5fb982e75817512177defd2d3cca6 Binary files /dev/null and b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg differ diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6c8e538246912d6d7af07d3e422ebf0cc2fbd35f Binary files /dev/null and b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg differ diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg new file mode 100644 index 0000000000000000000000000000000000000000..272ff1ea13a2dbf98717498a1fd4f91417625380 --- /dev/null +++ b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86283025b05afb09e1204921928be01b93214d021f5858a8b465e4467a866db9 +size 224700 diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3842d78b2ae939b8d5ef8e4a2874fca22f8303a3 Binary files /dev/null and b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg differ diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..dcefe49c8c90aeecfc10d9faefb976b56796cc2a Binary files /dev/null and b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg differ diff --git a/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1e52b7385279f68ce6ce3488bb820a064dd84666 Binary files /dev/null and b/backend/ingestion_pipeline/tests/enhanced_test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg differ diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md new file mode 100644 index 0000000000000000000000000000000000000000..6e761f03479ea7ef261a3162efe944399b10927c --- /dev/null +++ b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md @@ -0,0 +1,127 @@ +# BILLING DISPUTE ADJUSTMENT PROCESS FLOW + +# Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 + +![This image is a detailed flowchart illustrating the "Billing Dispute Adjustment Process Flow for Data-Revised v2/2021." The overall structure is a top-down, left-to-right progression of steps, organized into horizontal swimlanes representing different roles: Customer, Sales, SBP (Sales Business Partner) / Business Finance, and Dispute Management / Business Finance. The process begins with a "Start" oval at the top left and concludes with an "End" oval at the top right, with numerous rectangular process steps and diamond-shaped decision points connecting them. + +The process initiates with the "Customer" role, outlining steps for notifying disputes and providing necessary information via a Customer Dispute Request Form (CDRF). The "Sales" role then validates the dispute, requests additional information if needed, and prepares a provision for credit or revenue accrual. The "SBP, Business Finance" lane details the review and verification of calculations and journal entries. A key decision point, "Valid?", branches the flow to either reject or proceed. + +If the dispute is deemed valid, the process moves to "Dispute Management, Business Finance" for coordination and investigation, involving various stakeholders like Sales, Product, CX, and GIT. This stage includes a "Complete?" decision point, leading to either further investigation or progression to proposal preparation. The process then involves preparing justification and proposals, potentially for a "BACR Proposal Paper sitting" or a "Non BACR proposal." + +A significant decision point, "Approved?", determines the subsequent actions, either proceeding to verification of adjustment reflection in the bill or returning to Sales for commercial settlement. The flowchart meticulously details each step, including specific actions like updating tracking databases, submitting adjustment forms, and circulating next actions. The timeline is indicated at the bottom with segments for "Within 14 Days or based on agreement," "1-3 Working Days," and "3-60 Days," further clarifying the expected duration of various stages. + +The visual hierarchy is established through clear labeling of each step with numbers and concise descriptions, along with distinct swimlanes for role clarity. The use of blue and white color schemes for the boxes and a light grey background provides a clean and professional aesthetic. Arrows clearly indicate the direction of the workflow, and the diamond shapes for decision points are easily distinguishable. The "Note" section at the top right provides crucial context regarding the resolution timeline for POD/Revenue Accrual and defines validity criteria. + +The functional purpose of this flowchart is to provide a standardized, step-by-step guide for handling billing disputes, ensuring all necessary actions are taken by the appropriate departments and that disputes are resolved efficiently and accurately. It serves as a critical operational document for managing financial discrepancies and maintaining customer satisfaction. The detailed breakdown of responsibilities and decision points ensures accountability and clarity throughout the dispute resolution lifecycle.](images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg) + +*AI-generated description: This flowchart details the billing dispute adjustment process. It outlines the steps taken by Customer, Sales, SBP Business Finance, and Dispute Management/Business Finance departments. The process begins with a customer dispute notification and progresses through validation, investigation, proposal preparation, and potential approval or rejection, ultimately leading to a verified adjustment reflected in the billing.* + +# Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 + +![This image is a detailed process flow diagram illustrating the "Billing Dispute Adjustment Process for Voice - Revised v2/2021." The diagram is organized into distinct vertical swimlanes representing different departments or roles: Customer, Sales, RRM (Revenue Reconciliation Management), and Dispute Management/Business Finance (DM). A horizontal "Time Line" is also present at the bottom, indicating timeframes for various stages. The overall layout is a top-down flow, starting with an "Start" oval and concluding with an "End" oval, with numerous rectangular process steps and diamond-shaped decision points connected by blue arrows. + +The process begins with the "Customer" initiating a dispute notification (Step 1), which is then received by "Sales" (Step 2). "Sales" validates the dispute against their policy and submits it to "RRM" (Step 3). "RRM" then performs a thorough investigation, segregating root causes (Step 4), and if the dispute is deemed invalid, notifies the "Customer" (Step 5). If valid, "RRM" receives and verifies the dispute against evidence and agreement clauses (Step 6). Following this, "Dispute Management/Business Finance" prepares justification on disputed cases in the BACR (Billing Adjustment Committee Review) proposal paper format (Step 7). A decision point asks "Complete?", leading to either requesting additional information (Step 8) or proceeding to the next stage. + +The flow continues with the preparation and submission of an Adjustment Proposal Paper to "DM" (Step 9), followed by receiving the endorsed proposal and checking document completeness (Step 10). A sub-process (10.2) involves verifying documents based on a checklist. A decision point then determines if the case is "BACR or Non-BACR?" (12). If Non-BACR, "Sales" proceeds with necessary approval (Step 15). If BACR, the case moves to the "BACR Sitting" (13). A subsequent "Approved?" decision point leads to either returning to "Sales" for further negotiation (Step 14) or proceeding to circulate next action items and notify stakeholders (Step 16). + +Finally, the process concludes with updating the Dispute Tracking Database, creating AR# via NOVA/ICP, and updating documentation in TMB (Step 17), followed by preparing the adjustment form (Step 18) and posting the AR# for NOVA and ICP, along with POD or Accrual reversal and adjustment, and notifying Sales and Customer of the adjustment (Step 19), ultimately leading to the "End" state. The "Time Line" at the bottom indicates that Sales has "Within 14 Days or based on agreement," RRM has "Within 29 Days or based on agreement & complexity of the cases," and DM has "3-46 Days" for various stages, with specific working day requirements for BACR sittings. The overall purpose is to provide a structured and systematic approach to resolving billing disputes and processing necessary adjustments.](Revenue Reconciliation Management) + +*AI-generated description: This flowchart outlines the billing dispute adjustment process. It details the steps involved, starting with customer notification and progressing through sales, RRM (Revenue Reconciliation Management), and Dispute Management/Business Finance. Key stages include dispute validation, investigation, proposal preparation, and various review stages (Pre-BACR, BACR) before final adjustment and closure. The timeline indicates specific durations for each phase, emphasizing timely resolution.* + +•Escalation Process based on Deadline + +
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2 More than 7 DaysGMAGM
3 More than 14 DaysVPVP
+ +Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) + +•Escalation Process based on Aging + +
ItemAging Time LineLevel of escalation in Sales Level of escalation in DM
130 to 60 DaysAGMManager
2 More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
+ +Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : + +
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4 QuarterlyVPReport of the POD status update & escalation if on 4rd week of last month of the quarter
+ +![This image depicts a timeline or roadmap illustrating the "Billing Dispute Adjustment Process Flow for Voice - Revised v2/2021". The overall structure is a horizontal progression from left to right, marked by distinct time periods represented by colored oval shapes connected by a light blue, arcing band. The visual hierarchy is established by the chronological placement of these time markers and the accompanying descriptive text. Starting from the left, the earliest visible marker is "Jun'20" in a green oval, followed by "Jul'20" in a blue oval, "Aug'20" in a purple oval, "Sep/Oct '20" in a red oval, "Nov'20" in a gold oval, and finally "Q1'21" in a bright yellow oval at the far right. Each time marker is associated with bulleted text describing key activities or milestones within that period. For instance, "Jun'20" has text indicating "Completed 1st draft with RRM process for Voice on 24". "Jul'20" details "Reviewed 1st draft for Data with SBP23 Jul 2020". "Aug'20" describes "Sync and finalized 2nd Draft with SBP and RRM on 13 Aug 2020 and Internal DM on 17 Aug 2020". The "Sep/Oct '20" marker notes the action to "-Obtain green light from both BC Sales, RRM and SBP in Sep and Oct 2020". The "Nov'20" marker indicates "-Awareness, endorsement & circulation". Finally, "Q1'21" signifies "- Sign off documentation in Mar 2021 (Subject to finalization of Dispute Policy) & Review effectiveness in Q1 2021". The font used for the time markers is a sans-serif, bold typeface, while the descriptive text is also in a sans-serif font, presented in a standard weight. The color palette is vibrant, with distinct colors for each time period to aid in visual differentiation. The arcing band suggests a forward momentum and progression through the process. The functional purpose of this visual is to clearly communicate the phased approach and key deliverables of the billing dispute adjustment process over a specific timeframe, from June 2020 to the first quarter of 2021.](images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg) + +*AI-generated description: This image is a timeline illustrating the billing dispute adjustment process for voice services. It begins in June 2020 with the completion of the first draft of the RRM process for voice. Key milestones include reviewing the first draft in July 2020, synchronizing and finalizing the second draft in August 2020, obtaining approval from BC Sales, RRM, and SBP in September/October 2020, and achieving awareness, endorsement, and circulation in November 2020. The process concludes with the sign-off of documentation in March 2021, subject to the finalization of the Dispute Policy and a review of effectiveness in Q1 2021.* + +MILESTONE FOR PROCESS IMPROVEMENT + +![The image displays a stylized, folded paper map with a prominent red location pin positioned directly above its center. The map itself is depicted with a perspective view, showing creases and folds that give it a three-dimensional appearance. The map's surface features a simplified representation of a cityscape or landscape, with areas colored in blue (likely representing water or open space), green (possibly indicating parks or land), and yellow and white lines denoting roads or pathways. The overall composition is clean and modern, with a soft gradient background that transitions from light gray at the top to white at the bottom, creating a subtle depth effect. + +The central element, the red location pin, is a classic map marker with a rounded top and a pointed bottom, rendered with a glossy finish that suggests a highlight or reflection. This pin is positioned to indicate a specific point on the map, visually anchoring the image. The map is angled, with its left and right edges fanning outwards, creating a dynamic and engaging visual. The colors used are vibrant yet not overly saturated, contributing to a professional and accessible aesthetic. + +Given the document context provided ("Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021"), this visual element likely serves as an icon or header image to represent a location-based aspect of the billing dispute process, perhaps indicating the geographical origin of a service, a customer's location, or a service area relevant to the dispute. The visual hierarchy clearly emphasizes the location pin and the map, suggesting that geographical information is a key component of the process being described. The simplicity and clarity of the graphic make it easily understandable as a representation of location or navigation within a business process. The image's purpose is to provide a visual cue that is immediately recognizable and relevant to the topic of location in the context of a billing dispute.](images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg) + +*AI-generated description: This image depicts a stylized, folded map with a prominent red location pin centered on it. The map shows various colored areas representing land and water, with yellow lines indicating roads. The location pin, a common symbol for GPS or navigation, suggests a focus on a specific place or point of interest within the context of the "Billing Dispute Adjustment Process Flow for Voice."* + +Jun 2020 + +# Progress Tracking + +
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020√
2.Reviewed 1st draft for Data with SBP.23 July 2020V
3. Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020V
4. Sync and finalized with Internal DMV
Obtain green light from stakeholders BC SalesSeptember/October 2020√
O RRM
5.O SBP
Awareness to
o International Sales4 November 2020V
O Awareness to Malaysian Carrier Sales9 November 2020√
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
+ +# Jointly Prepared and Proposed By: + +![The image displays a handwritten signature, rendered in black ink against a plain white background. The signature appears to be a single, continuous stroke, characterized by a flowing, cursive script. It begins with a prominent upward flourish on the left, forming the initial part of what is likely a first name or initial. This is followed by a series of connected loops and curves that suggest a stylized representation of letters. The central portion of the signature features a distinct "n" shape, with a clear ascender and descender. Immediately following this is a more complex, looped element that could represent a vowel or a consonant like "a" or "o," with a small, enclosed loop. The signature concludes with a horizontal line extending to the right, which may serve as a flourish or the end of a letter. The overall style is informal yet legible, suggesting it is a personal endorsement or authorization. Within the context of a document, this signature would typically signify agreement, approval, or authorship by the individual whose name it represents, placed under the heading "Jointly Prepared and Proposed By:". The visual hierarchy is dominated by the signature itself, which occupies the majority of the image space, with no other textual or graphical elements present. The simplicity of the presentation emphasizes the authenticity and personal nature of the mark. The black ink on white provides high contrast, ensuring the signature is clearly visible. The precise character of each stroke contributes to the unique identity of the signatory.](images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg) + +*AI-generated description: The image displays a handwritten signature in black ink on a white background. The signature appears to be a stylized representation of a name, with flowing lines and loops. Given the context of the document section "Jointly Prepared and Proposed By:", this signature likely represents the endorsement or approval of one of the parties involved in the preparation and proposal of the document.* + +![The image displays a handwritten signature or mark, likely from a document. Structurally, it is a single, continuous line of ink, predominantly horizontal, with several distinct features that suggest it is a signature. The overall composition is centered within the frame, with a slight upward curve towards the right end. The visual hierarchy is dominated by the thick, dark ink strokes against a white background, indicating a deliberate mark. + +Content-wise, the mark begins on the far left with a short, thick horizontal stroke, followed by a series of connected loops and sharp angles. There appears to be a prominent loop or curve in the central portion, with a smaller, detached stroke positioned directly below this central area. The right side of the signature extends into a longer, thinner horizontal line, which then curves slightly upwards and terminates. The ink appears to be black or a very dark color, and the strokes vary in thickness, suggesting the pressure applied by a pen or marker. + +Contextually, as part of a "Jointly Prepared and Proposed By" section, this mark serves as an identifier or an endorsement from an individual or entity. Its placement would typically signify agreement, approval, or authorship. The visual complexity and variation in stroke thickness are characteristic of a personal signature, intended to be unique and difficult to forge. + +Technically, the image is a grayscale representation of the handwritten mark. The resolution is sufficient to discern the general shape and flow, but fine details of the ink texture or paper are not clearly visible. The mark occupies a significant portion of the horizontal space, suggesting it is a primary element within its original document context. + +Functionally, this visual element serves the critical purpose of authentication and attribution within the document. It provides a legal or formal confirmation of participation or agreement by the signatory. The unique characteristics of the mark are intended to be recognizable to those familiar with the signatory's handwriting, thereby fulfilling its role in the document's overall integrity and purpose. The presence of this mark, regardless of its legibility as specific text, signifies a completed action or commitment by the individual who created it.](images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg) + +*AI-generated description: The image displays a handwritten signature or mark, likely representing an endorsement or approval. It consists of a horizontal line with several intersecting strokes and a smaller mark below the main line. This visual element is positioned within the context of a document section titled "Jointly Prepared and Proposed By," suggesting it signifies agreement or authorship by one or more parties.* + +Irna Binti Ibrahim +Manager Dispute International 2 +Date: 17/03/2021 + +![This image displays a single, handwritten signature rendered in a light gray ink against a plain white background. The signature occupies the central portion of the frame, with ample white space surrounding it, suggesting it is a standalone element or a signature line within a larger document. The overall composition is simple and uncluttered, emphasizing the signature itself. + +The signature begins on the left with a flourish that loops upwards and then descends, forming the initial part of what appears to be a capital letter, possibly an "R" or a similar cursive character. This initial stroke is relatively bold and well-defined. Following this, the signature transitions into a series of connected, flowing cursive letters. These middle characters are rendered with thinner, more delicate lines, creating a sense of movement and fluidity. The script is highly stylized and cursive, making individual letters difficult to discern with absolute certainty without further context or comparison to known examples. + +Towards the right side of the signature, the script becomes more elongated and sweeps downwards and to the right, concluding with a long, graceful tail that curves upwards slightly. This trailing stroke is thin and tapering, adding a final flourish to the signature. The entire signature appears to be executed in a single, continuous motion, characteristic of a practiced signature. The color of the ink is a neutral light gray, which provides a subtle contrast against the white background without being overly stark. The thickness of the lines varies, with thicker strokes at the beginning and end, and finer strokes in the middle, contributing to the dynamic appearance of the signature. + +Given the context "Section: Jointly Prepared and Proposed By:", this signature likely represents the endorsement or authorization of an individual or entity involved in the preparation and proposal of a document. Its placement and style suggest it serves as a formal mark of approval or agreement. The visual hierarchy is entirely focused on the signature, indicating its primary importance within the context it is presented. The lack of any other visual elements or text means the signature is the sole carrier of information in this specific image. The functional purpose is to authenticate or validate the document from which this section is extracted, signifying the involvement or agreement of the signatory. The overall communication is one of formal assent and personal or organizational representation.](images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg) + +*AI-generated description: The image displays a handwritten signature in a light gray color against a white background. The signature appears to be a stylized cursive "R" followed by a series of connected, wavy lines that trail off to the right. This signature likely serves as an endorsement or approval, as indicated by its placement in a section titled "Jointly Prepared and Proposed By."* + +Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 + +Roshani Binti Yahya +Manager Dispute International 1 +Date: 17/03/2021 + +Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 + +Reviewed By: + +![The image displays a handwritten signature in black ink against a white background, occupying the central portion of the frame. The signature is composed of cursive lettering, indicating a personal endorsement or authentication within a document. The overall structure is a single line of text, flowing from left to right. The visual hierarchy is established by the prominent placement and size of the signature, signifying its importance as an authorized mark. + +The content of the signature appears to be "Norman Ahmad". The first letter, "N", is capitalized and forms a large, sweeping curve that begins at the bottom left and moves upwards and to the right. This is followed by the lowercase letters "o", "r", "m", "a", "n", which are connected in a fluid, cursive style. The letter "A" in "Ahmad" is also capitalized, with a distinct upward stroke and a crossbar. The remaining letters, "h", "m", "a", "d", are written in lowercase cursive, seamlessly joining the preceding "A". A small dot is visible above the "i" in "Ahmad", a common stylistic flourish in cursive writing. + +The signature is rendered in a consistent black ink, with varying line thickness suggesting the pressure applied by a pen or marker. The style is legible but exhibits a degree of personal variation typical of handwriting. The context provided, "Section: Jointly Prepared and Proposed By:", indicates that this signature serves as an official mark of approval or authorship, confirming the involvement of "Norman Ahmad" in the preparation and proposal of the document. + +The functional purpose of this visual element is to provide a legal or formal authentication of the document's content or origin. It acts as a unique identifier and a testament to the signatory's agreement or responsibility. The signature's placement and prominence within the document context underscore its role in establishing the document's legitimacy and accountability. The overall communication purpose is to convey the endorsement and commitment of the individual named Norman Ahmad to the document.](images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg) + +*AI-generated description: The image displays a handwritten signature that reads "Normahamat". This signature likely represents the name of an individual or entity that jointly prepared and proposed the document, as indicated by the surrounding text.* + +Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 + +Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 + +# Approved By: + +![The image displays a handwritten signature in black ink on a white background. The signature is composed of a single, continuous line of script, suggesting a fluid and practiced autograph. Structurally, the signature begins on the left with a large, looping flourish that forms the initial part of the name. This flourish is open at the top and sweeps downwards and to the right. Following this initial loop, the script continues with a series of connected cursive letters. The middle section of the signature appears to contain the letters "da" or "da" with a connecting stroke. The final portion of the signature consists of a trailing line that extends diagonally upwards and to the right, providing a sense of completion and emphasis. The overall visual impression is one of personal authentication, typical for an "Approved By" section in a document. The line weight is consistent throughout, indicating a single, uninterrupted writing action. The signature's placement and style suggest it serves as a formal approval or endorsement within a larger document context, signifying the agreement or authorization of an individual. The lack of any other visual elements or text emphasizes the singular importance of this signature as the sole content of the image. The black ink on white provides high contrast, ensuring legibility of the handwritten mark.](images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg) + +*AI-generated description: The image displays a handwritten signature in black ink on a white background. The signature is cursive and appears to be a stylized representation of a name. Given the context "Approved By:", this signature likely signifies official approval or authorization within the document.* + +Nazidah Binti Ahmad Azli Head Business Finance Date: \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup new file mode 100644 index 0000000000000000000000000000000000000000..2ba00a18ed13b3ab10ae7895c273c95c59a9688c --- /dev/null +++ b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup @@ -0,0 +1,87 @@ +# BILLING DISPUTE ADJUSTMENT PROCESS FLOW + +# Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 + +![This flowchart details the billing dispute adjustment process. It outlines the steps taken by Customer, Sales, SBP Business Finance, and Dispute Management/Business Finance departments. The process begins with a customer dispute notification and progresses through validation, investigation, proposal preparation, and potential approval or rejection, ultimately leading to a verified adjustment reflected in the billing.](images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg) + +*AI-generated description: This flowchart details the billing dispute adjustment process. It outlines the steps taken by Customer, Sales, SBP Business Finance, and Dispute Management/Business Finance departments. The process begins with a customer dispute notification and progresses through validation, investigation, proposal preparation, and potential approval or rejection, ultimately leading to a verified adjustment reflected in the billing.* + +# Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 + +![This flowchart outlines the billing dispute adjustment process. It details the steps involved, starting with customer notification and progressing through sales, RRM (Revenue Reconciliation Management), and Dispute Management/Business Finance. Key stages include dispute validation, investigation, proposal preparation, and various review stages (Pre-BACR, BACR) before final adjustment and closure. The timeline indicates specific durations for each phase, emphasizing timely resolution.](images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg) + +*AI-generated description: This flowchart outlines the billing dispute adjustment process. It details the steps involved, starting with customer notification and progressing through sales, RRM (Revenue Reconciliation Management), and Dispute Management/Business Finance. Key stages include dispute validation, investigation, proposal preparation, and various review stages (Pre-BACR, BACR) before final adjustment and closure. The timeline indicates specific durations for each phase, emphasizing timely resolution.* + +•Escalation Process based on Deadline + +
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2 More than 7 DaysGMAGM
3 More than 14 DaysVPVP
+ +Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) + +•Escalation Process based on Aging + +
ItemAging Time LineLevel of escalation in Sales Level of escalation in DM
130 to 60 DaysAGMManager
2 More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
+ +Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : + +
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4 QuarterlyVPReport of the POD status update & escalation if on 4rd week of last month of the quarter
+ +![This image is a timeline illustrating the billing dispute adjustment process for voice services. It begins in June 2020 with the completion of the first draft of the RRM process for voice. Key milestones include reviewing the first draft in July 2020, synchronizing and finalizing the second draft in August 2020, obtaining approval from BC Sales, RRM, and SBP in September/October 2020, and achieving awareness, endorsement, and circulation in November 2020. The process concludes with the sign-off of documentation in March 2021, subject to the finalization of the Dispute Policy and a review of effectiveness in Q1 2021.](images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg) + +*AI-generated description: This image is a timeline illustrating the billing dispute adjustment process for voice services. It begins in June 2020 with the completion of the first draft of the RRM process for voice. Key milestones include reviewing the first draft in July 2020, synchronizing and finalizing the second draft in August 2020, obtaining approval from BC Sales, RRM, and SBP in September/October 2020, and achieving awareness, endorsement, and circulation in November 2020. The process concludes with the sign-off of documentation in March 2021, subject to the finalization of the Dispute Policy and a review of effectiveness in Q1 2021.* + +MILESTONE FOR PROCESS IMPROVEMENT + +![This image depicts a stylized, folded map with a prominent red location pin centered on it. The map shows various colored areas representing land and water, with yellow lines indicating roads. The location pin, a common symbol for GPS or navigation, suggests a focus on a specific place or point of interest within the context of the "Billing Dispute Adjustment Process Flow for Voice."](images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg) + +*AI-generated description: This image depicts a stylized, folded map with a prominent red location pin centered on it. The map shows various colored areas representing land and water, with yellow lines indicating roads. The location pin, a common symbol for GPS or navigation, suggests a focus on a specific place or point of interest within the context of the "Billing Dispute Adjustment Process Flow for Voice."* + +Jun 2020 + +# Progress Tracking + +
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020√
2.Reviewed 1st draft for Data with SBP.23 July 2020V
3. Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020V
4. Sync and finalized with Internal DMV
Obtain green light from stakeholders BC SalesSeptember/October 2020√
O RRM
5.O SBP
Awareness to
o International Sales4 November 2020V
O Awareness to Malaysian Carrier Sales9 November 2020√
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
+ +# Jointly Prepared and Proposed By: + +![The image displays a handwritten signature in black ink on a white background. The signature appears to be a stylized representation of a name, with flowing lines and loops. Given the context of the document section "Jointly Prepared and Proposed By:", this signature likely represents the endorsement or approval of one of the parties involved in the preparation and proposal of the document.](images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg) + +*AI-generated description: The image displays a handwritten signature in black ink on a white background. The signature appears to be a stylized representation of a name, with flowing lines and loops. Given the context of the document section "Jointly Prepared and Proposed By:", this signature likely represents the endorsement or approval of one of the parties involved in the preparation and proposal of the document.* + +![The image displays a handwritten signature or mark, likely representing an endorsement or approval. It consists of a horizontal line with several intersecting strokes and a smaller mark below the main line. This visual element is positioned within the context of a document section titled "Jointly Prepared and Proposed By," suggesting it signifies agreement or authorship by one or more parties.](images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg) + +*AI-generated description: The image displays a handwritten signature or mark, likely representing an endorsement or approval. It consists of a horizontal line with several intersecting strokes and a smaller mark below the main line. This visual element is positioned within the context of a document section titled "Jointly Prepared and Proposed By," suggesting it signifies agreement or authorship by one or more parties.* + +Irna Binti Ibrahim +Manager Dispute International 2 +Date: 17/03/2021 + +![The image displays a handwritten signature in a light gray color against a white background. The signature appears to be a stylized cursive "R" followed by a series of connected, wavy lines that trail off to the right. This signature likely serves as an endorsement or approval, as indicated by its placement in a section titled "Jointly Prepared and Proposed By."](images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg) + +*AI-generated description: The image displays a handwritten signature in a light gray color against a white background. The signature appears to be a stylized cursive "R" followed by a series of connected, wavy lines that trail off to the right. This signature likely serves as an endorsement or approval, as indicated by its placement in a section titled "Jointly Prepared and Proposed By."* + +Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 + +Roshani Binti Yahya +Manager Dispute International 1 +Date: 17/03/2021 + +Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 + +Reviewed By: + +![The image displays a handwritten signature that reads "Normahamat". This signature likely represents the name of an individual or entity that jointly prepared and proposed the document, as indicated by the surrounding text.](images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg) + +*AI-generated description: The image displays a handwritten signature that reads "Normahamat". This signature likely represents the name of an individual or entity that jointly prepared and proposed the document, as indicated by the surrounding text.* + +Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 + +Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 + +# Approved By: + +![The image displays a handwritten signature in black ink on a white background. The signature is cursive and appears to be a stylized representation of a name. Given the context "Approved By:", this signature likely signifies official approval or authorization within the document.](images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg) + +*AI-generated description: The image displays a handwritten signature in black ink on a white background. The signature is cursive and appears to be a stylized representation of a name. Given the context "Approved By:", this signature likely signifies official approval or authorization within the document.* + +Nazidah Binti Ahmad Azli Head Business Finance Date: \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..00882dbaa1b239126e8311df57c62cdad29faf48 --- /dev/null +++ b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json @@ -0,0 +1,194 @@ +[ + { + "type": "text", + "text": "BILLING DISPUTE ADJUSTMENT PROCESS FLOW ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 ", + "text_level": 1, + "page_idx": 1 + }, + { + "type": "image", + "img_path": "images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 1 + }, + { + "type": "text", + "text": "Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 ", + "text_level": 1, + "page_idx": 2 + }, + { + "type": "image", + "img_path": "images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 2 + }, + { + "type": "table", + "img_path": "images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg", + "table_caption": [ + "•Escalation Process based on Deadline " + ], + "table_footnote": [ + "Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) " + ], + "table_body": "
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2 More than 7 DaysGMAGM
3 More than 14 DaysVPVP
", + "page_idx": 3 + }, + { + "type": "table", + "img_path": "images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg", + "table_caption": [ + "•Escalation Process based on Aging " + ], + "table_footnote": [], + "table_body": "
ItemAging Time LineLevel of escalation in Sales Level of escalation in DM
130 to 60 DaysAGMManager
2 More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
", + "page_idx": 3 + }, + { + "type": "text", + "text": "Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : ", + "page_idx": 3 + }, + { + "type": "table", + "img_path": "images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4 QuarterlyVPReport of the POD status update & escalation if on 4rd week of last month of the quarter
", + "page_idx": 3 + }, + { + "type": "image", + "img_path": "images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 4 + }, + { + "type": "text", + "text": "MILESTONE FOR PROCESS IMPROVEMENT ", + "page_idx": 4 + }, + { + "type": "image", + "img_path": "images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 4 + }, + { + "type": "text", + "text": "Jun 2020 ", + "page_idx": 4 + }, + { + "type": "text", + "text": "Progress Tracking ", + "text_level": 1, + "page_idx": 5 + }, + { + "type": "table", + "img_path": "images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020√
2.Reviewed 1st draft for Data with SBP.23 July 2020V
3. Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020V
4. Sync and finalized with Internal DMV
Obtain green light from stakeholders BC SalesSeptember/October 2020√
O RRM
5.O SBP
Awareness to
o International Sales4 November 2020V
O Awareness to Malaysian Carrier Sales9 November 2020√
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
", + "page_idx": 5 + }, + { + "type": "text", + "text": "Jointly Prepared and Proposed By: ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Irna Binti Ibrahim \nManager Dispute International 2 \nDate: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Roshani Binti Yahya \nManager Dispute International 1 \nDate: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Reviewed By: ", + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Approved By: ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Nazidah Binti Ahmad Azli Head Business Finance Date: ", + "page_idx": 6 + } +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bfc3376d2c7cd24be8bfee072f3e5cd4cb8cf0e4 Binary files /dev/null and b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg differ diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f0ec5b2f913b19171b0b9c923e8592dd64877dee --- /dev/null +++ b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f32a9542c9ee33a12296323c5df1797a00410977607ff8af4b4ec37bd4453d50 +size 114207 diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1859e4331befa53741151d06c4ee70166fc79ef3 Binary files /dev/null and b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg differ diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg new file mode 100644 index 0000000000000000000000000000000000000000..149436559d9871438d0d8078ae550e9561dbe84b --- /dev/null +++ b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b61835ee583bde760c61e0f3add80c933201635298fcc77fd3d79bbe6dff87f +size 408638 diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5ef91f59b8c6e4fd9fd6d13f7383c252e5e4c72f Binary files /dev/null and b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg differ diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9eb1a1537c09144a02368e60e774c21e7fd03cb6 Binary files /dev/null and b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg differ diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg new file mode 100644 index 0000000000000000000000000000000000000000..77d9509c3c88e5fc38e3eb1e7d88dab79d452f47 --- /dev/null +++ b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71b8a33acf98bd7059ef50abc62bb6843328ac09bf01dbbc9924e09d9541ab3a +size 325091 diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg new file mode 100644 index 0000000000000000000000000000000000000000..db805c2f69c85f730af6cd721583a52786e694f2 Binary files /dev/null and b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg differ diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..35bf0a4b70c5fb982e75817512177defd2d3cca6 Binary files /dev/null and b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg differ diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6c8e538246912d6d7af07d3e422ebf0cc2fbd35f Binary files /dev/null and b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg differ diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg new file mode 100644 index 0000000000000000000000000000000000000000..272ff1ea13a2dbf98717498a1fd4f91417625380 --- /dev/null +++ b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86283025b05afb09e1204921928be01b93214d021f5858a8b465e4467a866db9 +size 224700 diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3842d78b2ae939b8d5ef8e4a2874fca22f8303a3 Binary files /dev/null and b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg differ diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..dcefe49c8c90aeecfc10d9faefb976b56796cc2a Binary files /dev/null and b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg differ diff --git a/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1e52b7385279f68ce6ce3488bb820a064dd84666 Binary files /dev/null and b/backend/ingestion_pipeline/tests/fresh_clean_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg differ diff --git a/backend/ingestion_pipeline/tests/test_billing_only.py b/backend/ingestion_pipeline/tests/test_billing_only.py new file mode 100644 index 0000000000000000000000000000000000000000..72750a18bc98792e347ed53f1943a5b7c1814d30 --- /dev/null +++ b/backend/ingestion_pipeline/tests/test_billing_only.py @@ -0,0 +1,75 @@ +#!/usr/bin/env python3 +""" +Test script to process just the Billing PDF to verify the fix works. +""" + +from pathlib import Path +from backend.ingestion_pipeline.pdf_to_enriched_semantic_chunks_pipeline import PDFToEnrichedMarkdownPipeline + +def test_billing_processing(): + """Test processing just the Billing PDF.""" + + # Create pipeline instance - no VLM or chunking for this test + pipeline = PDFToEnrichedMarkdownPipeline( + pdf_directory=Path("pdfs"), + output_directory=Path("test_output"), + enable_vlm=False, + enable_chunking=False + ) + + # Find just the Billing PDF + billing_files = [f for f in pipeline.find_pdf_files() if "Billing" in f.name] + + if not billing_files: + print("❌ Billing PDF not found") + return False + + print(f"📄 Found Billing PDF: {billing_files[0].name}") + + # Test the copy and processing + try: + print(f"\n🚀 Testing file copying with safe filenames...") + research_papers_dir = pipeline.copy_pdfs_to_research_papers(billing_files) + + print(f"\n🚀 Testing MinerU processing...") + success = pipeline.run_mineru_processing(billing_files) + + if success: + print(f"✅ MinerU processing completed successfully!") + + # Check what was created + mineru_output_dir = Path(__file__).parent / "local_mineru" / "file_ingesting" / "output" + if mineru_output_dir.exists(): + output_items = list(mineru_output_dir.iterdir()) + print(f"📁 Created {len(output_items)} output directories:") + for item in output_items: + if item.is_dir(): + print(f" 📂 {item.name}") + # Check if markdown was created + auto_dir = item / "auto" + if auto_dir.exists(): + md_files = list(auto_dir.glob("*.md")) + print(f" 📄 {len(md_files)} markdown files") + images_dir = auto_dir / "images" + if images_dir.exists(): + images = list(images_dir.glob("*.jpg")) + print(f" 🖼️ {len(images)} image files") + + # Test copying to final destination + print(f"\n🚀 Testing copy to final destination...") + pipeline.copy_mineru_output_to_destination(mineru_output_dir) + + return True + else: + print(f"❌ MinerU processing failed") + return False + + except Exception as e: + print(f"❌ Error during processing: {e}") + import traceback + traceback.print_exc() + return False + +if __name__ == "__main__": + success = test_billing_processing() + print(f"\n🎯 Test result: {'PASSED' if success else 'FAILED'}") \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/test_clean_descriptions.py b/backend/ingestion_pipeline/tests/test_clean_descriptions.py new file mode 100644 index 0000000000000000000000000000000000000000..3be7977a7c1b57f0efa6fb0790866f1df48eed4f --- /dev/null +++ b/backend/ingestion_pipeline/tests/test_clean_descriptions.py @@ -0,0 +1,91 @@ +#!/usr/bin/env python3 +""" +Test script to verify clean VLM descriptions (no duplication). +""" + +from pathlib import Path +from backend.ingestion_pipeline.pdf_to_enriched_semantic_chunks_pipeline import PDFToEnrichedMarkdownPipeline +import asyncio + +async def test_clean_descriptions(): + """Test VLM with clean, non-duplicated descriptions.""" + + # Create a fresh copy for testing clean descriptions + output_dir = Path("clean_test_output") + + # Copy the processed Billing PDF to a new location for testing + import shutil + source_dir = Path("test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)") + if source_dir.exists(): + if output_dir.exists(): + shutil.rmtree(output_dir) + shutil.copytree("test_output", output_dir) + print(f"📁 Created fresh copy for clean description testing: {output_dir}") + else: + print("❌ Source test data not found. Run the basic tests first.") + return False + + print(f"🚀 Testing CLEAN VLM descriptions (no duplication)...") + + # Create pipeline instance with VLM enabled + pipeline = PDFToEnrichedMarkdownPipeline( + pdf_directory=Path("pdfs"), # Not used in this test + output_directory=output_dir, + enable_vlm=True, + enable_chunking=False + ) + + try: + print(f"✨ Running VLM with clean description format...") + vlm_result = await pipeline.run_vlm_enhancement() + + if vlm_result: + print(f"✅ Clean VLM completed successfully!") + + # Verify the clean format + billing_md = output_dir / "Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)" / "auto" / "Billing Dispute Adjustment Process Flow v_f4b3b7c9.md" + if billing_md.exists(): + print(f"\n📖 Verifying clean format in: {billing_md.name}") + content = billing_md.read_text(encoding='utf-8') + + # Check for duplications + ai_generated_lines = [line for line in content.split('\n') if '*AI-generated description:' in line] + print(f"🔍 Found {len(ai_generated_lines)} duplicate '*AI-generated description:*' lines") + + # Show first few lines with images to verify clean format + lines = content.split('\n') + image_line_count = 0 + for i, line in enumerate(lines): + if line.startswith('![') and image_line_count < 2: + image_line_count += 1 + print(f"\n🎨 Clean Image {image_line_count}:") + print(f"📝 Line {i+1}: {line[:150]}{'...' if len(line) > 150 else ''}") + + # Check the next few lines to ensure no duplication + next_lines = lines[i+1:i+4] + for j, next_line in enumerate(next_lines): + if next_line.strip(): + print(f"📝 Line {i+j+2}: {next_line[:100]}{'...' if len(next_line) > 100 else ''}") + break + + # Summary + if len(ai_generated_lines) == 0: + print(f"\n✅ SUCCESS: No duplicate '*AI-generated description:*' lines found!") + print(f"✅ Descriptions are cleanly embedded in alt text only") + else: + print(f"\n❌ WARNING: Found {len(ai_generated_lines)} duplicate lines") + + return True + else: + print(f"❌ Clean VLM failed") + return False + + except Exception as e: + print(f"❌ Error during clean VLM: {e}") + import traceback + traceback.print_exc() + return False + +if __name__ == "__main__": + success = asyncio.run(test_clean_descriptions()) + print(f"\n🎯 Clean VLM Test result: {'PASSED' if success else 'FAILED'}") \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/test_enhanced_vlm.py b/backend/ingestion_pipeline/tests/test_enhanced_vlm.py new file mode 100644 index 0000000000000000000000000000000000000000..4f6a7e4c7fc3c2c52babe9a8e8a7271fd46fae52 --- /dev/null +++ b/backend/ingestion_pipeline/tests/test_enhanced_vlm.py @@ -0,0 +1,81 @@ +#!/usr/bin/env python3 +""" +Test script to verify enhanced VLM with super detailed descriptions. +""" + +from pathlib import Path +from backend.ingestion_pipeline.pdf_to_enriched_semantic_chunks_pipeline import PDFToEnrichedMarkdownPipeline +import asyncio + +async def test_enhanced_vlm(): + """Test enhanced VLM with detailed descriptions on a fresh copy.""" + + # Create a fresh copy for testing enhanced descriptions + output_dir = Path("enhanced_test_output") + + # Copy the processed Billing PDF to a new location for testing + import shutil + source_dir = Path("test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)") + if source_dir.exists(): + if output_dir.exists(): + shutil.rmtree(output_dir) + shutil.copytree("test_output", output_dir) + print(f"📁 Created fresh copy for enhanced testing: {output_dir}") + else: + print("❌ Source test data not found. Run the basic tests first.") + return False + + print(f"🚀 Testing ENHANCED VLM with super detailed descriptions...") + + # Create pipeline instance with VLM enabled + pipeline = PDFToEnrichedMarkdownPipeline( + pdf_directory=Path("pdfs"), # Not used in this test + output_directory=output_dir, + enable_vlm=True, + enable_chunking=False + ) + + try: + print(f"🎨 Running enhanced VLM analysis with 2000 token limit...") + vlm_result = await pipeline.run_vlm_enhancement() + + if vlm_result: + print(f"✅ Enhanced VLM completed successfully!") + + # Show a sample of the enhanced descriptions + billing_md = output_dir / "Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)" / "auto" / "Billing Dispute Adjustment Process Flow v_f4b3b7c9.md" + if billing_md.exists(): + print(f"\n📖 Sample of enhanced descriptions from: {billing_md.name}") + content = billing_md.read_text(encoding='utf-8') + + # Find and display enhanced descriptions + lines = content.split('\n') + enhanced_count = 0 + for i, line in enumerate(lines): + if line.startswith('![') and 'AI-generated description:' in content[content.find(line):content.find(line) + 1000]: + enhanced_count += 1 + if enhanced_count <= 2: # Show first 2 enhanced descriptions + print(f"\n🎨 Enhanced Description #{enhanced_count}:") + # Extract the description from the alt text + alt_start = line.find('![') + 2 + alt_end = line.find('](') + if alt_end > alt_start: + description = line[alt_start:alt_end] + print(f"📝 {description[:300]}{'...' if len(description) > 300 else ''}") + + print(f"\n📊 Total enhanced descriptions found: {enhanced_count}") + + return True + else: + print(f"❌ Enhanced VLM failed") + return False + + except Exception as e: + print(f"❌ Error during enhanced VLM: {e}") + import traceback + traceback.print_exc() + return False + +if __name__ == "__main__": + success = asyncio.run(test_enhanced_vlm()) + print(f"\n🎯 Enhanced VLM Test result: {'PASSED' if success else 'FAILED'}") \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/test_filename_fix.py b/backend/ingestion_pipeline/tests/test_filename_fix.py new file mode 100644 index 0000000000000000000000000000000000000000..334348b6eec9689df013695e4df0ca1b152cb4e7 --- /dev/null +++ b/backend/ingestion_pipeline/tests/test_filename_fix.py @@ -0,0 +1,58 @@ +#!/usr/bin/env python3 +""" +Quick test script to verify filename handling works correctly. +""" + +from pathlib import Path +from backend.ingestion_pipeline.pdf_to_enriched_semantic_chunks_pipeline import PDFToEnrichedMarkdownPipeline + +def test_filename_handling(): + """Test the filename handling for the Billing PDF.""" + + # Create pipeline instance + pipeline = PDFToEnrichedMarkdownPipeline( + pdf_directory=Path("pdfs"), + output_directory=Path("test_output"), + enable_vlm=False, # Skip VLM for this test + enable_chunking=False # Skip chunking for this test + ) + + # Test the problematic filename + billing_file = Path("pdfs/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1).pdf") + + if not billing_file.exists(): + print(f"❌ Test file not found: {billing_file}") + return False + + print(f"📄 Testing file: {billing_file.name}") + print(f"📏 Original filename length: {len(billing_file.name)} characters") + + # Test path validation with absolute path (like the real scenario) + mineru_output_dir = Path(__file__).parent / "local_mineru" / "file_ingesting" / "output" + + # Debug: Show the actual path that would be created + potential_path = mineru_output_dir / billing_file.stem / "auto" / "images" / ("a" * 64 + ".jpg") + print(f"🔍 Full potential path: {potential_path}") + print(f"📏 Full path length: {len(str(potential_path))} characters") + + is_safe = pipeline._validate_path_length(mineru_output_dir, billing_file.stem) + print(f"🔍 Path length safe: {is_safe}") + + if not is_safe: + # Test safe filename creation + safe_name = pipeline._create_safe_filename(billing_file) + print(f"✅ Safe filename: {safe_name}") + print(f"📏 Safe filename length: {len(safe_name)} characters") + + # Test validation with safe name + safe_path_check = pipeline._validate_path_length(mineru_output_dir, Path(safe_name).stem) + print(f"🔍 Safe path length valid: {safe_path_check}") + + return safe_path_check + else: + print(f"✅ Original filename is already safe") + return True + +if __name__ == "__main__": + success = test_filename_handling() + print(f"\n🎯 Test result: {'PASSED' if success else 'FAILED'}") \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/test_fresh_clean.py b/backend/ingestion_pipeline/tests/test_fresh_clean.py new file mode 100644 index 0000000000000000000000000000000000000000..630ead0611dcbc4d13efc80d54af6b6d4929549c --- /dev/null +++ b/backend/ingestion_pipeline/tests/test_fresh_clean.py @@ -0,0 +1,93 @@ +#!/usr/bin/env python3 +""" +Test script to verify completely clean VLM descriptions from scratch. +""" + +from pathlib import Path +from backend.ingestion_pipeline.pdf_to_enriched_semantic_chunks_pipeline import PDFToEnrichedMarkdownPipeline +import asyncio + +async def test_fresh_clean(): + """Test VLM with completely fresh original file (no previous descriptions).""" + + # Use the original basic test output that has minimal descriptions + output_dir = Path("fresh_clean_output") + + # Copy the original basic test output (before enhanced VLM) + import shutil + source_dir = Path("test_output") + if source_dir.exists(): + if output_dir.exists(): + shutil.rmtree(output_dir) + shutil.copytree(source_dir, output_dir) + print(f"📁 Created fresh copy from basic test output: {output_dir}") + else: + print("❌ Source test data not found. Run the basic tests first.") + return False + + print(f"🚀 Testing CLEAN VLM descriptions from scratch...") + + # Create pipeline instance with VLM enabled + pipeline = PDFToEnrichedMarkdownPipeline( + pdf_directory=Path("pdfs"), # Not used in this test + output_directory=output_dir, + enable_vlm=True, + enable_chunking=False + ) + + try: + print(f"✨ Running VLM with completely fresh file...") + vlm_result = await pipeline.run_vlm_enhancement() + + if vlm_result: + print(f"✅ Fresh clean VLM completed successfully!") + + # Verify the clean format + billing_md = output_dir / "Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)" / "auto" / "Billing Dispute Adjustment Process Flow v_f4b3b7c9.md" + if billing_md.exists(): + print(f"\n📖 Verifying completely clean format in: {billing_md.name}") + content = billing_md.read_text(encoding='utf-8') + + # Check for duplications + ai_generated_lines = [line for line in content.split('\n') if '*AI-generated description:' in line] + print(f"🔍 Found {len(ai_generated_lines)} duplicate '*AI-generated description:*' lines") + + # Show first image to verify format + lines = content.split('\n') + for i, line in enumerate(lines): + if line.startswith('![') and len(line) > 100: # Find enhanced descriptions + print(f"\n🎨 Sample Clean Format:") + print(f"📝 Line {i+1}: {line[:200]}{'...' if len(line) > 200 else ''}") + + # Check next line to ensure no duplication + if i+1 < len(lines): + next_line = lines[i+1] + print(f"📝 Next line: {next_line[:100]}{'...' if len(next_line) > 100 else ''}") + if '*AI-generated description:*' in next_line: + print(f"❌ WARNING: Found duplicate on next line!") + else: + print(f"✅ Clean: No duplicate found") + break + + # Summary + if len(ai_generated_lines) == 0: + print(f"\n🎉 PERFECT SUCCESS: No duplicate '*AI-generated description:*' lines!") + print(f"✅ All descriptions are cleanly embedded in alt text only") + print(f"🏆 Clean VLM formatting is working perfectly!") + else: + print(f"\n❌ Issue: Found {len(ai_generated_lines)} duplicate lines (may be from original file)") + + return True + else: + print(f"❌ Fresh clean VLM failed") + return False + + except Exception as e: + print(f"❌ Error during fresh clean VLM: {e}") + import traceback + traceback.print_exc() + return False + +if __name__ == "__main__": + success = asyncio.run(test_fresh_clean()) + print(f"\n🎯 Fresh Clean VLM Test result: {'PASSED' if success else 'FAILED'}") \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md new file mode 100644 index 0000000000000000000000000000000000000000..2ba00a18ed13b3ab10ae7895c273c95c59a9688c --- /dev/null +++ b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md @@ -0,0 +1,87 @@ +# BILLING DISPUTE ADJUSTMENT PROCESS FLOW + +# Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 + +![This flowchart details the billing dispute adjustment process. It outlines the steps taken by Customer, Sales, SBP Business Finance, and Dispute Management/Business Finance departments. The process begins with a customer dispute notification and progresses through validation, investigation, proposal preparation, and potential approval or rejection, ultimately leading to a verified adjustment reflected in the billing.](images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg) + +*AI-generated description: This flowchart details the billing dispute adjustment process. It outlines the steps taken by Customer, Sales, SBP Business Finance, and Dispute Management/Business Finance departments. The process begins with a customer dispute notification and progresses through validation, investigation, proposal preparation, and potential approval or rejection, ultimately leading to a verified adjustment reflected in the billing.* + +# Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 + +![This flowchart outlines the billing dispute adjustment process. It details the steps involved, starting with customer notification and progressing through sales, RRM (Revenue Reconciliation Management), and Dispute Management/Business Finance. Key stages include dispute validation, investigation, proposal preparation, and various review stages (Pre-BACR, BACR) before final adjustment and closure. The timeline indicates specific durations for each phase, emphasizing timely resolution.](images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg) + +*AI-generated description: This flowchart outlines the billing dispute adjustment process. It details the steps involved, starting with customer notification and progressing through sales, RRM (Revenue Reconciliation Management), and Dispute Management/Business Finance. Key stages include dispute validation, investigation, proposal preparation, and various review stages (Pre-BACR, BACR) before final adjustment and closure. The timeline indicates specific durations for each phase, emphasizing timely resolution.* + +•Escalation Process based on Deadline + +
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2 More than 7 DaysGMAGM
3 More than 14 DaysVPVP
+ +Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) + +•Escalation Process based on Aging + +
ItemAging Time LineLevel of escalation in Sales Level of escalation in DM
130 to 60 DaysAGMManager
2 More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
+ +Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : + +
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4 QuarterlyVPReport of the POD status update & escalation if on 4rd week of last month of the quarter
+ +![This image is a timeline illustrating the billing dispute adjustment process for voice services. It begins in June 2020 with the completion of the first draft of the RRM process for voice. Key milestones include reviewing the first draft in July 2020, synchronizing and finalizing the second draft in August 2020, obtaining approval from BC Sales, RRM, and SBP in September/October 2020, and achieving awareness, endorsement, and circulation in November 2020. The process concludes with the sign-off of documentation in March 2021, subject to the finalization of the Dispute Policy and a review of effectiveness in Q1 2021.](images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg) + +*AI-generated description: This image is a timeline illustrating the billing dispute adjustment process for voice services. It begins in June 2020 with the completion of the first draft of the RRM process for voice. Key milestones include reviewing the first draft in July 2020, synchronizing and finalizing the second draft in August 2020, obtaining approval from BC Sales, RRM, and SBP in September/October 2020, and achieving awareness, endorsement, and circulation in November 2020. The process concludes with the sign-off of documentation in March 2021, subject to the finalization of the Dispute Policy and a review of effectiveness in Q1 2021.* + +MILESTONE FOR PROCESS IMPROVEMENT + +![This image depicts a stylized, folded map with a prominent red location pin centered on it. The map shows various colored areas representing land and water, with yellow lines indicating roads. The location pin, a common symbol for GPS or navigation, suggests a focus on a specific place or point of interest within the context of the "Billing Dispute Adjustment Process Flow for Voice."](images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg) + +*AI-generated description: This image depicts a stylized, folded map with a prominent red location pin centered on it. The map shows various colored areas representing land and water, with yellow lines indicating roads. The location pin, a common symbol for GPS or navigation, suggests a focus on a specific place or point of interest within the context of the "Billing Dispute Adjustment Process Flow for Voice."* + +Jun 2020 + +# Progress Tracking + +
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020√
2.Reviewed 1st draft for Data with SBP.23 July 2020V
3. Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020V
4. Sync and finalized with Internal DMV
Obtain green light from stakeholders BC SalesSeptember/October 2020√
O RRM
5.O SBP
Awareness to
o International Sales4 November 2020V
O Awareness to Malaysian Carrier Sales9 November 2020√
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
+ +# Jointly Prepared and Proposed By: + +![The image displays a handwritten signature in black ink on a white background. The signature appears to be a stylized representation of a name, with flowing lines and loops. Given the context of the document section "Jointly Prepared and Proposed By:", this signature likely represents the endorsement or approval of one of the parties involved in the preparation and proposal of the document.](images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg) + +*AI-generated description: The image displays a handwritten signature in black ink on a white background. The signature appears to be a stylized representation of a name, with flowing lines and loops. Given the context of the document section "Jointly Prepared and Proposed By:", this signature likely represents the endorsement or approval of one of the parties involved in the preparation and proposal of the document.* + +![The image displays a handwritten signature or mark, likely representing an endorsement or approval. It consists of a horizontal line with several intersecting strokes and a smaller mark below the main line. This visual element is positioned within the context of a document section titled "Jointly Prepared and Proposed By," suggesting it signifies agreement or authorship by one or more parties.](images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg) + +*AI-generated description: The image displays a handwritten signature or mark, likely representing an endorsement or approval. It consists of a horizontal line with several intersecting strokes and a smaller mark below the main line. This visual element is positioned within the context of a document section titled "Jointly Prepared and Proposed By," suggesting it signifies agreement or authorship by one or more parties.* + +Irna Binti Ibrahim +Manager Dispute International 2 +Date: 17/03/2021 + +![The image displays a handwritten signature in a light gray color against a white background. The signature appears to be a stylized cursive "R" followed by a series of connected, wavy lines that trail off to the right. This signature likely serves as an endorsement or approval, as indicated by its placement in a section titled "Jointly Prepared and Proposed By."](images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg) + +*AI-generated description: The image displays a handwritten signature in a light gray color against a white background. The signature appears to be a stylized cursive "R" followed by a series of connected, wavy lines that trail off to the right. This signature likely serves as an endorsement or approval, as indicated by its placement in a section titled "Jointly Prepared and Proposed By."* + +Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 + +Roshani Binti Yahya +Manager Dispute International 1 +Date: 17/03/2021 + +Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 + +Reviewed By: + +![The image displays a handwritten signature that reads "Normahamat". This signature likely represents the name of an individual or entity that jointly prepared and proposed the document, as indicated by the surrounding text.](images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg) + +*AI-generated description: The image displays a handwritten signature that reads "Normahamat". This signature likely represents the name of an individual or entity that jointly prepared and proposed the document, as indicated by the surrounding text.* + +Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 + +Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 + +# Approved By: + +![The image displays a handwritten signature in black ink on a white background. The signature is cursive and appears to be a stylized representation of a name. Given the context "Approved By:", this signature likely signifies official approval or authorization within the document.](images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg) + +*AI-generated description: The image displays a handwritten signature in black ink on a white background. The signature is cursive and appears to be a stylized representation of a name. Given the context "Approved By:", this signature likely signifies official approval or authorization within the document.* + +Nazidah Binti Ahmad Azli Head Business Finance Date: \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup new file mode 100644 index 0000000000000000000000000000000000000000..ad282a1b06ca8e2246bb09b8bcd4de6a753008bc --- /dev/null +++ b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9.md.backup @@ -0,0 +1,69 @@ +# BILLING DISPUTE ADJUSTMENT PROCESS FLOW + +# Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 + +![](images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg) + +# Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 + +![](images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg) + +•Escalation Process based on Deadline + +
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2 More than 7 DaysGMAGM
3 More than 14 DaysVPVP
+ +Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) + +•Escalation Process based on Aging + +
ItemAging Time LineLevel of escalation in Sales Level of escalation in DM
130 to 60 DaysAGMManager
2 More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
+ +Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : + +
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4 QuarterlyVPReport of the POD status update & escalation if on 4rd week of last month of the quarter
+ +![](images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg) + +MILESTONE FOR PROCESS IMPROVEMENT + +![](images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg) + +Jun 2020 + +# Progress Tracking + +
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020√
2.Reviewed 1st draft for Data with SBP.23 July 2020V
3. Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020V
4. Sync and finalized with Internal DMV
Obtain green light from stakeholders BC SalesSeptember/October 2020√
O RRM
5.O SBP
Awareness to
o International Sales4 November 2020V
O Awareness to Malaysian Carrier Sales9 November 2020√
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
+ +# Jointly Prepared and Proposed By: + +![](images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg) + +![](images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg) + +Irna Binti Ibrahim +Manager Dispute International 2 +Date: 17/03/2021 + +![](images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg) + +Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 + +Roshani Binti Yahya +Manager Dispute International 1 +Date: 17/03/2021 + +Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 + +Reviewed By: + +![](images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg) + +Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 + +Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 + +# Approved By: + +![](images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg) + +Nazidah Binti Ahmad Azli Head Business Finance Date: \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..00882dbaa1b239126e8311df57c62cdad29faf48 --- /dev/null +++ b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/Billing Dispute Adjustment Process Flow v_f4b3b7c9_content_list.json @@ -0,0 +1,194 @@ +[ + { + "type": "text", + "text": "BILLING DISPUTE ADJUSTMENT PROCESS FLOW ", + "text_level": 1, + "page_idx": 0 + }, + { + "type": "text", + "text": "Billing Dispute Adjustment Process Flow for Data-Revised v2/2021 ", + "text_level": 1, + "page_idx": 1 + }, + { + "type": "image", + "img_path": "images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 1 + }, + { + "type": "text", + "text": "Billing Dispute Adjustment Process Flow for Voice- Revised v2/2021 ", + "text_level": 1, + "page_idx": 2 + }, + { + "type": "image", + "img_path": "images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 2 + }, + { + "type": "table", + "img_path": "images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg", + "table_caption": [ + "•Escalation Process based on Deadline " + ], + "table_footnote": [ + "Note: Based on Dispute Management Policy (DMP) clause 6.14 on Dispute Process Initiation Lead Time (DPILT) " + ], + "table_body": "
ItemAging Time lineLevel of escalation in SalesLevel escalation in DM
1More than 3 daysAGMManager
2 More than 7 DaysGMAGM
3 More than 14 DaysVPVP
", + "page_idx": 3 + }, + { + "type": "table", + "img_path": "images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg", + "table_caption": [ + "•Escalation Process based on Aging " + ], + "table_footnote": [], + "table_body": "
ItemAging Time LineLevel of escalation in Sales Level of escalation in DM
130 to 60 DaysAGMManager
2 More than 60 days to 90 daysGMAGM
3More than 90 DaysVPVP
", + "page_idx": 3 + }, + { + "type": "text", + "text": "Note: Based on recommendation from BACR Committee for dispute resolution within 3 months Proactive engagement/escalation to all levels : ", + "page_idx": 3 + }, + { + "type": "table", + "img_path": "images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
Item 1SessionLevelNote
1Weekly basisManagerOpen
2Bi weekly basisAGMOpen
3MonthlyGMReport of the POD status & escalation on 3rd week (recommended)
4 QuarterlyVPReport of the POD status update & escalation if on 4rd week of last month of the quarter
", + "page_idx": 3 + }, + { + "type": "image", + "img_path": "images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 4 + }, + { + "type": "text", + "text": "MILESTONE FOR PROCESS IMPROVEMENT ", + "page_idx": 4 + }, + { + "type": "image", + "img_path": "images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 4 + }, + { + "type": "text", + "text": "Jun 2020 ", + "page_idx": 4 + }, + { + "type": "text", + "text": "Progress Tracking ", + "text_level": 1, + "page_idx": 5 + }, + { + "type": "table", + "img_path": "images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg", + "table_caption": [], + "table_footnote": [], + "table_body": "
NoDesriptionDateStatus
1.Completed 1st draft with RRM process for Voice.24 June 2020√
2.Reviewed 1st draft for Data with SBP.23 July 2020V
3. Sync and finalized 2nd Draft with SBP and RRM13 August 2020 17 August 2020V
4. Sync and finalized with Internal DMV
Obtain green light from stakeholders BC SalesSeptember/October 2020√
O RRM
5.O SBP
Awareness to
o International Sales4 November 2020V
O Awareness to Malaysian Carrier Sales9 November 2020√
Endorsement and circulationNovember 2020√
6.Sign off documentation (subject to finalization of Dispute Policy and to ensure the process is in line with the Dispute Policy)March 2021 Quarter 1 2021√
", + "page_idx": 5 + }, + { + "type": "text", + "text": "Jointly Prepared and Proposed By: ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Irna Binti Ibrahim \nManager Dispute International 2 \nDate: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Norhanom Binti Abdul Ghani Manager Dispute Domestic 1 Date: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Roshani Binti Yahya \nManager Dispute International 1 \nDate: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Saripah Binti Mat Noor Manager Dispute Domestic 2 Date: 17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Reviewed By: ", + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Normah Binti Ahmad AGM Dispute Management Date:17/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Farah Suhana Binti Mohd Sani AGM Shared Business Process Date: 24/03/2021 ", + "page_idx": 6 + }, + { + "type": "text", + "text": "Approved By: ", + "text_level": 1, + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg", + "image_caption": [], + "image_footnote": [], + "page_idx": 6 + }, + { + "type": "text", + "text": "Nazidah Binti Ahmad Azli Head Business Finance Date: ", + "page_idx": 6 + } +] \ No newline at end of file diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bfc3376d2c7cd24be8bfee072f3e5cd4cb8cf0e4 Binary files /dev/null and b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/2fd35f8e975392293edfd97919b181c6a58408f6a9144bd4bd6e6a3589dc56b7.jpg differ diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f0ec5b2f913b19171b0b9c923e8592dd64877dee --- /dev/null +++ b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/5ee9d05be6bd349746c8dfe0389ff1e6c7fef03a5994c1bf6b6b6d7af889445b.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f32a9542c9ee33a12296323c5df1797a00410977607ff8af4b4ec37bd4453d50 +size 114207 diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1859e4331befa53741151d06c4ee70166fc79ef3 Binary files /dev/null and b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6c966373bbcf9cf1f43c816ebdc7cd45003ec0f9a7746c3e69f7e4e6c2af80e6.jpg differ diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg new file mode 100644 index 0000000000000000000000000000000000000000..149436559d9871438d0d8078ae550e9561dbe84b --- /dev/null +++ b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/6f59d26b3afd78c36a984f4b71346c86769806241d9046842d3157df3fa94268.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b61835ee583bde760c61e0f3add80c933201635298fcc77fd3d79bbe6dff87f +size 408638 diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5ef91f59b8c6e4fd9fd6d13f7383c252e5e4c72f Binary files /dev/null and b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/7be3739b31628e603234b1afcb2d054d13accd9d4a207a4251900cf543b15437.jpg differ diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9eb1a1537c09144a02368e60e774c21e7fd03cb6 Binary files /dev/null and b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/90a370f755a476c7347fdb3e8fe0dff40dc8a348cb4292a7f4edb6a7f5ee34be.jpg differ diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg new file mode 100644 index 0000000000000000000000000000000000000000..77d9509c3c88e5fc38e3eb1e7d88dab79d452f47 --- /dev/null +++ b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/938fbc4e6a81d991cd4b47142dcf2da9a6449edb3901f2d7acde1129c9b499cc.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71b8a33acf98bd7059ef50abc62bb6843328ac09bf01dbbc9924e09d9541ab3a +size 325091 diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg new file mode 100644 index 0000000000000000000000000000000000000000..db805c2f69c85f730af6cd721583a52786e694f2 Binary files /dev/null and b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/a994d905e6d2712cc0e5d3588f7dd8a696cf7a5caa406a0a9222b92876dc93bb.jpg differ diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..35bf0a4b70c5fb982e75817512177defd2d3cca6 Binary files /dev/null and b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/b5c608f4aec81ddae00ccf0eb3f249720ce0501d1fb24d5dad4e65c07b7003b8.jpg differ diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6c8e538246912d6d7af07d3e422ebf0cc2fbd35f Binary files /dev/null and b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/bd034ce46572d9f34839b76b1aafa2a5d0b9b30308ee62d2e9e33bc8d2cb444f.jpg differ diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg new file mode 100644 index 0000000000000000000000000000000000000000..272ff1ea13a2dbf98717498a1fd4f91417625380 --- /dev/null +++ b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/d04b708c84d01cfb1c90d8a7a382f7676b2046fa69acca67fb9b9b6076e76060.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86283025b05afb09e1204921928be01b93214d021f5858a8b465e4467a866db9 +size 224700 diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3842d78b2ae939b8d5ef8e4a2874fca22f8303a3 Binary files /dev/null and b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/e25bfa95ce2e3960d0f27c66fde71b24a8ed5b523e3d582bc7f934501cda75f8.jpg differ diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..dcefe49c8c90aeecfc10d9faefb976b56796cc2a Binary files /dev/null and b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/ea640036fa010c4eecd507409364ad0a2ff1e45db44bc5fc1a0aae67c3b4e33c.jpg differ diff --git a/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1e52b7385279f68ce6ce3488bb820a064dd84666 Binary files /dev/null and b/backend/ingestion_pipeline/tests/test_output/Billing Dispute Adjustment Process Flow v2 2021 as of 24 Mar 2021_signatories (1)/auto/images/f87aab9f1b699cd7f72149180b02f0a63075fe4a34492f207cadab004589b7a9.jpg differ diff --git a/backend/ingestion_pipeline/tests/test_vlm_simple.py b/backend/ingestion_pipeline/tests/test_vlm_simple.py new file mode 100644 index 0000000000000000000000000000000000000000..993e4f34e4d1400f30ebc4d8a0c74b17bca7d44e --- /dev/null +++ b/backend/ingestion_pipeline/tests/test_vlm_simple.py @@ -0,0 +1,49 @@ +#!/usr/bin/env python3 +""" +Simple test to verify VLM enhancement parameter fix. +""" + +from pathlib import Path +from backend.ingestion_pipeline.pdf_to_enriched_semantic_chunks_pipeline import PDFToEnrichedMarkdownPipeline +import asyncio + +async def test_vlm_simple(): + """Test VLM enhancement with existing processed files.""" + + # Use the test output from the previous test + output_dir = Path("test_output") + + if not output_dir.exists(): + print("❌ No test output directory found. Run test_billing_only.py first.") + return False + + print(f"📁 Testing VLM enhancement on: {output_dir}") + + # Create pipeline instance with VLM enabled + pipeline = PDFToEnrichedMarkdownPipeline( + pdf_directory=Path("pdfs"), # Not used in this test + output_directory=output_dir, + enable_vlm=True, + enable_chunking=False + ) + + try: + print(f"🚀 Testing VLM enhancement...") + vlm_result = await pipeline.run_vlm_enhancement() + + if vlm_result: + print(f"✅ VLM enhancement completed successfully!") + return True + else: + print(f"❌ VLM enhancement failed") + return False + + except Exception as e: + print(f"❌ Error during VLM enhancement: {e}") + import traceback + traceback.print_exc() + return False + +if __name__ == "__main__": + success = asyncio.run(test_vlm_simple()) + print(f"\n🎯 VLM Test result: {'PASSED' if success else 'FAILED'}") \ No newline at end of file diff --git a/backend/ingestion_pipeline/utils/__init__.py b/backend/ingestion_pipeline/utils/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..07846d1982f516342c4ff216110cb7e5d38bf352 --- /dev/null +++ b/backend/ingestion_pipeline/utils/__init__.py @@ -0,0 +1,6 @@ +""" +Utils package for PDF to Enriched Markdown Pipeline. + +Contains utility classes and functions extracted from the main pipeline +to improve code organization and maintainability. +""" \ No newline at end of file diff --git a/backend/ingestion_pipeline/utils/file_management_utils.py b/backend/ingestion_pipeline/utils/file_management_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..b401036f1af94251a1e0a3a2933822c406f04d94 --- /dev/null +++ b/backend/ingestion_pipeline/utils/file_management_utils.py @@ -0,0 +1,227 @@ +""" +File Management Utilities + +Handles file operations, path validation, and filename management for the PDF pipeline. +Includes safe filename creation and path length validation for Windows compatibility. +""" + +import hashlib +import json +import shutil +import logging +from pathlib import Path +from typing import Dict, List, Tuple + + +class FileManagementUtils: + """Utility class for file management operations in the PDF pipeline.""" + + def __init__(self, filename_mapping_file: Path, logger: logging.Logger = None): + """ + Initialize file management utilities. + + Args: + filename_mapping_file: Path to the filename mapping JSON file + logger: Optional logger instance for structured logging + """ + self.filename_mapping_file = Path(filename_mapping_file) + self.filename_mapping = self._load_filename_mapping() + self.logger = logger or self._setup_default_logger() + + def _setup_default_logger(self) -> logging.Logger: + """Set up a default logger if none provided.""" + logger = logging.getLogger(__name__) + if not logger.handlers: + handler = logging.StreamHandler() + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.setLevel(logging.INFO) + return logger + + def _load_filename_mapping(self) -> Dict[str, str]: + """ + Load the filename mapping from JSON file. + + Returns: + Dict[str, str]: Mapping of safe filenames to original filenames + """ + if self.filename_mapping_file.exists(): + try: + with open(self.filename_mapping_file, 'r', encoding='utf-8') as f: + return json.load(f) + except Exception as e: + if hasattr(self, 'logger'): + self.logger.warning(f"Could not load filename mapping: {e}") + return {} + + def _save_filename_mapping(self): + """Save the filename mapping to JSON file.""" + try: + with open(self.filename_mapping_file, 'w', encoding='utf-8') as f: + json.dump(self.filename_mapping, f, indent=2, ensure_ascii=False) + except Exception as e: + self.logger.warning(f"Could not save filename mapping: {e}") + + def create_safe_filename(self, original_path: Path, max_length: int = 50) -> str: + """ + Create a safe filename that won't exceed Windows path limits. + + Args: + original_path: Original file path + max_length: Maximum filename length (excluding extension) + + Returns: + str: Safe filename + """ + original_name = original_path.stem + extension = original_path.suffix + + # If the name is already short enough, use it + if len(original_name) <= max_length: + return original_path.name + + # Create a shortened name with hash + hash_obj = hashlib.md5(original_name.encode('utf-8')) + hash_suffix = hash_obj.hexdigest()[:8] + + # Calculate how much space we have for the readable part + available_length = max_length - len(hash_suffix) - 1 # -1 for underscore + + if available_length > 0: + readable_part = original_name[:available_length] + readable_part = readable_part.rstrip(' .-_') + safe_name = f"{readable_part}_{hash_suffix}" + else: + safe_name = hash_suffix + + return f"{safe_name}{extension}" + + def validate_path_length(self, base_path: Path, filename: str) -> bool: + """ + Validate that the resulting path won't exceed Windows path limits. + + Args: + base_path: Base directory path + filename: Filename to check + + Returns: + bool: True if path is safe, False if too long + """ + # Calculate the full path that would be created + potential_path = base_path / filename / "auto" / "images" / ("a" * 64 + ".jpg") + + # Windows path limit is 260 characters + return len(str(potential_path)) < 250 # Leave some margin + + def copy_files_with_safe_names(self, pdf_files: List[Path], destination_dir: Path) -> Path: + """ + Copy PDF files to destination directory with safe filenames. + + Args: + pdf_files: List of PDF files to copy + destination_dir: Destination directory + + Returns: + Path: Destination directory path + """ + destination_dir.mkdir(parents=True, exist_ok=True) + + self.logger.info(f"Copying {len(pdf_files)} files to {destination_dir}") + + # Clear existing files + existing_files = list(destination_dir.glob("*.pdf")) + if existing_files: + self.logger.info(f"Clearing {len(existing_files)} existing PDF files") + for existing_file in existing_files: + existing_file.unlink() + + # Copy new files with safe filenames + for pdf_file in pdf_files: + # Check if we need to create a safe filename + if not self.validate_path_length(destination_dir.parent / "output", pdf_file.stem): + safe_filename = self.create_safe_filename(pdf_file) + self.logger.info(f"Creating safe filename: {pdf_file.name} -> {safe_filename}") + + # Store the mapping + self.filename_mapping[safe_filename] = pdf_file.name + destination = destination_dir / safe_filename + else: + destination = destination_dir / pdf_file.name + + shutil.copy2(pdf_file, destination) + self.logger.debug(f"Copied: {pdf_file.name} -> {destination.name}") + + # Save the filename mapping + if self.filename_mapping: + self._save_filename_mapping() + self.logger.info(f"Saved filename mappings for {len(self.filename_mapping)} files") + + return destination_dir + + def copy_output_with_restored_names(self, source_dir: Path, destination_dir: Path): + """ + Copy output files to destination with original filenames restored. + + Args: + source_dir: Source directory containing processed files + destination_dir: Final destination directory + """ + destination_dir.mkdir(parents=True, exist_ok=True) + + if not source_dir.exists(): + self.logger.warning(f"Source directory does not exist: {source_dir}") + return + + copied_count = 0 + for item in source_dir.iterdir(): + if item.is_dir(): + # Check if this directory name was mapped from a longer original name + original_name = None + for safe_name, orig_name in self.filename_mapping.items(): + safe_stem = Path(safe_name).stem + if safe_stem == item.name: + original_name = Path(orig_name).stem + break + + # Use original name if available, otherwise use current name + final_dir_name = original_name if original_name else item.name + destination = destination_dir / final_dir_name + + if original_name: + self.logger.info(f"Restoring directory name: {item.name} -> {final_dir_name}") + + if destination.exists(): + self.logger.debug(f"Removing existing destination: {destination}") + shutil.rmtree(destination) + + shutil.copytree(item, destination) + copied_count += 1 + + self.logger.debug(f"Copied directory: {item.name} -> {destination}") + + self.logger.info(f"Copied {copied_count} directories to {destination_dir}") + +# HELPER FUNCTIONS + +def find_pdf_files(pdf_directory: Path) -> List[Path]: + """ + Find all PDF files in the input directory. + + Args: + pdf_directory: Directory to search for PDF files + + Returns: + List[Path]: List of PDF file paths + + Raises: + ValueError: If directory doesn't exist or no PDFs found + """ + if not pdf_directory.exists(): + raise ValueError(f"PDF directory does not exist: {pdf_directory}") + + pdf_files = list(pdf_directory.glob("*.pdf")) + if not pdf_files: + raise ValueError(f"No PDF files found in {pdf_directory}") + + return pdf_files \ No newline at end of file diff --git a/backend/ingestion_pipeline/utils/mineru_processing_utils.py b/backend/ingestion_pipeline/utils/mineru_processing_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..8fe42e63cca37e99a6c1fdee2d1f8a9c492aadf2 --- /dev/null +++ b/backend/ingestion_pipeline/utils/mineru_processing_utils.py @@ -0,0 +1,170 @@ +""" +MinerU Processing Utilities + +Handles MinerU PDF processing operations including subprocess execution +and environment configuration for the PDF pipeline. +""" + +import os +import subprocess +import sys +import logging +from pathlib import Path +from typing import Dict, Any + + +class MinerUProcessingUtils: + """Utility class for MinerU processing operations.""" + + def __init__(self, mineru_script_path: Path, logger: logging.Logger = None): + """ + Initialize MinerU processing utilities. + + Args: + mineru_script_path: Path to the MinerU ingestor script + logger: Optional logger instance for structured logging + """ + self.mineru_script_path = Path(mineru_script_path) + self.logger = logger or self._setup_default_logger() + + def _setup_default_logger(self) -> logging.Logger: + """Set up a default logger if none provided.""" + logger = logging.getLogger(__name__) + if not logger.handlers: + handler = logging.StreamHandler() + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.setLevel(logging.INFO) + return logger + + def _prepare_environment(self) -> Dict[str, str]: + """ + Prepare environment variables for MinerU execution. + + Returns: + Dict[str, str]: Environment variables for subprocess + """ + env = os.environ.copy() + + # Remove problematic CUDA configuration if present + if 'PYTORCH_CUDA_ALLOC_CONF' in env: + del env['PYTORCH_CUDA_ALLOC_CONF'] + + # Set expandable segments for better memory management + env['PYTORCH_CUDA_ALLOC_CONF'] = 'expandable_segments:True' + + return env + + def run_mineru_processing(self) -> bool: + """ + Execute MinerU processing script. + + Returns: + bool: True if successful, False otherwise + """ + try: + if not self.mineru_script_path.exists(): + self.logger.error(f"MinerU script not found: {self.mineru_script_path}") + return False + + self.logger.info(f"Running MinerU script: {self.mineru_script_path}") + + # Prepare environment + env = self._prepare_environment() + + # Execute MinerU script + result = subprocess.run([ + sys.executable, str(self.mineru_script_path) + ], cwd=self.mineru_script_path.parent, env=env, capture_output=True, text=True) + + self.logger.info(f"MinerU return code: {result.returncode}") + + if result.stdout: + self.logger.debug(f"MinerU STDOUT: {result.stdout}") + if result.stderr: + self.logger.warning(f"MinerU STDERR: {result.stderr}") + + if result.returncode != 0: + self.logger.error(f"MinerU failed with return code: {result.returncode}") + return False + + self.logger.info("MinerU processing completed successfully") + return True + + except Exception as e: + self.logger.error(f"MinerU processing failed with exception: {e}") + return False + + def validate_mineru_output(self, output_directory: Path) -> bool: + """ + Validate that MinerU produced expected output. + + Args: + output_directory: Directory where MinerU should have created output + + Returns: + bool: True if output exists and looks valid, False otherwise + """ + if not output_directory.exists(): + self.logger.error(f"MinerU output directory does not exist: {output_directory}") + return False + + output_items = list(output_directory.iterdir()) + if not output_items: + self.logger.error(f"MinerU output directory is empty: {output_directory}") + return False + + self.logger.info(f"Found {len(output_items)} items in MinerU output") + + # Check for expected structure (directories with markdown files) + valid_directories = 0 + for item in output_items: + if item.is_dir(): + auto_dir = item / "auto" + if auto_dir.exists(): + md_files = list(auto_dir.glob("*.md")) + if md_files: + valid_directories += 1 + self.logger.debug(f"Valid directory found: {item.name} ({len(md_files)} markdown files)") + + if valid_directories == 0: + self.logger.warning("No valid directories with markdown files found in MinerU output") + return False + + self.logger.info(f"MinerU output validation passed: {valid_directories} valid directories") + return True + +# HELPER FUNCTIONS + +def cleanup_intermediate_files(directory: Path, logger: logging.Logger = None) -> None: + """ + Clean up intermediate files after processing. + + Args: + directory: Directory to clean up + logger: Optional logger for status messages + """ + if directory.exists(): + try: + import shutil + shutil.rmtree(directory) + if logger: + logger.info(f"Cleaned up intermediate files: {directory}") + except Exception as e: + if logger: + logger.warning(f"Failed to cleanup {directory}: {e}") + +def validate_mineru_dependencies() -> bool: + """ + Validate that MinerU dependencies are available. + + Returns: + bool: True if dependencies are available, False otherwise + """ + try: + # Check if the MinerU script exists + script_path = Path(__file__).parent.parent / "local_mineru" / "file_ingesting" / "mineru_ingestor.py" + return script_path.exists() + except Exception: + return False \ No newline at end of file diff --git a/backend/ingestion_pipeline/utils/vlm_enhancement_utils.py b/backend/ingestion_pipeline/utils/vlm_enhancement_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..e4de287e6bbea9f4a95afb2aa41b7b5eabb70636 --- /dev/null +++ b/backend/ingestion_pipeline/utils/vlm_enhancement_utils.py @@ -0,0 +1,313 @@ +""" +VLM Enhancement Utilities + +Handles VLM image enhancement processing for the PDF pipeline. +This utility creates a temporary VLM script and executes it with proper configuration. +""" + +import asyncio +import os +import subprocess +import sys +import logging +from pathlib import Path +from typing import Dict, Any + + +class VLMEnhancementUtils: + """Utility class for VLM enhancement processing.""" + + def __init__(self, output_directory: Path, logger: logging.Logger = None): + """ + Initialize VLM enhancement utilities. + + Args: + output_directory: Directory containing processed files to enhance + logger: Optional logger instance for structured logging + """ + self.output_directory = Path(output_directory) + self.logger = logger or self._setup_default_logger() + + def _setup_default_logger(self) -> logging.Logger: + """Set up a default logger if none provided.""" + logger = logging.getLogger(__name__) + if not logger.handlers: + handler = logging.StreamHandler() + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.setLevel(logging.INFO) + return logger + + def _create_vlm_script_content(self) -> str: + """ + Create the content for the temporary VLM script. + + Returns: + str: Complete VLM script content + """ + return f''' +import asyncio +import os +import sys +from pathlib import Path + +# Add the VLM directories to path - use absolute path resolution +script_dir = Path(__file__).parent +vlm_dir = script_dir / "local_mineru" / "vlm_enhancing" +components_dir = vlm_dir / "components" +models_dir = vlm_dir / "models" + +sys.path.insert(0, str(vlm_dir)) +sys.path.insert(0, str(components_dir)) +sys.path.insert(0, str(models_dir)) + +# Import components directly without using the main vlm_pipeline file +from image_extractor import ImageExtractor +from context_analyzer import ContextAnalyzer +from gemini_describer import GeminiDescriber +from markdown_enricher import MarkdownEnricher +from description_result import EnrichmentResult, ProcessingStatus + +# Import the VLMPipeline class by recreating it here to avoid relative import issues +import logging +from dataclasses import dataclass +from typing import List, Optional, Dict, Any + +@dataclass +class PipelineConfig: + """Configuration for the VLM enhancement pipeline.""" + + gemini_api_key: Optional[str] = None + gemini_model: str = "gemini-2.5-flash-lite" + backup_original_files: bool = True + max_concurrent_requests: int = 3 + skip_existing_descriptions: bool = True + log_level: str = "INFO" + +class VLMPipeline: + """Main pipeline orchestrator for VLM image enhancement.""" + + def __init__(self, config): + self.config = config + self.logger = self._setup_logging() + + # Initialize components + self.image_extractor = ImageExtractor(base_output_dir=Path()) + self.context_analyzer = ContextAnalyzer() + self.gemini_describer = GeminiDescriber( + api_key=config.gemini_api_key, + model=config.gemini_model + ) + self.markdown_enricher = MarkdownEnricher( + backup_original=config.backup_original_files + ) + + def _setup_logging(self): + logging.basicConfig( + level=getattr(logging, self.config.log_level), + format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' + ) + return logging.getLogger(__name__) + + async def process_directory(self, output_directory): + """Process all markdown files in the output directory.""" + output_directory = Path(output_directory) + + self.logger.info(f"Starting VLM enhancement for: {{output_directory}}") + + if not output_directory.exists(): + self.logger.error(f"Output directory does not exist: {{output_directory}}") + return {{'processed_files': 0, 'total_images': 0, 'successful_descriptions': 0, 'failed_descriptions': 0, 'skipped_descriptions': 0, 'errors': []}} + + # Find all markdown files with images + markdown_files_with_images = [] + for paper_dir in output_directory.iterdir(): + if paper_dir.is_dir(): + auto_dir = paper_dir / "auto" + if auto_dir.exists(): + for markdown_file in auto_dir.glob("*.md"): + markdown_files_with_images.append(markdown_file) + + self.logger.info(f"Found {{len(markdown_files_with_images)}} markdown files to process") + + results = {{'processed_files': 0, 'total_images': 0, 'successful_descriptions': 0, 'failed_descriptions': 0, 'skipped_descriptions': 0, 'errors': []}} + + for markdown_path in markdown_files_with_images: + try: + image_refs = self.image_extractor.extract_from_file(markdown_path) + + self.logger.info(f"Processing {{markdown_path}} with {{len(image_refs)}} images") + + if image_refs: + file_result = await self.process_single_file(markdown_path, image_refs) + + # Update results + results['processed_files'] += 1 + results['total_images'] += len(image_refs) + results['successful_descriptions'] += file_result.successful_descriptions + results['failed_descriptions'] += file_result.failed_descriptions + results['skipped_descriptions'] += file_result.skipped_descriptions + + self.logger.info(f"Completed {{markdown_path.name}}: {{file_result.summary()}}") + + except Exception as e: + error_msg = f"Error processing {{markdown_path}}: {{e}}" + results['errors'].append(error_msg) + self.logger.error(error_msg) + + # Print summary + total_processed = results['successful_descriptions'] + results['failed_descriptions'] + success_rate = (results['successful_descriptions'] / total_processed) if total_processed > 0 else 0 + + self.logger.info( + f"VLM enhancement complete: {{results['processed_files']}} files, " + f"{{results['successful_descriptions']}}/{{results['total_images']}} successful descriptions, " + f"{{success_rate:.1%}} success rate" + ) + + return results + + async def process_single_file(self, markdown_path, image_refs): + """Process a single markdown file with its image references.""" + markdown_path = Path(markdown_path) + + if not image_refs: + return EnrichmentResult(markdown_path, [], 0, 0, 0) + + # Validate image references + valid_refs, invalid_refs = self.image_extractor.validate_references(image_refs) + + if not valid_refs: + self.logger.info(f"No valid images found in {{markdown_path}}") + return EnrichmentResult(markdown_path, [], 0, 0, len(image_refs)) + + # Generate context for each valid image + image_contexts = [] + for ref in valid_refs: + context = self.context_analyzer.analyze_image_context(ref, markdown_path) + if context: + image_contexts.append(context) + + if not image_contexts: + self.logger.info(f"All images in {{markdown_path}} already have descriptions, skipping") + return EnrichmentResult(markdown_path, [], 0, 0, len(valid_refs)) + + # Generate descriptions using Gemini + description_results = await self.gemini_describer.describe_multiple_images(image_contexts) + + # Count successful and failed descriptions + successful_descriptions = [] + failed_descriptions = [] + + for context, result in description_results: + if hasattr(result, 'success') and result.success and hasattr(result, 'description') and result.description: + successful_descriptions.append((context, result)) + else: + failed_descriptions.append((context, result)) + + # Enrich the markdown file with descriptions + enrichment_result = self.markdown_enricher.enrich_file(markdown_path, successful_descriptions) + + return EnrichmentResult( + original_image_count=len(image_refs), + processed_image_count=len(image_contexts), + successful_descriptions=len(successful_descriptions), + failed_descriptions=len(failed_descriptions), + skipped_descriptions=0 + ) + +async def main(): + config = PipelineConfig( + gemini_model="gemini-2.5-flash-lite", + backup_original_files=True, + max_concurrent_requests=3, + skip_existing_descriptions=True, + log_level="INFO" + ) + + pipeline = VLMPipeline(config) + output_dir = Path("{str(self.output_directory).replace(chr(92), chr(92)+chr(92))}") + + if not output_dir.exists(): + return False + + results = await pipeline.process_directory(output_dir) + return True + +if __name__ == "__main__": + asyncio.run(main()) +''' + + async def run_vlm_enhancement(self) -> bool: + """ + Run VLM enhancement on the pipeline output. + + Returns: + bool: True if successful, False otherwise + """ + try: + self.logger.info(f"Setting up VLM enhancement for directory: {self.output_directory}") + + # Create temporary script content + script_content = self._create_vlm_script_content() + + # Write temporary script + temp_script_path = Path(__file__).parent.parent / "temp_vlm_runner.py" + with open(temp_script_path, 'w') as f: + f.write(script_content) + + try: + # Run the temporary script + self.logger.info(f"Running VLM enhancement script: {temp_script_path}") + env = os.environ.copy() + result = subprocess.run([ + sys.executable, str(temp_script_path) + ], cwd=temp_script_path.parent, env=env, capture_output=True, text=True) + + self.logger.info(f"VLM return code: {result.returncode}") + + if result.stdout: + self.logger.debug(f"VLM STDOUT: {result.stdout}") + if result.stderr: + self.logger.warning(f"VLM STDERR: {result.stderr}") + + if result.returncode == 0: + self.logger.info("VLM enhancement completed successfully") + return True + else: + self.logger.error(f"VLM enhancement failed with return code: {result.returncode}") + return False + + finally: + # Clean up temporary script + try: + temp_script_path.unlink() + except Exception as cleanup_error: + self.logger.warning(f"Failed to cleanup temp script: {cleanup_error}") + + except Exception as e: + self.logger.error(f"VLM enhancement failed with exception: {e}") + return False + +# HELPER FUNCTIONS + +def validate_vlm_dependencies() -> bool: + """ + Validate that VLM dependencies are available. + + Returns: + bool: True if dependencies are available, False otherwise + """ + try: + vlm_dir = Path(__file__).parent.parent / "local_mineru" / "vlm_enhancing" + required_components = ["image_extractor.py", "context_analyzer.py", "gemini_describer.py", "markdown_enricher.py"] + + components_dir = vlm_dir / "components" + for component in required_components: + if not (components_dir / component).exists(): + return False + + return True + except Exception: + return False \ No newline at end of file diff --git a/backend/search_engine/__init__.py b/backend/search_engine/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/backend/search_engine/models.py b/backend/search_engine/models.py new file mode 100644 index 0000000000000000000000000000000000000000..65e93a5d6e06e38f2a3060c8ae11ac7474b3eea3 --- /dev/null +++ b/backend/search_engine/models.py @@ -0,0 +1,18 @@ +""" +Basic data models for search engine retrieval. + +Contains simple structures to hold query and text response data. +""" + +from dataclasses import dataclass + + +@dataclass +class RetrievalResult: + """Simple structure to hold query and retrieved text data.""" + query: str + text: str + + def __init__(self, query: str, text: str): + self.query = query + self.text = text \ No newline at end of file diff --git a/backend/search_engine/retriver.py b/backend/search_engine/retriver.py new file mode 100644 index 0000000000000000000000000000000000000000..ed1827dd7e2a5860c25b3aba2c06d9d87937f514 --- /dev/null +++ b/backend/search_engine/retriver.py @@ -0,0 +1,126 @@ +""" +Simple retrieval engine that connects to LightRAG singleton. + +Returns basic query and text structure containing entities, relations, and chunks. +""" + +import json +import time +from datetime import datetime +from pathlib import Path +from lightrag.lightrag import QueryParam +from ..ingestion_pipeline.lightrag_instance.lightrag_singelton import LightRAGSingleton +from .models import RetrievalResult +import asyncio + +class RetrievalEngine: + """Basic retrieval engine using LightRAG singleton.""" + + def __init__(self): + self.singleton = LightRAGSingleton() + + async def retrieve(self, query: str, mode: str = "hybrid", top_k: int = 10, chunk_top_k: int = 4) -> RetrievalResult: + """ + Retrieve context from LightRAG and return as simple text structure. + + The text contains information about entities, relations, and chunks from the knowledge graph. + """ + start_time = time.time() + + rag_instance = await self.singleton.get_rag_instance() + rag_init_time = time.time() + + param = QueryParam( + mode=mode, + only_need_context=True, + top_k=top_k, + chunk_top_k=chunk_top_k, + ) + + query_start_time = time.time() + raw_context = await rag_instance.aquery(query, param=param) + query_end_time = time.time() + + total_time = time.time() - start_time + + # Calculate timing metrics + timing_metrics = { + "total_duration_seconds": round(total_time, 4), + "rag_initialization_seconds": round(rag_init_time - start_time, 4), + "query_execution_seconds": round(query_end_time - query_start_time, 4), + "start_timestamp": datetime.fromtimestamp(start_time).isoformat(), + "end_timestamp": datetime.fromtimestamp(time.time()).isoformat() + } + + result = RetrievalResult(query=query, text=raw_context) + self.save_retrieval_results_to_file(result, mode=mode, top_k=top_k, chunk_top_k=chunk_top_k, timing_metrics=timing_metrics) + print(f"[INFO] Retrieved {len(raw_context)} characters for query: {query} (took {total_time:.4f}s)") + + return result + + def save_retrieval_results_to_file(self, result: RetrievalResult, mode: str = "mix", top_k: int = 5, chunk_top_k: int = 2, timing_metrics: dict = None, output_dir: str = "./retrieval_logs") -> str: + """ + Save retrieval results to a timestamped file for observability. + + Creates a JSON file with the query, text, retrieval parameters, timing metrics, and metadata for debugging and analysis. + + Args: + result: The RetrievalResult to save + mode: Query mode used for retrieval + top_k: Top K value used for retrieval + chunk_top_k: Chunk top K value used for retrieval + timing_metrics: Dict containing timing information for the retrieval + output_dir: Directory to save the log files + + Returns: + str: Path to the saved file + """ + # Create output directory + Path(output_dir).mkdir(parents=True, exist_ok=True) + + # Generate timestamp-based filename with query parameters + timestamp = datetime.now().strftime("%Y%m%d_%H%M%S_%f")[:-3] # milliseconds + safe_query = "".join(c for c in result.query if c.isalnum() or c in (' ', '-', '_')).strip()[:50] + filename = f"retrieval_{timestamp}_{mode}_k{top_k}_ck{chunk_top_k}_{safe_query.replace(' ', '_')}.json" + file_path = Path(output_dir) / filename + + # Prepare data for saving + log_data = { + "timestamp": datetime.now().isoformat(), + "query": result.query, + "query_mode": mode, + "top_k": top_k, + "chunk_top_k": chunk_top_k, + "text_length": len(result.text), + "text_content": result.text, + "timing_metrics": timing_metrics or {}, + "metadata": { + "saved_at": datetime.now().isoformat(), + "file_path": str(file_path) + } + } + + # Save to file + with open(file_path, 'w', encoding='utf-8') as f: + json.dump(log_data, f, indent=2, ensure_ascii=False) + + print(f"[INFO] Retrieval results saved to: {file_path}") + return str(file_path) + +# Global instance to maintain singleton behavior +_global_retrieval_engine = None + +async def get_retrieval_engine() -> RetrievalEngine: + """Get or create global retrieval engine instance""" + global _global_retrieval_engine + if _global_retrieval_engine is None: + _global_retrieval_engine = RetrievalEngine() + return _global_retrieval_engine + +async def demo_query(): + retrieval_engine = await get_retrieval_engine() + result = await retrieval_engine.retrieve("History of lora and it's components?") + print(result) + +if __name__ == "__main__": + asyncio.run(demo_query()) \ No newline at end of file diff --git a/gradio_research_explorer.py b/gradio_research_explorer.py new file mode 100644 index 0000000000000000000000000000000000000000..99f127a3d573f0780d1c98f19cff28e1d60da339 --- /dev/null +++ b/gradio_research_explorer.py @@ -0,0 +1,424 @@ +""" +Gradio Web Interface for Research Exploration Engine. + +Interactive web-based interface for systematic research paper exploration +with real-time results display and downloadable outputs. +""" + +import gradio as gr +import asyncio +import json +import os +import zipfile +from pathlib import Path +from datetime import datetime +from typing import Dict, Any, List, Tuple, Optional +import sys + +# Add the backend to Python path +sys.path.append(str(Path(__file__).parent / "backend")) + +from backend.agentic_system.orchestrators.research_exploration_orchestrator_refactored import ResearchExplorationOrchestrator +from backend.agentic_system.orchestrators.research_exploration_schema import ResearchExplorationRequest +from backend.agentic_system.agents.question_generation_agent.question_generation_schema import QuestionCategory + + +class GradioResearchExplorer: + """Gradio interface wrapper for research exploration.""" + + def __init__(self): + """Initialize the Gradio research explorer.""" + # Use enhanced orchestrator with fallback retry and detailed answers enabled + self.orchestrator = ResearchExplorationOrchestrator( + enable_fallback_retry=True, + detailed_answers=True # Enable full detailed answers instead of summaries + ) + self.results_dir = Path("test_results/paper_exploration/gradio_sessions") + self.results_dir.mkdir(parents=True, exist_ok=True) + self.current_session_id = None + self.session_results = {} + + def start_new_session(self) -> str: + """Start a new exploration session.""" + self.current_session_id = datetime.now().strftime("%Y%m%d_%H%M%S") + self.session_results[self.current_session_id] = [] + return f"🚀 New session started: {self.current_session_id}" + + async def explore_topic_async( + self, + topic: str, + max_questions: int, + focus_categories: List[str], + include_summary: bool, + parallel_limit: int + ) -> Tuple[str, str, str, Optional[str]]: + """Async version of topic exploration for Gradio.""" + try: + if not self.current_session_id: + self.start_new_session() + + # Convert category strings to enums + category_map = {cat.value: cat for cat in QuestionCategory} + selected_categories = [category_map[cat] for cat in focus_categories if cat in category_map] + + # Create request + request = ResearchExplorationRequest( + topic=topic, + max_questions=max_questions, + focus_categories=selected_categories if selected_categories else None, + include_summary=include_summary, + parallel_limit=parallel_limit + ) + + # Execute exploration + start_time = datetime.now() + results = await self.orchestrator.explore_research_topic(request) + end_time = datetime.now() + processing_time = (end_time - start_time).total_seconds() + + # Save results + turn_data = { + "session_id": self.current_session_id, + "timestamp": start_time.isoformat(), + "topic": topic, + "max_questions": max_questions, + "focus_categories": focus_categories, + "processing_time_seconds": processing_time, + "results": self._serialize_results(results) + } + + # Add to session results + self.session_results[self.current_session_id].append(turn_data) + + # Save to file + result_file = self._save_results(turn_data) + + # Format outputs + summary_text = self._format_summary(results, processing_time) + detailed_text = self._format_detailed_results(results) + stats_text = self._format_statistics(results) + + return summary_text, detailed_text, stats_text, str(result_file) + + except Exception as e: + error_msg = f"❌ Exploration failed: {str(e)}" + return error_msg, "", "", None + + def explore_topic( + self, + topic: str, + max_questions: int, + focus_categories: List[str], + include_summary: bool, + parallel_limit: int + ) -> Tuple[str, str, str, Optional[str]]: + """Synchronous wrapper for Gradio.""" + loop = asyncio.new_event_loop() + asyncio.set_event_loop(loop) + try: + return loop.run_until_complete( + self.explore_topic_async(topic, max_questions, focus_categories, include_summary, parallel_limit) + ) + finally: + loop.close() + + def _format_summary(self, results, processing_time: float) -> str: + """Format exploration summary for display.""" + summary = f"""# 📊 Research Exploration Summary + +**Topic:** {results.topic} +**Processing Time:** {processing_time:.2f} seconds +**Success Rate:** {results.success_rate:.1%} + +## 📈 Statistics +- **Total Questions:** {results.total_questions} +- **Successfully Answered:** {results.successful_answers} +- **Failed Questions:** {results.failed_questions} +- **Categories Covered:** {len(results.category_results)} + +## 🎯 Key Insights +""" + + if results.key_insights: + for insight in results.key_insights: + summary += f"- {insight}\n" + + if results.research_summary: + summary += f"\n## 📄 Research Summary\n{results.research_summary}" + + return summary + + def _format_detailed_results(self, results) -> str: + """Format detailed Q&A results for display.""" + detailed = f"# 🔍 Detailed Results for: {results.topic}\n\n" + + for category_result in results.category_results: + if category_result.results: + detailed += f"## 📂 {category_result.category.value.upper()} Category\n" + detailed += f"**Questions Processed:** {category_result.questions_processed}\n" + detailed += f"**Successful Answers:** {category_result.successful_answers}\n\n" + + for i, result in enumerate(category_result.results, 1): + detailed += f"### Q{i}: {result.question.question}\n" + detailed += f"**Priority:** {result.question.priority}/10 | **Status:** {result.status}\n" + + if result.status == "completed" and result.answer: + detailed += f"**Answer:** {result.answer}\n" + if result.processing_time: + detailed += f"**Processing Time:** {result.processing_time:.2f}s\n" + elif result.status == "failed" and result.error_message: + detailed += f"**Error:** {result.error_message}\n" + + detailed += "\n---\n\n" + + return detailed + + def _format_statistics(self, results) -> str: + """Format statistics for display.""" + stats = f"""# 📊 Session Statistics + +## Overall Performance +- **Success Rate:** {results.success_rate:.1%} +- **Average Processing Time:** {(results.total_processing_time / results.total_questions):.2f}s per question +- **Total Processing Time:** {results.total_processing_time:.2f}s + +## Category Breakdown +""" + + for category_result in results.category_results: + success_rate = (category_result.successful_answers / category_result.questions_processed) * 100 + stats += f"- **{category_result.category.value.title()}:** {category_result.successful_answers}/{category_result.questions_processed} ({success_rate:.1f}%)\n" + + return stats + + def _serialize_results(self, results) -> Dict[str, Any]: + """Convert results to JSON-serializable format.""" + return { + "topic": results.topic, + "total_questions": results.total_questions, + "successful_answers": results.successful_answers, + "failed_questions": results.failed_questions, + "success_rate": results.success_rate, + "total_processing_time": results.total_processing_time, + "category_results": [ + { + "category": cat_result.category.value, + "questions_processed": cat_result.questions_processed, + "successful_answers": cat_result.successful_answers, + "results": [ + { + "question": { + "question": result.question.question, + "category": result.question.category.value, + "priority": result.question.priority, + "rationale": result.question.rationale + }, + "answer": result.answer, + "status": result.status, + "processing_time": result.processing_time, + "error_message": result.error_message, + "confidence_score": result.confidence_score + } for result in cat_result.results + ] + } for cat_result in results.category_results + ], + "key_insights": results.key_insights, + "research_summary": results.research_summary + } + + def _save_results(self, turn_data: Dict[str, Any]) -> Path: + """Save results to file and return file path.""" + timestamp = datetime.now().strftime("%Y%m%d_%H%M%S") + filename = f"exploration_{timestamp}_{self.current_session_id}.json" + filepath = self.results_dir / filename + + with open(filepath, 'w', encoding='utf-8') as f: + json.dump(turn_data, f, indent=2, ensure_ascii=False) + + return filepath + + def create_download_package(self) -> Optional[str]: + """Create a downloadable zip package of all session results.""" + if not self.current_session_id or self.current_session_id not in self.session_results: + return None + + zip_filename = f"research_exploration_{self.current_session_id}.zip" + zip_path = self.results_dir / zip_filename + + with zipfile.ZipFile(zip_path, 'w') as zipf: + session_data = self.session_results[self.current_session_id] + + # Add session summary + summary_data = { + "session_id": self.current_session_id, + "total_explorations": len(session_data), + "explorations": session_data + } + + summary_file = self.results_dir / f"session_summary_{self.current_session_id}.json" + with open(summary_file, 'w', encoding='utf-8') as f: + json.dump(summary_data, f, indent=2, ensure_ascii=False) + + zipf.write(summary_file, f"session_summary.json") + + # Add individual exploration files + for i, exploration in enumerate(session_data, 1): + filename = f"exploration_{i}_{exploration['topic'].replace(' ', '_')}.json" + temp_file = self.results_dir / filename + with open(temp_file, 'w', encoding='utf-8') as f: + json.dump(exploration, f, indent=2, ensure_ascii=False) + zipf.write(temp_file, filename) + temp_file.unlink() # Clean up temp file + + summary_file.unlink() # Clean up summary file + + return str(zip_path) + + +def create_gradio_interface(): + """Create and configure the Gradio interface.""" + explorer = GradioResearchExplorer() + + # Available categories for selection + categories = [cat.value for cat in QuestionCategory] + + with gr.Blocks( + title="Research Exploration Engine", + theme=gr.themes.Soft(), + css=""" + .gradio-container { + max-width: 1200px !important; + } + """ + ) as interface: + + gr.Markdown(""" + # 🧠 Research Exploration Engine + + Systematically explore research topics through AI-generated questions and comprehensive answers. + Each exploration generates focused questions, retrieves relevant information, and provides detailed insights. + """) + + with gr.Row(): + with gr.Column(scale=1): + gr.Markdown("## 🎯 Configuration") + + topic_input = gr.Textbox( + label="Research Topic", + placeholder="e.g., transformers in machine learning, quantum computing applications", + lines=2 + ) + + max_questions = gr.Slider( + minimum=2, + maximum=10, + value=2, + step=1, + label="Maximum Questions" + ) + + focus_categories = gr.CheckboxGroup( + choices=categories, + label="Focus Categories (optional)", + info="Leave empty for automatic category selection" + ) + + include_summary = gr.Checkbox( + value=True, + label="Include Research Summary" + ) + + parallel_limit = gr.Slider( + minimum=1, + maximum=10, + value=3, + step=1, + label="Parallel Processing Limit" + ) + + explore_btn = gr.Button("🔍 Explore Topic", variant="primary", size="lg") + new_session_btn = gr.Button("🚀 New Session", variant="secondary") + + with gr.Column(scale=2): + gr.Markdown("## 📊 Results") + + with gr.Tabs(): + with gr.TabItem("Summary"): + summary_output = gr.Markdown() + + with gr.TabItem("Detailed Results"): + detailed_output = gr.Markdown() + + with gr.TabItem("Statistics"): + stats_output = gr.Markdown() + + with gr.Row(): + with gr.Column(): + gr.Markdown("## 💾 Downloads") + download_file = gr.File(label="Latest Results (JSON)") + download_btn = gr.Button("📦 Create Session Package", variant="secondary") + session_package = gr.File(label="Complete Session Package (ZIP)") + + # Session status + session_status = gr.Textbox( + label="Session Status", + value="Click 'New Session' to start", + interactive=False + ) + + # Event handlers + new_session_btn.click( + fn=explorer.start_new_session, + outputs=session_status + ) + + explore_btn.click( + fn=explorer.explore_topic, + inputs=[ + topic_input, + max_questions, + focus_categories, + include_summary, + parallel_limit + ], + outputs=[ + summary_output, + detailed_output, + stats_output, + download_file + ] + ) + + download_btn.click( + fn=explorer.create_download_package, + outputs=session_package + ) + + # Examples + gr.Examples( + examples=[ + ["transformers in machine learning", 3, ["methodology", "innovation"], True, 3], + ["quantum computing applications", 2, ["applications", "future_directions"], True, 2], + ["federated learning privacy", 4, ["methodology", "limitations"], True, 4], + ["attention mechanisms in neural networks", 2, ["methodology", "comparison"], True, 2] + ], + inputs=[topic_input, max_questions, focus_categories, include_summary, parallel_limit] + ) + + return interface + + +if __name__ == "__main__": + # Create and launch the interface + interface = create_gradio_interface() + + print("🚀 Starting Research Exploration Gradio Interface...") + print("📁 Results will be saved to: test_results/paper_exploration/gradio_sessions/") + print("🌐 Access the interface in your browser") + + interface.launch( + server_name="0.0.0.0", + server_port=7860, + share=False, + debug=True + ) \ No newline at end of file diff --git a/launch_gradio.py b/launch_gradio.py new file mode 100644 index 0000000000000000000000000000000000000000..d4220b014188ffcb34d7f1d1b4f5db829463bca6 --- /dev/null +++ b/launch_gradio.py @@ -0,0 +1,39 @@ +""" +Launch script for the Research Exploration Gradio Interface. + +Simple launcher for the web-based research exploration tool. +""" + +if __name__ == "__main__": + print("🚀 Launching Research Exploration Web Interface...") + print("=" * 60) + print("This will start a web server for the research exploration tool.") + print("Features:") + print(" - Interactive research topic exploration") + print(" - Real-time question generation and answering") + print(" - Downloadable results (JSON & ZIP packages)") + print(" - Session management with full logging") + print(" - Default 2 questions per exploration") + print("=" * 60) + print("📁 Results saved to: test_results/paper_exploration/gradio_sessions/") + print("🌐 Interface will open in your browser automatically") + print("🛑 Press Ctrl+C to stop the server") + print("=" * 60) + + try: + from gradio_research_explorer import create_gradio_interface + + interface = create_gradio_interface() + interface.launch( + server_name="0.0.0.0", + server_port=7860, + share=True, + debug=False, + quiet=False, + ) + + except KeyboardInterrupt: + print("\n👋 Interface stopped by user") + except Exception as e: + print(f"❌ Error launching interface: {e}") + print("Make sure all dependencies are installed and the backend is properly configured.") \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000000000000000000000000000000000000..da98ca2159e5862fd88c527a05054cc333b1634c --- /dev/null +++ b/main.py @@ -0,0 +1,6 @@ +def main(): + print("Hello from paper-verifier!") + + +if __name__ == "__main__": + main() diff --git a/puml/complete_pipeline_architecture.puml b/puml/complete_pipeline_architecture.puml new file mode 100644 index 0000000000000000000000000000000000000000..98b2e42080c73dade7a3b044d4416469dc931e44 --- /dev/null +++ b/puml/complete_pipeline_architecture.puml @@ -0,0 +1,255 @@ +@startuml PDF to LightRAG Complete Architecture + +'================================================================' +' SKIN & STYLES ' +'================================================================' +!theme cerulean-outline + +skinparam { + BackgroundColor White + Shadowing false + ArrowColor #333333 + BorderColor #555555 + ActorBorderColor #555555 + ComponentBorderColor #0077B5 + DatabaseBorderColor #0077B5 + NoteBackgroundColor #F9F9F9 + NoteBorderColor #AAAAAA + NoteFontColor #333333 + LegendBorderColor #AAAAAA + LegendBackgroundColor #FFFFFF +} + +'-- Define stereotypes for different component types with icons +skinparam rectangle<> { + BackgroundColor #D1E8FF + BorderColor #0056b3 +} +skinparam rectangle<> { + BackgroundColor #D4EDDA + BorderColor #155724 +} +skinparam rectangle<> { + BackgroundColor #E2F0FF + BorderColor #007BFF +} +skinparam database<> { + BackgroundColor #FFF3CD + BorderColor #FFC107 +} +skinparam rectangle<> { + BackgroundColor #F8D7DA + BorderColor #DC3545 +} +skinparam rectangle<> { + BackgroundColor #E1F5FE + BorderColor #0277BD +} + +'-- Set diagram direction from top to bottom for pipeline flow +top to bottom direction + +'================================================================' +' COMPONENT DEFINITION ' +'================================================================' + +title **Complete PDF to LightRAG Ingestion Pipeline Architecture** + +'----------------------- Input Layer -----------------------' +package "📁 Input Layer" { + [PDF Files\n<&file-pdf>] as PDFs <> + note right of PDFs + **Source Documents** + - Research papers (2106.09685v2.pdf) + - Technical reports (Graph_RAG.pdf) + - Academic papers (2305.14314v1.pdf) + end note +} + +'----------------------- Stage 1: MinerU Processing -----------------------' +package "🔍 Stage 1: MinerU PDF Processing" #LightBlue { + [MinerU Ingestor\n<&cog>] as MinerU <> + note top of MinerU + **MinerU Engine** + - Parses PDF structure + - Extracts multi-modal content + - Handles tables, formulas, images + end note + + [Text Extractor] <> as TextExt + [Image Extractor] <> as ImgExt + [Table Processor] <> as TableProc + [Formula Processor] <> as FormulaProc + + database "Raw Output\n<&database>" as RawOutput <> { + [Raw Markdown] as RawMD + [Extracted Images] as RawImages + [Content JSON] as ContentJSON + } +} + +'----------------------- Stage 2: VLM Enhancement -----------------------' +package "🤖 Stage 2: VLM Image Enhancement" #LightGreen { + [VLM Pipeline\n<&cog>] as VLMPipeline <> + [Context Analyzer] <> as ContextAnalyzer + [Gemini Vision API\n<&cloud>] as GeminiAPI <> + [Markdown Enricher] <> as MDEnricher + + note top of GeminiAPI + **Gemini 2.5 Flash Lite** + - Analyzes images in context + - Generates AI descriptions + - Technical content understanding + end note + + database "Enhanced Output\n<&database>" as EnhancedOutput <> { + [Enhanced Markdown] as EnhancedMD + [AI Descriptions] as AIDesc + [Backup Files] as Backups + } +} + +'----------------------- Stage 3: Semantic Chunking -----------------------' +package "🧩 Stage 3: Semantic Chunking" #LightCyan { + [Semantic Chunker\n<&cog>] as SemanticChunker <> + [BGE Model\n<&cloud>] as BGEModel <> + + note top of BGEModel + **BAAI/bge-large-en-v1.5** + - Semantic understanding + - 1024-character chunks + - 128-character overlap + end note + + database "Chunked Output\n<&database>" as ChunkedOutput <> { + [Semantic Chunks JSON] as ChunksJSON + [Chunk Metadata] as ChunkMeta + [Processing Stats] as Stats + } +} + +'----------------------- Stage 4: LightRAG Ingestion -----------------------' +package "🧠 Stage 4: LightRAG Knowledge Graph" #LightPink { + [Chunk Ingestion Engine\n<&cog>] as IngestionEngine <> + [LightRAG Singleton\n<&database>] as LightRAGSingleton <> + + note top of LightRAGSingleton + **LightRAG System** + - PostgreSQL storage + - Knowledge graph construction + - Hybrid retrieval (local + global) + end note + + database "Knowledge Storage\n<&database>" as KnowledgeDB <> { + [Vector Storage] as VectorStore + [Graph Storage] as GraphStore + [Document Status] as DocStatus + } +} + +'----------------------- Query Interface -----------------------' +package "🔍 Query Interface" #LightYellow { + [PDF to LightRAG Pipeline\n<&cog>] as MasterPipeline <> + note bottom of MasterPipeline + **Master Orchestrator** + - Combines all stages + - Simple 2-step process + - Ready for intelligent queries + end note +} + +'================================================================' +' DATA FLOW ' +'================================================================' + +'-- Stage 1: MinerU Processing +PDFs --> MinerU : PDF bytes +MinerU --> TextExt : Document structure +MinerU --> ImgExt : Image streams +MinerU --> TableProc : Table data +MinerU --> FormulaProc : Mathematical content + +TextExt --> RawMD +ImgExt --> RawImages +TableProc --> RawMD +FormulaProc --> RawMD +MinerU --> ContentJSON + +'-- Stage 2: VLM Enhancement +RawImages --> ContextAnalyzer : Image files +RawMD --> ContextAnalyzer : Markdown with image refs + +ContextAnalyzer --> VLMPipeline : Image + context +VLMPipeline --> GeminiAPI : Vision requests +GeminiAPI --> VLMPipeline : AI descriptions +VLMPipeline --> MDEnricher : Enhanced content + +MDEnricher --> EnhancedMD +MDEnricher --> AIDesc +RawMD --> Backups + +'-- Stage 3: Semantic Chunking +EnhancedMD --> SemanticChunker : Enhanced markdown +SemanticChunker --> BGEModel : Semantic analysis +BGEModel --> SemanticChunker : Similarity scores +SemanticChunker --> ChunksJSON +SemanticChunker --> ChunkMeta +SemanticChunker --> Stats + +'-- Stage 4: LightRAG Ingestion +ChunksJSON --> IngestionEngine : Formatted chunks +IngestionEngine --> LightRAGSingleton : Batch insertion +LightRAGSingleton --> VectorStore : Embeddings +LightRAGSingleton --> GraphStore : Knowledge graph +LightRAGSingleton --> DocStatus : Processing status + +'-- Master Pipeline Orchestration +MasterPipeline -.-> MinerU : orchestrates +MasterPipeline -.-> VLMPipeline : orchestrates +MasterPipeline -.-> SemanticChunker : orchestrates +MasterPipeline -.-> IngestionEngine : orchestrates + +'================================================================' +' FILE STRUCTURE ' +'================================================================' + +note as FileStructure +**Key File Structure:** +├── pdfs/ (input) +│ ├── 2106.09685v2.pdf +│ ├── Graph_RAG.pdf +│ └── 2305.14314v1.pdf +├── output/ (enhanced markdown) +│ ├── 2106.09685v2/auto/ +│ ├── Graph_RAG/auto/ +│ └── 2305.14314v1/auto/ +├── chunked_output/ +│ └── semantic_chunks.json +└── rag_storage_configured/ (LightRAG) + ├── vector_storage/ + ├── graph_storage/ + └── doc_status/ +end note + +'================================================================' +' LEGEND ' +'================================================================' +legend right + | **Component Types** | | + | <&file-pdf> Input/Output | File System | + | <&cog> Processor | Processing Logic | + | <&database> DataStore | Storage Layer | + | <&cloud> API | External Service | + | | | + | **Processing Stages** | | + | 🔍 Stage 1 | MinerU PDF Processing | + | 🤖 Stage 2 | VLM Image Enhancement | + | 🧩 Stage 3 | Semantic Chunking | + | 🧠 Stage 4 | LightRAG Ingestion | + | | | + | **Data Flow** | | + | ──> | Primary Flow | + | -.-> | Orchestration | +endlegend + +@enduml diff --git a/puml/ingestion/complete_pipeline_overview.puml b/puml/ingestion/complete_pipeline_overview.puml new file mode 100644 index 0000000000000000000000000000000000000000..fcf9b5ee4813cf044d5169b40b743db43be4d200 --- /dev/null +++ b/puml/ingestion/complete_pipeline_overview.puml @@ -0,0 +1,152 @@ +@startuml Complete Pipeline Overview +!theme plain +title PDF to LightRAG Complete Pipeline Overview + +actor "User" as User +participant "pdf_to_light_rag.py" as MainPipeline +participant "Stage 1: PDF Discovery" as S1 +participant "Stage 2: MinerU Processing" as S2 +participant "Stage 3: VLM Enhancement" as S3 +participant "Stage 4: Semantic Chunking" as S4 +participant "Stage 5: LightRAG Ingestion" as S5 +participant "LightRAG Database" as DB + +note over User, DB + Complete PDF to LightRAG Pipeline + End-to-end automation from PDFs to queryable knowledge graph +end note + +User -> MainPipeline: run_complete_pipeline() +activate MainPipeline + +MainPipeline -> S1: stage_1_find_pdfs() +activate S1 + +note over S1 + 📋 STAGE 1: PDF Discovery + - Scan pdf directory + - Validate PDF files exist + - Log found files +end note + +S1 -> S1: Check if PDF directory exists +S1 -> S1: Scan for *.pdf files +S1 -> S1: Validate files found +S1 --> MainPipeline: List of PDF files + +deactivate S1 + +MainPipeline -> S2: stage_2_mineru_processing(pdf_files) +activate S2 + +note over S2 + 🔍 STAGE 2: MinerU Processing + - Copy PDFs to MinerU workspace + - Run MinerU extraction + - Generate markdown + images + - Copy results to output +end note + +S2 -> S2: Clear old PDFs from research_papers/ +S2 -> S2: Copy new PDFs to research_papers/ +S2 -> S2: Run MinerU subprocess +note right S2: Extracts text, images, tables, formulas +S2 -> S2: Verify MinerU output +S2 -> S2: Copy results to final output directory +S2 --> MainPipeline: Success/Failure status + +deactivate S2 + +alt if VLM enabled + MainPipeline -> S3: run_vlm_enhancement() + activate S3 + + note over S3 + 🎨 STAGE 3: VLM Enhancement (Optional) + - Find markdown files with images + - Extract image context + - Generate AI descriptions via Gemini + - Enrich markdown with descriptions + end note + + S3 -> S3: Scan for markdown files with images + S3 -> S3: Extract context around each image + S3 -> S3: Call Gemini API for descriptions + S3 -> S3: Replace image tags with enhanced versions + S3 --> MainPipeline: Enhancement results + + deactivate S3 +end + +MainPipeline -> S4: stage_3_semantic_chunking() +activate S4 + +note over S4 + 🧩 STAGE 3/4: Semantic Chunking + - Load enhanced markdown files + - Split into semantic chunks + - Add metadata and page info + - Save to semantic_chunks.json +end note + +S4 -> S4: Find all processed markdown files +S4 -> S4: Load page mappings from MinerU JSONs +S4 -> S4: Clean and normalize text +S4 -> S4: Split into sentences and group by similarity +S4 -> S4: Create chunks with rich metadata +S4 -> S4: Save to semantic_chunks.json +S4 --> MainPipeline: Chunking results + +deactivate S4 + +MainPipeline -> S5: stage_4_lightrag_ingestion() +activate S5 + +note over S5 + 🧠 STAGE 4/5: LightRAG Ingestion + - Load semantic chunks + - Initialize LightRAG instance + - Insert chunks in batches + - Build knowledge graph +end note + +S5 -> S5: Load semantic_chunks.json +S5 -> S5: Format chunks for LightRAG insertion +S5 -> S5: Initialize LightRAG singleton (sync) +S5 -> S5: Insert chunks in small batches +note right S5: Batch size: 5 to avoid conflicts + +loop for each batch + S5 -> DB: Insert chunk batch + DB --> S5: Insertion result + S5 -> S5: Small delay between batches +end + +S5 -> S5: Finalize LightRAG instance +S5 --> MainPipeline: Ingestion results + +deactivate S5 + +MainPipeline -> MainPipeline: Log final success +MainPipeline --> User: 🎉 Pipeline completed successfully + +note over User + Result: Knowledge Graph Ready + - All PDFs processed and ingested + - Queryable via LightRAG + - Rich metadata preserved + - Images enhanced with AI descriptions +end note + +deactivate MainPipeline + +note over User, DB + Pipeline Outputs: + 1. Structured markdown files (output/) + 2. Extracted images with AI descriptions + 3. Semantic chunks with metadata (chunked_output/) + 4. Knowledge graph in PostgreSQL database + 5. Ready for RAG queries +end note + +@enduml \ No newline at end of file diff --git a/puml/ingestion/complete_pipeline_with_solutions.puml b/puml/ingestion/complete_pipeline_with_solutions.puml new file mode 100644 index 0000000000000000000000000000000000000000..b7f552e00599f5f61fa28fdc49fbc9b74cb6192c --- /dev/null +++ b/puml/ingestion/complete_pipeline_with_solutions.puml @@ -0,0 +1,32 @@ +@startuml + +participant User +participant Orchestrator +participant PathValidator +participant "Filename Mapper" as FilenameMapper +participant "MinerU Processor" as MinerU +participant "VLM Enhancer" as VLM +participant "Markdown Enricher" as Enricher + +User -> Orchestrator: Process PDF Request + +Orchestrator -> PathValidator: Validate path length +PathValidator -> FilenameMapper: Create safe filename (if path is too long) +FilenameMapper --> PathValidator: Return safe path +PathValidator --> Orchestrator: Return path + +Orchestrator -> MinerU: Extract content and images +MinerU --> Orchestrator: Return markdown and image references + +Orchestrator -> VLM: Enhance images with descriptions +VLM --> Orchestrator: Return image descriptions + +Orchestrator -> Enricher: Add descriptions to markdown file +Enricher --> Orchestrator: Return enrichment results + +Orchestrator -> FilenameMapper: Update final mapping (if needed) +FilenameMapper --> Orchestrator: Confirm mapping update + +Orchestrator --> User: Return enriched markdown and report + +@enduml \ No newline at end of file diff --git a/puml/ingestion/complex_pdf_challenges_and_solutions.puml b/puml/ingestion/complex_pdf_challenges_and_solutions.puml new file mode 100644 index 0000000000000000000000000000000000000000..29725184265c8141c15e226219fefce0692154b3 --- /dev/null +++ b/puml/ingestion/complex_pdf_challenges_and_solutions.puml @@ -0,0 +1,41 @@ +@startuml Complex PDF Processing Challenges and Solutions + +title Complex PDF Processing: Key Challenges and Solutions Overview + +object "Windows Path Length Issue" as Challenge1 { + Problem: 280+ character filenames exceed Windows 260-char limit + Solution: MD5 hashing with JSON mapping system + Result: Any filename length now supported +} + +object "VLM Import Failures" as Challenge2 { + Problem: Relative import errors in temporary scripts + Solution: Self-contained script architecture + Result: Zero import errors, reliable execution +} + +object "Limited VLM Capability" as Challenge3 { + Problem: Basic 500-token descriptions insufficient + Solution: Enhanced to 10,000 tokens with professional framework + Result: 8-15 sentence technical documentation quality +} + +object "Markdown Duplication" as Challenge4 { + Problem: Descriptions appeared twice (alt text + separate line) + Solution: Clean format with descriptions only in alt text + Result: Professional, accessible markdown output +} + +object "Success Metrics" as Results { + ✅ Billing PDF with 14 images processed successfully + ✅ 20x improvement in description detail + ✅ 100% filename compatibility achieved + ✅ Professional documentation quality +} + +Challenge1 --> Results +Challenge2 --> Results +Challenge3 --> Results +Challenge4 --> Results + +@enduml \ No newline at end of file diff --git a/puml/ingestion/error_resolution_patterns.puml b/puml/ingestion/error_resolution_patterns.puml new file mode 100644 index 0000000000000000000000000000000000000000..2e8a37a441e21830e3a65cb8b8035f952374b1da --- /dev/null +++ b/puml/ingestion/error_resolution_patterns.puml @@ -0,0 +1,51 @@ +@startuml Error Resolution Patterns + +title Error Resolution Patterns for Complex PDF Processing + +object "Import Errors" as ImportError { + Problem: Relative import failures in temporary scripts + Solution: Self-contained script architecture + Pattern: Replace relative imports with absolute paths +} + +object "Path Length Errors" as PathError { + Problem: Windows 260-character limit exceeded + Solution: MD5 hashing with filename mapping + Pattern: Generate safe names, preserve originals +} + +object "Method Resolution Errors" as MethodError { + Problem: Method name mismatches between components + Solution: Progressive method resolution + Pattern: Check method existence before calling +} + +object "VLM Processing Errors" as VLMError { + Problem: Silent failures and API rate limits + Solution: Retry logic with exponential backoff + Pattern: Comprehensive logging and error tracking +} + +object "Best Practices" as BestPracticas { + Proactive Prevention: + • Input validation before processing + • Environment checks (API keys, connectivity) + • Path length validation + + Error Recovery: + • Retry mechanisms with backoff + • Graceful degradation patterns + • State preservation and rollback + + Debugging Support: + • Structured logging with emojis + • Progress tracking and metrics + • Detailed error messages +} + +ImportError --> BestPracticas +PathError --> BestPracticas +MethodError --> BestPracticas +VLMError --> BestPracticas + +@enduml \ No newline at end of file diff --git a/puml/ingestion/mineru_processing_sequence_Stage2.puml b/puml/ingestion/mineru_processing_sequence_Stage2.puml new file mode 100644 index 0000000000000000000000000000000000000000..b6de4ccda10dfac549235436d4416548457ffbc6 --- /dev/null +++ b/puml/ingestion/mineru_processing_sequence_Stage2.puml @@ -0,0 +1,137 @@ +@startuml MinerU Processing Sequence +!theme plain +title MinerU PDF Processing Stage Sequence + +actor "Pipeline Orchestrator" as PO +participant "PDFToEnrichedMarkdownPipeline" as Pipeline +participant "FileSystem" as FS +participant "MinerU Process" as MU +participant "MinerU Script" as MS + +note over PO, MS + Stage 2: MinerU PDF Processing + Extract text, images, tables, and formulas from PDFs + Convert to structured markdown with images +end note + +PO -> Pipeline: run_mineru_processing(pdf_files) +activate Pipeline + +Pipeline -> FS: Create research_papers directory +FS --> Pipeline: Directory created + +Pipeline -> FS: Clear existing PDF files +loop for each existing PDF + Pipeline -> FS: Delete old PDF file + FS --> Pipeline: File deleted +end + +Pipeline -> FS: Copy new PDFs to research_papers +loop for each PDF file + Pipeline -> FS: Copy PDF to research_papers/ + FS --> Pipeline: PDF copied + Pipeline -> Pipeline: Log copied file +end + +Pipeline -> FS: Verify PDFs are in place +FS --> Pipeline: List of final PDF files + +note over Pipeline + Environment setup: + - PYTORCH_CUDA_ALLOC_CONF='expandable_segments:True' + - Working directory: mineru_script.parent +end note + +Pipeline -> MU: subprocess.run([python, mineru_ingestor.py]) +activate MU + +note over MU: MinerU subprocess runs independently +MU -> MS: Execute mineru_ingestor.py +activate MS + +MS -> FS: Read PDFs from research_papers/ +FS --> MS: PDF file data + +loop for each PDF + MS -> MS: PDF Analysis + note right MS + 1. Extract text blocks + 2. Identify images/figures + 3. Extract tables + 4. Process formulas/equations + 5. Maintain layout structure + end note + + MS -> FS: Create output directory structure + FS --> MS: Directories created + + MS -> FS: Save extracted images + FS --> MS: Images saved to images/ + + MS -> FS: Generate markdown file + FS --> MS: Markdown with image references + + note over MS + Output structure: + paper_name/ + ├── paper_name.md + └── images/ + ├── image_1.jpg + ├── image_2.jpg + └── ... + end note +end + +MS --> MU: Processing completed +deactivate MS + +MU --> Pipeline: Return code, stdout, stderr +deactivate MU + +Pipeline -> Pipeline: Check return code +alt if return_code == 0 + Pipeline -> Pipeline: Log success + + Pipeline -> FS: Check MinerU output directory + FS --> Pipeline: List of output items + + Pipeline -> Pipeline: Log output structure + loop for each output directory + Pipeline -> FS: List contents of paper directory + FS --> Pipeline: Markdown + images directory + Pipeline -> Pipeline: Log directory contents + end + + Pipeline -> Pipeline: copy_mineru_output_to_destination() + + Pipeline -> FS: Create final output directory + FS --> Pipeline: Directory ready + + loop for each paper output directory + Pipeline -> FS: Copy paper directory to final output + FS --> Pipeline: Directory copied + + Pipeline -> FS: Verify copied contents + FS --> Pipeline: List of copied files + Pipeline -> Pipeline: Log verification + end + + Pipeline --> PO: True (success) + +else return_code != 0 + Pipeline -> Pipeline: Log error details + Pipeline -> Pipeline: Log stderr content + Pipeline --> PO: False (failed) +end + +note over PO + MinerU Output: + - Structured markdown files + - Extracted images in images/ subdirectories + - Preserved document layout and structure + - Ready for VLM enhancement +end note + +deactivate Pipeline + +@enduml \ No newline at end of file diff --git a/puml/ingestion/pdf_discovery_sequence_Stage1.puml b/puml/ingestion/pdf_discovery_sequence_Stage1.puml new file mode 100644 index 0000000000000000000000000000000000000000..563c4144a29ddbe91e13181b57df35dcdcca2028 --- /dev/null +++ b/puml/ingestion/pdf_discovery_sequence_Stage1.puml @@ -0,0 +1,72 @@ +@startuml PDF Discovery Sequence +!theme plain +title PDF Discovery Stage Sequence + +actor "Pipeline Orchestrator" as PO +participant "SynchronousPDFToLightRAGPipeline" as Pipeline +participant "FileSystem" as FS + +note over PO, FS + 📋 STAGE 1: PDF Discovery + Find and validate all PDF files in the source directory + Prepare file list for MinerU processing +end note + +PO -> Pipeline: stage_1_find_pdfs() +activate Pipeline + +Pipeline -> Pipeline: log_stage("📋 STAGE 1:", "Finding PDFs") + +Pipeline -> FS: Check if pdf_directory exists +note right Pipeline: self.pdf_directory = Path(pdf_directory) + +alt if directory exists + FS --> Pipeline: Directory exists + + Pipeline -> FS: Scan directory for *.pdf files + note right Pipeline: pdf_files = list(self.pdf_directory.glob("*.pdf")) + + FS --> Pipeline: List of PDF file paths + + alt if PDF files found + Pipeline -> Pipeline: Log found files count + note right Pipeline: print(f"🔍 Found {len(pdf_files)} PDF files:") + + loop for each PDF file + Pipeline -> Pipeline: Log individual file + note right Pipeline: print(f" • {pdf_file.name}") + end + + Pipeline --> PO: List of valid PDF files + + else no PDF files found + Pipeline -> Pipeline: Raise ValueError + note right Pipeline: raise ValueError(f"No PDF files found in {self.pdf_directory}") + + Pipeline --> PO: Exception: No PDFs found + end + +else directory doesn't exist + FS --> Pipeline: Directory not found + + Pipeline -> Pipeline: Raise ValueError + note right Pipeline: raise ValueError(f"PDF directory does not exist: {self.pdf_directory}") + + Pipeline --> PO: Exception: Directory not found +end + +note over PO + Stage 1 Results: + - Validated PDF directory exists + - Found and logged all PDF files + - Returned list for next stage + + Common Issues: + - Wrong directory path + - No PDF files in directory + - Permission issues reading directory +end note + +deactivate Pipeline + +@enduml \ No newline at end of file diff --git a/puml/ingestion/semantic_chunking_sequence_Stage4.puml b/puml/ingestion/semantic_chunking_sequence_Stage4.puml new file mode 100644 index 0000000000000000000000000000000000000000..98666d75a6235f153a5076598e0e4ca1096a9fac --- /dev/null +++ b/puml/ingestion/semantic_chunking_sequence_Stage4.puml @@ -0,0 +1,155 @@ +@startuml Semantic Chunking Sequence +!theme plain +title Semantic Chunking Stage Sequence + +actor "Pipeline Orchestrator" as PO +participant "PDFToEnrichedMarkdownPipeline" as Pipeline +participant "SemanticChunker" as SC +participant "FileSystem" as FS +participant "SentenceTransformer" as ST +participant "ChunkMetadata" as CM + +note over PO, CM + Stage 4: Semantic Chunking + Split enhanced markdown into semantic chunks + with embeddings and metadata for LightRAG +end note + +PO -> Pipeline: run_semantic_chunking() +activate Pipeline + +Pipeline -> SC: SemanticChunker(chunk_size=1024, overlap=128) +activate SC + +SC -> ST: Load SentenceTransformer('BAAI/bge-large-en-v1.5') +ST --> SC: Model loaded + +SC --> Pipeline: Chunker initialized + +Pipeline -> FS: Create chunked_output directory +FS --> Pipeline: Directory created + +Pipeline -> SC: process_output_directory(output_dir, chunks_output_path) + +SC -> FS: Find all *.md files (excluding .backup) +FS --> SC: List of markdown files + +SC -> SC: Log found files count + +loop for each markdown file + SC -> SC: process_markdown_file(md_file) + + SC -> FS: Read markdown file content + FS --> SC: Raw markdown content + + SC -> SC: Extract source name (filename without extension) + + SC -> SC: chunk_text_with_metadata(content, source_name, file_path) + + SC -> SC: _load_page_mapping(file_path) + note right SC + Load page mapping from MinerU's + content_list.json file for + accurate page indexing + end note + + SC -> FS: Read {filename}_content_list.json + alt if JSON exists + FS --> SC: Page mapping data + SC -> SC: Build character position to page mapping + else JSON not found + FS --> SC: File not found + SC -> SC: Use empty page mapping + end + + SC -> SC: _clean_text(content) + note right SC + 1. Remove excessive whitespace + 2. Replace image tags with [IMAGE] + 3. Normalize markdown structure + end note + + SC -> SC: _split_into_sentences(cleaned_text) + note right SC + 1. Split by paragraphs (\n\n) + 2. Split paragraphs by sentences + 3. Preserve structure + end note + + SC -> SC: _group_sentences_into_chunks(sentences) + + loop for each sentence + alt if current_chunk + sentence > chunk_size + SC -> SC: Save current chunk + + alt if overlap > 0 + SC -> SC: _get_overlap_text(current_chunk, overlap) + SC -> SC: Start new chunk with overlap + sentence + else no overlap + SC -> SC: Start new chunk with sentence + end + else chunk not full + SC -> SC: Add sentence to current chunk + end + end + + SC -> SC: Filter out chunks < 50 characters + + loop for each chunk text + SC -> CM: Create ChunkMetadata + + CM -> CM: Calculate positions and page index + note right CM + - source_file + - chunk_index + - chunk_id (auto-generated) + - start/end positions + - page_index (from mapping) + - word/char counts + end note + + CM --> SC: Metadata object + + SC -> SC: Create Chunk(content, metadata) + end + + SC -> SC: Convert chunks to dictionary format + + SC -> SC: Create file result with statistics + note right SC + Result includes: + - Source file name + - Total chunks count + - Original content length + - Chunks data + - Metadata (chunk_size, overlap, avg length) + end note + + SC -> SC: Update totals (files, chunks) + SC -> SC: Log processing complete for file +end + +SC -> SC: Create summary with statistics + +SC -> FS: Save results to semantic_chunks.json +FS --> SC: File saved + +SC -> SC: Log final summary + +SC --> Pipeline: Processing results + +Pipeline --> PO: True (success) + +note over PO + Output: semantic_chunks.json + Contains: + - All chunks with rich metadata + - Page information from MinerU + - Statistics and summaries + - Ready for LightRAG ingestion +end note + +deactivate SC +deactivate Pipeline + +@enduml \ No newline at end of file diff --git a/puml/ingestion/vlm_enhancement_sequence_Stage_3.puml b/puml/ingestion/vlm_enhancement_sequence_Stage_3.puml new file mode 100644 index 0000000000000000000000000000000000000000..724c76c2a7403a923c0fb95027679a126c405a97 --- /dev/null +++ b/puml/ingestion/vlm_enhancement_sequence_Stage_3.puml @@ -0,0 +1,130 @@ +@startuml VLM Enhancement Sequence +!theme plain +title VLM Enhancement Pipeline Sequence + +actor "Pipeline Orchestrator" as PO +participant "VLMPipeline" as VLM +participant "ImageExtractor" as IE +participant "ContextAnalyzer" as CA +participant "GeminiDescriber" as GD +participant "MarkdownEnricher" as ME +participant "Gemini API" as GAPI +participant "FileSystem" as FS + +note over PO, FS + VLM Enhancement Stage: + Process MinerU output markdown files and + enhance them with AI-generated image descriptions +end note + +PO -> VLM: process_directory(output_directory) +activate VLM + +VLM -> IE: extract_from_directory(output_directory) +activate IE + +IE -> FS: Find all *.md files +FS --> IE: List of markdown files + +loop for each markdown file + IE -> FS: Read markdown content + FS --> IE: File content + + IE -> IE: Extract image references\nusing regex pattern + note right: Pattern: ![alt](images/filename) + + IE --> VLM: yield (markdown_path, image_refs) +end + +deactivate IE + +loop for each file with images + VLM -> VLM: _process_single_file(markdown_path, image_refs) + + VLM -> IE: validate_references(image_refs) + activate IE + + loop for each image reference + IE -> FS: Check if image file exists + FS --> IE: File exists status + end + + IE --> VLM: (valid_refs, invalid_refs) + deactivate IE + + alt if valid images found + VLM -> CA: analyze_multiple_images(valid_refs, markdown_path) + activate CA + + CA -> FS: Read markdown content around images + FS --> CA: Context text (before/after image) + + CA -> CA: Extract context for each image + note right: Get surrounding paragraphs\nand section headers + + CA --> VLM: List of ImageContext objects + deactivate CA + + VLM -> GD: describe_multiple_images(image_contexts) + activate GD + + note over GD: Process up to 5 images concurrently\nusing asyncio.Semaphore + + loop for each image (concurrent) + GD -> FS: Read image file as bytes + FS --> GD: Image data + + GD -> GD: Format prompt with context + + GD -> GAPI: generate_content(image + prompt) + activate GAPI + + GAPI --> GD: AI-generated description + deactivate GAPI + + note over GD: Retry logic: 3 attempts\nwith exponential backoff + end + + GD --> VLM: List of (ImageContext, DescriptionResult) + deactivate GD + + VLM -> ME: enrich_file(markdown_path, description_results) + activate ME + + alt if backup_original_files enabled + ME -> FS: Create backup of original markdown + FS --> ME: Backup created + end + + ME -> FS: Read original markdown content + FS --> ME: Original content + + ME -> ME: Replace image tags with enhanced versions + note right: ![alt](images/file.jpg)\n↓\n![alt: AI description](images/file.jpg) + + ME -> FS: Write enhanced markdown + FS --> ME: File written + + ME --> VLM: EnrichmentResult with statistics + deactivate ME + + else no valid images + VLM -> VLM: Create empty EnrichmentResult + end + + VLM -> VLM: Update overall statistics +end + +VLM --> PO: Processing results and statistics + +note over PO + Results include: + - Files processed + - Total images found + - Successful/failed descriptions + - Error details +end note + +deactivate VLM + +@enduml \ No newline at end of file diff --git a/puml/paper_analysis/README.md b/puml/paper_analysis/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d2024cff8a34b3cf04cb1dae723d626023cd6b6f --- /dev/null +++ b/puml/paper_analysis/README.md @@ -0,0 +1,167 @@ +# Research Paper Analysis Architecture Documentation + +This directory contains comprehensive PlantUML documentation for the Research Paper Exploration Engine - a systematic approach to understanding research papers through automated question generation and parallel QA workflows. + +## 📋 Documentation Overview + +### 🏗️ Architecture Diagrams + +#### `research_exploration_architecture.puml` +**Complete system architecture** showing all components, relationships, and data flows. +- **Question Generation Agent** with research methodology framework +- **Enhanced QA Workflow** with mode preservation +- **Results Organization** and presentation system +- **Schema definitions** for all data structures + +#### `research_exploration_overview.puml` +**High-level system overview** focusing on user experience and value proposition. +- Input → Processing → Output flow +- Integration with existing systems +- Key benefits and capabilities +- Research-grade output features + +### 🔄 Process Flow Diagrams + +#### `research_exploration_sequence.puml` +**Detailed sequence diagram** showing the complete workflow from user request to final results. +- Phase 1: Question Generation +- Phase 2: Parallel Question Processing (with local mode) +- Phase 3: Results Organization +- Phase 4: Summary Generation +- Error handling and timeout management + +#### `mode_configuration_flow.puml` +**Mode configuration system** comparing research exploration vs normal QA workflows. +- Local mode injection for controlled verbosity +- Strategy node enhancement for mode preservation +- Backward compatibility maintenance +- Performance optimization for parallel processing + +### 📚 Framework Documentation + +#### `question_generation_framework.puml` +**Research question generation methodology** based on academic frameworks. +- 10 question categories (OVERVIEW, METHODOLOGY, INNOVATION, etc.) +- Priority system (1-10 scale) +- Quality guidelines and best practices +- Academic rigor standards + +## 🎯 Key Architectural Innovations + +### 1. **Mode Preservation System** +The strategy node was enhanced to preserve pre-set retrieval modes instead of hardcoding "hybrid": + +```python +# Before: Always hardcoded +"mode": "hybrid" + +# After: Preserves existing mode +existing_mode = state.get("retrieval_params", {}).get("mode", "hybrid") +"mode": existing_mode +``` + +### 2. **Local Mode for Research Exploration** +Research orchestrator injects "local" mode for controlled verbosity: + +```python +retrieval_params = { + "mode": "local", # Controlled output + "top_k": 2, # Optimized for parallel + "chunk_top_k": 2 # Focused context +} +``` + +### 3. **Parallel Question Processing** +Systematic processing of multiple research questions: +- Semaphore-controlled concurrency (default: 5 parallel) +- Per-question timeout handling (default: 120s) +- Comprehensive error recovery +- Progress tracking and monitoring + +### 4. **Research Methodology Framework** +Academic-grade question generation: +- 10 systematic question categories +- Priority-based question ranking +- Quality assurance guidelines +- Balanced coverage across research aspects + +## 🔧 Integration Points + +### **Existing QA Workflow** +- ✅ **Preserved:** Normal single-question workflows unchanged +- ✅ **Enhanced:** Strategy node now supports mode preservation +- ✅ **Optimized:** Fetching node respects mode parameters + +### **LightRAG Engine** +- ✅ **Local Mode:** Controlled verbosity for parallel processing +- ✅ **Performance:** Optimized retrieval parameters +- ✅ **Compatibility:** All existing modes still supported + +### **State Management** +- ✅ **Extended:** WorkflowState supports mode preservation +- ✅ **Flexible:** Configurable retrieval parameters +- ✅ **Robust:** Error handling and recovery + +## 📊 Performance Characteristics + +### **Research Exploration Mode** +- **Verbosity:** Controlled (local mode) +- **Parallelism:** Up to 10 concurrent questions +- **Speed:** Optimized for batch processing +- **Quality:** Maintained through strategy analysis + +### **Normal QA Mode** +- **Verbosity:** Comprehensive (hybrid mode) +- **Focus:** Single question deep-dive +- **Detail:** Maximum context and analysis +- **Quality:** Full strategy optimization + +## 🚀 Usage Examples + +### **Quick Research Exploration** +```python +orchestrator = ResearchExplorationOrchestrator() +results = await orchestrator.quick_exploration( + topic="transformers in machine learning", + max_questions=10 +) +``` + +### **Focused Category Analysis** +```python +request = ResearchExplorationRequest( + topic="LoRA adaptation", + focus_categories=[QuestionCategory.METHODOLOGY, QuestionCategory.INNOVATION], + max_questions=8, + parallel_limit=3 +) +results = await orchestrator.explore_research_topic(request) +``` + +## 📈 Future Enhancements + +Based on this architecture, planned extensions include: +- **Citation Network Analysis** - Automatic reference mapping +- **Multi-Paper Comparison** - Side-by-side analysis capabilities +- **Reproducibility Validation** - Code/data availability checking +- **Statistical Significance Detection** - Automated metric extraction + +## 🛠️ Development Notes + +### **Code Organization** +``` +backend/agentic_system/ +├── agents/question_generation_agent/ # Question generation +├── orchestrators/ # Research orchestration +├── graphs/qa_workflow.py # Enhanced workflow +├── nodes/ # Mode-aware nodes +└── presentation/ # Results formatting +``` + +### **Testing** +- `test_research_exploration.py` - Comprehensive test suite +- Question generation testing +- Complete workflow validation +- Performance benchmarking + +This architecture provides a robust foundation for systematic research paper analysis while maintaining full backward compatibility with existing QA workflows. \ No newline at end of file diff --git a/puml/paper_analysis/question_generation_framework.puml b/puml/paper_analysis/question_generation_framework.puml new file mode 100644 index 0000000000000000000000000000000000000000..3931e4eca6ef6e47e1406a8956a90de4607e6425 --- /dev/null +++ b/puml/paper_analysis/question_generation_framework.puml @@ -0,0 +1,245 @@ +@startuml Question Generation Framework +title Research Question Generation Framework - Academic Methodology + +!define CATEGORY_COLOR #E8F5E8 +!define PRIORITY_COLOR #FFF3E0 +!define FRAMEWORK_COLOR #E1F5FE + +package "Research Question Framework" { + + package "Question Categories" <> { + class "OVERVIEW\n(High-Level Understanding)" as Overview { + **Purpose:** Establish foundational understanding + -- + **Examples:** + • "What is the main contribution?" + • "What problem does this solve?" + • "What is the key innovation?" + -- + **Priority:** Usually 8-10 (Essential) + } + + class "METHODOLOGY\n(How It Works)" as Methodology { + **Purpose:** Understand technical approach + -- + **Examples:** + • "What methodology is used?" + • "What are the key components?" + • "How does the approach work?" + -- + **Priority:** Usually 7-9 (Important) + } + + class "INNOVATION\n(What's Novel)" as Innovation { + **Purpose:** Identify unique contributions + -- + **Examples:** + • "What makes this different?" + • "What is the key breakthrough?" + • "How does this advance the field?" + -- + **Priority:** Usually 7-9 (Important) + } + + class "EVALUATION\n(Testing & Validation)" as Evaluation { + **Purpose:** Understand evidence/proof + -- + **Examples:** + • "How was this evaluated?" + • "What benchmarks were used?" + • "What metrics prove effectiveness?" + -- + **Priority:** Usually 6-8 (Useful) + } + + class "RESULTS\n(Key Findings)" as Results { + **Purpose:** Extract main outcomes + -- + **Examples:** + • "What are the key results?" + • "What improvements were achieved?" + • "What insights emerged?" + -- + **Priority:** Usually 6-8 (Useful) + } + + class "LIMITATIONS\n(Constraints)" as Limitations { + **Purpose:** Understand scope/boundaries + -- + **Examples:** + • "What are the limitations?" + • "Where might this fail?" + • "What assumptions are made?" + -- + **Priority:** Usually 5-7 (Insight) + } + + class "APPLICATIONS\n(Practical Use)" as Applications { + **Purpose:** Real-world relevance + -- + **Examples:** + • "What are practical applications?" + • "In what domains is this used?" + • "What impact might this have?" + -- + **Priority:** Usually 5-7 (Insight) + } + + class "FUTURE_WORK\n(Research Directions)" as FutureWork { + **Purpose:** Identify next steps + -- + **Examples:** + • "What future research is suggested?" + • "What improvements are proposed?" + • "What questions remain open?" + -- + **Priority:** Usually 4-6 (Interesting) + } + + class "COMPARISON\n(Related Work)" as Comparison { + **Purpose:** Contextualize research + -- + **Examples:** + • "How does this compare to alternatives?" + • "What advantages does this have?" + • "How does this build on prior work?" + -- + **Priority:** Usually 5-7 (Insight) + } + + class "IMPLEMENTATION\n(How to Build)" as Implementation { + **Purpose:** Practical implementation + -- + **Examples:** + • "How could this be implemented?" + • "What resources are needed?" + • "What are computational requirements?" + -- + **Priority:** Usually 4-6 (Interesting) + } + } + + package "Priority Framework" <> { + class "Priority 9-10\n(Essential)" as HighPriority { + **Characteristics:** + • Core understanding required + • Fundamental concepts + • Main contributions + -- + **Categories:** + • OVERVIEW + • Key METHODOLOGY + } + + class "Priority 7-8\n(Important)" as MediumPriority { + **Characteristics:** + • Comprehensive understanding + • Technical details + • Innovation aspects + -- + **Categories:** + • METHODOLOGY + • INNOVATION + • EVALUATION + } + + class "Priority 5-6\n(Useful)" as LowPriority { + **Characteristics:** + • Deeper insights + • Contextual understanding + • Practical considerations + -- + **Categories:** + • RESULTS + • LIMITATIONS + • APPLICATIONS + • COMPARISON + } + + class "Priority 3-4\n(Interesting)" as MinimalPriority { + **Characteristics:** + • Nice-to-know details + • Future considerations + • Implementation specifics + -- + **Categories:** + • FUTURE_WORK + • IMPLEMENTATION + } + } + + package "Generation Process" <> { + class QuestionGenerationProcess { + **Step 1:** Analyze Topic + • Determine research type + • Identify focus areas + • Assess complexity level + -- + **Step 2:** Select Categories + • Choose relevant categories + • Balance coverage + • Consider user focus + -- + **Step 3:** Generate Questions + • Apply category templates + • Ensure specificity + • Maintain actionability + -- + **Step 4:** Assign Priorities + • Rate importance (1-10) + • Consider user needs + • Balance question types + -- + **Step 5:** Provide Rationale + • Explain high-priority choices + • Justify category selection + • Document reasoning + } + + class QualityGuidelines { + **Excellent Questions Are:** + • Specific and focused + • Actionable through analysis + • Insightful and revealing + • Progressive (basic → advanced) + • Balanced (technical + conceptual) + -- + **Avoid:** + • Overly broad questions + • Unanswerable queries + • Duplicate concepts + • Irrelevant details + } + } +} + +' Relationships +Overview --> HighPriority : usually +Methodology --> MediumPriority : usually +Innovation --> MediumPriority : usually +Evaluation --> LowPriority : usually +Results --> LowPriority : usually +Limitations --> LowPriority : usually +Applications --> LowPriority : usually +Comparison --> LowPriority : usually +FutureWork --> MinimalPriority : usually +Implementation --> MinimalPriority : usually + +QuestionGenerationProcess --> Overview : generates +QuestionGenerationProcess --> Methodology : generates +QuestionGenerationProcess --> Innovation : generates +QuestionGenerationProcess --> Evaluation : generates +QuestionGenerationProcess --> Results : generates +QuestionGenerationProcess --> Limitations : generates +QuestionGenerationProcess --> Applications : generates +QuestionGenerationProcess --> FutureWork : generates +QuestionGenerationProcess --> Comparison : generates +QuestionGenerationProcess --> Implementation : generates + +QualityGuidelines --> QuestionGenerationProcess : guides + +note top of QuestionGenerationProcess : **Research Methodology Foundation**\nBased on academic inquiry frameworks\nEnsures systematic exploration\nBalances breadth and depth + +note bottom of QualityGuidelines : **Quality Assurance**\nMaintains high standards\nEnsures actionable questions\nOptimizes for QA workflow + +@enduml \ No newline at end of file diff --git a/puml/paper_analysis/research_exploration_architecture.puml b/puml/paper_analysis/research_exploration_architecture.puml new file mode 100644 index 0000000000000000000000000000000000000000..5e6e578348e16adc40fd1cd98620c29f2e4df21e --- /dev/null +++ b/puml/paper_analysis/research_exploration_architecture.puml @@ -0,0 +1,193 @@ +@startuml Research Exploration Engine Architecture +title Research Paper Exploration Engine - Complete Architecture + +!define AGENT_COLOR #E1F5FE +!define NODE_COLOR #F3E5F5 +!define ORCHESTRATOR_COLOR #E8F5E8 +!define WORKFLOW_COLOR #FFF3E0 +!define SCHEMA_COLOR #FAFAFA + +package "Research Exploration System" { + + package "Entry Point" <> { + class ResearchExplorationOrchestrator { + - question_agent: QuestionGenerationAgent + - qa_workflow: QAWorkflow + - logger: Logger + - active_workflows: Dict + + + explore_research_topic(request) : ResearchExplorationResults + + quick_exploration(topic, max_questions) : ResearchExplorationResults + - _process_questions_parallel() : List[QuestionResult] + - _process_question_with_local_mode(question) : WorkflowState + - _organize_results_by_category() : List[CategoryResults] + - _generate_research_summary() : str + } + } + + package "Question Generation Agent" <> { + class QuestionGenerationAgent { + + generate_research_questions(request) : QuestionSet + + generate_questions_for_topic(topic) : QuestionSet + + generate_questions_by_category(topic, categories) : QuestionSet + - _validate_question_set() : bool + } + + class QuestionGenerationPrompt { + + QUESTION_GENERATION_PROMPT : str + // Contains research methodology framework + // Categories: OVERVIEW, METHODOLOGY, INNOVATION + // EVALUATION, RESULTS, LIMITATIONS, etc. + } + + package "Question Schemas" <> { + enum QuestionCategory { + OVERVIEW + METHODOLOGY + INNOVATION + EVALUATION + RESULTS + LIMITATIONS + APPLICATIONS + FUTURE_WORK + COMPARISON + IMPLEMENTATION + } + + class ResearchQuestion { + + question: str + + category: QuestionCategory + + priority: int (1-10) + + rationale: str + } + + class QuestionSet { + + topic: str + + questions: List[ResearchQuestion] + + total_questions: int + + categories_covered: List[QuestionCategory] + + get_questions_by_category() + + get_high_priority_questions() + } + + class QuestionGenerationRequest { + + topic: str + + focus_areas: List[QuestionCategory] + + max_questions: int + + depth_level: str + + paper_type: str + } + } + } + + package "QA Workflow Integration" <> { + class QAWorkflow { + + process_question(question) : WorkflowState + + app: CompiledGraph + - _build_graph() : StateGraph + } + + package "Enhanced Nodes" <> { + class RetrievalStrategyNode { + + process(state) : Dict[str, Any] + // NOW PRESERVES EXISTING MODE + // existing_mode = state.get("mode", "hybrid") + + get_parameters_only(question) : Dict + } + + class FetchingNode { + + process(state) : Dict[str, Any] + // USES MODE FROM PARAMETERS + // mode = retrieval_params.get("mode", "mix") + + retrieve_direct() : Dict + } + + class QANode { + + process(state) : Dict[str, Any] + } + } + + class WorkflowState { + + question: str + + retrieval_params: Dict[str, Any] + // NOW SUPPORTS MODE PRESERVATION + + query_analysis: QueryAnalysis + + context: str + + answer: GuidedAnswer + + status: str + } + } + + package "Results & Presentation" <> { + class ResearchExplorationResults { + + topic: str + + question_set: QuestionSet + + category_results: List[CategoryResults] + + total_questions: int + + successful_answers: int + + success_rate: float + + research_summary: str + + get_results_by_category() + + get_high_confidence_answers() + } + + class CategoryResults { + + category: QuestionCategory + + questions_processed: int + + successful_answers: int + + results: List[QuestionResult] + + category_summary: str + } + + class QuestionResult { + + question: ResearchQuestion + + answer: str + + context_sources: List[str] + + confidence_score: float + + processing_time: float + + status: str + + workflow_state: WorkflowState + } + + class ResearchExplorationRequest { + + topic: str + + max_questions: int + + focus_categories: List[QuestionCategory] + + parallel_limit: int + + include_summary: bool + + timeout_per_question: int + } + } +} + +' Relationships +ResearchExplorationOrchestrator --> QuestionGenerationAgent : uses +ResearchExplorationOrchestrator --> QAWorkflow : uses +ResearchExplorationOrchestrator --> ResearchExplorationRequest : receives +ResearchExplorationOrchestrator --> ResearchExplorationResults : produces + +QuestionGenerationAgent --> QuestionGenerationRequest : receives +QuestionGenerationAgent --> QuestionSet : produces +QuestionGenerationAgent --> QuestionGenerationPrompt : uses + +QAWorkflow --> RetrievalStrategyNode : contains +QAWorkflow --> FetchingNode : contains +QAWorkflow --> QANode : contains +QAWorkflow --> WorkflowState : manages + +QuestionSet --> ResearchQuestion : contains +ResearchQuestion --> QuestionCategory : has + +ResearchExplorationResults --> CategoryResults : contains +CategoryResults --> QuestionResult : contains +QuestionResult --> ResearchQuestion : references +QuestionResult --> WorkflowState : contains + +' Mode Configuration Flow +note top of RetrievalStrategyNode : **KEY ENHANCEMENT**\nNow preserves existing mode\nfrom orchestrator instead\nof hardcoding "hybrid" + +note right of ResearchExplorationOrchestrator : **LOCAL MODE INJECTION**\nSets retrieval_params:\n{\n "mode": "local",\n "top_k": 2,\n "chunk_top_k": 2\n} + +note bottom of FetchingNode : **MODE USAGE**\nUses mode from parameters:\nmode = retrieval_params.get("mode", "mix")\nengine.retrieve(mode=mode, ...) + +@enduml \ No newline at end of file diff --git a/puml/paper_analysis/research_exploration_sequence.puml b/puml/paper_analysis/research_exploration_sequence.puml new file mode 100644 index 0000000000000000000000000000000000000000..a369980096ae8db82a5a6b2f6b128af7edd977e3 --- /dev/null +++ b/puml/paper_analysis/research_exploration_sequence.puml @@ -0,0 +1,79 @@ +@startuml Research Exploration Workflow Sequence +title Research Paper Exploration - Complete Workflow Sequence + +actor User +participant "Research\nOrchestrator" as RO +participant "Question\nGeneration\nAgent" as QGA +participant "QA Workflow\n(Parallel)" as QAW +participant "Retrieval Strategy\nNode" as RSN +participant "Fetching Node" as FN +participant "QA Node" as QAN +participant "LightRAG\nEngine" as LRG + +== Phase 1: Question Generation == +User -> RO: explore_research_topic("transformers") +RO -> QGA: generate_research_questions(request) + +note over QGA : **Question Generation Process**\nAnalyzes topic "transformers"\nGenerates systematic questions:\n• OVERVIEW: "What are transformers?"\n• METHODOLOGY: "How does self-attention work?"\n• INNOVATION: "What's novel about transformers?"\n• APPLICATIONS: "Where are they used?"\n• etc. + +QGA -> QGA: apply_research_methodology_framework() +QGA -> QGA: categorize_questions_by_priority() +QGA --> RO: QuestionSet(15 questions, 8 categories) + +== Phase 2: Parallel Question Processing == +RO -> RO: setup_parallel_processing(max_concurrent=5) + +loop For each question (in parallel) + RO -> QAW: process_question_with_local_mode(question) + + note over RO : **LOCAL MODE INJECTION**\nSets initial state:\n{\n "question": "How does self-attention work?",\n "retrieval_params": {\n "mode": "local", // ← CONTROLLED VERBOSITY\n "top_k": 2,\n "chunk_top_k": 2\n }\n} + + QAW -> RSN: analyze_query(state) + + note over RSN : **ENHANCED STRATEGY NODE**\nPreserves existing mode:\nexisting_mode = state.get("mode", "hybrid")\n// existing_mode = "local" ✓\n\nUpdates parameters:\n{\n "mode": "local", // ← PRESERVED!\n "top_k": 3, // ← OPTIMIZED\n "chunk_top_k": 1 // ← OPTIMIZED\n} + + RSN -> RSN: analyze_question_complexity() + RSN -> RSN: determine_optimal_parameters() + RSN --> QAW: updated_state(preserves_local_mode=True) + + QAW -> FN: fetch_context(state) + + note over FN : **MODE-AWARE FETCHING**\nmode = retrieval_params.get("mode")\n// mode = "local" ✓\n\nCalls LightRAG with local mode\nfor controlled verbosity + + FN -> LRG: retrieve(query, mode="local", top_k=3, chunk_top_k=1) + LRG --> FN: focused_context(local_mode_results) + FN --> QAW: state_with_context + + QAW -> QAN: generate_answer(state) + QAN -> QAN: process_context_and_generate_response() + QAN --> QAW: final_state_with_answer + + QAW --> RO: QuestionResult(question, answer, sources, timing) +end + +== Phase 3: Results Organization == +RO -> RO: organize_results_by_category() + +note over RO : **Category Organization**\n• OVERVIEW: 3 questions answered\n• METHODOLOGY: 4 questions answered\n• INNOVATION: 2 questions answered\n• APPLICATIONS: 3 questions answered\n• etc. + +RO -> RO: calculate_success_metrics() + +== Phase 4: Summary Generation == +RO -> QAW: generate_research_summary(aggregated_results) +QAW -> RSN: analyze_query("summarize research findings") +RSN --> QAW: summary_parameters +QAW -> FN: fetch_context(summary_query) +FN -> LRG: retrieve(summary_context) +LRG --> FN: comprehensive_context +FN --> QAW: context +QAW -> QAN: generate_summary(context) +QAN --> QAW: research_summary +QAW --> RO: complete_summary + +== Results Delivery == +RO -> RO: compile_final_results() +RO --> User: ResearchExplorationResults{\n topic: "transformers",\n total_questions: 15,\n successful_answers: 14,\n success_rate: 93.3%,\n category_results: [...],\n research_summary: "..."\n} + +note over User : **User Receives:**\n• Systematic Q&A by category\n• High-level research summary\n• Source citations per answer\n• Processing time metrics\n• Confidence scores\n• Failed question details + +@enduml \ No newline at end of file diff --git a/puml/pdf_processing_sequence.puml b/puml/pdf_processing_sequence.puml new file mode 100644 index 0000000000000000000000000000000000000000..16eb3e4f72405b18e958beb4476168bab6499e6e --- /dev/null +++ b/puml/pdf_processing_sequence.puml @@ -0,0 +1,200 @@ +@startuml PDF to Enriched Markdown Pipeline - Sequence Diagram + +skinparam sequenceArrowThickness 2 +skinparam roundcorner 20 +skinparam maxmessagesize 60 +skinparam sequenceReferenceBackgroundColor AliceBlue + +title **PDF to Enriched Markdown Pipeline - Complete Process Flow** + +actor User +participant "Main Script" as Main +participant "PDFToEnrichedMarkdownPipeline" as Pipeline +participant "File System" as FS +participant "MinerU Script" as MinerU +participant "VLM Pipeline" as VLM +participant "Gemini API" as Gemini +participant "Semantic Chunker" as Chunker + +== Initialization Phase == + +User -> Main: **Run Script** +note right: processer = PDFToEnrichedMarkdownPipeline(\n pdf_directory="...\\pdfs",\n output_directory="...\\output",\n enable_vlm=True,\n enable_chunking=True\n) + +Main -> Pipeline: **__init__(pdf_directory, output_directory, enable_vlm=True, enable_chunking=True)** +Pipeline -> FS: **mkdir(output_directory, parents=True, exist_ok=True)** +Pipeline -> Pipeline: **Set mineru_script path** +Pipeline -> Pipeline: **Set vlm_script path** +Pipeline -> Pipeline: **Set chunked_output_dir path** +Pipeline --> Main: **Pipeline instance created** + +== Processing Phase == + +Main -> Pipeline: **asyncio.run(processer.process())** +Pipeline -> Pipeline: **start_time = time.time()** + +Pipeline -> FS: **find_pdf_files() - scan pdf_directory** +FS --> Pipeline: **List of PDF files [file1.pdf, file2.pdf, file3.pdf]** + +alt **PDF files found** + Pipeline -> Main: **print("📄 Found N PDF files to process")** + + == Stage 1: MinerU PDF Processing == + + Pipeline -> Pipeline: **run_mineru_processing(pdf_files)** + Pipeline -> Main: **print("🔍 Stage 1: MinerU PDF Processing")** + + Pipeline -> Pipeline: **copy_pdfs_to_research_papers(pdf_files)** + + loop **For each PDF file** + Pipeline -> FS: **Clear existing files in research_papers/** + Pipeline -> FS: **shutil.copy2(pdf_file, research_papers/)** + Pipeline -> Main: **print("📄 Copied {filename} to processing directory")** + end + + Pipeline -> MinerU: **subprocess.run([python, mineru_ingestor.py])** + note right: Runs MinerU processing on PDFs\nin research_papers directory + + MinerU -> MinerU: **Parse PDF structure** + MinerU -> MinerU: **Extract text, images, tables, formulas** + MinerU -> FS: **Create output/document1/auto/document1.md** + MinerU -> FS: **Save extracted images to output/document1/auto/images/** + MinerU -> FS: **Save metadata JSON files** + MinerU --> Pipeline: **Processing complete (returncode=0)** + + Pipeline -> Pipeline: **copy_mineru_output_to_destination()** + + loop **For each document directory** + Pipeline -> FS: **shutil.copytree(mineru_output/doc, final_output/doc)** + Pipeline -> Main: **print("📁 Copied {doc} to output directory")** + end + + Pipeline -> Main: **print("✅ MinerU processing completed for N files")** + + == Stage 2: VLM Image Enhancement == + + alt **VLM enabled** + Pipeline -> Pipeline: **run_vlm_enhancement()** + Pipeline -> Main: **print("🤖 Stage 2: VLM Image Enhancement")** + + Pipeline -> Pipeline: **Create temporary VLM script** + note right: temp_vlm_runner.py with:\n- sys.path setup\n- VLM pipeline configuration\n- Output directory targeting + + Pipeline -> FS: **Write temp_vlm_runner.py** + Pipeline -> VLM: **subprocess.run([python, temp_vlm_runner.py])** + + VLM -> VLM: **Initialize VLMPipeline with config** + note right: Config:\n- gemini_model: "gemini-2.5-flash-lite"\n- backup_original_files: True\n- max_concurrent_requests: 3 + + VLM -> FS: **Scan output directory for markdown files** + + loop **For each document** + VLM -> FS: **Read document.md** + VLM -> VLM: **Extract image references ![](images/...)** + VLM -> VLM: **Analyze surrounding context** + + loop **For each image** + VLM -> FS: **Read image file** + VLM -> Gemini: **Send image + context for description** + Gemini --> VLM: **AI-generated image description** + VLM -> VLM: **Store description result** + end + + VLM -> FS: **Create document.md.backup** + VLM -> FS: **Update document.md with AI descriptions** + note right: Enhanced markdown with:\n![AI description](images/file.jpg)\n*AI-generated description: ...* + end + + VLM -> Main: **print("✅ VLM enhancement completed")** + VLM -> Main: **print("• Files processed: N")** + VLM -> Main: **print("• Total images: N")** + VLM -> Main: **print("• Success rate: X%")** + + VLM --> Pipeline: **Enhancement complete** + + Pipeline -> FS: **unlink(temp_vlm_runner.py)** + + else **VLM disabled** + Pipeline -> Main: **print("⏭️ VLM enhancement disabled, skipping...")** + end + + == Stage 3: Semantic Chunking == + + alt **Chunking enabled** + Pipeline -> Pipeline: **run_semantic_chunking()** + Pipeline -> Main: **print("🧩 Stage 3: Semantic Chunking")** + + Pipeline -> Chunker: **Import SemanticChunker** + Pipeline -> Chunker: **Initialize chunker with config** + note right: Config:\n- chunk_size: 1024\n- overlap: 128\n- model: BAAI/bge-large-en-v1.5 + + Chunker -> FS: **Scan output directory for markdown files** + Chunker -> FS: **Filter out .backup files** + + loop **For each markdown file** + Chunker -> FS: **Read markdown content** + Chunker -> Chunker: **Clean and normalize text** + Chunker -> Chunker: **Split into sentences** + Chunker -> Chunker: **Group sentences into semantic chunks** + Chunker -> Chunker: **Apply size and overlap constraints** + Chunker -> Chunker: **Generate metadata** + end + + Chunker -> FS: **Create chunked_output directory** + Chunker -> FS: **Save semantic_chunks.json** + + Chunker -> Main: **print("✅ Semantic chunking completed")** + Chunker -> Main: **print("• Files processed: N")** + Chunker -> Main: **print("• Total chunks generated: N")** + Chunker -> Main: **print("• Average chunks per file: X")** + + Chunker --> Pipeline: **Chunking complete** + + else **Chunking disabled** + Pipeline -> Main: **print("⏭️ Semantic chunking disabled, skipping...")** + end + + == Cleanup Phase == + + Pipeline -> Pipeline: **cleanup_intermediate_files()** + Pipeline -> FS: **shutil.rmtree(mineru/file_ingesting/output)** + Pipeline -> Main: **print("🧹 Cleaned up intermediate MinerU output directory")** + + == Completion == + + Pipeline -> Pipeline: **total_time = time.time() - start_time** + Pipeline -> Main: **print("🎉 Pipeline completed successfully in {time}s")** + Pipeline -> Main: **print("📁 Enhanced markdown files: {output_dir}")** + Pipeline -> Main: **print("🧩 Semantic chunks: {chunked_output_dir}/semantic_chunks.json")** + Pipeline -> Main: **print("🎯 Ready for: RAG ingestion, vector database, or search systems")** + + Pipeline --> Main: **return True** + +else **No PDF files found** + Pipeline -> Main: **raise ValueError("No PDF files found")** + Pipeline --> Main: **return False** +end + +Main -> User: **Process complete** + +== Final File Structure == + +note over FS +**Final Output Structure:** +output/ +├── document1/auto/ +│ ├── document1.md *(enhanced)* +│ ├── document1.md.backup *(original)* +│ └── images/ +│ ├── image1.jpg +│ └── image2.jpg +├── document2/auto/ +│ └── ... +└── document3/auto/ + └── ... + +chunked_output/ +└── semantic_chunks.json *(all chunks with metadata)* +end note + +@enduml \ No newline at end of file diff --git a/puml/qa_workflow_architecture.puml b/puml/qa_workflow_architecture.puml new file mode 100644 index 0000000000000000000000000000000000000000..7eb11476f98717cea5b19e81293f7d5a78164a40 --- /dev/null +++ b/puml/qa_workflow_architecture.puml @@ -0,0 +1,174 @@ +@startuml QA Workflow Architecture + +!theme plain +title Question Answering Workflow - LangGraph Architecture + +' Enhanced Styling +skinparam backgroundColor White +skinparam shadowing false +skinparam roundcorner 10 + +skinparam package { + BackgroundColor #F8F9FA + BorderColor #2C3E50 + BorderThickness 2 + FontSize 12 + FontStyle bold +} + +skinparam component { + BackgroundColor #FFFFFF + BorderColor #34495E + BorderThickness 1 + FontSize 10 + ArrowColor #2980B9 + ArrowThickness 2 +} + +skinparam note { + BackgroundColor #FFF3CD + BorderColor #856404 + FontSize 9 +} + +' Custom Stereotypes +skinparam component<> { + BackgroundColor #FFF8DC + BorderColor #DAA520 + BorderThickness 2 +} + +skinparam component<> { + BackgroundColor #E8F4FD + BorderColor #1976D2 + BorderThickness 2 +} + +skinparam component<> { + BackgroundColor #F3E5F5 + BorderColor #7B1FA2 +} + +' Layout: Top to Bottom Flow +top to bottom direction + +' User Interface Layer +package "🎯 User Interface Layer" as UI #E3F2FD { + [📝 User Query] as Query + [📊 Streaming Updates] as Stream + [✅ Final Answer] as Answer + + Query -right-> Stream : real-time + Stream -right-> Answer : completion +} + +' Orchestration Layer +package "🎭 LangGraph Orchestration Layer" as Orchestration #E8F5E8 { + [⚡ QA Workflow] as Workflow <> + [💾 Workflow State] as State <> + [🔄 Memory Saver] as Memory <> + + State -up-> Workflow : state management + Memory -up-> Workflow : persistence +} + +' Processing Nodes +package "🔧 Processing Nodes Layer" as Nodes #FFF3E0 { + [🎯 Strategy Node] as StrategyNode + [📚 Fetching Node] as FetchNode + [🤖 QA Node] as QANode + + StrategyNode -right-> FetchNode : parameters + FetchNode -right-> QANode : context +} + + + +' Knowledge Layer +package "📖 Knowledge Retrieval Layer" as Retrieval #E0F2F1 { + [🚀 Retrieval Engine] as Engine + [⚡ LightRAG Singleton] as LightRAG + [🗄️ Knowledge graph] as VectorDB <> + + Engine --> LightRAG : delegates to + LightRAG --> VectorDB : queries +} + +' Data Layer +package "💽 Data Storage Layer" as Data #FFF8E1 { + [📚 Knowledge Base] as KB <> + [📊 Retrieval Logs] as Logs <> + [💾 State Persistence] as Persistence <> +} + +' Main Flow Connections +Query ==> Workflow : **"How does LoRA work?"** +Workflow ==> Stream : progress updates +Workflow ==> Answer : final response + + + +' Knowledge Flow +FetchNode ==> Engine : context retrieval +Engine ==> LightRAG : search execution +LightRAG ==> VectorDB : KG search +VectorDB ==> KB : data access + +' State Management Flow +State <==> StrategyNode : question ↔ params +State <==> FetchNode : params + query ↔ context +State <==> QANode : context + query ↔ answer + +' Persistence +Engine --> Logs : log results +Memory --> Persistence : save checkpoints + +' Enhanced Notes +note top of Workflow + **🔄 LangGraph Workflow Pipeline** + ╭─────────────────────────────╮ + │ 1️⃣ **analyze_query** │ + │ └→ Determine parameters │ + │ 2️⃣ **fetch_context** │ + │ └→ Retrieve information │ + │ 3️⃣ **generate_answer** │ + │ └→ Create guided response│ + ╰─────────────────────────────╯ +end note + +note right of State + **📋 Workflow State Schema** + ╭──────────────────────────╮ + │ • **question**: User input │ + │ • **retrieval_params**: │ + │ └ top_k, chunk_top_k │ + │ • **context**: Retrieved │ + │ • **answer**: Final result │ + │ • **timing_metrics**: Perf │ + ╰──────────────────────────╯ +end note + +note left of StrategyAgent + **🎯 Query Analysis** + Input: "How does LoRA work?" + ├─ Category: "Specific" + ├─ top_k: 3 + └─ chunk_top_k: 2 +end note + +note left of QAAgent + **💬 Answer Generation** + Input: Question + Context + ├─ Guided explanations + ├─ Step-by-step breakdown + └─ Context-grounded answers +end note + +note right of Engine + **🚀 Hybrid Retrieval** + ├─ Vector + keyword search + ├─ Performance timing + └─ Context quality logging +end note + +@enduml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000000000000000000000000000000000000..cd1f8e032b671e9ec10c03d677c10239d979dbea --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,41 @@ +[project] +name = "creative-catalyst" +version = "0.1.0" +description = "An AI-powered system to find novel connections in multimodal research papers." +readme = "README.md" +requires-python = ">=3.12" +dependencies = [ + # --- Core AI & Orchestration --- + "langchain>=0.3.27", # Foundational library for agents, chains, and RAG components. + "langgraph>=0.6.4", # For building the complex, stateful agentic system. + # Add your specific LLM provider library here (e.g., openai, anthropic, etc.) + "langchain-openai>=0.1.17", # Example for using OpenAI models for generation and embeddings. + # --- Document Ingestion & Processing (DocumentIngestion_Service) --- + "mineru[core]>=2.1.10", # For high-quality PDF parsing into multimodal markdown. + "pillow>=10.4.0", # Needed for handling and processing images for the VLM enhancement step. + "pydantic-ai>=0.7.0", # Useful for structured data extraction from text if needed. + # --- Database & Vector Store (Connecting to PostgreSQL) --- + "SQLAlchemy>=2.0.31", # The best ORM for managing tables and data in PostgreSQL. + "psycopg2-binary>=2.9.9", # Standard PostgreSQL database driver for Python. + "pgvector>=0.2.5", # The client library for using the pgvector extension in Python. + "alembic>=1.13.2", # For handling database schema migrations gracefully. + # --- API Framework (For all services: AgenticSystem, SearchEngine, etc.) --- + "fastapi>=0.111.1", # To create fast, modern APIs for all your services. + "uvicorn[standard]>=0.30.1", # The server that will run your FastAPI applications. + "python-multipart>=0.0.9", # Necessary for handling PDF file uploads in FastAPI. + # --- Asynchronous Task Queue (For the Ingestion Pipeline) --- + "celery>=5.4.0", # To run the heavy document ingestion pipeline asynchronously. + "redis>=5.0.7", # Often used as the message broker and backend for Celery. + # --- Utilities --- + "httpx>=0.27.0", # A modern HTTP client for services to communicate with each other. + "pydantic-settings>=2.3.4", # For managing configuration and environment variables cleanly. + "dotenv>=0.9.9", + "pydantic>=2.11.7", + "sentence-transformers>=5.1.0", + "google>=3.0.0", + "transformers>=4.55.1", + "huggingface-hub>=0.34.4", + "plotly>=6.3.0", + "streamlit>=1.48.1", + "gradio>=5.42.0", +] diff --git a/retrieval_logs/analysis.md b/retrieval_logs/analysis.md new file mode 100644 index 0000000000000000000000000000000000000000..c9e399c2b7de44ce74846aeef06e3c14977cd203 --- /dev/null +++ b/retrieval_logs/analysis.md @@ -0,0 +1,66 @@ + + +## Analysis Report: Optimizing Information Retrieval for Complex Queries + +### 1. Executive Summary + +This report details a series of experiments conducted to analyze and optimize the performance of a sophisticated information retrieval system. The objective was to determine the most effective retrieval strategy and parameter settings for answering a complex, multi-faceted query: **"History of LoRA and it's components?"**. + +Our analysis revealed a clear distinction between different retrieval strategies (`local`, `global`, `hybrid`) and demonstrated a significant performance trade-off when tuning retrieval parameters (`top_k`, `chunk_top_k`). + +The key finding is that the **`hybrid` query mode with high recall and depth parameters (`top_k: 10`, `chunk_top_k: 4`) provided the most comprehensive and sufficient context.** This configuration successfully synthesized the high-precision facts of a focused search with the rich context of a broad search, creating a superior foundation for generating a complete answer. + +### 2. Methodology + +The experiment was conducted by keeping the user query constant while varying two key variables: + +1. **Query Mode:** The underlying strategy used by the system to find and synthesize information. We analyzed four modes: `local`, `global`, `mix`, and `hybrid`. +2. **Retrieval Parameters:** The numerical settings that control the scope of the search: + * `top_k`: The number of relevant documents to retrieve from the knowledge base. + * `chunk_top_k`: The number of the most relevant text chunks to extract from each retrieved document. + +The quality of the retrieved `text_content` for each configuration was assessed based on its **relevance** to the query and its **sufficiency** in providing the necessary facts to construct a complete answer. + +### 3. Analysis of Retrieval Modes + +The different query modes demonstrated distinct retrieval philosophies, each with its own strengths and weaknesses. + +#### 3.1. `local` Mode: The Specialist + +* **Observed Behavior:** This mode prioritized depth and precision above all else. It appeared to identify the single most authoritative document for the query (in this case, the original LoRA research paper) and extracted information almost exclusively from that source. +* **Strengths:** Unmatched factual accuracy on core details. It was the only mode to initially retrieve the complete list of authors and their institution (Microsoft). +* **Weaknesses:** Prone to "tunnel vision." By focusing so narrowly, it completely missed the broader intellectual context, such as the inspirational work by `Li et al.` that preceded LoRA. +* **Analogy:** A librarian finding the one perfect book on the shelf and providing a photocopy of its most relevant chapter. + +#### 3.2. `global` Mode: The Generalist + +* **Observed Behavior:** This mode prioritized breadth, pulling together related concepts from a wide array of documents across the knowledge base. +* **Strengths:** Excellent at building a rich, contextual understanding. It successfully connected LoRA to its scientific inspirations and placed it within a landscape of related technologies. +* **Weaknesses:** Sacrificed critical, high-precision facts for the sake of context. It failed to retrieve the names of the inventors or their institution. +* **Analogy:** A librarian giving you one paragraph each from five different books in different sections of the library to paint a big picture. + +#### 3.3. `mix` and `hybrid` Modes: The Synthesizers + +* **Observed Behavior:** These modes represent a "best of both worlds" strategy, attempting to blend the precision of `local` search with the breadth of `global` search. The `hybrid` mode appeared to be the most advanced and effective implementation of this concept. +* **Strengths:** Successfully retrieved *both* the high-precision historical facts (like the paper's title and authors) and the broader context (like related technologies and inspirations). +* **Conclusion:** The `hybrid` mode proved to be the most robust and effective retrieval strategy, forming the ideal foundation for further parameter tuning. + +### 4. Analysis of Retrieval Parameters (`top_k` & `chunk_top_k`) + +Using the superior `hybrid` mode as our baseline, we tested three parameter configurations to understand the trade-offs between precision and recall. + +| Scenario | Parameters | Outcome Assessment | Analysis | +| :--- | :--- | :--- | :--- | +| **A: Surgical Strike** | `k=2, ck=1` | **Insufficient.** | **High Precision, Low Recall.** This was too restrictive. While the retrieved text was highly relevant, the narrow scope (`k=2`) forced the system to leave out a critical document—the one containing the list of LoRA's inventors. | +| **B: Balanced Approach** | `k=5, ck=2` | **Highly Sufficient.** | **Good Precision, Good Recall.** This was the initial sweet spot. It was broad enough to capture the key documents covering the history, components, and context, providing a complete and accurate picture with minimal noise. | +| **C: Comprehensive Recall** | `k=10, ck=4` | **Superior & Most Sufficient.** | **High Precision, High Recall.** This configuration yielded the best result. The system's relevance ranking was strong enough that the additional documents and chunks (`k=10`, `ck=4`) were not noise but valuable enrichment. It provided more granular entities (individual author names), more technical details on components, and a richer view of the surrounding ecosystem (`QLoRA`, `PyTorch`). | + +### 5. Final Recommendation and Conclusion + +Based on this comprehensive analysis, our findings are clear: + +1. **Optimal Strategy:** The **`hybrid` query mode** is the most effective strategy as it intrinsically balances the need for specific facts with broad context. + +2. **Optimal Parameters:** For a complex, multi-faceted query, a strategy that favors **high recall and depth (`top_k: 10`, `chunk_top_k: 4`)** is superior. The initial hypothesis that this would lead to "information overload" was proven incorrect due to the high quality of the system's relevance ranking. The additional information served as valuable enrichment, not noise. + +This experiment underscores that effective information retrieval is a two-step process: first, selecting the right high-level **strategy** (`hybrid` mode), and second, **tuning its parameters** to ensure the scope of the search is wide enough to capture all facets of a user's query without being so narrow that it misses critical information. \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_214537_118_hybrid_k5_ck2_History_of_lora_and_its_components.json b/retrieval_logs/retrieval_20250814_214537_118_hybrid_k5_ck2_History_of_lora_and_its_components.json new file mode 100644 index 0000000000000000000000000000000000000000..54f44321b40568f45362cd07df1bfc2982c54c9e --- /dev/null +++ b/retrieval_logs/retrieval_20250814_214537_118_hybrid_k5_ck2_History_of_lora_and_its_components.json @@ -0,0 +1,13 @@ +{ + "timestamp": "2025-08-14T21:45:37.118371", + "query": "History of lora and it's components?", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 11246, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Adapters\", \"type\": \"category\", \"description\": \"Adapters are a component of the LLaMA models contributing to the overall memory footprint, as shown in the chart.Components used in Full Finetuning and LoRA methods; smaller in LoRA for memory efficiency.\", \"created_at\": \"2025-08-13 23:24:06\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:38\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"LoRA + PL\", \"type\": \"category\", \"description\": \"LoRA + PL combines LoRA with prefix-layer tuning, using trainable embedding and activation parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"16-bit transformer\", \"type\": \"category\", \"description\": \"A type of transformer used in Full Finetuning and LoRA methods.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"S. Wang\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Adapter layers\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Low-rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low-rank Adapters (LoRA) are used in the QLORA method.Low-rank Adapters (LoRA) is a Parameter Efficient FineTuning (PEFT) method used in the described work to achieve 16-bit finetuning performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"QLORA\", \"type\": \"category\", \"description\": \"QLORA is an efficient and accessible fine-tuning method for large language models (LLMs), including chatbots such as Guanaco. It enables the fine-tuning of LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones. This accessibility is achieved through a combination of 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers, significantly reducing memory usage compared to traditional methods. Contrary to simplified explanations, QLORA uses adapters at every network layer, not just a single quantized linear layer, mitigating accuracy loss often observed in other instruction fine-tuning techniques. This multi-layer approach allows for the training of diverse models across various datasets and sizes, achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods. Evaluations demonstrate comparable GLUE accuracy and Super-NaturalInstructions RougeL scores to these methods. QLORA replicates the performance of 16-bit full fine-tuning using a 4-bit base model and Low-rank Adapters (LoRA). The use of paged optimizers further prevents out-of-memory errors, enabling the fine-tuning of large models on a single GPU. While offering significant advantages in efficiency and accessibility for training LLMs on consumer and professional GPUs without performance degradation, QLORA is considered a dual-use technology with potential for misuse. Its primary benefit is improved accessibility of state-of-the-art NLP technology, enabling large-scale analysis without excessive computational resources. QLORA's effectiveness has been demonstrated in experiments detailed in various sections of related texts.\", \"created_at\": \"2025-08-13 23:22:21\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Parameter-Efficient Adaptation\", \"entity2\": \"adapter layers\", \"description\": \"This method is compared to adapter layers, highlighting a key difference in latency during inference.\", \"created_at\": \"2025-08-13 22:46:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Low-rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses Low-rank Adapters (LoRA) to achieve its performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "metadata": { + "saved_at": "2025-08-14T21:45:37.118371", + "file_path": "retrieval_logs\\retrieval_20250814_214537_118_hybrid_k5_ck2_History_of_lora_and_its_components.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_214757_152_hybrid_k10_ck5_History_of_lora_and_its_components.json b/retrieval_logs/retrieval_20250814_214757_152_hybrid_k10_ck5_History_of_lora_and_its_components.json new file mode 100644 index 0000000000000000000000000000000000000000..30c7012e771502b67260388786e73cec50a6163c --- /dev/null +++ b/retrieval_logs/retrieval_20250814_214757_152_hybrid_k10_ck5_History_of_lora_and_its_components.json @@ -0,0 +1,13 @@ +{ + "timestamp": "2025-08-14T21:47:57.152320", + "query": "History of lora and it's components?", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 5, + "text_length": 18351, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Adapters\", \"type\": \"category\", \"description\": \"Adapters are a component of the LLaMA models contributing to the overall memory footprint, as shown in the chart.Components used in Full Finetuning and LoRA methods; smaller in LoRA for memory efficiency.\", \"created_at\": \"2025-08-13 23:24:06\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:38\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"LoRA + PL\", \"type\": \"category\", \"description\": \"LoRA + PL combines LoRA with prefix-layer tuning, using trainable embedding and activation parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"16-bit transformer\", \"type\": \"category\", \"description\": \"A type of transformer used in Full Finetuning and LoRA methods.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"S. Wang\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Adapter layers\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Z. Allen-Zhu\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Low-rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low-rank Adapters (LoRA) are used in the QLORA method.Low-rank Adapters (LoRA) is a Parameter Efficient FineTuning (PEFT) method used in the described work to achieve 16-bit finetuning performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"L. Wang\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"QLORA\", \"type\": \"category\", \"description\": \"QLORA is an efficient and accessible fine-tuning method for large language models (LLMs), including chatbots such as Guanaco. It enables the fine-tuning of LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones. This accessibility is achieved through a combination of 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers, significantly reducing memory usage compared to traditional methods. Contrary to simplified explanations, QLORA uses adapters at every network layer, not just a single quantized linear layer, mitigating accuracy loss often observed in other instruction fine-tuning techniques. This multi-layer approach allows for the training of diverse models across various datasets and sizes, achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods. Evaluations demonstrate comparable GLUE accuracy and Super-NaturalInstructions RougeL scores to these methods. QLORA replicates the performance of 16-bit full fine-tuning using a 4-bit base model and Low-rank Adapters (LoRA). The use of paged optimizers further prevents out-of-memory errors, enabling the fine-tuning of large models on a single GPU. While offering significant advantages in efficiency and accessibility for training LLMs on consumer and professional GPUs without performance degradation, QLORA is considered a dual-use technology with potential for misuse. Its primary benefit is improved accessibility of state-of-the-art NLP technology, enabling large-scale analysis without excessive computational resources. QLORA's effectiveness has been demonstrated in experiments detailed in various sections of related texts.\", \"created_at\": \"2025-08-13 23:22:21\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Y. Li\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"WikiSQL\", \"type\": \"category\", \"description\": \"WikiSQL is a large-scale benchmark dataset comprising 56,355 training examples and 8,421 validation examples. Primarily used for evaluating the performance and accuracy of language models, particularly in their ability to translate natural language questions into SQL queries, it facilitates extensive experiments comparing different adaptation methods and assessing logical form validation accuracy. Researchers utilize WikiSQL to test various techniques, including combinations like LoRA and prefix-tuning, and to analyze the impact of model size, as evidenced by studies employing models such as GPT-3 175B. The dataset's core task involves generating SQL queries from natural language questions and their corresponding table schemata. Its application extends to evaluating the performance of diverse adaptation approaches, including fine-tuning (which achieved a validation accuracy of 73.8%), and serves as a valuable resource for assessing the accuracy of language models in question answering. WikiSQL is frequently used as a benchmark for evaluating LoRA and related methods.\", \"created_at\": \"2025-08-13 23:01:24\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"P. Wallis\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"LoRA + PE\", \"type\": \"category\", \"description\": \"LoRA + PE combines LoRA with prefix-embedding tuning, using trainable embedding parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"W. Chen\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"PyTorch\", \"type\": \"category\", \"description\": \"PyTorch is a machine learning framework used for integrating LoRA.\", \"created_at\": \"2025-08-13 22:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Low Rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low Rank Adapters (LoRA) are used in QLORA to efficiently fine-tune the quantized language model.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"adapters\", \"type\": \"category\", \"description\": \"A method or technique for model adaptation, compared with LoRA in the study.Adapters for 7/13/33/65B size models were trained and released as part of the study.Components used in fine-tuning language models, allowing for efficient adaptation.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Parameter-Efficient Adaptation\", \"entity2\": \"adapter layers\", \"description\": \"This method is compared to adapter layers, highlighting a key difference in latency during inference.\", \"created_at\": \"2025-08-13 22:46:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Low-rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses Low-rank Adapters (LoRA) to achieve its performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA + PL\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA + PL is evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Low Rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Low Rank Adapters (LoRA) for efficient fine-tuning.\", \"created_at\": \"2025-08-13 23:01:24\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2106.09685v2\\nChunk: 22\\n\\nOn GPT-3 175B, we reduce the VRAM consumption during training from $1 . 2 \\\\mathrm { T B }$ to 350GB. With $r = 4$ and only the query and value projection matrices being adapted, the checkpoint size is reduced by roughly $1 0 { , } 0 0 0 \\\\times$ (from 350GB to 35MB)4. This allows us to train with significantly fewer GPUs and avoid I/O bottlenecks. Another benefit is that we can switch between tasks while deployed at a much lower cost by only swapping the LoRA weights as opposed to all the parameters. This allows for the creation of many customized models that can be swapped in and out on the fly on machines that store the pre-trained weights in VRAM. We also observe a $2 5 \\\\%$ speedup during training on GPT-3 175B compared to full fine-tuning5 as we do not need to calculate the gradient for the vast majority of the parameters. LoRA also has its limitations.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 6\\n\\n• A pre-trained model can be shared and used to build many small LoRA modules for different tasks. We can freeze the shared model and efficiently switch tasks by replacing the matrices $A$ and $B$ in Figure 1, reducing the storage requirement and task-switching overhead significantly. • LoRA makes training more efficient and lowers the hardware barrier to entry by up to 3 times when using adaptive optimizers since we do not need to calculate the gradients or maintain the optimizer states for most parameters. Instead, we only optimize the injected, much smaller low-rank matrices. • Our simple linear design allows us to merge the trainable matrices with the frozen weights when deployed, introducing no inference latency compared to a fully fine-tuned model, by construction. • LoRA is orthogonal to many prior methods and can be combined with many of them, such as prefix-tuning. We provide an example in Appendix E.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: 2106.09685v2\\nChunk: 104\\n\\nLoRA performs exhibits favorable sample-efficiency compared to other methods, including fine-tuning. To be concrete, let the singular values of $U _ { A } ^ { i \\\\top } U _ { B } ^ { j }$ to be $\\\\sigma _ { 1 } , \\\\sigma _ { 2 } , \\\\cdots , \\\\sigma _ { p }$ where $p = \\\\operatorname* { m i n } \\\\{ i , j \\\\}$ . We know that the Projection Metric Ham & Lee (2008) is defined as: $$\\nd ( U _ { A } ^ { i } , U _ { B } ^ { j } ) = \\\\sqrt { p - \\\\sum _ { i = 1 } ^ { p } \\\\sigma _ { i } ^ { 2 } } \\\\in [ 0 , \\\\sqrt { p } ]\\n$$\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "metadata": { + "saved_at": "2025-08-14T21:47:57.152320", + "file_path": "retrieval_logs\\retrieval_20250814_214757_152_hybrid_k10_ck5_History_of_lora_and_its_components.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_214840_746_hybrid_k2_ck1_History_of_lora_and_its_components.json b/retrieval_logs/retrieval_20250814_214840_746_hybrid_k2_ck1_History_of_lora_and_its_components.json new file mode 100644 index 0000000000000000000000000000000000000000..a7ae4b633e59306ce58ca673faf14dde4da89e8a --- /dev/null +++ b/retrieval_logs/retrieval_20250814_214840_746_hybrid_k2_ck1_History_of_lora_and_its_components.json @@ -0,0 +1,13 @@ +{ + "timestamp": "2025-08-14T21:48:40.746901", + "query": "History of lora and it's components?", + "query_mode": "hybrid", + "top_k": 2, + "chunk_top_k": 1, + "text_length": 5684, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Adapters\", \"type\": \"category\", \"description\": \"Adapters are a component of the LLaMA models contributing to the overall memory footprint, as shown in the chart.Components used in Full Finetuning and LoRA methods; smaller in LoRA for memory efficiency.\", \"created_at\": \"2025-08-13 23:24:06\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:38\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA + PL\", \"type\": \"category\", \"description\": \"LoRA + PL combines LoRA with prefix-layer tuning, using trainable embedding and activation parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Parameter-Efficient Adaptation\", \"entity2\": \"adapter layers\", \"description\": \"This method is compared to adapter layers, highlighting a key difference in latency during inference.\", \"created_at\": \"2025-08-13 22:46:41\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "metadata": { + "saved_at": "2025-08-14T21:48:40.746901", + "file_path": "retrieval_logs\\retrieval_20250814_214840_746_hybrid_k2_ck1_History_of_lora_and_its_components.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_215020_320_hybrid_k10_ck1_History_of_lora_and_its_components.json b/retrieval_logs/retrieval_20250814_215020_320_hybrid_k10_ck1_History_of_lora_and_its_components.json new file mode 100644 index 0000000000000000000000000000000000000000..c595ce3e8fff59b4577d77427d6280fb9a1cf7a5 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_215020_320_hybrid_k10_ck1_History_of_lora_and_its_components.json @@ -0,0 +1,13 @@ +{ + "timestamp": "2025-08-14T21:50:20.320621", + "query": "History of lora and it's components?", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 1, + "text_length": 14669, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Adapters\", \"type\": \"category\", \"description\": \"Adapters are a component of the LLaMA models contributing to the overall memory footprint, as shown in the chart.Components used in Full Finetuning and LoRA methods; smaller in LoRA for memory efficiency.\", \"created_at\": \"2025-08-13 23:24:06\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:38\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"LoRA + PL\", \"type\": \"category\", \"description\": \"LoRA + PL combines LoRA with prefix-layer tuning, using trainable embedding and activation parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"16-bit transformer\", \"type\": \"category\", \"description\": \"A type of transformer used in Full Finetuning and LoRA methods.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"S. Wang\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Adapter layers\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Z. Allen-Zhu\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Low-rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low-rank Adapters (LoRA) are used in the QLORA method.Low-rank Adapters (LoRA) is a Parameter Efficient FineTuning (PEFT) method used in the described work to achieve 16-bit finetuning performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"L. Wang\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"QLORA\", \"type\": \"category\", \"description\": \"QLORA is an efficient and accessible fine-tuning method for large language models (LLMs), including chatbots such as Guanaco. It enables the fine-tuning of LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones. This accessibility is achieved through a combination of 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers, significantly reducing memory usage compared to traditional methods. Contrary to simplified explanations, QLORA uses adapters at every network layer, not just a single quantized linear layer, mitigating accuracy loss often observed in other instruction fine-tuning techniques. This multi-layer approach allows for the training of diverse models across various datasets and sizes, achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods. Evaluations demonstrate comparable GLUE accuracy and Super-NaturalInstructions RougeL scores to these methods. QLORA replicates the performance of 16-bit full fine-tuning using a 4-bit base model and Low-rank Adapters (LoRA). The use of paged optimizers further prevents out-of-memory errors, enabling the fine-tuning of large models on a single GPU. While offering significant advantages in efficiency and accessibility for training LLMs on consumer and professional GPUs without performance degradation, QLORA is considered a dual-use technology with potential for misuse. Its primary benefit is improved accessibility of state-of-the-art NLP technology, enabling large-scale analysis without excessive computational resources. QLORA's effectiveness has been demonstrated in experiments detailed in various sections of related texts.\", \"created_at\": \"2025-08-13 23:22:21\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Y. Li\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"WikiSQL\", \"type\": \"category\", \"description\": \"WikiSQL is a large-scale benchmark dataset comprising 56,355 training examples and 8,421 validation examples. Primarily used for evaluating the performance and accuracy of language models, particularly in their ability to translate natural language questions into SQL queries, it facilitates extensive experiments comparing different adaptation methods and assessing logical form validation accuracy. Researchers utilize WikiSQL to test various techniques, including combinations like LoRA and prefix-tuning, and to analyze the impact of model size, as evidenced by studies employing models such as GPT-3 175B. The dataset's core task involves generating SQL queries from natural language questions and their corresponding table schemata. Its application extends to evaluating the performance of diverse adaptation approaches, including fine-tuning (which achieved a validation accuracy of 73.8%), and serves as a valuable resource for assessing the accuracy of language models in question answering. WikiSQL is frequently used as a benchmark for evaluating LoRA and related methods.\", \"created_at\": \"2025-08-13 23:01:24\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"P. Wallis\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"LoRA + PE\", \"type\": \"category\", \"description\": \"LoRA + PE combines LoRA with prefix-embedding tuning, using trainable embedding parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"W. Chen\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"PyTorch\", \"type\": \"category\", \"description\": \"PyTorch is a machine learning framework used for integrating LoRA.\", \"created_at\": \"2025-08-13 22:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Low Rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low Rank Adapters (LoRA) are used in QLORA to efficiently fine-tune the quantized language model.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"adapters\", \"type\": \"category\", \"description\": \"A method or technique for model adaptation, compared with LoRA in the study.Adapters for 7/13/33/65B size models were trained and released as part of the study.Components used in fine-tuning language models, allowing for efficient adaptation.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Parameter-Efficient Adaptation\", \"entity2\": \"adapter layers\", \"description\": \"This method is compared to adapter layers, highlighting a key difference in latency during inference.\", \"created_at\": \"2025-08-13 22:46:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Low-rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses Low-rank Adapters (LoRA) to achieve its performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA + PL\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA + PL is evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Low Rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Low Rank Adapters (LoRA) for efficient fine-tuning.\", \"created_at\": \"2025-08-13 23:01:24\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "metadata": { + "saved_at": "2025-08-14T21:50:20.320621", + "file_path": "retrieval_logs\\retrieval_20250814_215020_320_hybrid_k10_ck1_History_of_lora_and_its_components.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_215049_735_hybrid_k10_ck4_History_of_lora_and_its_components.json b/retrieval_logs/retrieval_20250814_215049_735_hybrid_k10_ck4_History_of_lora_and_its_components.json new file mode 100644 index 0000000000000000000000000000000000000000..ed3fe350c38d81008587a5a87cc6f65de7536f7f --- /dev/null +++ b/retrieval_logs/retrieval_20250814_215049_735_hybrid_k10_ck4_History_of_lora_and_its_components.json @@ -0,0 +1,13 @@ +{ + "timestamp": "2025-08-14T21:50:49.735187", + "query": "History of lora and it's components?", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 17735, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Adapters\", \"type\": \"category\", \"description\": \"Adapters are a component of the LLaMA models contributing to the overall memory footprint, as shown in the chart.Components used in Full Finetuning and LoRA methods; smaller in LoRA for memory efficiency.\", \"created_at\": \"2025-08-13 23:24:06\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:38\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"LoRA + PL\", \"type\": \"category\", \"description\": \"LoRA + PL combines LoRA with prefix-layer tuning, using trainable embedding and activation parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"16-bit transformer\", \"type\": \"category\", \"description\": \"A type of transformer used in Full Finetuning and LoRA methods.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"S. Wang\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Adapter layers\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Z. Allen-Zhu\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Low-rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low-rank Adapters (LoRA) are used in the QLORA method.Low-rank Adapters (LoRA) is a Parameter Efficient FineTuning (PEFT) method used in the described work to achieve 16-bit finetuning performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"L. Wang\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"QLORA\", \"type\": \"category\", \"description\": \"QLORA is an efficient and accessible fine-tuning method for large language models (LLMs), including chatbots such as Guanaco. It enables the fine-tuning of LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones. This accessibility is achieved through a combination of 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers, significantly reducing memory usage compared to traditional methods. Contrary to simplified explanations, QLORA uses adapters at every network layer, not just a single quantized linear layer, mitigating accuracy loss often observed in other instruction fine-tuning techniques. This multi-layer approach allows for the training of diverse models across various datasets and sizes, achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods. Evaluations demonstrate comparable GLUE accuracy and Super-NaturalInstructions RougeL scores to these methods. QLORA replicates the performance of 16-bit full fine-tuning using a 4-bit base model and Low-rank Adapters (LoRA). The use of paged optimizers further prevents out-of-memory errors, enabling the fine-tuning of large models on a single GPU. While offering significant advantages in efficiency and accessibility for training LLMs on consumer and professional GPUs without performance degradation, QLORA is considered a dual-use technology with potential for misuse. Its primary benefit is improved accessibility of state-of-the-art NLP technology, enabling large-scale analysis without excessive computational resources. QLORA's effectiveness has been demonstrated in experiments detailed in various sections of related texts.\", \"created_at\": \"2025-08-13 23:22:21\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Y. Li\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"WikiSQL\", \"type\": \"category\", \"description\": \"WikiSQL is a large-scale benchmark dataset comprising 56,355 training examples and 8,421 validation examples. Primarily used for evaluating the performance and accuracy of language models, particularly in their ability to translate natural language questions into SQL queries, it facilitates extensive experiments comparing different adaptation methods and assessing logical form validation accuracy. Researchers utilize WikiSQL to test various techniques, including combinations like LoRA and prefix-tuning, and to analyze the impact of model size, as evidenced by studies employing models such as GPT-3 175B. The dataset's core task involves generating SQL queries from natural language questions and their corresponding table schemata. Its application extends to evaluating the performance of diverse adaptation approaches, including fine-tuning (which achieved a validation accuracy of 73.8%), and serves as a valuable resource for assessing the accuracy of language models in question answering. WikiSQL is frequently used as a benchmark for evaluating LoRA and related methods.\", \"created_at\": \"2025-08-13 23:01:24\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"P. Wallis\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"LoRA + PE\", \"type\": \"category\", \"description\": \"LoRA + PE combines LoRA with prefix-embedding tuning, using trainable embedding parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"W. Chen\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"PyTorch\", \"type\": \"category\", \"description\": \"PyTorch is a machine learning framework used for integrating LoRA.\", \"created_at\": \"2025-08-13 22:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Low Rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low Rank Adapters (LoRA) are used in QLORA to efficiently fine-tune the quantized language model.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"adapters\", \"type\": \"category\", \"description\": \"A method or technique for model adaptation, compared with LoRA in the study.Adapters for 7/13/33/65B size models were trained and released as part of the study.Components used in fine-tuning language models, allowing for efficient adaptation.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Parameter-Efficient Adaptation\", \"entity2\": \"adapter layers\", \"description\": \"This method is compared to adapter layers, highlighting a key difference in latency during inference.\", \"created_at\": \"2025-08-13 22:46:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Low-rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses Low-rank Adapters (LoRA) to achieve its performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA + PL\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA + PL is evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Low Rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Low Rank Adapters (LoRA) for efficient fine-tuning.\", \"created_at\": \"2025-08-13 23:01:24\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2106.09685v2\\nChunk: 22\\n\\nOn GPT-3 175B, we reduce the VRAM consumption during training from $1 . 2 \\\\mathrm { T B }$ to 350GB. With $r = 4$ and only the query and value projection matrices being adapted, the checkpoint size is reduced by roughly $1 0 { , } 0 0 0 \\\\times$ (from 350GB to 35MB)4. This allows us to train with significantly fewer GPUs and avoid I/O bottlenecks. Another benefit is that we can switch between tasks while deployed at a much lower cost by only swapping the LoRA weights as opposed to all the parameters. This allows for the creation of many customized models that can be swapped in and out on the fly on machines that store the pre-trained weights in VRAM. We also observe a $2 5 \\\\%$ speedup during training on GPT-3 175B compared to full fine-tuning5 as we do not need to calculate the gradient for the vast majority of the parameters. LoRA also has its limitations.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 6\\n\\n• A pre-trained model can be shared and used to build many small LoRA modules for different tasks. We can freeze the shared model and efficiently switch tasks by replacing the matrices $A$ and $B$ in Figure 1, reducing the storage requirement and task-switching overhead significantly. • LoRA makes training more efficient and lowers the hardware barrier to entry by up to 3 times when using adaptive optimizers since we do not need to calculate the gradients or maintain the optimizer states for most parameters. Instead, we only optimize the injected, much smaller low-rank matrices. • Our simple linear design allows us to merge the trainable matrices with the frozen weights when deployed, introducing no inference latency compared to a fully fine-tuned model, by construction. • LoRA is orthogonal to many prior methods and can be combined with many of them, such as prefix-tuning. We provide an example in Appendix E.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "metadata": { + "saved_at": "2025-08-14T21:50:49.735187", + "file_path": "retrieval_logs\\retrieval_20250814_215049_735_hybrid_k10_ck4_History_of_lora_and_its_components.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_215832_658_hybrid_k10_ck4_History_of_lora_and_its_components.json b/retrieval_logs/retrieval_20250814_215832_658_hybrid_k10_ck4_History_of_lora_and_its_components.json new file mode 100644 index 0000000000000000000000000000000000000000..838ef053b5d98fee7151b677fd918b50ed17b51d --- /dev/null +++ b/retrieval_logs/retrieval_20250814_215832_658_hybrid_k10_ck4_History_of_lora_and_its_components.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T21:58:32.658155", + "query": "History of lora and it's components?", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 17735, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Adapters\", \"type\": \"category\", \"description\": \"Adapters are a component of the LLaMA models contributing to the overall memory footprint, as shown in the chart.Components used in Full Finetuning and LoRA methods; smaller in LoRA for memory efficiency.\", \"created_at\": \"2025-08-13 23:24:06\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:38\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"LoRA + PL\", \"type\": \"category\", \"description\": \"LoRA + PL combines LoRA with prefix-layer tuning, using trainable embedding and activation parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"16-bit transformer\", \"type\": \"category\", \"description\": \"A type of transformer used in Full Finetuning and LoRA methods.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"S. Wang\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Adapter layers\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Z. Allen-Zhu\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Low-rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low-rank Adapters (LoRA) are used in the QLORA method.Low-rank Adapters (LoRA) is a Parameter Efficient FineTuning (PEFT) method used in the described work to achieve 16-bit finetuning performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"L. Wang\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"QLORA\", \"type\": \"category\", \"description\": \"QLORA is an efficient and accessible fine-tuning method for large language models (LLMs), including chatbots such as Guanaco. It enables the fine-tuning of LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones. This accessibility is achieved through a combination of 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers, significantly reducing memory usage compared to traditional methods. Contrary to simplified explanations, QLORA uses adapters at every network layer, not just a single quantized linear layer, mitigating accuracy loss often observed in other instruction fine-tuning techniques. This multi-layer approach allows for the training of diverse models across various datasets and sizes, achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods. Evaluations demonstrate comparable GLUE accuracy and Super-NaturalInstructions RougeL scores to these methods. QLORA replicates the performance of 16-bit full fine-tuning using a 4-bit base model and Low-rank Adapters (LoRA). The use of paged optimizers further prevents out-of-memory errors, enabling the fine-tuning of large models on a single GPU. While offering significant advantages in efficiency and accessibility for training LLMs on consumer and professional GPUs without performance degradation, QLORA is considered a dual-use technology with potential for misuse. Its primary benefit is improved accessibility of state-of-the-art NLP technology, enabling large-scale analysis without excessive computational resources. QLORA's effectiveness has been demonstrated in experiments detailed in various sections of related texts.\", \"created_at\": \"2025-08-13 23:22:21\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Y. Li\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"WikiSQL\", \"type\": \"category\", \"description\": \"WikiSQL is a large-scale benchmark dataset comprising 56,355 training examples and 8,421 validation examples. Primarily used for evaluating the performance and accuracy of language models, particularly in their ability to translate natural language questions into SQL queries, it facilitates extensive experiments comparing different adaptation methods and assessing logical form validation accuracy. Researchers utilize WikiSQL to test various techniques, including combinations like LoRA and prefix-tuning, and to analyze the impact of model size, as evidenced by studies employing models such as GPT-3 175B. The dataset's core task involves generating SQL queries from natural language questions and their corresponding table schemata. Its application extends to evaluating the performance of diverse adaptation approaches, including fine-tuning (which achieved a validation accuracy of 73.8%), and serves as a valuable resource for assessing the accuracy of language models in question answering. WikiSQL is frequently used as a benchmark for evaluating LoRA and related methods.\", \"created_at\": \"2025-08-13 23:01:24\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"P. Wallis\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"LoRA + PE\", \"type\": \"category\", \"description\": \"LoRA + PE combines LoRA with prefix-embedding tuning, using trainable embedding parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"W. Chen\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"PyTorch\", \"type\": \"category\", \"description\": \"PyTorch is a machine learning framework used for integrating LoRA.\", \"created_at\": \"2025-08-13 22:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Low Rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low Rank Adapters (LoRA) are used in QLORA to efficiently fine-tune the quantized language model.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"adapters\", \"type\": \"category\", \"description\": \"A method or technique for model adaptation, compared with LoRA in the study.Adapters for 7/13/33/65B size models were trained and released as part of the study.Components used in fine-tuning language models, allowing for efficient adaptation.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Parameter-Efficient Adaptation\", \"entity2\": \"adapter layers\", \"description\": \"This method is compared to adapter layers, highlighting a key difference in latency during inference.\", \"created_at\": \"2025-08-13 22:46:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Low-rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses Low-rank Adapters (LoRA) to achieve its performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA + PL\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA + PL is evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Low Rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Low Rank Adapters (LoRA) for efficient fine-tuning.\", \"created_at\": \"2025-08-13 23:01:24\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2106.09685v2\\nChunk: 22\\n\\nOn GPT-3 175B, we reduce the VRAM consumption during training from $1 . 2 \\\\mathrm { T B }$ to 350GB. With $r = 4$ and only the query and value projection matrices being adapted, the checkpoint size is reduced by roughly $1 0 { , } 0 0 0 \\\\times$ (from 350GB to 35MB)4. This allows us to train with significantly fewer GPUs and avoid I/O bottlenecks. Another benefit is that we can switch between tasks while deployed at a much lower cost by only swapping the LoRA weights as opposed to all the parameters. This allows for the creation of many customized models that can be swapped in and out on the fly on machines that store the pre-trained weights in VRAM. We also observe a $2 5 \\\\%$ speedup during training on GPT-3 175B compared to full fine-tuning5 as we do not need to calculate the gradient for the vast majority of the parameters. LoRA also has its limitations.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 6\\n\\n• A pre-trained model can be shared and used to build many small LoRA modules for different tasks. We can freeze the shared model and efficiently switch tasks by replacing the matrices $A$ and $B$ in Figure 1, reducing the storage requirement and task-switching overhead significantly. • LoRA makes training more efficient and lowers the hardware barrier to entry by up to 3 times when using adaptive optimizers since we do not need to calculate the gradients or maintain the optimizer states for most parameters. Instead, we only optimize the injected, much smaller low-rank matrices. • Our simple linear design allows us to merge the trainable matrices with the frozen weights when deployed, introducing no inference latency compared to a fully fine-tuned model, by construction. • LoRA is orthogonal to many prior methods and can be combined with many of them, such as prefix-tuning. We provide an example in Appendix E.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.6484, + "rag_initialization_seconds": 5.2358, + "query_execution_seconds": 0.4126, + "start_timestamp": "2025-08-14T21:58:27.009732", + "end_timestamp": "2025-08-14T21:58:32.658155" + }, + "metadata": { + "saved_at": "2025-08-14T21:58:32.658155", + "file_path": "retrieval_logs\\retrieval_20250814_215832_658_hybrid_k10_ck4_History_of_lora_and_its_components.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_225354_715_hybrid_k2_ck1_Who_invented_LoRA.json b/retrieval_logs/retrieval_20250814_225354_715_hybrid_k2_ck1_Who_invented_LoRA.json new file mode 100644 index 0000000000000000000000000000000000000000..bacd2aaac6d573a4c05e9a8ec7c58bac59db5dc3 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_225354_715_hybrid_k2_ck1_Who_invented_LoRA.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T22:53:54.715862", + "query": "Who invented LoRA?", + "query_mode": "hybrid", + "top_k": 2, + "chunk_top_k": 1, + "text_length": 5308, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LORA\", \"type\": \"category\", \"description\": \"LORA is a method for adapting weight matrices in a model, with the optimal rank being investigated in the text.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Li & Liang\", \"type\": \"person\", \"description\": \"Li & Liang are authors of several publications focusing on the efficient adaptation of large language models, particularly those similar to GPT-2. Their research encompasses various techniques, including prefix tuning and optimization of input layer activations to improve adaptation efficiency. They've also investigated methods to mitigate the reduction of usable sequence length often encountered in models like GPT-2, exploring the strategic placement of special tokens through prefixing and infixing within model inputs. Furthermore, their work includes a paper proposing the optimization of input word embeddings, a method analogous to prompt engineering. Their contributions to the field are significant, with their work on GPT-2 adaptation serving as a benchmark for other researchers, and their findings regarding the role of special tokens in model training corroborated by other studies citing their work. In addition to their research on efficient large language model adaptation, Li & Liang have also authored a work on neural networks and neural tangent kernels.Li & Liang are authors referenced for hyperparameters used in baselines other than LoRA in GPT-2.Li & Liang are authors whose experimental setup is followed in the text.\", \"created_at\": \"2025-08-13 22:59:26\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"LoRA r\", \"type\": \"category\", \"description\": \"LoRA r is a hyperparameter in the LoRA technique; its relationship to final performance is discussed.\", \"created_at\": \"2025-08-13 23:20:13\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"prefix tuning\", \"type\": \"category\", \"description\": \"Prefix tuning is a method of optimizing prompts in large language models, but it presents optimization challenges and non-monotonic performance changes.\", \"created_at\": \"2025-08-13 22:44:55\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Llama\", \"type\": \"category\", \"description\": \"Llama is a Large Language Model (LLM) that excels at sensemaking in complex domains.\", \"created_at\": \"2025-08-13 23:24:25\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Touvron et al.\", \"type\": \"person\", \"description\": \"Authors of a 2023 paper cited in the text, likely concerning Llama.\", \"created_at\": \"2025-08-13 23:24:27\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Li & Liang\", \"entity2\": \"prefix tuning\", \"description\": \"Li & Liang's work exemplifies prefix tuning.\", \"created_at\": \"2025-08-13 22:44:58\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LORA\", \"entity2\": \"ΔW\", \"description\": \"ΔW represents the changes in weight matrices resulting from the LORA method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Llama\", \"entity2\": \"Touvron et al.\", \"description\": \"Touvron et al. are cited in relation to Llama, suggesting authorship or significant contribution to its research.\", \"created_at\": \"2025-08-13 23:24:27\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LORA\", \"entity2\": \"Wq\", \"description\": \"Wq is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:04\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LORA\", \"entity2\": \"Wk\", \"description\": \"Wk is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:04\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"LORA\", \"entity2\": \"Wv\", \"description\": \"Wv is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"LORA\", \"entity2\": \"Wc\", \"description\": \"Wc is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 8.5807, + "rag_initialization_seconds": 5.9929, + "query_execution_seconds": 2.5878, + "start_timestamp": "2025-08-14T22:53:46.135207", + "end_timestamp": "2025-08-14T22:53:54.715863" + }, + "metadata": { + "saved_at": "2025-08-14T22:53:54.715862", + "file_path": "retrieval_logs\\retrieval_20250814_225354_715_hybrid_k2_ck1_Who_invented_LoRA.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_225354_716_hybrid_k2_ck1_Who_invented_LoRA.json b/retrieval_logs/retrieval_20250814_225354_716_hybrid_k2_ck1_Who_invented_LoRA.json new file mode 100644 index 0000000000000000000000000000000000000000..3843fec1c2e9dcb660b40c9c9241cce7da47fadd --- /dev/null +++ b/retrieval_logs/retrieval_20250814_225354_716_hybrid_k2_ck1_Who_invented_LoRA.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T22:53:54.716862", + "query": "Who invented LoRA?", + "query_mode": "hybrid", + "top_k": 2, + "chunk_top_k": 1, + "text_length": 5308, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LORA\", \"type\": \"category\", \"description\": \"LORA is a method for adapting weight matrices in a model, with the optimal rank being investigated in the text.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Li & Liang\", \"type\": \"person\", \"description\": \"Li & Liang are authors of several publications focusing on the efficient adaptation of large language models, particularly those similar to GPT-2. Their research encompasses various techniques, including prefix tuning and optimization of input layer activations to improve adaptation efficiency. They've also investigated methods to mitigate the reduction of usable sequence length often encountered in models like GPT-2, exploring the strategic placement of special tokens through prefixing and infixing within model inputs. Furthermore, their work includes a paper proposing the optimization of input word embeddings, a method analogous to prompt engineering. Their contributions to the field are significant, with their work on GPT-2 adaptation serving as a benchmark for other researchers, and their findings regarding the role of special tokens in model training corroborated by other studies citing their work. In addition to their research on efficient large language model adaptation, Li & Liang have also authored a work on neural networks and neural tangent kernels.Li & Liang are authors referenced for hyperparameters used in baselines other than LoRA in GPT-2.Li & Liang are authors whose experimental setup is followed in the text.\", \"created_at\": \"2025-08-13 22:59:26\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"LoRA r\", \"type\": \"category\", \"description\": \"LoRA r is a hyperparameter in the LoRA technique; its relationship to final performance is discussed.\", \"created_at\": \"2025-08-13 23:20:13\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"prefix tuning\", \"type\": \"category\", \"description\": \"Prefix tuning is a method of optimizing prompts in large language models, but it presents optimization challenges and non-monotonic performance changes.\", \"created_at\": \"2025-08-13 22:44:55\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Llama\", \"type\": \"category\", \"description\": \"Llama is a Large Language Model (LLM) that excels at sensemaking in complex domains.\", \"created_at\": \"2025-08-13 23:24:25\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Touvron et al.\", \"type\": \"person\", \"description\": \"Authors of a 2023 paper cited in the text, likely concerning Llama.\", \"created_at\": \"2025-08-13 23:24:27\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Li & Liang\", \"entity2\": \"prefix tuning\", \"description\": \"Li & Liang's work exemplifies prefix tuning.\", \"created_at\": \"2025-08-13 22:44:58\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LORA\", \"entity2\": \"ΔW\", \"description\": \"ΔW represents the changes in weight matrices resulting from the LORA method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Llama\", \"entity2\": \"Touvron et al.\", \"description\": \"Touvron et al. are cited in relation to Llama, suggesting authorship or significant contribution to its research.\", \"created_at\": \"2025-08-13 23:24:27\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LORA\", \"entity2\": \"Wq\", \"description\": \"Wq is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:04\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LORA\", \"entity2\": \"Wk\", \"description\": \"Wk is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:04\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"LORA\", \"entity2\": \"Wv\", \"description\": \"Wv is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"LORA\", \"entity2\": \"Wc\", \"description\": \"Wc is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 7.7759, + "rag_initialization_seconds": 5.3047, + "query_execution_seconds": 2.4712, + "start_timestamp": "2025-08-14T22:53:46.939971", + "end_timestamp": "2025-08-14T22:53:54.715863" + }, + "metadata": { + "saved_at": "2025-08-14T22:53:54.716862", + "file_path": "retrieval_logs\\retrieval_20250814_225354_716_hybrid_k2_ck1_Who_invented_LoRA.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_225400_685_hybrid_k3_ck2_How_does_LoRA_work.json b/retrieval_logs/retrieval_20250814_225400_685_hybrid_k3_ck2_How_does_LoRA_work.json new file mode 100644 index 0000000000000000000000000000000000000000..dfb08a6e8f3398430c5f0e39d0392896e8859b1f --- /dev/null +++ b/retrieval_logs/retrieval_20250814_225400_685_hybrid_k3_ck2_How_does_LoRA_work.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T22:54:00.685357", + "query": "How does LoRA work?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 6960, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"enormous language models\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"NLG\", \"type\": \"category\", \"description\": \"NLG is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-13 22:43:49\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"NLU\", \"type\": \"category\", \"description\": \"NLU is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-13 22:43:49\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 16\\n\\n{ 1 } \\\\in \\\\mathbb { R } ^ { h \\\\times r }$ and $\\\\mathbf { L } _ { 2 } \\\\in \\\\mathbb { R } ^ { r \\\\times o }$ , and $s$ is a scalar. Memory Requirement of Parameter-Efficient Finetuning One important point of discussion is the memory requirement of LoRA during training both in terms of the number and size of adapters used. Since the memory footprint of LoRA is so minimal, we can use more adapters to improve performance without significantly increasing the total memory used. While LoRA was designed as a Parameter Efficient Finetuning (PEFT) method, most of the memory footprint for LLM finetuning comes from activation gradients and not from the learned LoRA parameters. For a 7B LLaMA model trained on FLAN v2 with a batch size of 1, with LoRA weights equivalent to commonly used $0 . 2 \\\\%$ of the original model weights[28, 37], the LoRA input gradients have a memory footprint of 567 MB while the LoRA parameters take up only $2 6 \\\\mathrm { M B }$ .\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.0584, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.0584, + "start_timestamp": "2025-08-14T22:53:57.626950", + "end_timestamp": "2025-08-14T22:54:00.685357" + }, + "metadata": { + "saved_at": "2025-08-14T22:54:00.685357", + "file_path": "retrieval_logs\\retrieval_20250814_225400_685_hybrid_k3_ck2_How_does_LoRA_work.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_225401_300_hybrid_k3_ck2_How_does_LoRA_work.json b/retrieval_logs/retrieval_20250814_225401_300_hybrid_k3_ck2_How_does_LoRA_work.json new file mode 100644 index 0000000000000000000000000000000000000000..a65f97942afcd311aa8f83856b56c3ca77aee6d5 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_225401_300_hybrid_k3_ck2_How_does_LoRA_work.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T22:54:01.300223", + "query": "How does LoRA work?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 6960, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"enormous language models\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"NLG\", \"type\": \"category\", \"description\": \"NLG is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-13 22:43:49\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"NLU\", \"type\": \"category\", \"description\": \"NLU is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-13 22:43:49\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 16\\n\\n{ 1 } \\\\in \\\\mathbb { R } ^ { h \\\\times r }$ and $\\\\mathbf { L } _ { 2 } \\\\in \\\\mathbb { R } ^ { r \\\\times o }$ , and $s$ is a scalar. Memory Requirement of Parameter-Efficient Finetuning One important point of discussion is the memory requirement of LoRA during training both in terms of the number and size of adapters used. Since the memory footprint of LoRA is so minimal, we can use more adapters to improve performance without significantly increasing the total memory used. While LoRA was designed as a Parameter Efficient Finetuning (PEFT) method, most of the memory footprint for LLM finetuning comes from activation gradients and not from the learned LoRA parameters. For a 7B LLaMA model trained on FLAN v2 with a batch size of 1, with LoRA weights equivalent to commonly used $0 . 2 \\\\%$ of the original model weights[28, 37], the LoRA input gradients have a memory footprint of 567 MB while the LoRA parameters take up only $2 6 \\\\mathrm { M B }$ .\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.4529, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.4529, + "start_timestamp": "2025-08-14T22:53:57.846828", + "end_timestamp": "2025-08-14T22:54:01.299719" + }, + "metadata": { + "saved_at": "2025-08-14T22:54:01.300223", + "file_path": "retrieval_logs\\retrieval_20250814_225401_300_hybrid_k3_ck2_How_does_LoRA_work.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_225408_832_hybrid_k10_ck2_What_are_the_differences_between_LoRA_and_full_fin.json b/retrieval_logs/retrieval_20250814_225408_832_hybrid_k10_ck2_What_are_the_differences_between_LoRA_and_full_fin.json new file mode 100644 index 0000000000000000000000000000000000000000..cd48ece88a6af66f105a57be8b4e5db495de22a9 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_225408_832_hybrid_k10_ck2_What_are_the_differences_between_LoRA_and_full_fin.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T22:54:08.832813", + "query": "What are the differences between LoRA and full fine-tuning?", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 2, + "text_length": 45040, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Fine-Tune\", \"type\": \"category\", \"description\": \"Fine-Tune is a GPT-3 adaptation method used for training language models, particularly effective in hyperparameter tuning. It boasts 175 billion trainable parameters and demonstrates superior performance compared to methods like PrefixEmbed and PrefixLayer, especially on the MNLI-100 (also referenced as MNLI100) dataset, achieving an accuracy of 89.5%. Further evaluation on other datasets shows an accuracy of 73.8% on WikiSQL. Fine-Tune's performance has been compared to LoRA and other similar training methods for language models, and it is frequently used to evaluate performance on subsets of the MNLI dataset.\", \"created_at\": \"2025-08-13 23:02:45\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"MNLI100\", \"type\": \"event\", \"description\": \"MNLI100 is a dataset used to evaluate the performance of different adaptation approaches for GPT-3.\", \"created_at\": \"2025-08-13 22:57:16\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"7B\", \"type\": \"organization\", \"description\": \"The 7B model is a member of the LLaMA family of language models. This designation refers to its size, specifically its parameter count, which is 7 billion. This substantial scale contributes to the model's generally good generalization capabilities, although performance is sensitive to factors like learning rate and batch size during training. The 7B model's size is relevant in the context of neural network weights and has been used in training with various datasets and parameters. Its 5-shot MMLU accuracy has been evaluated using different floating-point formats, and its memory footprint has been charted.\", \"created_at\": \"2025-08-13 23:24:56\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"learning rate\", \"type\": \"UNKNOWN\", \"description\": \"The learning rate needs adjustment for model sizes beyond 7B.\", \"created_at\": \"2025-08-13 23:12:17\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"GPT-3\", \"type\": \"organization\", \"description\": \"GPT-3 is a large-scale, pre-trained language model with 175 billion trainable parameters. Its immense size enables strong performance across diverse large-scale applications, as evidenced by experiments using datasets like WikiSQL and SAMSum. This size, however, presents significant deployment challenges and establishes GPT-3 as a benchmark against which other models, such as LoRA, LLaMA, Guanaco, and OPT, are compared. GPT-3's performance is highly dependent on the quality of input prompts, often necessitating techniques like prompt engineering or prompt hacking for optimal results. It has been extensively used in various experiments, including those evaluating different methods on subsets of the Multi-Genre Natural Language Inference (MNLI) dataset, comparing fine-tuning and few-shot learning performance, analyzing its 48th layer's weight matrices, and exploring parameter-efficient fine-tuning methods (FT, BitFit, PreEmbed, PreLayer, AdapterH, LoRA) and adaptation approaches (PrefixLayer, PrefixEmbed, PrefixTune LoRA). One specific experiment involved training GPT-3 for 2 epochs using the AdamW optimizer with a batch size of 128, a weight decay of 0.1, a sequence length of 384, and a general domain dataset. Further experiments focused on adaptation methods and how performance varies with different numbers of trainable parameters (specific hyperparameter details are not provided). While a simpler model (where r=1 suffices) may be adequate for many tasks, GPT-3's capabilities serve as a significant benchmark in the field of large language models, particularly within the contexts of few-shot learning, fine-tuning experiments, and bias analysis across various categories.\", \"created_at\": \"2025-08-13 23:14:39\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:37\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Fine-Tune (354M)\", \"type\": \"category\", \"description\": \"Fine-Tune (354M) is a method where a 354M parameter model is fine-tuned on the WebNLG dataset.\", \"created_at\": \"2025-08-13 22:59:58\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"WebNLG\", \"type\": \"event\", \"description\": \"WebNLG is a benchmark dataset and data-to-text evaluation dataset used in various experiments. As described in Gardent et al. (2017), it contains approximately 22,000 examples categorized into 14 distinct categories. Nine of these categories are seen during training, while five are unseen during training but present in the test set. Each example in WebNLG is represented as a sequence of SUBJECT-PROPERTY-OBJECT triples. Results from experiments using this dataset are available in Section F.1.WebNLG is a dataset or task used to evaluate GPT-2 with different adaptation methods.WebNLG is a test set used to evaluate different methods in natural language generation.\", \"created_at\": \"2025-08-13 22:59:58\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"MNLI-100\", \"type\": \"UNKNOWN\", \"description\": \"PrefixEmbed's performance was evaluated on the MNLI-100 dataset, showing poor performance compared to random chance.\", \"created_at\": \"2025-08-13 22:57:07\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Li & Liang\", \"type\": \"person\", \"description\": \"Li & Liang are authors of several publications focusing on the efficient adaptation of large language models, particularly those similar to GPT-2. Their research encompasses various techniques, including prefix tuning and optimization of input layer activations to improve adaptation efficiency. They've also investigated methods to mitigate the reduction of usable sequence length often encountered in models like GPT-2, exploring the strategic placement of special tokens through prefixing and infixing within model inputs. Furthermore, their work includes a paper proposing the optimization of input word embeddings, a method analogous to prompt engineering. Their contributions to the field are significant, with their work on GPT-2 adaptation serving as a benchmark for other researchers, and their findings regarding the role of special tokens in model training corroborated by other studies citing their work. In addition to their research on efficient large language model adaptation, Li & Liang have also authored a work on neural networks and neural tangent kernels.Li & Liang are authors referenced for hyperparameters used in baselines other than LoRA in GPT-2.Li & Liang are authors whose experimental setup is followed in the text.\", \"created_at\": \"2025-08-13 22:59:26\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Section 6\", \"type\": \"category\", \"description\": \"Section 6 of the document contains a survey of well-known works on efficient model adaptation.\", \"created_at\": \"2025-08-13 22:45:38\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"LLaMA\", \"type\": \"category\", \"description\": \"LLaMA is a family of large language models, with different sizes (e.g., 33B, 7B) mentioned in the text.LLaMA is a family of pretrained large language models (LLMs) encompassing several variants with 7 billion, 13 billion, 33 billion, and 65 billion parameters. These models serve as foundational base models for other LLMs, including Guanaco, Vicuna, and Open Assistant. Consequently, models fine-tuned on LLaMA, such as Guanaco, inherit some of LLaMA's biases. Research into LLaMA has concentrated on parameter-efficient fine-tuning techniques, employing 4-bit quantization to manage the substantial GPU memory demands associated with its scale. Fine-tuning processes utilized methods like QLoRA and leveraged datasets including Flan v2 and Alpaca. Performance evaluations of LLaMA and its derivatives involved metrics like zero-shot accuracy, perplexity (especially on the Pile Common Crawl dataset), 5-shot MMLU accuracy, and RougeL scores (post fine-tuning). These evaluations comprehensively analyzed the effects of different quantization methods and fine-tuning strategies on performance across various floating-point formats, although specific numerical results are not detailed in the provided descriptions.LLaMA is a language model mentioned in the text. Further details about its nature or activities are not provided.\", \"created_at\": \"2025-08-13 23:26:09\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Self-Instruct\", \"type\": \"category\", \"description\": \"Description not available in text.Self-Instruct is a dataset used to fine-tune LLaMA.Self-Instruct is an instruction tuning dataset created through model distillation from GPT-3 Instruct and ChatGPT, containing 82,612 examples.\", \"created_at\": \"2025-08-13 23:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Deep Learning\", \"type\": \"category\", \"description\": \"A subfield of machine learning where over-parametrized neural networks often exhibit low-rank properties after training.\", \"created_at\": \"2025-08-13 22:50:18\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Low-Rank Structure\", \"type\": \"category\", \"description\": \"A common characteristic in machine learning problems and learned neural networks, often explicitly imposed during training.\", \"created_at\": \"2025-08-13 22:50:18\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Fine-tuning\", \"type\": \"UNKNOWN\", \"description\": \"Fine-tuning is mentioned in the context of the LLaMA 65B parameter model, highlighting its high cost.\", \"created_at\": \"2025-08-13 23:03:30\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"LLaMA 65B parameter model\", \"type\": \"organization\", \"description\": \"A large language model (LLM) requiring more than $780 GB of GPU memory for 16-bit fine-tuning.\", \"created_at\": \"2025-08-13 23:03:26\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Fine-Tune\", \"entity2\": \"MNLI100\", \"description\": \"Fine-Tune outperforms PrefixLayer and PrefixEmbed on MNLI100.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"7B\", \"entity2\": \"learning rate\", \"description\": \"The learning rate needs adjustment for model sizes beyond 7B.\", \"created_at\": \"2025-08-13 23:12:17\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Fine-Tune (354M)\", \"entity2\": \"WebNLG\", \"description\": \"The Fine-Tune (354M) method was applied to the WebNLG dataset for evaluation.\", \"created_at\": \"2025-08-13 22:59:58\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Fine-Tune\", \"entity2\": \"MNLI-100\", \"description\": \"Fine-Tune's performance was evaluated on the MNLI-100 dataset, outperforming PrefixEmbed and PrefixLayer.\", \"created_at\": \"2025-08-13 22:57:07\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Li & Liang\", \"entity2\": \"Section 6\", \"description\": \"Section 6 likely surveys the work of Li & Liang on efficient model adaptation by optimizing input layer activations.\", \"created_at\": \"2025-08-13 22:45:40\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LLaMA\", \"entity2\": \"Self-Instruct\", \"description\": \"Self-Instruct dataset was used to fine-tune the LLaMA model.\", \"created_at\": \"2025-08-13 23:11:19\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Deep Learning\", \"entity2\": \"Low-Rank Structure\", \"description\": \"Deep learning models, especially over-parametrized neural networks, often exhibit low-rank structure after training.\", \"created_at\": \"2025-08-13 22:50:18\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to enhance training efficiency and reduce resource consumption. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training. This reduction in trainable parameters is achieved without compromising performance on downstream tasks; in fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios. The primary benefits of using LoRA with GPT-3 175B are improved training efficiency and reduced resource requirements.LoRA is an adaptation method whose performance is evaluated on GPT-3 175B, showing higher validation accuracy compared to other methods.LoRA is a method compared to others (including Fine-Tune, PrefixEmbed, and PrefixLayer) when used with GPT-3 175B on MNLI subsets.\", \"created_at\": \"2025-08-13 23:02:54\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Fine-tuning\", \"entity2\": \"LLaMA 65B parameter model\", \"description\": \"Fine-tuning is mentioned in the context of the LLaMA 65B parameter model, highlighting its high cost.\", \"created_at\": \"2025-08-13 23:03:30\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 107, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 101\\n\\n# G MEASURING SIMILARITY BETWEEN SUBSPACES In this paper we use the measure φ(A, B, i, j) = ψ(U iA, U jB ) = kUi>A UBk2Fmin{i,j} t o measure the subspace similarity between two column orthonormal matrices $U _ { A } ^ { i } \\\\in \\\\mathbb { R } ^ { d \\\\times i }$ and $U _ { B } ^ { j } \\\\in \\\\mathbb { R } ^ { d \\\\times j }$ , obtained by taking columns of the left singular matrices of $A$ and $B$ . We point out that this similarity is simply a reverse of the standard Projection Metric that measures distance between subspaces Ham & Lee (2008). Table 15: Hyperparameter analysis of different adaptation approaches on WikiSQL and MNLI. Both prefix-embedding tuning (PrefixEmbed) and prefix-layer tuning (PrefixLayer) perform worse as we increase the number of trainable parameters, while LoRA’s performance stabilizes. Performance is measured in validation accuracy.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.9391, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 2.9391, + "start_timestamp": "2025-08-14T22:54:05.893752", + "end_timestamp": "2025-08-14T22:54:08.832813" + }, + "metadata": { + "saved_at": "2025-08-14T22:54:08.832813", + "file_path": "retrieval_logs\\retrieval_20250814_225408_832_hybrid_k10_ck2_What_are_the_differences_between_LoRA_and_full_fin.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_225408_905_hybrid_k3_ck2_What_are_the_differences_between_LoRA_and_full_fin.json b/retrieval_logs/retrieval_20250814_225408_905_hybrid_k3_ck2_What_are_the_differences_between_LoRA_and_full_fin.json new file mode 100644 index 0000000000000000000000000000000000000000..ddc770697e3a44f6d90fd3d704470cd42a12f321 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_225408_905_hybrid_k3_ck2_What_are_the_differences_between_LoRA_and_full_fin.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T22:54:08.905544", + "query": "What are the differences between LoRA and full fine-tuning?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 35219, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Fine-Tune\", \"type\": \"category\", \"description\": \"Fine-Tune is a GPT-3 adaptation method used for training language models, particularly effective in hyperparameter tuning. It boasts 175 billion trainable parameters and demonstrates superior performance compared to methods like PrefixEmbed and PrefixLayer, especially on the MNLI-100 (also referenced as MNLI100) dataset, achieving an accuracy of 89.5%. Further evaluation on other datasets shows an accuracy of 73.8% on WikiSQL. Fine-Tune's performance has been compared to LoRA and other similar training methods for language models, and it is frequently used to evaluate performance on subsets of the MNLI dataset.\", \"created_at\": \"2025-08-13 23:02:45\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"MNLI100\", \"type\": \"event\", \"description\": \"MNLI100 is a dataset used to evaluate the performance of different adaptation approaches for GPT-3.\", \"created_at\": \"2025-08-13 22:57:16\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"7B\", \"type\": \"organization\", \"description\": \"The 7B model is a member of the LLaMA family of language models. This designation refers to its size, specifically its parameter count, which is 7 billion. This substantial scale contributes to the model's generally good generalization capabilities, although performance is sensitive to factors like learning rate and batch size during training. The 7B model's size is relevant in the context of neural network weights and has been used in training with various datasets and parameters. Its 5-shot MMLU accuracy has been evaluated using different floating-point formats, and its memory footprint has been charted.\", \"created_at\": \"2025-08-13 23:24:56\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"learning rate\", \"type\": \"UNKNOWN\", \"description\": \"The learning rate needs adjustment for model sizes beyond 7B.\", \"created_at\": \"2025-08-13 23:12:17\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Fine-Tune\", \"entity2\": \"MNLI100\", \"description\": \"Fine-Tune outperforms PrefixLayer and PrefixEmbed on MNLI100.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"7B\", \"entity2\": \"learning rate\", \"description\": \"The learning rate needs adjustment for model sizes beyond 7B.\", \"created_at\": \"2025-08-13 23:12:17\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to enhance training efficiency and reduce resource consumption. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training. This reduction in trainable parameters is achieved without compromising performance on downstream tasks; in fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios. The primary benefits of using LoRA with GPT-3 175B are improved training efficiency and reduced resource requirements.LoRA is an adaptation method whose performance is evaluated on GPT-3 175B, showing higher validation accuracy compared to other methods.LoRA is a method compared to others (including Fine-Tune, PrefixEmbed, and PrefixLayer) when used with GPT-3 175B on MNLI subsets.\", \"created_at\": \"2025-08-13 23:02:54\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 22\\n\\nOn GPT-3 175B, we reduce the VRAM consumption during training from $1 . 2 \\\\mathrm { T B }$ to 350GB. With $r = 4$ and only the query and value projection matrices being adapted, the checkpoint size is reduced by roughly $1 0 { , } 0 0 0 \\\\times$ (from 350GB to 35MB)4. This allows us to train with significantly fewer GPUs and avoid I/O bottlenecks. Another benefit is that we can switch between tasks while deployed at a much lower cost by only swapping the LoRA weights as opposed to all the parameters. This allows for the creation of many customized models that can be swapped in and out on the fly on machines that store the pre-trained weights in VRAM. We also observe a $2 5 \\\\%$ speedup during training on GPT-3 175B compared to full fine-tuning5 as we do not need to calculate the gradient for the vast majority of the parameters. LoRA also has its limitations.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.1593, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.1593, + "start_timestamp": "2025-08-14T22:54:05.745264", + "end_timestamp": "2025-08-14T22:54:08.905545" + }, + "metadata": { + "saved_at": "2025-08-14T22:54:08.905544", + "file_path": "retrieval_logs\\retrieval_20250814_225408_905_hybrid_k3_ck2_What_are_the_differences_between_LoRA_and_full_fin.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_225415_816_hybrid_k5_ck2_History_of_LoRA_and_its_components.json b/retrieval_logs/retrieval_20250814_225415_816_hybrid_k5_ck2_History_of_LoRA_and_its_components.json new file mode 100644 index 0000000000000000000000000000000000000000..7b23e28e54fa011280c70fd4e76c01145b9c0556 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_225415_816_hybrid_k5_ck2_History_of_LoRA_and_its_components.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T22:54:15.816198", + "query": "History of LoRA and its components?", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 11246, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:38\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"LoRA + PL\", \"type\": \"category\", \"description\": \"LoRA + PL combines LoRA with prefix-layer tuning, using trainable embedding and activation parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Low-rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low-rank Adapters (LoRA) are used in the QLORA method.Low-rank Adapters (LoRA) is a Parameter Efficient FineTuning (PEFT) method used in the described work to achieve 16-bit finetuning performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"QLORA\", \"type\": \"category\", \"description\": \"QLORA is an efficient and accessible fine-tuning method for large language models (LLMs), including chatbots such as Guanaco. It enables the fine-tuning of LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones. This accessibility is achieved through a combination of 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers, significantly reducing memory usage compared to traditional methods. Contrary to simplified explanations, QLORA uses adapters at every network layer, not just a single quantized linear layer, mitigating accuracy loss often observed in other instruction fine-tuning techniques. This multi-layer approach allows for the training of diverse models across various datasets and sizes, achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods. Evaluations demonstrate comparable GLUE accuracy and Super-NaturalInstructions RougeL scores to these methods. QLORA replicates the performance of 16-bit full fine-tuning using a 4-bit base model and Low-rank Adapters (LoRA). The use of paged optimizers further prevents out-of-memory errors, enabling the fine-tuning of large models on a single GPU. While offering significant advantages in efficiency and accessibility for training LLMs on consumer and professional GPUs without performance degradation, QLORA is considered a dual-use technology with potential for misuse. Its primary benefit is improved accessibility of state-of-the-art NLP technology, enabling large-scale analysis without excessive computational resources. QLORA's effectiveness has been demonstrated in experiments detailed in various sections of related texts.\", \"created_at\": \"2025-08-13 23:22:21\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"S. Wang\", \"type\": \"person\", \"description\": \"Co-author of the paper 'LoRA: Low-rank adaptation of large language models'.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Adapter layers\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"16-bit transformer\", \"type\": \"category\", \"description\": \"A type of transformer used in Full Finetuning and LoRA methods.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Adapters\", \"type\": \"category\", \"description\": \"Adapters are a component of the LLaMA models contributing to the overall memory footprint, as shown in the chart.Components used in Full Finetuning and LoRA methods; smaller in LoRA for memory efficiency.\", \"created_at\": \"2025-08-13 23:24:06\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Low-rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses Low-rank Adapters (LoRA) to achieve its performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Parameter-Efficient Adaptation\", \"entity2\": \"adapter layers\", \"description\": \"This method is compared to adapter layers, highlighting a key difference in latency during inference.\", \"created_at\": \"2025-08-13 22:46:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 1.8646, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 1.8646, + "start_timestamp": "2025-08-14T22:54:13.950580", + "end_timestamp": "2025-08-14T22:54:15.815197" + }, + "metadata": { + "saved_at": "2025-08-14T22:54:15.816198", + "file_path": "retrieval_logs\\retrieval_20250814_225415_816_hybrid_k5_ck2_History_of_LoRA_and_its_components.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_225417_782_hybrid_k5_ck2_History_of_LoRA_and_its_components.json b/retrieval_logs/retrieval_20250814_225417_782_hybrid_k5_ck2_History_of_LoRA_and_its_components.json new file mode 100644 index 0000000000000000000000000000000000000000..0560c3fcd8329fdde690a5a836d6aac322dd25d0 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_225417_782_hybrid_k5_ck2_History_of_LoRA_and_its_components.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T22:54:17.782558", + "query": "History of LoRA and its components?", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 11253, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"LoRA + PL\", \"type\": \"category\", \"description\": \"LoRA + PL combines LoRA with prefix-layer tuning, using trainable embedding and activation parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Low-rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low-rank Adapters (LoRA) are used in the QLORA method.Low-rank Adapters (LoRA) is a Parameter Efficient FineTuning (PEFT) method used in the described work to achieve 16-bit finetuning performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:38\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"QLORA\", \"type\": \"category\", \"description\": \"QLORA is an efficient and accessible fine-tuning method for large language models (LLMs), including chatbots such as Guanaco. It enables the fine-tuning of LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones. This accessibility is achieved through a combination of 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers, significantly reducing memory usage compared to traditional methods. Contrary to simplified explanations, QLORA uses adapters at every network layer, not just a single quantized linear layer, mitigating accuracy loss often observed in other instruction fine-tuning techniques. This multi-layer approach allows for the training of diverse models across various datasets and sizes, achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods. Evaluations demonstrate comparable GLUE accuracy and Super-NaturalInstructions RougeL scores to these methods. QLORA replicates the performance of 16-bit full fine-tuning using a 4-bit base model and Low-rank Adapters (LoRA). The use of paged optimizers further prevents out-of-memory errors, enabling the fine-tuning of large models on a single GPU. While offering significant advantages in efficiency and accessibility for training LLMs on consumer and professional GPUs without performance degradation, QLORA is considered a dual-use technology with potential for misuse. Its primary benefit is improved accessibility of state-of-the-art NLP technology, enabling large-scale analysis without excessive computational resources. QLORA's effectiveness has been demonstrated in experiments detailed in various sections of related texts.\", \"created_at\": \"2025-08-13 23:22:21\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Yifan Gong\", \"type\": \"person\", \"description\": \"Author of the paper 'Low-rank plus diagonal adaptation for deep neural networks'\", \"created_at\": \"2025-08-13 22:54:04\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Adapter layers\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"16-bit transformer\", \"type\": \"category\", \"description\": \"A type of transformer used in Full Finetuning and LoRA methods.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Adapters\", \"type\": \"category\", \"description\": \"Adapters are a component of the LLaMA models contributing to the overall memory footprint, as shown in the chart.Components used in Full Finetuning and LoRA methods; smaller in LoRA for memory efficiency.\", \"created_at\": \"2025-08-13 23:24:06\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Low-rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses Low-rank Adapters (LoRA) to achieve its performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Parameter-Efficient Adaptation\", \"entity2\": \"adapter layers\", \"description\": \"This method is compared to adapter layers, highlighting a key difference in latency during inference.\", \"created_at\": \"2025-08-13 22:46:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.6639, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 2.6639, + "start_timestamp": "2025-08-14T22:54:15.117652", + "end_timestamp": "2025-08-14T22:54:17.781556" + }, + "metadata": { + "saved_at": "2025-08-14T22:54:17.782558", + "file_path": "retrieval_logs\\retrieval_20250814_225417_782_hybrid_k5_ck2_History_of_LoRA_and_its_components.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_225424_714_hybrid_k3_ck2_What_is_LoRA.json b/retrieval_logs/retrieval_20250814_225424_714_hybrid_k3_ck2_What_is_LoRA.json new file mode 100644 index 0000000000000000000000000000000000000000..aac26934c65406952ec5740d0ea2d5c80baf3b2c --- /dev/null +++ b/retrieval_logs/retrieval_20250814_225424_714_hybrid_k3_ck2_What_is_LoRA.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T22:54:24.714322", + "query": "What is LoRA?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 7626, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:38\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"enormous language models\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"MNLI-matched\", \"type\": \"category\", \"description\": \"A dataset used for evaluating adaptation methods in language models, matched with WikiSQL.MNLI-matched is a dataset used to evaluate the performance of GPT-3 in few-shot and fine-tuned settings.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"MNLI-Full\", \"type\": \"event\", \"description\": \"MNLI-Full is a dataset used to evaluate the performance of different adaptation approaches for GPT-3.\", \"created_at\": \"2025-08-13 22:57:16\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Parameter-Efficient Adaptation\", \"entity2\": \"adapter layers\", \"description\": \"This method is compared to adapter layers, highlighting a key difference in latency during inference.\", \"created_at\": \"2025-08-13 22:46:41\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 16\\n\\n{ 1 } \\\\in \\\\mathbb { R } ^ { h \\\\times r }$ and $\\\\mathbf { L } _ { 2 } \\\\in \\\\mathbb { R } ^ { r \\\\times o }$ , and $s$ is a scalar. Memory Requirement of Parameter-Efficient Finetuning One important point of discussion is the memory requirement of LoRA during training both in terms of the number and size of adapters used. Since the memory footprint of LoRA is so minimal, we can use more adapters to improve performance without significantly increasing the total memory used. While LoRA was designed as a Parameter Efficient Finetuning (PEFT) method, most of the memory footprint for LLM finetuning comes from activation gradients and not from the learned LoRA parameters. For a 7B LLaMA model trained on FLAN v2 with a batch size of 1, with LoRA weights equivalent to commonly used $0 . 2 \\\\%$ of the original model weights[28, 37], the LoRA input gradients have a memory footprint of 567 MB while the LoRA parameters take up only $2 6 \\\\mathrm { M B }$ .\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 1.8343, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 1.8343, + "start_timestamp": "2025-08-14T22:54:22.880012", + "end_timestamp": "2025-08-14T22:54:24.714323" + }, + "metadata": { + "saved_at": "2025-08-14T22:54:24.714322", + "file_path": "retrieval_logs\\retrieval_20250814_225424_714_hybrid_k3_ck2_What_is_LoRA.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_225426_618_hybrid_k3_ck2_What_is_LoRA.json b/retrieval_logs/retrieval_20250814_225426_618_hybrid_k3_ck2_What_is_LoRA.json new file mode 100644 index 0000000000000000000000000000000000000000..7624b973efca868927487f70d1d1c1e25968f202 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_225426_618_hybrid_k3_ck2_What_is_LoRA.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T22:54:26.618283", + "query": "What is LoRA?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 7626, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:38\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"enormous language models\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"MNLI-matched\", \"type\": \"category\", \"description\": \"A dataset used for evaluating adaptation methods in language models, matched with WikiSQL.MNLI-matched is a dataset used to evaluate the performance of GPT-3 in few-shot and fine-tuned settings.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"MNLI-Full\", \"type\": \"event\", \"description\": \"MNLI-Full is a dataset used to evaluate the performance of different adaptation approaches for GPT-3.\", \"created_at\": \"2025-08-13 22:57:16\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Parameter-Efficient Adaptation\", \"entity2\": \"adapter layers\", \"description\": \"This method is compared to adapter layers, highlighting a key difference in latency during inference.\", \"created_at\": \"2025-08-13 22:46:41\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 16\\n\\n{ 1 } \\\\in \\\\mathbb { R } ^ { h \\\\times r }$ and $\\\\mathbf { L } _ { 2 } \\\\in \\\\mathbb { R } ^ { r \\\\times o }$ , and $s$ is a scalar. Memory Requirement of Parameter-Efficient Finetuning One important point of discussion is the memory requirement of LoRA during training both in terms of the number and size of adapters used. Since the memory footprint of LoRA is so minimal, we can use more adapters to improve performance without significantly increasing the total memory used. While LoRA was designed as a Parameter Efficient Finetuning (PEFT) method, most of the memory footprint for LLM finetuning comes from activation gradients and not from the learned LoRA parameters. For a 7B LLaMA model trained on FLAN v2 with a batch size of 1, with LoRA weights equivalent to commonly used $0 . 2 \\\\%$ of the original model weights[28, 37], the LoRA input gradients have a memory footprint of 567 MB while the LoRA parameters take up only $2 6 \\\\mathrm { M B }$ .\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.8767, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 2.8767, + "start_timestamp": "2025-08-14T22:54:23.741553", + "end_timestamp": "2025-08-14T22:54:26.618284" + }, + "metadata": { + "saved_at": "2025-08-14T22:54:26.618283", + "file_path": "retrieval_logs\\retrieval_20250814_225426_618_hybrid_k3_ck2_What_is_LoRA.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_230430_837_hybrid_k2_ck1_Who_invented_LoRA.json b/retrieval_logs/retrieval_20250814_230430_837_hybrid_k2_ck1_Who_invented_LoRA.json new file mode 100644 index 0000000000000000000000000000000000000000..a8d7c5e6922a85aab033b24f2b491c5baee8b08e --- /dev/null +++ b/retrieval_logs/retrieval_20250814_230430_837_hybrid_k2_ck1_Who_invented_LoRA.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:04:30.837291", + "query": "Who invented LoRA?", + "query_mode": "hybrid", + "top_k": 2, + "chunk_top_k": 1, + "text_length": 5308, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LORA\", \"type\": \"category\", \"description\": \"LORA is a method for adapting weight matrices in a model, with the optimal rank being investigated in the text.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Li & Liang\", \"type\": \"person\", \"description\": \"Li & Liang are authors of several publications focusing on the efficient adaptation of large language models, particularly those similar to GPT-2. Their research encompasses various techniques, including prefix tuning and optimization of input layer activations to improve adaptation efficiency. They've also investigated methods to mitigate the reduction of usable sequence length often encountered in models like GPT-2, exploring the strategic placement of special tokens through prefixing and infixing within model inputs. Furthermore, their work includes a paper proposing the optimization of input word embeddings, a method analogous to prompt engineering. Their contributions to the field are significant, with their work on GPT-2 adaptation serving as a benchmark for other researchers, and their findings regarding the role of special tokens in model training corroborated by other studies citing their work. In addition to their research on efficient large language model adaptation, Li & Liang have also authored a work on neural networks and neural tangent kernels.Li & Liang are authors referenced for hyperparameters used in baselines other than LoRA in GPT-2.Li & Liang are authors whose experimental setup is followed in the text.\", \"created_at\": \"2025-08-13 22:59:26\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"LoRA r\", \"type\": \"category\", \"description\": \"LoRA r is a hyperparameter in the LoRA technique; its relationship to final performance is discussed.\", \"created_at\": \"2025-08-13 23:20:13\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"prefix tuning\", \"type\": \"category\", \"description\": \"Prefix tuning is a method of optimizing prompts in large language models, but it presents optimization challenges and non-monotonic performance changes.\", \"created_at\": \"2025-08-13 22:44:55\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Llama\", \"type\": \"category\", \"description\": \"Llama is a Large Language Model (LLM) that excels at sensemaking in complex domains.\", \"created_at\": \"2025-08-13 23:24:25\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Touvron et al.\", \"type\": \"person\", \"description\": \"Authors of a 2023 paper cited in the text, likely concerning Llama.\", \"created_at\": \"2025-08-13 23:24:27\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Li & Liang\", \"entity2\": \"prefix tuning\", \"description\": \"Li & Liang's work exemplifies prefix tuning.\", \"created_at\": \"2025-08-13 22:44:58\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LORA\", \"entity2\": \"ΔW\", \"description\": \"ΔW represents the changes in weight matrices resulting from the LORA method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Llama\", \"entity2\": \"Touvron et al.\", \"description\": \"Touvron et al. are cited in relation to Llama, suggesting authorship or significant contribution to its research.\", \"created_at\": \"2025-08-13 23:24:27\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LORA\", \"entity2\": \"Wq\", \"description\": \"Wq is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:04\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LORA\", \"entity2\": \"Wk\", \"description\": \"Wk is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:04\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"LORA\", \"entity2\": \"Wv\", \"description\": \"Wv is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"LORA\", \"entity2\": \"Wc\", \"description\": \"Wc is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.6119, + "rag_initialization_seconds": 5.2552, + "query_execution_seconds": 0.3566, + "start_timestamp": "2025-08-14T23:04:25.224411", + "end_timestamp": "2025-08-14T23:04:30.836293" + }, + "metadata": { + "saved_at": "2025-08-14T23:04:30.837291", + "file_path": "retrieval_logs\\retrieval_20250814_230430_837_hybrid_k2_ck1_Who_invented_LoRA.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_230434_955_hybrid_k3_ck2_How_does_LoRA_work.json b/retrieval_logs/retrieval_20250814_230434_955_hybrid_k3_ck2_How_does_LoRA_work.json new file mode 100644 index 0000000000000000000000000000000000000000..d674abd4fed3bbe4a97d153c20237b4ec1a6db42 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_230434_955_hybrid_k3_ck2_How_does_LoRA_work.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:04:34.955645", + "query": "How does LoRA work?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 6960, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"enormous language models\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"NLG\", \"type\": \"category\", \"description\": \"NLG is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-13 22:43:49\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"NLU\", \"type\": \"category\", \"description\": \"NLU is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-13 22:43:49\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 16\\n\\n{ 1 } \\\\in \\\\mathbb { R } ^ { h \\\\times r }$ and $\\\\mathbf { L } _ { 2 } \\\\in \\\\mathbb { R } ^ { r \\\\times o }$ , and $s$ is a scalar. Memory Requirement of Parameter-Efficient Finetuning One important point of discussion is the memory requirement of LoRA during training both in terms of the number and size of adapters used. Since the memory footprint of LoRA is so minimal, we can use more adapters to improve performance without significantly increasing the total memory used. While LoRA was designed as a Parameter Efficient Finetuning (PEFT) method, most of the memory footprint for LLM finetuning comes from activation gradients and not from the learned LoRA parameters. For a 7B LLaMA model trained on FLAN v2 with a batch size of 1, with LoRA weights equivalent to commonly used $0 . 2 \\\\%$ of the original model weights[28, 37], the LoRA input gradients have a memory footprint of 567 MB while the LoRA parameters take up only $2 6 \\\\mathrm { M B }$ .\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 0.1182, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 0.1182, + "start_timestamp": "2025-08-14T23:04:34.837400", + "end_timestamp": "2025-08-14T23:04:34.955646" + }, + "metadata": { + "saved_at": "2025-08-14T23:04:34.955645", + "file_path": "retrieval_logs\\retrieval_20250814_230434_955_hybrid_k3_ck2_How_does_LoRA_work.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_230442_900_hybrid_k3_ck2_What_are_the_differences_between_LoRA_and_full_fin.json b/retrieval_logs/retrieval_20250814_230442_900_hybrid_k3_ck2_What_are_the_differences_between_LoRA_and_full_fin.json new file mode 100644 index 0000000000000000000000000000000000000000..dcf8587dec4776df0ab299b6575d55873683ae4b --- /dev/null +++ b/retrieval_logs/retrieval_20250814_230442_900_hybrid_k3_ck2_What_are_the_differences_between_LoRA_and_full_fin.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:04:42.900461", + "query": "What are the differences between LoRA and full fine-tuning?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 35219, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Fine-Tune\", \"type\": \"category\", \"description\": \"Fine-Tune is a GPT-3 adaptation method used for training language models, particularly effective in hyperparameter tuning. It boasts 175 billion trainable parameters and demonstrates superior performance compared to methods like PrefixEmbed and PrefixLayer, especially on the MNLI-100 (also referenced as MNLI100) dataset, achieving an accuracy of 89.5%. Further evaluation on other datasets shows an accuracy of 73.8% on WikiSQL. Fine-Tune's performance has been compared to LoRA and other similar training methods for language models, and it is frequently used to evaluate performance on subsets of the MNLI dataset.\", \"created_at\": \"2025-08-13 23:02:45\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"MNLI100\", \"type\": \"event\", \"description\": \"MNLI100 is a dataset used to evaluate the performance of different adaptation approaches for GPT-3.\", \"created_at\": \"2025-08-13 22:57:16\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"7B\", \"type\": \"organization\", \"description\": \"The 7B model is a member of the LLaMA family of language models. This designation refers to its size, specifically its parameter count, which is 7 billion. This substantial scale contributes to the model's generally good generalization capabilities, although performance is sensitive to factors like learning rate and batch size during training. The 7B model's size is relevant in the context of neural network weights and has been used in training with various datasets and parameters. Its 5-shot MMLU accuracy has been evaluated using different floating-point formats, and its memory footprint has been charted.\", \"created_at\": \"2025-08-13 23:24:56\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"learning rate\", \"type\": \"UNKNOWN\", \"description\": \"The learning rate needs adjustment for model sizes beyond 7B.\", \"created_at\": \"2025-08-13 23:12:17\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Fine-Tune\", \"entity2\": \"MNLI100\", \"description\": \"Fine-Tune outperforms PrefixLayer and PrefixEmbed on MNLI100.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"7B\", \"entity2\": \"learning rate\", \"description\": \"The learning rate needs adjustment for model sizes beyond 7B.\", \"created_at\": \"2025-08-13 23:12:17\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to enhance training efficiency and reduce resource consumption. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training. This reduction in trainable parameters is achieved without compromising performance on downstream tasks; in fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios. The primary benefits of using LoRA with GPT-3 175B are improved training efficiency and reduced resource requirements.LoRA is an adaptation method whose performance is evaluated on GPT-3 175B, showing higher validation accuracy compared to other methods.LoRA is a method compared to others (including Fine-Tune, PrefixEmbed, and PrefixLayer) when used with GPT-3 175B on MNLI subsets.\", \"created_at\": \"2025-08-13 23:02:54\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 22\\n\\nOn GPT-3 175B, we reduce the VRAM consumption during training from $1 . 2 \\\\mathrm { T B }$ to 350GB. With $r = 4$ and only the query and value projection matrices being adapted, the checkpoint size is reduced by roughly $1 0 { , } 0 0 0 \\\\times$ (from 350GB to 35MB)4. This allows us to train with significantly fewer GPUs and avoid I/O bottlenecks. Another benefit is that we can switch between tasks while deployed at a much lower cost by only swapping the LoRA weights as opposed to all the parameters. This allows for the creation of many customized models that can be swapped in and out on the fly on machines that store the pre-trained weights in VRAM. We also observe a $2 5 \\\\%$ speedup during training on GPT-3 175B compared to full fine-tuning5 as we do not need to calculate the gradient for the vast majority of the parameters. LoRA also has its limitations.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 0.1096, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 0.1096, + "start_timestamp": "2025-08-14T23:04:42.789874", + "end_timestamp": "2025-08-14T23:04:42.899462" + }, + "metadata": { + "saved_at": "2025-08-14T23:04:42.900461", + "file_path": "retrieval_logs\\retrieval_20250814_230442_900_hybrid_k3_ck2_What_are_the_differences_between_LoRA_and_full_fin.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_230445_927_hybrid_k5_ck2_History_of_LoRA_and_its_components.json b/retrieval_logs/retrieval_20250814_230445_927_hybrid_k5_ck2_History_of_LoRA_and_its_components.json new file mode 100644 index 0000000000000000000000000000000000000000..9bb0c787713fb9eaee2dc5ce41f09324ea0ed695 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_230445_927_hybrid_k5_ck2_History_of_LoRA_and_its_components.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:04:45.927692", + "query": "History of LoRA and its components?", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 11253, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"LoRA + PL\", \"type\": \"category\", \"description\": \"LoRA + PL combines LoRA with prefix-layer tuning, using trainable embedding and activation parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Low-rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low-rank Adapters (LoRA) are used in the QLORA method.Low-rank Adapters (LoRA) is a Parameter Efficient FineTuning (PEFT) method used in the described work to achieve 16-bit finetuning performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:38\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"QLORA\", \"type\": \"category\", \"description\": \"QLORA is an efficient and accessible fine-tuning method for large language models (LLMs), including chatbots such as Guanaco. It enables the fine-tuning of LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones. This accessibility is achieved through a combination of 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers, significantly reducing memory usage compared to traditional methods. Contrary to simplified explanations, QLORA uses adapters at every network layer, not just a single quantized linear layer, mitigating accuracy loss often observed in other instruction fine-tuning techniques. This multi-layer approach allows for the training of diverse models across various datasets and sizes, achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods. Evaluations demonstrate comparable GLUE accuracy and Super-NaturalInstructions RougeL scores to these methods. QLORA replicates the performance of 16-bit full fine-tuning using a 4-bit base model and Low-rank Adapters (LoRA). The use of paged optimizers further prevents out-of-memory errors, enabling the fine-tuning of large models on a single GPU. While offering significant advantages in efficiency and accessibility for training LLMs on consumer and professional GPUs without performance degradation, QLORA is considered a dual-use technology with potential for misuse. Its primary benefit is improved accessibility of state-of-the-art NLP technology, enabling large-scale analysis without excessive computational resources. QLORA's effectiveness has been demonstrated in experiments detailed in various sections of related texts.\", \"created_at\": \"2025-08-13 23:22:21\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Yifan Gong\", \"type\": \"person\", \"description\": \"Author of the paper 'Low-rank plus diagonal adaptation for deep neural networks'\", \"created_at\": \"2025-08-13 22:54:04\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Adapter layers\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"16-bit transformer\", \"type\": \"category\", \"description\": \"A type of transformer used in Full Finetuning and LoRA methods.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Adapters\", \"type\": \"category\", \"description\": \"Adapters are a component of the LLaMA models contributing to the overall memory footprint, as shown in the chart.Components used in Full Finetuning and LoRA methods; smaller in LoRA for memory efficiency.\", \"created_at\": \"2025-08-13 23:24:06\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Low-rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses Low-rank Adapters (LoRA) to achieve its performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Parameter-Efficient Adaptation\", \"entity2\": \"adapter layers\", \"description\": \"This method is compared to adapter layers, highlighting a key difference in latency during inference.\", \"created_at\": \"2025-08-13 22:46:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 0.0951, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 0.0951, + "start_timestamp": "2025-08-14T23:04:45.832622", + "end_timestamp": "2025-08-14T23:04:45.927692" + }, + "metadata": { + "saved_at": "2025-08-14T23:04:45.927692", + "file_path": "retrieval_logs\\retrieval_20250814_230445_927_hybrid_k5_ck2_History_of_LoRA_and_its_components.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_230452_373_hybrid_k3_ck2_What_is_LoRA.json b/retrieval_logs/retrieval_20250814_230452_373_hybrid_k3_ck2_What_is_LoRA.json new file mode 100644 index 0000000000000000000000000000000000000000..c5899cc63e1cebe9956bfb15f4e376e43f5fd18a --- /dev/null +++ b/retrieval_logs/retrieval_20250814_230452_373_hybrid_k3_ck2_What_is_LoRA.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:04:52.373146", + "query": "What is LoRA?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 7626, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:38\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"enormous language models\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"MNLI-matched\", \"type\": \"category\", \"description\": \"A dataset used for evaluating adaptation methods in language models, matched with WikiSQL.MNLI-matched is a dataset used to evaluate the performance of GPT-3 in few-shot and fine-tuned settings.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"MNLI-Full\", \"type\": \"event\", \"description\": \"MNLI-Full is a dataset used to evaluate the performance of different adaptation approaches for GPT-3.\", \"created_at\": \"2025-08-13 22:57:16\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Parameter-Efficient Adaptation\", \"entity2\": \"adapter layers\", \"description\": \"This method is compared to adapter layers, highlighting a key difference in latency during inference.\", \"created_at\": \"2025-08-13 22:46:41\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 16\\n\\n{ 1 } \\\\in \\\\mathbb { R } ^ { h \\\\times r }$ and $\\\\mathbf { L } _ { 2 } \\\\in \\\\mathbb { R } ^ { r \\\\times o }$ , and $s$ is a scalar. Memory Requirement of Parameter-Efficient Finetuning One important point of discussion is the memory requirement of LoRA during training both in terms of the number and size of adapters used. Since the memory footprint of LoRA is so minimal, we can use more adapters to improve performance without significantly increasing the total memory used. While LoRA was designed as a Parameter Efficient Finetuning (PEFT) method, most of the memory footprint for LLM finetuning comes from activation gradients and not from the learned LoRA parameters. For a 7B LLaMA model trained on FLAN v2 with a batch size of 1, with LoRA weights equivalent to commonly used $0 . 2 \\\\%$ of the original model weights[28, 37], the LoRA input gradients have a memory footprint of 567 MB while the LoRA parameters take up only $2 6 \\\\mathrm { M B }$ .\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 0.099, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 0.099, + "start_timestamp": "2025-08-14T23:04:52.272771", + "end_timestamp": "2025-08-14T23:04:52.371771" + }, + "metadata": { + "saved_at": "2025-08-14T23:04:52.373146", + "file_path": "retrieval_logs\\retrieval_20250814_230452_373_hybrid_k3_ck2_What_is_LoRA.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_230720_849_hybrid_k2_ck1_Who_invented_LoRA.json b/retrieval_logs/retrieval_20250814_230720_849_hybrid_k2_ck1_Who_invented_LoRA.json new file mode 100644 index 0000000000000000000000000000000000000000..a643ffa5bfbac7be9f635de0a5527e937bfed003 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_230720_849_hybrid_k2_ck1_Who_invented_LoRA.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:07:20.849211", + "query": "Who invented LoRA?", + "query_mode": "hybrid", + "top_k": 2, + "chunk_top_k": 1, + "text_length": 5308, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LORA\", \"type\": \"category\", \"description\": \"LORA is a method for adapting weight matrices in a model, with the optimal rank being investigated in the text.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Li & Liang\", \"type\": \"person\", \"description\": \"Li & Liang are authors of several publications focusing on the efficient adaptation of large language models, particularly those similar to GPT-2. Their research encompasses various techniques, including prefix tuning and optimization of input layer activations to improve adaptation efficiency. They've also investigated methods to mitigate the reduction of usable sequence length often encountered in models like GPT-2, exploring the strategic placement of special tokens through prefixing and infixing within model inputs. Furthermore, their work includes a paper proposing the optimization of input word embeddings, a method analogous to prompt engineering. Their contributions to the field are significant, with their work on GPT-2 adaptation serving as a benchmark for other researchers, and their findings regarding the role of special tokens in model training corroborated by other studies citing their work. In addition to their research on efficient large language model adaptation, Li & Liang have also authored a work on neural networks and neural tangent kernels.Li & Liang are authors referenced for hyperparameters used in baselines other than LoRA in GPT-2.Li & Liang are authors whose experimental setup is followed in the text.\", \"created_at\": \"2025-08-13 22:59:26\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"LoRA r\", \"type\": \"category\", \"description\": \"LoRA r is a hyperparameter in the LoRA technique; its relationship to final performance is discussed.\", \"created_at\": \"2025-08-13 23:20:13\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"prefix tuning\", \"type\": \"category\", \"description\": \"Prefix tuning is a method of optimizing prompts in large language models, but it presents optimization challenges and non-monotonic performance changes.\", \"created_at\": \"2025-08-13 22:44:55\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Llama\", \"type\": \"category\", \"description\": \"Llama is a Large Language Model (LLM) that excels at sensemaking in complex domains.\", \"created_at\": \"2025-08-13 23:24:25\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Touvron et al.\", \"type\": \"person\", \"description\": \"Authors of a 2023 paper cited in the text, likely concerning Llama.\", \"created_at\": \"2025-08-13 23:24:27\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Li & Liang\", \"entity2\": \"prefix tuning\", \"description\": \"Li & Liang's work exemplifies prefix tuning.\", \"created_at\": \"2025-08-13 22:44:58\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LORA\", \"entity2\": \"ΔW\", \"description\": \"ΔW represents the changes in weight matrices resulting from the LORA method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Llama\", \"entity2\": \"Touvron et al.\", \"description\": \"Touvron et al. are cited in relation to Llama, suggesting authorship or significant contribution to its research.\", \"created_at\": \"2025-08-13 23:24:27\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LORA\", \"entity2\": \"Wq\", \"description\": \"Wq is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:04\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LORA\", \"entity2\": \"Wk\", \"description\": \"Wk is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:04\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"LORA\", \"entity2\": \"Wv\", \"description\": \"Wv is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"LORA\", \"entity2\": \"Wc\", \"description\": \"Wc is a weight matrix adapted using the LORA method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.2519, + "rag_initialization_seconds": 4.8631, + "query_execution_seconds": 0.3888, + "start_timestamp": "2025-08-14T23:07:15.597336", + "end_timestamp": "2025-08-14T23:07:20.849211" + }, + "metadata": { + "saved_at": "2025-08-14T23:07:20.849211", + "file_path": "retrieval_logs\\retrieval_20250814_230720_849_hybrid_k2_ck1_Who_invented_LoRA.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_230724_479_hybrid_k3_ck2_How_does_LoRA_work.json b/retrieval_logs/retrieval_20250814_230724_479_hybrid_k3_ck2_How_does_LoRA_work.json new file mode 100644 index 0000000000000000000000000000000000000000..e805b2dc07fae553bd9aa9da175b2ce35c1709d6 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_230724_479_hybrid_k3_ck2_How_does_LoRA_work.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:07:24.479294", + "query": "How does LoRA work?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 6960, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"enormous language models\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"NLG\", \"type\": \"category\", \"description\": \"NLG is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-13 22:43:49\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"NLU\", \"type\": \"category\", \"description\": \"NLU is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-13 22:43:49\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 16\\n\\n{ 1 } \\\\in \\\\mathbb { R } ^ { h \\\\times r }$ and $\\\\mathbf { L } _ { 2 } \\\\in \\\\mathbb { R } ^ { r \\\\times o }$ , and $s$ is a scalar. Memory Requirement of Parameter-Efficient Finetuning One important point of discussion is the memory requirement of LoRA during training both in terms of the number and size of adapters used. Since the memory footprint of LoRA is so minimal, we can use more adapters to improve performance without significantly increasing the total memory used. While LoRA was designed as a Parameter Efficient Finetuning (PEFT) method, most of the memory footprint for LLM finetuning comes from activation gradients and not from the learned LoRA parameters. For a 7B LLaMA model trained on FLAN v2 with a batch size of 1, with LoRA weights equivalent to commonly used $0 . 2 \\\\%$ of the original model weights[28, 37], the LoRA input gradients have a memory footprint of 567 MB while the LoRA parameters take up only $2 6 \\\\mathrm { M B }$ .\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 0.1063, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 0.1063, + "start_timestamp": "2025-08-14T23:07:24.373019", + "end_timestamp": "2025-08-14T23:07:24.479295" + }, + "metadata": { + "saved_at": "2025-08-14T23:07:24.479294", + "file_path": "retrieval_logs\\retrieval_20250814_230724_479_hybrid_k3_ck2_How_does_LoRA_work.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_230730_056_hybrid_k5_ck2_What_are_the_differences_between_LoRA_and_full_fin.json b/retrieval_logs/retrieval_20250814_230730_056_hybrid_k5_ck2_What_are_the_differences_between_LoRA_and_full_fin.json new file mode 100644 index 0000000000000000000000000000000000000000..e56efcfbd32fb789f1534e3dd824db9c78d827ae --- /dev/null +++ b/retrieval_logs/retrieval_20250814_230730_056_hybrid_k5_ck2_What_are_the_differences_between_LoRA_and_full_fin.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:07:30.056654", + "query": "What are the differences between LoRA and full fine-tuning?", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 39038, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Fine-Tune\", \"type\": \"category\", \"description\": \"Fine-Tune is a GPT-3 adaptation method used for training language models, particularly effective in hyperparameter tuning. It boasts 175 billion trainable parameters and demonstrates superior performance compared to methods like PrefixEmbed and PrefixLayer, especially on the MNLI-100 (also referenced as MNLI100) dataset, achieving an accuracy of 89.5%. Further evaluation on other datasets shows an accuracy of 73.8% on WikiSQL. Fine-Tune's performance has been compared to LoRA and other similar training methods for language models, and it is frequently used to evaluate performance on subsets of the MNLI dataset.\", \"created_at\": \"2025-08-13 23:02:45\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"MNLI100\", \"type\": \"event\", \"description\": \"MNLI100 is a dataset used to evaluate the performance of different adaptation approaches for GPT-3.\", \"created_at\": \"2025-08-13 22:57:16\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"7B\", \"type\": \"organization\", \"description\": \"The 7B model is a member of the LLaMA family of language models. This designation refers to its size, specifically its parameter count, which is 7 billion. This substantial scale contributes to the model's generally good generalization capabilities, although performance is sensitive to factors like learning rate and batch size during training. The 7B model's size is relevant in the context of neural network weights and has been used in training with various datasets and parameters. Its 5-shot MMLU accuracy has been evaluated using different floating-point formats, and its memory footprint has been charted.\", \"created_at\": \"2025-08-13 23:24:56\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"learning rate\", \"type\": \"UNKNOWN\", \"description\": \"The learning rate needs adjustment for model sizes beyond 7B.\", \"created_at\": \"2025-08-13 23:12:17\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"GPT-3\", \"type\": \"organization\", \"description\": \"GPT-3 is a large-scale, pre-trained language model with 175 billion trainable parameters. Its immense size enables strong performance across diverse large-scale applications, as evidenced by experiments using datasets like WikiSQL and SAMSum. This size, however, presents significant deployment challenges and establishes GPT-3 as a benchmark against which other models, such as LoRA, LLaMA, Guanaco, and OPT, are compared. GPT-3's performance is highly dependent on the quality of input prompts, often necessitating techniques like prompt engineering or prompt hacking for optimal results. It has been extensively used in various experiments, including those evaluating different methods on subsets of the Multi-Genre Natural Language Inference (MNLI) dataset, comparing fine-tuning and few-shot learning performance, analyzing its 48th layer's weight matrices, and exploring parameter-efficient fine-tuning methods (FT, BitFit, PreEmbed, PreLayer, AdapterH, LoRA) and adaptation approaches (PrefixLayer, PrefixEmbed, PrefixTune LoRA). One specific experiment involved training GPT-3 for 2 epochs using the AdamW optimizer with a batch size of 128, a weight decay of 0.1, a sequence length of 384, and a general domain dataset. Further experiments focused on adaptation methods and how performance varies with different numbers of trainable parameters (specific hyperparameter details are not provided). While a simpler model (where r=1 suffices) may be adequate for many tasks, GPT-3's capabilities serve as a significant benchmark in the field of large language models, particularly within the contexts of few-shot learning, fine-tuning experiments, and bias analysis across various categories.\", \"created_at\": \"2025-08-13 23:14:39\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:37\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Fine-Tune (354M)\", \"type\": \"category\", \"description\": \"Fine-Tune (354M) is a method where a 354M parameter model is fine-tuned on the WebNLG dataset.\", \"created_at\": \"2025-08-13 22:59:58\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"WebNLG\", \"type\": \"event\", \"description\": \"WebNLG is a benchmark dataset and data-to-text evaluation dataset used in various experiments. As described in Gardent et al. (2017), it contains approximately 22,000 examples categorized into 14 distinct categories. Nine of these categories are seen during training, while five are unseen during training but present in the test set. Each example in WebNLG is represented as a sequence of SUBJECT-PROPERTY-OBJECT triples. Results from experiments using this dataset are available in Section F.1.WebNLG is a dataset or task used to evaluate GPT-2 with different adaptation methods.WebNLG is a test set used to evaluate different methods in natural language generation.\", \"created_at\": \"2025-08-13 22:59:58\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Fine-Tune\", \"entity2\": \"MNLI100\", \"description\": \"Fine-Tune outperforms PrefixLayer and PrefixEmbed on MNLI100.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"7B\", \"entity2\": \"learning rate\", \"description\": \"The learning rate needs adjustment for model sizes beyond 7B.\", \"created_at\": \"2025-08-13 23:12:17\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Fine-Tune (354M)\", \"entity2\": \"WebNLG\", \"description\": \"The Fine-Tune (354M) method was applied to the WebNLG dataset for evaluation.\", \"created_at\": \"2025-08-13 22:59:58\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to enhance training efficiency and reduce resource consumption. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training. This reduction in trainable parameters is achieved without compromising performance on downstream tasks; in fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios. The primary benefits of using LoRA with GPT-3 175B are improved training efficiency and reduced resource requirements.LoRA is an adaptation method whose performance is evaluated on GPT-3 175B, showing higher validation accuracy compared to other methods.LoRA is a method compared to others (including Fine-Tune, PrefixEmbed, and PrefixLayer) when used with GPT-3 175B on MNLI subsets.\", \"created_at\": \"2025-08-13 23:02:54\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 0.1218, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 0.1218, + "start_timestamp": "2025-08-14T23:07:29.933694", + "end_timestamp": "2025-08-14T23:07:30.055525" + }, + "metadata": { + "saved_at": "2025-08-14T23:07:30.056654", + "file_path": "retrieval_logs\\retrieval_20250814_230730_056_hybrid_k5_ck2_What_are_the_differences_between_LoRA_and_full_fin.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_230734_136_hybrid_k3_ck2_What_is_graph_rag_and_how_can_it_enhance_knowledge.json b/retrieval_logs/retrieval_20250814_230734_136_hybrid_k3_ck2_What_is_graph_rag_and_how_can_it_enhance_knowledge.json new file mode 100644 index 0000000000000000000000000000000000000000..39bc20c8ffd70a730bf95587c53649d993d7a29b --- /dev/null +++ b/retrieval_logs/retrieval_20250814_230734_136_hybrid_k3_ck2_What_is_graph_rag_and_how_can_it_enhance_knowledge.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:07:34.136394", + "query": "What is graph rag and how can it enhance knowledge retrival?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 8112, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Ban et al.\", \"type\": \"person\", \"description\": \"Authors of research using LLMs for knowledge graph extraction.\", \"created_at\": \"2025-08-13 23:23:25\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Graph RAG\", \"type\": \"organization\", \"description\": \"Graph RAG is a retrieval-augmented generation (RAG) pipeline that leverages a knowledge graph derived from source documents. This system, which utilizes large language models (LLMs), demonstrates superior comprehensiveness and diversity compared to traditional RAG methods. It serves as the source for data used in comparative analyses.Graph RAG is mentioned as a source for data, suggesting it's a system or platform providing information.Graph RAG is mentioned as a source of information and is implied to be a system capable of providing insights into public figures.\", \"created_at\": \"2025-08-13 23:39:00\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Tan et al.\", \"type\": \"person\", \"description\": \"Authors of research using LLMs for knowledge graph extraction.\", \"created_at\": \"2025-08-13 23:23:25\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"NebulaGraph\", \"type\": \"organization\", \"description\": \"NebulaGraph is an open-source library that has GraphRAG as an extension.NebulaGraph is an organization that launched Graph RAG, a retrieval-augmented generation system based on knowledge graphs.\", \"created_at\": \"2025-08-13 23:35:41\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Trajanoska et al.\", \"type\": \"person\", \"description\": \"Authors of research using LLMs for knowledge graph extraction.\", \"created_at\": \"2025-08-13 23:23:25\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"GraphRAG\", \"type\": \"organization\", \"description\": \"GraphRAG is a RAG approach that combines knowledge graph generation and query-focused summarization (QFS) to support human sensemaking over entire text corpora.GraphRAG is an open-source retrieval augmented generation (RAG) system designed for global sensemaking across large text corpora. Unlike vector-based RAG approaches, it utilizes a two-stage graph-based structure built using large language models (LLMs). The first stage constructs an entity knowledge graph from source documents through entity matching. This graph is then partitioned into communities based on entity relationships using graph-based community detection. For each community, GraphRAG pre-generates a summary by combining various element summaries within a community summary template. These summaries, along with the underlying graph structure, form a graph-based index, enabling efficient retrieval and synthesis of information to answer complex queries. This thematic partitioning allows for more nuanced and accurate corpus understanding than vector-based methods. GraphRAG employs map-reduce processing for efficient query answering and its modular design contributes to its effectiveness in creating summaries. Comparisons with vector-based RAG systems using GPT-4 demonstrate GraphRAG's superior performance in global sensemaking tasks. Furthermore, GraphRAG is used to compare community summaries to source texts, evaluating improvements in answer comprehensiveness and diversity. Its scalability advantages over source text summarization make it a valuable method or system for both knowledge graph creation and analysis. GraphRAG is available as extensions to multiple open-source libraries.GraphRAG is a system that uses GPT-4 in its initialization pipeline for knowledge graph extraction.\", \"created_at\": \"2025-08-13 23:36:58\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Wang et al.\", \"type\": \"person\", \"description\": \"Authors of a research paper on self-reflection prompt engineering.Wang et al. are researchers whose work is referenced in the text multiple times. Their publications include a 2023 paper and a 2024 paper. The 2024 publication details techniques similar to GraphRAG. Their research also involves preprocessing the Super-Natural Instruction dataset and is associated with the GLUE and SuperGLUE benchmarks, with specific mention of their contributions to the GLUE benchmark.\", \"created_at\": \"2025-08-13 23:38:52\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Graph_RAG\", \"type\": \"organization\", \"description\": \"Graph_RAG is a versatile text processing system used in a study to retrieve and add text chunks to a context window for answer generation. It functions as a source of text, text chunks, and a corpus of conversations, drawing upon various inputs such as podcast transcripts and news articles. Its capabilities are limited only by the input text provided. Graph_RAG's functionalities include generating community summaries, extracting claims, and providing descriptions of experimental methodologies. While potentially a dataset or a graph representation of data, its primary role is as a powerful tool for text processing tasks, encompassing answer generation, summarization, and claim extraction. The provided text chunks and input text are explicitly sourced from Graph_RAG.Graph_RAG is mentioned as the source of the text chunk.\", \"created_at\": \"2025-08-13 23:41:45\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"News articles\", \"type\": \"category\", \"description\": \"News articles form another dataset used for evaluating the methods.News articles from September 2013 to December 2023 form a benchmark dataset, covering various categories.\", \"created_at\": \"2025-08-13 23:34:22\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Graph RAG\", \"entity2\": \"NebulaGraph\", \"description\": \"NebulaGraph launched Graph RAG, a retrieval-augmented generation system based on knowledge graphs.\", \"created_at\": \"2025-08-13 23:35:41\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"GraphRAG\", \"entity2\": \"Wang et al.\", \"description\": \"Wang et al.'s work is contrasted with GraphRAG's approach to knowledge graph usage in RAG.\", \"created_at\": \"2025-08-13 23:26:12\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Graph_RAG\", \"entity2\": \"News articles\", \"description\": \"News articles were used as a dataset to evaluate the performance of Graph_RAG.\", \"created_at\": \"2025-08-13 23:34:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Graph_RAG\\nChunk: 85\\n\\nrs insights into the contributions and influence of these figures,as well as controversies and their impact on public discourse. The answer also cites specific data sources for each mentioned figure,indicating a diverse range of evidence to support the claims. In contrast, Answer 2 focuses on a smaller group of public figures, primarily from the music industry and sports,and relies heavily on a single source for data, which makes it less diverse in perspectives and insights.Empowerment: Winner=1 (Graph RAG).\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 33\\n\\nWe also replicate Houlsby et al. (2019) and Pfeiffer et al. (2021) according to their setup. To ensure a fair comparison, we make two crucial changes to how we evaluate LoRA when comparing with adapters. First, we use the same batch size for all tasks and use a sequence length of 128 to match the adapter baselines. Second, we initialize the model to the pre-trained model for MRPC, RTE, and STS-B, not a model already adapted to MNLI like the fine-tuning baseline. Runs following this more restricted setup from Houlsby et al. (2019) are labeled with $\\\\dagger$ . The result is presented in Table 2 (Top Three Sections). See Section D.1 for details on the hyperparameters used. # 5.3 DEBERTA XXL DeBERTa (He et al., 2021) is a more recent variant of BERT that is trained on a much larger scale and performs very competitively on benchmarks such as GLUE (Wang et al., 2019) and SuperGLUE (Wang et al., 2020). We evaluate if LoRA can still match the performance of a fully fine-tuned DeBERTa XXL (1.5B) on GLUE.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 1.851, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 1.851, + "start_timestamp": "2025-08-14T23:07:32.285365", + "end_timestamp": "2025-08-14T23:07:34.136395" + }, + "metadata": { + "saved_at": "2025-08-14T23:07:34.136394", + "file_path": "retrieval_logs\\retrieval_20250814_230734_136_hybrid_k3_ck2_What_is_graph_rag_and_how_can_it_enhance_knowledge.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_230739_139_hybrid_k5_ck2_History_of_LoRA_and_its_components.json b/retrieval_logs/retrieval_20250814_230739_139_hybrid_k5_ck2_History_of_LoRA_and_its_components.json new file mode 100644 index 0000000000000000000000000000000000000000..ebe42f735146867d1d9764dfcdd8803851510fb1 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_230739_139_hybrid_k5_ck2_History_of_LoRA_and_its_components.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:07:39.139799", + "query": "History of LoRA and its components?", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 11253, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"category\", \"description\": \"\\\"Low-Rank Adaptation (LoRA\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"LoRA + PL\", \"type\": \"category\", \"description\": \"LoRA + PL combines LoRA with prefix-layer tuning, using trainable embedding and activation parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Low-rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low-rank Adapters (LoRA) are used in the QLORA method.Low-rank Adapters (LoRA) is a Parameter Efficient FineTuning (PEFT) method used in the described work to achieve 16-bit finetuning performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:38\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"QLORA\", \"type\": \"category\", \"description\": \"QLORA is an efficient and accessible fine-tuning method for large language models (LLMs), including chatbots such as Guanaco. It enables the fine-tuning of LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones. This accessibility is achieved through a combination of 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers, significantly reducing memory usage compared to traditional methods. Contrary to simplified explanations, QLORA uses adapters at every network layer, not just a single quantized linear layer, mitigating accuracy loss often observed in other instruction fine-tuning techniques. This multi-layer approach allows for the training of diverse models across various datasets and sizes, achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods. Evaluations demonstrate comparable GLUE accuracy and Super-NaturalInstructions RougeL scores to these methods. QLORA replicates the performance of 16-bit full fine-tuning using a 4-bit base model and Low-rank Adapters (LoRA). The use of paged optimizers further prevents out-of-memory errors, enabling the fine-tuning of large models on a single GPU. While offering significant advantages in efficiency and accessibility for training LLMs on consumer and professional GPUs without performance degradation, QLORA is considered a dual-use technology with potential for misuse. Its primary benefit is improved accessibility of state-of-the-art NLP technology, enabling large-scale analysis without excessive computational resources. QLORA's effectiveness has been demonstrated in experiments detailed in various sections of related texts.\", \"created_at\": \"2025-08-13 23:22:21\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Yifan Gong\", \"type\": \"person\", \"description\": \"Author of the paper 'Low-rank plus diagonal adaptation for deep neural networks'\", \"created_at\": \"2025-08-13 22:54:04\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Adapter layers\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"16-bit transformer\", \"type\": \"category\", \"description\": \"A type of transformer used in Full Finetuning and LoRA methods.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Adapters\", \"type\": \"category\", \"description\": \"Adapters are a component of the LLaMA models contributing to the overall memory footprint, as shown in the chart.Components used in Full Finetuning and LoRA methods; smaller in LoRA for memory efficiency.\", \"created_at\": \"2025-08-13 23:24:06\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Low-rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses Low-rank Adapters (LoRA) to achieve its performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Parameter-Efficient Adaptation\", \"entity2\": \"adapter layers\", \"description\": \"This method is compared to adapter layers, highlighting a key difference in latency during inference.\", \"created_at\": \"2025-08-13 22:46:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 0.1054, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 0.1054, + "start_timestamp": "2025-08-14T23:07:39.033351", + "end_timestamp": "2025-08-14T23:07:39.138794" + }, + "metadata": { + "saved_at": "2025-08-14T23:07:39.139799", + "file_path": "retrieval_logs\\retrieval_20250814_230739_139_hybrid_k5_ck2_History_of_LoRA_and_its_components.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_230747_147_hybrid_k3_ck2_What_is_LoRA.json b/retrieval_logs/retrieval_20250814_230747_147_hybrid_k3_ck2_What_is_LoRA.json new file mode 100644 index 0000000000000000000000000000000000000000..8eb7d59a3b0c6a05dbcf2178d30464cd6db13dd3 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_230747_147_hybrid_k3_ck2_What_is_LoRA.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:07:47.147425", + "query": "What is LoRA?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 7626, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:38\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"enormous language models\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"MNLI-matched\", \"type\": \"category\", \"description\": \"A dataset used for evaluating adaptation methods in language models, matched with WikiSQL.MNLI-matched is a dataset used to evaluate the performance of GPT-3 in few-shot and fine-tuned settings.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"MNLI-Full\", \"type\": \"event\", \"description\": \"MNLI-Full is a dataset used to evaluate the performance of different adaptation approaches for GPT-3.\", \"created_at\": \"2025-08-13 22:57:16\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Parameter-Efficient Adaptation\", \"entity2\": \"adapter layers\", \"description\": \"This method is compared to adapter layers, highlighting a key difference in latency during inference.\", \"created_at\": \"2025-08-13 22:46:41\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 16\\n\\n{ 1 } \\\\in \\\\mathbb { R } ^ { h \\\\times r }$ and $\\\\mathbf { L } _ { 2 } \\\\in \\\\mathbb { R } ^ { r \\\\times o }$ , and $s$ is a scalar. Memory Requirement of Parameter-Efficient Finetuning One important point of discussion is the memory requirement of LoRA during training both in terms of the number and size of adapters used. Since the memory footprint of LoRA is so minimal, we can use more adapters to improve performance without significantly increasing the total memory used. While LoRA was designed as a Parameter Efficient Finetuning (PEFT) method, most of the memory footprint for LLM finetuning comes from activation gradients and not from the learned LoRA parameters. For a 7B LLaMA model trained on FLAN v2 with a batch size of 1, with LoRA weights equivalent to commonly used $0 . 2 \\\\%$ of the original model weights[28, 37], the LoRA input gradients have a memory footprint of 567 MB while the LoRA parameters take up only $2 6 \\\\mathrm { M B }$ .\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 0.0984, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 0.0984, + "start_timestamp": "2025-08-14T23:07:47.049039", + "end_timestamp": "2025-08-14T23:07:47.147426" + }, + "metadata": { + "saved_at": "2025-08-14T23:07:47.147425", + "file_path": "retrieval_logs\\retrieval_20250814_230747_147_hybrid_k3_ck2_What_is_LoRA.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_231047_983_hybrid_k5_ck2_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json b/retrieval_logs/retrieval_20250814_231047_983_hybrid_k5_ck2_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json new file mode 100644 index 0000000000000000000000000000000000000000..a89340cad89cb38fca60bf5e4e642eedb3c41e3f --- /dev/null +++ b/retrieval_logs/retrieval_20250814_231047_983_hybrid_k5_ck2_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:10:47.983700", + "query": "how can i use lora and qlora with graphrag? is there a connection betwen them?", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 27323, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low Rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low Rank Adapters (LoRA) are used in QLORA to efficiently fine-tune the quantized language model.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"16-bit LoRA\", \"type\": \"category\", \"description\": \"16-bit LoRA is a quantization technique used for finetuning large language models, serving as a comparison to 4-bit QLORA.A low-rank adaptation method for model finetuning that serves as a performance benchmark for QLORA.\", \"created_at\": \"2025-08-13 23:06:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"enormous language models\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LLaMA\", \"type\": \"category\", \"description\": \"LLaMA is a family of large language models, with different sizes (e.g., 33B, 7B) mentioned in the text.LLaMA is a family of pretrained large language models (LLMs) encompassing several variants with 7 billion, 13 billion, 33 billion, and 65 billion parameters. These models serve as foundational base models for other LLMs, including Guanaco, Vicuna, and Open Assistant. Consequently, models fine-tuned on LLaMA, such as Guanaco, inherit some of LLaMA's biases. Research into LLaMA has concentrated on parameter-efficient fine-tuning techniques, employing 4-bit quantization to manage the substantial GPU memory demands associated with its scale. Fine-tuning processes utilized methods like QLoRA and leveraged datasets including Flan v2 and Alpaca. Performance evaluations of LLaMA and its derivatives involved metrics like zero-shot accuracy, perplexity (especially on the Pile Common Crawl dataset), 5-shot MMLU accuracy, and RougeL scores (post fine-tuning). These evaluations comprehensively analyzed the effects of different quantization methods and fine-tuning strategies on performance across various floating-point formats, although specific numerical results are not detailed in the provided descriptions.LLaMA is a language model mentioned in the text. Further details about its nature or activities are not provided.\", \"created_at\": \"2025-08-13 23:26:09\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"QLORA\", \"type\": \"category\", \"description\": \"QLORA is an efficient and accessible fine-tuning method for large language models (LLMs), including chatbots such as Guanaco. It enables the fine-tuning of LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones. This accessibility is achieved through a combination of 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers, significantly reducing memory usage compared to traditional methods. Contrary to simplified explanations, QLORA uses adapters at every network layer, not just a single quantized linear layer, mitigating accuracy loss often observed in other instruction fine-tuning techniques. This multi-layer approach allows for the training of diverse models across various datasets and sizes, achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods. Evaluations demonstrate comparable GLUE accuracy and Super-NaturalInstructions RougeL scores to these methods. QLORA replicates the performance of 16-bit full fine-tuning using a 4-bit base model and Low-rank Adapters (LoRA). The use of paged optimizers further prevents out-of-memory errors, enabling the fine-tuning of large models on a single GPU. While offering significant advantages in efficiency and accessibility for training LLMs on consumer and professional GPUs without performance degradation, QLORA is considered a dual-use technology with potential for misuse. Its primary benefit is improved accessibility of state-of-the-art NLP technology, enabling large-scale analysis without excessive computational resources. QLORA's effectiveness has been demonstrated in experiments detailed in various sections of related texts.\", \"created_at\": \"2025-08-13 23:01:08\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"QLoRA\", \"type\": \"category\", \"description\": \"QLoRA is a fine-tuning method used for adapting large language models, such as LLaMA. This method employs a 4-bit quantization of the transformer weights and utilizes a paging mechanism to efficiently manage optimizer states by offloading them to the CPU. In comparison to other fine-tuning approaches like 16-bit adapter fine-tuning and full fine-tuning, QLoRA offers a distinct approach to model adaptation.QLoRA is a method used for fine-tuning the LLaMA language model.QLoRA is a training method for large language models, as indicated by the phrase 'QLoRA training'.\", \"created_at\": \"2025-08-13 23:26:09\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LLaMA\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used for fine-tuning LLaMA models, achieving comparable performance to full 16-bit fine-tuning with 4-bit precision. The study investigates instruction tuning of LLaMA models using QLORA at scales not feasible with full 16-bit fine-tuning.QLORA was used to fine-tune LLaMA models.\", \"created_at\": \"2025-08-13 23:13:57\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LLaMA\", \"entity2\": \"QLoRA\", \"description\": \"LLaMA, a large language model available in 7B, 13B, and 33B parameter sizes, was fine-tuned using the QLoRA method. This QLoRA fine-tuning technique was compared to other methods, and its application to LLaMA models was explored. Specifically, LLaMA models were fine-tuned using QLoRA on datasets such as Flan v2 and Alpaca, followed by evaluation using a 5-shot MMLU benchmark. The QLoRA method proved effective in fine-tuning different sizes of the LLaMA model.QLoRA is a training method used with LLaMA models, as evidenced by 'QLoRA training with different LLaMA base models'. The text describes memory usage during this training process.\", \"created_at\": \"2025-08-13 23:26:10\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Guanaco\", \"entity2\": \"QLORA\", \"description\": \"Guanaco models are trained using the QLORA technique for efficient fine-tuning on a single GPU.QLORA was used to train the Guanaco chatbot, a state-of-the-art model.\", \"created_at\": \"2025-08-13 23:04:36\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"MMLU\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated on the MMLU benchmark, showing comparable results to 16-bit methods.\", \"created_at\": \"2025-08-13 23:13:28\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Alpaca\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used for finetuning on the Alpaca dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"ChatGPT\", \"entity2\": \"QLORA\", \"description\": \"QLORA achieves 97% of ChatGPT's performance with less training time and resources.QLORA's 33B model rivals ChatGPT on the Vicuna benchmark.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Guanaco 33B\", \"entity2\": \"QLORA\", \"description\": \"Guanaco 33B is a QLORA-tuned model (implied).\", \"created_at\": \"2025-08-13 23:10:24\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Guanaco 65B\", \"entity2\": \"QLORA\", \"description\": \"Guanaco 65B is a QLORA-trained model.\", \"created_at\": \"2025-08-13 23:10:35\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"NF4\", \"entity2\": \"QLORA\", \"description\": \"NF4 is the computation datatype used in the QLORA finetuning experiments.QLORA uses NF4 data type, which is shown to be superior to FP4 in terms of quantization precision.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Paged Optimizers\", \"entity2\": \"QLORA\", \"description\": \"QLORA employs Paged Optimizers to manage memory during gradient checkpointing.QLORA uses Paged Optimizers to handle memory spikes during training.QLORA incorporates Paged Optimizers to address memory issues during finetuning.\", \"created_at\": \"2025-08-13 23:05:59\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"BFloat16\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses BFloat16 as its computation data type for matrix multiplication after dequantization.QLORA uses BFloat16 to calculate derivatives.\", \"created_at\": \"2025-08-13 23:07:36\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"QLORA\", \"entity2\": \"T5\", \"description\": \"QLORA was used for fine-tuning T5 models in experiments described in Section 5.QLORA was used to fine-tune T5 models.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"QLORA\", \"entity2\": \"Unnatural Instructions\", \"description\": \"QLORA was used for finetuning on the Unnatural Instructions dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LLMs\", \"entity2\": \"QLORA\", \"description\": \"QLORA aims to make finetuning of high-quality LLMs more accessible.QLORA is a method for fine-tuning LLMs on low-resource devices.\", \"created_at\": \"2025-08-13 23:16:07\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"GLUE\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance is compared against other methods on the GLUE benchmark.QLORA's performance is measured using the GLUE dataset, focusing on accuracy.\", \"created_at\": \"2025-08-13 23:13:18\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"QLORA\", \"entity2\": \"Self-Instruct\", \"description\": \"QLORA was used for finetuning on the Self-Instruct dataset.\", \"created_at\": \"2025-08-13 23:18:50\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"LongForm dataset\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used in finetuning experiments on the LongForm dataset.\", \"created_at\": \"2025-08-13 23:22:29\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"4-bit NormalFloat (NF4)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes 4-bit NormalFloat (NF4) quantization as a core component of its finetuning process.QLORA utilizes 4-bit NormalFloat (NF4) to improve memory efficiency.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Luke Zettlemoyer\", \"entity2\": \"QLORA\", \"description\": \"Luke Zettlemoyer is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Double Quantization\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Double Quantization as a core technique within its high-fidelity 4-bit finetuning approach. This technique is employed to significantly reduce memory usage during the finetuning process.\", \"created_at\": \"2025-08-13 23:05:59\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"QLORA\", \"entity2\": \"Super-NaturalInstructions\", \"description\": \"QLORA's performance is compared against other methods on the Super-NaturalInstructions benchmark.QLORA's performance is measured using the Super-NaturalInstructions dataset, focusing on RougeL scores.\", \"created_at\": \"2025-08-13 23:13:18\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"16-bit LoRA\", \"entity2\": \"QLORA\", \"description\": \"QLORA matches the performance of 16-bit LoRA.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"1,000 models\", \"entity2\": \"QLORA\", \"description\": \"QLORA enabled the training of more than 1,000 models.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Adam\", \"entity2\": \"QLORA\", \"description\": \"The Adam optimizer is used in the QLORA finetuning experiments.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"FP4\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance with NF4 is compared to and shown to be superior to the performance with FP4.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"GPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used in the context of a quantized base model processed on a GPU.\", \"created_at\": \"2025-08-13 23:07:13\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"CPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA's optimization process may indirectly involve the CPU through memory management with paged optimizers.\", \"created_at\": \"2025-08-13 23:07:13\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"16-bit full finetuning\", \"entity2\": \"QLORA\", \"description\": \"4-bit QLORA with NF4 matches the performance of 16-bit full finetuning on academic benchmarks.QLORA matches the performance of 16-bit full finetuning.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"65B parameter model\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used to fine-tune a 65B parameter model efficiently.QLORA is used to finetune a 65B parameter model, reducing its memory requirements.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"QLORA\", \"entity2\": \"Tim Dettmers\", \"description\": \"Tim Dettmers is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"QLORA\", \"entity2\": \"Table 9\", \"description\": \"Table 9 shows the hyperparameters tuned for different model sizes in QLORA finetuning.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"NormalFloat4\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses NormalFloat4 as its storage data type.\", \"created_at\": \"2025-08-13 23:07:25\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"4-bit model\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a method specifically designed for finetuning 4-bit quantized models.\", \"created_at\": \"2025-08-13 23:03:13\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA parameters\", \"entity2\": \"QLORA\", \"description\": \"QLORA computes weight gradients specifically for the LoRA parameters during the backward pass.\", \"created_at\": \"2025-08-13 23:07:40\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"Low-rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses Low-rank Adapters (LoRA) to achieve its performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"4-bit finetuning\", \"entity2\": \"QLORA\", \"description\": \"QLORA is mentioned in the context of 4-bit finetuning, highlighting its efficiency benefits.\", \"created_at\": \"2025-08-13 23:14:04\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"4-bit NormalFloat (NF4) Quantization\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses 4-bit NormalFloat (NF4) quantization as one of its core techniques for finetuning.\", \"created_at\": \"2025-08-13 23:05:57\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"33B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a finetuning method used to train 33B parameter models on consumer GPUs.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Elo\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated on the Elo benchmark, showing comparable results to 16-bit methods.\", \"created_at\": \"2025-08-13 23:13:40\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"QLORA\", \"entity2\": \"RoBERTa-large\", \"description\": \"QLORA's performance is evaluated using the RoBERTa-large model, achieving 88.6 accuracy with BF16.\", \"created_at\": \"2025-08-13 23:13:09\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"Cross-entropy loss\", \"entity2\": \"QLORA\", \"description\": \"QLORA is presented as a method that enables analysis of the tradeoffs between cross-entropy loss and RLHF training.\", \"created_at\": \"2025-08-13 23:16:55\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"4-bit base model\", \"entity2\": \"QLORA\", \"description\": \"QLORA's 4-bit finetuning is compared to the memory usage of a 4-bit base model, suggesting a potential memory advantage.\", \"created_at\": \"2025-08-13 23:05:40\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"16-bit LoRA finetuning\", \"entity2\": \"QLORA\", \"description\": \"4-bit QLORA with NF4 matches the performance of 16-bit LoRA finetuning on academic benchmarks.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Low Rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Low Rank Adapters (LoRA) for efficient fine-tuning.\", \"created_at\": \"2025-08-13 23:01:24\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"QLORA\", \"entity2\": \"single GPU\", \"description\": \"QLORA can fine-tune models on a single GPU, showcasing its efficiency.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"48GB GPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA allows fine-tuning of a 65B parameter model on a single 48GB GPU.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Artidoro Pagnoni\", \"entity2\": \"QLORA\", \"description\": \"Artidoro Pagnoni is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"33B and 65B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA was successfully used to fine-tune models with 33B and 65B parameters, demonstrating scalability.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"65B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a finetuning method used to train 65B parameter models on professional GPUs.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"4-bit NormalFloat\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses 4-bit NormalFloat as one of its memory reduction techniques.\", \"created_at\": \"2025-08-13 23:02:00\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"QLORA\", \"entity2\": \"raw pretrained LLMs\", \"description\": \"QLORA is a method used to finetune raw pretrained LLMs into chatbots.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"QLORA\", \"entity2\": \"instruction tuning datasets\", \"description\": \"QLORA was used to perform instruction finetuning on several datasets.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Mobile Phones\", \"entity2\": \"QLORA\", \"description\": \"QLORA enables the fine-tuning of LLMs on mobile phones, a low-resource setting.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"7B models\", \"entity2\": \"QLORA\", \"description\": \"QLORA enables the fine-tuning of 7B models on devices like the iPhone 12 Plus.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LongForm\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used for finetuning on the LongForm dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"80M to 65B parameters\", \"entity2\": \"QLORA\", \"description\": \"QLORA's efficiency allowed for training models across a wide range of sizes, from 80M to 65B parameters.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"4-bit quantized pretrained language model\", \"entity2\": \"QLORA\", \"description\": \"QLORA backpropagates gradients through a frozen, 4-bit quantized pretrained language model.\", \"created_at\": \"2025-08-13 23:01:21\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"QLORA\", \"entity2\": \"model architectures\", \"description\": \"QLORA was applied to various model architectures during training.\", \"created_at\": \"2025-08-13 23:03:51\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"QLORA\", \"entity2\": \"iPhone 12 Plus\", \"description\": \"QLORA allows for the fine-tuning of LLMs on an iPhone 12 Plus, processing 3 million tokens per night while charging.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"QLORA\", \"entity2\": \"Raphael Olivier\", \"description\": \"Raphael Olivier provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:40\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"QLORA\", \"entity2\": \"T5-80M\", \"description\": \"QLORA's performance is evaluated using the T5-80M model, showing varying RougeL scores depending on the specific QLORA method.\", \"created_at\": \"2025-08-13 23:13:13\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"Privacy-Preserving Usage of LLMs\", \"entity2\": \"QLORA\", \"description\": \"QLORA can help enable privacy-preserving usage of LLMs by allowing users to own and manage their data and models.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"8 instruction datasets\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated across 8 instruction datasets.\", \"created_at\": \"2025-08-13 23:01:40\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Margaret Li\", \"entity2\": \"QLORA\", \"description\": \"Margaret Li provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:39\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"Ashish Sharma\", \"entity2\": \"QLORA\", \"description\": \"Ashish Sharma provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"Ofir Press\", \"entity2\": \"QLORA\", \"description\": \"Ofir Press provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Aditya Kusupati\", \"entity2\": \"QLORA\", \"description\": \"Aditya Kusupati provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"16-bit LoRA\", \"entity2\": \"NF4\", \"description\": \"The performance of 16-bit LoRA using NF4 quantization is compared to 4-bit QLORA.\", \"created_at\": \"2025-08-13 23:10:07\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"16-bit LoRA\", \"entity2\": \"4-bit QLORA\", \"description\": \"4-bit QLORA is compared to 16-bit LoRA to assess its performance in finetuning large language models.\", \"created_at\": \"2025-08-13 23:09:58\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 46\\n\\nis a multiple-choice benchmark covering 57 tasks including elementary mathematics, US history, computer science, law, and more. We report 5-shot test accuracy. We also test generative language capabilities through both automated and human evaluations. This second set of evaluations relies on queries curated by humans and aims at measuring the quality of model responses. While this is a more realistic testbed for chatbot model performance and is growing in popularity, there is no commonly accepted protocol in the literature. We describe below our proposed setup, using nucleus sampling with $p = 0 . 9$ and temperature 0.7 in all cases. Table 5: MMLU 5-shot test results for different sizes of LLaMA finetuned on the corresponding datasets using QLoRA.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 7.2087, + "rag_initialization_seconds": 4.9888, + "query_execution_seconds": 2.22, + "start_timestamp": "2025-08-14T23:10:40.774953", + "end_timestamp": "2025-08-14T23:10:47.983700" + }, + "metadata": { + "saved_at": "2025-08-14T23:10:47.983700", + "file_path": "retrieval_logs\\retrieval_20250814_231047_983_hybrid_k5_ck2_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_231450_771_hybrid_k12_ck5_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json b/retrieval_logs/retrieval_20250814_231450_771_hybrid_k12_ck5_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json new file mode 100644 index 0000000000000000000000000000000000000000..c6044afe27d11ea73e499574d759e3d477c38b22 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_231450_771_hybrid_k12_ck5_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:14:50.771514", + "query": "how can i use lora and qlora with graphrag? is there a connection betwen them?", + "query_mode": "hybrid", + "top_k": 12, + "chunk_top_k": 5, + "text_length": 39185, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low Rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low Rank Adapters (LoRA) are used in QLORA to efficiently fine-tune the quantized language model.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"16-bit LoRA\", \"type\": \"category\", \"description\": \"16-bit LoRA is a quantization technique used for finetuning large language models, serving as a comparison to 4-bit QLORA.A low-rank adaptation method for model finetuning that serves as a performance benchmark for QLORA.\", \"created_at\": \"2025-08-13 23:06:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"enormous language models\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LLaMA\", \"type\": \"category\", \"description\": \"LLaMA is a family of large language models, with different sizes (e.g., 33B, 7B) mentioned in the text.LLaMA is a family of pretrained large language models (LLMs) encompassing several variants with 7 billion, 13 billion, 33 billion, and 65 billion parameters. These models serve as foundational base models for other LLMs, including Guanaco, Vicuna, and Open Assistant. Consequently, models fine-tuned on LLaMA, such as Guanaco, inherit some of LLaMA's biases. Research into LLaMA has concentrated on parameter-efficient fine-tuning techniques, employing 4-bit quantization to manage the substantial GPU memory demands associated with its scale. Fine-tuning processes utilized methods like QLoRA and leveraged datasets including Flan v2 and Alpaca. Performance evaluations of LLaMA and its derivatives involved metrics like zero-shot accuracy, perplexity (especially on the Pile Common Crawl dataset), 5-shot MMLU accuracy, and RougeL scores (post fine-tuning). These evaluations comprehensively analyzed the effects of different quantization methods and fine-tuning strategies on performance across various floating-point formats, although specific numerical results are not detailed in the provided descriptions.LLaMA is a language model mentioned in the text. Further details about its nature or activities are not provided.\", \"created_at\": \"2025-08-13 23:26:09\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"QLORA\", \"type\": \"category\", \"description\": \"QLORA is an efficient and accessible fine-tuning method for large language models (LLMs), including chatbots such as Guanaco. It enables the fine-tuning of LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones. This accessibility is achieved through a combination of 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers, significantly reducing memory usage compared to traditional methods. Contrary to simplified explanations, QLORA uses adapters at every network layer, not just a single quantized linear layer, mitigating accuracy loss often observed in other instruction fine-tuning techniques. This multi-layer approach allows for the training of diverse models across various datasets and sizes, achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods. Evaluations demonstrate comparable GLUE accuracy and Super-NaturalInstructions RougeL scores to these methods. QLORA replicates the performance of 16-bit full fine-tuning using a 4-bit base model and Low-rank Adapters (LoRA). The use of paged optimizers further prevents out-of-memory errors, enabling the fine-tuning of large models on a single GPU. While offering significant advantages in efficiency and accessibility for training LLMs on consumer and professional GPUs without performance degradation, QLORA is considered a dual-use technology with potential for misuse. Its primary benefit is improved accessibility of state-of-the-art NLP technology, enabling large-scale analysis without excessive computational resources. QLORA's effectiveness has been demonstrated in experiments detailed in various sections of related texts.\", \"created_at\": \"2025-08-13 23:01:08\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"QLoRA\", \"type\": \"category\", \"description\": \"QLoRA is a fine-tuning method used for adapting large language models, such as LLaMA. This method employs a 4-bit quantization of the transformer weights and utilizes a paging mechanism to efficiently manage optimizer states by offloading them to the CPU. In comparison to other fine-tuning approaches like 16-bit adapter fine-tuning and full fine-tuning, QLoRA offers a distinct approach to model adaptation.QLoRA is a method used for fine-tuning the LLaMA language model.QLoRA is a training method for large language models, as indicated by the phrase 'QLoRA training'.\", \"created_at\": \"2025-08-13 23:26:09\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Fine-Tune\", \"type\": \"category\", \"description\": \"Fine-Tune is a GPT-3 adaptation method used for training language models, particularly effective in hyperparameter tuning. It boasts 175 billion trainable parameters and demonstrates superior performance compared to methods like PrefixEmbed and PrefixLayer, especially on the MNLI-100 (also referenced as MNLI100) dataset, achieving an accuracy of 89.5%. Further evaluation on other datasets shows an accuracy of 73.8% on WikiSQL. Fine-Tune's performance has been compared to LoRA and other similar training methods for language models, and it is frequently used to evaluate performance on subsets of the MNLI dataset.\", \"created_at\": \"2025-08-13 23:02:45\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"MNLI100\", \"type\": \"event\", \"description\": \"MNLI100 is a dataset used to evaluate the performance of different adaptation approaches for GPT-3.\", \"created_at\": \"2025-08-13 22:57:16\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"PrefixEmbed\", \"type\": \"category\", \"description\": \"PrefixEmbed is a method or layer used in model adaptation.PrefixEmbed is a prefix-based adaptation method for GPT-3, designed to fine-tune the model for specific tasks. It involves tuning a prefix embedding, with the number of trainable parameters varying from 0.4M to 6.4M. This variation in parameters results in a range of performance outcomes: WikiSQL accuracy scores between 55.9% and 63.1%, and MNLI-m accuracy scores between 84.9% and 88.6%. Hyperparameters explored include '=32,l=8 =64,l=8 =128,l=8 lp = 256,l = 8 p=512,l =8 lp ip'. While PrefixEmbed can be used in conjunction with other methods like LoRA, its performance generally lags behind competing techniques such as PrefixLayer, LoRA, and Adapter(H), especially on datasets like MNLI and in low-data scenarios. Furthermore, its effectiveness decreases as the number of trainable parameters increases, indicating scalability limitations. In summary, PrefixEmbed offers a viable, albeit less effective, alternative to other adaptation methods for GPT-3, particularly when compared to its competitors in terms of overall accuracy and scalability. Its primary use has been demonstrated in evaluating performance on MNLI subsets.\", \"created_at\": \"2025-08-13 23:04:42\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"7B\", \"type\": \"organization\", \"description\": \"The 7B model is a member of the LLaMA family of language models. This designation refers to its size, specifically its parameter count, which is 7 billion. This substantial scale contributes to the model's generally good generalization capabilities, although performance is sensitive to factors like learning rate and batch size during training. The 7B model's size is relevant in the context of neural network weights and has been used in training with various datasets and parameters. Its 5-shot MMLU accuracy has been evaluated using different floating-point formats, and its memory footprint has been charted.\", \"created_at\": \"2025-08-13 23:24:56\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"learning rate\", \"type\": \"UNKNOWN\", \"description\": \"The learning rate needs adjustment for model sizes beyond 7B.\", \"created_at\": \"2025-08-13 23:12:17\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Li & Liang\", \"type\": \"person\", \"description\": \"Li & Liang are authors of several publications focusing on the efficient adaptation of large language models, particularly those similar to GPT-2. Their research encompasses various techniques, including prefix tuning and optimization of input layer activations to improve adaptation efficiency. They've also investigated methods to mitigate the reduction of usable sequence length often encountered in models like GPT-2, exploring the strategic placement of special tokens through prefixing and infixing within model inputs. Furthermore, their work includes a paper proposing the optimization of input word embeddings, a method analogous to prompt engineering. Their contributions to the field are significant, with their work on GPT-2 adaptation serving as a benchmark for other researchers, and their findings regarding the role of special tokens in model training corroborated by other studies citing their work. In addition to their research on efficient large language model adaptation, Li & Liang have also authored a work on neural networks and neural tangent kernels.Li & Liang are authors referenced for hyperparameters used in baselines other than LoRA in GPT-2.Li & Liang are authors whose experimental setup is followed in the text.\", \"created_at\": \"2025-08-13 22:59:26\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Section 6\", \"type\": \"category\", \"description\": \"Section 6 of the document contains a survey of well-known works on efficient model adaptation.\", \"created_at\": \"2025-08-13 22:45:38\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"GPT-3\", \"type\": \"organization\", \"description\": \"GPT-3 is a large-scale, pre-trained language model with 175 billion trainable parameters. Its immense size enables strong performance across diverse large-scale applications, as evidenced by experiments using datasets like WikiSQL and SAMSum. This size, however, presents significant deployment challenges and establishes GPT-3 as a benchmark against which other models, such as LoRA, LLaMA, Guanaco, and OPT, are compared. GPT-3's performance is highly dependent on the quality of input prompts, often necessitating techniques like prompt engineering or prompt hacking for optimal results. It has been extensively used in various experiments, including those evaluating different methods on subsets of the Multi-Genre Natural Language Inference (MNLI) dataset, comparing fine-tuning and few-shot learning performance, analyzing its 48th layer's weight matrices, and exploring parameter-efficient fine-tuning methods (FT, BitFit, PreEmbed, PreLayer, AdapterH, LoRA) and adaptation approaches (PrefixLayer, PrefixEmbed, PrefixTune LoRA). One specific experiment involved training GPT-3 for 2 epochs using the AdamW optimizer with a batch size of 128, a weight decay of 0.1, a sequence length of 384, and a general domain dataset. Further experiments focused on adaptation methods and how performance varies with different numbers of trainable parameters (specific hyperparameter details are not provided). While a simpler model (where r=1 suffices) may be adequate for many tasks, GPT-3's capabilities serve as a significant benchmark in the field of large language models, particularly within the contexts of few-shot learning, fine-tuning experiments, and bias analysis across various categories.\", \"created_at\": \"2025-08-13 23:14:39\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LLaMA\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used for fine-tuning LLaMA models, achieving comparable performance to full 16-bit fine-tuning with 4-bit precision. The study investigates instruction tuning of LLaMA models using QLORA at scales not feasible with full 16-bit fine-tuning.QLORA was used to fine-tune LLaMA models.\", \"created_at\": \"2025-08-13 23:13:57\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LLaMA\", \"entity2\": \"QLoRA\", \"description\": \"LLaMA, a large language model available in 7B, 13B, and 33B parameter sizes, was fine-tuned using the QLoRA method. This QLoRA fine-tuning technique was compared to other methods, and its application to LLaMA models was explored. Specifically, LLaMA models were fine-tuned using QLoRA on datasets such as Flan v2 and Alpaca, followed by evaluation using a 5-shot MMLU benchmark. The QLoRA method proved effective in fine-tuning different sizes of the LLaMA model.QLoRA is a training method used with LLaMA models, as evidenced by 'QLoRA training with different LLaMA base models'. The text describes memory usage during this training process.\", \"created_at\": \"2025-08-13 23:26:10\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Guanaco\", \"entity2\": \"QLORA\", \"description\": \"Guanaco models are trained using the QLORA technique for efficient fine-tuning on a single GPU.QLORA was used to train the Guanaco chatbot, a state-of-the-art model.\", \"created_at\": \"2025-08-13 23:04:36\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"MMLU\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated on the MMLU benchmark, showing comparable results to 16-bit methods.\", \"created_at\": \"2025-08-13 23:13:28\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Alpaca\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used for finetuning on the Alpaca dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"ChatGPT\", \"entity2\": \"QLORA\", \"description\": \"QLORA achieves 97% of ChatGPT's performance with less training time and resources.QLORA's 33B model rivals ChatGPT on the Vicuna benchmark.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Guanaco 33B\", \"entity2\": \"QLORA\", \"description\": \"Guanaco 33B is a QLORA-tuned model (implied).\", \"created_at\": \"2025-08-13 23:10:24\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Fine-Tune\", \"entity2\": \"MNLI100\", \"description\": \"Fine-Tune outperforms PrefixLayer and PrefixEmbed on MNLI100.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Guanaco 65B\", \"entity2\": \"QLORA\", \"description\": \"Guanaco 65B is a QLORA-trained model.\", \"created_at\": \"2025-08-13 23:10:35\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"NF4\", \"entity2\": \"QLORA\", \"description\": \"NF4 is the computation datatype used in the QLORA finetuning experiments.QLORA uses NF4 data type, which is shown to be superior to FP4 in terms of quantization precision.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Paged Optimizers\", \"entity2\": \"QLORA\", \"description\": \"QLORA employs Paged Optimizers to manage memory during gradient checkpointing.QLORA uses Paged Optimizers to handle memory spikes during training.QLORA incorporates Paged Optimizers to address memory issues during finetuning.\", \"created_at\": \"2025-08-13 23:05:59\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"7B\", \"entity2\": \"learning rate\", \"description\": \"The learning rate needs adjustment for model sizes beyond 7B.\", \"created_at\": \"2025-08-13 23:12:17\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"BFloat16\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses BFloat16 as its computation data type for matrix multiplication after dequantization.QLORA uses BFloat16 to calculate derivatives.\", \"created_at\": \"2025-08-13 23:07:36\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Li & Liang\", \"entity2\": \"Section 6\", \"description\": \"Section 6 likely surveys the work of Li & Liang on efficient model adaptation by optimizing input layer activations.\", \"created_at\": \"2025-08-13 22:45:40\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"QLORA\", \"entity2\": \"T5\", \"description\": \"QLORA was used for fine-tuning T5 models in experiments described in Section 5.QLORA was used to fine-tune T5 models.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"QLORA\", \"entity2\": \"Unnatural Instructions\", \"description\": \"QLORA was used for finetuning on the Unnatural Instructions dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LLMs\", \"entity2\": \"QLORA\", \"description\": \"QLORA aims to make finetuning of high-quality LLMs more accessible.QLORA is a method for fine-tuning LLMs on low-resource devices.\", \"created_at\": \"2025-08-13 23:16:07\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"GLUE\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance is compared against other methods on the GLUE benchmark.QLORA's performance is measured using the GLUE dataset, focusing on accuracy.\", \"created_at\": \"2025-08-13 23:13:18\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"QLORA\", \"entity2\": \"Self-Instruct\", \"description\": \"QLORA was used for finetuning on the Self-Instruct dataset.\", \"created_at\": \"2025-08-13 23:18:50\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LongForm dataset\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used in finetuning experiments on the LongForm dataset.\", \"created_at\": \"2025-08-13 23:22:29\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"4-bit NormalFloat (NF4)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes 4-bit NormalFloat (NF4) quantization as a core component of its finetuning process.QLORA utilizes 4-bit NormalFloat (NF4) to improve memory efficiency.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Luke Zettlemoyer\", \"entity2\": \"QLORA\", \"description\": \"Luke Zettlemoyer is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Double Quantization\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Double Quantization as a core technique within its high-fidelity 4-bit finetuning approach. This technique is employed to significantly reduce memory usage during the finetuning process.\", \"created_at\": \"2025-08-13 23:05:59\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"QLORA\", \"entity2\": \"Super-NaturalInstructions\", \"description\": \"QLORA's performance is compared against other methods on the Super-NaturalInstructions benchmark.QLORA's performance is measured using the Super-NaturalInstructions dataset, focusing on RougeL scores.\", \"created_at\": \"2025-08-13 23:13:18\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"16-bit LoRA\", \"entity2\": \"QLORA\", \"description\": \"QLORA matches the performance of 16-bit LoRA.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"1,000 models\", \"entity2\": \"QLORA\", \"description\": \"QLORA enabled the training of more than 1,000 models.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Adam\", \"entity2\": \"QLORA\", \"description\": \"The Adam optimizer is used in the QLORA finetuning experiments.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"FP4\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance with NF4 is compared to and shown to be superior to the performance with FP4.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"GPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used in the context of a quantized base model processed on a GPU.\", \"created_at\": \"2025-08-13 23:07:13\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"CPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA's optimization process may indirectly involve the CPU through memory management with paged optimizers.\", \"created_at\": \"2025-08-13 23:07:13\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"16-bit full finetuning\", \"entity2\": \"QLORA\", \"description\": \"4-bit QLORA with NF4 matches the performance of 16-bit full finetuning on academic benchmarks.QLORA matches the performance of 16-bit full finetuning.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"65B parameter model\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used to fine-tune a 65B parameter model efficiently.QLORA is used to finetune a 65B parameter model, reducing its memory requirements.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"QLORA\", \"entity2\": \"Tim Dettmers\", \"description\": \"Tim Dettmers is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"QLORA\", \"entity2\": \"Table 9\", \"description\": \"Table 9 shows the hyperparameters tuned for different model sizes in QLORA finetuning.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"NormalFloat4\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses NormalFloat4 as its storage data type.\", \"created_at\": \"2025-08-13 23:07:25\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"4-bit model\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a method specifically designed for finetuning 4-bit quantized models.\", \"created_at\": \"2025-08-13 23:03:13\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA parameters\", \"entity2\": \"QLORA\", \"description\": \"QLORA computes weight gradients specifically for the LoRA parameters during the backward pass.\", \"created_at\": \"2025-08-13 23:07:40\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"Low-rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses Low-rank Adapters (LoRA) to achieve its performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"4-bit finetuning\", \"entity2\": \"QLORA\", \"description\": \"QLORA is mentioned in the context of 4-bit finetuning, highlighting its efficiency benefits.\", \"created_at\": \"2025-08-13 23:14:04\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"4-bit NormalFloat (NF4) Quantization\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses 4-bit NormalFloat (NF4) quantization as one of its core techniques for finetuning.\", \"created_at\": \"2025-08-13 23:05:57\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"33B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a finetuning method used to train 33B parameter models on consumer GPUs.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"Elo\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated on the Elo benchmark, showing comparable results to 16-bit methods.\", \"created_at\": \"2025-08-13 23:13:40\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"QLORA\", \"entity2\": \"RoBERTa-large\", \"description\": \"QLORA's performance is evaluated using the RoBERTa-large model, achieving 88.6 accuracy with BF16.\", \"created_at\": \"2025-08-13 23:13:09\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Cross-entropy loss\", \"entity2\": \"QLORA\", \"description\": \"QLORA is presented as a method that enables analysis of the tradeoffs between cross-entropy loss and RLHF training.\", \"created_at\": \"2025-08-13 23:16:55\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"4-bit base model\", \"entity2\": \"QLORA\", \"description\": \"QLORA's 4-bit finetuning is compared to the memory usage of a 4-bit base model, suggesting a potential memory advantage.\", \"created_at\": \"2025-08-13 23:05:40\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"16-bit LoRA finetuning\", \"entity2\": \"QLORA\", \"description\": \"4-bit QLORA with NF4 matches the performance of 16-bit LoRA finetuning on academic benchmarks.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Low Rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Low Rank Adapters (LoRA) for efficient fine-tuning.\", \"created_at\": \"2025-08-13 23:01:24\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"QLORA\", \"entity2\": \"single GPU\", \"description\": \"QLORA can fine-tune models on a single GPU, showcasing its efficiency.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"48GB GPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA allows fine-tuning of a 65B parameter model on a single 48GB GPU.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Artidoro Pagnoni\", \"entity2\": \"QLORA\", \"description\": \"Artidoro Pagnoni is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"33B and 65B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA was successfully used to fine-tune models with 33B and 65B parameters, demonstrating scalability.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"65B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a finetuning method used to train 65B parameter models on professional GPUs.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"4-bit NormalFloat\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses 4-bit NormalFloat as one of its memory reduction techniques.\", \"created_at\": \"2025-08-13 23:02:00\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"QLORA\", \"entity2\": \"raw pretrained LLMs\", \"description\": \"QLORA is a method used to finetune raw pretrained LLMs into chatbots.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"QLORA\", \"entity2\": \"instruction tuning datasets\", \"description\": \"QLORA was used to perform instruction finetuning on several datasets.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Mobile Phones\", \"entity2\": \"QLORA\", \"description\": \"QLORA enables the fine-tuning of LLMs on mobile phones, a low-resource setting.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"7B models\", \"entity2\": \"QLORA\", \"description\": \"QLORA enables the fine-tuning of 7B models on devices like the iPhone 12 Plus.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LongForm\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used for finetuning on the LongForm dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"80M to 65B parameters\", \"entity2\": \"QLORA\", \"description\": \"QLORA's efficiency allowed for training models across a wide range of sizes, from 80M to 65B parameters.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"4-bit quantized pretrained language model\", \"entity2\": \"QLORA\", \"description\": \"QLORA backpropagates gradients through a frozen, 4-bit quantized pretrained language model.\", \"created_at\": \"2025-08-13 23:01:21\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"QLORA\", \"entity2\": \"model architectures\", \"description\": \"QLORA was applied to various model architectures during training.\", \"created_at\": \"2025-08-13 23:03:51\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"QLORA\", \"entity2\": \"iPhone 12 Plus\", \"description\": \"QLORA allows for the fine-tuning of LLMs on an iPhone 12 Plus, processing 3 million tokens per night while charging.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"QLORA\", \"entity2\": \"Raphael Olivier\", \"description\": \"Raphael Olivier provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:40\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"QLORA\", \"entity2\": \"T5-80M\", \"description\": \"QLORA's performance is evaluated using the T5-80M model, showing varying RougeL scores depending on the specific QLORA method.\", \"created_at\": \"2025-08-13 23:13:13\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Privacy-Preserving Usage of LLMs\", \"entity2\": \"QLORA\", \"description\": \"QLORA can help enable privacy-preserving usage of LLMs by allowing users to own and manage their data and models.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"8 instruction datasets\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated across 8 instruction datasets.\", \"created_at\": \"2025-08-13 23:01:40\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Margaret Li\", \"entity2\": \"QLORA\", \"description\": \"Margaret Li provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:39\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"Ashish Sharma\", \"entity2\": \"QLORA\", \"description\": \"Ashish Sharma provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"Ofir Press\", \"entity2\": \"QLORA\", \"description\": \"Ofir Press provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Aditya Kusupati\", \"entity2\": \"QLORA\", \"description\": \"Aditya Kusupati provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"16-bit LoRA\", \"entity2\": \"NF4\", \"description\": \"The performance of 16-bit LoRA using NF4 quantization is compared to 4-bit QLORA.\", \"created_at\": \"2025-08-13 23:10:07\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"16-bit LoRA\", \"entity2\": \"4-bit QLORA\", \"description\": \"4-bit QLORA is compared to 16-bit LoRA to assess its performance in finetuning large language models.\", \"created_at\": \"2025-08-13 23:09:58\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 46\\n\\nis a multiple-choice benchmark covering 57 tasks including elementary mathematics, US history, computer science, law, and more. We report 5-shot test accuracy. We also test generative language capabilities through both automated and human evaluations. This second set of evaluations relies on queries curated by humans and aims at measuring the quality of model responses. While this is a more realistic testbed for chatbot model performance and is growing in popularity, there is no commonly accepted protocol in the literature. We describe below our proposed setup, using nucleus sampling with $p = 0 . 9$ and temperature 0.7 in all cases. Table 5: MMLU 5-shot test results for different sizes of LLaMA finetuned on the corresponding datasets using QLoRA.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2106.09685v2\\nChunk: 104\\n\\nLoRA performs exhibits favorable sample-efficiency compared to other methods, including fine-tuning. To be concrete, let the singular values of $U _ { A } ^ { i \\\\top } U _ { B } ^ { j }$ to be $\\\\sigma _ { 1 } , \\\\sigma _ { 2 } , \\\\cdots , \\\\sigma _ { p }$ where $p = \\\\operatorname* { m i n } \\\\{ i , j \\\\}$ . We know that the Projection Metric Ham & Lee (2008) is defined as: $$\\nd ( U _ { A } ^ { i } , U _ { B } ^ { j } ) = \\\\sqrt { p - \\\\sum _ { i = 1 } ^ { p } \\\\sigma _ { i } ^ { 2 } } \\\\in [ 0 , \\\\sqrt { p } ]\\n$$\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2305.14314v1\\nChunk: 74\\n\\nfind overlapping prompts after performing fuzzy string matching in the two datasets and inspecting the closest matches manually. Furthermore, we note that our model is only trained with cross-entropy loss (supervised learning) without relying on reinforcement learning from human feedback (RLHF). This calls for further investigations of the tradeoffs of simple cross-entropy loss and RLHF training. We hope that QLORA enables such analysis at scale, without the need for overwhelming computational resources. # 7 Related Work Quantization of Large Language Models Quantization of LLMs has largely focused on quantization for inference time. Major approaches for preserving 16-bit LLM quality focus on managing outlier features (e.g., SmoothQuant [66] and LLM.int8() [14]) while others use more sophisticated grouping methods [44, 69]. Lossy quantization approaches study the trade-offs for regular rounding [13, 71, 47] or how to optimize rounding decisions to improve quantization precision [18].\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: 2106.09685v2\\nChunk: 2\\n\\nrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks. Compared to GPT-3 175B fine-tuned with Adam, LoRA can reduce the number of trainable parameters by 10,000 times and the GPU memory requirement by 3 times. LoRA performs on-par or better than finetuning in model quality on RoBERTa, DeBERTa, GPT-2, and GPT-3, despite having fewer trainable parameters, a higher training throughput, and, unlike adapters, no additional inference latency. We also provide an empirical investigation into rank-deficiency in language model adaptation, which sheds light on the efficacy of LoRA. We release a package that facilitates the integration of LoRA with PyTorch models and provide our implementations and model checkpoints for RoBERTa, DeBERTa, and GPT-2 at https://github.com/microsoft/LoRA. # 1 INTRODUCTION Many applications in natural language processing rely on adapting one large-scale, pre-trained language model to multiple downstream applications.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.2921, + "rag_initialization_seconds": 4.9317, + "query_execution_seconds": 0.3604, + "start_timestamp": "2025-08-14T23:14:45.479420", + "end_timestamp": "2025-08-14T23:14:50.771515" + }, + "metadata": { + "saved_at": "2025-08-14T23:14:50.771514", + "file_path": "retrieval_logs\\retrieval_20250814_231450_771_hybrid_k12_ck5_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_231714_112_hybrid_k12_ck5_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json b/retrieval_logs/retrieval_20250814_231714_112_hybrid_k12_ck5_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json new file mode 100644 index 0000000000000000000000000000000000000000..098b75b7d583d1492ff3b9129f4d60fa6cc9d3f2 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_231714_112_hybrid_k12_ck5_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:17:14.112237", + "query": "how can i use lora and qlora with graphrag? is there a connection betwen them?", + "query_mode": "hybrid", + "top_k": 12, + "chunk_top_k": 5, + "text_length": 39185, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low Rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low Rank Adapters (LoRA) are used in QLORA to efficiently fine-tune the quantized language model.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 23:22:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"16-bit LoRA\", \"type\": \"category\", \"description\": \"16-bit LoRA is a quantization technique used for finetuning large language models, serving as a comparison to 4-bit QLORA.A low-rank adaptation method for model finetuning that serves as a performance benchmark for QLORA.\", \"created_at\": \"2025-08-13 23:06:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"enormous language models\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LLaMA\", \"type\": \"category\", \"description\": \"LLaMA is a family of large language models, with different sizes (e.g., 33B, 7B) mentioned in the text.LLaMA is a family of pretrained large language models (LLMs) encompassing several variants with 7 billion, 13 billion, 33 billion, and 65 billion parameters. These models serve as foundational base models for other LLMs, including Guanaco, Vicuna, and Open Assistant. Consequently, models fine-tuned on LLaMA, such as Guanaco, inherit some of LLaMA's biases. Research into LLaMA has concentrated on parameter-efficient fine-tuning techniques, employing 4-bit quantization to manage the substantial GPU memory demands associated with its scale. Fine-tuning processes utilized methods like QLoRA and leveraged datasets including Flan v2 and Alpaca. Performance evaluations of LLaMA and its derivatives involved metrics like zero-shot accuracy, perplexity (especially on the Pile Common Crawl dataset), 5-shot MMLU accuracy, and RougeL scores (post fine-tuning). These evaluations comprehensively analyzed the effects of different quantization methods and fine-tuning strategies on performance across various floating-point formats, although specific numerical results are not detailed in the provided descriptions.LLaMA is a language model mentioned in the text. Further details about its nature or activities are not provided.\", \"created_at\": \"2025-08-13 23:26:09\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"QLORA\", \"type\": \"category\", \"description\": \"QLORA is an efficient and accessible fine-tuning method for large language models (LLMs), including chatbots such as Guanaco. It enables the fine-tuning of LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones. This accessibility is achieved through a combination of 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers, significantly reducing memory usage compared to traditional methods. Contrary to simplified explanations, QLORA uses adapters at every network layer, not just a single quantized linear layer, mitigating accuracy loss often observed in other instruction fine-tuning techniques. This multi-layer approach allows for the training of diverse models across various datasets and sizes, achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods. Evaluations demonstrate comparable GLUE accuracy and Super-NaturalInstructions RougeL scores to these methods. QLORA replicates the performance of 16-bit full fine-tuning using a 4-bit base model and Low-rank Adapters (LoRA). The use of paged optimizers further prevents out-of-memory errors, enabling the fine-tuning of large models on a single GPU. While offering significant advantages in efficiency and accessibility for training LLMs on consumer and professional GPUs without performance degradation, QLORA is considered a dual-use technology with potential for misuse. Its primary benefit is improved accessibility of state-of-the-art NLP technology, enabling large-scale analysis without excessive computational resources. QLORA's effectiveness has been demonstrated in experiments detailed in various sections of related texts.\", \"created_at\": \"2025-08-13 23:01:08\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"QLoRA\", \"type\": \"category\", \"description\": \"QLoRA is a fine-tuning method used for adapting large language models, such as LLaMA. This method employs a 4-bit quantization of the transformer weights and utilizes a paging mechanism to efficiently manage optimizer states by offloading them to the CPU. In comparison to other fine-tuning approaches like 16-bit adapter fine-tuning and full fine-tuning, QLoRA offers a distinct approach to model adaptation.QLoRA is a method used for fine-tuning the LLaMA language model.QLoRA is a training method for large language models, as indicated by the phrase 'QLoRA training'.\", \"created_at\": \"2025-08-13 23:26:09\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Fine-Tune\", \"type\": \"category\", \"description\": \"Fine-Tune is a GPT-3 adaptation method used for training language models, particularly effective in hyperparameter tuning. It boasts 175 billion trainable parameters and demonstrates superior performance compared to methods like PrefixEmbed and PrefixLayer, especially on the MNLI-100 (also referenced as MNLI100) dataset, achieving an accuracy of 89.5%. Further evaluation on other datasets shows an accuracy of 73.8% on WikiSQL. Fine-Tune's performance has been compared to LoRA and other similar training methods for language models, and it is frequently used to evaluate performance on subsets of the MNLI dataset.\", \"created_at\": \"2025-08-13 23:02:45\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"MNLI100\", \"type\": \"event\", \"description\": \"MNLI100 is a dataset used to evaluate the performance of different adaptation approaches for GPT-3.\", \"created_at\": \"2025-08-13 22:57:16\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"PrefixEmbed\", \"type\": \"category\", \"description\": \"PrefixEmbed is a method or layer used in model adaptation.PrefixEmbed is a prefix-based adaptation method for GPT-3, designed to fine-tune the model for specific tasks. It involves tuning a prefix embedding, with the number of trainable parameters varying from 0.4M to 6.4M. This variation in parameters results in a range of performance outcomes: WikiSQL accuracy scores between 55.9% and 63.1%, and MNLI-m accuracy scores between 84.9% and 88.6%. Hyperparameters explored include '=32,l=8 =64,l=8 =128,l=8 lp = 256,l = 8 p=512,l =8 lp ip'. While PrefixEmbed can be used in conjunction with other methods like LoRA, its performance generally lags behind competing techniques such as PrefixLayer, LoRA, and Adapter(H), especially on datasets like MNLI and in low-data scenarios. Furthermore, its effectiveness decreases as the number of trainable parameters increases, indicating scalability limitations. In summary, PrefixEmbed offers a viable, albeit less effective, alternative to other adaptation methods for GPT-3, particularly when compared to its competitors in terms of overall accuracy and scalability. Its primary use has been demonstrated in evaluating performance on MNLI subsets.\", \"created_at\": \"2025-08-13 23:04:42\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"7B\", \"type\": \"organization\", \"description\": \"The 7B model is a member of the LLaMA family of language models. This designation refers to its size, specifically its parameter count, which is 7 billion. This substantial scale contributes to the model's generally good generalization capabilities, although performance is sensitive to factors like learning rate and batch size during training. The 7B model's size is relevant in the context of neural network weights and has been used in training with various datasets and parameters. Its 5-shot MMLU accuracy has been evaluated using different floating-point formats, and its memory footprint has been charted.\", \"created_at\": \"2025-08-13 23:24:56\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"learning rate\", \"type\": \"UNKNOWN\", \"description\": \"The learning rate needs adjustment for model sizes beyond 7B.\", \"created_at\": \"2025-08-13 23:12:17\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Li & Liang\", \"type\": \"person\", \"description\": \"Li & Liang are authors of several publications focusing on the efficient adaptation of large language models, particularly those similar to GPT-2. Their research encompasses various techniques, including prefix tuning and optimization of input layer activations to improve adaptation efficiency. They've also investigated methods to mitigate the reduction of usable sequence length often encountered in models like GPT-2, exploring the strategic placement of special tokens through prefixing and infixing within model inputs. Furthermore, their work includes a paper proposing the optimization of input word embeddings, a method analogous to prompt engineering. Their contributions to the field are significant, with their work on GPT-2 adaptation serving as a benchmark for other researchers, and their findings regarding the role of special tokens in model training corroborated by other studies citing their work. In addition to their research on efficient large language model adaptation, Li & Liang have also authored a work on neural networks and neural tangent kernels.Li & Liang are authors referenced for hyperparameters used in baselines other than LoRA in GPT-2.Li & Liang are authors whose experimental setup is followed in the text.\", \"created_at\": \"2025-08-13 22:59:26\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Section 6\", \"type\": \"category\", \"description\": \"Section 6 of the document contains a survey of well-known works on efficient model adaptation.\", \"created_at\": \"2025-08-13 22:45:38\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"GPT-3\", \"type\": \"organization\", \"description\": \"GPT-3 is a large-scale, pre-trained language model with 175 billion trainable parameters. Its immense size enables strong performance across diverse large-scale applications, as evidenced by experiments using datasets like WikiSQL and SAMSum. This size, however, presents significant deployment challenges and establishes GPT-3 as a benchmark against which other models, such as LoRA, LLaMA, Guanaco, and OPT, are compared. GPT-3's performance is highly dependent on the quality of input prompts, often necessitating techniques like prompt engineering or prompt hacking for optimal results. It has been extensively used in various experiments, including those evaluating different methods on subsets of the Multi-Genre Natural Language Inference (MNLI) dataset, comparing fine-tuning and few-shot learning performance, analyzing its 48th layer's weight matrices, and exploring parameter-efficient fine-tuning methods (FT, BitFit, PreEmbed, PreLayer, AdapterH, LoRA) and adaptation approaches (PrefixLayer, PrefixEmbed, PrefixTune LoRA). One specific experiment involved training GPT-3 for 2 epochs using the AdamW optimizer with a batch size of 128, a weight decay of 0.1, a sequence length of 384, and a general domain dataset. Further experiments focused on adaptation methods and how performance varies with different numbers of trainable parameters (specific hyperparameter details are not provided). While a simpler model (where r=1 suffices) may be adequate for many tasks, GPT-3's capabilities serve as a significant benchmark in the field of large language models, particularly within the contexts of few-shot learning, fine-tuning experiments, and bias analysis across various categories.\", \"created_at\": \"2025-08-13 23:14:39\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Parameter-Efficient Adaptation\", \"type\": \"category\", \"description\": \"A method for adapting large language models that uses a bottleneck structure to impose a low-rank constraint on weight updates, aiming to avoid latency issues.\", \"created_at\": \"2025-08-13 22:46:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LLaMA\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used for fine-tuning LLaMA models, achieving comparable performance to full 16-bit fine-tuning with 4-bit precision. The study investigates instruction tuning of LLaMA models using QLORA at scales not feasible with full 16-bit fine-tuning.QLORA was used to fine-tune LLaMA models.\", \"created_at\": \"2025-08-13 23:13:57\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LLaMA\", \"entity2\": \"QLoRA\", \"description\": \"LLaMA, a large language model available in 7B, 13B, and 33B parameter sizes, was fine-tuned using the QLoRA method. This QLoRA fine-tuning technique was compared to other methods, and its application to LLaMA models was explored. Specifically, LLaMA models were fine-tuned using QLoRA on datasets such as Flan v2 and Alpaca, followed by evaluation using a 5-shot MMLU benchmark. The QLoRA method proved effective in fine-tuning different sizes of the LLaMA model.QLoRA is a training method used with LLaMA models, as evidenced by 'QLoRA training with different LLaMA base models'. The text describes memory usage during this training process.\", \"created_at\": \"2025-08-13 23:26:10\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Guanaco\", \"entity2\": \"QLORA\", \"description\": \"Guanaco models are trained using the QLORA technique for efficient fine-tuning on a single GPU.QLORA was used to train the Guanaco chatbot, a state-of-the-art model.\", \"created_at\": \"2025-08-13 23:04:36\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"MMLU\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated on the MMLU benchmark, showing comparable results to 16-bit methods.\", \"created_at\": \"2025-08-13 23:13:28\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Alpaca\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used for finetuning on the Alpaca dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"ChatGPT\", \"entity2\": \"QLORA\", \"description\": \"QLORA achieves 97% of ChatGPT's performance with less training time and resources.QLORA's 33B model rivals ChatGPT on the Vicuna benchmark.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Guanaco 33B\", \"entity2\": \"QLORA\", \"description\": \"Guanaco 33B is a QLORA-tuned model (implied).\", \"created_at\": \"2025-08-13 23:10:24\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Fine-Tune\", \"entity2\": \"MNLI100\", \"description\": \"Fine-Tune outperforms PrefixLayer and PrefixEmbed on MNLI100.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Guanaco 65B\", \"entity2\": \"QLORA\", \"description\": \"Guanaco 65B is a QLORA-trained model.\", \"created_at\": \"2025-08-13 23:10:35\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"NF4\", \"entity2\": \"QLORA\", \"description\": \"NF4 is the computation datatype used in the QLORA finetuning experiments.QLORA uses NF4 data type, which is shown to be superior to FP4 in terms of quantization precision.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Paged Optimizers\", \"entity2\": \"QLORA\", \"description\": \"QLORA employs Paged Optimizers to manage memory during gradient checkpointing.QLORA uses Paged Optimizers to handle memory spikes during training.QLORA incorporates Paged Optimizers to address memory issues during finetuning.\", \"created_at\": \"2025-08-13 23:05:59\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"7B\", \"entity2\": \"learning rate\", \"description\": \"The learning rate needs adjustment for model sizes beyond 7B.\", \"created_at\": \"2025-08-13 23:12:17\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"BFloat16\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses BFloat16 as its computation data type for matrix multiplication after dequantization.QLORA uses BFloat16 to calculate derivatives.\", \"created_at\": \"2025-08-13 23:07:36\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Li & Liang\", \"entity2\": \"Section 6\", \"description\": \"Section 6 likely surveys the work of Li & Liang on efficient model adaptation by optimizing input layer activations.\", \"created_at\": \"2025-08-13 22:45:40\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"QLORA\", \"entity2\": \"T5\", \"description\": \"QLORA was used for fine-tuning T5 models in experiments described in Section 5.QLORA was used to fine-tune T5 models.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"GPT-3\", \"entity2\": \"Parameter-Efficient Adaptation\", \"description\": \"Parameter-Efficient Adaptation is presented as a solution to the challenges of fine-tuning GPT-3 due to its size and memory footprint.\", \"created_at\": \"2025-08-13 22:46:52\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"QLORA\", \"entity2\": \"Unnatural Instructions\", \"description\": \"QLORA was used for finetuning on the Unnatural Instructions dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LLMs\", \"entity2\": \"QLORA\", \"description\": \"QLORA aims to make finetuning of high-quality LLMs more accessible.QLORA is a method for fine-tuning LLMs on low-resource devices.\", \"created_at\": \"2025-08-13 23:16:07\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"GLUE\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance is compared against other methods on the GLUE benchmark.QLORA's performance is measured using the GLUE dataset, focusing on accuracy.\", \"created_at\": \"2025-08-13 23:13:18\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"QLORA\", \"entity2\": \"Self-Instruct\", \"description\": \"QLORA was used for finetuning on the Self-Instruct dataset.\", \"created_at\": \"2025-08-13 23:18:50\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LongForm dataset\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used in finetuning experiments on the LongForm dataset.\", \"created_at\": \"2025-08-13 23:22:29\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"4-bit NormalFloat (NF4)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes 4-bit NormalFloat (NF4) quantization as a core component of its finetuning process.QLORA utilizes 4-bit NormalFloat (NF4) to improve memory efficiency.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Luke Zettlemoyer\", \"entity2\": \"QLORA\", \"description\": \"Luke Zettlemoyer is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Double Quantization\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Double Quantization as a core technique within its high-fidelity 4-bit finetuning approach. This technique is employed to significantly reduce memory usage during the finetuning process.\", \"created_at\": \"2025-08-13 23:05:59\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"QLORA\", \"entity2\": \"Super-NaturalInstructions\", \"description\": \"QLORA's performance is compared against other methods on the Super-NaturalInstructions benchmark.QLORA's performance is measured using the Super-NaturalInstructions dataset, focusing on RougeL scores.\", \"created_at\": \"2025-08-13 23:13:18\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"16-bit LoRA\", \"entity2\": \"QLORA\", \"description\": \"QLORA matches the performance of 16-bit LoRA.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"1,000 models\", \"entity2\": \"QLORA\", \"description\": \"QLORA enabled the training of more than 1,000 models.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Adam\", \"entity2\": \"QLORA\", \"description\": \"The Adam optimizer is used in the QLORA finetuning experiments.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"FP4\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance with NF4 is compared to and shown to be superior to the performance with FP4.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"GPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used in the context of a quantized base model processed on a GPU.\", \"created_at\": \"2025-08-13 23:07:13\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"CPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA's optimization process may indirectly involve the CPU through memory management with paged optimizers.\", \"created_at\": \"2025-08-13 23:07:13\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"16-bit full finetuning\", \"entity2\": \"QLORA\", \"description\": \"4-bit QLORA with NF4 matches the performance of 16-bit full finetuning on academic benchmarks.QLORA matches the performance of 16-bit full finetuning.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"65B parameter model\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used to fine-tune a 65B parameter model efficiently.QLORA is used to finetune a 65B parameter model, reducing its memory requirements.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"QLORA\", \"entity2\": \"Tim Dettmers\", \"description\": \"Tim Dettmers is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"QLORA\", \"entity2\": \"Table 9\", \"description\": \"Table 9 shows the hyperparameters tuned for different model sizes in QLORA finetuning.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"NormalFloat4\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses NormalFloat4 as its storage data type.\", \"created_at\": \"2025-08-13 23:07:25\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"4-bit model\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a method specifically designed for finetuning 4-bit quantized models.\", \"created_at\": \"2025-08-13 23:03:13\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA parameters\", \"entity2\": \"QLORA\", \"description\": \"QLORA computes weight gradients specifically for the LoRA parameters during the backward pass.\", \"created_at\": \"2025-08-13 23:07:40\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"Low-rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses Low-rank Adapters (LoRA) to achieve its performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"4-bit finetuning\", \"entity2\": \"QLORA\", \"description\": \"QLORA is mentioned in the context of 4-bit finetuning, highlighting its efficiency benefits.\", \"created_at\": \"2025-08-13 23:14:04\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"4-bit NormalFloat (NF4) Quantization\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses 4-bit NormalFloat (NF4) quantization as one of its core techniques for finetuning.\", \"created_at\": \"2025-08-13 23:05:57\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"33B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a finetuning method used to train 33B parameter models on consumer GPUs.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"Elo\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated on the Elo benchmark, showing comparable results to 16-bit methods.\", \"created_at\": \"2025-08-13 23:13:40\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"QLORA\", \"entity2\": \"RoBERTa-large\", \"description\": \"QLORA's performance is evaluated using the RoBERTa-large model, achieving 88.6 accuracy with BF16.\", \"created_at\": \"2025-08-13 23:13:09\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Cross-entropy loss\", \"entity2\": \"QLORA\", \"description\": \"QLORA is presented as a method that enables analysis of the tradeoffs between cross-entropy loss and RLHF training.\", \"created_at\": \"2025-08-13 23:16:55\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"4-bit base model\", \"entity2\": \"QLORA\", \"description\": \"QLORA's 4-bit finetuning is compared to the memory usage of a 4-bit base model, suggesting a potential memory advantage.\", \"created_at\": \"2025-08-13 23:05:40\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"16-bit LoRA finetuning\", \"entity2\": \"QLORA\", \"description\": \"4-bit QLORA with NF4 matches the performance of 16-bit LoRA finetuning on academic benchmarks.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Low Rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Low Rank Adapters (LoRA) for efficient fine-tuning.\", \"created_at\": \"2025-08-13 23:01:24\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"QLORA\", \"entity2\": \"single GPU\", \"description\": \"QLORA can fine-tune models on a single GPU, showcasing its efficiency.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"48GB GPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA allows fine-tuning of a 65B parameter model on a single 48GB GPU.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Artidoro Pagnoni\", \"entity2\": \"QLORA\", \"description\": \"Artidoro Pagnoni is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"33B and 65B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA was successfully used to fine-tune models with 33B and 65B parameters, demonstrating scalability.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"65B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a finetuning method used to train 65B parameter models on professional GPUs.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"4-bit NormalFloat\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses 4-bit NormalFloat as one of its memory reduction techniques.\", \"created_at\": \"2025-08-13 23:02:00\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"QLORA\", \"entity2\": \"raw pretrained LLMs\", \"description\": \"QLORA is a method used to finetune raw pretrained LLMs into chatbots.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"QLORA\", \"entity2\": \"instruction tuning datasets\", \"description\": \"QLORA was used to perform instruction finetuning on several datasets.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Mobile Phones\", \"entity2\": \"QLORA\", \"description\": \"QLORA enables the fine-tuning of LLMs on mobile phones, a low-resource setting.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"7B models\", \"entity2\": \"QLORA\", \"description\": \"QLORA enables the fine-tuning of 7B models on devices like the iPhone 12 Plus.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LongForm\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used for finetuning on the LongForm dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"80M to 65B parameters\", \"entity2\": \"QLORA\", \"description\": \"QLORA's efficiency allowed for training models across a wide range of sizes, from 80M to 65B parameters.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"4-bit quantized pretrained language model\", \"entity2\": \"QLORA\", \"description\": \"QLORA backpropagates gradients through a frozen, 4-bit quantized pretrained language model.\", \"created_at\": \"2025-08-13 23:01:21\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"QLORA\", \"entity2\": \"model architectures\", \"description\": \"QLORA was applied to various model architectures during training.\", \"created_at\": \"2025-08-13 23:03:51\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"QLORA\", \"entity2\": \"iPhone 12 Plus\", \"description\": \"QLORA allows for the fine-tuning of LLMs on an iPhone 12 Plus, processing 3 million tokens per night while charging.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"QLORA\", \"entity2\": \"Raphael Olivier\", \"description\": \"Raphael Olivier provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:40\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"QLORA\", \"entity2\": \"T5-80M\", \"description\": \"QLORA's performance is evaluated using the T5-80M model, showing varying RougeL scores depending on the specific QLORA method.\", \"created_at\": \"2025-08-13 23:13:13\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Privacy-Preserving Usage of LLMs\", \"entity2\": \"QLORA\", \"description\": \"QLORA can help enable privacy-preserving usage of LLMs by allowing users to own and manage their data and models.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"8 instruction datasets\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated across 8 instruction datasets.\", \"created_at\": \"2025-08-13 23:01:40\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Margaret Li\", \"entity2\": \"QLORA\", \"description\": \"Margaret Li provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:39\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"Ashish Sharma\", \"entity2\": \"QLORA\", \"description\": \"Ashish Sharma provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"Ofir Press\", \"entity2\": \"QLORA\", \"description\": \"Ofir Press provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Aditya Kusupati\", \"entity2\": \"QLORA\", \"description\": \"Aditya Kusupati provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"16-bit LoRA\", \"entity2\": \"NF4\", \"description\": \"The performance of 16-bit LoRA using NF4 quantization is compared to 4-bit QLORA.\", \"created_at\": \"2025-08-13 23:10:07\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"16-bit LoRA\", \"entity2\": \"4-bit QLORA\", \"description\": \"4-bit QLORA is compared to 16-bit LoRA to assess its performance in finetuning large language models.\", \"created_at\": \"2025-08-13 23:09:58\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 46\\n\\nis a multiple-choice benchmark covering 57 tasks including elementary mathematics, US history, computer science, law, and more. We report 5-shot test accuracy. We also test generative language capabilities through both automated and human evaluations. This second set of evaluations relies on queries curated by humans and aims at measuring the quality of model responses. While this is a more realistic testbed for chatbot model performance and is growing in popularity, there is no commonly accepted protocol in the literature. We describe below our proposed setup, using nucleus sampling with $p = 0 . 9$ and temperature 0.7 in all cases. Table 5: MMLU 5-shot test results for different sizes of LLaMA finetuned on the corresponding datasets using QLoRA.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2106.09685v2\\nChunk: 104\\n\\nLoRA performs exhibits favorable sample-efficiency compared to other methods, including fine-tuning. To be concrete, let the singular values of $U _ { A } ^ { i \\\\top } U _ { B } ^ { j }$ to be $\\\\sigma _ { 1 } , \\\\sigma _ { 2 } , \\\\cdots , \\\\sigma _ { p }$ where $p = \\\\operatorname* { m i n } \\\\{ i , j \\\\}$ . We know that the Projection Metric Ham & Lee (2008) is defined as: $$\\nd ( U _ { A } ^ { i } , U _ { B } ^ { j } ) = \\\\sqrt { p - \\\\sum _ { i = 1 } ^ { p } \\\\sigma _ { i } ^ { 2 } } \\\\in [ 0 , \\\\sqrt { p } ]\\n$$\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2305.14314v1\\nChunk: 74\\n\\nfind overlapping prompts after performing fuzzy string matching in the two datasets and inspecting the closest matches manually. Furthermore, we note that our model is only trained with cross-entropy loss (supervised learning) without relying on reinforcement learning from human feedback (RLHF). This calls for further investigations of the tradeoffs of simple cross-entropy loss and RLHF training. We hope that QLORA enables such analysis at scale, without the need for overwhelming computational resources. # 7 Related Work Quantization of Large Language Models Quantization of LLMs has largely focused on quantization for inference time. Major approaches for preserving 16-bit LLM quality focus on managing outlier features (e.g., SmoothQuant [66] and LLM.int8() [14]) while others use more sophisticated grouping methods [44, 69]. Lossy quantization approaches study the trade-offs for regular rounding [13, 71, 47] or how to optimize rounding decisions to improve quantization precision [18].\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: 2106.09685v2\\nChunk: 2\\n\\nrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks. Compared to GPT-3 175B fine-tuned with Adam, LoRA can reduce the number of trainable parameters by 10,000 times and the GPU memory requirement by 3 times. LoRA performs on-par or better than finetuning in model quality on RoBERTa, DeBERTa, GPT-2, and GPT-3, despite having fewer trainable parameters, a higher training throughput, and, unlike adapters, no additional inference latency. We also provide an empirical investigation into rank-deficiency in language model adaptation, which sheds light on the efficacy of LoRA. We release a package that facilitates the integration of LoRA with PyTorch models and provide our implementations and model checkpoints for RoBERTa, DeBERTa, and GPT-2 at https://github.com/microsoft/LoRA. # 1 INTRODUCTION Many applications in natural language processing rely on adapting one large-scale, pre-trained language model to multiple downstream applications.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.3921, + "rag_initialization_seconds": 5.0478, + "query_execution_seconds": 0.3444, + "start_timestamp": "2025-08-14T23:17:08.719089", + "end_timestamp": "2025-08-14T23:17:14.111238" + }, + "metadata": { + "saved_at": "2025-08-14T23:17:14.112237", + "file_path": "retrieval_logs\\retrieval_20250814_231714_112_hybrid_k12_ck5_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250814_231751_217_mix_k12_ck5_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json b/retrieval_logs/retrieval_20250814_231751_217_mix_k12_ck5_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json new file mode 100644 index 0000000000000000000000000000000000000000..74af354665088b6aa3a052871b0d2192d10de602 --- /dev/null +++ b/retrieval_logs/retrieval_20250814_231751_217_mix_k12_ck5_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-14T23:17:51.217314", + "query": "how can i use lora and qlora with graphrag? is there a connection betwen them?", + "query_mode": "mix", + "top_k": 12, + "chunk_top_k": 5, + "text_length": 42921, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA\", \"type\": \"category\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge. It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters). This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements. The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M), which impacts accuracy across different benchmarks. For instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%; on MNLI-m (matched), accuracy ranges from 91.2% to 91.7%. LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even with an increasing number of trainable parameters. During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. While highly efficient, LoRA's efficiency can be slightly reduced when batching inputs from different tasks with varying parameters. Its efficiency can be further enhanced by combining it with other tensor product-based methods. LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed. In QLORA fine-tuning experiments\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LLaMA\", \"type\": \"category\", \"description\": \"LLaMA is a family of large language models, with different sizes (e.g., 33B, 7B) mentioned in the text.LLaMA is a family of pretrained large language models (LLMs) encompassing several variants with 7 billion, 13 billion, 33 billion, and 65 billion parameters. These models serve as foundational base models for other LLMs, including Guanaco, Vicuna, and Open Assistant. Consequently, models fine-tuned on LLaMA, such as Guanaco, inherit some of LLaMA's biases. Research into LLaMA has concentrated on parameter-efficient fine-tuning techniques, employing 4-bit quantization to manage the substantial GPU memory demands associated with its scale. Fine-tuning processes utilized methods like QLoRA and leveraged datasets including Flan v2 and Alpaca. Performance evaluations of LLaMA and its derivatives involved metrics like zero-shot accuracy, perplexity (especially on the Pile Common Crawl dataset), 5-shot MMLU accuracy, and RougeL scores (post fine-tuning). These evaluations comprehensively analyzed the effects of different quantization methods and fine-tuning strategies on performance across various floating-point formats, although specific numerical results are not detailed in the provided descriptions.LLaMA is a language model mentioned in the text. Further details about its nature or activities are not provided.\", \"created_at\": \"2025-08-13 23:26:09\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"QLoRA\", \"type\": \"category\", \"description\": \"QLoRA is a fine-tuning method used for adapting large language models, such as LLaMA. This method employs a 4-bit quantization of the transformer weights and utilizes a paging mechanism to efficiently manage optimizer states by offloading them to the CPU. In comparison to other fine-tuning approaches like 16-bit adapter fine-tuning and full fine-tuning, QLoRA offers a distinct approach to model adaptation.QLoRA is a method used for fine-tuning the LLaMA language model.QLoRA is a training method for large language models, as indicated by the phrase 'QLoRA training'.\", \"created_at\": \"2025-08-13 23:26:09\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Fine-Tune\", \"type\": \"category\", \"description\": \"Fine-Tune is a GPT-3 adaptation method used for training language models, particularly effective in hyperparameter tuning. It boasts 175 billion trainable parameters and demonstrates superior performance compared to methods like PrefixEmbed and PrefixLayer, especially on the MNLI-100 (also referenced as MNLI100) dataset, achieving an accuracy of 89.5%. Further evaluation on other datasets shows an accuracy of 73.8% on WikiSQL. Fine-Tune's performance has been compared to LoRA and other similar training methods for language models, and it is frequently used to evaluate performance on subsets of the MNLI dataset.\", \"created_at\": \"2025-08-13 23:02:45\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"MNLI100\", \"type\": \"event\", \"description\": \"MNLI100 is a dataset used to evaluate the performance of different adaptation approaches for GPT-3.\", \"created_at\": \"2025-08-13 22:57:16\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Fine-tuning\", \"type\": \"UNKNOWN\", \"description\": \"Fine-tuning is mentioned in the context of the LLaMA 65B parameter model, highlighting its high cost.\", \"created_at\": \"2025-08-13 23:03:30\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"LLaMA 65B parameter model\", \"type\": \"organization\", \"description\": \"A large language model (LLM) requiring more than $780 GB of GPU memory for 16-bit fine-tuning.\", \"created_at\": \"2025-08-13 23:03:26\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"enormous language models\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:24\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"7B\", \"type\": \"organization\", \"description\": \"The 7B model is a member of the LLaMA family of language models. This designation refers to its size, specifically its parameter count, which is 7 billion. This substantial scale contributes to the model's generally good generalization capabilities, although performance is sensitive to factors like learning rate and batch size during training. The 7B model's size is relevant in the context of neural network weights and has been used in training with various datasets and parameters. Its 5-shot MMLU accuracy has been evaluated using different floating-point formats, and its memory footprint has been charted.\", \"created_at\": \"2025-08-13 23:24:56\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"learning rate\", \"type\": \"UNKNOWN\", \"description\": \"The learning rate needs adjustment for model sizes beyond 7B.\", \"created_at\": \"2025-08-13 23:12:17\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Self-Instruct\", \"type\": \"category\", \"description\": \"Description not available in text.Self-Instruct is a dataset used to fine-tune LLaMA.Self-Instruct is an instruction tuning dataset created through model distillation from GPT-3 Instruct and ChatGPT, containing 82,612 examples.\", \"created_at\": \"2025-08-13 23:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Cross-entropy loss\", \"type\": \"category\", \"description\": \"Cross-entropy loss is a training method mentioned in the context of LLMs.\", \"created_at\": \"2025-08-13 23:16:50\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Reinforcement Learning from Human Feedback (RLHF)\", \"type\": \"category\", \"description\": \"RLHF is a training method contrasted with cross-entropy loss in the context of LLMs.\", \"created_at\": \"2025-08-13 23:16:50\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LLaMA\", \"entity2\": \"QLoRA\", \"description\": \"LLaMA, a large language model available in 7B, 13B, and 33B parameter sizes, was fine-tuned using the QLoRA method. This QLoRA fine-tuning technique was compared to other methods, and its application to LLaMA models was explored. Specifically, LLaMA models were fine-tuned using QLoRA on datasets such as Flan v2 and Alpaca, followed by evaluation using a 5-shot MMLU benchmark. The QLoRA method proved effective in fine-tuning different sizes of the LLaMA model.QLoRA is a training method used with LLaMA models, as evidenced by 'QLoRA training with different LLaMA base models'. The text describes memory usage during this training process.\", \"created_at\": \"2025-08-13 23:26:10\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Fine-Tune\", \"entity2\": \"MNLI100\", \"description\": \"Fine-Tune outperforms PrefixLayer and PrefixEmbed on MNLI100.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Fine-tuning\", \"entity2\": \"LLaMA 65B parameter model\", \"description\": \"Fine-tuning is mentioned in the context of the LLaMA 65B parameter model, highlighting its high cost.\", \"created_at\": \"2025-08-13 23:03:30\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"7B\", \"entity2\": \"learning rate\", \"description\": \"The learning rate needs adjustment for model sizes beyond 7B.\", \"created_at\": \"2025-08-13 23:12:17\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to enhance training efficiency and reduce resource consumption. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training. This reduction in trainable parameters is achieved without compromising performance on downstream tasks; in fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios. The primary benefits of using LoRA with GPT-3 175B are improved training efficiency and reduced resource requirements.LoRA is an adaptation method whose performance is evaluated on GPT-3 175B, showing higher validation accuracy compared to other methods.LoRA is a method compared to others (including Fine-Tune, PrefixEmbed, and PrefixLayer) when used with GPT-3 175B on MNLI subsets.\", \"created_at\": \"2025-08-13 23:02:54\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LLaMA\", \"entity2\": \"Self-Instruct\", \"description\": \"Self-Instruct dataset was used to fine-tune the LLaMA model.\", \"created_at\": \"2025-08-13 23:11:19\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Cross-entropy loss\", \"entity2\": \"Reinforcement Learning from Human Feedback (RLHF)\", \"description\": \"The text compares and contrasts cross-entropy loss and RLHF as training methods for LLMs.\", \"created_at\": \"2025-08-13 23:16:55\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Graph_RAG\\nChunk: 8\\n\\nGraphRAG is available as open-source software at https://github.com/microsoft/graphrag. In addition, versions of the GraphRAG approach are also available as extensions to multiple opensource libraries, including LangChain (LangChain, 2024), LlamaIndex (LlamaIndex, 2024), NebulaGraph (NebulaGraph, 2024), and Neo4J (Neo4J, 2024). # 2 Background # 2.1 RAG Approaches and Systems RAG generally refers to any system where a user query is used to retrieve relevant information from external data sources, whereupon this information is incorporated into the generation of a response to the query by an LLM (or other generative AI model, such as a multi-media model). The query and retrieved records populate a prompt template, which is then passed to the LLM (Ram et al., 2023). RAG is ideal when the total number of records in a data source is too large to include in a single prompt to the LLM, i.e. the amount of text in the data source exceeds the LLM’s context window.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2305.14314v1\\nChunk: 46\\n\\nis a multiple-choice benchmark covering 57 tasks including elementary mathematics, US history, computer science, law, and more. We report 5-shot test accuracy. We also test generative language capabilities through both automated and human evaluations. This second set of evaluations relies on queries curated by humans and aims at measuring the quality of model responses. While this is a more realistic testbed for chatbot model performance and is growing in popularity, there is no commonly accepted protocol in the literature. We describe below our proposed setup, using nucleus sampling with $p = 0 . 9$ and temperature 0.7 in all cases. Table 5: MMLU 5-shot test results for different sizes of LLaMA finetuned on the corresponding datasets using QLoRA.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2305.14314v1\\nChunk: 36\\n\\nQLORA replicates 16-bit LoRA and fullfinetuning.
Dataset ModelGLUE (Acc.)Super-NaturalInstructions (RougeL)
RoBERTa-largeT5-80MT5-250MT5-780MT5-3BT5-11B
BF1688.640.142.148.054.362.0
BF16 replication88.640.042.247.354.9
LoRA BF1688.840.542.647.155.460.7
QLoRA Int888.840.442.945.456.560.7
QLoRA FP488.640.342.447.555.660.9
QLoRA NF4 + DQ140.442.747.755.360.9
\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: 2106.09685v2\\nChunk: 6\\n\\n• A pre-trained model can be shared and used to build many small LoRA modules for different tasks. We can freeze the shared model and efficiently switch tasks by replacing the matrices $A$ and $B$ in Figure 1, reducing the storage requirement and task-switching overhead significantly. • LoRA makes training more efficient and lowers the hardware barrier to entry by up to 3 times when using adaptive optimizers since we do not need to calculate the gradients or maintain the optimizer states for most parameters. Instead, we only optimize the injected, much smaller low-rank matrices. • Our simple linear design allows us to merge the trainable matrices with the frozen weights when deployed, introducing no inference latency compared to a fully fine-tuned model, by construction. • LoRA is orthogonal to many prior methods and can be combined with many of them, such as prefix-tuning. We provide an example in Appendix E.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 7.1024, + "rag_initialization_seconds": 4.9523, + "query_execution_seconds": 2.1501, + "start_timestamp": "2025-08-14T23:17:44.114945", + "end_timestamp": "2025-08-14T23:17:51.217314" + }, + "metadata": { + "saved_at": "2025-08-14T23:17:51.217314", + "file_path": "retrieval_logs\\retrieval_20250814_231751_217_mix_k12_ck5_how_can_i_use_lora_and_qlora_with_graphrag_is_ther.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_174128_039_mix_k5_ck2_What_are_MOE_models_and_how_can_i_learn_them__are_.json b/retrieval_logs/retrieval_20250815_174128_039_mix_k5_ck2_What_are_MOE_models_and_how_can_i_learn_them__are_.json new file mode 100644 index 0000000000000000000000000000000000000000..101c7f626071b202fc0756224752e01496f05bc3 --- /dev/null +++ b/retrieval_logs/retrieval_20250815_174128_039_mix_k5_ck2_What_are_MOE_models_and_how_can_i_learn_them__are_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T17:41:28.039402", + "query": "What are MOE models and how can i learn them ? are they related to LLMs?", + "query_mode": "mix", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 17375, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Revisiting single-gated mixtures of experts\", \"type\": \"abstract\", \"description\": \"This paper re-examines and provides new insights into single-gated mixture of experts architectures.\", \"created_at\": \"2025-08-15 15:50:42\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"MoE\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning methodology and model design that enhances performance, generalization ability, and computational efficiency, particularly for complex and diverse tasks. MoE operates on a \\\"divide and conquer\\\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This framework allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. MoE leverages specialized \\\"experts\\\" for different tasks or data types, providing a scalable and flexible framework for tackling complex, multifaceted datasets and handling diverse knowledge domains without proportionally increasing computational costs. Expert networks can operate independently and are often integrated into a single network model by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers or CNN layers, with MoE layers, demonstrating high flexibility and broad applicability. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible Natural Language Generation (NLG) systems. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. MoE can alleviate problems in High-Value Content Learning (HVCL) such as known task boundaries and increased computation cost by leveraging multiple experts. MoE is also introduced into the decoder to address the issue of static feature decoding in different task decoders due to shared decoding parameters, which leads to insufficient distinction in task-specific features. MoE decomposes backbone features into task-agnostic features from different aspects, making the decoding process of task-specific features more fine-grained. MoE introduces shared expert modules, domain expert modules, and task expert modules, which learn cross-domain and cross-task common knowledge, domain-specific user preferences, and task-specific user preferences, respectively. This enables models to capture user preferences from multiple perspectives and handle complex dependencies between domains and tasks, allowing for flexible model expansion and handling dependencies between different tasks, making it suitable for visual multi-task models. MoE can be combined with various types of tokens to achieve better learning performance and has been applied in computer vision and natural language processing, showing significant potential, especially in large language models (LLMs). It also enhances the understanding of model behaviors. MoE is an advanced technique that enhances LLM performance andMoE is a technique that enhances LLM performance.\", \"created_at\": \"2025-08-15 16:36:35\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Deep mixture of experts via shallow embedding\", \"type\": \"methodology\", \"description\": \"This methodology involves a deep mixture of experts implemented through a shallow embedding.\", \"created_at\": \"2025-08-15 15:48:23\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"MoE-LPR\", \"type\": \"methodology\", \"description\": \"MoE-LPR designs a two-phase training strategy for MoE-based models. The first phase converts the original model into an MoE architecture with new expert modules to improve capability for new languages without original data. The second phase uses a small amount of original language data for review and a language prior routing mechanism to restore and maintain original language performance.MoE-LPR employs a language prior routing mechanism to restore and maintain the performance of the original language. It demonstrates excellent scalability and stability.MoE-LPR provides a new perspective for multilingual natural language understanding tasks.\", \"created_at\": \"2025-08-15 15:41:13\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"A hybrid tensor-expert-data parallelism approach to optimize mixture-of-experts training\", \"type\": \"methodology\", \"description\": \"This methodology focuses on optimizing mixture-of-experts training using a hybrid approach combining tensor, expert, and data parallelism.\", \"created_at\": \"2025-08-15 15:45:26\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"LLMs\", \"type\": \"methodology\", \"description\": \"LLMs are discussed in relation to fine-tuning, quantization, and unintended outcomes.Large Language Models (LLMs) are discussed in the context of being assisted by Small Language Models (SLMs).Large Language Models (LLMs) are powerful, rapidly developing technologies with extensive linguistic and domain knowledge, excelling in complex tasks such as dialogue, logical reasoning, and programming. LLMs are instrumental in interaction and decision-making, can address the cold-start problem with in-context learning, and are proficient in code generation and programming support. They have propelled natural language processing tasks and inspire research into synergistic interactions with Smaller Language Models (SLMs) to enhance performance of task-specific models. SLMs can improve LLMs in various aspects, serving as modules or effective proxies, and have complementary advantages with LLMs for task completion, allowing for knowledge transfer and reducing training time and data for SLMs. LLMs are used collaboratively with SLMs to transform complex tasks into manageable segments, with LLMs residing on the server and compensating for less powerful SLMs by handling complex tasks and providing additional support. LLMs' outputs are improved by methodologies like SELF-RAG, and they are enhanced in understanding and responsiveness through SuperICL. LLMs can handle queries independently when high-quality responses are indicated by proxy models, and require further retrieval for lower-quality outputs. Their factual accuracy and quality can be improved through on-demand retrieval and self-reflection. LLMs have the capability to generate human-like text and have captured public interest due to their potential in general artificial intelligence. They are utilized in various applications, including generating reasoning rationales to improve SLM performance through the Rationale Ranking method, generating instructions for datasets like LongForm, and facilitating knowledge graph extraction within systems. LLMs excel at handling difficult examples or rewriting content to eliminate task-irrelevant redundancy, thereby enhancing overall task performance. Services like Bing Chat and GitHub Copilot Chat utilize LLMs and have experienced prompt reverse-engineering. LLMs are used in Retrieval-Augmented Generation (RAG) and have specific query requirements that differ from search engines, as they may not need all information related to a query, only partial additional knowledge. LLMs are also used for broader context and advanced reasoning, and complex generation.\\n\\nDespite their capabilities, LLMs face significant limitations due to their massive parameters and computational demands, which hinder widespread real-world adoption. These challenges include latency during inference, labor-intensive fine-tuning, noise filtration issues in retrieval, suboptimal zero-shot performance, copyright infringement risks, evaluation difficulties, erroneous responses, and privacy breaches. For instance, LLMs increase latency when directly deployed via mobile engines like\", \"created_at\": \"2025-08-15 17:25:11\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Mixture of experts in image classification: Whats the sweet spot?\", \"type\": \"abstract\", \"description\": \"This work investigates the optimal configuration or 'sweet spot' for mixture of experts in the context of image classification.\", \"created_at\": \"2025-08-15 15:50:42\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Mixture-of-Experts (MoE)\", \"type\": \"methodology\", \"description\": \"Mixture-of-Experts (MoE) is a computational approach that involves combining multiple expert models to handle different aspects of a task, aiming for improved performance and efficiency. This framework utilizes distinct components called \\\"experts\\\" that specialize in different tasks or data facets, learning task-specific skills and specializing in different parts of the multi-task representation space. MoE enables the simultaneous activation of multiple experts, where each expert specializes in a distribution of actions, and a composite policy is formed by composing these distributions. It is an effective method for substantially scaling up model capacity with minimal computation overhead in Large Language Models (LLMs), activating only relevant experts for a specific input to manage computational costs and leverage specialized knowledge. An attention module is used to integrate expert outputs and generate connections between tasks and experts for optimal performance.MoE uses multiple experts to enhance learning without increasing active neurons, but its storage demands pose challenges for SLM deployment, making this a promising area for exploration.\", \"created_at\": \"2025-08-15 17:04:29\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Dropout regularization in hierarchical mixture of experts\", \"type\": \"abstract\", \"description\": \"This abstract focuses on the application of dropout regularization within hierarchical mixture of experts architectures.\", \"created_at\": \"2025-08-15 15:43:01\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Uni-MoE\", \"type\": \"methodology\", \"description\": \"Uni-MoE is a method for scaling unified multimodal LLMs with mixture of experts.Uni-MoE is a model that is evaluated on a comprehensive and diverse multi-modal dataset after instruction tuning. It significantly reduces performance discrepancies when processing mixed data, improves collaboration efficiency among multiple experts, and enhances generalization capabilities.\", \"created_at\": \"2025-08-15 15:43:44\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"mixture of experts\", \"type\": \"methodology\", \"description\": \"This is a concept or approach where different components or 'experts' are combined, and it is being related to self-attention in Vision Transformers.\", \"created_at\": \"2025-08-15 15:26:54\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"MoE architectures\", \"type\": \"methodology\", \"description\": \"MoE (Mixture of Experts) architectures are designed to enhance parameter efficiency and manage computational costs effectively. They offer potential improvements in model interpretability by learning intrinsic allocation mechanisms. These architectures possess a sparse nature, necessitating dynamic data allocation, which makes pipeline design a critical factor in their training. While MoE architectures have shown impressive scalability and performance, their theoretical foundations are not yet fully understood. Further research is needed to optimize the design of MoE architectures, particularly in determining the optimal number of experts and their specialization, as current methods often rely on heuristic or static settings that may not be universally optimal for all tasks.MoE architectures are a type of architecture that EdgeMoE aims to improve by reducing latency caused by frequent expert switching in limited device memory.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"intrinsic allocation mechanisms\", \"type\": \"methodology\", \"description\": \"Intrinsic allocation mechanisms are learned by MoE models, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"large language models (LLMs)\", \"type\": \"methodology\", \"description\": \"LLMs are a domain where the MoE model architecture has shown unique advantages and tremendous potentials.\", \"created_at\": \"2025-08-15 15:15:50\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"A general theory for softmax gating multinomial logistic mixture of experts\", \"entity2\": \"Mixture of experts in image classification: Whats the sweet spot?\", \"description\": \"Both entities discuss mixture of experts (MoE) models, with the first providing a general theory and the second exploring their application in image classification.\", \"created_at\": \"2025-08-15 15:50:43\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"MoE\", \"entity2\": \"MoE-LPR\", \"description\": \"MoE-LPR designs a training strategy for MoE-based models.\", \"created_at\": \"2025-08-15 15:41:30\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Deep mixture of experts via shallow embedding\", \"entity2\": \"Megan: Mixture of experts of generative adversarial networks for multimodal image generation\", \"description\": \"Both methodologies involve a 'mixture of experts' approach, suggesting a shared underlying principle in their design.\", \"created_at\": \"2025-08-15 15:48:23\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LLMs\", \"entity2\": \"Mixture-of-Experts (MoE)\", \"description\": \"Mixture-of-Experts (MoE) has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs.\", \"created_at\": \"2025-08-15 16:39:05\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"A hybrid tensor-expert-data parallelism approach to optimize mixture-of-experts training\", \"entity2\": \"S. Singh, O. Ruwase, A. A. Awan, S. Rajbhandari, Y. He, and A. Bhatele\", \"description\": \"These authors are associated with the development and publication of the hybrid tensor-expert-data parallelism approach for optimizing MoE training.\", \"created_at\": \"2025-08-15 15:45:27\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Uni-MoE\", \"entity2\": \"mixture of experts\", \"description\": \"Uni-MoE scales unified multimodal LLMs using mixture of experts.\", \"created_at\": \"2025-08-15 15:43:46\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"MoE architectures\", \"entity2\": \"intrinsic allocation mechanisms\", \"description\": \"MoE architectures learn intrinsic allocation mechanisms.\", \"created_at\": \"2025-08-15 15:19:39\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"MoE\", \"entity2\": \"large language models (LLMs)\", \"description\": \"The MoE model architecture has demonstrated unique advantages and tremendous potentials especially in large language models (LLMs).\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 111\\n\\nels such as GPT-3.5 and GPT-4, suggesting that SLMs equipped with RAG can sometimes perform comparably or even better than LLMs. These findings indicate that RAG for SLMs is effective and represents a promising direction for future research. Mixture-of-Experts (MoE) [39] has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs. The MoE framework is founded on a straightforward yet potent concept: distinct components of a model, referred to as “experts”, specialize in different tasks or data facets. In this paradigm, only the relevant experts are activated for a specific input, which manages computational costs while leveraging a vast pool of specialized knowledge. This scalable and adaptable approach enables increased model capacity without proportionally escalating computational demands. We argue that MoE is particularly suitable for SLM architectures [161] as it minimizes both computational load and memory overhead.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 37\\n\\nFollowing instruction tuning, Uni-MoE is evaluated on a comprehensive and diverse multi-modal dataset. The results indicate that the model significantly reduces performance discrepancies when processing mixed data, improves collaboration efficiency among multiple experts, and enhances generalization capabilities, highlighting the potential of the MoE architecture in developing a unified multi-modal large language model. 3) Task-Level Routing Strategy determines routing based on task IDs, ensuring that different tasks are routed to distinct experts, thereby effectively minimizing interference between tasks. This approach is particularly advantageous for multitask learning. For instance, [44] explores multilingual machine translation tasks, where task boundaries are defined by target languages, language pairs, or unique task IDs. And the experts are selected at the task level according to these boundaries.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 9.1421, + "rag_initialization_seconds": 4.947, + "query_execution_seconds": 4.1951, + "start_timestamp": "2025-08-15T17:41:18.897264", + "end_timestamp": "2025-08-15T17:41:28.039402" + }, + "metadata": { + "saved_at": "2025-08-15T17:41:28.039402", + "file_path": "retrieval_logs\\retrieval_20250815_174128_039_mix_k5_ck2_What_are_MOE_models_and_how_can_i_learn_them__are_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_174249_006_mix_k5_ck2_What_are_MOE_models_and_how_can_i_learn_them__are_.json b/retrieval_logs/retrieval_20250815_174249_006_mix_k5_ck2_What_are_MOE_models_and_how_can_i_learn_them__are_.json new file mode 100644 index 0000000000000000000000000000000000000000..83b726499fd337345dd83ec745736795ca435c58 --- /dev/null +++ b/retrieval_logs/retrieval_20250815_174249_006_mix_k5_ck2_What_are_MOE_models_and_how_can_i_learn_them__are_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T17:42:49.007361", + "query": "What are MOE models and how can i learn them ? are they related to LLMs?", + "query_mode": "mix", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 17375, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Revisiting single-gated mixtures of experts\", \"type\": \"abstract\", \"description\": \"This paper re-examines and provides new insights into single-gated mixture of experts architectures.\", \"created_at\": \"2025-08-15 15:50:42\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"MoE\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning methodology and model design that enhances performance, generalization ability, and computational efficiency, particularly for complex and diverse tasks. MoE operates on a \\\"divide and conquer\\\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This framework allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. MoE leverages specialized \\\"experts\\\" for different tasks or data types, providing a scalable and flexible framework for tackling complex, multifaceted datasets and handling diverse knowledge domains without proportionally increasing computational costs. Expert networks can operate independently and are often integrated into a single network model by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers or CNN layers, with MoE layers, demonstrating high flexibility and broad applicability. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible Natural Language Generation (NLG) systems. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. MoE can alleviate problems in High-Value Content Learning (HVCL) such as known task boundaries and increased computation cost by leveraging multiple experts. MoE is also introduced into the decoder to address the issue of static feature decoding in different task decoders due to shared decoding parameters, which leads to insufficient distinction in task-specific features. MoE decomposes backbone features into task-agnostic features from different aspects, making the decoding process of task-specific features more fine-grained. MoE introduces shared expert modules, domain expert modules, and task expert modules, which learn cross-domain and cross-task common knowledge, domain-specific user preferences, and task-specific user preferences, respectively. This enables models to capture user preferences from multiple perspectives and handle complex dependencies between domains and tasks, allowing for flexible model expansion and handling dependencies between different tasks, making it suitable for visual multi-task models. MoE can be combined with various types of tokens to achieve better learning performance and has been applied in computer vision and natural language processing, showing significant potential, especially in large language models (LLMs). It also enhances the understanding of model behaviors. MoE is an advanced technique that enhances LLM performance andMoE is a technique that enhances LLM performance.\", \"created_at\": \"2025-08-15 16:36:35\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Deep mixture of experts via shallow embedding\", \"type\": \"methodology\", \"description\": \"This methodology involves a deep mixture of experts implemented through a shallow embedding.\", \"created_at\": \"2025-08-15 15:48:23\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"MoE-LPR\", \"type\": \"methodology\", \"description\": \"MoE-LPR designs a two-phase training strategy for MoE-based models. The first phase converts the original model into an MoE architecture with new expert modules to improve capability for new languages without original data. The second phase uses a small amount of original language data for review and a language prior routing mechanism to restore and maintain original language performance.MoE-LPR employs a language prior routing mechanism to restore and maintain the performance of the original language. It demonstrates excellent scalability and stability.MoE-LPR provides a new perspective for multilingual natural language understanding tasks.\", \"created_at\": \"2025-08-15 15:41:13\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"A hybrid tensor-expert-data parallelism approach to optimize mixture-of-experts training\", \"type\": \"methodology\", \"description\": \"This methodology focuses on optimizing mixture-of-experts training using a hybrid approach combining tensor, expert, and data parallelism.\", \"created_at\": \"2025-08-15 15:45:26\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"LLMs\", \"type\": \"methodology\", \"description\": \"LLMs are discussed in relation to fine-tuning, quantization, and unintended outcomes.Large Language Models (LLMs) are discussed in the context of being assisted by Small Language Models (SLMs).Large Language Models (LLMs) are powerful, rapidly developing technologies with extensive linguistic and domain knowledge, excelling in complex tasks such as dialogue, logical reasoning, and programming. LLMs are instrumental in interaction and decision-making, can address the cold-start problem with in-context learning, and are proficient in code generation and programming support. They have propelled natural language processing tasks and inspire research into synergistic interactions with Smaller Language Models (SLMs) to enhance performance of task-specific models. SLMs can improve LLMs in various aspects, serving as modules or effective proxies, and have complementary advantages with LLMs for task completion, allowing for knowledge transfer and reducing training time and data for SLMs. LLMs are used collaboratively with SLMs to transform complex tasks into manageable segments, with LLMs residing on the server and compensating for less powerful SLMs by handling complex tasks and providing additional support. LLMs' outputs are improved by methodologies like SELF-RAG, and they are enhanced in understanding and responsiveness through SuperICL. LLMs can handle queries independently when high-quality responses are indicated by proxy models, and require further retrieval for lower-quality outputs. Their factual accuracy and quality can be improved through on-demand retrieval and self-reflection. LLMs have the capability to generate human-like text and have captured public interest due to their potential in general artificial intelligence. They are utilized in various applications, including generating reasoning rationales to improve SLM performance through the Rationale Ranking method, generating instructions for datasets like LongForm, and facilitating knowledge graph extraction within systems. LLMs excel at handling difficult examples or rewriting content to eliminate task-irrelevant redundancy, thereby enhancing overall task performance. Services like Bing Chat and GitHub Copilot Chat utilize LLMs and have experienced prompt reverse-engineering. LLMs are used in Retrieval-Augmented Generation (RAG) and have specific query requirements that differ from search engines, as they may not need all information related to a query, only partial additional knowledge. LLMs are also used for broader context and advanced reasoning, and complex generation.\\n\\nDespite their capabilities, LLMs face significant limitations due to their massive parameters and computational demands, which hinder widespread real-world adoption. These challenges include latency during inference, labor-intensive fine-tuning, noise filtration issues in retrieval, suboptimal zero-shot performance, copyright infringement risks, evaluation difficulties, erroneous responses, and privacy breaches. For instance, LLMs increase latency when directly deployed via mobile engines like\", \"created_at\": \"2025-08-15 17:25:11\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Mixture of experts in image classification: Whats the sweet spot?\", \"type\": \"abstract\", \"description\": \"This work investigates the optimal configuration or 'sweet spot' for mixture of experts in the context of image classification.\", \"created_at\": \"2025-08-15 15:50:42\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Mixture-of-Experts (MoE)\", \"type\": \"methodology\", \"description\": \"Mixture-of-Experts (MoE) is a computational approach that involves combining multiple expert models to handle different aspects of a task, aiming for improved performance and efficiency. This framework utilizes distinct components called \\\"experts\\\" that specialize in different tasks or data facets, learning task-specific skills and specializing in different parts of the multi-task representation space. MoE enables the simultaneous activation of multiple experts, where each expert specializes in a distribution of actions, and a composite policy is formed by composing these distributions. It is an effective method for substantially scaling up model capacity with minimal computation overhead in Large Language Models (LLMs), activating only relevant experts for a specific input to manage computational costs and leverage specialized knowledge. An attention module is used to integrate expert outputs and generate connections between tasks and experts for optimal performance.MoE uses multiple experts to enhance learning without increasing active neurons, but its storage demands pose challenges for SLM deployment, making this a promising area for exploration.\", \"created_at\": \"2025-08-15 17:04:29\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Dropout regularization in hierarchical mixture of experts\", \"type\": \"abstract\", \"description\": \"This abstract focuses on the application of dropout regularization within hierarchical mixture of experts architectures.\", \"created_at\": \"2025-08-15 15:43:01\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Uni-MoE\", \"type\": \"methodology\", \"description\": \"Uni-MoE is a method for scaling unified multimodal LLMs with mixture of experts.Uni-MoE is a model that is evaluated on a comprehensive and diverse multi-modal dataset after instruction tuning. It significantly reduces performance discrepancies when processing mixed data, improves collaboration efficiency among multiple experts, and enhances generalization capabilities.\", \"created_at\": \"2025-08-15 15:43:44\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"mixture of experts\", \"type\": \"methodology\", \"description\": \"This is a concept or approach where different components or 'experts' are combined, and it is being related to self-attention in Vision Transformers.\", \"created_at\": \"2025-08-15 15:26:54\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"MoE architectures\", \"type\": \"methodology\", \"description\": \"MoE (Mixture of Experts) architectures are designed to enhance parameter efficiency and manage computational costs effectively. They offer potential improvements in model interpretability by learning intrinsic allocation mechanisms. These architectures possess a sparse nature, necessitating dynamic data allocation, which makes pipeline design a critical factor in their training. While MoE architectures have shown impressive scalability and performance, their theoretical foundations are not yet fully understood. Further research is needed to optimize the design of MoE architectures, particularly in determining the optimal number of experts and their specialization, as current methods often rely on heuristic or static settings that may not be universally optimal for all tasks.MoE architectures are a type of architecture that EdgeMoE aims to improve by reducing latency caused by frequent expert switching in limited device memory.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"intrinsic allocation mechanisms\", \"type\": \"methodology\", \"description\": \"Intrinsic allocation mechanisms are learned by MoE models, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"large language models (LLMs)\", \"type\": \"methodology\", \"description\": \"LLMs are a domain where the MoE model architecture has shown unique advantages and tremendous potentials.\", \"created_at\": \"2025-08-15 15:15:50\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"A general theory for softmax gating multinomial logistic mixture of experts\", \"entity2\": \"Mixture of experts in image classification: Whats the sweet spot?\", \"description\": \"Both entities discuss mixture of experts (MoE) models, with the first providing a general theory and the second exploring their application in image classification.\", \"created_at\": \"2025-08-15 15:50:43\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"MoE\", \"entity2\": \"MoE-LPR\", \"description\": \"MoE-LPR designs a training strategy for MoE-based models.\", \"created_at\": \"2025-08-15 15:41:30\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Deep mixture of experts via shallow embedding\", \"entity2\": \"Megan: Mixture of experts of generative adversarial networks for multimodal image generation\", \"description\": \"Both methodologies involve a 'mixture of experts' approach, suggesting a shared underlying principle in their design.\", \"created_at\": \"2025-08-15 15:48:23\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LLMs\", \"entity2\": \"Mixture-of-Experts (MoE)\", \"description\": \"Mixture-of-Experts (MoE) has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs.\", \"created_at\": \"2025-08-15 16:39:05\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"A hybrid tensor-expert-data parallelism approach to optimize mixture-of-experts training\", \"entity2\": \"S. Singh, O. Ruwase, A. A. Awan, S. Rajbhandari, Y. He, and A. Bhatele\", \"description\": \"These authors are associated with the development and publication of the hybrid tensor-expert-data parallelism approach for optimizing MoE training.\", \"created_at\": \"2025-08-15 15:45:27\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Uni-MoE\", \"entity2\": \"mixture of experts\", \"description\": \"Uni-MoE scales unified multimodal LLMs using mixture of experts.\", \"created_at\": \"2025-08-15 15:43:46\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"MoE architectures\", \"entity2\": \"intrinsic allocation mechanisms\", \"description\": \"MoE architectures learn intrinsic allocation mechanisms.\", \"created_at\": \"2025-08-15 15:19:39\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"MoE\", \"entity2\": \"large language models (LLMs)\", \"description\": \"The MoE model architecture has demonstrated unique advantages and tremendous potentials especially in large language models (LLMs).\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 111\\n\\nels such as GPT-3.5 and GPT-4, suggesting that SLMs equipped with RAG can sometimes perform comparably or even better than LLMs. These findings indicate that RAG for SLMs is effective and represents a promising direction for future research. Mixture-of-Experts (MoE) [39] has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs. The MoE framework is founded on a straightforward yet potent concept: distinct components of a model, referred to as “experts”, specialize in different tasks or data facets. In this paradigm, only the relevant experts are activated for a specific input, which manages computational costs while leveraging a vast pool of specialized knowledge. This scalable and adaptable approach enables increased model capacity without proportionally escalating computational demands. We argue that MoE is particularly suitable for SLM architectures [161] as it minimizes both computational load and memory overhead.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 37\\n\\nFollowing instruction tuning, Uni-MoE is evaluated on a comprehensive and diverse multi-modal dataset. The results indicate that the model significantly reduces performance discrepancies when processing mixed data, improves collaboration efficiency among multiple experts, and enhances generalization capabilities, highlighting the potential of the MoE architecture in developing a unified multi-modal large language model. 3) Task-Level Routing Strategy determines routing based on task IDs, ensuring that different tasks are routed to distinct experts, thereby effectively minimizing interference between tasks. This approach is particularly advantageous for multitask learning. For instance, [44] explores multilingual machine translation tasks, where task boundaries are defined by target languages, language pairs, or unique task IDs. And the experts are selected at the task level according to these boundaries.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.4568, + "rag_initialization_seconds": 4.8511, + "query_execution_seconds": 0.6057, + "start_timestamp": "2025-08-15T17:42:43.549567", + "end_timestamp": "2025-08-15T17:42:49.006358" + }, + "metadata": { + "saved_at": "2025-08-15T17:42:49.007361", + "file_path": "retrieval_logs\\retrieval_20250815_174249_006_mix_k5_ck2_What_are_MOE_models_and_how_can_i_learn_them__are_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_174528_910_mix_k12_ck5_What_is_the_correlation_between_react_agents_and_S.json b/retrieval_logs/retrieval_20250815_174528_910_mix_k12_ck5_What_is_the_correlation_between_react_agents_and_S.json new file mode 100644 index 0000000000000000000000000000000000000000..c572327880c2f6fa9051bf84f45ceb8772858c02 --- /dev/null +++ b/retrieval_logs/retrieval_20250815_174528_910_mix_k12_ck5_What_is_the_correlation_between_react_agents_and_S.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T17:45:28.910449", + "query": "What is the correlation between react agents and SLMs and can an SLM that is an MOE be used in an Agentic system?", + "query_mode": "mix", + "top_k": 12, + "chunk_top_k": 5, + "text_length": 24676, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"CONCLUSION\", \"type\": \"conclusion\", \"description\": \"The conclusion summarizes the proposed ReAct method and its effectiveness in various tasks, while also acknowledging limitations and future directions.This section concludes a comprehensive survey on the integration of the MoE architecture with various domains.This section provides a comprehensive survey of the integration of the MoE architecture with various domains, starting from basic designs and training strategies, highlighting its synergy with machine learning algorithms and recent theoretical advancements. It also summarizes MoE in computer vision and natural language processing and discusses future designs for improving MoE. The authors hope this work serves as a valuable reference and inspires further research.\", \"created_at\": \"2025-08-15 15:38:51\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"type\": \"abstract\", \"description\": \"This abstract discusses the use of mixtures of experts to unlock parameter scaling for deep reinforcement learning.This is a citation for a paper discussing mixtures of experts and parameter scaling in deep RL.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems and scheduling for behavior acquisition in multi-agent environments.This methodology describes a modular learning system and scheduling for behavior acquisition in a multi-agent environment.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"MoE architectures\", \"type\": \"methodology\", \"description\": \"MoE (Mixture of Experts) architectures are designed to enhance parameter efficiency and manage computational costs effectively. They offer potential improvements in model interpretability by learning intrinsic allocation mechanisms. These architectures possess a sparse nature, necessitating dynamic data allocation, which makes pipeline design a critical factor in their training. While MoE architectures have shown impressive scalability and performance, their theoretical foundations are not yet fully understood. Further research is needed to optimize the design of MoE architectures, particularly in determining the optimal number of experts and their specialization, as current methods often rely on heuristic or static settings that may not be universally optimal for all tasks.MoE architectures are a type of architecture that EdgeMoE aims to improve by reducing latency caused by frequent expert switching in limited device memory.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"combining it with complementary paradigms like reinforcement learning\", \"type\": \"possible enhancements\", \"description\": \"Combining ReAct with reinforcement learning is suggested to enhance agent capabilities.\", \"created_at\": \"2025-08-15 16:09:01\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"intrinsic allocation mechanisms\", \"type\": \"methodology\", \"description\": \"Intrinsic allocation mechanisms are learned by MoE models, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"multi-agent systems\", \"type\": \"connection\", \"description\": \"Modular RL with MoE is used to learn competitive behaviors in multi-agent systems.\", \"created_at\": \"2025-08-15 15:29:58\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"agents\", \"type\": \"methodology\", \"description\": \"Agents are entities that learn and make decisions in Reinforcement Learning environments.Agents are entities that learn diverse skills to enhance their ability to handle complex tasks.agents are entities that operate within complex environments like ALFWorld and WebShop, requiring them to act over long horizons with sparse rewards and utilize reasoning to explore effectively.\", \"created_at\": \"2025-08-15 16:01:26\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"competitive behaviors\", \"type\": \"methodology\", \"description\": \"Modular RL with MoE is used to learn competitive behaviors in multi-agent systems.\", \"created_at\": \"2025-08-15 15:29:48\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"representation collapse\", \"type\": \"discussion\", \"description\": \"Representation collapse into similar representations limits the generalization ability of agents.\", \"created_at\": \"2025-08-15 15:25:30\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Towards moe deployment: Mitigating inefficiencies in mixture-of-expert (moe) inference\", \"type\": \"abstract\", \"description\": \"This abstract discusses the deployment of Mixture-of-Experts (MoE) and aims to mitigate inefficiencies in MoE inference.\", \"created_at\": \"2025-08-15 15:45:49\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Mixtures of experts for scaling up neural networks in order execution\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by K. Li, M. Cucuringu, L. Sanchez-Betancourt, and T. Willi, and was presented at the 5th ACM International Conference on AI in Finance in 2024.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"complex reasoning tasks\", \"type\": \"discussion\", \"description\": \"The MoE architecture enhances model performance in these tasks.\", \"created_at\": \"2025-08-15 15:36:54\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Movement primitive learning and generalization: Using mixture density networks\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by Y. Zhou, J. Gao, and T. Asfour, and was published in IEEE Robotics & Automation Magazine in 2020.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Revisiting single-gated mixtures of experts\", \"type\": \"abstract\", \"description\": \"This paper re-examines and provides new insights into single-gated mixture of experts architectures.\", \"created_at\": \"2025-08-15 15:50:42\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"MoE architecture\", \"type\": \"methodology\", \"description\": \"The MoE (Mixture of Experts) architecture is a structural design in machine learning, particularly prominent in large language models, characterized by the use of specialized \\\"expert\\\" networks dynamically selected by a gating function. This specialization allows individual experts to focus on distinct knowledge domains, thereby enhancing the MoE architecture's overall performance, generalization capabilities, and computational efficiency. The MoE architecture excels at handling diverse knowledge within data, leading to improved algorithm designs and finding applications across various machine learning paradigms, including computer vision and natural language processing. Its flexibility and scalability make it suitable for edge deployment and capacity scaling of large models, and it holds potential for developing unified multi-modal large language models.\\n\\nThe MoE architecture alleviates hardware pressure through sparse activation and a divide-and-conquer strategy, reducing computational costs and enhancing model performance, especially in multi-task, low-resource, and complex reasoning scenarios, while also supporting personalized services. It has been utilized in MENTOR for action generations and explored in reinforcement learning domains like multi-agent RL and imitation learning. The MoE architecture is also leveraged to solve integrated training problems for multiple tasks, overcoming inconsistencies in input and output formats, and has been applied in CLIP-MoE to enhance the CLIP model's capabilities. However, it's important to note that the MoE architecture is a framework that can be integrated with different object detectors, but simply adding different detectors does not guarantee improved model performance and can even have adverse effects due to competition among detectors. Discussions surrounding the MoE architecture often delve into its basic designs, training strategies, synergy with machine learning algorithms, recent theoretical advancements, and how factors like the number of expert networks, MoE layers, and their placement influence performance, efficiency, and stability. The MoE architecture inherently possesses better transparency.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed. However, it incurs significant memory overhead, making it impractical for edge device memory constraints.\", \"created_at\": \"2025-08-15 16:46:35\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Harder tasks need more experts: Dynamic routing in moe models\", \"type\": \"abstract\", \"description\": \"This abstract discusses dynamic routing in Mixture of Experts (MoE) models, suggesting that more complex tasks require a greater number of experts.\", \"created_at\": \"2025-08-15 15:43:02\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"synergy with important machine learning algorithms\", \"type\": \"connection\", \"description\": \"This refers to the harmonious interaction and combined effect of the MoE architecture with significant machine learning algorithms.\", \"created_at\": \"2025-08-15 15:38:50\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Continuous action reinforcement learning from a mixture of interpretable experts\", \"type\": \"methodology\", \"description\": \"This methodology focuses on continuous action reinforcement learning using a mixture of interpretable experts.\", \"created_at\": \"2025-08-15 15:51:32\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"multi-agent RL\", \"type\": \"methodology\", \"description\": \"Multi-agent RL is a domain where the application of MoE has been explored.\", \"created_at\": \"2025-08-15 15:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Webshop: Towards scalable real-world web interaction with grounded language agents\", \"type\": \"methodology\", \"description\": \"This paper addresses scalable real-world web interaction using grounded language agents.\", \"created_at\": \"2025-08-15 16:03:49\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"AI systems\", \"type\": \"discussion\", \"description\": \"AI systems can be designed to be more robust and transparent by leveraging the interpretability offered by Mixture of Experts (MoE) models.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"model interpretability\", \"type\": \"discussion\", \"description\": \"Model interpretability is an opportunity offered by Mixture of Experts (MoE) models, achieved by learning intrinsic allocation mechanisms. This process enhances the understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems. Furthermore, model interpretability is enhanced by the combination of reasoning and acting, which allows humans to distinguish between internal knowledge and external environments.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"reinforcement learning\", \"type\": \"methodology\", \"description\": \"Reinforcement learning (RL) is a machine learning paradigm that can be combined with ReAct to create more robust agents. RL is also a suitable approach for applying Mixture of Experts (MoE) based algorithms and can dynamically adjust MoE model architectures based on task complexity and data distribution. While RL is a technique used to improve adaptability and efficiency, and is employed to train rewriters with downstream LLM performance as the reward, it is outperformed by ReAct in interactive decision-making benchmarks.Reinforcement learning is a complementary paradigm that can be combined with ReAct.Reinforcement learning is a complementary paradigm that can be combined with ReAct.\", \"created_at\": \"2025-08-15 17:30:54\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity\": \"task complexity\", \"type\": \"discussion\", \"description\": \"Task complexity is a factor that reinforcement learning can use to dynamically adjust the architecture of MoE models.\", \"created_at\": \"2025-08-15 15:42:56\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity\": \"robust and transparent AI systems\", \"type\": \"possible enhancements\", \"description\": \"Designing more robust and transparent AI systems is an avenue opened by the interpretability of MoE models.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity\": \"A generalist agent\", \"type\": \"methodology\", \"description\": \"This refers to a methodology or concept related to generalist agents, published in 2022 with a URL provided.\", \"created_at\": \"2025-08-15 16:07:01\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity\": \"Scratchpads for intermediate computation with language models\", \"type\": \"methodology\", \"description\": \"This refers to a methodology or tool for intermediate computation with language models, published in 2021 with a URL provided.\", \"created_at\": \"2025-08-15 16:07:01\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity\": \"data distribution\", \"type\": \"discussion\", \"description\": \"Data distribution is a crucial factor in reinforcement learning, enabling dynamic adjustments to the architecture of Mixture-of-Experts (MoE) models. Specifically, the distinction between Independent and Identically Distributed (IID) and Non-IID data distributions is a key area of investigation for its impact on training performance. This difference between IID and Non-IID data distributions has been highlighted as a factor affecting the convergence of Convolutional Neural Network (CNN) training on MNIST data. Furthermore, the data distribution of tasks is utilized by each Mixture-of-Experts (MoE) service station, acting as an expert model, to update its local model.\", \"created_at\": \"2025-08-15 15:43:01\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity\": \"Contextual policy transfer in reinforcement learning domains via deep mixtures-of-experts\", \"type\": \"methodology\", \"description\": \"A methodology for contextual policy transfer in reinforcement learning domains using deep mixtures-of-experts.\", \"created_at\": \"2025-08-15 15:38:08\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity\": \"M. Gimelfarb, S. Sanner, and C.-G. Lee\", \"type\": \"methodology\", \"description\": \"Authors of a paper discussing contextual policy transfer in reinforcement learning domains via deep mixtures-of-experts.\", \"created_at\": \"2025-08-15 15:38:08\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"CONCLUSION\", \"entity2\": \"MoE architecture\", \"description\": \"The conclusion summarizes the survey of the MoE architecture, its applications, and future directions.\", \"created_at\": \"2025-08-15 15:38:55\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"description\": \"Both entities are related to learning systems, with one focusing on deep RL and the other on multi-agent environments.\", \"created_at\": \"2025-08-15 15:44:26\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Scaling up ReAct with multi-task training\", \"entity2\": \"combining it with complementary paradigms like reinforcement learning\", \"description\": \"Both are proposed as methods to create stronger agents and unlock the potential of LLMs.\", \"created_at\": \"2025-08-15 16:09:03\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"MoE architectures\", \"entity2\": \"intrinsic allocation mechanisms\", \"description\": \"MoE architectures learn intrinsic allocation mechanisms.\", \"created_at\": \"2025-08-15 15:19:39\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Dynamic routing in moe models\", \"entity2\": \"Harder tasks need more experts: Dynamic routing in moe models\", \"description\": \"The abstract 'Harder tasks need more experts: Dynamic routing in moe models' directly mentions and implies the use of 'Dynamic routing in moe models' as a core concept.\", \"created_at\": \"2025-08-15 15:43:03\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"agents\", \"entity2\": \"representation collapse\", \"description\": \"Representation collapse limits the generalization ability of agents.\", \"created_at\": \"2025-08-15 15:25:31\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Mixtures of experts for scaling up neural networks in order execution\", \"entity2\": \"Movement primitive learning and generalization: Using mixture density networks\", \"description\": \"Both methodologies utilize mixture-based approaches for learning and generalization in AI/robotics.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"MoE architecture\", \"entity2\": \"synergy with important machine learning algorithms\", \"description\": \"The survey highlights the synergy between the MoE architecture and important machine learning algorithms.\", \"created_at\": \"2025-08-15 15:39:11\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"MoE architecture\", \"entity2\": \"multi-agent RL\", \"description\": \"The MoE architecture has been explored in multi-agent RL.\", \"created_at\": \"2025-08-15 15:29:58\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"AI systems\", \"entity2\": \"model interpretability\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"reinforcement learning\", \"entity2\": \"task complexity\", \"description\": \"Reinforcement learning can dynamically adjust the architecture of MoE models based on task complexity.\", \"created_at\": \"2025-08-15 15:43:02\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"model interpretability\", \"entity2\": \"robust and transparent AI systems\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"A generalist agent\", \"entity2\": \"Scratchpads for intermediate computation with language models\", \"description\": \"Both are cited as publications related to AI research, suggesting a connection in the field.\", \"created_at\": \"2025-08-15 16:07:03\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"data distribution\", \"entity2\": \"reinforcement learning\", \"description\": \"Reinforcement learning can dynamically adjust the architecture of MoE models based on data distribution.\", \"created_at\": \"2025-08-15 15:43:03\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Contextual policy transfer in reinforcement learning domains via deep mixtures-of-experts\", \"entity2\": \"M. Gimelfarb, S. Sanner, and C.-G. Lee\", \"description\": \"M. Gimelfarb, S. Sanner, and C.-G. Lee are the authors of the paper describing this methodology.\", \"created_at\": \"2025-08-15 15:38:09\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: React_paper\\nChunk: 59\\n\\nth the help of LLMs, language as a fundamental cognitive mechanism will play a critical role in interaction and decision making. What is more, progress in LLMs has also inspired the development of versatile and generalist agents like Reed et al. (2022). # 6 CONCLUSION We have proposed ReAct – a simple yet effective method for synergizing reasoning and acting in large language models. Through a diverse set of experiments on multi-hop question-answering, fact checking, and interactive decision-making tasks, we show that ReAct leads to superior performance with interpretable decision traces. Despite the simplicity of our method, complex tasks with large action spaces require more demonstrations to learn well, which unfortunately can easily go beyond the input length limit of in-context learning. We explore the fine-tuning approach on HotpotQA with initial promising results, but learning from more high-quality human annotations will be the desiderata to further improve the performance.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 37\\n\\nFollowing instruction tuning, Uni-MoE is evaluated on a comprehensive and diverse multi-modal dataset. The results indicate that the model significantly reduces performance discrepancies when processing mixed data, improves collaboration efficiency among multiple experts, and enhances generalization capabilities, highlighting the potential of the MoE architecture in developing a unified multi-modal large language model. 3) Task-Level Routing Strategy determines routing based on task IDs, ensuring that different tasks are routed to distinct experts, thereby effectively minimizing interference between tasks. This approach is particularly advantageous for multitask learning. For instance, [44] explores multilingual machine translation tasks, where task boundaries are defined by target languages, language pairs, or unique task IDs. And the experts are selected at the task level according to these boundaries.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: React_paper\\nChunk: 52\\n\\nerform significantly more product explorations and query re-formulations that are still challenging for prompting-based methods. On the value of internal reasoning vs. external feedback To our knowledge, ReAct is the first demonstration of combined reasoning and action using an LLM applied to an interactive environment within a closed-loop system. Perhaps the closest prior work is Inner Monologue (IM), from Huang et al. (2022b), in which actions from an embodied agent are motivated by an eponymous “inner monologue”. However, IM’s “inner monologue” is limited to observations of the environment state and what needs to be completed by the agent for the goal to be satisfied. In contrast, the reasoning traces in ReAct for decision making is flexible and sparse, allowing diverse reasoning types (see Section 2) to be induced for different tasks. To demonstrate the differences between ReAct and IM, and to highlight the importance of internal reasoning vs.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: MOE\\nChunk: 124\\n\\nConsequently, the last L layers of the model should be replaced with sparse MoE layers. The analysis suggests that both the number of experts and the size of $\\\\mathrm { L }$ are related to the degree of routing, and more does not necessarily mean better performance. To some degree, the base model introduced in [155] shares similarities with the shared expert concept proposed in ViMOE [154]. In CLIP-MoE [156], the MoE architecture is applied to enhance the capabilities of the CLIP model through a method called Diversified Multiplet Upcycling. The authors fine-tune a series of pre-trained CLIP models using multi-stage contrastive learning, extracting expert networks that focus on different aspects of the input data, and integrating these experts into the MoE architecture. Other papers delve deeper into the design of gating functions.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 153\\n\\nSLM for Mobile Control. LM agents facilitate user-device interactions through taps, gestures, and text, automating tasks and enhancing user handsfree convenience. Unlike traditional developerbased approaches that require extensive developer effort to design interfaces and translate commands into API calls, LMs offer scalable automation via GUI-based text contents. MobileAgent [87] integrates instructions and Standard Operating Procedures (SOP) to improve SLMs for mobile control. As shown in Figure 16, it processes goals (e.g., booking a dental appointment) by analyzing screens, queries, prior actions, and UI elements, forming ![This image illustrates a workflow for an automated execution tool, specifically demonstrating how an AI agent interacts with a mobile application to achieve a user's goal. The overall structure is a two-column layout, with a mobile application screenshot on the left and textual descriptions of the process on the right, connected by arrows indicating data flow.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 9.394, + "rag_initialization_seconds": 5.8312, + "query_execution_seconds": 3.5628, + "start_timestamp": "2025-08-15T17:45:19.516488", + "end_timestamp": "2025-08-15T17:45:28.910449" + }, + "metadata": { + "saved_at": "2025-08-15T17:45:28.910449", + "file_path": "retrieval_logs\\retrieval_20250815_174528_910_mix_k12_ck5_What_is_the_correlation_between_react_agents_and_S.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_174804_889_mix_k12_ck5_Uncover_the_patterns_between_SLMs_and_LLMS_and_the.json b/retrieval_logs/retrieval_20250815_174804_889_mix_k12_ck5_Uncover_the_patterns_between_SLMs_and_LLMS_and_the.json new file mode 100644 index 0000000000000000000000000000000000000000..285f9f39c34410d0987a2a0d8fbc72dd5b3e8684 --- /dev/null +++ b/retrieval_logs/retrieval_20250815_174804_889_mix_k12_ck5_Uncover_the_patterns_between_SLMs_and_LLMS_and_the.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T17:48:04.889766", + "query": "Uncover the patterns between SLMs and LLMS and their intersection between qlora and lora , find out limitation on their methodologies and suggest enhancments or hypothesis", + "query_mode": "mix", + "top_k": 12, + "chunk_top_k": 5, + "text_length": 47655, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"QLoRA\", \"type\": \"methodology\", \"description\": \"QLoRA is a parameter-efficient fine-tuning method designed for adapting large language models, such as LLaMA. This methodology utilizes 4-bit quantization of transformer weights, specifically employing NF4 quantization (NormalFloat and Double Quantization), which contributes to its efficiency. To further optimize resource management during training, QLoRA incorporates a paging mechanism that offloads optimizer states to the CPU. Compared to other fine-tuning approaches like 16-bit adapter fine-tuning and full fine-tuning, QLoRA presents a distinct strategy for model adaptation.\", \"created_at\": \"2025-08-13 23:05:29\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Fine-Tuning\", \"type\": \"methodology\", \"description\": \"Fine-tuning is a process where SLMs are fine-tuned on specific tasks using task-specific data and loss functions. Parameter-efficient fine-tuning methods, such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs.Fine-tuning is a technique discussed in the context of LLMs and potential unintended outcomes.\", \"created_at\": \"2025-08-15 17:25:11\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Parameter-efficient fine-tuning methods\", \"type\": \"methodology\", \"description\": \"Parameter-efficient fine-tuning methods, such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs.\", \"created_at\": \"2025-08-15 16:31:28\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Small Language Models (SLMs)\", \"type\": \"abstract\", \"description\": \"Small Language Models (SLMs) are a focus of research, with efforts to improve their performance by optimizing teacher LLM selection and applying emerging techniques from larger LLMs.Small Language Models (SLMs) are smaller, more efficient language models, typically defined as having fewer than 7 billion parameters, though their size can extend to the largest manageable under limited resource conditions. Derived from larger language models (LLMs), SLMs are increasingly favored for their low inference latency, cost-effectiveness, efficient development, and easy customization and adaptability, offering savings in pre-training and inference with reduced memory and storage needs. This makes them vital for applications requiring efficient resource use and effective in resource-limited settings, including low-power devices like edge devices, by improving on-device processing through enhanced privacy, security, response times, and personalization. SLMs are optimized and fine-tuned on specific data and are essential in resource-limited settings. They exhibit diverse capabilities across domains and are being specialized through instruction tuning using LLMs-generated data. SLMs enhance recommendation systems due to their robust generalization, reasoning abilities, and in-context learning, addressing challenges like cold-start problems and distribution biases. SLMs support long-term planning, replace traditional encoders, and use parallel low-rank parameters to inject personalized user knowledge. They play a crucial role in web search, including document encoding, text reordering, and query rewriting. SLMs are also distilled from LLMs using the 'Adapt-and-Distill' strategy, though adapting both teacher and student models to the target domain can be time-consuming. SLMs have demonstrated significant potential in addressing issues associated with LLMs by achieving comparable performance for domain-specific problems, offering advantages in efficiency, cost, flexibility, and customization due to their reduced parameter count. They can also complement LLMs for task completion and are noted for their ability to process longer sequences more efficiently, which enhances their functionality under strict hardware constraints, utilizing activation functions like GeLU and SiLU and benefiting from efficient attention mechanisms. Parameter-sharing techniques are employed in their architecture design to minimize space usage and reduce size. SLMs are effective with adaptation techniques like LoRA, prefixtuning, and adapter modules, with Mamba considered more suitable for SLMs due to its parameter utilization. SLMs benefit from tokenization strategies that ensure a balance between vocabulary coverage and model compactness, crucial for improving generalization while minimizing computational demands, and are fine-tuned on specific tasks using parameter-efficient fine-tuning methods. SLMs are also the subject of improvement through methods like Supervised Fine-Tuning (SFT) and Knowledge Distillation (KD).\", \"created_at\": \"2025-08-15 17:08:36\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Data Selection processes\", \"type\": \"methodology\", \"description\": \"Data Selection processes user data, tags domains, and calculates metrics (EOE, DSS, IDD). Selected data fine-tunes SLMs with user annotations.\", \"created_at\": \"2025-08-15 16:40:04\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"SLMs\", \"type\": \"connection\", \"description\": \"SLMs may possess missing or latent domain knowledge that can be activated with minimal data.Small Language Models (SLMs) are discussed in the context of assisting Large Language Models (LLMs).Small Language Models (SLMs), typically featuring up to 10 billion parameters and tailored for the Transformer architecture, are efficient and capable models that are smaller and more efficient than Large Language Models (LLMs). This efficiency makes them suitable for resource-constrained environments and specific applications, particularly on devices, and they are favored in scenarios demanding efficiency, privacy, and customization. SLMs can be deployed on edge devices, often with cloud-based LLM support to enhance runtime efficiency, and are utilized on mobile devices primarily for privacy and memory constraints, with applications in API calls and mobile control. They are also used locally to reduce memory usage and shorten inference time, and are utilized to handle privacy-sensitive data locally in a cloud-edge synergy model.\\n\\nSLMs play a crucial role in supporting LLMs by enhancing the quality of LLM-generated data for specific tasks and can be trained locally on client-specific private data to mitigate privacy risks. They assist LLMs in various ways, including improving reliability, extracting prompts, fine-tuning, application, and evaluation. SLMs help alleviate issues such as inference latency, labor-intensive fine-tuning, noise filtration in retrieval, suboptimal zero-shot performance, copyright infringement risks, and evaluation difficulties. They can be fine-tuned for specific functions like hallucination detection when adapting LLMs to specific tasks requires substantial computational resources and time. SLMs are used to retrieve sub-graphs when utilizing knowledge graphs as external sources and to enhance LLM reasoning by transferring task knowledge to in-context examples, effectively reducing hallucinations. SLMs are trained via contrast learning to effectively distinguish and score responses in dialogue scenarios. They can also be used as proxy models to evaluate the familiarity of LLMs with user queries, determining whether LLMs need to retrieve additional information or can respond directly. Furthermore, SLMs are utilized to evaluate the relevance of retrieved documents, with LongLLMLingua employing them to calculate document relevance to a query using perplexity. SLMs efficiently decompose complex reasoning by breaking tasks into simpler components, increasing efficiency and reducing deployment costs when SLMs and LLMs are used collaboratively.\\n\\nTask-specific applications for SLMs include generative tasks like question-answering and coding. They can leverage encoding capabilities for recommender systems and web search, where they can serve as content encoders. During inference, SLMs generate Python code that an external interpreter executes, and they produce output sequences. SLMs are explored as in-context recommenders for recommendation system cold-\", \"created_at\": \"2025-08-15 17:08:23\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"DS+\", \"type\": \"methodology\", \"description\": \"DS+ is a methodology that incorporates S4L and L4S modules with Prompt Pruning (PP) and 2-stage Confidence Distillation (2CD) for better input processing and knowledge transfer.\", \"created_at\": \"2025-08-15 17:01:02\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"fine-tuning\", \"type\": \"methodology\", \"description\": \"Fine-tuning is a method used in natural language processing to adapt large-scale, pre-trained language models to multiple downstream applications by updating all parameters of the pre-trained model. This technique is employed for improving the performance of Small Language Models (SLMs), particularly for coding tasks and long context tasks, and is considered an advanced method for optimizing models. Fine-tuning is also a technique for acquiring SLMs and is a meticulous process often required post-pretraining to enhance the safety of SLMs, involving strategies to distill capabilities from Large Language Models (LLMs). This process allows SLMs to exhibit specialized capabilities and is a methodology that DS+ outperforms in accuracy and cost efficiency.\", \"created_at\": \"2025-08-15 17:01:04\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Low Rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low Rank Adapters (LoRA) are used in QLORA to efficiently fine-tune the quantized language model.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Efficient Instruction Tuning of SLMs from LLMs-generated data\", \"type\": \"methodology\", \"description\": \"This methodology focuses on the efficient instruction tuning of Small Language Models (SLMs) using data generated by Large Language Models (LLMs). It highlights the importance of this process for enhancing SLM specialization and identifies key areas for exploration.This methodology involves using data generated by teacher LLMs for instruction tuning of SLMs, aiming to enhance SLM performance and efficiency.\", \"created_at\": \"2025-08-15 17:07:09\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"QLORA\", \"type\": \"category\", \"description\": \"QLORA is an efficient and accessible fine-tuning method for large language models (LLMs), including chatbots such as Guanaco. It enables the fine-tuning of LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones. This accessibility is achieved through a combination of 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers, significantly reducing memory usage compared to traditional methods. Contrary to simplified explanations, QLORA uses adapters at every network layer, not just a single quantized linear layer, mitigating accuracy loss often observed in other instruction fine-tuning techniques. This multi-layer approach allows for the training of diverse models across various datasets and sizes, achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods. Evaluations demonstrate comparable GLUE accuracy and Super-NaturalInstructions RougeL scores to these methods. QLORA replicates the performance of 16-bit full fine-tuning using a 4-bit base model and Low-rank Adapters (LoRA). The use of paged optimizers further prevents out-of-memory errors, enabling the fine-tuning of large models on a single GPU. While offering significant advantages in efficiency and accessibility for training LLMs on consumer and professional GPUs without performance degradation, QLORA is considered a dual-use technology with potential for misuse. Its primary benefit is improved accessibility of state-of-the-art NLP technology, enabling large-scale analysis without excessive computational resources. QLORA's effectiveness has been demonstrated in experiments detailed in various sections of related texts.\", \"created_at\": \"2025-08-13 23:01:08\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"teacher LLMs\", \"type\": \"methodology\", \"description\": \"Teacher LLMs are used via instruction tuning to enhance the performance and efficiency of SLMs.Teacher LLMs, including GPT-4 and ChatGPT, are used to generate new samples or rewrite existing ones for fine-tuning SLMs.\", \"created_at\": \"2025-08-15 17:07:09\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"HETLORA method\", \"type\": \"methodology\", \"description\": \"The HETLORA method addresses system and data heterogeneity by using heterogeneous low-rank approximations to accommodate diverse client capabilities and data complexities. It balances high and low-rank LoRA modules through local rank self-pruning and sparsity-weighted aggregation, improving convergence speed and performance over uniform approaches.\", \"created_at\": \"2025-08-15 16:25:48\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"LLM-Neo\", \"type\": \"methodology\", \"description\": \"LLM-Neo combines knowledge distillation with low-rank adaptation (LoRA) to enhance the efficiency of transferring knowledge from a teacher LLM to a compact student model.\", \"created_at\": \"2025-08-15 16:25:48\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Supervised Fine-Tuning\", \"type\": \"methodology\", \"description\": \"A technique used by SLMs to enhance adaptability and efficiency in web search.Supervised Fine-Tuning is a method for enhancing SLMs.\", \"created_at\": \"2025-08-15 16:45:41\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Mutual enhancement of large and small language models with cross-silo knowledge transfer\", \"type\": \"methodology\", \"description\": \"This methodology describes the mutual enhancement of large and small language models through cross-silo knowledge transfer.\", \"created_at\": \"2025-08-15 17:02:25\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Qlora: Efficient finetuning of quantized llms\", \"type\": \"methodology\", \"description\": \"This methodology, Qlora, focuses on the efficient finetuning of quantized large language models (LLMs).\", \"created_at\": \"2025-08-15 17:02:25\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Device Resources\", \"type\": \"abstract\", \"description\": \"Device resources such as memory and energy are a consideration for certain SLM methodologies like fine-tuning.\", \"created_at\": \"2025-08-15 17:05:05\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Fine-tuning SLMs with local data\", \"type\": \"methodology\", \"description\": \"This method integrates customized knowledge into the model's weights by fine-tuning SLMs with local data, but demands significant device resources like memory and energy.\", \"created_at\": \"2025-08-15 17:05:05\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"synthetic data\", \"type\": \"abstract\", \"description\": \"Synthetic data is a crucial supplement to limited human-generated data, but the capacity of small models to effectively manage it is not well-understood.Synthetic data is used to improve LLM's generative capabilities and train SLMs, boosting their performance through a cyclical exchange that fosters cloud-edge synergy and mutual model improvement.This type of data is generated by LLMs and evaluated by SLMs within the CROSSLM framework.\", \"created_at\": \"2025-08-15 17:03:47\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Fine-Tuning, Quantization, and LLMs: Navigating Unintended Outcomes\", \"type\": \"abstract\", \"description\": \"This abstract explores the unintended outcomes that can arise from fine-tuning and quantization of Large Language Models (LLMs). It delves into the limitations and potential negative consequences of these techniques when applied to LLMs, connecting this work to the broader field of LLM research by addressing practical application challenges. The abstract also discusses possible enhancements, focusing on developing methods to mitigate these unintended outcomes.\", \"created_at\": \"2025-08-15 17:25:20\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"Accelerated Fine-tuning and Inference Speeds\", \"type\": \"methodology\", \"description\": \"Accelerated fine-tuning and inference speeds of SLMs enable them to mimic LLM behaviors.\", \"created_at\": \"2025-08-15 17:02:45\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"Proxy SLMs\", \"type\": \"methodology\", \"description\": \"Proxy SLMs are a methodology where SLMs, due to their accelerated fine-tuning and inference speeds, can effectively mimic the behaviors of LLMs, serving as efficient proxies for optimization.\", \"created_at\": \"2025-08-15 17:02:45\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Fine-Tuning\", \"entity2\": \"Parameter-efficient fine-tuning methods\", \"description\": \"Fine-tuning utilizes parameter-efficient fine-tuning methods for SLMs.\", \"created_at\": \"2025-08-15 16:31:31\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LLMs\", \"entity2\": \"QLORA\", \"description\": \"QLORA aims to make finetuning of high-quality LLMs more accessible.QLORA is a method for fine-tuning LLMs on low-resource devices.\", \"created_at\": \"2025-08-13 23:16:07\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Parameter-efficient fine-tuning methods\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"Parameter-efficient fine-tuning methods are particularly effective for SLMs.\", \"created_at\": \"2025-08-15 16:31:31\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Data Selection processes\", \"entity2\": \"SLMs\", \"description\": \"Selected data fine-tunes SLMs with user annotations.\", \"created_at\": \"2025-08-15 16:40:12\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"LLaMA\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used for fine-tuning LLaMA models, achieving comparable performance to full 16-bit fine-tuning with 4-bit precision. The study investigates instruction tuning of LLaMA models using QLORA at scales not feasible with full 16-bit fine-tuning.QLORA was used to fine-tune LLaMA models.\", \"created_at\": \"2025-08-13 23:13:57\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"DS+\", \"entity2\": \"fine-tuning\", \"description\": \"DS+ outperforms fine-tuning in accuracy and cost efficiency.\", \"created_at\": \"2025-08-15 17:01:08\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Guanaco\", \"entity2\": \"QLORA\", \"description\": \"Guanaco models are trained using the QLORA technique for efficient fine-tuning on a single GPU.QLORA was used to train the Guanaco chatbot, a state-of-the-art model.\", \"created_at\": \"2025-08-13 23:04:36\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Efficient Instruction Tuning of SLMs from LLMs-generated data\", \"entity2\": \"teacher LLMs\", \"description\": \"This methodology utilizes data generated by teacher LLMs for the instruction tuning of SLMs.\", \"created_at\": \"2025-08-15 17:07:10\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"MMLU\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated on the MMLU benchmark, showing comparable results to 16-bit methods.\", \"created_at\": \"2025-08-13 23:13:28\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"HETLORA method\", \"entity2\": \"LLM-Neo\", \"description\": \"Both are presented as advanced enhancement methods for SLMs, addressing efficiency and performance through different adaptation techniques.\", \"created_at\": \"2025-08-15 16:25:56\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Alpaca\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used for finetuning on the Alpaca dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Small Language Models (SLMs)\", \"entity2\": \"Supervised Fine-Tuning\", \"description\": \"Supervised fine-tuning is a technique used by SLMs to enhance adaptability and efficiency in web search.\", \"created_at\": \"2025-08-15 16:45:52\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"ChatGPT\", \"entity2\": \"QLORA\", \"description\": \"QLORA achieves 97% of ChatGPT's performance with less training time and resources.QLORA's 33B model rivals ChatGPT on the Vicuna benchmark.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Mutual enhancement of large and small language models with cross-silo knowledge transfer\", \"entity2\": \"Qlora: Efficient finetuning of quantized llms\", \"description\": \"Both methodologies relate to the advancement and efficient use of language models, with one focusing on mutual enhancement and the other on efficient finetuning of quantized models.\", \"created_at\": \"2025-08-15 17:02:31\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Guanaco 33B\", \"entity2\": \"QLORA\", \"description\": \"Guanaco 33B is a QLORA-tuned model (implied).\", \"created_at\": \"2025-08-13 23:10:24\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Device Resources\", \"entity2\": \"Fine-tuning SLMs with local data\", \"description\": \"Fine-tuning SLMs with local data demands significant device resources.\", \"created_at\": \"2025-08-15 17:05:11\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"QLORA\", \"entity2\": \"T5\", \"description\": \"QLORA was used for fine-tuning T5 models in experiments described in Section 5.QLORA was used to fine-tune T5 models.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"SLMs\", \"entity2\": \"synthetic data\", \"description\": \"Synthetic data trains SLMs, boosting their performance.\", \"created_at\": \"2025-08-15 16:59:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Guanaco 65B\", \"entity2\": \"QLORA\", \"description\": \"Guanaco 65B is a QLORA-trained model.\", \"created_at\": \"2025-08-13 23:10:35\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Fine-Tuning, Quantization, and LLMs: Navigating Unintended Outcomes\", \"entity2\": \"Large Language Models\", \"description\": \"This methodology addresses the challenges and unintended consequences associated with the fine-tuning and quantization of Large Language Models.\", \"created_at\": \"2025-08-15 17:11:51\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"NF4\", \"entity2\": \"QLORA\", \"description\": \"NF4 is the computation datatype used in the QLORA finetuning experiments.QLORA uses NF4 data type, which is shown to be superior to FP4 in terms of quantization precision.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Accelerated Fine-tuning and Inference Speeds\", \"entity2\": \"Proxy SLMs\", \"description\": \"Proxy SLMs utilize accelerated fine-tuning and inference speeds to mimic LLM behaviors.\", \"created_at\": \"2025-08-15 17:03:01\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Paged Optimizers\", \"entity2\": \"QLORA\", \"description\": \"QLORA employs Paged Optimizers to manage memory during gradient checkpointing.QLORA uses Paged Optimizers to handle memory spikes during training.QLORA incorporates Paged Optimizers to address memory issues during finetuning.\", \"created_at\": \"2025-08-13 23:05:59\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"QLORA\", \"entity2\": \"Table 9\", \"description\": \"Table 9 shows the hyperparameters tuned for different model sizes in QLORA finetuning.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"BFloat16\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses BFloat16 as its computation data type for matrix multiplication after dequantization.QLORA uses BFloat16 to calculate derivatives.\", \"created_at\": \"2025-08-13 23:07:36\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"QLORA\", \"entity2\": \"Unnatural Instructions\", \"description\": \"QLORA was used for finetuning on the Unnatural Instructions dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"GLUE\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance is compared against other methods on the GLUE benchmark.QLORA's performance is measured using the GLUE dataset, focusing on accuracy.\", \"created_at\": \"2025-08-13 23:13:18\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Luke Zettlemoyer\", \"entity2\": \"QLORA\", \"description\": \"Luke Zettlemoyer is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"QLORA\", \"entity2\": \"Self-Instruct\", \"description\": \"QLORA was used for finetuning on the Self-Instruct dataset.\", \"created_at\": \"2025-08-13 23:18:50\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LongForm dataset\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used in finetuning experiments on the LongForm dataset.\", \"created_at\": \"2025-08-13 23:22:29\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"QLORA\", \"entity2\": \"Super-NaturalInstructions\", \"description\": \"QLORA's performance is compared against other methods on the Super-NaturalInstructions benchmark.QLORA's performance is measured using the Super-NaturalInstructions dataset, focusing on RougeL scores.\", \"created_at\": \"2025-08-13 23:13:18\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"4-bit NormalFloat (NF4)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes 4-bit NormalFloat (NF4) quantization as a core component of its finetuning process.QLORA utilizes 4-bit NormalFloat (NF4) to improve memory efficiency.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Double Quantization\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Double Quantization as a core technique within its high-fidelity 4-bit finetuning approach. This technique is employed to significantly reduce memory usage during the finetuning process.\", \"created_at\": \"2025-08-13 23:05:59\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"1,000 models\", \"entity2\": \"QLORA\", \"description\": \"QLORA enabled the training of more than 1,000 models.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"16-bit LoRA\", \"entity2\": \"QLORA\", \"description\": \"QLORA matches the performance of 16-bit LoRA.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Adam\", \"entity2\": \"QLORA\", \"description\": \"The Adam optimizer is used in the QLORA finetuning experiments.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"FP4\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance with NF4 is compared to and shown to be superior to the performance with FP4.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"GPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used in the context of a quantized base model processed on a GPU.\", \"created_at\": \"2025-08-13 23:07:13\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"CPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA's optimization process may indirectly involve the CPU through memory management with paged optimizers.\", \"created_at\": \"2025-08-13 23:07:13\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"16-bit full finetuning\", \"entity2\": \"QLORA\", \"description\": \"4-bit QLORA with NF4 matches the performance of 16-bit full finetuning on academic benchmarks.QLORA matches the performance of 16-bit full finetuning.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"65B parameter model\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used to fine-tune a 65B parameter model efficiently.QLORA is used to finetune a 65B parameter model, reducing its memory requirements.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"QLORA\", \"entity2\": \"Tim Dettmers\", \"description\": \"Tim Dettmers is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"4-bit model\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a method specifically designed for finetuning 4-bit quantized models.\", \"created_at\": \"2025-08-13 23:03:13\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"LoRA parameters\", \"entity2\": \"QLORA\", \"description\": \"QLORA computes weight gradients specifically for the LoRA parameters during the backward pass.\", \"created_at\": \"2025-08-13 23:07:40\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"4-bit finetuning\", \"entity2\": \"QLORA\", \"description\": \"QLORA is mentioned in the context of 4-bit finetuning, highlighting its efficiency benefits.\", \"created_at\": \"2025-08-13 23:14:04\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"NormalFloat4\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses NormalFloat4 as its storage data type.\", \"created_at\": \"2025-08-13 23:07:25\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Elo\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated on the Elo benchmark, showing comparable results to 16-bit methods.\", \"created_at\": \"2025-08-13 23:13:40\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"33B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a finetuning method used to train 33B parameter models on consumer GPUs.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"4-bit NormalFloat (NF4) Quantization\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses 4-bit NormalFloat (NF4) quantization as one of its core techniques for finetuning.\", \"created_at\": \"2025-08-13 23:05:57\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Low-rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses Low-rank Adapters (LoRA) to achieve its performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"QLORA\", \"entity2\": \"RoBERTa-large\", \"description\": \"QLORA's performance is evaluated using the RoBERTa-large model, achieving 88.6 accuracy with BF16.\", \"created_at\": \"2025-08-13 23:13:09\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Cross-entropy loss\", \"entity2\": \"QLORA\", \"description\": \"QLORA is presented as a method that enables analysis of the tradeoffs between cross-entropy loss and RLHF training.\", \"created_at\": \"2025-08-13 23:16:55\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"4-bit base model\", \"entity2\": \"QLORA\", \"description\": \"QLORA's 4-bit finetuning is compared to the memory usage of a 4-bit base model, suggesting a potential memory advantage.\", \"created_at\": \"2025-08-13 23:05:40\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"16-bit LoRA finetuning\", \"entity2\": \"QLORA\", \"description\": \"4-bit QLORA with NF4 matches the performance of 16-bit LoRA finetuning on academic benchmarks.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"Low Rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Low Rank Adapters (LoRA) for efficient fine-tuning.\", \"created_at\": \"2025-08-13 23:01:24\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"QLORA\", \"entity2\": \"single GPU\", \"description\": \"QLORA can fine-tune models on a single GPU, showcasing its efficiency.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"33B and 65B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA was successfully used to fine-tune models with 33B and 65B parameters, demonstrating scalability.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"48GB GPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA allows fine-tuning of a 65B parameter model on a single 48GB GPU.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"4-bit NormalFloat\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses 4-bit NormalFloat as one of its memory reduction techniques.\", \"created_at\": \"2025-08-13 23:02:00\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"65B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a finetuning method used to train 65B parameter models on professional GPUs.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"Artidoro Pagnoni\", \"entity2\": \"QLORA\", \"description\": \"Artidoro Pagnoni is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"QLORA\", \"entity2\": \"raw pretrained LLMs\", \"description\": \"QLORA is a method used to finetune raw pretrained LLMs into chatbots.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"QLORA\", \"entity2\": \"instruction tuning datasets\", \"description\": \"QLORA was used to perform instruction finetuning on several datasets.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"80M to 65B parameters\", \"entity2\": \"QLORA\", \"description\": \"QLORA's efficiency allowed for training models across a wide range of sizes, from 80M to 65B parameters.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"Mobile Phones\", \"entity2\": \"QLORA\", \"description\": \"QLORA enables the fine-tuning of LLMs on mobile phones, a low-resource setting.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"7B models\", \"entity2\": \"QLORA\", \"description\": \"QLORA enables the fine-tuning of 7B models on devices like the iPhone 12 Plus.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"LongForm\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used for finetuning on the LongForm dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"4-bit quantized pretrained language model\", \"entity2\": \"QLORA\", \"description\": \"QLORA backpropagates gradients through a frozen, 4-bit quantized pretrained language model.\", \"created_at\": \"2025-08-13 23:01:21\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"QLORA\", \"entity2\": \"Raphael Olivier\", \"description\": \"Raphael Olivier provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:40\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"QLORA\", \"entity2\": \"T5-80M\", \"description\": \"QLORA's performance is evaluated using the T5-80M model, showing varying RougeL scores depending on the specific QLORA method.\", \"created_at\": \"2025-08-13 23:13:13\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"QLORA\", \"entity2\": \"model architectures\", \"description\": \"QLORA was applied to various model architectures during training.\", \"created_at\": \"2025-08-13 23:03:51\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"QLORA\", \"entity2\": \"iPhone 12 Plus\", \"description\": \"QLORA allows for the fine-tuning of LLMs on an iPhone 12 Plus, processing 3 million tokens per night while charging.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Aditya Kusupati\", \"entity2\": \"QLORA\", \"description\": \"Aditya Kusupati provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"Privacy-Preserving Usage of LLMs\", \"entity2\": \"QLORA\", \"description\": \"QLORA can help enable privacy-preserving usage of LLMs by allowing users to own and manage their data and models.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"Ofir Press\", \"entity2\": \"QLORA\", \"description\": \"Ofir Press provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"Ashish Sharma\", \"entity2\": \"QLORA\", \"description\": \"Ashish Sharma provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"Margaret Li\", \"entity2\": \"QLORA\", \"description\": \"Margaret Li provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:39\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"8 instruction datasets\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated across 8 instruction datasets.\", \"created_at\": \"2025-08-13 23:01:40\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LLaMA\", \"entity2\": \"QLoRA\", \"description\": \"LLaMA, a large language model available in 7B, 13B, and 33B parameter sizes, was fine-tuned using the QLoRA method. This QLoRA fine-tuning technique was compared to other methods, and its application to LLaMA models was explored. Specifically, LLaMA models were fine-tuned using QLoRA on datasets such as Flan v2 and Alpaca, followed by evaluation using a 5-shot MMLU benchmark. The QLoRA method proved effective in fine-tuning different sizes of the LLaMA model.QLoRA is a training method used with LLaMA models, as evidenced by 'QLoRA training with different LLaMA base models'. The text describes memory usage during this training process.\", \"created_at\": \"2025-08-13 23:26:10\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"Figure 6\", \"entity2\": \"QLoRA\", \"description\": \"Figure 6 shows the memory footprint for QLoRA training with different LLaMA base models.\", \"created_at\": \"2025-08-13 23:26:12\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"QLoRA\", \"entity2\": \"T5\", \"description\": \"QLoRA is compared to other finetuning methods, and T5 is used in the Super-NaturalInstructions evaluation.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"Paged Optimizers\", \"entity2\": \"QLoRA\", \"description\": \"QLoRA employs paged optimizers to manage memory.\", \"created_at\": \"2025-08-13 23:08:16\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"QLoRA\", \"entity2\": \"Self-Instruct\", \"description\": \"The Self-Instruct dataset was used to fine-tune LLaMA using QLoRA.\", \"created_at\": \"2025-08-13 23:11:19\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"Longform\", \"entity2\": \"QLoRA\", \"description\": \"The Longform dataset was used to fine-tune LLaMA using QLoRA.\", \"created_at\": \"2025-08-13 23:11:19\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"QLoRA\", \"entity2\": \"RoBERTa-large\", \"description\": \"QLoRA is compared to other finetuning methods on the RoBERTa-large model in the GLUE evaluation.\", \"created_at\": \"2025-08-13 23:05:37\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"NF4 QLORA\", \"entity2\": \"QLoRA\", \"description\": \"NF4 QLORA is a specific implementation or variant of the QLoRA finetuning method.\", \"created_at\": \"2025-08-13 23:10:55\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"4-bit transformer\", \"entity2\": \"QLoRA\", \"description\": \"QLoRA uses a 4-bit transformer for memory efficiency.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 141\\n\\naring a baseball cap with the number \\\"57\\\" and another in a hijab) connected by arrows to the same \\\"Large Language Models\\\" block. However, from the LLM block, multiple parallel arrows descend, each leading to a distinct set of trapezoidal shapes. These are labeled \\\"B₁,\\\" \\\"A₁\\\" for the first user, \\\"B₂,\\\" \\\"A₂\\\" for the second user, and continuing with \\\"Bₖ,\\\" \\\"Aₖ\\\" for a generic k-th user, indicating a personalized LoRA finetuning for each individual user. The visual hierarchy is established by the clear separation of the three sections and the use of dashed lines to delineate the boundaries of the process descriptions. The top section provides the foundational concept of user behavior, while the bottom two sections contrast two distinct methods of applying LLMs and LoRA for recommendations based on this behavior.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 46\\n\\nis a multiple-choice benchmark covering 57 tasks including elementary mathematics, US history, computer science, law, and more. We report 5-shot test accuracy. We also test generative language capabilities through both automated and human evaluations. This second set of evaluations relies on queries curated by humans and aims at measuring the quality of model responses. While this is a more realistic testbed for chatbot model performance and is growing in popularity, there is no commonly accepted protocol in the literature. We describe below our proposed setup, using nucleus sampling with $p = 0 . 9$ and temperature 0.7 in all cases. Table 5: MMLU 5-shot test results for different sizes of LLaMA finetuned on the corresponding datasets using QLoRA.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 12\\n\\ns in Recommender Systems (§4.1.3)\\\", \\\"SLM applications in Web Search (§4.1.4)\\\", and \\\"SLM applications in Mobile-device (§4.1.5)\\\". \\\"Techniques during SLM Deployment\\\" includes \\\"Memory efficiency (§4.2.1)\\\" and \\\"Computing efficiency (§4.2.2)\\\". The section \\\"Models (§5)\\\" is presented next, with \\\"Generic-domain SLMs (§5.1)\\\" and \\\"Specific-domain SLMs (§5.2)\\\" as its primary subdivisions. Following this, \\\"SLMs for LLMs (§6)\\\" is a significant category, containing further sub-topics such as \\\"SLM for reliable LLM generation (§6.1)\\\", \\\"SLM for extracting LLM prompts (§6.2)\\\", \\\"SLM for fine-tuning LLMs (§6.3)\\\", \\\"SLM for LLM applications (§6.4)\\\", \\\"SLM for LLM safety (§6.5)\\\", and \\\"SLM for LLM evaluation (§6.6)\\\". The chart concludes with \\\"Synergy between LLMs and LLMs (§7)\\\" and \\\"Trustworthiness in SLMs (§8)\\\", each with their respective sub-points.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 206\\n\\ns such as pruning, quantization, distillation, SFT, and DPO, utilized in Llama 3.2, have substantially enhanced SLM performance. Insights: We draw several key insights from the development of generic-domain SLMs: • Typical SLM architectures generally incorporate features such as GQA, gated FFN with SiLU activations, RMS normalization, deep and thin architectures, embedding sharing, layer sharing, and shared FFNs. • Although these components are widely used, current research has not yet thoroughly explored their specific contributions within SLMs. • The importance of data quality in SLM research is increasingly emphasized, often considered more critical than the quantity of data and model architectural configurations. • Post-pretraining, meticulous fine-tuning is often required to enhance the safety of SLMs, involving strategies to distill \\ncapabilities from LLMs better. Common strategies include explanatory tuning, progressive learning, and prompt erasing. # 5.2 Domain-Specific SLMs Overview.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 8.8328, + "rag_initialization_seconds": 5.4023, + "query_execution_seconds": 3.4306, + "start_timestamp": "2025-08-15T17:47:56.056950", + "end_timestamp": "2025-08-15T17:48:04.889767" + }, + "metadata": { + "saved_at": "2025-08-15T17:48:04.889766", + "file_path": "retrieval_logs\\retrieval_20250815_174804_889_mix_k12_ck5_Uncover_the_patterns_between_SLMs_and_LLMS_and_the.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_175534_307_mix_k12_ck5_Uncover_the_patterns_between_SLMs_and_LLMS_and_the.json b/retrieval_logs/retrieval_20250815_175534_307_mix_k12_ck5_Uncover_the_patterns_between_SLMs_and_LLMS_and_the.json new file mode 100644 index 0000000000000000000000000000000000000000..b11bc0f3f2c22c0755c27e1fde99f2d941d73c6c --- /dev/null +++ b/retrieval_logs/retrieval_20250815_175534_307_mix_k12_ck5_Uncover_the_patterns_between_SLMs_and_LLMS_and_the.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T17:55:34.307063", + "query": "Uncover the patterns between SLMs and LLMS and their intersection between qlora and lora , find out limitation on their methodologies and suggest enhancments or hypothesis", + "query_mode": "mix", + "top_k": 12, + "chunk_top_k": 5, + "text_length": 47655, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"QLoRA\", \"type\": \"methodology\", \"description\": \"QLoRA is a parameter-efficient fine-tuning method designed for adapting large language models, such as LLaMA. This methodology utilizes 4-bit quantization of transformer weights, specifically employing NF4 quantization (NormalFloat and Double Quantization), which contributes to its efficiency. To further optimize resource management during training, QLoRA incorporates a paging mechanism that offloads optimizer states to the CPU. Compared to other fine-tuning approaches like 16-bit adapter fine-tuning and full fine-tuning, QLoRA presents a distinct strategy for model adaptation.\", \"created_at\": \"2025-08-13 23:05:29\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Fine-Tuning\", \"type\": \"methodology\", \"description\": \"Fine-tuning is a process where SLMs are fine-tuned on specific tasks using task-specific data and loss functions. Parameter-efficient fine-tuning methods, such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs.Fine-tuning is a technique discussed in the context of LLMs and potential unintended outcomes.\", \"created_at\": \"2025-08-15 17:25:11\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Parameter-efficient fine-tuning methods\", \"type\": \"methodology\", \"description\": \"Parameter-efficient fine-tuning methods, such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs.\", \"created_at\": \"2025-08-15 16:31:28\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Small Language Models (SLMs)\", \"type\": \"abstract\", \"description\": \"Small Language Models (SLMs) are a focus of research, with efforts to improve their performance by optimizing teacher LLM selection and applying emerging techniques from larger LLMs.Small Language Models (SLMs) are smaller, more efficient language models, typically defined as having fewer than 7 billion parameters, though their size can extend to the largest manageable under limited resource conditions. Derived from larger language models (LLMs), SLMs are increasingly favored for their low inference latency, cost-effectiveness, efficient development, and easy customization and adaptability, offering savings in pre-training and inference with reduced memory and storage needs. This makes them vital for applications requiring efficient resource use and effective in resource-limited settings, including low-power devices like edge devices, by improving on-device processing through enhanced privacy, security, response times, and personalization. SLMs are optimized and fine-tuned on specific data and are essential in resource-limited settings. They exhibit diverse capabilities across domains and are being specialized through instruction tuning using LLMs-generated data. SLMs enhance recommendation systems due to their robust generalization, reasoning abilities, and in-context learning, addressing challenges like cold-start problems and distribution biases. SLMs support long-term planning, replace traditional encoders, and use parallel low-rank parameters to inject personalized user knowledge. They play a crucial role in web search, including document encoding, text reordering, and query rewriting. SLMs are also distilled from LLMs using the 'Adapt-and-Distill' strategy, though adapting both teacher and student models to the target domain can be time-consuming. SLMs have demonstrated significant potential in addressing issues associated with LLMs by achieving comparable performance for domain-specific problems, offering advantages in efficiency, cost, flexibility, and customization due to their reduced parameter count. They can also complement LLMs for task completion and are noted for their ability to process longer sequences more efficiently, which enhances their functionality under strict hardware constraints, utilizing activation functions like GeLU and SiLU and benefiting from efficient attention mechanisms. Parameter-sharing techniques are employed in their architecture design to minimize space usage and reduce size. SLMs are effective with adaptation techniques like LoRA, prefixtuning, and adapter modules, with Mamba considered more suitable for SLMs due to its parameter utilization. SLMs benefit from tokenization strategies that ensure a balance between vocabulary coverage and model compactness, crucial for improving generalization while minimizing computational demands, and are fine-tuned on specific tasks using parameter-efficient fine-tuning methods. SLMs are also the subject of improvement through methods like Supervised Fine-Tuning (SFT) and Knowledge Distillation (KD).\", \"created_at\": \"2025-08-15 17:08:36\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Data Selection processes\", \"type\": \"methodology\", \"description\": \"Data Selection processes user data, tags domains, and calculates metrics (EOE, DSS, IDD). Selected data fine-tunes SLMs with user annotations.\", \"created_at\": \"2025-08-15 16:40:04\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"SLMs\", \"type\": \"connection\", \"description\": \"SLMs may possess missing or latent domain knowledge that can be activated with minimal data.Small Language Models (SLMs) are discussed in the context of assisting Large Language Models (LLMs).Small Language Models (SLMs), typically featuring up to 10 billion parameters and tailored for the Transformer architecture, are efficient and capable models that are smaller and more efficient than Large Language Models (LLMs). This efficiency makes them suitable for resource-constrained environments and specific applications, particularly on devices, and they are favored in scenarios demanding efficiency, privacy, and customization. SLMs can be deployed on edge devices, often with cloud-based LLM support to enhance runtime efficiency, and are utilized on mobile devices primarily for privacy and memory constraints, with applications in API calls and mobile control. They are also used locally to reduce memory usage and shorten inference time, and are utilized to handle privacy-sensitive data locally in a cloud-edge synergy model.\\n\\nSLMs play a crucial role in supporting LLMs by enhancing the quality of LLM-generated data for specific tasks and can be trained locally on client-specific private data to mitigate privacy risks. They assist LLMs in various ways, including improving reliability, extracting prompts, fine-tuning, application, and evaluation. SLMs help alleviate issues such as inference latency, labor-intensive fine-tuning, noise filtration in retrieval, suboptimal zero-shot performance, copyright infringement risks, and evaluation difficulties. They can be fine-tuned for specific functions like hallucination detection when adapting LLMs to specific tasks requires substantial computational resources and time. SLMs are used to retrieve sub-graphs when utilizing knowledge graphs as external sources and to enhance LLM reasoning by transferring task knowledge to in-context examples, effectively reducing hallucinations. SLMs are trained via contrast learning to effectively distinguish and score responses in dialogue scenarios. They can also be used as proxy models to evaluate the familiarity of LLMs with user queries, determining whether LLMs need to retrieve additional information or can respond directly. Furthermore, SLMs are utilized to evaluate the relevance of retrieved documents, with LongLLMLingua employing them to calculate document relevance to a query using perplexity. SLMs efficiently decompose complex reasoning by breaking tasks into simpler components, increasing efficiency and reducing deployment costs when SLMs and LLMs are used collaboratively.\\n\\nTask-specific applications for SLMs include generative tasks like question-answering and coding. They can leverage encoding capabilities for recommender systems and web search, where they can serve as content encoders. During inference, SLMs generate Python code that an external interpreter executes, and they produce output sequences. SLMs are explored as in-context recommenders for recommendation system cold-\", \"created_at\": \"2025-08-15 17:08:23\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"DS+\", \"type\": \"methodology\", \"description\": \"DS+ is a methodology that incorporates S4L and L4S modules with Prompt Pruning (PP) and 2-stage Confidence Distillation (2CD) for better input processing and knowledge transfer.\", \"created_at\": \"2025-08-15 17:01:02\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"fine-tuning\", \"type\": \"methodology\", \"description\": \"Fine-tuning is a method used in natural language processing to adapt large-scale, pre-trained language models to multiple downstream applications by updating all parameters of the pre-trained model. This technique is employed for improving the performance of Small Language Models (SLMs), particularly for coding tasks and long context tasks, and is considered an advanced method for optimizing models. Fine-tuning is also a technique for acquiring SLMs and is a meticulous process often required post-pretraining to enhance the safety of SLMs, involving strategies to distill capabilities from Large Language Models (LLMs). This process allows SLMs to exhibit specialized capabilities and is a methodology that DS+ outperforms in accuracy and cost efficiency.\", \"created_at\": \"2025-08-15 17:01:04\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Low Rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low Rank Adapters (LoRA) are used in QLORA to efficiently fine-tune the quantized language model.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Efficient Instruction Tuning of SLMs from LLMs-generated data\", \"type\": \"methodology\", \"description\": \"This methodology focuses on the efficient instruction tuning of Small Language Models (SLMs) using data generated by Large Language Models (LLMs). It highlights the importance of this process for enhancing SLM specialization and identifies key areas for exploration.This methodology involves using data generated by teacher LLMs for instruction tuning of SLMs, aiming to enhance SLM performance and efficiency.\", \"created_at\": \"2025-08-15 17:07:09\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"QLORA\", \"type\": \"category\", \"description\": \"QLORA is an efficient and accessible fine-tuning method for large language models (LLMs), including chatbots such as Guanaco. It enables the fine-tuning of LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones. This accessibility is achieved through a combination of 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers, significantly reducing memory usage compared to traditional methods. Contrary to simplified explanations, QLORA uses adapters at every network layer, not just a single quantized linear layer, mitigating accuracy loss often observed in other instruction fine-tuning techniques. This multi-layer approach allows for the training of diverse models across various datasets and sizes, achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods. Evaluations demonstrate comparable GLUE accuracy and Super-NaturalInstructions RougeL scores to these methods. QLORA replicates the performance of 16-bit full fine-tuning using a 4-bit base model and Low-rank Adapters (LoRA). The use of paged optimizers further prevents out-of-memory errors, enabling the fine-tuning of large models on a single GPU. While offering significant advantages in efficiency and accessibility for training LLMs on consumer and professional GPUs without performance degradation, QLORA is considered a dual-use technology with potential for misuse. Its primary benefit is improved accessibility of state-of-the-art NLP technology, enabling large-scale analysis without excessive computational resources. QLORA's effectiveness has been demonstrated in experiments detailed in various sections of related texts.\", \"created_at\": \"2025-08-13 23:01:08\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"teacher LLMs\", \"type\": \"methodology\", \"description\": \"Teacher LLMs are used via instruction tuning to enhance the performance and efficiency of SLMs.Teacher LLMs, including GPT-4 and ChatGPT, are used to generate new samples or rewrite existing ones for fine-tuning SLMs.\", \"created_at\": \"2025-08-15 17:07:09\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"HETLORA method\", \"type\": \"methodology\", \"description\": \"The HETLORA method addresses system and data heterogeneity by using heterogeneous low-rank approximations to accommodate diverse client capabilities and data complexities. It balances high and low-rank LoRA modules through local rank self-pruning and sparsity-weighted aggregation, improving convergence speed and performance over uniform approaches.\", \"created_at\": \"2025-08-15 16:25:48\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"LLM-Neo\", \"type\": \"methodology\", \"description\": \"LLM-Neo combines knowledge distillation with low-rank adaptation (LoRA) to enhance the efficiency of transferring knowledge from a teacher LLM to a compact student model.\", \"created_at\": \"2025-08-15 16:25:48\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Supervised Fine-Tuning\", \"type\": \"methodology\", \"description\": \"A technique used by SLMs to enhance adaptability and efficiency in web search.Supervised Fine-Tuning is a method for enhancing SLMs.\", \"created_at\": \"2025-08-15 16:45:41\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Mutual enhancement of large and small language models with cross-silo knowledge transfer\", \"type\": \"methodology\", \"description\": \"This methodology describes the mutual enhancement of large and small language models through cross-silo knowledge transfer.\", \"created_at\": \"2025-08-15 17:02:25\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Qlora: Efficient finetuning of quantized llms\", \"type\": \"methodology\", \"description\": \"This methodology, Qlora, focuses on the efficient finetuning of quantized large language models (LLMs).\", \"created_at\": \"2025-08-15 17:02:25\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Device Resources\", \"type\": \"abstract\", \"description\": \"Device resources such as memory and energy are a consideration for certain SLM methodologies like fine-tuning.\", \"created_at\": \"2025-08-15 17:05:05\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Fine-tuning SLMs with local data\", \"type\": \"methodology\", \"description\": \"This method integrates customized knowledge into the model's weights by fine-tuning SLMs with local data, but demands significant device resources like memory and energy.\", \"created_at\": \"2025-08-15 17:05:05\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"synthetic data\", \"type\": \"abstract\", \"description\": \"Synthetic data is a crucial supplement to limited human-generated data, but the capacity of small models to effectively manage it is not well-understood.Synthetic data is used to improve LLM's generative capabilities and train SLMs, boosting their performance through a cyclical exchange that fosters cloud-edge synergy and mutual model improvement.This type of data is generated by LLMs and evaluated by SLMs within the CROSSLM framework.\", \"created_at\": \"2025-08-15 17:03:47\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Fine-Tuning, Quantization, and LLMs: Navigating Unintended Outcomes\", \"type\": \"abstract\", \"description\": \"This abstract explores the unintended outcomes that can arise from fine-tuning and quantization of Large Language Models (LLMs). It delves into the limitations and potential negative consequences of these techniques when applied to LLMs, connecting this work to the broader field of LLM research by addressing practical application challenges. The abstract also discusses possible enhancements, focusing on developing methods to mitigate these unintended outcomes.\", \"created_at\": \"2025-08-15 17:25:20\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"Accelerated Fine-tuning and Inference Speeds\", \"type\": \"methodology\", \"description\": \"Accelerated fine-tuning and inference speeds of SLMs enable them to mimic LLM behaviors.\", \"created_at\": \"2025-08-15 17:02:45\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"Proxy SLMs\", \"type\": \"methodology\", \"description\": \"Proxy SLMs are a methodology where SLMs, due to their accelerated fine-tuning and inference speeds, can effectively mimic the behaviors of LLMs, serving as efficient proxies for optimization.\", \"created_at\": \"2025-08-15 17:02:45\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Fine-Tuning\", \"entity2\": \"Parameter-efficient fine-tuning methods\", \"description\": \"Fine-tuning utilizes parameter-efficient fine-tuning methods for SLMs.\", \"created_at\": \"2025-08-15 16:31:31\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LLMs\", \"entity2\": \"QLORA\", \"description\": \"QLORA aims to make finetuning of high-quality LLMs more accessible.QLORA is a method for fine-tuning LLMs on low-resource devices.\", \"created_at\": \"2025-08-13 23:16:07\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Parameter-efficient fine-tuning methods\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"Parameter-efficient fine-tuning methods are particularly effective for SLMs.\", \"created_at\": \"2025-08-15 16:31:31\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Data Selection processes\", \"entity2\": \"SLMs\", \"description\": \"Selected data fine-tunes SLMs with user annotations.\", \"created_at\": \"2025-08-15 16:40:12\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"LLaMA\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used for fine-tuning LLaMA models, achieving comparable performance to full 16-bit fine-tuning with 4-bit precision. The study investigates instruction tuning of LLaMA models using QLORA at scales not feasible with full 16-bit fine-tuning.QLORA was used to fine-tune LLaMA models.\", \"created_at\": \"2025-08-13 23:13:57\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"DS+\", \"entity2\": \"fine-tuning\", \"description\": \"DS+ outperforms fine-tuning in accuracy and cost efficiency.\", \"created_at\": \"2025-08-15 17:01:08\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Guanaco\", \"entity2\": \"QLORA\", \"description\": \"Guanaco models are trained using the QLORA technique for efficient fine-tuning on a single GPU.QLORA was used to train the Guanaco chatbot, a state-of-the-art model.\", \"created_at\": \"2025-08-13 23:04:36\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Efficient Instruction Tuning of SLMs from LLMs-generated data\", \"entity2\": \"teacher LLMs\", \"description\": \"This methodology utilizes data generated by teacher LLMs for the instruction tuning of SLMs.\", \"created_at\": \"2025-08-15 17:07:10\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"MMLU\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated on the MMLU benchmark, showing comparable results to 16-bit methods.\", \"created_at\": \"2025-08-13 23:13:28\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"HETLORA method\", \"entity2\": \"LLM-Neo\", \"description\": \"Both are presented as advanced enhancement methods for SLMs, addressing efficiency and performance through different adaptation techniques.\", \"created_at\": \"2025-08-15 16:25:56\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Alpaca\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used for finetuning on the Alpaca dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Small Language Models (SLMs)\", \"entity2\": \"Supervised Fine-Tuning\", \"description\": \"Supervised fine-tuning is a technique used by SLMs to enhance adaptability and efficiency in web search.\", \"created_at\": \"2025-08-15 16:45:52\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"ChatGPT\", \"entity2\": \"QLORA\", \"description\": \"QLORA achieves 97% of ChatGPT's performance with less training time and resources.QLORA's 33B model rivals ChatGPT on the Vicuna benchmark.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Mutual enhancement of large and small language models with cross-silo knowledge transfer\", \"entity2\": \"Qlora: Efficient finetuning of quantized llms\", \"description\": \"Both methodologies relate to the advancement and efficient use of language models, with one focusing on mutual enhancement and the other on efficient finetuning of quantized models.\", \"created_at\": \"2025-08-15 17:02:31\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Guanaco 33B\", \"entity2\": \"QLORA\", \"description\": \"Guanaco 33B is a QLORA-tuned model (implied).\", \"created_at\": \"2025-08-13 23:10:24\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Device Resources\", \"entity2\": \"Fine-tuning SLMs with local data\", \"description\": \"Fine-tuning SLMs with local data demands significant device resources.\", \"created_at\": \"2025-08-15 17:05:11\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"QLORA\", \"entity2\": \"T5\", \"description\": \"QLORA was used for fine-tuning T5 models in experiments described in Section 5.QLORA was used to fine-tune T5 models.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"SLMs\", \"entity2\": \"synthetic data\", \"description\": \"Synthetic data trains SLMs, boosting their performance.\", \"created_at\": \"2025-08-15 16:59:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Guanaco 65B\", \"entity2\": \"QLORA\", \"description\": \"Guanaco 65B is a QLORA-trained model.\", \"created_at\": \"2025-08-13 23:10:35\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Fine-Tuning, Quantization, and LLMs: Navigating Unintended Outcomes\", \"entity2\": \"Large Language Models\", \"description\": \"This methodology addresses the challenges and unintended consequences associated with the fine-tuning and quantization of Large Language Models.\", \"created_at\": \"2025-08-15 17:11:51\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"NF4\", \"entity2\": \"QLORA\", \"description\": \"NF4 is the computation datatype used in the QLORA finetuning experiments.QLORA uses NF4 data type, which is shown to be superior to FP4 in terms of quantization precision.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Accelerated Fine-tuning and Inference Speeds\", \"entity2\": \"Proxy SLMs\", \"description\": \"Proxy SLMs utilize accelerated fine-tuning and inference speeds to mimic LLM behaviors.\", \"created_at\": \"2025-08-15 17:03:01\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Paged Optimizers\", \"entity2\": \"QLORA\", \"description\": \"QLORA employs Paged Optimizers to manage memory during gradient checkpointing.QLORA uses Paged Optimizers to handle memory spikes during training.QLORA incorporates Paged Optimizers to address memory issues during finetuning.\", \"created_at\": \"2025-08-13 23:05:59\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"QLORA\", \"entity2\": \"Table 9\", \"description\": \"Table 9 shows the hyperparameters tuned for different model sizes in QLORA finetuning.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"BFloat16\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses BFloat16 as its computation data type for matrix multiplication after dequantization.QLORA uses BFloat16 to calculate derivatives.\", \"created_at\": \"2025-08-13 23:07:36\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"QLORA\", \"entity2\": \"Unnatural Instructions\", \"description\": \"QLORA was used for finetuning on the Unnatural Instructions dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"GLUE\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance is compared against other methods on the GLUE benchmark.QLORA's performance is measured using the GLUE dataset, focusing on accuracy.\", \"created_at\": \"2025-08-13 23:13:18\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Luke Zettlemoyer\", \"entity2\": \"QLORA\", \"description\": \"Luke Zettlemoyer is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"QLORA\", \"entity2\": \"Self-Instruct\", \"description\": \"QLORA was used for finetuning on the Self-Instruct dataset.\", \"created_at\": \"2025-08-13 23:18:50\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LongForm dataset\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used in finetuning experiments on the LongForm dataset.\", \"created_at\": \"2025-08-13 23:22:29\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"QLORA\", \"entity2\": \"Super-NaturalInstructions\", \"description\": \"QLORA's performance is compared against other methods on the Super-NaturalInstructions benchmark.QLORA's performance is measured using the Super-NaturalInstructions dataset, focusing on RougeL scores.\", \"created_at\": \"2025-08-13 23:13:18\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"4-bit NormalFloat (NF4)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes 4-bit NormalFloat (NF4) quantization as a core component of its finetuning process.QLORA utilizes 4-bit NormalFloat (NF4) to improve memory efficiency.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Double Quantization\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Double Quantization as a core technique within its high-fidelity 4-bit finetuning approach. This technique is employed to significantly reduce memory usage during the finetuning process.\", \"created_at\": \"2025-08-13 23:05:59\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"1,000 models\", \"entity2\": \"QLORA\", \"description\": \"QLORA enabled the training of more than 1,000 models.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"16-bit LoRA\", \"entity2\": \"QLORA\", \"description\": \"QLORA matches the performance of 16-bit LoRA.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Adam\", \"entity2\": \"QLORA\", \"description\": \"The Adam optimizer is used in the QLORA finetuning experiments.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"FP4\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance with NF4 is compared to and shown to be superior to the performance with FP4.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"GPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used in the context of a quantized base model processed on a GPU.\", \"created_at\": \"2025-08-13 23:07:13\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"CPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA's optimization process may indirectly involve the CPU through memory management with paged optimizers.\", \"created_at\": \"2025-08-13 23:07:13\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"16-bit full finetuning\", \"entity2\": \"QLORA\", \"description\": \"4-bit QLORA with NF4 matches the performance of 16-bit full finetuning on academic benchmarks.QLORA matches the performance of 16-bit full finetuning.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"65B parameter model\", \"entity2\": \"QLORA\", \"description\": \"QLORA is used to fine-tune a 65B parameter model efficiently.QLORA is used to finetune a 65B parameter model, reducing its memory requirements.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"QLORA\", \"entity2\": \"Tim Dettmers\", \"description\": \"Tim Dettmers is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"4-bit model\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a method specifically designed for finetuning 4-bit quantized models.\", \"created_at\": \"2025-08-13 23:03:13\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"LoRA parameters\", \"entity2\": \"QLORA\", \"description\": \"QLORA computes weight gradients specifically for the LoRA parameters during the backward pass.\", \"created_at\": \"2025-08-13 23:07:40\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"4-bit finetuning\", \"entity2\": \"QLORA\", \"description\": \"QLORA is mentioned in the context of 4-bit finetuning, highlighting its efficiency benefits.\", \"created_at\": \"2025-08-13 23:14:04\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"NormalFloat4\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses NormalFloat4 as its storage data type.\", \"created_at\": \"2025-08-13 23:07:25\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Elo\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated on the Elo benchmark, showing comparable results to 16-bit methods.\", \"created_at\": \"2025-08-13 23:13:40\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"33B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a finetuning method used to train 33B parameter models on consumer GPUs.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"4-bit NormalFloat (NF4) Quantization\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses 4-bit NormalFloat (NF4) quantization as one of its core techniques for finetuning.\", \"created_at\": \"2025-08-13 23:05:57\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Low-rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses Low-rank Adapters (LoRA) to achieve its performance.\", \"created_at\": \"2025-08-13 23:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"QLORA\", \"entity2\": \"RoBERTa-large\", \"description\": \"QLORA's performance is evaluated using the RoBERTa-large model, achieving 88.6 accuracy with BF16.\", \"created_at\": \"2025-08-13 23:13:09\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Cross-entropy loss\", \"entity2\": \"QLORA\", \"description\": \"QLORA is presented as a method that enables analysis of the tradeoffs between cross-entropy loss and RLHF training.\", \"created_at\": \"2025-08-13 23:16:55\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"4-bit base model\", \"entity2\": \"QLORA\", \"description\": \"QLORA's 4-bit finetuning is compared to the memory usage of a 4-bit base model, suggesting a potential memory advantage.\", \"created_at\": \"2025-08-13 23:05:40\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"16-bit LoRA finetuning\", \"entity2\": \"QLORA\", \"description\": \"4-bit QLORA with NF4 matches the performance of 16-bit LoRA finetuning on academic benchmarks.\", \"created_at\": \"2025-08-13 23:13:44\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"Low Rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Low Rank Adapters (LoRA) for efficient fine-tuning.\", \"created_at\": \"2025-08-13 23:01:24\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"QLORA\", \"entity2\": \"single GPU\", \"description\": \"QLORA can fine-tune models on a single GPU, showcasing its efficiency.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"33B and 65B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA was successfully used to fine-tune models with 33B and 65B parameters, demonstrating scalability.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"48GB GPU\", \"entity2\": \"QLORA\", \"description\": \"QLORA allows fine-tuning of a 65B parameter model on a single 48GB GPU.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"4-bit NormalFloat\", \"entity2\": \"QLORA\", \"description\": \"QLORA uses 4-bit NormalFloat as one of its memory reduction techniques.\", \"created_at\": \"2025-08-13 23:02:00\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"65B parameter models\", \"entity2\": \"QLORA\", \"description\": \"QLORA is a finetuning method used to train 65B parameter models on professional GPUs.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"Artidoro Pagnoni\", \"entity2\": \"QLORA\", \"description\": \"Artidoro Pagnoni is a researcher involved in developing QLORA.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"QLORA\", \"entity2\": \"raw pretrained LLMs\", \"description\": \"QLORA is a method used to finetune raw pretrained LLMs into chatbots.\", \"created_at\": \"2025-08-13 23:17:57\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"QLORA\", \"entity2\": \"instruction tuning datasets\", \"description\": \"QLORA was used to perform instruction finetuning on several datasets.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"80M to 65B parameters\", \"entity2\": \"QLORA\", \"description\": \"QLORA's efficiency allowed for training models across a wide range of sizes, from 80M to 65B parameters.\", \"created_at\": \"2025-08-13 23:03:44\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"Mobile Phones\", \"entity2\": \"QLORA\", \"description\": \"QLORA enables the fine-tuning of LLMs on mobile phones, a low-resource setting.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"7B models\", \"entity2\": \"QLORA\", \"description\": \"QLORA enables the fine-tuning of 7B models on devices like the iPhone 12 Plus.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"LongForm\", \"entity2\": \"QLORA\", \"description\": \"QLORA was used for finetuning on the LongForm dataset.\", \"created_at\": \"2025-08-13 23:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"4-bit quantized pretrained language model\", \"entity2\": \"QLORA\", \"description\": \"QLORA backpropagates gradients through a frozen, 4-bit quantized pretrained language model.\", \"created_at\": \"2025-08-13 23:01:21\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"QLORA\", \"entity2\": \"Raphael Olivier\", \"description\": \"Raphael Olivier provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:40\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"QLORA\", \"entity2\": \"T5-80M\", \"description\": \"QLORA's performance is evaluated using the T5-80M model, showing varying RougeL scores depending on the specific QLORA method.\", \"created_at\": \"2025-08-13 23:13:13\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"QLORA\", \"entity2\": \"model architectures\", \"description\": \"QLORA was applied to various model architectures during training.\", \"created_at\": \"2025-08-13 23:03:51\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"QLORA\", \"entity2\": \"iPhone 12 Plus\", \"description\": \"QLORA allows for the fine-tuning of LLMs on an iPhone 12 Plus, processing 3 million tokens per night while charging.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Aditya Kusupati\", \"entity2\": \"QLORA\", \"description\": \"Aditya Kusupati provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"Privacy-Preserving Usage of LLMs\", \"entity2\": \"QLORA\", \"description\": \"QLORA can help enable privacy-preserving usage of LLMs by allowing users to own and manage their data and models.\", \"created_at\": \"2025-08-13 23:16:08\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"Ofir Press\", \"entity2\": \"QLORA\", \"description\": \"Ofir Press provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"Ashish Sharma\", \"entity2\": \"QLORA\", \"description\": \"Ashish Sharma provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:30\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"Margaret Li\", \"entity2\": \"QLORA\", \"description\": \"Margaret Li provided feedback on the QLORA research.\", \"created_at\": \"2025-08-13 23:15:39\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"8 instruction datasets\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated across 8 instruction datasets.\", \"created_at\": \"2025-08-13 23:01:40\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LLaMA\", \"entity2\": \"QLoRA\", \"description\": \"LLaMA, a large language model available in 7B, 13B, and 33B parameter sizes, was fine-tuned using the QLoRA method. This QLoRA fine-tuning technique was compared to other methods, and its application to LLaMA models was explored. Specifically, LLaMA models were fine-tuned using QLoRA on datasets such as Flan v2 and Alpaca, followed by evaluation using a 5-shot MMLU benchmark. The QLoRA method proved effective in fine-tuning different sizes of the LLaMA model.QLoRA is a training method used with LLaMA models, as evidenced by 'QLoRA training with different LLaMA base models'. The text describes memory usage during this training process.\", \"created_at\": \"2025-08-13 23:26:10\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"Figure 6\", \"entity2\": \"QLoRA\", \"description\": \"Figure 6 shows the memory footprint for QLoRA training with different LLaMA base models.\", \"created_at\": \"2025-08-13 23:26:12\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"QLoRA\", \"entity2\": \"T5\", \"description\": \"QLoRA is compared to other finetuning methods, and T5 is used in the Super-NaturalInstructions evaluation.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"Paged Optimizers\", \"entity2\": \"QLoRA\", \"description\": \"QLoRA employs paged optimizers to manage memory.\", \"created_at\": \"2025-08-13 23:08:16\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"QLoRA\", \"entity2\": \"Self-Instruct\", \"description\": \"The Self-Instruct dataset was used to fine-tune LLaMA using QLoRA.\", \"created_at\": \"2025-08-13 23:11:19\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"Longform\", \"entity2\": \"QLoRA\", \"description\": \"The Longform dataset was used to fine-tune LLaMA using QLoRA.\", \"created_at\": \"2025-08-13 23:11:19\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"QLoRA\", \"entity2\": \"RoBERTa-large\", \"description\": \"QLoRA is compared to other finetuning methods on the RoBERTa-large model in the GLUE evaluation.\", \"created_at\": \"2025-08-13 23:05:37\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"NF4 QLORA\", \"entity2\": \"QLoRA\", \"description\": \"NF4 QLORA is a specific implementation or variant of the QLoRA finetuning method.\", \"created_at\": \"2025-08-13 23:10:55\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"4-bit transformer\", \"entity2\": \"QLoRA\", \"description\": \"QLoRA uses a 4-bit transformer for memory efficiency.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 141\\n\\naring a baseball cap with the number \\\"57\\\" and another in a hijab) connected by arrows to the same \\\"Large Language Models\\\" block. However, from the LLM block, multiple parallel arrows descend, each leading to a distinct set of trapezoidal shapes. These are labeled \\\"B₁,\\\" \\\"A₁\\\" for the first user, \\\"B₂,\\\" \\\"A₂\\\" for the second user, and continuing with \\\"Bₖ,\\\" \\\"Aₖ\\\" for a generic k-th user, indicating a personalized LoRA finetuning for each individual user. The visual hierarchy is established by the clear separation of the three sections and the use of dashed lines to delineate the boundaries of the process descriptions. The top section provides the foundational concept of user behavior, while the bottom two sections contrast two distinct methods of applying LLMs and LoRA for recommendations based on this behavior.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 46\\n\\nis a multiple-choice benchmark covering 57 tasks including elementary mathematics, US history, computer science, law, and more. We report 5-shot test accuracy. We also test generative language capabilities through both automated and human evaluations. This second set of evaluations relies on queries curated by humans and aims at measuring the quality of model responses. While this is a more realistic testbed for chatbot model performance and is growing in popularity, there is no commonly accepted protocol in the literature. We describe below our proposed setup, using nucleus sampling with $p = 0 . 9$ and temperature 0.7 in all cases. Table 5: MMLU 5-shot test results for different sizes of LLaMA finetuned on the corresponding datasets using QLoRA.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 12\\n\\ns in Recommender Systems (§4.1.3)\\\", \\\"SLM applications in Web Search (§4.1.4)\\\", and \\\"SLM applications in Mobile-device (§4.1.5)\\\". \\\"Techniques during SLM Deployment\\\" includes \\\"Memory efficiency (§4.2.1)\\\" and \\\"Computing efficiency (§4.2.2)\\\". The section \\\"Models (§5)\\\" is presented next, with \\\"Generic-domain SLMs (§5.1)\\\" and \\\"Specific-domain SLMs (§5.2)\\\" as its primary subdivisions. Following this, \\\"SLMs for LLMs (§6)\\\" is a significant category, containing further sub-topics such as \\\"SLM for reliable LLM generation (§6.1)\\\", \\\"SLM for extracting LLM prompts (§6.2)\\\", \\\"SLM for fine-tuning LLMs (§6.3)\\\", \\\"SLM for LLM applications (§6.4)\\\", \\\"SLM for LLM safety (§6.5)\\\", and \\\"SLM for LLM evaluation (§6.6)\\\". The chart concludes with \\\"Synergy between LLMs and LLMs (§7)\\\" and \\\"Trustworthiness in SLMs (§8)\\\", each with their respective sub-points.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 206\\n\\ns such as pruning, quantization, distillation, SFT, and DPO, utilized in Llama 3.2, have substantially enhanced SLM performance. Insights: We draw several key insights from the development of generic-domain SLMs: • Typical SLM architectures generally incorporate features such as GQA, gated FFN with SiLU activations, RMS normalization, deep and thin architectures, embedding sharing, layer sharing, and shared FFNs. • Although these components are widely used, current research has not yet thoroughly explored their specific contributions within SLMs. • The importance of data quality in SLM research is increasingly emphasized, often considered more critical than the quantity of data and model architectural configurations. • Post-pretraining, meticulous fine-tuning is often required to enhance the safety of SLMs, involving strategies to distill \\ncapabilities from LLMs better. Common strategies include explanatory tuning, progressive learning, and prompt erasing. # 5.2 Domain-Specific SLMs Overview.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.866, + "rag_initialization_seconds": 5.2706, + "query_execution_seconds": 0.5953, + "start_timestamp": "2025-08-15T17:55:28.440081", + "end_timestamp": "2025-08-15T17:55:34.306063" + }, + "metadata": { + "saved_at": "2025-08-15T17:55:34.307063", + "file_path": "retrieval_logs\\retrieval_20250815_175534_307_mix_k12_ck5_Uncover_the_patterns_between_SLMs_and_LLMS_and_the.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_180942_354_mix_k12_ck5_Given_the_foundational_principles_from_Attention_I.json b/retrieval_logs/retrieval_20250815_180942_354_mix_k12_ck5_Given_the_foundational_principles_from_Attention_I.json new file mode 100644 index 0000000000000000000000000000000000000000..b2b2b1b9b18960bea6813c048da1f4df2039679c --- /dev/null +++ b/retrieval_logs/retrieval_20250815_180942_354_mix_k12_ck5_Given_the_foundational_principles_from_Attention_I.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T18:09:42.354199", + "query": "\n Given the foundational principles from 'Attention Is All You Need', the communication efficiency challenges highlighted in 'Communication-Efficient Learning of Deep Networks', the sparse activation patterns in Mixture of Experts models, the reasoning capabilities demonstrated in ReAct, and the emerging paradigms described in 'Small Language Models in the Era of Large', identify a previously unexplored intersection where these five research threads could converge to solve a fundamental limitation in current AI systems.\nYour task: Propose a novel architectural or methodological framework that synthesizes insights from all five papers to address the following constraint - how can we achieve LLM-level reasoning capabilities in resource-constrained, privacy-sensitive, real-time environments where traditional approaches fail?\nFocus on identifying emergent properties that only arise when these approaches are combined, rather than simply stacking existing techniques. Consider how attention mechanisms could be reimagined when communication is severely limited, how MoE sparsity could enable new forms of reasoning, and how the small-large model paradigm could be revolutionized through reactive, communication-aware architectures.\nProvide: (1) A specific hypothesis, (2) The theoretical foundation for why this combination would work, (3) Identification of what makes this approach fundamentally different from existing solutions, and (4) Testable predictions about its capabilities and limitations.\n \n \n \n \n ", + "query_mode": "mix", + "top_k": 12, + "chunk_top_k": 5, + "text_length": 28709, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"attention-based MoE framework\", \"type\": \"methodology\", \"description\": \"An attention-based MoE framework is proposed to enhance generalization ability and classification performance under limited data conditions.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"AI systems\", \"type\": \"discussion\", \"description\": \"AI systems can be designed to be more robust and transparent by leveraging the interpretability offered by Mixture of Experts (MoE) models.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Figure 1\", \"type\": \"results\", \"description\": \"Figure 1 illustrates the loss on the full MNIST training set for models generated by averaging parameters of two models, w and w', using a specific formula for 50 evenly spaced values of theta. The models w and w' were trained using SGD on different small datasets.Figure 1 presents a multifaceted view of various concepts and processes. It illustrates the comparison of four prompting methods—Standard, Chain-of-thought (CoT, Reason Only), Act-only, and ReAct (Reason+Act)—in solving a HotpotQA question, and also compares Act-only and ReAct prompting in solving an AlfWorld game, showcasing task-solving trajectories generated by the model (Act, Thought) and the environment (Obs), while omitting in-context examples. Additionally, Figure 1 demonstrates the development of various small language models (SLMs) through a horizontal timeline segmented by years and quarters, with different SLMs branching off at their respective release points. The figure also serves to illustrate the Transformer model architecture, including its encoder and decoder halves. Furthermore, Figure 1 depicts the training loss behavior across different values of E (number of local epochs) in a federated learning context, specifically highlighting fluctuations and less clear convergence patterns when using the Non-IID MNIST dataset, employing different learning rates and y-axis scales for comparison. It also demonstrates the LoRA (Low-Rank Adaptation) approach, which optimizes rank decomposition matrices A and B while keeping pre-trained weights frozen. In a related context, Figure 1 illustrates the loss on the full MNIST training set for models generated by averaging parameters of two models, w and w', which were trained using SGD on different small datasets, with this parameter averaging shown to significantly reduce loss on the full training set compared to models trained on individual subsets, using a shared starting model for each round of FedAvg. Finally, Figure 1 also illustrates the overall organization of the paper.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"model interpretability\", \"type\": \"discussion\", \"description\": \"Model interpretability is an opportunity offered by Mixture of Experts (MoE) models, achieved by learning intrinsic allocation mechanisms. This process enhances the understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems. Furthermore, model interpretability is enhanced by the combination of reasoning and acting, which allows humans to distinguish between internal knowledge and external environments.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"robust and transparent AI systems\", \"type\": \"possible enhancements\", \"description\": \"Designing more robust and transparent AI systems is an avenue opened by the interpretability of MoE models.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"type\": \"abstract\", \"description\": \"This abstract discusses the use of mixtures of experts to unlock parameter scaling for deep reinforcement learning.This is a citation for a paper discussing mixtures of experts and parameter scaling in deep RL.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems and scheduling for behavior acquisition in multi-agent environments.This methodology describes a modular learning system and scheduling for behavior acquisition in a multi-agent environment.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"AI Safety\", \"type\": \"methodology\", \"description\": \"AI Safety is a field being pioneered with the use of SLMs as guardians.\", \"created_at\": \"2025-08-15 17:25:11\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"SLM as Guardian: Pioneering AI Safety with Small Language Model\", \"type\": \"abstract\", \"description\": \"SLM as Guardian: Pioneering AI Safety with Small Language Model is a pioneering effort in AI safety that explores the use of Small Language Models (SLMs) as a mechanism to enhance AI safety. This work connects SLMs to the critical area of AI safety, suggesting that SLMs can play a crucial role in advancing AI safety. Possible future enhancements might include exploring different architectures or training strategies for SLMs to further improve AI safety.\", \"created_at\": \"2025-08-15 17:25:20\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Small Language Model\", \"type\": \"methodology\", \"description\": \"Small Language Models (SLMs) are being used as guardians to pioneer AI safety.\", \"created_at\": \"2025-08-15 17:25:11\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"RA-ISF: Learning to Answer and Understand from Retrieval Augmentation via Iterative Self-Feedback\", \"type\": \"methodology\", \"description\": \"This methodology, RA-ISF, focuses on learning to answer and understand from retrieval augmentation through iterative self-feedback.\", \"created_at\": \"2025-08-15 17:11:57\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Scissorhands: Exploiting the persistence of importance hypothesis for llm kv cache compression at test time\", \"type\": \"methodology\", \"description\": \"This methodology, Scissorhands, exploits the persistence of importance hypothesis for LLM KV cache compression during testing.\", \"created_at\": \"2025-08-15 17:11:57\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"MoE\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning methodology and model design that enhances performance, generalization ability, and computational efficiency, particularly for complex and diverse tasks. MoE operates on a \\\"divide and conquer\\\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This framework allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. MoE leverages specialized \\\"experts\\\" for different tasks or data types, providing a scalable and flexible framework for tackling complex, multifaceted datasets and handling diverse knowledge domains without proportionally increasing computational costs. Expert networks can operate independently and are often integrated into a single network model by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers or CNN layers, with MoE layers, demonstrating high flexibility and broad applicability. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible Natural Language Generation (NLG) systems. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. MoE can alleviate problems in High-Value Content Learning (HVCL) such as known task boundaries and increased computation cost by leveraging multiple experts. MoE is also introduced into the decoder to address the issue of static feature decoding in different task decoders due to shared decoding parameters, which leads to insufficient distinction in task-specific features. MoE decomposes backbone features into task-agnostic features from different aspects, making the decoding process of task-specific features more fine-grained. MoE introduces shared expert modules, domain expert modules, and task expert modules, which learn cross-domain and cross-task common knowledge, domain-specific user preferences, and task-specific user preferences, respectively. This enables models to capture user preferences from multiple perspectives and handle complex dependencies between domains and tasks, allowing for flexible model expansion and handling dependencies between different tasks, making it suitable for visual multi-task models. MoE can be combined with various types of tokens to achieve better learning performance and has been applied in computer vision and natural language processing, showing significant potential, especially in large language models (LLMs). It also enhances the understanding of model behaviors. MoE is an advanced technique that enhances LLM performance andMoE is a technique that enhances LLM performance.\", \"created_at\": \"2025-08-15 16:36:35\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Figure 3\", \"type\": \"connection\", \"description\": \"Figure 3 presents a multifaceted view of model operations and performance, encompassing several distinct aspects. It illustrates the different types of widely used Mixture-of-Experts (MoE) layers. Figure 3 also demonstrates the scaling effect of prompting and finetuning four methods (Standard, CoT, Act, ReAct) on HotpotQA using PaLM-8/62B, noting that prompting ReAct performs the worst in this scenario due to challenges in learning both reasoning and acting from in-context examples. Additionally, Figure 3 illustrates the attention mechanism within the encoder's self-attention in layer 5 of 6, specifically highlighting how different attention heads focus on the distant dependency of the verb 'making' in the phrase 'making...more difficult'. A line graph within Figure 3 shows the outcomes of a self-reflection process, connecting iterations of self-reflection with the count of identified entity references. Furthermore, Figure 3 includes a comparison of subspace similarity through four heatmaps, with the left two displaying similarity between column vectors of ΔWq and ΔWv for a rank (r) of 8, and the right two offering magnified views of the lower-left triangle of the first two, showing similarity for ranks r=8 and r=64, thereby demonstrating the subspace similarity between Ar=8 and Ar=64, with findings generalizable to other layers. Figure 3 also illustrates the impact of extensive local epochs (large E) between averaging steps on the Shakespeare LSTM, with fixed parameters B=10 and C=0.1 and a constant learning rate η=1.47, indicating that for very large numbers of local epochs, FedAvg can plateau or diverge. Finally, Figure 3 illustrates the growing popularity of SLM releases over time.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"A survey of large language models for healthcare: from data, technology, and applications to accountability and ethics\", \"type\": \"abstract\", \"description\": \"This is a survey paper that covers large language models in healthcare, discussing data, technology, applications, accountability, and ethics.\", \"created_at\": \"2025-08-15 17:24:27\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"healthcare\", \"type\": \"abstract\", \"description\": \"Healthcare is a domain where SLMs are being specialized and demonstrated.Healthcare is a domain where foundation models, including Reinforcement Learning (RL) and Mixture of Experts (MoE) models, are being applied. RL plays a pivotal role in decision-making within healthcare, while MoE models are seen as a promising application due to the crucial need to handle diverse and complex tasks. However, healthcare is also a specialized domain where large language models (LLMs) often underperform due to insufficient domain-specific knowledge, highlighting the necessity for specialized models.Healthcare is a high-stakes domain where concerns about AI trustworthiness are critical.\", \"created_at\": \"2025-08-15 16:58:45\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Is On-Device AI Broken and Exploitable? Assessing the Trust and Ethics in Small Language Models\", \"type\": \"discussion\", \"description\": \"This work discusses the potential vulnerabilities, trust, and ethical considerations related to on-device AI, specifically focusing on small language models.\", \"created_at\": \"2025-08-15 17:12:41\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"MobileAIBench: Benchmarking LLMs and LMMs for On-Device Use Cases\", \"type\": \"methodology\", \"description\": \"This is a benchmark designed for evaluating Large Language Models (LLMs) and Large Multimodal Models (LMMs) in the context of on-device applications.\", \"created_at\": \"2025-08-15 17:12:41\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Modular learning systems for soccer robot\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems for soccer robots.This methodology focuses on modular learning systems for soccer robots.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"MoE architectures\", \"type\": \"methodology\", \"description\": \"MoE (Mixture of Experts) architectures are designed to enhance parameter efficiency and manage computational costs effectively. They offer potential improvements in model interpretability by learning intrinsic allocation mechanisms. These architectures possess a sparse nature, necessitating dynamic data allocation, which makes pipeline design a critical factor in their training. While MoE architectures have shown impressive scalability and performance, their theoretical foundations are not yet fully understood. Further research is needed to optimize the design of MoE architectures, particularly in determining the optimal number of experts and their specialization, as current methods often rely on heuristic or static settings that may not be universally optimal for all tasks.MoE architectures are a type of architecture that EdgeMoE aims to improve by reducing latency caused by frequent expert switching in limited device memory.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"intrinsic allocation mechanisms\", \"type\": \"methodology\", \"description\": \"Intrinsic allocation mechanisms are learned by MoE models, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"MoE-LPR\", \"type\": \"methodology\", \"description\": \"MoE-LPR designs a two-phase training strategy for MoE-based models. The first phase converts the original model into an MoE architecture with new expert modules to improve capability for new languages without original data. The second phase uses a small amount of original language data for review and a language prior routing mechanism to restore and maintain original language performance.MoE-LPR employs a language prior routing mechanism to restore and maintain the performance of the original language. It demonstrates excellent scalability and stability.MoE-LPR provides a new perspective for multilingual natural language understanding tasks.\", \"created_at\": \"2025-08-15 15:41:13\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Figure 3\", \"entity2\": \"ReAct\", \"description\": \"Figure 3 shows that prompting ReAct performs worst among four methods on HotpotQA with PaLM-8/62B due to difficulties in learning reasoning and acting.\", \"created_at\": \"2025-08-15 15:58:30\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"AI systems\", \"entity2\": \"model interpretability\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Figure 3\", \"entity2\": \"LLM\", \"description\": \"The LLM is used in the process whose results are displayed in Figure 3.\", \"created_at\": \"2025-08-13 23:38:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"model interpretability\", \"entity2\": \"robust and transparent AI systems\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Figure 3\", \"entity2\": \"Figure 6\", \"description\": \"Figure 6 shows how the results presented in Figure 3 generalize to other layers.\", \"created_at\": \"2025-08-13 23:02:54\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"description\": \"Both entities are related to learning systems, with one focusing on deep RL and the other on multi-agent environments.\", \"created_at\": \"2025-08-15 15:44:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Figure 3\", \"entity2\": \"Figure 7\", \"description\": \"Figure 7 shows how the results presented in Figure 3 generalize to other layers.\", \"created_at\": \"2025-08-13 23:03:02\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"AI Safety\", \"entity2\": \"SLM as Guardian: Pioneering AI Safety with Small Language Model\", \"description\": \"This abstract is about pioneering AI safety using SLMs.\", \"created_at\": \"2025-08-15 17:25:21\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 3\", \"entity2\": \"MoE Layers\", \"description\": \"Figure 3 illustrates the different types of widely used MoE layers.\", \"created_at\": \"2025-08-15 17:38:46\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"SLM as Guardian: Pioneering AI Safety with Small Language Model\", \"entity2\": \"Small Language Model\", \"description\": \"This abstract discusses the use of Small Language Models as guardians for AI safety.\", \"created_at\": \"2025-08-15 17:25:20\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Figure 3\", \"entity2\": \"local epochs\", \"description\": \"Figure 3 visually represents the impact of varying the number of local epochs on model performance.\", \"created_at\": \"2025-08-15 15:09:04\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"RA-ISF: Learning to Answer and Understand from Retrieval Augmentation via Iterative Self-Feedback\", \"entity2\": \"Scissorhands: Exploiting the persistence of importance hypothesis for llm kv cache compression at test time\", \"description\": \"Both are recent methodologies (2024) in the field of language models, focusing on different aspects of model improvement and efficiency.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Ar=64\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows the subspace similarity between Ar=8 and Ar=64.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"AI systems\", \"entity2\": \"MoE\", \"description\": \"MoE opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:13:53\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"4-bit NormalFloat (NF4)\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows that NF4 improves performance.\", \"created_at\": \"2025-08-13 23:07:44\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"A survey of large language models for healthcare: from data, technology, and applications to accountability and ethics\", \"entity2\": \"healthcare\", \"description\": \"The survey specifically addresses the application of LLMs in healthcare.\", \"created_at\": \"2025-08-15 17:24:27\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Ar=8\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows the subspace similarity between Ar=8 and Ar=64.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Is On-Device AI Broken and Exploitable? Assessing the Trust and Ethics in Small Language Models\", \"entity2\": \"MobileAIBench: Benchmarking LLMs and LMMs for On-Device Use Cases\", \"description\": \"Both entries are concerned with on-device AI and language models. The first discusses the trust and ethics of small language models on-device, while the second benchmarks LLMs and LMMs for on-device use cases, indicating a shared focus on the practical application and implications of AI on devices.\", \"created_at\": \"2025-08-15 17:12:43\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Figure 3\", \"entity2\": \"Shakespeare LSTM\", \"description\": \"Figure 3 specifically shows the experimental results for the Shakespeare LSTM model.\", \"created_at\": \"2025-08-15 15:09:03\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning systems for soccer robot\", \"description\": \"Both entities relate to advancements in AI and learning systems, with the former focusing on deep RL and the latter on robotics.\", \"created_at\": \"2025-08-15 15:44:25\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Figure 3\", \"entity2\": \"Standard, CoT, Act, ReAct\", \"description\": \"Figure 3 specifically shows the scaling effect of prompting/finetuning the Standard, CoT, Act, and ReAct methods.\", \"created_at\": \"2025-08-15 17:19:29\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"MoE architectures\", \"entity2\": \"intrinsic allocation mechanisms\", \"description\": \"MoE architectures learn intrinsic allocation mechanisms.\", \"created_at\": \"2025-08-15 15:19:39\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Figure 3\", \"entity2\": \"encoder self-attention in layer 5 of 6\", \"description\": \"Figure 3 provides a visual example of the encoder self-attention in layer 5 of 6, specifically demonstrating how it follows long-distance dependencies.\", \"created_at\": \"2025-08-15 15:04:11\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"MoE\", \"entity2\": \"MoE-LPR\", \"description\": \"MoE-LPR designs a training strategy for MoE-based models.\", \"created_at\": \"2025-08-15 15:41:30\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Figure 3\", \"entity2\": \"verb making\", \"description\": \"Figure 3 shows that many attention heads in the encoder self-attention attend to the verb ‘making’ to capture long-distance dependencies.\", \"created_at\": \"2025-08-15 15:04:11\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Encoder\", \"entity2\": \"Figure 1\", \"description\": \"Figure 1 depicts the encoder as the left half of the Transformer model architecture.\", \"created_at\": \"2025-08-15 14:53:04\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Decoder\", \"entity2\": \"Figure 1\", \"description\": \"Figure 1 depicts the decoder as the right half of the Transformer model architecture.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: React_paper\\nChunk: 59\\n\\nth the help of LLMs, language as a fundamental cognitive mechanism will play a critical role in interaction and decision making. What is more, progress in LLMs has also inspired the development of versatile and generalist agents like Reed et al. (2022). # 6 CONCLUSION We have proposed ReAct – a simple yet effective method for synergizing reasoning and acting in large language models. Through a diverse set of experiments on multi-hop question-answering, fact checking, and interactive decision-making tasks, we show that ReAct leads to superior performance with interpretable decision traces. Despite the simplicity of our method, complex tasks with large action spaces require more demonstrations to learn well, which unfortunately can easily go beyond the input length limit of in-context learning. We explore the fine-tuning approach on HotpotQA with initial promising results, but learning from more high-quality human annotations will be the desiderata to further improve the performance.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 151\\n\\noves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. (b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2106.09685v2\\nChunk: 107\\n\\n# H.1 CORRELATION BETWEEN LORA MODULES See Figure 6 and Figure 7 for how the results presented in Figure 3 and Figure 4 generalize to other layers. # H.2 EFFECT OF $r$ ON GPT-2 We repeat our experiment on the effect of $r$ (Section 7.2) in GPT-2. Using the E2E NLG Challenge dataset as an example, we report the validation loss and test metrics achieved by different choices of $r$ after training for 26,000 steps. We present our result in Table 18. The optimal rank for GPT-2 Medium is between 4 and 16 depending on the metric used, which is similar to that for GPT-3 175B. Note that the relationship between model size and the optimal rank for adaptation is still an open question. # H.3 CORRELATION BETWEEN $W$ AND $\\\\Delta W$ See Figure 8 for the normalized subspace similarity between $W$ and $\\\\Delta W$ with varying $r$ .\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: React_paper\\nChunk: 16\\n\\nl knowledge versus external environments, as well as inspect reasoning traces to understand the decision basis of model actions. To summarize, our key contributions are the following: (1) we introduce ReAct, a novel promptbased paradigm to synergize reasoning and acting in language models for general task solving; (2) we perform extensive experiments across diverse benchmarks to showcase the advantage of ReAct in a few-shot learning setup over prior approaches that perform either reasoning or action generation in isolation; (3) we present systematic ablations and analysis to understand the importance of acting in reasoning tasks, and reasoning in interactive tasks; (4) we analyze the limitations of ReAct under the prompting setup (i.e. limited support of reasoning and acting behaviors), and perform initial finetuning experiments showing the potential of ReAct to improve with additional training data.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: MOE\\nChunk: 86\\n\\n. [97] inserts sparsely activated MoE layers into ViT and computes the model’s loss on the validation set during each iteration. By using the loss as feedback to dynamically increase or decrease the number of experts, the cumbersome process of manually adjusting model size can be avoided. A few works have also attempted to introduce MoE into the decoder. [86] finds that different task decoders, due to shared decoding parameters, result in a static feature decoding process, leading to insufficient distinction in taskspecific features. Therefore, MoE was introduced as a decoder to decompose backbone features into task-agnostic features from different aspects, making the decoding process of taskspecific features more fine-grained. This work also utilizes convolutional operations to expand the receptive field of the gating network, which enriches the contextual information in the decision-making process.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 8.7559, + "rag_initialization_seconds": 4.9353, + "query_execution_seconds": 3.8206, + "start_timestamp": "2025-08-15T18:09:33.598326", + "end_timestamp": "2025-08-15T18:09:42.354199" + }, + "metadata": { + "saved_at": "2025-08-15T18:09:42.354199", + "file_path": "retrieval_logs\\retrieval_20250815_180942_354_mix_k12_ck5_Given_the_foundational_principles_from_Attention_I.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_181548_231_mix_k10_ck5_Consider_the_theoretical_limits_exposed_by_the_sca.json b/retrieval_logs/retrieval_20250815_181548_231_mix_k10_ck5_Consider_the_theoretical_limits_exposed_by_the_sca.json new file mode 100644 index 0000000000000000000000000000000000000000..2bccf477fe029a84e9a5fd1b26bafe2313689b21 --- /dev/null +++ b/retrieval_logs/retrieval_20250815_181548_231_mix_k10_ck5_Consider_the_theoretical_limits_exposed_by_the_sca.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T18:15:48.231699", + "query": "\n Consider the theoretical limits exposed by the scaling laws in large language models, the fundamental bottlenecks identified in 'Communication-Efficient Learning of Deep Networks', the sparse computation principles from Mixture of Experts, the multi-step reasoning patterns in ReAct, and the deployment constraints highlighted in 'Small Language Models in the Era of Large'.\nNow imagine you're designing an AI system for a scenario that current paradigms fundamentally cannot handle: real-time collaborative reasoning across a network of intermittently connected, heterogeneous devices (smartphones, IoT sensors, edge servers) where each device has different computational capabilities, sporadic connectivity, and must contribute to solving complex, multi-step problems that require both local context and global knowledge.\nYour challenge: Design a framework that doesn't just distribute existing approaches, but fundamentally reconceptualizes how attention, communication, expertise, reasoning, and scale interact when the traditional assumptions of stable connectivity, homogeneous compute, and centralized coordination break down.\nSpecifically address: How would attention mechanisms evolve when they must work across asynchronous, unreliable communication channels? How could MoE principles be reimagined when 'experts' are actually different physical devices with varying capabilities? How might ReAct-style reasoning adapt when the 'environment' includes other reasoning agents with partial information?\nDeliver: (1) A paradigm-shifting architectural vision, (2) Novel theoretical principles that emerge from this scenario, (3) Specific mechanisms that exploit the constraints rather than merely tolerate them, and (4) Predictions about capabilities that would be impossible in traditional centralized systems.\"\n \n \n ", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 5, + "text_length": 24629, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Theory of mixture-of-experts for mobile edge computing\", \"type\": \"methodology\", \"description\": \"This refers to the theoretical underpinnings of using mixture-of-experts models within the context of mobile edge computing.\", \"created_at\": \"2025-08-15 15:47:29\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"AI systems\", \"type\": \"discussion\", \"description\": \"AI systems can be designed to be more robust and transparent by leveraging the interpretability offered by Mixture of Experts (MoE) models.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"This paper\", \"type\": \"conclusion\", \"description\": \"This paper aims to provide a comprehensive summary of recent advancements of MoEs in many important fields, addressing the gaps left by existing surveys. It will introduce the basic design of MoE, including gating functions, expert networks, routing mechanisms, training strategies, and system design, and explore the algorithm design of MoE in important machine learning paradigms.This paper provides a comprehensive survey of Small Language Models (SLMs) with up to 7 billion parameters, covering their definition, construction, enhancement techniques, adaptation from LLMs, representative models, applications, deployment, role in augmenting LLMs, and trustworthiness.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"model interpretability\", \"type\": \"discussion\", \"description\": \"Model interpretability is an opportunity offered by Mixture of Experts (MoE) models, achieved by learning intrinsic allocation mechanisms. This process enhances the understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems. Furthermore, model interpretability is enhanced by the combination of reasoning and acting, which allows humans to distinguish between internal knowledge and external environments.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"type\": \"abstract\", \"description\": \"This abstract discusses the use of mixtures of experts to unlock parameter scaling for deep reinforcement learning.This is a citation for a paper discussing mixtures of experts and parameter scaling in deep RL.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Figure 3\", \"type\": \"connection\", \"description\": \"Figure 3 presents a multifaceted view of model operations and performance, encompassing several distinct aspects. It illustrates the different types of widely used Mixture-of-Experts (MoE) layers. Figure 3 also demonstrates the scaling effect of prompting and finetuning four methods (Standard, CoT, Act, ReAct) on HotpotQA using PaLM-8/62B, noting that prompting ReAct performs the worst in this scenario due to challenges in learning both reasoning and acting from in-context examples. Additionally, Figure 3 illustrates the attention mechanism within the encoder's self-attention in layer 5 of 6, specifically highlighting how different attention heads focus on the distant dependency of the verb 'making' in the phrase 'making...more difficult'. A line graph within Figure 3 shows the outcomes of a self-reflection process, connecting iterations of self-reflection with the count of identified entity references. Furthermore, Figure 3 includes a comparison of subspace similarity through four heatmaps, with the left two displaying similarity between column vectors of ΔWq and ΔWv for a rank (r) of 8, and the right two offering magnified views of the lower-left triangle of the first two, showing similarity for ranks r=8 and r=64, thereby demonstrating the subspace similarity between Ar=8 and Ar=64, with findings generalizable to other layers. Figure 3 also illustrates the impact of extensive local epochs (large E) between averaging steps on the Shakespeare LSTM, with fixed parameters B=10 and C=0.1 and a constant learning rate η=1.47, indicating that for very large numbers of local epochs, FedAvg can plateau or diverge. Finally, Figure 3 illustrates the growing popularity of SLM releases over time.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems and scheduling for behavior acquisition in multi-agent environments.This methodology describes a modular learning system and scheduling for behavior acquisition in a multi-agent environment.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"robust and transparent AI systems\", \"type\": \"possible enhancements\", \"description\": \"Designing more robust and transparent AI systems is an avenue opened by the interpretability of MoE models.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Learning multiple collaborative tasks with a mixture of interaction primitives\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by M. Ewerton, G. Neumann, R. Lioutikov, H. B. Amor, J. Peters, and G. Maeda, and was presented at the 2015 IEEE International Conference on Robotics and Automation (ICRA).\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Mixtures of experts for scaling up neural networks in order execution\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by K. Li, M. Cucuringu, L. Sanchez-Betancourt, and T. Willi, and was presented at the 5th ACM International Conference on AI in Finance in 2024.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"MoE\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning methodology and model design that enhances performance, generalization ability, and computational efficiency, particularly for complex and diverse tasks. MoE operates on a \\\"divide and conquer\\\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This framework allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. MoE leverages specialized \\\"experts\\\" for different tasks or data types, providing a scalable and flexible framework for tackling complex, multifaceted datasets and handling diverse knowledge domains without proportionally increasing computational costs. Expert networks can operate independently and are often integrated into a single network model by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers or CNN layers, with MoE layers, demonstrating high flexibility and broad applicability. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible Natural Language Generation (NLG) systems. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. MoE can alleviate problems in High-Value Content Learning (HVCL) such as known task boundaries and increased computation cost by leveraging multiple experts. MoE is also introduced into the decoder to address the issue of static feature decoding in different task decoders due to shared decoding parameters, which leads to insufficient distinction in task-specific features. MoE decomposes backbone features into task-agnostic features from different aspects, making the decoding process of task-specific features more fine-grained. MoE introduces shared expert modules, domain expert modules, and task expert modules, which learn cross-domain and cross-task common knowledge, domain-specific user preferences, and task-specific user preferences, respectively. This enables models to capture user preferences from multiple perspectives and handle complex dependencies between domains and tasks, allowing for flexible model expansion and handling dependencies between different tasks, making it suitable for visual multi-task models. MoE can be combined with various types of tokens to achieve better learning performance and has been applied in computer vision and natural language processing, showing significant potential, especially in large language models (LLMs). It also enhances the understanding of model behaviors. MoE is an advanced technique that enhances LLM performance andMoE is a technique that enhances LLM performance.\", \"created_at\": \"2025-08-15 16:36:35\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Movement primitive learning and generalization: Using mixture density networks\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by Y. Zhou, J. Gao, and T. Asfour, and was published in IEEE Robotics & Automation Magazine in 2020.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Alfred: A benchmark for interpreting grounded instructions for everyday tasks\", \"type\": \"methodology\", \"description\": \"This refers to a benchmark for interpreting grounded instructions for everyday tasks, presented in the Proceedings of the IEEE/CVF conference on computer vision and pattern recognition in 2020.\", \"created_at\": \"2025-08-15 16:07:01\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Alfworld: Aligning text and embodied environments for interactive learning\", \"type\": \"methodology\", \"description\": \"This entry appears to be a citation for a methodology related to aligning text and embodied environments for interactive learning.This refers to a methodology or environment for aligning text and embodied environments for interactive learning.\", \"created_at\": \"2025-08-15 16:07:01\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Modular learning systems for soccer robot\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems for soccer robots.This methodology focuses on modular learning systems for soccer robots.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"A generalist agent\", \"type\": \"methodology\", \"description\": \"This refers to a methodology or concept related to generalist agents, published in 2022 with a URL provided.\", \"created_at\": \"2025-08-15 16:07:01\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Scratchpads for intermediate computation with language models\", \"type\": \"methodology\", \"description\": \"This refers to a methodology or tool for intermediate computation with language models, published in 2021 with a URL provided.\", \"created_at\": \"2025-08-15 16:07:01\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Acquiring diverse skills using curriculum reinforcement learning with mixture of experts\", \"type\": \"methodology\", \"description\": \"This methodology involves acquiring diverse skills through curriculum reinforcement learning, utilizing a mixture of experts.\", \"created_at\": \"2025-08-15 15:49:41\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Pecan: Leveraging policy ensemble for context-aware zero-shot human-ai coordination\", \"type\": \"methodology\", \"description\": \"This methodology, Pecan, uses policy ensembles for context-aware zero-shot human-AI coordination.\", \"created_at\": \"2025-08-15 15:49:41\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Figure 3\", \"entity2\": \"ReAct\", \"description\": \"Figure 3 shows that prompting ReAct performs worst among four methods on HotpotQA with PaLM-8/62B due to difficulties in learning reasoning and acting.\", \"created_at\": \"2025-08-15 15:58:30\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"AI systems\", \"entity2\": \"model interpretability\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Small Language Models (SLMs)\", \"entity2\": \"This paper\", \"description\": \"The paper provides a comprehensive survey of Small Language Models (SLMs), detailing their definition, construction, enhancements, adaptation from LLMs, applications, deployment, and trustworthiness.\", \"created_at\": \"2025-08-15 17:08:04\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"description\": \"Both entities are related to learning systems, with one focusing on deep RL and the other on multi-agent environments.\", \"created_at\": \"2025-08-15 15:44:26\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Figure 3\", \"entity2\": \"LLM\", \"description\": \"The LLM is used in the process whose results are displayed in Figure 3.\", \"created_at\": \"2025-08-13 23:38:01\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"model interpretability\", \"entity2\": \"robust and transparent AI systems\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"This paper\", \"description\": \"This paper aims to provide a comprehensive summary of recent advancements of MoEs, addressing gaps in existing surveys.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Learning multiple collaborative tasks with a mixture of interaction primitives\", \"entity2\": \"Mixtures of experts for scaling up neural networks in order execution\", \"description\": \"Both methodologies involve mixtures of experts and are related to learning and execution in robotics or AI contexts.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 3\", \"entity2\": \"Figure 6\", \"description\": \"Figure 6 shows how the results presented in Figure 3 generalize to other layers.\", \"created_at\": \"2025-08-13 23:02:54\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"AI systems\", \"entity2\": \"MoE\", \"description\": \"MoE opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:13:53\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Figure 3\", \"entity2\": \"Figure 7\", \"description\": \"Figure 7 shows how the results presented in Figure 3 generalize to other layers.\", \"created_at\": \"2025-08-13 23:03:02\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Mixtures of experts for scaling up neural networks in order execution\", \"entity2\": \"Movement primitive learning and generalization: Using mixture density networks\", \"description\": \"Both methodologies utilize mixture-based approaches for learning and generalization in AI/robotics.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Figure 3\", \"entity2\": \"MoE Layers\", \"description\": \"Figure 3 illustrates the different types of widely used MoE layers.\", \"created_at\": \"2025-08-15 17:38:46\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Alfred: A benchmark for interpreting grounded instructions for everyday tasks\", \"entity2\": \"Alfworld: Aligning text and embodied environments for interactive learning\", \"description\": \"Both are works by Mohit Shridhar and others, focusing on embodied learning and instruction following in AI.\", \"created_at\": \"2025-08-15 16:07:03\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Figure 3\", \"entity2\": \"local epochs\", \"description\": \"Figure 3 visually represents the impact of varying the number of local epochs on model performance.\", \"created_at\": \"2025-08-15 15:09:04\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning systems for soccer robot\", \"description\": \"Both entities relate to advancements in AI and learning systems, with the former focusing on deep RL and the latter on robotics.\", \"created_at\": \"2025-08-15 15:44:25\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Ar=64\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows the subspace similarity between Ar=8 and Ar=64.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"A generalist agent\", \"entity2\": \"Scratchpads for intermediate computation with language models\", \"description\": \"Both are cited as publications related to AI research, suggesting a connection in the field.\", \"created_at\": \"2025-08-15 16:07:03\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Ar=8\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows the subspace similarity between Ar=8 and Ar=64.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Acquiring diverse skills using curriculum reinforcement learning with mixture of experts\", \"entity2\": \"Pecan: Leveraging policy ensemble for context-aware zero-shot human-ai coordination\", \"description\": \"Both methodologies are related to reinforcement learning and the use of ensembles, with Pecan focusing on human-AI coordination.\", \"created_at\": \"2025-08-15 15:49:53\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"4-bit NormalFloat (NF4)\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows that NF4 improves performance.\", \"created_at\": \"2025-08-13 23:07:44\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Figure 3\", \"entity2\": \"Shakespeare LSTM\", \"description\": \"Figure 3 specifically shows the experimental results for the Shakespeare LSTM model.\", \"created_at\": \"2025-08-15 15:09:03\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Figure 3\", \"entity2\": \"Standard, CoT, Act, ReAct\", \"description\": \"Figure 3 specifically shows the scaling effect of prompting/finetuning the Standard, CoT, Act, and ReAct methods.\", \"created_at\": \"2025-08-15 17:19:29\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Figure 3\", \"entity2\": \"encoder self-attention in layer 5 of 6\", \"description\": \"Figure 3 provides a visual example of the encoder self-attention in layer 5 of 6, specifically demonstrating how it follows long-distance dependencies.\", \"created_at\": \"2025-08-15 15:04:11\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Figure 3\", \"entity2\": \"verb making\", \"description\": \"Figure 3 shows that many attention heads in the encoder self-attention attend to the verb ‘making’ to capture long-distance dependencies.\", \"created_at\": \"2025-08-15 15:04:11\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Existing surveys on MoE\", \"entity2\": \"This paper\", \"description\": \"This paper aims to address the limitations of existing surveys on MoE.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: React_paper\\nChunk: 59\\n\\nth the help of LLMs, language as a fundamental cognitive mechanism will play a critical role in interaction and decision making. What is more, progress in LLMs has also inspired the development of versatile and generalist agents like Reed et al. (2022). # 6 CONCLUSION We have proposed ReAct – a simple yet effective method for synergizing reasoning and acting in large language models. Through a diverse set of experiments on multi-hop question-answering, fact checking, and interactive decision-making tasks, we show that ReAct leads to superior performance with interpretable decision traces. Despite the simplicity of our method, complex tasks with large action spaces require more demonstrations to learn well, which unfortunately can easily go beyond the input length limit of in-context learning. We explore the fine-tuning approach on HotpotQA with initial promising results, but learning from more high-quality human annotations will be the desiderata to further improve the performance.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 151\\n\\noves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. (b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: React_paper\\nChunk: 39\\n\\nFurthermore, Figure 2 shows how different methods perform with respect to the number of $\\\\\\\\mathsf { C o T - S C }$ samples used. While two $\\\\\\\\mathrm { R e a c t } + \\\\\\\\mathrm { C o T } - \\\\\\\\mathrm { S C }$ methods are advantageous at one task each, they both significantly and consistently outperform CoT-SC across different number of samples, reaching $\\\\\\\\mathsf { C o T - S C }$ performance with 21 samples using merely 3-5 samples. These results indicate the value of properly combining model internal knowledge and external knowledge for reasoning tasks. ReAct performs best for fine-tuning Figure 3 shows the scaling effect of prompting/finetuning four methods (Standard, CoT, Act, ReAct) on HotpotQA. With PaLM-8/62B, prompting ReAct performs worst among four methods due to the difficulty to learn both reasoning and acting from in-context examples.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: MOE\\nChunk: 5\\n\\nn multimodal data (e.g., text, images, and audio) and exhibit intricate structures (e.g., graphs or hierarchical relationships). This diversity and complexity introduce two significant challenges: (1) the computational cost of training and deploying large models grows exponentially, making it unsustainable for many applications [11], and (2) integrating conflicting or heterogeneous knowledge within a single model becomes increasingly difficult, often leading to unstable training dynamics and suboptimal performance [12]. These challenges underscore the need for more efficient and scalable architectures capable of meeting the growing demands of modern AI tasks. One promising approach to addressing these challenges is the Mixture of Experts (MoE) architecture, which has attracted much attention recently. Originally proposed in [13], [14], MoE adopts a “divide and conquer” strategy that fundamentally differs from traditional dense models.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: MOE\\nChunk: 86\\n\\n. [97] inserts sparsely activated MoE layers into ViT and computes the model’s loss on the validation set during each iteration. By using the loss as feedback to dynamically increase or decrease the number of experts, the cumbersome process of manually adjusting model size can be avoided. A few works have also attempted to introduce MoE into the decoder. [86] finds that different task decoders, due to shared decoding parameters, result in a static feature decoding process, leading to insufficient distinction in taskspecific features. Therefore, MoE was introduced as a decoder to decompose backbone features into task-agnostic features from different aspects, making the decoding process of taskspecific features more fine-grained. This work also utilizes convolutional operations to expand the receptive field of the gating network, which enriches the contextual information in the decision-making process.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 9.0317, + "rag_initialization_seconds": 5.1826, + "query_execution_seconds": 3.8492, + "start_timestamp": "2025-08-15T18:15:39.199986", + "end_timestamp": "2025-08-15T18:15:48.231699" + }, + "metadata": { + "saved_at": "2025-08-15T18:15:48.231699", + "file_path": "retrieval_logs\\retrieval_20250815_181548_231_mix_k10_ck5_Consider_the_theoretical_limits_exposed_by_the_sca.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_182047_098_mix_k12_ck5_The_current_AI_agent_paradigm_is_fundamentally_con.json b/retrieval_logs/retrieval_20250815_182047_098_mix_k12_ck5_The_current_AI_agent_paradigm_is_fundamentally_con.json new file mode 100644 index 0000000000000000000000000000000000000000..d2ba1f474ddd477227ac5e253a35bbc6a6e2d82d --- /dev/null +++ b/retrieval_logs/retrieval_20250815_182047_098_mix_k12_ck5_The_current_AI_agent_paradigm_is_fundamentally_con.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T18:20:47.098161", + "query": "\n \"The current AI agent paradigm is fundamentally constrained by sequential reasoning, reactive planning, and centralized decision-making inherited from single-model architectures. Given the foundational insights from 'Attention Is All You Need' about parallel processing, the communication principles in 'Communication-Efficient Learning of Deep Networks', the sparse specialization in Mixture of Experts, the reasoning-action cycles in ReAct, and the efficiency paradigms in 'Small Language Models in the Era of Large', envision a complete reconceptualization of what an AI agent could be.\nChallenge: Design an agent architecture that transcends the current limitations of:\n\nLinear thought processes (thinking then acting)\nDiscrete planning phases (plan-execute cycles)\nSingle-point-of-consciousness decision making\nReactive environmental interaction\nStatic skill sets and rigid role definitions\n\nYour revolutionary framework should address: How could agents develop continuous, parallel reasoning streams that operate simultaneously across multiple abstraction levels? How might emergent specialization allow agents to dynamically spawn sub-agents with complementary capabilities? How could predictive environmental modeling enable proactive rather than reactive intelligence? How might meta-cognitive awareness allow agents to recursively improve their own reasoning architectures?\nFocus on identifying completely new emergent properties that arise when these five research threads converge, rather than optimizing existing agent paradigms.\nProvide: (1) A fundamentally new conception of agency and consciousness in AI, (2) Novel architectural principles that break current limitations, (3) Specific mechanisms for continuous self-improvement and adaptation, (4) Predictions about agent capabilities that would fundamentally change human-AI interaction paradigms.\"\n ", + "query_mode": "mix", + "top_k": 12, + "chunk_top_k": 5, + "text_length": 60516, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"ABSTRACT\", \"type\": \"abstract\", \"description\": \"While large language models (LLMs) have demonstrated impressive performance across tasks in language understanding and interactive decision making, their abilities for reasoning (e.g. chain-of-thought prompting) and acting (e.g. action plan generation) have primarily been studied as separate topics.\", \"created_at\": \"2025-08-15 15:51:59\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"agents\", \"type\": \"methodology\", \"description\": \"Agents are entities that learn and make decisions in Reinforcement Learning environments.Agents are entities that learn diverse skills to enhance their ability to handle complex tasks.agents are entities that operate within complex environments like ALFWorld and WebShop, requiring them to act over long horizons with sparse rewards and utilize reasoning to explore effectively.\", \"created_at\": \"2025-08-15 16:01:26\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Language models as zero-shot planners: Extracting actionable knowledge for embodied agents\", \"type\": \"abstract\", \"description\": \"This paper, authored by Wenlong Huang, Pieter Abbeel, Deepak Pathak, and Igor Mordatch, was published as an arXiv preprint in 2022a.\", \"created_at\": \"2025-08-15 16:05:42\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"representation collapse\", \"type\": \"discussion\", \"description\": \"Representation collapse into similar representations limits the generalization ability of agents.\", \"created_at\": \"2025-08-15 15:25:30\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"ReAct\", \"type\": \"methodology\", \"description\": \"ReAct is a methodology that can be improved with additional training data and scaled up to train and operate on more tasks. It can be combined with complementary paradigms like reinforcement learning to further unlock the potential of large language models.ReAct is a novel prompt-based paradigm and methodology designed to enhance the performance of large language models (LLMs) by synergizing reasoning and acting for general task solving. It operates by augmenting an agent's action space to include a language space for thoughts or reasoning traces, which are distinct in that they do not affect the external environment and do not provide observation feedback.\\n\\nThe methodology prompts LLMs to generate verbal reasoning traces and interleaves reasoning, action, and observation steps. This process is grounded, fact-driven, and trustworthy due to ReAct's access to an external knowledge base, which is critical for successful information retrieval via search. ReAct explicitly models thinking and reasoning procedures, enabling interaction with external sources such as APIs and environments like Wikipedia for information gathering through task-specific actions. Its reasoning traces are flexible and sparse, allowing for diverse reasoning types to be induced for different tasks, and it works for diverse tasks with distinct action spaces and reasoning needs due to its flexible thought space and thought-action occurrence format. ReAct assists in inducing, tracking, and updating action plans, handling exceptions, and incorporating additional information into reasoning. It is capable of knowledge-intensive reasoning tasks, such as multi-hop question answering and fact verification, demonstrating a synergy between reasoning and acting by interacting with external environments to retrieve information and using reasoning to determine what information to retrieve next. ReAct also allows for modification of a model's internal belief, reasoning styles, or anything supported by a flexible thought space for better task solving, and is capable of updating goals or subgoals, with a sequence of subgoals concretely captured by each thought. It can also be a behavior correction example with a human-in-the-loop.\\n\\nIn terms of performance, ReAct demonstrates significantly better results than previous methods on various benchmarks like Webshop and HotpotQA, showing improvements in success rate and a reduction in reasoning errors and hallucination compared to Chain-of-Thought (CoT). It outperforms other prompting methods, vanilla action generation models, and imitation or reinforcement learning methods on tasks like ALFWorld and Webshop, often with fewer task instances. While generally improving groundedness and trustworthiness, ReAct can exhibit a higher reasoning error rate than Chain-of-Thought in some cases, with a frequent error pattern involving repetitive generation of previous thoughts and actions. Despite this, it consistently addresses shortcomings in subgoal identification and item location by incorporating commonsense reasoning. ReAct shows strong generalization to new task instances while learning solely from a few in-context examples. It also offers benefits when finetuning is enabled, and its performance is robust to prompt selections. ReAct promises an interpretable sequential decision-making and reasoning process where humans can easily inspect reasoning and factual correctness, and can control or correct agent behavior on the go by thought editing. It has been tested on language-based interactive decision-making tasks like ALFWorld and WebShop, which feature complex environments requiring agents to act over long horizons with sparse rewards, thus needing reasoning to act and explore effectively. For instance, in the ALFWorld game, ReAct has demonstrated the ability to correctly find a knife, clean it, and then place it on a countertop. It can interact with a Wikipedia API for tasks like HotPotQA and Fever. ReAct is a methodology that can be improved with additional training data and scaled up to train and operate on more tasks, and it can be combined with complementary paradigms like reinforcement learning to further unlock the potential of large language models.\", \"created_at\": \"2025-08-15 15:51:52\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"MoE architecture\", \"type\": \"methodology\", \"description\": \"The MoE (Mixture of Experts) architecture is a structural design in machine learning, particularly prominent in large language models, characterized by the use of specialized \\\"expert\\\" networks dynamically selected by a gating function. This specialization allows individual experts to focus on distinct knowledge domains, thereby enhancing the MoE architecture's overall performance, generalization capabilities, and computational efficiency. The MoE architecture excels at handling diverse knowledge within data, leading to improved algorithm designs and finding applications across various machine learning paradigms, including computer vision and natural language processing. Its flexibility and scalability make it suitable for edge deployment and capacity scaling of large models, and it holds potential for developing unified multi-modal large language models.\\n\\nThe MoE architecture alleviates hardware pressure through sparse activation and a divide-and-conquer strategy, reducing computational costs and enhancing model performance, especially in multi-task, low-resource, and complex reasoning scenarios, while also supporting personalized services. It has been utilized in MENTOR for action generations and explored in reinforcement learning domains like multi-agent RL and imitation learning. The MoE architecture is also leveraged to solve integrated training problems for multiple tasks, overcoming inconsistencies in input and output formats, and has been applied in CLIP-MoE to enhance the CLIP model's capabilities. However, it's important to note that the MoE architecture is a framework that can be integrated with different object detectors, but simply adding different detectors does not guarantee improved model performance and can even have adverse effects due to competition among detectors. Discussions surrounding the MoE architecture often delve into its basic designs, training strategies, synergy with machine learning algorithms, recent theoretical advancements, and how factors like the number of expert networks, MoE layers, and their placement influence performance, efficiency, and stability. The MoE architecture inherently possesses better transparency.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed. However, it incurs significant memory overhead, making it impractical for edge device memory constraints.\", \"created_at\": \"2025-08-15 16:46:35\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"multi-agent RL\", \"type\": \"methodology\", \"description\": \"Multi-agent RL is a domain where the application of MoE has been explored.\", \"created_at\": \"2025-08-15 15:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"AI systems\", \"type\": \"discussion\", \"description\": \"AI systems can be designed to be more robust and transparent by leveraging the interpretability offered by Mixture of Experts (MoE) models.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"model interpretability\", \"type\": \"discussion\", \"description\": \"Model interpretability is an opportunity offered by Mixture of Experts (MoE) models, achieved by learning intrinsic allocation mechanisms. This process enhances the understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems. Furthermore, model interpretability is enhanced by the combination of reasoning and acting, which allows humans to distinguish between internal knowledge and external environments.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"reinforcement learning\", \"type\": \"methodology\", \"description\": \"Reinforcement learning (RL) is a machine learning paradigm that can be combined with ReAct to create more robust agents. RL is also a suitable approach for applying Mixture of Experts (MoE) based algorithms and can dynamically adjust MoE model architectures based on task complexity and data distribution. While RL is a technique used to improve adaptability and efficiency, and is employed to train rewriters with downstream LLM performance as the reward, it is outperformed by ReAct in interactive decision-making benchmarks.Reinforcement learning is a complementary paradigm that can be combined with ReAct.Reinforcement learning is a complementary paradigm that can be combined with ReAct.\", \"created_at\": \"2025-08-15 17:30:54\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"task complexity\", \"type\": \"discussion\", \"description\": \"Task complexity is a factor that reinforcement learning can use to dynamically adjust the architecture of MoE models.\", \"created_at\": \"2025-08-15 15:42:56\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"MoE architectures\", \"type\": \"methodology\", \"description\": \"MoE (Mixture of Experts) architectures are designed to enhance parameter efficiency and manage computational costs effectively. They offer potential improvements in model interpretability by learning intrinsic allocation mechanisms. These architectures possess a sparse nature, necessitating dynamic data allocation, which makes pipeline design a critical factor in their training. While MoE architectures have shown impressive scalability and performance, their theoretical foundations are not yet fully understood. Further research is needed to optimize the design of MoE architectures, particularly in determining the optimal number of experts and their specialization, as current methods often rely on heuristic or static settings that may not be universally optimal for all tasks.MoE architectures are a type of architecture that EdgeMoE aims to improve by reducing latency caused by frequent expert switching in limited device memory.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"intrinsic allocation mechanisms\", \"type\": \"methodology\", \"description\": \"Intrinsic allocation mechanisms are learned by MoE models, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"type\": \"abstract\", \"description\": \"This abstract discusses the use of mixtures of experts to unlock parameter scaling for deep reinforcement learning.This is a citation for a paper discussing mixtures of experts and parameter scaling in deep RL.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems and scheduling for behavior acquisition in multi-agent environments.This methodology describes a modular learning system and scheduling for behavior acquisition in a multi-agent environment.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"robust and transparent AI systems\", \"type\": \"possible enhancements\", \"description\": \"Designing more robust and transparent AI systems is an avenue opened by the interpretability of MoE models.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"imitation learning\", \"type\": \"methodology\", \"description\": \"Imitation learning is a domain where the application of MoE has been explored, specifically in robot table tennis.Imitation learning is a method that ReAct outperforms in interactive decision making benchmarks.\", \"created_at\": \"2025-08-15 15:52:07\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"affordance model\", \"type\": \"methodology\", \"description\": \"An affordance model is used to rerank robot actions based on visual environments.\", \"created_at\": \"2025-08-15 16:08:08\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"robot actions\", \"type\": \"abstract\", \"description\": \"Robot actions are reranked by an affordance model grounded on visual environments for final prediction.\", \"created_at\": \"2025-08-15 16:08:11\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"data distribution\", \"type\": \"discussion\", \"description\": \"Data distribution is a crucial factor in reinforcement learning, enabling dynamic adjustments to the architecture of Mixture-of-Experts (MoE) models. Specifically, the distinction between Independent and Identically Distributed (IID) and Non-IID data distributions is a key area of investigation for its impact on training performance. This difference between IID and Non-IID data distributions has been highlighted as a factor affecting the convergence of Convolutional Neural Network (CNN) training on MNIST data. Furthermore, the data distribution of tasks is utilized by each Mixture-of-Experts (MoE) service station, acting as an expert model, to update its local model.\", \"created_at\": \"2025-08-15 15:43:01\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"MixER\", \"type\": \"methodology\", \"description\": \"MixER augments existing contextual meta-learning approaches with the Top-1 MoE architecture. It consists of multiple experts, each corresponding to a meta-model to capture shared knowledge, and a linear gating function that takes context information as input. An unsupervised routing mechanism is designed to optimize MoE-based models.\", \"created_at\": \"2025-08-15 15:20:25\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"Top-1 MoE architecture\", \"type\": \"methodology\", \"description\": \"A Top-1 MoE architecture is used, consisting of experts trained for different basic skills and a router responsible for assigning tasks to these experts.This architecture is used to augment existing contextual meta-learning approaches in MixER.\", \"created_at\": \"2025-08-15 15:34:29\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LLMs\", \"entity2\": \"ReAct\", \"description\": \"ReAct is a method for synergizing reasoning and acting in large language models, indicating a direct application or enhancement of LLMs.\", \"created_at\": \"2025-08-15 16:03:29\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"agents\", \"entity2\": \"representation collapse\", \"description\": \"Representation collapse limits the generalization ability of agents.\", \"created_at\": \"2025-08-15 15:25:31\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Figure 2\", \"entity2\": \"ReAct\", \"description\": \"Figure 2 compares the performance of ReAct with other methods, showing a direct relationship in terms of comparative analysis.\", \"created_at\": \"2025-08-15 15:54:47\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"MoE architecture\", \"entity2\": \"multi-agent RL\", \"description\": \"The MoE architecture has been explored in multi-agent RL.\", \"created_at\": \"2025-08-15 15:29:58\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Act\", \"entity2\": \"ReAct\", \"description\": \"ReAct is presented as a superior or alternative methodology to Act, as ReAct uses reasoning to find products that satisfy all target attributes, which is implied to be a capability Act lacks or performs less effectively.The ReAct method demonstrates superior performance compared to the Act method across various tasks. Specifically, ReAct achieves significantly better performance than Act on Webshop, showing an absolute 10% improvement in success rate due to additional sparse reasoning. Furthermore, ReAct outperforms Act on both the HotpotQA and Fever tasks, highlighting the benefit of reasoning in guiding actions. Both ReAct and Act methods generally benefit from an increased number of training steps. The difference in their approach is further emphasized by ReAct's ability to use reasoning to find products that satisfy all target attributes, suggesting a more effective strategy than Act.\", \"created_at\": \"2025-08-15 16:10:56\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"AI systems\", \"entity2\": \"model interpretability\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Figure 3\", \"entity2\": \"ReAct\", \"description\": \"Figure 3 shows that prompting ReAct performs worst among four methods on HotpotQA with PaLM-8/62B due to difficulties in learning reasoning and acting.\", \"created_at\": \"2025-08-15 15:58:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"reinforcement learning\", \"entity2\": \"task complexity\", \"description\": \"Reinforcement learning can dynamically adjust the architecture of MoE models based on task complexity.\", \"created_at\": \"2025-08-15 15:43:02\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"CoT\", \"entity2\": \"ReAct\", \"description\": \"Finetuning CoT is significantly worse than finetuning ReAct for both PaLM8/62B.ReAct has a higher reasoning error rate than CoT due to structural constraints in ReAct.ReAct exhibits a higher reasoning error rate compared to CoT due to structural constraints.\", \"created_at\": \"2025-08-15 17:20:04\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"MoE architectures\", \"entity2\": \"intrinsic allocation mechanisms\", \"description\": \"MoE architectures learn intrinsic allocation mechanisms.\", \"created_at\": \"2025-08-15 15:19:39\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"ReAct\", \"entity2\": \"Table 10\", \"description\": \"Table 10 shows example trajectories predicted by ReAct, illustrating its performance and methodology.\", \"created_at\": \"2025-08-15 16:10:57\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"description\": \"Both entities are related to learning systems, with one focusing on deep RL and the other on multi-agent environments.\", \"created_at\": \"2025-08-15 15:44:26\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"ReAct\", \"entity2\": \"reinforcement learning\", \"description\": \"ReAct can be combined with reinforcement learning to further unlock the potential of large language models.\", \"created_at\": \"2025-08-15 17:31:17\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"model interpretability\", \"entity2\": \"robust and transparent AI systems\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"HotPotQA\", \"entity2\": \"ReAct\", \"description\": \"ReAct is a framework applied to knowledge-intensive reasoning tasks, and it has been specifically utilized and evaluated on the HotPotQA dataset, which focuses on multi-hop question answering. On HotPotQA, ReAct demonstrates superior performance compared to vanilla action generation models. Furthermore, ReAct is competitive with chain-of-thought (CoT) reasoning approaches when evaluated on the HotPotQA dataset.ReAct is used for HotPotQA.ReAct outperforms vanilla action generation models while being competitive with chain-of-thought reasoning (CoT) on HotPotQA.\", \"created_at\": \"2025-08-15 17:29:42\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"MoE architecture\", \"entity2\": \"imitation learning\", \"description\": \"The MoE architecture has been explored in imitation learning.\", \"created_at\": \"2025-08-15 15:29:59\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"AlfWorld task-specific success rates\", \"entity2\": \"ReAct\", \"description\": \"The performance of ReAct is measured by AlfWorld task-specific success rates.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"affordance model\", \"entity2\": \"robot actions\", \"description\": \"Robot actions are reranked by the affordance model.\", \"created_at\": \"2025-08-15 16:08:24\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"ReAct\", \"entity2\": \"Standard\", \"description\": \"Finetuning Standard is significantly worse than finetuning ReAct for both PaLM8/62B.ReAct and Act methods generally benefit from more training steps, while Standard and CoT methods degrade soon after finetuning.ReAct is contrasted with Standard, which fails due to hallucination, while ReAct succeeds by retrieving up-to-date information.\", \"created_at\": \"2025-08-15 16:09:33\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"data distribution\", \"entity2\": \"reinforcement learning\", \"description\": \"Reinforcement learning can dynamically adjust the architecture of MoE models based on data distribution.\", \"created_at\": \"2025-08-15 15:43:03\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"HotpotQA\", \"entity2\": \"ReAct\", \"description\": \"\\\"ReAct sometimes disagrees with dataset labels from HotpotQA because the labels could be outdated, impacting its performance on questions related to the dataset.\\\")ReAct is evaluated on the HotpotQA benchmark for question answering, demonstrating its effectiveness in overcoming hallucination and error propagation.ReAct's performance is evaluated on HotpotQA, where prompting it with PaLM-8/62B leads to poor results.\", \"created_at\": \"2025-08-15 16:09:33\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"MixER\", \"entity2\": \"Top-1 MoE architecture\", \"description\": \"MixER augments existing contextual meta-learning approaches with the Top-1 MoE architecture.\", \"created_at\": \"2025-08-15 15:20:29\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"CoT-SC\", \"entity2\": \"ReAct\", \"description\": \"The text proposes incorporating ReAct and CoT-SC, suggesting a complementary relationship where one can back off to the other based on specific conditions.\", \"created_at\": \"2025-08-15 16:00:33\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"ReAct\", \"entity2\": \"sparse, versatile reasoning\", \"description\": \"The text demonstrates the importance of sparse, versatile reasoning in decision making by showing consistent advantages over controlled baselines with actions only, implying ReAct benefits from this.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"FEVER\", \"entity2\": \"ReAct\", \"description\": \"ReAct is applied to knowledge-intensive reasoning tasks, and FEVER is one of the datasets used for these tasks, specifically fact verification.\", \"created_at\": \"2025-08-15 15:56:34\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"ALFWorld\", \"entity2\": \"ReAct\", \"description\": \"ReAct is a prompting method that has been extensively evaluated and tested on ALFWorld. ALFWorld is characterized as a synthetic text-based game and a benchmark specifically designed for interactive decision-making. It is further noted that ALFWorld is designed to align with the embodied ALFRED benchmark and presents complex decision-making challenges. On this ALFWorld benchmark, ReAct prompting consistently demonstrates superior performance, outperforming other methods such as imitation learning or reinforcement learning, even when these alternative methods are trained with a large number of task instances.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"AlfWorld\", \"entity2\": \"ReAct\", \"description\": \"ReAct is demonstrated in AlfWorld through a human-in-the-loop behavior correction example.\", \"created_at\": \"2025-08-15 17:30:07\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"PaLM-62B\", \"entity2\": \"ReAct\", \"description\": \"PaLM-62B finetuned ReAct outperforms all 540B prompting methods.ReAct is finetuned on PaLM-62B for 4,000 steps.\", \"created_at\": \"2025-08-15 16:04:23\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"ReAct\", \"entity2\": \"language\", \"description\": \"The ReAct methodology augments the agent's action space with the space of language.\", \"created_at\": \"2025-08-15 17:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"ReAct\", \"entity2\": \"trustworthiness\", \"description\": \"ReAct demonstrates improved trustworthiness compared to baselines.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"ReAct\", \"entity2\": \"TRAJECTORIES\", \"description\": \"ReAct produces TRAJECTORIES.\", \"created_at\": \"2025-08-15 16:15:36\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Fever\", \"entity2\": \"ReAct\", \"description\": \"ReAct is a model that has been evaluated on the Fever benchmark for fact verification. This evaluation demonstrates ReAct's effectiveness in overcoming hallucination and error propagation. Furthermore, ReAct outperforms vanilla action generation models on Fever, and is competitive with chain-of-thought reasoning (CoT) on the same benchmark.ReAct is used for Fever.ReAct outperforms vanilla action generation models while being competitive with chain-of-thought reasoning (CoT) on Fever.\", \"created_at\": \"2025-08-15 17:30:03\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"PaLM-8B\", \"entity2\": \"ReAct\", \"description\": \"ReAct is finetuned on PaLM-8B, a process that involved 4,000 steps. This finetuned PaLM-8B, when combined with ReAct, demonstrates superior performance, specifically outperforming all PaLM-62B prompting methods.\", \"created_at\": \"2025-08-15 17:30:12\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"ReAct\", \"entity2\": \"chain-of-thought reasoning (CoT)\", \"description\": \"ReAct is competitive with chain-of-thought reasoning (CoT) on HotPotQA and Fever datasets.ReAct is competitive with chain-of-thought reasoning (CoT), and their combination is the best approach overall.ReAct is competitive with chain-of-thought reasoning (CoT), and their combination is the best approach overall.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Example 3208\", \"entity2\": \"ReAct\", \"description\": \"ReAct is the methodology that Example 3208 is illustrating.\", \"created_at\": \"2025-08-15 16:10:57\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"ReAct\", \"entity2\": \"reasoning traces\", \"description\": \"ReAct's performance demonstrates the value of reasoning to guide acting, and fine-tuning results confirm the benefit of reasoning traces for more informed acting.\", \"created_at\": \"2025-08-15 15:57:57\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Inner Monologue\", \"entity2\": \"ReAct\", \"description\": \"ReAct builds upon the closed-loop system demonstrated by Inner Monologue.\", \"created_at\": \"2025-08-15 16:08:24\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"Figure 1(2a)\", \"entity2\": \"ReAct\", \"description\": \"The agent in Figure 1(2a) exhibits hallucinating actions, which ReAct's language space augmentation might help to mitigate by improving context comprehension.\", \"created_at\": \"2025-08-15 15:53:11\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Figure 1(1c)\", \"entity2\": \"ReAct\", \"description\": \"The agent in Figure 1(1c) demonstrates a failure in a QA task that ReAct aims to address by augmenting the action space.\", \"created_at\": \"2025-08-15 15:53:11\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"ReAct\", \"entity2\": \"WebShop\", \"description\": \"On WebShop, ReAct prompting outperforms imitation or reinforcement learning methods trained with a large number of task instances.On WebShop, ReAct prompting outperforms imitation or reinforcement learning methods trained with a large number of task instances.ReAct is tested on WebShop, a language-based interactive decision-making task with complex environments and sparse rewards, requiring reasoning for effective action and exploration.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"ReAct\", \"entity2\": \"Scaling up ReAct\", \"description\": \"Scaling up ReAct is presented as a way to further unlock its potential, along with combining it with reinforcement learning.Scaling up ReAct is suggested as a way to further unlock its potential.\", \"created_at\": \"2025-08-15 17:31:17\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"ReAct\", \"entity2\": \"ReAct-IM\", \"description\": \"ReAct substantially outperforms ReAct-IM, indicating that the ReAct paradigm addresses shortcomings present in ReAct-IM.\", \"created_at\": \"2025-08-15 15:59:06\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"ReAct\", \"entity2\": \"language space\", \"description\": \"The language space is a component of the ReAct methodology, augmenting the agent's action space.\", \"created_at\": \"2025-08-15 17:20:04\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"ReAct\", \"entity2\": \"clean knife\", \"description\": \"ReAct uses reasoning to find products that satisfy all target attributes, which would include finding a clean knife if it were a target attribute.\", \"created_at\": \"2025-08-15 16:10:57\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"ReAct\", \"entity2\": \"thought\", \"description\": \"Thoughts are actions within the language space, which is part of the ReAct methodology.\", \"created_at\": \"2025-08-15 17:20:04\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"ReAct\", \"entity2\": \"reasoning trace\", \"description\": \"Reasoning traces are actions within the language space, which is part of the ReAct methodology.\", \"created_at\": \"2025-08-15 17:20:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"Graph 1\", \"entity2\": \"ReAct\", \"description\": \"The performance of ReAct is shown as constant at approximately 27.3 in Graph 1.\", \"created_at\": \"2025-08-15 16:00:23\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"ReAct\", \"entity2\": \"Scratchpad\", \"description\": \"ReAct performs more than just isolated, fixed reasoning, unlike Scratchpad.\", \"created_at\": \"2025-08-15 15:54:08\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"PaLM-8/62B\", \"entity2\": \"ReAct\", \"description\": \"Prompting ReAct with PaLM-8/62B on HotpotQA results in the worst performance among the four methods due to learning difficulties.\", \"created_at\": \"2025-08-15 15:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"FEVER dev set\", \"entity2\": \"ReAct\", \"description\": \"ReAct produces trajectories that are demonstrated on the FEVER dev set.\", \"created_at\": \"2025-08-15 16:15:35\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Knife\", \"entity2\": \"ReAct\", \"description\": \"ReAct's thought process would have identified that the knife had been taken.\", \"created_at\": \"2025-08-15 16:11:41\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LLMS\", \"entity2\": \"ReAct\", \"description\": \"ReAct utilizes LLMs for its decision-making process, and LLMs are generally employed in interactive and embodied environments for planning and decision making, which is relevant to ReAct's approach.\", \"created_at\": \"2025-08-15 16:08:58\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"ReAct\", \"entity2\": \"ReAct and CoT combination\", \"description\": \"The combination of ReAct and CoT is the best approach overall for reasoning.\", \"created_at\": \"2025-08-15 17:30:03\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"ReAct\", \"entity2\": \"Webshop\", \"description\": \"ReAct achieves significantly better performance on Webshop with additional sparse reasoning, showing an absolute 10% improvement over the previous best success rate.ReAct is used to predict trajectories within the Webshop domain, indicating its application in this context.\", \"created_at\": \"2025-08-15 16:10:57\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"ReAct\", \"entity2\": \"ReAct trajectory\", \"description\": \"The ReAct methodology is used to generate the ReAct trajectory, which can be corrected by human intervention.\", \"created_at\": \"2025-08-15 17:30:07\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"ReAct\", \"entity2\": \"task solving\", \"description\": \"ReAct is a methodology for task solving by an agent interacting with an environment.ReAct is a methodology that can be applied to task solving by an agent interacting with an environment.\", \"created_at\": \"2025-08-15 17:31:17\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"Imitation Learning (IL)\", \"entity2\": \"ReAct\", \"description\": \"ReAct is compared to the Imitation Learning (IL) method.\", \"created_at\": \"2025-08-15 17:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"IL + Reinforcement Learning (IL+RL)\", \"entity2\": \"ReAct\", \"description\": \"ReAct is compared to the IL + Reinforcement Learning (IL+RL) method.\", \"created_at\": \"2025-08-15 17:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"ReAct\", \"entity2\": \"learning from more high-quality human annotations\", \"description\": \"Learning from more high-quality human annotations is a desiderata to further improve the performance of ReAct.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Internet\", \"entity2\": \"ReAct\", \"description\": \"\\\"ReAct successfully retrieves up-to-date information from the Internet, enabling it to provide reasonable answers.\\\")\", \"created_at\": \"2025-08-15 16:09:34\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"HUMAN-IN-THE-LOOP BEHAVIOR CORRECTION ON ALFWORLD\", \"entity2\": \"ReAct\", \"description\": \"The methodology of human-in-the-loop behavior correction is applied to ReAct to allow human inspection and editing of its reasoning traces.\", \"created_at\": \"2025-08-15 16:07:27\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"ReAct\", \"entity2\": \"Thought Editing\", \"description\": \"ReAct incorporates thought editing as a feature for human control over agent behavior.\", \"created_at\": \"2025-08-15 15:56:35\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"ReAct\", \"entity2\": \"ReAct -> CoT-SC\", \"description\": \"The heuristic 'ReAct -> CoT-SC' describes a scenario where ReAct fails to provide an answer within a set number of steps, leading to a switch to CoT-SC.\", \"created_at\": \"2025-08-15 16:00:40\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"ReAct\", \"entity2\": \"multi-step computation problems\", \"description\": \"ReAct tackles tasks beyond reasoning, such as interactive decision making, and improves on multi-step computation problems, similar to Scratchpad.\", \"created_at\": \"2025-08-15 15:54:08\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"IM\", \"entity2\": \"ReAct\", \"description\": \"ReAct substantially outperforms IM-style prompting (ReAct-IM) with consistent advantages on five out of six tasks.\", \"created_at\": \"2025-08-15 15:58:58\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"ALFWorld game\", \"entity2\": \"ReAct\", \"description\": \"ReAct is demonstrated and evaluated within the ALFWorld game environment.\", \"created_at\": \"2025-08-15 16:13:46\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"QA task\", \"entity2\": \"ReAct\", \"description\": \"ReAct augments the action space to potentially improve performance on tasks like the QA task that require complex reasoning.\", \"created_at\": \"2025-08-15 15:53:11\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"ReAct\", \"entity2\": \"Sinkbasin\", \"description\": \"ReAct's thought process would have identified that the next subgoal was to go to a sinkbasin to clean the knife.\", \"created_at\": \"2025-08-15 16:11:49\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"ReAct\", \"entity2\": \"bootstraping approach\", \"description\": \"ReAct is used to generate correct answers for trajectories that are then used in a bootstrapping approach to finetune smaller language models.\", \"created_at\": \"2025-08-15 15:57:57\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"ReAct\", \"entity2\": \"WebGPT\", \"description\": \"WebGPT does not explicitly model the thinking and reasoning procedure, unlike ReAct.\", \"created_at\": \"2025-08-15 15:54:09\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"ReAct\", \"entity2\": \"Selection-Inference\", \"description\": \"ReAct performs more than just isolated, fixed reasoning, unlike Selection-Inference.\", \"created_at\": \"2025-08-15 15:54:04\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"Faithful reasoning\", \"entity2\": \"ReAct\", \"description\": \"ReAct performs more than just isolated, fixed reasoning, unlike Faithful reasoning.\", \"created_at\": \"2025-08-15 15:54:08\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"ReAct\", \"entity2\": \"dictator game\", \"description\": \"ReAct used the dictator game as a subject for its question-answering process.\", \"created_at\": \"2025-08-15 16:22:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"ReAct\", \"entity2\": \"initial finetuning experiments\", \"description\": \"Initial finetuning experiments demonstrate the potential of ReAct to improve with additional training data.Initial finetuning experiments demonstrate the potential of ReAct to improve with additional training data.Initial finetuning experiments demonstrated the potential of ReAct to improve with additional training data.\", \"created_at\": \"2025-08-15 17:30:59\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"ReAct\", \"entity2\": \"external knowledge base\", \"description\": \"ReAct's grounding, fact-driven nature, and trustworthiness are attributed to its access to an external knowledge base.\", \"created_at\": \"2025-08-15 17:20:03\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"ReAct\", \"entity2\": \"imitation or reinforcement learning methods\", \"description\": \"ReAct outperforms imitation or reinforcement learning methods on ALFWorld and WebShop.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"ReAct\", \"entity2\": \"flexible thought space\", \"description\": \"The flexible thought space is a key component that enables ReAct's advanced capabilities in modifying beliefs and reasoning styles.\", \"created_at\": \"2025-08-15 17:30:12\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"ReAct\", \"entity2\": \"Wikipedia API\", \"description\": \"ReAct interacts with a Wikipedia API to retrieve information to support reasoning.ReAct interacts with the Wikipedia API to improve its reasoning capabilities and overcome issues like hallucination and error propagation.\", \"created_at\": \"2025-08-15 15:56:35\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"ReAct\", \"entity2\": \"finetuning\", \"description\": \"Finetuning ReAct enables additional benefits.The ReAct method often performs best, particularly when finetuned.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"ReAct\", \"entity2\": \"vanilla action generation models\", \"description\": \"ReAct outperforms vanilla action generation models on HotPotQA and Fever.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"ReAct\", \"entity2\": \"human dialogue\", \"description\": \"ReAct's ability to modify internal beliefs and reasoning styles goes beyond updating goals or subgoals through human dialogue as seen in Huang et al. (2022b).\", \"created_at\": \"2025-08-15 17:30:12\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"Huang et al. (2022b)\", \"entity2\": \"ReAct\", \"description\": \"ReAct is presented as an advancement over the methodology described in Huang et al. (2022b) because it can modify more than just goals or subgoals.\", \"created_at\": \"2025-08-15 17:30:04\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"ReAct\", \"entity2\": \"ReAct, Thorne et al., 2018\", \"description\": \"Thorne et al., 2018 is a citation associated with ReAct.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"ReAct\", \"entity2\": \"interactive decision-making tasks\", \"description\": \"ReAct was shown to lead to superior performance on interactive decision-making tasks.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"ReAct\", \"entity2\": \"search\", \"description\": \"Successful knowledge retrieval through search is critical for ReAct's performance.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"ReAct\", \"entity2\": \"fact checking\", \"description\": \"ReAct was shown to lead to superior performance on fact checking tasks.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"ReAct\", \"entity2\": \"multi-hop question-answering\", \"description\": \"ReAct was shown to lead to superior performance on multi-hop question-answering tasks.\", \"created_at\": \"2025-08-15 16:03:35\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"ReAct\", \"entity2\": \"Thought 1: I need to search David Chanoff and find the U.S.Navy admiral he collaboratedwith.\", \"description\": \"The thought process is a step within the ReAct methodology, demonstrating how ReAct might be applied.\", \"created_at\": \"2025-08-15 16:12:19\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"ReAct\", \"entity2\": \"problem solving trajectory\", \"description\": \"\\\"ReAct's problem solving trajectory is characterized as grounded, fact-driven, and trustworthy.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"ReAct\", \"entity2\": \"baselines\", \"description\": \"ReAct consistently outperforms baselines that only use reasoning or acting across different domains.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"ReAct\", \"entity2\": \"human inspection\", \"description\": \"ReAct provides an interpretable process that allows humans to easily inspect reasoning and factual correctness.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"ReAct\", \"entity2\": \"chain-of-thought reasoning\", \"description\": \"ReAct addresses and overcomes prevalent issues of hallucination and error propagation in chain-of-thought reasoning.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"ReAct\", \"entity2\": \"ReAct Trajectory\", \"description\": \"The ReAct Trajectory section details the successful execution of the ReAct methodology.\", \"created_at\": \"2025-08-15 16:13:46\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"ReAct\", \"entity2\": \"pick_clean_then_place_in_recep-Knife-None-CounterTop-10/ trial_T20190909_110445_675754\", \"description\": \"The ReAct trajectory is exemplified using the specific trial 'pick_clean_then_place_in_recep-Knife-None-CounterTop-10/ trial_T20190909_110445_675754'.\", \"created_at\": \"2025-08-15 16:13:46\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"ReAct\", \"entity2\": \"observation feedback\", \"description\": \"Actions in the language space of ReAct do not lead to observation feedback.\", \"created_at\": \"2025-08-15 17:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"ReAct\", \"entity2\": \"external environment\", \"description\": \"Actions in the language space of ReAct do not affect the external environment.\", \"created_at\": \"2025-08-15 17:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"Princess Mononoke is a film\", \"entity2\": \"ReAct\", \"description\": \"The ReAct methodology is used to verify the claim that 'Princess Mononoke' is a film.\", \"created_at\": \"2025-08-15 16:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"ReAct\", \"entity2\": \"interpretable decision traces\", \"description\": \"ReAct leads to interpretable decision traces, which are a key result of the method.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"ReAct\", \"entity2\": \"human interpretability\", \"description\": \"ReAct demonstrates improved human interpretability compared to baselines.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"ReAct\", \"entity2\": \"prompt selections\", \"description\": \"The performance of ReAct is robust to different prompt selections.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"ReAct\", \"entity2\": \"reasoning error\", \"description\": \"ReAct is susceptible to reasoning errors, including a specific pattern of repetitive thought and action loops.\", \"created_at\": \"2025-08-15 15:53:47\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"ReAct\", \"entity2\": \"interleaving reasoning, action and observation steps\", \"description\": \"\\\"Interleaving reasoning, action, and observation steps improves ReAct's groundedness and trustworthiness but reduces its flexibility.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"ReAct\", \"entity2\": \"repetitive thought and action loops\", \"description\": \"\\\"ReAct exhibits a specific error pattern of repetitive thought and action loops, indicating a failure in reasoning.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"ReAct\", \"entity2\": \"SimpleTOD\", \"description\": \"ReAct and SimpleTOD both train LMs for API call decisions, but ReAct is cheaper as it doesn't require expensive datasets and human feedback, and it explicitly considers the reasoning procedure while SimpleTOD does not.\", \"created_at\": \"2025-08-15 16:08:51\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"ReAct\", \"entity2\": \"noninformative search\", \"description\": \"Noninformative search is a critical issue for ReAct, causing 23% of errors and derailing its reasoning.\", \"created_at\": \"2025-08-15 15:58:16\", \"file_path\": \"unknown_source\"}, {\"id\": 107, \"entity1\": \"ReAct\", \"entity2\": \"knowledge bases\", \"description\": \"Actions, a component of ReAct, allow the model to interface with and gather information from knowledge bases.\", \"created_at\": \"2025-08-15 15:51:59\", \"file_path\": \"unknown_source\"}, {\"id\": 108, \"entity1\": \"ReAct\", \"entity2\": \"environments\", \"description\": \"Actions, a component of ReAct, allow the model to interface with and gather information from environments.\", \"created_at\": \"2025-08-15 15:51:59\", \"file_path\": \"unknown_source\"}, {\"id\": 109, \"entity1\": \"ReAct\", \"entity2\": \"failure mode\", \"description\": \"\\\"Failure mode constitutes a major failure mode for ReAct, making up 56% of its operations.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 110, \"entity1\": \"ReAct\", \"entity2\": \"fine-tuning approach on HotpotQA\", \"description\": \"The fine-tuning approach on HotpotQA was explored to address the limitations of ReAct in complex tasks, showing initial promising results.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 111, \"entity1\": \"ReAct\", \"entity2\": \"in-context examples\", \"description\": \"ReAct demonstrates strong generalization to new task instances by learning solely from one to six in-context examples.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 112, \"entity1\": \"ReAct\", \"entity2\": \"What nationality is the man who developed the dictator game?\", \"description\": \"ReAct uses this question as part of its process to gather information.\", \"created_at\": \"2025-08-15 16:22:50\", \"file_path\": \"unknown_source\"}, {\"id\": 113, \"entity1\": \"Figure 1(1d)\", \"entity2\": \"ReAct\", \"description\": \"Figure 1(1d) demonstrates ReAct's ability to synergize reasoning and acting through Wikipedia API interaction.\", \"created_at\": \"2025-08-15 15:56:35\", \"file_path\": \"unknown_source\"}, {\"id\": 114, \"entity1\": \"Action 1: collaboratedwith.\", \"entity2\": \"ReAct\", \"description\": \"The 'Action 1' is a step taken within the ReAct methodology, likely to gather information for the question posed.\", \"created_at\": \"2025-08-15 16:12:19\", \"file_path\": \"unknown_source\"}, {\"id\": 115, \"entity1\": \"Claim Thought Answer\", \"entity2\": \"ReAct\", \"description\": \"The Claim Thought Answer section is evaluated using the ReAct methodology to determine the sufficiency of information for a claim.\", \"created_at\": \"2025-08-15 16:10:29\", \"file_path\": \"unknown_source\"}, {\"id\": 116, \"entity1\": \"Language Model\", \"entity2\": \"ReAct\", \"description\": \"The Language Model's decision-making and reasoning capabilities are integrated into ReAct, and it determines the timing of thoughts and actions in ReAct for decision-making tasks.\", \"created_at\": \"2025-08-15 15:54:59\", \"file_path\": \"unknown_source\"}, {\"id\": 117, \"entity1\": \"ReAct\", \"entity2\": \"Thought 1:\", \"description\": \"The ReAct methodology includes thinking steps like 'Thought 1'.\", \"created_at\": \"2025-08-15 16:14:41\", \"file_path\": \"unknown_source\"}, {\"id\": 118, \"entity1\": \"ReAct\", \"entity2\": \"input length limit of in-context learning\", \"description\": \"Complex tasks with large action spaces require more demonstrations for ReAct to learn well, which can exceed the input length limit of in-context learning.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 119, \"entity1\": \"ReAct\", \"entity2\": \"text game\", \"description\": \"ReAct works for the task of text game due to its flexible thought space and thought-action occurrence format.\", \"created_at\": \"2025-08-15 16:00:59\", \"file_path\": \"unknown_source\"}, {\"id\": 120, \"entity1\": \"ReAct\", \"entity2\": \"human-written data\", \"description\": \"The text suggests that finetuning with more human-written data could improve the performance of ReAct.\", \"created_at\": \"2025-08-15 15:53:11\", \"file_path\": \"unknown_source\"}, {\"id\": 121, \"entity1\": \"ReAct\", \"entity2\": \"fact verification\", \"description\": \"ReAct works for the task of fact verification due to its flexible thought space and thought-action occurrence format.\", \"created_at\": \"2025-08-15 16:00:59\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: React_paper\\nChunk: 59\\n\\nth the help of LLMs, language as a fundamental cognitive mechanism will play a critical role in interaction and decision making. What is more, progress in LLMs has also inspired the development of versatile and generalist agents like Reed et al. (2022). # 6 CONCLUSION We have proposed ReAct – a simple yet effective method for synergizing reasoning and acting in large language models. Through a diverse set of experiments on multi-hop question-answering, fact checking, and interactive decision-making tasks, we show that ReAct leads to superior performance with interpretable decision traces. Despite the simplicity of our method, complex tasks with large action spaces require more demonstrations to learn well, which unfortunately can easily go beyond the input length limit of in-context learning. We explore the fine-tuning approach on HotpotQA with initial promising results, but learning from more high-quality human annotations will be the desiderata to further improve the performance.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 124\\n\\nConsequently, the last L layers of the model should be replaced with sparse MoE layers. The analysis suggests that both the number of experts and the size of $\\\\mathrm { L }$ are related to the degree of routing, and more does not necessarily mean better performance. To some degree, the base model introduced in [155] shares similarities with the shared expert concept proposed in ViMOE [154]. In CLIP-MoE [156], the MoE architecture is applied to enhance the capabilities of the CLIP model through a method called Diversified Multiplet Upcycling. The authors fine-tune a series of pre-trained CLIP models using multi-stage contrastive learning, extracting expert networks that focus on different aspects of the input data, and integrating these experts into the MoE architecture. Other papers delve deeper into the design of gating functions.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: React_paper\\nChunk: 37\\n\\n$6 \\\\%$ ) in success mode, and make up its major failure mode $( 5 6 \\\\% )$ . In contrast, the problem solving trajectory of ReActis more grounded, fact-driven, and trustworthy, thanks to the access of an external knowledge base. B) While interleaving reasoning, action and observation steps improves ReAct’s groundedness and trustworthiness, such a structural constraint also reduces its flexibility in formulating reasoning steps, leading to more reasoning error rate than CoT. we note that there is one frequent error pattern specific to ReAct, in which the model repetitively generates the previous thoughts and actions, and we categorize it as part of “reasoning error” as the model fails to reason about what the proper next action to take and jump out of the $\\\\\\\\mathrm { l o o p ^ { 4 } }$ . C) For ReAct, successfully retrieving informative knowledge via search is critical.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: React_paper\\nChunk: 17\\n\\nbehaviors), and perform initial finetuning experiments showing the potential of ReAct to improve with additional training data. Scaling up ReAct to train and operate on more tasks and combining it with complementary paradigms like reinforcement learning could further unlock the potential of large language models. # 2 REAC T: SYNERGIZING REASONING $^ +$ AC TING Consider a general setup of an agent interacting with an environment for task solving. At time step $t$ , an agent receives an observation $o _ { t } \\\\\\\\in \\\\\\\\mathcal { O }$ from the environment and takes an action $a _ { t } \\\\\\\\in { \\\\\\\\mathcal { A } }$ following some policy $\\\\\\\\pi ( a _ { t } | c _ { t } )$ , where $c _ { t } = \\\\\\\\left( o _ { 1 } , a _ { 1 } , \\\\\\\\cdot \\\\\\\\cdot \\\\\\\\cdot , o _ { t - 1 } , a _ { t - 1 } , o _ { t } \\\\\\\\right)$ is the context to the agent. Learning a policy is challenging when the mapping $c _ { t } \\\\\\\\mapsto a _ { t }$ is highly implicit and requires extensive computation.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: React_paper\\nChunk: 2\\n\\nchain-of-thought prompting) and acting (e.g. action plan generation) have primarily been studied as separate topics. In this paper, we explore the use of LLMs to generate both reasoning traces and task-specific actions in an interleaved manner, allowing for greater synergy between the two: reasoning traces help the model induce, track, and update action plans as well as handle exceptions, while actions allow it to interface with and gather additional information from external sources such as knowledge bases or environments. We apply our approach, named ReAct, to a diverse set of language and decision making tasks and demonstrate its effectiveness over state-of-the-art baselines in addition to improved human interpretability and trustworthiness.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 8.8857, + "rag_initialization_seconds": 5.5742, + "query_execution_seconds": 3.3115, + "start_timestamp": "2025-08-15T18:20:38.212463", + "end_timestamp": "2025-08-15T18:20:47.098161" + }, + "metadata": { + "saved_at": "2025-08-15T18:20:47.098161", + "file_path": "retrieval_logs\\retrieval_20250815_182047_098_mix_k12_ck5_The_current_AI_agent_paradigm_is_fundamentally_con.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_182436_276_mix_k12_ck5_You_are_tasked_with_designing_a_fundamentally_new_.json b/retrieval_logs/retrieval_20250815_182436_276_mix_k12_ck5_You_are_tasked_with_designing_a_fundamentally_new_.json new file mode 100644 index 0000000000000000000000000000000000000000..9387a0151866a2ce4d4faf8d24967524165f9bad --- /dev/null +++ b/retrieval_logs/retrieval_20250815_182436_276_mix_k12_ck5_You_are_tasked_with_designing_a_fundamentally_new_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T18:24:36.276578", + "query": "\n You are tasked with designing a fundamentally new AI agent architecture by combining and extending the core principles from ReAct (reasoning-action cycles), Mixture of Experts (specialized parallel processing), and any additional concepts available in your context. The goal is to transcend current agent limitations through principled architectural innovation.\nSpecific Challenge: Current AI agents are fundamentally limited by:\n\nSequential processing (think→plan→act chains)\nStatic expert allocation (fixed capabilities)\nReactive rather than anticipatory behavior\nSingle-threaded consciousness models\n\nYour Task: Design a revolutionary agent architecture that demonstrates:\nParallel Cognitive Streams: How could multiple ReAct cycles operate simultaneously across different abstraction levels (tactical, strategic, meta-cognitive) using MoE principles to coordinate between them?\nDynamic Expert Genesis: How could the agent automatically spawn new specialized experts based on encountered task complexity, rather than using pre-defined expert sets?\nAnticipatory Reasoning: How could the agent maintain continuous background models of environment evolution, enabling proactive rather than reactive decision-making?\nRecursive Self-Architecture: How could the agent use its own reasoning capabilities to redesign its expert allocation and coordination mechanisms?\nRequired Deliverables:\n\nA concrete architectural design showing how ReAct and MoE can be extended beyond current implementations\nSpecific mechanisms for each capability above, grounded in the available concepts\nNovel emergent properties that arise from these combinations\nTestable hypotheses about agent capabilities this would enable\n\nConstraint: Base your design on principled extensions of the concepts in your context, but push those concepts to their logical extremes and unexpected combinations.\"\n ", + "query_mode": "mix", + "top_k": 12, + "chunk_top_k": 5, + "text_length": 58306, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Harder tasks need more experts: Dynamic routing in moe models\", \"type\": \"abstract\", \"description\": \"This abstract discusses dynamic routing in Mixture of Experts (MoE) models, suggesting that more complex tasks require a greater number of experts.\", \"created_at\": \"2025-08-15 15:43:02\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"AI systems\", \"type\": \"discussion\", \"description\": \"AI systems can be designed to be more robust and transparent by leveraging the interpretability offered by Mixture of Experts (MoE) models.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"ReAct\", \"type\": \"methodology\", \"description\": \"ReAct is a methodology that can be improved with additional training data and scaled up to train and operate on more tasks. It can be combined with complementary paradigms like reinforcement learning to further unlock the potential of large language models.ReAct is a novel prompt-based paradigm and methodology designed to enhance the performance of large language models (LLMs) by synergizing reasoning and acting for general task solving. It operates by augmenting an agent's action space to include a language space for thoughts or reasoning traces, which are distinct in that they do not affect the external environment and do not provide observation feedback.\\n\\nThe methodology prompts LLMs to generate verbal reasoning traces and interleaves reasoning, action, and observation steps. This process is grounded, fact-driven, and trustworthy due to ReAct's access to an external knowledge base, which is critical for successful information retrieval via search. ReAct explicitly models thinking and reasoning procedures, enabling interaction with external sources such as APIs and environments like Wikipedia for information gathering through task-specific actions. Its reasoning traces are flexible and sparse, allowing for diverse reasoning types to be induced for different tasks, and it works for diverse tasks with distinct action spaces and reasoning needs due to its flexible thought space and thought-action occurrence format. ReAct assists in inducing, tracking, and updating action plans, handling exceptions, and incorporating additional information into reasoning. It is capable of knowledge-intensive reasoning tasks, such as multi-hop question answering and fact verification, demonstrating a synergy between reasoning and acting by interacting with external environments to retrieve information and using reasoning to determine what information to retrieve next. ReAct also allows for modification of a model's internal belief, reasoning styles, or anything supported by a flexible thought space for better task solving, and is capable of updating goals or subgoals, with a sequence of subgoals concretely captured by each thought. It can also be a behavior correction example with a human-in-the-loop.\\n\\nIn terms of performance, ReAct demonstrates significantly better results than previous methods on various benchmarks like Webshop and HotpotQA, showing improvements in success rate and a reduction in reasoning errors and hallucination compared to Chain-of-Thought (CoT). It outperforms other prompting methods, vanilla action generation models, and imitation or reinforcement learning methods on tasks like ALFWorld and Webshop, often with fewer task instances. While generally improving groundedness and trustworthiness, ReAct can exhibit a higher reasoning error rate than Chain-of-Thought in some cases, with a frequent error pattern involving repetitive generation of previous thoughts and actions. Despite this, it consistently addresses shortcomings in subgoal identification and item location by incorporating commonsense reasoning. ReAct shows strong generalization to new task instances while learning solely from a few in-context examples. It also offers benefits when finetuning is enabled, and its performance is robust to prompt selections. ReAct promises an interpretable sequential decision-making and reasoning process where humans can easily inspect reasoning and factual correctness, and can control or correct agent behavior on the go by thought editing. It has been tested on language-based interactive decision-making tasks like ALFWorld and WebShop, which feature complex environments requiring agents to act over long horizons with sparse rewards, thus needing reasoning to act and explore effectively. For instance, in the ALFWorld game, ReAct has demonstrated the ability to correctly find a knife, clean it, and then place it on a countertop. It can interact with a Wikipedia API for tasks like HotPotQA and Fever. ReAct is a methodology that can be improved with additional training data and scaled up to train and operate on more tasks, and it can be combined with complementary paradigms like reinforcement learning to further unlock the potential of large language models.\", \"created_at\": \"2025-08-15 15:51:52\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"model interpretability\", \"type\": \"discussion\", \"description\": \"Model interpretability is an opportunity offered by Mixture of Experts (MoE) models, achieved by learning intrinsic allocation mechanisms. This process enhances the understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems. Furthermore, model interpretability is enhanced by the combination of reasoning and acting, which allows humans to distinguish between internal knowledge and external environments.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"agents\", \"type\": \"methodology\", \"description\": \"Agents are entities that learn and make decisions in Reinforcement Learning environments.Agents are entities that learn diverse skills to enhance their ability to handle complex tasks.agents are entities that operate within complex environments like ALFWorld and WebShop, requiring them to act over long horizons with sparse rewards and utilize reasoning to explore effectively.\", \"created_at\": \"2025-08-15 16:01:26\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"representation collapse\", \"type\": \"discussion\", \"description\": \"Representation collapse into similar representations limits the generalization ability of agents.\", \"created_at\": \"2025-08-15 15:25:30\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"MoE architecture\", \"type\": \"methodology\", \"description\": \"The MoE (Mixture of Experts) architecture is a structural design in machine learning, particularly prominent in large language models, characterized by the use of specialized \\\"expert\\\" networks dynamically selected by a gating function. This specialization allows individual experts to focus on distinct knowledge domains, thereby enhancing the MoE architecture's overall performance, generalization capabilities, and computational efficiency. The MoE architecture excels at handling diverse knowledge within data, leading to improved algorithm designs and finding applications across various machine learning paradigms, including computer vision and natural language processing. Its flexibility and scalability make it suitable for edge deployment and capacity scaling of large models, and it holds potential for developing unified multi-modal large language models.\\n\\nThe MoE architecture alleviates hardware pressure through sparse activation and a divide-and-conquer strategy, reducing computational costs and enhancing model performance, especially in multi-task, low-resource, and complex reasoning scenarios, while also supporting personalized services. It has been utilized in MENTOR for action generations and explored in reinforcement learning domains like multi-agent RL and imitation learning. The MoE architecture is also leveraged to solve integrated training problems for multiple tasks, overcoming inconsistencies in input and output formats, and has been applied in CLIP-MoE to enhance the CLIP model's capabilities. However, it's important to note that the MoE architecture is a framework that can be integrated with different object detectors, but simply adding different detectors does not guarantee improved model performance and can even have adverse effects due to competition among detectors. Discussions surrounding the MoE architecture often delve into its basic designs, training strategies, synergy with machine learning algorithms, recent theoretical advancements, and how factors like the number of expert networks, MoE layers, and their placement influence performance, efficiency, and stability. The MoE architecture inherently possesses better transparency.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed. However, it incurs significant memory overhead, making it impractical for edge device memory constraints.\", \"created_at\": \"2025-08-15 16:46:35\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"multi-agent RL\", \"type\": \"methodology\", \"description\": \"Multi-agent RL is a domain where the application of MoE has been explored.\", \"created_at\": \"2025-08-15 15:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"MoE architectures\", \"type\": \"methodology\", \"description\": \"MoE (Mixture of Experts) architectures are designed to enhance parameter efficiency and manage computational costs effectively. They offer potential improvements in model interpretability by learning intrinsic allocation mechanisms. These architectures possess a sparse nature, necessitating dynamic data allocation, which makes pipeline design a critical factor in their training. While MoE architectures have shown impressive scalability and performance, their theoretical foundations are not yet fully understood. Further research is needed to optimize the design of MoE architectures, particularly in determining the optimal number of experts and their specialization, as current methods often rely on heuristic or static settings that may not be universally optimal for all tasks.MoE architectures are a type of architecture that EdgeMoE aims to improve by reducing latency caused by frequent expert switching in limited device memory.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"intrinsic allocation mechanisms\", \"type\": \"methodology\", \"description\": \"Intrinsic allocation mechanisms are learned by MoE models, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"robust and transparent AI systems\", \"type\": \"possible enhancements\", \"description\": \"Designing more robust and transparent AI systems is an avenue opened by the interpretability of MoE models.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"type\": \"abstract\", \"description\": \"This abstract discusses the use of mixtures of experts to unlock parameter scaling for deep reinforcement learning.This is a citation for a paper discussing mixtures of experts and parameter scaling in deep RL.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems and scheduling for behavior acquisition in multi-agent environments.This methodology describes a modular learning system and scheduling for behavior acquisition in a multi-agent environment.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"reinforcement learning\", \"type\": \"methodology\", \"description\": \"Reinforcement learning (RL) is a machine learning paradigm that can be combined with ReAct to create more robust agents. RL is also a suitable approach for applying Mixture of Experts (MoE) based algorithms and can dynamically adjust MoE model architectures based on task complexity and data distribution. While RL is a technique used to improve adaptability and efficiency, and is employed to train rewriters with downstream LLM performance as the reward, it is outperformed by ReAct in interactive decision-making benchmarks.Reinforcement learning is a complementary paradigm that can be combined with ReAct.Reinforcement learning is a complementary paradigm that can be combined with ReAct.\", \"created_at\": \"2025-08-15 17:30:54\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"task complexity\", \"type\": \"discussion\", \"description\": \"Task complexity is a factor that reinforcement learning can use to dynamically adjust the architecture of MoE models.\", \"created_at\": \"2025-08-15 15:42:56\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"A generalist agent\", \"type\": \"methodology\", \"description\": \"This refers to a methodology or concept related to generalist agents, published in 2022 with a URL provided.\", \"created_at\": \"2025-08-15 16:07:01\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Scratchpads for intermediate computation with language models\", \"type\": \"methodology\", \"description\": \"This refers to a methodology or tool for intermediate computation with language models, published in 2021 with a URL provided.\", \"created_at\": \"2025-08-15 16:07:01\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"specialization\", \"type\": \"methodology\", \"description\": \"Specialization is a benefit achieved when experts develop expertise in specific knowledge domains, enabled by the gating function accurately discerning data and expert characteristics.The specialization of experts in MoE architectures is a design aspect that requires further exploration.\", \"created_at\": \"2025-08-15 15:37:49\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"MoE\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning methodology and model design that enhances performance, generalization ability, and computational efficiency, particularly for complex and diverse tasks. MoE operates on a \\\"divide and conquer\\\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This framework allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. MoE leverages specialized \\\"experts\\\" for different tasks or data types, providing a scalable and flexible framework for tackling complex, multifaceted datasets and handling diverse knowledge domains without proportionally increasing computational costs. Expert networks can operate independently and are often integrated into a single network model by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers or CNN layers, with MoE layers, demonstrating high flexibility and broad applicability. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible Natural Language Generation (NLG) systems. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. MoE can alleviate problems in High-Value Content Learning (HVCL) such as known task boundaries and increased computation cost by leveraging multiple experts. MoE is also introduced into the decoder to address the issue of static feature decoding in different task decoders due to shared decoding parameters, which leads to insufficient distinction in task-specific features. MoE decomposes backbone features into task-agnostic features from different aspects, making the decoding process of task-specific features more fine-grained. MoE introduces shared expert modules, domain expert modules, and task expert modules, which learn cross-domain and cross-task common knowledge, domain-specific user preferences, and task-specific user preferences, respectively. This enables models to capture user preferences from multiple perspectives and handle complex dependencies between domains and tasks, allowing for flexible model expansion and handling dependencies between different tasks, making it suitable for visual multi-task models. MoE can be combined with various types of tokens to achieve better learning performance and has been applied in computer vision and natural language processing, showing significant potential, especially in large language models (LLMs). It also enhances the understanding of model behaviors. MoE is an advanced technique that enhances LLM performance andMoE is a technique that enhances LLM performance.\", \"created_at\": \"2025-08-15 16:36:35\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"algorithm designs\", \"type\": \"methodology\", \"description\": \"Algorithm designs are being improved by applying the MoE architecture.\", \"created_at\": \"2025-08-15 15:20:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LLMs\", \"entity2\": \"ReAct\", \"description\": \"ReAct is a method for synergizing reasoning and acting in large language models, indicating a direct application or enhancement of LLMs.\", \"created_at\": \"2025-08-15 16:03:29\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"AI systems\", \"entity2\": \"model interpretability\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Figure 2\", \"entity2\": \"ReAct\", \"description\": \"Figure 2 compares the performance of ReAct with other methods, showing a direct relationship in terms of comparative analysis.\", \"created_at\": \"2025-08-15 15:54:47\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"agents\", \"entity2\": \"representation collapse\", \"description\": \"Representation collapse limits the generalization ability of agents.\", \"created_at\": \"2025-08-15 15:25:31\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Act\", \"entity2\": \"ReAct\", \"description\": \"ReAct is presented as a superior or alternative methodology to Act, as ReAct uses reasoning to find products that satisfy all target attributes, which is implied to be a capability Act lacks or performs less effectively.The ReAct method demonstrates superior performance compared to the Act method across various tasks. Specifically, ReAct achieves significantly better performance than Act on Webshop, showing an absolute 10% improvement in success rate due to additional sparse reasoning. Furthermore, ReAct outperforms Act on both the HotpotQA and Fever tasks, highlighting the benefit of reasoning in guiding actions. Both ReAct and Act methods generally benefit from an increased number of training steps. The difference in their approach is further emphasized by ReAct's ability to use reasoning to find products that satisfy all target attributes, suggesting a more effective strategy than Act.\", \"created_at\": \"2025-08-15 16:10:56\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"MoE architecture\", \"entity2\": \"multi-agent RL\", \"description\": \"The MoE architecture has been explored in multi-agent RL.\", \"created_at\": \"2025-08-15 15:29:58\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Figure 3\", \"entity2\": \"ReAct\", \"description\": \"Figure 3 shows that prompting ReAct performs worst among four methods on HotpotQA with PaLM-8/62B due to difficulties in learning reasoning and acting.\", \"created_at\": \"2025-08-15 15:58:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"MoE architectures\", \"entity2\": \"intrinsic allocation mechanisms\", \"description\": \"MoE architectures learn intrinsic allocation mechanisms.\", \"created_at\": \"2025-08-15 15:19:39\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"CoT\", \"entity2\": \"ReAct\", \"description\": \"Finetuning CoT is significantly worse than finetuning ReAct for both PaLM8/62B.ReAct has a higher reasoning error rate than CoT due to structural constraints in ReAct.ReAct exhibits a higher reasoning error rate compared to CoT due to structural constraints.\", \"created_at\": \"2025-08-15 17:20:04\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"model interpretability\", \"entity2\": \"robust and transparent AI systems\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"ReAct\", \"entity2\": \"Table 10\", \"description\": \"Table 10 shows example trajectories predicted by ReAct, illustrating its performance and methodology.\", \"created_at\": \"2025-08-15 16:10:57\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"description\": \"Both entities are related to learning systems, with one focusing on deep RL and the other on multi-agent environments.\", \"created_at\": \"2025-08-15 15:44:26\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"ReAct\", \"entity2\": \"reinforcement learning\", \"description\": \"ReAct can be combined with reinforcement learning to further unlock the potential of large language models.\", \"created_at\": \"2025-08-15 17:31:17\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"reinforcement learning\", \"entity2\": \"task complexity\", \"description\": \"Reinforcement learning can dynamically adjust the architecture of MoE models based on task complexity.\", \"created_at\": \"2025-08-15 15:43:02\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"HotPotQA\", \"entity2\": \"ReAct\", \"description\": \"ReAct is a framework applied to knowledge-intensive reasoning tasks, and it has been specifically utilized and evaluated on the HotPotQA dataset, which focuses on multi-hop question answering. On HotPotQA, ReAct demonstrates superior performance compared to vanilla action generation models. Furthermore, ReAct is competitive with chain-of-thought (CoT) reasoning approaches when evaluated on the HotPotQA dataset.ReAct is used for HotPotQA.ReAct outperforms vanilla action generation models while being competitive with chain-of-thought reasoning (CoT) on HotPotQA.\", \"created_at\": \"2025-08-15 17:29:42\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"A generalist agent\", \"entity2\": \"Scratchpads for intermediate computation with language models\", \"description\": \"Both are cited as publications related to AI research, suggesting a connection in the field.\", \"created_at\": \"2025-08-15 16:07:03\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"AlfWorld task-specific success rates\", \"entity2\": \"ReAct\", \"description\": \"The performance of ReAct is measured by AlfWorld task-specific success rates.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"MoE architectures\", \"entity2\": \"specialization\", \"description\": \"The specialization of experts in MoE architectures requires further exploration.\", \"created_at\": \"2025-08-15 15:37:58\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"ReAct\", \"entity2\": \"Standard\", \"description\": \"Finetuning Standard is significantly worse than finetuning ReAct for both PaLM8/62B.ReAct and Act methods generally benefit from more training steps, while Standard and CoT methods degrade soon after finetuning.ReAct is contrasted with Standard, which fails due to hallucination, while ReAct succeeds by retrieving up-to-date information.\", \"created_at\": \"2025-08-15 16:09:33\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"AI systems\", \"entity2\": \"MoE\", \"description\": \"MoE opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:13:53\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"HotpotQA\", \"entity2\": \"ReAct\", \"description\": \"\\\"ReAct sometimes disagrees with dataset labels from HotpotQA because the labels could be outdated, impacting its performance on questions related to the dataset.\\\")ReAct is evaluated on the HotpotQA benchmark for question answering, demonstrating its effectiveness in overcoming hallucination and error propagation.ReAct's performance is evaluated on HotpotQA, where prompting it with PaLM-8/62B leads to poor results.\", \"created_at\": \"2025-08-15 16:09:33\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"MoE architectures\", \"entity2\": \"model interpretability\", \"description\": \"MoE architectures offer opportunities to improve model interpretability.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"CoT-SC\", \"entity2\": \"ReAct\", \"description\": \"The text proposes incorporating ReAct and CoT-SC, suggesting a complementary relationship where one can back off to the other based on specific conditions.\", \"created_at\": \"2025-08-15 16:00:33\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"MoE architecture\", \"entity2\": \"algorithm designs\", \"description\": \"The MoE architecture leads to improved algorithm designs.\", \"created_at\": \"2025-08-15 15:20:29\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"ReAct\", \"entity2\": \"sparse, versatile reasoning\", \"description\": \"The text demonstrates the importance of sparse, versatile reasoning in decision making by showing consistent advantages over controlled baselines with actions only, implying ReAct benefits from this.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"FEVER\", \"entity2\": \"ReAct\", \"description\": \"ReAct is applied to knowledge-intensive reasoning tasks, and FEVER is one of the datasets used for these tasks, specifically fact verification.\", \"created_at\": \"2025-08-15 15:56:34\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"ALFWorld\", \"entity2\": \"ReAct\", \"description\": \"ReAct is a prompting method that has been extensively evaluated and tested on ALFWorld. ALFWorld is characterized as a synthetic text-based game and a benchmark specifically designed for interactive decision-making. It is further noted that ALFWorld is designed to align with the embodied ALFRED benchmark and presents complex decision-making challenges. On this ALFWorld benchmark, ReAct prompting consistently demonstrates superior performance, outperforming other methods such as imitation learning or reinforcement learning, even when these alternative methods are trained with a large number of task instances.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"AlfWorld\", \"entity2\": \"ReAct\", \"description\": \"ReAct is demonstrated in AlfWorld through a human-in-the-loop behavior correction example.\", \"created_at\": \"2025-08-15 17:30:07\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"PaLM-62B\", \"entity2\": \"ReAct\", \"description\": \"PaLM-62B finetuned ReAct outperforms all 540B prompting methods.ReAct is finetuned on PaLM-62B for 4,000 steps.\", \"created_at\": \"2025-08-15 16:04:23\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"ReAct\", \"entity2\": \"language\", \"description\": \"The ReAct methodology augments the agent's action space with the space of language.\", \"created_at\": \"2025-08-15 17:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"ReAct\", \"entity2\": \"trustworthiness\", \"description\": \"ReAct demonstrates improved trustworthiness compared to baselines.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"ReAct\", \"entity2\": \"TRAJECTORIES\", \"description\": \"ReAct produces TRAJECTORIES.\", \"created_at\": \"2025-08-15 16:15:36\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Fever\", \"entity2\": \"ReAct\", \"description\": \"ReAct is a model that has been evaluated on the Fever benchmark for fact verification. This evaluation demonstrates ReAct's effectiveness in overcoming hallucination and error propagation. Furthermore, ReAct outperforms vanilla action generation models on Fever, and is competitive with chain-of-thought reasoning (CoT) on the same benchmark.ReAct is used for Fever.ReAct outperforms vanilla action generation models while being competitive with chain-of-thought reasoning (CoT) on Fever.\", \"created_at\": \"2025-08-15 17:30:03\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"PaLM-8B\", \"entity2\": \"ReAct\", \"description\": \"ReAct is finetuned on PaLM-8B, a process that involved 4,000 steps. This finetuned PaLM-8B, when combined with ReAct, demonstrates superior performance, specifically outperforming all PaLM-62B prompting methods.\", \"created_at\": \"2025-08-15 17:30:12\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"ReAct\", \"entity2\": \"chain-of-thought reasoning (CoT)\", \"description\": \"ReAct is competitive with chain-of-thought reasoning (CoT) on HotPotQA and Fever datasets.ReAct is competitive with chain-of-thought reasoning (CoT), and their combination is the best approach overall.ReAct is competitive with chain-of-thought reasoning (CoT), and their combination is the best approach overall.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Example 3208\", \"entity2\": \"ReAct\", \"description\": \"ReAct is the methodology that Example 3208 is illustrating.\", \"created_at\": \"2025-08-15 16:10:57\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"ReAct\", \"entity2\": \"reasoning traces\", \"description\": \"ReAct's performance demonstrates the value of reasoning to guide acting, and fine-tuning results confirm the benefit of reasoning traces for more informed acting.\", \"created_at\": \"2025-08-15 15:57:57\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Inner Monologue\", \"entity2\": \"ReAct\", \"description\": \"ReAct builds upon the closed-loop system demonstrated by Inner Monologue.\", \"created_at\": \"2025-08-15 16:08:24\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"Figure 1(2a)\", \"entity2\": \"ReAct\", \"description\": \"The agent in Figure 1(2a) exhibits hallucinating actions, which ReAct's language space augmentation might help to mitigate by improving context comprehension.\", \"created_at\": \"2025-08-15 15:53:11\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Figure 1(1c)\", \"entity2\": \"ReAct\", \"description\": \"The agent in Figure 1(1c) demonstrates a failure in a QA task that ReAct aims to address by augmenting the action space.\", \"created_at\": \"2025-08-15 15:53:11\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"ReAct\", \"entity2\": \"WebShop\", \"description\": \"On WebShop, ReAct prompting outperforms imitation or reinforcement learning methods trained with a large number of task instances.On WebShop, ReAct prompting outperforms imitation or reinforcement learning methods trained with a large number of task instances.ReAct is tested on WebShop, a language-based interactive decision-making task with complex environments and sparse rewards, requiring reasoning for effective action and exploration.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"ReAct\", \"entity2\": \"Scaling up ReAct\", \"description\": \"Scaling up ReAct is presented as a way to further unlock its potential, along with combining it with reinforcement learning.Scaling up ReAct is suggested as a way to further unlock its potential.\", \"created_at\": \"2025-08-15 17:31:17\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"ReAct\", \"entity2\": \"ReAct-IM\", \"description\": \"ReAct substantially outperforms ReAct-IM, indicating that the ReAct paradigm addresses shortcomings present in ReAct-IM.\", \"created_at\": \"2025-08-15 15:59:06\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"ReAct\", \"entity2\": \"language space\", \"description\": \"The language space is a component of the ReAct methodology, augmenting the agent's action space.\", \"created_at\": \"2025-08-15 17:20:04\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"ReAct\", \"entity2\": \"clean knife\", \"description\": \"ReAct uses reasoning to find products that satisfy all target attributes, which would include finding a clean knife if it were a target attribute.\", \"created_at\": \"2025-08-15 16:10:57\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"ReAct\", \"entity2\": \"reasoning trace\", \"description\": \"Reasoning traces are actions within the language space, which is part of the ReAct methodology.\", \"created_at\": \"2025-08-15 17:20:23\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"ReAct\", \"entity2\": \"thought\", \"description\": \"Thoughts are actions within the language space, which is part of the ReAct methodology.\", \"created_at\": \"2025-08-15 17:20:04\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"Graph 1\", \"entity2\": \"ReAct\", \"description\": \"The performance of ReAct is shown as constant at approximately 27.3 in Graph 1.\", \"created_at\": \"2025-08-15 16:00:23\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"ReAct\", \"entity2\": \"Scratchpad\", \"description\": \"ReAct performs more than just isolated, fixed reasoning, unlike Scratchpad.\", \"created_at\": \"2025-08-15 15:54:08\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"FEVER dev set\", \"entity2\": \"ReAct\", \"description\": \"ReAct produces trajectories that are demonstrated on the FEVER dev set.\", \"created_at\": \"2025-08-15 16:15:35\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"PaLM-8/62B\", \"entity2\": \"ReAct\", \"description\": \"Prompting ReAct with PaLM-8/62B on HotpotQA results in the worst performance among the four methods due to learning difficulties.\", \"created_at\": \"2025-08-15 15:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Knife\", \"entity2\": \"ReAct\", \"description\": \"ReAct's thought process would have identified that the knife had been taken.\", \"created_at\": \"2025-08-15 16:11:41\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LLMS\", \"entity2\": \"ReAct\", \"description\": \"ReAct utilizes LLMs for its decision-making process, and LLMs are generally employed in interactive and embodied environments for planning and decision making, which is relevant to ReAct's approach.\", \"created_at\": \"2025-08-15 16:08:58\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"ReAct\", \"entity2\": \"ReAct and CoT combination\", \"description\": \"The combination of ReAct and CoT is the best approach overall for reasoning.\", \"created_at\": \"2025-08-15 17:30:03\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"ReAct\", \"entity2\": \"Webshop\", \"description\": \"ReAct achieves significantly better performance on Webshop with additional sparse reasoning, showing an absolute 10% improvement over the previous best success rate.ReAct is used to predict trajectories within the Webshop domain, indicating its application in this context.\", \"created_at\": \"2025-08-15 16:10:57\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"ReAct\", \"entity2\": \"ReAct trajectory\", \"description\": \"The ReAct methodology is used to generate the ReAct trajectory, which can be corrected by human intervention.\", \"created_at\": \"2025-08-15 17:30:07\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"ReAct\", \"entity2\": \"task solving\", \"description\": \"ReAct is a methodology for task solving by an agent interacting with an environment.ReAct is a methodology that can be applied to task solving by an agent interacting with an environment.\", \"created_at\": \"2025-08-15 17:31:17\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"Imitation Learning (IL)\", \"entity2\": \"ReAct\", \"description\": \"ReAct is compared to the Imitation Learning (IL) method.\", \"created_at\": \"2025-08-15 17:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"IL + Reinforcement Learning (IL+RL)\", \"entity2\": \"ReAct\", \"description\": \"ReAct is compared to the IL + Reinforcement Learning (IL+RL) method.\", \"created_at\": \"2025-08-15 17:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"ReAct\", \"entity2\": \"learning from more high-quality human annotations\", \"description\": \"Learning from more high-quality human annotations is a desiderata to further improve the performance of ReAct.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Internet\", \"entity2\": \"ReAct\", \"description\": \"\\\"ReAct successfully retrieves up-to-date information from the Internet, enabling it to provide reasonable answers.\\\")\", \"created_at\": \"2025-08-15 16:09:34\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"HUMAN-IN-THE-LOOP BEHAVIOR CORRECTION ON ALFWORLD\", \"entity2\": \"ReAct\", \"description\": \"The methodology of human-in-the-loop behavior correction is applied to ReAct to allow human inspection and editing of its reasoning traces.\", \"created_at\": \"2025-08-15 16:07:27\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"ReAct\", \"entity2\": \"Thought Editing\", \"description\": \"ReAct incorporates thought editing as a feature for human control over agent behavior.\", \"created_at\": \"2025-08-15 15:56:35\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"ReAct\", \"entity2\": \"ReAct -> CoT-SC\", \"description\": \"The heuristic 'ReAct -> CoT-SC' describes a scenario where ReAct fails to provide an answer within a set number of steps, leading to a switch to CoT-SC.\", \"created_at\": \"2025-08-15 16:00:40\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"ReAct\", \"entity2\": \"multi-step computation problems\", \"description\": \"ReAct tackles tasks beyond reasoning, such as interactive decision making, and improves on multi-step computation problems, similar to Scratchpad.\", \"created_at\": \"2025-08-15 15:54:08\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"IM\", \"entity2\": \"ReAct\", \"description\": \"ReAct substantially outperforms IM-style prompting (ReAct-IM) with consistent advantages on five out of six tasks.\", \"created_at\": \"2025-08-15 15:58:58\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"ALFWorld game\", \"entity2\": \"ReAct\", \"description\": \"ReAct is demonstrated and evaluated within the ALFWorld game environment.\", \"created_at\": \"2025-08-15 16:13:46\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"QA task\", \"entity2\": \"ReAct\", \"description\": \"ReAct augments the action space to potentially improve performance on tasks like the QA task that require complex reasoning.\", \"created_at\": \"2025-08-15 15:53:11\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"ReAct\", \"entity2\": \"Sinkbasin\", \"description\": \"ReAct's thought process would have identified that the next subgoal was to go to a sinkbasin to clean the knife.\", \"created_at\": \"2025-08-15 16:11:49\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"ReAct\", \"entity2\": \"bootstraping approach\", \"description\": \"ReAct is used to generate correct answers for trajectories that are then used in a bootstrapping approach to finetune smaller language models.\", \"created_at\": \"2025-08-15 15:57:57\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"ReAct\", \"entity2\": \"WebGPT\", \"description\": \"WebGPT does not explicitly model the thinking and reasoning procedure, unlike ReAct.\", \"created_at\": \"2025-08-15 15:54:09\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"ReAct\", \"entity2\": \"Selection-Inference\", \"description\": \"ReAct performs more than just isolated, fixed reasoning, unlike Selection-Inference.\", \"created_at\": \"2025-08-15 15:54:04\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"Faithful reasoning\", \"entity2\": \"ReAct\", \"description\": \"ReAct performs more than just isolated, fixed reasoning, unlike Faithful reasoning.\", \"created_at\": \"2025-08-15 15:54:08\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"ReAct\", \"entity2\": \"dictator game\", \"description\": \"ReAct used the dictator game as a subject for its question-answering process.\", \"created_at\": \"2025-08-15 16:22:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"ReAct\", \"entity2\": \"initial finetuning experiments\", \"description\": \"Initial finetuning experiments demonstrate the potential of ReAct to improve with additional training data.Initial finetuning experiments demonstrate the potential of ReAct to improve with additional training data.Initial finetuning experiments demonstrated the potential of ReAct to improve with additional training data.\", \"created_at\": \"2025-08-15 17:30:59\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"ReAct\", \"entity2\": \"imitation or reinforcement learning methods\", \"description\": \"ReAct outperforms imitation or reinforcement learning methods on ALFWorld and WebShop.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"ReAct\", \"entity2\": \"flexible thought space\", \"description\": \"The flexible thought space is a key component that enables ReAct's advanced capabilities in modifying beliefs and reasoning styles.\", \"created_at\": \"2025-08-15 17:30:12\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"ReAct\", \"entity2\": \"external knowledge base\", \"description\": \"ReAct's grounding, fact-driven nature, and trustworthiness are attributed to its access to an external knowledge base.\", \"created_at\": \"2025-08-15 17:20:03\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"ReAct\", \"entity2\": \"Wikipedia API\", \"description\": \"ReAct interacts with a Wikipedia API to retrieve information to support reasoning.ReAct interacts with the Wikipedia API to improve its reasoning capabilities and overcome issues like hallucination and error propagation.\", \"created_at\": \"2025-08-15 15:56:35\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"ReAct\", \"entity2\": \"finetuning\", \"description\": \"Finetuning ReAct enables additional benefits.The ReAct method often performs best, particularly when finetuned.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"ReAct\", \"entity2\": \"vanilla action generation models\", \"description\": \"ReAct outperforms vanilla action generation models on HotPotQA and Fever.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"ReAct\", \"entity2\": \"human dialogue\", \"description\": \"ReAct's ability to modify internal beliefs and reasoning styles goes beyond updating goals or subgoals through human dialogue as seen in Huang et al. (2022b).\", \"created_at\": \"2025-08-15 17:30:12\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"Huang et al. (2022b)\", \"entity2\": \"ReAct\", \"description\": \"ReAct is presented as an advancement over the methodology described in Huang et al. (2022b) because it can modify more than just goals or subgoals.\", \"created_at\": \"2025-08-15 17:30:04\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"ReAct\", \"entity2\": \"ReAct, Thorne et al., 2018\", \"description\": \"Thorne et al., 2018 is a citation associated with ReAct.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"ReAct\", \"entity2\": \"interactive decision-making tasks\", \"description\": \"ReAct was shown to lead to superior performance on interactive decision-making tasks.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"ReAct\", \"entity2\": \"search\", \"description\": \"Successful knowledge retrieval through search is critical for ReAct's performance.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"ReAct\", \"entity2\": \"fact checking\", \"description\": \"ReAct was shown to lead to superior performance on fact checking tasks.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"ReAct\", \"entity2\": \"multi-hop question-answering\", \"description\": \"ReAct was shown to lead to superior performance on multi-hop question-answering tasks.\", \"created_at\": \"2025-08-15 16:03:35\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"ReAct\", \"entity2\": \"Thought 1: I need to search David Chanoff and find the U.S.Navy admiral he collaboratedwith.\", \"description\": \"The thought process is a step within the ReAct methodology, demonstrating how ReAct might be applied.\", \"created_at\": \"2025-08-15 16:12:19\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"ReAct\", \"entity2\": \"problem solving trajectory\", \"description\": \"\\\"ReAct's problem solving trajectory is characterized as grounded, fact-driven, and trustworthy.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"ReAct\", \"entity2\": \"baselines\", \"description\": \"ReAct consistently outperforms baselines that only use reasoning or acting across different domains.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"ReAct\", \"entity2\": \"human inspection\", \"description\": \"ReAct provides an interpretable process that allows humans to easily inspect reasoning and factual correctness.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"ReAct\", \"entity2\": \"chain-of-thought reasoning\", \"description\": \"ReAct addresses and overcomes prevalent issues of hallucination and error propagation in chain-of-thought reasoning.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"ReAct\", \"entity2\": \"external environment\", \"description\": \"Actions in the language space of ReAct do not affect the external environment.\", \"created_at\": \"2025-08-15 17:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"ReAct\", \"entity2\": \"observation feedback\", \"description\": \"Actions in the language space of ReAct do not lead to observation feedback.\", \"created_at\": \"2025-08-15 17:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"ReAct\", \"entity2\": \"ReAct Trajectory\", \"description\": \"The ReAct Trajectory section details the successful execution of the ReAct methodology.\", \"created_at\": \"2025-08-15 16:13:46\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"ReAct\", \"entity2\": \"pick_clean_then_place_in_recep-Knife-None-CounterTop-10/ trial_T20190909_110445_675754\", \"description\": \"The ReAct trajectory is exemplified using the specific trial 'pick_clean_then_place_in_recep-Knife-None-CounterTop-10/ trial_T20190909_110445_675754'.\", \"created_at\": \"2025-08-15 16:13:46\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"Princess Mononoke is a film\", \"entity2\": \"ReAct\", \"description\": \"The ReAct methodology is used to verify the claim that 'Princess Mononoke' is a film.\", \"created_at\": \"2025-08-15 16:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"ReAct\", \"entity2\": \"interpretable decision traces\", \"description\": \"ReAct leads to interpretable decision traces, which are a key result of the method.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"ReAct\", \"entity2\": \"human interpretability\", \"description\": \"ReAct demonstrates improved human interpretability compared to baselines.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"ReAct\", \"entity2\": \"prompt selections\", \"description\": \"The performance of ReAct is robust to different prompt selections.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"ReAct\", \"entity2\": \"reasoning error\", \"description\": \"ReAct is susceptible to reasoning errors, including a specific pattern of repetitive thought and action loops.\", \"created_at\": \"2025-08-15 15:53:47\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"ReAct\", \"entity2\": \"interleaving reasoning, action and observation steps\", \"description\": \"\\\"Interleaving reasoning, action, and observation steps improves ReAct's groundedness and trustworthiness but reduces its flexibility.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"ReAct\", \"entity2\": \"repetitive thought and action loops\", \"description\": \"\\\"ReAct exhibits a specific error pattern of repetitive thought and action loops, indicating a failure in reasoning.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"ReAct\", \"entity2\": \"SimpleTOD\", \"description\": \"ReAct and SimpleTOD both train LMs for API call decisions, but ReAct is cheaper as it doesn't require expensive datasets and human feedback, and it explicitly considers the reasoning procedure while SimpleTOD does not.\", \"created_at\": \"2025-08-15 16:08:51\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"ReAct\", \"entity2\": \"noninformative search\", \"description\": \"Noninformative search is a critical issue for ReAct, causing 23% of errors and derailing its reasoning.\", \"created_at\": \"2025-08-15 15:58:16\", \"file_path\": \"unknown_source\"}, {\"id\": 107, \"entity1\": \"ReAct\", \"entity2\": \"knowledge bases\", \"description\": \"Actions, a component of ReAct, allow the model to interface with and gather information from knowledge bases.\", \"created_at\": \"2025-08-15 15:51:59\", \"file_path\": \"unknown_source\"}, {\"id\": 108, \"entity1\": \"ReAct\", \"entity2\": \"environments\", \"description\": \"Actions, a component of ReAct, allow the model to interface with and gather information from environments.\", \"created_at\": \"2025-08-15 15:51:59\", \"file_path\": \"unknown_source\"}, {\"id\": 109, \"entity1\": \"ReAct\", \"entity2\": \"failure mode\", \"description\": \"\\\"Failure mode constitutes a major failure mode for ReAct, making up 56% of its operations.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 110, \"entity1\": \"ReAct\", \"entity2\": \"fine-tuning approach on HotpotQA\", \"description\": \"The fine-tuning approach on HotpotQA was explored to address the limitations of ReAct in complex tasks, showing initial promising results.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 111, \"entity1\": \"ReAct\", \"entity2\": \"in-context examples\", \"description\": \"ReAct demonstrates strong generalization to new task instances by learning solely from one to six in-context examples.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 112, \"entity1\": \"ReAct\", \"entity2\": \"What nationality is the man who developed the dictator game?\", \"description\": \"ReAct uses this question as part of its process to gather information.\", \"created_at\": \"2025-08-15 16:22:50\", \"file_path\": \"unknown_source\"}, {\"id\": 113, \"entity1\": \"Action 1: collaboratedwith.\", \"entity2\": \"ReAct\", \"description\": \"The 'Action 1' is a step taken within the ReAct methodology, likely to gather information for the question posed.\", \"created_at\": \"2025-08-15 16:12:19\", \"file_path\": \"unknown_source\"}, {\"id\": 114, \"entity1\": \"Figure 1(1d)\", \"entity2\": \"ReAct\", \"description\": \"Figure 1(1d) demonstrates ReAct's ability to synergize reasoning and acting through Wikipedia API interaction.\", \"created_at\": \"2025-08-15 15:56:35\", \"file_path\": \"unknown_source\"}, {\"id\": 115, \"entity1\": \"Claim Thought Answer\", \"entity2\": \"ReAct\", \"description\": \"The Claim Thought Answer section is evaluated using the ReAct methodology to determine the sufficiency of information for a claim.\", \"created_at\": \"2025-08-15 16:10:29\", \"file_path\": \"unknown_source\"}, {\"id\": 116, \"entity1\": \"Language Model\", \"entity2\": \"ReAct\", \"description\": \"The Language Model's decision-making and reasoning capabilities are integrated into ReAct, and it determines the timing of thoughts and actions in ReAct for decision-making tasks.\", \"created_at\": \"2025-08-15 15:54:59\", \"file_path\": \"unknown_source\"}, {\"id\": 117, \"entity1\": \"ReAct\", \"entity2\": \"Thought 1:\", \"description\": \"The ReAct methodology includes thinking steps like 'Thought 1'.\", \"created_at\": \"2025-08-15 16:14:41\", \"file_path\": \"unknown_source\"}, {\"id\": 118, \"entity1\": \"ReAct\", \"entity2\": \"input length limit of in-context learning\", \"description\": \"Complex tasks with large action spaces require more demonstrations for ReAct to learn well, which can exceed the input length limit of in-context learning.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 119, \"entity1\": \"ReAct\", \"entity2\": \"text game\", \"description\": \"ReAct works for the task of text game due to its flexible thought space and thought-action occurrence format.\", \"created_at\": \"2025-08-15 16:00:59\", \"file_path\": \"unknown_source\"}, {\"id\": 120, \"entity1\": \"ReAct\", \"entity2\": \"human-written data\", \"description\": \"The text suggests that finetuning with more human-written data could improve the performance of ReAct.\", \"created_at\": \"2025-08-15 15:53:11\", \"file_path\": \"unknown_source\"}, {\"id\": 121, \"entity1\": \"ReAct\", \"entity2\": \"fact verification\", \"description\": \"ReAct works for the task of fact verification due to its flexible thought space and thought-action occurrence format.\", \"created_at\": \"2025-08-15 16:00:59\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: React_paper\\nChunk: 59\\n\\nth the help of LLMs, language as a fundamental cognitive mechanism will play a critical role in interaction and decision making. What is more, progress in LLMs has also inspired the development of versatile and generalist agents like Reed et al. (2022). # 6 CONCLUSION We have proposed ReAct – a simple yet effective method for synergizing reasoning and acting in large language models. Through a diverse set of experiments on multi-hop question-answering, fact checking, and interactive decision-making tasks, we show that ReAct leads to superior performance with interpretable decision traces. Despite the simplicity of our method, complex tasks with large action spaces require more demonstrations to learn well, which unfortunately can easily go beyond the input length limit of in-context learning. We explore the fine-tuning approach on HotpotQA with initial promising results, but learning from more high-quality human annotations will be the desiderata to further improve the performance.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 151\\n\\noves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. (b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: React_paper\\nChunk: 37\\n\\n$6 \\\\%$ ) in success mode, and make up its major failure mode $( 5 6 \\\\% )$ . In contrast, the problem solving trajectory of ReActis more grounded, fact-driven, and trustworthy, thanks to the access of an external knowledge base. B) While interleaving reasoning, action and observation steps improves ReAct’s groundedness and trustworthiness, such a structural constraint also reduces its flexibility in formulating reasoning steps, leading to more reasoning error rate than CoT. we note that there is one frequent error pattern specific to ReAct, in which the model repetitively generates the previous thoughts and actions, and we categorize it as part of “reasoning error” as the model fails to reason about what the proper next action to take and jump out of the $\\\\\\\\mathrm { l o o p ^ { 4 } }$ . C) For ReAct, successfully retrieving informative knowledge via search is critical.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: MOE\\nChunk: 5\\n\\nn multimodal data (e.g., text, images, and audio) and exhibit intricate structures (e.g., graphs or hierarchical relationships). This diversity and complexity introduce two significant challenges: (1) the computational cost of training and deploying large models grows exponentially, making it unsustainable for many applications [11], and (2) integrating conflicting or heterogeneous knowledge within a single model becomes increasingly difficult, often leading to unstable training dynamics and suboptimal performance [12]. These challenges underscore the need for more efficient and scalable architectures capable of meeting the growing demands of modern AI tasks. One promising approach to addressing these challenges is the Mixture of Experts (MoE) architecture, which has attracted much attention recently. Originally proposed in [13], [14], MoE adopts a “divide and conquer” strategy that fundamentally differs from traditional dense models.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: React_paper\\nChunk: 2\\n\\nchain-of-thought prompting) and acting (e.g. action plan generation) have primarily been studied as separate topics. In this paper, we explore the use of LLMs to generate both reasoning traces and task-specific actions in an interleaved manner, allowing for greater synergy between the two: reasoning traces help the model induce, track, and update action plans as well as handle exceptions, while actions allow it to interface with and gather additional information from external sources such as knowledge bases or environments. We apply our approach, named ReAct, to a diverse set of language and decision making tasks and demonstrate its effectiveness over state-of-the-art baselines in addition to improved human interpretability and trustworthiness.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 9.0334, + "rag_initialization_seconds": 5.395, + "query_execution_seconds": 3.6384, + "start_timestamp": "2025-08-15T18:24:27.242162", + "end_timestamp": "2025-08-15T18:24:36.275580" + }, + "metadata": { + "saved_at": "2025-08-15T18:24:36.276578", + "file_path": "retrieval_logs\\retrieval_20250815_182436_276_mix_k12_ck5_You_are_tasked_with_designing_a_fundamentally_new_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_195910_421_mix_k12_ck5_You_are_tasked_with_designing_a_fundamentally_new_.json b/retrieval_logs/retrieval_20250815_195910_421_mix_k12_ck5_You_are_tasked_with_designing_a_fundamentally_new_.json new file mode 100644 index 0000000000000000000000000000000000000000..d658ff5f9934f83fd706a00c5ff7da360354e923 --- /dev/null +++ b/retrieval_logs/retrieval_20250815_195910_421_mix_k12_ck5_You_are_tasked_with_designing_a_fundamentally_new_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T19:59:10.421933", + "query": "\n You are tasked with designing a fundamentally new AI agent architecture by combining and extending the core principles from ReAct (reasoning-action cycles), Mixture of Experts (specialized parallel processing), and any additional concepts available in your context. The goal is to transcend current agent limitations through principled architectural innovation.\nSpecific Challenge: Current AI agents are fundamentally limited by:\n\nSequential processing (think→plan→act chains)\nStatic expert allocation (fixed capabilities)\nReactive rather than anticipatory behavior\nSingle-threaded consciousness models\n\nYour Task: Design a revolutionary agent architecture that demonstrates:\nParallel Cognitive Streams: How could multiple ReAct cycles operate simultaneously across different abstraction levels (tactical, strategic, meta-cognitive) using MoE principles to coordinate between them?\nDynamic Expert Genesis: How could the agent automatically spawn new specialized experts based on encountered task complexity, rather than using pre-defined expert sets?\nAnticipatory Reasoning: How could the agent maintain continuous background models of environment evolution, enabling proactive rather than reactive decision-making?\nRecursive Self-Architecture: How could the agent use its own reasoning capabilities to redesign its expert allocation and coordination mechanisms?\nRequired Deliverables:\n\nA concrete architectural design showing how ReAct and MoE can be extended beyond current implementations\nSpecific mechanisms for each capability above, grounded in the available concepts\nNovel emergent properties that arise from these combinations\nTestable hypotheses about agent capabilities this would enable\n\nConstraint: Base your design on principled extensions of the concepts in your context, but push those concepts to their logical extremes and unexpected combinations.\"\n ", + "query_mode": "mix", + "top_k": 12, + "chunk_top_k": 5, + "text_length": 58651, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Harder tasks need more experts: Dynamic routing in moe models\", \"type\": \"abstract\", \"description\": \"This abstract discusses dynamic routing in Mixture of Experts (MoE) models, suggesting that more complex tasks require a greater number of experts.\", \"created_at\": \"2025-08-15 15:43:02\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"AI systems\", \"type\": \"discussion\", \"description\": \"AI systems can be designed to be more robust and transparent by leveraging the interpretability offered by Mixture of Experts (MoE) models.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"ReAct\", \"type\": \"methodology\", \"description\": \"ReAct is a methodology that can be improved with additional training data and scaled up to train and operate on more tasks. It can be combined with complementary paradigms like reinforcement learning to further unlock the potential of large language models.ReAct is a novel prompt-based paradigm and methodology designed to enhance the performance of large language models (LLMs) by synergizing reasoning and acting for general task solving. It operates by augmenting an agent's action space to include a language space for thoughts or reasoning traces, which are distinct in that they do not affect the external environment and do not provide observation feedback.\\n\\nThe methodology prompts LLMs to generate verbal reasoning traces and interleaves reasoning, action, and observation steps. This process is grounded, fact-driven, and trustworthy due to ReAct's access to an external knowledge base, which is critical for successful information retrieval via search. ReAct explicitly models thinking and reasoning procedures, enabling interaction with external sources such as APIs and environments like Wikipedia for information gathering through task-specific actions. Its reasoning traces are flexible and sparse, allowing for diverse reasoning types to be induced for different tasks, and it works for diverse tasks with distinct action spaces and reasoning needs due to its flexible thought space and thought-action occurrence format. ReAct assists in inducing, tracking, and updating action plans, handling exceptions, and incorporating additional information into reasoning. It is capable of knowledge-intensive reasoning tasks, such as multi-hop question answering and fact verification, demonstrating a synergy between reasoning and acting by interacting with external environments to retrieve information and using reasoning to determine what information to retrieve next. ReAct also allows for modification of a model's internal belief, reasoning styles, or anything supported by a flexible thought space for better task solving, and is capable of updating goals or subgoals, with a sequence of subgoals concretely captured by each thought. It can also be a behavior correction example with a human-in-the-loop.\\n\\nIn terms of performance, ReAct demonstrates significantly better results than previous methods on various benchmarks like Webshop and HotpotQA, showing improvements in success rate and a reduction in reasoning errors and hallucination compared to Chain-of-Thought (CoT). It outperforms other prompting methods, vanilla action generation models, and imitation or reinforcement learning methods on tasks like ALFWorld and Webshop, often with fewer task instances. While generally improving groundedness and trustworthiness, ReAct can exhibit a higher reasoning error rate than Chain-of-Thought in some cases, with a frequent error pattern involving repetitive generation of previous thoughts and actions. Despite this, it consistently addresses shortcomings in subgoal identification and item location by incorporating commonsense reasoning. ReAct shows strong generalization to new task instances while learning solely from a few in-context examples. It also offers benefits when finetuning is enabled, and its performance is robust to prompt selections. ReAct promises an interpretable sequential decision-making and reasoning process where humans can easily inspect reasoning and factual correctness, and can control or correct agent behavior on the go by thought editing. It has been tested on language-based interactive decision-making tasks like ALFWorld and WebShop, which feature complex environments requiring agents to act over long horizons with sparse rewards, thus needing reasoning to act and explore effectively. For instance, in the ALFWorld game, ReAct has demonstrated the ability to correctly find a knife, clean it, and then place it on a countertop. It can interact with a Wikipedia API for tasks like HotPotQA and Fever. ReAct is a methodology that can be improved with additional training data and scaled up to train and operate on more tasks, and it can be combined with complementary paradigms like reinforcement learning to further unlock the potential of large language models.\", \"created_at\": \"2025-08-15 15:51:52\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"model interpretability\", \"type\": \"discussion\", \"description\": \"Model interpretability is an opportunity offered by Mixture of Experts (MoE) models, achieved by learning intrinsic allocation mechanisms. This process enhances the understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems. Furthermore, model interpretability is enhanced by the combination of reasoning and acting, which allows humans to distinguish between internal knowledge and external environments.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"agents\", \"type\": \"methodology\", \"description\": \"Agents are entities that learn and make decisions in Reinforcement Learning environments.Agents are entities that learn diverse skills to enhance their ability to handle complex tasks.agents are entities that operate within complex environments like ALFWorld and WebShop, requiring them to act over long horizons with sparse rewards and utilize reasoning to explore effectively.\", \"created_at\": \"2025-08-15 16:01:26\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"representation collapse\", \"type\": \"discussion\", \"description\": \"Representation collapse into similar representations limits the generalization ability of agents.\", \"created_at\": \"2025-08-15 15:25:30\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"MoE architecture\", \"type\": \"methodology\", \"description\": \"The MoE (Mixture of Experts) architecture is a structural design in machine learning, particularly prominent in large language models, characterized by the use of specialized \\\"expert\\\" networks dynamically selected by a gating function. This specialization allows individual experts to focus on distinct knowledge domains, thereby enhancing the MoE architecture's overall performance, generalization capabilities, and computational efficiency. The MoE architecture excels at handling diverse knowledge within data, leading to improved algorithm designs and finding applications across various machine learning paradigms, including computer vision and natural language processing. Its flexibility and scalability make it suitable for edge deployment and capacity scaling of large models, and it holds potential for developing unified multi-modal large language models.\\n\\nThe MoE architecture alleviates hardware pressure through sparse activation and a divide-and-conquer strategy, reducing computational costs and enhancing model performance, especially in multi-task, low-resource, and complex reasoning scenarios, while also supporting personalized services. It has been utilized in MENTOR for action generations and explored in reinforcement learning domains like multi-agent RL and imitation learning. The MoE architecture is also leveraged to solve integrated training problems for multiple tasks, overcoming inconsistencies in input and output formats, and has been applied in CLIP-MoE to enhance the CLIP model's capabilities. However, it's important to note that the MoE architecture is a framework that can be integrated with different object detectors, but simply adding different detectors does not guarantee improved model performance and can even have adverse effects due to competition among detectors. Discussions surrounding the MoE architecture often delve into its basic designs, training strategies, synergy with machine learning algorithms, recent theoretical advancements, and how factors like the number of expert networks, MoE layers, and their placement influence performance, efficiency, and stability. The MoE architecture inherently possesses better transparency.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed. However, it incurs significant memory overhead, making it impractical for edge device memory constraints.\", \"created_at\": \"2025-08-15 16:46:35\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"multi-agent RL\", \"type\": \"methodology\", \"description\": \"Multi-agent RL is a domain where the application of MoE has been explored.\", \"created_at\": \"2025-08-15 15:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"MoE architectures\", \"type\": \"methodology\", \"description\": \"MoE (Mixture of Experts) architectures are designed to enhance parameter efficiency and manage computational costs effectively. They offer potential improvements in model interpretability by learning intrinsic allocation mechanisms. These architectures possess a sparse nature, necessitating dynamic data allocation, which makes pipeline design a critical factor in their training. While MoE architectures have shown impressive scalability and performance, their theoretical foundations are not yet fully understood. Further research is needed to optimize the design of MoE architectures, particularly in determining the optimal number of experts and their specialization, as current methods often rely on heuristic or static settings that may not be universally optimal for all tasks.MoE architectures are a type of architecture that EdgeMoE aims to improve by reducing latency caused by frequent expert switching in limited device memory.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"intrinsic allocation mechanisms\", \"type\": \"methodology\", \"description\": \"Intrinsic allocation mechanisms are learned by MoE models, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"robust and transparent AI systems\", \"type\": \"possible enhancements\", \"description\": \"Designing more robust and transparent AI systems is an avenue opened by the interpretability of MoE models.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"type\": \"abstract\", \"description\": \"This abstract discusses the use of mixtures of experts to unlock parameter scaling for deep reinforcement learning.This is a citation for a paper discussing mixtures of experts and parameter scaling in deep RL.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems and scheduling for behavior acquisition in multi-agent environments.This methodology describes a modular learning system and scheduling for behavior acquisition in a multi-agent environment.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"reinforcement learning\", \"type\": \"methodology\", \"description\": \"Reinforcement learning (RL) is a machine learning paradigm that can be combined with ReAct to create more robust agents. RL is also a suitable approach for applying Mixture of Experts (MoE) based algorithms and can dynamically adjust MoE model architectures based on task complexity and data distribution. While RL is a technique used to improve adaptability and efficiency, and is employed to train rewriters with downstream LLM performance as the reward, it is outperformed by ReAct in interactive decision-making benchmarks.Reinforcement learning is a complementary paradigm that can be combined with ReAct.Reinforcement learning is a complementary paradigm that can be combined with ReAct.\", \"created_at\": \"2025-08-15 17:30:54\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"task complexity\", \"type\": \"discussion\", \"description\": \"Task complexity is a factor that reinforcement learning can use to dynamically adjust the architecture of MoE models.\", \"created_at\": \"2025-08-15 15:42:56\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"A generalist agent\", \"type\": \"methodology\", \"description\": \"This refers to a methodology or concept related to generalist agents, published in 2022 with a URL provided.\", \"created_at\": \"2025-08-15 16:07:01\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Scratchpads for intermediate computation with language models\", \"type\": \"methodology\", \"description\": \"This refers to a methodology or tool for intermediate computation with language models, published in 2021 with a URL provided.\", \"created_at\": \"2025-08-15 16:07:01\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"specialization\", \"type\": \"methodology\", \"description\": \"Specialization is a benefit achieved when experts develop expertise in specific knowledge domains, enabled by the gating function accurately discerning data and expert characteristics.The specialization of experts in MoE architectures is a design aspect that requires further exploration.\", \"created_at\": \"2025-08-15 15:37:49\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"MoE\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning methodology and model design that enhances performance, generalization ability, and computational efficiency, particularly for complex and diverse tasks. MoE operates on a \\\"divide and conquer\\\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This framework allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. MoE leverages specialized \\\"experts\\\" for different tasks or data types, providing a scalable and flexible framework for tackling complex, multifaceted datasets and handling diverse knowledge domains without proportionally increasing computational costs. Expert networks can operate independently and are often integrated into a single network model by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers or CNN layers, with MoE layers, demonstrating high flexibility and broad applicability. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible Natural Language Generation (NLG) systems. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. MoE can alleviate problems in High-Value Content Learning (HVCL) such as known task boundaries and increased computation cost by leveraging multiple experts. MoE is also introduced into the decoder to address the issue of static feature decoding in different task decoders due to shared decoding parameters, which leads to insufficient distinction in task-specific features. MoE decomposes backbone features into task-agnostic features from different aspects, making the decoding process of task-specific features more fine-grained. MoE introduces shared expert modules, domain expert modules, and task expert modules, which learn cross-domain and cross-task common knowledge, domain-specific user preferences, and task-specific user preferences, respectively. This enables models to capture user preferences from multiple perspectives and handle complex dependencies between domains and tasks, allowing for flexible model expansion and handling dependencies between different tasks, making it suitable for visual multi-task models. MoE can be combined with various types of tokens to achieve better learning performance and has been applied in computer vision and natural language processing, showing significant potential, especially in large language models (LLMs). It also enhances the understanding of model behaviors. MoE is an advanced technique that enhances LLM performance andMoE is a technique that enhances LLM performance.\", \"created_at\": \"2025-08-15 16:36:35\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"algorithm designs\", \"type\": \"methodology\", \"description\": \"Algorithm designs are being improved by applying the MoE architecture.\", \"created_at\": \"2025-08-15 15:20:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LLMs\", \"entity2\": \"ReAct\", \"description\": \"ReAct is a method for synergizing reasoning and acting in large language models, indicating a direct application or enhancement of LLMs.\", \"created_at\": \"2025-08-15 16:03:29\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"AI systems\", \"entity2\": \"model interpretability\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Figure 2\", \"entity2\": \"ReAct\", \"description\": \"Figure 2 compares the performance of ReAct with other methods, showing a direct relationship in terms of comparative analysis.\", \"created_at\": \"2025-08-15 15:54:47\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"agents\", \"entity2\": \"representation collapse\", \"description\": \"Representation collapse limits the generalization ability of agents.\", \"created_at\": \"2025-08-15 15:25:31\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Act\", \"entity2\": \"ReAct\", \"description\": \"ReAct is presented as a superior or alternative methodology to Act, as ReAct uses reasoning to find products that satisfy all target attributes, which is implied to be a capability Act lacks or performs less effectively.The ReAct method demonstrates superior performance compared to the Act method across various tasks. Specifically, ReAct achieves significantly better performance than Act on Webshop, showing an absolute 10% improvement in success rate due to additional sparse reasoning. Furthermore, ReAct outperforms Act on both the HotpotQA and Fever tasks, highlighting the benefit of reasoning in guiding actions. Both ReAct and Act methods generally benefit from an increased number of training steps. The difference in their approach is further emphasized by ReAct's ability to use reasoning to find products that satisfy all target attributes, suggesting a more effective strategy than Act.\", \"created_at\": \"2025-08-15 16:10:56\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"MoE architecture\", \"entity2\": \"multi-agent RL\", \"description\": \"The MoE architecture has been explored in multi-agent RL.\", \"created_at\": \"2025-08-15 15:29:58\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Figure 3\", \"entity2\": \"ReAct\", \"description\": \"Figure 3 shows that prompting ReAct performs worst among four methods on HotpotQA with PaLM-8/62B due to difficulties in learning reasoning and acting.\", \"created_at\": \"2025-08-15 15:58:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"MoE architectures\", \"entity2\": \"intrinsic allocation mechanisms\", \"description\": \"MoE architectures learn intrinsic allocation mechanisms.\", \"created_at\": \"2025-08-15 15:19:39\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"CoT\", \"entity2\": \"ReAct\", \"description\": \"Finetuning CoT is significantly worse than finetuning ReAct for both PaLM8/62B.ReAct has a higher reasoning error rate than CoT due to structural constraints in ReAct.ReAct exhibits a higher reasoning error rate compared to CoT due to structural constraints.\", \"created_at\": \"2025-08-15 17:20:04\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"model interpretability\", \"entity2\": \"robust and transparent AI systems\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"ReAct\", \"entity2\": \"Table 10\", \"description\": \"Table 10 shows example trajectories predicted by ReAct, illustrating its performance and methodology.\", \"created_at\": \"2025-08-15 16:10:57\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"description\": \"Both entities are related to learning systems, with one focusing on deep RL and the other on multi-agent environments.\", \"created_at\": \"2025-08-15 15:44:26\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"ReAct\", \"entity2\": \"reinforcement learning\", \"description\": \"ReAct can be combined with reinforcement learning to further unlock the potential of large language models.\", \"created_at\": \"2025-08-15 17:31:17\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"reinforcement learning\", \"entity2\": \"task complexity\", \"description\": \"Reinforcement learning can dynamically adjust the architecture of MoE models based on task complexity.\", \"created_at\": \"2025-08-15 15:43:02\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"HotPotQA\", \"entity2\": \"ReAct\", \"description\": \"ReAct is a framework applied to knowledge-intensive reasoning tasks, and it has been specifically utilized and evaluated on the HotPotQA dataset, which focuses on multi-hop question answering. On HotPotQA, ReAct demonstrates superior performance compared to vanilla action generation models. Furthermore, ReAct is competitive with chain-of-thought (CoT) reasoning approaches when evaluated on the HotPotQA dataset.ReAct is used for HotPotQA.ReAct outperforms vanilla action generation models while being competitive with chain-of-thought reasoning (CoT) on HotPotQA.\", \"created_at\": \"2025-08-15 17:29:42\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"A generalist agent\", \"entity2\": \"Scratchpads for intermediate computation with language models\", \"description\": \"Both are cited as publications related to AI research, suggesting a connection in the field.\", \"created_at\": \"2025-08-15 16:07:03\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"AlfWorld task-specific success rates\", \"entity2\": \"ReAct\", \"description\": \"The performance of ReAct is measured by AlfWorld task-specific success rates.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"MoE architectures\", \"entity2\": \"specialization\", \"description\": \"The specialization of experts in MoE architectures requires further exploration.\", \"created_at\": \"2025-08-15 15:37:58\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"ReAct\", \"entity2\": \"Standard\", \"description\": \"Finetuning Standard is significantly worse than finetuning ReAct for both PaLM8/62B.ReAct and Act methods generally benefit from more training steps, while Standard and CoT methods degrade soon after finetuning.ReAct is contrasted with Standard, which fails due to hallucination, while ReAct succeeds by retrieving up-to-date information.\", \"created_at\": \"2025-08-15 16:09:33\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"AI systems\", \"entity2\": \"MoE\", \"description\": \"MoE opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:13:53\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"HotpotQA\", \"entity2\": \"ReAct\", \"description\": \"\\\"ReAct sometimes disagrees with dataset labels from HotpotQA because the labels could be outdated, impacting its performance on questions related to the dataset.\\\")ReAct is evaluated on the HotpotQA benchmark for question answering, demonstrating its effectiveness in overcoming hallucination and error propagation.ReAct's performance is evaluated on HotpotQA, where prompting it with PaLM-8/62B leads to poor results.\", \"created_at\": \"2025-08-15 16:09:33\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"MoE architectures\", \"entity2\": \"model interpretability\", \"description\": \"MoE architectures offer opportunities to improve model interpretability.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"CoT-SC\", \"entity2\": \"ReAct\", \"description\": \"The text proposes incorporating ReAct and CoT-SC, suggesting a complementary relationship where one can back off to the other based on specific conditions.\", \"created_at\": \"2025-08-15 16:00:33\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"MoE architecture\", \"entity2\": \"algorithm designs\", \"description\": \"The MoE architecture leads to improved algorithm designs.\", \"created_at\": \"2025-08-15 15:20:29\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"ReAct\", \"entity2\": \"sparse, versatile reasoning\", \"description\": \"The text demonstrates the importance of sparse, versatile reasoning in decision making by showing consistent advantages over controlled baselines with actions only, implying ReAct benefits from this.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"FEVER\", \"entity2\": \"ReAct\", \"description\": \"ReAct is applied to knowledge-intensive reasoning tasks, and FEVER is one of the datasets used for these tasks, specifically fact verification.\", \"created_at\": \"2025-08-15 15:56:34\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"ALFWorld\", \"entity2\": \"ReAct\", \"description\": \"ReAct is a prompting method that has been extensively evaluated and tested on ALFWorld. ALFWorld is characterized as a synthetic text-based game and a benchmark specifically designed for interactive decision-making. It is further noted that ALFWorld is designed to align with the embodied ALFRED benchmark and presents complex decision-making challenges. On this ALFWorld benchmark, ReAct prompting consistently demonstrates superior performance, outperforming other methods such as imitation learning or reinforcement learning, even when these alternative methods are trained with a large number of task instances.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"AlfWorld\", \"entity2\": \"ReAct\", \"description\": \"ReAct is demonstrated in AlfWorld through a human-in-the-loop behavior correction example.\", \"created_at\": \"2025-08-15 17:30:07\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"PaLM-62B\", \"entity2\": \"ReAct\", \"description\": \"PaLM-62B finetuned ReAct outperforms all 540B prompting methods.ReAct is finetuned on PaLM-62B for 4,000 steps.\", \"created_at\": \"2025-08-15 16:04:23\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"ReAct\", \"entity2\": \"language\", \"description\": \"The ReAct methodology augments the agent's action space with the space of language.\", \"created_at\": \"2025-08-15 17:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"ReAct\", \"entity2\": \"trustworthiness\", \"description\": \"ReAct demonstrates improved trustworthiness compared to baselines.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"ReAct\", \"entity2\": \"TRAJECTORIES\", \"description\": \"ReAct produces TRAJECTORIES.\", \"created_at\": \"2025-08-15 16:15:36\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Fever\", \"entity2\": \"ReAct\", \"description\": \"ReAct is a model that has been evaluated on the Fever benchmark for fact verification. This evaluation demonstrates ReAct's effectiveness in overcoming hallucination and error propagation. Furthermore, ReAct outperforms vanilla action generation models on Fever, and is competitive with chain-of-thought reasoning (CoT) on the same benchmark.ReAct is used for Fever.ReAct outperforms vanilla action generation models while being competitive with chain-of-thought reasoning (CoT) on Fever.\", \"created_at\": \"2025-08-15 17:30:03\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"PaLM-8B\", \"entity2\": \"ReAct\", \"description\": \"ReAct is finetuned on PaLM-8B, a process that involved 4,000 steps. This finetuned PaLM-8B, when combined with ReAct, demonstrates superior performance, specifically outperforming all PaLM-62B prompting methods.\", \"created_at\": \"2025-08-15 17:30:12\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"ReAct\", \"entity2\": \"chain-of-thought reasoning (CoT)\", \"description\": \"ReAct is competitive with chain-of-thought reasoning (CoT) on HotPotQA and Fever datasets.ReAct is competitive with chain-of-thought reasoning (CoT), and their combination is the best approach overall.ReAct is competitive with chain-of-thought reasoning (CoT), and their combination is the best approach overall.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Example 3208\", \"entity2\": \"ReAct\", \"description\": \"ReAct is the methodology that Example 3208 is illustrating.\", \"created_at\": \"2025-08-15 16:10:57\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"ReAct\", \"entity2\": \"reasoning traces\", \"description\": \"ReAct's performance demonstrates the value of reasoning to guide acting, and fine-tuning results confirm the benefit of reasoning traces for more informed acting.\", \"created_at\": \"2025-08-15 15:57:57\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Inner Monologue\", \"entity2\": \"ReAct\", \"description\": \"ReAct builds upon the closed-loop system demonstrated by Inner Monologue.\", \"created_at\": \"2025-08-15 16:08:24\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"Figure 1(1c)\", \"entity2\": \"ReAct\", \"description\": \"The agent in Figure 1(1c) demonstrates a failure in a QA task that ReAct aims to address by augmenting the action space.\", \"created_at\": \"2025-08-15 15:53:11\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Figure 1(2a)\", \"entity2\": \"ReAct\", \"description\": \"The agent in Figure 1(2a) exhibits hallucinating actions, which ReAct's language space augmentation might help to mitigate by improving context comprehension.\", \"created_at\": \"2025-08-15 15:53:11\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"ReAct\", \"entity2\": \"WebShop\", \"description\": \"On WebShop, ReAct prompting outperforms imitation or reinforcement learning methods trained with a large number of task instances.On WebShop, ReAct prompting outperforms imitation or reinforcement learning methods trained with a large number of task instances.ReAct is tested on WebShop, a language-based interactive decision-making task with complex environments and sparse rewards, requiring reasoning for effective action and exploration.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"ReAct\", \"entity2\": \"Scaling up ReAct\", \"description\": \"Scaling up ReAct is presented as a way to further unlock its potential, along with combining it with reinforcement learning.Scaling up ReAct is suggested as a way to further unlock its potential.\", \"created_at\": \"2025-08-15 17:31:17\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"ReAct\", \"entity2\": \"ReAct-IM\", \"description\": \"ReAct substantially outperforms ReAct-IM, indicating that the ReAct paradigm addresses shortcomings present in ReAct-IM.\", \"created_at\": \"2025-08-15 15:59:06\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"ReAct\", \"entity2\": \"language space\", \"description\": \"The language space is a component of the ReAct methodology, augmenting the agent's action space.\", \"created_at\": \"2025-08-15 17:20:04\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"ReAct\", \"entity2\": \"clean knife\", \"description\": \"ReAct uses reasoning to find products that satisfy all target attributes, which would include finding a clean knife if it were a target attribute.\", \"created_at\": \"2025-08-15 16:10:57\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"ReAct\", \"entity2\": \"reasoning trace\", \"description\": \"Reasoning traces are actions within the language space, which is part of the ReAct methodology.\", \"created_at\": \"2025-08-15 17:20:23\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"ReAct\", \"entity2\": \"thought\", \"description\": \"Thoughts are actions within the language space, which is part of the ReAct methodology.\", \"created_at\": \"2025-08-15 17:20:04\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"Graph 1\", \"entity2\": \"ReAct\", \"description\": \"The performance of ReAct is shown as constant at approximately 27.3 in Graph 1.\", \"created_at\": \"2025-08-15 16:00:23\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"ReAct\", \"entity2\": \"Scratchpad\", \"description\": \"ReAct performs more than just isolated, fixed reasoning, unlike Scratchpad.\", \"created_at\": \"2025-08-15 15:54:08\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"PaLM-8/62B\", \"entity2\": \"ReAct\", \"description\": \"Prompting ReAct with PaLM-8/62B on HotpotQA results in the worst performance among the four methods due to learning difficulties.\", \"created_at\": \"2025-08-15 15:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Knife\", \"entity2\": \"ReAct\", \"description\": \"ReAct's thought process would have identified that the knife had been taken.\", \"created_at\": \"2025-08-15 16:11:41\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"FEVER dev set\", \"entity2\": \"ReAct\", \"description\": \"ReAct produces trajectories that are demonstrated on the FEVER dev set.\", \"created_at\": \"2025-08-15 16:15:35\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LLMS\", \"entity2\": \"ReAct\", \"description\": \"ReAct utilizes LLMs for its decision-making process, and LLMs are generally employed in interactive and embodied environments for planning and decision making, which is relevant to ReAct's approach.\", \"created_at\": \"2025-08-15 16:08:58\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"ReAct\", \"entity2\": \"ReAct and CoT combination\", \"description\": \"The combination of ReAct and CoT is the best approach overall for reasoning.\", \"created_at\": \"2025-08-15 17:30:03\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"ReAct\", \"entity2\": \"Webshop\", \"description\": \"ReAct achieves significantly better performance on Webshop with additional sparse reasoning, showing an absolute 10% improvement over the previous best success rate.ReAct is used to predict trajectories within the Webshop domain, indicating its application in this context.\", \"created_at\": \"2025-08-15 16:10:57\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"ReAct\", \"entity2\": \"ReAct trajectory\", \"description\": \"The ReAct methodology is used to generate the ReAct trajectory, which can be corrected by human intervention.\", \"created_at\": \"2025-08-15 17:30:07\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"ReAct\", \"entity2\": \"task solving\", \"description\": \"ReAct is a methodology for task solving by an agent interacting with an environment.ReAct is a methodology that can be applied to task solving by an agent interacting with an environment.\", \"created_at\": \"2025-08-15 17:31:17\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"IL + Reinforcement Learning (IL+RL)\", \"entity2\": \"ReAct\", \"description\": \"ReAct is compared to the IL + Reinforcement Learning (IL+RL) method.\", \"created_at\": \"2025-08-15 17:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"Imitation Learning (IL)\", \"entity2\": \"ReAct\", \"description\": \"ReAct is compared to the Imitation Learning (IL) method.\", \"created_at\": \"2025-08-15 17:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"ReAct\", \"entity2\": \"learning from more high-quality human annotations\", \"description\": \"Learning from more high-quality human annotations is a desiderata to further improve the performance of ReAct.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Internet\", \"entity2\": \"ReAct\", \"description\": \"\\\"ReAct successfully retrieves up-to-date information from the Internet, enabling it to provide reasonable answers.\\\")\", \"created_at\": \"2025-08-15 16:09:34\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"HUMAN-IN-THE-LOOP BEHAVIOR CORRECTION ON ALFWORLD\", \"entity2\": \"ReAct\", \"description\": \"The methodology of human-in-the-loop behavior correction is applied to ReAct to allow human inspection and editing of its reasoning traces.\", \"created_at\": \"2025-08-15 16:07:27\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"ReAct\", \"entity2\": \"multi-step computation problems\", \"description\": \"ReAct tackles tasks beyond reasoning, such as interactive decision making, and improves on multi-step computation problems, similar to Scratchpad.\", \"created_at\": \"2025-08-15 15:54:08\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"ReAct\", \"entity2\": \"Thought Editing\", \"description\": \"ReAct incorporates thought editing as a feature for human control over agent behavior.\", \"created_at\": \"2025-08-15 15:56:35\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"ReAct\", \"entity2\": \"ReAct -> CoT-SC\", \"description\": \"The heuristic 'ReAct -> CoT-SC' describes a scenario where ReAct fails to provide an answer within a set number of steps, leading to a switch to CoT-SC.\", \"created_at\": \"2025-08-15 16:00:40\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"IM\", \"entity2\": \"ReAct\", \"description\": \"ReAct substantially outperforms IM-style prompting (ReAct-IM) with consistent advantages on five out of six tasks.\", \"created_at\": \"2025-08-15 15:58:58\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"ALFWorld game\", \"entity2\": \"ReAct\", \"description\": \"ReAct is demonstrated and evaluated within the ALFWorld game environment.\", \"created_at\": \"2025-08-15 16:13:46\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"QA task\", \"entity2\": \"ReAct\", \"description\": \"ReAct augments the action space to potentially improve performance on tasks like the QA task that require complex reasoning.\", \"created_at\": \"2025-08-15 15:53:11\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"ReAct\", \"entity2\": \"Selection-Inference\", \"description\": \"ReAct performs more than just isolated, fixed reasoning, unlike Selection-Inference.\", \"created_at\": \"2025-08-15 15:54:04\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"ReAct\", \"entity2\": \"WebGPT\", \"description\": \"WebGPT does not explicitly model the thinking and reasoning procedure, unlike ReAct.\", \"created_at\": \"2025-08-15 15:54:09\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"ReAct\", \"entity2\": \"bootstraping approach\", \"description\": \"ReAct is used to generate correct answers for trajectories that are then used in a bootstrapping approach to finetune smaller language models.\", \"created_at\": \"2025-08-15 15:57:57\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"ReAct\", \"entity2\": \"Sinkbasin\", \"description\": \"ReAct's thought process would have identified that the next subgoal was to go to a sinkbasin to clean the knife.\", \"created_at\": \"2025-08-15 16:11:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"Faithful reasoning\", \"entity2\": \"ReAct\", \"description\": \"ReAct performs more than just isolated, fixed reasoning, unlike Faithful reasoning.\", \"created_at\": \"2025-08-15 15:54:08\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"ReAct\", \"entity2\": \"dictator game\", \"description\": \"ReAct used the dictator game as a subject for its question-answering process.\", \"created_at\": \"2025-08-15 16:22:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"ReAct\", \"entity2\": \"initial finetuning experiments\", \"description\": \"Initial finetuning experiments demonstrate the potential of ReAct to improve with additional training data.Initial finetuning experiments demonstrate the potential of ReAct to improve with additional training data.Initial finetuning experiments demonstrated the potential of ReAct to improve with additional training data.\", \"created_at\": \"2025-08-15 17:30:59\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"ReAct\", \"entity2\": \"flexible thought space\", \"description\": \"The flexible thought space is a key component that enables ReAct's advanced capabilities in modifying beliefs and reasoning styles.\", \"created_at\": \"2025-08-15 17:30:12\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"ReAct\", \"entity2\": \"external knowledge base\", \"description\": \"ReAct's grounding, fact-driven nature, and trustworthiness are attributed to its access to an external knowledge base.\", \"created_at\": \"2025-08-15 17:20:03\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"ReAct\", \"entity2\": \"imitation or reinforcement learning methods\", \"description\": \"ReAct outperforms imitation or reinforcement learning methods on ALFWorld and WebShop.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"ReAct\", \"entity2\": \"Wikipedia API\", \"description\": \"ReAct interacts with a Wikipedia API to retrieve information to support reasoning.ReAct interacts with the Wikipedia API to improve its reasoning capabilities and overcome issues like hallucination and error propagation.\", \"created_at\": \"2025-08-15 15:56:35\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"ReAct\", \"entity2\": \"finetuning\", \"description\": \"Finetuning ReAct enables additional benefits.The ReAct method often performs best, particularly when finetuned.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"ReAct\", \"entity2\": \"vanilla action generation models\", \"description\": \"ReAct outperforms vanilla action generation models on HotPotQA and Fever.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"ReAct\", \"entity2\": \"human dialogue\", \"description\": \"ReAct's ability to modify internal beliefs and reasoning styles goes beyond updating goals or subgoals through human dialogue as seen in Huang et al. (2022b).\", \"created_at\": \"2025-08-15 17:30:12\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"Huang et al. (2022b)\", \"entity2\": \"ReAct\", \"description\": \"ReAct is presented as an advancement over the methodology described in Huang et al. (2022b) because it can modify more than just goals or subgoals.\", \"created_at\": \"2025-08-15 17:30:04\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"ReAct\", \"entity2\": \"ReAct, Thorne et al., 2018\", \"description\": \"Thorne et al., 2018 is a citation associated with ReAct.\", \"created_at\": \"2025-08-15 17:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"ReAct\", \"entity2\": \"interactive decision-making tasks\", \"description\": \"ReAct was shown to lead to superior performance on interactive decision-making tasks.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"ReAct\", \"entity2\": \"problem solving trajectory\", \"description\": \"\\\"ReAct's problem solving trajectory is characterized as grounded, fact-driven, and trustworthy.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"ReAct\", \"entity2\": \"search\", \"description\": \"Successful knowledge retrieval through search is critical for ReAct's performance.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"ReAct\", \"entity2\": \"multi-hop question-answering\", \"description\": \"ReAct was shown to lead to superior performance on multi-hop question-answering tasks.\", \"created_at\": \"2025-08-15 16:03:35\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"ReAct\", \"entity2\": \"fact checking\", \"description\": \"ReAct was shown to lead to superior performance on fact checking tasks.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"ReAct\", \"entity2\": \"chain-of-thought reasoning\", \"description\": \"ReAct addresses and overcomes prevalent issues of hallucination and error propagation in chain-of-thought reasoning.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"ReAct\", \"entity2\": \"human inspection\", \"description\": \"ReAct provides an interpretable process that allows humans to easily inspect reasoning and factual correctness.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"ReAct\", \"entity2\": \"baselines\", \"description\": \"ReAct consistently outperforms baselines that only use reasoning or acting across different domains.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"ReAct\", \"entity2\": \"Thought 1: I need to search David Chanoff and find the U.S.Navy admiral he collaboratedwith.\", \"description\": \"The thought process is a step within the ReAct methodology, demonstrating how ReAct might be applied.\", \"created_at\": \"2025-08-15 16:12:19\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"ReAct\", \"entity2\": \"observation feedback\", \"description\": \"Actions in the language space of ReAct do not lead to observation feedback.\", \"created_at\": \"2025-08-15 17:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"ReAct\", \"entity2\": \"external environment\", \"description\": \"Actions in the language space of ReAct do not affect the external environment.\", \"created_at\": \"2025-08-15 17:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"ReAct\", \"entity2\": \"ReAct Trajectory\", \"description\": \"The ReAct Trajectory section details the successful execution of the ReAct methodology.\", \"created_at\": \"2025-08-15 16:13:46\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"ReAct\", \"entity2\": \"pick_clean_then_place_in_recep-Knife-None-CounterTop-10/ trial_T20190909_110445_675754\", \"description\": \"The ReAct trajectory is exemplified using the specific trial 'pick_clean_then_place_in_recep-Knife-None-CounterTop-10/ trial_T20190909_110445_675754'.\", \"created_at\": \"2025-08-15 16:13:46\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"Princess Mononoke is a film\", \"entity2\": \"ReAct\", \"description\": \"The ReAct methodology is used to verify the claim that 'Princess Mononoke' is a film.\", \"created_at\": \"2025-08-15 16:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"ReAct\", \"entity2\": \"interpretable decision traces\", \"description\": \"ReAct leads to interpretable decision traces, which are a key result of the method.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"ReAct\", \"entity2\": \"fine-tuning approach on HotpotQA\", \"description\": \"The fine-tuning approach on HotpotQA was explored to address the limitations of ReAct in complex tasks, showing initial promising results.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"ReAct\", \"entity2\": \"failure mode\", \"description\": \"\\\"Failure mode constitutes a major failure mode for ReAct, making up 56% of its operations.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"ReAct\", \"entity2\": \"reasoning error\", \"description\": \"ReAct is susceptible to reasoning errors, including a specific pattern of repetitive thought and action loops.\", \"created_at\": \"2025-08-15 15:53:47\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"ReAct\", \"entity2\": \"interleaving reasoning, action and observation steps\", \"description\": \"\\\"Interleaving reasoning, action, and observation steps improves ReAct's groundedness and trustworthiness but reduces its flexibility.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"ReAct\", \"entity2\": \"repetitive thought and action loops\", \"description\": \"\\\"ReAct exhibits a specific error pattern of repetitive thought and action loops, indicating a failure in reasoning.\", \"created_at\": \"2025-08-15 15:53:48\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"ReAct\", \"entity2\": \"knowledge bases\", \"description\": \"Actions, a component of ReAct, allow the model to interface with and gather information from knowledge bases.\", \"created_at\": \"2025-08-15 15:51:59\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"ReAct\", \"entity2\": \"environments\", \"description\": \"Actions, a component of ReAct, allow the model to interface with and gather information from environments.\", \"created_at\": \"2025-08-15 15:51:59\", \"file_path\": \"unknown_source\"}, {\"id\": 107, \"entity1\": \"ReAct\", \"entity2\": \"human interpretability\", \"description\": \"ReAct demonstrates improved human interpretability compared to baselines.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 108, \"entity1\": \"ReAct\", \"entity2\": \"SimpleTOD\", \"description\": \"ReAct and SimpleTOD both train LMs for API call decisions, but ReAct is cheaper as it doesn't require expensive datasets and human feedback, and it explicitly considers the reasoning procedure while SimpleTOD does not.\", \"created_at\": \"2025-08-15 16:08:51\", \"file_path\": \"unknown_source\"}, {\"id\": 109, \"entity1\": \"ReAct\", \"entity2\": \"noninformative search\", \"description\": \"Noninformative search is a critical issue for ReAct, causing 23% of errors and derailing its reasoning.\", \"created_at\": \"2025-08-15 15:58:16\", \"file_path\": \"unknown_source\"}, {\"id\": 110, \"entity1\": \"ReAct\", \"entity2\": \"in-context examples\", \"description\": \"ReAct demonstrates strong generalization to new task instances by learning solely from one to six in-context examples.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 111, \"entity1\": \"ReAct\", \"entity2\": \"prompt selections\", \"description\": \"The performance of ReAct is robust to different prompt selections.\", \"created_at\": \"2025-08-15 16:01:00\", \"file_path\": \"unknown_source\"}, {\"id\": 112, \"entity1\": \"ReAct\", \"entity2\": \"What nationality is the man who developed the dictator game?\", \"description\": \"ReAct uses this question as part of its process to gather information.\", \"created_at\": \"2025-08-15 16:22:50\", \"file_path\": \"unknown_source\"}, {\"id\": 113, \"entity1\": \"Figure 1(1d)\", \"entity2\": \"ReAct\", \"description\": \"Figure 1(1d) demonstrates ReAct's ability to synergize reasoning and acting through Wikipedia API interaction.\", \"created_at\": \"2025-08-15 15:56:35\", \"file_path\": \"unknown_source\"}, {\"id\": 114, \"entity1\": \"Action 1: collaboratedwith.\", \"entity2\": \"ReAct\", \"description\": \"The 'Action 1' is a step taken within the ReAct methodology, likely to gather information for the question posed.\", \"created_at\": \"2025-08-15 16:12:19\", \"file_path\": \"unknown_source\"}, {\"id\": 115, \"entity1\": \"Language Model\", \"entity2\": \"ReAct\", \"description\": \"The Language Model's decision-making and reasoning capabilities are integrated into ReAct, and it determines the timing of thoughts and actions in ReAct for decision-making tasks.\", \"created_at\": \"2025-08-15 15:54:59\", \"file_path\": \"unknown_source\"}, {\"id\": 116, \"entity1\": \"Claim Thought Answer\", \"entity2\": \"ReAct\", \"description\": \"The Claim Thought Answer section is evaluated using the ReAct methodology to determine the sufficiency of information for a claim.\", \"created_at\": \"2025-08-15 16:10:29\", \"file_path\": \"unknown_source\"}, {\"id\": 117, \"entity1\": \"ReAct\", \"entity2\": \"input length limit of in-context learning\", \"description\": \"Complex tasks with large action spaces require more demonstrations for ReAct to learn well, which can exceed the input length limit of in-context learning.\", \"created_at\": \"2025-08-15 16:03:36\", \"file_path\": \"unknown_source\"}, {\"id\": 118, \"entity1\": \"ReAct\", \"entity2\": \"chain-of-thought prompting\", \"description\": \"ReAct integrates chain-of-thought prompting with acting, which were previously studied separately.\", \"created_at\": \"2025-08-15 15:51:53\", \"file_path\": \"unknown_source\"}, {\"id\": 119, \"entity1\": \"ReAct\", \"entity2\": \"STaR\", \"description\": \"ReAct performs more than just isolated, fixed reasoning, unlike STaR.\", \"created_at\": \"2025-08-15 15:54:08\", \"file_path\": \"unknown_source\"}, {\"id\": 120, \"entity1\": \"ReAct\", \"entity2\": \"handling exceptions\", \"description\": \"Reasoning traces, a component of ReAct, help the model in handling exceptions.\", \"created_at\": \"2025-08-15 15:51:58\", \"file_path\": \"unknown_source\"}, {\"id\": 121, \"entity1\": \"ReAct\", \"entity2\": \"human-written data\", \"description\": \"The text suggests that finetuning with more human-written data could improve the performance of ReAct.\", \"created_at\": \"2025-08-15 15:53:11\", \"file_path\": \"unknown_source\"}, {\"id\": 122, \"entity1\": \"ReAct\", \"entity2\": \"expert humans\", \"description\": \"Existing methods, including ReAct, are still far from the performance of expert humans, as expert humans perform significantly more product explorations and query re-formulations that are challenging for prompting-based methods.\", \"created_at\": \"2025-08-15 15:53:59\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: React_paper\\nChunk: 59\\n\\nth the help of LLMs, language as a fundamental cognitive mechanism will play a critical role in interaction and decision making. What is more, progress in LLMs has also inspired the development of versatile and generalist agents like Reed et al. (2022). # 6 CONCLUSION We have proposed ReAct – a simple yet effective method for synergizing reasoning and acting in large language models. Through a diverse set of experiments on multi-hop question-answering, fact checking, and interactive decision-making tasks, we show that ReAct leads to superior performance with interpretable decision traces. Despite the simplicity of our method, complex tasks with large action spaces require more demonstrations to learn well, which unfortunately can easily go beyond the input length limit of in-context learning. We explore the fine-tuning approach on HotpotQA with initial promising results, but learning from more high-quality human annotations will be the desiderata to further improve the performance.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 151\\n\\noves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. (b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: React_paper\\nChunk: 37\\n\\n$6 \\\\%$ ) in success mode, and make up its major failure mode $( 5 6 \\\\% )$ . In contrast, the problem solving trajectory of ReActis more grounded, fact-driven, and trustworthy, thanks to the access of an external knowledge base. B) While interleaving reasoning, action and observation steps improves ReAct’s groundedness and trustworthiness, such a structural constraint also reduces its flexibility in formulating reasoning steps, leading to more reasoning error rate than CoT. we note that there is one frequent error pattern specific to ReAct, in which the model repetitively generates the previous thoughts and actions, and we categorize it as part of “reasoning error” as the model fails to reason about what the proper next action to take and jump out of the $\\\\\\\\mathrm { l o o p ^ { 4 } }$ . C) For ReAct, successfully retrieving informative knowledge via search is critical.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: MOE\\nChunk: 5\\n\\nn multimodal data (e.g., text, images, and audio) and exhibit intricate structures (e.g., graphs or hierarchical relationships). This diversity and complexity introduce two significant challenges: (1) the computational cost of training and deploying large models grows exponentially, making it unsustainable for many applications [11], and (2) integrating conflicting or heterogeneous knowledge within a single model becomes increasingly difficult, often leading to unstable training dynamics and suboptimal performance [12]. These challenges underscore the need for more efficient and scalable architectures capable of meeting the growing demands of modern AI tasks. One promising approach to addressing these challenges is the Mixture of Experts (MoE) architecture, which has attracted much attention recently. Originally proposed in [13], [14], MoE adopts a “divide and conquer” strategy that fundamentally differs from traditional dense models.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: React_paper\\nChunk: 2\\n\\nchain-of-thought prompting) and acting (e.g. action plan generation) have primarily been studied as separate topics. In this paper, we explore the use of LLMs to generate both reasoning traces and task-specific actions in an interleaved manner, allowing for greater synergy between the two: reasoning traces help the model induce, track, and update action plans as well as handle exceptions, while actions allow it to interface with and gather additional information from external sources such as knowledge bases or environments. We apply our approach, named ReAct, to a diverse set of language and decision making tasks and demonstrate its effectiveness over state-of-the-art baselines in addition to improved human interpretability and trustworthiness.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 8.1657, + "rag_initialization_seconds": 4.7526, + "query_execution_seconds": 3.4131, + "start_timestamp": "2025-08-15T19:59:02.255201", + "end_timestamp": "2025-08-15T19:59:10.420934" + }, + "metadata": { + "saved_at": "2025-08-15T19:59:10.421933", + "file_path": "retrieval_logs\\retrieval_20250815_195910_421_mix_k12_ck5_You_are_tasked_with_designing_a_fundamentally_new_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_200417_098_mix_k5_ck2_Hello_I_am_a_student_trying_to_understand_the_fund.json b/retrieval_logs/retrieval_20250815_200417_098_mix_k5_ck2_Hello_I_am_a_student_trying_to_understand_the_fund.json new file mode 100644 index 0000000000000000000000000000000000000000..f10938feb814ad67b099d6324c94e88660f48bb9 --- /dev/null +++ b/retrieval_logs/retrieval_20250815_200417_098_mix_k5_ck2_Hello_I_am_a_student_trying_to_understand_the_fund.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T20:04:17.098147", + "query": "\n\nHello, I am a student trying to understand the fundamentals of Mixture-of-Experts (MoE). I have been given this comprehensive survey paper, and I need your help to break it down. Please act as my guide and educator, using only the information within this paper to answer the following questions. My goal is to get a clear, foundational understanding without getting lost in the jargon.\nPlease answer each of these five questions in order, building my knowledge step-by-step:\n1. What is the core idea of Mixture-of-Experts (MoE)?\n* Explain it to me conceptually.\n* Please use a simple analogy (like a team of specialist doctors or consultants) to make the idea intuitive.\n* Reference the \"divide and conquer\" strategy mentioned in the paper's introduction.\n2. What major problems are MoE models designed to solve?\n* According to the paper's abstract and introduction, what are the two main challenges with modern, large AI models that MoE specifically addresses? Please explain each challenge simply.\n3. How does an MoE model actually work?\n* Describe the main components. I see a diagram in Figure 2 with a \"Router\" (or \"gating function\") and several \"Experts.\" What does each part do?\n* Walk me through a simple example of how a piece of data (like a sentence) would flow through this system from input to output.\n4. What are the key mathematical formulas that define this behavior?\n* Please identify one or two of the most fundamental equations from the \"Gating Function\" section (like Equation 1, the softmax gating).\n* For each equation, please don't just show the formula. Explain in simple terms what each part of the equation represents and what the equation as a whole accomplishes. For example, what does softmax do, and what is the purpose of TopK?\n5. What are the main limitations or challenges of using MoE?\n* Based on the paper (especially the \"Future Directions\" or \"Training Strategies\" sections), what are some of the key challenges or trade-offs that come with this architecture?\n* I'm particularly interested in the concepts of \"model collapse\" and \"load balancing\" that seem to be mentioned.\nPlease structure your response clearly, addressing each question thoroughly. Remember, your goal is to teach me these concepts from the ground up using only the provided paper as our textbook. Thank you!\"\n\n\n\n\n\n\n ", + "query_mode": "mix", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 15154, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Gating Function\", \"type\": \"methodology\", \"description\": \"The Gating Function is represented by G and is used in the context of expert exploration. It involves a TopK function to select the k highest scoring inputs out of N experts and sets the rest to negative infinity. A gating value (g) is calculated using a linear function prior to the softmax operation. Noise ($\\\\mathcal { R } _ { \\\\mathrm { n o i s e } }$) is incorporated to encourage expert exploration. The order of TopK and softmax operations is flexible and can be designed based on specific requirements.The gating function is the mathematical implementation of a router that determines how input data is allocated to designated experts. Its design is a critical consideration for the effectiveness of MoE models.\", \"created_at\": \"2025-08-15 15:16:23\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Mixture of Experts (MoE) models\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) models are discussed in the context of determining the number of experts and their interpretability.Mixture of Experts (MoE) models are used in RAPHAEL for temporal control and spatial settings during generation. They allow for specialized experts to enhance the quality of generated images, improve the diversity of outputs, and further enrich detail representations.Mixture of Experts (MoE) models dynamically select and activate the most relevant submodels to process input data, addressing challenges of enormous computational resource consumption, deployment difficulties, and fitting heterogeneous and complex data in large AI models.\", \"created_at\": \"2025-08-15 15:43:00\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"foundational large models\", \"type\": \"abstract\", \"description\": \"Foundational large models are AI models that have achieved astonishing successes in many domains and provide versatile solutions for a wide range of downstream tasks due to their extensive training data.\", \"created_at\": \"2025-08-15 15:16:43\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Demystifying softmax gating function in gaussian mixture of experts\", \"type\": \"abstract\", \"description\": \"This entry refers to a publication that aims to demystify the softmax gating function within Gaussian mixtures of experts.\", \"created_at\": \"2025-08-15 15:49:11\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"computational resources\", \"type\": \"methodology\", \"description\": \"Computational resources are a significant challenge in the development of large AI models due to their enormous consumption. However, the GLaM MoE architecture has been shown to significantly reduce these computational resources, enabling efficient utilization in tasks such as language modeling and machine translation. While experiments have been limited by the need for significant computational resources, hindering thorough hyper-parameter exploration, MoE approaches offer a path to more efficient use of these resources.\", \"created_at\": \"2025-08-15 15:41:23\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"A general theory for softmax gating multinomial logistic mixture of experts\", \"type\": \"abstract\", \"description\": \"This refers to a theoretical framework for softmax gating in multinomial logistic mixture of experts models, as published in arXiv preprint arXiv:2310.14188.\", \"created_at\": \"2025-08-15 15:50:42\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"deployment difficulties\", \"type\": \"limitations\", \"description\": \"Deployment difficulties are a major challenge in the development of large AI models.\", \"created_at\": \"2025-08-15 15:16:43\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Statistical perspective of top-k sparse softmax gating mixture of experts\", \"type\": \"abstract\", \"description\": \"This entry refers to a publication offering a statistical perspective on top-k sparse softmax gating for mixture of experts.\", \"created_at\": \"2025-08-15 15:49:11\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Mixture of Experts (MoE)\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning technique and architectural approach that enhances performance, particularly in large language models (LLMs) and increasingly in the Computer Vision field, by employing a \\\"divide and conquer\\\" strategy. Unlike traditional dense models, MoE utilizes multiple specialized expert models to learn distinct core features of different domains or input types. A gating network dynamically selects and activates the most relevant submodels or experts to process input data, enabling the model to handle diverse tasks, large-scale datasets with thousands of categories, and multimodal data without a significant increase in computational overhead. This approach allows for the intelligent fusion of personalized and generic content, leading to high-fidelity personalized image generation without sacrificing image diversity or quality, and can improve semantic segmentation models, especially with high accuracy requirements or limited computational resources. MoE experts can collaboratively generate high-quality sentences, with each expert acting as a recurrent neural network that autoregressively produces token representations, making models more efficient and precise when processing complex or diverse text data. While MoE enhances performance with the same computing resources, it increases memory usage. Strategies to address this include loading only activated experts into memory and storing others on disk, though switching costs can slow inference, leading to suggestions for preemptive expert pre-load strategies to accelerate inference. The performance and limitations of MoE in image classification are actively being explored, with ongoing research dissecting its architecture, training, and optimization, including the impact of the number of expert networks, MoE layers, and their placement on performance, efficiency, and stability. MoE also autonomously identifies and combines promising sub-regions from multiple source tasks across different regions of the state space, utilizing state-dependent Dirichlet prior distributions to learn similarities between dynamics in source and target tasks and updating these priors using state transition data, which improves robustness against sparse or delayed rewards. The MoE architecture offers inherent transparency due to its design and is also applied to regression problems.MoE models offer opportunities to improve model interpretability by learning intrinsic allocation mechanisms, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability enhances understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.MoE models offer opportunities to improve model interpretability by learning intrinsic allocation mechanisms, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability enhances understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 17:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Multi-task learning\", \"type\": \"methodology\", \"description\": \"Multi-task learning is an important machine learning paradigm where the algorithm design of MoE is explored.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Meta-learning\", \"type\": \"methodology\", \"description\": \"Meta-learning is an important machine learning paradigm where the algorithm design of MoE is explored.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Gating Function\", \"entity2\": \"MoE\", \"description\": \"The gating function is a core component of the MoE architecture, responsible for allocating input data to experts.\", \"created_at\": \"2025-08-15 15:16:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Mixture of Experts (MoE) models\", \"entity2\": \"foundational large models\", \"description\": \"Mixture of Experts (MoE) models are presented as a solution to the challenges faced by foundational large models.\", \"created_at\": \"2025-08-15 15:16:45\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Experts\", \"entity2\": \"Gating Function\", \"description\": \"The gating function determines how input data is allocated to the experts.\", \"created_at\": \"2025-08-15 15:16:28\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Mixture of Experts (MoE) models\", \"entity2\": \"computational resources\", \"description\": \"Mixture of Experts (MoE) models address the challenge of enormous consumption of computational resources in large AI models.\", \"created_at\": \"2025-08-15 15:16:45\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Gating Function\", \"entity2\": \"softmax operation\", \"description\": \"The Gating Function utilizes the softmax operation, with the order of operations being flexible and designable based on specific requirements.\", \"created_at\": \"2025-08-15 15:17:29\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Mixture of Experts (MoE) models\", \"entity2\": \"deployment difficulties\", \"description\": \"Mixture of Experts (MoE) models address the challenge of deployment difficulties in large AI models.\", \"created_at\": \"2025-08-15 15:16:45\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Gating Function\", \"entity2\": \"model parameters\", \"description\": \"Model parameters (w) are part of the Gating Function.\", \"created_at\": \"2025-08-15 15:17:29\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Multi-task learning\", \"description\": \"The algorithm design of MoE is explored in multi-task learning.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Gating Function\", \"entity2\": \"hyperparameter k\", \"description\": \"The Gating Function uses the hyperparameter k to determine the number of experts to retain.\", \"created_at\": \"2025-08-15 15:17:29\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Meta-learning\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"The algorithm design of MoE is explored in meta-learning.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Gating Function\", \"entity2\": \"Router\", \"description\": \"The gating function serves as the mathematical implementation of a router.\", \"created_at\": \"2025-08-15 15:16:31\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Gating Function\", \"entity2\": \"Input Data\", \"description\": \"The gating function determines how input data is allocated to designated experts.\", \"created_at\": \"2025-08-15 15:16:31\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Gating Function\", \"entity2\": \"Principles and Considerations for Designing an Effective Gating Function\", \"description\": \"The text indicates a detailed discussion will be provided on the principles and considerations for designing an effective gating function.\", \"created_at\": \"2025-08-15 15:16:31\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Gating Function\", \"entity2\": \"noise\", \"description\": \"Noise is incorporated into the Gating Function to encourage expert exploration.\", \"created_at\": \"2025-08-15 15:17:29\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"A general theory for softmax gating multinomial logistic mixture of experts\", \"entity2\": \"Vimoe: An empirical study of designing vision mixture-of-experts\", \"description\": \"Both entities are related to mixture of experts (MoE) models, with the first presenting a general theory and the second an empirical study on vision MoE.\", \"created_at\": \"2025-08-15 15:50:51\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"A general theory for softmax gating multinomial logistic mixture of experts\", \"entity2\": \"Mixture of experts models for multilevel data: Modelling framework and approximation theory\", \"description\": \"Both entities are related to mixture of experts (MoE) models, with the first focusing on a specific gating mechanism and the second on multilevel data applications.\", \"created_at\": \"2025-08-15 15:50:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"A general theory for softmax gating multinomial logistic mixture of experts\", \"entity2\": \"Mixture of experts in image classification: Whats the sweet spot?\", \"description\": \"Both entities discuss mixture of experts (MoE) models, with the first providing a general theory and the second exploring their application in image classification.\", \"created_at\": \"2025-08-15 15:50:43\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: MOE\\nChunk: 199\\n\\n[151] H. Nguyen, P. Akbarian, T. Nguyen, and N. Ho, “A general theory for softmax gating multinomial logistic mixture of experts,” arXiv preprint arXiv:2310.14188, 2023. [152] T. C. Fung and S. C. Tseung, “Mixture of experts models for multilevel data: Modelling framework and approximation theory,” Neurocomput \\n[153] M. Videau, A. Leite, M. Schoenauer, and O. Teytaud, “Mixture of experts in image classification: What’s the sweet spot?,” arXiv preprint arXiv:2411.18322, 2024. [154] X. Han, L. Wei, Z. Dou, Z. Wang, C. Qiang, X. He, Y. Sun, Z. Han, and Q. Tian, “Vimoe: An empirical study of designing vision mixtureof-experts,” arXiv preprint arXiv:2410.15732, 2024. [155] A. Royer, I. Karmanov, A. Skliar, B. E. Bejnordi, and T. Blankevoort, “Revisiting single-gated mixtures of experts,” arXiv preprint arXiv:2304.05497, 2023. [156] J. Zhang, X. Qu, T. Zhu, and Y. Cheng, “Clip-moe: Towards building mixture of experts for clip with diversified multiplet upcycling,” arXiv preprint arXiv:2409.19291, 2024. [157] M.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 62\\n\\nGD in terms of test accuracy for this specific next-word prediction task with non-IID data, especially at higher learning rates. The provided context, \\\"Figure 5: Monotonic learning curves for the large-scale language model word LSTM,\\\" confirms that these curves illustrate the learning process, and the term \\\"monotonic\\\" suggests that the accuracy is generally expected to increase or stay the same over time, which is consistent with the observed trends.](images/17619a97fe419e12a92f876847ff0533987e47c9246d66127edb08d6064ed47e.jpg)\\nFigure 5: Monotonic learning curves for the large-scale language model word LSTM. These experiments required significant computational resources and so we did not explore hyper-parameters as thoroughly: all runs trained on 200 clients per round; FedAvg used $B = 8$ and $E = 1$ . We explored a variety of learning rates for FedAvg and the baseline FedSGD. Figure 5 shows monotonic learning curves for the best learning rates. FedSGD with $\\\\eta = 1 8 . 0$ required 820 rounds to reach $10 .\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 9.3976, + "rag_initialization_seconds": 4.3741, + "query_execution_seconds": 5.0235, + "start_timestamp": "2025-08-15T20:04:07.700040", + "end_timestamp": "2025-08-15T20:04:17.097636" + }, + "metadata": { + "saved_at": "2025-08-15T20:04:17.098147", + "file_path": "retrieval_logs\\retrieval_20250815_200417_098_mix_k5_ck2_Hello_I_am_a_student_trying_to_understand_the_fund.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_201038_667_mix_k2_ck1_Based_only_on_the_A_Comprehensive_Survey_of_Mixtur.json b/retrieval_logs/retrieval_20250815_201038_667_mix_k2_ck1_Based_only_on_the_A_Comprehensive_Survey_of_Mixtur.json new file mode 100644 index 0000000000000000000000000000000000000000..f8d99323cf30fb9f66dfb25690321dd83fa3447d --- /dev/null +++ b/retrieval_logs/retrieval_20250815_201038_667_mix_k2_ck1_Based_only_on_the_A_Comprehensive_Survey_of_Mixtur.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T20:10:38.667399", + "query": "\nBased only on the 'A Comprehensive Survey of Mixture-of-Experts' paper, please answer the following:\nWhat is a 'gating function' (also called a 'router')?\nWhat are the two priority criteria the paper states should be used when designing an effective gating function?\nExplain the difference between 'Linear Gating' and 'Non-linear Gating' as described in Section IV-A of the paper.\"\n\n\n ", + "query_mode": "mix", + "top_k": 2, + "chunk_top_k": 1, + "text_length": 6871, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"On expert estimation in hierarchical mixture of experts: Beyond softmax gating functions\", \"type\": \"methodology\", \"description\": \"This refers to a methodology focused on expert estimation in hierarchical mixture of experts, exploring alternatives to softmax gating functions.\", \"created_at\": \"2025-08-15 15:46:48\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"expert networks\", \"type\": \"methodology\", \"description\": \"Expert networks are specialized components within the Mixture of Experts (MoE) architecture, working in conjunction with a gating function to form the basic framework of MoE. In a Generalized Mixture of Experts (GMoE) specification, there are N expert networks, and their features are represented by E. These expert networks focus on different aspects of the input data and are integrated into the MoE architecture, allowing models to dynamically leverage them for different linguistic tasks or domains. The number of expert networks, along with the number and placement of MoE layers, significantly influences the model's performance, efficiency, and stability.\", \"created_at\": \"2025-08-15 15:43:15\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"[138]\", \"type\": \"methodology\", \"description\": \"[138] proposes to treat all local models as expert models and train a specialized lightweight gating function using additional data to aggregate these experts. This approach effectively preserves the knowledge of local models while reducing communication overhead.\", \"created_at\": \"2025-08-15 15:31:16\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"gating function\", \"type\": \"methodology\", \"description\": \"The design of gating functions could be improved through a better understanding of modern deep neural networks.The gating function is a critical component in Mixture of Experts (MoE) frameworks, including GMoE, responsible for dynamically selecting the most suitable expert network to efficiently allocate input data. It achieves this by accurately discerning characteristics of input data and experts, thereby enabling specialization and even distribution of data. The gating function primarily determines expert selection in MoE models by selecting the set of indices of experts (ID) for the MoE layer. In some approaches, a specialized lightweight gating function is trained using additional data to aggregate expert models. The gating function computes gating values, which are influenced by input variables and random effects. Designed based on cosine distance, it determines which experts each input should be assigned to by comparing the projected input with expert embeddings using cosine similarity. This function is analytically updated during iterations, an approach that overcomes nonlinear relationships introduced by softmax and additional iterative optimization steps.\", \"created_at\": \"2025-08-15 15:42:38\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Experts\", \"type\": \"methodology\", \"description\": \"Experts are components within the MoE architecture that receive allocated input data from the gating function.Experts are distinct entities that can be routed to based on task IDs, and their collaboration efficiency can be improved.Specialized units within an MoE model whose level of specialization in knowledge is a critical consideration in the model's design.\", \"created_at\": \"2025-08-15 15:20:08\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Gating Function\", \"type\": \"methodology\", \"description\": \"The Gating Function is represented by G and is used in the context of expert exploration. It involves a TopK function to select the k highest scoring inputs out of N experts and sets the rest to negative infinity. A gating value (g) is calculated using a linear function prior to the softmax operation. Noise ($\\\\mathcal { R } _ { \\\\mathrm { n o i s e } }$) is incorporated to encourage expert exploration. The order of TopK and softmax operations is flexible and can be designed based on specific requirements.The gating function is the mathematical implementation of a router that determines how input data is allocated to designated experts. Its design is a critical consideration for the effectiveness of MoE models.\", \"created_at\": \"2025-08-15 15:17:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"MoE model\", \"entity2\": \"[138]\", \"description\": \"The approach proposed in [138] is presented as an alternative that effectively preserves knowledge and reduces communication overhead, which could be relevant to the under-explored theory of MoE models.\", \"created_at\": \"2025-08-15 15:31:27\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"expert networks\", \"entity2\": \"gating function\", \"description\": \"The gating function determines which expert networks each input x should be assigned to.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"[138]\", \"entity2\": \"local models\", \"description\": \"\\\"The method proposed in [138] suggests treating local models as expert models.\\\")\", \"created_at\": \"2025-08-15 15:31:25\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Experts\", \"entity2\": \"Gating Function\", \"description\": \"The gating function determines how input data is allocated to the experts.\", \"created_at\": \"2025-08-15 15:16:28\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"DeepME: Deep mixture experts for large-scale image classification\", \"entity2\": \"On expert estimation in hierarchical mixture of experts: Beyond softmax gating functions\", \"description\": \"Both methodologies are related to mixture of experts (MOE) and expert estimation, with the latter exploring beyond standard gating functions.\", \"created_at\": \"2025-08-15 15:46:48\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: MOE\\nChunk: 15\\n\\nBelow, we provide a detailed discussion on the principles and considerations for designing an effective gating function. When selecting a gating function, the following criteria should be prioritized: (1) The function must accurately discern the characteristics of both input data and experts. This enables the assignment of similar data to the same expert or group of experts, ensuring that each expert receives a sufficiently large and coherent training set. Such specialization allows experts to develop expertise in specific knowledge domains. (2) The input data should be distributed as evenly as possible among the predefined experts. An uneven distribution can lead to model collapse, which reduces the efficiency of the MoE framework by underutilizing experts and impairs performance due to insufficient separation of conflicting knowledge in the training data. 1) Linear Gating.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 7.4388, + "rag_initialization_seconds": 4.5069, + "query_execution_seconds": 2.9319, + "start_timestamp": "2025-08-15T20:10:31.227618", + "end_timestamp": "2025-08-15T20:10:38.666397" + }, + "metadata": { + "saved_at": "2025-08-15T20:10:38.667399", + "file_path": "retrieval_logs\\retrieval_20250815_201038_667_mix_k2_ck1_Based_only_on_the_A_Comprehensive_Survey_of_Mixtur.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_201203_116_mix_k12_ck5_The_Mixture-of-Experts_paper_describes_sparse_acti.json b/retrieval_logs/retrieval_20250815_201203_116_mix_k12_ck5_The_Mixture-of-Experts_paper_describes_sparse_acti.json new file mode 100644 index 0000000000000000000000000000000000000000..958b1bf657cd491bb5734d59e82d8f7c3c96113f --- /dev/null +++ b/retrieval_logs/retrieval_20250815_201203_116_mix_k12_ck5_The_Mixture-of-Experts_paper_describes_sparse_acti.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T20:12:03.116206", + "query": "\n\"The 'Mixture-of-Experts' paper describes 'sparse activation' as its core mechanism for efficiency. The 'Attention Is All You Need' paper states that its goal is to reduce 'sequential computation' to improve parallelization and efficiency.\nUsing information from both papers, explain how the concept of sparsity in MoE and the concept of parallelization in the Transformer are two different strategies aimed at solving the same fundamental problem: the computational cost of large models.\"\n\n ", + "query_mode": "mix", + "top_k": 12, + "chunk_top_k": 5, + "text_length": 33837, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Mixture of Experts (MoE)\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning technique and architectural approach that enhances performance, particularly in large language models (LLMs) and increasingly in the Computer Vision field, by employing a \\\"divide and conquer\\\" strategy. Unlike traditional dense models, MoE utilizes multiple specialized expert models to learn distinct core features of different domains or input types. A gating network dynamically selects and activates the most relevant submodels or experts to process input data, enabling the model to handle diverse tasks, large-scale datasets with thousands of categories, and multimodal data without a significant increase in computational overhead. This approach allows for the intelligent fusion of personalized and generic content, leading to high-fidelity personalized image generation without sacrificing image diversity or quality, and can improve semantic segmentation models, especially with high accuracy requirements or limited computational resources. MoE experts can collaboratively generate high-quality sentences, with each expert acting as a recurrent neural network that autoregressively produces token representations, making models more efficient and precise when processing complex or diverse text data. While MoE enhances performance with the same computing resources, it increases memory usage. Strategies to address this include loading only activated experts into memory and storing others on disk, though switching costs can slow inference, leading to suggestions for preemptive expert pre-load strategies to accelerate inference. The performance and limitations of MoE in image classification are actively being explored, with ongoing research dissecting its architecture, training, and optimization, including the impact of the number of expert networks, MoE layers, and their placement on performance, efficiency, and stability. MoE also autonomously identifies and combines promising sub-regions from multiple source tasks across different regions of the state space, utilizing state-dependent Dirichlet prior distributions to learn similarities between dynamics in source and target tasks and updating these priors using state transition data, which improves robustness against sparse or delayed rewards. The MoE architecture offers inherent transparency due to its design and is also applied to regression problems.MoE models offer opportunities to improve model interpretability by learning intrinsic allocation mechanisms, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability enhances understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.MoE models offer opportunities to improve model interpretability by learning intrinsic allocation mechanisms, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability enhances understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:16:58\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"MoE architectures\", \"type\": \"methodology\", \"description\": \"MoE (Mixture of Experts) architectures are designed to enhance parameter efficiency and manage computational costs effectively. They offer potential improvements in model interpretability by learning intrinsic allocation mechanisms. These architectures possess a sparse nature, necessitating dynamic data allocation, which makes pipeline design a critical factor in their training. While MoE architectures have shown impressive scalability and performance, their theoretical foundations are not yet fully understood. Further research is needed to optimize the design of MoE architectures, particularly in determining the optimal number of experts and their specialization, as current methods often rely on heuristic or static settings that may not be universally optimal for all tasks.MoE architectures are a type of architecture that EdgeMoE aims to improve by reducing latency caused by frequent expert switching in limited device memory.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"computational costs\", \"type\": \"abstract\", \"description\": \"Computational costs are a factor that needs to be controlled, with the primary goal of achieving higher parameter efficiency. MoE (Mixture-of-Experts) architectures are effective in controlling computational costs, which they manage by activating only relevant experts for a specific input. The TopK strategy does not proportionally escalate computational costs, even with increased model capacity. While computing the softmax function for all experts incurs higher computational costs, MoA (Mixture-of-Attention or similar, depending on full context) enhances performance without significantly increasing them.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"computational and memory challenges\", \"type\": \"limitations\", \"description\": \"These challenges worsen with model size, impacting training and autoregressive decoding.\", \"created_at\": \"2025-08-15 17:04:41\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"training\", \"type\": \"methodology\", \"description\": \"Training is a process that can be made more efficient through MoE architectures like GLaM.Training is the process where sequences $(y)$ are used, and it differs in distribution from sequences produced during inference $(y')$.Training is impacted by computational and memory challenges that worsen with model size.\", \"created_at\": \"2025-08-15 17:04:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"MoE-based model\", \"type\": \"methodology\", \"description\": \"The MoE-based model can provide benefits for semantic segmentation tasks, alleviating hardware pressure through sparse activation and a divide-and-conquer strategy, and achieving excellent performance in tasks requiring model stability and generalization.\", \"created_at\": \"2025-08-15 15:30:45\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"model performance\", \"type\": \"abstract\", \"description\": \"Model performance can be improved by using Mixture-of-Experts (MoE) models, with MoA achieving superior performance and reduced computational overhead. MoE models can maintain or even improve model performance, as demonstrated by the GLaM MoE architecture. Specifically, applying MoE to language modeling and machine translation tasks has shown significant improvements in model performance on large datasets. Furthermore, model performance can be enhanced by dynamically selecting the most suitable expert network for a given task without a substantial increase in parameters, while also exploring the interpretability of Convolutional Neural Networks (CNNs) in computer vision tasks. However, integrating different object detectors with the MoE architecture without proper calibration can negatively impact model performance due to unfair competition.Model performance in NLG tasks can be enhanced by specially designed MoE architectures.\", \"created_at\": \"2025-08-15 15:43:09\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Large models\", \"type\": \"methodology\", \"description\": \"Large models (33B and above) like Llama 3.1 405B, GPT-4o, and Claude 3.5 Sonnet excel, supporting the idea that bigger models generalize better across diverse coding tasks.\", \"created_at\": \"2025-08-15 16:33:48\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"computational efficiency\", \"type\": \"results\", \"description\": \"Computational efficiency is a key consideration when implementing computer vision (CV) technologies, particularly in specific application scenarios. The MoE (Mixture of Experts) design is noted for enhancing computational efficiency, especially when dealing with complex and diverse tasks. This improvement in computational efficiency stems from the effective utilization of computational resources, achieved by distributing the pressure of parameter storage. However, there is a recognized trade-off between computational efficiency and overall performance; larger models, while potentially offering better performance, demand more computational resources, which can impact their practical deployment in environments with constraints.SLMs enhance computational efficiency in pre-training, fine-tuning, and inference.\", \"created_at\": \"2025-08-15 16:44:45\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"parameter efficiency\", \"type\": \"abstract\", \"description\": \"Higher parameter efficiency is achieved by MoE architectures.Parameter efficiency is a goal to achieve higher parameter efficiency and effectively control computational costs.Parameter efficiency is a goal to achieve higher parameter efficiency and effectively control computational costs.\", \"created_at\": \"2025-08-15 17:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"autoregressive decoding\", \"type\": \"methodology\", \"description\": \"Autoregressive decoding is impacted by computational and memory challenges that worsen with model size.\", \"created_at\": \"2025-08-15 17:04:41\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"dynamic gating, expert caching, and load balancing methods\", \"type\": \"methodology\", \"description\": \"These three optimization techniques are proposed to address inefficiency issues during deployment and inference stages of MoE models, improving inference efficiency in language modeling and machine translation tasks.\", \"created_at\": \"2025-08-15 15:37:29\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"sparse activation mechanisms\", \"type\": \"methodology\", \"description\": \"The FFN layer's suitability for sparse activation mechanisms is due to its higher sparsity.These mechanisms are leveraged to enhance the model’s representational capacity without increasing computational costs.\", \"created_at\": \"2025-08-15 15:37:29\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"ViMOE\", \"type\": \"methodology\", \"description\": \"ViMOE [154] proposed the shared expert concept.ViMOE introduces the concept of shared experts, where a shared expert handles common knowledge required for classification, while other specialized experts focus on specific knowledge. This approach mitigates the difficulty in exploring optimal configurations due to the sensitivity of MoE layers to expert setups and enhances training stability. The paper also systematically analyzes routing behaviors, examining routing strategies, the number of experts, and the placement of MoE layers. It visualizes routing behaviors with heatmaps, finding that MoE layers closer to the output handle more semantically rich feature maps, leading to more specialized tasks for experts. Consequently, the last L layers of the model should be replaced with sparse MoE layers.\", \"created_at\": \"2025-08-15 15:34:46\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"optimal configurations\", \"type\": \"methodology\", \"description\": \"Exploring optimal configurations is made difficult due to the sensitivity of MoE layers to expert setups, a problem mitigated by ViMOE.\", \"created_at\": \"2025-08-15 15:33:16\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Li & Liang\", \"type\": \"person\", \"description\": \"Li & Liang are authors of several publications focusing on the efficient adaptation of large language models, particularly those similar to GPT-2. Their research encompasses various techniques, including prefix tuning and optimization of input layer activations to improve adaptation efficiency. They've also investigated methods to mitigate the reduction of usable sequence length often encountered in models like GPT-2, exploring the strategic placement of special tokens through prefixing and infixing within model inputs. Furthermore, their work includes a paper proposing the optimization of input word embeddings, a method analogous to prompt engineering. Their contributions to the field are significant, with their work on GPT-2 adaptation serving as a benchmark for other researchers, and their findings regarding the role of special tokens in model training corroborated by other studies citing their work. In addition to their research on efficient large language model adaptation, Li & Liang have also authored a work on neural networks and neural tangent kernels.Li & Liang are authors referenced for hyperparameters used in baselines other than LoRA in GPT-2.Li & Liang are authors whose experimental setup is followed in the text.\", \"created_at\": \"2025-08-13 22:59:26\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Section 6\", \"type\": \"methodology\", \"description\": \"Section 6 of the document contains a survey of well-known works on efficient model adaptation.This section explores how SLMs can address key challenges faced by Large Language Models (LLMs), such as high inference latency, labor-intensive fine-tuning, susceptibility to knowledge noise, and risks of copyright infringement.\", \"created_at\": \"2025-08-15 16:22:16\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Ruckl ¨ e et al.\", \"type\": \"person\", \"description\": \"Ruckl¨e et al. are the authors of a paper focusing on efficient model adaptation using adapter layers. Their work addresses latency mitigation in these adapter layers, exploring methods such as pruning layers or leveraging multi-task settings to reduce latency. Their research includes AdapterDrop, a baseline model referenced in the related literature.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Data Shunt: Collaboration of Small and Large Models for Lower Costs and Better Performance\", \"type\": \"methodology\", \"description\": \"This methodology focuses on the collaboration between small and large models to achieve lower costs and enhanced performance.\", \"created_at\": \"2025-08-15 17:04:17\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Improving Large Models with Small models: Lower Costs and Better Performance\", \"type\": \"methodology\", \"description\": \"This work proposes a method to improve large models by utilizing small models, aiming for lower costs and better performance.\", \"created_at\": \"2025-08-15 17:04:17\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Larger language models\", \"type\": \"methodology\", \"description\": \"Larger language models typically yield better QA performance but introduce challenges such as immense computational requirements, privacy concerns when using proprietary LLMs, and difficulties in customization.\", \"created_at\": \"2025-08-15 16:35:45\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"computational requirements\", \"type\": \"limitations\", \"description\": \"Computational requirements are a challenge introduced by the substantial size of larger language models.\", \"created_at\": \"2025-08-15 16:35:45\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"SLMs\", \"description\": \"Mixture of Experts (MoE) is commonly used in SLMs to enhance performance.\", \"created_at\": \"2025-08-15 16:42:47\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"MoE architectures\", \"entity2\": \"computational costs\", \"description\": \"MoE architectures effectively control computational costs.\", \"created_at\": \"2025-08-15 15:19:41\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"abstract\", \"description\": \"The Mixture of Experts (MoE) architecture helps alleviate hardware resource bottlenecks and enhances the model's ability to handle diverse visual tasks, optimizing performance and stability.\", \"created_at\": \"2025-08-15 15:35:15\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"computational and memory challenges\", \"entity2\": \"training\", \"description\": \"Computational and memory challenges worsen with model size, impacting training.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"V-MoE\", \"description\": \"V-MoE utilizes sparse MoE layers, indicating a specific implementation of the MoE concept.\", \"created_at\": \"2025-08-15 15:28:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"MoE-based model\", \"entity2\": \"model performance\", \"description\": \"Dynamically selecting the most suitable expert network for the current task improves model performance without significantly increasing the number of parameters.\", \"created_at\": \"2025-08-15 15:31:00\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Meta-Learning\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"MoE can be used to enhance the rapid learning capability of meta-learning methods.\", \"created_at\": \"2025-08-15 15:24:36\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Large models\", \"entity2\": \"computational efficiency\", \"description\": \"There is a trade-off between the performance of large models and their computational efficiency, as they require more resources for deployment in constrained environments.\", \"created_at\": \"2025-08-15 16:33:56\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"DeepSeek series\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"The DeepSeek series leverages MoE architectures to achieve state-of-the-art results and maintain manageable computational requirements.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"MoE architectures\", \"entity2\": \"parameter efficiency\", \"description\": \"MoE architectures achieve higher parameter efficiency.\", \"created_at\": \"2025-08-15 15:19:41\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Text2Human\", \"description\": \"Text2Human utilizes MoE as a core component of its methodology for conditional generation of clothing.\", \"created_at\": \"2025-08-15 15:29:31\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"autoregressive decoding\", \"entity2\": \"computational and memory challenges\", \"description\": \"Computational and memory challenges worsen with model size, impacting autoregressive decoding.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"continual learning\", \"description\": \"MoE is leveraged to facilitate better continual learning algorithm designs due to its ability to handle diverse tasks without significant computational overhead.\", \"created_at\": \"2025-08-15 15:21:21\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"dynamic gating, expert caching, and load balancing methods\", \"entity2\": \"sparse activation mechanisms\", \"description\": \"Both sparse activation mechanisms and the proposed optimization techniques aim to improve the efficiency and capacity of MoE models.\", \"created_at\": \"2025-08-15 15:37:33\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Diffusion model\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"MoE is applied to the transformer encoder based on the diffusion model in the context of Text2Human.\", \"created_at\": \"2025-08-15 15:29:31\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"ViMOE\", \"entity2\": \"optimal configurations\", \"description\": \"ViMOE mitigates the difficulty in exploring optimal configurations for MoE models.\", \"created_at\": \"2025-08-15 15:33:34\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Computer Vision (CV) field\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"The Mixture of Experts (MoE) architecture is being applied in the Computer Vision (CV) field to enhance state-of-the-art performance.\", \"created_at\": \"2025-08-15 15:35:14\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Li & Liang\", \"entity2\": \"Section 6\", \"description\": \"Section 6 likely surveys the work of Li & Liang on efficient model adaptation by optimizing input layer activations.\", \"created_at\": \"2025-08-13 22:45:40\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"This paper\", \"description\": \"This paper aims to provide a comprehensive summary of recent advancements of MoEs, addressing gaps in existing surveys.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Ruckl ¨ e et al.\", \"entity2\": \"Section 6\", \"description\": \"Section 6 likely surveys the work of Ruckl ¨ e et al. on efficient model adaptation using adapter layers.\", \"created_at\": \"2025-08-13 22:45:52\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"language GAN\", \"description\": \"MoE is introduced into the generator of a language GAN to leverage multiple experts for high-quality sentence generation.\", \"created_at\": \"2025-08-15 15:44:34\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Data Shunt: Collaboration of Small and Large Models for Lower Costs and Better Performance\", \"entity2\": \"Improving Large Models with Small models: Lower Costs and Better Performance\", \"description\": \"Both cited works (Chen et al., 2024 and Chen et al., 2024) propose methods involving the collaboration of small and large models to achieve lower costs and better performance, suggesting a thematic connection in their methodologies.\", \"created_at\": \"2025-08-15 17:04:18\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"state-dependent Dirichlet prior distributions\", \"description\": \"MoE utilizes state-dependent Dirichlet prior distributions to learn similarities between dynamics in source and target tasks.\", \"created_at\": \"2025-08-15 15:33:56\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Larger language models\", \"entity2\": \"computational requirements\", \"description\": \"The substantial size of larger language models introduces challenges such as immense computational requirements.\", \"created_at\": \"2025-08-15 16:35:55\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"MoCaE\", \"description\": \"MoCaE is presented as a method that explores the impact of integrating MoE with base models for object detection.\", \"created_at\": \"2025-08-15 15:36:03\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Swin2-MoSE\", \"description\": \"Swin2-MoSE demonstrates that Mixture of Experts (MoE) can be applied to improve semantic segmentation models.\", \"created_at\": \"2025-08-15 15:37:15\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Object Detection\", \"description\": \"The text discusses the application of MoE principles to object detection, highlighting the challenges of computational efficiency in this task compared to image classification.\", \"created_at\": \"2025-08-15 15:36:03\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"task-free continual learning\", \"description\": \"The idea of applying MoE in continual learning was first explored in the context of task-free continual learning.\", \"created_at\": \"2025-08-15 15:21:22\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Image classification\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"Understanding the performance and limitations of MoE in image classification can reflect its potential for application in other CV tasks.\", \"created_at\": \"2025-08-15 15:28:41\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Contextual Multitask RL\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"The approach investigated in [96] uses a mixture of encoders to generate multiple representations, which aligns with the concept of Mixture of Experts (MoE) for generating orthogonal features.\", \"created_at\": \"2025-08-15 15:22:40\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Model collaboration\", \"description\": \"The text discusses strategies for managing memory usage in MoE models, which is a relevant consideration for model collaboration strategies.\", \"created_at\": \"2025-08-15 16:42:47\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Fig. 1\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"Fig. 1 covers the roadmap of Mixture of Experts (MoE).\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Performance and stability\", \"description\": \"The MoE architecture optimizes both performance and stability.\", \"created_at\": \"2025-08-15 15:35:16\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"recurrent neural network\", \"description\": \"Each expert in MoE acts as a recurrent neural network that autoregressively produces the current token representation.\", \"created_at\": \"2025-08-15 15:44:35\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Model's ability to handle diverse visual tasks\", \"description\": \"The MoE architecture enhances the model's ability to handle diverse visual tasks.\", \"created_at\": \"2025-08-15 15:35:15\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Multi-task learning\", \"description\": \"The algorithm design of MoE is explored in multi-task learning.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Mixture of Experts (MoE) in RL\", \"description\": \"The methodology of MoE is being leveraged in RL, gaining increasing attention due to its success in LLMs.\", \"created_at\": \"2025-08-15 15:33:55\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"sparse or delayed rewards\", \"description\": \"The MoE method improves robustness against sparse or delayed rewards.\", \"created_at\": \"2025-08-15 15:33:56\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"Hardware resource bottlenecks\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"The MoE architecture helps to alleviate hardware resource bottlenecks.\", \"created_at\": \"2025-08-15 15:35:15\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Meta-learning\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"The algorithm design of MoE is explored in meta-learning.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Training strategies\", \"description\": \"Training strategies are part of the basic design of MoE.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"state space\", \"description\": \"MoE autonomously identifies and combines promising sub-regions from multiple source tasks across different regions of the state space.\", \"created_at\": \"2025-08-15 15:33:56\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"System design\", \"description\": \"System design is part of the basic design of MoE.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Routing mechanisms\", \"description\": \"Routing mechanisms are part of the basic design of MoE.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"Learning routing mechanism\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"The learning routing mechanism is a component that further improves the performance of image generation tasks, implying it works in conjunction with or enhances the capabilities of MoE.\", \"created_at\": \"2025-08-15 15:29:31\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Expert networks\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"Expert networks are part of the basic design of MoE.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"Gating functions\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"Gating functions are part of the basic design of MoE.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"RetGen\", \"description\": \"The text describes RetGen's process involving multiple transformer-based generation models, which could potentially utilize MoE principles, though not explicitly stated as a direct integration.\", \"created_at\": \"2025-08-15 15:44:35\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: MOE\\nChunk: 167\\n\\n6, no. 2, pp. 181–214, 1994. [15] W. Fedus, B. Zoph, and N. Shazeer, “Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity,” Journal of Machine Learning Research, vol. 23, no. 120, pp. 1–39, 2022. [16] N. Shazeer, A. Mirhoseini, K. Maziarz, A. Davis, Q. Le, G. Hinton, and J. Dean, “Outrageously large neural networks: The sparsely-gated mixture-of-experts layer,” arXiv preprint arXiv:1701.06538, 2017. [17] C. Riquelme, J. Puigcerver, B. Mustafa, M. Neumann, R. Jenatton, A. Susano Pinto, D. Keysers, and N. Houlsby, “Scaling vision with sparse mixture of experts,” Advances in Neural Information Processing Systems, vol. 34, pp. 8583–8595, 2021. [18] L. Wu, M. Liu, Y. Chen, D. Chen, X. Dai, and L. Yuan, “Residual mixture of experts,” arXiv preprint arXiv:2204.09636, 2022. [19] Z. Fan, R. Sarkar, Z. Jiang, T. Chen, K. Zou, Y. Cheng, C. Hao, Z.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 124\\n\\nConsequently, the last L layers of the model should be replaced with sparse MoE layers. The analysis suggests that both the number of experts and the size of $\\\\mathrm { L }$ are related to the degree of routing, and more does not necessarily mean better performance. To some degree, the base model introduced in [155] shares similarities with the shared expert concept proposed in ViMOE [154]. In CLIP-MoE [156], the MoE architecture is applied to enhance the capabilities of the CLIP model through a method called Diversified Multiplet Upcycling. The authors fine-tune a series of pre-trained CLIP models using multi-stage contrastive learning, extracting expert networks that focus on different aspects of the input data, and integrating these experts into the MoE architecture. Other papers delve deeper into the design of gating functions.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: MOE\\nChunk: 170\\n\\n7, 1994. [27] J. Puigcerver, C. Riquelme, B. Mustafa, and N. Houlsby, “From sparse to soft mixtures of experts,” arXiv preprint arXiv:2308.00951, 2023. [28] J. Geweke and M. Keane, “Smoothly mixing regressions,” Journal of Econometrics, vol. 138, no. 1, pp. 252–290, 2007. [29] Z. Chen, Y. Deng, Y. Wu, Q. Gu, and Y. Li, “Towards understanding mixture of experts in deep learning,” arXiv preprint arXiv:2208.02813, 2022. [30] H. Li, S. Lin, L. Duan, Y. Liang, and N. B. Shroff, “Theory on mixtureof-experts in continual learning,” arXiv preprint arXiv:2406.16437, 2024. [31] R. Csordas, P. Piekos, K. Irie, and J. Schmidhuber, “Switchhead: ´ Accelerating transformers with mixture-of-experts attention,” arXiv preprint arXiv:2312.07987, 2023. [32] K.-C. Wang, D. Ostashev, Y. Fang, S. Tulyakov, and K. Aberman, “Moa: Mixture-of-attention for subject-context disentanglement in personalized image generation,” in SIGGRAPH Asia 2024 Conference Papers, SA ’24, (New York, NY, USA), Association for Computing Machinery, 2024.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: Attention Is All You Need\\nChunk: 4\\n\\nthin training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples. Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains. Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19]. In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network. In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 7.8204, + "rag_initialization_seconds": 4.1084, + "query_execution_seconds": 3.712, + "start_timestamp": "2025-08-15T20:11:55.295760", + "end_timestamp": "2025-08-15T20:12:03.116206" + }, + "metadata": { + "saved_at": "2025-08-15T20:12:03.116206", + "file_path": "retrieval_logs\\retrieval_20250815_201203_116_mix_k12_ck5_The_Mixture-of-Experts_paper_describes_sparse_acti.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_201402_012_mix_k10_ck4_The_theme_of_efficiency_is_central_to_several_of_t.json b/retrieval_logs/retrieval_20250815_201402_012_mix_k10_ck4_The_theme_of_efficiency_is_central_to_several_of_t.json new file mode 100644 index 0000000000000000000000000000000000000000..7905ee758edb7830ebad06af320fd001d6614759 --- /dev/null +++ b/retrieval_logs/retrieval_20250815_201402_012_mix_k10_ck4_The_theme_of_efficiency_is_central_to_several_of_t.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T20:14:02.012476", + "query": "\n\"The theme of 'efficiency' is central to several of these papers. Compare and contrast the specific approaches to achieving efficiency described in the following three papers:\nMixture-of-Experts Survey: Focus on 'conditional computation'.\nFederated Learning Paper: Focus on 'communication efficiency'.\nSmall Language Models (SLM) Survey: Focus on the inherent benefits of smaller parameter counts for on-device deployment.\nPlease structure your answer to clearly delineate the distinct type of efficiency each paper prioritizes.\"\n ", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 24188, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Deepseekmoe: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models\", \"type\": \"methodology\", \"description\": \"This refers to a research paper or preprint that explores expert specialization in mixture-of-experts language models.\", \"created_at\": \"2025-08-15 15:45:44\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"effectiveness and differences\", \"type\": \"results\", \"description\": \"The effectiveness and differences in how various prompting strategies handle complex tasks are demonstrated.\", \"created_at\": \"2025-08-15 15:55:15\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"arXiv preprint arXiv:2407.06204\", \"type\": \"publication\", \"description\": \"Preprint repository for 'A survey on mixture of experts'.\", \"created_at\": \"2025-08-15 15:50:51\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"prompting methods\", \"type\": \"methodology\", \"description\": \"Prompting methods are applied to tasks like HotspotQA and AlfWorld for comparative analysis.Prompting methods are compared on HotpotQA and AlfWorld, with their outcomes communicated through color-coding and their comparison facilitated by layout and visual hierarchy.\", \"created_at\": \"2025-08-15 15:57:52\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"J. Yao, Q. Anthony, A. Shafi, H. Subramoni, and D. K. D. Panda\", \"type\": \"author\", \"description\": \"Authors of a paper on exploiting inter-layer expert affinity for accelerating mixture-of-experts model inference.\", \"created_at\": \"2025-08-15 15:45:26\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"MoE architectures\", \"type\": \"methodology\", \"description\": \"MoE (Mixture of Experts) architectures are designed to enhance parameter efficiency and manage computational costs effectively. They offer potential improvements in model interpretability by learning intrinsic allocation mechanisms. These architectures possess a sparse nature, necessitating dynamic data allocation, which makes pipeline design a critical factor in their training. While MoE architectures have shown impressive scalability and performance, their theoretical foundations are not yet fully understood. Further research is needed to optimize the design of MoE architectures, particularly in determining the optimal number of experts and their specialization, as current methods often rely on heuristic or static settings that may not be universally optimal for all tasks.MoE architectures are a type of architecture that EdgeMoE aims to improve by reducing latency caused by frequent expert switching in limited device memory.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Beyond distillation: Task-level mixture-of-experts for efficient inference\", \"type\": \"methodology\", \"description\": \"This methodology explores task-level mixture-of-experts for efficient inference, going beyond distillation.\", \"created_at\": \"2025-08-15 15:43:45\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"parameter efficiency\", \"type\": \"abstract\", \"description\": \"Higher parameter efficiency is achieved by MoE architectures.Parameter efficiency is a goal to achieve higher parameter efficiency and effectively control computational costs.Parameter efficiency is a goal to achieve higher parameter efficiency and effectively control computational costs.\", \"created_at\": \"2025-08-15 17:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"J. Liu, P. Tang, W. Wang, Y. Ren, X. Hou, P.-A. Heng, M. Guo, and C. Li\", \"type\": \"author\", \"description\": \"Authors of the paper 'A survey on inference optimization techniques for mixture of experts models'.\", \"created_at\": \"2025-08-15 15:50:53\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"layout\", \"type\": \"methodology\", \"description\": \"The layout is organized from left to right and top to bottom, facilitating a direct comparison of different approaches.\", \"created_at\": \"2025-08-15 15:55:15\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"S. Singh, O. Ruwase, A. A. Awan, S. Rajbhandari, Y. He, and A. Bhatele\", \"type\": \"author\", \"description\": \"Authors of a paper discussing a hybrid tensor-expert-data parallelism approach to optimize mixture-of-experts training.\", \"created_at\": \"2025-08-15 15:45:26\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Existing surveys on MoE\", \"type\": \"discussion\", \"description\": \"Existing surveys on MoE have limitations, such as being outdated or lacking discussion on certain key areas.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Multi-task learning with calibrated mixture of insightful experts\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a 2022 IEEE conference paper.\", \"created_at\": \"2025-08-15 15:43:35\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"This paper\", \"type\": \"conclusion\", \"description\": \"This paper aims to provide a comprehensive summary of recent advancements of MoEs in many important fields, addressing the gaps left by existing surveys. It will introduce the basic design of MoE, including gating functions, expert networks, routing mechanisms, training strategies, and system design, and explore the algorithm design of MoE in important machine learning paradigms.This paper provides a comprehensive survey of Small Language Models (SLMs) with up to 7 billion parameters, covering their definition, construction, enhancement techniques, adaptation from LLMs, representative models, applications, deployment, role in augmenting LLMs, and trustworthiness.\", \"created_at\": \"2025-08-15 17:07:58\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Theory of mixture-of-experts for mobile edge computing\", \"type\": \"methodology\", \"description\": \"This refers to the theoretical underpinnings of using mixture-of-experts models within the context of mobile edge computing.\", \"created_at\": \"2025-08-15 15:47:29\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"computational costs\", \"type\": \"abstract\", \"description\": \"Computational costs are a factor that needs to be controlled, with the primary goal of achieving higher parameter efficiency. MoE (Mixture-of-Experts) architectures are effective in controlling computational costs, which they manage by activating only relevant experts for a specific input. The TopK strategy does not proportionally escalate computational costs, even with increased model capacity. While computing the softmax function for all experts incurs higher computational costs, MoA (Mixture-of-Attention or similar, depending on full context) enhances performance without significantly increasing them.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Y. Zhou, T. Lei, H. Liu, N. Du, Y. Huang, V. Zhao, A. M. Dai, Q. V. Le, J. Laudon, et al.\", \"type\": \"methodology\", \"description\": \"This entry refers to a publication titled “Mixture-of-experts with expert choice routing,” published in Advances in Neural Information Processing Systems, vol. 35, pp. 7103–7114, in 2022.\", \"created_at\": \"2025-08-15 15:39:02\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"AdapterDrop\", \"type\": \"category\", \"description\": \"A baseline model (AdapterD) that drops some adapter layers for efficiency.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Revisiting sparse mixture of experts for resource-adaptive federated fine-tuning foundation models\", \"type\": \"methodology\", \"description\": \"This is a study that revisits sparse mixture of experts for resource-adaptive federated fine-tuning of foundation models, as presented in reference [134].\", \"created_at\": \"2025-08-15 15:47:16\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"AdapterL\", \"type\": \"category\", \"description\": \"AdapterL is a model design similar to AdapterP, but with a specific parameterization that results in a variant of adapter tuning. This design incorporates a specific number of trainable parameters, leading to increased inference latency compared to the baseline, although this latency slowdown is reduced with larger batch sizes and sequence lengths. For improved efficiency, AdapterL's adapter layers are applied only after the MLP module and LayerNorm. In summary, AdapterL represents a type or category of adapter characterized by its specific parameterization and placement within the model architecture, resulting in a trade-off between performance and inference speed.AdapterL is a parameter-efficient fine-tuning method for language models, compared against LoRA and other methods.AdapterL is a more efficient adapter design by Lin et al. (2020), tested for latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Mixture of Experts (MoE)\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning technique and architectural approach that enhances performance, particularly in large language models (LLMs) and increasingly in the Computer Vision field, by employing a \\\"divide and conquer\\\" strategy. Unlike traditional dense models, MoE utilizes multiple specialized expert models to learn distinct core features of different domains or input types. A gating network dynamically selects and activates the most relevant submodels or experts to process input data, enabling the model to handle diverse tasks, large-scale datasets with thousands of categories, and multimodal data without a significant increase in computational overhead. This approach allows for the intelligent fusion of personalized and generic content, leading to high-fidelity personalized image generation without sacrificing image diversity or quality, and can improve semantic segmentation models, especially with high accuracy requirements or limited computational resources. MoE experts can collaboratively generate high-quality sentences, with each expert acting as a recurrent neural network that autoregressively produces token representations, making models more efficient and precise when processing complex or diverse text data. While MoE enhances performance with the same computing resources, it increases memory usage. Strategies to address this include loading only activated experts into memory and storing others on disk, though switching costs can slow inference, leading to suggestions for preemptive expert pre-load strategies to accelerate inference. The performance and limitations of MoE in image classification are actively being explored, with ongoing research dissecting its architecture, training, and optimization, including the impact of the number of expert networks, MoE layers, and their placement on performance, efficiency, and stability. MoE also autonomously identifies and combines promising sub-regions from multiple source tasks across different regions of the state space, utilizing state-dependent Dirichlet prior distributions to learn similarities between dynamics in source and target tasks and updating these priors using state transition data, which improves robustness against sparse or delayed rewards. The MoE architecture offers inherent transparency due to its design and is also applied to regression problems.MoE models offer opportunities to improve model interpretability by learning intrinsic allocation mechanisms, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability enhances understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.MoE models offer opportunities to improve model interpretability by learning intrinsic allocation mechanisms, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability enhances understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 17:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"[268] M. Aitkin and N. Longford, Statistical modelling issues in school effectiveness studies, Journal of the Royal Statistical Society: Series A (General), vol. 149, no. 1, pp. 1–26, 1986.\", \"type\": \"connection\", \"description\": \"This entry is a citation for a publication by M. Aitkin and N. Longford on statistical modelling issues in school effectiveness studies.\", \"created_at\": \"2025-08-15 15:47:52\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"[270] H. Goldstein, Multilevel statistical models. John Wiley & Sons, 2011.\", \"type\": \"connection\", \"description\": \"This entry is a citation for a book by H. Goldstein titled 'Multilevel statistical models'.\", \"created_at\": \"2025-08-15 15:47:52\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"Model collaboration\", \"type\": \"methodology\", \"description\": \"Model collaboration between local SLMs and cloud-based LLMs enhances memory and runtime efficiency. This involves using smaller models on local devices, which are then verified by cloud LLMs to maintain performance. Local SLMs reduce memory usage and inference time.\", \"created_at\": \"2025-08-15 16:42:40\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity\": \"concurrent surveys\", \"type\": \"discussion\", \"description\": \"Other new concurrent surveys have been uploaded online very recently, but they either focus on a special aspect of MoE or cover multiple topics very briefly.\", \"created_at\": \"2025-08-15 15:19:22\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity\": \"our paper\", \"type\": \"abstract\", \"description\": \"Our paper is the first survey that comprehensively summarizes the latest advancement in MoE, including basic design strategies, MoE-based algorithm designs in mainstream machine learning directions, theory towards understanding MoE in various scenarios, and an in-depth review of applications of MoE in both computer vision and natural language processing.\", \"created_at\": \"2025-08-15 15:19:22\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"AdaMV-MoE: Adaptive multi-task vision mixture-of-experts\", \"entity2\": \"Multi-task learning with calibrated mixture of insightful experts\", \"description\": \"Both are methodologies related to multi-task learning, presented in IEEE conferences.\", \"created_at\": \"2025-08-15 15:43:45\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"effectiveness and differences\", \"entity2\": \"prompting methods\", \"description\": \"The figure demonstrates the effectiveness and differences in how prompting methods handle complex tasks.\", \"created_at\": \"2025-08-15 15:55:32\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Multi-task learning with calibrated mixture of insightful experts\", \"entity2\": \"Multi-task reinforcement learning with context-based representations\", \"description\": \"Both are methodologies related to multi-task learning, presented in IEEE and PMLR respectively.\", \"created_at\": \"2025-08-15 15:43:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"MoE architectures\", \"entity2\": \"parameter efficiency\", \"description\": \"MoE architectures achieve higher parameter efficiency.\", \"created_at\": \"2025-08-15 15:19:41\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"DeepSeek-AI\", \"entity2\": \"Deepseekmoe: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models\", \"description\": \"The paper 'Deepseekmoe: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models' is associated with DeepSeek-AI.\", \"created_at\": \"2025-08-15 15:45:49\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"layout\", \"entity2\": \"prompting methods\", \"description\": \"The layout facilitates a direct comparison of the different prompting methods.\", \"created_at\": \"2025-08-15 15:55:32\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Beyond distillation: Task-level mixture-of-experts for efficient inference\", \"entity2\": \"mixture-of-experts\", \"description\": \"This methodology utilizes task-level mixture-of-experts for efficient inference, as an alternative to distillation.\", \"created_at\": \"2025-08-15 15:43:46\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Existing surveys on MoE\", \"entity2\": \"This paper\", \"description\": \"This paper aims to address the limitations of existing surveys on MoE.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Multi-task learning with calibrated mixture of insightful experts\", \"entity2\": \"Progressive layered extraction (ple): A novel multi-task learning (mtl) model for personalized recommendations\", \"description\": \"Both are methodologies related to multi-task learning, presented in IEEE and ACM conferences respectively.\", \"created_at\": \"2025-08-15 15:43:46\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"MoE architectures\", \"entity2\": \"computational costs\", \"description\": \"MoE architectures effectively control computational costs.\", \"created_at\": \"2025-08-15 15:19:41\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Deepseekmoe\", \"entity2\": \"Deepseekmoe: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models\", \"description\": \"The paper 'Deepseekmoe: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models' describes the Deepseekmoe contribution.\", \"created_at\": \"2025-08-15 15:45:52\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"AdapterDrop\", \"entity2\": \"AdapterL\", \"description\": \"AdapterL and AdapterDrop are compared as baselines in the study, with AdapterDrop focusing on efficiency through layer dropping.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Exploiting inter-layer expert affinity for accelerating mixture-of-experts model inference\", \"entity2\": \"J. Yao, Q. Anthony, A. Shafi, H. Subramoni, and D. K. D. Panda\", \"description\": \"These authors are associated with the development and publication of a method to accelerate MoE inference by exploiting inter-layer expert affinity.\", \"created_at\": \"2025-08-15 15:45:27\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"This paper\", \"description\": \"This paper aims to provide a comprehensive summary of recent advancements of MoEs, addressing gaps in existing surveys.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"A hybrid tensor-expert-data parallelism approach to optimize mixture-of-experts training\", \"entity2\": \"S. Singh, O. Ruwase, A. A. Awan, S. Rajbhandari, Y. He, and A. Bhatele\", \"description\": \"These authors are associated with the development and publication of the hybrid tensor-expert-data parallelism approach for optimizing MoE training.\", \"created_at\": \"2025-08-15 15:45:27\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"[268] M. Aitkin and N. Longford, Statistical modelling issues in school effectiveness studies, Journal of the Royal Statistical Society: Series A (General), vol. 149, no. 1, pp. 1–26, 1986.\", \"entity2\": \"[270] H. Goldstein, Multilevel statistical models. John Wiley & Sons, 2011.\", \"description\": \"Both entries are related to statistical modeling, with Goldstein's work being a foundational text in multilevel statistical models.\", \"created_at\": \"2025-08-15 15:47:52\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Model collaboration\", \"description\": \"The text discusses strategies for managing memory usage in MoE models, which is a relevant consideration for model collaboration strategies.\", \"created_at\": \"2025-08-15 16:42:47\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"concurrent surveys\", \"entity2\": \"our paper\", \"description\": \"The paper distinguishes itself from other recent surveys by offering a more comprehensive and in-depth summary of MoE advancements, rather than focusing on special aspects or covering topics briefly.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 9\\n\\nHowever, this process is computationally expensive due to their large size. (5) Though general-purpose LLMs are powerful, many real-world applications require only specific abilities and domain knowledge, deploying general-purpose LLMs would be a waste of resources and such LLMs often cannot match the performance of models tailored for specific tasks [52, 125, 156, 275, 369]. Recently, small language models (SLMs) have shown great potential in alleviating these issues while achieving performance comparable to LLMs for domain-specific problems [1, 26, 116, 143, 223, 274, 333, 336, 402, 439]. Owing to fewer parameters, SLMs excel in efficiency, cost, flexibility, and customization. They provide significant computational Manuscript submitted to ACM ![This image is a hierarchical organizational chart or mind map detailing the structure of a document, likely a research paper or technical report, focused on Small Language Models (SLMs).\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 186\\n\\n213, p. 110310. [95] S. Wang, Y. Li, H. Li, T. Zhu, Z. Li, and W. Ou, “Multi-task learning with calibrated mixture of insightful experts,” in 2022 IEEE 38th International Conference on Data Engineering (ICDE), pp. 3307–3319, IEEE. [96] S. Sodhani, A. Zhang, and J. Pineau, “Multi-task reinforcement learning with context-based representations,” in International Conference on Machine Learning, pp. 9767–9779, PMLR, 2021. [97] T. Chen, X. Chen, X. Du, A. Rashwan, F. Yang, H. Chen, Z. Wang, and Y. Li, “AdaMV-MoE: Adaptive multi-task vision mixture-ofexperts,” in 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 17300–17311, IEEE. [98] H. Tang, J. Liu, M. Zhao, and X. Gong, “Progressive layered extraction (ple): A novel multi-task learning (mtl) model for personalized recommendations,” in Proceedings of the 14th ACM conference on recommender systems, pp. 269–278, 2020. [99] C. Louizos, M. Welling, and D. P.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 21\\n\\nDue to the growing demand for SLMs, extensive literature has emerged on various aspects of SLMs. For example, several resource-efficient techniques [398] and training methods optimized for SLMs, such as quantization-aware training [221, 357, 400] and selective architectural component choices [223, 280, 336], aim to enhance performance in specific applications [36, 52, 275, 292, 382]. These methods have led to the development of numerous open-source, generalpurpose, and domain-specific SLMs [3, 26, 34, 333, 402, 435]. Beyond their inherent capabilities, SLMs can enhance LLMs by serving as modules or effective proxies [246, 297, 383, 399, 413, 450]. Furthermore, the complementary advantages of SLMs and LLMs can be leveraged collectively to better complete tasks [79, 204, 234, 307, 437].\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: MOE\\nChunk: 58\\n\\nIn particular, in continual learning a model is continuously adapted based on the new data without access to previous data. This will lead to a key challenge in continual learning, the so-called “Catastrophic Forgetting” [218], which refers to the phenomenon that neural networks can easily forget the previously acquired knowledge when learning the new task. Seeing that the MoE framework dynamically selects the most appropriate sub-model for each input, enabling the model to handle diverse tasks without a substantial increase in computational overhead, multiple efforts have been made in the literature to leverage MoE to facilitate better continual learning algorithm designs. The idea of applying MoE in continual learning is first explored [60] which builds a model with a set of experts for task-free continual learning [219], i.e., a more general continual learning setup where the explicit task definition and task boundary information are unavailable.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 7.7757, + "rag_initialization_seconds": 4.1751, + "query_execution_seconds": 3.6006, + "start_timestamp": "2025-08-15T20:13:54.236759", + "end_timestamp": "2025-08-15T20:14:02.012477" + }, + "metadata": { + "saved_at": "2025-08-15T20:14:02.012476", + "file_path": "retrieval_logs\\retrieval_20250815_201402_012_mix_k10_ck4_The_theme_of_efficiency_is_central_to_several_of_t.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_201711_334_mix_k12_ck5_Your_task_is_to_architect_a_next-generation_decent.json b/retrieval_logs/retrieval_20250815_201711_334_mix_k12_ck5_Your_task_is_to_architect_a_next-generation_decent.json new file mode 100644 index 0000000000000000000000000000000000000000..8d3e70c2ab15ec6e476988142510fdf755c1e5c0 --- /dev/null +++ b/retrieval_logs/retrieval_20250815_201711_334_mix_k12_ck5_Your_task_is_to_architect_a_next-generation_decent.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T20:17:11.334977", + "query": "\nYour task is to architect a next-generation, decentralized AI ecosystem for on-device intelligence. Your design must be a principled integration of concepts from all the provided research papers.\nDescribe how you would combine:\nThe decentralized training paradigm from the Federated Learning paper.\nThe on-device efficiency and architecture of Small Language Models (SLMs).\nThe Mixture-of-Experts (MoE) architecture to further enhance the on-device SLMs.\nThe reasoning and tool-use capabilities of the ReAct framework.\nThe parallel processing principles from the Transformer ('Attention Is All You Need') as the base architecture for the SLMs.\nExplain how these components would interact to create a system that is private, efficient, and highly capable. Finally, identify the single biggest challenge this integrated system would face.\"\n\n ", + "query_mode": "mix", + "top_k": 12, + "chunk_top_k": 5, + "text_length": 27584, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Figure 1\", \"type\": \"results\", \"description\": \"Figure 1 illustrates the loss on the full MNIST training set for models generated by averaging parameters of two models, w and w', using a specific formula for 50 evenly spaced values of theta. The models w and w' were trained using SGD on different small datasets.Figure 1 presents a multifaceted view of various concepts and processes. It illustrates the comparison of four prompting methods—Standard, Chain-of-thought (CoT, Reason Only), Act-only, and ReAct (Reason+Act)—in solving a HotpotQA question, and also compares Act-only and ReAct prompting in solving an AlfWorld game, showcasing task-solving trajectories generated by the model (Act, Thought) and the environment (Obs), while omitting in-context examples. Additionally, Figure 1 demonstrates the development of various small language models (SLMs) through a horizontal timeline segmented by years and quarters, with different SLMs branching off at their respective release points. The figure also serves to illustrate the Transformer model architecture, including its encoder and decoder halves. Furthermore, Figure 1 depicts the training loss behavior across different values of E (number of local epochs) in a federated learning context, specifically highlighting fluctuations and less clear convergence patterns when using the Non-IID MNIST dataset, employing different learning rates and y-axis scales for comparison. It also demonstrates the LoRA (Low-Rank Adaptation) approach, which optimizes rank decomposition matrices A and B while keeping pre-trained weights frozen. In a related context, Figure 1 illustrates the loss on the full MNIST training set for models generated by averaging parameters of two models, w and w', which were trained using SGD on different small datasets, with this parameter averaging shown to significantly reduce loss on the full training set compared to models trained on individual subsets, using a shared starting model for each round of FedAvg. Finally, Figure 1 also illustrates the overall organization of the paper.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Is On-Device AI Broken and Exploitable? Assessing the Trust and Ethics in Small Language Models\", \"type\": \"discussion\", \"description\": \"This work discusses the potential vulnerabilities, trust, and ethical considerations related to on-device AI, specifically focusing on small language models.\", \"created_at\": \"2025-08-15 17:12:41\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"MobileAIBench: Benchmarking LLMs and LMMs for On-Device Use Cases\", \"type\": \"methodology\", \"description\": \"This is a benchmark designed for evaluating Large Language Models (LLMs) and Large Multimodal Models (LMMs) in the context of on-device applications.\", \"created_at\": \"2025-08-15 17:12:41\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Device Sensors and Private Data\", \"type\": \"connection\", \"description\": \"Powerful sensors on devices (including cameras, microphones, and GPS), combined with the fact they are frequently carried, means they have access to an unprecedented amount of data, much of it private in nature.\", \"created_at\": \"2025-08-15 17:42:32\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Federated Learning\", \"type\": \"methodology\", \"description\": \"A decentralized approach for learning deep networks, presented as a practical method based on iterative model averaging.Federated Learning is a decentralized machine learning approach that enables collective learning from distributed data without centralizing it, allowing multiple clients to effectively integrate their data while prioritizing user privacy and data security. In this methodology, individual devices, such as mobile phones, act as clients that train on their local datasets. These clients then communicate only their computed model updates to a central server, rather than sharing the raw training data itself. This process is particularly effective for problems with decentralized data and aims to train deep neural networks while minimizing communication rounds. By decoupling model training from direct access to raw data, Federated Learning significantly enhances privacy and security by reducing the potential attack surface on devices. Optimization problems within this framework are specifically termed federated optimization. Furthermore, Federated Learning can be integrated with secure multiparty computation and differential privacy techniques to further bolster its privacy and security features. A major challenge in federated learning is data heterogeneity, which can harm model learning performance and can manifest in two ways: clients sharing the same conditional distribution but having different marginal distributions, or the opposite scenario. Federated Learning is also a learning paradigm that is related to Mixture-of-Experts.\", \"created_at\": \"2025-08-15 17:42:03\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"AI systems\", \"type\": \"discussion\", \"description\": \"AI systems can be designed to be more robust and transparent by leveraging the interpretability offered by Mixture of Experts (MoE) models.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"model interpretability\", \"type\": \"discussion\", \"description\": \"Model interpretability is an opportunity offered by Mixture of Experts (MoE) models, achieved by learning intrinsic allocation mechanisms. This process enhances the understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems. Furthermore, model interpretability is enhanced by the combination of reasoning and acting, which allows humans to distinguish between internal knowledge and external environments.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"robust and transparent AI systems\", \"type\": \"possible enhancements\", \"description\": \"Designing more robust and transparent AI systems is an avenue opened by the interpretability of MoE models.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Communication costs\", \"type\": \"methodology\", \"description\": \"Communication costs are identified as the principal constraint in the federated learning setting.\", \"created_at\": \"2025-08-15 15:04:36\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"FederatedAveraging algorithm\", \"type\": \"methodology\", \"description\": \"The FederatedAveraging algorithm combines local stochastic gradient descent (SGD) on each client with a server that performs model averaging.\", \"created_at\": \"2025-08-15 15:00:09\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"training on decentralized data from mobile devices\", \"type\": \"abstract\", \"description\": \"The problem of training on decentralized data from mobile devices is identified as an important research direction.\", \"created_at\": \"2025-08-15 15:00:09\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Abstract\", \"type\": \"abstract\", \"description\": \"Modern mobile devices have access to a wealth of data suitable for learning models, which in turn can greatly improve the user experience on the device. For example, language models can improve speech recognition and text entry, and image models can automatically select good photos. However, this rich data is often privacy sensitive, large in quantity, or both, which may preclude logging to the data center and training there using conventional approaches. We advocate an alternative that leaves the training data distributed on the mobile devices, and learns a shared model by aggregating locally-computed updates. We term this decentralized approach Federated Learning.The abstract describes the dominant sequence transduction models as complex recurrent or convolutional neural networks with an encoder and decoder, often connected by an attention mechanism. It proposes a new, simpler network architecture called the Transformer, which relies solely on attention mechanisms and eliminates recurrence and convolutions.\", \"created_at\": \"2025-08-15 14:58:45\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"type\": \"abstract\", \"description\": \"This abstract discusses the use of mixtures of experts to unlock parameter scaling for deep reinforcement learning.This is a citation for a paper discussing mixtures of experts and parameter scaling in deep RL.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems and scheduling for behavior acquisition in multi-agent environments.This methodology describes a modular learning system and scheduling for behavior acquisition in a multi-agent environment.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Communication-Efficient Learning of Deep Networks\", \"type\": \"abstract\", \"description\": \"Communication-Efficient Learning of Deep Networks is a research document that investigates a machine learning problem focused on deep networks and communication efficiency. The research explores methods for optimizing learning processes by increasing computation on each client between communication rounds, contrasting these with existing approaches and the federated optimization setting. The document defines and explains a loss function for this machine learning problem, including its reformulation for a scenario with K clients where data is partitioned, and touches upon the expectation of the loss function when data is distributed uniformly at random among clients. The study specifically discusses the behavior of parameterized neural networks (NNs) and the effectiveness of parameter averaging in federated learning. The described method for communication-efficient learning of deep networks involves a fixed set of K clients, each possessing a local dataset. In each round, a random fraction C of clients is selected, the global algorithm state is transmitted to them, and these clients perform local computation based on the global state and their local data. Subsequently, updates are sent back to the server, which then updates its global state, and the process iterates. This method is applicable to non-convex neural network objectives and any finite-sum objective of the form min_w f(w) = (1/n) * sum(f_i(w)). The selection of a fraction of clients is implemented for efficiency, as experimental results indicate diminishing returns when involving a larger number of clients. The document also references techniques for privacy and secure multi-party computation. Furthermore, the research highlights the performance of FedAvg compared to SGD and demonstrates the effectiveness of their approach on a large-scale next-word prediction task. The document reports the number of communication rounds required to reach a specific test-set accuracy in deep networks, detailing the process of constructing learning curves for various parameter settings, optimizing eta, and ensuring monotonic improvement by selecting the best test-set accuracy achieved. The document also discusses the impact of hyperparameters like local epochs and learning rate on model generalization and performance.This document discusses communication-efficient learning of deep networks, focusing on the impact of local epochs on training loss and convergence.This document discusses communication-efficient learning of deep networks, focusing on the impact of local epochs on training loss and convergence.\", \"created_at\": \"2025-08-15 17:30:47\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Federated learning: Strategies for improving communication efficiency\", \"type\": \"methodology\", \"description\": \"This refers to strategies for improving communication efficiency in federated learning.\", \"created_at\": \"2025-08-15 15:08:37\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"federated learning\", \"type\": \"methodology\", \"description\": \"Federated learning is a machine learning paradigm that offers practical privacy benefits by addressing the challenge of data exchange without compromising user privacy and ensuring data security. This approach involves training multiple local models on different servers and aggregating their parameters to update a global model, leveraging distributed data and computational resources. Federated learning is a context in which the empirical performance of various training strategies can be understood through visualizations. Furthermore, it is a learning paradigm where Mixture of Experts (MoE) models can be used to handle heterogeneous data distributions across clients, and MoE-based algorithms can be applied within the federated learning framework. However, federated learning faces challenges such as heterogeneity and communication overhead.\", \"created_at\": \"2025-08-15 15:42:41\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"heterogeneity\", \"type\": \"discussion\", \"description\": \"Heterogeneity is discussed as a significant challenge in federated learning.\", \"created_at\": \"2025-08-15 15:36:45\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Large scale distributed deep networks\", \"type\": \"methodology\", \"description\": \"This is a title of a paper that discusses large-scale distributed deep networks.\", \"created_at\": \"2025-08-15 15:06:41\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"communication overhead\", \"type\": \"discussion\", \"description\": \"Communication overhead is a significant challenge in federated learning, where each round of communication between decentralized servers incurs substantial costs.The approach in [138] aims to reduce communication overhead by aggregating expert models.\", \"created_at\": \"2025-08-15 15:36:45\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"MoE\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning methodology and model design that enhances performance, generalization ability, and computational efficiency, particularly for complex and diverse tasks. MoE operates on a \\\"divide and conquer\\\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This framework allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. MoE leverages specialized \\\"experts\\\" for different tasks or data types, providing a scalable and flexible framework for tackling complex, multifaceted datasets and handling diverse knowledge domains without proportionally increasing computational costs. Expert networks can operate independently and are often integrated into a single network model by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers or CNN layers, with MoE layers, demonstrating high flexibility and broad applicability. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible Natural Language Generation (NLG) systems. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. MoE can alleviate problems in High-Value Content Learning (HVCL) such as known task boundaries and increased computation cost by leveraging multiple experts. MoE is also introduced into the decoder to address the issue of static feature decoding in different task decoders due to shared decoding parameters, which leads to insufficient distinction in task-specific features. MoE decomposes backbone features into task-agnostic features from different aspects, making the decoding process of task-specific features more fine-grained. MoE introduces shared expert modules, domain expert modules, and task expert modules, which learn cross-domain and cross-task common knowledge, domain-specific user preferences, and task-specific user preferences, respectively. This enables models to capture user preferences from multiple perspectives and handle complex dependencies between domains and tasks, allowing for flexible model expansion and handling dependencies between different tasks, making it suitable for visual multi-task models. MoE can be combined with various types of tokens to achieve better learning performance and has been applied in computer vision and natural language processing, showing significant potential, especially in large language models (LLMs). It also enhances the understanding of model behaviors. MoE is an advanced technique that enhances LLM performance andMoE is a technique that enhances LLM performance.\", \"created_at\": \"2025-08-15 16:36:35\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Is On-Device AI Broken and Exploitable? Assessing the Trust and Ethics in Small Language Models\", \"entity2\": \"MobileAIBench: Benchmarking LLMs and LMMs for On-Device Use Cases\", \"description\": \"Both entries are concerned with on-device AI and language models. The first discusses the trust and ethics of small language models on-device, while the second benchmarks LLMs and LMMs for on-device use cases, indicating a shared focus on the practical application and implications of AI on devices.\", \"created_at\": \"2025-08-15 17:12:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Encoder\", \"entity2\": \"Figure 1\", \"description\": \"Figure 1 depicts the encoder as the left half of the Transformer model architecture.\", \"created_at\": \"2025-08-15 14:53:04\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Device Sensors and Private Data\", \"entity2\": \"Federated Learning\", \"description\": \"Federated Learning is particularly relevant for handling the unprecedented amount of private data collected by device sensors, addressing the challenges associated with its private nature.\", \"created_at\": \"2025-08-15 17:42:33\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Abstract\", \"entity2\": \"Attention Mechanisms\", \"description\": \"The abstract mentions attention mechanisms as a key component of both existing models and the proposed Transformer.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"AI systems\", \"entity2\": \"model interpretability\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Decoder\", \"entity2\": \"Figure 1\", \"description\": \"Figure 1 depicts the decoder as the right half of the Transformer model architecture.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"model interpretability\", \"entity2\": \"robust and transparent AI systems\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Communication costs\", \"entity2\": \"Federated Learning\", \"description\": \"Federated Learning aims to address the constraint of communication costs.\", \"created_at\": \"2025-08-15 15:04:45\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"FederatedAveraging algorithm\", \"entity2\": \"training on decentralized data from mobile devices\", \"description\": \"The FederatedAveraging algorithm is proposed as a solution for training on decentralized data from mobile devices.\", \"created_at\": \"2025-08-15 15:00:16\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"description\": \"Both entities are related to learning systems, with one focusing on deep RL and the other on multi-agent environments.\", \"created_at\": \"2025-08-15 15:44:26\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Communication-Efficient Learning of Deep Networks\", \"entity2\": \"Federated learning: Strategies for improving communication efficiency\", \"description\": \"Federated learning strategies are directly relevant to improving communication efficiency in deep networks.\", \"created_at\": \"2025-08-15 15:08:43\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"federated learning\", \"entity2\": \"heterogeneity\", \"description\": \"Heterogeneity is identified as a significant challenge within the field of federated learning.\", \"created_at\": \"2025-08-15 15:36:55\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Communication-Efficient Learning of Deep Networks\", \"entity2\": \"Large scale distributed deep networks\", \"description\": \"The paper 'Large scale distributed deep networks' is relevant to 'Communication-Efficient Learning of Deep Networks' because distributed deep networks often require efficient communication strategies.\", \"created_at\": \"2025-08-15 15:06:41\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"communication overhead\", \"entity2\": \"federated learning\", \"description\": \"Communication overhead is identified as a significant challenge in federated learning.\", \"created_at\": \"2025-08-15 15:36:55\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"AI systems\", \"entity2\": \"MoE\", \"description\": \"MoE opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:13:53\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 2\\n\\nWe term this decentralized approach Federated Learning. We present a practical method for the federated learning of deep networks based on iterative model averaging, and conduct an extensive empirical evaluation, considering five different model architectures and four datasets. These experiments demonstrate the approach is robust to the unbalanced and non-IID data distributions that are a defining characteristic of this setting. Communication costs are the principal constraint, and we show a reduction in required communication rounds by [math: 1 0 { - } 1 0 0 \\\\times] as compared to synchronized stochastic gradient descent. # 1 Introduction Increasingly, phones and tablets are the primary computing devices for many people [30, 2]. The powerful sensors on these devices (including cameras, microphones, and GPS), combined with the fact they are frequently carried, means they have access to an unprecedented amount of data, much of it private in nature.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 151\\n\\noves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. (b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 2\\n\\nWe term this decentralized approach Federated Learning. We present a practical method for the federated learning of deep networks based on iterative model averaging, and conduct an extensive empirical evaluation, considering five different model architectures and four datasets. These experiments demonstrate the approach is robust to the unbalanced and non-IID data distributions that are a defining characteristic of this setting. Communication costs are the principal constraint, and we show a reduction in required communication rounds by $1 0 { - } 1 0 0 \\\\\\\\times$ as compared to synchronized stochastic gradient descent. # 1 Introduction Increasingly, phones and tablets are the primary computing devices for many people [30, 2]. The powerful sensors on these devices (including cameras, microphones, and GPS), combined with the fact they are frequently carried, means they have access to an unprecedented amount of data, much of it private in nature.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 83\\n\\natile training loss behavior across all $E$ values, with several lines showing fluctuations and less clear convergence patterns. The caption explicitly states that different learning rates and y-axis scales are used due to the pathological nature of the Non-IID MNIST dataset. The visual hierarchy is established by the titles, axis labels, legends, and the distinct lines representing different experimental parameters, allowing for a direct comparison of training performance under varying local epoch counts and data distribution assumptions. The functional purpose of this figure is to demonstrate how the number of local epochs ($E$) influences the training loss of a CNN in federated learning settings, particularly highlighting the impact of data distribution (IID vs. Non-IID). The choice of a logarithmic scale for the y-axis is crucial for visualizing the significant changes in loss, especially in the early stages of training and for comparing convergence rates across different $E$ values.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 274\\n\\nA fusion strategy blends the output of LLM and SLM synergistically. Xu et al. [397] introduces a split learning system for LLM agents in 6G networks, optimizing mobile device and cloud server collaboration. Mobile devices operate lightweight SLMs with 0–10B parameters for real-time tasks, while cloud servers handle larger LLMs with over 10B parameters for complex reasoning and planning. This setup allows efficient local task management on mobile devices and offloads heavy operations to cloud servers. The system’s architecture features three modules—perception, grounding, and alignment—facilitating effective communication to meet the sophisticated needs of 6G networks. Besides these frameworks, more specific models are proposed to facilitate the cloud-edge synergy. A common strategy is to use SLM’s fast decoding ability.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 7.7868, + "rag_initialization_seconds": 4.7358, + "query_execution_seconds": 3.0509, + "start_timestamp": "2025-08-15T20:17:03.548217", + "end_timestamp": "2025-08-15T20:17:11.334978" + }, + "metadata": { + "saved_at": "2025-08-15T20:17:11.334977", + "file_path": "retrieval_logs\\retrieval_20250815_201711_334_mix_k12_ck5_Your_task_is_to_architect_a_next-generation_decent.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_204345_738_mix_k12_ck5_Your_task_is_to_architect_a_next-generation_decent.json b/retrieval_logs/retrieval_20250815_204345_738_mix_k12_ck5_Your_task_is_to_architect_a_next-generation_decent.json new file mode 100644 index 0000000000000000000000000000000000000000..97e81a9bb02d4698d8793613deaf7233d5d2262a --- /dev/null +++ b/retrieval_logs/retrieval_20250815_204345_738_mix_k12_ck5_Your_task_is_to_architect_a_next-generation_decent.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T20:43:45.738057", + "query": "\nYour task is to architect a next-generation, decentralized AI ecosystem for on-device intelligence. Your design must be a principled integration of concepts from all the provided research papers.\nDescribe how you would combine:\nThe decentralized training paradigm from the Federated Learning paper.\nThe on-device efficiency and architecture of Small Language Models (SLMs).\nThe Mixture-of-Experts (MoE) architecture to further enhance the on-device SLMs.\nThe reasoning and tool-use capabilities of the ReAct framework.\nThe parallel processing principles from the Transformer ('Attention Is All You Need') as the base architecture for the SLMs.\nExplain how these components would interact to create a system that is private, efficient, and highly capable. Finally, identify the single biggest challenge this integrated system would face.\"\n\n ", + "query_mode": "mix", + "top_k": 12, + "chunk_top_k": 5, + "text_length": 27584, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Figure 1\", \"type\": \"results\", \"description\": \"Figure 1 illustrates the loss on the full MNIST training set for models generated by averaging parameters of two models, w and w', using a specific formula for 50 evenly spaced values of theta. The models w and w' were trained using SGD on different small datasets.Figure 1 presents a multifaceted view of various concepts and processes. It illustrates the comparison of four prompting methods—Standard, Chain-of-thought (CoT, Reason Only), Act-only, and ReAct (Reason+Act)—in solving a HotpotQA question, and also compares Act-only and ReAct prompting in solving an AlfWorld game, showcasing task-solving trajectories generated by the model (Act, Thought) and the environment (Obs), while omitting in-context examples. Additionally, Figure 1 demonstrates the development of various small language models (SLMs) through a horizontal timeline segmented by years and quarters, with different SLMs branching off at their respective release points. The figure also serves to illustrate the Transformer model architecture, including its encoder and decoder halves. Furthermore, Figure 1 depicts the training loss behavior across different values of E (number of local epochs) in a federated learning context, specifically highlighting fluctuations and less clear convergence patterns when using the Non-IID MNIST dataset, employing different learning rates and y-axis scales for comparison. It also demonstrates the LoRA (Low-Rank Adaptation) approach, which optimizes rank decomposition matrices A and B while keeping pre-trained weights frozen. In a related context, Figure 1 illustrates the loss on the full MNIST training set for models generated by averaging parameters of two models, w and w', which were trained using SGD on different small datasets, with this parameter averaging shown to significantly reduce loss on the full training set compared to models trained on individual subsets, using a shared starting model for each round of FedAvg. Finally, Figure 1 also illustrates the overall organization of the paper.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Is On-Device AI Broken and Exploitable? Assessing the Trust and Ethics in Small Language Models\", \"type\": \"discussion\", \"description\": \"This work discusses the potential vulnerabilities, trust, and ethical considerations related to on-device AI, specifically focusing on small language models.\", \"created_at\": \"2025-08-15 17:12:41\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"MobileAIBench: Benchmarking LLMs and LMMs for On-Device Use Cases\", \"type\": \"methodology\", \"description\": \"This is a benchmark designed for evaluating Large Language Models (LLMs) and Large Multimodal Models (LMMs) in the context of on-device applications.\", \"created_at\": \"2025-08-15 17:12:41\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Device Sensors and Private Data\", \"type\": \"connection\", \"description\": \"Powerful sensors on devices (including cameras, microphones, and GPS), combined with the fact they are frequently carried, means they have access to an unprecedented amount of data, much of it private in nature.\", \"created_at\": \"2025-08-15 17:42:32\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Federated Learning\", \"type\": \"methodology\", \"description\": \"A decentralized approach for learning deep networks, presented as a practical method based on iterative model averaging.Federated Learning is a decentralized machine learning approach that enables collective learning from distributed data without centralizing it, allowing multiple clients to effectively integrate their data while prioritizing user privacy and data security. In this methodology, individual devices, such as mobile phones, act as clients that train on their local datasets. These clients then communicate only their computed model updates to a central server, rather than sharing the raw training data itself. This process is particularly effective for problems with decentralized data and aims to train deep neural networks while minimizing communication rounds. By decoupling model training from direct access to raw data, Federated Learning significantly enhances privacy and security by reducing the potential attack surface on devices. Optimization problems within this framework are specifically termed federated optimization. Furthermore, Federated Learning can be integrated with secure multiparty computation and differential privacy techniques to further bolster its privacy and security features. A major challenge in federated learning is data heterogeneity, which can harm model learning performance and can manifest in two ways: clients sharing the same conditional distribution but having different marginal distributions, or the opposite scenario. Federated Learning is also a learning paradigm that is related to Mixture-of-Experts.\", \"created_at\": \"2025-08-15 17:42:03\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"AI systems\", \"type\": \"discussion\", \"description\": \"AI systems can be designed to be more robust and transparent by leveraging the interpretability offered by Mixture of Experts (MoE) models.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"model interpretability\", \"type\": \"discussion\", \"description\": \"Model interpretability is an opportunity offered by Mixture of Experts (MoE) models, achieved by learning intrinsic allocation mechanisms. This process enhances the understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems. Furthermore, model interpretability is enhanced by the combination of reasoning and acting, which allows humans to distinguish between internal knowledge and external environments.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"robust and transparent AI systems\", \"type\": \"possible enhancements\", \"description\": \"Designing more robust and transparent AI systems is an avenue opened by the interpretability of MoE models.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Communication costs\", \"type\": \"methodology\", \"description\": \"Communication costs are identified as the principal constraint in the federated learning setting.\", \"created_at\": \"2025-08-15 15:04:36\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"FederatedAveraging algorithm\", \"type\": \"methodology\", \"description\": \"The FederatedAveraging algorithm combines local stochastic gradient descent (SGD) on each client with a server that performs model averaging.\", \"created_at\": \"2025-08-15 15:00:09\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"training on decentralized data from mobile devices\", \"type\": \"abstract\", \"description\": \"The problem of training on decentralized data from mobile devices is identified as an important research direction.\", \"created_at\": \"2025-08-15 15:00:09\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Abstract\", \"type\": \"abstract\", \"description\": \"Modern mobile devices have access to a wealth of data suitable for learning models, which in turn can greatly improve the user experience on the device. For example, language models can improve speech recognition and text entry, and image models can automatically select good photos. However, this rich data is often privacy sensitive, large in quantity, or both, which may preclude logging to the data center and training there using conventional approaches. We advocate an alternative that leaves the training data distributed on the mobile devices, and learns a shared model by aggregating locally-computed updates. We term this decentralized approach Federated Learning.The abstract describes the dominant sequence transduction models as complex recurrent or convolutional neural networks with an encoder and decoder, often connected by an attention mechanism. It proposes a new, simpler network architecture called the Transformer, which relies solely on attention mechanisms and eliminates recurrence and convolutions.\", \"created_at\": \"2025-08-15 14:58:45\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"type\": \"abstract\", \"description\": \"This abstract discusses the use of mixtures of experts to unlock parameter scaling for deep reinforcement learning.This is a citation for a paper discussing mixtures of experts and parameter scaling in deep RL.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems and scheduling for behavior acquisition in multi-agent environments.This methodology describes a modular learning system and scheduling for behavior acquisition in a multi-agent environment.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Communication-Efficient Learning of Deep Networks\", \"type\": \"abstract\", \"description\": \"Communication-Efficient Learning of Deep Networks is a research document that investigates a machine learning problem focused on deep networks and communication efficiency. The research explores methods for optimizing learning processes by increasing computation on each client between communication rounds, contrasting these with existing approaches and the federated optimization setting. The document defines and explains a loss function for this machine learning problem, including its reformulation for a scenario with K clients where data is partitioned, and touches upon the expectation of the loss function when data is distributed uniformly at random among clients. The study specifically discusses the behavior of parameterized neural networks (NNs) and the effectiveness of parameter averaging in federated learning. The described method for communication-efficient learning of deep networks involves a fixed set of K clients, each possessing a local dataset. In each round, a random fraction C of clients is selected, the global algorithm state is transmitted to them, and these clients perform local computation based on the global state and their local data. Subsequently, updates are sent back to the server, which then updates its global state, and the process iterates. This method is applicable to non-convex neural network objectives and any finite-sum objective of the form min_w f(w) = (1/n) * sum(f_i(w)). The selection of a fraction of clients is implemented for efficiency, as experimental results indicate diminishing returns when involving a larger number of clients. The document also references techniques for privacy and secure multi-party computation. Furthermore, the research highlights the performance of FedAvg compared to SGD and demonstrates the effectiveness of their approach on a large-scale next-word prediction task. The document reports the number of communication rounds required to reach a specific test-set accuracy in deep networks, detailing the process of constructing learning curves for various parameter settings, optimizing eta, and ensuring monotonic improvement by selecting the best test-set accuracy achieved. The document also discusses the impact of hyperparameters like local epochs and learning rate on model generalization and performance.This document discusses communication-efficient learning of deep networks, focusing on the impact of local epochs on training loss and convergence.This document discusses communication-efficient learning of deep networks, focusing on the impact of local epochs on training loss and convergence.\", \"created_at\": \"2025-08-15 17:30:47\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Federated learning: Strategies for improving communication efficiency\", \"type\": \"methodology\", \"description\": \"This refers to strategies for improving communication efficiency in federated learning.\", \"created_at\": \"2025-08-15 15:08:37\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"federated learning\", \"type\": \"methodology\", \"description\": \"Federated learning is a machine learning paradigm that offers practical privacy benefits by addressing the challenge of data exchange without compromising user privacy and ensuring data security. This approach involves training multiple local models on different servers and aggregating their parameters to update a global model, leveraging distributed data and computational resources. Federated learning is a context in which the empirical performance of various training strategies can be understood through visualizations. Furthermore, it is a learning paradigm where Mixture of Experts (MoE) models can be used to handle heterogeneous data distributions across clients, and MoE-based algorithms can be applied within the federated learning framework. However, federated learning faces challenges such as heterogeneity and communication overhead.\", \"created_at\": \"2025-08-15 15:42:41\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"heterogeneity\", \"type\": \"discussion\", \"description\": \"Heterogeneity is discussed as a significant challenge in federated learning.\", \"created_at\": \"2025-08-15 15:36:45\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Large scale distributed deep networks\", \"type\": \"methodology\", \"description\": \"This is a title of a paper that discusses large-scale distributed deep networks.\", \"created_at\": \"2025-08-15 15:06:41\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"communication overhead\", \"type\": \"discussion\", \"description\": \"Communication overhead is a significant challenge in federated learning, where each round of communication between decentralized servers incurs substantial costs.The approach in [138] aims to reduce communication overhead by aggregating expert models.\", \"created_at\": \"2025-08-15 15:36:45\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"MoE\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning methodology and model design that enhances performance, generalization ability, and computational efficiency, particularly for complex and diverse tasks. MoE operates on a \\\"divide and conquer\\\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This framework allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. MoE leverages specialized \\\"experts\\\" for different tasks or data types, providing a scalable and flexible framework for tackling complex, multifaceted datasets and handling diverse knowledge domains without proportionally increasing computational costs. Expert networks can operate independently and are often integrated into a single network model by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers or CNN layers, with MoE layers, demonstrating high flexibility and broad applicability. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible Natural Language Generation (NLG) systems. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. MoE can alleviate problems in High-Value Content Learning (HVCL) such as known task boundaries and increased computation cost by leveraging multiple experts. MoE is also introduced into the decoder to address the issue of static feature decoding in different task decoders due to shared decoding parameters, which leads to insufficient distinction in task-specific features. MoE decomposes backbone features into task-agnostic features from different aspects, making the decoding process of task-specific features more fine-grained. MoE introduces shared expert modules, domain expert modules, and task expert modules, which learn cross-domain and cross-task common knowledge, domain-specific user preferences, and task-specific user preferences, respectively. This enables models to capture user preferences from multiple perspectives and handle complex dependencies between domains and tasks, allowing for flexible model expansion and handling dependencies between different tasks, making it suitable for visual multi-task models. MoE can be combined with various types of tokens to achieve better learning performance and has been applied in computer vision and natural language processing, showing significant potential, especially in large language models (LLMs). It also enhances the understanding of model behaviors. MoE is an advanced technique that enhances LLM performance andMoE is a technique that enhances LLM performance.\", \"created_at\": \"2025-08-15 16:36:35\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Is On-Device AI Broken and Exploitable? Assessing the Trust and Ethics in Small Language Models\", \"entity2\": \"MobileAIBench: Benchmarking LLMs and LMMs for On-Device Use Cases\", \"description\": \"Both entries are concerned with on-device AI and language models. The first discusses the trust and ethics of small language models on-device, while the second benchmarks LLMs and LMMs for on-device use cases, indicating a shared focus on the practical application and implications of AI on devices.\", \"created_at\": \"2025-08-15 17:12:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Encoder\", \"entity2\": \"Figure 1\", \"description\": \"Figure 1 depicts the encoder as the left half of the Transformer model architecture.\", \"created_at\": \"2025-08-15 14:53:04\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Device Sensors and Private Data\", \"entity2\": \"Federated Learning\", \"description\": \"Federated Learning is particularly relevant for handling the unprecedented amount of private data collected by device sensors, addressing the challenges associated with its private nature.\", \"created_at\": \"2025-08-15 17:42:33\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Abstract\", \"entity2\": \"Attention Mechanisms\", \"description\": \"The abstract mentions attention mechanisms as a key component of both existing models and the proposed Transformer.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"AI systems\", \"entity2\": \"model interpretability\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Decoder\", \"entity2\": \"Figure 1\", \"description\": \"Figure 1 depicts the decoder as the right half of the Transformer model architecture.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"model interpretability\", \"entity2\": \"robust and transparent AI systems\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Communication costs\", \"entity2\": \"Federated Learning\", \"description\": \"Federated Learning aims to address the constraint of communication costs.\", \"created_at\": \"2025-08-15 15:04:45\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"FederatedAveraging algorithm\", \"entity2\": \"training on decentralized data from mobile devices\", \"description\": \"The FederatedAveraging algorithm is proposed as a solution for training on decentralized data from mobile devices.\", \"created_at\": \"2025-08-15 15:00:16\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"description\": \"Both entities are related to learning systems, with one focusing on deep RL and the other on multi-agent environments.\", \"created_at\": \"2025-08-15 15:44:26\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Communication-Efficient Learning of Deep Networks\", \"entity2\": \"Federated learning: Strategies for improving communication efficiency\", \"description\": \"Federated learning strategies are directly relevant to improving communication efficiency in deep networks.\", \"created_at\": \"2025-08-15 15:08:43\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"federated learning\", \"entity2\": \"heterogeneity\", \"description\": \"Heterogeneity is identified as a significant challenge within the field of federated learning.\", \"created_at\": \"2025-08-15 15:36:55\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Communication-Efficient Learning of Deep Networks\", \"entity2\": \"Large scale distributed deep networks\", \"description\": \"The paper 'Large scale distributed deep networks' is relevant to 'Communication-Efficient Learning of Deep Networks' because distributed deep networks often require efficient communication strategies.\", \"created_at\": \"2025-08-15 15:06:41\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"communication overhead\", \"entity2\": \"federated learning\", \"description\": \"Communication overhead is identified as a significant challenge in federated learning.\", \"created_at\": \"2025-08-15 15:36:55\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"AI systems\", \"entity2\": \"MoE\", \"description\": \"MoE opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:13:53\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 2\\n\\nWe term this decentralized approach Federated Learning. We present a practical method for the federated learning of deep networks based on iterative model averaging, and conduct an extensive empirical evaluation, considering five different model architectures and four datasets. These experiments demonstrate the approach is robust to the unbalanced and non-IID data distributions that are a defining characteristic of this setting. Communication costs are the principal constraint, and we show a reduction in required communication rounds by [math: 1 0 { - } 1 0 0 \\\\times] as compared to synchronized stochastic gradient descent. # 1 Introduction Increasingly, phones and tablets are the primary computing devices for many people [30, 2]. The powerful sensors on these devices (including cameras, microphones, and GPS), combined with the fact they are frequently carried, means they have access to an unprecedented amount of data, much of it private in nature.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 151\\n\\noves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. (b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 2\\n\\nWe term this decentralized approach Federated Learning. We present a practical method for the federated learning of deep networks based on iterative model averaging, and conduct an extensive empirical evaluation, considering five different model architectures and four datasets. These experiments demonstrate the approach is robust to the unbalanced and non-IID data distributions that are a defining characteristic of this setting. Communication costs are the principal constraint, and we show a reduction in required communication rounds by $1 0 { - } 1 0 0 \\\\\\\\times$ as compared to synchronized stochastic gradient descent. # 1 Introduction Increasingly, phones and tablets are the primary computing devices for many people [30, 2]. The powerful sensors on these devices (including cameras, microphones, and GPS), combined with the fact they are frequently carried, means they have access to an unprecedented amount of data, much of it private in nature.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 83\\n\\natile training loss behavior across all $E$ values, with several lines showing fluctuations and less clear convergence patterns. The caption explicitly states that different learning rates and y-axis scales are used due to the pathological nature of the Non-IID MNIST dataset. The visual hierarchy is established by the titles, axis labels, legends, and the distinct lines representing different experimental parameters, allowing for a direct comparison of training performance under varying local epoch counts and data distribution assumptions. The functional purpose of this figure is to demonstrate how the number of local epochs ($E$) influences the training loss of a CNN in federated learning settings, particularly highlighting the impact of data distribution (IID vs. Non-IID). The choice of a logarithmic scale for the y-axis is crucial for visualizing the significant changes in loss, especially in the early stages of training and for comparing convergence rates across different $E$ values.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 274\\n\\nA fusion strategy blends the output of LLM and SLM synergistically. Xu et al. [397] introduces a split learning system for LLM agents in 6G networks, optimizing mobile device and cloud server collaboration. Mobile devices operate lightweight SLMs with 0–10B parameters for real-time tasks, while cloud servers handle larger LLMs with over 10B parameters for complex reasoning and planning. This setup allows efficient local task management on mobile devices and offloads heavy operations to cloud servers. The system’s architecture features three modules—perception, grounding, and alignment—facilitating effective communication to meet the sophisticated needs of 6G networks. Besides these frameworks, more specific models are proposed to facilitate the cloud-edge synergy. A common strategy is to use SLM’s fast decoding ability.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.9169, + "rag_initialization_seconds": 4.6271, + "query_execution_seconds": 1.2898, + "start_timestamp": "2025-08-15T20:43:39.820144", + "end_timestamp": "2025-08-15T20:43:45.737057" + }, + "metadata": { + "saved_at": "2025-08-15T20:43:45.738057", + "file_path": "retrieval_logs\\retrieval_20250815_204345_738_mix_k12_ck5_Your_task_is_to_architect_a_next-generation_decent.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_204620_637_mix_k12_ck5_Your_task_is_to_architect_a_next-generation_decent.json b/retrieval_logs/retrieval_20250815_204620_637_mix_k12_ck5_Your_task_is_to_architect_a_next-generation_decent.json new file mode 100644 index 0000000000000000000000000000000000000000..6b50b1638ff15d0f8d5272865480132727d62f83 --- /dev/null +++ b/retrieval_logs/retrieval_20250815_204620_637_mix_k12_ck5_Your_task_is_to_architect_a_next-generation_decent.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T20:46:20.637694", + "query": "\nYour task is to architect a next-generation, decentralized AI ecosystem for on-device intelligence. Your design must be a principled integration of concepts from all the provided research papers.\nDescribe how you would combine:\nThe decentralized training paradigm from the Federated Learning paper.\nThe on-device efficiency and architecture of Small Language Models (SLMs).\nThe Mixture-of-Experts (MoE) architecture to further enhance the on-device SLMs.\nThe reasoning and tool-use capabilities of the ReAct framework.\nThe parallel processing principles from the Transformer ('Attention Is All You Need') as the base architecture for the SLMs.\nExplain how these components would interact to create a system that is private, efficient, and highly capable. Finally, identify the single biggest challenge this integrated system would face.\"\n\n ", + "query_mode": "mix", + "top_k": 12, + "chunk_top_k": 5, + "text_length": 27584, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Figure 1\", \"type\": \"results\", \"description\": \"Figure 1 illustrates the loss on the full MNIST training set for models generated by averaging parameters of two models, w and w', using a specific formula for 50 evenly spaced values of theta. The models w and w' were trained using SGD on different small datasets.Figure 1 presents a multifaceted view of various concepts and processes. It illustrates the comparison of four prompting methods—Standard, Chain-of-thought (CoT, Reason Only), Act-only, and ReAct (Reason+Act)—in solving a HotpotQA question, and also compares Act-only and ReAct prompting in solving an AlfWorld game, showcasing task-solving trajectories generated by the model (Act, Thought) and the environment (Obs), while omitting in-context examples. Additionally, Figure 1 demonstrates the development of various small language models (SLMs) through a horizontal timeline segmented by years and quarters, with different SLMs branching off at their respective release points. The figure also serves to illustrate the Transformer model architecture, including its encoder and decoder halves. Furthermore, Figure 1 depicts the training loss behavior across different values of E (number of local epochs) in a federated learning context, specifically highlighting fluctuations and less clear convergence patterns when using the Non-IID MNIST dataset, employing different learning rates and y-axis scales for comparison. It also demonstrates the LoRA (Low-Rank Adaptation) approach, which optimizes rank decomposition matrices A and B while keeping pre-trained weights frozen. In a related context, Figure 1 illustrates the loss on the full MNIST training set for models generated by averaging parameters of two models, w and w', which were trained using SGD on different small datasets, with this parameter averaging shown to significantly reduce loss on the full training set compared to models trained on individual subsets, using a shared starting model for each round of FedAvg. Finally, Figure 1 also illustrates the overall organization of the paper.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Is On-Device AI Broken and Exploitable? Assessing the Trust and Ethics in Small Language Models\", \"type\": \"discussion\", \"description\": \"This work discusses the potential vulnerabilities, trust, and ethical considerations related to on-device AI, specifically focusing on small language models.\", \"created_at\": \"2025-08-15 17:12:41\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"MobileAIBench: Benchmarking LLMs and LMMs for On-Device Use Cases\", \"type\": \"methodology\", \"description\": \"This is a benchmark designed for evaluating Large Language Models (LLMs) and Large Multimodal Models (LMMs) in the context of on-device applications.\", \"created_at\": \"2025-08-15 17:12:41\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Device Sensors and Private Data\", \"type\": \"connection\", \"description\": \"Powerful sensors on devices (including cameras, microphones, and GPS), combined with the fact they are frequently carried, means they have access to an unprecedented amount of data, much of it private in nature.\", \"created_at\": \"2025-08-15 17:42:32\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Federated Learning\", \"type\": \"methodology\", \"description\": \"A decentralized approach for learning deep networks, presented as a practical method based on iterative model averaging.Federated Learning is a decentralized machine learning approach that enables collective learning from distributed data without centralizing it, allowing multiple clients to effectively integrate their data while prioritizing user privacy and data security. In this methodology, individual devices, such as mobile phones, act as clients that train on their local datasets. These clients then communicate only their computed model updates to a central server, rather than sharing the raw training data itself. This process is particularly effective for problems with decentralized data and aims to train deep neural networks while minimizing communication rounds. By decoupling model training from direct access to raw data, Federated Learning significantly enhances privacy and security by reducing the potential attack surface on devices. Optimization problems within this framework are specifically termed federated optimization. Furthermore, Federated Learning can be integrated with secure multiparty computation and differential privacy techniques to further bolster its privacy and security features. A major challenge in federated learning is data heterogeneity, which can harm model learning performance and can manifest in two ways: clients sharing the same conditional distribution but having different marginal distributions, or the opposite scenario. Federated Learning is also a learning paradigm that is related to Mixture-of-Experts.\", \"created_at\": \"2025-08-15 17:42:03\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"AI systems\", \"type\": \"discussion\", \"description\": \"AI systems can be designed to be more robust and transparent by leveraging the interpretability offered by Mixture of Experts (MoE) models.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"model interpretability\", \"type\": \"discussion\", \"description\": \"Model interpretability is an opportunity offered by Mixture of Experts (MoE) models, achieved by learning intrinsic allocation mechanisms. This process enhances the understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems. Furthermore, model interpretability is enhanced by the combination of reasoning and acting, which allows humans to distinguish between internal knowledge and external environments.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"robust and transparent AI systems\", \"type\": \"possible enhancements\", \"description\": \"Designing more robust and transparent AI systems is an avenue opened by the interpretability of MoE models.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Communication costs\", \"type\": \"methodology\", \"description\": \"Communication costs are identified as the principal constraint in the federated learning setting.\", \"created_at\": \"2025-08-15 15:04:36\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"FederatedAveraging algorithm\", \"type\": \"methodology\", \"description\": \"The FederatedAveraging algorithm combines local stochastic gradient descent (SGD) on each client with a server that performs model averaging.\", \"created_at\": \"2025-08-15 15:00:09\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"training on decentralized data from mobile devices\", \"type\": \"abstract\", \"description\": \"The problem of training on decentralized data from mobile devices is identified as an important research direction.\", \"created_at\": \"2025-08-15 15:00:09\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Abstract\", \"type\": \"abstract\", \"description\": \"Modern mobile devices have access to a wealth of data suitable for learning models, which in turn can greatly improve the user experience on the device. For example, language models can improve speech recognition and text entry, and image models can automatically select good photos. However, this rich data is often privacy sensitive, large in quantity, or both, which may preclude logging to the data center and training there using conventional approaches. We advocate an alternative that leaves the training data distributed on the mobile devices, and learns a shared model by aggregating locally-computed updates. We term this decentralized approach Federated Learning.The abstract describes the dominant sequence transduction models as complex recurrent or convolutional neural networks with an encoder and decoder, often connected by an attention mechanism. It proposes a new, simpler network architecture called the Transformer, which relies solely on attention mechanisms and eliminates recurrence and convolutions.\", \"created_at\": \"2025-08-15 14:58:45\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"type\": \"abstract\", \"description\": \"This abstract discusses the use of mixtures of experts to unlock parameter scaling for deep reinforcement learning.This is a citation for a paper discussing mixtures of experts and parameter scaling in deep RL.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems and scheduling for behavior acquisition in multi-agent environments.This methodology describes a modular learning system and scheduling for behavior acquisition in a multi-agent environment.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Communication-Efficient Learning of Deep Networks\", \"type\": \"abstract\", \"description\": \"Communication-Efficient Learning of Deep Networks is a research document that investigates a machine learning problem focused on deep networks and communication efficiency. The research explores methods for optimizing learning processes by increasing computation on each client between communication rounds, contrasting these with existing approaches and the federated optimization setting. The document defines and explains a loss function for this machine learning problem, including its reformulation for a scenario with K clients where data is partitioned, and touches upon the expectation of the loss function when data is distributed uniformly at random among clients. The study specifically discusses the behavior of parameterized neural networks (NNs) and the effectiveness of parameter averaging in federated learning. The described method for communication-efficient learning of deep networks involves a fixed set of K clients, each possessing a local dataset. In each round, a random fraction C of clients is selected, the global algorithm state is transmitted to them, and these clients perform local computation based on the global state and their local data. Subsequently, updates are sent back to the server, which then updates its global state, and the process iterates. This method is applicable to non-convex neural network objectives and any finite-sum objective of the form min_w f(w) = (1/n) * sum(f_i(w)). The selection of a fraction of clients is implemented for efficiency, as experimental results indicate diminishing returns when involving a larger number of clients. The document also references techniques for privacy and secure multi-party computation. Furthermore, the research highlights the performance of FedAvg compared to SGD and demonstrates the effectiveness of their approach on a large-scale next-word prediction task. The document reports the number of communication rounds required to reach a specific test-set accuracy in deep networks, detailing the process of constructing learning curves for various parameter settings, optimizing eta, and ensuring monotonic improvement by selecting the best test-set accuracy achieved. The document also discusses the impact of hyperparameters like local epochs and learning rate on model generalization and performance.This document discusses communication-efficient learning of deep networks, focusing on the impact of local epochs on training loss and convergence.This document discusses communication-efficient learning of deep networks, focusing on the impact of local epochs on training loss and convergence.\", \"created_at\": \"2025-08-15 17:30:47\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Federated learning: Strategies for improving communication efficiency\", \"type\": \"methodology\", \"description\": \"This refers to strategies for improving communication efficiency in federated learning.\", \"created_at\": \"2025-08-15 15:08:37\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"federated learning\", \"type\": \"methodology\", \"description\": \"Federated learning is a machine learning paradigm that offers practical privacy benefits by addressing the challenge of data exchange without compromising user privacy and ensuring data security. This approach involves training multiple local models on different servers and aggregating their parameters to update a global model, leveraging distributed data and computational resources. Federated learning is a context in which the empirical performance of various training strategies can be understood through visualizations. Furthermore, it is a learning paradigm where Mixture of Experts (MoE) models can be used to handle heterogeneous data distributions across clients, and MoE-based algorithms can be applied within the federated learning framework. However, federated learning faces challenges such as heterogeneity and communication overhead.\", \"created_at\": \"2025-08-15 15:42:41\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"heterogeneity\", \"type\": \"discussion\", \"description\": \"Heterogeneity is discussed as a significant challenge in federated learning.\", \"created_at\": \"2025-08-15 15:36:45\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Large scale distributed deep networks\", \"type\": \"methodology\", \"description\": \"This is a title of a paper that discusses large-scale distributed deep networks.\", \"created_at\": \"2025-08-15 15:06:41\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"communication overhead\", \"type\": \"discussion\", \"description\": \"Communication overhead is a significant challenge in federated learning, where each round of communication between decentralized servers incurs substantial costs.The approach in [138] aims to reduce communication overhead by aggregating expert models.\", \"created_at\": \"2025-08-15 15:36:45\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"MoE\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning methodology and model design that enhances performance, generalization ability, and computational efficiency, particularly for complex and diverse tasks. MoE operates on a \\\"divide and conquer\\\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This framework allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. MoE leverages specialized \\\"experts\\\" for different tasks or data types, providing a scalable and flexible framework for tackling complex, multifaceted datasets and handling diverse knowledge domains without proportionally increasing computational costs. Expert networks can operate independently and are often integrated into a single network model by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers or CNN layers, with MoE layers, demonstrating high flexibility and broad applicability. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible Natural Language Generation (NLG) systems. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. MoE can alleviate problems in High-Value Content Learning (HVCL) such as known task boundaries and increased computation cost by leveraging multiple experts. MoE is also introduced into the decoder to address the issue of static feature decoding in different task decoders due to shared decoding parameters, which leads to insufficient distinction in task-specific features. MoE decomposes backbone features into task-agnostic features from different aspects, making the decoding process of task-specific features more fine-grained. MoE introduces shared expert modules, domain expert modules, and task expert modules, which learn cross-domain and cross-task common knowledge, domain-specific user preferences, and task-specific user preferences, respectively. This enables models to capture user preferences from multiple perspectives and handle complex dependencies between domains and tasks, allowing for flexible model expansion and handling dependencies between different tasks, making it suitable for visual multi-task models. MoE can be combined with various types of tokens to achieve better learning performance and has been applied in computer vision and natural language processing, showing significant potential, especially in large language models (LLMs). It also enhances the understanding of model behaviors. MoE is an advanced technique that enhances LLM performance andMoE is a technique that enhances LLM performance.\", \"created_at\": \"2025-08-15 16:36:35\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Is On-Device AI Broken and Exploitable? Assessing the Trust and Ethics in Small Language Models\", \"entity2\": \"MobileAIBench: Benchmarking LLMs and LMMs for On-Device Use Cases\", \"description\": \"Both entries are concerned with on-device AI and language models. The first discusses the trust and ethics of small language models on-device, while the second benchmarks LLMs and LMMs for on-device use cases, indicating a shared focus on the practical application and implications of AI on devices.\", \"created_at\": \"2025-08-15 17:12:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Encoder\", \"entity2\": \"Figure 1\", \"description\": \"Figure 1 depicts the encoder as the left half of the Transformer model architecture.\", \"created_at\": \"2025-08-15 14:53:04\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Device Sensors and Private Data\", \"entity2\": \"Federated Learning\", \"description\": \"Federated Learning is particularly relevant for handling the unprecedented amount of private data collected by device sensors, addressing the challenges associated with its private nature.\", \"created_at\": \"2025-08-15 17:42:33\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Abstract\", \"entity2\": \"Attention Mechanisms\", \"description\": \"The abstract mentions attention mechanisms as a key component of both existing models and the proposed Transformer.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"AI systems\", \"entity2\": \"model interpretability\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Decoder\", \"entity2\": \"Figure 1\", \"description\": \"Figure 1 depicts the decoder as the right half of the Transformer model architecture.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"model interpretability\", \"entity2\": \"robust and transparent AI systems\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Communication costs\", \"entity2\": \"Federated Learning\", \"description\": \"Federated Learning aims to address the constraint of communication costs.\", \"created_at\": \"2025-08-15 15:04:45\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"FederatedAveraging algorithm\", \"entity2\": \"training on decentralized data from mobile devices\", \"description\": \"The FederatedAveraging algorithm is proposed as a solution for training on decentralized data from mobile devices.\", \"created_at\": \"2025-08-15 15:00:16\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"description\": \"Both entities are related to learning systems, with one focusing on deep RL and the other on multi-agent environments.\", \"created_at\": \"2025-08-15 15:44:26\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Communication-Efficient Learning of Deep Networks\", \"entity2\": \"Federated learning: Strategies for improving communication efficiency\", \"description\": \"Federated learning strategies are directly relevant to improving communication efficiency in deep networks.\", \"created_at\": \"2025-08-15 15:08:43\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"federated learning\", \"entity2\": \"heterogeneity\", \"description\": \"Heterogeneity is identified as a significant challenge within the field of federated learning.\", \"created_at\": \"2025-08-15 15:36:55\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Communication-Efficient Learning of Deep Networks\", \"entity2\": \"Large scale distributed deep networks\", \"description\": \"The paper 'Large scale distributed deep networks' is relevant to 'Communication-Efficient Learning of Deep Networks' because distributed deep networks often require efficient communication strategies.\", \"created_at\": \"2025-08-15 15:06:41\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"communication overhead\", \"entity2\": \"federated learning\", \"description\": \"Communication overhead is identified as a significant challenge in federated learning.\", \"created_at\": \"2025-08-15 15:36:55\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"AI systems\", \"entity2\": \"MoE\", \"description\": \"MoE opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:13:53\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 2\\n\\nWe term this decentralized approach Federated Learning. We present a practical method for the federated learning of deep networks based on iterative model averaging, and conduct an extensive empirical evaluation, considering five different model architectures and four datasets. These experiments demonstrate the approach is robust to the unbalanced and non-IID data distributions that are a defining characteristic of this setting. Communication costs are the principal constraint, and we show a reduction in required communication rounds by [math: 1 0 { - } 1 0 0 \\\\times] as compared to synchronized stochastic gradient descent. # 1 Introduction Increasingly, phones and tablets are the primary computing devices for many people [30, 2]. The powerful sensors on these devices (including cameras, microphones, and GPS), combined with the fact they are frequently carried, means they have access to an unprecedented amount of data, much of it private in nature.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 151\\n\\noves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. (b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 2\\n\\nWe term this decentralized approach Federated Learning. We present a practical method for the federated learning of deep networks based on iterative model averaging, and conduct an extensive empirical evaluation, considering five different model architectures and four datasets. These experiments demonstrate the approach is robust to the unbalanced and non-IID data distributions that are a defining characteristic of this setting. Communication costs are the principal constraint, and we show a reduction in required communication rounds by $1 0 { - } 1 0 0 \\\\\\\\times$ as compared to synchronized stochastic gradient descent. # 1 Introduction Increasingly, phones and tablets are the primary computing devices for many people [30, 2]. The powerful sensors on these devices (including cameras, microphones, and GPS), combined with the fact they are frequently carried, means they have access to an unprecedented amount of data, much of it private in nature.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 83\\n\\natile training loss behavior across all $E$ values, with several lines showing fluctuations and less clear convergence patterns. The caption explicitly states that different learning rates and y-axis scales are used due to the pathological nature of the Non-IID MNIST dataset. The visual hierarchy is established by the titles, axis labels, legends, and the distinct lines representing different experimental parameters, allowing for a direct comparison of training performance under varying local epoch counts and data distribution assumptions. The functional purpose of this figure is to demonstrate how the number of local epochs ($E$) influences the training loss of a CNN in federated learning settings, particularly highlighting the impact of data distribution (IID vs. Non-IID). The choice of a logarithmic scale for the y-axis is crucial for visualizing the significant changes in loss, especially in the early stages of training and for comparing convergence rates across different $E$ values.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 274\\n\\nA fusion strategy blends the output of LLM and SLM synergistically. Xu et al. [397] introduces a split learning system for LLM agents in 6G networks, optimizing mobile device and cloud server collaboration. Mobile devices operate lightweight SLMs with 0–10B parameters for real-time tasks, while cloud servers handle larger LLMs with over 10B parameters for complex reasoning and planning. This setup allows efficient local task management on mobile devices and offloads heavy operations to cloud servers. The system’s architecture features three modules—perception, grounding, and alignment—facilitating effective communication to meet the sophisticated needs of 6G networks. Besides these frameworks, more specific models are proposed to facilitate the cloud-edge synergy. A common strategy is to use SLM’s fast decoding ability.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.5868, + "rag_initialization_seconds": 4.4797, + "query_execution_seconds": 1.1072, + "start_timestamp": "2025-08-15T20:46:15.050851", + "end_timestamp": "2025-08-15T20:46:20.637695" + }, + "metadata": { + "saved_at": "2025-08-15T20:46:20.637694", + "file_path": "retrieval_logs\\retrieval_20250815_204620_637_mix_k12_ck5_Your_task_is_to_architect_a_next-generation_decent.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250815_204906_295_mix_k12_ck10_Your_task_is_to_act_as_a_senior_AI_researcher_Base.json b/retrieval_logs/retrieval_20250815_204906_295_mix_k12_ck10_Your_task_is_to_act_as_a_senior_AI_researcher_Base.json new file mode 100644 index 0000000000000000000000000000000000000000..8299e8fddd6f96a66208fad2585e97850ec23e65 --- /dev/null +++ b/retrieval_logs/retrieval_20250815_204906_295_mix_k12_ck10_Your_task_is_to_act_as_a_senior_AI_researcher_Base.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-15T20:49:06.295367", + "query": "\nYour task is to act as a senior AI researcher. Based on the foundational concepts from the provided research papers (MoE, ReAct, Federated Learning, SLMs, and Transformers), propose a novel research project that investigates their intersection in a meaningful way.\nThe goal is not just to build a system that combines these ideas, but to design a project that would scientifically study their synergies and trade-offs.\nYour proposal must be creative, plausible, and grounded in the principles from the papers. Please structure your response as a formal research project proposal with the following sections:\n1. Project Title:\n* Come up with a compelling, memorable name for the project.\n2. Core Idea & Motivation:\n* In one paragraph, explain the central idea of your research project. Why is studying this specific intersection important? What fundamental gap in our understanding would this project address?\n3. Key Research Questions:\n* List at least three specific, unanswered research questions that your project would aim to investigate. These questions should highlight the tensions and potential synergies between the different technologies. For example, how does the sparsity of MoE interact with the communication constraints of Federated Learning?\n4. Proposed Architecture:\n* Describe the hypothetical AI agent or system at the heart of your project. Explain how it integrates:\n* SLMs as the on-device model.\n* Transformer architecture as the foundation.\n* Mixture-of-Experts (MoE) as an internal architectural choice for the SLM.\n* ReAct as the agent's operational logic for reasoning and tool-use.\n* Federated Learning as the training paradigm for these agents across a fleet of devices.\n5. Methodology & Evaluation:\n* Briefly explain how you would conduct this research.\n* What kind of simulated environment or tasks would you use?\n* What key metrics would you measure to answer your research questions? (e.g., communication cost, task success rate, inference latency, a metric for expert specialization).\nYour final output should be a well-structured, compelling research proposal that could plausibly be presented at a top-tier AI conference workshop. Be innovative in how you connect the concepts.\"\n ", + "query_mode": "mix", + "top_k": 12, + "chunk_top_k": 10, + "text_length": 29390, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Figure 3\", \"type\": \"connection\", \"description\": \"Figure 3 presents a multifaceted view of model operations and performance, encompassing several distinct aspects. It illustrates the different types of widely used Mixture-of-Experts (MoE) layers. Figure 3 also demonstrates the scaling effect of prompting and finetuning four methods (Standard, CoT, Act, ReAct) on HotpotQA using PaLM-8/62B, noting that prompting ReAct performs the worst in this scenario due to challenges in learning both reasoning and acting from in-context examples. Additionally, Figure 3 illustrates the attention mechanism within the encoder's self-attention in layer 5 of 6, specifically highlighting how different attention heads focus on the distant dependency of the verb 'making' in the phrase 'making...more difficult'. A line graph within Figure 3 shows the outcomes of a self-reflection process, connecting iterations of self-reflection with the count of identified entity references. Furthermore, Figure 3 includes a comparison of subspace similarity through four heatmaps, with the left two displaying similarity between column vectors of ΔWq and ΔWv for a rank (r) of 8, and the right two offering magnified views of the lower-left triangle of the first two, showing similarity for ranks r=8 and r=64, thereby demonstrating the subspace similarity between Ar=8 and Ar=64, with findings generalizable to other layers. Figure 3 also illustrates the impact of extensive local epochs (large E) between averaging steps on the Shakespeare LSTM, with fixed parameters B=10 and C=0.1 and a constant learning rate η=1.47, indicating that for very large numbers of local epochs, FedAvg can plateau or diverge. Finally, Figure 3 illustrates the growing popularity of SLM releases over time.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"A generalist agent\", \"type\": \"methodology\", \"description\": \"This refers to a methodology or concept related to generalist agents, published in 2022 with a URL provided.\", \"created_at\": \"2025-08-15 16:07:01\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Scratchpads for intermediate computation with language models\", \"type\": \"methodology\", \"description\": \"This refers to a methodology or tool for intermediate computation with language models, published in 2021 with a URL provided.\", \"created_at\": \"2025-08-15 16:07:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"type\": \"abstract\", \"description\": \"This abstract discusses the use of mixtures of experts to unlock parameter scaling for deep reinforcement learning.This is a citation for a paper discussing mixtures of experts and parameter scaling in deep RL.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems and scheduling for behavior acquisition in multi-agent environments.This methodology describes a modular learning system and scheduling for behavior acquisition in a multi-agent environment.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"An alternative model for mixtures of experts\", \"type\": \"methodology\", \"description\": \"This methodology is presented in Advances in neural information processing systems, vol. 7, 1994.\", \"created_at\": \"2025-08-15 15:37:58\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Mixtral of experts\", \"type\": \"methodology\", \"description\": \"Description not available in text.Mixtral of experts is a model discussed in the context of arXiv preprint arXiv:2401.04088.Mixtral of experts, presented by Jiang et al. (2024), is a methodology related to experts in the context of machine learning.\", \"created_at\": \"2025-08-15 17:27:34\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"agents\", \"type\": \"methodology\", \"description\": \"Agents are entities that learn and make decisions in Reinforcement Learning environments.Agents are entities that learn diverse skills to enhance their ability to handle complex tasks.agents are entities that operate within complex environments like ALFWorld and WebShop, requiring them to act over long horizons with sparse rewards and utilize reasoning to explore effectively.\", \"created_at\": \"2025-08-15 16:01:26\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"representation collapse\", \"type\": \"discussion\", \"description\": \"Representation collapse into similar representations limits the generalization ability of agents.\", \"created_at\": \"2025-08-15 15:25:30\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"MoE architecture\", \"type\": \"methodology\", \"description\": \"The MoE (Mixture of Experts) architecture is a structural design in machine learning, particularly prominent in large language models, characterized by the use of specialized \\\"expert\\\" networks dynamically selected by a gating function. This specialization allows individual experts to focus on distinct knowledge domains, thereby enhancing the MoE architecture's overall performance, generalization capabilities, and computational efficiency. The MoE architecture excels at handling diverse knowledge within data, leading to improved algorithm designs and finding applications across various machine learning paradigms, including computer vision and natural language processing. Its flexibility and scalability make it suitable for edge deployment and capacity scaling of large models, and it holds potential for developing unified multi-modal large language models.\\n\\nThe MoE architecture alleviates hardware pressure through sparse activation and a divide-and-conquer strategy, reducing computational costs and enhancing model performance, especially in multi-task, low-resource, and complex reasoning scenarios, while also supporting personalized services. It has been utilized in MENTOR for action generations and explored in reinforcement learning domains like multi-agent RL and imitation learning. The MoE architecture is also leveraged to solve integrated training problems for multiple tasks, overcoming inconsistencies in input and output formats, and has been applied in CLIP-MoE to enhance the CLIP model's capabilities. However, it's important to note that the MoE architecture is a framework that can be integrated with different object detectors, but simply adding different detectors does not guarantee improved model performance and can even have adverse effects due to competition among detectors. Discussions surrounding the MoE architecture often delve into its basic designs, training strategies, synergy with machine learning algorithms, recent theoretical advancements, and how factors like the number of expert networks, MoE layers, and their placement influence performance, efficiency, and stability. The MoE architecture inherently possesses better transparency.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed. However, it incurs significant memory overhead, making it impractical for edge device memory constraints.\", \"created_at\": \"2025-08-15 16:46:35\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"multi-agent RL\", \"type\": \"methodology\", \"description\": \"Multi-agent RL is a domain where the application of MoE has been explored.\", \"created_at\": \"2025-08-15 15:29:47\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Modular learning systems for soccer robot\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems for soccer robots.This methodology focuses on modular learning systems for soccer robots.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"synergy with important machine learning algorithms\", \"type\": \"connection\", \"description\": \"This refers to the harmonious interaction and combined effect of the MoE architecture with significant machine learning algorithms.\", \"created_at\": \"2025-08-15 15:38:50\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Artificial Intelligence\", \"type\": \"abstract\", \"description\": \"Artificial Intelligence (AI) is a transformative force in modern technologies with successes in various domains.\", \"created_at\": \"2025-08-15 15:18:16\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Mixture-of-Experts\", \"type\": \"methodology\", \"description\": \"A technique frequently used in LLMs to enhance SLMs for specific applications.Mixture-of-Experts (MoE) is a paradigm that is being studied theoretically and applied in computer vision and natural language processing. It is related to continual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning.A type of model architecture that is the subject of post-training quantization research.\", \"created_at\": \"2025-08-15 17:21:49\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Mixtures of experts for scaling up neural networks in order execution\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by K. Li, M. Cucuringu, L. Sanchez-Betancourt, and T. Willi, and was presented at the 5th ACM International Conference on AI in Finance in 2024.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Movement primitive learning and generalization: Using mixture density networks\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by Y. Zhou, J. Gao, and T. Asfour, and was published in IEEE Robotics & Automation Magazine in 2020.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Learning multiple collaborative tasks with a mixture of interaction primitives\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by M. Ewerton, G. Neumann, R. Lioutikov, H. B. Amor, J. Peters, and G. Maeda, and was presented at the 2015 IEEE International Conference on Robotics and Automation (ICRA).\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"MixER\", \"type\": \"methodology\", \"description\": \"MixER augments existing contextual meta-learning approaches with the Top-1 MoE architecture. It consists of multiple experts, each corresponding to a meta-model to capture shared knowledge, and a linear gating function that takes context information as input. An unsupervised routing mechanism is designed to optimize MoE-based models.\", \"created_at\": \"2025-08-15 15:20:25\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Top-1 MoE architecture\", \"type\": \"methodology\", \"description\": \"A Top-1 MoE architecture is used, consisting of experts trained for different basic skills and a router responsible for assigning tasks to these experts.This architecture is used to augment existing contextual meta-learning approaches in MixER.\", \"created_at\": \"2025-08-15 15:34:29\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"AI systems\", \"type\": \"discussion\", \"description\": \"AI systems can be designed to be more robust and transparent by leveraging the interpretability offered by Mixture of Experts (MoE) models.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"model interpretability\", \"type\": \"discussion\", \"description\": \"Model interpretability is an opportunity offered by Mixture of Experts (MoE) models, achieved by learning intrinsic allocation mechanisms. This process enhances the understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems. Furthermore, model interpretability is enhanced by the combination of reasoning and acting, which allows humans to distinguish between internal knowledge and external environments.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Figure 3\", \"entity2\": \"ReAct\", \"description\": \"Figure 3 shows that prompting ReAct performs worst among four methods on HotpotQA with PaLM-8/62B due to difficulties in learning reasoning and acting.\", \"created_at\": \"2025-08-15 15:58:30\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"A generalist agent\", \"entity2\": \"Scratchpads for intermediate computation with language models\", \"description\": \"Both are cited as publications related to AI research, suggesting a connection in the field.\", \"created_at\": \"2025-08-15 16:07:03\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Figure 3\", \"entity2\": \"LLM\", \"description\": \"The LLM is used in the process whose results are displayed in Figure 3.\", \"created_at\": \"2025-08-13 23:38:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"description\": \"Both entities are related to learning systems, with one focusing on deep RL and the other on multi-agent environments.\", \"created_at\": \"2025-08-15 15:44:26\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Figure 3\", \"entity2\": \"Figure 6\", \"description\": \"Figure 6 shows how the results presented in Figure 3 generalize to other layers.\", \"created_at\": \"2025-08-13 23:02:54\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"An alternative model for mixtures of experts\", \"entity2\": \"Mixtral of experts\", \"description\": \"Both entities discuss models for mixtures of experts, indicating a shared research area.\", \"created_at\": \"2025-08-15 15:38:09\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Figure 3\", \"entity2\": \"Figure 7\", \"description\": \"Figure 7 shows how the results presented in Figure 3 generalize to other layers.\", \"created_at\": \"2025-08-13 23:03:02\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"agents\", \"entity2\": \"representation collapse\", \"description\": \"Representation collapse limits the generalization ability of agents.\", \"created_at\": \"2025-08-15 15:25:31\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 3\", \"entity2\": \"MoE Layers\", \"description\": \"Figure 3 illustrates the different types of widely used MoE layers.\", \"created_at\": \"2025-08-15 17:38:46\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"MoE architecture\", \"entity2\": \"multi-agent RL\", \"description\": \"The MoE architecture has been explored in multi-agent RL.\", \"created_at\": \"2025-08-15 15:29:58\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Figure 3\", \"entity2\": \"local epochs\", \"description\": \"Figure 3 visually represents the impact of varying the number of local epochs on model performance.\", \"created_at\": \"2025-08-15 15:09:04\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning systems for soccer robot\", \"description\": \"Both entities relate to advancements in AI and learning systems, with the former focusing on deep RL and the latter on robotics.\", \"created_at\": \"2025-08-15 15:44:25\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Ar=64\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows the subspace similarity between Ar=8 and Ar=64.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"MoE architecture\", \"entity2\": \"synergy with important machine learning algorithms\", \"description\": \"The survey highlights the synergy between the MoE architecture and important machine learning algorithms.\", \"created_at\": \"2025-08-15 15:39:11\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Ar=8\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows the subspace similarity between Ar=8 and Ar=64.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Artificial Intelligence\", \"entity2\": \"Mixture-of-Experts\", \"description\": \"Artificial Intelligence is a broad field, and Mixture-of-Experts is a concept within it, as indicated by the context of AI's transformative force and successes.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"4-bit NormalFloat (NF4)\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows that NF4 improves performance.\", \"created_at\": \"2025-08-13 23:07:44\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Mixtures of experts for scaling up neural networks in order execution\", \"entity2\": \"Movement primitive learning and generalization: Using mixture density networks\", \"description\": \"Both methodologies utilize mixture-based approaches for learning and generalization in AI/robotics.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Figure 3\", \"entity2\": \"Shakespeare LSTM\", \"description\": \"Figure 3 specifically shows the experimental results for the Shakespeare LSTM model.\", \"created_at\": \"2025-08-15 15:09:03\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Learning multiple collaborative tasks with a mixture of interaction primitives\", \"entity2\": \"Mixtures of experts for scaling up neural networks in order execution\", \"description\": \"Both methodologies involve mixtures of experts and are related to learning and execution in robotics or AI contexts.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Figure 3\", \"entity2\": \"Standard, CoT, Act, ReAct\", \"description\": \"Figure 3 specifically shows the scaling effect of prompting/finetuning the Standard, CoT, Act, and ReAct methods.\", \"created_at\": \"2025-08-15 17:19:29\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"MixER\", \"entity2\": \"Top-1 MoE architecture\", \"description\": \"MixER augments existing contextual meta-learning approaches with the Top-1 MoE architecture.\", \"created_at\": \"2025-08-15 15:20:29\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Figure 3\", \"entity2\": \"encoder self-attention in layer 5 of 6\", \"description\": \"Figure 3 provides a visual example of the encoder self-attention in layer 5 of 6, specifically demonstrating how it follows long-distance dependencies.\", \"created_at\": \"2025-08-15 15:04:11\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"AI systems\", \"entity2\": \"model interpretability\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Figure 3\", \"entity2\": \"verb making\", \"description\": \"Figure 3 shows that many attention heads in the encoder self-attention attend to the verb ‘making’ to capture long-distance dependencies.\", \"created_at\": \"2025-08-15 15:04:11\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: MOE\\nChunk: 3\\n\\narning paradigms such as continual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning. Additionally, we summarize theoretical studies aimed at understanding MoE and review its applications in computer vision and natural language processing. Finally, we discuss promising future research directions. Index Terms—Mixture-of-Experts, Continual Learning, MetaLearning, Multi-Task Learning, Reinforcement Learning, Federated Learning, Computer Vision, Natural Language Processing # I. INTRODUCTION Artificial Intelligence (AI) has emerged as a transformative force in modern technologies, demonstrating remarkable successes across multiple domains from computer vision [1], [2], [3] and speech recognition [4], [5] to healthcare [6] and autonomous systems [7].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 37\\n\\nFollowing instruction tuning, Uni-MoE is evaluated on a comprehensive and diverse multi-modal dataset. The results indicate that the model significantly reduces performance discrepancies when processing mixed data, improves collaboration efficiency among multiple experts, and enhances generalization capabilities, highlighting the potential of the MoE architecture in developing a unified multi-modal large language model. 3) Task-Level Routing Strategy determines routing based on task IDs, ensuring that different tasks are routed to distinct experts, thereby effectively minimizing interference between tasks. This approach is particularly advantageous for multitask learning. For instance, [44] explores multilingual machine translation tasks, where task boundaries are defined by target languages, language pairs, or unique task IDs. And the experts are selected at the task level according to these boundaries.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: React_paper\\nChunk: 39\\n\\nFurthermore, Figure 2 shows how different methods perform with respect to the number of $\\\\\\\\mathsf { C o T - S C }$ samples used. While two $\\\\\\\\mathrm { R e a c t } + \\\\\\\\mathrm { C o T } - \\\\\\\\mathrm { S C }$ methods are advantageous at one task each, they both significantly and consistently outperform CoT-SC across different number of samples, reaching $\\\\\\\\mathsf { C o T - S C }$ performance with 21 samples using merely 3-5 samples. These results indicate the value of properly combining model internal knowledge and external knowledge for reasoning tasks. ReAct performs best for fine-tuning Figure 3 shows the scaling effect of prompting/finetuning four methods (Standard, CoT, Act, ReAct) on HotpotQA. With PaLM-8/62B, prompting ReAct performs worst among four methods due to the difficulty to learn both reasoning and acting from in-context examples.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: MOE\\nChunk: 5\\n\\nn multimodal data (e.g., text, images, and audio) and exhibit intricate structures (e.g., graphs or hierarchical relationships). This diversity and complexity introduce two significant challenges: (1) the computational cost of training and deploying large models grows exponentially, making it unsustainable for many applications [11], and (2) integrating conflicting or heterogeneous knowledge within a single model becomes increasingly difficult, often leading to unstable training dynamics and suboptimal performance [12]. These challenges underscore the need for more efficient and scalable architectures capable of meeting the growing demands of modern AI tasks. One promising approach to addressing these challenges is the Mixture of Experts (MoE) architecture, which has attracted much attention recently. Originally proposed in [13], [14], MoE adopts a “divide and conquer” strategy that fundamentally differs from traditional dense models.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: MOE\\nChunk: 124\\n\\nConsequently, the last L layers of the model should be replaced with sparse MoE layers. The analysis suggests that both the number of experts and the size of $\\\\mathrm { L }$ are related to the degree of routing, and more does not necessarily mean better performance. To some degree, the base model introduced in [155] shares similarities with the shared expert concept proposed in ViMOE [154]. In CLIP-MoE [156], the MoE architecture is applied to enhance the capabilities of the CLIP model through a method called Diversified Multiplet Upcycling. The authors fine-tune a series of pre-trained CLIP models using multi-stage contrastive learning, extracting expert networks that focus on different aspects of the input data, and integrating these experts into the MoE architecture. Other papers delve deeper into the design of gating functions.\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"content\": \"Source: MOE\\nChunk: 2\\n\\nntion in addressing these challenges, by dynamically selecting and activating the most relevant submodels to process input data. It has been shown that MoEs can significantly improve model performance and efficiency with fewer resources, particularly excelling in handling large-scale, multimodal data. Given the tremendous potential MoE has demonstrated across various domains, it is urgent to provide a comprehensive summary of recent advancements of MoEs in many important fields. Existing surveys on MoE have their limitations, e.g., being outdated or lacking discussion on certain key areas, and we aim to address these gaps. In this paper, we first introduce the basic design of MoE, including gating functions, expert networks, routing mechanisms, training strategies, and system design. We then explore the algorithm design of MoE in important machine learning paradigms such as continual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning.\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"content\": \"Source: MOE\\nChunk: 10\\n\\nhances our understanding of the model behaviors but also opens new avenues for designing more robust and transparent AI systems. Given the rapidly growing research interests in MoE and the huge potentials of MoE in various application domains, there is an urgent need of a comprehensive survey for summarizing and disseminating the recent advances of MoE, in order to elicit escalating attentions and inspire further research ideas in this field. Nevertheless, the early surveys of MoE [203], [204] were published ten years ago and have not incorporated the new development in the area. There is only one new survey [205] that emerged last year, which however 1) emphasized more on the basic designs of MoE and 2) did not provide a broad discussion on the use of MoEs in important machine learning paradigms and application fields such as computer vision. The theory development in MoE has also not been covered.\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"content\": \"Source: React_paper\\nChunk: 71\\n\\nAlfworld: Aligning text and embodied environments for interactive learning. arXiv preprint arXiv:2010.03768, 2020b. Kurt Shuster, Mojtaba Komeili, Leonard Adolphs, Stephen Roller, Arthur Szlam, and Jason Weston. Language models that seek for knowledge: Modular search & generation for dialogue and prompt completion. arXiv preprint arXiv:2203.13224, 2022a. Kurt Shuster, Jing Xu, Mojtaba Komeili, Da Ju, Eric Michael Smith, Stephen Roller, Megan Ung, Moya Chen, Kushal Arora, Joshua Lane, Morteza Behrooz, William Ngan, Spencer Poff, Naman Goyal, Arthur Szlam, Y-Lan Boureau, Melanie Kambadur, and Jason Weston. Blenderbot 3: a deployed conversational agent that continually learns to responsibly engage, 2022b. URL https://arxiv.org/abs/2208.03188. James Thorne, Andreas Vlachos, Christos Christodoulopoulos, and Arpit Mittal. Fever: a large-scale dataset for fact extraction and verification. arXiv preprint arXiv:1803.05355, 2018. Lev S Vygotsky. Thinking and speech. The collected works of LS Vygotsky, 1:39–285, 1987.\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 52\\n\\nNon-IID) with a fixed learning rate. The document context confirms these parameters, specifying the model, learning rate, and the experimental setup. The overall purpose is to demonstrate how the number of local epochs affects model convergence and performance, highlighting potential differences in behavior between IID and Non-IID data distributions. The data visualization effectively communicates that for both IID and Non-IID scenarios, increasing local epochs (e.g., E=5, E=25) generally leads to faster convergence or lower final loss compared to very few (E=1) or very many (E=200) local epochs, with E=5 showing the most pronounced benefit in reducing train loss.](images/e97d3bf184734de4b1746516181a7b226fee1faa9b9522ea41f39402ec0648d8.jpg)\\nFigure 3: The effect of training for many local epochs (large $E$ ) between averaging steps, fixing $B = 1 0$ and $C = 0 . 1$ for the Shakespeare LSTM with a fixed learning rate $\\\\eta = 1 . 4 7$ .\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 111\\n\\nels such as GPT-3.5 and GPT-4, suggesting that SLMs equipped with RAG can sometimes perform comparably or even better than LLMs. These findings indicate that RAG for SLMs is effective and represents a promising direction for future research. Mixture-of-Experts (MoE) [39] has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs. The MoE framework is founded on a straightforward yet potent concept: distinct components of a model, referred to as “experts”, specialize in different tasks or data facets. In this paradigm, only the relevant experts are activated for a specific input, which manages computational costs while leveraging a vast pool of specialized knowledge. This scalable and adaptable approach enables increased model capacity without proportionally escalating computational demands. We argue that MoE is particularly suitable for SLM architectures [161] as it minimizes both computational load and memory overhead.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 9.8705, + "rag_initialization_seconds": 4.9975, + "query_execution_seconds": 4.872, + "start_timestamp": "2025-08-15T20:48:56.423863", + "end_timestamp": "2025-08-15T20:49:06.294368" + }, + "metadata": { + "saved_at": "2025-08-15T20:49:06.295367", + "file_path": "retrieval_logs\\retrieval_20250815_204906_295_mix_k12_ck10_Your_task_is_to_act_as_a_senior_AI_researcher_Base.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_074846_123_hybrid_k3_ck2_On_what_benchmark_datasets_and_tasks_were_Transfor.json b/retrieval_logs/retrieval_20250816_074846_123_hybrid_k3_ck2_On_what_benchmark_datasets_and_tasks_were_Transfor.json new file mode 100644 index 0000000000000000000000000000000000000000..84ff42d17ee219e431bec245f60da6bbff961a17 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_074846_123_hybrid_k3_ck2_On_what_benchmark_datasets_and_tasks_were_Transfor.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T07:48:46.123184", + "query": "On what benchmark datasets and tasks were Transformers initially evaluated, and what were the key performance metrics used?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 9002, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"WMT 2014 English-to-French translation task\", \"type\": \"methodology\", \"description\": \"The WMT 2014 English-to-French translation task is a benchmark dataset and specific translation task used for evaluating model performance. The Transformer model achieved a new state-of-the-art BLEU score of 41.8 on this task after training for 3.5 days on eight GPUs.This is the specific translation task used to evaluate the model.\", \"created_at\": \"2025-08-15 14:54:17\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"statistical model\", \"type\": \"methodology\", \"description\": \"A statistical model is utilized by EdgeMoE, built offline, to estimate expert activation probabilities in transformer layers from previous activations.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"transformer layers\", \"type\": \"methodology\", \"description\": \"Transformer layers are components within MoE architectures where EdgeMoE estimates expert activation probabilities.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"WMT 2014 English-to-French translation task\", \"entity2\": \"big model achieves a BLEU score of 41.0\", \"description\": \"The big model's performance of a BLEU score of 41.0 was evaluated on the WMT 2014 English-to-French translation task.\", \"created_at\": \"2025-08-15 14:54:17\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"statistical model\", \"entity2\": \"transformer layers\", \"description\": \"The statistical model estimates expert activation probabilities in transformer layers.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 20\\n\\nFor each of these we use $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h \\\\stackrel { } { = } \\\\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \\\"encoder-decoder attention\\\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 9.4102, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 9.4102, + "start_timestamp": "2025-08-16T07:48:36.712981", + "end_timestamp": "2025-08-16T07:48:46.123184" + }, + "metadata": { + "saved_at": "2025-08-16T07:48:46.123184", + "file_path": "retrieval_logs\\retrieval_20250816_074846_123_hybrid_k3_ck2_On_what_benchmark_datasets_and_tasks_were_Transfor.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_074846_134_hybrid_k10_ck5_What_were_the_primary_empirical_results_demonstrat.json b/retrieval_logs/retrieval_20250816_074846_134_hybrid_k10_ck5_What_were_the_primary_empirical_results_demonstrat.json new file mode 100644 index 0000000000000000000000000000000000000000..a6af56d5466d45cacfe5171cb9e0ef187b7a5bdc --- /dev/null +++ b/retrieval_logs/retrieval_20250816_074846_134_hybrid_k10_ck5_What_were_the_primary_empirical_results_demonstrat.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T07:48:46.134784", + "query": "What were the primary empirical results demonstrating the effectiveness of the Transformer architecture compared to existing state-of-the-art models at the time of its introduction?", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 5, + "text_length": 36415, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Transformers\", \"type\": \"methodology\", \"description\": \"Transformers are a state-of-the-art architecture that xLSTM performs favorably compared to in empirical evaluations.Transformers are a type of language model architecture.Transformers are associated with dynamic information processing.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Transformer model\", \"type\": \"category\", \"description\": \"A Transformer model is a type of neural network architecture used in machine learning.\", \"created_at\": \"2025-08-13 23:02:07\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"statistical model\", \"type\": \"methodology\", \"description\": \"A statistical model is utilized by EdgeMoE, built offline, to estimate expert activation probabilities in transformer layers from previous activations.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"transformer layers\", \"type\": \"methodology\", \"description\": \"Transformer layers are components within MoE architectures where EdgeMoE estimates expert activation probabilities.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"GPT\", \"type\": \"abstract\", \"description\": \"GPT is a Large Language Model (LLM) that is a generic multi-task learner based on the Transformer architecture. It is an example of a pre-trained autoregressive language model and a decoder-based model that employs Next Token Prediction (NTP) as its methodology. GPT widely uses GELU for better gradient flow control and excels at sensemaking in complex domains.GPT is a type of language model that has emergent abilities.\", \"created_at\": \"2025-08-15 17:09:27\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Radford et al.\", \"type\": \"person\", \"description\": \"Radford et al. are authors whose work focuses on transformer models, specifically their application to autoregressive language modeling. Their publications include papers detailing the GPT-2 model, and they are known for their contributions to fine-tuning these transformer-based models. While some details of their work remain unavailable, the consistent information points to their significant authorship in the development and refinement of GPT-2 and similar models.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Abstract\", \"type\": \"abstract\", \"description\": \"Modern mobile devices have access to a wealth of data suitable for learning models, which in turn can greatly improve the user experience on the device. For example, language models can improve speech recognition and text entry, and image models can automatically select good photos. However, this rich data is often privacy sensitive, large in quantity, or both, which may preclude logging to the data center and training there using conventional approaches. We advocate an alternative that leaves the training data distributed on the mobile devices, and learns a shared model by aggregating locally-computed updates. We term this decentralized approach Federated Learning.The abstract describes the dominant sequence transduction models as complex recurrent or convolutional neural networks with an encoder and decoder, often connected by an attention mechanism. It proposes a new, simpler network architecture called the Transformer, which relies solely on attention mechanisms and eliminates recurrence and convolutions.\", \"created_at\": \"2025-08-15 15:02:51\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Switch-Transformer\", \"type\": \"methodology\", \"description\": \"Switch-Transformer proposes a parameter migration strategy that leverages the memory space of multiple devices in a collective manner to store a large volume of parameters through parallel communication mechanisms. This method effectively distributes the pressure of parameter storage, enhancing the system’s overall storage capacity and computational efficiency.\", \"created_at\": \"2025-08-15 15:23:10\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"parameter migration strategy\", \"type\": \"methodology\", \"description\": \"A strategy proposed by Switch-Transformer that leverages the memory space of multiple devices in a collective manner to store a large volume of parameters through parallel communication mechanisms, distributing storage pressure and enhancing capacity and efficiency.\", \"created_at\": \"2025-08-15 15:23:10\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"MoE\", \"entity2\": \"Transformer\", \"description\": \"MoE layers typically replace the Feed-Forward Network (FFN) layer within a Transformer block when MoE is incorporated into existing Transformer models.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Transformer\", \"description\": \"Multi-Head Attention is employed within the Transformer to address the issue of reduced effective resolution arising from averaging attention-weighted positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"GPT-2\", \"entity2\": \"Transformer\", \"description\": \"GPT-2 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"statistical model\", \"entity2\": \"transformer layers\", \"description\": \"The statistical model estimates expert activation probabilities in transformer layers.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mamba\", \"entity2\": \"Transformer\", \"description\": \"Mamba differs from Transformer in its approach to accessing hidden states, with Mamba focusing on the immediate previous hidden state and Transformer requiring access to all previous hidden states.Mamba offers a solution to the Transformer's drawback of quadratic time complexity during inference by relying only on the last hidden state, leading to faster inference speeds.Transformer uses attention heads for recall, while Mamba uses SSM heads for context summarization, highlighting different approaches to sequence processing.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Figure 5\", \"entity2\": \"Transformer\", \"description\": \"Figure 5 implicitly shows the Transformer's slower inference speeds by comparison to Mamba.\", \"created_at\": \"2025-08-15 16:21:47\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"MoE layer\", \"entity2\": \"Transformer\", \"description\": \"The MoE layer replaces the Feed-Forward Network (FFN) layer within a Transformer block.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Hymba\", \"entity2\": \"Transformer\", \"description\": \"Hymba integrates attention heads, similar to those in the Transformer, within its layers.\", \"created_at\": \"2025-08-15 16:29:28\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Transformer\", \"entity2\": \"ΔWq\", \"description\": \"ΔWq is obtained from layers within a Transformer network.ΔWq represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:28\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Switch-Transformer\", \"entity2\": \"parameter migration strategy\", \"description\": \"Switch-Transformer proposes the parameter migration strategy.\", \"created_at\": \"2025-08-15 15:23:14\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Transformer\", \"entity2\": \"ΔWv\", \"description\": \"ΔWv represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Transformer\", \"entity2\": \"language modeling\", \"description\": \"The Transformer is implied to be relevant to language modeling tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Recurrence\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture dispenses with recurrence.The Transformer dispenses with recurrence, which is a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"BLEU scores\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model's performance is measured by its BLEU scores.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Emergent Modularity phenomenon\", \"entity2\": \"Transformer\", \"description\": \"The Emergent Modularity phenomenon is observed in pre-trained Transformer models.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Convolutions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer dispenses with convolutions, which are a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Feed-Forward Network (FFN) layer\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer that is replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:18:38\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"State Space Models (SSMs)\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's attention mechanism has a drawback of quadratic time complexity, while State Space Models (SSMs) enable faster inference speeds by relying on the last hidden state.\", \"created_at\": \"2025-08-15 16:21:42\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Transformer\", \"entity2\": \"Vaswani et al.\", \"description\": \"Vaswani et al. are associated with the development or publication of the Transformer architecture.Vaswani et al. are the authors of the Transformer architecture.\", \"created_at\": \"2025-08-13 22:49:38\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder structure\", \"description\": \"\\\"The Transformer generally adopts an encoder-decoder structure.\\\")The Transformer is a transduction model that, unlike most competitive neural sequence transduction models, does not explicitly state it uses an encoder-decoder structure, but rather relies on self-attention.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"English Constituency Parsing\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is being evaluated on the task of English Constituency Parsing to assess its generalization capabilities.\", \"created_at\": \"2025-08-15 14:55:59\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"Transformer\", \"entity2\": \"newstest2014\", \"description\": \"The Transformer model is evaluated on the newstest2014 test set for translation tasks.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Transformer\", \"entity2\": \"images, audio and video\", \"description\": \"\\\"The Transformer is planned to be extended to problems involving input and output modalities other than text, such as images, audio, and video.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"English-to-French\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-French translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"Constant number of operations\", \"entity2\": \"Transformer\", \"description\": \"The Transformer achieves a constant number of operations to learn dependencies between distant positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Making generation less sequential\", \"entity2\": \"Transformer\", \"description\": \"Making generation less sequential is a planned enhancement for the Transformer model.\", \"created_at\": \"2025-08-15 14:57:21\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Feed-Forward Network (FFN)\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer block that can be replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"SVD\", \"entity2\": \"Transformer\", \"description\": \"The SVD method is applied to matrices (ΔW) derived from a Transformer's layers.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Transformer\", \"entity2\": \"simple-language question answering\", \"description\": \"The Transformer is implied to be relevant to simple-language question answering tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"GPT-3\", \"entity2\": \"Transformers\", \"description\": \"GPT-3 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:23\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"Transformer model\", \"description\": \"$\\\\Delta W$ represents task-specific directions within the Transformer model.\", \"created_at\": \"2025-08-13 23:02:07\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformers\", \"description\": \"Radford et al.'s work relates to fine-tuning transformer models.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"SSMs\", \"entity2\": \"Transformers\", \"description\": \"The integration of global static information captured by SSMs with the dynamic information processing of Transformers could complement each other, leading to new architectures that balance effectiveness and efficiency.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"Devlin et al.\", \"entity2\": \"Transformers\", \"description\": \"Devlin et al.'s work relates to fine-tuning transformer models.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"$W$\", \"entity2\": \"Transformer model\", \"description\": \"$W$ represents the overall weight matrix of the Transformer model.\", \"created_at\": \"2025-08-13 23:02:07\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 21\\n\\nyer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. Similarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \\\\infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. # 3.3 Position-wise Feed-Forward Networks In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 20\\n\\nFor each of these we use $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h \\\\stackrel { } { = } \\\\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \\\"encoder-decoder attention\\\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 127\\n\\nf SLMs for coding offers an alternative to LLMs due to their lower computational needs and potential for domain-specific tuning. Despite LLMs’ proficiency in code generation and programming support, SLMs are advantageous for their faster inference, reduced operational costs, and suitability for real-time environments where rapid responses are crucial. Representative works are discussed next. The Phi series [1, 155, 200] showcase SLMs’ evolution in coding tasks. For instance, Phi-1 [120], a Transformer with 1.3B parameters, specializes in basic Python coding and achieves notable scores in benchmarks such as HumanEval [120], which includes 164 programming problems. Subsequent models, Phi-1.5 and Phi-2, have enhanced these capabilities, while Phi-3 demonstrated SLMs’ potential to rival larger models [1].\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: Attention Is All You Need\\nChunk: 6\\n\\nThis makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 9.4228, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 9.4228, + "start_timestamp": "2025-08-16T07:48:36.711983", + "end_timestamp": "2025-08-16T07:48:46.134784" + }, + "metadata": { + "saved_at": "2025-08-16T07:48:46.134784", + "file_path": "retrieval_logs\\retrieval_20250816_074846_134_hybrid_k10_ck5_What_were_the_primary_empirical_results_demonstrat.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_074846_141_hybrid_k10_ck4_How_does_the_self-attention_mechanism_in_Transform.json b/retrieval_logs/retrieval_20250816_074846_141_hybrid_k10_ck4_How_does_the_self-attention_mechanism_in_Transform.json new file mode 100644 index 0000000000000000000000000000000000000000..eb0e90dc1ec85a1c1779fab6826791d2717d59ed --- /dev/null +++ b/retrieval_logs/retrieval_20250816_074846_141_hybrid_k10_ck4_How_does_the_self-attention_mechanism_in_Transform.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T07:48:46.141309", + "query": "How does the self-attention mechanism in Transformers differ from traditional sequence processing methods like RNNs and LSTMs?", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 26101, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Recurrent Neural Networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including long short-term memory (LSTM) and gated recurrent units (GRU), have been firmly established as state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Long Short-Term Memory (LSTM)\", \"type\": \"methodology\", \"description\": \"A specific type of recurrent neural network that has been firmly established as a state-of-the-art approach in sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:58:21\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Factorization tricks for LSTM networks\", \"type\": \"methodology\", \"description\": \"This refers to techniques for factorization within LSTM networks.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Recurrent Neural Networks (RNNs)\", \"type\": \"methodology\", \"description\": \"Recurrent Neural Networks (RNNs) are a class of models of which State Space Models (SSMs) are a superclass.\", \"created_at\": \"2025-08-15 16:21:43\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:35\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Large-scale LSTM Experiments\", \"type\": \"methodology\", \"description\": \"Experiments were run on a large-scale next-word prediction task to demonstrate the effectiveness of the approach on a real-world problem.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"encoder-decoder attention\", \"type\": \"methodology\", \"description\": \"This is one of the three ways multi-head attention is used in the Transformer. In these layers, queries originate from the previous decoder layer, while memory keys and values are sourced from the encoder's output. This enables every decoder position to attend to all positions in the input sequence, mirroring attention mechanisms in sequence-to-sequence models like those in references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Long short-term memory-networks for machine reading\", \"type\": \"methodology\", \"description\": \"This refers to the application of Long Short-Term Memory (LSTM) networks for machine reading tasks.\", \"created_at\": \"2025-08-15 14:53:39\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"sequence-to-sequence models\", \"type\": \"methodology\", \"description\": \"Sequence-to-sequence models are mentioned as examples of models that use typical encoder-decoder attention mechanisms, which the Transformer mimics.\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"LSTM\", \"type\": \"methodology\", \"description\": \"LSTM refers to a Long Short-Term Memory network, a type of recurrent neural network architecture used in the experiments.LSTM shares a conceptual similarity with Mamba and achieves success in language modeling through the introduction of time-dependent weights. Known limitations of LSTM are addressed by the xLSTM architecture.\", \"created_at\": \"2025-08-15 15:12:36\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"End-to-end memory networks\", \"type\": \"methodology\", \"description\": \"End-to-end memory networks are a methodology discussed in the text.End-to-end memory networks utilize a recurrent attention mechanism instead of sequence-aligned recurrence and have demonstrated good performance in tasks like simple-language question answering and language modeling.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Self-Attention\", \"type\": \"methodology\", \"description\": \"Self-Attention has a complexity per layer of O(n².d), 0(1) sequential operations, and a maximum path length of 0(1).Self-attention layers are contained within the encoder of The Transformer. In a self-attention layer, all keys, values, and queries come from the same place, specifically the output of the previous layer in the encoder.Self-attention is a mechanism that the Transformer relies entirely on to compute representations of its input and output. The text indicates it will motivate self-attention and discuss its advantages.\", \"created_at\": \"2025-08-15 18:34:17\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"The Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a model architecture that follows an overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder. It notably uses multi-head attention in three different ways, including encoder-decoder attention layers and self-attention layers within its encoder. This model allows for significantly more parallelization and achieves better BLEU scores than previous state-of-the-art models on the English-to-German and English-to-French newstest2014 tests. The Transformer can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs, representing a fraction of the training cost compared to prior models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.\", \"created_at\": \"2025-08-15 21:42:55\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Transformer architecture\", \"type\": \"methodology\", \"description\": \"The Transformer architecture is a neural network architecture widely used in language modeling and as a component of large language models. It generally adopts an encoder-decoder structure, though decoder-only variations also exist. Key components of the Transformer architecture include self-attention mechanisms, which are crucial for managing long-range text dependencies and maintaining performance with constrained resources, feedforward networks, positional embeddings that typically employ a sinusoidal function, and layer normalization. The architecture's dimensions are described using conventional terminologies, such as input and output dimension size ($d_{model}$), query/key/value/output projection matrices ($W_q$, $W_k$, $W_v$, $W_o$), and a pretrained weight matrix ($W$ or $W_0$). In the context of large language models, techniques like LoRA (Low-Rank Adaptation) can be integrated by injecting trainable rank decomposition matrices into each layer, thereby modifying the model structure. Specific metrics, such as per-wordpiece perplexities, are presented on datasets like the English-to-German translation development set, newstest2013. The detailed design of the Transformer architecture is provided in Section 5.The Transformer architecture uses Multi-Head Attention (MHA) as a key component. MHA is described as the first method that uses multiple heads to capture diverse information within the Transformer architecture.The Transformer architecture utilizes Multi-Head Attention (MHA) to capture diverse information. MHA employs multiple heads, each operating independently, to attend to different parts of the input sequence. The formula for MHA is given as MultiHead(Q, K, V) = Concat(head_1, head_2, ..., head_h)W^O, where head_i = Attention(QW_i^Q, KW_i^K, VW_i^V).\", \"created_at\": \"2025-08-15 16:23:09\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Mamba\", \"entity2\": \"Recurrent Neural Networks (RNNs)\", \"description\": \"Mamba is based on State Space Models (SSMs), which are a superclass of Recurrent Neural Networks (RNNs).\", \"created_at\": \"2025-08-15 16:21:43\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LSTM\", \"entity2\": \"xLSTM\", \"description\": \"xLSTM is inspired by the question of how effective LSTMs would be if scaled to billions of parameters, incorporating advanced techniques from modern LLMs while addressing known LSTM limitations. xLSTM designs exponential gates to enhance effectiveness with long sequences, expand memory cells from scalars to matrices to increase storage capacity, and remove memory mixing to enable parallel processing to address the limitations of LSTM.\", \"created_at\": \"2025-08-15 16:28:38\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequential Computation\", \"description\": \"The inherent characteristic of Recurrent Neural Networks is their sequential computation, where hidden states are generated based on previous states and current input.\", \"created_at\": \"2025-08-15 18:20:09\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Gated Recurrent Units (GRU)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Gated Recurrent Units (GRU) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:55\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"encoder-decoder attention\", \"entity2\": \"sequence-to-sequence models\", \"description\": \"Encoder-decoder attention in the Transformer mimics the attention mechanisms found in sequence-to-sequence models, citing references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Long Short-Term Memory (LSTM)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Long Short-Term Memory (LSTM) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"End-to-end memory networks\", \"entity2\": \"Self-attention\", \"description\": \"Both self-attention and end-to-end memory networks are attention mechanisms used in sequence processing tasks, with end-to-end memory networks specifically using a recurrent attention mechanism.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Encoder-Decoder Architectures\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Encoder-Decoder Architectures are mentioned alongside recurrent language models as areas where efforts have pushed boundaries, indicating a close relationship in the context of sequence modeling.\", \"created_at\": \"2025-08-15 18:21:27\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Self-Attention\", \"entity2\": \"The Transformer\", \"description\": \"The Transformer is explicitly stated as 'relying entirely on self-attention' to compute representations of its input and output.The Transformer's encoder contains self-attention layers as another application of multi-head attention.\", \"created_at\": \"2025-08-15 18:34:47\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Recurrent Language Models\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Recurrent Language Models are a specific application or type of recurrent neural network whose boundaries have been pushed by research.\", \"created_at\": \"2025-08-15 18:21:11\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Accuracy Oscillations\", \"entity2\": \"Large-scale LSTM Experiments\", \"description\": \"Accuracy Oscillations are a result observed from the Large-scale LSTM Experiments, highlighting the effect of client averaging.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Transformer architecture\", \"entity2\": \"self-attention mechanisms\", \"description\": \"The Transformer architecture utilizes self-attention mechanisms to manage long-range text dependencies.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Large-scale LSTM Experiments\", \"entity2\": \"Training Dataset\", \"description\": \"The Training Dataset is the data source used for the Large-scale LSTM Experiments.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"FedAvg Progress\", \"entity2\": \"Large-scale LSTM Experiments\", \"description\": \"The FedAvg Progress is a result observed from the Large-scale LSTM Experiments.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Factorization tricks for LSTM networks\", \"entity2\": \"Neural machine translation in linear time\", \"description\": \"Both are related to neural network architectures and efficiency, with factorization tricks potentially improving the performance of models like those used in linear time translation.\", \"created_at\": \"2025-08-15 14:58:12\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"transduction problems\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in transduction problems.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 33\\n\\nWe used warmup_steps [math: = 4 0 0 0] . # 5.4 Regularization We employ three types of regularization during training: Table 2: The Transformer achieves better BLEU scores than previous state-of-the-art models on the English-to-German and English-to-French newstest2014 tests at a fraction of the training cost.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 55\\n\\n118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\\\Delta \\\\mathbf { W } = \\\\mathbf { A } \\\\mathbf { B } ^ { \\\\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\\\mathbf { W } _ { \\\\mathrm { f t } } = \\\\mathbf { W } + \\\\alpha \\\\Delta \\\\mathbf { W }$ where $\\\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Attention Is All You Need\\nChunk: 21\\n\\nyer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. Similarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \\\\infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. # 3.3 Position-wise Feed-Forward Networks In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 16.7693, + "rag_initialization_seconds": 4.6272, + "query_execution_seconds": 12.142, + "start_timestamp": "2025-08-16T07:48:29.372059", + "end_timestamp": "2025-08-16T07:48:46.141310" + }, + "metadata": { + "saved_at": "2025-08-16T07:48:46.141309", + "file_path": "retrieval_logs\\retrieval_20250816_074846_141_hybrid_k10_ck4_How_does_the_self-attention_mechanism_in_Transform.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_074900_510_hybrid_k6_ck4_What_are_the_known_computational_and_memory_comple.json b/retrieval_logs/retrieval_20250816_074900_510_hybrid_k6_ck4_What_are_the_known_computational_and_memory_comple.json new file mode 100644 index 0000000000000000000000000000000000000000..12f263b6cd7a22231b2a1614c833c82715f2db45 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_074900_510_hybrid_k6_ck4_What_are_the_known_computational_and_memory_comple.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T07:49:00.510489", + "query": "What are the known computational and memory complexities associated with the self-attention mechanism in Transformers, especially for long sequences?", + "query_mode": "hybrid", + "top_k": 6, + "chunk_top_k": 4, + "text_length": 15029, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"attention\", \"type\": \"methodology\", \"description\": \"Attention is a mechanism utilized in the Transformer model, which is the first sequence transduction model to rely entirely on attention. Within the Transformer, attention is implemented through various forms, including multi-head attention, encoder-decoder attention, and self-attention. Furthermore, attention serves as a component within the same layer as SSM heads, enabling parallel and complementary processing of inputs. For experimental purposes, attention was also selected as a parameter.Attention was selected as a parameter for experiments.\", \"created_at\": \"2025-08-15 14:56:17\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:58:21\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Queries, Keys, and Values\", \"type\": \"abstract\", \"description\": \"Fundamental components of the attention mechanism that are linearly projected multiple times in Multi-Head Attention and are $d _ { \\\\\\\\mathrm { m o d e l } }$-dimensional in a single attention function.\", \"created_at\": \"2025-08-15 18:03:15\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"encoder-decoder attention\", \"type\": \"methodology\", \"description\": \"This is one of the three ways multi-head attention is used in the Transformer. In these layers, queries originate from the previous decoder layer, while memory keys and values are sourced from the encoder's output. This enables every decoder position to attend to all positions in the input sequence, mirroring attention mechanisms in sequence-to-sequence models like those in references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"sequence-to-sequence models\", \"type\": \"methodology\", \"description\": \"Sequence-to-sequence models are mentioned as examples of models that use typical encoder-decoder attention mechanisms, which the Transformer mimics.\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:35\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Multi-Head Attention processes queries, keys, and values by linearly projecting them multiple times.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Transformer architecture\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures such as Mamba, Hymba, and xLSTM are proposed to alleviate the inference cost of the Transformer architecture due to its attention mechanism.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Section 22 development set\", \"entity2\": \"attention\", \"description\": \"Attention was selected on the Section 22 development set.\", \"created_at\": \"2025-08-15 17:28:28\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Linear Projections\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Linear projections are applied to queries, keys, and values as part of the Multi-Head Attention mechanism.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"encoder-decoder attention\", \"entity2\": \"sequence-to-sequence models\", \"description\": \"Encoder-decoder attention in the Transformer mimics the attention mechanisms found in sequence-to-sequence models, citing references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 21\\n\\nyer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. Similarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \\\\infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. # 3.3 Position-wise Feed-Forward Networks In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 20\\n\\nFor each of these we use $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h \\\\stackrel { } { = } \\\\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \\\"encoder-decoder attention\\\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 127\\n\\nf SLMs for coding offers an alternative to LLMs due to their lower computational needs and potential for domain-specific tuning. Despite LLMs’ proficiency in code generation and programming support, SLMs are advantageous for their faster inference, reduced operational costs, and suitability for real-time environments where rapid responses are crucial. Representative works are discussed next. The Phi series [1, 155, 200] showcase SLMs’ evolution in coding tasks. For instance, Phi-1 [120], a Transformer with 1.3B parameters, specializes in basic Python coding and achieves notable scores in benchmarks such as HumanEval [120], which includes 164 programming problems. Subsequent models, Phi-1.5 and Phi-2, have enhanced these capabilities, while Phi-3 demonstrated SLMs’ potential to rival larger models [1].\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 8.1387, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 8.1387, + "start_timestamp": "2025-08-16T07:48:52.371784", + "end_timestamp": "2025-08-16T07:49:00.510489" + }, + "metadata": { + "saved_at": "2025-08-16T07:49:00.510489", + "file_path": "retrieval_logs\\retrieval_20250816_074900_510_hybrid_k6_ck4_What_are_the_known_computational_and_memory_comple.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_074900_572_hybrid_k10_ck4_How_have_subsequent_advancements_in_model_architec.json b/retrieval_logs/retrieval_20250816_074900_572_hybrid_k10_ck4_How_have_subsequent_advancements_in_model_architec.json new file mode 100644 index 0000000000000000000000000000000000000000..7ef2a0659088041f7695dd3ac3c23c342b69ff4a --- /dev/null +++ b/retrieval_logs/retrieval_20250816_074900_572_hybrid_k10_ck4_How_have_subsequent_advancements_in_model_architec.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T07:49:00.572584", + "query": "How have subsequent advancements in model architectures (e.g., variations of Transformers, or entirely new architectures) built upon or diverged from the original Transformer design?", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 23908, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Transformer operations\", \"type\": \"methodology\", \"description\": \"Transformer operations utilize fine-tuned weight matrices.\", \"created_at\": \"2025-08-15 16:29:35\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Parallelizability\", \"type\": \"results\", \"description\": \"The Transformer models are more parallelizable than existing models.\", \"created_at\": \"2025-08-15 14:58:13\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"1-bit Transformer architecture with BitLinear layers\", \"type\": \"methodology\", \"description\": \"Introduces a 1-bit Transformer architecture with BitLinear layers, achieving near 1-bit quantization with minimal performance loss.\", \"created_at\": \"2025-08-15 16:26:40\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"statistical model\", \"type\": \"methodology\", \"description\": \"A statistical model is utilized by EdgeMoE, built offline, to estimate expert activation probabilities in transformer layers from previous activations.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Layer sharing\", \"type\": \"methodology\", \"description\": \"Layer sharing increases hidden layers in small Transformer models without additional storage costs.\", \"created_at\": \"2025-08-15 16:40:55\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"transformer layers\", \"type\": \"methodology\", \"description\": \"Transformer layers are components within MoE architectures where EdgeMoE estimates expert activation probabilities.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Transformers\", \"type\": \"methodology\", \"description\": \"Transformers are a state-of-the-art architecture that xLSTM performs favorably compared to in empirical evaluations.Transformers are a type of language model architecture.Transformers are associated with dynamic information processing.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"AI systems\", \"type\": \"discussion\", \"description\": \"AI systems can be designed to be more robust and transparent by leveraging the interpretability offered by Mixture of Experts (MoE) models.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"1-bit Transformer Architecture\", \"type\": \"methodology\", \"description\": \"A 1-bit Transformer Architecture is employed in the BitNet b1.58 methodology.\", \"created_at\": \"2025-08-15 16:25:13\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"model interpretability\", \"type\": \"discussion\", \"description\": \"Model interpretability is an opportunity offered by Mixture of Experts (MoE) models, achieved by learning intrinsic allocation mechanisms. This process enhances the understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems. Furthermore, model interpretability is enhanced by the combination of reasoning and acting, which allows humans to distinguish between internal knowledge and external environments.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Developing Efficient SLM Model Architecture\", \"type\": \"possible enhancements\", \"description\": \"This subsection discusses the challenges faced by Transformers, such as significant computational and memory challenges that worsen with model size, impacting training and autoregressive decoding.\", \"created_at\": \"2025-08-15 17:05:24\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Radford et al.\", \"type\": \"person\", \"description\": \"Radford et al. are authors whose work focuses on transformer models, specifically their application to autoregressive language modeling. Their publications include papers detailing the GPT-2 model, and they are known for their contributions to fine-tuning these transformer-based models. While some details of their work remain unavailable, the consistent information points to their significant authorship in the development and refinement of GPT-2 and similar models.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"MoE architectures\", \"type\": \"methodology\", \"description\": \"MoE (Mixture of Experts) architectures are designed to enhance parameter efficiency and manage computational costs effectively. They offer potential improvements in model interpretability by learning intrinsic allocation mechanisms. These architectures possess a sparse nature, necessitating dynamic data allocation, which makes pipeline design a critical factor in their training. While MoE architectures have shown impressive scalability and performance, their theoretical foundations are not yet fully understood. Further research is needed to optimize the design of MoE architectures, particularly in determining the optimal number of experts and their specialization, as current methods often rely on heuristic or static settings that may not be universally optimal for all tasks.MoE architectures are a type of architecture that EdgeMoE aims to improve by reducing latency caused by frequent expert switching in limited device memory.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"intrinsic allocation mechanisms\", \"type\": \"methodology\", \"description\": \"Intrinsic allocation mechanisms are learned by MoE models, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"V-MoE\", \"type\": \"methodology\", \"description\": \"V-MoE is a novel approach designed for visual tasks, which substitutes the standard Multi-Layer Perceptron (MLP) layers in Vision Transformers with sparse Mixture-of-Experts (MoE) layers. This architectural change allows V-MoE to scale to an impressive 15 billion parameters and has demonstrated significant efficiency gains, particularly in image classification tasks. To optimize expert assignment and resource utilization, V-MoE employs a Batch Priority Routing (BPR) strategy. BPR calculates the importance of each image patch, sorts these patches in descending order of importance, and then assigns experts accordingly. Furthermore, V-MoE replaces the computationally intensive TopK strategy with a simpler Top-1 strategy, which helps to reduce resource wastage. For enhanced training stability in visual tasks, V-MoE incorporates an auxiliary loss function that normalizes both $L_{Importance}$ and $L_{Load}$.\", \"created_at\": \"2025-08-15 15:28:40\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"Vision-Transformer\", \"type\": \"methodology\", \"description\": \"Vision-Transformer is a model architecture that utilizes MLP layers, which can be replaced by sparse MoE layers as proposed in V-MoE.\", \"created_at\": \"2025-08-15 15:28:35\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"GPT\", \"type\": \"abstract\", \"description\": \"GPT is a Large Language Model (LLM) that is a generic multi-task learner based on the Transformer architecture. It is an example of a pre-trained autoregressive language model and a decoder-based model that employs Next Token Prediction (NTP) as its methodology. GPT widely uses GELU for better gradient flow control and excels at sensemaking in complex domains.GPT is a type of language model that has emergent abilities.\", \"created_at\": \"2025-08-15 17:09:27\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT-3\", \"entity2\": \"Transformers\", \"description\": \"GPT-3 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:23\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Transformer architecture\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures such as Mamba, Hymba, and xLSTM are proposed to alleviate the inference cost of the Transformer architecture due to its attention mechanism.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformers\", \"description\": \"Radford et al.'s work relates to fine-tuning transformer models.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"statistical model\", \"entity2\": \"transformer layers\", \"description\": \"The statistical model estimates expert activation probabilities in transformer layers.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"SSMs\", \"entity2\": \"Transformers\", \"description\": \"The integration of global static information captured by SSMs with the dynamic information processing of Transformers could complement each other, leading to new architectures that balance effectiveness and efficiency.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Devlin et al.\", \"entity2\": \"Transformers\", \"description\": \"Devlin et al.'s work relates to fine-tuning transformer models.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"AI systems\", \"entity2\": \"model interpretability\", \"description\": \"Model interpretability opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Low-Rank Adaptation (LoRA)\", \"entity2\": \"Transformer operations\", \"description\": \"The fine-tuned weight matrix from LoRA is used in Transformer operations.\", \"created_at\": \"2025-08-15 16:29:41\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Developing Efficient SLM Model Architecture\", \"entity2\": \"FUTURE DIRECTIONS\", \"description\": \"\\\"The section on 'FUTURE DIRECTIONS' highlights 'Developing Efficient SLM Model Architecture' as a key area for research to address existing gaps in SLM development.\\\")\", \"created_at\": \"2025-08-15 17:05:24\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"MoE architectures\", \"entity2\": \"intrinsic allocation mechanisms\", \"description\": \"MoE architectures learn intrinsic allocation mechanisms.\", \"created_at\": \"2025-08-15 15:19:39\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"1-bit Transformer architecture with BitLinear layers\", \"entity2\": \"Moqt[234] SLM-RAG [215]\", \"description\": \"Both are presented as methodologies for enhancing SLMs, with the former focusing on quantization and the latter on ternary weights and RAG for performance matching.\", \"created_at\": \"2025-08-15 16:26:40\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"V-MoE\", \"entity2\": \"Vision-Transformer\", \"description\": \"V-MoE replaces the MLP layers in Vision-Transformer with sparse MoE layers to cope with visual tasks.\", \"created_at\": \"2025-08-15 15:28:41\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 55\\n\\n118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\\\Delta \\\\mathbf { W } = \\\\mathbf { A } \\\\mathbf { B } ^ { \\\\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\\\mathbf { W } _ { \\\\mathrm { f t } } = \\\\mathbf { W } + \\\\alpha \\\\Delta \\\\mathbf { W }$ where $\\\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: MOE\\nChunk: 10\\n\\nhances our understanding of the model behaviors but also opens new avenues for designing more robust and transparent AI systems. Given the rapidly growing research interests in MoE and the huge potentials of MoE in various application domains, there is an urgent need of a comprehensive survey for summarizing and disseminating the recent advances of MoE, in order to elicit escalating attentions and inspire further research ideas in this field. Nevertheless, the early surveys of MoE [203], [204] were published ten years ago and have not incorporated the new development in the area. There is only one new survey [205] that emerged last year, which however 1) emphasized more on the basic designs of MoE and 2) did not provide a broad discussion on the use of MoEs in important machine learning paradigms and application fields such as computer vision. The theory development in MoE has also not been covered.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Attention Is All You Need\\nChunk: 21\\n\\nyer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. Similarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \\\\infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. # 3.3 Position-wise Feed-Forward Networks In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.2894, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 5.2894, + "start_timestamp": "2025-08-16T07:48:55.283213", + "end_timestamp": "2025-08-16T07:49:00.572584" + }, + "metadata": { + "saved_at": "2025-08-16T07:49:00.572584", + "file_path": "retrieval_logs\\retrieval_20250816_074900_572_hybrid_k10_ck4_How_have_subsequent_advancements_in_model_architec.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_074900_759_hybrid_k10_ck4_Beyond_Natural_Language_Processing_what_other_doma.json b/retrieval_logs/retrieval_20250816_074900_759_hybrid_k10_ck4_Beyond_Natural_Language_Processing_what_other_doma.json new file mode 100644 index 0000000000000000000000000000000000000000..03a9dfa122184e0a65882d685cc40882b735e099 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_074900_759_hybrid_k10_ck4_Beyond_Natural_Language_Processing_what_other_doma.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T07:49:00.759101", + "query": "Beyond Natural Language Processing, what other domains or types of machine learning problems have benefited from the application of Transformer architectures?", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 25778, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Natural Language Processing Applications\", \"type\": \"connection\", \"description\": \"Natural Language Processing Applications are a broad domain where MoE is investigated, with tasks ranging from image classification to machine translation.\", \"created_at\": \"2025-08-15 15:36:26\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Natural Language Processing\", \"type\": \"connection\", \"description\": \"Natural Language Processing (NLP) is a core research area of artificial intelligence that focuses on enabling computers to understand, generate, and process human language. It plays a significant role in promoting human-computer interaction, information extraction, knowledge mining, cross-lingual communication, and automation.Natural Language Processing is a domain where Mixture-of-Experts is applied.Natural Language Processing is an application domain where MoE is investigated, with tasks including machine translation.\", \"created_at\": \"2025-08-15 15:18:17\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Radford et al.\", \"type\": \"person\", \"description\": \"Radford et al. are authors whose work focuses on transformer models, specifically their application to autoregressive language modeling. Their publications include papers detailing the GPT-2 model, and they are known for their contributions to fine-tuning these transformer-based models. While some details of their work remain unavailable, the consistent information points to their significant authorship in the development and refinement of GPT-2 and similar models.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Adam: A method for stochastic optimization\", \"type\": \"methodology\", \"description\": \"This is a method for stochastic optimization.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"an in-depth review of applications of MoE in both computer vision and natural language processing\", \"type\": \"abstract\", \"description\": \"This is one of the key components summarized in the paper, providing a detailed examination of MoE's use in computer vision and natural language processing.\", \"created_at\": \"2025-08-15 15:19:27\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Sequence Modeling and Transduction\", \"type\": \"abstract\", \"description\": \"Problem domains such as language modeling and machine translation where recurrent neural networks have been established as state-of-the-art approaches.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"statistical model\", \"type\": \"methodology\", \"description\": \"A statistical model is utilized by EdgeMoE, built offline, to estimate expert activation probabilities in transformer layers from previous activations.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"CONCLUSION\", \"type\": \"conclusion\", \"description\": \"The conclusion summarizes the proposed ReAct method and its effectiveness in various tasks, while also acknowledging limitations and future directions.This section concludes a comprehensive survey on the integration of the MoE architecture with various domains.This section provides a comprehensive survey of the integration of the MoE architecture with various domains, starting from basic designs and training strategies, highlighting its synergy with machine learning algorithms and recent theoretical advancements. It also summarizes MoE in computer vision and natural language processing and discusses future designs for improving MoE. The authors hope this work serves as a valuable reference and inspires further research.\", \"created_at\": \"2025-08-15 15:38:51\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"transformer layers\", \"type\": \"methodology\", \"description\": \"Transformer layers are components within MoE architectures where EdgeMoE estimates expert activation probabilities.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Mixtures of experts for scaling up neural networks in order execution\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by K. Li, M. Cucuringu, L. Sanchez-Betancourt, and T. Willi, and was presented at the 5th ACM International Conference on AI in Finance in 2024.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Movement primitive learning and generalization: Using mixture density networks\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by Y. Zhou, J. Gao, and T. Asfour, and was published in IEEE Robotics & Automation Magazine in 2020.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Dependencies between distant positions\", \"type\": \"discussion\", \"description\": \"In models like Extended Neural GPU, ByteNet, and ConvS2S, the number of operations required to relate signals from two arbitrary input or output positions grows with the distance between positions, making it more difficult to learn dependencies between distant positions.Learning dependencies between distant positions is made more difficult in certain architectures.\", \"created_at\": \"2025-08-15 14:58:35\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"English-to-German\", \"type\": \"methodology\", \"description\": \"This refers to a translation task where the Transformer model is evaluated.\", \"created_at\": \"2025-08-15 14:55:05\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"MoE\", \"entity2\": \"Natural Language Processing\", \"description\": \"MoE is investigated in the application domain of Natural Language Processing, highlighting its enhancements in specialization, scalability, and adaptability for tasks like machine translation.\", \"created_at\": \"2025-08-15 15:36:37\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"CONCLUSION\", \"entity2\": \"MoE architecture\", \"description\": \"The conclusion summarizes the survey of the MoE architecture, its applications, and future directions.\", \"created_at\": \"2025-08-15 15:38:55\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"MoE model\", \"entity2\": \"Natural Language Processing\", \"description\": \"The MoE model uses text prompts, which are processed by Natural Language Processing, to route input features based on texture attributes mentioned in the text prompt.\", \"created_at\": \"2025-08-15 15:28:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Mixture-of-Experts\", \"entity2\": \"Natural Language Processing\", \"description\": \"Mixture-of-Experts is applied in Natural Language Processing.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"statistical model\", \"entity2\": \"transformer layers\", \"description\": \"The statistical model estimates expert activation probabilities in transformer layers.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Artificial Intelligence\", \"entity2\": \"Natural Language Processing\", \"description\": \"Natural Language Processing is a domain where Artificial Intelligence has demonstrated remarkable successes.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Machine Translation\", \"entity2\": \"Natural Language Processing\", \"description\": \"Machine Translation is a task within Natural Language Processing where the influence of MoE is examined.\", \"created_at\": \"2025-08-15 15:36:26\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Language Modeling\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Language Modeling is an example of a sequence modeling and transduction problem where RNNs are state-of-the-art.\", \"created_at\": \"2025-08-15 18:19:09\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Mixtures of experts for scaling up neural networks in order execution\", \"entity2\": \"Movement primitive learning and generalization: Using mixture density networks\", \"description\": \"Both methodologies utilize mixture-based approaches for learning and generalization in AI/robotics.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Machine Translation\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Machine Translation is an example of a sequence modeling and transduction problem where RNNs are state-of-the-art.\", \"created_at\": \"2025-08-15 18:19:40\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Adam: A method for stochastic optimization\", \"entity2\": \"Neural machine translation in linear time\", \"description\": \"Both are methodologies in machine learning, with Adam being an optimization method that could potentially be applied to improve translation models.\", \"created_at\": \"2025-08-15 14:58:08\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 55\\n\\n118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\\\Delta \\\\mathbf { W } = \\\\mathbf { A } \\\\mathbf { B } ^ { \\\\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\\\mathbf { W } _ { \\\\mathrm { f t } } = \\\\mathbf { W } + \\\\alpha \\\\Delta \\\\mathbf { W }$ where $\\\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 21\\n\\nyer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. Similarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \\\\infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. # 3.3 Position-wise Feed-Forward Networks In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Attention Is All You Need\\nChunk: 3\\n\\n# 1 Introduction Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5]. Numerous efforts have since continued to push the boundaries of recurrent language models and encoder-decoder architectures [38, 24, 15]. Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states [math: h _ { t }] , as a function of the previous hidden state [math: h _ { t - 1 }] and the input for position [math: t] . This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.4744, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 5.4744, + "start_timestamp": "2025-08-16T07:48:55.283735", + "end_timestamp": "2025-08-16T07:49:00.758100" + }, + "metadata": { + "saved_at": "2025-08-16T07:49:00.759101", + "file_path": "retrieval_logs\\retrieval_20250816_074900_759_hybrid_k10_ck4_Beyond_Natural_Language_Processing_what_other_doma.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_074923_634_hybrid_k3_ck2_What_is_the_primary_problem_that_LoRA_Low-Rank_Ada.json b/retrieval_logs/retrieval_20250816_074923_634_hybrid_k3_ck2_What_is_the_primary_problem_that_LoRA_Low-Rank_Ada.json new file mode 100644 index 0000000000000000000000000000000000000000..75f30d4eecd0744b2f0a888a5f91a1f5629f34e9 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_074923_634_hybrid_k3_ck2_What_is_the_primary_problem_that_LoRA_Low-Rank_Ada.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T07:49:23.634988", + "query": "What is the primary problem that LoRA (Low-Rank Adaptation) aims to solve in the context of large language models?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 15254, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"An Emulator for Fine-tuning Large Language Models using Small Language Models\", \"type\": \"methodology\", \"description\": \"This methodology describes an emulator for fine-tuning large language models using small language models.\", \"created_at\": \"2025-08-15 17:15:31\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Lora: Low-rank adaptation of large language models.\", \"type\": \"methodology\", \"description\": \"This is a paper that introduces 'Lora', a method for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS\", \"type\": \"abstract\", \"description\": \"This abstract introduces LoRA (Low-Rank Adaptation) as a method to adapt large language models to specific tasks or domains. It highlights the increasing infeasibility of full fine-tuning for larger models due to computational costs, using GPT-3 175B as an example. LoRA addresses this by freezing pretrained model weights and injecting trainable rank decomposition matrices into Transformer layers, significantly reducing trainable parameters for downstream tasks.\", \"created_at\": \"2025-08-15 14:52:21\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Small Language Models\", \"type\": \"abstract\", \"description\": \"Small Language Models (SLMs) are a rapidly advancing area in natural language processing, characterized by their efficiency, cost-effectiveness, and adaptability, making them well-suited for resource-constrained environments. Typically possessing between fewer than one billion and up to ten billion parameters, SLMs are generally contrasted with Large Language Models (LLMs). SLMs offer several advantages over LLMs, including lower inference latency, efficient development, ease of customization, improved on-device processing, enhanced privacy and security, faster response times, and greater personalization. These attributes make SLMs ideal for applications requiring localized data handling for privacy, minimal inference latency, and domain knowledge acquisition through lightweight fine-tuning. They can also have fewer security issues compared to LLMs.\\n\\nSmall Language Models can be fine-tuned for specific functions, such as hallucination detection, and can even outperform LLMs in certain aspects. Their fast inference speed and characteristics allow them to emulate and enhance LLM behavior, acting as proxies for tasks like training data selection and parameter adjustments during fine-tuning. SLMs are often fine-tuned for specific domains and can achieve performance comparable to or exceeding larger models within those specialties, making them well-suited for edge deployments where computational resources are limited but domain precision is crucial. Small Language Models are utilized for tasks such as re-ranking retrieved documents, bridging the gap between queries and knowledge by rewriting inputs, and invoking software APIs. They can also provide nuanced feedback to LLMs to help them overcome issues like repetitive vocabulary, and are used in the context of fine-tuning Large Language Models.\\n\\nThe training strategies for Small Language Models differ from LLM training, aiming to deliver competitive performance. SLMs can be trained through multiple rounds, with strategies like training hard examples with higher probability and adjusting data sampling probability based on sample loss demonstrating favorable balances between performance and training efficiency. Discussions surrounding SLMs also delve into strategies for enhancing their performance, such as retrieval systems and self-adaptive methods, their collaboration with LLMs, aspects of trustworthiness, and advanced training strategies. Challenges related to distribution mismatch during training are noted, and discussions also focus on improving SLMs' reasoning. Examples of advancements in this field include Phi-1.5, Phi-2, Phi-3, and xLSTM. Potential applications for Small Language Models span various sectors, including healthcare, finance, and e-commerce. The discourse on SLMs is situated within the broader context of the era of Large Language Models, with diverse contributors driving innovation, and they are examined in terms of their performance in specific domains, particularly when contrasted with LLMs, and their performance on coding benchmarks. Small Language Models are also being investigated for their potential to replace Large Language Models when learning Computer Science, especially when combined with Retrieval-Augmented Generation.The text discusses Small Language Models in the context of their compression and acceleration, referencing specific methodologies and research papers.\", \"created_at\": \"2025-08-15 17:25:58\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Parameter-efficient fine-tuning methods\", \"type\": \"methodology\", \"description\": \"Parameter-efficient fine-tuning methods, such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs.\", \"created_at\": \"2025-08-15 16:31:28\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Small Language Models (SLMs)\", \"type\": \"abstract\", \"description\": \"Small Language Models (SLMs) are a focus of research, with efforts to improve their performance by optimizing teacher LLM selection and applying emerging techniques from larger LLMs.Small Language Models (SLMs) are smaller, more efficient language models, typically defined as having fewer than 7 billion parameters, though their size can extend to the largest manageable under limited resource conditions. Derived from larger language models (LLMs), SLMs are increasingly favored for their low inference latency, cost-effectiveness, efficient development, and easy customization and adaptability, offering savings in pre-training and inference with reduced memory and storage needs. This makes them vital for applications requiring efficient resource use and effective in resource-limited settings, including low-power devices like edge devices, by improving on-device processing through enhanced privacy, security, response times, and personalization. SLMs are optimized and fine-tuned on specific data and are essential in resource-limited settings. They exhibit diverse capabilities across domains and are being specialized through instruction tuning using LLMs-generated data. SLMs enhance recommendation systems due to their robust generalization, reasoning abilities, and in-context learning, addressing challenges like cold-start problems and distribution biases. SLMs support long-term planning, replace traditional encoders, and use parallel low-rank parameters to inject personalized user knowledge. They play a crucial role in web search, including document encoding, text reordering, and query rewriting. SLMs are also distilled from LLMs using the 'Adapt-and-Distill' strategy, though adapting both teacher and student models to the target domain can be time-consuming. SLMs have demonstrated significant potential in addressing issues associated with LLMs by achieving comparable performance for domain-specific problems, offering advantages in efficiency, cost, flexibility, and customization due to their reduced parameter count. They can also complement LLMs for task completion and are noted for their ability to process longer sequences more efficiently, which enhances their functionality under strict hardware constraints, utilizing activation functions like GeLU and SiLU and benefiting from efficient attention mechanisms. Parameter-sharing techniques are employed in their architecture design to minimize space usage and reduce size. SLMs are effective with adaptation techniques like LoRA, prefixtuning, and adapter modules, with Mamba considered more suitable for SLMs due to its parameter utilization. SLMs benefit from tokenization strategies that ensure a balance between vocabulary coverage and model compactness, crucial for improving generalization while minimizing computational demands, and are fine-tuned on specific tasks using parameter-efficient fine-tuning methods. SLMs are also the subject of improvement through methods like Supervised Fine-Tuning (SFT) and Knowledge Distillation (KD).\", \"created_at\": \"2025-08-15 17:08:36\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al.\", \"entity2\": \"Lora: Low-rank adaptation of large language models.\", \"description\": \"The authors are associated with the paper 'Lora: Low-rank adaptation of large language models.'.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"An Emulator for Fine-tuning Large Language Models using Small Language Models\", \"entity2\": \"Large Language Models\", \"description\": \"This methodology describes an emulator for fine-tuning Large Language Models.\", \"created_at\": \"2025-08-15 17:15:40\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"An Emulator for Fine-tuning Large Language Models using Small Language Models\", \"entity2\": \"Small Language Models\", \"description\": \"This methodology uses Small Language Models for fine-tuning Large Language Models.\", \"created_at\": \"2025-08-15 17:15:40\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Parameter-efficient fine-tuning methods\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"Parameter-efficient fine-tuning methods are particularly effective for SLMs.\", \"created_at\": \"2025-08-15 16:31:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 268\\n\\nIn such cases, a smaller model could be fine-tuned instead to serve functions such as hallucination detection. • SLMs can outperform LLMs in certain aspects, hence combining SLMs with LLMs can create a more powerful model, e.g., SLMs typically have fewer security issues than LLMs, and integrating both can generate a model that is both powerful and secure. • SLMs, despite their limitations, can alert LLMs to these issues, such as the tendency to produce repetitive vocabulary. Designing contrastive losses can help LLMs overcome these issues by learning from the nuanced feedback of SLMs. • The fast inference speed and certain characteristics of SLMs can emulate and thus enhance the behavior of LLMs, acting as effective proxies. For example, the training data selection for LLMs can be guided by the difficulty metrics assessed by SLMs, and the parameter adjustments during the fine-tuning of SLMs can also approximate the fine-tuning processes of LLMs. Table 13. Synergy between SLMs and LLMs\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 367\\n\\nAdvances in Neural Information Processing Systems 35 (2022), 31809–31826. [181] Teven Le Scao, Angela Fan, Christopher Akiki, Ellie Pavlick, Suzana Ilić, Daniel Hesslow, Roman Castagné, Alexandra Sasha Luccioni, François Yvon, Matthias Gallé, et al. 2023. Bloom: A 176b-parameter open-access multilingual language model. (2023). [182] Hojae Lee, Junho Kim, and SangKeun Lee. 2024. Mentor-KD: Making Small Language Models Better Multi-step Reasoners. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 17643–17658. https://doi.org/10.18653/v1/2024.emnlp-main.977 \\n[183] Jooyoung Lee, Fan Yang, Thanh Tran, Qian Hu, Emre Barut, and Kai-Wei Chang. 2024. Can Small Language Models Help Large Language Models Reason Better?: LM-Guided Chain-of-Thought.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 4.571, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 4.571, + "start_timestamp": "2025-08-16T07:49:19.063984", + "end_timestamp": "2025-08-16T07:49:23.634989" + }, + "metadata": { + "saved_at": "2025-08-16T07:49:23.634988", + "file_path": "retrieval_logs\\retrieval_20250816_074923_634_hybrid_k3_ck2_What_is_the_primary_problem_that_LoRA_Low-Rank_Ada.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_074923_674_hybrid_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json b/retrieval_logs/retrieval_20250816_074923_674_hybrid_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json new file mode 100644 index 0000000000000000000000000000000000000000..5680fd61bdb6e6330f5cb27cc540fc154921cc17 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_074923_674_hybrid_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T07:49:23.674731", + "query": "What is the key innovation of LoRA compared to other parameter-efficient fine-tuning methods like adapter tuning or prefix tuning?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 37896, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Lora: Low-rank adaptation of large language models.\", \"type\": \"methodology\", \"description\": \"This is a paper that introduces 'Lora', a method for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Fine-Tuning\", \"type\": \"methodology\", \"description\": \"Fine-tuning is a process where SLMs are fine-tuned on specific tasks using task-specific data and loss functions. Parameter-efficient fine-tuning methods, such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs.Fine-tuning is a technique discussed in the context of LLMs and potential unintended outcomes.\", \"created_at\": \"2025-08-15 17:25:11\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Parameter-efficient fine-tuning methods\", \"type\": \"methodology\", \"description\": \"Parameter-efficient fine-tuning methods, such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs.\", \"created_at\": \"2025-08-15 16:31:28\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"L_0 regularization\", \"type\": \"methodology\", \"description\": \"L_0 regularization is used to determine mask elements and achieve model sparsity, enabling efficient parameter sharing.\", \"created_at\": \"2025-08-15 15:26:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"parameter sharing\", \"type\": \"abstract\", \"description\": \"A concept that multi-task recommendation systems struggle to balance, along with resource utilization.Parameter sharing is enabled by L_0 regularization.\", \"created_at\": \"2025-08-15 15:26:41\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"deep learning\", \"type\": \"methodology\", \"description\": \"Deep learning has seen numerous successful applications, primarily relying on variants of stochastic gradient descent for optimization.\", \"created_at\": \"2025-08-15 14:59:55\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"gradient-based methods\", \"type\": \"methodology\", \"description\": \"Gradient-based methods are simple optimization techniques used in deep learning, and advances in the field often focus on making model structures more compatible with them.\", \"created_at\": \"2025-08-15 14:59:55\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Fine-Tuning\", \"entity2\": \"Parameter-efficient fine-tuning methods\", \"description\": \"Fine-tuning utilizes parameter-efficient fine-tuning methods for SLMs.\", \"created_at\": \"2025-08-15 16:31:31\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"L_0 regularization\", \"entity2\": \"parameter sharing\", \"description\": \"L_0 regularization enables efficient parameter sharing.\", \"created_at\": \"2025-08-15 15:26:47\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"deep learning\", \"entity2\": \"gradient-based methods\", \"description\": \"Advances in deep learning often involve adapting model structures to be more amenable to optimization by simple gradient-based methods.\", \"created_at\": \"2025-08-15 14:59:55\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 107, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 108, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 109, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 110, \"entity1\": \"E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al.\", \"entity2\": \"Lora: Low-rank adaptation of large language models.\", \"description\": \"The authors are associated with the paper 'Lora: Low-rank adaptation of large language models.'.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 7.3156, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 7.3156, + "start_timestamp": "2025-08-16T07:49:16.359131", + "end_timestamp": "2025-08-16T07:49:23.674732" + }, + "metadata": { + "saved_at": "2025-08-16T07:49:23.674731", + "file_path": "retrieval_logs\\retrieval_20250816_074923_674_hybrid_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_074923_705_hybrid_k3_ck2_How_does_the_Low-Rank_Adaptation_LoRA_technique_mo.json b/retrieval_logs/retrieval_20250816_074923_705_hybrid_k3_ck2_How_does_the_Low-Rank_Adaptation_LoRA_technique_mo.json new file mode 100644 index 0000000000000000000000000000000000000000..9c71a9386a2e408b24bb12418a4d10cdd0f542dc --- /dev/null +++ b/retrieval_logs/retrieval_20250816_074923_705_hybrid_k3_ck2_How_does_the_Low-Rank_Adaptation_LoRA_technique_mo.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T07:49:23.705290", + "query": "How does the Low-Rank Adaptation (LoRA) technique modify the pre-trained weights of large language models for efficient fine-tuning?", + "query_mode": "hybrid", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 12713, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Lora: Low-rank adaptation of large language models.\", \"type\": \"methodology\", \"description\": \"This is a paper that introduces 'Lora', a method for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"An Emulator for Fine-tuning Large Language Models using Small Language Models\", \"type\": \"methodology\", \"description\": \"This methodology describes an emulator for fine-tuning large language models using small language models.\", \"created_at\": \"2025-08-15 17:15:31\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS\", \"type\": \"abstract\", \"description\": \"This abstract introduces LoRA (Low-Rank Adaptation) as a method to adapt large language models to specific tasks or domains. It highlights the increasing infeasibility of full fine-tuning for larger models due to computational costs, using GPT-3 175B as an example. LoRA addresses this by freezing pretrained model weights and injecting trainable rank decomposition matrices into Transformer layers, significantly reducing trainable parameters for downstream tasks.\", \"created_at\": \"2025-08-15 14:52:21\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Small Language Models\", \"type\": \"abstract\", \"description\": \"Small Language Models (SLMs) are a rapidly advancing area in natural language processing, characterized by their efficiency, cost-effectiveness, and adaptability, making them well-suited for resource-constrained environments. Typically possessing between fewer than one billion and up to ten billion parameters, SLMs are generally contrasted with Large Language Models (LLMs). SLMs offer several advantages over LLMs, including lower inference latency, efficient development, ease of customization, improved on-device processing, enhanced privacy and security, faster response times, and greater personalization. These attributes make SLMs ideal for applications requiring localized data handling for privacy, minimal inference latency, and domain knowledge acquisition through lightweight fine-tuning. They can also have fewer security issues compared to LLMs.\\n\\nSmall Language Models can be fine-tuned for specific functions, such as hallucination detection, and can even outperform LLMs in certain aspects. Their fast inference speed and characteristics allow them to emulate and enhance LLM behavior, acting as proxies for tasks like training data selection and parameter adjustments during fine-tuning. SLMs are often fine-tuned for specific domains and can achieve performance comparable to or exceeding larger models within those specialties, making them well-suited for edge deployments where computational resources are limited but domain precision is crucial. Small Language Models are utilized for tasks such as re-ranking retrieved documents, bridging the gap between queries and knowledge by rewriting inputs, and invoking software APIs. They can also provide nuanced feedback to LLMs to help them overcome issues like repetitive vocabulary, and are used in the context of fine-tuning Large Language Models.\\n\\nThe training strategies for Small Language Models differ from LLM training, aiming to deliver competitive performance. SLMs can be trained through multiple rounds, with strategies like training hard examples with higher probability and adjusting data sampling probability based on sample loss demonstrating favorable balances between performance and training efficiency. Discussions surrounding SLMs also delve into strategies for enhancing their performance, such as retrieval systems and self-adaptive methods, their collaboration with LLMs, aspects of trustworthiness, and advanced training strategies. Challenges related to distribution mismatch during training are noted, and discussions also focus on improving SLMs' reasoning. Examples of advancements in this field include Phi-1.5, Phi-2, Phi-3, and xLSTM. Potential applications for Small Language Models span various sectors, including healthcare, finance, and e-commerce. The discourse on SLMs is situated within the broader context of the era of Large Language Models, with diverse contributors driving innovation, and they are examined in terms of their performance in specific domains, particularly when contrasted with LLMs, and their performance on coding benchmarks. Small Language Models are also being investigated for their potential to replace Large Language Models when learning Computer Science, especially when combined with Retrieval-Augmented Generation.The text discusses Small Language Models in the context of their compression and acceleration, referencing specific methodologies and research papers.\", \"created_at\": \"2025-08-15 17:25:58\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes\", \"type\": \"methodology\", \"description\": \"This methodology aims to outperform larger language models by using less training data and smaller model sizes, achieved through a step-by-step distillation process.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Lora: Low-rank adaptation of large language models\", \"type\": \"methodology\", \"description\": \"Lora is a method for adapting large language models, as described in an arXiv preprint from 2021.This methodology, also known as LoRA, is a technique for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al.\", \"entity2\": \"Lora: Low-rank adaptation of large language models.\", \"description\": \"The authors are associated with the paper 'Lora: Low-rank adaptation of large language models.'.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"An Emulator for Fine-tuning Large Language Models using Small Language Models\", \"entity2\": \"Large Language Models\", \"description\": \"This methodology describes an emulator for fine-tuning Large Language Models.\", \"created_at\": \"2025-08-15 17:15:40\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"An Emulator for Fine-tuning Large Language Models using Small Language Models\", \"entity2\": \"Small Language Models\", \"description\": \"This methodology uses Small Language Models for fine-tuning Large Language Models.\", \"created_at\": \"2025-08-15 17:15:40\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes\", \"entity2\": \"Lora: Low-rank adaptation of large language models\", \"description\": \"Both methodologies aim to achieve better performance with smaller models or less data, suggesting a potential connection in their goals or underlying principles.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 268\\n\\nIn such cases, a smaller model could be fine-tuned instead to serve functions such as hallucination detection. • SLMs can outperform LLMs in certain aspects, hence combining SLMs with LLMs can create a more powerful model, e.g., SLMs typically have fewer security issues than LLMs, and integrating both can generate a model that is both powerful and secure. • SLMs, despite their limitations, can alert LLMs to these issues, such as the tendency to produce repetitive vocabulary. Designing contrastive losses can help LLMs overcome these issues by learning from the nuanced feedback of SLMs. • The fast inference speed and certain characteristics of SLMs can emulate and thus enhance the behavior of LLMs, acting as effective proxies. For example, the training data selection for LLMs can be guided by the difficulty metrics assessed by SLMs, and the parameter adjustments during the fine-tuning of SLMs can also approximate the fine-tuning processes of LLMs. Table 13. Synergy between SLMs and LLMs\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 367\\n\\nAdvances in Neural Information Processing Systems 35 (2022), 31809–31826. [181] Teven Le Scao, Angela Fan, Christopher Akiki, Ellie Pavlick, Suzana Ilić, Daniel Hesslow, Roman Castagné, Alexandra Sasha Luccioni, François Yvon, Matthias Gallé, et al. 2023. Bloom: A 176b-parameter open-access multilingual language model. (2023). [182] Hojae Lee, Junho Kim, and SangKeun Lee. 2024. Mentor-KD: Making Small Language Models Better Multi-step Reasoners. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 17643–17658. https://doi.org/10.18653/v1/2024.emnlp-main.977 \\n[183] Jooyoung Lee, Fan Yang, Thanh Tran, Qian Hu, Emre Barut, and Kai-Wei Chang. 2024. Can Small Language Models Help Large Language Models Reason Better?: LM-Guided Chain-of-Thought.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 4.6413, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 4.6413, + "start_timestamp": "2025-08-16T07:49:19.063984", + "end_timestamp": "2025-08-16T07:49:23.705291" + }, + "metadata": { + "saved_at": "2025-08-16T07:49:23.705290", + "file_path": "retrieval_logs\\retrieval_20250816_074923_705_hybrid_k3_ck2_How_does_the_Low-Rank_Adaptation_LoRA_technique_mo.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_074939_582_hybrid_k5_ck2_On_what_tasks_and_datasets_has_LoRA_been_evaluated.json b/retrieval_logs/retrieval_20250816_074939_582_hybrid_k5_ck2_On_what_tasks_and_datasets_has_LoRA_been_evaluated.json new file mode 100644 index 0000000000000000000000000000000000000000..969436300e27c3b7bfe6306e9df891881fef475d --- /dev/null +++ b/retrieval_logs/retrieval_20250816_074939_582_hybrid_k5_ck2_On_what_tasks_and_datasets_has_LoRA_been_evaluated.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T07:49:39.582801", + "query": "On what tasks and datasets has LoRA been evaluated, and what metrics were used to demonstrate its effectiveness?", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 37864, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"three datasets\", \"type\": \"category\", \"description\": \"Three datasets were used to evaluate the performance of LoRA.\", \"created_at\": \"2025-08-13 22:50:03\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-15 17:08:15\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"MNLI-matched\", \"type\": \"category\", \"description\": \"A dataset used for evaluating adaptation methods in language models, matched with WikiSQL.MNLI-matched is a dataset used to evaluate the performance of GPT-3 in few-shot and fine-tuned settings.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"NLG\", \"type\": \"category\", \"description\": \"NLG is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-13 22:43:49\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"NLU\", \"type\": \"abstract\", \"description\": \"NLU (Natural Language Understanding) development is hindered by the complexity, ambiguity, and diversity of human language.NLU is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-15 15:43:09\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"LoRA + PL\", \"type\": \"category\", \"description\": \"LoRA + PL combines LoRA with prefix-layer tuning, using trainable embedding and activation parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"MNLI\", \"type\": \"abstract\", \"description\": \"MNLI is a dataset on which the DeBERTa-Large model was fine-tuned for the purpose of classification guided by semantic equivalence.MNLI, which stands for Multi-Genre Natural Language Inference, is a benchmark dataset and task that is part of the General Language Understanding Evaluation (GLUE) benchmark suite. It is a key resource for evaluating the performance of natural language inference (NLI) models, primarily using accuracy as a metric to assess model capabilities and size. MNLI provides a standardized method for measuring a language model's ability to understand the relationship between sentence pairs. The dataset is utilized in research, including studies by Williams et al. (2018), and is employed for evaluating various adaptation approaches, such as those in low-data settings (using subsets referred to as \\\"MNLI-n tasks\\\"). Furthermore, MNLI serves as a benchmark for evaluating the effectiveness of adaptation techniques like LoRA modules and the combination of LoRA and prefix-tuning, alongside other benchmarks like WikiSQL. Different sizes of the MNLI dataset are used, including 100, 1k, 10k, and 392k. MNLI is also used for fine-tuning a classifier guided by semantic equivalence in the clustering stage. Its checkpoints are sometimes used for model initialization in subsequent experiments.\", \"created_at\": \"2025-08-15 16:59:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"LoRA + PE\", \"type\": \"category\", \"description\": \"LoRA + PE combines LoRA with prefix-embedding tuning, using trainable embedding parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:07\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"LoRA + PL\", \"entity2\": \"MNLI\", \"description\": \"LoRA + PL is evaluated on the MNLI dataset.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA + PE\", \"entity2\": \"MNLI\", \"description\": \"LoRA + PE is evaluated on the MNLI dataset.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 107, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 108, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 8.7262, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 8.7262, + "start_timestamp": "2025-08-16T07:49:30.856095", + "end_timestamp": "2025-08-16T07:49:39.582291" + }, + "metadata": { + "saved_at": "2025-08-16T07:49:39.582801", + "file_path": "retrieval_logs\\retrieval_20250816_074939_582_hybrid_k5_ck2_On_what_tasks_and_datasets_has_LoRA_been_evaluated.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_074939_770_hybrid_k10_ck4_How_does_the_performance_of_LoRA_compare_to_full_f.json b/retrieval_logs/retrieval_20250816_074939_770_hybrid_k10_ck4_How_does_the_performance_of_LoRA_compare_to_full_f.json new file mode 100644 index 0000000000000000000000000000000000000000..82be108f2fb8b4dd354112809bc5ea0970a54e9d --- /dev/null +++ b/retrieval_logs/retrieval_20250816_074939_770_hybrid_k10_ck4_How_does_the_performance_of_LoRA_compare_to_full_f.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T07:49:39.770287", + "query": "How does the performance of LoRA compare to full fine-tuning and other parameter-efficient methods across various downstream tasks?", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 48271, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"DS+\", \"type\": \"methodology\", \"description\": \"DS+ is a methodology that incorporates S4L and L4S modules with Prompt Pruning (PP) and 2-stage Confidence Distillation (2CD) for better input processing and knowledge transfer.\", \"created_at\": \"2025-08-15 17:01:02\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"fine-tuning\", \"type\": \"methodology\", \"description\": \"Fine-tuning is a method used in natural language processing to adapt large-scale, pre-trained language models to multiple downstream applications by updating all parameters of the pre-trained model. This technique is employed for improving the performance of Small Language Models (SLMs), particularly for coding tasks and long context tasks, and is considered an advanced method for optimizing models. Fine-tuning is also a technique for acquiring SLMs and is a meticulous process often required post-pretraining to enhance the safety of SLMs, involving strategies to distill capabilities from Large Language Models (LLMs). This process allows SLMs to exhibit specialized capabilities and is a methodology that DS+ outperforms in accuracy and cost efficiency.\", \"created_at\": \"2025-08-15 17:01:04\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Fine-Tune\", \"type\": \"category\", \"description\": \"Fine-Tune is a GPT-3 adaptation method used for training language models, particularly effective in hyperparameter tuning. It boasts 175 billion trainable parameters and demonstrates superior performance compared to methods like PrefixEmbed and PrefixLayer, especially on the MNLI-100 (also referenced as MNLI100) dataset, achieving an accuracy of 89.5%. Further evaluation on other datasets shows an accuracy of 73.8% on WikiSQL. Fine-Tune's performance has been compared to LoRA and other similar training methods for language models, and it is frequently used to evaluate performance on subsets of the MNLI dataset.\", \"created_at\": \"2025-08-13 23:02:45\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"MNLI100\", \"type\": \"event\", \"description\": \"MNLI100 is a dataset used to evaluate the performance of different adaptation approaches for GPT-3.\", \"created_at\": \"2025-08-13 22:57:16\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Fine-Tuning\", \"type\": \"methodology\", \"description\": \"Fine-tuning is a process where SLMs are fine-tuned on specific tasks using task-specific data and loss functions. Parameter-efficient fine-tuning methods, such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs.Fine-tuning is a technique discussed in the context of LLMs and potential unintended outcomes.\", \"created_at\": \"2025-08-15 17:25:11\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Parameter-efficient fine-tuning methods\", \"type\": \"methodology\", \"description\": \"Parameter-efficient fine-tuning methods, such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs.\", \"created_at\": \"2025-08-15 16:31:28\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"MoE-based model\", \"type\": \"methodology\", \"description\": \"The MoE-based model can provide benefits for semantic segmentation tasks, alleviating hardware pressure through sparse activation and a divide-and-conquer strategy, and achieving excellent performance in tasks requiring model stability and generalization.\", \"created_at\": \"2025-08-15 15:30:45\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"model performance\", \"type\": \"abstract\", \"description\": \"Model performance can be improved by using Mixture-of-Experts (MoE) models, with MoA achieving superior performance and reduced computational overhead. MoE models can maintain or even improve model performance, as demonstrated by the GLaM MoE architecture. Specifically, applying MoE to language modeling and machine translation tasks has shown significant improvements in model performance on large datasets. Furthermore, model performance can be enhanced by dynamically selecting the most suitable expert network for a given task without a substantial increase in parameters, while also exploring the interpretability of Convolutional Neural Networks (CNNs) in computer vision tasks. However, integrating different object detectors with the MoE architecture without proper calibration can negatively impact model performance due to unfair competition.Model performance in NLG tasks can be enhanced by specially designed MoE architectures.\", \"created_at\": \"2025-08-15 15:43:09\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Model-agnostic meta-learning for fast adaptation of deep networks\", \"type\": \"methodology\", \"description\": \"This is a methodology for fast adaptation of deep networks, cited as reference [226].\", \"created_at\": \"2025-08-15 15:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Reptile: a scalable metalearning algorithm\", \"type\": \"methodology\", \"description\": \"This is a scalable metalearning algorithm, cited as reference [227].\", \"created_at\": \"2025-08-15 15:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"L_0 regularization\", \"type\": \"methodology\", \"description\": \"L_0 regularization is used to determine mask elements and achieve model sparsity, enabling efficient parameter sharing.\", \"created_at\": \"2025-08-15 15:26:41\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"parameter sharing\", \"type\": \"abstract\", \"description\": \"A concept that multi-task recommendation systems struggle to balance, along with resource utilization.Parameter sharing is enabled by L_0 regularization.\", \"created_at\": \"2025-08-15 15:26:41\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"MoEs in deep learning\", \"type\": \"abstract\", \"description\": \"This research aims to understand the behaviors of Mixture-of-Experts (MoEs) in deep learning, addressing a gap in existing knowledge.\", \"created_at\": \"2025-08-15 15:34:12\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"nonlinear MoE model\", \"type\": \"results\", \"description\": \"A nonlinear MoE model achieved better performance than a linear MoE model.\", \"created_at\": \"2025-08-15 15:34:13\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"MNLI-Full\", \"type\": \"event\", \"description\": \"MNLI-Full is a dataset used to evaluate the performance of different adaptation approaches for GPT-3.\", \"created_at\": \"2025-08-13 22:57:16\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"loss\", \"type\": \"results\", \"description\": \"Loss is a metric used to evaluate a model's performance, which decreases during the training process. Clients aim to minimize this quantity on their local data, potentially with regularization. Loss is calculated using parameters such as alpha, a hyperparameter controlling the weight of auxiliary loss, N, f_i, and Q_i. In knowledge distillation, loss is calculated as the difference between the probability distributions of the teacher and student models, denoted as D(q, p). Loss is also used as a metric to update the data sampling probability in each round of training for SLMs, based on how well a sample fits. Parameter averaging has demonstrated significantly lower loss on the full MNIST training set compared to models trained independently on smaller datasets, with the loss on the total training set being significantly reduced and outperforming the loss of either parent model. The average of two models trained on different subsets of data achieves significantly lower loss on the full training set compared to models trained on individual subsets. Common initialization results in a significant reduction in loss compared to independent initialization. The behavior of loss in relation to a mixing weight $\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\theta$ has been observed in two different initialization scenarios.The loss is a metric evaluated on the full MNIST training set for models generated through parameter averaging. Common initialization results in a significant reduction in loss compared to independent initialization.\", \"created_at\": \"2025-08-15 17:28:50\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"parameter averaging\", \"type\": \"methodology\", \"description\": \"Parameter averaging is a technique used in federated learning, particularly within the FedAvg algorithm, to generate new models by combining the parameters of two models trained independently on different data subsets. This process involves averaging the weights of these models, often utilizing a shared starting model for each round of FedAvg. The combination is typically achieved using a formula like $\\\\\\\\theta w + ( 1 - \\\\\\\\theta ) w ^ { \\\\\\\\prime }$, where $w$ and $w'$ represent the parameters of the two models and $\\\\\\\\theta$ is a variable. The effectiveness and outcome of parameter averaging can be influenced by the initial state of the models.Parameter averaging is a technique used to generate models by combining parameters of two models using the formula $\\\\\\\\theta w + ( 1 - \\\\\\\\theta ) w ^ { \\\\\\\\prime }$ for various values of $\\\\\\\\theta$. This process is shown to be influenced by model initialization.\", \"created_at\": \"2025-08-15 17:28:50\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"MNLI-matched\", \"type\": \"category\", \"description\": \"A dataset used for evaluating adaptation methods in language models, matched with WikiSQL.MNLI-matched is a dataset used to evaluate the performance of GPT-3 in few-shot and fine-tuned settings.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"DS+\", \"entity2\": \"fine-tuning\", \"description\": \"DS+ outperforms fine-tuning in accuracy and cost efficiency.\", \"created_at\": \"2025-08-15 17:01:08\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Fine-Tune\", \"entity2\": \"MNLI100\", \"description\": \"Fine-Tune outperforms PrefixLayer and PrefixEmbed on MNLI100.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Fine-Tuning\", \"entity2\": \"Parameter-efficient fine-tuning methods\", \"description\": \"Fine-tuning utilizes parameter-efficient fine-tuning methods for SLMs.\", \"created_at\": \"2025-08-15 16:31:31\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"MoE-based model\", \"entity2\": \"model performance\", \"description\": \"Dynamically selecting the most suitable expert network for the current task improves model performance without significantly increasing the number of parameters.\", \"created_at\": \"2025-08-15 15:31:00\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Model-agnostic meta-learning for fast adaptation of deep networks\", \"entity2\": \"Reptile: a scalable metalearning algorithm\", \"description\": \"Both are cited methodologies in the field of machine learning, and both explicitly deal with meta-learning and adaptation of deep networks.\", \"created_at\": \"2025-08-15 15:51:17\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"L_0 regularization\", \"entity2\": \"parameter sharing\", \"description\": \"L_0 regularization enables efficient parameter sharing.\", \"created_at\": \"2025-08-15 15:26:47\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"MoEs in deep learning\", \"entity2\": \"nonlinear MoE model\", \"description\": \"The research compares the performance of nonlinear MoE models within the context of MoEs in deep learning.\", \"created_at\": \"2025-08-15 15:34:16\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"loss\", \"entity2\": \"parameter averaging\", \"description\": \"Parameter averaging is shown to achieve significantly lower loss on the full MNIST training set than models trained on individual subsets.\", \"created_at\": \"2025-08-15 17:28:21\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 107, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 108, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 109, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 110, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 111, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 112, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 113, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 114, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 16\\n\\n{ 1 } \\\\in \\\\mathbb { R } ^ { h \\\\times r }$ and $\\\\mathbf { L } _ { 2 } \\\\in \\\\mathbb { R } ^ { r \\\\times o }$ , and $s$ is a scalar. Memory Requirement of Parameter-Efficient Finetuning One important point of discussion is the memory requirement of LoRA during training both in terms of the number and size of adapters used. Since the memory footprint of LoRA is so minimal, we can use more adapters to improve performance without significantly increasing the total memory used. While LoRA was designed as a Parameter Efficient Finetuning (PEFT) method, most of the memory footprint for LLM finetuning comes from activation gradients and not from the learned LoRA parameters. For a 7B LLaMA model trained on FLAN v2 with a batch size of 1, with LoRA weights equivalent to commonly used $0 . 2 \\\\%$ of the original model weights[28, 37], the LoRA input gradients have a memory footprint of 567 MB while the LoRA parameters take up only $2 6 \\\\mathrm { M B }$ .\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 2\\n\\nrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks. Compared to GPT-3 175B fine-tuned with Adam, LoRA can reduce the number of trainable parameters by 10,000 times and the GPU memory requirement by 3 times. LoRA performs on-par or better than finetuning in model quality on RoBERTa, DeBERTa, GPT-2, and GPT-3, despite having fewer trainable parameters, a higher training throughput, and, unlike adapters, no additional inference latency. We also provide an empirical investigation into rank-deficiency in language model adaptation, which sheds light on the efficacy of LoRA. We release a package that facilitates the integration of LoRA with PyTorch models and provide our implementations and model checkpoints for RoBERTa, DeBERTa, and GPT-2 at https://github.com/microsoft/LoRA. # 1 INTRODUCTION Many applications in natural language processing rely on adapting one large-scale, pre-trained language model to multiple downstream applications.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.2938, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 6.2938, + "start_timestamp": "2025-08-16T07:49:33.476503", + "end_timestamp": "2025-08-16T07:49:39.770287" + }, + "metadata": { + "saved_at": "2025-08-16T07:49:39.770287", + "file_path": "retrieval_logs\\retrieval_20250816_074939_770_hybrid_k10_ck4_How_does_the_performance_of_LoRA_compare_to_full_f.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_074939_825_hybrid_k10_ck4_What_are_the_potential_real-world_applications_and.json b/retrieval_logs/retrieval_20250816_074939_825_hybrid_k10_ck4_What_are_the_potential_real-world_applications_and.json new file mode 100644 index 0000000000000000000000000000000000000000..01557c2b4976c9c6bbfbe39d9740a28e026a0a80 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_074939_825_hybrid_k10_ck4_What_are_the_potential_real-world_applications_and.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T07:49:39.825188", + "query": "What are the potential real-world applications and benefits of using LoRA for adapting large language models to specific domains or tasks?", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 43957, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Lora: Low-rank adaptation of large language models\", \"type\": \"methodology\", \"description\": \"Lora is a method for adapting large language models, as described in an arXiv preprint from 2021.This methodology, also known as LoRA, is a technique for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"LoRA finetuning\", \"type\": \"methodology\", \"description\": \"LoRA finetuning is a personalized method applied to Large Language Models for each individual user, indicated by distinct sets of trapezoidal shapes labeled B₁, A₁, B₂, A₂, and Bₖ, Aₖ.LoRA finetuning is an approach used in recommendation systems, with personalized and non-personalized variations.\", \"created_at\": \"2025-08-15 16:33:10\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"enormous language models\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:24\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"NLU\", \"type\": \"abstract\", \"description\": \"NLU (Natural Language Understanding) development is hindered by the complexity, ambiguity, and diversity of human language.NLU is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-15 15:43:09\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"NLG\", \"type\": \"category\", \"description\": \"NLG is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-13 22:43:49\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Parameter-efficient transfer learning for NLP\", \"type\": \"methodology\", \"description\": \"This methodology focuses on efficient transfer learning for Natural Language Processing (NLP). It is presented in the International Conference on Machine Learning.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"MNLI\", \"type\": \"abstract\", \"description\": \"MNLI is a dataset on which the DeBERTa-Large model was fine-tuned for the purpose of classification guided by semantic equivalence.MNLI, which stands for Multi-Genre Natural Language Inference, is a benchmark dataset and task that is part of the General Language Understanding Evaluation (GLUE) benchmark suite. It is a key resource for evaluating the performance of natural language inference (NLI) models, primarily using accuracy as a metric to assess model capabilities and size. MNLI provides a standardized method for measuring a language model's ability to understand the relationship between sentence pairs. The dataset is utilized in research, including studies by Williams et al. (2018), and is employed for evaluating various adaptation approaches, such as those in low-data settings (using subsets referred to as \\\"MNLI-n tasks\\\"). Furthermore, MNLI serves as a benchmark for evaluating the effectiveness of adaptation techniques like LoRA modules and the combination of LoRA and prefix-tuning, alongside other benchmarks like WikiSQL. Different sizes of the MNLI dataset are used, including 100, 1k, 10k, and 392k. MNLI is also used for fine-tuning a classifier guided by semantic equivalence in the clustering stage. Its checkpoints are sometimes used for model initialization in subsequent experiments.\", \"created_at\": \"2025-08-15 16:59:30\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Large Language Models\", \"entity2\": \"Lora: Low-rank adaptation of large language models\", \"description\": \"Lora is a methodology for adapting Large Language Models.\", \"created_at\": \"2025-08-15 17:10:55\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Large Language Models\", \"entity2\": \"LoRA finetuning\", \"description\": \"LoRA finetuning is applied to Large Language Models for personalized user adaptation.\", \"created_at\": \"2025-08-15 16:33:13\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Lora: Low-rank adaptation of large language models\", \"entity2\": \"Parameter-efficient transfer learning for NLP\", \"description\": \"LoRA is a specific technique that falls under the broader category of parameter-efficient transfer learning for NLP.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 107, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 108, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 109, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2305.14314v1\\nChunk: 16\\n\\n{ 1 } \\\\in \\\\mathbb { R } ^ { h \\\\times r }$ and $\\\\mathbf { L } _ { 2 } \\\\in \\\\mathbb { R } ^ { r \\\\times o }$ , and $s$ is a scalar. Memory Requirement of Parameter-Efficient Finetuning One important point of discussion is the memory requirement of LoRA during training both in terms of the number and size of adapters used. Since the memory footprint of LoRA is so minimal, we can use more adapters to improve performance without significantly increasing the total memory used. While LoRA was designed as a Parameter Efficient Finetuning (PEFT) method, most of the memory footprint for LLM finetuning comes from activation gradients and not from the learned LoRA parameters. For a 7B LLaMA model trained on FLAN v2 with a batch size of 1, with LoRA weights equivalent to commonly used $0 . 2 \\\\%$ of the original model weights[28, 37], the LoRA input gradients have a memory footprint of 567 MB while the LoRA parameters take up only $2 6 \\\\mathrm { M B }$ .\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.3477, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 6.3477, + "start_timestamp": "2025-08-16T07:49:33.477505", + "end_timestamp": "2025-08-16T07:49:39.825189" + }, + "metadata": { + "saved_at": "2025-08-16T07:49:39.825188", + "file_path": "retrieval_logs\\retrieval_20250816_074939_825_hybrid_k10_ck4_What_are_the_potential_real-world_applications_and.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081408_314_local_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json b/retrieval_logs/retrieval_20250816_081408_314_local_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json new file mode 100644 index 0000000000000000000000000000000000000000..3bb2939c085606c162273191eb6e7f4f8659a828 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081408_314_local_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:14:08.314532", + "query": "What is the key innovation of LoRA compared to other parameter-efficient fine-tuning methods?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 3829, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Lora: Low-rank adaptation of large language models.\", \"type\": \"methodology\", \"description\": \"This is a paper that introduces 'Lora', a method for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"LoRA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS\", \"type\": \"abstract\", \"description\": \"This abstract introduces LoRA (Low-Rank Adaptation) as a method to adapt large language models to specific tasks or domains. It highlights the increasing infeasibility of full fine-tuning for larger models due to computational costs, using GPT-3 175B as an example. LoRA addresses this by freezing pretrained model weights and injecting trainable rank decomposition matrices into Transformer layers, significantly reducing trainable parameters for downstream tasks.\", \"created_at\": \"2025-08-15 14:52:21\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al.\", \"entity2\": \"Lora: Low-rank adaptation of large language models.\", \"description\": \"The authors are associated with the paper 'Lora: Low-rank adaptation of large language models.'.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 92\\n\\nMorrone, Q. De Laroussilhe, A. Gesmundo, M. Attariyan, and S. Gelly. Parameter-efficient transfer learning for nlp. In International Conference on Machine Learning, pages 2790–2799. PMLR, 2019. [28] E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, and W. Chen. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685, 2021. [29] S. Iyer, X. V. Lin, R. Pasunuru, T. Mihaylov, D. Simig, P. Yu, K. Shuster, T. Wang, Q. Liu, P. S. Koura, et al. Opt-iml: Scaling language model instruction meta learning through the lens of generalization. arXiv preprint arXiv:2212.12017, 2022. [30] A. Köksal, T. Schick, A. Korhonen, and H. Schütze. Longform: Optimizing instruction tuning for long text generation with corpus extraction. arXiv preprint arXiv:2304.08460, 2023. [31] A. Köpf, Y. Kilcher, D. von Rütte, S. Anagnostidis, Z.-R. Tam, K. Stevens, A. Barhoum, N. M. Duc, O. Stanley, R. Nagyfi, et al. Openassistant conversations–democratizing large language model alignment.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 13.6633, + "rag_initialization_seconds": 4.8706, + "query_execution_seconds": 8.7926, + "start_timestamp": "2025-08-16T08:13:54.651234", + "end_timestamp": "2025-08-16T08:14:08.314533" + }, + "metadata": { + "saved_at": "2025-08-16T08:14:08.314532", + "file_path": "retrieval_logs\\retrieval_20250816_081408_314_local_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081408_368_local_k5_ck2_On_what_tasks_and_datasets_has_LoRA_been_evaluated.json b/retrieval_logs/retrieval_20250816_081408_368_local_k5_ck2_On_what_tasks_and_datasets_has_LoRA_been_evaluated.json new file mode 100644 index 0000000000000000000000000000000000000000..98325d16e7d1aae45507c95dc4d75084f25eb294 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081408_368_local_k5_ck2_On_what_tasks_and_datasets_has_LoRA_been_evaluated.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:14:08.368007", + "query": "On what tasks and datasets has LoRA been evaluated, and what metrics were used to demonstrate its performance?", + "query_mode": "local", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 34724, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"three datasets\", \"type\": \"category\", \"description\": \"Three datasets were used to evaluate the performance of LoRA.\", \"created_at\": \"2025-08-13 22:50:03\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.2008, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 6.2008, + "start_timestamp": "2025-08-16T08:14:02.167187", + "end_timestamp": "2025-08-16T08:14:08.368007" + }, + "metadata": { + "saved_at": "2025-08-16T08:14:08.368007", + "file_path": "retrieval_logs\\retrieval_20250816_081408_368_local_k5_ck2_On_what_tasks_and_datasets_has_LoRA_been_evaluated.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081408_457_local_k20_ck10_How_does_LoRAs_performance_and_efficiency_compare_.json b/retrieval_logs/retrieval_20250816_081408_457_local_k20_ck10_How_does_LoRAs_performance_and_efficiency_compare_.json new file mode 100644 index 0000000000000000000000000000000000000000..0046107952467b32c9dcdc5ad410fa6f9a799cf6 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081408_457_local_k20_ck10_How_does_LoRAs_performance_and_efficiency_compare_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:14:08.457634", + "query": "How does LoRA's performance and efficiency compare to full fine-tuning and other parameter-efficient methods like adapter tuning or prefix tuning?", + "query_mode": "local", + "top_k": 20, + "chunk_top_k": 10, + "text_length": 42989, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: 2106.09685v2\\nChunk: 16\\n\\nSee the full study in Appendix B. # 4 OUR METHOD We describe the simple design of LoRA and its practical benefits. The principles outlined here apply to any dense layers in deep learning models, though we only focus on certain weights in Transformer language models in our experiments as the motivating use case. # 4.1 LOW-RANK-PARAMETRIZED UPDATE MATRICES A neural network contains many dense layers which perform matrix multiplication. The weight matrices in these layers typically have full-rank. When adapting to a specific task, Aghajanyan et al. (2020) shows that the pre-trained language models have a low “instrisic dimension” and can still learn efficiently despite a random projection to a smaller subspace. Inspired by this, we hypothesize the updates to the weights also have a low “intrinsic rank” during adaptation.\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"content\": \"Source: 2305.14314v1\\nChunk: 16\\n\\n{ 1 } \\\\in \\\\mathbb { R } ^ { h \\\\times r }$ and $\\\\mathbf { L } _ { 2 } \\\\in \\\\mathbb { R } ^ { r \\\\times o }$ , and $s$ is a scalar. Memory Requirement of Parameter-Efficient Finetuning One important point of discussion is the memory requirement of LoRA during training both in terms of the number and size of adapters used. Since the memory footprint of LoRA is so minimal, we can use more adapters to improve performance without significantly increasing the total memory used. While LoRA was designed as a Parameter Efficient Finetuning (PEFT) method, most of the memory footprint for LLM finetuning comes from activation gradients and not from the learned LoRA parameters. For a 7B LLaMA model trained on FLAN v2 with a batch size of 1, with LoRA weights equivalent to commonly used $0 . 2 \\\\%$ of the original model weights[28, 37], the LoRA input gradients have a memory footprint of 567 MB while the LoRA parameters take up only $2 6 \\\\mathrm { M B }$ .\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"content\": \"Source: 2305.14314v1\\nChunk: 102\\n\\n. Xia, et al. Glm-130b: An open bilingual pre-trained model. arXiv preprint arXiv:2210.02414, 2022. [72] S. Zhang, S. Roller, N. Goyal, M. Artetxe, M. Chen, S. Chen, C. Dewan, M. Diab, X. Li, X. V. Lin, et al. Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068, 2022. [73] R. Zhong, K. Lee, Z. Zhang, and D. Klein. Adapting language models for zero-shot learning by meta-tuning on dataset and prompt collections. arXiv preprint arXiv:2104.04670, 2021. # A QLoRA vs Standard Finetuning Experimental Setup Details # A.1 Hyperparameters for QLORA We do a hyperparameter search for LoRA over the following variables: LoRA dropout $\\\\left\\\\{ \\\\ 0 . 0 , 0 . 0 5 \\\\right.$ , 0.1}, LoRA $r \\\\ \\\\{ \\\\ 8 , 1 6 , 3 2 , 6 4 , 1 2 8 , 2 5 6 \\\\}$ , LoRA layers $\\\\{ { \\\\mathrm { k e y } } +$ query, all attention layers, all FFN layers, all layers, attention $+ \\\\mathrm { F F N }$ output layers}.\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"content\": \"Source: 2106.09685v2\\nChunk: 2\\n\\nrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks. Compared to GPT-3 175B fine-tuned with Adam, LoRA can reduce the number of trainable parameters by 10,000 times and the GPU memory requirement by 3 times. LoRA performs on-par or better than finetuning in model quality on RoBERTa, DeBERTa, GPT-2, and GPT-3, despite having fewer trainable parameters, a higher training throughput, and, unlike adapters, no additional inference latency. We also provide an empirical investigation into rank-deficiency in language model adaptation, which sheds light on the efficacy of LoRA. We release a package that facilitates the integration of LoRA with PyTorch models and provide our implementations and model checkpoints for RoBERTa, DeBERTa, and GPT-2 at https://github.com/microsoft/LoRA. # 1 INTRODUCTION Many applications in natural language processing rely on adapting one large-scale, pre-trained language model to multiple downstream applications.\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"content\": \"Source: 2106.09685v2\\nChunk: 96\\n\\ntion 5, LoRA performs better than or at least on-par with prefix-based approaches given the same number of trainable parameters.
Method# Trainable ParametersBLEU↑DART MET↑TER↓
GPT-2 Medium 354M 46.2
Fine-Tune 0.37M0.390.46
AdapterL AdapterL42.4 0.360.48
11M 24M FTTop245.2 0.380.46 0.56
PrefLayer 0.35M41.0 0.34 46.4 0.380.46
LoRA 0.35M47.1±.2 0.390.46
GPT-2 Large 774M
Fine-Tune 0.88M47.0 0.390.46
AdapterL45.7±.1 0.380.46
AdapterL 23M0.39 47.1±.10.45
PrefLayer 0.77M46.7 0.380.45
LoRA 0.77M47.5±.1 0.390.45
\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"content\": \"Source: 2106.09685v2\\nChunk: 83\\n\\nEach input example is represented by a sequence of SUBJECT — PROPERTY — OBJECT triples. The dataset is released under Creative Commons BY-NC-SA 4.0. # D HYPERPARAMETERS USED IN EXPERIMENTS # D.1 ROBERTA We train using AdamW with a linear learning rate decay schedule. We sweep learning rate, number of training epochs, and batch size for LoRA. Following Liu et al. (2019), we initialize the LoRA modules to our best MNLI checkpoint when adapting to MRPC, RTE, and STS-B, instead of the usual initialization; the pre-trained model stays frozen for all tasks. We report the median over 5 random seeds; the result for each run is taken from the best epoch. For a fair comparison with the setup in Houlsby et al. (2019) and Pfeiffer et al. (2021), we restrict the model sequence length to 128 and used a fixed batch size for all tasks. Importantly, we start with the pre-trained RoBERTa large model when adapting to MRPC, RTE, and STS-B, instead of a model already adapted to MNLI.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.2889, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 6.2889, + "start_timestamp": "2025-08-16T08:14:02.168219", + "end_timestamp": "2025-08-16T08:14:08.457131" + }, + "metadata": { + "saved_at": "2025-08-16T08:14:08.457634", + "file_path": "retrieval_logs\\retrieval_20250816_081408_457_local_k20_ck10_How_does_LoRAs_performance_and_efficiency_compare_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081417_449_local_k5_ck2_What_are_the_potential_practical_applications_and_.json b/retrieval_logs/retrieval_20250816_081417_449_local_k5_ck2_What_are_the_potential_practical_applications_and_.json new file mode 100644 index 0000000000000000000000000000000000000000..cb0eb8027bf397167440ad642182cf390a2f1584 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081417_449_local_k5_ck2_What_are_the_potential_practical_applications_and_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:14:17.450053", + "query": "What are the potential practical applications and benefits of using LoRA for adapting large language models to specific downstream tasks?", + "query_mode": "local", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 4544, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Lora: Low-rank adaptation of large language models.\", \"type\": \"methodology\", \"description\": \"This is a paper that introduces 'Lora', a method for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"LoRA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS\", \"type\": \"abstract\", \"description\": \"This abstract introduces LoRA (Low-Rank Adaptation) as a method to adapt large language models to specific tasks or domains. It highlights the increasing infeasibility of full fine-tuning for larger models due to computational costs, using GPT-3 175B as an example. LoRA addresses this by freezing pretrained model weights and injecting trainable rank decomposition matrices into Transformer layers, significantly reducing trainable parameters for downstream tasks.\", \"created_at\": \"2025-08-15 14:52:21\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"language model adaptation\", \"type\": \"discussion\", \"description\": \"Rank-deficiency in language model adaptation is empirically investigated to shed light on the efficacy of LoRA.\", \"created_at\": \"2025-08-15 14:59:31\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"2021. Lora: Low-rank adaptation of large language models\", \"type\": \"methodology\", \"description\": \"This methodology, an arXiv preprint, details LoRA (Low-rank adaptation), a technique for adapting large language models. Authors include Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al.\", \"entity2\": \"Lora: Low-rank adaptation of large language models.\", \"description\": \"The authors are associated with the paper 'Lora: Low-rank adaptation of large language models.'.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 2\\n\\nrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks. Compared to GPT-3 175B fine-tuned with Adam, LoRA can reduce the number of trainable parameters by 10,000 times and the GPU memory requirement by 3 times. LoRA performs on-par or better than finetuning in model quality on RoBERTa, DeBERTa, GPT-2, and GPT-3, despite having fewer trainable parameters, a higher training throughput, and, unlike adapters, no additional inference latency. We also provide an empirical investigation into rank-deficiency in language model adaptation, which sheds light on the efficacy of LoRA. We release a package that facilitates the integration of LoRA with PyTorch models and provide our implementations and model checkpoints for RoBERTa, DeBERTa, and GPT-2 at https://github.com/microsoft/LoRA. # 1 INTRODUCTION Many applications in natural language processing rely on adapting one large-scale, pre-trained language model to multiple downstream applications.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.1051, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.1051, + "start_timestamp": "2025-08-16T08:14:14.343970", + "end_timestamp": "2025-08-16T08:14:17.449054" + }, + "metadata": { + "saved_at": "2025-08-16T08:14:17.450053", + "file_path": "retrieval_logs\\retrieval_20250816_081417_449_local_k5_ck2_What_are_the_potential_practical_applications_and_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081718_093_local_k3_ck2_What_is_the_fundamental_concept_behind_the_Transfo.json b/retrieval_logs/retrieval_20250816_081718_093_local_k3_ck2_What_is_the_fundamental_concept_behind_the_Transfo.json new file mode 100644 index 0000000000000000000000000000000000000000..488594f3c56e3fbccbd4ac9fba36659529ad61b3 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081718_093_local_k3_ck2_What_is_the_fundamental_concept_behind_the_Transfo.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:17:18.093418", + "query": "What is the fundamental concept behind the Transformer architecture in machine learning?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 3639, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 29\\n\\nesentations used by state-of-the-art models in machine translations, such as word-piece [38] and byte-pair [31] representations. To improve computational performance for tasks involving very long sequences, self-attention could be restricted to considering only a neighborhood of size $r$ in the input sequence centered around the respective output position. This would increase the maximum path length to $O ( n / r )$ . We plan to investigate this approach further in future work. A single convolutional layer with kernel width $k < n$ does not connect all pairs of input and output positions. Doing so requires a stack of $O ( n / k )$ convolutional layers in the case of contiguous kernels, or $O ( l o g _ { k } ( n ) )$ in the case of dilated convolutions [18], increasing the length of the longest paths between any two positions in the network. Convolutional layers are generally more expensive than recurrent layers, by a factor of $k$ .\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 27\\n\\n. . , x _ { n } )$ to another sequence of equal length $\\\\left( z _ { 1 } , . . . , z _ { n } \\\\right)$ , with $x _ { i } , z _ { i } \\\\in \\\\mathbf { \\\\bar { \\\\mathbb { R } } } ^ { d }$ , such as a hidden layer in a typical sequence transduction encoder or decoder. Motivating our use of self-attention we consider three desiderata. One is the total computational complexity per layer. Another is the amount of computation that can be parallelized, as measured by the minimum number of sequential operations required. The third is the path length between long-range dependencies in the network. Learning long-range dependencies is a key challenge in many sequence transduction tasks. One key factor affecting the ability to learn such dependencies is the length of the paths forward and backward signals have to traverse in the network. The shorter these paths between any combination of positions in the input and output sequences, the easier it is to learn long-range dependencies [12].\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 13.3095, + "rag_initialization_seconds": 4.3743, + "query_execution_seconds": 8.9352, + "start_timestamp": "2025-08-16T08:17:04.783314", + "end_timestamp": "2025-08-16T08:17:18.092843" + }, + "metadata": { + "saved_at": "2025-08-16T08:17:18.093418", + "file_path": "retrieval_logs\\retrieval_20250816_081718_093_local_k3_ck2_What_is_the_fundamental_concept_behind_the_Transfo.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081718_159_local_k5_ck2_On_which_benchmark_datasets_and_tasks_were_Transfo.json b/retrieval_logs/retrieval_20250816_081718_159_local_k5_ck2_On_which_benchmark_datasets_and_tasks_were_Transfo.json new file mode 100644 index 0000000000000000000000000000000000000000..33eb2b60cbd243ff8e1bcf8ceeb63a054ace6c86 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081718_159_local_k5_ck2_On_which_benchmark_datasets_and_tasks_were_Transfo.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:17:18.159878", + "query": "On which benchmark datasets and tasks were Transformers initially evaluated, and what were the key performance metrics used?", + "query_mode": "local", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 6430, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"MMLU performance\", \"type\": \"category\", \"description\": \"A measure of performance on the MMLU benchmark, affected by dataset quality and size.\", \"created_at\": \"2025-08-13 23:25:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"benchmark datasets\", \"type\": \"results\", \"description\": \"Benchmark datasets are used to evaluate the performance of the Pangu 1.5B pro model, which achieves an average performance increase of 8.87% on them.\", \"created_at\": \"2025-08-15 16:27:21\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"MT-Bench\", \"type\": \"event\", \"description\": \"MT-Bench is a benchmark dataset for open-domain question answering.\", \"created_at\": \"2025-08-13 23:26:55\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"CIFAR-10 image classification task\", \"type\": \"results\", \"description\": \"Results were presented on the benchmark CIFAR-10 image classification task.\", \"created_at\": \"2025-08-15 14:59:55\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"runtime efficiency optimization\", \"type\": \"methodology\", \"description\": \"Reviewing representative works that address challenges related to the large size of models impacting runtime efficiency.\", \"created_at\": \"2025-08-15 16:41:15\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"FLAN v2\", \"entity2\": \"MMLU performance\", \"description\": \"The 'FLAN v2' dataset's performance on the MMLU benchmark is shown in the table, varying with epochs and datapoints.\", \"created_at\": \"2025-08-13 23:25:28\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"MT-Bench\", \"entity2\": \"vector RAG\", \"description\": \"MT-Bench is a benchmark dataset oriented towards evaluating vector RAG performance.\", \"created_at\": \"2025-08-13 23:27:01\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"MMLU performance\", \"entity2\": \"Unnatural Instructions\", \"description\": \"The 'Unnatural Instructions' dataset's performance on the MMLU benchmark is shown in the table, varying with epochs and datapoints.\", \"created_at\": \"2025-08-13 23:25:24\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"HotPotQA\", \"entity2\": \"MT-Bench\", \"description\": \"HotPotQA and MT-Bench are both benchmark datasets for open-domain question answering.\", \"created_at\": \"2025-08-13 23:27:01\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Dataset quality\", \"entity2\": \"MMLU performance\", \"description\": \"The quality of the dataset significantly affects the MMLU performance, more so than dataset size.\", \"created_at\": \"2025-08-13 23:25:31\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Chip\", \"entity2\": \"MMLU performance\", \"description\": \"The 'Chip' dataset's performance on the MMLU benchmark is shown in the table, varying with epochs and datapoints.\", \"created_at\": \"2025-08-13 23:25:24\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Pangu 1.5B pro model\", \"entity2\": \"benchmark datasets\", \"description\": \"\\\"The Pangu 1.5B pro model demonstrates superior performance on multiple benchmark datasets compared to other models.\\\")\", \"created_at\": \"2025-08-15 16:27:26\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Datapoints\", \"entity2\": \"MMLU performance\", \"description\": \"MMLU performance varies across different numbers of data points for each dataset.\", \"created_at\": \"2025-08-13 23:25:32\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Epochs\", \"entity2\": \"MMLU performance\", \"description\": \"MMLU performance varies across different numbers of epochs for each dataset.\", \"created_at\": \"2025-08-13 23:25:32\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"CIFAR-10 image classification task\", \"entity2\": \"FedAvg algorithm\", \"description\": \"The FedAvg algorithm was used in experiments that presented results on the CIFAR-10 image classification task.\", \"created_at\": \"2025-08-15 14:59:55\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Dataset size\", \"entity2\": \"MMLU performance\", \"description\": \"The size of the dataset influences the MMLU performance, although less significantly than dataset quality according to the text.\", \"created_at\": \"2025-08-13 23:25:31\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"MT-Bench\", \"entity2\": \"Zheng et al.\", \"description\": \"Zheng et al. are associated with the creation or development of the MT-Bench benchmark dataset.\", \"created_at\": \"2025-08-13 23:26:55\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Graph_RAG\\nChunk: 13\\n\\n# 2.3 Adaptive benchmarking for RAG Evaluation Many benchmark datasets for open-domain question answering exist, including HotPotQA (Yang et al., 2018), MultiHop-RAG (Tang and Yang, 2024), and MT-Bench (Zheng et al., 2024). However, these benchmarks are oriented towards vector RAG performance, i.e., they evaluate performance on explicit fact retrieval. In this work, we propose an approach for generating a set of questions for evaluating global sensemaking over the entirety of the corpus. Our approach is related to LLM methods that use a corpus to generate questions whose answers would be summaries of the corpus, such as in $\\\\mathrm { X u }$ and Lapata (2021). However, in order to produce a fair evaluation, our method avoids generating the questions directly from the corpus itself (as an alternative implementation, one can use a subset of the corpus held out from subsequent graph extraction and answer evaluation steps).\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 33\\n\\nt picked a proxy dataset of modest enough size that we could thoroughly investigate the hyperparameters of the FedAvg algorithm. While each individual training run is relatively small, we trained over 2000 individual models for these experiments. We then present results on the benchmark CIFAR-10 image classification task. Finally, to demonstrate the effectiveness of FedAvg on a real-world problem with a natural partitioning of the data over clients, we evaluate on a large language modeling task. Our initial study includes three model families on two datasets. The first two are for the MNIST digit recognition task [26]: 1) A simple multilayer-perceptron with 2-hidden layers with 200 units each using ReLu activations (199,210 total parameters), which we refer to as the MNIST 2NN.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.3614, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 6.3614, + "start_timestamp": "2025-08-16T08:17:11.798430", + "end_timestamp": "2025-08-16T08:17:18.159879" + }, + "metadata": { + "saved_at": "2025-08-16T08:17:18.159878", + "file_path": "retrieval_logs\\retrieval_20250816_081718_159_local_k5_ck2_On_which_benchmark_datasets_and_tasks_were_Transfo.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081718_281_local_k10_ck4_How_does_the_Transformer_architecture_compare_to_p.json b/retrieval_logs/retrieval_20250816_081718_281_local_k10_ck4_How_does_the_Transformer_architecture_compare_to_p.json new file mode 100644 index 0000000000000000000000000000000000000000..ef997ab35955b044e831f59152a65da605e70f60 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081718_281_local_k10_ck4_How_does_the_Transformer_architecture_compare_to_p.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:17:18.281449", + "query": "How does the Transformer architecture compare to previous sequence-to-sequence models, such as LSTMs or GRUs, in terms of computational efficiency and performance on tasks like machine translation?", + "query_mode": "local", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 13603, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Recurrent Neural Networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including long short-term memory (LSTM) and gated recurrent units (GRU), have been firmly established as state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Large-scale LSTM Experiments\", \"type\": \"methodology\", \"description\": \"Experiments were run on a large-scale next-word prediction task to demonstrate the effectiveness of the approach on a real-world problem.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Factorization tricks for LSTM networks\", \"type\": \"methodology\", \"description\": \"This refers to techniques for factorization within LSTM networks.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"large-scale LSTM experiments\", \"type\": \"results\", \"description\": \"Large-scale LSTM experiments were conducted on a next-word prediction task, demonstrating the effectiveness of the approach on a real-world problem.\", \"created_at\": \"2025-08-15 15:10:19\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"LSTM\", \"type\": \"methodology\", \"description\": \"LSTM refers to a Long Short-Term Memory network, a type of recurrent neural network architecture used in the experiments.LSTM shares a conceptual similarity with Mamba and achieves success in language modeling through the introduction of time-dependent weights. Known limitations of LSTM are addressed by the xLSTM architecture.\", \"created_at\": \"2025-08-15 15:12:36\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"LSTMs\", \"type\": \"methodology\", \"description\": \"LSTMs are a type of recurrent neural network that have achieved state-of-the-art results for language modeling tasks.LSTMs are used to replace expert networks in MoE, leveraging their advantage in handling sequential data for processing user activity data streams.LSTMs are utilized by MMoE to handle sequential data and improve performance in processing user activity data streams.\", \"created_at\": \"2025-08-15 15:03:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LSTM\", \"entity2\": \"xLSTM\", \"description\": \"xLSTM is inspired by the question of how effective LSTMs would be if scaled to billions of parameters, incorporating advanced techniques from modern LLMs while addressing known LSTM limitations. xLSTM designs exponential gates to enhance effectiveness with long sequences, expand memory cells from scalars to matrices to increase storage capacity, and remove memory mixing to enable parallel processing to address the limitations of LSTM.\", \"created_at\": \"2025-08-15 16:28:38\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LSTMs\", \"entity2\": \"MMoE\", \"description\": \"MMoE leverages the advantages of LSTMs in handling sequential data.\", \"created_at\": \"2025-08-15 15:25:29\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequential Computation\", \"description\": \"The inherent characteristic of Recurrent Neural Networks is their sequential computation, where hidden states are generated based on previous states and current input.\", \"created_at\": \"2025-08-15 18:20:09\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Gated Recurrent Units (GRU)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Gated Recurrent Units (GRU) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:55\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Long Short-Term Memory (LSTM)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Long Short-Term Memory (LSTM) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Encoder-Decoder Architectures\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Encoder-Decoder Architectures are mentioned alongside recurrent language models as areas where efforts have pushed boundaries, indicating a close relationship in the context of sequence modeling.\", \"created_at\": \"2025-08-15 18:21:27\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Recurrent Language Models\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Recurrent Language Models are a specific application or type of recurrent neural network whose boundaries have been pushed by research.\", \"created_at\": \"2025-08-15 18:21:11\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Accuracy Oscillations\", \"entity2\": \"Large-scale LSTM Experiments\", \"description\": \"Accuracy Oscillations are a result observed from the Large-scale LSTM Experiments, highlighting the effect of client averaging.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Large-scale LSTM Experiments\", \"entity2\": \"Training Dataset\", \"description\": \"The Training Dataset is the data source used for the Large-scale LSTM Experiments.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LSTMs\", \"entity2\": \"language modeling tasks\", \"description\": \"\\\"LSTMs have achieved state-of-the-art results for language modeling tasks.\\\")\", \"created_at\": \"2025-08-15 15:03:45\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"FedAvg Progress\", \"entity2\": \"Large-scale LSTM Experiments\", \"description\": \"The FedAvg Progress is a result observed from the Large-scale LSTM Experiments.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"LSTMs\", \"entity2\": \"recurrent neural networks\", \"description\": \"\\\"LSTMs are a specific type of recurrent neural network.\\\")\", \"created_at\": \"2025-08-15 15:03:37\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Factorization tricks for LSTM networks\", \"entity2\": \"Neural machine translation in linear time\", \"description\": \"Both are related to neural network architectures and efficiency, with factorization tricks potentially improving the performance of models like those used in linear time translation.\", \"created_at\": \"2025-08-15 14:58:12\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"transduction problems\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in transduction problems.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 3\\n\\n# 1 Introduction Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5]. Numerous efforts have since continued to push the boundaries of recurrent language models and encoder-decoder architectures [38, 24, 15]. Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states [math: h _ { t }] , as a function of the previous hidden state [math: h _ { t - 1 }] and the input for position [math: t] . This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 43\\n\\nThe $u$ column gives $u = E n / ( K B )$ , the expected number of updates per round.
MNIST CNN,99% ACCURACY
CNNEBuIIDNON-IID
FEDSGD181626483
FEDAVG585179 (3.5x)1000(0.5x)
FEDAVG1501265 (9.6x)600(0.8x)
FEDAVG20820234 (2.7×)672(0.7x)
FEDAVG1106034 (18.4×)350(1.4x)
FEDAVG5506029 (21.6x)334(1.4x)
FEDAVG205024032 (19.6×)426(1.1x)
FEDAVG51030020(31.3x)229(2.1x)
FEDAVG2010120018(34.8x)173(2.8x)
SHAKESPEARE LSTM,54% ACCURACY
LSTMEBuIIDNON-IID
FEDSGD181.024883906
FEDAVG1501.51635(1.5x) (4.1x)549(7.1×)
FEDAVG585.0613597(6.5x)
FEDAVG1107.4460 (5.4x)164 (23.8x)
FEDAVG5507.4401 (6.2×)152(25.7×)
FEDAVG51037.1192 (13.0x)41 (95.3x)
\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: MOE\\nChunk: 88\\n\\nleveraging the advantages of LSTMs in handling sequential data to improve performance in processing user activity data streams. The work in [94] applies MMoE to Digital Rock Physics Analysis tasks, addressing the issue of significant computational and memory resource consumption encountered by traditional numerical simulation methods for rock analysis [245], [246]. By utilizing MMoE, [94] transforms serial operations into parallel operations, reducing interference between multiple analysis tasks. [84] focuses on Heterogeneous Multi-task Learning tasks. In particular, this study only employed the MMoE framework but also introduced some stochastic mechanisms that restrict certain experts to handle specific tasks or disconnect certain experts from the current task, thus enhancing expert exploration. # D. Reinforcement learning\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 9\\n\\ned-forward deep networks, and in particular convolutional networks, are well-known to provide state-of-the-art results [26, 25]. For language modeling tasks recurrent neural networks, and in particular LSTMs, have achieved state-of-the-art results [20, 5, 22]. Federated Optimization We refer to the optimization problem implicit in federated learning as federated optimization, drawing a connection (and contrast) to distributed optimization. Federated optimization has several key properties that differentiate it from a typical distributed optimization problem: • Non-IID The training data on a given client is typically based on the usage of the mobile device by a particular user, and hence any particular user’s local dataset will not be representative of the population distribution. • Unbalanced Similarly, some users will make much heavier use of the service or app than others, leading to varying amounts of local training data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.484, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 6.484, + "start_timestamp": "2025-08-16T08:17:11.797430", + "end_timestamp": "2025-08-16T08:17:18.281450" + }, + "metadata": { + "saved_at": "2025-08-16T08:17:18.281449", + "file_path": "retrieval_logs\\retrieval_20250816_081718_281_local_k10_ck4_How_does_the_Transformer_architecture_compare_to_p.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081739_589_local_k3_ck2_What_is_the_primary_objective_and_core_problem_tha.json b/retrieval_logs/retrieval_20250816_081739_589_local_k3_ck2_What_is_the_primary_objective_and_core_problem_tha.json new file mode 100644 index 0000000000000000000000000000000000000000..6654b9ebcbfdef12ea808e4ee2ea713571b6b2a2 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081739_589_local_k3_ck2_What_is_the_primary_objective_and_core_problem_tha.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:17:39.589265", + "query": "What is the primary objective and core problem that LoRA aims to solve in the context of large language models?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 3935, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"expected forgetting\", \"type\": \"results\", \"description\": \"Explicit expressions for expected forgetting are derived to quantitatively evaluate the impact of MoE in continual learning.\", \"created_at\": \"2025-08-15 15:30:17\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"task-specific adaptations\", \"type\": \"methodology\", \"description\": \"Task-specific adaptations are potential avenues for enhancing efficiency when MoE is combined with conditional computation techniques.\", \"created_at\": \"2025-08-15 15:37:51\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"computational and memory challenges\", \"type\": \"limitations\", \"description\": \"These challenges worsen with model size, impacting training and autoregressive decoding.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"MoE\", \"entity2\": \"expected forgetting\", \"description\": \"The impact of MoE in continual learning is quantitatively evaluated by derived explicit expressions for expected forgetting.\", \"created_at\": \"2025-08-15 15:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"computational and memory challenges\", \"entity2\": \"training\", \"description\": \"Computational and memory challenges worsen with model size, impacting training.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"autoregressive decoding\", \"entity2\": \"computational and memory challenges\", \"description\": \"Computational and memory challenges worsen with model size, impacting autoregressive decoding.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: MOE\\nChunk: 159\\n\\nge of conditional computation, their training and inference efficiency remain a concern, especially in large-scale applications. Hardware advancements have reduced computational costs, but high latency remains a persistent issue. Future research should focus on optimizing hardware-software co-design, particularly for conditional computation. Techniques such as efficient memory management, reduced communication overhead, and parallel processing strategies could significantly improve the scalability of MoE models. Combining MoE with conditional computation techniques may also open new avenues for dynamic resource allocation and task-specific adaptations, further enhancing efficiency. # C. Architecture design The design of MoE architectures, particularly the determination of the number of experts and their specialization, is another area that requires further exploration. Current approaches often rely on heuristic methods or static setting to decide the number of experts, which may not be optimal for all tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 296\\n\\nace significant computational and memory challenges that worsen with model size, impacting training and autoregressive decoding. Recently, Mamba [117] has emerged as a promising alternative, adapting state space models to dynamically select inputs based on demands, thereby enhancing efficiency. Thereafter, xLSTM [25] demonstrates that an improved LSTM could function as an LLM, revealing the potential of traditional SSMs. The integration of global static information captured by SSMs with the dynamic information processing of Transformers could complement each other, leading to new architectures that balance effectiveness and efficiency. # 9.2 Addressing SLM Training Inefficiencies One study [85] explores the disparate learning dynamics between small and large language models. Utilizing the Pythia model suite, the research demonstrates that layers’ activations in larger models converge more rapidly and monotonically to their final states.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 8.6167, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 8.6167, + "start_timestamp": "2025-08-16T08:17:30.972558", + "end_timestamp": "2025-08-16T08:17:39.589266" + }, + "metadata": { + "saved_at": "2025-08-16T08:17:39.589265", + "file_path": "retrieval_logs\\retrieval_20250816_081739_589_local_k3_ck2_What_is_the_primary_objective_and_core_problem_tha.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081739_644_local_k3_ck2_Can_you_explain_the_low-rank_adaptation_mechanism_.json b/retrieval_logs/retrieval_20250816_081739_644_local_k3_ck2_Can_you_explain_the_low-rank_adaptation_mechanism_.json new file mode 100644 index 0000000000000000000000000000000000000000..0f1f01d4dba51b2930aedaa283492a9060fc6463 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081739_644_local_k3_ck2_Can_you_explain_the_low-rank_adaptation_mechanism_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:17:39.644410", + "query": "Can you explain the low-rank adaptation mechanism in LoRA, detailing how it modifies pre-trained models for efficient fine-tuning?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 3793, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"W_0\", \"type\": \"category\", \"description\": \"W_0 represents a pre-trained weight matrix.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Multi-task dense prediction via mixture of low-rank experts\", \"type\": \"methodology\", \"description\": \"This methodology addresses multi-task dense prediction using a mixture of low-rank experts.\", \"created_at\": \"2025-08-15 15:38:23\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"W\", \"entity2\": \"W_0\", \"description\": \"W is composed of the pre-trained weight matrix W_0 and the low-rank adaptation BA. The text explicitly defines W as the sum of W_0 and BA.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Multi-task dense prediction via mixture of low-rank experts\", \"entity2\": \"Towards foundational models for dynamical system reconstruction: Hierarchical metalearning via mixture of experts\", \"description\": \"Both methodologies employ a mixture of experts, with one targeting dynamical system reconstruction and the other multi-task dense prediction, using low-rank experts.\", \"created_at\": \"2025-08-15 15:38:34\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 4\\n\\nnsive; regular 16-bit finetuning of a LLaMA 65B parameter model [57] requires more than $7 8 0 ~ \\\\mathrm { G B }$ of GPU memory. While recent quantization methods can reduce the memory footprint of LLMs [14, 13, 18, 66], such techniques only work for inference and break down during training [65]. We demonstrate for the first time that it is possible to finetune a quantized 4-bit model without any performance degradation. Our method, QLORA, uses a novel high-precision technique to quantize a pretrained model to 4-bit, then adds a small set of learnable Low-rank Adapter weights [28] that are tuned by backpropagating gradients through the quantized weights. QLORA reduces the average memory requirements of finetuning a 65B parameter model from $> 7 8 0 \\\\mathrm { G B }$ of GPU memory to ${ < } 4 8 \\\\mathrm { G B }$ without degrading the runtime or predictive performance compared to a 16- bit fully finetuned baseline.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 182\\n\\n6009–6018. [79] R. D. Nzoyem, D. A. Barton, and T. Deakin, “Towards foundational models for dynamical system reconstruction: Hierarchical metalearning via mixture of experts,” arXiv preprint arXiv:2502.05335, 2025. [80] A. Hendawy, J. Peters, and C. D’Eramo, “Multi-task reinforcement learning with mixture of orthogonal experts,” arXiv preprint arXiv:2311.11385, 2023. [81] Y. Yang, P.-T. Jiang, Q. Hou, H. Zhang, J. Chen, and B. Li, “Multi-task dense prediction via mixture of low-rank experts,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 27927–27937, 2024. [82] L. Shen, A. Tang, E. Yang, G. Guo, Y. Luo, L. Zhang, X. Cao, B. Du, and D. Tao, “Efficient and effective weight-ensembling mixture of experts for multi-task model merging,” arXiv preprint arXiv:2410.21804, 2024. [83] Z. Qin, Y. Cheng, Z. Zhao, Z. Chen, D. Metzler, and J.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.8909, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 5.8909, + "start_timestamp": "2025-08-16T08:17:33.752503", + "end_timestamp": "2025-08-16T08:17:39.643409" + }, + "metadata": { + "saved_at": "2025-08-16T08:17:39.644410", + "file_path": "retrieval_logs\\retrieval_20250816_081739_644_local_k3_ck2_Can_you_explain_the_low-rank_adaptation_mechanism_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081739_720_local_k10_ck4_What_is_the_key_innovation_of_LoRA_compared_to_oth.json b/retrieval_logs/retrieval_20250816_081739_720_local_k10_ck4_What_is_the_key_innovation_of_LoRA_compared_to_oth.json new file mode 100644 index 0000000000000000000000000000000000000000..80d8b20bc6d34654b233a9f29516c15efe602c49 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081739_720_local_k10_ck4_What_is_the_key_innovation_of_LoRA_compared_to_oth.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:17:39.720081", + "query": "What is the key innovation of LoRA compared to other parameter-efficient fine-tuning techniques (e.g., adapter tuning, prefix tuning)?", + "query_mode": "local", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 37222, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Lora: Low-rank adaptation of large language models.\", \"type\": \"methodology\", \"description\": \"This is a paper that introduces 'Lora', a method for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 107, \"entity1\": \"E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al.\", \"entity2\": \"Lora: Low-rank adaptation of large language models.\", \"description\": \"The authors are associated with the paper 'Lora: Low-rank adaptation of large language models.'.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.9676, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 5.9676, + "start_timestamp": "2025-08-16T08:17:33.752503", + "end_timestamp": "2025-08-16T08:17:39.720081" + }, + "metadata": { + "saved_at": "2025-08-16T08:17:39.720081", + "file_path": "retrieval_logs\\retrieval_20250816_081739_720_local_k10_ck4_What_is_the_key_innovation_of_LoRA_compared_to_oth.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081746_233_local_k5_ck2_On_which_datasets_and_tasks_was_LoRA_evaluated_and.json b/retrieval_logs/retrieval_20250816_081746_233_local_k5_ck2_On_which_datasets_and_tasks_was_LoRA_evaluated_and.json new file mode 100644 index 0000000000000000000000000000000000000000..5f13d8884dc70122ef37eefe89750e48dc24ee25 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081746_233_local_k5_ck2_On_which_datasets_and_tasks_was_LoRA_evaluated_and.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:17:46.233456", + "query": "On which datasets and tasks was LoRA evaluated, and what were the key metrics used to measure its performance?", + "query_mode": "local", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 34724, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"three datasets\", \"type\": \"category\", \"description\": \"Three datasets were used to evaluate the performance of LoRA.\", \"created_at\": \"2025-08-13 22:50:03\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 1.9482, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 1.9482, + "start_timestamp": "2025-08-16T08:17:44.284222", + "end_timestamp": "2025-08-16T08:17:46.232450" + }, + "metadata": { + "saved_at": "2025-08-16T08:17:46.233456", + "file_path": "retrieval_logs\\retrieval_20250816_081746_233_local_k5_ck2_On_which_datasets_and_tasks_was_LoRA_evaluated_and.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081750_191_local_k10_ck4_What_were_the_main_findings_regarding_LoRAs_effect.json b/retrieval_logs/retrieval_20250816_081750_191_local_k10_ck4_What_were_the_main_findings_regarding_LoRAs_effect.json new file mode 100644 index 0000000000000000000000000000000000000000..e02c884e6936a3dc04c92df5f207bb281f1b6b9c --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081750_191_local_k10_ck4_What_were_the_main_findings_regarding_LoRAs_effect.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:17:50.191681", + "query": "What were the main findings regarding LoRA's effectiveness in terms of performance, efficiency (e.g., trainable parameters, memory usage), and comparison to full fine-tuning?", + "query_mode": "local", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 36577, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.1239, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.1239, + "start_timestamp": "2025-08-16T08:17:47.066748", + "end_timestamp": "2025-08-16T08:17:50.190683" + }, + "metadata": { + "saved_at": "2025-08-16T08:17:50.191681", + "file_path": "retrieval_logs\\retrieval_20250816_081750_191_local_k10_ck4_What_were_the_main_findings_regarding_LoRAs_effect.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081758_668_local_k3_ck2_What_are_the_potential_limitations_or_scenarios_wh.json b/retrieval_logs/retrieval_20250816_081758_668_local_k3_ck2_What_are_the_potential_limitations_or_scenarios_wh.json new file mode 100644 index 0000000000000000000000000000000000000000..9c66cb3dcd570e4c8177ee76863d58c72edf0fc0 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081758_668_local_k3_ck2_What_are_the_potential_limitations_or_scenarios_wh.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:17:58.668804", + "query": "What are the potential limitations or scenarios where LoRA might not perform optimally, as acknowledged by the research or inferred from its design?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 34517, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.237, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.237, + "start_timestamp": "2025-08-16T08:17:55.431795", + "end_timestamp": "2025-08-16T08:17:58.668804" + }, + "metadata": { + "saved_at": "2025-08-16T08:17:58.668804", + "file_path": "retrieval_logs\\retrieval_20250816_081758_668_local_k3_ck2_What_are_the_potential_limitations_or_scenarios_wh.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081802_655_local_k10_ck4_What_are_the_practical_applications_and_potential_.json b/retrieval_logs/retrieval_20250816_081802_655_local_k10_ck4_What_are_the_practical_applications_and_potential_.json new file mode 100644 index 0000000000000000000000000000000000000000..d089d2901d7e0329a92bfcec8b6f501c7b78edf1 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081802_655_local_k10_ck4_What_are_the_practical_applications_and_potential_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:18:02.655846", + "query": "What are the practical applications and potential impact of LoRA in various domains, such as natural language processing, computer vision, or reinforcement learning?", + "query_mode": "local", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 38053, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Lora: Low-rank adaptation of large language models.\", \"type\": \"methodology\", \"description\": \"This is a paper that introduces 'Lora', a method for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"LoRA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS\", \"type\": \"abstract\", \"description\": \"This abstract introduces LoRA (Low-Rank Adaptation) as a method to adapt large language models to specific tasks or domains. It highlights the increasing infeasibility of full fine-tuning for larger models due to computational costs, using GPT-3 175B as an example. LoRA addresses this by freezing pretrained model weights and injecting trainable rank decomposition matrices into Transformer layers, significantly reducing trainable parameters for downstream tasks.\", \"created_at\": \"2025-08-15 14:52:21\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 107, \"entity1\": \"E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al.\", \"entity2\": \"Lora: Low-rank adaptation of large language models.\", \"description\": \"The authors are associated with the paper 'Lora: Low-rank adaptation of large language models.'.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2305.14314v1\\nChunk: 16\\n\\n{ 1 } \\\\in \\\\mathbb { R } ^ { h \\\\times r }$ and $\\\\mathbf { L } _ { 2 } \\\\in \\\\mathbb { R } ^ { r \\\\times o }$ , and $s$ is a scalar. Memory Requirement of Parameter-Efficient Finetuning One important point of discussion is the memory requirement of LoRA during training both in terms of the number and size of adapters used. Since the memory footprint of LoRA is so minimal, we can use more adapters to improve performance without significantly increasing the total memory used. While LoRA was designed as a Parameter Efficient Finetuning (PEFT) method, most of the memory footprint for LLM finetuning comes from activation gradients and not from the learned LoRA parameters. For a 7B LLaMA model trained on FLAN v2 with a batch size of 1, with LoRA weights equivalent to commonly used $0 . 2 \\\\%$ of the original model weights[28, 37], the LoRA input gradients have a memory footprint of 567 MB while the LoRA parameters take up only $2 6 \\\\mathrm { M B }$ .\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.3512, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.3512, + "start_timestamp": "2025-08-16T08:17:59.303673", + "end_timestamp": "2025-08-16T08:18:02.654849" + }, + "metadata": { + "saved_at": "2025-08-16T08:18:02.655846", + "file_path": "retrieval_logs\\retrieval_20250816_081802_655_local_k10_ck4_What_are_the_practical_applications_and_potential_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_081813_708_local_k10_ck4_How_does_the_performance_and_efficiency_of_LoRA_co.json b/retrieval_logs/retrieval_20250816_081813_708_local_k10_ck4_How_does_the_performance_and_efficiency_of_LoRA_co.json new file mode 100644 index 0000000000000000000000000000000000000000..d6d73b7eb602279ca2b31963a85f8e78bb072234 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_081813_708_local_k10_ck4_How_does_the_performance_and_efficiency_of_LoRA_co.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T08:18:13.708565", + "query": "How does the performance and efficiency of LoRA compare against other parameter-efficient fine-tuning methods like adapter modules or prompt tuning across different model sizes and tasks?", + "query_mode": "local", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 37055, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low Rank Adapters (LoRA)\", \"type\": \"category\", \"description\": \"Low Rank Adapters (LoRA) are used in QLORA to efficiently fine-tune the quantized language model.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 107, \"entity1\": \"Low Rank Adapters (LoRA)\", \"entity2\": \"QLORA\", \"description\": \"QLORA utilizes Low Rank Adapters (LoRA) for efficient fine-tuning.\", \"created_at\": \"2025-08-13 23:01:24\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.0291, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.0291, + "start_timestamp": "2025-08-16T08:18:10.678512", + "end_timestamp": "2025-08-16T08:18:13.707566" + }, + "metadata": { + "saved_at": "2025-08-16T08:18:13.708565", + "file_path": "retrieval_logs\\retrieval_20250816_081813_708_local_k10_ck4_How_does_the_performance_and_efficiency_of_LoRA_co.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090505_125_local_k5_ck2_What_are_the_key_components_of_the_Transformer_arc.json b/retrieval_logs/retrieval_20250816_090505_125_local_k5_ck2_What_are_the_key_components_of_the_Transformer_arc.json new file mode 100644 index 0000000000000000000000000000000000000000..50d55c2807c69fe2af117db362b7a688b917d959 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090505_125_local_k5_ck2_What_are_the_key_components_of_the_Transformer_arc.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:05:05.125812", + "query": "What are the key components of the Transformer architecture, such as self-attention, multi-head attention, and positional encodings, and how do they interact?", + "query_mode": "local", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 5647, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"multi-headed self-attention\", \"type\": \"methodology\", \"description\": \"Multi-headed self-attention is a component of the Transformer, replacing recurrent layers in encoder-decoder architectures.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Queries, Keys, and Values\", \"type\": \"abstract\", \"description\": \"Fundamental components of the attention mechanism that are linearly projected multiple times in Multi-Head Attention and are $d _ { \\\\\\\\mathrm { m o d e l } }$-dimensional in a single attention function.\", \"created_at\": \"2025-08-15 18:03:15\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Different Positions\", \"type\": \"abstract\", \"description\": \"Various locations where Multi-Head Attention allows the model to jointly attend to information from different representation subspaces.\", \"created_at\": \"2025-08-15 18:03:30\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Multi-head self-attention mechanism\", \"type\": \"methodology\", \"description\": \"This is a sub-layer within each encoder layer, contributing to the model's ability to process sequences.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Multi-Head Attention processes queries, keys, and values by linearly projecting them multiple times.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Encoder\", \"entity2\": \"Multi-head self-attention mechanism\", \"description\": \"The multi-head self-attention mechanism is a key component of the encoder's layers.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Linear Projections\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Linear projections are applied to queries, keys, and values as part of the Multi-Head Attention mechanism.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 29\\n\\nesentations used by state-of-the-art models in machine translations, such as word-piece [38] and byte-pair [31] representations. To improve computational performance for tasks involving very long sequences, self-attention could be restricted to considering only a neighborhood of size $r$ in the input sequence centered around the respective output position. This would increase the maximum path length to $O ( n / r )$ . We plan to investigate this approach further in future work. A single convolutional layer with kernel width $k < n$ does not connect all pairs of input and output positions. Doing so requires a stack of $O ( n / k )$ convolutional layers in the case of contiguous kernels, or $O ( l o g _ { k } ( n ) )$ in the case of dilated convolutions [18], increasing the length of the longest paths between any two positions in the network. Convolutional layers are generally more expensive than recurrent layers, by a factor of $k$ .\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 27\\n\\n. . , x _ { n } )$ to another sequence of equal length $\\\\left( z _ { 1 } , . . . , z _ { n } \\\\right)$ , with $x _ { i } , z _ { i } \\\\in \\\\mathbf { \\\\bar { \\\\mathbb { R } } } ^ { d }$ , such as a hidden layer in a typical sequence transduction encoder or decoder. Motivating our use of self-attention we consider three desiderata. One is the total computational complexity per layer. Another is the amount of computation that can be parallelized, as measured by the minimum number of sequential operations required. The third is the path length between long-range dependencies in the network. Learning long-range dependencies is a key challenge in many sequence transduction tasks. One key factor affecting the ability to learn such dependencies is the length of the paths forward and backward signals have to traverse in the network. The shorter these paths between any combination of positions in the input and output sequences, the easier it is to learn long-range dependencies [12].\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 13.7405, + "rag_initialization_seconds": 4.4297, + "query_execution_seconds": 9.3108, + "start_timestamp": "2025-08-16T09:04:51.385310", + "end_timestamp": "2025-08-16T09:05:05.125812" + }, + "metadata": { + "saved_at": "2025-08-16T09:05:05.125812", + "file_path": "retrieval_logs\\retrieval_20250816_090505_125_local_k5_ck2_What_are_the_key_components_of_the_Transformer_arc.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090505_167_local_k5_ck2_On_which_benchmark_datasets_and_tasks_have_Transfo.json b/retrieval_logs/retrieval_20250816_090505_167_local_k5_ck2_On_which_benchmark_datasets_and_tasks_have_Transfo.json new file mode 100644 index 0000000000000000000000000000000000000000..672170ce26e8872f8192f9913fe59c81c578ee84 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090505_167_local_k5_ck2_On_which_benchmark_datasets_and_tasks_have_Transfo.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:05:05.167633", + "query": "On which benchmark datasets and tasks have Transformers been most extensively evaluated, and what evaluation metrics are commonly used?", + "query_mode": "local", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 5819, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"GLUE Benchmark\", \"type\": \"event\", \"description\": \"GLUE Benchmark is a collection of natural language understanding tasks.\", \"created_at\": \"2025-08-13 22:58:23\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"SuperGlue\", \"type\": \"category\", \"description\": \"SuperGlue is a benchmark for general-purpose language understanding systems.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"SuperGLUE\", \"type\": \"methodology\", \"description\": \"A benchmark dataset used for evaluating natural language understanding models.SuperGLUE is a benchmark used to evaluate models.\", \"created_at\": \"2025-08-13 22:47:14\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Glue\", \"type\": \"category\", \"description\": \"Glue is a multi-task benchmark and analysis platform for natural language understanding.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GLUE Benchmark\", \"entity2\": \"MNLI\", \"description\": \"MNLI is one of the tasks included in the GLUE Benchmark.\", \"created_at\": \"2025-08-13 22:58:26\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"AdapterL\", \"entity2\": \"GLUE Benchmark\", \"description\": \"AdapterL's performance is also evaluated on tasks within the GLUE Benchmark, showing reduced latency slow-down with larger batch sizes and sequence lengths.\", \"created_at\": \"2025-08-13 22:58:26\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Alex Wang\", \"entity2\": \"SuperGlue\", \"description\": \"Alex Wang is an author of a paper about SuperGlue.\", \"created_at\": \"2025-08-13 22:51:20\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Alex Wang\", \"entity2\": \"Glue\", \"description\": \"Alex Wang is an author of a paper about Glue.\", \"created_at\": \"2025-08-13 22:51:20\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"AdapterH\", \"entity2\": \"GLUE Benchmark\", \"description\": \"AdapterH's performance is evaluated on tasks within the GLUE Benchmark, showing reduced latency slow-down with larger batch sizes and sequence lengths.\", \"created_at\": \"2025-08-13 22:58:25\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Amanpreet Singh\", \"entity2\": \"SuperGlue\", \"description\": \"Amanpreet Singh is an author of a paper about SuperGlue.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Amanpreet Singh\", \"entity2\": \"Glue\", \"description\": \"Amanpreet Singh is an author of a paper about Glue.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Julian Michael\", \"entity2\": \"SuperGlue\", \"description\": \"Julian Michael is an author of a paper about SuperGlue.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Felix Hill\", \"entity2\": \"SuperGlue\", \"description\": \"Felix Hill is an author of a paper about SuperGlue.\", \"created_at\": \"2025-08-13 22:51:20\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Glue\", \"entity2\": \"Julian Michael\", \"description\": \"Julian Michael is an author of a paper about Glue.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Felix Hill\", \"entity2\": \"Glue\", \"description\": \"Felix Hill is an author of a paper about Glue.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"ST-MoE-32B\", \"entity2\": \"SuperGLUE\", \"description\": \"The ST-MoE-32B model's performance was evaluated on the SuperGLUE benchmark.\", \"created_at\": \"2025-08-15 15:19:53\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 79\\n\\nr percentage slow-down, while brighter colors (red/orange) indicate a higher slow-down, with a color bar ranging from 0% to 35%. The results show that larger batch sizes and sequence lengths generally reduce the latency slow-down, particularly for AdapterH.*\\nFigure 5: Percentage slow-down of inference latency compared to the no-adapter $( r = 0$ ) baseline. The top row shows the result for AdapterH and the bottom row AdapterL. Larger batch size and sequence length help to mitigate the latency, but the slow-down can be as high as over $30 \\\\%$ in an online, short-sequence-length scenario. We tweak the colormap for better visibility. # C DATASET DETAILS GLUE Benchmark is a wide-ranging collection of natural language understanding tasks. It includes MNLI (inference, Williams et al. (2018)), SST-2 (sentiment analysis, Socher et al. (2013)), MRPC (paraphrase detection, Dolan & Brockett (2005)), CoLA (linguistic acceptability, Warstadt et al. (2018)), QNLI (inference, Rajpurkar et al.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 8\\n\\nDeepspeed-moe [52] leverages MoE and model compression techniques to reduce the size of MoE models by 3.7 times. ST-MoE [187] has further investigated the stability and transferability of MoE models, proposing various methods such as Router z-loss to ensure training stability. Ultimately, on the SuperGLUE [197] benchmark, the ST-MoE-32B model surpassed the previous state-of-the-art models. OpenMoE [191] has experimented with decoder-only MoE and provided an in-depth discussion on the routing mechanisms of MoE, making significant contributions to the open-source community’s understanding of MoE architectures. Mixtral ${ \\\\bf 8 } { \\\\bf \\\\times } 7 { \\\\bf B }$ [22], despite processing each token with only 13 billion active parameters, is able to access a total of 47 billion parameters thanks to its distinctive architecture. This allows Mixtral ${ } ^ { 8 \\\\mathrm { x } 7 \\\\mathrm { B } }$ to achieve higher parameter efficiency and effectively control computational costs.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.601, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 6.601, + "start_timestamp": "2025-08-16T09:04:58.565616", + "end_timestamp": "2025-08-16T09:05:05.166633" + }, + "metadata": { + "saved_at": "2025-08-16T09:05:05.167633", + "file_path": "retrieval_logs\\retrieval_20250816_090505_167_local_k5_ck2_On_which_benchmark_datasets_and_tasks_have_Transfo.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090505_268_local_k10_ck4_How_does_the_performance_and_efficiency_of_Transfo.json b/retrieval_logs/retrieval_20250816_090505_268_local_k10_ck4_How_does_the_performance_and_efficiency_of_Transfo.json new file mode 100644 index 0000000000000000000000000000000000000000..9635f95cbf0a15a8809d51a409afe240b7685b76 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090505_268_local_k10_ck4_How_does_the_performance_and_efficiency_of_Transfo.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:05:05.268426", + "query": "How does the performance and efficiency of Transformer models compare to recurrent neural networks (RNNs) and convolutional neural networks (CNNs) on various NLP tasks?", + "query_mode": "local", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 28160, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"RNNs\", \"type\": \"methodology\", \"description\": \"RNNs (Recurrent Neural Networks) are sequence-aligned models that the Transformer does not use.\", \"created_at\": \"2025-08-15 14:58:24\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Recurrent Neural Networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including long short-term memory (LSTM) and gated recurrent units (GRU), have been firmly established as state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Transformers [346]\", \"type\": \"methodology\", \"description\": \"Transformers [346] are foundational in most language models but face significant computational and memory challenges that worsen with model size, impacting training and autoregressive decoding.\", \"created_at\": \"2025-08-15 17:05:24\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Sequence Modeling and Transduction\", \"type\": \"abstract\", \"description\": \"Problem domains such as language modeling and machine translation where recurrent neural networks have been established as state-of-the-art approaches.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"RNN sequence-to-sequence models [37]\", \"type\": \"methodology\", \"description\": \"RNN sequence-to-sequence models [37] are models that the Transformer outperforms, even when training only on the WSJ training set of 40K sentences.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Our results in Table 4\", \"type\": \"results\", \"description\": \"Our results in Table 4 show that despite the lack of task-specific tuning our model performs surprisingly well, yielding better results than all previously reported models with the exception of the Recurrent Neural Network Grammar [8]. In contrast to RNN sequence-to-sequence models [37], the Transformer outperforms the BerkeleyParser [29] even when training only on the WSJ training set of 40K sentences.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Recurrent Neural Networks (RNNs)\", \"type\": \"methodology\", \"description\": \"Recurrent Neural Networks (RNNs) are a class of models of which State Space Models (SSMs) are a superclass.\", \"created_at\": \"2025-08-15 16:21:43\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"MoE\", \"entity2\": \"Transformer\", \"description\": \"MoE layers typically replace the Feed-Forward Network (FFN) layer within a Transformer block when MoE is incorporated into existing Transformer models.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Transformer\", \"description\": \"Multi-Head Attention is employed within the Transformer to address the issue of reduced effective resolution arising from averaging attention-weighted positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"GPT-2\", \"entity2\": \"Transformer\", \"description\": \"GPT-2 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Mamba\", \"entity2\": \"Transformer\", \"description\": \"Mamba differs from Transformer in its approach to accessing hidden states, with Mamba focusing on the immediate previous hidden state and Transformer requiring access to all previous hidden states.Mamba offers a solution to the Transformer's drawback of quadratic time complexity during inference by relying only on the last hidden state, leading to faster inference speeds.Transformer uses attention heads for recall, while Mamba uses SSM heads for context summarization, highlighting different approaches to sequence processing.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Figure 5\", \"entity2\": \"Transformer\", \"description\": \"Figure 5 implicitly shows the Transformer's slower inference speeds by comparison to Mamba.\", \"created_at\": \"2025-08-15 16:21:47\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"MoE layer\", \"entity2\": \"Transformer\", \"description\": \"The MoE layer replaces the Feed-Forward Network (FFN) layer within a Transformer block.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Hymba\", \"entity2\": \"Transformer\", \"description\": \"Hymba integrates attention heads, similar to those in the Transformer, within its layers.\", \"created_at\": \"2025-08-15 16:29:28\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Transformer\", \"entity2\": \"ΔWq\", \"description\": \"ΔWq is obtained from layers within a Transformer network.ΔWq represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:28\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Transformer\", \"entity2\": \"ΔWv\", \"description\": \"ΔWv represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Transformer\", \"entity2\": \"language modeling\", \"description\": \"The Transformer is implied to be relevant to language modeling tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Recurrence\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture dispenses with recurrence.The Transformer dispenses with recurrence, which is a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"BLEU scores\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model's performance is measured by its BLEU scores.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Emergent Modularity phenomenon\", \"entity2\": \"Transformer\", \"description\": \"The Emergent Modularity phenomenon is observed in pre-trained Transformer models.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Convolutions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer dispenses with convolutions, which are a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Feed-Forward Network (FFN) layer\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer that is replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:18:38\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"State Space Models (SSMs)\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's attention mechanism has a drawback of quadratic time complexity, while State Space Models (SSMs) enable faster inference speeds by relying on the last hidden state.\", \"created_at\": \"2025-08-15 16:21:42\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Transformer\", \"entity2\": \"Vaswani et al.\", \"description\": \"Vaswani et al. are associated with the development or publication of the Transformer architecture.Vaswani et al. are the authors of the Transformer architecture.\", \"created_at\": \"2025-08-13 22:49:38\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder structure\", \"description\": \"\\\"The Transformer generally adopts an encoder-decoder structure.\\\")The Transformer is a transduction model that, unlike most competitive neural sequence transduction models, does not explicitly state it uses an encoder-decoder structure, but rather relies on self-attention.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"English Constituency Parsing\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is being evaluated on the task of English Constituency Parsing to assess its generalization capabilities.\", \"created_at\": \"2025-08-15 14:55:59\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"Transformer\", \"entity2\": \"newstest2014\", \"description\": \"The Transformer model is evaluated on the newstest2014 test set for translation tasks.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Transformer\", \"entity2\": \"images, audio and video\", \"description\": \"\\\"The Transformer is planned to be extended to problems involving input and output modalities other than text, such as images, audio, and video.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"English-to-French\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-French translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Constant number of operations\", \"entity2\": \"Transformer\", \"description\": \"The Transformer achieves a constant number of operations to learn dependencies between distant positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"Making generation less sequential\", \"entity2\": \"Transformer\", \"description\": \"Making generation less sequential is a planned enhancement for the Transformer model.\", \"created_at\": \"2025-08-15 14:57:21\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Feed-Forward Network (FFN)\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer block that can be replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"SVD\", \"entity2\": \"Transformer\", \"description\": \"The SVD method is applied to matrices (ΔW) derived from a Transformer's layers.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Transformer\", \"entity2\": \"simple-language question answering\", \"description\": \"The Transformer is implied to be relevant to simple-language question answering tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Mamba\", \"entity2\": \"Recurrent Neural Networks (RNNs)\", \"description\": \"Mamba is based on State Space Models (SSMs), which are a superclass of Recurrent Neural Networks (RNNs).\", \"created_at\": \"2025-08-15 16:21:43\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequential Computation\", \"description\": \"The inherent characteristic of Recurrent Neural Networks is their sequential computation, where hidden states are generated based on previous states and current input.\", \"created_at\": \"2025-08-15 18:20:09\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Gated Recurrent Units (GRU)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Gated Recurrent Units (GRU) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:55\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"Long Short-Term Memory (LSTM)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Long Short-Term Memory (LSTM) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"Encoder-Decoder Architectures\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Encoder-Decoder Architectures are mentioned alongside recurrent language models as areas where efforts have pushed boundaries, indicating a close relationship in the context of sequence modeling.\", \"created_at\": \"2025-08-15 18:21:27\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"Recurrent Language Models\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Recurrent Language Models are a specific application or type of recurrent neural network whose boundaries have been pushed by research.\", \"created_at\": \"2025-08-15 18:21:11\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"Language Modeling\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Language Modeling is an example of a sequence modeling and transduction problem where RNNs are state-of-the-art.\", \"created_at\": \"2025-08-15 18:19:09\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Machine Translation\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Machine Translation is an example of a sequence modeling and transduction problem where RNNs are state-of-the-art.\", \"created_at\": \"2025-08-15 18:19:40\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"transduction problems\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in transduction problems.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 1\\n\\nProvided proper attribution is provided, Google hereby grants permission to reproduce the tables and figures in this paper solely for use in journalistic or scholarly works. # Attention Is All You Need Ashish Vaswani∗ Google Brain avaswani@google.com Noam Shazeer∗ Google Brain noam@google.com Niki Parmar∗ Google Research nikip@google.com Jakob Uszkoreit∗ Google Research usz@google.com Llion Jones∗ Google Research llion@google.com Aidan N. Gomez∗ † University of Toronto aidan@cs.toronto.edu Łukasz Kaiser∗ Google Brain lukaszkaiser@google.com Illia Polosukhin∗ ‡illia.polosukhin@gmail.com # Abstract The dominant sequence transduction models are based on complex recurrent or convolutional neural networks that include an encoder and a decoder. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 3\\n\\n# 1 Introduction Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5]. Numerous efforts have since continued to push the boundaries of recurrent language models and encoder-decoder architectures [38, 24, 15]. Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states [math: h _ { t }] , as a function of the previous hidden state [math: h _ { t - 1 }] and the input for position [math: t] . This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Attention Is All You Need\\nChunk: 20\\n\\nFor each of these we use $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h \\\\stackrel { } { = } \\\\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \\\"encoder-decoder attention\\\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.7038, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 6.7038, + "start_timestamp": "2025-08-16T09:04:58.564616", + "end_timestamp": "2025-08-16T09:05:05.268426" + }, + "metadata": { + "saved_at": "2025-08-16T09:05:05.268426", + "file_path": "retrieval_logs\\retrieval_20250816_090505_268_local_k10_ck4_How_does_the_performance_and_efficiency_of_Transfo.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090516_265_local_k10_ck4_What_have_been_the_most_significant_results_and_ac.json b/retrieval_logs/retrieval_20250816_090516_265_local_k10_ck4_What_have_been_the_most_significant_results_and_ac.json new file mode 100644 index 0000000000000000000000000000000000000000..f2e9229074fc0dfa3428cf91d5f2fb5a405cd51c --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090516_265_local_k10_ck4_What_have_been_the_most_significant_results_and_ac.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:05:16.265271", + "query": "What have been the most significant results and achievements attributed to Transformer models in natural language processing and other domains?", + "query_mode": "local", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 9913, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Effective approaches to attention-based neural machine translation\", \"type\": \"methodology\", \"description\": \"This discusses effective strategies for neural machine translation that utilize attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"natural language processing\", \"type\": \"abstract\", \"description\": \"Natural Language Processing (NLP) is a significant field that relies on adapting large-scale, pre-trained language models to various downstream applications and particular tasks or domains. NLP has been greatly enhanced by advancements in language models, leading to broader applications across various fields. Within NLP, fundamental attention mechanisms are particularly utilized. Mixture of Experts (MoE) has seen recent applications in NLP, presenting multiple important subproblems that require further investigation, and is an area where MoE applications are reviewed in depth in the paper.\", \"created_at\": \"2025-08-15 14:52:22\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"BERT: Pre-training of deep bidirectional transformers for language understanding\", \"type\": \"abstract\", \"description\": \"This refers to a pre-training method for deep bidirectional transformers designed for language understanding.\", \"created_at\": \"2025-08-15 15:42:29\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"CONCLUSION\", \"type\": \"conclusion\", \"description\": \"The conclusion summarizes the proposed ReAct method and its effectiveness in various tasks, while also acknowledging limitations and future directions.This section concludes a comprehensive survey on the integration of the MoE architecture with various domains.This section provides a comprehensive survey of the integration of the MoE architecture with various domains, starting from basic designs and training strategies, highlighting its synergy with machine learning algorithms and recent theoretical advancements. It also summarizes MoE in computer vision and natural language processing and discusses future designs for improving MoE. The authors hope this work serves as a valuable reference and inspires further research.\", \"created_at\": \"2025-08-15 15:38:51\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Small Language Models\", \"entity2\": \"natural language processing\", \"description\": \"The evolution and techniques of Small Language Models are discussed in relation to their impact on natural language processing.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"GPT-3\", \"entity2\": \"natural language processing\", \"description\": \"GPT-3's pre-training plus in-context learning approach has greatly enhanced natural language processing.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"MoE architecture\", \"entity2\": \"natural language processing\", \"description\": \"The MoE architecture is systematically summarized in the application domain of natural language processing.\", \"created_at\": \"2025-08-15 15:39:03\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"CONCLUSION\", \"entity2\": \"MoE architecture\", \"description\": \"The conclusion summarizes the survey of the MoE architecture, its applications, and future directions.\", \"created_at\": \"2025-08-15 15:38:55\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"BERT\", \"entity2\": \"natural language processing\", \"description\": \"BERT's pre-training and fine-tuning paradigm is a key advancement that has greatly enhanced natural language processing.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"T5\", \"entity2\": \"natural language processing\", \"description\": \"T5's pre-training plus prompting approach is an advancement that has greatly enhanced natural language processing.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"natural language processing\", \"entity2\": \"our paper\", \"description\": \"The paper provides an in-depth review of MoE applications in natural language processing.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Section V\", \"entity2\": \"natural language processing\", \"description\": \"Section V will present recent applications of MoE in natural language processing.\", \"created_at\": \"2025-08-15 15:17:15\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"deep learning architectures\", \"entity2\": \"natural language processing\", \"description\": \"Deep learning architectures utilize fundamental attention mechanisms particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Effective approaches to attention-based neural machine translation\", \"entity2\": \"Neural machine translation in linear time\", \"description\": \"Both entries relate to neural machine translation, with one focusing on linear time and the other on attention-based approaches, suggesting a connection in the field.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Effective approaches to attention-based neural machine translation\", \"entity2\": \"Structured attention networks\", \"description\": \"Both mention attention networks, indicating a relationship in the development or application of attention mechanisms in machine translation.\", \"created_at\": \"2025-08-15 14:58:08\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 2\\n\\nrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks. Compared to GPT-3 175B fine-tuned with Adam, LoRA can reduce the number of trainable parameters by 10,000 times and the GPU memory requirement by 3 times. LoRA performs on-par or better than finetuning in model quality on RoBERTa, DeBERTa, GPT-2, and GPT-3, despite having fewer trainable parameters, a higher training throughput, and, unlike adapters, no additional inference latency. We also provide an empirical investigation into rank-deficiency in language model adaptation, which sheds light on the efficacy of LoRA. We release a package that facilitates the integration of LoRA with PyTorch models and provide our implementations and model checkpoints for RoBERTa, DeBERTa, and GPT-2 at https://github.com/microsoft/LoRA. # 1 INTRODUCTION Many applications in natural language processing rely on adapting one large-scale, pre-trained language model to multiple downstream applications.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 162\\n\\nExploring these combinations could lead to more versatile and powerful learning systems. # F. New applications Although MoE has been extensively explored in NLP, its potential in other domains remains underexplored. For instance, in computer vision, recent work has shown that MoE models can achieve performance that continues to improve with training, suggesting untapped potential in areas like image segmentation, object detection, and multimodal learning. Further exploration in these domains could yield significant breakthroughs. Additionally, MoE models could be applied to emerging fields such as healthcare, robotics, autonomous systems, education, finance, as well as recommendation systems, where the ability to handle diverse and complex tasks is crucial. Developing MoE models tailored to these specific applications could lead to more effective and efficient solutions. # VII. CONCLUSION This comprehensive survey delves into the integration of the MoE architecture with various domains.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: MOE\\nChunk: 13\\n\\nvers a variety of aspects in MoE, such as different gating functions, different expert models, and different learning scenarios. In Section V, we will present the recent applications of MoE in two major domains, i.e., computer vision and natural language processing, where we look into multiple important subproblems in each domain. Future research directions will be discussed in Section VI, followed by the conclusion in Section VII. # II. BASIC DESIGNS OF MOE In this section, we will focus on the basic framework and design considerations in MoE to help readers understand the general workflow of MoE, as shown in Figure 2. More specifically, we will first introduce the key components in the design of MoE, including the gating function, the expert networks, and the routing mechanism. The first two components essentially form a basic framework of MoE, whereas the last component characterizes how the gating function handles the input data.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.177, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 5.177, + "start_timestamp": "2025-08-16T09:05:11.088295", + "end_timestamp": "2025-08-16T09:05:16.265271" + }, + "metadata": { + "saved_at": "2025-08-16T09:05:16.265271", + "file_path": "retrieval_logs\\retrieval_20250816_090516_265_local_k10_ck4_What_have_been_the_most_significant_results_and_ac.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090516_349_local_k5_ck2_What_are_the_current_limitations_of_Transformer_mo.json b/retrieval_logs/retrieval_20250816_090516_349_local_k5_ck2_What_are_the_current_limitations_of_Transformer_mo.json new file mode 100644 index 0000000000000000000000000000000000000000..27932758e55f64861ad58a6f79264b22818e99bb --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090516_349_local_k5_ck2_What_are_the_current_limitations_of_Transformer_mo.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:05:16.349806", + "query": "What are the current limitations of Transformer models, and what are the promising directions for future research and development?", + "query_mode": "local", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 6416, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"runtime efficiency optimization\", \"type\": \"methodology\", \"description\": \"Reviewing representative works that address challenges related to the large size of models impacting runtime efficiency.\", \"created_at\": \"2025-08-15 16:41:15\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"computational and memory challenges\", \"type\": \"limitations\", \"description\": \"These challenges worsen with model size, impacting training and autoregressive decoding.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Encoder-Decoder Architectures\", \"type\": \"methodology\", \"description\": \"Architectures whose boundaries have been pushed by numerous efforts, alongside recurrent language models.\", \"created_at\": \"2025-08-15 18:18:27\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"dynamic gating, expert caching, and load balancing methods\", \"type\": \"methodology\", \"description\": \"These three optimization techniques are proposed to address inefficiency issues during deployment and inference stages of MoE models, improving inference efficiency in language modeling and machine translation tasks.\", \"created_at\": \"2025-08-15 15:37:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"MoE models\", \"entity2\": \"dynamic gating, expert caching, and load balancing methods\", \"description\": \"These methods are proposed to improve the inference efficiency of MoE models in language modeling and machine translation tasks.\", \"created_at\": \"2025-08-15 15:37:42\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Transformer architecture\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures such as Mamba, Hymba, and xLSTM are proposed to alleviate the inference cost of the Transformer architecture due to its attention mechanism.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Encoder-Decoder Architectures\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Encoder-Decoder Architectures are mentioned alongside recurrent language models as areas where efforts have pushed boundaries, indicating a close relationship in the context of sequence modeling.\", \"created_at\": \"2025-08-15 18:21:27\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"dynamic gating, expert caching, and load balancing methods\", \"entity2\": \"sparse activation mechanisms\", \"description\": \"Both sparse activation mechanisms and the proposed optimization techniques aim to improve the efficiency and capacity of MoE models.\", \"created_at\": \"2025-08-15 15:37:33\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Multimodal Fusion\", \"entity2\": \"dynamic gating, expert caching, and load balancing methods\", \"description\": \"The optimization techniques are applied to MoE models in language modeling and machine translation, while Multimodal Fusion is a general approach for richer data representations.\", \"created_at\": \"2025-08-15 15:37:37\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"computational and memory challenges\", \"entity2\": \"training\", \"description\": \"Computational and memory challenges worsen with model size, impacting training.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"autoregressive decoding\", \"entity2\": \"computational and memory challenges\", \"description\": \"Computational and memory challenges worsen with model size, impacting autoregressive decoding.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 3\\n\\n# 1 Introduction Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5]. Numerous efforts have since continued to push the boundaries of recurrent language models and encoder-decoder architectures [38, 24, 15]. Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states [math: h _ { t }] , as a function of the previous hidden state [math: h _ { t - 1 }] and the input for position [math: t] . This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 296\\n\\nace significant computational and memory challenges that worsen with model size, impacting training and autoregressive decoding. Recently, Mamba [117] has emerged as a promising alternative, adapting state space models to dynamically select inputs based on demands, thereby enhancing efficiency. Thereafter, xLSTM [25] demonstrates that an improved LSTM could function as an LLM, revealing the potential of traditional SSMs. The integration of global static information captured by SSMs with the dynamic information processing of Transformers could complement each other, leading to new architectures that balance effectiveness and efficiency. # 9.2 Addressing SLM Training Inefficiencies One study [85] explores the disparate learning dynamics between small and large language models. Utilizing the Pythia model suite, the research demonstrates that layers’ activations in larger models converge more rapidly and monotonically to their final states.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.3923, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.3923, + "start_timestamp": "2025-08-16T09:05:12.955959", + "end_timestamp": "2025-08-16T09:05:16.348303" + }, + "metadata": { + "saved_at": "2025-08-16T09:05:16.349806", + "file_path": "retrieval_logs\\retrieval_20250816_090516_349_local_k5_ck2_What_are_the_current_limitations_of_Transformer_mo.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090532_316_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_in_ma.json b/retrieval_logs/retrieval_20250816_090532_316_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_in_ma.json new file mode 100644 index 0000000000000000000000000000000000000000..26aea2b71ac0adaf511d3f6b659e79ca843ee3d0 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090532_316_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_in_ma.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:05:32.316718", + "query": "Based on the following Q&A about transformers in machine learning, provide a comprehensive research summary: [{'category': 'methodology', 'question': 'What are the key components of the Transformer architecture, such as self-attention, multi-head attention, and positional encodings, and how do they interact?', 'answer': 'The Transformer architecture utilizes self-attention, particularly multi-head attention, to process sequences by weighing input importance across different positions. While self-attention excels at capturing long-range dependencies, the context does not detail positional encodings, which are necessary to provide sequence order information.'}, {'category': 'comparison', 'question': 'How does the performance and efficiency of Transformer models compare to recurrent neural networks (RNNs) and convolutional neural networks (CNNs) on various NLP tasks?', 'answer': 'The Transformer architecture, relying on attention mechanisms, offers superior performance and training efficiency for sequence transduction tasks compared to RNNs, mainly due to its parallelizability and ability to capture long-range dependencies efficiently. However, Transformers face higher inference costs with longer sequences, an area where models like Mamba are emerging as alternatives.'}, {'category': 'evaluation', 'question': 'On which benchmark datasets and tasks have Transformers been most extensively evaluated, and what evaluation metrics are commonly used?', 'answer': 'The GLUE and SuperGLUE benchmarks are extensively used for evaluating natural language understanding models, including tasks like MNLI and sentiment analysis. While performance is discussed, specific evaluation metrics commonly used are not detailed in the provided context.'}, {'category': 'results', 'question': 'What have been the most significant results and achievements attributed to Transformer models in natural language processing and other domains?', 'answer': 'The context highlights advancements in adapting large language models using techniques like LoRA, which significantly reduces trainable parameters while maintaining or improving performance. It also mentions the exploration of Mixture of Experts (MoE) architectures in NLP and other domains.'}, {'category': 'future_work', 'question': 'What are the current limitations of Transformer models, and what are the promising directions for future research and development?', 'answer': 'Transformer models face computational and memory challenges due to self-attention, driving research into subquadratic-time architectures, while MoE models are optimized using techniques like dynamic gating for improved inference efficiency.'}]", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 19030, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Comparison of Self-Attention Layers\", \"type\": \"discussion\", \"description\": \"A section introduced to compare various aspects of self-attention layers to recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations to another sequence of equal length.\", \"created_at\": \"2025-08-15 18:29:32\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Figure 3\", \"type\": \"connection\", \"description\": \"Figure 3 presents a multifaceted view of model operations and performance, encompassing several distinct aspects. It illustrates the different types of widely used Mixture-of-Experts (MoE) layers. Figure 3 also demonstrates the scaling effect of prompting and finetuning four methods (Standard, CoT, Act, ReAct) on HotpotQA using PaLM-8/62B, noting that prompting ReAct performs the worst in this scenario due to challenges in learning both reasoning and acting from in-context examples. Additionally, Figure 3 illustrates the attention mechanism within the encoder's self-attention in layer 5 of 6, specifically highlighting how different attention heads focus on the distant dependency of the verb 'making' in the phrase 'making...more difficult'. A line graph within Figure 3 shows the outcomes of a self-reflection process, connecting iterations of self-reflection with the count of identified entity references. Furthermore, Figure 3 includes a comparison of subspace similarity through four heatmaps, with the left two displaying similarity between column vectors of ΔWq and ΔWv for a rank (r) of 8, and the right two offering magnified views of the lower-left triangle of the first two, showing similarity for ranks r=8 and r=64, thereby demonstrating the subspace similarity between Ar=8 and Ar=64, with findings generalizable to other layers. Figure 3 also illustrates the impact of extensive local epochs (large E) between averaging steps on the Shakespeare LSTM, with fixed parameters B=10 and C=0.1 and a constant learning rate η=1.47, indicating that for very large numbers of local epochs, FedAvg can plateau or diverge. Finally, Figure 3 illustrates the growing popularity of SLM releases over time.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Radford et al.\", \"type\": \"person\", \"description\": \"Radford et al. are authors whose work focuses on transformer models, specifically their application to autoregressive language modeling. Their publications include papers detailing the GPT-2 model, and they are known for their contributions to fine-tuning these transformer-based models. While some details of their work remain unavailable, the consistent information points to their significant authorship in the development and refinement of GPT-2 and similar models.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Figure 3\", \"entity2\": \"ReAct\", \"description\": \"Figure 3 shows that prompting ReAct performs worst among four methods on HotpotQA with PaLM-8/62B due to difficulties in learning reasoning and acting.\", \"created_at\": \"2025-08-15 15:58:30\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Figure 3\", \"entity2\": \"LLM\", \"description\": \"The LLM is used in the process whose results are displayed in Figure 3.\", \"created_at\": \"2025-08-13 23:38:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Figure 3\", \"entity2\": \"Figure 6\", \"description\": \"Figure 6 shows how the results presented in Figure 3 generalize to other layers.\", \"created_at\": \"2025-08-13 23:02:54\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Figure 3\", \"entity2\": \"Figure 7\", \"description\": \"Figure 7 shows how the results presented in Figure 3 generalize to other layers.\", \"created_at\": \"2025-08-13 23:03:02\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 3\", \"entity2\": \"MoE Layers\", \"description\": \"Figure 3 illustrates the different types of widely used MoE layers.\", \"created_at\": \"2025-08-15 17:38:46\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Figure 3\", \"entity2\": \"local epochs\", \"description\": \"Figure 3 visually represents the impact of varying the number of local epochs on model performance.\", \"created_at\": \"2025-08-15 15:09:04\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Ar=64\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows the subspace similarity between Ar=8 and Ar=64.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Ar=8\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows the subspace similarity between Ar=8 and Ar=64.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"4-bit NormalFloat (NF4)\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows that NF4 improves performance.\", \"created_at\": \"2025-08-13 23:07:44\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Figure 3\", \"entity2\": \"Shakespeare LSTM\", \"description\": \"Figure 3 specifically shows the experimental results for the Shakespeare LSTM model.\", \"created_at\": \"2025-08-15 15:09:03\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Figure 3\", \"entity2\": \"Standard, CoT, Act, ReAct\", \"description\": \"Figure 3 specifically shows the scaling effect of prompting/finetuning the Standard, CoT, Act, and ReAct methods.\", \"created_at\": \"2025-08-15 17:19:29\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Figure 3\", \"entity2\": \"encoder self-attention in layer 5 of 6\", \"description\": \"Figure 3 provides a visual example of the encoder self-attention in layer 5 of 6, specifically demonstrating how it follows long-distance dependencies.\", \"created_at\": \"2025-08-15 15:04:11\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Figure 3\", \"entity2\": \"verb making\", \"description\": \"Figure 3 shows that many attention heads in the encoder self-attention attend to the verb ‘making’ to capture long-distance dependencies.\", \"created_at\": \"2025-08-15 15:04:11\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 107\\n\\n# H.1 CORRELATION BETWEEN LORA MODULES See Figure 6 and Figure 7 for how the results presented in Figure 3 and Figure 4 generalize to other layers. # H.2 EFFECT OF $r$ ON GPT-2 We repeat our experiment on the effect of $r$ (Section 7.2) in GPT-2. Using the E2E NLG Challenge dataset as an example, we report the validation loss and test metrics achieved by different choices of $r$ after training for 26,000 steps. We present our result in Table 18. The optimal rank for GPT-2 Medium is between 4 and 16 depending on the metric used, which is similar to that for GPT-3 175B. Note that the relationship between model size and the optimal rank for adaptation is still an open question. # H.3 CORRELATION BETWEEN $W$ AND $\\\\Delta W$ See Figure 8 for the normalized subspace similarity between $W$ and $\\\\Delta W$ with varying $r$ .\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.8259, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.8259, + "start_timestamp": "2025-08-16T09:05:28.490866", + "end_timestamp": "2025-08-16T09:05:32.316718" + }, + "metadata": { + "saved_at": "2025-08-16T09:05:32.316718", + "file_path": "retrieval_logs\\retrieval_20250816_090532_316_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_in_ma.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090551_716_local_k3_ck2_How_does_LoRA_achieve_parameter-efficient_fine-tun.json b/retrieval_logs/retrieval_20250816_090551_716_local_k3_ck2_How_does_LoRA_achieve_parameter-efficient_fine-tun.json new file mode 100644 index 0000000000000000000000000000000000000000..4695303da72980abf70f46eeeab1456927d72d47 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090551_716_local_k3_ck2_How_does_LoRA_achieve_parameter-efficient_fine-tun.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:05:51.716576", + "query": "How does LoRA achieve parameter-efficient fine-tuning by introducing low-rank adaptation matrices?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 3595, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Lora: Low-rank adaptation of large language models.\", \"type\": \"methodology\", \"description\": \"This is a paper that introduces 'Lora', a method for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al.\", \"entity2\": \"Lora: Low-rank adaptation of large language models.\", \"description\": \"The authors are associated with the paper 'Lora: Low-rank adaptation of large language models.'.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 92\\n\\nMorrone, Q. De Laroussilhe, A. Gesmundo, M. Attariyan, and S. Gelly. Parameter-efficient transfer learning for nlp. In International Conference on Machine Learning, pages 2790–2799. PMLR, 2019. [28] E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, and W. Chen. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685, 2021. [29] S. Iyer, X. V. Lin, R. Pasunuru, T. Mihaylov, D. Simig, P. Yu, K. Shuster, T. Wang, Q. Liu, P. S. Koura, et al. Opt-iml: Scaling language model instruction meta learning through the lens of generalization. arXiv preprint arXiv:2212.12017, 2022. [30] A. Köksal, T. Schick, A. Korhonen, and H. Schütze. Longform: Optimizing instruction tuning for long text generation with corpus extraction. arXiv preprint arXiv:2304.08460, 2023. [31] A. Köpf, Y. Kilcher, D. von Rütte, S. Anagnostidis, Z.-R. Tam, K. Stevens, A. Barhoum, N. M. Duc, O. Stanley, R. Nagyfi, et al. Openassistant conversations–democratizing large language model alignment.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 4\\n\\nnsive; regular 16-bit finetuning of a LLaMA 65B parameter model [57] requires more than $7 8 0 ~ \\\\mathrm { G B }$ of GPU memory. While recent quantization methods can reduce the memory footprint of LLMs [14, 13, 18, 66], such techniques only work for inference and break down during training [65]. We demonstrate for the first time that it is possible to finetune a quantized 4-bit model without any performance degradation. Our method, QLORA, uses a novel high-precision technique to quantize a pretrained model to 4-bit, then adds a small set of learnable Low-rank Adapter weights [28] that are tuned by backpropagating gradients through the quantized weights. QLORA reduces the average memory requirements of finetuning a 65B parameter model from $> 7 8 0 \\\\mathrm { G B }$ of GPU memory to ${ < } 4 8 \\\\mathrm { G B }$ without degrading the runtime or predictive performance compared to a 16- bit fully finetuned baseline.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 7.7014, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 7.7014, + "start_timestamp": "2025-08-16T09:05:44.015142", + "end_timestamp": "2025-08-16T09:05:51.716576" + }, + "metadata": { + "saved_at": "2025-08-16T09:05:51.716576", + "file_path": "retrieval_logs\\retrieval_20250816_090551_716_local_k3_ck2_How_does_LoRA_achieve_parameter-efficient_fine-tun.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090551_798_local_k3_ck2_What_is_the_core_problem_that_LoRA_Low-Rank_Adapta.json b/retrieval_logs/retrieval_20250816_090551_798_local_k3_ck2_What_is_the_core_problem_that_LoRA_Low-Rank_Adapta.json new file mode 100644 index 0000000000000000000000000000000000000000..cddd30061586e36423c3d25884f14d2aa6d0d94a --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090551_798_local_k3_ck2_What_is_the_core_problem_that_LoRA_Low-Rank_Adapta.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:05:51.798045", + "query": "What is the core problem that LoRA (Low-Rank Adaptation) aims to solve in the context of large language models?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 3829, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Lora: Low-rank adaptation of large language models.\", \"type\": \"methodology\", \"description\": \"This is a paper that introduces 'Lora', a method for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"LoRA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS\", \"type\": \"abstract\", \"description\": \"This abstract introduces LoRA (Low-Rank Adaptation) as a method to adapt large language models to specific tasks or domains. It highlights the increasing infeasibility of full fine-tuning for larger models due to computational costs, using GPT-3 175B as an example. LoRA addresses this by freezing pretrained model weights and injecting trainable rank decomposition matrices into Transformer layers, significantly reducing trainable parameters for downstream tasks.\", \"created_at\": \"2025-08-15 14:52:21\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al.\", \"entity2\": \"Lora: Low-rank adaptation of large language models.\", \"description\": \"The authors are associated with the paper 'Lora: Low-rank adaptation of large language models.'.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 92\\n\\nMorrone, Q. De Laroussilhe, A. Gesmundo, M. Attariyan, and S. Gelly. Parameter-efficient transfer learning for nlp. In International Conference on Machine Learning, pages 2790–2799. PMLR, 2019. [28] E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, and W. Chen. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685, 2021. [29] S. Iyer, X. V. Lin, R. Pasunuru, T. Mihaylov, D. Simig, P. Yu, K. Shuster, T. Wang, Q. Liu, P. S. Koura, et al. Opt-iml: Scaling language model instruction meta learning through the lens of generalization. arXiv preprint arXiv:2212.12017, 2022. [30] A. Köksal, T. Schick, A. Korhonen, and H. Schütze. Longform: Optimizing instruction tuning for long text generation with corpus extraction. arXiv preprint arXiv:2304.08460, 2023. [31] A. Köpf, Y. Kilcher, D. von Rütte, S. Anagnostidis, Z.-R. Tam, K. Stevens, A. Barhoum, N. M. Duc, O. Stanley, R. Nagyfi, et al. Openassistant conversations–democratizing large language model alignment.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.0688, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 5.0688, + "start_timestamp": "2025-08-16T09:05:46.728211", + "end_timestamp": "2025-08-16T09:05:51.797041" + }, + "metadata": { + "saved_at": "2025-08-16T09:05:51.798045", + "file_path": "retrieval_logs\\retrieval_20250816_090551_798_local_k3_ck2_What_is_the_core_problem_that_LoRA_Low-Rank_Adapta.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090551_834_local_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json b/retrieval_logs/retrieval_20250816_090551_834_local_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json new file mode 100644 index 0000000000000000000000000000000000000000..627d9331c9e42e2b58bc0c7a127200844241374d --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090551_834_local_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:05:51.834017", + "query": "What is the key innovation of LoRA compared to other parameter-efficient fine-tuning techniques like adapter modules or prefix tuning?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 34517, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.1068, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 5.1068, + "start_timestamp": "2025-08-16T09:05:46.727211", + "end_timestamp": "2025-08-16T09:05:51.834018" + }, + "metadata": { + "saved_at": "2025-08-16T09:05:51.834017", + "file_path": "retrieval_logs\\retrieval_20250816_090551_834_local_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090606_480_local_k5_ck2_On_what_tasks_and_datasets_was_LoRA_evaluated_and_.json b/retrieval_logs/retrieval_20250816_090606_480_local_k5_ck2_On_what_tasks_and_datasets_was_LoRA_evaluated_and_.json new file mode 100644 index 0000000000000000000000000000000000000000..738673ee84a1bfddebe91a5e16095ab138a3dbef --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090606_480_local_k5_ck2_On_what_tasks_and_datasets_was_LoRA_evaluated_and_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:06:06.480803", + "query": "On what tasks and datasets was LoRA evaluated, and what metrics were used to demonstrate its performance?", + "query_mode": "local", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 34991, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"three datasets\", \"type\": \"category\", \"description\": \"Three datasets were used to evaluate the performance of LoRA.\", \"created_at\": \"2025-08-13 22:50:03\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"task-switching overhead\", \"type\": \"results\", \"description\": \"LoRA reduces task-switching overhead by enabling efficient task switching through the replacement of matrices A and B, while keeping the shared pre-trained model frozen.\", \"created_at\": \"2025-08-15 14:59:41\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 8.6202, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 8.6202, + "start_timestamp": "2025-08-16T09:05:57.860647", + "end_timestamp": "2025-08-16T09:06:06.480803" + }, + "metadata": { + "saved_at": "2025-08-16T09:06:06.480803", + "file_path": "retrieval_logs\\retrieval_20250816_090606_480_local_k5_ck2_On_what_tasks_and_datasets_was_LoRA_evaluated_and_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090606_503_local_k10_ck4_How_does_LoRAs_performance_and_efficiency_compare_.json b/retrieval_logs/retrieval_20250816_090606_503_local_k10_ck4_How_does_LoRAs_performance_and_efficiency_compare_.json new file mode 100644 index 0000000000000000000000000000000000000000..f1cc5b90cf36b3225d08584aee8840d8d7a09972 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090606_503_local_k10_ck4_How_does_LoRAs_performance_and_efficiency_compare_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:06:06.503988", + "query": "How does LoRA's performance and efficiency compare to full fine-tuning and other parameter-efficient methods across different model sizes and tasks?", + "query_mode": "local", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 36577, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.046, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 6.046, + "start_timestamp": "2025-08-16T09:06:00.458027", + "end_timestamp": "2025-08-16T09:06:06.503989" + }, + "metadata": { + "saved_at": "2025-08-16T09:06:06.503988", + "file_path": "retrieval_logs\\retrieval_20250816_090606_503_local_k10_ck4_How_does_LoRAs_performance_and_efficiency_compare_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090606_564_local_k3_ck2_What_are_the_practical_applications_and_potential_.json b/retrieval_logs/retrieval_20250816_090606_564_local_k3_ck2_What_are_the_practical_applications_and_potential_.json new file mode 100644 index 0000000000000000000000000000000000000000..c80079726901c5ad3c0a1d506ee3317901ff4e2e --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090606_564_local_k3_ck2_What_are_the_practical_applications_and_potential_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:06:06.564279", + "query": "What are the practical applications and potential benefits of using LoRA for adapting large pre-trained models to specific downstream tasks?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 34517, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.5526, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.5526, + "start_timestamp": "2025-08-16T09:06:03.010687", + "end_timestamp": "2025-08-16T09:06:06.563275" + }, + "metadata": { + "saved_at": "2025-08-16T09:06:06.564279", + "file_path": "retrieval_logs\\retrieval_20250816_090606_564_local_k3_ck2_What_are_the_practical_applications_and_potential_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090757_590_local_k3_ck2_What_is_the_fundamental_concept_behind_Transformer.json b/retrieval_logs/retrieval_20250816_090757_590_local_k3_ck2_What_is_the_fundamental_concept_behind_Transformer.json new file mode 100644 index 0000000000000000000000000000000000000000..7c7d3f854ca54a26f08f4a676b3a92de9fe5010c --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090757_590_local_k3_ck2_What_is_the_fundamental_concept_behind_Transformer.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:07:57.590519", + "query": "What is the fundamental concept behind Transformers and their significance in machine learning?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 4813, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"End-to-end memory networks\", \"entity2\": \"Self-attention\", \"description\": \"Both self-attention and end-to-end memory networks are attention mechanisms used in sequence processing tasks, with end-to-end memory networks specifically using a recurrent attention mechanism.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 6\\n\\nThis makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 29\\n\\nesentations used by state-of-the-art models in machine translations, such as word-piece [38] and byte-pair [31] representations. To improve computational performance for tasks involving very long sequences, self-attention could be restricted to considering only a neighborhood of size $r$ in the input sequence centered around the respective output position. This would increase the maximum path length to $O ( n / r )$ . We plan to investigate this approach further in future work. A single convolutional layer with kernel width $k < n$ does not connect all pairs of input and output positions. Doing so requires a stack of $O ( n / k )$ convolutional layers in the case of contiguous kernels, or $O ( l o g _ { k } ( n ) )$ in the case of dilated convolutions [18], increasing the length of the longest paths between any two positions in the network. Convolutional layers are generally more expensive than recurrent layers, by a factor of $k$ .\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 7.1892, + "rag_initialization_seconds": 4.8224, + "query_execution_seconds": 2.3668, + "start_timestamp": "2025-08-16T09:07:50.401310", + "end_timestamp": "2025-08-16T09:07:57.590519" + }, + "metadata": { + "saved_at": "2025-08-16T09:07:57.590519", + "file_path": "retrieval_logs\\retrieval_20250816_090757_590_local_k3_ck2_What_is_the_fundamental_concept_behind_Transformer.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090808_270_hybrid_k10_ck4_Based_on_the_following_QA_about_transformers_in_ma.json b/retrieval_logs/retrieval_20250816_090808_270_hybrid_k10_ck4_Based_on_the_following_QA_about_transformers_in_ma.json new file mode 100644 index 0000000000000000000000000000000000000000..f3c289589b233e569573af51c3bc1f3ac7414fb5 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090808_270_hybrid_k10_ck4_Based_on_the_following_QA_about_transformers_in_ma.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:08:08.270934", + "query": "Based on the following Q&A about transformers in machine learning, provide a comprehensive research summary: [{'category': 'overview', 'question': 'What is the fundamental concept behind Transformers and their significance in machine learning?', 'answer': 'The Transformer architecture fundamentally utilizes self-attention, a mechanism that relates different positions within a single sequence to compute representations, enabling efficient processing and capturing long-range dependencies across various tasks.'}]", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 35949, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"statistical model\", \"type\": \"methodology\", \"description\": \"A statistical model is utilized by EdgeMoE, built offline, to estimate expert activation probabilities in transformer layers from previous activations.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"transformer layers\", \"type\": \"methodology\", \"description\": \"Transformer layers are components within MoE architectures where EdgeMoE estimates expert activation probabilities.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"long sequences\", \"type\": \"methodology\", \"description\": \"Tasks involving very long sequences can have their computational performance improved by restricting self-attention to a neighborhood of size r.\", \"created_at\": \"2025-08-15 14:57:01\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Mixtures of experts for scaling up neural networks in order execution\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by K. Li, M. Cucuringu, L. Sanchez-Betancourt, and T. Willi, and was presented at the 5th ACM International Conference on AI in Finance in 2024.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Computational complexity\", \"type\": \"discussion\", \"description\": \"Self-attention layers are faster than recurrent layers in terms of computational complexity when the sequence length $n$ is smaller than the representation dimensionality $d$.\", \"created_at\": \"2025-08-15 14:55:24\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Movement primitive learning and generalization: Using mixture density networks\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by Y. Zhou, J. Gao, and T. Asfour, and was published in IEEE Robotics & Automation Magazine in 2020.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Comparison of Self-Attention Layers\", \"type\": \"discussion\", \"description\": \"A section introduced to compare various aspects of self-attention layers to recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations to another sequence of equal length.\", \"created_at\": \"2025-08-15 18:29:32\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Mixture-of-experts\", \"type\": \"methodology\", \"description\": \"Mixture-of-experts is a concept that appears to be a core focus of the cited works, particularly in the context of scaling neural networks and vision models.\", \"created_at\": \"2025-08-15 15:40:44\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Learning task-independent sentence representations\", \"type\": \"connection\", \"description\": \"Learning task-independent sentence representations is a task where self-attention has been used successfully.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity\", \"type\": \"methodology\", \"description\": \"This methodology is described in a publication by W. Fedus, B. Zoph, and N. Shazeer in the Journal of Machine Learning Research, vol. 23, no. 2, pp. 181–214, 1994.\", \"created_at\": \"2025-08-15 15:40:44\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Radford et al.\", \"type\": \"person\", \"description\": \"Radford et al. are authors whose work focuses on transformer models, specifically their application to autoregressive language modeling. Their publications include papers detailing the GPT-2 model, and they are known for their contributions to fine-tuning these transformer-based models. While some details of their work remain unavailable, the consistent information points to their significant authorship in the development and refinement of GPT-2 and similar models.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Hierarchical mixtures of experts and the EM algorithm\", \"type\": \"abstract\", \"description\": \"This paper discusses hierarchical mixtures of experts and the EM algorithm, published in 1994.\", \"created_at\": \"2025-08-15 15:37:40\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Mixture of Experts\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning technique that combines multiple 'expert' models to make predictions, often used for improving efficiency and performance.Mixture of Experts (MoE) is a machine learning technique where multiple expert models are combined to solve a problem, often leading to specialized or improved performance. This technique is applied in the context of federated learning.Mixture of Experts is a methodology discussed in multiple papers.\", \"created_at\": \"2025-08-15 15:47:12\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"LoRAP: Transformer Sub-Layers Deserve Differentiated Structured Compression for Large Language Models\", \"type\": \"methodology\", \"description\": \"This entry details a methodology called LoRAP, which focuses on differentiated structured compression for sub-layers of Transformers in Large Language Models, published as an arXiv preprint (arXiv:2404.09695) in 2024.\", \"created_at\": \"2025-08-15 17:23:59\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"Solving quantitative reasoning problems with language models\", \"type\": \"methodology\", \"description\": \"This entry refers to a methodology for solving quantitative reasoning problems using language models, published in Advances in Neural Information Processing Systems 35 (2022).\", \"created_at\": \"2025-08-15 17:23:59\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"statistical model\", \"entity2\": \"transformer layers\", \"description\": \"The statistical model estimates expert activation probabilities in transformer layers.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"MoE\", \"entity2\": \"Transformer\", \"description\": \"MoE layers typically replace the Feed-Forward Network (FFN) layer within a Transformer block when MoE is incorporated into existing Transformer models.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Transformer\", \"description\": \"Multi-Head Attention is employed within the Transformer to address the issue of reduced effective resolution arising from averaging attention-weighted positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Mixtures of experts for scaling up neural networks in order execution\", \"entity2\": \"Movement primitive learning and generalization: Using mixture density networks\", \"description\": \"Both methodologies utilize mixture-based approaches for learning and generalization in AI/robotics.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"GPT-2\", \"entity2\": \"Transformer\", \"description\": \"GPT-2 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Mixture-of-experts\", \"entity2\": \"Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity\", \"description\": \"The publication describing 'Switch transformers' is likely related to or an application of the 'Mixture-of-experts' concept, given the context of scaling models with sparsity.\", \"created_at\": \"2025-08-15 15:40:48\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mamba\", \"entity2\": \"Transformer\", \"description\": \"Mamba differs from Transformer in its approach to accessing hidden states, with Mamba focusing on the immediate previous hidden state and Transformer requiring access to all previous hidden states.Mamba offers a solution to the Transformer's drawback of quadratic time complexity during inference by relying only on the last hidden state, leading to faster inference speeds.Transformer uses attention heads for recall, while Mamba uses SSM heads for context summarization, highlighting different approaches to sequence processing.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Figure 5\", \"entity2\": \"Transformer\", \"description\": \"Figure 5 implicitly shows the Transformer's slower inference speeds by comparison to Mamba.\", \"created_at\": \"2025-08-15 16:21:47\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"MoE layer\", \"entity2\": \"Transformer\", \"description\": \"The MoE layer replaces the Feed-Forward Network (FFN) layer within a Transformer block.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Hymba\", \"entity2\": \"Transformer\", \"description\": \"Hymba integrates attention heads, similar to those in the Transformer, within its layers.\", \"created_at\": \"2025-08-15 16:29:28\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Hierarchical mixtures of experts and the EM algorithm\", \"entity2\": \"Mixture of Experts\", \"description\": \"This paper discusses hierarchical mixtures of experts.\", \"created_at\": \"2025-08-15 15:37:43\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Transformer\", \"entity2\": \"ΔWq\", \"description\": \"ΔWq is obtained from layers within a Transformer network.ΔWq represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:28\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRAP: Transformer Sub-Layers Deserve Differentiated Structured Compression for Large Language Models\", \"entity2\": \"Solving quantitative reasoning problems with language models\", \"description\": \"Both entries are related to language models, with one focusing on reasoning and the other on compression techniques for Transformer sub-layers.\", \"created_at\": \"2025-08-15 17:24:53\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Transformer\", \"entity2\": \"ΔWv\", \"description\": \"ΔWv represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Transformer\", \"entity2\": \"language modeling\", \"description\": \"The Transformer is implied to be relevant to language modeling tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Recurrence\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture dispenses with recurrence.The Transformer dispenses with recurrence, which is a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"BLEU scores\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model's performance is measured by its BLEU scores.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Emergent Modularity phenomenon\", \"entity2\": \"Transformer\", \"description\": \"The Emergent Modularity phenomenon is observed in pre-trained Transformer models.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Convolutions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer dispenses with convolutions, which are a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"Feed-Forward Network (FFN) layer\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer that is replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:18:38\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"State Space Models (SSMs)\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's attention mechanism has a drawback of quadratic time complexity, while State Space Models (SSMs) enable faster inference speeds by relying on the last hidden state.\", \"created_at\": \"2025-08-15 16:21:42\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Transformer\", \"entity2\": \"Vaswani et al.\", \"description\": \"Vaswani et al. are associated with the development or publication of the Transformer architecture.Vaswani et al. are the authors of the Transformer architecture.\", \"created_at\": \"2025-08-13 22:49:38\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder structure\", \"description\": \"\\\"The Transformer generally adopts an encoder-decoder structure.\\\")The Transformer is a transduction model that, unlike most competitive neural sequence transduction models, does not explicitly state it uses an encoder-decoder structure, but rather relies on self-attention.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"English Constituency Parsing\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is being evaluated on the task of English Constituency Parsing to assess its generalization capabilities.\", \"created_at\": \"2025-08-15 14:55:59\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"Transformer\", \"entity2\": \"newstest2014\", \"description\": \"The Transformer model is evaluated on the newstest2014 test set for translation tasks.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"Transformer\", \"entity2\": \"images, audio and video\", \"description\": \"\\\"The Transformer is planned to be extended to problems involving input and output modalities other than text, such as images, audio, and video.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"English-to-French\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-French translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Constant number of operations\", \"entity2\": \"Transformer\", \"description\": \"The Transformer achieves a constant number of operations to learn dependencies between distant positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Making generation less sequential\", \"entity2\": \"Transformer\", \"description\": \"Making generation less sequential is a planned enhancement for the Transformer model.\", \"created_at\": \"2025-08-15 14:57:21\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"Feed-Forward Network (FFN)\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer block that can be replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"SVD\", \"entity2\": \"Transformer\", \"description\": \"The SVD method is applied to matrices (ΔW) derived from a Transformer's layers.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"Transformer\", \"entity2\": \"simple-language question answering\", \"description\": \"The Transformer is implied to be relevant to simple-language question answering tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 20\\n\\nNote that both $W _ { 0 }$ and $B A$ are in $\\\\mathbb { R } ^ { d \\\\times k }$ . When we need to switch to another downstream task, we can recover $W _ { 0 }$ by subtracting $B A$ and then adding a different $B ^ { \\\\prime } A ^ { \\\\prime }$ , a quick operation with very little memory overhead. Critically, this guarantees that we do not introduce any additional latency during inference compared to a fine-tuned model by construction. # 4.2 APPLYING LORA TO TRANSFORMER In principle, we can apply LoRA to any subset of weight matrices in a neural network to reduce the number of trainable parameters. In the Transformer architecture, there are four weight matrices in the self-attention module $( W _ { q } , W _ { k } , W _ { v } , W _ { o } )$ and two in the MLP module. We treat $W _ { q }$ (or $W _ { k }$ , $W _ { v . }$ ) as a single matrix of dimension $d _ { m o d e l } \\\\times d _ { m o d e l }$ , even though the output dimension is usually sliced into attention heads.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: MOE\\nChunk: 166\\n\\n[10] J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S. Anadkat, et al., “Gpt-4 technical report,” arXiv preprint arXiv:2303.08774, 2023. [11] C. Thompson Neil, G. Kristjan, L. Keeheon, and F. Manso Gabriel, “The computational limits of deep learning,” ArXiv, Cornell University, juillet, 2020. [12] C. Sun, A. Shrivastava, S. Singh, and A. Gupta, “Revisiting unreasonable effectiveness of data in deep learning era,” in Proceedings of the IEEE international conference on computer vision, pp. 843–852, 2017. [13] R. A. Jacobs, M. I. Jordan, S. J. Nowlan, and G. E. Hinton, “Adaptive mixtures of local experts,” Neural computation, vol. 3, no. 1, pp. 79–87, 1991. [14] M. I. Jordan and R. A. Jacobs, “Hierarchical mixtures of experts and the em algorithm,” Neural computation, vol. 6, no. 2, pp. 181–214, 1994. [15] W. Fedus, B. Zoph, and N.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: MOE\\nChunk: 29\\n\\ncan attain higher BLEU scores [302] than Transformer with 213 million parameters while requiring significantly less computation. Inspired by MoA, numerous studies have been proposed to improve upon this design. SwitchHead [31] attempts to independently introduce the MoE mechanism for each head’s key, query, value, and output projection, and employs a noncompetitive selection activation function. This will therefore reduce the number of attention matrices that need to be computed, significantly lowering computational and memory requirements. MoH [33] enhances the standard MoE method by sharing heads and a two-stage routing strategy, and can further fine-tune pre-trained multi-head attention models into MoH models, enhancing their applicability. In addition, this work integrates the proposed MoH framework with various model frameworks including the encoder-decoder architecture, such as ViT [1], DiT [214], and decoder-only LLMs [215], which are applied in various tasks and demonstrate great potentials of MoH.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.2555, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.2555, + "start_timestamp": "2025-08-16T09:08:05.015475", + "end_timestamp": "2025-08-16T09:08:08.270935" + }, + "metadata": { + "saved_at": "2025-08-16T09:08:08.270934", + "file_path": "retrieval_logs\\retrieval_20250816_090808_270_hybrid_k10_ck4_Based_on_the_following_QA_about_transformers_in_ma.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090827_867_local_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json b/retrieval_logs/retrieval_20250816_090827_867_local_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json new file mode 100644 index 0000000000000000000000000000000000000000..1109797fa1ce08ff9bafa3b2fa8b6abda3c88e56 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090827_867_local_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:08:27.868186", + "query": "What is the key innovation of LoRA compared to other parameter-efficient fine-tuning (PEFT) methods?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 3595, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Lora: Low-rank adaptation of large language models.\", \"type\": \"methodology\", \"description\": \"This is a paper that introduces 'Lora', a method for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al.\", \"entity2\": \"Lora: Low-rank adaptation of large language models.\", \"description\": \"The authors are associated with the paper 'Lora: Low-rank adaptation of large language models.'.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 92\\n\\nMorrone, Q. De Laroussilhe, A. Gesmundo, M. Attariyan, and S. Gelly. Parameter-efficient transfer learning for nlp. In International Conference on Machine Learning, pages 2790–2799. PMLR, 2019. [28] E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, and W. Chen. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685, 2021. [29] S. Iyer, X. V. Lin, R. Pasunuru, T. Mihaylov, D. Simig, P. Yu, K. Shuster, T. Wang, Q. Liu, P. S. Koura, et al. Opt-iml: Scaling language model instruction meta learning through the lens of generalization. arXiv preprint arXiv:2212.12017, 2022. [30] A. Köksal, T. Schick, A. Korhonen, and H. Schütze. Longform: Optimizing instruction tuning for long text generation with corpus extraction. arXiv preprint arXiv:2304.08460, 2023. [31] A. Köpf, Y. Kilcher, D. von Rütte, S. Anagnostidis, Z.-R. Tam, K. Stevens, A. Barhoum, N. M. Duc, O. Stanley, R. Nagyfi, et al. Openassistant conversations–democratizing large language model alignment.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 4\\n\\nnsive; regular 16-bit finetuning of a LLaMA 65B parameter model [57] requires more than $7 8 0 ~ \\\\mathrm { G B }$ of GPU memory. While recent quantization methods can reduce the memory footprint of LLMs [14, 13, 18, 66], such techniques only work for inference and break down during training [65]. We demonstrate for the first time that it is possible to finetune a quantized 4-bit model without any performance degradation. Our method, QLORA, uses a novel high-precision technique to quantize a pretrained model to 4-bit, then adds a small set of learnable Low-rank Adapter weights [28] that are tuned by backpropagating gradients through the quantized weights. QLORA reduces the average memory requirements of finetuning a 65B parameter model from $> 7 8 0 \\\\mathrm { G B }$ of GPU memory to ${ < } 4 8 \\\\mathrm { G B }$ without degrading the runtime or predictive performance compared to a 16- bit fully finetuned baseline.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 7.8214, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 7.8214, + "start_timestamp": "2025-08-16T09:08:20.045747", + "end_timestamp": "2025-08-16T09:08:27.867187" + }, + "metadata": { + "saved_at": "2025-08-16T09:08:27.868186", + "file_path": "retrieval_logs\\retrieval_20250816_090827_867_local_k3_ck2_What_is_the_key_innovation_of_LoRA_compared_to_oth.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090827_900_local_k3_ck2_What_is_the_fundamental_problem_that_LoRA_Low-Rank.json b/retrieval_logs/retrieval_20250816_090827_900_local_k3_ck2_What_is_the_fundamental_problem_that_LoRA_Low-Rank.json new file mode 100644 index 0000000000000000000000000000000000000000..cba20e4adcc12f8fd78cc95749d14ded6a1c1842 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090827_900_local_k3_ck2_What_is_the_fundamental_problem_that_LoRA_Low-Rank.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:08:27.900864", + "query": "What is the fundamental problem that LoRA (Low-Rank Adaptation) addresses in the context of large language models?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 3829, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Lora: Low-rank adaptation of large language models.\", \"type\": \"methodology\", \"description\": \"This is a paper that introduces 'Lora', a method for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"LoRA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS\", \"type\": \"abstract\", \"description\": \"This abstract introduces LoRA (Low-Rank Adaptation) as a method to adapt large language models to specific tasks or domains. It highlights the increasing infeasibility of full fine-tuning for larger models due to computational costs, using GPT-3 175B as an example. LoRA addresses this by freezing pretrained model weights and injecting trainable rank decomposition matrices into Transformer layers, significantly reducing trainable parameters for downstream tasks.\", \"created_at\": \"2025-08-15 14:52:21\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al.\", \"entity2\": \"Lora: Low-rank adaptation of large language models.\", \"description\": \"The authors are associated with the paper 'Lora: Low-rank adaptation of large language models.'.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2305.14314v1\\nChunk: 92\\n\\nMorrone, Q. De Laroussilhe, A. Gesmundo, M. Attariyan, and S. Gelly. Parameter-efficient transfer learning for nlp. In International Conference on Machine Learning, pages 2790–2799. PMLR, 2019. [28] E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, and W. Chen. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685, 2021. [29] S. Iyer, X. V. Lin, R. Pasunuru, T. Mihaylov, D. Simig, P. Yu, K. Shuster, T. Wang, Q. Liu, P. S. Koura, et al. Opt-iml: Scaling language model instruction meta learning through the lens of generalization. arXiv preprint arXiv:2212.12017, 2022. [30] A. Köksal, T. Schick, A. Korhonen, and H. Schütze. Longform: Optimizing instruction tuning for long text generation with corpus extraction. arXiv preprint arXiv:2304.08460, 2023. [31] A. Köpf, Y. Kilcher, D. von Rütte, S. Anagnostidis, Z.-R. Tam, K. Stevens, A. Barhoum, N. M. Duc, O. Stanley, R. Nagyfi, et al. Openassistant conversations–democratizing large language model alignment.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.0816, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 6.0816, + "start_timestamp": "2025-08-16T09:08:21.819223", + "end_timestamp": "2025-08-16T09:08:27.900864" + }, + "metadata": { + "saved_at": "2025-08-16T09:08:27.900864", + "file_path": "retrieval_logs\\retrieval_20250816_090827_900_local_k3_ck2_What_is_the_fundamental_problem_that_LoRA_Low-Rank.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090827_955_local_k3_ck2_How_does_the_Low-Rank_Adaptation_LoRA_technique_mo.json b/retrieval_logs/retrieval_20250816_090827_955_local_k3_ck2_How_does_the_Low-Rank_Adaptation_LoRA_technique_mo.json new file mode 100644 index 0000000000000000000000000000000000000000..31cb35354942a5251394fc0281bfcf7dddbcc038 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090827_955_local_k3_ck2_How_does_the_Low-Rank_Adaptation_LoRA_technique_mo.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:08:27.955945", + "query": "How does the Low-Rank Adaptation (LoRA) technique modify the original pre-trained model weights during fine-tuning?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 5018, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low-Rank Adaptation (LoRA)\", \"type\": \"methodology\", \"description\": \"Low-Rank Adaptation (LoRA) is a parameter-efficient fine-tuning method that enables the training of dense layers in a neural network indirectly. It achieves this by optimizing rank decomposition matrices, denoted as A and B, which represent the changes to the dense layers during adaptation. The pre-trained weights of the model are kept frozen, and the update to the weight matrix is represented as $\\\\\\\\Delta \\\\\\\\mathbf { W } = \\\\\\\\mathbf { A } \\\\\\\\mathbf { B } ^ { \\\\\\\\top }$. The fine-tuned weight matrix is then calculated as $\\\\\\\\mathbf { W } _ { \\\\\\\\mathrm { f t } } = \\\\\\\\mathbf { W } + \\\\\\\\alpha \\\\\\\\Delta \\\\\\\\mathbf { W }$, where $\\\\\\\\alpha$ is a scaling factor that modulates the impact of the adaptation. This approach allows for fine-tuning on a smaller set of parameters while preserving the foundational capabilities of the pre-trained model. LoRA is both storage- and compute-efficient, as it uses low ranks (e.g., r=1 or 2) for adaptation even when the full rank (d) is high (e.g., 12,288). This efficiency allows a single pre-trained model to be shared and used to build numerous small LoRA modules for different tasks by freezing the shared model and switching tasks through the replacement of matrices A and B. LoRA is particularly effective for fine-tuning large language models (SLMs).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Low-Rank Adaptation (LoRA)\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"Small Language Models (SLMs) are effective with Low-Rank Adaptation (LoRA).\", \"created_at\": \"2025-08-15 16:29:43\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"GPT-3 175B\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Fine-Tuning\", \"entity2\": \"Low-Rank Adaptation (LoRA)\", \"description\": \"Low-Rank Adaptation (LoRA) is a type of fine-tuning method.\", \"created_at\": \"2025-08-15 16:31:31\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Low-Rank Adaptation (LoRA)\", \"entity2\": \"Transformer weights\", \"description\": \"Low-Rank Adaptation (LoRA) modifies Transformer weights for efficient fine-tuning.\", \"created_at\": \"2025-08-15 16:29:35\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Low-Rank Adaptation (LoRA)\", \"entity2\": \"Transformer operations\", \"description\": \"The fine-tuned weight matrix from LoRA is used in Transformer operations.\", \"created_at\": \"2025-08-15 16:29:41\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 55\\n\\n118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\\\Delta \\\\mathbf { W } = \\\\mathbf { A } \\\\mathbf { B } ^ { \\\\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\\\mathbf { W } _ { \\\\mathrm { f t } } = \\\\mathbf { W } + \\\\alpha \\\\Delta \\\\mathbf { W }$ where $\\\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 1\\n\\n# LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS Edward $\\\\mathbf { H u } ^ { * }$ Yelong Shen∗ Phillip Wallis Zeyuan Allen-Zhu Yuanzhi Li Shean Wang Lu Wang Weizhu Chen Microsoft Corporation \\n{edwardhu, yeshe, phwallis, zeyuana, \\nyuanzhil, swang, luw, wzchen}@microsoft.com \\nyuanzhil@andrew.cmu.edu \\n(Version 2) # ABSTRACT An important paradigm of natural language processing consists of large-scale pretraining on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example – deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pretrained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.1367, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 6.1367, + "start_timestamp": "2025-08-16T09:08:21.819223", + "end_timestamp": "2025-08-16T09:08:27.955945" + }, + "metadata": { + "saved_at": "2025-08-16T09:08:27.955945", + "file_path": "retrieval_logs\\retrieval_20250816_090827_955_local_k3_ck2_How_does_the_Low-Rank_Adaptation_LoRA_technique_mo.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090840_210_local_k10_ck4_How_does_LoRAs_performance_and_efficiency_in_terms.json b/retrieval_logs/retrieval_20250816_090840_210_local_k10_ck4_How_does_LoRAs_performance_and_efficiency_in_terms.json new file mode 100644 index 0000000000000000000000000000000000000000..091928c5d0d5dbb76a3a0c2024981742e354e298 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090840_210_local_k10_ck4_How_does_LoRAs_performance_and_efficiency_in_terms.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:08:40.210685", + "query": "How does LoRA's performance and efficiency (in terms of trainable parameters and computational cost) compare to full fine-tuning and other PEFT methods like adapter tuning or prefix tuning?", + "query_mode": "local", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 38300, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"LoRA + PL\", \"type\": \"category\", \"description\": \"LoRA + PL combines LoRA with prefix-layer tuning, using trainable embedding and activation parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA + PE\", \"type\": \"category\", \"description\": \"LoRA + PE combines LoRA with prefix-embedding tuning, using trainable embedding parameters for special tokens.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 107, \"entity1\": \"LoRA + PL\", \"entity2\": \"MNLI\", \"description\": \"LoRA + PL is evaluated on the MNLI dataset.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 108, \"entity1\": \"LoRA + PE\", \"entity2\": \"MNLI\", \"description\": \"LoRA + PE is evaluated on the MNLI dataset.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 109, \"entity1\": \"LoRA + PL\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA + PL is evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 110, \"entity1\": \"LoRA + PE\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA + PE is evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 111, \"entity1\": \"LoRA + PL\", \"entity2\": \"PrefixLayer\", \"description\": \"PrefixLayer is a key component of the LoRA + PL method, defining how prefix layers are tuned.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 112, \"entity1\": \"LoRA + PE\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed is a key component of the LoRA + PE method, defining how prefix embeddings are tuned.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 44\\n\\no the best of our knowledge, none of these works considers low-rank update to a frozen model for adaptation to downstream tasks. In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a). Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training. In sum, we believe that our proposed low-rank adaptation update is well-motivated by the literature. # 7 UNDERSTANDING THE LOW-RANK UPDATES Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2305.14314v1\\nChunk: 16\\n\\n{ 1 } \\\\in \\\\mathbb { R } ^ { h \\\\times r }$ and $\\\\mathbf { L } _ { 2 } \\\\in \\\\mathbb { R } ^ { r \\\\times o }$ , and $s$ is a scalar. Memory Requirement of Parameter-Efficient Finetuning One important point of discussion is the memory requirement of LoRA during training both in terms of the number and size of adapters used. Since the memory footprint of LoRA is so minimal, we can use more adapters to improve performance without significantly increasing the total memory used. While LoRA was designed as a Parameter Efficient Finetuning (PEFT) method, most of the memory footprint for LLM finetuning comes from activation gradients and not from the learned LoRA parameters. For a 7B LLaMA model trained on FLAN v2 with a batch size of 1, with LoRA weights equivalent to commonly used $0 . 2 \\\\%$ of the original model weights[28, 37], the LoRA input gradients have a memory footprint of 567 MB while the LoRA parameters take up only $2 6 \\\\mathrm { M B }$ .\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.9533, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 5.9533, + "start_timestamp": "2025-08-16T09:08:34.256366", + "end_timestamp": "2025-08-16T09:08:40.209688" + }, + "metadata": { + "saved_at": "2025-08-16T09:08:40.210685", + "file_path": "retrieval_logs\\retrieval_20250816_090840_210_local_k10_ck4_How_does_LoRAs_performance_and_efficiency_in_terms.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090840_287_local_k5_ck2_On_what_types_of_tasks_and_datasets_has_LoRA_been_.json b/retrieval_logs/retrieval_20250816_090840_287_local_k5_ck2_On_what_types_of_tasks_and_datasets_has_LoRA_been_.json new file mode 100644 index 0000000000000000000000000000000000000000..5611fad5865ad4ea4e14aec7b4b7c1648291178a --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090840_287_local_k5_ck2_On_what_types_of_tasks_and_datasets_has_LoRA_been_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:08:40.287365", + "query": "On what types of tasks and datasets has LoRA been primarily evaluated, and what metrics are used to demonstrate its performance?", + "query_mode": "local", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 34724, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"three datasets\", \"type\": \"category\", \"description\": \"Three datasets were used to evaluate the performance of LoRA.\", \"created_at\": \"2025-08-13 22:50:03\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 110\\n\\n# B.2 Hyperparameters We provide the exact hyperparameters used in our QLORA finetuning experiments. We find hyperparameters to be largely robust across datasets. We use the MMLU 5-shot dev set for validation and hyperparameter tuning. In all our experiments we use NF4 with double quantization and bf16 computation datatype. We set LoRA $r = 6 4$ , $\\\\alpha = 1 6$ , and add LoRA modules on all linear layers of the base model. We also use Adam beta2 of 0.999, max grad norm of 0.3 and LoRA dropout of 0.1 for models up to 13B and 0.05 for 33B and 65B models. Following previous work on instruction finetuning [62, 60] and after benchmarking other linear and cosine schedules, we use a constant learning rate schedule. We use group-by-length to group examples of similar lengths in the same batch (note this will produce a oscillating loss curve). The hyperparameters we tune for each model size are shown in Table 9. # B.3 Ablations\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.1496, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.1496, + "start_timestamp": "2025-08-16T09:08:37.137739", + "end_timestamp": "2025-08-16T09:08:40.287366" + }, + "metadata": { + "saved_at": "2025-08-16T09:08:40.287365", + "file_path": "retrieval_logs\\retrieval_20250816_090840_287_local_k5_ck2_On_what_types_of_tasks_and_datasets_has_LoRA_been_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_090856_137_hybrid_k5_ck2_Based_on_the_following_QA_about_LoRA_Low-Rank_Adap.json b/retrieval_logs/retrieval_20250816_090856_137_hybrid_k5_ck2_Based_on_the_following_QA_about_LoRA_Low-Rank_Adap.json new file mode 100644 index 0000000000000000000000000000000000000000..3ea9639de0c886d170b3b0787211ad6dc60141e4 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_090856_137_hybrid_k5_ck2_Based_on_the_following_QA_about_LoRA_Low-Rank_Adap.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:08:56.138436", + "query": "Based on the following Q&A about LoRA (Low-Rank Adaptation), provide a comprehensive research summary: [{'category': 'overview', 'question': 'What is the fundamental problem that LoRA (Low-Rank Adaptation) addresses in the context of large language models?', 'answer': 'LoRA addresses the problem of high computational costs and impracticality associated with fully fine-tuning massive language models by introducing a more parameter-efficient adaptation method.'}, {'category': 'methodology', 'question': 'How does the Low-Rank Adaptation (LoRA) technique modify the original pre-trained model weights during fine-tuning?', 'answer': 'LoRA fine-tuning modifies pre-trained models by freezing original weights and injecting small, trainable low-rank matrices (A and B) to represent weight updates, calculated as $\\\\Delta W = A B^{\\\\top}$. The new weights are $W_{ft} = W + \\\\alpha \\\\Delta W$, making the process efficient.'}, {'category': 'innovation', 'question': 'What is the key innovation of LoRA compared to other parameter-efficient fine-tuning (PEFT) methods?', 'answer': \"LoRA's key innovation is its parameter-efficient fine-tuning approach, which injects trainable low-rank decomposition matrices into large language models, dramatically reducing the number of parameters that need to be updated and enabling efficient fine-tuning of even quantized models.\"}, {'category': 'evaluation', 'question': 'On what types of tasks and datasets has LoRA been primarily evaluated, and what metrics are used to demonstrate its performance?', 'answer': 'LoRA has been primarily evaluated on NLU and NLG tasks using datasets like MNLI and WikiSQL, with performance measured by accuracy and Rouge scores.'}, {'category': 'comparison', 'question': \"How does LoRA's performance and efficiency (in terms of trainable parameters and computational cost) compare to full fine-tuning and other PEFT methods like adapter tuning or prefix tuning?\", 'answer': 'LoRA is a parameter-efficient fine-tuning method that significantly reduces trainable parameters and computational costs compared to full fine-tuning, often achieving superior or comparable performance across various benchmarks and demonstrating advantages over other PEFT methods like adapter tuning and prefix tuning.'}]", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 42841, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Low-rank Adapter weights\", \"type\": \"category\", \"description\": \"A small set of learnable weights added to a quantized model for finetuning.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Lora: Low-rank adaptation of large language models.\", \"type\": \"methodology\", \"description\": \"This is a paper that introduces 'Lora', a method for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Lora: Low-rank adaptation of large language models\", \"type\": \"methodology\", \"description\": \"Lora is a method for adapting large language models, as described in an arXiv preprint from 2021.This methodology, also known as LoRA, is a technique for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"LoRA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS\", \"type\": \"abstract\", \"description\": \"This abstract introduces LoRA (Low-Rank Adaptation) as a method to adapt large language models to specific tasks or domains. It highlights the increasing infeasibility of full fine-tuning for larger models due to computational costs, using GPT-3 175B as an example. LoRA addresses this by freezing pretrained model weights and injecting trainable rank decomposition matrices into Transformer layers, significantly reducing trainable parameters for downstream tasks.\", \"created_at\": \"2025-08-15 14:52:21\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-15 17:08:15\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"LoRA: Low-rank adaptation of large language models\", \"type\": \"category\", \"description\": \"This is the title of a research paper.\", \"created_at\": \"2025-08-13 23:19:16\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"enormous language models\", \"type\": \"UNKNOWN\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:24\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"LoRA finetuning\", \"type\": \"methodology\", \"description\": \"LoRA finetuning is a personalized method applied to Large Language Models for each individual user, indicated by distinct sets of trapezoidal shapes labeled B₁, A₁, B₂, A₂, and Bₖ, Aₖ.LoRA finetuning is an approach used in recommendation systems, with personalized and non-personalized variations.\", \"created_at\": \"2025-08-15 16:33:10\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes\", \"type\": \"methodology\", \"description\": \"This methodology aims to outperform larger language models by using less training data and smaller model sizes, achieved through a step-by-step distillation process.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Parameter-efficient transfer learning for NLP\", \"type\": \"methodology\", \"description\": \"This methodology focuses on efficient transfer learning for Natural Language Processing (NLP). It is presented in the International Conference on Machine Learning.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"SLMs\", \"description\": \"LoRA is a fine-tuning technique that can incorporate extensive knowledge across all users by training an external module with a small number of parameters, which can be applied to SLMs.SLMs are optimized with LoRA, and this optimization leads to better performance compared to generic LLMs.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Large Language Models\", \"entity2\": \"Lora: Low-rank adaptation of large language models\", \"description\": \"Lora is a methodology for adapting Large Language Models.\", \"created_at\": \"2025-08-15 17:10:55\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"LoRA\", \"entity2\": \"QLORA\", \"description\": \"LoRA modules are a key component of the QLORA finetuning method.QLORA is a finetuning method that builds upon or improves upon LoRA's techniques, particularly regarding memory efficiency.\", \"created_at\": \"2025-08-13 23:21:16\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"enormous language models\", \"description\": \"LoRA is an adaptation strategy for fine-tuning enormous language models.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"LoRA\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"LoRA is a method for providing personalized services in real-world applications of SLMs.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Large Language Models\", \"entity2\": \"LoRA finetuning\", \"description\": \"LoRA finetuning is applied to Large Language Models for personalized user adaptation.\", \"created_at\": \"2025-08-15 16:33:13\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes\", \"entity2\": \"Lora: Low-rank adaptation of large language models\", \"description\": \"Both methodologies aim to achieve better performance with smaller models or less data, suggesting a potential connection in their goals or underlying principles.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"GPT-3\", \"entity2\": \"LoRA\", \"description\": \"GPT-3 was used in experiments to evaluate the performance of the LoRA adaptation method.LoRA (Low-Rank Adaptation) is a fine-tuning method used with GPT-3. This technique modifies GPT-3's parameters, resulting in variations in both the number of parameters and performance metrics compared to the base GPT-3 model. Experiments using LoRA to fine-tune GPT-3 demonstrated performance that matched or even surpassed baseline results across various datasets, even under stress test conditions. In comparison to full fine-tuning of GPT-3 using methods like Adam, LoRA offers a significant reduction in the number of trainable parameters and the GPU memory required for training. Specific training hyperparameters employed in these GPT-3 experiments using LoRA are detailed in Table 12.LoRA is a method used with GPT-3 in experiments on MNLI.\", \"created_at\": \"2025-08-13 23:02:46\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Lora: Low-rank adaptation of large language models\", \"entity2\": \"Parameter-efficient transfer learning for NLP\", \"description\": \"LoRA is a specific technique that falls under the broader category of parameter-efficient transfer learning for NLP.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"LLaMA\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used as a fine-tuning technique for the LLaMA model.LoRA was used as a PEFT method for finetuning the LLaMA model.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Guanaco\", \"entity2\": \"LoRA\", \"description\": \"LoRA was used as an adapter method in the assessment of Guanaco.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"GPT-2\", \"entity2\": \"LoRA\", \"description\": \"Additional experiments on GPT-2 are mentioned, suggesting further investigation of LoRA's applicability.In experiments conducted for the E2E NLG Challenge, Low-Rank Adaptation (LoRA) was applied to GPT-2 medium and large models to assess its effectiveness on natural language generation (NLG) tasks. LoRA's hyperparameters were tuned specifically for GPT-2 models (details in Table 11). These experiments demonstrated that LoRA achieves comparable or superior performance to full fine-tuning on downstream tasks, while offering significant advantages: it uses considerably fewer parameters and introduces no additional inference latency.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"LoRA\", \"entity2\": \"MNLI\", \"description\": \"LoRA (Low-Rank Adaptation) was used for model adaptation within the context of the Multi-Genre Natural Language Inference (MNLI) dataset. Evaluations on subsets of MNLI demonstrated LoRA's favorable sample efficiency. Comparative analyses of LoRA's performance against a fully fine-tuned model on MNLI, using different experimental setups, were also conducted. Overall, LoRA's performance on the MNLI dataset was assessed across multiple experiments.\", \"created_at\": \"2025-08-13 23:04:46\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"LoRA\", \"entity2\": \"WikiSQL\", \"description\": \"LoRA's performance on the WikiSQL dataset demonstrates significant improvements over previous methods. Evaluations show higher validation accuracy than other approaches, with an accuracy fluctuation of approximately ±0.5%. This improvement is further enhanced when LoRA is used in conjunction with prefix-embedding tuning.LoRA's performance was evaluated on the WikiSQL dataset.\", \"created_at\": \"2025-08-13 23:01:10\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa\", \"description\": \"LoRA modules are used in the training and adaptation of the RoBERTa model.LoRA's downstream task performance is evaluated on RoBERTa.LoRA's performance is evaluated on RoBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"LoRA\", \"entity2\": \"WebNLG\", \"description\": \"LoRA's performance is tested on the WebNLG dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"GPT-3 175B\", \"entity2\": \"LoRA\", \"description\": \"LoRA (Low-Rank Adaptation) is a technique applied to GPT-3 175B, a large language model, to address the high cost and resource consumption associated with fine-tuning. By targeting the weight matrices of GPT-3 175B, LoRA significantly decreases VRAM consumption and checkpoint size during training by reducing the number of trainable parameters. This approach enhances training efficiency and reduces resource requirements without compromising performance on downstream tasks. In fact, LoRA's application to GPT-3 175B has demonstrated improved performance in certain scenarios, showing higher validation accuracy compared to other methods when evaluated on MNLI subsets, where it was compared against techniques like Fine-Tune, PrefixEmbed, and PrefixLayer.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"E2E NLG Challenge\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is evaluated and compared in the E2E NLG Challenge.LoRA's performance is evaluated and compared to baselines in the E2E NLG Challenge.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"LoRA\", \"entity2\": \"W\", \"description\": \"LoRA is a method that modifies the weight matrix W through the addition of a low-rank update BA. The text describes how LoRA modifies W.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Li & Liang\", \"entity2\": \"LoRA\", \"description\": \"The authors corroborate similar observations from Li & Liang's work regarding the impact of special tokens on model performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"DART\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is tested on the DART dataset/benchmark.\", \"created_at\": \"2025-08-13 22:59:38\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"DeBERTa\", \"entity2\": \"LoRA\", \"description\": \"LoRA's downstream task performance is evaluated on DeBERTa.LoRA's performance is evaluated on DeBERTa, showing on-par or better results than fine-tuning with fewer parameters and no additional inference latency.\", \"created_at\": \"2025-08-13 22:44:21\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"LoRA\", \"entity2\": \"T5\", \"description\": \"LoRA was used in training different sizes of T5 models with varying parameters (r and alpha).\", \"created_at\": \"2025-08-13 23:20:27\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"AdapterL\", \"entity2\": \"LoRA\", \"description\": \"LoRA is compared to AdapterL in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.LoRA is mentioned in the context of AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:59:05\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"LoRA\", \"entity2\": \"QLoRA\", \"description\": \"LoRA and QLoRA are both finetuning methods, but QLoRA further optimizes memory by using a 4-bit transformer and paged optimizers.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"LoRA\", \"entity2\": \"Wq\", \"description\": \"The correlation analysis involving Wq suggests that LoRA amplifies important features for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:34\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Houlsby et al.\", \"entity2\": \"LoRA\", \"description\": \"Houlsby et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"LoRA\", \"entity2\": \"abstract\", \"description\": \"The abstract describes the LoRA methodology and its benefits.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"$\\\\Delta W$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is a technique that modifies the weight matrices (W) by adding $\\\\Delta W$ to improve performance on downstream tasks.\", \"created_at\": \"2025-08-13 22:47:09\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Fine-Tune\", \"entity2\": \"LoRA\", \"description\": \"LoRA achieves better performance than Fine-tuning on MNLI-100 and MNLI-Full.LoRA is compared to Fine-Tune in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"LoRA\", \"entity2\": \"PrefixEmbed\", \"description\": \"PrefixEmbed and LoRA are alternative methods for model adaptation.\", \"created_at\": \"2025-08-13 23:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"LoRA\", \"entity2\": \"Parameter Efficient FineTuning (PEFT)\", \"description\": \"LoRA is compared to PEFT methods as alternative adapter methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"GPT-2 Medium\", \"entity2\": \"LoRA\", \"description\": \"LoRA is used with GPT-2 Medium in the experiment to achieve results on the E2E NLG Challenge.LoRA was applied to the GPT-2 Medium model, resulting in performance metrics (BLEU, DART MET, TER).\", \"created_at\": \"2025-08-13 23:04:00\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"LoRA\", \"entity2\": \"Uni-MoE model\", \"description\": \"The Uni-MoE model utilizes LoRA for fine-tuning, optimizing performance with mixed multimodal instruction data while maintaining computational efficiency.\", \"created_at\": \"2025-08-15 15:15:24\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"LoRA\", \"entity2\": \"Table 13\", \"description\": \"Table 13 shows the performance of LoRA in comparison to prefix-based approaches.\", \"created_at\": \"2025-08-13 22:59:39\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"LoRA\", \"entity2\": \"RoBbase\", \"description\": \"The RoBbase model was trained using the LoRA method. Performance metrics are reported for this training method.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"LoRA\", \"entity2\": \"OPT\", \"description\": \"LoRA hyperparameters were searched, suggesting it might have been used in the OPT model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:44\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"LoRA\", \"entity2\": \"RTE\", \"description\": \"LoRA is initialized to the pre-trained model for RTE in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"LoRA\", \"entity2\": \"STS-B\", \"description\": \"LoRA is initialized to the pre-trained model for STS-B in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"LoRA\", \"entity2\": \"Table 4\", \"description\": \"Table 4 presents the results of LoRA's performance on various datasets.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI\", \"description\": \"LoRA's performance is evaluated on the MultiNLI dataset, achieving performance comparable to human baselines.\", \"created_at\": \"2025-08-13 23:00:29\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"LoRA\", \"entity2\": \"prefix-based approaches\", \"description\": \"LoRA can be combined with existing prefix-based approaches.\", \"created_at\": \"2025-08-13 22:56:41\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"LoRA\", \"entity2\": \"Pfeiffer et al.\", \"description\": \"Pfeiffer et al.'s work is replicated and compared with LoRA in the study.\", \"created_at\": \"2025-08-13 22:47:22\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"$W_q$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_q$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"LoRA\", \"entity2\": \"MRPC\", \"description\": \"LoRA is initialized to the pre-trained model for MRPC in a specific experimental setup.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"GPTQ\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the context of GPTQ quantization, suggesting a potential combination of methods.\", \"created_at\": \"2025-08-13 23:17:30\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PE\", \"description\": \"LoRA is a component of the LoRA + PE method, which combines it with prefix-embedding tuning.\", \"created_at\": \"2025-08-13 22:59:14\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"LoRA\", \"entity2\": \"LoRA + PL\", \"description\": \"LoRA is a component of the LoRA + PL method, which combines it with prefix-layer tuning.\", \"created_at\": \"2025-08-13 22:59:24\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Appendix B\", \"entity2\": \"LoRA\", \"description\": \"Appendix B contains the full study detailing LoRA's design and benefits.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"LoRA\", \"entity2\": \"adapters\", \"description\": \"LoRA is compared to adapters in the study to evaluate its performance in model adaptation.\", \"created_at\": \"2025-08-13 22:47:23\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"LoRA\", \"entity2\": \"RoBERTa large model\", \"description\": \"The RoBERTa large model is used as a base for adapting LoRA modules to different tasks.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Adapter layers\", \"entity2\": \"LoRA\", \"description\": \"LoRA is presented as an alternative to adapter layers for model adaptation, differing in parallel vs. sequential module addition.\", \"created_at\": \"2025-08-13 22:57:35\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Full Finetuning\", \"entity2\": \"LoRA\", \"description\": \"Both Full Finetuning and LoRA are finetuning methods that use 16-bit transformers, but LoRA uses smaller adapters.\", \"created_at\": \"2025-08-13 23:08:06\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"Adam\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters are tuned using the Adam optimizer.LoRA is used in conjunction with the Adam optimization algorithm during training.\", \"created_at\": \"2025-08-13 23:21:18\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"LoRA\", \"entity2\": \"LoRA weights\", \"description\": \"LoRA is the method used, and LoRA weights are the parameters adjusted during training.\", \"created_at\": \"2025-08-13 23:06:15\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"LoRA\", \"entity2\": \"RoBlarge\", \"description\": \"RoBlarge (LoRA)t suggests that RoBlarge is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:05\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"LORA + PE\", \"entity2\": \"LoRA\", \"description\": \"The performance of LORA + PE is compared to LoRA alone on both WikiSQL and MultiNLI datasets.\", \"created_at\": \"2025-08-13 23:00:38\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"DeBxxL\", \"entity2\": \"LoRA\", \"description\": \"DeBxxL (LoRA) suggests that DeBxxL is a model using the LoRA technology or approach.\", \"created_at\": \"2025-08-13 22:48:12\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"BA\", \"entity2\": \"LoRA\", \"description\": \"LoRA's adaptation involves adding BA to the pre-trained weight matrix. The text describes LoRA's mechanism of updating weight matrices.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"LoRA\", \"entity2\": \"existing techniques\", \"description\": \"LoRA is presented as an alternative to existing techniques, addressing their drawbacks such as inference latency and failure to match fine-tuning baselines.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"LoRA\", \"entity2\": \"User knowledge\", \"description\": \"LoRA can incorporate extensive user knowledge across all users by training an external module with a small number of parameters.\", \"created_at\": \"2025-08-15 16:34:08\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"LoRA\", \"entity2\": \"neural networks\", \"description\": \"LoRA is applicable to neural networks with dense layers.\", \"created_at\": \"2025-08-13 22:51:08\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"LoRA\", \"entity2\": \"MLP\", \"description\": \"When using LoRA for adaptation, adapter-based methods converge to an MLP, suggesting a relationship in their functional characteristics. The text contrasts LoRA's behavior with that of adapter-based methods which converge to an MLP.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"LoRA\", \"entity2\": \"SAMSum\", \"description\": \"LoRA's performance is evaluated on SAMSum, showing better results than previous methods. The Rouge-1/2/L scores have fluctuations of around ±0.2/±0.2/±0.1. \", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"LoRA\", \"entity2\": \"Yelong Shen\", \"description\": \"Yelong Shen is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"LoRA\", \"entity2\": \"Phillip Wallis\", \"description\": \"Phillip Wallis is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"16-bit transformer\", \"entity2\": \"LoRA\", \"description\": \"LoRA utilizes a 16-bit transformer.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Edward Hu\", \"entity2\": \"LoRA\", \"description\": \"Edward Hu is an author of the paper that proposes LoRA.\", \"created_at\": \"2025-08-15 14:52:26\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"LoRA\", \"entity2\": \"PrefLayer\", \"description\": \"LoRA is compared to PrefLayer in terms of performance (BLEU, DART MET, TER) with similar trainable parameters.\", \"created_at\": \"2025-08-13 22:59:13\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-matched\", \"description\": \"LoRA's performance is evaluated on MNLI-matched.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 74, \"entity1\": \"Allen-Zhu & Li\", \"entity2\": \"LoRA\", \"description\": \"The effectiveness of LoRA is supported by theoretical work from Allen-Zhu & Li on low-rank adaptations, particularly in the context of adversarial training.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 75, \"entity1\": \"Adapters\", \"entity2\": \"LoRA\", \"description\": \"LoRA uses smaller adapters than Full Finetuning.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 76, \"entity1\": \"Aghajanyan et al.\", \"entity2\": \"LoRA\", \"description\": \"The research by Aghajanyan et al. inspired the hypothesis behind LoRA's low 'intrinsic rank' updates.\", \"created_at\": \"2025-08-13 22:42:31\", \"file_path\": \"unknown_source\"}, {\"id\": 77, \"entity1\": \"Glm-130b\", \"entity2\": \"LoRA\", \"description\": \"LoRA hyperparameters were searched in relation to the Glm-130b model, suggesting it was used in the model's development or fine-tuning.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 78, \"entity1\": \"4-bit base model\", \"entity2\": \"LoRA\", \"description\": \"The memory usage of LoRA is compared to that of a 4-bit base model to highlight the memory savings achieved by LoRA.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 79, \"entity1\": \"COMPACTER\", \"entity2\": \"LoRA\", \"description\": \"Combining LoRA with other tensor product-based methods, like COMPACTER, could improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 80, \"entity1\": \"Li & Liang (2021)\", \"entity2\": \"LoRA\", \"description\": \"The setup for evaluating LoRA is similar to that of Li & Liang (2021) for direct comparison.\", \"created_at\": \"2025-08-13 22:50:49\", \"file_path\": \"unknown_source\"}, {\"id\": 81, \"entity1\": \"AdapterP\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterP and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:25\", \"file_path\": \"unknown_source\"}, {\"id\": 82, \"entity1\": \"AdapterDrop\", \"entity2\": \"LoRA\", \"description\": \"LoRA is mentioned in the same context as AdapterDrop, AdapterP, and AdapterL, suggesting a potential comparison or relationship in the broader research context, though specifics are not provided.\", \"created_at\": \"2025-08-13 22:48:31\", \"file_path\": \"unknown_source\"}, {\"id\": 83, \"entity1\": \"LoRA\", \"entity2\": \"MultiNLI-matched\", \"description\": \"LoRA's performance is evaluated on MultiNLI-matched, showing better results than previous methods. The accuracy has a fluctuation of around ±0.1%. LoRA's performance is evaluated on the MultiNLI-matched dataset, showing higher validation accuracy compared to other methods.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 84, \"entity1\": \"LoRA\", \"entity2\": \"Transformer language models\", \"description\": \"LoRA is applied to certain weights in Transformer language models in the experiments.LoRA is specifically mentioned in the context of Transformer language models, but the principles are applicable more broadly.\", \"created_at\": \"2025-08-13 22:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 85, \"entity1\": \"LoRA\", \"entity2\": \"checkpoint size\", \"description\": \"LoRA significantly reduces the checkpoint size during training (from 350GB to 35MB).\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 86, \"entity1\": \"LoRA\", \"entity2\": \"VRAM\", \"description\": \"LoRA reduces VRAM consumption during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 87, \"entity1\": \"LoRA\", \"entity2\": \"LoRA α\", \"description\": \"LoRA α is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 88, \"entity1\": \"LoRA\", \"entity2\": \"Section D.4\", \"description\": \"Section D.4 details the hyperparameters used in the LoRA experiments.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 89, \"entity1\": \"LoRA\", \"entity2\": \"LoRA r\", \"description\": \"LoRA r is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 90, \"entity1\": \"LoRA\", \"entity2\": \"LoRA dropout\", \"description\": \"LoRA dropout is a hyperparameter of the LoRA technique.\", \"created_at\": \"2025-08-13 23:20:26\", \"file_path\": \"unknown_source\"}, {\"id\": 91, \"entity1\": \"Li et al. (2018a); Aghajanyan et al. (2020)\", \"entity2\": \"LoRA\", \"description\": \"The LoRA approach is inspired by the findings of Li et al. (2018a) and Aghajanyan et al. (2020) regarding the low intrinsic dimension of over-parametrized models.\", \"created_at\": \"2025-08-15 14:59:17\", \"file_path\": \"unknown_source\"}, {\"id\": 92, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-Full\", \"description\": \"LoRA achieves better performance than fine-tuning on MNLI-Full.\", \"created_at\": \"2025-08-13 22:57:29\", \"file_path\": \"unknown_source\"}, {\"id\": 93, \"entity1\": \"LoRA\", \"entity2\": \"customized models\", \"description\": \"LoRA enables the creation of many customized models that can be swapped in and out on the fly.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 94, \"entity1\": \"LoRA\", \"entity2\": \"pre-training model\", \"description\": \"LoRA is an adaptation strategy that enhances features learned in a pre-training model for specific downstream tasks.\", \"created_at\": \"2025-08-13 22:54:25\", \"file_path\": \"unknown_source\"}, {\"id\": 95, \"entity1\": \"LoRA\", \"entity2\": \"three datasets\", \"description\": \"LoRA was tested on three datasets to evaluate its performance.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 96, \"entity1\": \"LoRA\", \"entity2\": \"MNLI checkpoint\", \"description\": \"The MNLI checkpoint is used to initialize the LoRA modules.\", \"created_at\": \"2025-08-13 22:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 97, \"entity1\": \"GPUs\", \"entity2\": \"LoRA\", \"description\": \"LoRA allows training with significantly fewer GPUs by reducing resource requirements.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 98, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-10K\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-10K, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 99, \"entity1\": \"LoRA\", \"entity2\": \"PyTorch\", \"description\": \"LoRA is integrated with PyTorch models, facilitating its use in various applications.\", \"created_at\": \"2025-08-13 22:44:22\", \"file_path\": \"unknown_source\"}, {\"id\": 100, \"entity1\": \"LoRA\", \"entity2\": \"MNLI-1k\", \"description\": \"LoRA achieves comparable results to fine-tuning on MNLI-1k, considering the variance due to random seeds.\", \"created_at\": \"2025-08-13 22:57:34\", \"file_path\": \"unknown_source\"}, {\"id\": 101, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 102, \"entity1\": \"LoRA\", \"entity2\": \"tensor product-based methods\", \"description\": \"LoRA can be combined with other tensor product-based methods to improve parameter efficiency.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 103, \"entity1\": \"Gradient Checkpointing\", \"entity2\": \"LoRA\", \"description\": \"Gradient checkpointing is used with LoRA to reduce the memory footprint of input gradients, improving memory efficiency during training.\", \"created_at\": \"2025-08-13 23:05:39\", \"file_path\": \"unknown_source\"}, {\"id\": 104, \"entity1\": \"$W_v$\", \"entity2\": \"LoRA\", \"description\": \"LoRA is applied to the weight matrix $W_v$ for model adaptation.\", \"created_at\": \"2025-08-13 22:46:30\", \"file_path\": \"unknown_source\"}, {\"id\": 105, \"entity1\": \"I/O bottlenecks\", \"entity2\": \"LoRA\", \"description\": \"LoRA helps avoid I/O bottlenecks by reducing data transfer needs during training.\", \"created_at\": \"2025-08-13 22:42:50\", \"file_path\": \"unknown_source\"}, {\"id\": 106, \"entity1\": \"LoRA\", \"entity2\": \"Yang & Hu\", \"description\": \"The work of Yang & Hu (2021) is cited in relation to hyperparameter tuning within the LoRA method.\", \"created_at\": \"2025-08-13 22:45:24\", \"file_path\": \"unknown_source\"}, {\"id\": 107, \"entity1\": \"16-bit performance\", \"entity2\": \"LoRA\", \"description\": \"The standard application of LoRA did not achieve the performance level of 16-bit precision in large base model fine-tuning.\", \"created_at\": \"2025-08-13 23:06:46\", \"file_path\": \"unknown_source\"}, {\"id\": 108, \"entity1\": \"LoRA\", \"entity2\": \"R. Zhong, K. Lee, Z. Zhang, and D. Klein\", \"description\": \"While not explicitly stated, the context suggests that the methods described by R. Zhong et al. might involve or relate to LoRA, given the focus on adapting language models.\", \"created_at\": \"2025-08-13 23:22:49\", \"file_path\": \"unknown_source\"}, {\"id\": 109, \"entity1\": \"LORA + PL\", \"entity2\": \"LoRA\", \"description\": \"LORA + PL performs slightly worse than LoRA, attributed to the sensitivity of prefix-layer tuning to learning rate.\", \"created_at\": \"2025-08-13 23:00:36\", \"file_path\": \"unknown_source\"}, {\"id\": 110, \"entity1\": \"Ham & Lee\", \"entity2\": \"LoRA\", \"description\": \"LoRA's performance is compared to other methods, including those potentially referenced by Ham & Lee's work on Projection Metric.\", \"created_at\": \"2025-08-13 23:01:44\", \"file_path\": \"unknown_source\"}, {\"id\": 111, \"entity1\": \"4-bit model\", \"entity2\": \"Low-rank Adapter weights\", \"description\": \"Low-rank adapter weights are added to the 4-bit model during the QLORA finetuning process.\", \"created_at\": \"2025-08-13 23:03:14\", \"file_path\": \"unknown_source\"}, {\"id\": 112, \"entity1\": \"E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al.\", \"entity2\": \"Lora: Low-rank adaptation of large language models.\", \"description\": \"The authors are associated with the paper 'Lora: Low-rank adaptation of large language models.'.\", \"created_at\": \"2025-08-15 15:47:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 347\\n\\n2023. CIRS: Bursting filter bubbles by counterfactual interactive recommender system. ACM Transactions on Information Systems 42, 1 (2023), 1–27. [108] Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, et al. 2020. The Pile: An 800GB dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027 (2020). [109] Luyu Gao and Jamie Callan. 2022. Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrieval. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2843–2853. [110] Shangqian Gao, Chi-Heng Lin, Ting Hua, Zheng Tang, Yilin Shen, Hongxia Jin, and Yen-Chang Hsu. 2024. DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.4678, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.4678, + "start_timestamp": "2025-08-16T09:08:52.669603", + "end_timestamp": "2025-08-16T09:08:56.137436" + }, + "metadata": { + "saved_at": "2025-08-16T09:08:56.138436", + "file_path": "retrieval_logs\\retrieval_20250816_090856_137_hybrid_k5_ck2_Based_on_the_following_QA_about_LoRA_Low-Rank_Adap.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_091559_007_local_k5_ck2_How_does_the_self-attention_mechanism_in_Transform.json b/retrieval_logs/retrieval_20250816_091559_007_local_k5_ck2_How_does_the_self-attention_mechanism_in_Transform.json new file mode 100644 index 0000000000000000000000000000000000000000..0ebe4a6b283d0cbe8abf17248b3e9a37edd67321 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_091559_007_local_k5_ck2_How_does_the_self-attention_mechanism_in_Transform.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:15:59.007454", + "query": "How does the self-attention mechanism in Transformers differ from traditional sequential processing methods like RNNs and LSTMs, and what are its core operational principles?", + "query_mode": "local", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 7569, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Queries, Keys, and Values\", \"type\": \"abstract\", \"description\": \"Fundamental components of the attention mechanism that are linearly projected multiple times in Multi-Head Attention and are $d _ { \\\\\\\\mathrm { m o d e l } }$-dimensional in a single attention function.\", \"created_at\": \"2025-08-15 18:03:15\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Attention Function\", \"type\": \"abstract\", \"description\": \"An attention function is described as mapping a query and a set of key-value pairs to an output, where the query, keys, values, and output are all vectors. The output is computed as a weighted sum.The attention function computes the dot products of the query with all keys, divides each by $\\\\sqrt { d _ { k } }$, and applies a softmax function to obtain the weights on the values. It can be computed on a set of queries simultaneously, packed together into a matrix $Q$, with keys and values packed into matrices $K$ and $V$. The matrix of outputs is computed as: $\\\\mathrm { A t t e n t i o n } ( Q , K , V ) = \\\\mathrm { s o f t m a x } ( \\\\frac { Q K ^ { T } } { \\\\sqrt { d _ { k } } } ) V$.\", \"created_at\": \"2025-08-15 14:53:52\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Attention\", \"type\": \"methodology\", \"description\": \"Attention is a mechanism employed in natural language processing models, particularly within the Multi-Head Attention (MHA) framework. It functions as a method to focus on different parts of an input sequence for information processing. At its core, attention computes a weighted sum of values, where the weights are determined by the similarity between queries and keys. This process is often visualized by showing parallel word sequences connected by lines, illustrating how different parts of the input are attended to. Within each head of the MHA mechanism, attention takes transformed queries (Q), keys (K), and values (V) as inputs. The output of attention is a vector derived from a weighted sum of these values, with the weights derived from the query-key similarity. While the specific formula for scaled dot-product attention is not explicitly detailed, it is implied to be the underlying calculation. Essentially, attention acts as a function that maps a query and a set of key-value pairs to an output vector.\", \"created_at\": \"2025-08-15 14:54:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Attention Function\", \"entity2\": \"Multi-Head Attention\", \"description\": \"'Multi-Head Attention' is presented as a specific type or implementation of an 'Attention Function'.\", \"created_at\": \"2025-08-15 18:09:02\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Multi-Head Attention processes queries, keys, and values by linearly projecting them multiple times.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Attention Function\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"'Scaled Dot-Product Attention' is presented as a specific type or implementation of an 'Attention Function'.\", \"created_at\": \"2025-08-15 18:08:46\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Attention Function\", \"entity2\": \"Self-attention Sub-layer Modification\", \"description\": \"The self-attention sub-layer modification is a specific application or adaptation of the general 'Attention Function' concept within a decoder stack.\", \"created_at\": \"2025-08-15 18:07:32\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Attention Function\", \"entity2\": \"Attention Mechanisms Diagrams\", \"description\": \"The 'Attention Mechanisms Diagrams' illustrate general 'attention mechanisms' which are based on the concept of an 'Attention Function'.\", \"created_at\": \"2025-08-15 18:08:34\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Attention Function\", \"entity2\": \"Dot-product attention\", \"description\": \"Dot-product attention is a specific type of attention function that is similar to the general attention function described, differing only by a scaling factor.\", \"created_at\": \"2025-08-15 14:53:57\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Attention Function\", \"entity2\": \"Masking and Output Embeddings Offset\", \"description\": \"The masking and output embeddings offset are techniques applied within the context of attention mechanisms to control dependencies in predictions.\", \"created_at\": \"2025-08-15 18:07:46\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Additive attention\", \"entity2\": \"Attention Function\", \"description\": \"Additive attention is another type of attention function that differs in its method of computing the compatibility function.\", \"created_at\": \"2025-08-15 14:54:04\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Linear Projections\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Linear projections are applied to queries, keys, and values as part of the Multi-Head Attention mechanism.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Attention\", \"entity2\": \"FlashAttention-2\", \"description\": \"FlashAttention-2 is an optimization for attention mechanisms, improving speed and parallelism.\", \"created_at\": \"2025-08-15 17:07:45\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 10\\n\\nWe also modify the self-attention sub-layer in the decoder stack to prevent positions from attending to subsequent positions. This masking, combined with fact that the output embeddings are offset by one position, ensures that the predictions for position [math: i] can depend only on the known outputs at positions less than [math: i] . # 3.2 Attention An attention function can be described as mapping a query and a set of key-value pairs to an output, where the query, keys, values, and output are all vectors. The output is computed as a weighted sum ![The image presents two distinct but related diagrams illustrating attention mechanisms in neural networks, as indicated by the titles \\\"Scaled Dot-Product Attention\\\" on the left and \\\"Multi-Head Attention\\\" on the right. The overall layout is a side-by-side comparison of these two processes. On the left, the \\\"Scaled Dot-Product Attention\\\" diagram depicts a vertical flow of operations.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 337\\n\\n2021. Overview of the TREC 2020 deep learning track. CoRR abs/2102.07662 (2021). arXiv:2102.07662 https://arxiv.org/abs/2102.07662 \\n[70] Justin Cui, Wei-Lin Chiang, Ion Stoica, and Cho-Jui Hsieh. 2024. OR-Bench: An Over-Refusal Benchmark for Large Language Models. arXiv preprint arXiv:2405.20947 (2024). [71] Shiyao Cui, Zhenyu Zhang, Yilong Chen, Wenyuan Zhang, Tianyun Liu, Siqi Wang, and Tingwen Liu. 2023. Fft: Towards harmlessness evaluation and analysis for llms with factuality, fairness, toxicity. arXiv preprint arXiv:2311.18580 (2023). [72] Luigi Daniele and Suphavadeeprasit. 2023. Amplify-Instruct: Synthetically Generated Diverse Multi-turn Conversations for efficient LLM Training. arXiv preprint arXiv:(coming soon) (2023). https://huggingface.co/datasets/LDJnr/Capybara \\n[73] Tri Dao. [n. d.]. FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning. In The Twelfth International Conference on Learning Representations.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 11.3234, + "rag_initialization_seconds": 4.6595, + "query_execution_seconds": 6.664, + "start_timestamp": "2025-08-16T09:15:47.684009", + "end_timestamp": "2025-08-16T09:15:59.007454" + }, + "metadata": { + "saved_at": "2025-08-16T09:15:59.007454", + "file_path": "retrieval_logs\\retrieval_20250816_091559_007_local_k5_ck2_How_does_the_self-attention_mechanism_in_Transform.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_091559_100_local_k20_ck10_How_do_different_variants_of_attention_mechanisms_.json b/retrieval_logs/retrieval_20250816_091559_100_local_k20_ck10_How_do_different_variants_of_attention_mechanisms_.json new file mode 100644 index 0000000000000000000000000000000000000000..9b219e58040fb96650c23831932c1f8ad353f801 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_091559_100_local_k20_ck10_How_do_different_variants_of_attention_mechanisms_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:15:59.100019", + "query": "How do different variants of attention mechanisms (e.g., sparse attention, longformer, etc.) compare to the original self-attention in terms of computational complexity, performance, and suitability for different tasks?", + "query_mode": "local", + "top_k": 20, + "chunk_top_k": 10, + "text_length": 23621, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"long sequences\", \"type\": \"methodology\", \"description\": \"Tasks involving very long sequences can have their computational performance improved by restricting self-attention to a neighborhood of size r.\", \"created_at\": \"2025-08-15 14:57:01\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Computational complexity\", \"type\": \"discussion\", \"description\": \"Self-attention layers are faster than recurrent layers in terms of computational complexity when the sequence length $n$ is smaller than the representation dimensionality $d$.\", \"created_at\": \"2025-08-15 14:55:24\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Queries, Keys, and Values\", \"type\": \"abstract\", \"description\": \"Fundamental components of the attention mechanism that are linearly projected multiple times in Multi-Head Attention and are $d _ { \\\\\\\\mathrm { m o d e l } }$-dimensional in a single attention function.\", \"created_at\": \"2025-08-15 18:03:15\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"$d _ { k }$\", \"type\": \"methodology\", \"description\": \"A parameter that influences the performance similarity between additive and dot-product attention, and the magnitude of dot products.\", \"created_at\": \"2025-08-15 17:27:20\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"FlashAttention-2\", \"type\": \"abstract\", \"description\": \"FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning.\", \"created_at\": \"2025-08-15 17:07:45\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"restricted self-attention\", \"type\": \"methodology\", \"description\": \"A type of attention mechanism where 'r' represents the size of the neighborhood.\", \"created_at\": \"2025-08-15 17:26:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"[37]\", \"type\": \"methodology\", \"description\": \"[37] proposes an attention-based MoE framework to enhance the model’s generalization ability and classification performance under limited data conditions, building on [38].\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Computational Cost\", \"type\": \"abstract\", \"description\": \"The total computational cost of multi-head attention is similar to that of single-head attention with full dimensionality.\", \"created_at\": \"2025-08-15 18:26:38\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Self-Attention (restricted)\", \"type\": \"methodology\", \"description\": \"Self-Attention (restricted) has a complexity per layer of O(r·n·d), 0(1) sequential operations, and a maximum path length of 0(n/r).\", \"created_at\": \"2025-08-15 14:56:05\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Comparison of Self-Attention Layers\", \"type\": \"discussion\", \"description\": \"A section introduced to compare various aspects of self-attention layers to recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations to another sequence of equal length.\", \"created_at\": \"2025-08-15 18:29:32\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Cold-start and sparsity issues of recommender systems\", \"type\": \"discussion\", \"description\": \"These are specific problems that the attention-based deep learning method aims to solve.\", \"created_at\": \"2025-08-15 17:26:33\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"attention-based MoE framework\", \"type\": \"methodology\", \"description\": \"An attention-based MoE framework is proposed to enhance generalization ability and classification performance under limited data conditions.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Final Values\", \"type\": \"results\", \"description\": \"The values resulting from the concatenation and subsequent projection of the $d _ { v }$-dimensional output values from the parallel attention functions in Multi-Head Attention.\", \"created_at\": \"2025-08-15 18:03:30\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Figure 3\", \"type\": \"connection\", \"description\": \"Figure 3 presents a multifaceted view of model operations and performance, encompassing several distinct aspects. It illustrates the different types of widely used Mixture-of-Experts (MoE) layers. Figure 3 also demonstrates the scaling effect of prompting and finetuning four methods (Standard, CoT, Act, ReAct) on HotpotQA using PaLM-8/62B, noting that prompting ReAct performs the worst in this scenario due to challenges in learning both reasoning and acting from in-context examples. Additionally, Figure 3 illustrates the attention mechanism within the encoder's self-attention in layer 5 of 6, specifically highlighting how different attention heads focus on the distant dependency of the verb 'making' in the phrase 'making...more difficult'. A line graph within Figure 3 shows the outcomes of a self-reflection process, connecting iterations of self-reflection with the count of identified entity references. Furthermore, Figure 3 includes a comparison of subspace similarity through four heatmaps, with the left two displaying similarity between column vectors of ΔWq and ΔWv for a rank (r) of 8, and the right two offering magnified views of the lower-left triangle of the first two, showing similarity for ranks r=8 and r=64, thereby demonstrating the subspace similarity between Ar=8 and Ar=64, with findings generalizable to other layers. Figure 3 also illustrates the impact of extensive local epochs (large E) between averaging steps on the Shakespeare LSTM, with fixed parameters B=10 and C=0.1 and a constant learning rate η=1.47, indicating that for very large numbers of local epochs, FedAvg can plateau or diverge. Finally, Figure 3 illustrates the growing popularity of SLM releases over time.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Figure 3\", \"entity2\": \"ReAct\", \"description\": \"Figure 3 shows that prompting ReAct performs worst among four methods on HotpotQA with PaLM-8/62B due to difficulties in learning reasoning and acting.\", \"created_at\": \"2025-08-15 15:58:30\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Figure 3\", \"entity2\": \"LLM\", \"description\": \"The LLM is used in the process whose results are displayed in Figure 3.\", \"created_at\": \"2025-08-13 23:38:01\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Multi-Head Attention processes queries, keys, and values by linearly projecting them multiple times.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Final Values\", \"entity2\": \"Multi-Head Attention\", \"description\": \"The final values are the result of concatenating and projecting the output values from Multi-Head Attention.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Figure 3\", \"entity2\": \"Figure 6\", \"description\": \"Figure 6 shows how the results presented in Figure 3 generalize to other layers.\", \"created_at\": \"2025-08-13 23:02:54\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Figure 3\", \"entity2\": \"Figure 7\", \"description\": \"Figure 7 shows how the results presented in Figure 3 generalize to other layers.\", \"created_at\": \"2025-08-13 23:03:02\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Figure 3\", \"entity2\": \"MoE Layers\", \"description\": \"Figure 3 illustrates the different types of widely used MoE layers.\", \"created_at\": \"2025-08-15 17:38:46\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Figure 3\", \"entity2\": \"local epochs\", \"description\": \"Figure 3 visually represents the impact of varying the number of local epochs on model performance.\", \"created_at\": \"2025-08-15 15:09:04\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Ar=64\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows the subspace similarity between Ar=8 and Ar=64.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Ar=8\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows the subspace similarity between Ar=8 and Ar=64.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"4-bit NormalFloat (NF4)\", \"entity2\": \"Figure 3\", \"description\": \"Figure 3 shows that NF4 improves performance.\", \"created_at\": \"2025-08-13 23:07:44\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Figure 3\", \"entity2\": \"Shakespeare LSTM\", \"description\": \"Figure 3 specifically shows the experimental results for the Shakespeare LSTM model.\", \"created_at\": \"2025-08-15 15:09:03\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Figure 3\", \"entity2\": \"Standard, CoT, Act, ReAct\", \"description\": \"Figure 3 specifically shows the scaling effect of prompting/finetuning the Standard, CoT, Act, and ReAct methods.\", \"created_at\": \"2025-08-15 17:19:29\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Figure 3\", \"entity2\": \"encoder self-attention in layer 5 of 6\", \"description\": \"Figure 3 provides a visual example of the encoder self-attention in layer 5 of 6, specifically demonstrating how it follows long-distance dependencies.\", \"created_at\": \"2025-08-15 15:04:11\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Figure 3\", \"entity2\": \"verb making\", \"description\": \"Figure 3 shows that many attention heads in the encoder self-attention attend to the verb ‘making’ to capture long-distance dependencies.\", \"created_at\": \"2025-08-15 15:04:11\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"r\", \"entity2\": \"restricted self-attention\", \"description\": \"The size of the neighborhood in restricted self-attention is denoted by 'r'.\", \"created_at\": \"2025-08-15 17:28:02\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Linear Projections\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Linear projections are applied to queries, keys, and values as part of the Multi-Head Attention mechanism.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Computational Cost\", \"entity2\": \"Multi-head Attention\", \"description\": \"The computational cost of multi-head attention is described as being similar to single-head attention, indicating a performance characteristic.\", \"created_at\": \"2025-08-15 18:26:38\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"End-to-end memory networks\", \"entity2\": \"Self-attention\", \"description\": \"Both self-attention and end-to-end memory networks are attention mechanisms used in sequence processing tasks, with end-to-end memory networks specifically using a recurrent attention mechanism.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Attention\", \"entity2\": \"FlashAttention-2\", \"description\": \"FlashAttention-2 is an optimization for attention mechanisms, improving speed and parallelism.\", \"created_at\": \"2025-08-15 17:07:45\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 52\\n\\nNon-IID) with a fixed learning rate. The document context confirms these parameters, specifying the model, learning rate, and the experimental setup. The overall purpose is to demonstrate how the number of local epochs affects model convergence and performance, highlighting potential differences in behavior between IID and Non-IID data distributions. The data visualization effectively communicates that for both IID and Non-IID scenarios, increasing local epochs (e.g., E=5, E=25) generally leads to faster convergence or lower final loss compared to very few (E=1) or very many (E=200) local epochs, with E=5 showing the most pronounced benefit in reducing train loss.](images/e97d3bf184734de4b1746516181a7b226fee1faa9b9522ea41f39402ec0648d8.jpg)\\nFigure 3: The effect of training for many local epochs (large $E$ ) between averaging steps, fixing $B = 1 0$ and $C = 0 . 1$ for the Shakespeare LSTM with a fixed learning rate $\\\\eta = 1 . 4 7$ .\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: React_paper\\nChunk: 39\\n\\nFurthermore, Figure 2 shows how different methods perform with respect to the number of $\\\\\\\\mathsf { C o T - S C }$ samples used. While two $\\\\\\\\mathrm { R e a c t } + \\\\\\\\mathrm { C o T } - \\\\\\\\mathrm { S C }$ methods are advantageous at one task each, they both significantly and consistently outperform CoT-SC across different number of samples, reaching $\\\\\\\\mathsf { C o T - S C }$ performance with 21 samples using merely 3-5 samples. These results indicate the value of properly combining model internal knowledge and external knowledge for reasoning tasks. ReAct performs best for fine-tuning Figure 3 shows the scaling effect of prompting/finetuning four methods (Standard, CoT, Act, ReAct) on HotpotQA. With PaLM-8/62B, prompting ReAct performs worst among four methods due to the difficulty to learn both reasoning and acting from in-context examples.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 6\\n\\nThis makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 107\\n\\n# H.1 CORRELATION BETWEEN LORA MODULES See Figure 6 and Figure 7 for how the results presented in Figure 3 and Figure 4 generalize to other layers. # H.2 EFFECT OF $r$ ON GPT-2 We repeat our experiment on the effect of $r$ (Section 7.2) in GPT-2. Using the E2E NLG Challenge dataset as an example, we report the validation loss and test metrics achieved by different choices of $r$ after training for 26,000 steps. We present our result in Table 18. The optimal rank for GPT-2 Medium is between 4 and 16 depending on the metric used, which is similar to that for GPT-3 175B. Note that the relationship between model size and the optimal rank for adaptation is still an open question. # H.3 CORRELATION BETWEEN $W$ AND $\\\\Delta W$ See Figure 8 for the normalized subspace similarity between $W$ and $\\\\Delta W$ with varying $r$ .\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"content\": \"Source: Attention Is All You Need\\nChunk: 29\\n\\nesentations used by state-of-the-art models in machine translations, such as word-piece [38] and byte-pair [31] representations. To improve computational performance for tasks involving very long sequences, self-attention could be restricted to considering only a neighborhood of size $r$ in the input sequence centered around the respective output position. This would increase the maximum path length to $O ( n / r )$ . We plan to investigate this approach further in future work. A single convolutional layer with kernel width $k < n$ does not connect all pairs of input and output positions. Doing so requires a stack of $O ( n / k )$ convolutional layers in the case of contiguous kernels, or $O ( l o g _ { k } ( n ) )$ in the case of dilated convolutions [18], increasing the length of the longest paths between any two positions in the network. Convolutional layers are generally more expensive than recurrent layers, by a factor of $k$ .\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"content\": \"Source: Attention Is All You Need\\nChunk: 27\\n\\n. . , x _ { n } )$ to another sequence of equal length $\\\\left( z _ { 1 } , . . . , z _ { n } \\\\right)$ , with $x _ { i } , z _ { i } \\\\in \\\\mathbf { \\\\bar { \\\\mathbb { R } } } ^ { d }$ , such as a hidden layer in a typical sequence transduction encoder or decoder. Motivating our use of self-attention we consider three desiderata. One is the total computational complexity per layer. Another is the amount of computation that can be parallelized, as measured by the minimum number of sequential operations required. The third is the path length between long-range dependencies in the network. Learning long-range dependencies is a key challenge in many sequence transduction tasks. One key factor affecting the ability to learn such dependencies is the length of the paths forward and backward signals have to traverse in the network. The shorter these paths between any combination of positions in the input and output sequences, the easier it is to learn long-range dependencies [12].\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"content\": \"Source: Graph_RAG\\nChunk: 76\\n\\nTo address this issue, we deploy a self-reflection prompt engineering approach. After entities are extracted from a chunk, we provide the extracted entities back to the LLM, prompting it to “glean” any entities that it may have missed. This is a multi-stage process in which we first ask the LLM to assess whether all entities were extracted, using a logit bias of 100 to force a yes/no decision. If the LLM responds that entities were missed, then a continuation indicating that “MANY entities were missed in the last extraction” encourages the LLM to detect these missing entities. This approach allows us to use larger chunk sizes without a drop in quality (Figure 3) or the forced introduction of noise. We interate self-reflection steps up to a specified maximum number of times. [IMAGE] *AI-generated description: This line graph displays the number of entity references detected on the y-axis against the number of self-reflection iterations performed on the x-axis.\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"content\": \"Source: React_paper\\nChunk: 43\\n\\nFor the \\\"540b\\\" size, only the \\\"Standard\\\" method is plotted, reaching an EM score of approximately 22. The visual hierarchy is established by the panel divisions, followed by the model size categories, and then the individual methods represented by the colored bars. The use of distinct colors for each method allows for easy comparison across different model sizes and learning conditions. The overall purpose of this visualization is to demonstrate how the performance (HotpotQA EM) of different methods varies with model size and learning strategy (prompting versus finetuning). The data suggests that finetuning generally leads to higher EM scores, especially for larger model sizes, and the \\\"ReAct\\\" method often performs best, particularly when finetuned.](images/4c3b0e92c6dd6f297dab55532d495e593945818c5f158f452b08e194416f1e1f.jpg)\\nFigure 3: Scaling results for prompting and finetuning on HotPotQA with ReAct (ours) and baselines. # 4 DECISION MAKING TASKS\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 19\\n\\nn larger models in the Hugging Face community, and Figure 3, which illustrates the growing popularity of SLM releases over time. Typically, LMs that exhibit emergent abilities are classified as LLMs. However, the categorization of SLMs remains unclear. Studies vary in their contexts: some define SLMs as models with fewer than one billion parameters [223], while others consider the term “small language model” relative to the larger counterparts [183, 327, 369], with no consensus on a unified definition in the current landscape of LLMs. Research suggests SLMs for mobile devices, typically possessing around 6GB of memory, consist of sub-billion parameter models [223], whereas others classify models with up to 10 billion parameters as small, noting their lack of emergent abilities [105].\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"content\": \"Source: 2106.09685v2\\nChunk: 54\\n\\n$\\\\Delta W _ { q } ,$ ) of $A _ { r = 6 4 }$ share a subspace of dimension 1 with normalized similarity $> 0 . 5$ , providing an explanation of why $r = 1$ performs quite well in our downstream tasks for GPT-3. Since both $A _ { r = 8 }$ and $A _ { r = 6 4 }$ are learned using the same pre-trained model, Figure 3 indicates that the top singular-vector directions of $A _ { r = 8 }$ and $A _ { r = 6 4 }$ are the most useful, while other directions potentially contain mostly random noises accumulated during training. Hence, the adaptation matrix can indeed have a very low rank. Subspace similarity between different random seeds. We further confirm this by plotting the normalized subspace similarity between two randomly seeded runs with $r = 6 4$ , shown in Figure 4. $\\\\Delta W _ { q }$ appears to have a higher “intrinsic rank” than $\\\\Delta W _ { v }$ , since more common singular value directions are learned by both runs for $\\\\Delta W _ { q }$ , which is in line with our empirical observation in Table 6.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.7185, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.7185, + "start_timestamp": "2025-08-16T09:15:55.381546", + "end_timestamp": "2025-08-16T09:15:59.100019" + }, + "metadata": { + "saved_at": "2025-08-16T09:15:59.100019", + "file_path": "retrieval_logs\\retrieval_20250816_091559_100_local_k20_ck10_How_do_different_variants_of_attention_mechanisms_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_091611_918_hybrid_k5_ck2_Based_on_the_following_QA_about_Transformers_and_d.json b/retrieval_logs/retrieval_20250816_091611_918_hybrid_k5_ck2_Based_on_the_following_QA_about_Transformers_and_d.json new file mode 100644 index 0000000000000000000000000000000000000000..9053830f3b2a1753d769940723e6ff3163f43a03 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_091611_918_hybrid_k5_ck2_Based_on_the_following_QA_about_Transformers_and_d.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:16:11.918218", + "query": "Based on the following Q&A about Transformers and differnet attention mechanisms, provide a comprehensive research summary: [{'category': 'methodology', 'question': 'How does the self-attention mechanism in Transformers differ from traditional sequential processing methods like RNNs and LSTMs, and what are its core operational principles?', 'answer': 'The self-attention mechanism in Transformers contrasts with sequential models like RNNs/LSTMs by processing inputs in parallel. It uses Queries, Keys, and Values to compute attention weights, enabling direct focus on relevant parts of the sequence, thus better capturing long-range dependencies.'}, {'category': 'comparison', 'question': 'How do different variants of attention mechanisms (e.g., sparse attention, longformer, etc.) compare to the original self-attention in terms of computational complexity, performance, and suitability for different tasks?', 'answer': 'The context explains the foundational self-attention mechanism in Transformers, its computational complexity, and an optimization for long sequences called restricted self-attention. It also touches upon Multi-Head Attention. However, specific variants like Longformer and detailed comparisons with original self-attention are not covered.'}]", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 13847, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"encoder-decoder attention\", \"type\": \"methodology\", \"description\": \"This is one of the three ways multi-head attention is used in the Transformer. In these layers, queries originate from the previous decoder layer, while memory keys and values are sourced from the encoder's output. This enables every decoder position to attend to all positions in the input sequence, mirroring attention mechanisms in sequence-to-sequence models like those in references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"sequence-to-sequence models\", \"type\": \"methodology\", \"description\": \"Sequence-to-sequence models are mentioned as examples of models that use typical encoder-decoder attention mechanisms, which the Transformer mimics.\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"deep learning architectures\", \"type\": \"methodology\", \"description\": \"deep learning architectures are modern systems that utilize fundamental attention mechanisms, particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"natural language processing\", \"type\": \"abstract\", \"description\": \"Natural Language Processing (NLP) is a significant field that relies on adapting large-scale, pre-trained language models to various downstream applications and particular tasks or domains. NLP has been greatly enhanced by advancements in language models, leading to broader applications across various fields. Within NLP, fundamental attention mechanisms are particularly utilized. Mixture of Experts (MoE) has seen recent applications in NLP, presenting multiple important subproblems that require further investigation, and is an area where MoE applications are reviewed in depth in the paper.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"A neural attention model for abstractive sentence summarization\", \"type\": \"methodology\", \"description\": \"This refers to a neural attention model for abstractive sentence summarization, as presented in the arXiv preprint arXiv:1509.00685.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Neural machine translation by jointly learning to align and translate\", \"type\": \"methodology\", \"description\": \"This refers to a methodology for neural machine translation that involves learning to align and translate simultaneously.This refers to the methodology of neural machine translation that jointly learns to align and translate, as presented in the arXiv preprint arXiv:1409.0473.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Abstract\", \"type\": \"abstract\", \"description\": \"Modern mobile devices have access to a wealth of data suitable for learning models, which in turn can greatly improve the user experience on the device. For example, language models can improve speech recognition and text entry, and image models can automatically select good photos. However, this rich data is often privacy sensitive, large in quantity, or both, which may preclude logging to the data center and training there using conventional approaches. We advocate an alternative that leaves the training data distributed on the mobile devices, and learns a shared model by aggregating locally-computed updates. We term this decentralized approach Federated Learning.The abstract describes the dominant sequence transduction models as complex recurrent or convolutional neural networks with an encoder and decoder, often connected by an attention mechanism. It proposes a new, simpler network architecture called the Transformer, which relies solely on attention mechanisms and eliminates recurrence and convolutions.\", \"created_at\": \"2025-08-15 15:02:51\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Attention Mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are the core component of the Transformer architecture, replacing recurrence and convolutions.Attention mechanisms are used to connect the encoder and decoder in the best performing sequence transduction models. The proposed Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"encoder-decoder attention\", \"entity2\": \"sequence-to-sequence models\", \"description\": \"Encoder-decoder attention in the Transformer mimics the attention mechanisms found in sequence-to-sequence models, citing references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"deep learning architectures\", \"entity2\": \"natural language processing\", \"description\": \"Deep learning architectures utilize fundamental attention mechanisms particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Transformer architecture\", \"entity2\": \"self-attention mechanisms\", \"description\": \"The Transformer architecture utilizes self-attention mechanisms to manage long-range text dependencies.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"A neural attention model for abstractive sentence summarization\", \"entity2\": \"Neural machine translation by jointly learning to align and translate\", \"description\": \"Both methodologies leverage neural networks and attention mechanisms, with one focusing on translation and the other on summarization.\", \"created_at\": \"2025-08-15 15:48:20\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Abstract\", \"entity2\": \"Attention Mechanisms\", \"description\": \"The abstract mentions attention mechanisms as a key component of both existing models and the proposed Transformer.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 20\\n\\nFor each of these we use $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h \\\\stackrel { } { = } \\\\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \\\"encoder-decoder attention\\\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.5194, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.5194, + "start_timestamp": "2025-08-16T09:16:08.398782", + "end_timestamp": "2025-08-16T09:16:11.918219" + }, + "metadata": { + "saved_at": "2025-08-16T09:16:11.918218", + "file_path": "retrieval_logs\\retrieval_20250816_091611_918_hybrid_k5_ck2_Based_on_the_following_QA_about_Transformers_and_d.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_092112_318_local_k3_ck2_What_was_the_primary_innovation_of_the_Transformer.json b/retrieval_logs/retrieval_20250816_092112_318_local_k3_ck2_What_was_the_primary_innovation_of_the_Transformer.json new file mode 100644 index 0000000000000000000000000000000000000000..74a6f5324c18a721db08d45a6b9ec1514313d776 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_092112_318_local_k3_ck2_What_was_the_primary_innovation_of_the_Transformer.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:21:12.318032", + "query": "What was the primary innovation of the Transformer model compared to prior sequence-to-sequence models like RNNs and LSTMs?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 5932, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Gradient flow in recurrent nets: the difficulty of learning long-term dependencies\", \"type\": \"discussion\", \"description\": \"This discusses the challenges of gradient flow in recurrent neural networks, specifically regarding the difficulty of learning long-term dependencies.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Recurrent Neural Networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including long short-term memory (LSTM) and gated recurrent units (GRU), have been firmly established as state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequential Computation\", \"description\": \"The inherent characteristic of Recurrent Neural Networks is their sequential computation, where hidden states are generated based on previous states and current input.\", \"created_at\": \"2025-08-15 18:20:09\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Gated Recurrent Units (GRU)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Gated Recurrent Units (GRU) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:55\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Long Short-Term Memory (LSTM)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Long Short-Term Memory (LSTM) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Encoder-Decoder Architectures\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Encoder-Decoder Architectures are mentioned alongside recurrent language models as areas where efforts have pushed boundaries, indicating a close relationship in the context of sequence modeling.\", \"created_at\": \"2025-08-15 18:21:27\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Recurrent Language Models\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Recurrent Language Models are a specific application or type of recurrent neural network whose boundaries have been pushed by research.\", \"created_at\": \"2025-08-15 18:21:11\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"transduction problems\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in transduction problems.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 47\\n\\nEmpirical evaluation of gated recurrent neural networks on sequence modeling. CoRR, abs/1412.3555, 2014. [8] Chris Dyer, Adhiguna Kuncoro, Miguel Ballesteros, and Noah A. Smith. Recurrent neural network grammars. In Proc. of NAACL, 2016. [9] Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N. Dauphin. Convolutional sequence to sequence learning. arXiv preprint arXiv:1705.03122v2, 2017. [10] Alex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013. [11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770–778, 2016. [12] Sepp Hochreiter, Yoshua Bengio, Paolo Frasconi, and Jürgen Schmidhuber. Gradient flow in recurrent nets: the difficulty of learning long-term dependencies, 2001. [13] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 3\\n\\n# 1 Introduction Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5]. Numerous efforts have since continued to push the boundaries of recurrent language models and encoder-decoder architectures [38, 24, 15]. Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states [math: h _ { t }] , as a function of the previous hidden state [math: h _ { t - 1 }] and the input for position [math: t] . This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 13.8606, + "rag_initialization_seconds": 5.5679, + "query_execution_seconds": 8.2927, + "start_timestamp": "2025-08-16T09:20:58.457391", + "end_timestamp": "2025-08-16T09:21:12.318033" + }, + "metadata": { + "saved_at": "2025-08-16T09:21:12.319030", + "file_path": "retrieval_logs\\retrieval_20250816_092112_318_local_k3_ck2_What_was_the_primary_innovation_of_the_Transformer.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_092112_384_local_k5_ck2_On_what_benchmark_datasets_and_tasks_were_Transfor.json b/retrieval_logs/retrieval_20250816_092112_384_local_k5_ck2_On_what_benchmark_datasets_and_tasks_were_Transfor.json new file mode 100644 index 0000000000000000000000000000000000000000..c9e63abb9f596efe65acfb03ba4ac40c7005addf --- /dev/null +++ b/retrieval_logs/retrieval_20250816_092112_384_local_k5_ck2_On_what_benchmark_datasets_and_tasks_were_Transfor.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:21:12.384113", + "query": "On what benchmark datasets and tasks were Transformers initially evaluated, and what were the key metrics used to demonstrate their performance?", + "query_mode": "local", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 6720, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"MMLU performance\", \"type\": \"category\", \"description\": \"A measure of performance on the MMLU benchmark, affected by dataset quality and size.\", \"created_at\": \"2025-08-13 23:25:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"MT-Bench\", \"type\": \"event\", \"description\": \"MT-Bench is a benchmark dataset for open-domain question answering.\", \"created_at\": \"2025-08-13 23:26:55\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"CIFAR-10 image classification task\", \"type\": \"results\", \"description\": \"Results were presented on the benchmark CIFAR-10 image classification task.\", \"created_at\": \"2025-08-15 14:59:55\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"benchmark datasets\", \"type\": \"results\", \"description\": \"Benchmark datasets are used to evaluate the performance of the Pangu 1.5B pro model, which achieves an average performance increase of 8.87% on them.\", \"created_at\": \"2025-08-15 16:27:21\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"8 instruction datasets\", \"type\": \"category\", \"description\": \"A collection of eight datasets used for evaluating instruction following and chatbot performance.\", \"created_at\": \"2025-08-13 23:01:40\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"8 instruction datasets\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated across 8 instruction datasets.\", \"created_at\": \"2025-08-13 23:01:40\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"FLAN v2\", \"entity2\": \"MMLU performance\", \"description\": \"The 'FLAN v2' dataset's performance on the MMLU benchmark is shown in the table, varying with epochs and datapoints.\", \"created_at\": \"2025-08-13 23:25:28\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"MT-Bench\", \"entity2\": \"vector RAG\", \"description\": \"MT-Bench is a benchmark dataset oriented towards evaluating vector RAG performance.\", \"created_at\": \"2025-08-13 23:27:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"MMLU performance\", \"entity2\": \"Unnatural Instructions\", \"description\": \"The 'Unnatural Instructions' dataset's performance on the MMLU benchmark is shown in the table, varying with epochs and datapoints.\", \"created_at\": \"2025-08-13 23:25:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"HotPotQA\", \"entity2\": \"MT-Bench\", \"description\": \"HotPotQA and MT-Bench are both benchmark datasets for open-domain question answering.\", \"created_at\": \"2025-08-13 23:27:01\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Dataset quality\", \"entity2\": \"MMLU performance\", \"description\": \"The quality of the dataset significantly affects the MMLU performance, more so than dataset size.\", \"created_at\": \"2025-08-13 23:25:31\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Chip\", \"entity2\": \"MMLU performance\", \"description\": \"The 'Chip' dataset's performance on the MMLU benchmark is shown in the table, varying with epochs and datapoints.\", \"created_at\": \"2025-08-13 23:25:24\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Pangu 1.5B pro model\", \"entity2\": \"benchmark datasets\", \"description\": \"\\\"The Pangu 1.5B pro model demonstrates superior performance on multiple benchmark datasets compared to other models.\\\")\", \"created_at\": \"2025-08-15 16:27:26\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Datapoints\", \"entity2\": \"MMLU performance\", \"description\": \"MMLU performance varies across different numbers of data points for each dataset.\", \"created_at\": \"2025-08-13 23:25:32\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Epochs\", \"entity2\": \"MMLU performance\", \"description\": \"MMLU performance varies across different numbers of epochs for each dataset.\", \"created_at\": \"2025-08-13 23:25:32\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"CIFAR-10 image classification task\", \"entity2\": \"FedAvg algorithm\", \"description\": \"The FedAvg algorithm was used in experiments that presented results on the CIFAR-10 image classification task.\", \"created_at\": \"2025-08-15 14:59:55\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Dataset size\", \"entity2\": \"MMLU performance\", \"description\": \"The size of the dataset influences the MMLU performance, although less significantly than dataset quality according to the text.\", \"created_at\": \"2025-08-13 23:25:31\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"MT-Bench\", \"entity2\": \"Zheng et al.\", \"description\": \"Zheng et al. are associated with the creation or development of the MT-Bench benchmark dataset.\", \"created_at\": \"2025-08-13 23:26:55\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 2\\n\\n3 \\\\%$ of the performance level of ChatGPT while only requiring 24 hours of finetuning on a single GPU. QLORA introduces a number of innovations to save memory without sacrificing performance: (a) 4-bit NormalFloat (NF4), a new data type that is information theoretically optimal for normally distributed weights (b) Double Quantization to reduce the average memory footprint by quantizing the quantization constants, and (c) Paged Optimizers to manage memory spikes. We use QLORA to finetune more than 1,000 models, providing a detailed analysis of instruction following and chatbot performance across 8 instruction datasets, multiple model types (LLaMA, T5), and model scales that would be infeasible to run with regular finetuning (e.g. 33B and 65B parameter models). Our results show that QLoRA finetuning on a small high-quality dataset leads to state-of-the-art results, even when using smaller models than the previous SoTA.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Graph_RAG\\nChunk: 13\\n\\n# 2.3 Adaptive benchmarking for RAG Evaluation Many benchmark datasets for open-domain question answering exist, including HotPotQA (Yang et al., 2018), MultiHop-RAG (Tang and Yang, 2024), and MT-Bench (Zheng et al., 2024). However, these benchmarks are oriented towards vector RAG performance, i.e., they evaluate performance on explicit fact retrieval. In this work, we propose an approach for generating a set of questions for evaluating global sensemaking over the entirety of the corpus. Our approach is related to LLM methods that use a corpus to generate questions whose answers would be summaries of the corpus, such as in $\\\\mathrm { X u }$ and Lapata (2021). However, in order to produce a fair evaluation, our method avoids generating the questions directly from the corpus itself (as an alternative implementation, one can use a subset of the corpus held out from subsequent graph extraction and answer evaluation steps).\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.4534, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 5.4534, + "start_timestamp": "2025-08-16T09:21:06.929704", + "end_timestamp": "2025-08-16T09:21:12.383113" + }, + "metadata": { + "saved_at": "2025-08-16T09:21:12.384113", + "file_path": "retrieval_logs\\retrieval_20250816_092112_384_local_k5_ck2_On_what_benchmark_datasets_and_tasks_were_Transfor.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_092112_473_local_k3_ck2_What_were_the_significant_performance_improvements.json b/retrieval_logs/retrieval_20250816_092112_473_local_k3_ck2_What_were_the_significant_performance_improvements.json new file mode 100644 index 0000000000000000000000000000000000000000..e51b1aeae8353c77937c0c2e178971c7d1a7c245 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_092112_473_local_k3_ck2_What_were_the_significant_performance_improvements.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:21:12.473640", + "query": "What were the significant performance improvements or findings reported in the initial Transformer paper across different NLP tasks?", + "query_mode": "local", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 19266, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"MoE\", \"entity2\": \"Transformer\", \"description\": \"MoE layers typically replace the Feed-Forward Network (FFN) layer within a Transformer block when MoE is incorporated into existing Transformer models.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Transformer\", \"description\": \"Multi-Head Attention is employed within the Transformer to address the issue of reduced effective resolution arising from averaging attention-weighted positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"GPT-2\", \"entity2\": \"Transformer\", \"description\": \"GPT-2 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Mamba\", \"entity2\": \"Transformer\", \"description\": \"Mamba differs from Transformer in its approach to accessing hidden states, with Mamba focusing on the immediate previous hidden state and Transformer requiring access to all previous hidden states.Mamba offers a solution to the Transformer's drawback of quadratic time complexity during inference by relying only on the last hidden state, leading to faster inference speeds.Transformer uses attention heads for recall, while Mamba uses SSM heads for context summarization, highlighting different approaches to sequence processing.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Figure 5\", \"entity2\": \"Transformer\", \"description\": \"Figure 5 implicitly shows the Transformer's slower inference speeds by comparison to Mamba.\", \"created_at\": \"2025-08-15 16:21:47\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"MoE layer\", \"entity2\": \"Transformer\", \"description\": \"The MoE layer replaces the Feed-Forward Network (FFN) layer within a Transformer block.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Hymba\", \"entity2\": \"Transformer\", \"description\": \"Hymba integrates attention heads, similar to those in the Transformer, within its layers.\", \"created_at\": \"2025-08-15 16:29:28\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Transformer\", \"entity2\": \"ΔWq\", \"description\": \"ΔWq is obtained from layers within a Transformer network.ΔWq represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:28\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Transformer\", \"entity2\": \"ΔWv\", \"description\": \"ΔWv represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Transformer\", \"entity2\": \"language modeling\", \"description\": \"The Transformer is implied to be relevant to language modeling tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Recurrence\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture dispenses with recurrence.The Transformer dispenses with recurrence, which is a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"BLEU scores\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model's performance is measured by its BLEU scores.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Emergent Modularity phenomenon\", \"entity2\": \"Transformer\", \"description\": \"The Emergent Modularity phenomenon is observed in pre-trained Transformer models.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Convolutions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer dispenses with convolutions, which are a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Feed-Forward Network (FFN) layer\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer that is replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:18:38\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"State Space Models (SSMs)\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's attention mechanism has a drawback of quadratic time complexity, while State Space Models (SSMs) enable faster inference speeds by relying on the last hidden state.\", \"created_at\": \"2025-08-15 16:21:42\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Transformer\", \"entity2\": \"Vaswani et al.\", \"description\": \"Vaswani et al. are associated with the development or publication of the Transformer architecture.Vaswani et al. are the authors of the Transformer architecture.\", \"created_at\": \"2025-08-13 22:49:38\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder structure\", \"description\": \"\\\"The Transformer generally adopts an encoder-decoder structure.\\\")The Transformer is a transduction model that, unlike most competitive neural sequence transduction models, does not explicitly state it uses an encoder-decoder structure, but rather relies on self-attention.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"English Constituency Parsing\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is being evaluated on the task of English Constituency Parsing to assess its generalization capabilities.\", \"created_at\": \"2025-08-15 14:55:59\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Transformer\", \"entity2\": \"newstest2014\", \"description\": \"The Transformer model is evaluated on the newstest2014 test set for translation tasks.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Transformer\", \"entity2\": \"images, audio and video\", \"description\": \"\\\"The Transformer is planned to be extended to problems involving input and output modalities other than text, such as images, audio, and video.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"English-to-French\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-French translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Constant number of operations\", \"entity2\": \"Transformer\", \"description\": \"The Transformer achieves a constant number of operations to learn dependencies between distant positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"Making generation less sequential\", \"entity2\": \"Transformer\", \"description\": \"Making generation less sequential is a planned enhancement for the Transformer model.\", \"created_at\": \"2025-08-15 14:57:21\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Feed-Forward Network (FFN)\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer block that can be replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"SVD\", \"entity2\": \"Transformer\", \"description\": \"The SVD method is applied to matrices (ΔW) derived from a Transformer's layers.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Transformer\", \"entity2\": \"simple-language question answering\", \"description\": \"The Transformer is implied to be relevant to simple-language question answering tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 20\\n\\nFor each of these we use $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h \\\\stackrel { } { = } \\\\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \\\"encoder-decoder attention\\\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.5419, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 5.5419, + "start_timestamp": "2025-08-16T09:21:06.931708", + "end_timestamp": "2025-08-16T09:21:12.473640" + }, + "metadata": { + "saved_at": "2025-08-16T09:21:12.473640", + "file_path": "retrieval_logs\\retrieval_20250816_092112_473_local_k3_ck2_What_were_the_significant_performance_improvements.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_092126_232_local_k10_ck4_Beyond_initial_NLP_tasks_what_are_the_diverse_appl.json b/retrieval_logs/retrieval_20250816_092126_232_local_k10_ck4_Beyond_initial_NLP_tasks_what_are_the_diverse_appl.json new file mode 100644 index 0000000000000000000000000000000000000000..542240f5a080afa3762d68e36198dd10dcf73f05 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_092126_232_local_k10_ck4_Beyond_initial_NLP_tasks_what_are_the_diverse_appl.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:21:26.232752", + "query": "Beyond initial NLP tasks, what are the diverse applications where the Transformer architecture has been successfully adapted or is currently being explored?", + "query_mode": "local", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 11375, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Task-specific SLM Applications\", \"type\": \"methodology\", \"description\": \"This subsection explores the diverse NLP tasks to which SLMs can contribute, including question-answering and coding as generative tasks, and recommender systems and web search which leverage encoding capabilities. The application of SLMs on mobile devices is highlighted due to constraints in memory and computing resources. Representative works are organized in Table 3.\", \"created_at\": \"2025-08-15 16:37:55\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Natural Language Processing Applications\", \"type\": \"connection\", \"description\": \"Natural Language Processing Applications are a broad domain where MoE is investigated, with tasks ranging from image classification to machine translation.\", \"created_at\": \"2025-08-15 15:36:26\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"multilingual natural language understanding tasks\", \"type\": \"abstract\", \"description\": \"These are tasks that benefit from new perspectives provided by methodologies like MoE-LPR.\", \"created_at\": \"2025-08-15 15:40:15\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"NLP tasks\", \"type\": \"methodology\", \"description\": \"NLP tasks are diverse and can be contributed to by SLMs. Question-answering and coding are examples of generative tasks within NLP.\", \"created_at\": \"2025-08-15 16:37:55\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"NLG tasks\", \"type\": \"abstract\", \"description\": \"NLG (Natural Language Generation) tasks can be enhanced by specially designed MoE architectures, although this has not yet reached a scale sufficient for sub-domain classification.\", \"created_at\": \"2025-08-15 15:43:15\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Sequence Modeling and Transduction\", \"type\": \"abstract\", \"description\": \"Problem domains such as language modeling and machine translation where recurrent neural networks have been established as state-of-the-art approaches.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Generative tasks\", \"type\": \"methodology\", \"description\": \"Generative tasks, such as question-answering and coding, are areas where SLMs can contribute.\", \"created_at\": \"2025-08-15 16:37:55\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"language modeling tasks\", \"type\": \"methodology\", \"description\": \"Language modeling tasks are tasks for which recurrent neural networks, and in particular LSTMs, have achieved state-of-the-art results.\", \"created_at\": \"2025-08-15 15:03:37\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Natural Language Processing\", \"type\": \"connection\", \"description\": \"Natural Language Processing (NLP) is a core research area of artificial intelligence that focuses on enabling computers to understand, generate, and process human language. It plays a significant role in promoting human-computer interaction, information extraction, knowledge mining, cross-lingual communication, and automation.Natural Language Processing is a domain where Mixture-of-Experts is applied.Natural Language Processing is an application domain where MoE is investigated, with tasks including machine translation.\", \"created_at\": \"2025-08-15 15:18:17\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"SLMs\", \"entity2\": \"Task-specific SLM Applications\", \"description\": \"Task-specific SLM Applications is a subsection that explores the diverse NLP tasks to which SLMs can contribute.\", \"created_at\": \"2025-08-15 16:38:00\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"NLP tasks\", \"entity2\": \"SLMs\", \"description\": \"SLMs can contribute to diverse NLP tasks.\", \"created_at\": \"2025-08-15 16:38:01\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Generative tasks\", \"entity2\": \"SLMs\", \"description\": \"SLMs can contribute to generative tasks like question-answering and coding.\", \"created_at\": \"2025-08-15 16:38:08\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"MoE\", \"entity2\": \"Natural Language Processing\", \"description\": \"MoE is investigated in the application domain of Natural Language Processing, highlighting its enhancements in specialization, scalability, and adaptability for tasks like machine translation.\", \"created_at\": \"2025-08-15 15:36:37\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"MoE model\", \"entity2\": \"Natural Language Processing\", \"description\": \"The MoE model uses text prompts, which are processed by Natural Language Processing, to route input features based on texture attributes mentioned in the text prompt.\", \"created_at\": \"2025-08-15 15:28:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Mixture-of-Experts\", \"entity2\": \"Natural Language Processing\", \"description\": \"Mixture-of-Experts is applied in Natural Language Processing.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Artificial Intelligence\", \"entity2\": \"Natural Language Processing\", \"description\": \"Natural Language Processing is a domain where Artificial Intelligence has demonstrated remarkable successes.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Machine Translation\", \"entity2\": \"Natural Language Processing\", \"description\": \"Machine Translation is a task within Natural Language Processing where the influence of MoE is examined.\", \"created_at\": \"2025-08-15 15:36:26\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"LSTMs\", \"entity2\": \"language modeling tasks\", \"description\": \"\\\"LSTMs have achieved state-of-the-art results for language modeling tasks.\\\")\", \"created_at\": \"2025-08-15 15:03:45\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Language Modeling\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Language Modeling is an example of a sequence modeling and transduction problem where RNNs are state-of-the-art.\", \"created_at\": \"2025-08-15 18:19:09\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Machine Translation\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Machine Translation is an example of a sequence modeling and transduction problem where RNNs are state-of-the-art.\", \"created_at\": \"2025-08-15 18:19:40\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"language modeling tasks\", \"entity2\": \"recurrent neural networks\", \"description\": \"\\\"Recurrent neural networks have achieved state-of-the-art results for language modeling tasks.\\\")\", \"created_at\": \"2025-08-15 15:03:37\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"MoE-LPR\", \"entity2\": \"multilingual natural language understanding tasks\", \"description\": \"MoE-LPR provides a new perspective for multilingual natural language understanding tasks.\", \"created_at\": \"2025-08-15 15:40:16\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 3\\n\\n# 1 Introduction Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5]. Numerous efforts have since continued to push the boundaries of recurrent language models and encoder-decoder architectures [38, 24, 15]. Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states [math: h _ { t }] , as a function of the previous hidden state [math: h _ { t - 1 }] and the input for position [math: t] . This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 140\\n\\noder based on the diffusion model [286], [287], [288], enabling conditional generation of clothing with different texture types. Specifically, the MoE model routes input features to different expert heads based on the texture attributes mentioned in the text prompt, with each expert head responsible for predicting tokens of specific textures. Based on the synthesis and control of more complex textures, this method increases the model’s ability to handle details while avoiding the computational burden of training separate samplers for each texture. # B. Natural Language Processing As a core research area of artificial intelligence, NLP focuses on enabling computers to understand, generate, and process human language [289], [290]. It plays a significant role in promoting human-computer interaction, information extraction, knowledge mining, cross-lingual communication, and automation.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 9\\n\\ned-forward deep networks, and in particular convolutional networks, are well-known to provide state-of-the-art results [26, 25]. For language modeling tasks recurrent neural networks, and in particular LSTMs, have achieved state-of-the-art results [20, 5, 22]. Federated Optimization We refer to the optimization problem implicit in federated learning as federated optimization, drawing a connection (and contrast) to distributed optimization. Federated optimization has several key properties that differentiate it from a typical distributed optimization problem: • Non-IID The training data on a given client is typically based on the usage of the mobile device by a particular user, and hence any particular user’s local dataset will not be representative of the population distribution. • Unbalanced Similarly, some users will make much heavier use of the service or app than others, leading to varying amounts of local training data.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: MOE\\nChunk: 143\\n\\nHowever, the further development of NLU is hindered by the complexity, ambiguity, and diversity of human language. MoE allows systems to dynamically leverage expert networks for different linguistic tasks or domains. For example, one expert may specialize in syntactic parsing, while another focuses on sentiment analysis, thereby enhancing the model’s ability to effectively handle various complex linguistic patterns. This specialization and adaptability make MoE a powerful method for extending and refining NLU systems, enabling more accurate and context-aware language understanding. Since the use of specially designed MoE architectures to enhance model performance in NLG tasks has not yet reached a scale sufficient for sub-domain classification, this section will only summarize some representative work in recent years. GLaM [20] introduces an MoE architecture to make the training and inference processes more efficient.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.1126, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 6.1126, + "start_timestamp": "2025-08-16T09:21:20.119618", + "end_timestamp": "2025-08-16T09:21:26.232249" + }, + "metadata": { + "saved_at": "2025-08-16T09:21:26.232752", + "file_path": "retrieval_logs\\retrieval_20250816_092126_232_local_k10_ck4_Beyond_initial_NLP_tasks_what_are_the_diverse_appl.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_092126_248_local_k10_ck4_How_does_the_computational_complexity_and_parallel.json b/retrieval_logs/retrieval_20250816_092126_248_local_k10_ck4_How_does_the_computational_complexity_and_parallel.json new file mode 100644 index 0000000000000000000000000000000000000000..35903c6cc0048fee51705cf7323e9e954a25a6b4 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_092126_248_local_k10_ck4_How_does_the_computational_complexity_and_parallel.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:21:26.248828", + "query": "How does the computational complexity and parallelization capability of Transformers compare to recurrent neural networks (RNNs) and convolutional neural networks (CNNs) for sequence processing?", + "query_mode": "local", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 11556, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"RNNs\", \"type\": \"methodology\", \"description\": \"RNNs (Recurrent Neural Networks) are sequence-aligned models that the Transformer does not use.\", \"created_at\": \"2025-08-15 14:58:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Recurrent Neural Networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including long short-term memory (LSTM) and gated recurrent units (GRU), have been firmly established as state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Recurrent Neural Networks (RNNs)\", \"type\": \"methodology\", \"description\": \"Recurrent Neural Networks (RNNs) are a class of models of which State Space Models (SSMs) are a superclass.\", \"created_at\": \"2025-08-15 16:21:43\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Transformers [346]\", \"type\": \"methodology\", \"description\": \"Transformers [346] are foundational in most language models but face significant computational and memory challenges that worsen with model size, impacting training and autoregressive decoding.\", \"created_at\": \"2025-08-15 17:05:24\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Factorization tricks for LSTM networks\", \"type\": \"methodology\", \"description\": \"This refers to techniques for factorization within LSTM networks.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"BERT: Pre-training of deep bidirectional transformers for language understanding\", \"type\": \"abstract\", \"description\": \"This refers to a pre-training method for deep bidirectional transformers designed for language understanding.\", \"created_at\": \"2025-08-15 15:42:29\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Convolutional networks\", \"type\": \"methodology\", \"description\": \"Convolutional networks are a type of deep network that provide state-of-the-art results.\", \"created_at\": \"2025-08-15 15:03:37\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Imagenet classification with deep convolutional neural networks\", \"type\": \"methodology\", \"description\": \"This is a paper about ImageNet classification using deep convolutional neural networks.\", \"created_at\": \"2025-08-15 15:08:38\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Mamba\", \"entity2\": \"Recurrent Neural Networks (RNNs)\", \"description\": \"Mamba is based on State Space Models (SSMs), which are a superclass of Recurrent Neural Networks (RNNs).\", \"created_at\": \"2025-08-15 16:21:43\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequential Computation\", \"description\": \"The inherent characteristic of Recurrent Neural Networks is their sequential computation, where hidden states are generated based on previous states and current input.\", \"created_at\": \"2025-08-15 18:20:09\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Gated Recurrent Units (GRU)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Gated Recurrent Units (GRU) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:55\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Long Short-Term Memory (LSTM)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Long Short-Term Memory (LSTM) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Encoder-Decoder Architectures\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Encoder-Decoder Architectures are mentioned alongside recurrent language models as areas where efforts have pushed boundaries, indicating a close relationship in the context of sequence modeling.\", \"created_at\": \"2025-08-15 18:21:27\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Recurrent Language Models\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Recurrent Language Models are a specific application or type of recurrent neural network whose boundaries have been pushed by research.\", \"created_at\": \"2025-08-15 18:21:11\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Factorization tricks for LSTM networks\", \"entity2\": \"Neural machine translation in linear time\", \"description\": \"Both are related to neural network architectures and efficiency, with factorization tricks potentially improving the performance of models like those used in linear time translation.\", \"created_at\": \"2025-08-15 14:58:12\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"transduction problems\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in transduction problems.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Convolutional networks\", \"entity2\": \"deep networks\", \"description\": \"\\\"Convolutional networks are a specific type of deep network.\\\")\", \"created_at\": \"2025-08-15 15:03:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 3\\n\\n# 1 Introduction Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5]. Numerous efforts have since continued to push the boundaries of recurrent language models and encoder-decoder architectures [38, 24, 15]. Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states [math: h _ { t }] , as a function of the previous hidden state [math: h _ { t - 1 }] and the input for position [math: t] . This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: MOE\\nChunk: 165\\n\\n[6] P. Rajpurkar, E. Chen, O. Banerjee, and E. J. Topol, “Ai in health and medicine,” Nature medicine, vol. 28, no. 1, pp. 31–38, 2022. [7] L. Cao, “Autoai: Autonomous ai,” IEEE Intelligent Systems, vol. 37, no. 5, pp. 3–5, 2022. [8] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “Bert: Pre-training of deep bidirectional transformers for language understanding,” in Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), pp. 4171–4186, 2019. [9] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, et al., “Learning transferable visual models from natural language supervision,” in International conference on machine learning, pp. 8748–8763, PmLR, 2021. [10] J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 9\\n\\ned-forward deep networks, and in particular convolutional networks, are well-known to provide state-of-the-art results [26, 25]. For language modeling tasks recurrent neural networks, and in particular LSTMs, have achieved state-of-the-art results [20, 5, 22]. Federated Optimization We refer to the optimization problem implicit in federated learning as federated optimization, drawing a connection (and contrast) to distributed optimization. Federated optimization has several key properties that differentiate it from a typical distributed optimization problem: • Non-IID The training data on a given client is typically based on the usage of the mobile device by a particular user, and hence any particular user’s local dataset will not be representative of the population distribution. • Unbalanced Similarly, some users will make much heavier use of the service or app than others, leading to varying amounts of local training data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 8.8351, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 8.8351, + "start_timestamp": "2025-08-16T09:21:17.413705", + "end_timestamp": "2025-08-16T09:21:26.248828" + }, + "metadata": { + "saved_at": "2025-08-16T09:21:26.248828", + "file_path": "retrieval_logs\\retrieval_20250816_092126_248_local_k10_ck4_How_does_the_computational_complexity_and_parallel.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_092126_344_local_k10_ck4_What_are_the_known_limitations_or_challenges_assoc.json b/retrieval_logs/retrieval_20250816_092126_344_local_k10_ck4_What_are_the_known_limitations_or_challenges_assoc.json new file mode 100644 index 0000000000000000000000000000000000000000..d53abc0c66c42f9f6ce58f1a191301300ae3aa54 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_092126_344_local_k10_ck4_What_are_the_known_limitations_or_challenges_assoc.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:21:26.344074", + "query": "What are the known limitations or challenges associated with the standard Transformer architecture, such as quadratic complexity with sequence length or lack of inherent sequentiality?", + "query_mode": "local", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 22435, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"MoE\", \"entity2\": \"Transformer\", \"description\": \"MoE layers typically replace the Feed-Forward Network (FFN) layer within a Transformer block when MoE is incorporated into existing Transformer models.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Transformer\", \"description\": \"Multi-Head Attention is employed within the Transformer to address the issue of reduced effective resolution arising from averaging attention-weighted positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"GPT-2\", \"entity2\": \"Transformer\", \"description\": \"GPT-2 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Mamba\", \"entity2\": \"Transformer\", \"description\": \"Mamba differs from Transformer in its approach to accessing hidden states, with Mamba focusing on the immediate previous hidden state and Transformer requiring access to all previous hidden states.Mamba offers a solution to the Transformer's drawback of quadratic time complexity during inference by relying only on the last hidden state, leading to faster inference speeds.Transformer uses attention heads for recall, while Mamba uses SSM heads for context summarization, highlighting different approaches to sequence processing.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Figure 5\", \"entity2\": \"Transformer\", \"description\": \"Figure 5 implicitly shows the Transformer's slower inference speeds by comparison to Mamba.\", \"created_at\": \"2025-08-15 16:21:47\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"MoE layer\", \"entity2\": \"Transformer\", \"description\": \"The MoE layer replaces the Feed-Forward Network (FFN) layer within a Transformer block.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Hymba\", \"entity2\": \"Transformer\", \"description\": \"Hymba integrates attention heads, similar to those in the Transformer, within its layers.\", \"created_at\": \"2025-08-15 16:29:28\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Transformer\", \"entity2\": \"ΔWq\", \"description\": \"ΔWq is obtained from layers within a Transformer network.ΔWq represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:28\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Transformer\", \"entity2\": \"ΔWv\", \"description\": \"ΔWv represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Transformer\", \"entity2\": \"language modeling\", \"description\": \"The Transformer is implied to be relevant to language modeling tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Recurrence\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture dispenses with recurrence.The Transformer dispenses with recurrence, which is a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"BLEU scores\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model's performance is measured by its BLEU scores.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Emergent Modularity phenomenon\", \"entity2\": \"Transformer\", \"description\": \"The Emergent Modularity phenomenon is observed in pre-trained Transformer models.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Convolutions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer dispenses with convolutions, which are a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Feed-Forward Network (FFN) layer\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer that is replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:18:38\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"State Space Models (SSMs)\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's attention mechanism has a drawback of quadratic time complexity, while State Space Models (SSMs) enable faster inference speeds by relying on the last hidden state.\", \"created_at\": \"2025-08-15 16:21:42\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Transformer\", \"entity2\": \"Vaswani et al.\", \"description\": \"Vaswani et al. are associated with the development or publication of the Transformer architecture.Vaswani et al. are the authors of the Transformer architecture.\", \"created_at\": \"2025-08-13 22:49:38\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder structure\", \"description\": \"\\\"The Transformer generally adopts an encoder-decoder structure.\\\")The Transformer is a transduction model that, unlike most competitive neural sequence transduction models, does not explicitly state it uses an encoder-decoder structure, but rather relies on self-attention.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"English Constituency Parsing\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is being evaluated on the task of English Constituency Parsing to assess its generalization capabilities.\", \"created_at\": \"2025-08-15 14:55:59\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Transformer\", \"entity2\": \"newstest2014\", \"description\": \"The Transformer model is evaluated on the newstest2014 test set for translation tasks.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Transformer\", \"entity2\": \"images, audio and video\", \"description\": \"\\\"The Transformer is planned to be extended to problems involving input and output modalities other than text, such as images, audio, and video.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"English-to-French\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-French translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Constant number of operations\", \"entity2\": \"Transformer\", \"description\": \"The Transformer achieves a constant number of operations to learn dependencies between distant positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"Making generation less sequential\", \"entity2\": \"Transformer\", \"description\": \"Making generation less sequential is a planned enhancement for the Transformer model.\", \"created_at\": \"2025-08-15 14:57:21\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Feed-Forward Network (FFN)\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer block that can be replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"SVD\", \"entity2\": \"Transformer\", \"description\": \"The SVD method is applied to matrices (ΔW) derived from a Transformer's layers.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Transformer\", \"entity2\": \"simple-language question answering\", \"description\": \"The Transformer is implied to be relevant to simple-language question answering tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Transformer architecture\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures such as Mamba, Hymba, and xLSTM are proposed to alleviate the inference cost of the Transformer architecture due to its attention mechanism.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 20\\n\\nFor each of these we use $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h \\\\stackrel { } { = } \\\\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \\\"encoder-decoder attention\\\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 30\\n\\nThe advanced training strategy to improve SLM performance will be introduced in Section 3. # 2.1 Architecture of SLMs SLMs commonly employ the Transformer architecture [346] (see Figure 4), which utilizes self-attention mechanisms to manage long-range text dependencies, essential for maintaining performance with constrained resources. However, due to the attention mechanism, Transformers have large inference cost. Hence, to alleviate the issue, several subquadratictime architectures such as Mamba [117], Hymba [90], and xLSTM [25] are proposed. Next, we will give details of Transformer due to its popularity and briefly introduce newly emerged models. 2.1.1 Transformer. The Transformer’s self-attention mechanism [346] allows language models to efficiently capture contextual information across longer sequences, even with limited resources. The Transformer generally adopts an encoder-decoder structure featuring self-attention mechanisms, feedforward networks, positional embeddings, and layer normalization.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Attention Is All You Need\\nChunk: 6\\n\\nThis makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.2245, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 6.2245, + "start_timestamp": "2025-08-16T09:21:20.119618", + "end_timestamp": "2025-08-16T09:21:26.344074" + }, + "metadata": { + "saved_at": "2025-08-16T09:21:26.344074", + "file_path": "retrieval_logs\\retrieval_20250816_092126_344_local_k10_ck4_What_are_the_known_limitations_or_challenges_assoc.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_092135_900_local_k10_ck4_What_are_the_promising_future_research_directions_.json b/retrieval_logs/retrieval_20250816_092135_900_local_k10_ck4_What_are_the_promising_future_research_directions_.json new file mode 100644 index 0000000000000000000000000000000000000000..bbbb5ffa77538cc44f007b561007be737dabe468 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_092135_900_local_k10_ck4_What_are_the_promising_future_research_directions_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:21:35.901712", + "query": "What are the promising future research directions and extensions stemming from the original Transformer model, such as efficiency improvements or new architectural variants?", + "query_mode": "local", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 24493, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"1-bit Transformer architecture with BitLinear layers\", \"type\": \"methodology\", \"description\": \"Introduces a 1-bit Transformer architecture with BitLinear layers, achieving near 1-bit quantization with minimal performance loss.\", \"created_at\": \"2025-08-15 16:26:40\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Layer sharing\", \"type\": \"methodology\", \"description\": \"Layer sharing increases hidden layers in small Transformer models without additional storage costs.\", \"created_at\": \"2025-08-15 16:40:55\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Transformer operations\", \"type\": \"methodology\", \"description\": \"Transformer operations utilize fine-tuned weight matrices.\", \"created_at\": \"2025-08-15 16:29:35\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Parallelizability\", \"type\": \"results\", \"description\": \"The Transformer models are more parallelizable than existing models.\", \"created_at\": \"2025-08-15 14:58:13\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"BitLinear layers\", \"type\": \"methodology\", \"description\": \"Part of the 1-bit Transformer architecture that enables near 1-bit quantization.\", \"created_at\": \"2025-08-15 16:26:40\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"MoE\", \"entity2\": \"Transformer\", \"description\": \"MoE layers typically replace the Feed-Forward Network (FFN) layer within a Transformer block when MoE is incorporated into existing Transformer models.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Transformer\", \"description\": \"Multi-Head Attention is employed within the Transformer to address the issue of reduced effective resolution arising from averaging attention-weighted positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"GPT-2\", \"entity2\": \"Transformer\", \"description\": \"GPT-2 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Mamba\", \"entity2\": \"Transformer\", \"description\": \"Mamba differs from Transformer in its approach to accessing hidden states, with Mamba focusing on the immediate previous hidden state and Transformer requiring access to all previous hidden states.Mamba offers a solution to the Transformer's drawback of quadratic time complexity during inference by relying only on the last hidden state, leading to faster inference speeds.Transformer uses attention heads for recall, while Mamba uses SSM heads for context summarization, highlighting different approaches to sequence processing.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Figure 5\", \"entity2\": \"Transformer\", \"description\": \"Figure 5 implicitly shows the Transformer's slower inference speeds by comparison to Mamba.\", \"created_at\": \"2025-08-15 16:21:47\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"MoE layer\", \"entity2\": \"Transformer\", \"description\": \"The MoE layer replaces the Feed-Forward Network (FFN) layer within a Transformer block.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Hymba\", \"entity2\": \"Transformer\", \"description\": \"Hymba integrates attention heads, similar to those in the Transformer, within its layers.\", \"created_at\": \"2025-08-15 16:29:28\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Transformer\", \"entity2\": \"ΔWq\", \"description\": \"ΔWq is obtained from layers within a Transformer network.ΔWq represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:28\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Transformer\", \"entity2\": \"ΔWv\", \"description\": \"ΔWv represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Transformer\", \"entity2\": \"language modeling\", \"description\": \"The Transformer is implied to be relevant to language modeling tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Recurrence\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture dispenses with recurrence.The Transformer dispenses with recurrence, which is a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"BLEU scores\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model's performance is measured by its BLEU scores.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Emergent Modularity phenomenon\", \"entity2\": \"Transformer\", \"description\": \"The Emergent Modularity phenomenon is observed in pre-trained Transformer models.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Convolutions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer dispenses with convolutions, which are a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Feed-Forward Network (FFN) layer\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer that is replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:18:38\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"State Space Models (SSMs)\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's attention mechanism has a drawback of quadratic time complexity, while State Space Models (SSMs) enable faster inference speeds by relying on the last hidden state.\", \"created_at\": \"2025-08-15 16:21:42\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Transformer\", \"entity2\": \"Vaswani et al.\", \"description\": \"Vaswani et al. are associated with the development or publication of the Transformer architecture.Vaswani et al. are the authors of the Transformer architecture.\", \"created_at\": \"2025-08-13 22:49:38\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder structure\", \"description\": \"\\\"The Transformer generally adopts an encoder-decoder structure.\\\")The Transformer is a transduction model that, unlike most competitive neural sequence transduction models, does not explicitly state it uses an encoder-decoder structure, but rather relies on self-attention.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"English Constituency Parsing\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is being evaluated on the task of English Constituency Parsing to assess its generalization capabilities.\", \"created_at\": \"2025-08-15 14:55:59\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Transformer\", \"entity2\": \"newstest2014\", \"description\": \"The Transformer model is evaluated on the newstest2014 test set for translation tasks.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Transformer\", \"entity2\": \"images, audio and video\", \"description\": \"\\\"The Transformer is planned to be extended to problems involving input and output modalities other than text, such as images, audio, and video.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"English-to-French\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-French translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Constant number of operations\", \"entity2\": \"Transformer\", \"description\": \"The Transformer achieves a constant number of operations to learn dependencies between distant positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"Making generation less sequential\", \"entity2\": \"Transformer\", \"description\": \"Making generation less sequential is a planned enhancement for the Transformer model.\", \"created_at\": \"2025-08-15 14:57:21\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Feed-Forward Network (FFN)\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer block that can be replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"SVD\", \"entity2\": \"Transformer\", \"description\": \"The SVD method is applied to matrices (ΔW) derived from a Transformer's layers.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Transformer\", \"entity2\": \"simple-language question answering\", \"description\": \"The Transformer is implied to be relevant to simple-language question answering tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Transformer architecture\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures such as Mamba, Hymba, and xLSTM are proposed to alleviate the inference cost of the Transformer architecture due to its attention mechanism.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"Low-Rank Adaptation (LoRA)\", \"entity2\": \"Transformer operations\", \"description\": \"The fine-tuned weight matrix from LoRA is used in Transformer operations.\", \"created_at\": \"2025-08-15 16:29:41\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"1-bit quantization\", \"entity2\": \"BitLinear layers\", \"description\": \"BitLinear layers are a component of the 1-bit Transformer architecture that enables 1-bit quantization.\", \"created_at\": \"2025-08-15 16:26:40\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"1-bit Transformer architecture with BitLinear layers\", \"entity2\": \"Moqt[234] SLM-RAG [215]\", \"description\": \"Both are presented as methodologies for enhancing SLMs, with the former focusing on quantization and the latter on ternary weights and RAG for performance matching.\", \"created_at\": \"2025-08-15 16:26:40\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 20\\n\\nNote that both $W _ { 0 }$ and $B A$ are in $\\\\mathbb { R } ^ { d \\\\times k }$ . When we need to switch to another downstream task, we can recover $W _ { 0 }$ by subtracting $B A$ and then adding a different $B ^ { \\\\prime } A ^ { \\\\prime }$ , a quick operation with very little memory overhead. Critically, this guarantees that we do not introduce any additional latency during inference compared to a fine-tuned model by construction. # 4.2 APPLYING LORA TO TRANSFORMER In principle, we can apply LoRA to any subset of weight matrices in a neural network to reduce the number of trainable parameters. In the Transformer architecture, there are four weight matrices in the self-attention module $( W _ { q } , W _ { k } , W _ { v } , W _ { o } )$ and two in the MLP module. We treat $W _ { q }$ (or $W _ { k }$ , $W _ { v . }$ ) as a single matrix of dimension $d _ { m o d e l } \\\\times d _ { m o d e l }$ , even though the output dimension is usually sliced into attention heads.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 55\\n\\n118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\\\Delta \\\\mathbf { W } = \\\\mathbf { A } \\\\mathbf { B } ^ { \\\\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\\\mathbf { W } _ { \\\\mathrm { f t } } = \\\\mathbf { W } + \\\\alpha \\\\Delta \\\\mathbf { W }$ where $\\\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 42\\n\\nLeveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data. Due to its focus on the immediate previous hidden state, as opposed to Transformer which requires access to all previous hidden states, Mamba achieves a higher utilization rate of model parameters. This makes it more suitable for SLMs. However, we identify two drawbacks of Mamba: (i) its focus on selectively capturing global information may compromise performance on tasks that require nuanced understanding, such as detailed sentiment analysis or complex entity recognition; and (ii) to balance inference speed, Mamba’s recurrent structure primarily encodes static global information, which limits its effectiveness in handling multi-round tasks within a single query, such as interactive dialogue systems or iterative problem-solving scenarios. [IMAGE]\\nFig. 5. Mamba 1 architecture [117].\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.113, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.113, + "start_timestamp": "2025-08-16T09:21:32.787696", + "end_timestamp": "2025-08-16T09:21:35.900711" + }, + "metadata": { + "saved_at": "2025-08-16T09:21:35.901712", + "file_path": "retrieval_logs\\retrieval_20250816_092135_900_local_k10_ck4_What_are_the_promising_future_research_directions_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_092148_034_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_in_ma.json b/retrieval_logs/retrieval_20250816_092148_034_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_in_ma.json new file mode 100644 index 0000000000000000000000000000000000000000..05f16bc2fd26df8bb3e63ac24343ffdf25f1f718 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_092148_034_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_in_ma.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:21:48.034985", + "query": "Based on the following Q&A about transformers in machine learning, provide a comprehensive research summary: [{'category': 'innovation', 'question': 'What was the primary innovation of the Transformer model compared to prior sequence-to-sequence models like RNNs and LSTMs?', 'answer': 'The provided context details the capabilities and limitations of Recurrent Neural Networks (RNNs), including LSTMs and GRUs, highlighting their sequential nature and challenges with long-term dependencies. However, it contains no information regarding the Transformer model or its innovations compared to RNNs.'}, {'category': 'evaluation', 'question': 'On what benchmark datasets and tasks were Transformers initially evaluated, and what were the key metrics used to demonstrate their performance?', 'answer': 'Information on the initial benchmark datasets and metrics for evaluating Transformers is not present in the provided context.'}, {'category': 'results', 'question': 'What were the significant performance improvements or findings reported in the initial Transformer paper across different NLP tasks?', 'answer': 'The initial Transformer paper demonstrated significant performance improvements across NLP tasks, notably in translation and parsing, by leveraging multi-head self-attention, leading to better quality, parallelization, and reduced training time compared to prior models.'}, {'category': 'comparison', 'question': 'How does the computational complexity and parallelization capability of Transformers compare to recurrent neural networks (RNNs) and convolutional neural networks (CNNs) for sequence processing?', 'answer': 'RNNs process sequences sequentially, limiting parallelization, while Transformers face computational challenges due to their architecture. CNNs are noted for state-of-the-art results but lack detailed comparison for sequence processing.'}, {'category': 'applications', 'question': 'Beyond initial NLP tasks, what are the diverse applications where the Transformer architecture has been successfully adapted or is currently being explored?', 'answer': 'The provided context focuses on Natural Language Processing (NLP) tasks and related methodologies like RNNs and MoE, but does not offer information on the Transformer architecture'}, {'category': 'limitations', 'question': 'What are the known limitations or challenges associated with the standard Transformer architecture, such as quadratic complexity with sequence length or lack of inherent sequentiality?', 'answer': 'The standard Transformer architecture, while powerful, faces a significant challenge with quadratic time complexity in its attention mechanism relative to sequence length, leading to high inference costs. This has spurred the development of subquadratic-time architectures as alternatives.'}, {'category': 'future_work', 'question': 'What are the promising future research directions and extensions stemming from the original Transformer model, such as efficiency improvements or new architectural variants?', 'answer': 'The Transformer architecture'}]", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 31047, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Computational complexity\", \"type\": \"discussion\", \"description\": \"Self-attention layers are faster than recurrent layers in terms of computational complexity when the sequence length $n$ is smaller than the representation dimensionality $d$.\", \"created_at\": \"2025-08-15 14:55:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Encoder-Decoder Architectures\", \"type\": \"methodology\", \"description\": \"Architectures whose boundaries have been pushed by numerous efforts, alongside recurrent language models.\", \"created_at\": \"2025-08-15 18:18:27\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Radford et al.\", \"type\": \"person\", \"description\": \"Radford et al. are authors whose work focuses on transformer models, specifically their application to autoregressive language modeling. Their publications include papers detailing the GPT-2 model, and they are known for their contributions to fine-tuning these transformer-based models. While some details of their work remain unavailable, the consistent information points to their significant authorship in the development and refinement of GPT-2 and similar models.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Recurrent Neural Networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including long short-term memory (LSTM) and gated recurrent units (GRU), have been firmly established as state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"A neural attention model for abstractive sentence summarization\", \"type\": \"methodology\", \"description\": \"This refers to a neural attention model for abstractive sentence summarization, as presented in the arXiv preprint arXiv:1509.00685.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Neural machine translation by jointly learning to align and translate\", \"type\": \"methodology\", \"description\": \"This refers to a methodology for neural machine translation that involves learning to align and translate simultaneously.This refers to the methodology of neural machine translation that jointly learns to align and translate, as presented in the arXiv preprint arXiv:1409.0473.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Neural architectures for named entity recognition\", \"type\": \"methodology\", \"description\": \"This refers to the neural architectures used for named entity recognition, as presented in the arXiv preprint arXiv:1603.01360.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"MoE\", \"entity2\": \"Transformer\", \"description\": \"MoE layers typically replace the Feed-Forward Network (FFN) layer within a Transformer block when MoE is incorporated into existing Transformer models.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Transformer\", \"description\": \"Multi-Head Attention is employed within the Transformer to address the issue of reduced effective resolution arising from averaging attention-weighted positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"GPT-2\", \"entity2\": \"Transformer\", \"description\": \"GPT-2 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"A neural attention model for abstractive sentence summarization\", \"entity2\": \"Neural machine translation by jointly learning to align and translate\", \"description\": \"Both methodologies leverage neural networks and attention mechanisms, with one focusing on translation and the other on summarization.\", \"created_at\": \"2025-08-15 15:48:20\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"A neural attention model for abstractive sentence summarization\", \"entity2\": \"Neural architectures for named entity recognition\", \"description\": \"Both are neural network-based methodologies, with the former focusing on named entity recognition and the latter on abstractive sentence summarization.\", \"created_at\": \"2025-08-15 15:48:17\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Mamba\", \"entity2\": \"Transformer\", \"description\": \"Mamba differs from Transformer in its approach to accessing hidden states, with Mamba focusing on the immediate previous hidden state and Transformer requiring access to all previous hidden states.Mamba offers a solution to the Transformer's drawback of quadratic time complexity during inference by relying only on the last hidden state, leading to faster inference speeds.Transformer uses attention heads for recall, while Mamba uses SSM heads for context summarization, highlighting different approaches to sequence processing.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Figure 5\", \"entity2\": \"Transformer\", \"description\": \"Figure 5 implicitly shows the Transformer's slower inference speeds by comparison to Mamba.\", \"created_at\": \"2025-08-15 16:21:47\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"MoE layer\", \"entity2\": \"Transformer\", \"description\": \"The MoE layer replaces the Feed-Forward Network (FFN) layer within a Transformer block.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Hymba\", \"entity2\": \"Transformer\", \"description\": \"Hymba integrates attention heads, similar to those in the Transformer, within its layers.\", \"created_at\": \"2025-08-15 16:29:28\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Transformer\", \"entity2\": \"ΔWq\", \"description\": \"ΔWq is obtained from layers within a Transformer network.ΔWq represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:28\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Transformer\", \"entity2\": \"ΔWv\", \"description\": \"ΔWv represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Transformer\", \"entity2\": \"language modeling\", \"description\": \"The Transformer is implied to be relevant to language modeling tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Recurrence\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture dispenses with recurrence.The Transformer dispenses with recurrence, which is a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"BLEU scores\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model's performance is measured by its BLEU scores.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Emergent Modularity phenomenon\", \"entity2\": \"Transformer\", \"description\": \"The Emergent Modularity phenomenon is observed in pre-trained Transformer models.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Convolutions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer dispenses with convolutions, which are a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Feed-Forward Network (FFN) layer\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer that is replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:18:38\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"State Space Models (SSMs)\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's attention mechanism has a drawback of quadratic time complexity, while State Space Models (SSMs) enable faster inference speeds by relying on the last hidden state.\", \"created_at\": \"2025-08-15 16:21:42\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"Transformer\", \"entity2\": \"Vaswani et al.\", \"description\": \"Vaswani et al. are associated with the development or publication of the Transformer architecture.Vaswani et al. are the authors of the Transformer architecture.\", \"created_at\": \"2025-08-13 22:49:38\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder structure\", \"description\": \"\\\"The Transformer generally adopts an encoder-decoder structure.\\\")The Transformer is a transduction model that, unlike most competitive neural sequence transduction models, does not explicitly state it uses an encoder-decoder structure, but rather relies on self-attention.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"English Constituency Parsing\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is being evaluated on the task of English Constituency Parsing to assess its generalization capabilities.\", \"created_at\": \"2025-08-15 14:55:59\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Transformer\", \"entity2\": \"newstest2014\", \"description\": \"The Transformer model is evaluated on the newstest2014 test set for translation tasks.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"Transformer\", \"entity2\": \"images, audio and video\", \"description\": \"\\\"The Transformer is planned to be extended to problems involving input and output modalities other than text, such as images, audio, and video.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"English-to-French\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-French translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"Constant number of operations\", \"entity2\": \"Transformer\", \"description\": \"The Transformer achieves a constant number of operations to learn dependencies between distant positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"Making generation less sequential\", \"entity2\": \"Transformer\", \"description\": \"Making generation less sequential is a planned enhancement for the Transformer model.\", \"created_at\": \"2025-08-15 14:57:21\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Feed-Forward Network (FFN)\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer block that can be replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"SVD\", \"entity2\": \"Transformer\", \"description\": \"The SVD method is applied to matrices (ΔW) derived from a Transformer's layers.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Transformer\", \"entity2\": \"simple-language question answering\", \"description\": \"The Transformer is implied to be relevant to simple-language question answering tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Transformer architecture\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures such as Mamba, Hymba, and xLSTM are proposed to alleviate the inference cost of the Transformer architecture due to its attention mechanism.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequential Computation\", \"description\": \"The inherent characteristic of Recurrent Neural Networks is their sequential computation, where hidden states are generated based on previous states and current input.\", \"created_at\": \"2025-08-15 18:20:09\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"Gated Recurrent Units (GRU)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Gated Recurrent Units (GRU) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:55\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"Long Short-Term Memory (LSTM)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Long Short-Term Memory (LSTM) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"Encoder-Decoder Architectures\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Encoder-Decoder Architectures are mentioned alongside recurrent language models as areas where efforts have pushed boundaries, indicating a close relationship in the context of sequence modeling.\", \"created_at\": \"2025-08-15 18:21:27\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Recurrent Language Models\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Recurrent Language Models are a specific application or type of recurrent neural network whose boundaries have been pushed by research.\", \"created_at\": \"2025-08-15 18:21:11\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 20\\n\\nFor each of these we use $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h \\\\stackrel { } { = } \\\\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \\\"encoder-decoder attention\\\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.3496, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 2.3496, + "start_timestamp": "2025-08-16T09:21:45.684374", + "end_timestamp": "2025-08-16T09:21:48.033986" + }, + "metadata": { + "saved_at": "2025-08-16T09:21:48.034985", + "file_path": "retrieval_logs\\retrieval_20250816_092148_034_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_in_ma.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_092410_155_local_k7_ck4_What_novel_insights_or_techniques_have_emerged_fro.json b/retrieval_logs/retrieval_20250816_092410_155_local_k7_ck4_What_novel_insights_or_techniques_have_emerged_fro.json new file mode 100644 index 0000000000000000000000000000000000000000..03932325bb031205edd5aaad67293411debbbcad --- /dev/null +++ b/retrieval_logs/retrieval_20250816_092410_155_local_k7_ck4_What_novel_insights_or_techniques_have_emerged_fro.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:24:10.155325", + "query": "What novel insights or techniques have emerged from studying variance in transformer attention mechanisms?", + "query_mode": "local", + "top_k": 7, + "chunk_top_k": 4, + "text_length": 14188, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Queries, Keys, and Values\", \"type\": \"abstract\", \"description\": \"Fundamental components of the attention mechanism that are linearly projected multiple times in Multi-Head Attention and are $d _ { \\\\\\\\mathrm { m o d e l } }$-dimensional in a single attention function.\", \"created_at\": \"2025-08-15 18:03:15\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Different Positions\", \"type\": \"abstract\", \"description\": \"Various locations where Multi-Head Attention allows the model to jointly attend to information from different representation subspaces.\", \"created_at\": \"2025-08-15 18:03:30\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"multi-headed self-attention\", \"type\": \"methodology\", \"description\": \"Multi-headed self-attention is a component of the Transformer, replacing recurrent layers in encoder-decoder architectures.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Final Values\", \"type\": \"results\", \"description\": \"The values resulting from the concatenation and subsequent projection of the $d _ { v }$-dimensional output values from the parallel attention functions in Multi-Head Attention.\", \"created_at\": \"2025-08-15 18:03:30\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Representation Subspaces\", \"type\": \"abstract\", \"description\": \"Different areas or dimensions of information that Multi-Head Attention enables the model to jointly attend to.Multi-head attention allows the model to jointly attend to information from different representation subspaces at different positions.\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Figure 2\", \"type\": \"connection\", \"description\": \"A figure referenced in the text that depicts the process of Multi-Head Attention.Figure 2 provides a comprehensive overview of various aspects related to model performance and workflow. It illustrates the prompting results of PaLM-540B in relation to the number of CoT-SC samples utilized, with the x-axis ranging from 0 to 20 trials. The figure visually compares the performance trends of different methods, such as 'CoT-SC' against 'ReAct' and 'CoT', on the HotpotQA dataset (measured by Exact Match, EM) and the Fever dataset (measured by Accuracy, Acc). Two React+CoT-SC methods are shown to outperform CoT-SC across various sample counts, achieving CoT-SC performance with 3-5 samples instead of 21. This visualization aims to demonstrate the impact of CoT-SC samples on the performance of various question-answering methods and to highlight the superior performance and scalability of certain approaches.\\n\\nAdditionally, Figure 2 illustrates the general workflow of MoE (Mixture of Experts) and presents a multifaceted view of model performance and attention mechanisms. Gray lines are used to indicate targets for understanding the calculation of rounds where curves cross target accuracy via linear interpolation, demonstrating a decrease in communication costs as quantified in Table 2, and specifically showing that increasing local SGD updates per round can significantly reduce these costs.\\n\\nFurthermore, Figure 2 visualizes the results of finetuning the 7B LLaMA model on the Alpaca dataset, revealing a non-monotonic relationship between the number of trainable parameters and model performance. This relationship is depicted through scatter plots comparing validation accuracy or RougeL scores against the logarithm of trainable parameters across different adaptation methods on the WikiSQL and MultiNLI-matched datasets, as well as different LLaMA 7B models on the Alpaca dataset, emphasizing the intricate connection between model size and performance in this finetuning context. The figure also depicts the multi-head attention process, including the concatenation and final projection of attention outputs, and is referenced in the context of masking illegal connections within scaled dot-product attention. Finally, Figure 2 presents a performance comparison between global approaches and conventional vector RAG.\", \"created_at\": \"2025-08-13 22:48:43\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Figure 2\", \"entity2\": \"ReAct\", \"description\": \"Figure 2 compares the performance of ReAct with other methods, showing a direct relationship in terms of comparative analysis.\", \"created_at\": \"2025-08-15 15:54:47\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Figure 2\", \"entity2\": \"LLaMA\", \"description\": \"Figure 2 presents results of LLaMA finetuning.\", \"created_at\": \"2025-08-13 23:07:44\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Figure 2\", \"entity2\": \"Multi-Head Attention\", \"description\": \"Figure 2 visually illustrates the process of multi-head attention, including the concatenation and final projection steps.\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Alpaca\", \"entity2\": \"Figure 2\", \"description\": \"The Alpaca dataset is used in the experiments shown in Figure 2.\", \"created_at\": \"2025-08-13 23:08:20\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Figure 2\", \"entity2\": \"GPT-3 175B\", \"description\": \"Figure 2 displays the validation accuracy of GPT-3 175B for several adaptation methods.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Multi-Head Attention processes queries, keys, and values by linearly projecting them multiple times.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"CoT\", \"entity2\": \"Figure 2\", \"description\": \"Figure 2 compares the performance of CoT with other methods, showing a direct relationship in terms of comparative analysis.\", \"created_at\": \"2025-08-15 15:54:58\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Final Values\", \"entity2\": \"Multi-Head Attention\", \"description\": \"The final values are the result of concatenating and projecting the output values from Multi-Head Attention.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Figure 2\", \"entity2\": \"gating function\", \"description\": \"Figure 2 illustrates the general workflow of MoE, which includes the gating function as a key component.\", \"created_at\": \"2025-08-15 15:17:15\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"CoT-SC\", \"entity2\": \"Figure 2\", \"description\": \"Figure 2 illustrates the impact of the number of CoT-SC samples on performance, establishing a direct link between the figure and this methodology.Figure 2 shows that React+CoT-SC methods outperform CoT-SC across different numbers of samples, reaching CoT-SC performance with fewer samples.Figure 2 illustrates the performance of different methods, including CoT-SC, in relation to the number of CoT-SC samples used.\", \"created_at\": \"2025-08-15 17:19:29\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Figure 2\", \"entity2\": \"PaLM-540B\", \"description\": \"Figure 2 presents the prompting results of PaLM-540B, indicating a direct relationship between the figure and the model it analyzes.\", \"created_at\": \"2025-08-15 15:54:41\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Figure 2\", \"entity2\": \"HotpotQA\", \"description\": \"Figure 2 shows performance results on the HotpotQA task, indicating a direct relationship between the figure and the task it evaluates.\", \"created_at\": \"2025-08-15 15:54:51\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Figure 2\", \"entity2\": \"Global approaches\", \"description\": \"Figure 2 visually represents the performance comparison between global approaches and conventional vector RAG.\", \"created_at\": \"2025-08-13 23:35:38\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Figure 2\", \"entity2\": \"LLaMA 7B\", \"description\": \"Figure 2 displays results of experiments using the LLaMA 7B model.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Fever\", \"entity2\": \"Figure 2\", \"description\": \"Figure 2 shows performance results on the Fever task, indicating a direct relationship between the figure and the task it evaluates.\", \"created_at\": \"2025-08-15 15:54:51\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Figure 2\", \"entity2\": \"React+CoT-SC methods\", \"description\": \"Figure 2 shows that React+CoT-SC methods outperform CoT-SC across different numbers of samples.\", \"created_at\": \"2025-08-15 15:58:30\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Figure 2\", \"entity2\": \"PaLM-540B prompting results\", \"description\": \"Figure 2 presents the PaLM-540B prompting results.\", \"created_at\": \"2025-08-15 15:59:42\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Figure 2\", \"entity2\": \"ReAct+CoT-SC Methods\", \"description\": \"Figure 2 provides the data and visualization for comparing the performance of ReAct+CoT-SC methods against CoT-SC with varying sample sizes.\", \"created_at\": \"2025-08-15 17:19:29\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Figure 2\", \"entity2\": \"linear interpolation\", \"description\": \"Figure 2 is referenced to help understand the process of linear interpolation used to calculate the number of rounds where the curve crosses the target accuracy.\", \"created_at\": \"2025-08-15 15:08:11\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Linear Projections\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Linear projections are applied to queries, keys, and values as part of the Multi-Head Attention mechanism.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 21\\n\\nyer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. Similarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \\\\infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. # 3.3 Position-wise Feed-Forward Networks In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 13\\n\\nvers a variety of aspects in MoE, such as different gating functions, different expert models, and different learning scenarios. In Section V, we will present the recent applications of MoE in two major domains, i.e., computer vision and natural language processing, where we look into multiple important subproblems in each domain. Future research directions will be discussed in Section VI, followed by the conclusion in Section VII. # II. BASIC DESIGNS OF MOE In this section, we will focus on the basic framework and design considerations in MoE to help readers understand the general workflow of MoE, as shown in Figure 2. More specifically, we will first introduce the key components in the design of MoE, including the gating function, the expert networks, and the routing mechanism. The first two components essentially form a basic framework of MoE, whereas the last component characterizes how the gating function handles the input data.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: React_paper\\nChunk: 30\\n\\nThe x-axis for both graphs is labeled \\\"#CoT-SC trials\\\" and ranges from 0 to 20, with tick marks at 5, 10, 15, and 20. The overall visual hierarchy emphasizes the performance trends of the different methods across increasing numbers of trials. The graphs serve to visually compare the effectiveness of various prompting strategies, specifically \\\"CoT-SC\\\" in conjunction with other methods like \\\"ReAct\\\" and \\\"CoT,\\\" on two different tasks: HotpotQA (measured by Exact Match, EM) and Fever (measured by Accuracy, Acc). The figure's purpose is to demonstrate how the number of Chain-of-Thought Self-Consistency (CoT-SC) samples impacts the performance of different methods on these question-answering tasks, highlighting the superior performance and scalability of certain methods.](images/171e40ed5124fb8222b6b5c65d5bcb93b3e24ea67229f3bc706a756f0bf4fbb3.jpg)\\nFigure 2: PaLM-540B prompting results with respect to number of CoT-SC samples used.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2305.14314v1\\nChunk: 31\\n\\nry and value attention projection matrices [28], we are not able to replicate full finetuning performance for large base models. As shown in Figure 2 for LLaMA 7B finetuning on Alpaca, we find that the most critical LoRA hyperparameter is how many LoRA adapters are used in total and that LoRA on all linear transformer block layers are required to match full finetuning performance. Other LoRA hyperparameters, such as the projection dimension $r$ [IMAGE] *AI-generated description: This scatter plot displays RougeL scores for different LLaMA 7B models on the Alpaca dataset. The x-axis shows various models including QLoRA-All, QLoRA-FFN, QLoRA-Attention, Alpaca (ours), and Stanford-Alpaca. The y-axis represents the RougeL score, ranging from 60 to 65. Blue dots indicate 4-bit precision, while orange dots indicate 16-bit precision, with each point representing a different random seed.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 9.6701, + "rag_initialization_seconds": 4.3409, + "query_execution_seconds": 5.3293, + "start_timestamp": "2025-08-16T09:24:00.485200", + "end_timestamp": "2025-08-16T09:24:10.155325" + }, + "metadata": { + "saved_at": "2025-08-16T09:24:10.155325", + "file_path": "retrieval_logs\\retrieval_20250816_092410_155_local_k7_ck4_What_novel_insights_or_techniques_have_emerged_fro.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_092410_272_local_k10_ck4_How_do_different_approaches_to_managing_or_account.json b/retrieval_logs/retrieval_20250816_092410_272_local_k10_ck4_How_do_different_approaches_to_managing_or_account.json new file mode 100644 index 0000000000000000000000000000000000000000..c44bc5372627ed618861d0d1d421f086a64da7d6 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_092410_272_local_k10_ck4_How_do_different_approaches_to_managing_or_account.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:24:10.272058", + "query": "How do different approaches to managing or accounting for variance in attention mechanisms compare against each other?", + "query_mode": "local", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 10145, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Mixture-of-attention\", \"type\": \"methodology\", \"description\": \"This is a methodology that employs a mixture of attention mechanisms.\", \"created_at\": \"2025-08-15 15:39:20\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"different heads\", \"type\": \"methodology\", \"description\": \"These are distinct components within the attention mechanism, each potentially focusing on different aspects of the input.\", \"created_at\": \"2025-08-15 15:04:11\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"attention mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are neural network components that can be integrated with MoE architectures.\", \"created_at\": \"2025-08-15 15:43:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"effectiveness and differences\", \"type\": \"results\", \"description\": \"The effectiveness and differences in how various prompting strategies handle complex tasks are demonstrated.\", \"created_at\": \"2025-08-15 15:55:16\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"interference across tasks\", \"type\": \"abstract\", \"description\": \"Interference across tasks can be minimized by diversifying experts in an MoE model.\", \"created_at\": \"2025-08-15 15:33:06\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Queries, Keys, and Values\", \"type\": \"abstract\", \"description\": \"Fundamental components of the attention mechanism that are linearly projected multiple times in Multi-Head Attention and are $d _ { \\\\\\\\mathrm { m o d e l } }$-dimensional in a single attention function.\", \"created_at\": \"2025-08-15 18:03:15\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"inference cost\", \"type\": \"methodology\", \"description\": \"Inference cost is an issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Can active memory replace attention?\", \"type\": \"methodology\", \"description\": \"A methodology discussed in the text, cited from Kaiser and Bengio (2016).\", \"created_at\": \"2025-08-15 14:53:46\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Mixture-of-experts attention\", \"type\": \"methodology\", \"description\": \"This refers to an attention mechanism that utilizes the mixture-of-experts approach.\", \"created_at\": \"2025-08-15 15:39:20\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"A decomposable attention model\", \"type\": \"abstract\", \"description\": \"This is a reference to a work that introduces a decomposable attention model.\", \"created_at\": \"2025-08-15 14:56:55\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Multi-Head Attention processes queries, keys, and values by linearly projecting them multiple times.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Mixture of experts in deep learning\", \"entity2\": \"Mixture-of-experts attention\", \"description\": \"Mixture-of-experts attention is a specific technique applied within the domain of mixture of experts in deep learning.\", \"created_at\": \"2025-08-15 15:39:33\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Mixture of experts in deep learning\", \"entity2\": \"Mixture-of-attention\", \"description\": \"Mixture-of-attention is a related concept or technique that can be applied within the broader framework of mixture of experts in deep learning.\", \"created_at\": \"2025-08-15 15:39:33\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"effectiveness and differences\", \"entity2\": \"prompting methods\", \"description\": \"The figure demonstrates the effectiveness and differences in how prompting methods handle complex tasks.\", \"created_at\": \"2025-08-15 15:55:32\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Mamba 2\", \"entity2\": \"attention mechanisms\", \"description\": \"Mamba 2 develops a theoretical framework linking SSMs with attention mechanisms.\", \"created_at\": \"2025-08-15 16:29:13\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"A decomposable attention model\", \"entity2\": \"Effective approaches to attentionbased neural machine translation\", \"description\": \"\\\"Both entities relate to attention mechanisms in NLP, with the latter being a specific model that likely builds upon or is related to the former's approaches.\\\")Attention models are a key component of modern neural machine translation, suggesting a connection between these two works.\", \"created_at\": \"2025-08-15 14:57:00\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Mixture-of-attention\", \"entity2\": \"Moa: Mixture-of-attention for subject-context disentanglement in personalized image generation\", \"description\": \"Moa is a methodology that utilizes mixture-of-attention for disentangling subject and context in personalized image generation.\", \"created_at\": \"2025-08-15 15:39:27\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Linear Projections\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Linear projections are applied to queries, keys, and values as part of the Multi-Head Attention mechanism.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Mixture-of-experts attention\", \"entity2\": \"Switchhead: Accelerating transformers with mixture-of-experts attention\", \"description\": \"Switchhead is a methodology that specifically implements mixture-of-experts attention to accelerate transformers.\", \"created_at\": \"2025-08-15 15:39:27\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: MOE\\nChunk: 160\\n\\naches often rely on heuristic methods or static setting to decide the number of experts, which may not be optimal for all tasks. Future work should investigate more principled approaches to determining the number of experts, such as using metalearning or reinforcement learning to dynamically adjust the architecture based on task complexity and data distribution. Additionally, novel architecture designs that integrate MoE with other neural network components, such as attention mechanisms or graph neural networks, could lead to more powerful and flexible models. # D. Theory development Improving the interpretability of MoE models remains a critical area for future work. While MoE architectures have demonstrated remarkable scalability and performance, the theoretical underpinnings of their behavior—such as expert routing decisions and clustering mechanisms—are not yet fully understood, especially in modern deep neural networks.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 43\\n\\n[IMAGE]\\nFig. 5. Mamba 1 architecture [117]. In language modeling, Mamba 1 [117] is pre-trained on the Pile dataset [108] using the training recipe from [37] and ranges from 125M to 1.3B parameters. It outperforms comparable models such as Pythia [31] and RWKV [270] in various tasks; for instance, Mamba-1.4B achieves a $3 2 . 8 \\\\%$ accuracy on the Arc-Challenge [65] dataset, surpassing Pythia-1.4B’s $2 8 . 5 \\\\%$ and RWKV-1.5B’s $2 9 . 4 \\\\%$ . Mamba 2 [75] develops a theoretical framework linking SSMs with attention mechanisms through structured semi-separable matrices, enhancing the selective SSM to achieve $2 { - } 8 \\\\mathrm { x }$ faster speeds while competing with Transformer models. Training and configuration for Mamba 2 align with Mamba 1. Additionally, Mamba-series models are applied widely across different fields [160, 280, 281, 463]. Other follow-up Mamba-based language models such as Falcon Mamba 7B [463] and Mistral 7B [160] also demonstrate the efficiency of the architecture for NLP tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: MOE\\nChunk: 117\\n\\neffects, and the probability distribution of the expert model no longer depends on input variables but only on output variables. Under certain regularity conditions, this paper proves that the MeMoE is dense in the sense of weak convergence for any continuous mixed-effects model. In the special case of hierarchical multi-level data, this paper further proves that MeMoE can approximate the complex dependency structures of random effects between different factor levels in multi-level data. [30] investigates how integrating the MoE framework into models can effectively mitigate generalization and forgetting issues in continual learning [271], [272], under the setup of over-parameterized linear regression tasks and a linear gating MoE model. The authors prove that a sufficiently trained MoE model can diversify experts to specialize in different tasks, which minimize the interference across tasks and reduce the forgetting in continual learning.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Attention Is All You Need\\nChunk: 48\\n\\n[13] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. [14] Zhongqiang Huang and Mary Harper. Self-training PCFG grammars with latent annotations across languages. In Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, pages 832–841. ACL, August 2009. [15] Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. [16] Łukasz Kaiser and Samy Bengio. Can active memory replace attention? In Advances in Neural Information Processing Systems, (NIPS), 2016. [17] Łukasz Kaiser and Ilya Sutskever. Neural GPUs learn algorithms. In International Conference on Learning Representations (ICLR), 2016. [18] Nal Kalchbrenner, Lasse Espeholt, Karen Simonyan, Aaron van den Oord, Alex Graves, and Koray Kavukcuoglu. Neural machine translation in linear time. arXiv preprint arXiv:1610.10099v2, 2017.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.6269, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.6269, + "start_timestamp": "2025-08-16T09:24:06.645116", + "end_timestamp": "2025-08-16T09:24:10.272059" + }, + "metadata": { + "saved_at": "2025-08-16T09:24:10.272058", + "file_path": "retrieval_logs\\retrieval_20250816_092410_272_local_k10_ck4_How_do_different_approaches_to_managing_or_account.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_092424_592_hybrid_k10_ck4_Based_on_the_following_QA_about_Transformers_and_v.json b/retrieval_logs/retrieval_20250816_092424_592_hybrid_k10_ck4_Based_on_the_following_QA_about_Transformers_and_v.json new file mode 100644 index 0000000000000000000000000000000000000000..21876c791966a6c23eca35c7cf7ea77432179bdd --- /dev/null +++ b/retrieval_logs/retrieval_20250816_092424_592_hybrid_k10_ck4_Based_on_the_following_QA_about_Transformers_and_v.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:24:24.592511", + "query": "Based on the following Q&A about Transformers and variance in attention mechanisms, provide a comprehensive research summary: [{'category': 'innovation', 'question': 'What novel insights or techniques have emerged from studying variance in transformer attention mechanisms?', 'answer': 'The provided context explains the mechanics of multi-head attention in transformers, including its components and how they process information. It also references figures that visualize model performance in various contexts, such as finetuning and comparing different methods. However, it does not explicitly detail novel insights or techniques that have emerged specifically from studying the variance within these attention mechanisms.'}, {'category': 'comparison', 'question': 'How do different approaches to managing or accounting for variance in attention mechanisms compare against each other?', 'answer': 'The provided context outlines various concepts related to attention mechanisms, including Multi-Head Attention and Mixture-of-Experts, but does not contain information that directly compares different approaches for managing or accounting for variance within attention mechanisms.'}]", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 27779, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Enhancing mixture-of-experts by leveraging attention for fine-grained recognition\", \"type\": \"methodology\", \"description\": \"This methodology focuses on enhancing mixture-of-experts by leveraging attention for fine-grained recognition.\", \"created_at\": \"2025-08-15 15:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Different Positions\", \"type\": \"abstract\", \"description\": \"Various locations where Multi-Head Attention allows the model to jointly attend to information from different representation subspaces.\", \"created_at\": \"2025-08-15 18:03:30\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"multi-head attention\", \"type\": \"methodology\", \"description\": \"Multi-head attention is performed over the output of the encoder stack in the third sub-layer of each decoder layer.Multi-head attention is used in the Transformer model. It involves using $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h$ dimensions for each head, where $h=8$. The total computational cost is similar to single-head attention with full dimensionality due to the reduced dimension of each head.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Multi-task reinforcement learning with attention-based mixture of experts\", \"type\": \"methodology\", \"description\": \"This methodology combines multi-task reinforcement learning with an attention-based mixture of experts.\", \"created_at\": \"2025-08-15 15:41:05\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"encoder-decoder attention\", \"type\": \"methodology\", \"description\": \"This is one of the three ways multi-head attention is used in the Transformer. In these layers, queries originate from the previous decoder layer, while memory keys and values are sourced from the encoder's output. This enables every decoder position to attend to all positions in the input sequence, mirroring attention mechanisms in sequence-to-sequence models like those in references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Multi-task dense prediction via mixture of low-rank experts\", \"type\": \"methodology\", \"description\": \"This methodology addresses multi-task dense prediction using a mixture of low-rank experts.\", \"created_at\": \"2025-08-15 15:38:23\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"sequence-to-sequence models\", \"type\": \"methodology\", \"description\": \"Sequence-to-sequence models are mentioned as examples of models that use typical encoder-decoder attention mechanisms, which the Transformer mimics.\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Queries, Keys, and Values\", \"type\": \"abstract\", \"description\": \"Fundamental components of the attention mechanism that are linearly projected multiple times in Multi-Head Attention and are $d _ { \\\\\\\\mathrm { m o d e l } }$-dimensional in a single attention function.\", \"created_at\": \"2025-08-15 18:03:15\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Abstract\", \"type\": \"abstract\", \"description\": \"Modern mobile devices have access to a wealth of data suitable for learning models, which in turn can greatly improve the user experience on the device. For example, language models can improve speech recognition and text entry, and image models can automatically select good photos. However, this rich data is often privacy sensitive, large in quantity, or both, which may preclude logging to the data center and training there using conventional approaches. We advocate an alternative that leaves the training data distributed on the mobile devices, and learns a shared model by aggregating locally-computed updates. We term this decentralized approach Federated Learning.The abstract describes the dominant sequence transduction models as complex recurrent or convolutional neural networks with an encoder and decoder, often connected by an attention mechanism. It proposes a new, simpler network architecture called the Transformer, which relies solely on attention mechanisms and eliminates recurrence and convolutions.\", \"created_at\": \"2025-08-15 15:02:51\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Switchhead: Accelerating transformers with mixture-of-experts attention\", \"type\": \"methodology\", \"description\": \"This is a specific methodology that uses mixture-of-experts attention to accelerate transformers.\", \"created_at\": \"2025-08-15 15:39:20\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Attention Mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are the core component of the Transformer architecture, replacing recurrence and convolutions.Attention mechanisms are used to connect the encoder and decoder in the best performing sequence transduction models. The proposed Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Beyond distillation: Task-level mixture-of-experts for efficient inference\", \"type\": \"methodology\", \"description\": \"This methodology explores task-level mixture-of-experts for efficient inference, going beyond distillation.\", \"created_at\": \"2025-08-15 15:43:45\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Figure 2\", \"type\": \"connection\", \"description\": \"A figure referenced in the text that depicts the process of Multi-Head Attention.Figure 2 provides a comprehensive overview of various aspects related to model performance and workflow. It illustrates the prompting results of PaLM-540B in relation to the number of CoT-SC samples utilized, with the x-axis ranging from 0 to 20 trials. The figure visually compares the performance trends of different methods, such as 'CoT-SC' against 'ReAct' and 'CoT', on the HotpotQA dataset (measured by Exact Match, EM) and the Fever dataset (measured by Accuracy, Acc). Two React+CoT-SC methods are shown to outperform CoT-SC across various sample counts, achieving CoT-SC performance with 3-5 samples instead of 21. This visualization aims to demonstrate the impact of CoT-SC samples on the performance of various question-answering methods and to highlight the superior performance and scalability of certain approaches.\\n\\nAdditionally, Figure 2 illustrates the general workflow of MoE (Mixture of Experts) and presents a multifaceted view of model performance and attention mechanisms. Gray lines are used to indicate targets for understanding the calculation of rounds where curves cross target accuracy via linear interpolation, demonstrating a decrease in communication costs as quantified in Table 2, and specifically showing that increasing local SGD updates per round can significantly reduce these costs.\\n\\nFurthermore, Figure 2 visualizes the results of finetuning the 7B LLaMA model on the Alpaca dataset, revealing a non-monotonic relationship between the number of trainable parameters and model performance. This relationship is depicted through scatter plots comparing validation accuracy or RougeL scores against the logarithm of trainable parameters across different adaptation methods on the WikiSQL and MultiNLI-matched datasets, as well as different LLaMA 7B models on the Alpaca dataset, emphasizing the intricate connection between model size and performance in this finetuning context. The figure also depicts the multi-head attention process, including the concatenation and final projection of attention outputs, and is referenced in the context of masking illegal connections within scaled dot-product attention. Finally, Figure 2 presents a performance comparison between global approaches and conventional vector RAG.\", \"created_at\": \"2025-08-13 22:48:43\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Peebles and Xie (2023)\", \"type\": \"connection\", \"description\": \"This is a citation for the paper 'Scalable diffusion models with transformers' which is likely relevant to the methodology or discussion, especially given the mention of transformers.\", \"created_at\": \"2025-08-15 15:51:42\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Vaswani et al. (2017)\", \"type\": \"connection\", \"description\": \"This is a citation for the paper 'Attention is all you need' which is likely relevant to the methodology or discussion of the document.\", \"created_at\": \"2025-08-15 15:51:42\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"local, restricted attention mechanisms\", \"type\": \"UNKNOWN\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:19\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Figure 2\", \"entity2\": \"ReAct\", \"description\": \"Figure 2 compares the performance of ReAct with other methods, showing a direct relationship in terms of comparative analysis.\", \"created_at\": \"2025-08-15 15:54:47\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Figure 2\", \"entity2\": \"LoRA\", \"description\": \"Figure 2 shows LoRA's performance on WikiSQL and MultiNLI-matched datasets.Figure 2 shows the performance of LoRA in relation to the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:50:08\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"encoder-decoder attention\", \"entity2\": \"sequence-to-sequence models\", \"description\": \"Encoder-decoder attention in the Transformer mimics the attention mechanisms found in sequence-to-sequence models, citing references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Figure 2\", \"entity2\": \"LLaMA\", \"description\": \"Figure 2 presents results of LLaMA finetuning.\", \"created_at\": \"2025-08-13 23:07:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Abstract\", \"entity2\": \"Attention Mechanisms\", \"description\": \"The abstract mentions attention mechanisms as a key component of both existing models and the proposed Transformer.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Figure 2\", \"entity2\": \"Multi-Head Attention\", \"description\": \"Figure 2 visually illustrates the process of multi-head attention, including the concatenation and final projection steps.\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Alpaca\", \"entity2\": \"Figure 2\", \"description\": \"The Alpaca dataset is used in the experiments shown in Figure 2.\", \"created_at\": \"2025-08-13 23:08:20\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Peebles and Xie (2023)\", \"entity2\": \"Vaswani et al. (2017)\", \"description\": \"\\\"Both papers are likely related as Peebles and Xie (2023) mentions 'transformers', a key component of the 'Attention is all you need' paper by Vaswani et al. (2017). This suggests a methodological connection.\\\")\", \"created_at\": \"2025-08-15 15:51:51\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Figure 2\", \"entity2\": \"GPT-3 175B\", \"description\": \"Figure 2 displays the validation accuracy of GPT-3 175B for several adaptation methods.\", \"created_at\": \"2025-08-13 22:48:54\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Multi-Head Attention processes queries, keys, and values by linearly projecting them multiple times.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"CoT\", \"entity2\": \"Figure 2\", \"description\": \"Figure 2 compares the performance of CoT with other methods, showing a direct relationship in terms of comparative analysis.\", \"created_at\": \"2025-08-15 15:54:58\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Figure 2\", \"entity2\": \"gating function\", \"description\": \"Figure 2 illustrates the general workflow of MoE, which includes the gating function as a key component.\", \"created_at\": \"2025-08-15 15:17:15\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"CoT-SC\", \"entity2\": \"Figure 2\", \"description\": \"Figure 2 illustrates the impact of the number of CoT-SC samples on performance, establishing a direct link between the figure and this methodology.Figure 2 shows that React+CoT-SC methods outperform CoT-SC across different numbers of samples, reaching CoT-SC performance with fewer samples.Figure 2 illustrates the performance of different methods, including CoT-SC, in relation to the number of CoT-SC samples used.\", \"created_at\": \"2025-08-15 17:19:29\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Figure 2\", \"entity2\": \"PaLM-540B\", \"description\": \"Figure 2 presents the prompting results of PaLM-540B, indicating a direct relationship between the figure and the model it analyzes.\", \"created_at\": \"2025-08-15 15:54:41\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Figure 2\", \"entity2\": \"HotpotQA\", \"description\": \"Figure 2 shows performance results on the HotpotQA task, indicating a direct relationship between the figure and the task it evaluates.\", \"created_at\": \"2025-08-15 15:54:51\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Figure 2\", \"entity2\": \"Global approaches\", \"description\": \"Figure 2 visually represents the performance comparison between global approaches and conventional vector RAG.\", \"created_at\": \"2025-08-13 23:35:38\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Figure 2\", \"entity2\": \"LLaMA 7B\", \"description\": \"Figure 2 displays results of experiments using the LLaMA 7B model.\", \"created_at\": \"2025-08-13 23:08:19\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Fever\", \"entity2\": \"Figure 2\", \"description\": \"Figure 2 shows performance results on the Fever task, indicating a direct relationship between the figure and the task it evaluates.\", \"created_at\": \"2025-08-15 15:54:51\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Figure 2\", \"entity2\": \"React+CoT-SC methods\", \"description\": \"Figure 2 shows that React+CoT-SC methods outperform CoT-SC across different numbers of samples.\", \"created_at\": \"2025-08-15 15:58:30\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Figure 2\", \"entity2\": \"PaLM-540B prompting results\", \"description\": \"Figure 2 presents the PaLM-540B prompting results.\", \"created_at\": \"2025-08-15 15:59:42\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Figure 2\", \"entity2\": \"ReAct+CoT-SC Methods\", \"description\": \"Figure 2 provides the data and visualization for comparing the performance of ReAct+CoT-SC methods against CoT-SC with varying sample sizes.\", \"created_at\": \"2025-08-15 17:19:29\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Figure 2\", \"entity2\": \"linear interpolation\", \"description\": \"Figure 2 is referenced to help understand the process of linear interpolation used to calculate the number of rounds where the curve crosses the target accuracy.\", \"created_at\": \"2025-08-15 15:08:11\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Mixture of experts in deep learning\", \"entity2\": \"Switchhead: Accelerating transformers with mixture-of-experts attention\", \"description\": \"Switchhead is a specific application of mixture-of-experts attention within deep learning to accelerate transformers.\", \"created_at\": \"2025-08-15 15:39:32\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Linear Projections\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Linear projections are applied to queries, keys, and values as part of the Multi-Head Attention mechanism.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Mixture-of-experts attention\", \"entity2\": \"Switchhead: Accelerating transformers with mixture-of-experts attention\", \"description\": \"Switchhead is a methodology that specifically implements mixture-of-experts attention to accelerate transformers.\", \"created_at\": \"2025-08-15 15:39:27\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Multi-task reinforcement learning with attention-based mixture of experts\", \"entity2\": \"Multitask mixture of sequential experts for user activity streams\", \"description\": \"Both methodologies involve multi-task learning and mixture of experts, with one incorporating reinforcement learning and attention.\", \"created_at\": \"2025-08-15 15:41:05\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Multi-task dense prediction via mixture of low-rank experts\", \"entity2\": \"Towards foundational models for dynamical system reconstruction: Hierarchical metalearning via mixture of experts\", \"description\": \"Both methodologies employ a mixture of experts, with one targeting dynamical system reconstruction and the other multi-task dense prediction, using low-rank experts.\", \"created_at\": \"2025-08-15 15:38:34\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Beyond distillation: Task-level mixture-of-experts for efficient inference\", \"entity2\": \"mixture-of-experts\", \"description\": \"This methodology utilizes task-level mixture-of-experts for efficient inference, as an alternative to distillation.\", \"created_at\": \"2025-08-15 15:43:46\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 55\\n\\n118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\\\Delta \\\\mathbf { W } = \\\\mathbf { A } \\\\mathbf { B } ^ { \\\\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\\\mathbf { W } _ { \\\\mathrm { f t } } = \\\\mathbf { W } + \\\\alpha \\\\Delta \\\\mathbf { W }$ where $\\\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 21\\n\\nyer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. Similarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \\\\infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. # 3.3 Position-wise Feed-Forward Networks In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Attention Is All You Need\\nChunk: 20\\n\\nFor each of these we use $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h \\\\stackrel { } { = } \\\\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \\\"encoder-decoder attention\\\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.4058, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.4058, + "start_timestamp": "2025-08-16T09:24:21.186208", + "end_timestamp": "2025-08-16T09:24:24.591972" + }, + "metadata": { + "saved_at": "2025-08-16T09:24:24.592511", + "file_path": "retrieval_logs\\retrieval_20250816_092424_592_hybrid_k10_ck4_Based_on_the_following_QA_about_Transformers_and_v.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_093145_522_mix_k3_ck2_What_is_the_primary_problem_that_MoE_models_aim_to.json b/retrieval_logs/retrieval_20250816_093145_522_mix_k3_ck2_What_is_the_primary_problem_that_MoE_models_aim_to.json new file mode 100644 index 0000000000000000000000000000000000000000..dd07368c313fdd9da410e27f75127a5ed5fef8d3 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_093145_522_mix_k3_ck2_What_is_the_primary_problem_that_MoE_models_aim_to.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:31:45.522418", + "query": "What is the primary problem that MoE models aim to solve within the broader field of machine learning?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 9703, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Convergence rate for hierarchical MoE models with generalized linear models as experts\", \"type\": \"results\", \"description\": \"Description not available in text.\", \"created_at\": \"2025-08-15 15:31:45\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"MoE architecture\", \"type\": \"methodology\", \"description\": \"The MoE (Mixture of Experts) architecture is a structural design in machine learning, particularly prominent in large language models, characterized by the use of specialized \\\"expert\\\" networks dynamically selected by a gating function. This specialization allows individual experts to focus on distinct knowledge domains, thereby enhancing the MoE architecture's overall performance, generalization capabilities, and computational efficiency. The MoE architecture excels at handling diverse knowledge within data, leading to improved algorithm designs and finding applications across various machine learning paradigms, including computer vision and natural language processing. Its flexibility and scalability make it suitable for edge deployment and capacity scaling of large models, and it holds potential for developing unified multi-modal large language models.\\n\\nThe MoE architecture alleviates hardware pressure through sparse activation and a divide-and-conquer strategy, reducing computational costs and enhancing model performance, especially in multi-task, low-resource, and complex reasoning scenarios, while also supporting personalized services. It has been utilized in MENTOR for action generations and explored in reinforcement learning domains like multi-agent RL and imitation learning. The MoE architecture is also leveraged to solve integrated training problems for multiple tasks, overcoming inconsistencies in input and output formats, and has been applied in CLIP-MoE to enhance the CLIP model's capabilities. However, it's important to note that the MoE architecture is a framework that can be integrated with different object detectors, but simply adding different detectors does not guarantee improved model performance and can even have adverse effects due to competition among detectors. Discussions surrounding the MoE architecture often delve into its basic designs, training strategies, synergy with machine learning algorithms, recent theoretical advancements, and how factors like the number of expert networks, MoE layers, and their placement influence performance, efficiency, and stability. The MoE architecture inherently possesses better transparency.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed. However, it incurs significant memory overhead, making it impractical for edge device memory constraints.\", \"created_at\": \"2025-08-15 16:46:35\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"convergence rate\", \"type\": \"results\", \"description\": \"Convergence rates are established for density estimation and parameter estimation in MoE models for classification problems.\", \"created_at\": \"2025-08-15 15:29:53\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"synergy with important machine learning algorithms\", \"type\": \"connection\", \"description\": \"This refers to the harmonious interaction and combined effect of the MoE architecture with significant machine learning algorithms.\", \"created_at\": \"2025-08-15 15:38:50\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"sparse mixture of lora experts\", \"type\": \"methodology\", \"description\": \"This is a specific implementation of MoE that uses sparse activation of LoRA (Low-Rank Adaptation) experts.\", \"created_at\": \"2025-08-15 15:45:45\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Mixtures of experts for scaling up neural networks in order execution\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by K. Li, M. Cucuringu, L. Sanchez-Betancourt, and T. Willi, and was presented at the 5th ACM International Conference on AI in Finance in 2024.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Movement primitive learning and generalization: Using mixture density networks\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by Y. Zhou, J. Gao, and T. Asfour, and was published in IEEE Robotics & Automation Magazine in 2020.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"MoE architectures\", \"type\": \"methodology\", \"description\": \"MoE (Mixture of Experts) architectures are designed to enhance parameter efficiency and manage computational costs effectively. They offer potential improvements in model interpretability by learning intrinsic allocation mechanisms. These architectures possess a sparse nature, necessitating dynamic data allocation, which makes pipeline design a critical factor in their training. While MoE architectures have shown impressive scalability and performance, their theoretical foundations are not yet fully understood. Further research is needed to optimize the design of MoE architectures, particularly in determining the optimal number of experts and their specialization, as current methods often rely on heuristic or static settings that may not be universally optimal for all tasks.MoE architectures are a type of architecture that EdgeMoE aims to improve by reducing latency caused by frequent expert switching in limited device memory.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"intrinsic allocation mechanisms\", \"type\": \"methodology\", \"description\": \"Intrinsic allocation mechanisms are learned by MoE models, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"MoE\", \"entity2\": \"convergence rate\", \"description\": \"\\\"The convergence rate is a key aspect being investigated for MoE models, particularly in classification problems.\\\")\", \"created_at\": \"2025-08-15 15:29:58\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"MoE architecture\", \"entity2\": \"synergy with important machine learning algorithms\", \"description\": \"The survey highlights the synergy between the MoE architecture and important machine learning algorithms.\", \"created_at\": \"2025-08-15 15:39:11\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Convergence rate for hierarchical MoE models with generalized linear models as experts\", \"entity2\": \"Hierarchical MoE models with generalized linear models as experts\", \"description\": \"The convergence rate for hierarchical MoE models with generalized linear models as experts is characterized in [142].\", \"created_at\": \"2025-08-15 15:31:46\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Mixtures of experts for scaling up neural networks in order execution\", \"entity2\": \"Movement primitive learning and generalization: Using mixture density networks\", \"description\": \"Both methodologies utilize mixture-based approaches for learning and generalization in AI/robotics.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"MoE architectures\", \"entity2\": \"intrinsic allocation mechanisms\", \"description\": \"MoE architectures learn intrinsic allocation mechanisms.\", \"created_at\": \"2025-08-15 15:19:39\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: MOE\\nChunk: 10\\n\\nhances our understanding of the model behaviors but also opens new avenues for designing more robust and transparent AI systems. Given the rapidly growing research interests in MoE and the huge potentials of MoE in various application domains, there is an urgent need of a comprehensive survey for summarizing and disseminating the recent advances of MoE, in order to elicit escalating attentions and inspire further research ideas in this field. Nevertheless, the early surveys of MoE [203], [204] were published ten years ago and have not incorporated the new development in the area. There is only one new survey [205] that emerged last year, which however 1) emphasized more on the basic designs of MoE and 2) did not provide a broad discussion on the use of MoEs in important machine learning paradigms and application fields such as computer vision. The theory development in MoE has also not been covered.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 37\\n\\nFollowing instruction tuning, Uni-MoE is evaluated on a comprehensive and diverse multi-modal dataset. The results indicate that the model significantly reduces performance discrepancies when processing mixed data, improves collaboration efficiency among multiple experts, and enhances generalization capabilities, highlighting the potential of the MoE architecture in developing a unified multi-modal large language model. 3) Task-Level Routing Strategy determines routing based on task IDs, ensuring that different tasks are routed to distinct experts, thereby effectively minimizing interference between tasks. This approach is particularly advantageous for multitask learning. For instance, [44] explores multilingual machine translation tasks, where task boundaries are defined by target languages, language pairs, or unique task IDs. And the experts are selected at the task level according to these boundaries.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 15.8047, + "rag_initialization_seconds": 4.2884, + "query_execution_seconds": 11.5163, + "start_timestamp": "2025-08-16T09:31:29.717232", + "end_timestamp": "2025-08-16T09:31:45.521898" + }, + "metadata": { + "saved_at": "2025-08-16T09:31:45.522418", + "file_path": "retrieval_logs\\retrieval_20250816_093145_522_mix_k3_ck2_What_is_the_primary_problem_that_MoE_models_aim_to.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_093145_675_mix_k10_ck4_What_common_benchmarks_and_evaluation_metrics_are_.json b/retrieval_logs/retrieval_20250816_093145_675_mix_k10_ck4_What_common_benchmarks_and_evaluation_metrics_are_.json new file mode 100644 index 0000000000000000000000000000000000000000..93f4b6ac3367bfebbd80a70bcec61d3d84be6e3d --- /dev/null +++ b/retrieval_logs/retrieval_20250816_093145_675_mix_k10_ck4_What_common_benchmarks_and_evaluation_metrics_are_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:31:45.675665", + "query": "What common benchmarks and evaluation metrics are typically used to assess the performance of MoE models?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 24706, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"On expert estimation in hierarchical mixture of experts: Beyond softmax gating functions\", \"type\": \"methodology\", \"description\": \"This refers to a methodology focused on expert estimation in hierarchical mixture of experts, exploring alternatives to softmax gating functions.\", \"created_at\": \"2025-08-15 15:46:48\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"MoE-based model\", \"type\": \"methodology\", \"description\": \"The MoE-based model can provide benefits for semantic segmentation tasks, alleviating hardware pressure through sparse activation and a divide-and-conquer strategy, and achieving excellent performance in tasks requiring model stability and generalization.\", \"created_at\": \"2025-08-15 15:30:45\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Beyond distillation: Task-level mixture-of-experts for efficient inference\", \"type\": \"methodology\", \"description\": \"This methodology explores task-level mixture-of-experts for efficient inference, going beyond distillation.\", \"created_at\": \"2025-08-15 15:43:45\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"model performance\", \"type\": \"abstract\", \"description\": \"Model performance can be improved by using Mixture-of-Experts (MoE) models, with MoA achieving superior performance and reduced computational overhead. MoE models can maintain or even improve model performance, as demonstrated by the GLaM MoE architecture. Specifically, applying MoE to language modeling and machine translation tasks has shown significant improvements in model performance on large datasets. Furthermore, model performance can be enhanced by dynamically selecting the most suitable expert network for a given task without a substantial increase in parameters, while also exploring the interpretability of Convolutional Neural Networks (CNNs) in computer vision tasks. However, integrating different object detectors with the MoE architecture without proper calibration can negatively impact model performance due to unfair competition.Model performance in NLG tasks can be enhanced by specially designed MoE architectures.\", \"created_at\": \"2025-08-15 15:43:09\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Mixture of experts models for multilevel data: Modelling framework and approximation theory\", \"type\": \"abstract\", \"description\": \"This describes a modelling framework and approximation theory for mixture of experts models applied to multilevel data.\", \"created_at\": \"2025-08-15 15:50:42\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"MoE architectures\", \"type\": \"methodology\", \"description\": \"MoE (Mixture of Experts) architectures are designed to enhance parameter efficiency and manage computational costs effectively. They offer potential improvements in model interpretability by learning intrinsic allocation mechanisms. These architectures possess a sparse nature, necessitating dynamic data allocation, which makes pipeline design a critical factor in their training. While MoE architectures have shown impressive scalability and performance, their theoretical foundations are not yet fully understood. Further research is needed to optimize the design of MoE architectures, particularly in determining the optimal number of experts and their specialization, as current methods often rely on heuristic or static settings that may not be universally optimal for all tasks.MoE architectures are a type of architecture that EdgeMoE aims to improve by reducing latency caused by frequent expert switching in limited device memory.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"J. Yao, Q. Anthony, A. Shafi, H. Subramoni, and D. K. D. Panda\", \"type\": \"author\", \"description\": \"Authors of a paper on exploiting inter-layer expert affinity for accelerating mixture-of-experts model inference.\", \"created_at\": \"2025-08-15 15:45:26\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"parameter efficiency\", \"type\": \"abstract\", \"description\": \"Higher parameter efficiency is achieved by MoE architectures.Parameter efficiency is a goal to achieve higher parameter efficiency and effectively control computational costs.Parameter efficiency is a goal to achieve higher parameter efficiency and effectively control computational costs.\", \"created_at\": \"2025-08-15 17:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Mixture of experts in image classification: Whats the sweet spot?\", \"type\": \"abstract\", \"description\": \"This work investigates the optimal configuration or 'sweet spot' for mixture of experts in the context of image classification.\", \"created_at\": \"2025-08-15 15:50:42\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"MoE\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning methodology and model design that enhances performance, generalization ability, and computational efficiency, particularly for complex and diverse tasks. MoE operates on a \\\"divide and conquer\\\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This framework allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. MoE leverages specialized \\\"experts\\\" for different tasks or data types, providing a scalable and flexible framework for tackling complex, multifaceted datasets and handling diverse knowledge domains without proportionally increasing computational costs. Expert networks can operate independently and are often integrated into a single network model by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers or CNN layers, with MoE layers, demonstrating high flexibility and broad applicability. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible Natural Language Generation (NLG) systems. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. MoE can alleviate problems in High-Value Content Learning (HVCL) such as known task boundaries and increased computation cost by leveraging multiple experts. MoE is also introduced into the decoder to address the issue of static feature decoding in different task decoders due to shared decoding parameters, which leads to insufficient distinction in task-specific features. MoE decomposes backbone features into task-agnostic features from different aspects, making the decoding process of task-specific features more fine-grained. MoE introduces shared expert modules, domain expert modules, and task expert modules, which learn cross-domain and cross-task common knowledge, domain-specific user preferences, and task-specific user preferences, respectively. This enables models to capture user preferences from multiple perspectives and handle complex dependencies between domains and tasks, allowing for flexible model expansion and handling dependencies between different tasks, making it suitable for visual multi-task models. MoE can be combined with various types of tokens to achieve better learning performance and has been applied in computer vision and natural language processing, showing significant potential, especially in large language models (LLMs). It also enhances the understanding of model behaviors. MoE is an advanced technique that enhances LLM performance andMoE is a technique that enhances LLM performance.\", \"created_at\": \"2025-08-15 16:36:35\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"An alternative model for mixtures of experts\", \"type\": \"methodology\", \"description\": \"This methodology is presented in Advances in neural information processing systems, vol. 7, 1994.\", \"created_at\": \"2025-08-15 15:37:58\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"MoE-LPR\", \"type\": \"methodology\", \"description\": \"MoE-LPR designs a two-phase training strategy for MoE-based models. The first phase converts the original model into an MoE architecture with new expert modules to improve capability for new languages without original data. The second phase uses a small amount of original language data for review and a language prior routing mechanism to restore and maintain original language performance.MoE-LPR employs a language prior routing mechanism to restore and maintain the performance of the original language. It demonstrates excellent scalability and stability.MoE-LPR provides a new perspective for multilingual natural language understanding tasks.\", \"created_at\": \"2025-08-15 15:41:13\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Revisiting single-gated mixtures of experts\", \"type\": \"abstract\", \"description\": \"This paper re-examines and provides new insights into single-gated mixture of experts architectures.\", \"created_at\": \"2025-08-15 15:50:42\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"MEC\", \"type\": \"methodology\", \"description\": \"MEC refers to traditional offloading strategies that are outperformed by the MoE model in terms of controlling generalization error.\", \"created_at\": \"2025-08-15 15:36:25\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"J. Liu, P. Tang, W. Wang, Y. Ren, X. Hou, P.-A. Heng, M. Guo, and C. Li\", \"type\": \"author\", \"description\": \"Authors of the paper 'A survey on inference optimization techniques for mixture of experts models'.\", \"created_at\": \"2025-08-15 15:50:53\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"MoEs in deep learning\", \"type\": \"abstract\", \"description\": \"This research aims to understand the behaviors of Mixture-of-Experts (MoEs) in deep learning, addressing a gap in existing knowledge.\", \"created_at\": \"2025-08-15 15:34:12\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"H. Nguyen, X. Han, C. W. Harris, S. Saria, and N. Ho\", \"type\": \"author\", \"description\": \"Authors of the arXiv preprint 'On expert estimation in hierarchical mixture of experts: Beyond softmax gating functions'.\", \"created_at\": \"2025-08-15 15:46:47\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"linear MoE model\", \"type\": \"results\", \"description\": \"A linear MoE model performed slightly better than a single-expert model but was still outperformed by a nonlinear MoE model.\", \"created_at\": \"2025-08-15 15:34:12\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Exploiting inter-layer expert affinity for accelerating mixture-of-experts model inference\", \"type\": \"methodology\", \"description\": \"This methodology aims to accelerate mixture-of-experts model inference by exploiting inter-layer expert affinity.\", \"created_at\": \"2025-08-15 15:45:26\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"nonlinear MoE model\", \"type\": \"results\", \"description\": \"A nonlinear MoE model achieved better performance than a linear MoE model.\", \"created_at\": \"2025-08-15 15:34:13\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"single-expert model\", \"type\": \"results\", \"description\": \"A single-expert model with a two-layer CNN achieved an accuracy of no more than 87.5% on the specific dataset.\", \"created_at\": \"2025-08-15 15:34:13\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"convergence rate\", \"type\": \"results\", \"description\": \"Convergence rates are established for density estimation and parameter estimation in MoE models for classification problems.\", \"created_at\": \"2025-08-15 15:29:48\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"MoE architecture\", \"type\": \"methodology\", \"description\": \"The MoE (Mixture of Experts) architecture is a structural design in machine learning, particularly prominent in large language models, characterized by the use of specialized \\\"expert\\\" networks dynamically selected by a gating function. This specialization allows individual experts to focus on distinct knowledge domains, thereby enhancing the MoE architecture's overall performance, generalization capabilities, and computational efficiency. The MoE architecture excels at handling diverse knowledge within data, leading to improved algorithm designs and finding applications across various machine learning paradigms, including computer vision and natural language processing. Its flexibility and scalability make it suitable for edge deployment and capacity scaling of large models, and it holds potential for developing unified multi-modal large language models.\\n\\nThe MoE architecture alleviates hardware pressure through sparse activation and a divide-and-conquer strategy, reducing computational costs and enhancing model performance, especially in multi-task, low-resource, and complex reasoning scenarios, while also supporting personalized services. It has been utilized in MENTOR for action generations and explored in reinforcement learning domains like multi-agent RL and imitation learning. The MoE architecture is also leveraged to solve integrated training problems for multiple tasks, overcoming inconsistencies in input and output formats, and has been applied in CLIP-MoE to enhance the CLIP model's capabilities. However, it's important to note that the MoE architecture is a framework that can be integrated with different object detectors, but simply adding different detectors does not guarantee improved model performance and can even have adverse effects due to competition among detectors. Discussions surrounding the MoE architecture often delve into its basic designs, training strategies, synergy with machine learning algorithms, recent theoretical advancements, and how factors like the number of expert networks, MoE layers, and their placement influence performance, efficiency, and stability. The MoE architecture inherently possesses better transparency.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed. However, it incurs significant memory overhead, making it impractical for edge device memory constraints.\", \"created_at\": \"2025-08-15 16:46:35\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"algorithm designs\", \"type\": \"methodology\", \"description\": \"Algorithm designs are being improved by applying the MoE architecture.\", \"created_at\": \"2025-08-15 15:20:29\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity\": \"MOE\", \"type\": \"organization\", \"description\": \"MOE is the source of the provided text chunk.MOE, or Mixture-of-Experts, is a machine learning methodology that utilizes multiple expert models, frequently activated sparsely. This architecture offers advantages in scaling model capacity. However, MOE can encounter overfitting problems when applied to small datasets. MOE is also identified as the source of the provided text chunk.This is the source of the provided text, likely referring to Mixture-of-Experts.\", \"created_at\": \"2025-08-15 15:48:53\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity\": \"overfitting problem\", \"type\": \"discussion\", \"description\": \"The overfitting problem is encountered when using MOE on small datasets.\", \"created_at\": \"2025-08-15 15:30:37\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"An alternative model for mixtures of experts\", \"entity2\": \"Mixtral of experts\", \"description\": \"Both entities discuss models for mixtures of experts, indicating a shared research area.\", \"created_at\": \"2025-08-15 15:38:09\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"MoE-based model\", \"entity2\": \"model performance\", \"description\": \"Dynamically selecting the most suitable expert network for the current task improves model performance without significantly increasing the number of parameters.\", \"created_at\": \"2025-08-15 15:31:00\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"DeepME: Deep mixture experts for large-scale image classification\", \"entity2\": \"On expert estimation in hierarchical mixture of experts: Beyond softmax gating functions\", \"description\": \"Both methodologies are related to mixture of experts (MOE) and expert estimation, with the latter exploring beyond standard gating functions.\", \"created_at\": \"2025-08-15 15:46:48\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"MoE architectures\", \"entity2\": \"parameter efficiency\", \"description\": \"MoE architectures achieve higher parameter efficiency.\", \"created_at\": \"2025-08-15 15:19:41\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Beyond distillation: Task-level mixture-of-experts for efficient inference\", \"entity2\": \"mixture-of-experts\", \"description\": \"This methodology utilizes task-level mixture-of-experts for efficient inference, as an alternative to distillation.\", \"created_at\": \"2025-08-15 15:43:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"MoE\", \"entity2\": \"MoE-LPR\", \"description\": \"MoE-LPR designs a training strategy for MoE-based models.\", \"created_at\": \"2025-08-15 15:41:30\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"A general theory for softmax gating multinomial logistic mixture of experts\", \"entity2\": \"Mixture of experts models for multilevel data: Modelling framework and approximation theory\", \"description\": \"Both entities are related to mixture of experts (MoE) models, with the first focusing on a specific gating mechanism and the second on multilevel data applications.\", \"created_at\": \"2025-08-15 15:50:43\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"MEC\", \"entity2\": \"MoE\", \"description\": \"The MoE model significantly outperforms traditional MEC offloading strategies in controlling the overall generalization error.\", \"created_at\": \"2025-08-15 15:36:26\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"A general theory for softmax gating multinomial logistic mixture of experts\", \"entity2\": \"Mixture of experts in image classification: Whats the sweet spot?\", \"description\": \"Both entities discuss mixture of experts (MoE) models, with the first providing a general theory and the second exploring their application in image classification.\", \"created_at\": \"2025-08-15 15:50:43\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"MoEs in deep learning\", \"entity2\": \"linear MoE model\", \"description\": \"The research compares the performance of linear MoE models within the context of MoEs in deep learning.\", \"created_at\": \"2025-08-15 15:34:15\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Exploiting inter-layer expert affinity for accelerating mixture-of-experts model inference\", \"entity2\": \"J. Yao, Q. Anthony, A. Shafi, H. Subramoni, and D. K. D. Panda\", \"description\": \"These authors are associated with the development and publication of a method to accelerate MoE inference by exploiting inter-layer expert affinity.\", \"created_at\": \"2025-08-15 15:45:27\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"MoEs in deep learning\", \"entity2\": \"nonlinear MoE model\", \"description\": \"The research compares the performance of nonlinear MoE models within the context of MoEs in deep learning.\", \"created_at\": \"2025-08-15 15:34:16\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"MoEs in deep learning\", \"entity2\": \"single-expert model\", \"description\": \"The research investigates the performance of single-expert models within the context of MoEs in deep learning.\", \"created_at\": \"2025-08-15 15:34:15\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"MoE\", \"entity2\": \"convergence rate\", \"description\": \"\\\"The convergence rate is a key aspect being investigated for MoE models, particularly in classification problems.\\\")\", \"created_at\": \"2025-08-15 15:29:58\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"MoE architecture\", \"entity2\": \"algorithm designs\", \"description\": \"The MoE architecture leads to improved algorithm designs.\", \"created_at\": \"2025-08-15 15:20:29\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"MOE\", \"entity2\": \"overfitting problem\", \"description\": \"MOE encounters the overfitting problem when used on small datasets.\", \"created_at\": \"2025-08-15 15:30:50\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: MOE\\nChunk: 109\\n\\nis section, we will delve into these studies, aiming to provide the readers a basic idea of the theory development in this area. Most of the theory development for MoE so far mainly focus on simple models. Early studies in this area seek to understand the approximation capacity of MoE models. For instance, [141] investigates the convergence rate for hierarchical MoE models where the experts are exponential family regression models. [142] characterizes the convergence rate for hierarchical MoE models with generalized linear models as the experts. [143] provides the error bounds for functional approximation using MoE models and shows the convergence to any sufficiently differentiable target function in the Sobolev space. [144] provides an alternative result of this through a universal approximation theorem for MoE models with softmax gating functions and linear experts, without imposing assumptions on the differentiability of the target function.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 37\\n\\nFollowing instruction tuning, Uni-MoE is evaluated on a comprehensive and diverse multi-modal dataset. The results indicate that the model significantly reduces performance discrepancies when processing mixed data, improves collaboration efficiency among multiple experts, and enhances generalization capabilities, highlighting the potential of the MoE architecture in developing a unified multi-modal large language model. 3) Task-Level Routing Strategy determines routing based on task IDs, ensuring that different tasks are routed to distinct experts, thereby effectively minimizing interference between tasks. This approach is particularly advantageous for multitask learning. For instance, [44] explores multilingual machine translation tasks, where task boundaries are defined by target languages, language pairs, or unique task IDs. And the experts are selected at the task level according to these boundaries.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: MOE\\nChunk: 49\\n\\nuce new system challenges such as increased synchronization overhead, hampering the efficiency and stability of model execution. In this section, we outline some common methods currently available to enhance the system designs for MoE from three dimensions: computation, communication, and memory. 1) Computation. In the application of MoE models, due to their inherent dynamic characteristics, there may be significant disparities in the number of tasks processed by different experts, making the issue of non-uniform workload distribution particularly pronounced. Particularly, in large-scale distributed system environments, standard MoE architectures require synchronization among expert operations [49], i.e., all experts must complete their current tasks before moving on to the next computation step. However, some experts may finish work earlier due to smaller assigned task volumes, leading to idle timeslots and wasted computational resources.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: MOE\\nChunk: 151\\n\\noves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. (b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 7.1512, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 7.1512, + "start_timestamp": "2025-08-16T09:31:38.524507", + "end_timestamp": "2025-08-16T09:31:45.675665" + }, + "metadata": { + "saved_at": "2025-08-16T09:31:45.675665", + "file_path": "retrieval_logs\\retrieval_20250816_093145_675_mix_k10_ck4_What_common_benchmarks_and_evaluation_metrics_are_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_093145_814_mix_k5_ck2_What_are_the_most_significant_performance_improvem.json b/retrieval_logs/retrieval_20250816_093145_814_mix_k5_ck2_What_are_the_most_significant_performance_improvem.json new file mode 100644 index 0000000000000000000000000000000000000000..b767a73b8a7a533ae719e9e39c21ee335ea1d5fc --- /dev/null +++ b/retrieval_logs/retrieval_20250816_093145_814_mix_k5_ck2_What_are_the_most_significant_performance_improvem.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:31:45.814515", + "query": "What are the most significant performance improvements or findings reported in research concerning MoE models?", + "query_mode": "mix", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 15655, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Exploiting inter-layer expert affinity for accelerating mixture-of-experts model inference\", \"type\": \"methodology\", \"description\": \"This methodology aims to accelerate mixture-of-experts model inference by exploiting inter-layer expert affinity.\", \"created_at\": \"2025-08-15 15:45:26\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"MoE-based model\", \"type\": \"methodology\", \"description\": \"The MoE-based model can provide benefits for semantic segmentation tasks, alleviating hardware pressure through sparse activation and a divide-and-conquer strategy, and achieving excellent performance in tasks requiring model stability and generalization.\", \"created_at\": \"2025-08-15 15:30:45\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Revisiting single-gated mixtures of experts\", \"type\": \"abstract\", \"description\": \"This paper re-examines and provides new insights into single-gated mixture of experts architectures.\", \"created_at\": \"2025-08-15 15:50:42\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"model performance\", \"type\": \"abstract\", \"description\": \"Model performance can be improved by using Mixture-of-Experts (MoE) models, with MoA achieving superior performance and reduced computational overhead. MoE models can maintain or even improve model performance, as demonstrated by the GLaM MoE architecture. Specifically, applying MoE to language modeling and machine translation tasks has shown significant improvements in model performance on large datasets. Furthermore, model performance can be enhanced by dynamically selecting the most suitable expert network for a given task without a substantial increase in parameters, while also exploring the interpretability of Convolutional Neural Networks (CNNs) in computer vision tasks. However, integrating different object detectors with the MoE architecture without proper calibration can negatively impact model performance due to unfair competition.Model performance in NLG tasks can be enhanced by specially designed MoE architectures.\", \"created_at\": \"2025-08-15 15:43:09\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"On the representation collapse of sparse mixture of experts\", \"type\": \"methodology\", \"description\": \"This methodology is discussed in Advances in Neural Information Processing Systems, vol. 35, pp. 34600–34613, 2022.\", \"created_at\": \"2025-08-15 15:37:58\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"MoE\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning methodology and model design that enhances performance, generalization ability, and computational efficiency, particularly for complex and diverse tasks. MoE operates on a \\\"divide and conquer\\\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This framework allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. MoE leverages specialized \\\"experts\\\" for different tasks or data types, providing a scalable and flexible framework for tackling complex, multifaceted datasets and handling diverse knowledge domains without proportionally increasing computational costs. Expert networks can operate independently and are often integrated into a single network model by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers or CNN layers, with MoE layers, demonstrating high flexibility and broad applicability. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible Natural Language Generation (NLG) systems. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. MoE can alleviate problems in High-Value Content Learning (HVCL) such as known task boundaries and increased computation cost by leveraging multiple experts. MoE is also introduced into the decoder to address the issue of static feature decoding in different task decoders due to shared decoding parameters, which leads to insufficient distinction in task-specific features. MoE decomposes backbone features into task-agnostic features from different aspects, making the decoding process of task-specific features more fine-grained. MoE introduces shared expert modules, domain expert modules, and task expert modules, which learn cross-domain and cross-task common knowledge, domain-specific user preferences, and task-specific user preferences, respectively. This enables models to capture user preferences from multiple perspectives and handle complex dependencies between domains and tasks, allowing for flexible model expansion and handling dependencies between different tasks, making it suitable for visual multi-task models. MoE can be combined with various types of tokens to achieve better learning performance and has been applied in computer vision and natural language processing, showing significant potential, especially in large language models (LLMs). It also enhances the understanding of model behaviors. MoE is an advanced technique that enhances LLM performance andMoE is a technique that enhances LLM performance.\", \"created_at\": \"2025-08-15 16:36:35\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"On expert estimation in hierarchical mixture of experts: Beyond softmax gating functions\", \"type\": \"methodology\", \"description\": \"This refers to a methodology focused on expert estimation in hierarchical mixture of experts, exploring alternatives to softmax gating functions.\", \"created_at\": \"2025-08-15 15:46:48\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"MoE-LPR\", \"type\": \"methodology\", \"description\": \"MoE-LPR designs a two-phase training strategy for MoE-based models. The first phase converts the original model into an MoE architecture with new expert modules to improve capability for new languages without original data. The second phase uses a small amount of original language data for review and a language prior routing mechanism to restore and maintain original language performance.MoE-LPR employs a language prior routing mechanism to restore and maintain the performance of the original language. It demonstrates excellent scalability and stability.MoE-LPR provides a new perspective for multilingual natural language understanding tasks.\", \"created_at\": \"2025-08-15 15:41:13\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Beyond distillation: Task-level mixture-of-experts for efficient inference\", \"type\": \"methodology\", \"description\": \"This methodology explores task-level mixture-of-experts for efficient inference, going beyond distillation.\", \"created_at\": \"2025-08-15 15:43:45\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"MoE technology\", \"type\": \"methodology\", \"description\": \"MoE technology uses conditional computation to dynamically allocate tasks and select suitable experts based on input content, improving translation accuracy, fluency, and handling of complex scenarios involving multiple languages and domains.\", \"created_at\": \"2025-08-15 15:40:43\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"translation accuracy\", \"type\": \"results\", \"description\": \"Translation accuracy is improved by MoE technology.\", \"created_at\": \"2025-08-15 15:40:43\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"fluency\", \"type\": \"results\", \"description\": \"Fluency is improved by MoE technology.\", \"created_at\": \"2025-08-15 15:40:44\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"MoE architecture\", \"type\": \"methodology\", \"description\": \"The MoE (Mixture of Experts) architecture is a structural design in machine learning, particularly prominent in large language models, characterized by the use of specialized \\\"expert\\\" networks dynamically selected by a gating function. This specialization allows individual experts to focus on distinct knowledge domains, thereby enhancing the MoE architecture's overall performance, generalization capabilities, and computational efficiency. The MoE architecture excels at handling diverse knowledge within data, leading to improved algorithm designs and finding applications across various machine learning paradigms, including computer vision and natural language processing. Its flexibility and scalability make it suitable for edge deployment and capacity scaling of large models, and it holds potential for developing unified multi-modal large language models.\\n\\nThe MoE architecture alleviates hardware pressure through sparse activation and a divide-and-conquer strategy, reducing computational costs and enhancing model performance, especially in multi-task, low-resource, and complex reasoning scenarios, while also supporting personalized services. It has been utilized in MENTOR for action generations and explored in reinforcement learning domains like multi-agent RL and imitation learning. The MoE architecture is also leveraged to solve integrated training problems for multiple tasks, overcoming inconsistencies in input and output formats, and has been applied in CLIP-MoE to enhance the CLIP model's capabilities. However, it's important to note that the MoE architecture is a framework that can be integrated with different object detectors, but simply adding different detectors does not guarantee improved model performance and can even have adverse effects due to competition among detectors. Discussions surrounding the MoE architecture often delve into its basic designs, training strategies, synergy with machine learning algorithms, recent theoretical advancements, and how factors like the number of expert networks, MoE layers, and their placement influence performance, efficiency, and stability. The MoE architecture inherently possesses better transparency.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed.The MoE architecture boosts performance while minimizing computational costs by activating only portions of the LLM as needed. However, it incurs significant memory overhead, making it impractical for edge device memory constraints.\", \"created_at\": \"2025-08-15 16:46:35\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"algorithm designs\", \"type\": \"methodology\", \"description\": \"Algorithm designs are being improved by applying the MoE architecture.\", \"created_at\": \"2025-08-15 15:20:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Mixtral of experts\", \"entity2\": \"On the representation collapse of sparse mixture of experts\", \"description\": \"Both entities relate to sparse mixture of experts, with one being a specific model and the other discussing a potential issue within such models.\", \"created_at\": \"2025-08-15 15:38:08\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"MoE-based model\", \"entity2\": \"model performance\", \"description\": \"Dynamically selecting the most suitable expert network for the current task improves model performance without significantly increasing the number of parameters.\", \"created_at\": \"2025-08-15 15:31:00\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"DeepME: Deep mixture experts for large-scale image classification\", \"entity2\": \"On expert estimation in hierarchical mixture of experts: Beyond softmax gating functions\", \"description\": \"Both methodologies are related to mixture of experts (MOE) and expert estimation, with the latter exploring beyond standard gating functions.\", \"created_at\": \"2025-08-15 15:46:48\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"MoE\", \"entity2\": \"MoE-LPR\", \"description\": \"MoE-LPR designs a training strategy for MoE-based models.\", \"created_at\": \"2025-08-15 15:41:30\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Beyond distillation: Task-level mixture-of-experts for efficient inference\", \"entity2\": \"mixture-of-experts\", \"description\": \"This methodology utilizes task-level mixture-of-experts for efficient inference, as an alternative to distillation.\", \"created_at\": \"2025-08-15 15:43:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"MoE technology\", \"entity2\": \"translation accuracy\", \"description\": \"MoE technology improves translation accuracy.\", \"created_at\": \"2025-08-15 15:40:48\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Exploiting inter-layer expert affinity for accelerating mixture-of-experts model inference\", \"entity2\": \"J. Yao, Q. Anthony, A. Shafi, H. Subramoni, and D. K. D. Panda\", \"description\": \"These authors are associated with the development and publication of a method to accelerate MoE inference by exploiting inter-layer expert affinity.\", \"created_at\": \"2025-08-15 15:45:27\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"MoE technology\", \"entity2\": \"fluency\", \"description\": \"MoE technology improves fluency.\", \"created_at\": \"2025-08-15 15:40:55\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"MoE architecture\", \"entity2\": \"algorithm designs\", \"description\": \"The MoE architecture leads to improved algorithm designs.\", \"created_at\": \"2025-08-15 15:20:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: MOE\\nChunk: 10\\n\\nhances our understanding of the model behaviors but also opens new avenues for designing more robust and transparent AI systems. Given the rapidly growing research interests in MoE and the huge potentials of MoE in various application domains, there is an urgent need of a comprehensive survey for summarizing and disseminating the recent advances of MoE, in order to elicit escalating attentions and inspire further research ideas in this field. Nevertheless, the early surveys of MoE [203], [204] were published ten years ago and have not incorporated the new development in the area. There is only one new survey [205] that emerged last year, which however 1) emphasized more on the basic designs of MoE and 2) did not provide a broad discussion on the use of MoEs in important machine learning paradigms and application fields such as computer vision. The theory development in MoE has also not been covered.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 151\\n\\noves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. (b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 7.289, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 7.289, + "start_timestamp": "2025-08-16T09:31:38.525508", + "end_timestamp": "2025-08-16T09:31:45.814515" + }, + "metadata": { + "saved_at": "2025-08-16T09:31:45.814515", + "file_path": "retrieval_logs\\retrieval_20250816_093145_814_mix_k5_ck2_What_are_the_most_significant_performance_improvem.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_093157_040_mix_k10_ck4_How_do_MoE_models_compare_to_other_advanced_neural.json b/retrieval_logs/retrieval_20250816_093157_040_mix_k10_ck4_How_do_MoE_models_compare_to_other_advanced_neural.json new file mode 100644 index 0000000000000000000000000000000000000000..57446f83b80dfef164925ce75a4998e6036140a8 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_093157_040_mix_k10_ck4_How_do_MoE_models_compare_to_other_advanced_neural.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:31:57.040412", + "query": "How do MoE models compare to other advanced neural network architectures (e.g., Transformers, CNNs) in terms of performance, efficiency, and scalability for specific tasks?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 28788, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"our paper\", \"type\": \"abstract\", \"description\": \"Our paper is the first survey that comprehensively summarizes the latest advancement in MoE, including basic design strategies, MoE-based algorithm designs in mainstream machine learning directions, theory towards understanding MoE in various scenarios, and an in-depth review of applications of MoE in both computer vision and natural language processing.\", \"created_at\": \"2025-08-15 15:19:27\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"deep learning architectures\", \"type\": \"methodology\", \"description\": \"deep learning architectures are modern systems that utilize fundamental attention mechanisms, particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"efficiency gains\", \"type\": \"results\", \"description\": \"Efficiency gains are demonstrated by the V-MoE approach in image classification tasks due to the combination of sparse MoE layers with Vision-Transformer.\", \"created_at\": \"2025-08-15 15:28:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"natural language processing\", \"type\": \"abstract\", \"description\": \"Natural Language Processing (NLP) is a significant field that relies on adapting large-scale, pre-trained language models to various downstream applications and particular tasks or domains. NLP has been greatly enhanced by advancements in language models, leading to broader applications across various fields. Within NLP, fundamental attention mechanisms are particularly utilized. Mixture of Experts (MoE) has seen recent applications in NLP, presenting multiple important subproblems that require further investigation, and is an area where MoE applications are reviewed in depth in the paper.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"convergence rate\", \"type\": \"results\", \"description\": \"Convergence rates are established for density estimation and parameter estimation in MoE models for classification problems.\", \"created_at\": \"2025-08-15 15:29:53\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Mixtures of experts for scaling up neural networks in order execution\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by K. Li, M. Cucuringu, L. Sanchez-Betancourt, and T. Willi, and was presented at the 5th ACM International Conference on AI in Finance in 2024.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"V-MoE\", \"type\": \"methodology\", \"description\": \"V-MoE is a novel approach designed for visual tasks, which substitutes the standard Multi-Layer Perceptron (MLP) layers in Vision Transformers with sparse Mixture-of-Experts (MoE) layers. This architectural change allows V-MoE to scale to an impressive 15 billion parameters and has demonstrated significant efficiency gains, particularly in image classification tasks. To optimize expert assignment and resource utilization, V-MoE employs a Batch Priority Routing (BPR) strategy. BPR calculates the importance of each image patch, sorts these patches in descending order of importance, and then assigns experts accordingly. Furthermore, V-MoE replaces the computationally intensive TopK strategy with a simpler Top-1 strategy, which helps to reduce resource wastage. For enhanced training stability in visual tasks, V-MoE incorporates an auxiliary loss function that normalizes both $L_{Importance}$ and $L_{Load}$.\", \"created_at\": \"2025-08-15 15:20:09\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Movement primitive learning and generalization: Using mixture density networks\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by Y. Zhou, J. Gao, and T. Asfour, and was published in IEEE Robotics & Automation Magazine in 2020.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"MoE architectures\", \"type\": \"methodology\", \"description\": \"MoE (Mixture of Experts) architectures are designed to enhance parameter efficiency and manage computational costs effectively. They offer potential improvements in model interpretability by learning intrinsic allocation mechanisms. These architectures possess a sparse nature, necessitating dynamic data allocation, which makes pipeline design a critical factor in their training. While MoE architectures have shown impressive scalability and performance, their theoretical foundations are not yet fully understood. Further research is needed to optimize the design of MoE architectures, particularly in determining the optimal number of experts and their specialization, as current methods often rely on heuristic or static settings that may not be universally optimal for all tasks.MoE architectures are a type of architecture that EdgeMoE aims to improve by reducing latency caused by frequent expert switching in limited device memory.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"training and inference efficiency\", \"type\": \"limitations\", \"description\": \"The training and inference efficiency of MoE models remain a concern, especially in large-scale applications.\", \"created_at\": \"2025-08-15 15:40:24\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"intrinsic allocation mechanisms\", \"type\": \"methodology\", \"description\": \"Intrinsic allocation mechanisms are learned by MoE models, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"CONCLUSION\", \"type\": \"conclusion\", \"description\": \"The conclusion summarizes the proposed ReAct method and its effectiveness in various tasks, while also acknowledging limitations and future directions.This section concludes a comprehensive survey on the integration of the MoE architecture with various domains.This section provides a comprehensive survey of the integration of the MoE architecture with various domains, starting from basic designs and training strategies, highlighting its synergy with machine learning algorithms and recent theoretical advancements. It also summarizes MoE in computer vision and natural language processing and discusses future designs for improving MoE. The authors hope this work serves as a valuable reference and inspires further research.\", \"created_at\": \"2025-08-15 15:38:51\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"MNIST 2NN model\", \"type\": \"methodology\", \"description\": \"The MNIST 2NN model is a specific deep network model utilized in experiments to evaluate the performance of FedAvg and FedSGD algorithms, particularly in the context of learning deep networks. This model is employed to assess the convergence and final test accuracy under various communication and training parameters, as well as to understand the impact of data distribution (IID versus Non-IID) on these metrics. The target accuracy for the MNIST 2NN model is set at 97%.\", \"created_at\": \"2025-08-15 15:13:21\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"convergence\", \"type\": \"results\", \"description\": \"Convergence refers to the process where training loss decreases and stabilizes. In some cases, higher values of local epochs ($E$) lead to convergence at slightly lower loss values.Convergence refers to the process where training loss decreases and stabilizes. In some cases, higher values of local epochs ($E$) lead to convergence at slightly lower loss values.Convergence, a measure of how quickly a model reaches its optimal performance, is influenced by several factors. Increasing the number of local epochs generally leads to faster convergence or a lower final loss. For instance, FedAvg with 5 local epochs (E=5) potentially converges faster than FedAvg with 1 local epoch (E=1). However, the convergence can be slower and more varied across different configurations. In one observed scenario, configurations represented by red and orange lines demonstrated good performance, achieving peak accuracies around 0.975-0.98 later in communication rounds compared to an Independent and Identically Distributed (IID) case. Conversely, configurations represented by blue lines (B=∞) exhibited slower initial progress. Specifically, the solid blue line (E=1) showed the slowest progress, reaching a lower accuracy of around 0.97 by 2000 rounds, while dashed and dash-dot blue lines showed moderate improvement over the solid blue line. FedAvg with specific parameters ($C=1.0, E=5, \\\\eta=0.50$) was noted as showing the slowest convergence.\", \"created_at\": \"2025-08-15 17:30:47\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"knowledge\", \"type\": \"abstract\", \"description\": \"Knowledge is acquired by neural networks and can be forgotten when learning new tasks.\", \"created_at\": \"2025-08-15 15:21:12\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"neural networks\", \"type\": \"methodology\", \"description\": \"Neural networks are models that consistently improve on various tasks with longer training times, larger datasets, and increased model sizes.Neural networks are susceptible to forgetting previously acquired knowledge when learning new tasks.Neural networks with dense layers are mentioned as a general category to which the proposed principles apply.\", \"created_at\": \"2025-08-15 16:21:04\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"A neural attention model for abstractive sentence summarization\", \"type\": \"methodology\", \"description\": \"This refers to a neural attention model for abstractive sentence summarization, as presented in the arXiv preprint arXiv:1509.00685.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"Neural architectures for named entity recognition\", \"type\": \"methodology\", \"description\": \"This refers to the neural architectures used for named entity recognition, as presented in the arXiv preprint arXiv:1603.01360.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"Model-agnostic meta-learning for fast adaptation of deep networks\", \"type\": \"methodology\", \"description\": \"This is a methodology for fast adaptation of deep networks, cited as reference [226].\", \"created_at\": \"2025-08-15 15:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"Reptile: a scalable metalearning algorithm\", \"type\": \"methodology\", \"description\": \"This is a scalable metalearning algorithm, cited as reference [227].\", \"created_at\": \"2025-08-15 15:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity\": \"Communication-Efficient Learning of Deep Networks\", \"type\": \"abstract\", \"description\": \"Communication-Efficient Learning of Deep Networks is a research document that investigates a machine learning problem focused on deep networks and communication efficiency. The research explores methods for optimizing learning processes by increasing computation on each client between communication rounds, contrasting these with existing approaches and the federated optimization setting. The document defines and explains a loss function for this machine learning problem, including its reformulation for a scenario with K clients where data is partitioned, and touches upon the expectation of the loss function when data is distributed uniformly at random among clients. The study specifically discusses the behavior of parameterized neural networks (NNs) and the effectiveness of parameter averaging in federated learning. The described method for communication-efficient learning of deep networks involves a fixed set of K clients, each possessing a local dataset. In each round, a random fraction C of clients is selected, the global algorithm state is transmitted to them, and these clients perform local computation based on the global state and their local data. Subsequently, updates are sent back to the server, which then updates its global state, and the process iterates. This method is applicable to non-convex neural network objectives and any finite-sum objective of the form min_w f(w) = (1/n) * sum(f_i(w)). The selection of a fraction of clients is implemented for efficiency, as experimental results indicate diminishing returns when involving a larger number of clients. The document also references techniques for privacy and secure multi-party computation. Furthermore, the research highlights the performance of FedAvg compared to SGD and demonstrates the effectiveness of their approach on a large-scale next-word prediction task. The document reports the number of communication rounds required to reach a specific test-set accuracy in deep networks, detailing the process of constructing learning curves for various parameter settings, optimizing eta, and ensuring monotonic improvement by selecting the best test-set accuracy achieved. The document also discusses the impact of hyperparameters like local epochs and learning rate on model generalization and performance.This document discusses communication-efficient learning of deep networks, focusing on the impact of local epochs on training loss and convergence.This document discusses communication-efficient learning of deep networks, focusing on the impact of local epochs on training loss and convergence.\", \"created_at\": \"2025-08-15 17:30:47\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity\": \"distributed training\", \"type\": \"methodology\", \"description\": \"A training approach involving iterative averaging of locally trained models.Distributed training is a context in which the empirical performance of various training strategies is understood through visualizations like Figure 6.\", \"created_at\": \"2025-08-15 15:09:20\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"MoE\", \"entity2\": \"convergence rate\", \"description\": \"\\\"The convergence rate is a key aspect being investigated for MoE models, particularly in classification problems.\\\")\", \"created_at\": \"2025-08-15 15:29:58\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"deep learning architectures\", \"entity2\": \"natural language processing\", \"description\": \"Deep learning architectures utilize fundamental attention mechanisms particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"V-MoE\", \"description\": \"V-MoE utilizes sparse MoE layers, indicating a specific implementation of the MoE concept.\", \"created_at\": \"2025-08-15 15:28:41\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Mixtures of experts for scaling up neural networks in order execution\", \"entity2\": \"Movement primitive learning and generalization: Using mixture density networks\", \"description\": \"Both methodologies utilize mixture-based approaches for learning and generalization in AI/robotics.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"CONCLUSION\", \"entity2\": \"MoE architecture\", \"description\": \"The conclusion summarizes the survey of the MoE architecture, its applications, and future directions.\", \"created_at\": \"2025-08-15 15:38:55\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"natural language processing\", \"entity2\": \"our paper\", \"description\": \"The paper provides an in-depth review of MoE applications in natural language processing.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"MoE architectures\", \"entity2\": \"intrinsic allocation mechanisms\", \"description\": \"MoE architectures learn intrinsic allocation mechanisms.\", \"created_at\": \"2025-08-15 15:19:39\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"computer vision\", \"entity2\": \"our paper\", \"description\": \"The paper provides an in-depth review of MoE applications in computer vision.\", \"created_at\": \"2025-08-15 15:19:33\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"MNIST 2NN model\", \"entity2\": \"convergence\", \"description\": \"The convergence results are observed for the MNIST 2NN model under various configurations and parameters.\", \"created_at\": \"2025-08-15 15:09:57\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"TopK strategy\", \"entity2\": \"V-MoE\", \"description\": \"V-MoE removes the TopK strategy in favor of a Top-1 strategy to improve efficiency.\", \"created_at\": \"2025-08-15 15:22:57\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Expert selection\", \"entity2\": \"V-MoE\", \"description\": \"V-MoE's approach to normalizing auxiliary loss functions contributes to a more stable training process, which is relevant to the overall efficiency of expert selection.\", \"created_at\": \"2025-08-15 15:22:13\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"knowledge\", \"entity2\": \"neural networks\", \"description\": \"Neural networks acquire knowledge, which can be forgotten.\", \"created_at\": \"2025-08-15 15:21:13\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Batch Priority Routing (BPR)\", \"entity2\": \"V-MoE\", \"description\": \"V-MoE introduces the Batch Priority Routing (BPR) strategy.\", \"created_at\": \"2025-08-15 15:20:11\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"A neural attention model for abstractive sentence summarization\", \"entity2\": \"Neural architectures for named entity recognition\", \"description\": \"Both are neural network-based methodologies, with the former focusing on named entity recognition and the latter on abstractive sentence summarization.\", \"created_at\": \"2025-08-15 15:48:17\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"concurrent surveys\", \"entity2\": \"our paper\", \"description\": \"The paper distinguishes itself from other recent surveys by offering a more comprehensive and in-depth summary of MoE advancements, rather than focusing on special aspects or covering topics briefly.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Model-agnostic meta-learning for fast adaptation of deep networks\", \"entity2\": \"Reptile: a scalable metalearning algorithm\", \"description\": \"Both are cited methodologies in the field of machine learning, and both explicitly deal with meta-learning and adaptation of deep networks.\", \"created_at\": \"2025-08-15 15:51:17\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Image classification\", \"entity2\": \"V-MoE\", \"description\": \"V-MoE demonstrates efficiency gains in image classification tasks.\", \"created_at\": \"2025-08-15 15:28:41\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Communication-Efficient Learning of Deep Networks\", \"entity2\": \"distributed training\", \"description\": \"The document relates its approach to distributed training by iteratively averaging locally trained models.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"V-MoE\", \"entity2\": \"Vision-Transformer\", \"description\": \"V-MoE replaces the MLP layers in Vision-Transformer with sparse MoE layers to cope with visual tasks.\", \"created_at\": \"2025-08-15 15:28:41\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"our paper\", \"entity2\": \"theory development in MoE\", \"description\": \"The paper aims to address the gap in coverage of theory development in MoE by providing a comprehensive summary of advancements.\", \"created_at\": \"2025-08-15 15:19:32\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: MOE\\nChunk: 122\\n\\nImage classification, as one of the most fundamental machine learning tasks, is a key component of many CV tasks. Therefore, understanding the performance and limitations of MoE in image classification can, to some extent, reflect its potentials for application in other CV tasks. Notably, [17] proposes and validates a new approach, namely V-MoE, to cope with visual tasks, by replacing the MLP layers in Vision-Transformer [1] with sparse MoE layers. V-MoE can scale the model to 15 billion parameters and demonstrates the efficiency gains from this simple combination in image classification tasks. Further explorations within the traditional MoE framework have been conducted. [153] dissects the MoE architecture, providing a detailed exploration of its training and optimization. The paper discusses how the number of expert networks, the number of MOE layers, and their placement affect the model’s performance, efficiency, and stability.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: MOE\\nChunk: 2\\n\\nntion in addressing these challenges, by dynamically selecting and activating the most relevant submodels to process input data. It has been shown that MoEs can significantly improve model performance and efficiency with fewer resources, particularly excelling in handling large-scale, multimodal data. Given the tremendous potential MoE has demonstrated across various domains, it is urgent to provide a comprehensive summary of recent advancements of MoEs in many important fields. Existing surveys on MoE have their limitations, e.g., being outdated or lacking discussion on certain key areas, and we aim to address these gaps. In this paper, we first introduce the basic design of MoE, including gating functions, expert networks, routing mechanisms, training strategies, and system design. We then explore the algorithm design of MoE in important machine learning paradigms such as continual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 55\\n\\n118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\\\Delta \\\\mathbf { W } = \\\\mathbf { A } \\\\mathbf { B } ^ { \\\\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\\\mathbf { W } _ { \\\\mathrm { f t } } = \\\\mathbf { W } + \\\\alpha \\\\Delta \\\\mathbf { W }$ where $\\\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.3667, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 6.3667, + "start_timestamp": "2025-08-16T09:31:50.673742", + "end_timestamp": "2025-08-16T09:31:57.040413" + }, + "metadata": { + "saved_at": "2025-08-16T09:31:57.040412", + "file_path": "retrieval_logs\\retrieval_20250816_093157_040_mix_k10_ck4_How_do_MoE_models_compare_to_other_advanced_neural.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_093157_158_mix_k5_ck2_What_are_the_primary_computational_or_practical_li.json b/retrieval_logs/retrieval_20250816_093157_158_mix_k5_ck2_What_are_the_primary_computational_or_practical_li.json new file mode 100644 index 0000000000000000000000000000000000000000..bc5d8a08b1bd8d7c1be8fc55c62a6d680efc0539 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_093157_158_mix_k5_ck2_What_are_the_primary_computational_or_practical_li.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:31:57.158363", + "query": "What are the primary computational or practical limitations associated with training and deploying MoE models?", + "query_mode": "mix", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 18317, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Beyond distillation: Task-level mixture-of-experts for efficient inference\", \"type\": \"methodology\", \"description\": \"This methodology explores task-level mixture-of-experts for efficient inference, going beyond distillation.\", \"created_at\": \"2025-08-15 15:43:45\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"MoE\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning methodology and model design that enhances performance, generalization ability, and computational efficiency, particularly for complex and diverse tasks. MoE operates on a \\\"divide and conquer\\\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This framework allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. MoE leverages specialized \\\"experts\\\" for different tasks or data types, providing a scalable and flexible framework for tackling complex, multifaceted datasets and handling diverse knowledge domains without proportionally increasing computational costs. Expert networks can operate independently and are often integrated into a single network model by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers or CNN layers, with MoE layers, demonstrating high flexibility and broad applicability. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible Natural Language Generation (NLG) systems. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. MoE can alleviate problems in High-Value Content Learning (HVCL) such as known task boundaries and increased computation cost by leveraging multiple experts. MoE is also introduced into the decoder to address the issue of static feature decoding in different task decoders due to shared decoding parameters, which leads to insufficient distinction in task-specific features. MoE decomposes backbone features into task-agnostic features from different aspects, making the decoding process of task-specific features more fine-grained. MoE introduces shared expert modules, domain expert modules, and task expert modules, which learn cross-domain and cross-task common knowledge, domain-specific user preferences, and task-specific user preferences, respectively. This enables models to capture user preferences from multiple perspectives and handle complex dependencies between domains and tasks, allowing for flexible model expansion and handling dependencies between different tasks, making it suitable for visual multi-task models. MoE can be combined with various types of tokens to achieve better learning performance and has been applied in computer vision and natural language processing, showing significant potential, especially in large language models (LLMs). It also enhances the understanding of model behaviors. MoE is an advanced technique that enhances LLM performance andMoE is a technique that enhances LLM performance.\", \"created_at\": \"2025-08-15 16:36:35\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"A hybrid tensor-expert-data parallelism approach to optimize mixture-of-experts training\", \"type\": \"methodology\", \"description\": \"This methodology focuses on optimizing mixture-of-experts training using a hybrid approach combining tensor, expert, and data parallelism.\", \"created_at\": \"2025-08-15 15:45:26\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"MoE-LPR\", \"type\": \"methodology\", \"description\": \"MoE-LPR designs a two-phase training strategy for MoE-based models. The first phase converts the original model into an MoE architecture with new expert modules to improve capability for new languages without original data. The second phase uses a small amount of original language data for review and a language prior routing mechanism to restore and maintain original language performance.MoE-LPR employs a language prior routing mechanism to restore and maintain the performance of the original language. It demonstrates excellent scalability and stability.MoE-LPR provides a new perspective for multilingual natural language understanding tasks.\", \"created_at\": \"2025-08-15 15:41:13\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Exploiting inter-layer expert affinity for accelerating mixture-of-experts model inference\", \"type\": \"methodology\", \"description\": \"This methodology aims to accelerate mixture-of-experts model inference by exploiting inter-layer expert affinity.\", \"created_at\": \"2025-08-15 15:45:26\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Mixture of Experts (MoE) models\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) models are discussed in the context of determining the number of experts and their interpretability.Mixture of Experts (MoE) models are used in RAPHAEL for temporal control and spatial settings during generation. They allow for specialized experts to enhance the quality of generated images, improve the diversity of outputs, and further enrich detail representations.Mixture of Experts (MoE) models dynamically select and activate the most relevant submodels to process input data, addressing challenges of enormous computational resource consumption, deployment difficulties, and fitting heterogeneous and complex data in large AI models.\", \"created_at\": \"2025-08-15 15:43:00\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Revisiting single-gated mixtures of experts\", \"type\": \"abstract\", \"description\": \"This paper re-examines and provides new insights into single-gated mixture of experts architectures.\", \"created_at\": \"2025-08-15 15:50:42\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"deployment difficulties\", \"type\": \"limitations\", \"description\": \"Deployment difficulties are a major challenge in the development of large AI models.\", \"created_at\": \"2025-08-15 15:16:43\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"S. Singh, O. Ruwase, A. A. Awan, S. Rajbhandari, Y. He, and A. Bhatele\", \"type\": \"author\", \"description\": \"Authors of a paper discussing a hybrid tensor-expert-data parallelism approach to optimize mixture-of-experts training.\", \"created_at\": \"2025-08-15 15:45:26\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"MoE-based model\", \"type\": \"methodology\", \"description\": \"The MoE-based model can provide benefits for semantic segmentation tasks, alleviating hardware pressure through sparse activation and a divide-and-conquer strategy, and achieving excellent performance in tasks requiring model stability and generalization.\", \"created_at\": \"2025-08-15 15:30:45\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"model performance\", \"type\": \"abstract\", \"description\": \"Model performance can be improved by using Mixture-of-Experts (MoE) models, with MoA achieving superior performance and reduced computational overhead. MoE models can maintain or even improve model performance, as demonstrated by the GLaM MoE architecture. Specifically, applying MoE to language modeling and machine translation tasks has shown significant improvements in model performance on large datasets. Furthermore, model performance can be enhanced by dynamically selecting the most suitable expert network for a given task without a substantial increase in parameters, while also exploring the interpretability of Convolutional Neural Networks (CNNs) in computer vision tasks. However, integrating different object detectors with the MoE architecture without proper calibration can negatively impact model performance due to unfair competition.Model performance in NLG tasks can be enhanced by specially designed MoE architectures.\", \"created_at\": \"2025-08-15 15:43:09\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"MOE\", \"type\": \"organization\", \"description\": \"MOE is the source of the provided text chunk.MOE, or Mixture-of-Experts, is a machine learning methodology that utilizes multiple expert models, frequently activated sparsely. This architecture offers advantages in scaling model capacity. However, MOE can encounter overfitting problems when applied to small datasets. MOE is also identified as the source of the provided text chunk.This is the source of the provided text, likely referring to Mixture-of-Experts.\", \"created_at\": \"2025-08-15 15:48:53\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"overfitting problem\", \"type\": \"discussion\", \"description\": \"The overfitting problem is encountered when using MOE on small datasets.\", \"created_at\": \"2025-08-15 15:30:37\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Mixture-of-Experts (MoE)\", \"type\": \"methodology\", \"description\": \"Mixture-of-Experts (MoE) is a computational approach that involves combining multiple expert models to handle different aspects of a task, aiming for improved performance and efficiency. This framework utilizes distinct components called \\\"experts\\\" that specialize in different tasks or data facets, learning task-specific skills and specializing in different parts of the multi-task representation space. MoE enables the simultaneous activation of multiple experts, where each expert specializes in a distribution of actions, and a composite policy is formed by composing these distributions. It is an effective method for substantially scaling up model capacity with minimal computation overhead in Large Language Models (LLMs), activating only relevant experts for a specific input to manage computational costs and leverage specialized knowledge. An attention module is used to integrate expert outputs and generate connections between tasks and experts for optimal performance.MoE uses multiple experts to enhance learning without increasing active neurons, but its storage demands pose challenges for SLM deployment, making this a promising area for exploration.\", \"created_at\": \"2025-08-15 17:04:29\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Small Language Models (SLMs)\", \"type\": \"abstract\", \"description\": \"Small Language Models (SLMs) are a focus of research, with efforts to improve their performance by optimizing teacher LLM selection and applying emerging techniques from larger LLMs.Small Language Models (SLMs) are smaller, more efficient language models, typically defined as having fewer than 7 billion parameters, though their size can extend to the largest manageable under limited resource conditions. Derived from larger language models (LLMs), SLMs are increasingly favored for their low inference latency, cost-effectiveness, efficient development, and easy customization and adaptability, offering savings in pre-training and inference with reduced memory and storage needs. This makes them vital for applications requiring efficient resource use and effective in resource-limited settings, including low-power devices like edge devices, by improving on-device processing through enhanced privacy, security, response times, and personalization. SLMs are optimized and fine-tuned on specific data and are essential in resource-limited settings. They exhibit diverse capabilities across domains and are being specialized through instruction tuning using LLMs-generated data. SLMs enhance recommendation systems due to their robust generalization, reasoning abilities, and in-context learning, addressing challenges like cold-start problems and distribution biases. SLMs support long-term planning, replace traditional encoders, and use parallel low-rank parameters to inject personalized user knowledge. They play a crucial role in web search, including document encoding, text reordering, and query rewriting. SLMs are also distilled from LLMs using the 'Adapt-and-Distill' strategy, though adapting both teacher and student models to the target domain can be time-consuming. SLMs have demonstrated significant potential in addressing issues associated with LLMs by achieving comparable performance for domain-specific problems, offering advantages in efficiency, cost, flexibility, and customization due to their reduced parameter count. They can also complement LLMs for task completion and are noted for their ability to process longer sequences more efficiently, which enhances their functionality under strict hardware constraints, utilizing activation functions like GeLU and SiLU and benefiting from efficient attention mechanisms. Parameter-sharing techniques are employed in their architecture design to minimize space usage and reduce size. SLMs are effective with adaptation techniques like LoRA, prefixtuning, and adapter modules, with Mamba considered more suitable for SLMs due to its parameter utilization. SLMs benefit from tokenization strategies that ensure a balance between vocabulary coverage and model compactness, crucial for improving generalization while minimizing computational demands, and are fine-tuned on specific tasks using parameter-efficient fine-tuning methods. SLMs are also the subject of improvement through methods like Supervised Fine-Tuning (SFT) and Knowledge Distillation (KD).\", \"created_at\": \"2025-08-15 17:08:36\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Beyond distillation: Task-level mixture-of-experts for efficient inference\", \"entity2\": \"mixture-of-experts\", \"description\": \"This methodology utilizes task-level mixture-of-experts for efficient inference, as an alternative to distillation.\", \"created_at\": \"2025-08-15 15:43:46\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"MoE\", \"entity2\": \"MoE-LPR\", \"description\": \"MoE-LPR designs a training strategy for MoE-based models.\", \"created_at\": \"2025-08-15 15:41:30\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"A hybrid tensor-expert-data parallelism approach to optimize mixture-of-experts training\", \"entity2\": \"S. Singh, O. Ruwase, A. A. Awan, S. Rajbhandari, Y. He, and A. Bhatele\", \"description\": \"These authors are associated with the development and publication of the hybrid tensor-expert-data parallelism approach for optimizing MoE training.\", \"created_at\": \"2025-08-15 15:45:27\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Mixture of Experts (MoE) models\", \"entity2\": \"deployment difficulties\", \"description\": \"Mixture of Experts (MoE) models address the challenge of deployment difficulties in large AI models.\", \"created_at\": \"2025-08-15 15:16:45\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Exploiting inter-layer expert affinity for accelerating mixture-of-experts model inference\", \"entity2\": \"J. Yao, Q. Anthony, A. Shafi, H. Subramoni, and D. K. D. Panda\", \"description\": \"These authors are associated with the development and publication of a method to accelerate MoE inference by exploiting inter-layer expert affinity.\", \"created_at\": \"2025-08-15 15:45:27\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"MoE-based model\", \"entity2\": \"model performance\", \"description\": \"Dynamically selecting the most suitable expert network for the current task improves model performance without significantly increasing the number of parameters.\", \"created_at\": \"2025-08-15 15:31:00\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"MOE\", \"entity2\": \"overfitting problem\", \"description\": \"MOE encounters the overfitting problem when used on small datasets.\", \"created_at\": \"2025-08-15 15:30:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Mixture-of-Experts (MoE)\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"MoE's storage demands pose challenges for SLM deployment, making it a promising area for exploration.\", \"created_at\": \"2025-08-15 17:04:41\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: MOE\\nChunk: 2\\n\\nntion in addressing these challenges, by dynamically selecting and activating the most relevant submodels to process input data. It has been shown that MoEs can significantly improve model performance and efficiency with fewer resources, particularly excelling in handling large-scale, multimodal data. Given the tremendous potential MoE has demonstrated across various domains, it is urgent to provide a comprehensive summary of recent advancements of MoEs in many important fields. Existing surveys on MoE have their limitations, e.g., being outdated or lacking discussion on certain key areas, and we aim to address these gaps. In this paper, we first introduce the basic design of MoE, including gating functions, expert networks, routing mechanisms, training strategies, and system design. We then explore the algorithm design of MoE in important machine learning paradigms such as continual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 151\\n\\noves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. (b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.7601, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.7601, + "start_timestamp": "2025-08-16T09:31:53.398265", + "end_timestamp": "2025-08-16T09:31:57.158364" + }, + "metadata": { + "saved_at": "2025-08-16T09:31:57.158363", + "file_path": "retrieval_logs\\retrieval_20250816_093157_158_mix_k5_ck2_What_are_the_primary_computational_or_practical_li.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_093207_669_hybrid_k5_ck2_Based_on_the_following_QA_about_MoE_models_provide.json b/retrieval_logs/retrieval_20250816_093207_669_hybrid_k5_ck2_Based_on_the_following_QA_about_MoE_models_provide.json new file mode 100644 index 0000000000000000000000000000000000000000..94f2e0921375954cf884bc418527179c6b9d53b0 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_093207_669_hybrid_k5_ck2_Based_on_the_following_QA_about_MoE_models_provide.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:32:07.669203", + "query": "Based on the following Q&A about MoE models, provide a comprehensive research summary: [{'category': 'overview', 'question': 'What is the primary problem that MoE models aim to solve within the broader field of machine learning?', 'answer': 'The primary problem MoE models address is the trade-off between high performance and computational cost in large machine learning models, achieving this through specialized, dynamically routed experts.'}, {'category': 'evaluation', 'question': 'What common benchmarks and evaluation metrics are typically used to assess the performance of MoE models?', 'answer': 'The provided context extensively covers MoE methodologies and their benefits but does not specify common benchmarks or evaluation metrics used for performance assessment.'}, {'category': 'results', 'question': 'What are the most significant performance improvements or findings reported in research concerning MoE models?', 'answer': 'MoE models enhance performance, generalization, and computational efficiency across tasks like machine translation and semantic segmentation, with ongoing research focusing on optimizing inference and addressing model-specific challenges.'}, {'category': 'limitations', 'question': 'What are the primary computational or practical limitations associated with training and deploying MoE models?', 'answer': 'MoE models offer performance benefits but face limitations such as overfitting on small datasets and deployment challenges due to storage demands, necessitating ongoing research into optimization strategies.'}, {'category': 'comparison', 'question': 'How do MoE models compare to other advanced neural network architectures (e.g., Transformers, CNNs) in terms of performance, efficiency, and scalability for specific tasks?', 'answer': 'MoE architectures offer advancements in parameter efficiency and scalability, particularly when integrated with Transformers for tasks like image classification and NLP, although training efficiency remains a consideration.'}]", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 23064, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Y. Zhou, T. Lei, H. Liu, N. Du, Y. Huang, V. Zhao, A. M. Dai, Q. V. Le, J. Laudon, et al.\", \"type\": \"methodology\", \"description\": \"This entry refers to a publication titled “Mixture-of-experts with expert choice routing,” published in Advances in Neural Information Processing Systems, vol. 35, pp. 7103–7114, in 2022.\", \"created_at\": \"2025-08-15 15:39:02\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"MoE\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning methodology and model design that enhances performance, generalization ability, and computational efficiency, particularly for complex and diverse tasks. MoE operates on a \\\"divide and conquer\\\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This framework allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models. MoE leverages specialized \\\"experts\\\" for different tasks or data types, providing a scalable and flexible framework for tackling complex, multifaceted datasets and handling diverse knowledge domains without proportionally increasing computational costs. Expert networks can operate independently and are often integrated into a single network model by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers or CNN layers, with MoE layers, demonstrating high flexibility and broad applicability. MoE allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible Natural Language Generation (NLG) systems. MoE dynamically selects the most suitable sub-network for specific tasks, making models more efficient and precise when processing complex or diverse text data. MoE can alleviate problems in High-Value Content Learning (HVCL) such as known task boundaries and increased computation cost by leveraging multiple experts. MoE is also introduced into the decoder to address the issue of static feature decoding in different task decoders due to shared decoding parameters, which leads to insufficient distinction in task-specific features. MoE decomposes backbone features into task-agnostic features from different aspects, making the decoding process of task-specific features more fine-grained. MoE introduces shared expert modules, domain expert modules, and task expert modules, which learn cross-domain and cross-task common knowledge, domain-specific user preferences, and task-specific user preferences, respectively. This enables models to capture user preferences from multiple perspectives and handle complex dependencies between domains and tasks, allowing for flexible model expansion and handling dependencies between different tasks, making it suitable for visual multi-task models. MoE can be combined with various types of tokens to achieve better learning performance and has been applied in computer vision and natural language processing, showing significant potential, especially in large language models (LLMs). It also enhances the understanding of model behaviors. MoE is an advanced technique that enhances LLM performance andMoE is a technique that enhances LLM performance.\", \"created_at\": \"2025-08-15 16:36:35\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Mixture of Experts (MoE)\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning technique and architectural approach that enhances performance, particularly in large language models (LLMs) and increasingly in the Computer Vision field, by employing a \\\"divide and conquer\\\" strategy. Unlike traditional dense models, MoE utilizes multiple specialized expert models to learn distinct core features of different domains or input types. A gating network dynamically selects and activates the most relevant submodels or experts to process input data, enabling the model to handle diverse tasks, large-scale datasets with thousands of categories, and multimodal data without a significant increase in computational overhead. This approach allows for the intelligent fusion of personalized and generic content, leading to high-fidelity personalized image generation without sacrificing image diversity or quality, and can improve semantic segmentation models, especially with high accuracy requirements or limited computational resources. MoE experts can collaboratively generate high-quality sentences, with each expert acting as a recurrent neural network that autoregressively produces token representations, making models more efficient and precise when processing complex or diverse text data. While MoE enhances performance with the same computing resources, it increases memory usage. Strategies to address this include loading only activated experts into memory and storing others on disk, though switching costs can slow inference, leading to suggestions for preemptive expert pre-load strategies to accelerate inference. The performance and limitations of MoE in image classification are actively being explored, with ongoing research dissecting its architecture, training, and optimization, including the impact of the number of expert networks, MoE layers, and their placement on performance, efficiency, and stability. MoE also autonomously identifies and combines promising sub-regions from multiple source tasks across different regions of the state space, utilizing state-dependent Dirichlet prior distributions to learn similarities between dynamics in source and target tasks and updating these priors using state transition data, which improves robustness against sparse or delayed rewards. The MoE architecture offers inherent transparency due to its design and is also applied to regression problems.MoE models offer opportunities to improve model interpretability by learning intrinsic allocation mechanisms, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability enhances understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.MoE models offer opportunities to improve model interpretability by learning intrinsic allocation mechanisms, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability enhances understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 15:16:58\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"MoE-LPR\", \"type\": \"methodology\", \"description\": \"MoE-LPR designs a two-phase training strategy for MoE-based models. The first phase converts the original model into an MoE architecture with new expert modules to improve capability for new languages without original data. The second phase uses a small amount of original language data for review and a language prior routing mechanism to restore and maintain original language performance.MoE-LPR employs a language prior routing mechanism to restore and maintain the performance of the original language. It demonstrates excellent scalability and stability.MoE-LPR provides a new perspective for multilingual natural language understanding tasks.\", \"created_at\": \"2025-08-15 15:41:13\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"MOE\", \"type\": \"organization\", \"description\": \"MOE is the source of the provided text chunk.MOE, or Mixture-of-Experts, is a machine learning methodology that utilizes multiple expert models, frequently activated sparsely. This architecture offers advantages in scaling model capacity. However, MOE can encounter overfitting problems when applied to small datasets. MOE is also identified as the source of the provided text chunk.This is the source of the provided text, likely referring to Mixture-of-Experts.\", \"created_at\": \"2025-08-15 15:48:53\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"overfitting problem\", \"type\": \"discussion\", \"description\": \"The overfitting problem is encountered when using MOE on small datasets.\", \"created_at\": \"2025-08-15 15:30:37\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"MoEs in deep learning\", \"type\": \"abstract\", \"description\": \"This research aims to understand the behaviors of Mixture-of-Experts (MoEs) in deep learning, addressing a gap in existing knowledge.\", \"created_at\": \"2025-08-15 15:34:12\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"single-expert model\", \"type\": \"results\", \"description\": \"A single-expert model with a two-layer CNN achieved an accuracy of no more than 87.5% on the specific dataset.\", \"created_at\": \"2025-08-15 15:34:13\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"linear MoE model\", \"type\": \"results\", \"description\": \"A linear MoE model performed slightly better than a single-expert model but was still outperformed by a nonlinear MoE model.\", \"created_at\": \"2025-08-15 15:34:12\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"nonlinear MoE model\", \"type\": \"results\", \"description\": \"A nonlinear MoE model achieved better performance than a linear MoE model.\", \"created_at\": \"2025-08-15 15:34:13\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"SLMs\", \"description\": \"Mixture of Experts (MoE) is commonly used in SLMs to enhance performance.\", \"created_at\": \"2025-08-15 16:42:47\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"MoE\", \"entity2\": \"MoE-LPR\", \"description\": \"MoE-LPR designs a training strategy for MoE-based models.\", \"created_at\": \"2025-08-15 15:41:30\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"abstract\", \"description\": \"The Mixture of Experts (MoE) architecture helps alleviate hardware resource bottlenecks and enhances the model's ability to handle diverse visual tasks, optimizing performance and stability.\", \"created_at\": \"2025-08-15 15:35:15\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"MOE\", \"entity2\": \"overfitting problem\", \"description\": \"MOE encounters the overfitting problem when used on small datasets.\", \"created_at\": \"2025-08-15 15:30:50\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"V-MoE\", \"description\": \"V-MoE utilizes sparse MoE layers, indicating a specific implementation of the MoE concept.\", \"created_at\": \"2025-08-15 15:28:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"MoEs in deep learning\", \"entity2\": \"single-expert model\", \"description\": \"The research investigates the performance of single-expert models within the context of MoEs in deep learning.\", \"created_at\": \"2025-08-15 15:34:15\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Meta-Learning\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"MoE can be used to enhance the rapid learning capability of meta-learning methods.\", \"created_at\": \"2025-08-15 15:24:36\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"MoEs in deep learning\", \"entity2\": \"linear MoE model\", \"description\": \"The research compares the performance of linear MoE models within the context of MoEs in deep learning.\", \"created_at\": \"2025-08-15 15:34:15\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"DeepSeek series\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"The DeepSeek series leverages MoE architectures to achieve state-of-the-art results and maintain manageable computational requirements.\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"MoEs in deep learning\", \"entity2\": \"nonlinear MoE model\", \"description\": \"The research compares the performance of nonlinear MoE models within the context of MoEs in deep learning.\", \"created_at\": \"2025-08-15 15:34:16\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Text2Human\", \"description\": \"Text2Human utilizes MoE as a core component of its methodology for conditional generation of clothing.\", \"created_at\": \"2025-08-15 15:29:31\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"continual learning\", \"description\": \"MoE is leveraged to facilitate better continual learning algorithm designs due to its ability to handle diverse tasks without significant computational overhead.\", \"created_at\": \"2025-08-15 15:21:21\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Diffusion model\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"MoE is applied to the transformer encoder based on the diffusion model in the context of Text2Human.\", \"created_at\": \"2025-08-15 15:29:31\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Computer Vision (CV) field\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"The Mixture of Experts (MoE) architecture is being applied in the Computer Vision (CV) field to enhance state-of-the-art performance.\", \"created_at\": \"2025-08-15 15:35:14\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"This paper\", \"description\": \"This paper aims to provide a comprehensive summary of recent advancements of MoEs, addressing gaps in existing surveys.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Swin2-MoSE\", \"description\": \"Swin2-MoSE demonstrates that Mixture of Experts (MoE) can be applied to improve semantic segmentation models.\", \"created_at\": \"2025-08-15 15:37:15\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"state-dependent Dirichlet prior distributions\", \"description\": \"MoE utilizes state-dependent Dirichlet prior distributions to learn similarities between dynamics in source and target tasks.\", \"created_at\": \"2025-08-15 15:33:56\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"language GAN\", \"description\": \"MoE is introduced into the generator of a language GAN to leverage multiple experts for high-quality sentence generation.\", \"created_at\": \"2025-08-15 15:44:34\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"MoCaE\", \"description\": \"MoCaE is presented as a method that explores the impact of integrating MoE with base models for object detection.\", \"created_at\": \"2025-08-15 15:36:03\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Object Detection\", \"description\": \"The text discusses the application of MoE principles to object detection, highlighting the challenges of computational efficiency in this task compared to image classification.\", \"created_at\": \"2025-08-15 15:36:03\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"task-free continual learning\", \"description\": \"The idea of applying MoE in continual learning was first explored in the context of task-free continual learning.\", \"created_at\": \"2025-08-15 15:21:22\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Image classification\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"Understanding the performance and limitations of MoE in image classification can reflect its potential for application in other CV tasks.\", \"created_at\": \"2025-08-15 15:28:41\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Contextual Multitask RL\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"The approach investigated in [96] uses a mixture of encoders to generate multiple representations, which aligns with the concept of Mixture of Experts (MoE) for generating orthogonal features.\", \"created_at\": \"2025-08-15 15:22:40\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Model collaboration\", \"description\": \"The text discusses strategies for managing memory usage in MoE models, which is a relevant consideration for model collaboration strategies.\", \"created_at\": \"2025-08-15 16:42:47\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Fig. 1\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"Fig. 1 covers the roadmap of Mixture of Experts (MoE).\", \"created_at\": \"2025-08-15 17:30:41\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"recurrent neural network\", \"description\": \"Each expert in MoE acts as a recurrent neural network that autoregressively produces the current token representation.\", \"created_at\": \"2025-08-15 15:44:35\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Performance and stability\", \"description\": \"The MoE architecture optimizes both performance and stability.\", \"created_at\": \"2025-08-15 15:35:16\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Model's ability to handle diverse visual tasks\", \"description\": \"The MoE architecture enhances the model's ability to handle diverse visual tasks.\", \"created_at\": \"2025-08-15 15:35:15\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Mixture of Experts (MoE) in RL\", \"description\": \"The methodology of MoE is being leveraged in RL, gaining increasing attention due to its success in LLMs.\", \"created_at\": \"2025-08-15 15:33:55\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Multi-task learning\", \"description\": \"The algorithm design of MoE is explored in multi-task learning.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"sparse or delayed rewards\", \"description\": \"The MoE method improves robustness against sparse or delayed rewards.\", \"created_at\": \"2025-08-15 15:33:56\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Hardware resource bottlenecks\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"The MoE architecture helps to alleviate hardware resource bottlenecks.\", \"created_at\": \"2025-08-15 15:35:15\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Meta-learning\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"The algorithm design of MoE is explored in meta-learning.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"state space\", \"description\": \"MoE autonomously identifies and combines promising sub-regions from multiple source tasks across different regions of the state space.\", \"created_at\": \"2025-08-15 15:33:56\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"System design\", \"description\": \"System design is part of the basic design of MoE.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Routing mechanisms\", \"description\": \"Routing mechanisms are part of the basic design of MoE.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Training strategies\", \"description\": \"Training strategies are part of the basic design of MoE.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Learning routing mechanism\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"The learning routing mechanism is a component that further improves the performance of image generation tasks, implying it works in conjunction with or enhances the capabilities of MoE.\", \"created_at\": \"2025-08-15 15:29:31\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"Expert networks\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"Expert networks are part of the basic design of MoE.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Gating functions\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"Gating functions are part of the basic design of MoE.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"RetGen\", \"description\": \"The text describes RetGen's process involving multiple transformer-based generation models, which could potentially utilize MoE principles, though not explicitly stated as a direct integration.\", \"created_at\": \"2025-08-15 15:44:35\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: MOE\\nChunk: 151\\n\\noves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. (b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 58\\n\\nIn particular, in continual learning a model is continuously adapted based on the new data without access to previous data. This will lead to a key challenge in continual learning, the so-called “Catastrophic Forgetting” [218], which refers to the phenomenon that neural networks can easily forget the previously acquired knowledge when learning the new task. Seeing that the MoE framework dynamically selects the most appropriate sub-model for each input, enabling the model to handle diverse tasks without a substantial increase in computational overhead, multiple efforts have been made in the literature to leverage MoE to facilitate better continual learning algorithm designs. The idea of applying MoE in continual learning is first explored [60] which builds a model with a set of experts for task-free continual learning [219], i.e., a more general continual learning setup where the explicit task definition and task boundary information are unavailable.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.3546, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.3546, + "start_timestamp": "2025-08-16T09:32:04.314567", + "end_timestamp": "2025-08-16T09:32:07.669204" + }, + "metadata": { + "saved_at": "2025-08-16T09:32:07.669203", + "file_path": "retrieval_logs\\retrieval_20250816_093207_669_hybrid_k5_ck2_Based_on_the_following_QA_about_MoE_models_provide.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_093359_010_mix_k10_ck4_How_do_MoE-enhanced_Transformers_compare_to_tradit.json b/retrieval_logs/retrieval_20250816_093359_010_mix_k10_ck4_How_do_MoE-enhanced_Transformers_compare_to_tradit.json new file mode 100644 index 0000000000000000000000000000000000000000..e0a8fd352a3fba4aa978267fd01d7327715c935f --- /dev/null +++ b/retrieval_logs/retrieval_20250816_093359_010_mix_k10_ck4_How_do_MoE-enhanced_Transformers_compare_to_tradit.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:33:59.010398", + "query": "How do MoE-enhanced Transformers compare to traditional dense Transformer models in terms of computational cost, performance metrics, and parameter efficiency?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 21257, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"efficiency gains\", \"type\": \"results\", \"description\": \"Efficiency gains are demonstrated by the V-MoE approach in image classification tasks due to the combination of sparse MoE layers with Vision-Transformer.\", \"created_at\": \"2025-08-15 15:28:39\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Layer sharing\", \"type\": \"methodology\", \"description\": \"Layer sharing increases hidden layers in small Transformer models without additional storage costs.\", \"created_at\": \"2025-08-15 16:40:55\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Edge-moe: Memory-efficient multi-task vision transformer architecture with task-level sparsity via mixture-of-experts\", \"type\": \"methodology\", \"description\": \"This is a methodology described in a publication by R. Sarkar, H. Liang, Z. Fan, Z. Wang, and C. Hao in the 2023 IEEE/ACM International Conference on Computer Aided Design (ICCAD), pp. 01–09, IEEE, 2023.\", \"created_at\": \"2025-08-15 15:38:50\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Switch-Transformer\", \"type\": \"methodology\", \"description\": \"Switch-Transformer proposes a parameter migration strategy that leverages the memory space of multiple devices in a collective manner to store a large volume of parameters through parallel communication mechanisms. This method effectively distributes the pressure of parameter storage, enhancing the system’s overall storage capacity and computational efficiency.\", \"created_at\": \"2025-08-15 15:23:10\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"convergence rate\", \"type\": \"results\", \"description\": \"Convergence rates are established for density estimation and parameter estimation in MoE models for classification problems.\", \"created_at\": \"2025-08-15 15:29:53\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"parameter migration strategy\", \"type\": \"methodology\", \"description\": \"A strategy proposed by Switch-Transformer that leverages the memory space of multiple devices in a collective manner to store a large volume of parameters through parallel communication mechanisms, distributing storage pressure and enhancing capacity and efficiency.\", \"created_at\": \"2025-08-15 15:23:10\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Importance and Load loss functions\", \"type\": \"methodology\", \"description\": \"Importance and Load loss functions are proposed to mitigate the issue of model collapse in MoE training.\", \"created_at\": \"2025-08-15 15:15:16\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"training cost\", \"type\": \"methodology\", \"description\": \"The Transformer achieves its results at a fraction of the training cost compared to previous models.\", \"created_at\": \"2025-08-15 14:55:05\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Transformer operations\", \"type\": \"methodology\", \"description\": \"Transformer operations utilize fine-tuned weight matrices.\", \"created_at\": \"2025-08-15 16:29:35\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"statistical model\", \"type\": \"methodology\", \"description\": \"A statistical model is utilized by EdgeMoE, built offline, to estimate expert activation probabilities in transformer layers from previous activations.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"1-bit Transformer architecture with BitLinear layers\", \"type\": \"methodology\", \"description\": \"Introduces a 1-bit Transformer architecture with BitLinear layers, achieving near 1-bit quantization with minimal performance loss.\", \"created_at\": \"2025-08-15 16:26:40\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"transformer layers\", \"type\": \"methodology\", \"description\": \"Transformer layers are components within MoE architectures where EdgeMoE estimates expert activation probabilities.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"MoE-based Transformer models\", \"type\": \"methodology\", \"description\": \"MoE-based Transformer models are designed and trained at different scales to address translation needs across various resource levels of languages.\", \"created_at\": \"2025-08-15 15:40:48\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"MoH\", \"type\": \"abstract\", \"description\": \"MoH is a methodology that enhances the standard MoE method by sharing heads and employing a two-stage routing strategy. It can fine-tune pre-trained multi-head attention models and has been integrated with various model frameworks like ViT, DiT, and decoder-only LLMs for different tasks.MoH refers to a concept or framework that has great potentials, as demonstrated by ViT, DiT, and decoder-only LLMs.\", \"created_at\": \"2025-08-15 15:14:53\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"training and inference efficiency\", \"type\": \"limitations\", \"description\": \"The training and inference efficiency of MoE models remain a concern, especially in large-scale applications.\", \"created_at\": \"2025-08-15 15:40:24\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Mixture-of-experts\", \"type\": \"methodology\", \"description\": \"Mixture-of-experts is a concept that appears to be a core focus of the cited works, particularly in the context of scaling neural networks and vision models.\", \"created_at\": \"2025-08-15 15:40:44\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Parallelizability\", \"type\": \"results\", \"description\": \"The Transformer models are more parallelizable than existing models.\", \"created_at\": \"2025-08-15 14:58:13\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity\", \"type\": \"methodology\", \"description\": \"This methodology is described in a publication by W. Fedus, B. Zoph, and N. Shazeer in the Journal of Machine Learning Research, vol. 23, no. 2, pp. 181–214, 1994.\", \"created_at\": \"2025-08-15 15:40:44\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"ConvS2S [9]\", \"type\": \"results\", \"description\": \"Achieved BLEU scores of 25.16 for English-to-German and 40.46 for English-to-French, with training costs of 9.6·10^18 FLOPs for English-to-German and 1.5·10^20 FLOPs for English-to-French.\", \"created_at\": \"2025-08-15 14:54:17\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"Transformer (base model)\", \"type\": \"results\", \"description\": \"Achieved a BLEU score of 27.3 for English-to-German and 38.1 for English-to-French, with a training cost of 3.3·10^18 FLOPs for English-to-German.\", \"created_at\": \"2025-08-15 14:54:17\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"Deepspeed-moe\", \"type\": \"methodology\", \"description\": \"Deepspeed-moe leverages MoE and model compression techniques to reduce the size of MoE models by 3.7 times.\", \"created_at\": \"2025-08-15 15:19:47\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity\": \"Switch Transformer\", \"type\": \"methodology\", \"description\": \"The Switch Transformer is an example of an MoE model that achieves 7 times faster pre-training speed compared to T5-Base and shows improved performance across 101 languages in a multilingual setting. It has scaled parameters to the trillion level, achieving a pre-training speed 4 times faster than T5-XXL at this scale.The Switch Transformer simplifies an approach based on [16], trading a slight reduction in accuracy for improved efficiency.\", \"created_at\": \"2025-08-15 15:16:06\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity\": \"RNN sequence-to-sequence models\", \"type\": \"methodology\", \"description\": \"RNN sequence-to-sequence models are mentioned as having limitations in achieving state-of-the-art results for English Constituency Parsing, particularly in small-data regimes.\", \"created_at\": \"2025-08-15 14:55:53\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"MoE\", \"entity2\": \"convergence rate\", \"description\": \"\\\"The convergence rate is a key aspect being investigated for MoE models, particularly in classification problems.\\\")\", \"created_at\": \"2025-08-15 15:29:58\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Importance and Load loss functions\", \"entity2\": \"model collapse\", \"description\": \"Importance and Load loss functions are proposed as solutions to mitigate model collapse.\", \"created_at\": \"2025-08-15 15:15:16\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Switch-Transformer\", \"entity2\": \"parameter migration strategy\", \"description\": \"Switch-Transformer proposes the parameter migration strategy.\", \"created_at\": \"2025-08-15 15:23:14\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Low-Rank Adaptation (LoRA)\", \"entity2\": \"Transformer operations\", \"description\": \"The fine-tuned weight matrix from LoRA is used in Transformer operations.\", \"created_at\": \"2025-08-15 16:29:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Importance and Load loss functions\", \"entity2\": \"Load(X)_i\", \"description\": \"The text defines the Importance and Load loss functions, and Load(X)_i is part of this definition.\", \"created_at\": \"2025-08-15 15:15:23\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"statistical model\", \"entity2\": \"transformer layers\", \"description\": \"The statistical model estimates expert activation probabilities in transformer layers.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"MoE-based Transformer models\", \"entity2\": \"machine translation\", \"description\": \"MoE-based Transformer models are trained to meet translation needs for languages with different resource levels.\", \"created_at\": \"2025-08-15 15:40:48\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"1-bit Transformer architecture with BitLinear layers\", \"entity2\": \"Moqt[234] SLM-RAG [215]\", \"description\": \"Both are presented as methodologies for enhancing SLMs, with the former focusing on quantization and the latter on ternary weights and RAG for performance matching.\", \"created_at\": \"2025-08-15 16:26:40\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Mixture-of-experts\", \"entity2\": \"Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity\", \"description\": \"The publication describing 'Switch transformers' is likely related to or an application of the 'Mixture-of-experts' concept, given the context of scaling models with sparsity.\", \"created_at\": \"2025-08-15 15:40:48\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"ConvS2S [9]\", \"entity2\": \"Transformer (base model)\", \"description\": \"The Transformer (base model) achieved a higher BLEU score for English-to-German (27.3) compared to ConvS2S [9] (25.16), but had a significantly lower training cost for English-to-German (3.3·10^18 FLOPs vs 9.6·10^18 FLOPs).\", \"created_at\": \"2025-08-15 14:54:17\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Deepspeed-moe\", \"entity2\": \"Switch Transformer\", \"description\": \"Deepspeed-moe leverages MoE and model compression techniques to reduce model size, while Switch Transformer focuses on speed and parameter scaling.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: MOE\\nChunk: 19\\n\\na Transformer [210], we typically replace the Feed-Forward Network (FFN) layer within a transformer block by using an MoE layer. There are several reasons [16] behind this design choice: First, the computational cost of the FFN layer typically constitutes a significant portion of the total computational cost in a Transformer, especially in deep models. By replacing the FFN layer with an MoE layer, the computational cost can be significantly reduced while maintaining the model’s expressive power. Additionally, replacing the Self-Attention layer would disrupt the core mechanism of the Transformer, which is not aligned with our objectives. 2) Non-linear Gating. The gating functions can also be non-linear. Specifically, a gating function design based on cosine distance is proposed in GMoE [23] for domain generalization tasks, which is shown as follows:\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 172\\n\\nMoE architecture [154] boosts performance while minimizing computational costs by activating only portions of the LLM as needed. However, this approach incurs significant memory overhead, making it impractical for edge device memory constraints. For example, Switch Transformers [100], with 32 experts per layer, require 54GBs of memory for inference, exceeding the capacity of most edge devices. Yi et al. [416] notes that in the Switch Transformers model, although most of the model weights $( 8 6 . 5 \\\\% )$ are attributed to experts, these weights account for only a small fraction $( 2 6 . 4 \\\\% )$ of the computations. To address this, EdgeMoE [416] introduces a method where experts are loaded into an expert memory buffer only when activated, achieving approximately $3 \\\\times$ memory savings compared to the baseline where all weights are held in memory. KV Cache Compression. When serving LMs for inference, using a KV cache is common practice to avoid intensive recalculations and speed up generation [276].\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 55\\n\\n118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\\\Delta \\\\mathbf { W } = \\\\mathbf { A } \\\\mathbf { B } ^ { \\\\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\\\mathbf { W } _ { \\\\mathrm { f t } } = \\\\mathbf { W } + \\\\alpha \\\\Delta \\\\mathbf { W }$ where $\\\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 8.2112, + "rag_initialization_seconds": 4.6739, + "query_execution_seconds": 3.5372, + "start_timestamp": "2025-08-16T09:33:50.799224", + "end_timestamp": "2025-08-16T09:33:59.010398" + }, + "metadata": { + "saved_at": "2025-08-16T09:33:59.010398", + "file_path": "retrieval_logs\\retrieval_20250816_093359_010_mix_k10_ck4_How_do_MoE-enhanced_Transformers_compare_to_tradit.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_093413_273_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_and_t.json b/retrieval_logs/retrieval_20250816_093413_273_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_and_t.json new file mode 100644 index 0000000000000000000000000000000000000000..9cd4c13c5dce6120d749b771f6ff869941e2e33f --- /dev/null +++ b/retrieval_logs/retrieval_20250816_093413_273_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_and_t.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:34:13.273332", + "query": "Based on the following Q&A about transformers and their connection to MOE , provide a comprehensive research summary: [{'category': 'comparison', 'question': 'How do MoE-enhanced Transformers compare to traditional dense Transformer models in terms of computational cost, performance metrics, and parameter efficiency?', 'answer': 'MoE-enhanced Transformers offer significant advantages in computational cost and performance by selectively activating parts of the model, contrasting with traditional dense Transformers that process all parameters. While MoE provides efficiency gains and scalability, challenges in memory overhead and training efficiency at extreme scales persist.'}]", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 11606, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"efficiency gains\", \"type\": \"results\", \"description\": \"Efficiency gains are demonstrated by the V-MoE approach in image classification tasks due to the combination of sparse MoE layers with Vision-Transformer.\", \"created_at\": \"2025-08-15 15:28:39\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Hierarchical mixtures of experts and the EM algorithm\", \"type\": \"abstract\", \"description\": \"This paper discusses hierarchical mixtures of experts and the EM algorithm, published in 1994.\", \"created_at\": \"2025-08-15 15:37:40\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"MoE-based Transformer models\", \"type\": \"methodology\", \"description\": \"MoE-based Transformer models are designed and trained at different scales to address translation needs across various resource levels of languages.\", \"created_at\": \"2025-08-15 15:40:48\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Mixture of Experts\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning technique that combines multiple 'expert' models to make predictions, often used for improving efficiency and performance.Mixture of Experts (MoE) is a machine learning technique where multiple expert models are combined to solve a problem, often leading to specialized or improved performance. This technique is applied in the context of federated learning.Mixture of Experts is a methodology discussed in multiple papers.\", \"created_at\": \"2025-08-15 15:47:12\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"training and inference efficiency\", \"type\": \"limitations\", \"description\": \"The training and inference efficiency of MoE models remain a concern, especially in large-scale applications.\", \"created_at\": \"2025-08-15 15:40:24\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"An alternative model for mixtures of experts\", \"type\": \"methodology\", \"description\": \"This methodology is presented in Advances in neural information processing systems, vol. 7, 1994.\", \"created_at\": \"2025-08-15 15:37:58\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Edge-moe: Memory-efficient multi-task vision transformer architecture with task-level sparsity via mixture-of-experts\", \"type\": \"methodology\", \"description\": \"This is a methodology described in a publication by R. Sarkar, H. Liang, Z. Fan, Z. Wang, and C. Hao in the 2023 IEEE/ACM International Conference on Computer Aided Design (ICCAD), pp. 01–09, IEEE, 2023.\", \"created_at\": \"2025-08-15 15:38:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Mixtral of experts\", \"type\": \"methodology\", \"description\": \"Description not available in text.Mixtral of experts is a model discussed in the context of arXiv preprint arXiv:2401.04088.Mixtral of experts, presented by Jiang et al. (2024), is a methodology related to experts in the context of machine learning.\", \"created_at\": \"2025-08-15 17:27:34\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Importance and Load loss functions\", \"type\": \"methodology\", \"description\": \"Importance and Load loss functions are proposed to mitigate the issue of model collapse in MoE training.\", \"created_at\": \"2025-08-15 15:15:16\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Mixture-of-experts\", \"type\": \"methodology\", \"description\": \"Mixture-of-experts is a concept that appears to be a core focus of the cited works, particularly in the context of scaling neural networks and vision models.\", \"created_at\": \"2025-08-15 15:40:44\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity\", \"type\": \"methodology\", \"description\": \"This methodology is described in a publication by W. Fedus, B. Zoph, and N. Shazeer in the Journal of Machine Learning Research, vol. 23, no. 2, pp. 181–214, 1994.\", \"created_at\": \"2025-08-15 15:40:44\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"MoE-based model\", \"type\": \"methodology\", \"description\": \"The MoE-based model can provide benefits for semantic segmentation tasks, alleviating hardware pressure through sparse activation and a divide-and-conquer strategy, and achieving excellent performance in tasks requiring model stability and generalization.\", \"created_at\": \"2025-08-15 15:30:45\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"model performance\", \"type\": \"abstract\", \"description\": \"Model performance can be improved by using Mixture-of-Experts (MoE) models, with MoA achieving superior performance and reduced computational overhead. MoE models can maintain or even improve model performance, as demonstrated by the GLaM MoE architecture. Specifically, applying MoE to language modeling and machine translation tasks has shown significant improvements in model performance on large datasets. Furthermore, model performance can be enhanced by dynamically selecting the most suitable expert network for a given task without a substantial increase in parameters, while also exploring the interpretability of Convolutional Neural Networks (CNNs) in computer vision tasks. However, integrating different object detectors with the MoE architecture without proper calibration can negatively impact model performance due to unfair competition.Model performance in NLG tasks can be enhanced by specially designed MoE architectures.\", \"created_at\": \"2025-08-15 15:43:09\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Mixture of Experts (MoE) models\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) models are discussed in the context of determining the number of experts and their interpretability.Mixture of Experts (MoE) models are used in RAPHAEL for temporal control and spatial settings during generation. They allow for specialized experts to enhance the quality of generated images, improve the diversity of outputs, and further enrich detail representations.Mixture of Experts (MoE) models dynamically select and activate the most relevant submodels to process input data, addressing challenges of enormous computational resource consumption, deployment difficulties, and fitting heterogeneous and complex data in large AI models.\", \"created_at\": \"2025-08-15 15:43:00\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"computational resources\", \"type\": \"methodology\", \"description\": \"Computational resources are a significant challenge in the development of large AI models due to their enormous consumption. However, the GLaM MoE architecture has been shown to significantly reduce these computational resources, enabling efficient utilization in tasks such as language modeling and machine translation. While experiments have been limited by the need for significant computational resources, hindering thorough hyper-parameter exploration, MoE approaches offer a path to more efficient use of these resources.\", \"created_at\": \"2025-08-15 15:41:23\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Importance and Load loss functions\", \"entity2\": \"model collapse\", \"description\": \"Importance and Load loss functions are proposed as solutions to mitigate model collapse.\", \"created_at\": \"2025-08-15 15:15:16\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Hierarchical mixtures of experts and the EM algorithm\", \"entity2\": \"Mixture of Experts\", \"description\": \"This paper discusses hierarchical mixtures of experts.\", \"created_at\": \"2025-08-15 15:37:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"MoE-based Transformer models\", \"entity2\": \"machine translation\", \"description\": \"MoE-based Transformer models are trained to meet translation needs for languages with different resource levels.\", \"created_at\": \"2025-08-15 15:40:48\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"An alternative model for mixtures of experts\", \"entity2\": \"Mixtral of experts\", \"description\": \"Both entities discuss models for mixtures of experts, indicating a shared research area.\", \"created_at\": \"2025-08-15 15:38:09\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Importance and Load loss functions\", \"entity2\": \"Load(X)_i\", \"description\": \"The text defines the Importance and Load loss functions, and Load(X)_i is part of this definition.\", \"created_at\": \"2025-08-15 15:15:23\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Mixture-of-experts\", \"entity2\": \"Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity\", \"description\": \"The publication describing 'Switch transformers' is likely related to or an application of the 'Mixture-of-experts' concept, given the context of scaling models with sparsity.\", \"created_at\": \"2025-08-15 15:40:48\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"MoE-based model\", \"entity2\": \"model performance\", \"description\": \"Dynamically selecting the most suitable expert network for the current task improves model performance without significantly increasing the number of parameters.\", \"created_at\": \"2025-08-15 15:31:00\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Mixture of Experts (MoE) models\", \"entity2\": \"computational resources\", \"description\": \"Mixture of Experts (MoE) models address the challenge of enormous consumption of computational resources in large AI models.\", \"created_at\": \"2025-08-15 15:16:45\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 62\\n\\nGD in terms of test accuracy for this specific next-word prediction task with non-IID data, especially at higher learning rates. The provided context, \\\"Figure 5: Monotonic learning curves for the large-scale language model word LSTM,\\\" confirms that these curves illustrate the learning process, and the term \\\"monotonic\\\" suggests that the accuracy is generally expected to increase or stay the same over time, which is consistent with the observed trends.](images/17619a97fe419e12a92f876847ff0533987e47c9246d66127edb08d6064ed47e.jpg)\\nFigure 5: Monotonic learning curves for the large-scale language model word LSTM. These experiments required significant computational resources and so we did not explore hyper-parameters as thoroughly: all runs trained on 200 clients per round; FedAvg used $B = 8$ and $E = 1$ . We explored a variety of learning rates for FedAvg and the baseline FedSGD. Figure 5 shows monotonic learning curves for the best learning rates. FedSGD with $\\\\eta = 1 8 . 0$ required 820 rounds to reach $10 .\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 166\\n\\n[10] J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S. Anadkat, et al., “Gpt-4 technical report,” arXiv preprint arXiv:2303.08774, 2023. [11] C. Thompson Neil, G. Kristjan, L. Keeheon, and F. Manso Gabriel, “The computational limits of deep learning,” ArXiv, Cornell University, juillet, 2020. [12] C. Sun, A. Shrivastava, S. Singh, and A. Gupta, “Revisiting unreasonable effectiveness of data in deep learning era,” in Proceedings of the IEEE international conference on computer vision, pp. 843–852, 2017. [13] R. A. Jacobs, M. I. Jordan, S. J. Nowlan, and G. E. Hinton, “Adaptive mixtures of local experts,” Neural computation, vol. 3, no. 1, pp. 79–87, 1991. [14] M. I. Jordan and R. A. Jacobs, “Hierarchical mixtures of experts and the em algorithm,” Neural computation, vol. 6, no. 2, pp. 181–214, 1994. [15] W. Fedus, B. Zoph, and N.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.5738, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 2.5738, + "start_timestamp": "2025-08-16T09:34:10.699543", + "end_timestamp": "2025-08-16T09:34:13.273332" + }, + "metadata": { + "saved_at": "2025-08-16T09:34:13.273332", + "file_path": "retrieval_logs\\retrieval_20250816_093413_273_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_and_t.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_094320_208_mix_k3_ck2_What_is_the_core_problem_that_the_Transformer_arch.json b/retrieval_logs/retrieval_20250816_094320_208_mix_k3_ck2_What_is_the_core_problem_that_the_Transformer_arch.json new file mode 100644 index 0000000000000000000000000000000000000000..47ba2c1aa049f2a897ffa149c78d42e2f28f37ff --- /dev/null +++ b/retrieval_logs/retrieval_20250816_094320_208_mix_k3_ck2_What_is_the_core_problem_that_the_Transformer_arch.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:43:20.208975", + "query": "What is the core problem that the Transformer architecture addresses in sequence modeling?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 10793, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"attention mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are neural network components that can be integrated with MoE architectures.\", \"created_at\": \"2025-08-15 15:43:01\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"long sequences\", \"type\": \"methodology\", \"description\": \"Tasks involving very long sequences can have their computational performance improved by restricting self-attention to a neighborhood of size r.\", \"created_at\": \"2025-08-15 14:57:01\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Mamba 2\", \"entity2\": \"attention mechanisms\", \"description\": \"Mamba 2 develops a theoretical framework linking SSMs with attention mechanisms.\", \"created_at\": \"2025-08-15 16:29:13\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 4\\n\\nthin training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples. Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains. Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19]. In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network. In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 6.8571, + "rag_initialization_seconds": 4.4579, + "query_execution_seconds": 2.3992, + "start_timestamp": "2025-08-16T09:43:13.351837", + "end_timestamp": "2025-08-16T09:43:20.208976" + }, + "metadata": { + "saved_at": "2025-08-16T09:43:20.208975", + "file_path": "retrieval_logs\\retrieval_20250816_094320_208_mix_k3_ck2_What_is_the_core_problem_that_the_Transformer_arch.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_094330_697_mix_k10_ck4_How_does_the_self-attention_mechanism_in_Transform.json b/retrieval_logs/retrieval_20250816_094330_697_mix_k10_ck4_How_does_the_self-attention_mechanism_in_Transform.json new file mode 100644 index 0000000000000000000000000000000000000000..2462963f26ee20b5817939a1189a47adec668fd7 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_094330_697_mix_k10_ck4_How_does_the_self-attention_mechanism_in_Transform.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:43:30.697227", + "query": "How does the self-attention mechanism in Transformers differ from traditional recurrent or convolutional approaches for sequence processing?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 34826, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"A neural attention model for abstractive sentence summarization\", \"type\": \"methodology\", \"description\": \"This refers to a neural attention model for abstractive sentence summarization, as presented in the arXiv preprint arXiv:1509.00685.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Neural architectures for named entity recognition\", \"type\": \"methodology\", \"description\": \"This refers to the neural architectures used for named entity recognition, as presented in the arXiv preprint arXiv:1603.01360.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"deep learning architectures\", \"type\": \"methodology\", \"description\": \"deep learning architectures are modern systems that utilize fundamental attention mechanisms, particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"natural language processing\", \"type\": \"abstract\", \"description\": \"Natural Language Processing (NLP) is a significant field that relies on adapting large-scale, pre-trained language models to various downstream applications and particular tasks or domains. NLP has been greatly enhanced by advancements in language models, leading to broader applications across various fields. Within NLP, fundamental attention mechanisms are particularly utilized. Mixture of Experts (MoE) has seen recent applications in NLP, presenting multiple important subproblems that require further investigation, and is an area where MoE applications are reviewed in depth in the paper.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Comparison of Self-Attention Layers\", \"type\": \"discussion\", \"description\": \"A section introduced to compare various aspects of self-attention layers to recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations to another sequence of equal length.\", \"created_at\": \"2025-08-15 18:29:32\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Neural machine translation by jointly learning to align and translate\", \"type\": \"methodology\", \"description\": \"This refers to a methodology for neural machine translation that involves learning to align and translate simultaneously.This refers to the methodology of neural machine translation that jointly learns to align and translate, as presented in the arXiv preprint arXiv:1409.0473.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"encoder-decoder attention\", \"type\": \"methodology\", \"description\": \"This is one of the three ways multi-head attention is used in the Transformer. In these layers, queries originate from the previous decoder layer, while memory keys and values are sourced from the encoder's output. This enables every decoder position to attend to all positions in the input sequence, mirroring attention mechanisms in sequence-to-sequence models like those in references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"multi-headed self-attention\", \"type\": \"methodology\", \"description\": \"Multi-headed self-attention is a component of the Transformer, replacing recurrent layers in encoder-decoder architectures.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"sequence-to-sequence models\", \"type\": \"methodology\", \"description\": \"Sequence-to-sequence models are mentioned as examples of models that use typical encoder-decoder attention mechanisms, which the Transformer mimics.\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Attention mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms account for the remaining parameters in transformer models not made up by FFNs.Attention mechanisms allow modeling of dependencies without regard to their distance in the input or output sequences, and are an integral part of sequence modeling and transduction models.\", \"created_at\": \"2025-08-15 16:40:55\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"End-to-end memory networks\", \"type\": \"methodology\", \"description\": \"End-to-end memory networks are a methodology discussed in the text.End-to-end memory networks utilize a recurrent attention mechanism instead of sequence-aligned recurrence and have demonstrated good performance in tasks like simple-language question answering and language modeling.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:35\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Input Sequence\", \"type\": \"abstract\", \"description\": \"In encoder-decoder attention, every position in the decoder is allowed to attend over all positions in the input sequence.The input sequence consists of the words: 'The', 'Law', 'will', 'never', 'be', 'perfect', ',', 'but', 'its', 'application', 'should', 'be', 'just', 'this', 'is', 'what', 'we', 'are', 'missing', '.', 'in', 'my', 'opinion', '', ''\", \"created_at\": \"2025-08-15 18:26:37\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"The attention mechanism\", \"type\": \"methodology\", \"description\": \"The attention mechanism visualizes input and output sequences with words aligned vertically. Lines connecting words represent attention scores, with thicker and brighter lines indicating higher attention. One visualization uses green lines to show attention heads focusing on specific relationships, including attending strongly to identical words in input and output, and cross-word attentions between words like 'perfect' and 'application'. The green lines exhibit a pattern of attending to nearby words and some longer-range dependencies.\", \"created_at\": \"2025-08-15 15:01:33\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Effective approaches to attention-based neural machine translation\", \"type\": \"methodology\", \"description\": \"This discusses effective strategies for neural machine translation that utilize attention mechanisms.\", \"created_at\": \"2025-08-15 14:57:59\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Neural machine translation in linear time\", \"type\": \"methodology\", \"description\": \"A methodology discussed in the text, cited from Kalchbrenner et al. (2017).This refers to a method for neural machine translation that operates in linear time.\", \"created_at\": \"2025-08-15 14:57:59\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"Attention Visualizations\", \"type\": \"methodology\", \"description\": \"The image displays a visualization of an attention mechanism, specifically illustrating how different \\\"heads\\\" within a neural network layer attend to various words in a sequence.This refers to a section of the document that visualizes attention mechanisms, specifically showing long-distance dependencies in the encoder self-attention in layer 5 of 6.\", \"created_at\": \"2025-08-15 15:02:15\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"Deep recurrent models with fast-forward connections for neural machine translation\", \"type\": \"abstract\", \"description\": \"Description not available in text.\", \"created_at\": \"2025-08-15 15:00:15\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"A neural attention model for abstractive sentence summarization\", \"entity2\": \"Neural architectures for named entity recognition\", \"description\": \"Both are neural network-based methodologies, with the former focusing on named entity recognition and the latter on abstractive sentence summarization.\", \"created_at\": \"2025-08-15 15:48:17\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"MoE\", \"entity2\": \"Transformer\", \"description\": \"MoE layers typically replace the Feed-Forward Network (FFN) layer within a Transformer block when MoE is incorporated into existing Transformer models.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"deep learning architectures\", \"entity2\": \"natural language processing\", \"description\": \"Deep learning architectures utilize fundamental attention mechanisms particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Transformer\", \"description\": \"Multi-Head Attention is employed within the Transformer to address the issue of reduced effective resolution arising from averaging attention-weighted positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"A neural attention model for abstractive sentence summarization\", \"entity2\": \"Neural machine translation by jointly learning to align and translate\", \"description\": \"Both methodologies leverage neural networks and attention mechanisms, with one focusing on translation and the other on summarization.\", \"created_at\": \"2025-08-15 15:48:20\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"GPT-2\", \"entity2\": \"Transformer\", \"description\": \"GPT-2 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"encoder-decoder attention\", \"entity2\": \"sequence-to-sequence models\", \"description\": \"Encoder-decoder attention in the Transformer mimics the attention mechanisms found in sequence-to-sequence models, citing references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mamba\", \"entity2\": \"Transformer\", \"description\": \"Mamba differs from Transformer in its approach to accessing hidden states, with Mamba focusing on the immediate previous hidden state and Transformer requiring access to all previous hidden states.Mamba offers a solution to the Transformer's drawback of quadratic time complexity during inference by relying only on the last hidden state, leading to faster inference speeds.Transformer uses attention heads for recall, while Mamba uses SSM heads for context summarization, highlighting different approaches to sequence processing.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"End-to-end memory networks\", \"entity2\": \"Self-attention\", \"description\": \"Both self-attention and end-to-end memory networks are attention mechanisms used in sequence processing tasks, with end-to-end memory networks specifically using a recurrent attention mechanism.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Figure 5\", \"entity2\": \"Transformer\", \"description\": \"Figure 5 implicitly shows the Transformer's slower inference speeds by comparison to Mamba.\", \"created_at\": \"2025-08-15 16:21:47\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Input Sequence\", \"entity2\": \"The attention mechanism\", \"description\": \"The attention mechanism visualizes the input sequence, showing words aligned vertically.\", \"created_at\": \"2025-08-15 15:01:33\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"MoE layer\", \"entity2\": \"Transformer\", \"description\": \"The MoE layer replaces the Feed-Forward Network (FFN) layer within a Transformer block.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Effective approaches to attention-based neural machine translation\", \"entity2\": \"Neural machine translation in linear time\", \"description\": \"Both entries relate to neural machine translation, with one focusing on linear time and the other on attention-based approaches, suggesting a connection in the field.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Hymba\", \"entity2\": \"Transformer\", \"description\": \"Hymba integrates attention heads, similar to those in the Transformer, within its layers.\", \"created_at\": \"2025-08-15 16:29:28\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Transformer\", \"entity2\": \"ΔWq\", \"description\": \"ΔWq is obtained from layers within a Transformer network.ΔWq represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:28\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Attention Visualizations\", \"entity2\": \"Deep recurrent models with fast-forward connections for neural machine translation\", \"description\": \"The visualization of the attention mechanism could be used to understand or explain the behavior of deep recurrent models.\", \"created_at\": \"2025-08-15 15:00:16\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Transformer\", \"entity2\": \"ΔWv\", \"description\": \"ΔWv represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Transformer\", \"entity2\": \"language modeling\", \"description\": \"The Transformer is implied to be relevant to language modeling tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Recurrence\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture dispenses with recurrence.The Transformer dispenses with recurrence, which is a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"BLEU scores\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model's performance is measured by its BLEU scores.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Emergent Modularity phenomenon\", \"entity2\": \"Transformer\", \"description\": \"The Emergent Modularity phenomenon is observed in pre-trained Transformer models.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"Convolutions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer dispenses with convolutions, which are a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Feed-Forward Network (FFN) layer\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer that is replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:18:38\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"State Space Models (SSMs)\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's attention mechanism has a drawback of quadratic time complexity, while State Space Models (SSMs) enable faster inference speeds by relying on the last hidden state.\", \"created_at\": \"2025-08-15 16:21:42\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Transformer\", \"entity2\": \"Vaswani et al.\", \"description\": \"Vaswani et al. are associated with the development or publication of the Transformer architecture.Vaswani et al. are the authors of the Transformer architecture.\", \"created_at\": \"2025-08-13 22:49:38\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder structure\", \"description\": \"\\\"The Transformer generally adopts an encoder-decoder structure.\\\")The Transformer is a transduction model that, unlike most competitive neural sequence transduction models, does not explicitly state it uses an encoder-decoder structure, but rather relies on self-attention.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"English Constituency Parsing\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is being evaluated on the task of English Constituency Parsing to assess its generalization capabilities.\", \"created_at\": \"2025-08-15 14:55:59\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"Transformer\", \"entity2\": \"newstest2014\", \"description\": \"The Transformer model is evaluated on the newstest2014 test set for translation tasks.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Transformer\", \"entity2\": \"images, audio and video\", \"description\": \"\\\"The Transformer is planned to be extended to problems involving input and output modalities other than text, such as images, audio, and video.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"English-to-French\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-French translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Constant number of operations\", \"entity2\": \"Transformer\", \"description\": \"The Transformer achieves a constant number of operations to learn dependencies between distant positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Making generation less sequential\", \"entity2\": \"Transformer\", \"description\": \"Making generation less sequential is a planned enhancement for the Transformer model.\", \"created_at\": \"2025-08-15 14:57:21\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"Feed-Forward Network (FFN)\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer block that can be replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"SVD\", \"entity2\": \"Transformer\", \"description\": \"The SVD method is applied to matrices (ΔW) derived from a Transformer's layers.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Transformer\", \"entity2\": \"simple-language question answering\", \"description\": \"The Transformer is implied to be relevant to simple-language question answering tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 6\\n\\nThis makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 4\\n\\nthin training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples. Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains. Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19]. In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network. In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 55\\n\\n118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\\\Delta \\\\mathbf { W } = \\\\mathbf { A } \\\\mathbf { B } ^ { \\\\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\\\mathbf { W } _ { \\\\mathrm { f t } } = \\\\mathbf { W } + \\\\alpha \\\\Delta \\\\mathbf { W }$ where $\\\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.4371, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.4371, + "start_timestamp": "2025-08-16T09:43:27.260141", + "end_timestamp": "2025-08-16T09:43:30.697227" + }, + "metadata": { + "saved_at": "2025-08-16T09:43:30.697227", + "file_path": "retrieval_logs\\retrieval_20250816_094330_697_mix_k10_ck4_How_does_the_self-attention_mechanism_in_Transform.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_094342_756_mix_k10_ck4_What_are_the_key_architectural_innovations_of_the_.json b/retrieval_logs/retrieval_20250816_094342_756_mix_k10_ck4_What_are_the_key_architectural_innovations_of_the_.json new file mode 100644 index 0000000000000000000000000000000000000000..cb854b7100dbb9989fc7ea953b56198fbb69921a --- /dev/null +++ b/retrieval_logs/retrieval_20250816_094342_756_mix_k10_ck4_What_are_the_key_architectural_innovations_of_the_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:43:42.756842", + "query": "What are the key architectural innovations of the Transformer model compared to previous state-of-the-art sequence models like LSTMs or GRUs?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 28724, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"attention mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are neural network components that can be integrated with MoE architectures.\", \"created_at\": \"2025-08-15 15:43:01\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Sequence-aligned RNNs\", \"type\": \"methodology\", \"description\": \"Sequence-aligned RNNs (Recurrent Neural Networks) are a type of model that previous transduction models used, but the Transformer is noted for not using them to compute representations.\", \"created_at\": \"2025-08-15 18:34:17\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"The Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a model architecture that follows an overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder. It notably uses multi-head attention in three different ways, including encoder-decoder attention layers and self-attention layers within its encoder. This model allows for significantly more parallelization and achieves better BLEU scores than previous state-of-the-art models on the English-to-German and English-to-French newstest2014 tests. The Transformer can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs, representing a fraction of the training cost compared to prior models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.\", \"created_at\": \"2025-08-15 21:42:55\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Attention Mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are the core component of the Transformer architecture, replacing recurrence and convolutions.Attention mechanisms are used to connect the encoder and decoder in the best performing sequence transduction models. The proposed Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:11\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"attention\", \"type\": \"methodology\", \"description\": \"Attention is a mechanism utilized in the Transformer model, which is the first sequence transduction model to rely entirely on attention. Within the Transformer, attention is implemented through various forms, including multi-head attention, encoder-decoder attention, and self-attention. Furthermore, attention serves as a component within the same layer as SSM heads, enabling parallel and complementary processing of inputs. For experimental purposes, attention was also selected as a parameter.Attention was selected as a parameter for experiments.\", \"created_at\": \"2025-08-15 14:56:17\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Radford et al.\", \"type\": \"person\", \"description\": \"Radford et al. are authors whose work focuses on transformer models, specifically their application to autoregressive language modeling. Their publications include papers detailing the GPT-2 model, and they are known for their contributions to fine-tuning these transformer-based models. While some details of their work remain unavailable, the consistent information points to their significant authorship in the development and refinement of GPT-2 and similar models.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"GPT\", \"type\": \"abstract\", \"description\": \"GPT is a Large Language Model (LLM) that is a generic multi-task learner based on the Transformer architecture. It is an example of a pre-trained autoregressive language model and a decoder-based model that employs Next Token Prediction (NTP) as its methodology. GPT widely uses GELU for better gradient flow control and excels at sensemaking in complex domains.GPT is a type of language model that has emergent abilities.\", \"created_at\": \"2025-08-15 17:09:27\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"statistical model\", \"type\": \"methodology\", \"description\": \"A statistical model is utilized by EdgeMoE, built offline, to estimate expert activation probabilities in transformer layers from previous activations.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"transformer layers\", \"type\": \"methodology\", \"description\": \"Transformer layers are components within MoE architectures where EdgeMoE estimates expert activation probabilities.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Transformer architecture\", \"type\": \"methodology\", \"description\": \"The Transformer architecture is a neural network architecture widely used in language modeling and as a component of large language models. It generally adopts an encoder-decoder structure, though decoder-only variations also exist. Key components of the Transformer architecture include self-attention mechanisms, which are crucial for managing long-range text dependencies and maintaining performance with constrained resources, feedforward networks, positional embeddings that typically employ a sinusoidal function, and layer normalization. The architecture's dimensions are described using conventional terminologies, such as input and output dimension size ($d_{model}$), query/key/value/output projection matrices ($W_q$, $W_k$, $W_v$, $W_o$), and a pretrained weight matrix ($W$ or $W_0$). In the context of large language models, techniques like LoRA (Low-Rank Adaptation) can be integrated by injecting trainable rank decomposition matrices into each layer, thereby modifying the model structure. Specific metrics, such as per-wordpiece perplexities, are presented on datasets like the English-to-German translation development set, newstest2013. The detailed design of the Transformer architecture is provided in Section 5.The Transformer architecture uses Multi-Head Attention (MHA) as a key component. MHA is described as the first method that uses multiple heads to capture diverse information within the Transformer architecture.The Transformer architecture utilizes Multi-Head Attention (MHA) to capture diverse information. MHA employs multiple heads, each operating independently, to attend to different parts of the input sequence. The formula for MHA is given as MultiHead(Q, K, V) = Concat(head_1, head_2, ..., head_h)W^O, where head_i = Attention(QW_i^Q, KW_i^K, VW_i^V).\", \"created_at\": \"2025-08-15 16:23:09\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Abstract\", \"type\": \"abstract\", \"description\": \"Modern mobile devices have access to a wealth of data suitable for learning models, which in turn can greatly improve the user experience on the device. For example, language models can improve speech recognition and text entry, and image models can automatically select good photos. However, this rich data is often privacy sensitive, large in quantity, or both, which may preclude logging to the data center and training there using conventional approaches. We advocate an alternative that leaves the training data distributed on the mobile devices, and learns a shared model by aggregating locally-computed updates. We term this decentralized approach Federated Learning.The abstract describes the dominant sequence transduction models as complex recurrent or convolutional neural networks with an encoder and decoder, often connected by an attention mechanism. It proposes a new, simpler network architecture called the Transformer, which relies solely on attention mechanisms and eliminates recurrence and convolutions.\", \"created_at\": \"2025-08-15 15:02:51\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Sequence-aligned RNNs\", \"entity2\": \"The Transformer\", \"description\": \"The Transformer is explicitly stated to compute representations 'without using sequence-aligned RNNs', highlighting a key architectural difference and innovation.\", \"created_at\": \"2025-08-15 18:35:17\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Section 22 development set\", \"entity2\": \"attention\", \"description\": \"Attention was selected on the Section 22 development set.\", \"created_at\": \"2025-08-15 17:28:28\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Mamba 2\", \"entity2\": \"attention mechanisms\", \"description\": \"Mamba 2 develops a theoretical framework linking SSMs with attention mechanisms.\", \"created_at\": \"2025-08-15 16:29:13\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Abstract\", \"entity2\": \"Attention Mechanisms\", \"description\": \"The abstract mentions attention mechanisms as a key component of both existing models and the proposed Transformer.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"End-to-end memory networks\", \"entity2\": \"Self-attention\", \"description\": \"Both self-attention and end-to-end memory networks are attention mechanisms used in sequence processing tasks, with end-to-end memory networks specifically using a recurrent attention mechanism.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"statistical model\", \"entity2\": \"transformer layers\", \"description\": \"The statistical model estimates expert activation probabilities in transformer layers.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Transformer architecture\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures such as Mamba, Hymba, and xLSTM are proposed to alleviate the inference cost of the Transformer architecture due to its attention mechanism.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 30\\n\\nThe advanced training strategy to improve SLM performance will be introduced in Section 3. # 2.1 Architecture of SLMs SLMs commonly employ the Transformer architecture [346] (see Figure 4), which utilizes self-attention mechanisms to manage long-range text dependencies, essential for maintaining performance with constrained resources. However, due to the attention mechanism, Transformers have large inference cost. Hence, to alleviate the issue, several subquadratictime architectures such as Mamba [117], Hymba [90], and xLSTM [25] are proposed. Next, we will give details of Transformer due to its popularity and briefly introduce newly emerged models. 2.1.1 Transformer. The Transformer’s self-attention mechanism [346] allows language models to efficiently capture contextual information across longer sequences, even with limited resources. The Transformer generally adopts an encoder-decoder structure featuring self-attention mechanisms, feedforward networks, positional embeddings, and layer normalization.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 43\\n\\n[IMAGE]\\nFig. 5. Mamba 1 architecture [117]. In language modeling, Mamba 1 [117] is pre-trained on the Pile dataset [108] using the training recipe from [37] and ranges from 125M to 1.3B parameters. It outperforms comparable models such as Pythia [31] and RWKV [270] in various tasks; for instance, Mamba-1.4B achieves a $3 2 . 8 \\\\%$ accuracy on the Arc-Challenge [65] dataset, surpassing Pythia-1.4B’s $2 8 . 5 \\\\%$ and RWKV-1.5B’s $2 9 . 4 \\\\%$ . Mamba 2 [75] develops a theoretical framework linking SSMs with attention mechanisms through structured semi-separable matrices, enhancing the selective SSM to achieve $2 { - } 8 \\\\mathrm { x }$ faster speeds while competing with Transformer models. Training and configuration for Mamba 2 align with Mamba 1. Additionally, Mamba-series models are applied widely across different fields [160, 280, 281, 463]. Other follow-up Mamba-based language models such as Falcon Mamba 7B [463] and Mistral 7B [160] also demonstrate the efficiency of the architecture for NLP tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Attention Is All You Need\\nChunk: 4\\n\\nthin training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples. Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains. Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19]. In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network. In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.4017, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 2.4017, + "start_timestamp": "2025-08-16T09:43:40.355159", + "end_timestamp": "2025-08-16T09:43:42.756843" + }, + "metadata": { + "saved_at": "2025-08-16T09:43:42.756842", + "file_path": "retrieval_logs\\retrieval_20250816_094342_756_mix_k10_ck4_What_are_the_key_architectural_innovations_of_the_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_094355_185_mix_k5_ck2_On_which_benchmark_datasets_and_tasks_were_Transfo.json b/retrieval_logs/retrieval_20250816_094355_185_mix_k5_ck2_On_which_benchmark_datasets_and_tasks_were_Transfo.json new file mode 100644 index 0000000000000000000000000000000000000000..2dda7579dee8f67d2a365a4458cc4ae5a58728b2 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_094355_185_mix_k5_ck2_On_which_benchmark_datasets_and_tasks_were_Transfo.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:43:55.185260", + "query": "On which benchmark datasets and tasks were Transformers initially evaluated, and what metrics were used to demonstrate their effectiveness?", + "query_mode": "mix", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 17862, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"MMLU performance\", \"type\": \"category\", \"description\": \"A measure of performance on the MMLU benchmark, affected by dataset quality and size.\", \"created_at\": \"2025-08-13 23:25:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"MT-Bench\", \"type\": \"event\", \"description\": \"MT-Bench is a benchmark dataset for open-domain question answering.\", \"created_at\": \"2025-08-13 23:26:55\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"benchmark datasets\", \"type\": \"results\", \"description\": \"Benchmark datasets are used to evaluate the performance of the Pangu 1.5B pro model, which achieves an average performance increase of 8.87% on them.\", \"created_at\": \"2025-08-15 16:27:21\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"statistical model\", \"type\": \"methodology\", \"description\": \"A statistical model is utilized by EdgeMoE, built offline, to estimate expert activation probabilities in transformer layers from previous activations.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Benchmarking and Leaderboard Platforms for SLMs\", \"type\": \"connection\", \"description\": \"The text advocates for the creation of benchmarking and leaderboard platforms for SLMs to address issues related to proprietary datasets and the lack of domain-specific evaluations.\", \"created_at\": \"2025-08-15 17:06:39\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"transformer layers\", \"type\": \"methodology\", \"description\": \"Transformer layers are components within MoE architectures where EdgeMoE estimates expert activation probabilities.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"GLUE Benchmark\", \"type\": \"event\", \"description\": \"GLUE Benchmark is a collection of natural language understanding tasks.\", \"created_at\": \"2025-08-13 22:58:23\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Switch-Transformer\", \"type\": \"methodology\", \"description\": \"Switch-Transformer proposes a parameter migration strategy that leverages the memory space of multiple devices in a collective manner to store a large volume of parameters through parallel communication mechanisms. This method effectively distributes the pressure of parameter storage, enhancing the system’s overall storage capacity and computational efficiency.\", \"created_at\": \"2025-08-15 15:23:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"parameter migration strategy\", \"type\": \"methodology\", \"description\": \"A strategy proposed by Switch-Transformer that leverages the memory space of multiple devices in a collective manner to store a large volume of parameters through parallel communication mechanisms, distributing storage pressure and enhancing capacity and efficiency.\", \"created_at\": \"2025-08-15 15:23:10\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"FLAN v2\", \"entity2\": \"MMLU performance\", \"description\": \"The 'FLAN v2' dataset's performance on the MMLU benchmark is shown in the table, varying with epochs and datapoints.\", \"created_at\": \"2025-08-13 23:25:28\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"GLUE Benchmark\", \"entity2\": \"MNLI\", \"description\": \"MNLI is one of the tasks included in the GLUE Benchmark.\", \"created_at\": \"2025-08-13 22:58:26\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"statistical model\", \"entity2\": \"transformer layers\", \"description\": \"The statistical model estimates expert activation probabilities in transformer layers.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"MT-Bench\", \"entity2\": \"vector RAG\", \"description\": \"MT-Bench is a benchmark dataset oriented towards evaluating vector RAG performance.\", \"created_at\": \"2025-08-13 23:27:01\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"MMLU performance\", \"entity2\": \"Unnatural Instructions\", \"description\": \"The 'Unnatural Instructions' dataset's performance on the MMLU benchmark is shown in the table, varying with epochs and datapoints.\", \"created_at\": \"2025-08-13 23:25:24\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Switch-Transformer\", \"entity2\": \"parameter migration strategy\", \"description\": \"Switch-Transformer proposes the parameter migration strategy.\", \"created_at\": \"2025-08-15 15:23:14\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"AdapterL\", \"entity2\": \"GLUE Benchmark\", \"description\": \"AdapterL's performance is also evaluated on tasks within the GLUE Benchmark, showing reduced latency slow-down with larger batch sizes and sequence lengths.\", \"created_at\": \"2025-08-13 22:58:26\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"HotPotQA\", \"entity2\": \"MT-Bench\", \"description\": \"HotPotQA and MT-Bench are both benchmark datasets for open-domain question answering.\", \"created_at\": \"2025-08-13 23:27:01\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Dataset quality\", \"entity2\": \"MMLU performance\", \"description\": \"The quality of the dataset significantly affects the MMLU performance, more so than dataset size.\", \"created_at\": \"2025-08-13 23:25:31\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Chip\", \"entity2\": \"MMLU performance\", \"description\": \"The 'Chip' dataset's performance on the MMLU benchmark is shown in the table, varying with epochs and datapoints.\", \"created_at\": \"2025-08-13 23:25:24\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Pangu 1.5B pro model\", \"entity2\": \"benchmark datasets\", \"description\": \"\\\"The Pangu 1.5B pro model demonstrates superior performance on multiple benchmark datasets compared to other models.\\\")\", \"created_at\": \"2025-08-15 16:27:26\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Datapoints\", \"entity2\": \"MMLU performance\", \"description\": \"MMLU performance varies across different numbers of data points for each dataset.\", \"created_at\": \"2025-08-13 23:25:32\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Epochs\", \"entity2\": \"MMLU performance\", \"description\": \"MMLU performance varies across different numbers of epochs for each dataset.\", \"created_at\": \"2025-08-13 23:25:32\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"AdapterH\", \"entity2\": \"GLUE Benchmark\", \"description\": \"AdapterH's performance is evaluated on tasks within the GLUE Benchmark, showing reduced latency slow-down with larger batch sizes and sequence lengths.\", \"created_at\": \"2025-08-13 22:58:25\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Dataset size\", \"entity2\": \"MMLU performance\", \"description\": \"The size of the dataset influences the MMLU performance, although less significantly than dataset quality according to the text.\", \"created_at\": \"2025-08-13 23:25:31\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"MT-Bench\", \"entity2\": \"Zheng et al.\", \"description\": \"Zheng et al. are associated with the creation or development of the MT-Bench benchmark dataset.\", \"created_at\": \"2025-08-13 23:26:55\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 10\\n\\nlargely agree on the rank of model performance in the tournaments, but we also find there are instances of strong disagreement. As such, we highlight that model-based evaluation while providing a cheap alternative to human-annotation also has its uncertainties. We augment our chatbot benchmark results with a qualitative analysis of Guanaco models. Our analysis highlights success and failure cases that were not captured by the quantitative benchmarks. We release all model generations with human and GPT-4 annotations to facilitate further study. We open-source our codebase and CUDA kernels and integrate our methods into the Hugging Face transformers stack [64], making them easily accessible to all. We release a collection of adapters for 7/13/33/65B size models, trained on 8 different instruction following datasets, for a total of 32 different open sourced, finetuned models. [IMAGE]\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.1302, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.1302, + "start_timestamp": "2025-08-16T09:43:52.054556", + "end_timestamp": "2025-08-16T09:43:55.184730" + }, + "metadata": { + "saved_at": "2025-08-16T09:43:55.185260", + "file_path": "retrieval_logs\\retrieval_20250816_094355_185_mix_k5_ck2_On_which_benchmark_datasets_and_tasks_were_Transfo.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_094402_827_mix_k10_ck4_How_does_the_performance_of_Transformer_models_com.json b/retrieval_logs/retrieval_20250816_094402_827_mix_k10_ck4_How_does_the_performance_of_Transformer_models_com.json new file mode 100644 index 0000000000000000000000000000000000000000..b122c08ba20b774fff8c396b8e950d84718406b4 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_094402_827_mix_k10_ck4_How_does_the_performance_of_Transformer_models_com.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:44:02.827460", + "query": "How does the performance of Transformer models compare to recurrent neural networks (RNNs) and convolutional neural networks (CNNs) on standard NLP tasks?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 43763, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-15 17:08:15\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"NLU\", \"type\": \"abstract\", \"description\": \"NLU (Natural Language Understanding) development is hindered by the complexity, ambiguity, and diversity of human language.NLU is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-15 15:43:09\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"RNNs\", \"type\": \"methodology\", \"description\": \"RNNs (Recurrent Neural Networks) are sequence-aligned models that the Transformer does not use.\", \"created_at\": \"2025-08-15 14:58:24\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"NLG\", \"type\": \"category\", \"description\": \"NLG is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-13 22:43:49\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Recurrent Neural Networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including long short-term memory (LSTM) and gated recurrent units (GRU), have been firmly established as state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"LSTMs\", \"type\": \"methodology\", \"description\": \"LSTMs are a type of recurrent neural network that have achieved state-of-the-art results for language modeling tasks.LSTMs are used to replace expert networks in MoE, leveraging their advantage in handling sequential data for processing user activity data streams.LSTMs are utilized by MMoE to handle sequential data and improve performance in processing user activity data streams.\", \"created_at\": \"2025-08-15 15:25:22\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"language modeling tasks\", \"type\": \"methodology\", \"description\": \"Language modeling tasks are tasks for which recurrent neural networks, and in particular LSTMs, have achieved state-of-the-art results.\", \"created_at\": \"2025-08-15 15:03:34\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks are employed in the routing strategy to dynamically adjust expert selection based on input sequence context.Recurrent neural networks, particularly LSTMs, have achieved state-of-the-art results for language modeling tasks.\", \"created_at\": \"2025-08-15 15:14:28\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"RNN sequence-to-sequence models\", \"type\": \"methodology\", \"description\": \"RNN sequence-to-sequence models are mentioned as having limitations in achieving state-of-the-art results for English Constituency Parsing, particularly in small-data regimes.\", \"created_at\": \"2025-08-15 14:55:53\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"deep learning architectures\", \"type\": \"methodology\", \"description\": \"deep learning architectures are modern systems that utilize fundamental attention mechanisms, particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"natural language processing\", \"type\": \"abstract\", \"description\": \"Natural Language Processing (NLP) is a significant field that relies on adapting large-scale, pre-trained language models to various downstream applications and particular tasks or domains. NLP has been greatly enhanced by advancements in language models, leading to broader applications across various fields. Within NLP, fundamental attention mechanisms are particularly utilized. Mixture of Experts (MoE) has seen recent applications in NLP, presenting multiple important subproblems that require further investigation, and is an area where MoE applications are reviewed in depth in the paper.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes\", \"type\": \"methodology\", \"description\": \"This methodology aims to outperform larger language models by using less training data and smaller model sizes, achieved through a step-by-step distillation process.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Lora: Low-rank adaptation of large language models\", \"type\": \"methodology\", \"description\": \"Lora is a method for adapting large language models, as described in an arXiv preprint from 2021.This methodology, also known as LoRA, is a technique for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"MoEs in deep learning\", \"type\": \"abstract\", \"description\": \"This research aims to understand the behaviors of Mixture-of-Experts (MoEs) in deep learning, addressing a gap in existing knowledge.\", \"created_at\": \"2025-08-15 15:34:12\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"nonlinear MoE model\", \"type\": \"results\", \"description\": \"A nonlinear MoE model achieved better performance than a linear MoE model.\", \"created_at\": \"2025-08-15 15:34:13\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"linear MoE model\", \"type\": \"results\", \"description\": \"A linear MoE model performed slightly better than a single-expert model but was still outperformed by a nonlinear MoE model.\", \"created_at\": \"2025-08-15 15:34:12\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Large Language Models (LLMs)\", \"type\": \"abstract\", \"description\": \"LLMs tend to produce hallucinations and toxic content due to low-quality real-world training data. Directly eliminating low-quality content can diminish certain functionalities of LLMs, such as versatility. Refined data quality assessment criteria across dimensions such as factuality, safety, and diversity are crucial for real-world data used in LLMs.Large Language Models (LLMs) are powerful and versatile models characterized by their large size and extensive training data, excelling in language understanding and interactive decision-making. They demonstrate impressive performance and emergent abilities in tasks such as text generation, question answering, and reasoning, including multi-step reasoning for arithmetic, commonsense, and symbolic tasks when appropriately prompted. LLMs possess greater computational power and a deeper understanding of complex language patterns, enabling them to handle more intricate and nuanced tasks.\\n\\nLLMs are utilized in various frameworks for their deep semantic insights to refine discourse and intent labels, and in a filter-then-rerank approach to address poor performance on simpler Information Extraction (IE) tasks. They are also employed for reranking candidate labels predicted by Small Language Models (SLMs) for difficult samples and for handling 'hard' outliers or boundary cases. LLMs are used in conjunction with SLMs to handle rare categories in relation extraction and to generate empathetic responses, benefiting from SLM guidance for underrepresented categories and enhanced by SEMs for emotional and cognitive depth. LLMs can also be adapted to specific domains through strategies like 'Adapt-and-Distill'.\\n\\nThe outputs of LLMs can be adjusted through methods like Proxy-tuning, and their alignment can be framed as a test-time greedy search. Fine-tuning larger models, such as Falcon-180B, benefits LLMs. LLMs are the source from which smaller, more efficient models known as Small Language Models (SLMs) are derived, and SLMs can be obtained from LLMs. While LLMs exhibit strong comprehension and logical reasoning abilities that SLMs often struggle to match, they are computationally expensive due to their large size, leading to challenges like high inference latency and labor-intensive fine-tuning. This computational demand makes LLMs less ideal for resource-limited settings and can be a waste of resources for real-world applications that only require specific abilities and domain knowledge, as they may not match the performance of models tailored for specific tasks. SLMs, which are trained in domains different from LLMs, can sometimes outperform LLMs in specific tasks like web search, and SLMs equipped with Retrieval Augmented Generation (RAG) can perform comparably or better than LLMs like GPT-3.5 and GPT-4. LLMs are also a subject of discussion concerning serving them for inference, particularly regarding challenges related to KV cache memory consumption. LLMs are models that have been the subject of numerous studiesLarge Language Models (LLMs) are discussed in the context of adapting them to Small Language Model (SLM) contexts and augmenting their capabilities through proxies for fine-tuning and facilitating synergies. They are also mentioned in relation to the role SLMs play in augmenting their capabilities.\", \"created_at\": \"2025-08-15 17:07:58\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Small Language Models (SLMs)\", \"type\": \"abstract\", \"description\": \"Small Language Models (SLMs) are a focus of research, with efforts to improve their performance by optimizing teacher LLM selection and applying emerging techniques from larger LLMs.Small Language Models (SLMs) are smaller, more efficient language models, typically defined as having fewer than 7 billion parameters, though their size can extend to the largest manageable under limited resource conditions. Derived from larger language models (LLMs), SLMs are increasingly favored for their low inference latency, cost-effectiveness, efficient development, and easy customization and adaptability, offering savings in pre-training and inference with reduced memory and storage needs. This makes them vital for applications requiring efficient resource use and effective in resource-limited settings, including low-power devices like edge devices, by improving on-device processing through enhanced privacy, security, response times, and personalization. SLMs are optimized and fine-tuned on specific data and are essential in resource-limited settings. They exhibit diverse capabilities across domains and are being specialized through instruction tuning using LLMs-generated data. SLMs enhance recommendation systems due to their robust generalization, reasoning abilities, and in-context learning, addressing challenges like cold-start problems and distribution biases. SLMs support long-term planning, replace traditional encoders, and use parallel low-rank parameters to inject personalized user knowledge. They play a crucial role in web search, including document encoding, text reordering, and query rewriting. SLMs are also distilled from LLMs using the 'Adapt-and-Distill' strategy, though adapting both teacher and student models to the target domain can be time-consuming. SLMs have demonstrated significant potential in addressing issues associated with LLMs by achieving comparable performance for domain-specific problems, offering advantages in efficiency, cost, flexibility, and customization due to their reduced parameter count. They can also complement LLMs for task completion and are noted for their ability to process longer sequences more efficiently, which enhances their functionality under strict hardware constraints, utilizing activation functions like GeLU and SiLU and benefiting from efficient attention mechanisms. Parameter-sharing techniques are employed in their architecture design to minimize space usage and reduce size. SLMs are effective with adaptation techniques like LoRA, prefixtuning, and adapter modules, with Mamba considered more suitable for SLMs due to its parameter utilization. SLMs benefit from tokenization strategies that ensure a balance between vocabulary coverage and model compactness, crucial for improving generalization while minimizing computational demands, and are fine-tuned on specific tasks using parameter-efficient fine-tuning methods. SLMs are also the subject of improvement through methods like Supervised Fine-Tuning (SFT) and Knowledge Distillation (KD).\", \"created_at\": \"2025-08-15 17:08:36\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"MoE\", \"entity2\": \"Transformer\", \"description\": \"MoE layers typically replace the Feed-Forward Network (FFN) layer within a Transformer block when MoE is incorporated into existing Transformer models.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Transformer\", \"description\": \"Multi-Head Attention is employed within the Transformer to address the issue of reduced effective resolution arising from averaging attention-weighted positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LSTMs\", \"entity2\": \"language modeling tasks\", \"description\": \"\\\"LSTMs have achieved state-of-the-art results for language modeling tasks.\\\")\", \"created_at\": \"2025-08-15 15:03:45\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"GPT-2\", \"entity2\": \"Transformer\", \"description\": \"GPT-2 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"language modeling tasks\", \"entity2\": \"recurrent neural networks\", \"description\": \"\\\"Recurrent neural networks have achieved state-of-the-art results for language modeling tasks.\\\")\", \"created_at\": \"2025-08-15 15:03:37\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mamba\", \"entity2\": \"Transformer\", \"description\": \"Mamba differs from Transformer in its approach to accessing hidden states, with Mamba focusing on the immediate previous hidden state and Transformer requiring access to all previous hidden states.Mamba offers a solution to the Transformer's drawback of quadratic time complexity during inference by relying only on the last hidden state, leading to faster inference speeds.Transformer uses attention heads for recall, while Mamba uses SSM heads for context summarization, highlighting different approaches to sequence processing.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"deep learning architectures\", \"entity2\": \"natural language processing\", \"description\": \"Deep learning architectures utilize fundamental attention mechanisms particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Figure 5\", \"entity2\": \"Transformer\", \"description\": \"Figure 5 implicitly shows the Transformer's slower inference speeds by comparison to Mamba.\", \"created_at\": \"2025-08-15 16:21:47\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes\", \"entity2\": \"Lora: Low-rank adaptation of large language models\", \"description\": \"Both methodologies aim to achieve better performance with smaller models or less data, suggesting a potential connection in their goals or underlying principles.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"MoE layer\", \"entity2\": \"Transformer\", \"description\": \"The MoE layer replaces the Feed-Forward Network (FFN) layer within a Transformer block.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"MoEs in deep learning\", \"entity2\": \"nonlinear MoE model\", \"description\": \"The research compares the performance of nonlinear MoE models within the context of MoEs in deep learning.\", \"created_at\": \"2025-08-15 15:34:16\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Hymba\", \"entity2\": \"Transformer\", \"description\": \"Hymba integrates attention heads, similar to those in the Transformer, within its layers.\", \"created_at\": \"2025-08-15 16:29:28\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"MoEs in deep learning\", \"entity2\": \"linear MoE model\", \"description\": \"The research compares the performance of linear MoE models within the context of MoEs in deep learning.\", \"created_at\": \"2025-08-15 15:34:15\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Transformer\", \"entity2\": \"ΔWq\", \"description\": \"ΔWq is obtained from layers within a Transformer network.ΔWq represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:28\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Large Language Models (LLMs)\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"Large Language Models (LLMs) and Small Language Models (SLMs) are frequently compared, particularly in the context of Question Answering (QA) tasks. SLMs are derived from LLMs, with LLMs serving as their source, and they are discussed in the context of assisting LLMs. A key distinction lies in their training domains, which can create a \\\"Domain Gap\\\" between them. SLMs offer significant advantages in resource-constrained environments where the computational demands of LLMs are prohibitive, and they have shown considerable potential in mitigating challenges associated with LLMs, such as their computational expense and inefficiency for domain-specific tasks, while still achieving comparable performance. SLMs guide the LLM's generative process with initial predictions, enhancing the LLM's handling of underrepresented categories. However, SLMs generally struggle to match the comprehension and logical reasoning abilities of LLMs, especially when faced with out-of-domain questions. Despite this, SLMs can often outperform LLMs in web search tasks by employing techniques like supervised fine-tuning, soft prompt tuning, unsupervised contrastive loss, and reinforcement learning. The combined strengths of both SLMs and LLMs can be leveraged together to improve task completion, and leveraging their unique strengths enhances overall system performance and efficiency. LLMs are adapted to SLM contexts, and their capabilities are augmented by SLMs. SLMs can serve as operational proxies for LLMs, mimicking various LLM functionalities and assisting in managing data quality issues inherent in LLMs. Research on SLMs' trustworthiness is sparse compared to the numerous studies addressing trustworthiness issues in LLMs.\", \"created_at\": \"2025-08-15 17:08:09\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Transformer\", \"entity2\": \"ΔWv\", \"description\": \"ΔWv represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Transformer\", \"entity2\": \"language modeling\", \"description\": \"The Transformer is implied to be relevant to language modeling tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Recurrence\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture dispenses with recurrence.The Transformer dispenses with recurrence, which is a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"BLEU scores\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model's performance is measured by its BLEU scores.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Emergent Modularity phenomenon\", \"entity2\": \"Transformer\", \"description\": \"The Emergent Modularity phenomenon is observed in pre-trained Transformer models.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"Convolutions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer dispenses with convolutions, which are a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Feed-Forward Network (FFN) layer\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer that is replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:18:38\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"State Space Models (SSMs)\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's attention mechanism has a drawback of quadratic time complexity, while State Space Models (SSMs) enable faster inference speeds by relying on the last hidden state.\", \"created_at\": \"2025-08-15 16:21:42\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Transformer\", \"entity2\": \"Vaswani et al.\", \"description\": \"Vaswani et al. are associated with the development or publication of the Transformer architecture.Vaswani et al. are the authors of the Transformer architecture.\", \"created_at\": \"2025-08-13 22:49:38\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder structure\", \"description\": \"\\\"The Transformer generally adopts an encoder-decoder structure.\\\")The Transformer is a transduction model that, unlike most competitive neural sequence transduction models, does not explicitly state it uses an encoder-decoder structure, but rather relies on self-attention.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"English Constituency Parsing\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is being evaluated on the task of English Constituency Parsing to assess its generalization capabilities.\", \"created_at\": \"2025-08-15 14:55:59\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Transformer\", \"entity2\": \"newstest2014\", \"description\": \"The Transformer model is evaluated on the newstest2014 test set for translation tasks.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Transformer\", \"entity2\": \"images, audio and video\", \"description\": \"\\\"The Transformer is planned to be extended to problems involving input and output modalities other than text, such as images, audio, and video.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"English-to-French\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-French translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Constant number of operations\", \"entity2\": \"Transformer\", \"description\": \"The Transformer achieves a constant number of operations to learn dependencies between distant positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Making generation less sequential\", \"entity2\": \"Transformer\", \"description\": \"Making generation less sequential is a planned enhancement for the Transformer model.\", \"created_at\": \"2025-08-15 14:57:21\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"Feed-Forward Network (FFN)\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer block that can be replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"SVD\", \"entity2\": \"Transformer\", \"description\": \"The SVD method is applied to matrices (ΔW) derived from a Transformer's layers.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"Transformer\", \"entity2\": \"simple-language question answering\", \"description\": \"The Transformer is implied to be relevant to simple-language question answering tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequential Computation\", \"description\": \"The inherent characteristic of Recurrent Neural Networks is their sequential computation, where hidden states are generated based on previous states and current input.\", \"created_at\": \"2025-08-15 18:20:09\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"Gated Recurrent Units (GRU)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Gated Recurrent Units (GRU) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:55\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"Long Short-Term Memory (LSTM)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Long Short-Term Memory (LSTM) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"Encoder-Decoder Architectures\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Encoder-Decoder Architectures are mentioned alongside recurrent language models as areas where efforts have pushed boundaries, indicating a close relationship in the context of sequence modeling.\", \"created_at\": \"2025-08-15 18:21:27\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Recurrent Language Models\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Recurrent Language Models are a specific application or type of recurrent neural network whose boundaries have been pushed by research.\", \"created_at\": \"2025-08-15 18:21:11\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"transduction problems\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in transduction problems.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 44\\n\\n(2016) [8]generative93.3 Our results in Table 4 show that despite the lack of task-specific tuning our model performs surprisingly well, yielding better results than all previously reported models with the exception of the Recurrent Neural Network Grammar [8]. In contrast to RNN sequence-to-sequence models [37], the Transformer outperforms the BerkeleyParser [29] even when training only on the WSJ training set of 40K sentences. # 7 Conclusion In this work, we presented the Transformer, the first sequence transduction model based entirely on attention, replacing the recurrent layers most commonly used in encoder-decoder architectures with multi-headed self-attention. For translation tasks, the Transformer can be trained significantly faster than architectures based on recurrent or convolutional layers. On both WMT 2014 English-to-German and WMT 2014 English-to-French translation tasks, we achieve a new state of the art.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 114\\n\\n510241.1769.378.74950.46590.71492.5090 Table 18: Validation loss and test set metrics on E2E NLG Challenge achieved by LoRA with different rank $r$ using GPT-2 Medium. Unlike on GPT-3 where $r = 1$ suffices for many tasks, here the performance peaks at $r = 1 6$ for validation loss and $r = 4$ for BLEU, suggesting the GPT-2 Medium has a similar intrinsic rank for adaptation compared to GPT-3 175B. Note that some of our hyperparameters are tuned on $r = 4$ , which matches the parameter count of another baseline, and thus might not be optimal for other choices of $r$ . [IMAGE] *AI-generated description: This figure displays four heatmaps showing the normalized subspace similarity between singular directions of $W_q$ and $\\\\Delta W_q$ for different values of $r$, and a random baseline. The y-axis represents index $i$, and the x-axis represents index $j$.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 74\\n\\n1112–1122, New Orleans, Louisiana, June 2018. Association for Computational Linguistics. doi: 10.18653/v1/N18-1101. URL https://www.aclweb. org/anthology/N18-1101. Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Remi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick ´ von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pp. 38–45, Online, October 2020. Association for Computational Linguistics. URL https://www.aclweb.org/anthology/ 2020.emnlp-demos.6. Greg Yang and Edward J. Hu. Feature Learning in Infinite-Width Neural Networks. arXiv:2011.14522 [cond-mat], May 2021. URL http://arxiv.org/abs/2011.14522. arXiv: 2011.14522.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.5019, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 2.5019, + "start_timestamp": "2025-08-16T09:44:00.325578", + "end_timestamp": "2025-08-16T09:44:02.827460" + }, + "metadata": { + "saved_at": "2025-08-16T09:44:02.827460", + "file_path": "retrieval_logs\\retrieval_20250816_094402_827_mix_k10_ck4_How_does_the_performance_of_Transformer_models_com.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_094416_799_mix_k10_ck4_Beyond_machine_translation_what_are_some_of_the_ot.json b/retrieval_logs/retrieval_20250816_094416_799_mix_k10_ck4_Beyond_machine_translation_what_are_some_of_the_ot.json new file mode 100644 index 0000000000000000000000000000000000000000..0b7ffdc5e9cdc6adc97241bbedf86493ffd36aa8 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_094416_799_mix_k10_ck4_Beyond_machine_translation_what_are_some_of_the_ot.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:44:16.799319", + "query": "Beyond machine translation, what are some of the other significant applications and downstream tasks where Transformer models have shown remarkable success?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 24396, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Natural Language Processing Applications\", \"type\": \"connection\", \"description\": \"Natural Language Processing Applications are a broad domain where MoE is investigated, with tasks ranging from image classification to machine translation.\", \"created_at\": \"2025-08-15 15:36:26\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Computer Vision Applications\", \"type\": \"connection\", \"description\": \"Computer Vision Applications are a broad domain where MoE is investigated, with tasks ranging from image classification to machine translation.\", \"created_at\": \"2025-08-15 15:36:26\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"an in-depth review of applications of MoE in both computer vision and natural language processing\", \"type\": \"abstract\", \"description\": \"This is one of the key components summarized in the paper, providing a detailed examination of MoE's use in computer vision and natural language processing.\", \"created_at\": \"2025-08-15 15:19:27\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Natural Language Processing\", \"type\": \"connection\", \"description\": \"Natural Language Processing (NLP) is a core research area of artificial intelligence that focuses on enabling computers to understand, generate, and process human language. It plays a significant role in promoting human-computer interaction, information extraction, knowledge mining, cross-lingual communication, and automation.Natural Language Processing is a domain where Mixture-of-Experts is applied.Natural Language Processing is an application domain where MoE is investigated, with tasks including machine translation.\", \"created_at\": \"2025-08-15 15:18:17\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"statistical model\", \"type\": \"methodology\", \"description\": \"A statistical model is utilized by EdgeMoE, built offline, to estimate expert activation probabilities in transformer layers from previous activations.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"transformer layers\", \"type\": \"methodology\", \"description\": \"Transformer layers are components within MoE architectures where EdgeMoE estimates expert activation probabilities.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Machine Translation\", \"type\": \"abstract\", \"description\": \"Machine Translation is a field and a task within Natural Language Processing (NLP), specifically defined as the application of automatically translating text from one language to another. This process facilitates cross-lingual communication, information access, and global collaboration. As a specific problem within sequence modeling and transduction, recurrent neural networks (RNNs) have been considered state-of-the-art approaches for Machine Translation. The field also sees the application of hallucination detection. Machine Translation faces various challenges, including linguistic diversity, grammatical complexity, and cultural differences. The influence of Mixture of Experts (MoE) is examined in Machine Translation, where MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content.\", \"created_at\": \"2025-08-15 15:36:26\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"English-to-German\", \"type\": \"methodology\", \"description\": \"This refers to a translation task where the Transformer model is evaluated.\", \"created_at\": \"2025-08-15 14:55:05\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"attention-based models\", \"type\": \"possible enhancements\", \"description\": \"The authors are excited about their future and plan to apply them to other tasks.\", \"created_at\": \"2025-08-15 14:57:13\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Switch-Transformer\", \"type\": \"methodology\", \"description\": \"Switch-Transformer proposes a parameter migration strategy that leverages the memory space of multiple devices in a collective manner to store a large volume of parameters through parallel communication mechanisms. This method effectively distributes the pressure of parameter storage, enhancing the system’s overall storage capacity and computational efficiency.\", \"created_at\": \"2025-08-15 15:23:10\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"parameter migration strategy\", \"type\": \"methodology\", \"description\": \"A strategy proposed by Switch-Transformer that leverages the memory space of multiple devices in a collective manner to store a large volume of parameters through parallel communication mechanisms, distributing storage pressure and enhancing capacity and efficiency.\", \"created_at\": \"2025-08-15 15:23:10\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Radford et al.\", \"type\": \"person\", \"description\": \"Radford et al. are authors whose work focuses on transformer models, specifically their application to autoregressive language modeling. Their publications include papers detailing the GPT-2 model, and they are known for their contributions to fine-tuning these transformer-based models. While some details of their work remain unavailable, the consistent information points to their significant authorship in the development and refinement of GPT-2 and similar models.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"MoE\", \"entity2\": \"Natural Language Processing\", \"description\": \"MoE is investigated in the application domain of Natural Language Processing, highlighting its enhancements in specialization, scalability, and adaptability for tasks like machine translation.\", \"created_at\": \"2025-08-15 15:36:37\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Computer Vision Applications\", \"entity2\": \"MoE\", \"description\": \"\\\"MoE is investigated in Computer Vision Applications, highlighting its enhancements in specialization, scalability, and adaptability.\\\")\", \"created_at\": \"2025-08-15 15:36:37\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"MoE model\", \"entity2\": \"Natural Language Processing\", \"description\": \"The MoE model uses text prompts, which are processed by Natural Language Processing, to route input features based on texture attributes mentioned in the text prompt.\", \"created_at\": \"2025-08-15 15:28:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"statistical model\", \"entity2\": \"transformer layers\", \"description\": \"The statistical model estimates expert activation probabilities in transformer layers.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Mixture-of-Experts\", \"entity2\": \"Natural Language Processing\", \"description\": \"Mixture-of-Experts is applied in Natural Language Processing.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Artificial Intelligence\", \"entity2\": \"Natural Language Processing\", \"description\": \"Natural Language Processing is a domain where Artificial Intelligence has demonstrated remarkable successes.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Machine Translation\", \"entity2\": \"Natural Language Processing\", \"description\": \"Machine Translation is a task within Natural Language Processing where the influence of MoE is examined.\", \"created_at\": \"2025-08-15 15:36:26\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Machine Translation\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Machine Translation is an example of a sequence modeling and transduction problem where RNNs are state-of-the-art.\", \"created_at\": \"2025-08-15 18:19:40\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Switch-Transformer\", \"entity2\": \"parameter migration strategy\", \"description\": \"Switch-Transformer proposes the parameter migration strategy.\", \"created_at\": \"2025-08-15 15:23:14\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 44\\n\\n(2016) [8]generative93.3 Our results in Table 4 show that despite the lack of task-specific tuning our model performs surprisingly well, yielding better results than all previously reported models with the exception of the Recurrent Neural Network Grammar [8]. In contrast to RNN sequence-to-sequence models [37], the Transformer outperforms the BerkeleyParser [29] even when training only on the WSJ training set of 40K sentences. # 7 Conclusion In this work, we presented the Transformer, the first sequence transduction model based entirely on attention, replacing the recurrent layers most commonly used in encoder-decoder architectures with multi-headed self-attention. For translation tasks, the Transformer can be trained significantly faster than architectures based on recurrent or convolutional layers. On both WMT 2014 English-to-German and WMT 2014 English-to-French translation tasks, we achieve a new state of the art.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 151\\n\\noves the quality of generated sentences but also enriches the diversity of generated content at the semantic and logical levels. Experimental results show that LogicMoE achieves absolute improvements of 0.8 and 2.2 points in BLEU-3 scores [302], demonstrating the inherent advantages of LogicMoE in generation diversity and controllability. The optimization of MoE system design has also been explored [177] to enhance model efficiency in text processing tasks. (b) Machine Translation. Machine translation is the application of automatically translating text from one language to another, greatly facilitating cross-lingual communication, information access, and global collaboration [303], [304]. However, machine translation faces challenges such as linguistic diversity, grammatical complexity, and cultural differences. MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 113\\n\\nThen, we will discuss task-specific applications of SLMs and their deployment methods on mobile and edge devices. # 4.1 Task-specific SLM Applications This subsection explores the diverse NLP tasks to which SLMs can contribute. Question-answering and coding represent generative tasks, while recommender systems and web search (though not strictly within the NLP domain) typically leverage the encoding capabilities of SLMs. Additionally, the application of SLMs on mobile devices is particularly well-suited due to constraints in memory and computing resources. The representative works are systematically organized in Table 3. 4.1.1 SLM Applications in Question-Answering. Question-answering (QA) is a fundamental task in the NLP field, demanding language models to exhibit abilities in understanding language, reasoning, common sense, and recalling specialized knowledge. Typically, larger language models yield better QA performance.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.4284, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.4284, + "start_timestamp": "2025-08-16T09:44:13.370966", + "end_timestamp": "2025-08-16T09:44:16.799320" + }, + "metadata": { + "saved_at": "2025-08-16T09:44:16.799319", + "file_path": "retrieval_logs\\retrieval_20250816_094416_799_mix_k10_ck4_Beyond_machine_translation_what_are_some_of_the_ot.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_094428_798_hybrid_k10_ck4_Based_on_the_following_QA_about_Transformers_provi.json b/retrieval_logs/retrieval_20250816_094428_798_hybrid_k10_ck4_Based_on_the_following_QA_about_Transformers_provi.json new file mode 100644 index 0000000000000000000000000000000000000000..c01c2d35d40cf838df21df3603a88aaff1341600 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_094428_798_hybrid_k10_ck4_Based_on_the_following_QA_about_Transformers_provi.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:44:28.798996", + "query": "Based on the following Q&A about Transformers, provide a comprehensive research summary: [{'category': 'overview', 'question': 'What is the core problem that the Transformer architecture addresses in sequence modeling?', 'answer': 'The Transformer architecture addresses the core problem of sequential computation limitations in recurrent models by utilizing attention mechanisms to directly model dependencies across sequences, enabling greater parallelization and efficiency.'}, {'category': 'methodology', 'question': 'How does the self-attention mechanism in Transformers differ from traditional recurrent or convolutional approaches for sequence processing?', 'answer': \"The Transformer's self-attention mechanism differs from traditional recurrent and convolutional approaches by directly modeling dependencies regardless of sequence distance, enhancing parallelization and long-range dependency capture, unlike the sequential processing of RNNs or the local focus of CNNs.\"}, {'category': 'innovation', 'question': 'What are the key architectural innovations of the Transformer model compared to previous state-of-the-art sequence models like LSTMs or GRUs?', 'answer': \"The Transformer's key innovations include its sole reliance on attention mechanisms, enhanced parallelization, and efficient modeling of long-range dependencies, moving away from the sequential processing of RNNs like LSTMs and GRUs.\"}, {'category': 'evaluation', 'question': 'On which benchmark datasets and tasks were Transformers initially evaluated, and what metrics were used to demonstrate their effectiveness?', 'answer': 'The context lacks information on the initial benchmark datasets, tasks, and metrics used for evaluating Transformers.'}, {'category': 'comparison', 'question': 'How does the performance of Transformer models compare to recurrent neural networks (RNNs) and convolutional neural networks (CNNs) on standard NLP tasks?', 'answer': 'The Transformer architecture, leveraging self-attention, has surpassed traditional RNNs and CNNs in many NLP tasks due to its parallelizability and effectiveness in capturing long-range dependencies, leading to state-of-the-art performance in areas like machine translation.'}, {'category': 'applications', 'question': 'Beyond machine translation, what are some of the other significant applications and downstream tasks where Transformer models have shown remarkable success?', 'answer': 'Transformer models, initially noted for machine translation, have achieved significant success across various Natural Language Processing tasks, powering Large Language Models for applications like question-answering. Their attention-based mechanisms are also being explored for Computer Vision, and related techniques like Mixture-of-Experts are being integrated into both NLP and Computer Vision domains.'}]", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 26252, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"attention mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are neural network components that can be integrated with MoE architectures.\", \"created_at\": \"2025-08-15 15:43:01\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Attention Mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are the core component of the Transformer architecture, replacing recurrence and convolutions.Attention mechanisms are used to connect the encoder and decoder in the best performing sequence transduction models. The proposed Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:11\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Radford et al.\", \"type\": \"person\", \"description\": \"Radford et al. are authors whose work focuses on transformer models, specifically their application to autoregressive language modeling. Their publications include papers detailing the GPT-2 model, and they are known for their contributions to fine-tuning these transformer-based models. While some details of their work remain unavailable, the consistent information points to their significant authorship in the development and refinement of GPT-2 and similar models.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Comparison of Self-Attention Layers\", \"type\": \"discussion\", \"description\": \"A section introduced to compare various aspects of self-attention layers to recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations to another sequence of equal length.\", \"created_at\": \"2025-08-15 18:29:32\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"deep learning architectures\", \"type\": \"methodology\", \"description\": \"deep learning architectures are modern systems that utilize fundamental attention mechanisms, particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"natural language processing\", \"type\": \"abstract\", \"description\": \"Natural Language Processing (NLP) is a significant field that relies on adapting large-scale, pre-trained language models to various downstream applications and particular tasks or domains. NLP has been greatly enhanced by advancements in language models, leading to broader applications across various fields. Within NLP, fundamental attention mechanisms are particularly utilized. Mixture of Experts (MoE) has seen recent applications in NLP, presenting multiple important subproblems that require further investigation, and is an area where MoE applications are reviewed in depth in the paper.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Sequence-aligned RNNs\", \"type\": \"methodology\", \"description\": \"Sequence-aligned RNNs (Recurrent Neural Networks) are a type of model that previous transduction models used, but the Transformer is noted for not using them to compute representations.\", \"created_at\": \"2025-08-15 18:34:17\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"The Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a model architecture that follows an overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder. It notably uses multi-head attention in three different ways, including encoder-decoder attention layers and self-attention layers within its encoder. This model allows for significantly more parallelization and achieves better BLEU scores than previous state-of-the-art models on the English-to-German and English-to-French newstest2014 tests. The Transformer can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs, representing a fraction of the training cost compared to prior models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.\", \"created_at\": \"2025-08-15 21:42:55\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Grammar as a foreign language\", \"type\": \"methodology\", \"description\": \"Grammar as a foreign language is a methodology cited in the text.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Rethinking the inception architecture for computer vision\", \"type\": \"methodology\", \"description\": \"Rethinking the inception architecture for computer vision is a methodology referenced in the text.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Automatic speech recognition\", \"type\": \"methodology\", \"description\": \"This refers to the field of automatic speech recognition, as discussed in the book 'Automatic speech recognition, vol. 1' by Yu and Deng.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Neural architectures for named entity recognition\", \"type\": \"methodology\", \"description\": \"This refers to the neural architectures used for named entity recognition, as presented in the arXiv preprint arXiv:1603.01360.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"English-to-German\", \"type\": \"methodology\", \"description\": \"This refers to a translation task where the Transformer model is evaluated.\", \"created_at\": \"2025-08-15 14:55:05\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Transformer architecture\", \"entity2\": \"self-attention mechanisms\", \"description\": \"The Transformer architecture utilizes self-attention mechanisms to manage long-range text dependencies.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"deep learning architectures\", \"entity2\": \"natural language processing\", \"description\": \"Deep learning architectures utilize fundamental attention mechanisms particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Mamba 2\", \"entity2\": \"attention mechanisms\", \"description\": \"Mamba 2 develops a theoretical framework linking SSMs with attention mechanisms.\", \"created_at\": \"2025-08-15 16:29:13\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Sequence-aligned RNNs\", \"entity2\": \"The Transformer\", \"description\": \"The Transformer is explicitly stated to compute representations 'without using sequence-aligned RNNs', highlighting a key architectural difference and innovation.\", \"created_at\": \"2025-08-15 18:35:17\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Abstract\", \"entity2\": \"Attention Mechanisms\", \"description\": \"The abstract mentions attention mechanisms as a key component of both existing models and the proposed Transformer.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Grammar as a foreign language\", \"entity2\": \"Rethinking the inception architecture for computer vision\", \"description\": \"Both are methodologies presented in Advances in Neural Information Processing Systems, indicating a shared research domain.\", \"created_at\": \"2025-08-15 15:03:03\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Automatic speech recognition\", \"entity2\": \"Neural architectures for named entity recognition\", \"description\": \"Neural architectures for named entity recognition are a specific methodology within the broader field of automatic speech recognition.\", \"created_at\": \"2025-08-15 15:48:17\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 43\\n\\n[IMAGE]\\nFig. 5. Mamba 1 architecture [117]. In language modeling, Mamba 1 [117] is pre-trained on the Pile dataset [108] using the training recipe from [37] and ranges from 125M to 1.3B parameters. It outperforms comparable models such as Pythia [31] and RWKV [270] in various tasks; for instance, Mamba-1.4B achieves a $3 2 . 8 \\\\%$ accuracy on the Arc-Challenge [65] dataset, surpassing Pythia-1.4B’s $2 8 . 5 \\\\%$ and RWKV-1.5B’s $2 9 . 4 \\\\%$ . Mamba 2 [75] develops a theoretical framework linking SSMs with attention mechanisms through structured semi-separable matrices, enhancing the selective SSM to achieve $2 { - } 8 \\\\mathrm { x }$ faster speeds while competing with Transformer models. Training and configuration for Mamba 2 align with Mamba 1. Additionally, Mamba-series models are applied widely across different fields [160, 280, 281, 463]. Other follow-up Mamba-based language models such as Falcon Mamba 7B [463] and Mistral 7B [160] also demonstrate the efficiency of the architecture for NLP tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 20\\n\\nFor each of these we use $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h \\\\stackrel { } { = } \\\\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \\\"encoder-decoder attention\\\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 127\\n\\nf SLMs for coding offers an alternative to LLMs due to their lower computational needs and potential for domain-specific tuning. Despite LLMs’ proficiency in code generation and programming support, SLMs are advantageous for their faster inference, reduced operational costs, and suitability for real-time environments where rapid responses are crucial. Representative works are discussed next. The Phi series [1, 155, 200] showcase SLMs’ evolution in coding tasks. For instance, Phi-1 [120], a Transformer with 1.3B parameters, specializes in basic Python coding and achieves notable scores in benchmarks such as HumanEval [120], which includes 164 programming problems. Subsequent models, Phi-1.5 and Phi-2, have enhanced these capabilities, while Phi-3 demonstrated SLMs’ potential to rival larger models [1].\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.3792, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.3792, + "start_timestamp": "2025-08-16T09:44:25.419768", + "end_timestamp": "2025-08-16T09:44:28.798997" + }, + "metadata": { + "saved_at": "2025-08-16T09:44:28.798996", + "file_path": "retrieval_logs\\retrieval_20250816_094428_798_hybrid_k10_ck4_Based_on_the_following_QA_about_Transformers_provi.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_094440_731_mix_k10_ck4_What_are_Transformers.json b/retrieval_logs/retrieval_20250816_094440_731_mix_k10_ck4_What_are_Transformers.json new file mode 100644 index 0000000000000000000000000000000000000000..03c49fd743a0d5078d68e7b5b68fade3e98c8bc6 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_094440_731_mix_k10_ck4_What_are_Transformers.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:44:40.731814", + "query": "What are Transformers?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 31011, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"sequence-to-sequence models\", \"type\": \"methodology\", \"description\": \"Sequence-to-sequence models are mentioned as examples of models that use typical encoder-decoder attention mechanisms, which the Transformer mimics.\", \"created_at\": \"2025-08-15 14:56:17\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Rethinking the inception architecture for computer vision\", \"type\": \"methodology\", \"description\": \"Rethinking the inception architecture for computer vision is a methodology referenced in the text.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Sequence to sequence learning with neural networks\", \"type\": \"methodology\", \"description\": \"Sequence to sequence learning with neural networks is a methodology mentioned in the text.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Mixtures of experts for scaling up neural networks in order execution\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by K. Li, M. Cucuringu, L. Sanchez-Betancourt, and T. Willi, and was presented at the 5th ACM International Conference on AI in Finance in 2024.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Movement primitive learning and generalization: Using mixture density networks\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by Y. Zhou, J. Gao, and T. Asfour, and was published in IEEE Robotics & Automation Magazine in 2020.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Robust speech recognition via large-scale weak supervision\", \"type\": \"methodology\", \"description\": \"This methodology focuses on speech recognition using large-scale weak supervision and is presented in an international conference on machine learning.\", \"created_at\": \"2025-08-15 15:42:11\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Segment Anything\", \"type\": \"methodology\", \"description\": \"Segment Anything is a methodology presented in a conference proceeding.\", \"created_at\": \"2025-08-15 15:42:11\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"knowledge\", \"type\": \"abstract\", \"description\": \"Knowledge is acquired by neural networks and can be forgotten when learning new tasks.\", \"created_at\": \"2025-08-15 15:21:12\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"neural networks\", \"type\": \"methodology\", \"description\": \"Neural networks are models that consistently improve on various tasks with longer training times, larger datasets, and increased model sizes.Neural networks are susceptible to forgetting previously acquired knowledge when learning new tasks.Neural networks with dense layers are mentioned as a general category to which the proposed principles apply.\", \"created_at\": \"2025-08-15 16:21:04\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"End-to-end memory networks\", \"type\": \"methodology\", \"description\": \"End-to-end memory networks are a methodology discussed in the text.End-to-end memory networks utilize a recurrent attention mechanism instead of sequence-aligned recurrence and have demonstrated good performance in tasks like simple-language question answering and language modeling.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Convolutional networks\", \"type\": \"methodology\", \"description\": \"Convolutional networks are a type of deep network that provide state-of-the-art results.\", \"created_at\": \"2025-08-15 15:03:37\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"deep networks\", \"type\": \"methodology\", \"description\": \"Deep networks, particularly convolutional networks, are known to provide state-of-the-art results.Networks that are the subject of the learning approach discussed in the document.\", \"created_at\": \"2025-08-15 15:04:36\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"YOLOv\", \"type\": \"methodology\", \"description\": \"YOLOv is a methodology for object detection in still images, with applications to video object detection, presented in a conference proceeding.\", \"created_at\": \"2025-08-15 15:42:11\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"type\": \"abstract\", \"description\": \"This abstract discusses the use of mixtures of experts to unlock parameter scaling for deep reinforcement learning.This is a citation for a paper discussing mixtures of experts and parameter scaling in deep RL.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Modular learning systems for soccer robot\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems for soccer robots.This methodology focuses on modular learning systems for soccer robots.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Model-agnostic meta-learning for fast adaptation of deep networks\", \"type\": \"methodology\", \"description\": \"This is a methodology for fast adaptation of deep networks, cited as reference [226].\", \"created_at\": \"2025-08-15 15:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Reptile: a scalable metalearning algorithm\", \"type\": \"methodology\", \"description\": \"This is a scalable metalearning algorithm, cited as reference [227].\", \"created_at\": \"2025-08-15 15:51:07\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"type\": \"methodology\", \"description\": \"This is a citation for a paper on modular learning systems and scheduling for behavior acquisition in multi-agent environments.This methodology describes a modular learning system and scheduling for behavior acquisition in a multi-agent environment.\", \"created_at\": \"2025-08-15 15:44:14\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Rethinking the inception architecture for computer vision\", \"entity2\": \"Sequence to sequence learning with neural networks\", \"description\": \"Both are methodologies discussed in the context of neural networks and machine learning advancements.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"MoE\", \"entity2\": \"Transformer\", \"description\": \"MoE layers typically replace the Feed-Forward Network (FFN) layer within a Transformer block when MoE is incorporated into existing Transformer models.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Mixtures of experts for scaling up neural networks in order execution\", \"entity2\": \"Movement primitive learning and generalization: Using mixture density networks\", \"description\": \"Both methodologies utilize mixture-based approaches for learning and generalization in AI/robotics.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Transformer\", \"description\": \"Multi-Head Attention is employed within the Transformer to address the issue of reduced effective resolution arising from averaging attention-weighted positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Robust speech recognition via large-scale weak supervision\", \"entity2\": \"Segment Anything\", \"description\": \"Both are methodologies presented in major conferences in 2023, indicating advancements in AI and machine learning.\", \"created_at\": \"2025-08-15 15:42:14\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"GPT-2\", \"entity2\": \"Transformer\", \"description\": \"GPT-2 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"knowledge\", \"entity2\": \"neural networks\", \"description\": \"Neural networks acquire knowledge, which can be forgotten.\", \"created_at\": \"2025-08-15 15:21:13\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"End-to-end memory networks\", \"entity2\": \"Sequence to sequence learning with neural networks\", \"description\": \"Both are methodologies related to neural networks and machine learning, likely used in similar research contexts.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mamba\", \"entity2\": \"Transformer\", \"description\": \"Mamba differs from Transformer in its approach to accessing hidden states, with Mamba focusing on the immediate previous hidden state and Transformer requiring access to all previous hidden states.Mamba offers a solution to the Transformer's drawback of quadratic time complexity during inference by relying only on the last hidden state, leading to faster inference speeds.Transformer uses attention heads for recall, while Mamba uses SSM heads for context summarization, highlighting different approaches to sequence processing.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Convolutional networks\", \"entity2\": \"deep networks\", \"description\": \"\\\"Convolutional networks are a specific type of deep network.\\\")\", \"created_at\": \"2025-08-15 15:03:37\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Figure 5\", \"entity2\": \"Transformer\", \"description\": \"Figure 5 implicitly shows the Transformer's slower inference speeds by comparison to Mamba.\", \"created_at\": \"2025-08-15 16:21:47\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Robust speech recognition via large-scale weak supervision\", \"entity2\": \"YOLOv\", \"description\": \"Both are methodologies presented in major conferences in 2023, highlighting progress in AI and machine learning.\", \"created_at\": \"2025-08-15 15:42:14\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"MoE layer\", \"entity2\": \"Transformer\", \"description\": \"The MoE layer replaces the Feed-Forward Network (FFN) layer within a Transformer block.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning systems for soccer robot\", \"description\": \"Both entities relate to advancements in AI and learning systems, with the former focusing on deep RL and the latter on robotics.\", \"created_at\": \"2025-08-15 15:44:25\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Hymba\", \"entity2\": \"Transformer\", \"description\": \"Hymba integrates attention heads, similar to those in the Transformer, within its layers.\", \"created_at\": \"2025-08-15 16:29:28\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Model-agnostic meta-learning for fast adaptation of deep networks\", \"entity2\": \"Reptile: a scalable metalearning algorithm\", \"description\": \"Both are cited methodologies in the field of machine learning, and both explicitly deal with meta-learning and adaptation of deep networks.\", \"created_at\": \"2025-08-15 15:51:17\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Transformer\", \"entity2\": \"ΔWq\", \"description\": \"ΔWq is obtained from layers within a Transformer network.ΔWq represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:28\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Mixtures of experts unlock parameter scaling for deep rl\", \"entity2\": \"Modular learning system and scheduling for behavior acquisition in multi-agent environment\", \"description\": \"Both entities are related to learning systems, with one focusing on deep RL and the other on multi-agent environments.\", \"created_at\": \"2025-08-15 15:44:26\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Transformer\", \"entity2\": \"ΔWv\", \"description\": \"ΔWv represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Transformer\", \"entity2\": \"language modeling\", \"description\": \"The Transformer is implied to be relevant to language modeling tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Recurrence\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture dispenses with recurrence.The Transformer dispenses with recurrence, which is a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"BLEU scores\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model's performance is measured by its BLEU scores.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Emergent Modularity phenomenon\", \"entity2\": \"Transformer\", \"description\": \"The Emergent Modularity phenomenon is observed in pre-trained Transformer models.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Convolutions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer dispenses with convolutions, which are a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Feed-Forward Network (FFN) layer\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer that is replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:18:38\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"State Space Models (SSMs)\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's attention mechanism has a drawback of quadratic time complexity, while State Space Models (SSMs) enable faster inference speeds by relying on the last hidden state.\", \"created_at\": \"2025-08-15 16:21:42\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Transformer\", \"entity2\": \"Vaswani et al.\", \"description\": \"Vaswani et al. are associated with the development or publication of the Transformer architecture.Vaswani et al. are the authors of the Transformer architecture.\", \"created_at\": \"2025-08-13 22:49:38\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder structure\", \"description\": \"\\\"The Transformer generally adopts an encoder-decoder structure.\\\")The Transformer is a transduction model that, unlike most competitive neural sequence transduction models, does not explicitly state it uses an encoder-decoder structure, but rather relies on self-attention.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"English Constituency Parsing\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is being evaluated on the task of English Constituency Parsing to assess its generalization capabilities.\", \"created_at\": \"2025-08-15 14:55:59\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"Transformer\", \"entity2\": \"newstest2014\", \"description\": \"The Transformer model is evaluated on the newstest2014 test set for translation tasks.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Transformer\", \"entity2\": \"images, audio and video\", \"description\": \"\\\"The Transformer is planned to be extended to problems involving input and output modalities other than text, such as images, audio, and video.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"English-to-French\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-French translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Constant number of operations\", \"entity2\": \"Transformer\", \"description\": \"The Transformer achieves a constant number of operations to learn dependencies between distant positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Making generation less sequential\", \"entity2\": \"Transformer\", \"description\": \"Making generation less sequential is a planned enhancement for the Transformer model.\", \"created_at\": \"2025-08-15 14:57:21\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"Feed-Forward Network (FFN)\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer block that can be replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"SVD\", \"entity2\": \"Transformer\", \"description\": \"The SVD method is applied to matrices (ΔW) derived from a Transformer's layers.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Transformer\", \"entity2\": \"simple-language question answering\", \"description\": \"The Transformer is implied to be relevant to simple-language question answering tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"encoder-decoder attention\", \"entity2\": \"sequence-to-sequence models\", \"description\": \"Encoder-decoder attention in the Transformer mimics the attention mechanisms found in sequence-to-sequence models, citing references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 7\\n\\ncealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34]. To the best of our knowledge, however, the Transformer is the first transduction model relying entirely on self-attention to compute representations of its input and output without using sequencealigned RNNs or convolution. In the following sections, we will describe the Transformer, motivate self-attention and discuss its advantages over models such as [17, 18] and [9]. # 3 Model Architecture Most competitive neural sequence transduction models have an encoder-decoder structure [5, 2, 35]. Here, the encoder maps an input sequence of symbol representations [mathematical expression][math: to a sequence of continuous representations ]\\\\textbf { z } = ~ ( z _ { 1 } , . . . , z _ { n } )[math: . Given ]\\\\mathbf { z }[math: , the decoder then generates an output sequence ]\\\\left( y _ { 1 } , . . . , y _ { m } \\\\right)$ of symbols one element at a time.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 7\\n\\ncealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34]. To the best of our knowledge, however, the Transformer is the first transduction model relying entirely on self-attention to compute representations of its input and output without using sequencealigned RNNs or convolution. In the following sections, we will describe the Transformer, motivate self-attention and discuss its advantages over models such as [17, 18] and [9]. # 3 Model Architecture Most competitive neural sequence transduction models have an encoder-decoder structure [5, 2, 35]. Here, the encoder maps an input sequence of symbol representations $( x _ { 1 } , . . . , x _ { n } )$ to a sequence of continuous representations $\\\\\\\\textbf { z } = ~ ( z _ { 1 } , . . . , z _ { n } )$ . Given $\\\\\\\\mathbf { z }$ , the decoder then generates an output sequence $\\\\\\\\left( y _ { 1 } , . . . , y _ { m } \\\\\\\\right)$ of symbols one element at a time.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 55\\n\\n118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\\\Delta \\\\mathbf { W } = \\\\mathbf { A } \\\\mathbf { B } ^ { \\\\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\\\mathbf { W } _ { \\\\mathrm { f t } } = \\\\mathbf { W } + \\\\alpha \\\\Delta \\\\mathbf { W }$ where $\\\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.2937, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.2937, + "start_timestamp": "2025-08-16T09:44:37.438151", + "end_timestamp": "2025-08-16T09:44:40.731814" + }, + "metadata": { + "saved_at": "2025-08-16T09:44:40.731814", + "file_path": "retrieval_logs\\retrieval_20250816_094440_731_mix_k10_ck4_What_are_Transformers.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_094443_939_mix_k10_ck4_Transformer_architecture.json b/retrieval_logs/retrieval_20250816_094443_939_mix_k10_ck4_Transformer_architecture.json new file mode 100644 index 0000000000000000000000000000000000000000..12708bb3ce0872dcabd96ccbbfc161d3f7b10eee --- /dev/null +++ b/retrieval_logs/retrieval_20250816_094443_939_mix_k10_ck4_Transformer_architecture.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:44:43.939351", + "query": "Transformer architecture", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 29594, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"multi-headed self-attention\", \"type\": \"methodology\", \"description\": \"Multi-headed self-attention is a component of the Transformer, replacing recurrent layers in encoder-decoder architectures.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"encoder-decoder attention\", \"type\": \"methodology\", \"description\": \"This is one of the three ways multi-head attention is used in the Transformer. In these layers, queries originate from the previous decoder layer, while memory keys and values are sourced from the encoder's output. This enables every decoder position to attend to all positions in the input sequence, mirroring attention mechanisms in sequence-to-sequence models like those in references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:17\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Different Positions\", \"type\": \"abstract\", \"description\": \"Various locations where Multi-Head Attention allows the model to jointly attend to information from different representation subspaces.\", \"created_at\": \"2025-08-15 18:03:30\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Queries, Keys, and Values\", \"type\": \"abstract\", \"description\": \"Fundamental components of the attention mechanism that are linearly projected multiple times in Multi-Head Attention and are $d _ { \\\\\\\\mathrm { m o d e l } }$-dimensional in a single attention function.\", \"created_at\": \"2025-08-15 18:03:15\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Transformer architecture\", \"type\": \"methodology\", \"description\": \"The Transformer architecture is a neural network architecture widely used in language modeling and as a component of large language models. It generally adopts an encoder-decoder structure, though decoder-only variations also exist. Key components of the Transformer architecture include self-attention mechanisms, which are crucial for managing long-range text dependencies and maintaining performance with constrained resources, feedforward networks, positional embeddings that typically employ a sinusoidal function, and layer normalization. The architecture's dimensions are described using conventional terminologies, such as input and output dimension size ($d_{model}$), query/key/value/output projection matrices ($W_q$, $W_k$, $W_v$, $W_o$), and a pretrained weight matrix ($W$ or $W_0$). In the context of large language models, techniques like LoRA (Low-Rank Adaptation) can be integrated by injecting trainable rank decomposition matrices into each layer, thereby modifying the model structure. Specific metrics, such as per-wordpiece perplexities, are presented on datasets like the English-to-German translation development set, newstest2013. The detailed design of the Transformer architecture is provided in Section 5.The Transformer architecture uses Multi-Head Attention (MHA) as a key component. MHA is described as the first method that uses multiple heads to capture diverse information within the Transformer architecture.The Transformer architecture utilizes Multi-Head Attention (MHA) to capture diverse information. MHA employs multiple heads, each operating independently, to attend to different parts of the input sequence. The formula for MHA is given as MultiHead(Q, K, V) = Concat(head_1, head_2, ..., head_h)W^O, where head_i = Attention(QW_i^Q, KW_i^K, VW_i^V).\", \"created_at\": \"2025-08-15 16:23:09\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"feedforward networks\", \"type\": \"methodology\", \"description\": \"Feedforward networks are a component of the Transformer architecture.Feedforward networks are a component of the Transformer's structure.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Multi-head self-attention mechanism\", \"type\": \"methodology\", \"description\": \"This is a sub-layer within each encoder layer, contributing to the model's ability to process sequences.\", \"created_at\": \"2025-08-15 14:52:32\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"statistical model\", \"type\": \"methodology\", \"description\": \"A statistical model is utilized by EdgeMoE, built offline, to estimate expert activation probabilities in transformer layers from previous activations.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"transformer layers\", \"type\": \"methodology\", \"description\": \"Transformer layers are components within MoE architectures where EdgeMoE estimates expert activation probabilities.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"V-MoE\", \"type\": \"methodology\", \"description\": \"V-MoE is a novel approach designed for visual tasks, which substitutes the standard Multi-Layer Perceptron (MLP) layers in Vision Transformers with sparse Mixture-of-Experts (MoE) layers. This architectural change allows V-MoE to scale to an impressive 15 billion parameters and has demonstrated significant efficiency gains, particularly in image classification tasks. To optimize expert assignment and resource utilization, V-MoE employs a Batch Priority Routing (BPR) strategy. BPR calculates the importance of each image patch, sorts these patches in descending order of importance, and then assigns experts accordingly. Furthermore, V-MoE replaces the computationally intensive TopK strategy with a simpler Top-1 strategy, which helps to reduce resource wastage. For enhanced training stability in visual tasks, V-MoE incorporates an auxiliary loss function that normalizes both $L_{Importance}$ and $L_{Load}$.\", \"created_at\": \"2025-08-15 15:28:40\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Vision-Transformer\", \"type\": \"methodology\", \"description\": \"Vision-Transformer is a model architecture that utilizes MLP layers, which can be replaced by sparse MoE layers as proposed in V-MoE.\", \"created_at\": \"2025-08-15 15:28:35\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Dependencies between distant positions\", \"type\": \"discussion\", \"description\": \"In models like Extended Neural GPU, ByteNet, and ConvS2S, the number of operations required to relate signals from two arbitrary input or output positions grows with the distance between positions, making it more difficult to learn dependencies between distant positions.Learning dependencies between distant positions is made more difficult in certain architectures.\", \"created_at\": \"2025-08-15 14:58:35\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"Encoder and Decoder Stacks\", \"type\": \"methodology\", \"description\": \"The Transformer model architecture uses stacked self-attention and point-wise, fully connected layers for both the encoder and decoder.The encoder and decoder stacks are architectural components within the model where positional encodings are added to the input embeddings at their bottoms.\", \"created_at\": \"2025-08-15 17:43:47\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"The Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a model architecture that follows an overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder. It notably uses multi-head attention in three different ways, including encoder-decoder attention layers and self-attention layers within its encoder. This model allows for significantly more parallelization and achieves better BLEU scores than previous state-of-the-art models on the English-to-German and English-to-French newstest2014 tests. The Transformer can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs, representing a fraction of the training cost compared to prior models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.\", \"created_at\": \"2025-08-15 21:42:55\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Multi-Head Attention processes queries, keys, and values by linearly projecting them multiple times.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Transformer architecture\", \"entity2\": \"feedforward networks\", \"description\": \"Feedforward networks are part of the Transformer architecture.\", \"created_at\": \"2025-08-15 16:19:41\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Encoder\", \"entity2\": \"Multi-head self-attention mechanism\", \"description\": \"The multi-head self-attention mechanism is a key component of the encoder's layers.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Linear Projections\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Linear projections are applied to queries, keys, and values as part of the Multi-Head Attention mechanism.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"statistical model\", \"entity2\": \"transformer layers\", \"description\": \"The statistical model estimates expert activation probabilities in transformer layers.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"End-to-end memory networks\", \"entity2\": \"Self-attention\", \"description\": \"Both self-attention and end-to-end memory networks are attention mechanisms used in sequence processing tasks, with end-to-end memory networks specifically using a recurrent attention mechanism.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"V-MoE\", \"entity2\": \"Vision-Transformer\", \"description\": \"V-MoE replaces the MLP layers in Vision-Transformer with sparse MoE layers to cope with visual tasks.\", \"created_at\": \"2025-08-15 15:28:41\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"encoder-decoder attention\", \"entity2\": \"sequence-to-sequence models\", \"description\": \"Encoder-decoder attention in the Transformer mimics the attention mechanisms found in sequence-to-sequence models, citing references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Encoder and Decoder Stacks\", \"entity2\": \"The Transformer\", \"description\": \"The Transformer's overall architecture is composed of stacked self-attention and point-wise, fully connected layers for both the encoder and decoder.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 30\\n\\nThe advanced training strategy to improve SLM performance will be introduced in Section 3. # 2.1 Architecture of SLMs SLMs commonly employ the Transformer architecture [346] (see Figure 4), which utilizes self-attention mechanisms to manage long-range text dependencies, essential for maintaining performance with constrained resources. However, due to the attention mechanism, Transformers have large inference cost. Hence, to alleviate the issue, several subquadratictime architectures such as Mamba [117], Hymba [90], and xLSTM [25] are proposed. Next, we will give details of Transformer due to its popularity and briefly introduce newly emerged models. 2.1.1 Transformer. The Transformer’s self-attention mechanism [346] allows language models to efficiently capture contextual information across longer sequences, even with limited resources. The Transformer generally adopts an encoder-decoder structure featuring self-attention mechanisms, feedforward networks, positional embeddings, and layer normalization.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 8\\n\\n. . , y _ { m } \\\\\\\\right)$ of symbols one element at a time. At each step the model is auto-regressive [10], consuming the previously generated symbols as additional input when generating the next. [IMAGE]\\nFigure 1: The Transformer - model architecture. The Transformer follows this overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder, shown in the left and right halves of Figure 1, respectively. # 3.1 Encoder and Decoder Stacks Encoder: The encoder is composed of a stack of $N = 6$ identical layers. Each layer has two sub-layers. The first is a multi-head self-attention mechanism, and the second is a simple, positionwise fully connected feed-forward network. We employ a residual connection [11] around each of the two sub-layers, followed by layer normalization [1].\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 55\\n\\n118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\\\Delta \\\\mathbf { W } = \\\\mathbf { A } \\\\mathbf { B } ^ { \\\\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\\\mathbf { W } _ { \\\\mathrm { f t } } = \\\\mathbf { W } + \\\\alpha \\\\Delta \\\\mathbf { W }$ where $\\\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.2065, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.2065, + "start_timestamp": "2025-08-16T09:44:40.732815", + "end_timestamp": "2025-08-16T09:44:43.939352" + }, + "metadata": { + "saved_at": "2025-08-16T09:44:43.939351", + "file_path": "retrieval_logs\\retrieval_20250816_094443_939_mix_k10_ck4_Transformer_architecture.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_094447_109_mix_k10_ck4_self-attention_mechanism.json b/retrieval_logs/retrieval_20250816_094447_109_mix_k10_ck4_self-attention_mechanism.json new file mode 100644 index 0000000000000000000000000000000000000000..c44d49a379b91fc5013e9dec87d52a1858969c09 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_094447_109_mix_k10_ck4_self-attention_mechanism.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:44:47.109277", + "query": "self-attention mechanism", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 24750, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Attention Function\", \"type\": \"abstract\", \"description\": \"An attention function is described as mapping a query and a set of key-value pairs to an output, where the query, keys, values, and output are all vectors. The output is computed as a weighted sum.The attention function computes the dot products of the query with all keys, divides each by $\\\\sqrt { d _ { k } }$, and applies a softmax function to obtain the weights on the values. It can be computed on a set of queries simultaneously, packed together into a matrix $Q$, with keys and values packed into matrices $K$ and $V$. The matrix of outputs is computed as: $\\\\mathrm { A t t e n t i o n } ( Q , K , V ) = \\\\mathrm { s o f t m a x } ( \\\\frac { Q K ^ { T } } { \\\\sqrt { d _ { k } } } ) V$.\", \"created_at\": \"2025-08-15 14:53:52\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"End-to-end memory networks\", \"type\": \"methodology\", \"description\": \"End-to-end memory networks are a methodology discussed in the text.End-to-end memory networks utilize a recurrent attention mechanism instead of sequence-aligned recurrence and have demonstrated good performance in tasks like simple-language question answering and language modeling.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:35\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"encoder-decoder attention\", \"type\": \"methodology\", \"description\": \"This is one of the three ways multi-head attention is used in the Transformer. In these layers, queries originate from the previous decoder layer, while memory keys and values are sourced from the encoder's output. This enables every decoder position to attend to all positions in the input sequence, mirroring attention mechanisms in sequence-to-sequence models like those in references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:17\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Attention\", \"type\": \"methodology\", \"description\": \"Attention is a mechanism employed in natural language processing models, particularly within the Multi-Head Attention (MHA) framework. It functions as a method to focus on different parts of an input sequence for information processing. At its core, attention computes a weighted sum of values, where the weights are determined by the similarity between queries and keys. This process is often visualized by showing parallel word sequences connected by lines, illustrating how different parts of the input are attended to. Within each head of the MHA mechanism, attention takes transformed queries (Q), keys (K), and values (V) as inputs. The output of attention is a vector derived from a weighted sum of these values, with the weights derived from the query-key similarity. While the specific formula for scaled dot-product attention is not explicitly detailed, it is implied to be the underlying calculation. Essentially, attention acts as a function that maps a query and a set of key-value pairs to an output vector.\", \"created_at\": \"2025-08-15 14:54:37\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:58:21\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Queries, Keys, and Values\", \"type\": \"abstract\", \"description\": \"Fundamental components of the attention mechanism that are linearly projected multiple times in Multi-Head Attention and are $d _ { \\\\\\\\mathrm { m o d e l } }$-dimensional in a single attention function.\", \"created_at\": \"2025-08-15 18:03:15\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Attention Mechanism\", \"type\": \"methodology\", \"description\": \"The Attention Mechanism is visualized as a horizontal arrangement of words with lines connecting specific words to colored blocks representing attention weights. The visualization focuses on the word 'making' in the top sequence, with multiple colored lines extending downwards and connecting to corresponding colored blocks in the lower section.\", \"created_at\": \"2025-08-15 15:01:06\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Weighted Sum\", \"type\": \"abstract\", \"description\": \"The method by which the output of an attention function is computed.\", \"created_at\": \"2025-08-15 18:07:32\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Neural Network Layer\", \"type\": \"methodology\", \"description\": \"A neural network layer contains multiple 'heads' that attend to various words in a sequence, as illustrated by the Attention Mechanism visualization.\", \"created_at\": \"2025-08-15 15:01:06\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Encoder-Decoder Attention\", \"type\": \"methodology\", \"description\": \"Encoder-decoder attention layers are used in The Transformer. In these layers, queries come from the previous decoder layer, and memory keys and values come from the output of the encoder. This mechanism allows every position in the decoder to attend over all positions in the input sequence and mimics typical encoder-decoder attention mechanisms in sequence-to-sequence models.\", \"created_at\": \"2025-08-15 18:26:38\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"our model\", \"type\": \"methodology\", \"description\": \"Our model uses the approach of combining a self-attention layer and a point-wise feed-forward layer.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"self-attention layer\", \"type\": \"methodology\", \"description\": \"A self-attention layer's complexity is equal to the combination of a self-attention layer and a point-wise feed-forward layer.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Encoder\", \"type\": \"methodology\", \"description\": \"The Encoder is a component of the Encoder-Decoder Structure. It maps an input sequence of symbol representations to a sequence of continuous representations.The encoder is a component of dominant sequence transduction models.The encoder is composed of a stack of 6 identical layers, each with a multi-head self-attention mechanism and a position-wise fully connected feed-forward network. Residual connections and layer normalization are employed around each sub-layer.\", \"created_at\": \"2025-08-15 18:34:17\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Multi-head self-attention mechanism\", \"type\": \"methodology\", \"description\": \"This is a sub-layer within each encoder layer, contributing to the model's ability to process sequences.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"encoder self-attention in layer 5 of 6\", \"type\": \"methodology\", \"description\": \"This refers to a specific component within the neural network architecture, likely the self-attention mechanism within the encoder part of the model, at a particular layer (layer 5 out of 6).\", \"created_at\": \"2025-08-15 15:04:09\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"long-distance dependencies\", \"type\": \"abstract\", \"description\": \"These are dependencies observed in the encoder self-attention in layer 5 of 6, where many attention heads attend to the distant dependency of the verb 'making,' completing the phrase 'making...more difficult.'This refers to the ability of the attention mechanism to capture relationships between words that are far apart in the input sequence.\", \"created_at\": \"2025-08-15 15:04:09\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"attention distributions\", \"type\": \"results\", \"description\": \"Attention distributions from our models are inspected and examples are presented and discussed in the appendix. Individual attention heads clearly learn to perform different tasks, and many appear to exhibit behavior related to the syntactic and semantic structure of the sentences.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"End-to-end memory networks\", \"entity2\": \"Self-attention\", \"description\": \"Both self-attention and end-to-end memory networks are attention mechanisms used in sequence processing tasks, with end-to-end memory networks specifically using a recurrent attention mechanism.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Attention Function\", \"entity2\": \"Multi-Head Attention\", \"description\": \"'Multi-Head Attention' is presented as a specific type or implementation of an 'Attention Function'.\", \"created_at\": \"2025-08-15 18:09:02\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Multi-Head Attention processes queries, keys, and values by linearly projecting them multiple times.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Attention Function\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"'Scaled Dot-Product Attention' is presented as a specific type or implementation of an 'Attention Function'.\", \"created_at\": \"2025-08-15 18:08:46\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Attention Function\", \"entity2\": \"Self-attention Sub-layer Modification\", \"description\": \"The self-attention sub-layer modification is a specific application or adaptation of the general 'Attention Function' concept within a decoder stack.\", \"created_at\": \"2025-08-15 18:07:32\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Attention Function\", \"entity2\": \"Attention Mechanisms Diagrams\", \"description\": \"The 'Attention Mechanisms Diagrams' illustrate general 'attention mechanisms' which are based on the concept of an 'Attention Function'.\", \"created_at\": \"2025-08-15 18:08:34\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Attention Mechanism\", \"entity2\": \"Neural Network Layer\", \"description\": \"The Attention Mechanism illustrates how different 'heads' within a neural network layer attend to various words in a sequence.\", \"created_at\": \"2025-08-15 15:01:06\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Encoder-Decoder Attention\", \"entity2\": \"The Transformer\", \"description\": \"The Transformer uses encoder-decoder attention layers as one of its applications of multi-head attention.\", \"created_at\": \"2025-08-15 18:26:38\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"our model\", \"entity2\": \"self-attention layer\", \"description\": \"Our model takes the approach of combining a self-attention layer and a point-wise feed-forward layer.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Attention Function\", \"entity2\": \"Dot-product attention\", \"description\": \"Dot-product attention is a specific type of attention function that is similar to the general attention function described, differing only by a scaling factor.\", \"created_at\": \"2025-08-15 14:53:57\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Encoder\", \"entity2\": \"Multi-head self-attention mechanism\", \"description\": \"The multi-head self-attention mechanism is a key component of the encoder's layers.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Attention Function\", \"entity2\": \"Masking and Output Embeddings Offset\", \"description\": \"The masking and output embeddings offset are techniques applied within the context of attention mechanisms to control dependencies in predictions.\", \"created_at\": \"2025-08-15 18:07:46\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"encoder self-attention in layer 5 of 6\", \"entity2\": \"long-distance dependencies\", \"description\": \"The encoder self-attention in layer 5 of 6 is shown to be capable of following long-distance dependencies.\", \"created_at\": \"2025-08-15 15:04:11\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Additive attention\", \"entity2\": \"Attention Function\", \"description\": \"Additive attention is another type of attention function that differs in its method of computing the compatibility function.\", \"created_at\": \"2025-08-15 14:54:04\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Linear Projections\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Linear projections are applied to queries, keys, and values as part of the Multi-Head Attention mechanism.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"encoder-decoder attention\", \"entity2\": \"sequence-to-sequence models\", \"description\": \"Encoder-decoder attention in the Transformer mimics the attention mechanisms found in sequence-to-sequence models, citing references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Attention\", \"entity2\": \"FlashAttention-2\", \"description\": \"FlashAttention-2 is an optimization for attention mechanisms, improving speed and parallelism.\", \"created_at\": \"2025-08-15 17:07:45\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 6\\n\\nThis makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 337\\n\\n2021. Overview of the TREC 2020 deep learning track. CoRR abs/2102.07662 (2021). arXiv:2102.07662 https://arxiv.org/abs/2102.07662 \\n[70] Justin Cui, Wei-Lin Chiang, Ion Stoica, and Cho-Jui Hsieh. 2024. OR-Bench: An Over-Refusal Benchmark for Large Language Models. arXiv preprint arXiv:2405.20947 (2024). [71] Shiyao Cui, Zhenyu Zhang, Yilong Chen, Wenyuan Zhang, Tianyun Liu, Siqi Wang, and Tingwen Liu. 2023. Fft: Towards harmlessness evaluation and analysis for llms with factuality, fairness, toxicity. arXiv preprint arXiv:2311.18580 (2023). [72] Luigi Daniele and Suphavadeeprasit. 2023. Amplify-Instruct: Synthetically Generated Diverse Multi-turn Conversations for efficient LLM Training. arXiv preprint arXiv:(coming soon) (2023). https://huggingface.co/datasets/LDJnr/Capybara \\n[73] Tri Dao. [n. d.]. FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning. In The Twelfth International Conference on Learning Representations.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Attention Is All You Need\\nChunk: 1\\n\\nProvided proper attribution is provided, Google hereby grants permission to reproduce the tables and figures in this paper solely for use in journalistic or scholarly works. # Attention Is All You Need Ashish Vaswani∗ Google Brain avaswani@google.com Noam Shazeer∗ Google Brain noam@google.com Niki Parmar∗ Google Research nikip@google.com Jakob Uszkoreit∗ Google Research usz@google.com Llion Jones∗ Google Research llion@google.com Aidan N. Gomez∗ † University of Toronto aidan@cs.toronto.edu Łukasz Kaiser∗ Google Brain lukaszkaiser@google.com Illia Polosukhin∗ ‡illia.polosukhin@gmail.com # Abstract The dominant sequence transduction models are based on complex recurrent or convolutional neural networks that include an encoder and a decoder. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.1689, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.1689, + "start_timestamp": "2025-08-16T09:44:43.940352", + "end_timestamp": "2025-08-16T09:44:47.109278" + }, + "metadata": { + "saved_at": "2025-08-16T09:44:47.109277", + "file_path": "retrieval_logs\\retrieval_20250816_094447_109_mix_k10_ck4_self-attention_mechanism.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_094450_128_mix_k10_ck4_BERT_GPT_transformers.json b/retrieval_logs/retrieval_20250816_094450_128_mix_k10_ck4_BERT_GPT_transformers.json new file mode 100644 index 0000000000000000000000000000000000000000..4daffa1a53d27097c60c8236487dce7f0aeaec21 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_094450_128_mix_k10_ck4_BERT_GPT_transformers.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:44:50.128455", + "query": "BERT GPT transformers", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 26554, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"M. Ott\", \"type\": \"person\", \"description\": \"Co-author of the paper 'Roberta: A robustly optimized bert pretraining approach'.\", \"created_at\": \"2025-08-13 23:18:40\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Artificial Intelligence\", \"type\": \"abstract\", \"description\": \"Artificial Intelligence (AI) is a transformative force in modern technologies with successes in various domains.\", \"created_at\": \"2025-08-15 15:18:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Roberta: A robustly optimized bert pretraining approach\", \"type\": \"methodology\", \"description\": \"This methodology describes a robustly optimized BERT pretraining approach.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Natural Language Processing\", \"type\": \"connection\", \"description\": \"Natural Language Processing (NLP) is a core research area of artificial intelligence that focuses on enabling computers to understand, generate, and process human language. It plays a significant role in promoting human-computer interaction, information extraction, knowledge mining, cross-lingual communication, and automation.Natural Language Processing is a domain where Mixture-of-Experts is applied.Natural Language Processing is an application domain where MoE is investigated, with tasks including machine translation.\", \"created_at\": \"2025-08-15 15:36:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"BERT: Pre-training of deep bidirectional transformers for language understanding\", \"type\": \"abstract\", \"description\": \"This refers to a pre-training method for deep bidirectional transformers designed for language understanding.\", \"created_at\": \"2025-08-15 15:42:29\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"A survey of large language models for healthcare: from data, technology, and applications to accountability and ethics\", \"type\": \"abstract\", \"description\": \"This is a survey paper that covers large language models in healthcare, discussing data, technology, applications, accountability, and ethics.\", \"created_at\": \"2025-08-15 17:24:27\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"GPT\", \"type\": \"abstract\", \"description\": \"GPT is a Large Language Model (LLM) that is a generic multi-task learner based on the Transformer architecture. It is an example of a pre-trained autoregressive language model and a decoder-based model that employs Next Token Prediction (NTP) as its methodology. GPT widely uses GELU for better gradient flow control and excels at sensemaking in complex domains.GPT is a type of language model that has emergent abilities.\", \"created_at\": \"2025-08-13 22:44:07\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Language Models\", \"type\": \"methodology\", \"description\": \"Language models are an example of models that power intelligent behavior on mobile devices, used to improve voice recognition and text entry on touch-screen keyboards by improving decoding, next-word-prediction, and predicting whole replies.Language models are systems that require effective decoding strategies for generating output, especially after pre-training or fine-tuning.Language models serve as content encoders and help overcome semantic challenges in web search systems through their language understanding from pre-training.\", \"created_at\": \"2025-08-15 16:46:15\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Language understanding\", \"type\": \"methodology\", \"description\": \"Language understanding from pre-training is a key attribute of language models that helps them overcome semantic challenges.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Robust speech recognition via large-scale weak supervision\", \"type\": \"methodology\", \"description\": \"This methodology focuses on speech recognition using large-scale weak supervision and is presented in an international conference on machine learning.\", \"created_at\": \"2025-08-15 15:42:11\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Segment Anything\", \"type\": \"methodology\", \"description\": \"Segment Anything is a methodology presented in a conference proceeding.\", \"created_at\": \"2025-08-15 15:42:11\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Roberta\", \"type\": \"category\", \"description\": \"Roberta is a robustly optimized BERT pretraining approach.\", \"created_at\": \"2025-08-13 22:51:20\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Grammar as a foreign language\", \"type\": \"methodology\", \"description\": \"Grammar as a foreign language is a methodology cited in the text.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"J. Du\", \"type\": \"person\", \"description\": \"Co-author of the paper 'Roberta: A robustly optimized bert pretraining approach'.\", \"created_at\": \"2025-08-13 23:18:40\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Rethinking the inception architecture for computer vision\", \"type\": \"methodology\", \"description\": \"Rethinking the inception architecture for computer vision is a methodology referenced in the text.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Small Language Models\", \"type\": \"abstract\", \"description\": \"Small Language Models (SLMs) are a rapidly advancing area in natural language processing, characterized by their efficiency, cost-effectiveness, and adaptability, making them well-suited for resource-constrained environments. Typically possessing between fewer than one billion and up to ten billion parameters, SLMs are generally contrasted with Large Language Models (LLMs). SLMs offer several advantages over LLMs, including lower inference latency, efficient development, ease of customization, improved on-device processing, enhanced privacy and security, faster response times, and greater personalization. These attributes make SLMs ideal for applications requiring localized data handling for privacy, minimal inference latency, and domain knowledge acquisition through lightweight fine-tuning. They can also have fewer security issues compared to LLMs.\\n\\nSmall Language Models can be fine-tuned for specific functions, such as hallucination detection, and can even outperform LLMs in certain aspects. Their fast inference speed and characteristics allow them to emulate and enhance LLM behavior, acting as proxies for tasks like training data selection and parameter adjustments during fine-tuning. SLMs are often fine-tuned for specific domains and can achieve performance comparable to or exceeding larger models within those specialties, making them well-suited for edge deployments where computational resources are limited but domain precision is crucial. Small Language Models are utilized for tasks such as re-ranking retrieved documents, bridging the gap between queries and knowledge by rewriting inputs, and invoking software APIs. They can also provide nuanced feedback to LLMs to help them overcome issues like repetitive vocabulary, and are used in the context of fine-tuning Large Language Models.\\n\\nThe training strategies for Small Language Models differ from LLM training, aiming to deliver competitive performance. SLMs can be trained through multiple rounds, with strategies like training hard examples with higher probability and adjusting data sampling probability based on sample loss demonstrating favorable balances between performance and training efficiency. Discussions surrounding SLMs also delve into strategies for enhancing their performance, such as retrieval systems and self-adaptive methods, their collaboration with LLMs, aspects of trustworthiness, and advanced training strategies. Challenges related to distribution mismatch during training are noted, and discussions also focus on improving SLMs' reasoning. Examples of advancements in this field include Phi-1.5, Phi-2, Phi-3, and xLSTM. Potential applications for Small Language Models span various sectors, including healthcare, finance, and e-commerce. The discourse on SLMs is situated within the broader context of the era of Large Language Models, with diverse contributors driving innovation, and they are examined in terms of their performance in specific domains, particularly when contrasted with LLMs, and their performance on coding benchmarks. Small Language Models are also being investigated for their potential to replace Large Language Models when learning Computer Science, especially when combined with Retrieval-Augmented Generation.The text discusses Small Language Models in the context of their compression and acceleration, referencing specific methodologies and research papers.\", \"created_at\": \"2025-08-15 17:25:58\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"natural language processing\", \"type\": \"abstract\", \"description\": \"Natural Language Processing (NLP) is a significant field that relies on adapting large-scale, pre-trained language models to various downstream applications and particular tasks or domains. NLP has been greatly enhanced by advancements in language models, leading to broader applications across various fields. Within NLP, fundamental attention mechanisms are particularly utilized. Mixture of Experts (MoE) has seen recent applications in NLP, presenting multiple important subproblems that require further investigation, and is an area where MoE applications are reviewed in depth in the paper.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"healthcare\", \"type\": \"abstract\", \"description\": \"Healthcare is a domain where SLMs are being specialized and demonstrated.Healthcare is a domain where foundation models, including Reinforcement Learning (RL) and Mixture of Experts (MoE) models, are being applied. RL plays a pivotal role in decision-making within healthcare, while MoE models are seen as a promising application due to the crucial need to handle diverse and complex tasks. However, healthcare is also a specialized domain where large language models (LLMs) often underperform due to insufficient domain-specific knowledge, highlighting the necessity for specialized models.Healthcare is a high-stakes domain where concerns about AI trustworthiness are critical.\", \"created_at\": \"2025-08-15 16:58:45\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Internet-augmented language models through few-shot prompting for open-domain question answering\", \"type\": \"abstract\", \"description\": \"This paper explores the use of internet-augmented language models with few-shot prompting for open-domain question answering.This paper is authored by Angeliki Lazaridou, Elena Gribovskaya, Wojciech Stokowiec, and Nikolai Grigorev.\", \"created_at\": \"2025-08-15 16:05:41\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Pre-trained language models for interactive decision-making\", \"type\": \"methodology\", \"description\": \"This work discusses pre-trained language models applied to interactive decision-making.\", \"created_at\": \"2025-08-15 16:02:19\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"deep learning architectures\", \"type\": \"methodology\", \"description\": \"deep learning architectures are modern systems that utilize fundamental attention mechanisms, particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Artificial Intelligence\", \"entity2\": \"Natural Language Processing\", \"description\": \"Natural Language Processing is a domain where Artificial Intelligence has demonstrated remarkable successes.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"BERT\", \"entity2\": \"Roberta: A robustly optimized bert pretraining approach\", \"description\": \"Roberta is a specific implementation or advancement of the BERT pretraining approach.\", \"created_at\": \"2025-08-15 17:12:06\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"A survey of large language models for healthcare: from data, technology, and applications to accountability and ethics\", \"entity2\": \"Large Language Models\", \"description\": \"The survey focuses on large language models.\", \"created_at\": \"2025-08-15 17:24:27\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GPT\", \"entity2\": \"Radford et al.\", \"description\": \"Radford et al. are associated with the development or publication concerning GPT.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Language Models\", \"entity2\": \"Language understanding\", \"description\": \"Language Models leverage language understanding from pre-training to address semantic challenges.\", \"created_at\": \"2025-08-15 16:46:22\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"GPT\", \"entity2\": \"Microsoft\", \"description\": \"Microsoft is mentioned in relation to GPT's capabilities in scientific discovery, suggesting a potential developer or user.\", \"created_at\": \"2025-08-13 23:24:27\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Robust speech recognition via large-scale weak supervision\", \"entity2\": \"Segment Anything\", \"description\": \"Both are methodologies presented in major conferences in 2023, indicating advancements in AI and machine learning.\", \"created_at\": \"2025-08-15 15:42:14\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Brown et al.\", \"entity2\": \"GPT\", \"description\": \"Brown et al. are cited in relation to GPT, suggesting authorship or significant contribution to its research.Brown et al.'s 2020 work is referenced in relation to GPT.\", \"created_at\": \"2025-08-13 23:24:28\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Grammar as a foreign language\", \"entity2\": \"Rethinking the inception architecture for computer vision\", \"description\": \"Both are methodologies presented in Advances in Neural Information Processing Systems, indicating a shared research domain.\", \"created_at\": \"2025-08-15 15:03:03\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Naman Goyal\", \"entity2\": \"Roberta\", \"description\": \"Naman Goyal is an author of the Roberta paper.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Small Language Models\", \"entity2\": \"natural language processing\", \"description\": \"The evolution and techniques of Small Language Models are discussed in relation to their impact on natural language processing.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Myle Ott\", \"entity2\": \"Roberta\", \"description\": \"Myle Ott is an author of the Roberta paper.\", \"created_at\": \"2025-08-13 22:51:30\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"A survey of large language models for healthcare: from data, technology, and applications to accountability and ethics\", \"entity2\": \"healthcare\", \"description\": \"The survey specifically addresses the application of LLMs in healthcare.\", \"created_at\": \"2025-08-15 17:24:27\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Jingfei Du\", \"entity2\": \"Roberta\", \"description\": \"Jingfei Du is an author of the Roberta paper.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Internet-augmented language models through few-shot prompting for open-domain question answering\", \"entity2\": \"Pre-trained language models for interactive decision-making\", \"description\": \"Both entries discuss language models, with the first focusing on question answering and the second on decision-making, suggesting a connection in the broader field of language model applications.\", \"created_at\": \"2025-08-15 16:02:34\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Roberta\", \"entity2\": \"Yinhan Liu\", \"description\": \"Yinhan Liu is an author of the Roberta paper.\", \"created_at\": \"2025-08-13 22:51:20\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"deep learning architectures\", \"entity2\": \"natural language processing\", \"description\": \"Deep learning architectures utilize fundamental attention mechanisms particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Omer Levy\", \"entity2\": \"Roberta\", \"description\": \"Omer Levy is an author of the Roberta paper.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Danqi Chen\", \"entity2\": \"Roberta\", \"description\": \"Danqi Chen is an author of the Roberta paper.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Mike Lewis\", \"entity2\": \"Roberta\", \"description\": \"Mike Lewis is an author of the Roberta paper.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Mandar Joshi\", \"entity2\": \"Roberta\", \"description\": \"Mandar Joshi is an author of the Roberta paper.\", \"created_at\": \"2025-08-13 22:51:34\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Achiam et al.\", \"entity2\": \"GPT\", \"description\": \"Achiam et al. are cited in relation to GPT, suggesting authorship or significant contribution to its research.\", \"created_at\": \"2025-08-13 23:24:28\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"GPT\", \"entity2\": \"Machine Reading Comprehension (MRC)\", \"description\": \"GPT is adaptable to machine reading comprehension tasks.\", \"created_at\": \"2025-08-13 22:44:14\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"GPT\", \"entity2\": \"Summarization\", \"description\": \"GPT is adaptable to summarization tasks.\", \"created_at\": \"2025-08-13 22:44:12\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"GPT\", \"entity2\": \"Natural Language to SQL (NL2SQL)\", \"description\": \"GPT is adaptable to natural language to SQL tasks.\", \"created_at\": \"2025-08-13 22:44:16\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Lets Learn Step by Step: Enhancing In-Context Learning Ability with Curriculum Learning\", \"entity2\": \"Roberta: A robustly optimized bert pretraining approach\", \"description\": \"Both are methodologies related to language model pretraining and enhancement, with the former potentially building upon or being compared to the latter.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2106.09685v2\\nChunk: 69\\n\\nGPT Understands, Too. arXiv:2103.10385 [cs], March 2021. URL http://arxiv.org/abs/ 2103.10385. arXiv: 2103.10385. Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach, 2019. Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017. Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization, 2019. Rabeeh Karimi Mahabadi, James Henderson, and Sebastian Ruder. Compacter: Efficient low-rank hypercomplex adapter layers, 2021. Linyong Nan, Dragomir Radev, Rui Zhang, Amrit Rau, Abhinand Sivaprasad, Chiachun Hsieh, Xiangru Tang, Aadit Vyas, Neha Verma, Pranav Krishna, et al. Dart: Open-domain structured data record to text generation. arXiv preprint arXiv:2007.02871, 2020. Jekaterina Novikova, Ondˇrej Dusek, and Verena Rieser. The e2e dataset: New challenges for end- ˇ to-end generation.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 206\\n\\ns such as pruning, quantization, distillation, SFT, and DPO, utilized in Llama 3.2, have substantially enhanced SLM performance. Insights: We draw several key insights from the development of generic-domain SLMs: • Typical SLM architectures generally incorporate features such as GQA, gated FFN with SiLU activations, RMS normalization, deep and thin architectures, embedding sharing, layer sharing, and shared FFNs. • Although these components are widely used, current research has not yet thoroughly explored their specific contributions within SLMs. • The importance of data quality in SLM research is increasingly emphasized, often considered more critical than the quantity of data and model architectural configurations. • Post-pretraining, meticulous fine-tuning is often required to enhance the safety of SLMs, involving strategies to distill \\ncapabilities from LLMs better. Common strategies include explanatory tuning, progressive learning, and prompt erasing. # 5.2 Domain-Specific SLMs Overview.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: 2106.09685v2\\nChunk: 64\\n\\nPredicting parameters in deep learning, 2014. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding, 2019a. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv:1810.04805 [cs], May 2019b. URL http://arxiv.org/abs/1810.04805. arXiv: 1810.04805. William B. Dolan and Chris Brockett. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005), 2005. URL https://aclanthology.org/I05-5002. Claire Gardent, Anastasia Shimorina, Shashi Narayan, and Laura Perez-Beltrachini. The webnlg challenge: Generating text from rdf data. In Proceedings of the 10th International Conference on Natural Language Generation, pp. 124–133, 2017. Behrooz Ghorbani, Song Mei, Theodor Misiakiewicz, and Andrea Montanari. When do neural networks outperform kernel methods?\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 347\\n\\n2023. CIRS: Bursting filter bubbles by counterfactual interactive recommender system. ACM Transactions on Information Systems 42, 1 (2023), 1–27. [108] Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, et al. 2020. The Pile: An 800GB dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027 (2020). [109] Luyu Gao and Jamie Callan. 2022. Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrieval. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2843–2853. [110] Shangqian Gao, Chi-Heng Lin, Ting Hua, Zheng Tang, Yilin Shen, Hongxia Jin, and Yen-Chang Hsu. 2024. DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.0177, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.0177, + "start_timestamp": "2025-08-16T09:44:47.110781", + "end_timestamp": "2025-08-16T09:44:50.128455" + }, + "metadata": { + "saved_at": "2025-08-16T09:44:50.128455", + "file_path": "retrieval_logs\\retrieval_20250816_094450_128_mix_k10_ck4_BERT_GPT_transformers.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_095318_489_mix_k3_ck2_What_is_the_fundamental_concept_behind_the_Transfo.json b/retrieval_logs/retrieval_20250816_095318_489_mix_k3_ck2_What_is_the_fundamental_concept_behind_the_Transfo.json new file mode 100644 index 0000000000000000000000000000000000000000..5d44c6ce43b8b48da07f92f65abfd42ad00c9ccc --- /dev/null +++ b/retrieval_logs/retrieval_20250816_095318_489_mix_k3_ck2_What_is_the_fundamental_concept_behind_the_Transfo.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:53:18.489457", + "query": "What is the fundamental concept behind the Transformer architecture?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 10934, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"attention mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are neural network components that can be integrated with MoE architectures.\", \"created_at\": \"2025-08-15 15:43:01\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Mamba 2\", \"entity2\": \"attention mechanisms\", \"description\": \"Mamba 2 develops a theoretical framework linking SSMs with attention mechanisms.\", \"created_at\": \"2025-08-15 16:29:13\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 8\\n\\n. . , y _ { m } \\\\\\\\right)$ of symbols one element at a time. At each step the model is auto-regressive [10], consuming the previously generated symbols as additional input when generating the next. [IMAGE]\\nFigure 1: The Transformer - model architecture. The Transformer follows this overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder, shown in the left and right halves of Figure 1, respectively. # 3.1 Encoder and Decoder Stacks Encoder: The encoder is composed of a stack of $N = 6$ identical layers. Each layer has two sub-layers. The first is a multi-head self-attention mechanism, and the second is a simple, positionwise fully connected feed-forward network. We employ a residual connection [11] around each of the two sub-layers, followed by layer normalization [1].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 8.2396, + "rag_initialization_seconds": 4.7435, + "query_execution_seconds": 3.4961, + "start_timestamp": "2025-08-16T09:53:10.249825", + "end_timestamp": "2025-08-16T09:53:18.489457" + }, + "metadata": { + "saved_at": "2025-08-16T09:53:18.489457", + "file_path": "retrieval_logs\\retrieval_20250816_095318_489_mix_k3_ck2_What_is_the_fundamental_concept_behind_the_Transfo.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_095330_092_mix_k3_ck2_How_does_the_self-attention_mechanism_in_Transform.json b/retrieval_logs/retrieval_20250816_095330_092_mix_k3_ck2_How_does_the_self-attention_mechanism_in_Transform.json new file mode 100644 index 0000000000000000000000000000000000000000..4923a9fc15740a0d1c2da7228d9e85099a296014 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_095330_092_mix_k3_ck2_How_does_the_self-attention_mechanism_in_Transform.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:53:30.092061", + "query": "How does the self-attention mechanism in Transformers work, and what role does it play in processing sequential data?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 10233, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Queries, Keys, and Values\", \"type\": \"abstract\", \"description\": \"Fundamental components of the attention mechanism that are linearly projected multiple times in Multi-Head Attention and are $d _ { \\\\\\\\mathrm { m o d e l } }$-dimensional in a single attention function.\", \"created_at\": \"2025-08-15 18:03:15\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Long short-term memory-networks for machine reading\", \"type\": \"methodology\", \"description\": \"This refers to the application of Long Short-Term Memory (LSTM) networks for machine reading tasks.\", \"created_at\": \"2025-08-15 14:53:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:58:21\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Multi-Head Attention processes queries, keys, and values by linearly projecting them multiple times.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Linear Projections\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Linear projections are applied to queries, keys, and values as part of the Multi-Head Attention mechanism.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"transduction problems\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in transduction problems.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 6\\n\\nThis makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.345, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.345, + "start_timestamp": "2025-08-16T09:53:26.747095", + "end_timestamp": "2025-08-16T09:53:30.092062" + }, + "metadata": { + "saved_at": "2025-08-16T09:53:30.093065", + "file_path": "retrieval_logs\\retrieval_20250816_095330_092_mix_k3_ck2_How_does_the_self-attention_mechanism_in_Transform.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_095340_272_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_how_d.json b/retrieval_logs/retrieval_20250816_095340_272_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_how_d.json new file mode 100644 index 0000000000000000000000000000000000000000..92f228423e98426edaee329a8fa9620f5abe3c7b --- /dev/null +++ b/retrieval_logs/retrieval_20250816_095340_272_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_how_d.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:53:40.272560", + "query": "Based on the following Q&A about transformers how do they work?, provide a comprehensive research summary: [{'category': 'overview', 'question': 'What is the fundamental concept behind the Transformer architecture?', 'answer': 'The fundamental concept behind the Transformer architecture is its reliance on self-attention mechanisms to process sequences, moving away from traditional recurrent or convolutional approaches. This design allows for parallel processing and efficient capture of long-range dependencies.'}, {'category': 'methodology', 'question': 'How does the self-attention mechanism in Transformers work, and what role does it play in processing sequential data?', 'answer': 'The Transformer architecture leverages self-attention mechanisms, utilizing Queries, Keys, and Values, to efficiently process sequential data by managing long-range dependencies and enabling contextual understanding.'}]", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 15501, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Comparison of Self-Attention Layers\", \"type\": \"discussion\", \"description\": \"A section introduced to compare various aspects of self-attention layers to recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations to another sequence of equal length.\", \"created_at\": \"2025-08-15 18:29:32\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Radford et al.\", \"type\": \"person\", \"description\": \"Radford et al. are authors whose work focuses on transformer models, specifically their application to autoregressive language modeling. Their publications include papers detailing the GPT-2 model, and they are known for their contributions to fine-tuning these transformer-based models. While some details of their work remain unavailable, the consistent information points to their significant authorship in the development and refinement of GPT-2 and similar models.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Sequence-aligned RNNs\", \"type\": \"methodology\", \"description\": \"Sequence-aligned RNNs (Recurrent Neural Networks) are a type of model that previous transduction models used, but the Transformer is noted for not using them to compute representations.\", \"created_at\": \"2025-08-15 18:34:17\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"The Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a model architecture that follows an overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder. It notably uses multi-head attention in three different ways, including encoder-decoder attention layers and self-attention layers within its encoder. This model allows for significantly more parallelization and achieves better BLEU scores than previous state-of-the-art models on the English-to-German and English-to-French newstest2014 tests. The Transformer can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs, representing a fraction of the training cost compared to prior models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.\", \"created_at\": \"2025-08-15 21:42:55\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Transformer architecture\", \"entity2\": \"self-attention mechanisms\", \"description\": \"The Transformer architecture utilizes self-attention mechanisms to manage long-range text dependencies.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Sequence-aligned RNNs\", \"entity2\": \"The Transformer\", \"description\": \"The Transformer is explicitly stated to compute representations 'without using sequence-aligned RNNs', highlighting a key architectural difference and innovation.\", \"created_at\": \"2025-08-15 18:35:17\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 21\\n\\nyer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. Similarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \\\\infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. # 3.3 Position-wise Feed-Forward Networks In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.2757, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.2757, + "start_timestamp": "2025-08-16T09:53:36.996874", + "end_timestamp": "2025-08-16T09:53:40.272560" + }, + "metadata": { + "saved_at": "2025-08-16T09:53:40.272560", + "file_path": "retrieval_logs\\retrieval_20250816_095340_272_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_how_d.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_095623_414_mix_k5_ck2_Describe_the_role_of_positional_encodings_in_the_T.json b/retrieval_logs/retrieval_20250816_095623_414_mix_k5_ck2_Describe_the_role_of_positional_encodings_in_the_T.json new file mode 100644 index 0000000000000000000000000000000000000000..ff7d5d0f4dcd0aff78174684c7defd8e29c295ce --- /dev/null +++ b/retrieval_logs/retrieval_20250816_095623_414_mix_k5_ck2_Describe_the_role_of_positional_encodings_in_the_T.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:56:23.414961", + "query": "Describe the role of positional encodings in the Transformer architecture and why they are necessary.", + "query_mode": "mix", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 17825, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Comparison of Self-Attention Layers\", \"type\": \"discussion\", \"description\": \"A section introduced to compare various aspects of self-attention layers to recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations to another sequence of equal length.\", \"created_at\": \"2025-08-15 18:29:32\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Transformer architecture\", \"type\": \"methodology\", \"description\": \"The Transformer architecture is a neural network architecture widely used in language modeling and as a component of large language models. It generally adopts an encoder-decoder structure, though decoder-only variations also exist. Key components of the Transformer architecture include self-attention mechanisms, which are crucial for managing long-range text dependencies and maintaining performance with constrained resources, feedforward networks, positional embeddings that typically employ a sinusoidal function, and layer normalization. The architecture's dimensions are described using conventional terminologies, such as input and output dimension size ($d_{model}$), query/key/value/output projection matrices ($W_q$, $W_k$, $W_v$, $W_o$), and a pretrained weight matrix ($W$ or $W_0$). In the context of large language models, techniques like LoRA (Low-Rank Adaptation) can be integrated by injecting trainable rank decomposition matrices into each layer, thereby modifying the model structure. Specific metrics, such as per-wordpiece perplexities, are presented on datasets like the English-to-German translation development set, newstest2013. The detailed design of the Transformer architecture is provided in Section 5.The Transformer architecture uses Multi-Head Attention (MHA) as a key component. MHA is described as the first method that uses multiple heads to capture diverse information within the Transformer architecture.The Transformer architecture utilizes Multi-Head Attention (MHA) to capture diverse information. MHA employs multiple heads, each operating independently, to attend to different parts of the input sequence. The formula for MHA is given as MultiHead(Q, K, V) = Concat(head_1, head_2, ..., head_h)W^O, where head_i = Attention(QW_i^Q, KW_i^K, VW_i^V).\", \"created_at\": \"2025-08-15 16:23:09\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Computational complexity\", \"type\": \"discussion\", \"description\": \"Self-attention layers are faster than recurrent layers in terms of computational complexity when the sequence length $n$ is smaller than the representation dimensionality $d$.\", \"created_at\": \"2025-08-15 14:55:24\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"positional embeddings\", \"type\": \"methodology\", \"description\": \"Positional embeddings are a component of the Transformer architecture.These are embeddings used to represent the position of elements in a sequence, and the text mentions experimenting with learned positional embeddings as an alternative to sinusoidal positional encoding.Positional embeddings are a component of the Transformer's structure.\", \"created_at\": \"2025-08-15 16:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Positional Embeddings\", \"type\": \"methodology\", \"description\": \"Positional Embeddings in Transformer models are essential for capturing token order, providing context about relative positions within a sequence. Traditional positional embeddings in the Transformer architecture utilize a sinusoidal function.\", \"created_at\": \"2025-08-15 16:20:05\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Transformer models\", \"type\": \"methodology\", \"description\": \"Transformer models are a type of model for which layer sharing can increase hidden layers without additional storage costs.Transformer models utilize Positional Embeddings which are essential for capturing token order and providing context about relative positions within a sequence.\", \"created_at\": \"2025-08-15 16:40:55\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Transformer architecture\", \"entity2\": \"positional embeddings\", \"description\": \"Positional embeddings are part of the Transformer architecture.\", \"created_at\": \"2025-08-15 16:19:41\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Positional Embeddings\", \"entity2\": \"Transformer models\", \"description\": \"Positional Embeddings are essential components within Transformer models for capturing token order and providing contextual information about relative positions in a sequence.\", \"created_at\": \"2025-08-15 16:20:05\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 30\\n\\nThe advanced training strategy to improve SLM performance will be introduced in Section 3. # 2.1 Architecture of SLMs SLMs commonly employ the Transformer architecture [346] (see Figure 4), which utilizes self-attention mechanisms to manage long-range text dependencies, essential for maintaining performance with constrained resources. However, due to the attention mechanism, Transformers have large inference cost. Hence, to alleviate the issue, several subquadratictime architectures such as Mamba [117], Hymba [90], and xLSTM [25] are proposed. Next, we will give details of Transformer due to its popularity and briefly introduce newly emerged models. 2.1.1 Transformer. The Transformer’s self-attention mechanism [346] allows language models to efficiently capture contextual information across longer sequences, even with limited resources. The Transformer generally adopts an encoder-decoder structure featuring self-attention mechanisms, feedforward networks, positional embeddings, and layer normalization.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 17.4316, + "rag_initialization_seconds": 4.3641, + "query_execution_seconds": 13.0676, + "start_timestamp": "2025-08-16T09:56:05.981839", + "end_timestamp": "2025-08-16T09:56:23.413459" + }, + "metadata": { + "saved_at": "2025-08-16T09:56:23.414961", + "file_path": "retrieval_logs\\retrieval_20250816_095623_414_mix_k5_ck2_Describe_the_role_of_positional_encodings_in_the_T.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_095623_754_mix_k5_ck2_On_what_benchmark_datasets_and_tasks_were_Transfor.json b/retrieval_logs/retrieval_20250816_095623_754_mix_k5_ck2_On_what_benchmark_datasets_and_tasks_were_Transfor.json new file mode 100644 index 0000000000000000000000000000000000000000..d6c22beb7552a7227ac646d72eb1381de6c5b5ab --- /dev/null +++ b/retrieval_logs/retrieval_20250816_095623_754_mix_k5_ck2_On_what_benchmark_datasets_and_tasks_were_Transfor.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:56:23.754945", + "query": "On what benchmark datasets and tasks were Transformers initially evaluated, and what metrics were used to demonstrate their effectiveness?", + "query_mode": "mix", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 17251, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"MMLU performance\", \"type\": \"category\", \"description\": \"A measure of performance on the MMLU benchmark, affected by dataset quality and size.\", \"created_at\": \"2025-08-13 23:25:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"CIFAR-10 image classification task\", \"type\": \"results\", \"description\": \"Results were presented on the benchmark CIFAR-10 image classification task.\", \"created_at\": \"2025-08-15 14:59:55\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"MT-Bench\", \"type\": \"event\", \"description\": \"MT-Bench is a benchmark dataset for open-domain question answering.\", \"created_at\": \"2025-08-13 23:26:55\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"statistical model\", \"type\": \"methodology\", \"description\": \"A statistical model is utilized by EdgeMoE, built offline, to estimate expert activation probabilities in transformer layers from previous activations.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"8 instruction datasets\", \"type\": \"category\", \"description\": \"A collection of eight datasets used for evaluating instruction following and chatbot performance.\", \"created_at\": \"2025-08-13 23:01:40\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"transformer layers\", \"type\": \"methodology\", \"description\": \"Transformer layers are components within MoE architectures where EdgeMoE estimates expert activation probabilities.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Benchmarking and Leaderboard Platforms for SLMs\", \"type\": \"connection\", \"description\": \"The text advocates for the creation of benchmarking and leaderboard platforms for SLMs to address issues related to proprietary datasets and the lack of domain-specific evaluations.\", \"created_at\": \"2025-08-15 17:06:39\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Switch-Transformer\", \"type\": \"methodology\", \"description\": \"Switch-Transformer proposes a parameter migration strategy that leverages the memory space of multiple devices in a collective manner to store a large volume of parameters through parallel communication mechanisms. This method effectively distributes the pressure of parameter storage, enhancing the system’s overall storage capacity and computational efficiency.\", \"created_at\": \"2025-08-15 15:23:10\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"parameter migration strategy\", \"type\": \"methodology\", \"description\": \"A strategy proposed by Switch-Transformer that leverages the memory space of multiple devices in a collective manner to store a large volume of parameters through parallel communication mechanisms, distributing storage pressure and enhancing capacity and efficiency.\", \"created_at\": \"2025-08-15 15:23:10\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"8 instruction datasets\", \"entity2\": \"QLORA\", \"description\": \"QLORA's performance was evaluated across 8 instruction datasets.\", \"created_at\": \"2025-08-13 23:01:40\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"FLAN v2\", \"entity2\": \"MMLU performance\", \"description\": \"The 'FLAN v2' dataset's performance on the MMLU benchmark is shown in the table, varying with epochs and datapoints.\", \"created_at\": \"2025-08-13 23:25:28\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"statistical model\", \"entity2\": \"transformer layers\", \"description\": \"The statistical model estimates expert activation probabilities in transformer layers.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"MT-Bench\", \"entity2\": \"vector RAG\", \"description\": \"MT-Bench is a benchmark dataset oriented towards evaluating vector RAG performance.\", \"created_at\": \"2025-08-13 23:27:01\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"MMLU performance\", \"entity2\": \"Unnatural Instructions\", \"description\": \"The 'Unnatural Instructions' dataset's performance on the MMLU benchmark is shown in the table, varying with epochs and datapoints.\", \"created_at\": \"2025-08-13 23:25:24\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Switch-Transformer\", \"entity2\": \"parameter migration strategy\", \"description\": \"Switch-Transformer proposes the parameter migration strategy.\", \"created_at\": \"2025-08-15 15:23:14\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"HotPotQA\", \"entity2\": \"MT-Bench\", \"description\": \"HotPotQA and MT-Bench are both benchmark datasets for open-domain question answering.\", \"created_at\": \"2025-08-13 23:27:01\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Dataset quality\", \"entity2\": \"MMLU performance\", \"description\": \"The quality of the dataset significantly affects the MMLU performance, more so than dataset size.\", \"created_at\": \"2025-08-13 23:25:31\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Chip\", \"entity2\": \"MMLU performance\", \"description\": \"The 'Chip' dataset's performance on the MMLU benchmark is shown in the table, varying with epochs and datapoints.\", \"created_at\": \"2025-08-13 23:25:24\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Datapoints\", \"entity2\": \"MMLU performance\", \"description\": \"MMLU performance varies across different numbers of data points for each dataset.\", \"created_at\": \"2025-08-13 23:25:32\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Epochs\", \"entity2\": \"MMLU performance\", \"description\": \"MMLU performance varies across different numbers of epochs for each dataset.\", \"created_at\": \"2025-08-13 23:25:32\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"CIFAR-10 image classification task\", \"entity2\": \"FedAvg algorithm\", \"description\": \"The FedAvg algorithm was used in experiments that presented results on the CIFAR-10 image classification task.\", \"created_at\": \"2025-08-15 14:59:55\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Dataset size\", \"entity2\": \"MMLU performance\", \"description\": \"The size of the dataset influences the MMLU performance, although less significantly than dataset quality according to the text.\", \"created_at\": \"2025-08-13 23:25:31\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"MT-Bench\", \"entity2\": \"Zheng et al.\", \"description\": \"Zheng et al. are associated with the creation or development of the MT-Bench benchmark dataset.\", \"created_at\": \"2025-08-13 23:26:55\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: 2305.14314v1\\nChunk: 10\\n\\nlargely agree on the rank of model performance in the tournaments, but we also find there are instances of strong disagreement. As such, we highlight that model-based evaluation while providing a cheap alternative to human-annotation also has its uncertainties. We augment our chatbot benchmark results with a qualitative analysis of Guanaco models. Our analysis highlights success and failure cases that were not captured by the quantitative benchmarks. We release all model generations with human and GPT-4 annotations to facilitate further study. We open-source our codebase and CUDA kernels and integrate our methods into the Hugging Face transformers stack [64], making them easily accessible to all. We release a collection of adapters for 7/13/33/65B size models, trained on 8 different instruction following datasets, for a total of 32 different open sourced, finetuned models. [IMAGE]\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 11.4667, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 11.4667, + "start_timestamp": "2025-08-16T09:56:12.288196", + "end_timestamp": "2025-08-16T09:56:23.754946" + }, + "metadata": { + "saved_at": "2025-08-16T09:56:23.754945", + "file_path": "retrieval_logs\\retrieval_20250816_095623_754_mix_k5_ck2_On_what_benchmark_datasets_and_tasks_were_Transfor.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_095623_898_mix_k3_ck2_How_does_the_self-attention_mechanism_within_Trans.json b/retrieval_logs/retrieval_20250816_095623_898_mix_k3_ck2_How_does_the_self-attention_mechanism_within_Trans.json new file mode 100644 index 0000000000000000000000000000000000000000..b2df015cc36ae3f62e8c47d579d09b86a73a2133 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_095623_898_mix_k3_ck2_How_does_the_self-attention_mechanism_within_Trans.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:56:23.898038", + "query": "How does the self-attention mechanism within Transformers work, and what are its key mathematical components?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 14606, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Scaled Dot-Product Attention\", \"type\": \"abstract\", \"description\": \"Scaled Dot-Product Attention is a type of attention function and a mechanism that maps a query and a set of key-value pairs to an output, which is computed as a weighted sum. The query, keys, values, and output are all vectors.\\n\\nThe mechanism computes attention weights by performing matrix multiplication on Query (Q) and Key (K) vectors, followed by scaling. Optionally, masking can be applied before a SoftMax function is used to obtain probabilities. These probabilities are then multiplied with the Value (V) vectors to produce the attention output. The weight assigned to each value is computed by a compatibility function of the query with the corresponding key. The input consists of queries and keys of dimension $d_k$, and values of dimension $\\\\sqrt{d_v}$.\\n\\nScaled Dot-Product Attention is a fundamental component of the Multi-Head Attention mechanism. Within Multi-Head Attention, it runs in parallel multiple times, referred to as 'h' heads. Each head receives inputs from distinct Linear transformation layers for Value (V), Key (K), and Query (Q). The outputs from these parallel heads are ultimately combined through concatenation.\", \"created_at\": \"2025-08-15 14:53:20\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:58:21\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"Multi-Head Attention is a mechanism that enhances Scaled Dot-Product Attention by running several attention layers in parallel. Specifically, Multi-Head Attention is composed of multiple parallel instances of the Scaled Dot-Product Attention mechanism, performing it multiple times in parallel with different learned linear projections of the inputs. Scaled Dot-Product Attention is a specific type of attention, and both mechanisms are illustrated as distinct but related diagrams, suggesting a connection or comparison between them.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Scaled Dot-Product Attention\", \"entity2\": \"V\", \"description\": \"The Scaled Dot-Product Attention mechanism uses V as an input, which is processed by a Linear transformation layer.\", \"created_at\": \"2025-08-15 14:55:46\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Attention Function\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"'Scaled Dot-Product Attention' is presented as a specific type or implementation of an 'Attention Function'.\", \"created_at\": \"2025-08-15 18:08:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Query\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"Query is used in the computation of attention weights within Scaled Dot-Product Attention.The Scaled Dot-Product Attention mechanism takes Query as an input vector.\", \"created_at\": \"2025-08-15 14:56:39\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Matrix Multiplication\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"Matrix Multiplication is a core operation performed twice within the Scaled Dot-Product Attention mechanism.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Scaled Dot-Product Attention\", \"entity2\": \"SoftMax\", \"description\": \"SoftMax is a function applied within the Scaled Dot-Product Attention mechanism.SoftMax is applied to obtain probabilities in Scaled Dot-Product Attention.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Concat\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"The Concat process combines the outputs from multiple Scaled Dot-Product Attention heads.The parallel 'Scaled Dot-Product Attention' heads are combined through a process labeled 'Concat'.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Scaled Dot-Product Attention\", \"entity2\": \"Value\", \"description\": \"The Scaled Dot-Product Attention mechanism takes Value as an input vector.Value vectors are multiplied by attention probabilities obtained from SoftMax in Scaled Dot-Product Attention.\", \"created_at\": \"2025-08-15 14:56:39\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Attention Mechanisms Diagrams\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"The 'Attention Mechanisms Diagrams' explicitly illustrate 'Scaled Dot-Product Attention'.\", \"created_at\": \"2025-08-15 18:07:32\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"K\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"The Scaled Dot-Product Attention mechanism uses K as an input, which is processed by a Linear transformation layer.\", \"created_at\": \"2025-08-15 14:55:46\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Mask (opt.)\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"Mask (opt.) is an optional step within the Scaled Dot-Product Attention mechanism.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Scale\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"Scale is an operation within the Scaled Dot-Product Attention mechanism.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Key\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"Key is used in the computation of attention weights within Scaled Dot-Product Attention.The Scaled Dot-Product Attention mechanism takes Key as an input vector.\", \"created_at\": \"2025-08-15 14:56:39\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Scaled Dot-Product Attention\", \"entity2\": \"deep learning architectures\", \"description\": \"Scaled Dot-Product Attention is a fundamental attention mechanism used in modern deep learning architectures.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Q\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"The Scaled Dot-Product Attention mechanism uses Q as an input, which is processed by a Linear transformation layer.\", \"created_at\": \"2025-08-15 14:55:46\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Masking\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"Masking is a modification applied to the self-attention sub-layer in the decoder stack, which is related to the attention mechanism described as Scaled Dot-Product Attention.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 6\\n\\nThis makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 21\\n\\nyer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. Similarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \\\\infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. # 3.3 Position-wise Feed-Forward Networks In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 11.6119, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 11.6119, + "start_timestamp": "2025-08-16T09:56:12.286137", + "end_timestamp": "2025-08-16T09:56:23.898038" + }, + "metadata": { + "saved_at": "2025-08-16T09:56:23.898038", + "file_path": "retrieval_logs\\retrieval_20250816_095623_898_mix_k3_ck2_How_does_the_self-attention_mechanism_within_Trans.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_095624_167_mix_k5_ck2_What_were_the_primary_limitations_of_previous_sequ.json b/retrieval_logs/retrieval_20250816_095624_167_mix_k5_ck2_What_were_the_primary_limitations_of_previous_sequ.json new file mode 100644 index 0000000000000000000000000000000000000000..aeeffe8d7a80fcc7444b69bfacb2b95a54f6b903 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_095624_167_mix_k5_ck2_What_were_the_primary_limitations_of_previous_sequ.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:56:24.167901", + "query": "What were the primary limitations of previous sequence modeling architectures (like RNNs and LSTMs) that Transformers were designed to overcome?", + "query_mode": "mix", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 17894, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Gradient flow in recurrent nets: the difficulty of learning long-term dependencies\", \"type\": \"discussion\", \"description\": \"This discusses the challenges of gradient flow in recurrent neural networks, specifically regarding the difficulty of learning long-term dependencies.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Training Examples\", \"type\": \"abstract\", \"description\": \"The context within which parallelization is precluded by the inherently sequential nature of recurrent models.\", \"created_at\": \"2025-08-15 18:18:27\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Factorization tricks for LSTM networks\", \"type\": \"methodology\", \"description\": \"This refers to techniques for factorization within LSTM networks.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Recurrent Neural Networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including long short-term memory (LSTM) and gated recurrent units (GRU), have been firmly established as state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"sequence modeling\", \"type\": \"methodology\", \"description\": \"Sequence modeling is a problem domain for which recurrent neural networks, including LSTM and gated recurrent neural networks, are state-of-the-art approaches.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Radford et al.\", \"type\": \"person\", \"description\": \"Radford et al. are authors whose work focuses on transformer models, specifically their application to autoregressive language modeling. Their publications include papers detailing the GPT-2 model, and they are known for their contributions to fine-tuning these transformer-based models. While some details of their work remain unavailable, the consistent information points to their significant authorship in the development and refinement of GPT-2 and similar models.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequential Computation\", \"description\": \"The inherent characteristic of Recurrent Neural Networks is their sequential computation, where hidden states are generated based on previous states and current input.\", \"created_at\": \"2025-08-15 18:20:09\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Gated Recurrent Units (GRU)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Gated Recurrent Units (GRU) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:55\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Long Short-Term Memory (LSTM)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Long Short-Term Memory (LSTM) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Encoder-Decoder Architectures\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Encoder-Decoder Architectures are mentioned alongside recurrent language models as areas where efforts have pushed boundaries, indicating a close relationship in the context of sequence modeling.\", \"created_at\": \"2025-08-15 18:21:27\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Recurrent Language Models\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Recurrent Language Models are a specific application or type of recurrent neural network whose boundaries have been pushed by research.\", \"created_at\": \"2025-08-15 18:21:11\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Lack of Parallelization\", \"entity2\": \"Training Examples\", \"description\": \"The lack of parallelization in recurrent models applies specifically to computation within training examples.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Factorization tricks for LSTM networks\", \"entity2\": \"Neural machine translation in linear time\", \"description\": \"Both are related to neural network architectures and efficiency, with factorization tricks potentially improving the performance of models like those used in linear time translation.\", \"created_at\": \"2025-08-15 14:58:12\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"transduction problems\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in transduction problems.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 4\\n\\nthin training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples. Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains. Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19]. In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network. In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 11.8808, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 11.8808, + "start_timestamp": "2025-08-16T09:56:12.287142", + "end_timestamp": "2025-08-16T09:56:24.167902" + }, + "metadata": { + "saved_at": "2025-08-16T09:56:24.167901", + "file_path": "retrieval_logs\\retrieval_20250816_095624_167_mix_k5_ck2_What_were_the_primary_limitations_of_previous_sequ.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_095624_176_mix_k5_ck2_What_is_the_fundamental_concept_behind_the_Transfo.json b/retrieval_logs/retrieval_20250816_095624_176_mix_k5_ck2_What_is_the_fundamental_concept_behind_the_Transfo.json new file mode 100644 index 0000000000000000000000000000000000000000..467fd521f562b096178a9cba4d0d5525e79e6930 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_095624_176_mix_k5_ck2_What_is_the_fundamental_concept_behind_the_Transfo.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:56:24.176513", + "query": "What is the fundamental concept behind the Transformer architecture and what problem does it aim to solve in sequence-to-sequence tasks?", + "query_mode": "mix", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 16677, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"attention mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are neural network components that can be integrated with MoE architectures.\", \"created_at\": \"2025-08-15 15:43:01\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Attention Mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are the core component of the Transformer architecture, replacing recurrence and convolutions.Attention mechanisms are used to connect the encoder and decoder in the best performing sequence transduction models. The proposed Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:11\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"encoder-decoder attention\", \"type\": \"methodology\", \"description\": \"This is one of the three ways multi-head attention is used in the Transformer. In these layers, queries originate from the previous decoder layer, while memory keys and values are sourced from the encoder's output. This enables every decoder position to attend to all positions in the input sequence, mirroring attention mechanisms in sequence-to-sequence models like those in references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"sequence-to-sequence models\", \"type\": \"methodology\", \"description\": \"Sequence-to-sequence models are mentioned as examples of models that use typical encoder-decoder attention mechanisms, which the Transformer mimics.\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"deep learning architectures\", \"type\": \"methodology\", \"description\": \"deep learning architectures are modern systems that utilize fundamental attention mechanisms, particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"natural language processing\", \"type\": \"abstract\", \"description\": \"Natural Language Processing (NLP) is a significant field that relies on adapting large-scale, pre-trained language models to various downstream applications and particular tasks or domains. NLP has been greatly enhanced by advancements in language models, leading to broader applications across various fields. Within NLP, fundamental attention mechanisms are particularly utilized. Mixture of Experts (MoE) has seen recent applications in NLP, presenting multiple important subproblems that require further investigation, and is an area where MoE applications are reviewed in depth in the paper.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"English-to-German\", \"type\": \"methodology\", \"description\": \"This refers to a translation task where the Transformer model is evaluated.\", \"created_at\": \"2025-08-15 14:55:05\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Mamba 2\", \"entity2\": \"attention mechanisms\", \"description\": \"Mamba 2 develops a theoretical framework linking SSMs with attention mechanisms.\", \"created_at\": \"2025-08-15 16:29:13\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"encoder-decoder attention\", \"entity2\": \"sequence-to-sequence models\", \"description\": \"Encoder-decoder attention in the Transformer mimics the attention mechanisms found in sequence-to-sequence models, citing references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Abstract\", \"entity2\": \"Attention Mechanisms\", \"description\": \"The abstract mentions attention mechanisms as a key component of both existing models and the proposed Transformer.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"deep learning architectures\", \"entity2\": \"natural language processing\", \"description\": \"Deep learning architectures utilize fundamental attention mechanisms particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 4\\n\\nthin training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples. Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains. Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19]. In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network. In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 11.8883, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 11.8883, + "start_timestamp": "2025-08-16T09:56:12.288196", + "end_timestamp": "2025-08-16T09:56:24.176514" + }, + "metadata": { + "saved_at": "2025-08-16T09:56:24.176513", + "file_path": "retrieval_logs\\retrieval_20250816_095624_176_mix_k5_ck2_What_is_the_fundamental_concept_behind_the_Transfo.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_095633_344_mix_k10_ck4_What_were_the_key_findings_and_performance_improve.json b/retrieval_logs/retrieval_20250816_095633_344_mix_k10_ck4_What_were_the_key_findings_and_performance_improve.json new file mode 100644 index 0000000000000000000000000000000000000000..4d340e5dd962367f4ba862153ad06e671fb4d5de --- /dev/null +++ b/retrieval_logs/retrieval_20250816_095633_344_mix_k10_ck4_What_were_the_key_findings_and_performance_improve.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:56:33.344020", + "query": "What were the key findings and performance improvements reported in the original Transformer paper compared to contemporary models?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 33036, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Switch-Transformer\", \"type\": \"methodology\", \"description\": \"Switch-Transformer proposes a parameter migration strategy that leverages the memory space of multiple devices in a collective manner to store a large volume of parameters through parallel communication mechanisms. This method effectively distributes the pressure of parameter storage, enhancing the system’s overall storage capacity and computational efficiency.\", \"created_at\": \"2025-08-15 15:23:10\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"parameter migration strategy\", \"type\": \"methodology\", \"description\": \"A strategy proposed by Switch-Transformer that leverages the memory space of multiple devices in a collective manner to store a large volume of parameters through parallel communication mechanisms, distributing storage pressure and enhancing capacity and efficiency.\", \"created_at\": \"2025-08-15 15:23:10\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"statistical model\", \"type\": \"methodology\", \"description\": \"A statistical model is utilized by EdgeMoE, built offline, to estimate expert activation probabilities in transformer layers from previous activations.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"transformer layers\", \"type\": \"methodology\", \"description\": \"Transformer layers are components within MoE architectures where EdgeMoE estimates expert activation probabilities.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Abstract\", \"type\": \"abstract\", \"description\": \"Modern mobile devices have access to a wealth of data suitable for learning models, which in turn can greatly improve the user experience on the device. For example, language models can improve speech recognition and text entry, and image models can automatically select good photos. However, this rich data is often privacy sensitive, large in quantity, or both, which may preclude logging to the data center and training there using conventional approaches. We advocate an alternative that leaves the training data distributed on the mobile devices, and learns a shared model by aggregating locally-computed updates. We term this decentralized approach Federated Learning.The abstract describes the dominant sequence transduction models as complex recurrent or convolutional neural networks with an encoder and decoder, often connected by an attention mechanism. It proposes a new, simpler network architecture called the Transformer, which relies solely on attention mechanisms and eliminates recurrence and convolutions.\", \"created_at\": \"2025-08-15 15:02:51\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Mixture-of-experts\", \"type\": \"methodology\", \"description\": \"Mixture-of-experts is a concept that appears to be a core focus of the cited works, particularly in the context of scaling neural networks and vision models.\", \"created_at\": \"2025-08-15 15:40:44\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity\", \"type\": \"methodology\", \"description\": \"This methodology is described in a publication by W. Fedus, B. Zoph, and N. Shazeer in the Journal of Machine Learning Research, vol. 23, no. 2, pp. 181–214, 1994.\", \"created_at\": \"2025-08-15 15:40:44\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Devlin et al.\", \"type\": \"person\", \"description\": \"Devlin et al. are the authors of the original BERT pre-training recipe and associated papers. Their work includes publications on both the BERT language model itself and the fine-tuning of transformer models, likely encompassing variants of the original BERT architecture.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Transformers\", \"type\": \"methodology\", \"description\": \"Transformers are a state-of-the-art architecture that xLSTM performs favorably compared to in empirical evaluations.Transformers are a type of language model architecture.Transformers are associated with dynamic information processing.\", \"created_at\": \"2025-08-15 17:04:43\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Radford et al.\", \"type\": \"person\", \"description\": \"Radford et al. are authors whose work focuses on transformer models, specifically their application to autoregressive language modeling. Their publications include papers detailing the GPT-2 model, and they are known for their contributions to fine-tuning these transformer-based models. While some details of their work remain unavailable, the consistent information points to their significant authorship in the development and refinement of GPT-2 and similar models.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"MoE\", \"entity2\": \"Transformer\", \"description\": \"MoE layers typically replace the Feed-Forward Network (FFN) layer within a Transformer block when MoE is incorporated into existing Transformer models.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Switch-Transformer\", \"entity2\": \"parameter migration strategy\", \"description\": \"Switch-Transformer proposes the parameter migration strategy.\", \"created_at\": \"2025-08-15 15:23:14\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Transformer\", \"description\": \"Multi-Head Attention is employed within the Transformer to address the issue of reduced effective resolution arising from averaging attention-weighted positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"statistical model\", \"entity2\": \"transformer layers\", \"description\": \"The statistical model estimates expert activation probabilities in transformer layers.\", \"created_at\": \"2025-08-15 16:40:49\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"GPT-2\", \"entity2\": \"Transformer\", \"description\": \"GPT-2 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mamba\", \"entity2\": \"Transformer\", \"description\": \"Mamba differs from Transformer in its approach to accessing hidden states, with Mamba focusing on the immediate previous hidden state and Transformer requiring access to all previous hidden states.Mamba offers a solution to the Transformer's drawback of quadratic time complexity during inference by relying only on the last hidden state, leading to faster inference speeds.Transformer uses attention heads for recall, while Mamba uses SSM heads for context summarization, highlighting different approaches to sequence processing.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Figure 5\", \"entity2\": \"Transformer\", \"description\": \"Figure 5 implicitly shows the Transformer's slower inference speeds by comparison to Mamba.\", \"created_at\": \"2025-08-15 16:21:47\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Mixture-of-experts\", \"entity2\": \"Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity\", \"description\": \"The publication describing 'Switch transformers' is likely related to or an application of the 'Mixture-of-experts' concept, given the context of scaling models with sparsity.\", \"created_at\": \"2025-08-15 15:40:48\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"MoE layer\", \"entity2\": \"Transformer\", \"description\": \"The MoE layer replaces the Feed-Forward Network (FFN) layer within a Transformer block.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Devlin et al.\", \"entity2\": \"Transformers\", \"description\": \"Devlin et al.'s work relates to fine-tuning transformer models.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Hymba\", \"entity2\": \"Transformer\", \"description\": \"Hymba integrates attention heads, similar to those in the Transformer, within its layers.\", \"created_at\": \"2025-08-15 16:29:28\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Transformer\", \"entity2\": \"ΔWq\", \"description\": \"ΔWq is obtained from layers within a Transformer network.ΔWq represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:28\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformers\", \"description\": \"Radford et al.'s work relates to fine-tuning transformer models.\", \"created_at\": \"2025-08-13 22:49:13\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Transformer\", \"entity2\": \"ΔWv\", \"description\": \"ΔWv represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Transformer\", \"entity2\": \"language modeling\", \"description\": \"The Transformer is implied to be relevant to language modeling tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Recurrence\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture dispenses with recurrence.The Transformer dispenses with recurrence, which is a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"BLEU scores\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model's performance is measured by its BLEU scores.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Emergent Modularity phenomenon\", \"entity2\": \"Transformer\", \"description\": \"The Emergent Modularity phenomenon is observed in pre-trained Transformer models.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Convolutions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer dispenses with convolutions, which are a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"Feed-Forward Network (FFN) layer\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer that is replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:18:38\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"State Space Models (SSMs)\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's attention mechanism has a drawback of quadratic time complexity, while State Space Models (SSMs) enable faster inference speeds by relying on the last hidden state.\", \"created_at\": \"2025-08-15 16:21:42\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Transformer\", \"entity2\": \"Vaswani et al.\", \"description\": \"Vaswani et al. are associated with the development or publication of the Transformer architecture.Vaswani et al. are the authors of the Transformer architecture.\", \"created_at\": \"2025-08-13 22:49:38\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder structure\", \"description\": \"\\\"The Transformer generally adopts an encoder-decoder structure.\\\")The Transformer is a transduction model that, unlike most competitive neural sequence transduction models, does not explicitly state it uses an encoder-decoder structure, but rather relies on self-attention.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"English Constituency Parsing\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is being evaluated on the task of English Constituency Parsing to assess its generalization capabilities.\", \"created_at\": \"2025-08-15 14:55:59\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"Transformer\", \"entity2\": \"newstest2014\", \"description\": \"The Transformer model is evaluated on the newstest2014 test set for translation tasks.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"Transformer\", \"entity2\": \"images, audio and video\", \"description\": \"\\\"The Transformer is planned to be extended to problems involving input and output modalities other than text, such as images, audio, and video.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"English-to-French\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-French translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Constant number of operations\", \"entity2\": \"Transformer\", \"description\": \"The Transformer achieves a constant number of operations to learn dependencies between distant positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Making generation less sequential\", \"entity2\": \"Transformer\", \"description\": \"Making generation less sequential is a planned enhancement for the Transformer model.\", \"created_at\": \"2025-08-15 14:57:21\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"Feed-Forward Network (FFN)\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer block that can be replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"SVD\", \"entity2\": \"Transformer\", \"description\": \"The SVD method is applied to matrices (ΔW) derived from a Transformer's layers.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"Transformer\", \"entity2\": \"simple-language question answering\", \"description\": \"The Transformer is implied to be relevant to simple-language question answering tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 83\\n\\nh Figure 10 (1) right, Transformer Block-wise Sharing is another parameter-sharing approach that maintains depth and complexity. There are different transformer block-wise sharing strategies such as repeating the transformer blocks all over again or repeating the immediate transformer block. This technique is applied in MobileLLMs [223] which has 125M and 350M parameters. MobileLLMs demonstrate performance improvements of $2 . 7 \\\\%$ and $4 . 3 \\\\%$ , respectively, compared to previous models with equivalent parameters. Moreover, they exhibit accuracy comparable to LLaMa-2-7B on API call tasks, highlighting the capabilities of smaller models in mobile environments. Data Construction For SLMs, the emphasis on data quality surpasses that of quantity and diversity [412]. Experiments demonstrate that using a quality filtering approach to remove low-quality data can lead to improved performance in SLMs [412].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 38\\n\\nWe used beam search as described in the previous section, but no checkpoint averaging. We present these results in Table 3. Table 3: Variations on the Transformer architecture. Unlisted values are identical to those of the base model. All metrics are on the English-to-German translation development set, newstest2013. Listed perplexities are per-wordpiece, according to our byte-pair encoding, and should not be compared to per-word perplexities.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 55\\n\\n118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\\\Delta \\\\mathbf { W } = \\\\mathbf { A } \\\\mathbf { B } ^ { \\\\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\\\mathbf { W } _ { \\\\mathrm { f t } } = \\\\mathbf { W } + \\\\alpha \\\\Delta \\\\mathbf { W }$ where $\\\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.8176, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 2.8176, + "start_timestamp": "2025-08-16T09:56:30.526437", + "end_timestamp": "2025-08-16T09:56:33.344020" + }, + "metadata": { + "saved_at": "2025-08-16T09:56:33.344020", + "file_path": "retrieval_logs\\retrieval_20250816_095633_344_mix_k10_ck4_What_were_the_key_findings_and_performance_improve.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_095644_004_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_how_d.json b/retrieval_logs/retrieval_20250816_095644_004_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_how_d.json new file mode 100644 index 0000000000000000000000000000000000000000..985ba1152def30e155c2c9a6d254bba2d34d7d28 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_095644_004_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_how_d.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T09:56:44.005670", + "query": "Based on the following Q&A about transformers how do they work?, provide a comprehensive research summary: [{'category': 'overview', 'question': 'What is the fundamental concept behind the Transformer architecture and what problem does it aim to solve in sequence-to-sequence tasks?', 'answer': 'The Transformer architecture replaces recurrence with attention mechanisms to solve the problem of modeling long-range dependencies and limited parallelization in sequence-to-sequence tasks.'}, {'category': 'methodology', 'question': 'How does the self-attention mechanism within Transformers work, and what are its key mathematical components?', 'answer': 'The Transformer architecture fundamentally relies on self-attention mechanisms, particularly Scaled Dot-Product Attention, which uses queries, keys, and values processed through matrix multiplication, scaling, and softmax to compute weighted representations of sequences, enabling efficient handling of long-range dependencies.'}, {'category': 'methodology', 'question': 'Describe the role of positional encodings in the Transformer architecture and why they are necessary.', 'answer': 'Positional embeddings are essential in the Transformer architecture to provide token order information that self-attention mechanisms lack, enabling effective sequence processing.'}, {'category': 'innovation', 'question': 'What were the primary limitations of previous sequence modeling architectures (like RNNs and LSTMs) that Transformers were designed to overcome?', 'answer': 'Transformers overcome the sequential processing limitations and the difficulty in learning long-term dependencies inherent in RNNs and LSTMs by utilizing self-attention mechanisms, which allow for parallel computation and direct modeling of relationships between distant sequence elements.'}, {'category': 'evaluation', 'question': 'On what benchmark datasets and tasks were Transformers initially evaluated, and what metrics were used to demonstrate their effectiveness?', 'answer': 'The context explains the Transformer architecture and its components but does not provide information on the specific benchmarks or metrics used for its initial evaluation.'}, {'category': 'results', 'question': 'What were the key findings and performance improvements reported in the original Transformer paper compared to contemporary models?', 'answer': 'The Transformer architecture, by relying solely on attention mechanisms, achieved state-of-the-art performance in translation and demonstrated strong generalization, offering superior quality, parallelizability, and reduced training time compared to earlier recurrent and convolutional models.'}]", + "query_mode": "hybrid", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 13044, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Computational complexity\", \"type\": \"discussion\", \"description\": \"Self-attention layers are faster than recurrent layers in terms of computational complexity when the sequence length $n$ is smaller than the representation dimensionality $d$.\", \"created_at\": \"2025-08-15 14:55:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"encoder-decoder attention\", \"type\": \"methodology\", \"description\": \"This is one of the three ways multi-head attention is used in the Transformer. In these layers, queries originate from the previous decoder layer, while memory keys and values are sourced from the encoder's output. This enables every decoder position to attend to all positions in the input sequence, mirroring attention mechanisms in sequence-to-sequence models like those in references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"long sequences\", \"type\": \"methodology\", \"description\": \"Tasks involving very long sequences can have their computational performance improved by restricting self-attention to a neighborhood of size r.\", \"created_at\": \"2025-08-15 14:57:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"sequence-to-sequence models\", \"type\": \"methodology\", \"description\": \"Sequence-to-sequence models are mentioned as examples of models that use typical encoder-decoder attention mechanisms, which the Transformer mimics.\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Comparison of Self-Attention Layers\", \"type\": \"discussion\", \"description\": \"A section introduced to compare various aspects of self-attention layers to recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations to another sequence of equal length.\", \"created_at\": \"2025-08-15 18:29:32\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Recurrent models\", \"type\": \"methodology\", \"description\": \"Recurrent models typically factor computation along the symbol positions of input and output sequences, generating a sequence of hidden states $h _ { t }$ as a function of the previous hidden state $h _ { t - 1 }$ and the input for position $t$. Their sequential nature prevents parallelization within training examples, which is a critical issue for longer sequences due to memory constraints limiting batching across examples.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Self-attention layer\", \"type\": \"methodology\", \"description\": \"A self-attention layer connects all positions with a constant number of sequentially executed operations.Self-attention layers are faster than recurrent layers when the sequence length $n$ is smaller than the representation dimensionality $d$. This is often the case with sentence representations used by state-of-the-art models in machine translations, such as word-piece and byte-pair representations.\", \"created_at\": \"2025-08-15 14:55:24\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"English-to-German\", \"type\": \"methodology\", \"description\": \"This refers to a translation task where the Transformer model is evaluated.\", \"created_at\": \"2025-08-15 14:55:05\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"encoder-decoder attention\", \"entity2\": \"sequence-to-sequence models\", \"description\": \"Encoder-decoder attention in the Transformer mimics the attention mechanisms found in sequence-to-sequence models, citing references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 21\\n\\nyer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. Similarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \\\\infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. # 3.3 Position-wise Feed-Forward Networks In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.389, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.389, + "start_timestamp": "2025-08-16T09:56:40.615670", + "end_timestamp": "2025-08-16T09:56:44.004667" + }, + "metadata": { + "saved_at": "2025-08-16T09:56:44.005670", + "file_path": "retrieval_logs\\retrieval_20250816_095644_004_hybrid_k5_ck2_Based_on_the_following_QA_about_transformers_how_d.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100217_638_mix_k3_ck2_How_does_the_self-attention_mechanism_function_wit.json b/retrieval_logs/retrieval_20250816_100217_638_mix_k3_ck2_How_does_the_self-attention_mechanism_function_wit.json new file mode 100644 index 0000000000000000000000000000000000000000..baf61e2d8700a2fbc2e74654102ebd8a83d3a27b --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100217_638_mix_k3_ck2_How_does_the_self-attention_mechanism_function_wit.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:02:17.638915", + "query": "How does the self-attention mechanism function within the Transformer architecture, detailing the process of query, key, and value weightings?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 11467, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Queries, Keys, and Values\", \"type\": \"abstract\", \"description\": \"Fundamental components of the attention mechanism that are linearly projected multiple times in Multi-Head Attention and are $d _ { \\\\\\\\mathrm { m o d e l } }$-dimensional in a single attention function.\", \"created_at\": \"2025-08-15 18:03:15\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"query representations\", \"type\": \"methodology\", \"description\": \"Query representations are shared across multiple heads in Grouped Query Attention (GQA).\", \"created_at\": \"2025-08-15 16:42:26\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Learned Linear Projections\", \"type\": \"methodology\", \"description\": \"These are distinct projections applied to queries, keys, and values in the multi-head attention mechanism.\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:35\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Transformer architecture\", \"type\": \"methodology\", \"description\": \"The Transformer architecture is a neural network architecture widely used in language modeling and as a component of large language models. It generally adopts an encoder-decoder structure, though decoder-only variations also exist. Key components of the Transformer architecture include self-attention mechanisms, which are crucial for managing long-range text dependencies and maintaining performance with constrained resources, feedforward networks, positional embeddings that typically employ a sinusoidal function, and layer normalization. The architecture's dimensions are described using conventional terminologies, such as input and output dimension size ($d_{model}$), query/key/value/output projection matrices ($W_q$, $W_k$, $W_v$, $W_o$), and a pretrained weight matrix ($W$ or $W_0$). In the context of large language models, techniques like LoRA (Low-Rank Adaptation) can be integrated by injecting trainable rank decomposition matrices into each layer, thereby modifying the model structure. Specific metrics, such as per-wordpiece perplexities, are presented on datasets like the English-to-German translation development set, newstest2013. The detailed design of the Transformer architecture is provided in Section 5.The Transformer architecture uses Multi-Head Attention (MHA) as a key component. MHA is described as the first method that uses multiple heads to capture diverse information within the Transformer architecture.The Transformer architecture utilizes Multi-Head Attention (MHA) to capture diverse information. MHA employs multiple heads, each operating independently, to attend to different parts of the input sequence. The formula for MHA is given as MultiHead(Q, K, V) = Concat(head_1, head_2, ..., head_h)W^O, where head_i = Attention(QW_i^Q, KW_i^K, VW_i^V).\", \"created_at\": \"2025-08-15 16:23:09\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Multi-Head Attention processes queries, keys, and values by linearly projecting them multiple times.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Linear Projections\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Linear projections are applied to queries, keys, and values as part of the Multi-Head Attention mechanism.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Transformer architecture\", \"entity2\": \"self-attention mechanisms\", \"description\": \"The Transformer architecture utilizes self-attention mechanisms to manage long-range text dependencies.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 31\\n\\nder-decoder structure featuring self-attention mechanisms, feedforward networks, positional embeddings, and layer normalization. The Transformer architecture design tailored for SLMs is detailed in Section 5; this section will provide only foundational concepts. Self-Attention Mechanism enables the model to evaluate the importance of tokens relative to each other. The self-attention mechanism is written as $$\\n{ \\\\mathrm { A t t e n t i o n } } ( \\\\mathbf { Q } , \\\\mathbf { K } , \\\\mathbf { V } ) = { \\\\mathrm { s o f t m a x } } \\\\left( { \\\\frac { \\\\mathbf { Q } \\\\mathbf { K } ^ { \\\\top } } { \\\\sqrt { d _ { k } } } } \\\\right) \\\\mathbf { V }\\n$$ where ${ \\\\bf { Q } } , { \\\\bf { K } } ,$ and $\\\\mathbf { V }$ are query, key, and value matrices, scaled by $\\\\sqrt { d _ { k } }$ for stability where $d _ { k }$ is the dimension of key matrices. The dot product $\\\\mathbf { Q } \\\\mathbf { K } ^ { \\\\top }$ reflects the similarity between the query and key vectors. [IMAGE]\\nFig. 4. Transformer architecture [346].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 7.8889, + "rag_initialization_seconds": 4.3512, + "query_execution_seconds": 3.5377, + "start_timestamp": "2025-08-16T10:02:09.749977", + "end_timestamp": "2025-08-16T10:02:17.638916" + }, + "metadata": { + "saved_at": "2025-08-16T10:02:17.638915", + "file_path": "retrieval_logs\\retrieval_20250816_100217_638_mix_k3_ck2_How_does_the_self-attention_mechanism_function_wit.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100230_055_mix_k3_ck2_What_is_the_key_innovation_of_the_self-attention_m.json b/retrieval_logs/retrieval_20250816_100230_055_mix_k3_ck2_What_is_the_key_innovation_of_the_self-attention_m.json new file mode 100644 index 0000000000000000000000000000000000000000..8702592404a71d576a1dd979f769de52165df3d1 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100230_055_mix_k3_ck2_What_is_the_key_innovation_of_the_self-attention_m.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:02:30.055176", + "query": "What is the key innovation of the self-attention mechanism compared to previous sequence processing models like RNNs or LSTMs?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 8953, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"End-to-end memory networks\", \"type\": \"methodology\", \"description\": \"End-to-end memory networks are a methodology discussed in the text.End-to-end memory networks utilize a recurrent attention mechanism instead of sequence-aligned recurrence and have demonstrated good performance in tasks like simple-language question answering and language modeling.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Large-scale LSTM Experiments\", \"type\": \"methodology\", \"description\": \"Experiments were run on a large-scale next-word prediction task to demonstrate the effectiveness of the approach on a real-world problem.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:35\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Factorization tricks for LSTM networks\", \"type\": \"methodology\", \"description\": \"This refers to techniques for factorization within LSTM networks.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"attention distributions\", \"type\": \"results\", \"description\": \"Attention distributions from our models are inspected and examples are presented and discussed in the appendix. Individual attention heads clearly learn to perform different tasks, and many appear to exhibit behavior related to the syntactic and semantic structure of the sentences.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:58:21\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Accuracy Oscillations\", \"entity2\": \"Large-scale LSTM Experiments\", \"description\": \"Accuracy Oscillations are a result observed from the Large-scale LSTM Experiments, highlighting the effect of client averaging.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"End-to-end memory networks\", \"entity2\": \"Self-attention\", \"description\": \"Both self-attention and end-to-end memory networks are attention mechanisms used in sequence processing tasks, with end-to-end memory networks specifically using a recurrent attention mechanism.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Large-scale LSTM Experiments\", \"entity2\": \"Training Dataset\", \"description\": \"The Training Dataset is the data source used for the Large-scale LSTM Experiments.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"FedAvg Progress\", \"entity2\": \"Large-scale LSTM Experiments\", \"description\": \"The FedAvg Progress is a result observed from the Large-scale LSTM Experiments.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Factorization tricks for LSTM networks\", \"entity2\": \"Neural machine translation in linear time\", \"description\": \"Both are related to neural network architectures and efficiency, with factorization tricks potentially improving the performance of models like those used in linear time translation.\", \"created_at\": \"2025-08-15 14:58:12\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"transduction problems\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in transduction problems.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 6\\n\\nThis makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 6\\n\\nThis makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.3104, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.3104, + "start_timestamp": "2025-08-16T10:02:26.744757", + "end_timestamp": "2025-08-16T10:02:30.055177" + }, + "metadata": { + "saved_at": "2025-08-16T10:02:30.055176", + "file_path": "retrieval_logs\\retrieval_20250816_100230_055_mix_k3_ck2_What_is_the_key_innovation_of_the_self-attention_m.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100239_970_mix_k10_ck4_How_does_the_computational_complexity_and_parallel.json b/retrieval_logs/retrieval_20250816_100239_970_mix_k10_ck4_How_does_the_computational_complexity_and_parallel.json new file mode 100644 index 0000000000000000000000000000000000000000..5635358084c40257b89575adc7b8ebda0e127442 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100239_970_mix_k10_ck4_How_does_the_computational_complexity_and_parallel.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:02:39.970341", + "query": "How does the computational complexity and parallelization capability of self-attention in Transformers compare to recurrent neural networks (RNNs) for sequence modeling tasks?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 37443, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Lack of Parallelization\", \"type\": \"limitation\", \"description\": \"An inherent limitation of recurrent models due to their sequential nature, which precludes parallelization within training examples and becomes critical at longer sequence lengths.\", \"created_at\": \"2025-08-15 18:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Sequential Computation\", \"type\": \"methodology\", \"description\": \"The process by which recurrent models factor computation along the symbol positions of input and output sequences, aligning positions to steps in computation time and generating a sequence of hidden states [math: h _ { t }] as a function of the previous hidden state [math: h _ { t - 1 }] and the input for position [math: t].\", \"created_at\": \"2025-08-15 18:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Training Examples\", \"type\": \"abstract\", \"description\": \"The context within which parallelization is precluded by the inherently sequential nature of recurrent models.\", \"created_at\": \"2025-08-15 18:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"autoregressive decoding\", \"type\": \"methodology\", \"description\": \"Autoregressive decoding is impacted by computational and memory challenges that worsen with model size.\", \"created_at\": \"2025-08-15 17:04:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"computational and memory challenges\", \"type\": \"limitations\", \"description\": \"These challenges worsen with model size, impacting training and autoregressive decoding.\", \"created_at\": \"2025-08-15 17:04:41\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"multi-headed self-attention\", \"type\": \"methodology\", \"description\": \"Multi-headed self-attention is a component of the Transformer, replacing recurrent layers in encoder-decoder architectures.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Computational complexity\", \"type\": \"discussion\", \"description\": \"Self-attention layers are faster than recurrent layers in terms of computational complexity when the sequence length $n$ is smaller than the representation dimensionality $d$.\", \"created_at\": \"2025-08-15 14:55:24\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"sequence modeling\", \"type\": \"methodology\", \"description\": \"Sequence modeling is a problem domain for which recurrent neural networks, including LSTM and gated recurrent neural networks, are state-of-the-art approaches.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Comparison of Self-Attention Layers\", \"type\": \"discussion\", \"description\": \"A section introduced to compare various aspects of self-attention layers to recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations to another sequence of equal length.\", \"created_at\": \"2025-08-15 18:29:32\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Recurrent Neural Networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including long short-term memory (LSTM) and gated recurrent units (GRU), have been firmly established as state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.\", \"created_at\": \"2025-08-15 18:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Sequence Modeling and Transduction\", \"type\": \"abstract\", \"description\": \"Problem domains such as language modeling and machine translation where recurrent neural networks have been established as state-of-the-art approaches.\", \"created_at\": \"2025-08-15 18:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"A neural attention model for abstractive sentence summarization\", \"type\": \"methodology\", \"description\": \"This refers to a neural attention model for abstractive sentence summarization, as presented in the arXiv preprint arXiv:1509.00685.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Neural architectures for named entity recognition\", \"type\": \"methodology\", \"description\": \"This refers to the neural architectures used for named entity recognition, as presented in the arXiv preprint arXiv:1603.01360.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"Sequence-aligned RNNs\", \"type\": \"methodology\", \"description\": \"Sequence-aligned RNNs (Recurrent Neural Networks) are a type of model that previous transduction models used, but the Transformer is noted for not using them to compute representations.\", \"created_at\": \"2025-08-15 18:34:17\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"The Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a model architecture that follows an overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder. It notably uses multi-head attention in three different ways, including encoder-decoder attention layers and self-attention layers within its encoder. This model allows for significantly more parallelization and achieves better BLEU scores than previous state-of-the-art models on the English-to-German and English-to-French newstest2014 tests. The Transformer can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs, representing a fraction of the training cost compared to prior models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.\", \"created_at\": \"2025-08-15 21:42:55\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"training\", \"type\": \"methodology\", \"description\": \"Training is a process that can be made more efficient through MoE architectures like GLaM.Training is the process where sequences $(y)$ are used, and it differs in distribution from sequences produced during inference $(y')$.Training is impacted by computational and memory challenges that worsen with model size.\", \"created_at\": \"2025-08-15 17:04:41\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Lack of Parallelization\", \"entity2\": \"Sequential Computation\", \"description\": \"The inherently sequential nature of computation in recurrent models directly precludes parallelization within training examples.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"MoE\", \"entity2\": \"Transformer\", \"description\": \"MoE layers typically replace the Feed-Forward Network (FFN) layer within a Transformer block when MoE is incorporated into existing Transformer models.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Lack of Parallelization\", \"entity2\": \"Training Examples\", \"description\": \"The lack of parallelization in recurrent models applies specifically to computation within training examples.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Transformer\", \"description\": \"Multi-Head Attention is employed within the Transformer to address the issue of reduced effective resolution arising from averaging attention-weighted positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"autoregressive decoding\", \"entity2\": \"computational and memory challenges\", \"description\": \"Computational and memory challenges worsen with model size, impacting autoregressive decoding.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"GPT-2\", \"entity2\": \"Transformer\", \"description\": \"GPT-2 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mamba\", \"entity2\": \"Transformer\", \"description\": \"Mamba differs from Transformer in its approach to accessing hidden states, with Mamba focusing on the immediate previous hidden state and Transformer requiring access to all previous hidden states.Mamba offers a solution to the Transformer's drawback of quadratic time complexity during inference by relying only on the last hidden state, leading to faster inference speeds.Transformer uses attention heads for recall, while Mamba uses SSM heads for context summarization, highlighting different approaches to sequence processing.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"A neural attention model for abstractive sentence summarization\", \"entity2\": \"Neural architectures for named entity recognition\", \"description\": \"Both are neural network-based methodologies, with the former focusing on named entity recognition and the latter on abstractive sentence summarization.\", \"created_at\": \"2025-08-15 15:48:17\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Figure 5\", \"entity2\": \"Transformer\", \"description\": \"Figure 5 implicitly shows the Transformer's slower inference speeds by comparison to Mamba.\", \"created_at\": \"2025-08-15 16:21:47\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"MoE layer\", \"entity2\": \"Transformer\", \"description\": \"The MoE layer replaces the Feed-Forward Network (FFN) layer within a Transformer block.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Hymba\", \"entity2\": \"Transformer\", \"description\": \"Hymba integrates attention heads, similar to those in the Transformer, within its layers.\", \"created_at\": \"2025-08-15 16:29:28\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Sequence-aligned RNNs\", \"entity2\": \"The Transformer\", \"description\": \"The Transformer is explicitly stated to compute representations 'without using sequence-aligned RNNs', highlighting a key architectural difference and innovation.\", \"created_at\": \"2025-08-15 18:35:17\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Transformer\", \"entity2\": \"ΔWq\", \"description\": \"ΔWq is obtained from layers within a Transformer network.ΔWq represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:28\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"computational and memory challenges\", \"entity2\": \"training\", \"description\": \"Computational and memory challenges worsen with model size, impacting training.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Transformer\", \"entity2\": \"ΔWv\", \"description\": \"ΔWv represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Transformer\", \"entity2\": \"language modeling\", \"description\": \"The Transformer is implied to be relevant to language modeling tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Recurrence\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture dispenses with recurrence.The Transformer dispenses with recurrence, which is a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"BLEU scores\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model's performance is measured by its BLEU scores.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Emergent Modularity phenomenon\", \"entity2\": \"Transformer\", \"description\": \"The Emergent Modularity phenomenon is observed in pre-trained Transformer models.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"Convolutions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer dispenses with convolutions, which are a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Feed-Forward Network (FFN) layer\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer that is replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:18:38\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"State Space Models (SSMs)\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's attention mechanism has a drawback of quadratic time complexity, while State Space Models (SSMs) enable faster inference speeds by relying on the last hidden state.\", \"created_at\": \"2025-08-15 16:21:42\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Transformer\", \"entity2\": \"Vaswani et al.\", \"description\": \"Vaswani et al. are associated with the development or publication of the Transformer architecture.Vaswani et al. are the authors of the Transformer architecture.\", \"created_at\": \"2025-08-13 22:49:38\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder structure\", \"description\": \"\\\"The Transformer generally adopts an encoder-decoder structure.\\\")The Transformer is a transduction model that, unlike most competitive neural sequence transduction models, does not explicitly state it uses an encoder-decoder structure, but rather relies on self-attention.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"English Constituency Parsing\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is being evaluated on the task of English Constituency Parsing to assess its generalization capabilities.\", \"created_at\": \"2025-08-15 14:55:59\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"Transformer\", \"entity2\": \"newstest2014\", \"description\": \"The Transformer model is evaluated on the newstest2014 test set for translation tasks.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Transformer\", \"entity2\": \"images, audio and video\", \"description\": \"\\\"The Transformer is planned to be extended to problems involving input and output modalities other than text, such as images, audio, and video.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"English-to-French\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-French translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Constant number of operations\", \"entity2\": \"Transformer\", \"description\": \"The Transformer achieves a constant number of operations to learn dependencies between distant positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Making generation less sequential\", \"entity2\": \"Transformer\", \"description\": \"Making generation less sequential is a planned enhancement for the Transformer model.\", \"created_at\": \"2025-08-15 14:57:21\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"Feed-Forward Network (FFN)\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer block that can be replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"SVD\", \"entity2\": \"Transformer\", \"description\": \"The SVD method is applied to matrices (ΔW) derived from a Transformer's layers.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Transformer\", \"entity2\": \"simple-language question answering\", \"description\": \"The Transformer is implied to be relevant to simple-language question answering tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 7\\n\\ncealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34]. To the best of our knowledge, however, the Transformer is the first transduction model relying entirely on self-attention to compute representations of its input and output without using sequencealigned RNNs or convolution. In the following sections, we will describe the Transformer, motivate self-attention and discuss its advantages over models such as [17, 18] and [9]. # 3 Model Architecture Most competitive neural sequence transduction models have an encoder-decoder structure [5, 2, 35]. Here, the encoder maps an input sequence of symbol representations $( x _ { 1 } , . . . , x _ { n } )$ to a sequence of continuous representations $\\\\textbf { z } = ~ ( z _ { 1 } , . . . , z _ { n } )$ . Given $\\\\mathbf { z }$ , the decoder then generates an output sequence $\\\\left( y _ { 1 } , . . . , y _ { m } \\\\right)$ of symbols one element at a time.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 44\\n\\n(2016) [8]generative93.3 Our results in Table 4 show that despite the lack of task-specific tuning our model performs surprisingly well, yielding better results than all previously reported models with the exception of the Recurrent Neural Network Grammar [8]. In contrast to RNN sequence-to-sequence models [37], the Transformer outperforms the BerkeleyParser [29] even when training only on the WSJ training set of 40K sentences. # 7 Conclusion In this work, we presented the Transformer, the first sequence transduction model based entirely on attention, replacing the recurrent layers most commonly used in encoder-decoder architectures with multi-headed self-attention. For translation tasks, the Transformer can be trained significantly faster than architectures based on recurrent or convolutional layers. On both WMT 2014 English-to-German and WMT 2014 English-to-French translation tasks, we achieve a new state of the art.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 55\\n\\n118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\\\Delta \\\\mathbf { W } = \\\\mathbf { A } \\\\mathbf { B } ^ { \\\\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\\\mathbf { W } _ { \\\\mathrm { f t } } = \\\\mathbf { W } + \\\\alpha \\\\Delta \\\\mathbf { W }$ where $\\\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Attention Is All You Need\\nChunk: 7\\n\\ncealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34]. To the best of our knowledge, however, the Transformer is the first transduction model relying entirely on self-attention to compute representations of its input and output without using sequencealigned RNNs or convolution. In the following sections, we will describe the Transformer, motivate self-attention and discuss its advantages over models such as [17, 18] and [9]. # 3 Model Architecture Most competitive neural sequence transduction models have an encoder-decoder structure [5, 2, 35]. Here, the encoder maps an input sequence of symbol representations $( x _ { 1 } , . . . , x _ { n } )$ to a sequence of continuous representations $\\\\\\\\textbf { z } = ~ ( z _ { 1 } , . . . , z _ { n } )$ . Given $\\\\\\\\mathbf { z }$ , the decoder then generates an output sequence $\\\\\\\\left( y _ { 1 } , . . . , y _ { m } \\\\\\\\right)$ of symbols one element at a time.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.1987, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.1987, + "start_timestamp": "2025-08-16T10:02:36.771636", + "end_timestamp": "2025-08-16T10:02:39.970342" + }, + "metadata": { + "saved_at": "2025-08-16T10:02:39.970341", + "file_path": "retrieval_logs\\retrieval_20250816_100239_970_mix_k10_ck4_How_does_the_computational_complexity_and_parallel.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100256_921_mix_k3_ck2_What_is_the_fundamental_concept_behind_self-attent.json b/retrieval_logs/retrieval_20250816_100256_921_mix_k3_ck2_What_is_the_fundamental_concept_behind_self-attent.json new file mode 100644 index 0000000000000000000000000000000000000000..23b9edf49945497f8d105c55c64c53ff18562957 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100256_921_mix_k3_ck2_What_is_the_fundamental_concept_behind_self-attent.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:02:56.921460", + "query": "What is the fundamental concept behind self-attention in Transformer models?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 10451, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Queries, Keys, and Values\", \"type\": \"abstract\", \"description\": \"Fundamental components of the attention mechanism that are linearly projected multiple times in Multi-Head Attention and are $d _ { \\\\\\\\mathrm { m o d e l } }$-dimensional in a single attention function.\", \"created_at\": \"2025-08-15 18:03:15\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Attention\", \"type\": \"methodology\", \"description\": \"Attention is a mechanism employed in natural language processing models, particularly within the Multi-Head Attention (MHA) framework. It functions as a method to focus on different parts of an input sequence for information processing. At its core, attention computes a weighted sum of values, where the weights are determined by the similarity between queries and keys. This process is often visualized by showing parallel word sequences connected by lines, illustrating how different parts of the input are attended to. Within each head of the MHA mechanism, attention takes transformed queries (Q), keys (K), and values (V) as inputs. The output of attention is a vector derived from a weighted sum of these values, with the weights derived from the query-key similarity. While the specific formula for scaled dot-product attention is not explicitly detailed, it is implied to be the underlying calculation. Essentially, attention acts as a function that maps a query and a set of key-value pairs to an output vector.\", \"created_at\": \"2025-08-15 14:54:37\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:58:21\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Multi-Head Attention processes queries, keys, and values by linearly projecting them multiple times.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Linear Projections\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Linear projections are applied to queries, keys, and values as part of the Multi-Head Attention mechanism.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Attention\", \"entity2\": \"FlashAttention-2\", \"description\": \"FlashAttention-2 is an optimization for attention mechanisms, improving speed and parallelism.\", \"created_at\": \"2025-08-15 17:07:45\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 6\\n\\nThis makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.3678, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.3678, + "start_timestamp": "2025-08-16T10:02:53.553661", + "end_timestamp": "2025-08-16T10:02:56.921460" + }, + "metadata": { + "saved_at": "2025-08-16T10:02:56.921460", + "file_path": "retrieval_logs\\retrieval_20250816_100256_921_mix_k3_ck2_What_is_the_fundamental_concept_behind_self-attent.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100306_030_mix_k3_ck2_How_are_the_query_key_and_value_matrices_computed_.json b/retrieval_logs/retrieval_20250816_100306_030_mix_k3_ck2_How_are_the_query_key_and_value_matrices_computed_.json new file mode 100644 index 0000000000000000000000000000000000000000..fd441f4f80e2012fbc80863b43862af77d8ff7c1 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100306_030_mix_k3_ck2_How_are_the_query_key_and_value_matrices_computed_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:03:06.030762", + "query": "How are the query, key, and value matrices computed and utilized within the self-attention mechanism?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 13563, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"query, key, and value matrices\", \"type\": \"methodology\", \"description\": \"Query, key, and value matrices (Q, K, V) are used in the Self-Attention Mechanism, scaled by sqrt(dk).\", \"created_at\": \"2025-08-15 16:19:41\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"similarity between the query and key vectors\", \"type\": \"methodology\", \"description\": \"The similarity between the query and key vectors is reflected by the dot product QK^T in the Self-Attention Mechanism.\", \"created_at\": \"2025-08-15 16:19:41\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Attention Function\", \"type\": \"abstract\", \"description\": \"An attention function is described as mapping a query and a set of key-value pairs to an output, where the query, keys, values, and output are all vectors. The output is computed as a weighted sum.The attention function computes the dot products of the query with all keys, divides each by $\\\\sqrt { d _ { k } }$, and applies a softmax function to obtain the weights on the values. It can be computed on a set of queries simultaneously, packed together into a matrix $Q$, with keys and values packed into matrices $K$ and $V$. The matrix of outputs is computed as: $\\\\mathrm { A t t e n t i o n } ( Q , K , V ) = \\\\mathrm { s o f t m a x } ( \\\\frac { Q K ^ { T } } { \\\\sqrt { d _ { k } } } ) V$.\", \"created_at\": \"2025-08-15 14:53:52\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:35\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Transformer architecture\", \"type\": \"methodology\", \"description\": \"The Transformer architecture is a neural network architecture widely used in language modeling and as a component of large language models. It generally adopts an encoder-decoder structure, though decoder-only variations also exist. Key components of the Transformer architecture include self-attention mechanisms, which are crucial for managing long-range text dependencies and maintaining performance with constrained resources, feedforward networks, positional embeddings that typically employ a sinusoidal function, and layer normalization. The architecture's dimensions are described using conventional terminologies, such as input and output dimension size ($d_{model}$), query/key/value/output projection matrices ($W_q$, $W_k$, $W_v$, $W_o$), and a pretrained weight matrix ($W$ or $W_0$). In the context of large language models, techniques like LoRA (Low-Rank Adaptation) can be integrated by injecting trainable rank decomposition matrices into each layer, thereby modifying the model structure. Specific metrics, such as per-wordpiece perplexities, are presented on datasets like the English-to-German translation development set, newstest2013. The detailed design of the Transformer architecture is provided in Section 5.The Transformer architecture uses Multi-Head Attention (MHA) as a key component. MHA is described as the first method that uses multiple heads to capture diverse information within the Transformer architecture.The Transformer architecture utilizes Multi-Head Attention (MHA) to capture diverse information. MHA employs multiple heads, each operating independently, to attend to different parts of the input sequence. The formula for MHA is given as MultiHead(Q, K, V) = Concat(head_1, head_2, ..., head_h)W^O, where head_i = Attention(QW_i^Q, KW_i^K, VW_i^V).\", \"created_at\": \"2025-08-15 16:23:09\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Attention Function\", \"entity2\": \"Multi-Head Attention\", \"description\": \"'Multi-Head Attention' is presented as a specific type or implementation of an 'Attention Function'.\", \"created_at\": \"2025-08-15 18:09:02\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Attention Function\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"'Scaled Dot-Product Attention' is presented as a specific type or implementation of an 'Attention Function'.\", \"created_at\": \"2025-08-15 18:08:46\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Attention Function\", \"entity2\": \"Self-attention Sub-layer Modification\", \"description\": \"The self-attention sub-layer modification is a specific application or adaptation of the general 'Attention Function' concept within a decoder stack.\", \"created_at\": \"2025-08-15 18:07:32\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Transformer architecture\", \"entity2\": \"self-attention mechanisms\", \"description\": \"The Transformer architecture utilizes self-attention mechanisms to manage long-range text dependencies.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Attention Function\", \"entity2\": \"Attention Mechanisms Diagrams\", \"description\": \"The 'Attention Mechanisms Diagrams' illustrate general 'attention mechanisms' which are based on the concept of an 'Attention Function'.\", \"created_at\": \"2025-08-15 18:08:34\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Attention Function\", \"entity2\": \"Dot-product attention\", \"description\": \"Dot-product attention is a specific type of attention function that is similar to the general attention function described, differing only by a scaling factor.\", \"created_at\": \"2025-08-15 14:53:57\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Attention Function\", \"entity2\": \"Masking and Output Embeddings Offset\", \"description\": \"The masking and output embeddings offset are techniques applied within the context of attention mechanisms to control dependencies in predictions.\", \"created_at\": \"2025-08-15 18:07:46\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Additive attention\", \"entity2\": \"Attention Function\", \"description\": \"Additive attention is another type of attention function that differs in its method of computing the compatibility function.\", \"created_at\": \"2025-08-15 14:54:04\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 16\\n\\nThe input consists of queries and keys of dimension $d _ { k }$ , and values of dimension √ $d _ { v }$ . We compute the dot products of the query with all keys, divide each by $\\\\\\\\sqrt { d _ { k } }$ , and apply a softmax function to obtain the weights on the values. In practice, we compute the attention function on a set of queries simultaneously, packed together into a matrix $Q$ . The keys and values are also packed together into matrices $K$ and $V$ . We compute the matrix of outputs as: $\\n\\\\\\\\mathrm { A t t e n t i o n } ( Q , K , V ) = \\\\\\\\mathrm { s o f t m a x } ( \\\\\\\\frac { Q K ^ { T } } { \\\\\\\\sqrt { d _ { k } } } ) V\\n$ The two most commonly used attention functions are additive attention [2], and dot-product (multiplicative) attention. Dot-product attention is identical to our algorithm, except for the scaling factor of $\\\\\\\\frac { 1 } { \\\\\\\\sqrt { d _ { k } } }$ . Additive attention computes the compatibility function using a feed-forward network with a single hidden layer.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.3984, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 2.3984, + "start_timestamp": "2025-08-16T10:03:03.631339", + "end_timestamp": "2025-08-16T10:03:06.029763" + }, + "metadata": { + "saved_at": "2025-08-16T10:03:06.030762", + "file_path": "retrieval_logs\\retrieval_20250816_100306_030_mix_k3_ck2_How_are_the_query_key_and_value_matrices_computed_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100317_248_mix_k3_ck2_What_specific_problem_does_the_self-attention_mech.json b/retrieval_logs/retrieval_20250816_100317_248_mix_k3_ck2_What_specific_problem_does_the_self-attention_mech.json new file mode 100644 index 0000000000000000000000000000000000000000..2246b4138791c5db4468d5cee9b97eef4502332d --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100317_248_mix_k3_ck2_What_specific_problem_does_the_self-attention_mech.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:03:17.248443", + "query": "What specific problem does the self-attention mechanism solve compared to previous sequence processing models (e.g., RNNs, LSTMs)?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 13480, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"End-to-end memory networks\", \"type\": \"methodology\", \"description\": \"End-to-end memory networks are a methodology discussed in the text.End-to-end memory networks utilize a recurrent attention mechanism instead of sequence-aligned recurrence and have demonstrated good performance in tasks like simple-language question answering and language modeling.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Recurrent Neural Networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including long short-term memory (LSTM) and gated recurrent units (GRU), have been firmly established as state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:35\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Large-scale LSTM Experiments\", \"type\": \"methodology\", \"description\": \"Experiments were run on a large-scale next-word prediction task to demonstrate the effectiveness of the approach on a real-world problem.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"attention distributions\", \"type\": \"results\", \"description\": \"Attention distributions from our models are inspected and examples are presented and discussed in the appendix. Individual attention heads clearly learn to perform different tasks, and many appear to exhibit behavior related to the syntactic and semantic structure of the sentences.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:58:21\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequential Computation\", \"description\": \"The inherent characteristic of Recurrent Neural Networks is their sequential computation, where hidden states are generated based on previous states and current input.\", \"created_at\": \"2025-08-15 18:20:09\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"End-to-end memory networks\", \"entity2\": \"Self-attention\", \"description\": \"Both self-attention and end-to-end memory networks are attention mechanisms used in sequence processing tasks, with end-to-end memory networks specifically using a recurrent attention mechanism.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Gated Recurrent Units (GRU)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Gated Recurrent Units (GRU) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:55\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Long Short-Term Memory (LSTM)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Long Short-Term Memory (LSTM) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Encoder-Decoder Architectures\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Encoder-Decoder Architectures are mentioned alongside recurrent language models as areas where efforts have pushed boundaries, indicating a close relationship in the context of sequence modeling.\", \"created_at\": \"2025-08-15 18:21:27\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Recurrent Language Models\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Recurrent Language Models are a specific application or type of recurrent neural network whose boundaries have been pushed by research.\", \"created_at\": \"2025-08-15 18:21:11\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Accuracy Oscillations\", \"entity2\": \"Large-scale LSTM Experiments\", \"description\": \"Accuracy Oscillations are a result observed from the Large-scale LSTM Experiments, highlighting the effect of client averaging.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Large-scale LSTM Experiments\", \"entity2\": \"Training Dataset\", \"description\": \"The Training Dataset is the data source used for the Large-scale LSTM Experiments.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"FedAvg Progress\", \"entity2\": \"Large-scale LSTM Experiments\", \"description\": \"The FedAvg Progress is a result observed from the Large-scale LSTM Experiments.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"transduction problems\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in transduction problems.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 6\\n\\nThis makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.207, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.207, + "start_timestamp": "2025-08-16T10:03:14.041478", + "end_timestamp": "2025-08-16T10:03:17.248443" + }, + "metadata": { + "saved_at": "2025-08-16T10:03:17.248443", + "file_path": "retrieval_logs\\retrieval_20250816_100317_248_mix_k3_ck2_What_specific_problem_does_the_self-attention_mech.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100327_986_mix_k10_ck4_How_does_the_computational_complexity_of_self-atte.json b/retrieval_logs/retrieval_20250816_100327_986_mix_k10_ck4_How_does_the_computational_complexity_of_self-atte.json new file mode 100644 index 0000000000000000000000000000000000000000..6a09df7ca1c633a1043063241bb7a18ae5dd1e38 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100327_986_mix_k10_ck4_How_does_the_computational_complexity_of_self-atte.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:03:27.986322", + "query": "How does the computational complexity of self-attention compare to recurrent mechanisms for sequence processing?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 19115, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Lack of Parallelization\", \"type\": \"limitation\", \"description\": \"An inherent limitation of recurrent models due to their sequential nature, which precludes parallelization within training examples and becomes critical at longer sequence lengths.\", \"created_at\": \"2025-08-15 18:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Sequential Computation\", \"type\": \"methodology\", \"description\": \"The process by which recurrent models factor computation along the symbol positions of input and output sequences, aligning positions to steps in computation time and generating a sequence of hidden states [math: h _ { t }] as a function of the previous hidden state [math: h _ { t - 1 }] and the input for position [math: t].\", \"created_at\": \"2025-08-15 18:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"autoregressive decoding\", \"type\": \"methodology\", \"description\": \"Autoregressive decoding is impacted by computational and memory challenges that worsen with model size.\", \"created_at\": \"2025-08-15 17:04:41\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"computational and memory challenges\", \"type\": \"limitations\", \"description\": \"These challenges worsen with model size, impacting training and autoregressive decoding.\", \"created_at\": \"2025-08-15 17:04:41\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Computational complexity\", \"type\": \"discussion\", \"description\": \"Self-attention layers are faster than recurrent layers in terms of computational complexity when the sequence length $n$ is smaller than the representation dimensionality $d$.\", \"created_at\": \"2025-08-15 14:55:24\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"A neural attention model for abstractive sentence summarization\", \"type\": \"methodology\", \"description\": \"This refers to a neural attention model for abstractive sentence summarization, as presented in the arXiv preprint arXiv:1509.00685.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Neural architectures for named entity recognition\", \"type\": \"methodology\", \"description\": \"This refers to the neural architectures used for named entity recognition, as presented in the arXiv preprint arXiv:1603.01360.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Comparison of Self-Attention Layers\", \"type\": \"discussion\", \"description\": \"A section introduced to compare various aspects of self-attention layers to recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations to another sequence of equal length.\", \"created_at\": \"2025-08-15 18:29:32\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Rethinking the inception architecture for computer vision\", \"type\": \"methodology\", \"description\": \"Rethinking the inception architecture for computer vision is a methodology referenced in the text.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"long sequences\", \"type\": \"methodology\", \"description\": \"Tasks involving very long sequences can have their computational performance improved by restricting self-attention to a neighborhood of size r.\", \"created_at\": \"2025-08-15 14:57:01\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Sequence to sequence learning with neural networks\", \"type\": \"methodology\", \"description\": \"Sequence to sequence learning with neural networks is a methodology mentioned in the text.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Grammar as a foreign language\", \"type\": \"methodology\", \"description\": \"Grammar as a foreign language is a methodology cited in the text.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Recurrent Neural Networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including long short-term memory (LSTM) and gated recurrent units (GRU), have been firmly established as state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.\", \"created_at\": \"2025-08-15 18:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Sequence Modeling and Transduction\", \"type\": \"abstract\", \"description\": \"Problem domains such as language modeling and machine translation where recurrent neural networks have been established as state-of-the-art approaches.\", \"created_at\": \"2025-08-15 18:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"sequence modeling\", \"type\": \"methodology\", \"description\": \"Sequence modeling is a problem domain for which recurrent neural networks, including LSTM and gated recurrent neural networks, are state-of-the-art approaches.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"deep learning architectures\", \"type\": \"methodology\", \"description\": \"deep learning architectures are modern systems that utilize fundamental attention mechanisms, particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"natural language processing\", \"type\": \"abstract\", \"description\": \"Natural Language Processing (NLP) is a significant field that relies on adapting large-scale, pre-trained language models to various downstream applications and particular tasks or domains. NLP has been greatly enhanced by advancements in language models, leading to broader applications across various fields. Within NLP, fundamental attention mechanisms are particularly utilized. Mixture of Experts (MoE) has seen recent applications in NLP, presenting multiple important subproblems that require further investigation, and is an area where MoE applications are reviewed in depth in the paper.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"Mixtures of experts for scaling up neural networks in order execution\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by K. Li, M. Cucuringu, L. Sanchez-Betancourt, and T. Willi, and was presented at the 5th ACM International Conference on AI in Finance in 2024.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity\": \"Movement primitive learning and generalization: Using mixture density networks\", \"type\": \"methodology\", \"description\": \"This methodology is presented in a publication by Y. Zhou, J. Gao, and T. Asfour, and was published in IEEE Robotics & Automation Magazine in 2020.\", \"created_at\": \"2025-08-15 15:52:27\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Lack of Parallelization\", \"entity2\": \"Sequential Computation\", \"description\": \"The inherently sequential nature of computation in recurrent models directly precludes parallelization within training examples.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"autoregressive decoding\", \"entity2\": \"computational and memory challenges\", \"description\": \"Computational and memory challenges worsen with model size, impacting autoregressive decoding.\", \"created_at\": \"2025-08-15 17:04:44\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"A neural attention model for abstractive sentence summarization\", \"entity2\": \"Neural architectures for named entity recognition\", \"description\": \"Both are neural network-based methodologies, with the former focusing on named entity recognition and the latter on abstractive sentence summarization.\", \"created_at\": \"2025-08-15 15:48:17\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Rethinking the inception architecture for computer vision\", \"entity2\": \"Sequence to sequence learning with neural networks\", \"description\": \"Both are methodologies discussed in the context of neural networks and machine learning advancements.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"transduction problems\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in transduction problems.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Grammar as a foreign language\", \"entity2\": \"Rethinking the inception architecture for computer vision\", \"description\": \"Both are methodologies presented in Advances in Neural Information Processing Systems, indicating a shared research domain.\", \"created_at\": \"2025-08-15 15:03:03\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"End-to-end memory networks\", \"entity2\": \"Self-attention\", \"description\": \"Both self-attention and end-to-end memory networks are attention mechanisms used in sequence processing tasks, with end-to-end memory networks specifically using a recurrent attention mechanism.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"deep learning architectures\", \"entity2\": \"natural language processing\", \"description\": \"Deep learning architectures utilize fundamental attention mechanisms particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Mixtures of experts for scaling up neural networks in order execution\", \"entity2\": \"Movement primitive learning and generalization: Using mixture density networks\", \"description\": \"Both methodologies utilize mixture-based approaches for learning and generalization in AI/robotics.\", \"created_at\": \"2025-08-15 15:52:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 6\\n\\nThis makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 3\\n\\n# 1 Introduction Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5]. Numerous efforts have since continued to push the boundaries of recurrent language models and encoder-decoder architectures [38, 24, 15]. Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states [math: h _ { t }] , as a function of the previous hidden state [math: h _ { t - 1 }] and the input for position [math: t] . This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 28\\n\\nbetween any combination of positions in the input and output sequences, the easier it is to learn long-range dependencies [12]. Hence we also compare the maximum path length between any two input and output positions in networks composed of the different layer types. As noted in Table 1, a self-attention layer connects all positions with a constant number of sequentially executed operations, whereas a recurrent layer requires $O ( n )$ sequential operations. In terms of computational complexity, self-attention layers are faster than recurrent layers when the sequence length $n$ is smaller than the representation dimensionality $d$ , which is most often the case with sentence representations used by state-of-the-art models in machine translations, such as word-piece [38] and byte-pair [31] representations.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 2\\n\\nrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks. Compared to GPT-3 175B fine-tuned with Adam, LoRA can reduce the number of trainable parameters by 10,000 times and the GPU memory requirement by 3 times. LoRA performs on-par or better than finetuning in model quality on RoBERTa, DeBERTa, GPT-2, and GPT-3, despite having fewer trainable parameters, a higher training throughput, and, unlike adapters, no additional inference latency. We also provide an empirical investigation into rank-deficiency in language model adaptation, which sheds light on the efficacy of LoRA. We release a package that facilitates the integration of LoRA with PyTorch models and provide our implementations and model checkpoints for RoBERTa, DeBERTa, and GPT-2 at https://github.com/microsoft/LoRA. # 1 INTRODUCTION Many applications in natural language processing rely on adapting one large-scale, pre-trained language model to multiple downstream applications.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.4832, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 2.4832, + "start_timestamp": "2025-08-16T10:03:25.503109", + "end_timestamp": "2025-08-16T10:03:27.986323" + }, + "metadata": { + "saved_at": "2025-08-16T10:03:27.986322", + "file_path": "retrieval_logs\\retrieval_20250816_100327_986_mix_k10_ck4_How_does_the_computational_complexity_of_self-atte.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100344_833_mix_k5_ck2_What_is_the_fundamental_concept_behind_the_attenti.json b/retrieval_logs/retrieval_20250816_100344_833_mix_k5_ck2_What_is_the_fundamental_concept_behind_the_attenti.json new file mode 100644 index 0000000000000000000000000000000000000000..28fcd6b6092ccc16f819dcf7b49f7e716acf0828 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100344_833_mix_k5_ck2_What_is_the_fundamental_concept_behind_the_attenti.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:03:44.833129", + "query": "What is the fundamental concept behind the attention mechanism in Transformers, and what problem does it aim to solve in sequence modeling?", + "query_mode": "mix", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 13449, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Comparison of Self-Attention Layers\", \"type\": \"discussion\", \"description\": \"A section introduced to compare various aspects of self-attention layers to recurrent and convolutional layers commonly used for mapping one variable-length sequence of symbol representations to another sequence of equal length.\", \"created_at\": \"2025-08-15 18:29:32\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"encoder-decoder attention\", \"type\": \"methodology\", \"description\": \"This is one of the three ways multi-head attention is used in the Transformer. In these layers, queries originate from the previous decoder layer, while memory keys and values are sourced from the encoder's output. This enables every decoder position to attend to all positions in the input sequence, mirroring attention mechanisms in sequence-to-sequence models like those in references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Supervised sequence labelling with recurrent neural networks\", \"type\": \"abstract\", \"description\": \"This is a book or publication that discusses methodologies, including Long short-term memory.\", \"created_at\": \"2025-08-15 15:49:53\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"sequence-to-sequence models\", \"type\": \"methodology\", \"description\": \"Sequence-to-sequence models are mentioned as examples of models that use typical encoder-decoder attention mechanisms, which the Transformer mimics.\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Long Short-Term Memory (LSTM)\", \"type\": \"methodology\", \"description\": \"A specific type of recurrent neural network that has been firmly established as a state-of-the-art approach in sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"A neural attention model for abstractive sentence summarization\", \"type\": \"methodology\", \"description\": \"This refers to a neural attention model for abstractive sentence summarization, as presented in the arXiv preprint arXiv:1509.00685.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Long short-term memory-networks for machine reading\", \"type\": \"methodology\", \"description\": \"This refers to the application of Long Short-Term Memory (LSTM) networks for machine reading tasks.\", \"created_at\": \"2025-08-15 14:53:39\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Neural machine translation by jointly learning to align and translate\", \"type\": \"methodology\", \"description\": \"This refers to a methodology for neural machine translation that involves learning to align and translate simultaneously.This refers to the methodology of neural machine translation that jointly learns to align and translate, as presented in the arXiv preprint arXiv:1409.0473.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Abstract\", \"type\": \"abstract\", \"description\": \"Modern mobile devices have access to a wealth of data suitable for learning models, which in turn can greatly improve the user experience on the device. For example, language models can improve speech recognition and text entry, and image models can automatically select good photos. However, this rich data is often privacy sensitive, large in quantity, or both, which may preclude logging to the data center and training there using conventional approaches. We advocate an alternative that leaves the training data distributed on the mobile devices, and learns a shared model by aggregating locally-computed updates. We term this decentralized approach Federated Learning.The abstract describes the dominant sequence transduction models as complex recurrent or convolutional neural networks with an encoder and decoder, often connected by an attention mechanism. It proposes a new, simpler network architecture called the Transformer, which relies solely on attention mechanisms and eliminates recurrence and convolutions.\", \"created_at\": \"2025-08-15 15:02:51\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Attention Mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are the core component of the Transformer architecture, replacing recurrence and convolutions.Attention mechanisms are used to connect the encoder and decoder in the best performing sequence transduction models. The proposed Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Attention mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms account for the remaining parameters in transformer models not made up by FFNs.Attention mechanisms allow modeling of dependencies without regard to their distance in the input or output sequences, and are an integral part of sequence modeling and transduction models.\", \"created_at\": \"2025-08-15 16:40:55\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Long Short-Term Memory (LSTM)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Long Short-Term Memory (LSTM) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"encoder-decoder attention\", \"entity2\": \"sequence-to-sequence models\", \"description\": \"Encoder-decoder attention in the Transformer mimics the attention mechanisms found in sequence-to-sequence models, citing references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"transduction problems\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in transduction problems.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"A neural attention model for abstractive sentence summarization\", \"entity2\": \"Neural machine translation by jointly learning to align and translate\", \"description\": \"Both methodologies leverage neural networks and attention mechanisms, with one focusing on translation and the other on summarization.\", \"created_at\": \"2025-08-15 15:48:20\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Abstract\", \"entity2\": \"Attention Mechanisms\", \"description\": \"The abstract mentions attention mechanisms as a key component of both existing models and the proposed Transformer.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 4\\n\\nthin training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples. Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains. Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19]. In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network. In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.3798, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 2.3798, + "start_timestamp": "2025-08-16T10:03:42.453331", + "end_timestamp": "2025-08-16T10:03:44.833129" + }, + "metadata": { + "saved_at": "2025-08-16T10:03:44.833129", + "file_path": "retrieval_logs\\retrieval_20250816_100344_833_mix_k5_ck2_What_is_the_fundamental_concept_behind_the_attenti.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100353_955_mix_k3_ck2_Can_you_explain_the_detailed_mathematical_formulat.json b/retrieval_logs/retrieval_20250816_100353_955_mix_k3_ck2_Can_you_explain_the_detailed_mathematical_formulat.json new file mode 100644 index 0000000000000000000000000000000000000000..416d927178b1a2287bd521d73ee98ce885381b40 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100353_955_mix_k3_ck2_Can_you_explain_the_detailed_mathematical_formulat.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:03:53.955135", + "query": "Can you explain the detailed mathematical formulation of the self-attention mechanism (e.g., scaled dot-product attention) used in the Transformer architecture?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 14718, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Scaled Dot-Product Attention\", \"type\": \"abstract\", \"description\": \"Scaled Dot-Product Attention is a type of attention function and a mechanism that maps a query and a set of key-value pairs to an output, which is computed as a weighted sum. The query, keys, values, and output are all vectors.\\n\\nThe mechanism computes attention weights by performing matrix multiplication on Query (Q) and Key (K) vectors, followed by scaling. Optionally, masking can be applied before a SoftMax function is used to obtain probabilities. These probabilities are then multiplied with the Value (V) vectors to produce the attention output. The weight assigned to each value is computed by a compatibility function of the query with the corresponding key. The input consists of queries and keys of dimension $d_k$, and values of dimension $\\\\sqrt{d_v}$.\\n\\nScaled Dot-Product Attention is a fundamental component of the Multi-Head Attention mechanism. Within Multi-Head Attention, it runs in parallel multiple times, referred to as 'h' heads. Each head receives inputs from distinct Linear transformation layers for Value (V), Key (K), and Query (Q). The outputs from these parallel heads are ultimately combined through concatenation.\", \"created_at\": \"2025-08-15 14:53:20\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:35\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:58:21\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"Multi-Head Attention is a mechanism that enhances Scaled Dot-Product Attention by running several attention layers in parallel. Specifically, Multi-Head Attention is composed of multiple parallel instances of the Scaled Dot-Product Attention mechanism, performing it multiple times in parallel with different learned linear projections of the inputs. Scaled Dot-Product Attention is a specific type of attention, and both mechanisms are illustrated as distinct but related diagrams, suggesting a connection or comparison between them.\", \"created_at\": \"2025-08-15 14:59:10\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Scaled Dot-Product Attention\", \"entity2\": \"V\", \"description\": \"The Scaled Dot-Product Attention mechanism uses V as an input, which is processed by a Linear transformation layer.\", \"created_at\": \"2025-08-15 14:55:46\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Attention Function\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"'Scaled Dot-Product Attention' is presented as a specific type or implementation of an 'Attention Function'.\", \"created_at\": \"2025-08-15 18:08:46\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Query\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"Query is used in the computation of attention weights within Scaled Dot-Product Attention.The Scaled Dot-Product Attention mechanism takes Query as an input vector.\", \"created_at\": \"2025-08-15 14:56:39\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Matrix Multiplication\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"Matrix Multiplication is a core operation performed twice within the Scaled Dot-Product Attention mechanism.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Scaled Dot-Product Attention\", \"entity2\": \"SoftMax\", \"description\": \"SoftMax is a function applied within the Scaled Dot-Product Attention mechanism.SoftMax is applied to obtain probabilities in Scaled Dot-Product Attention.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Concat\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"The Concat process combines the outputs from multiple Scaled Dot-Product Attention heads.The parallel 'Scaled Dot-Product Attention' heads are combined through a process labeled 'Concat'.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Scaled Dot-Product Attention\", \"entity2\": \"Value\", \"description\": \"The Scaled Dot-Product Attention mechanism takes Value as an input vector.Value vectors are multiplied by attention probabilities obtained from SoftMax in Scaled Dot-Product Attention.\", \"created_at\": \"2025-08-15 14:56:39\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Attention Mechanisms Diagrams\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"The 'Attention Mechanisms Diagrams' explicitly illustrate 'Scaled Dot-Product Attention'.\", \"created_at\": \"2025-08-15 18:07:32\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"K\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"The Scaled Dot-Product Attention mechanism uses K as an input, which is processed by a Linear transformation layer.\", \"created_at\": \"2025-08-15 14:55:46\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Mask (opt.)\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"Mask (opt.) is an optional step within the Scaled Dot-Product Attention mechanism.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Scale\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"Scale is an operation within the Scaled Dot-Product Attention mechanism.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Key\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"Key is used in the computation of attention weights within Scaled Dot-Product Attention.The Scaled Dot-Product Attention mechanism takes Key as an input vector.\", \"created_at\": \"2025-08-15 14:56:39\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Scaled Dot-Product Attention\", \"entity2\": \"deep learning architectures\", \"description\": \"Scaled Dot-Product Attention is a fundamental attention mechanism used in modern deep learning architectures.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Q\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"The Scaled Dot-Product Attention mechanism uses Q as an input, which is processed by a Linear transformation layer.\", \"created_at\": \"2025-08-15 14:55:46\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Masking\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"Masking is a modification applied to the self-attention sub-layer in the decoder stack, which is related to the attention mechanism described as Scaled Dot-Product Attention.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 31\\n\\nder-decoder structure featuring self-attention mechanisms, feedforward networks, positional embeddings, and layer normalization. The Transformer architecture design tailored for SLMs is detailed in Section 5; this section will provide only foundational concepts. Self-Attention Mechanism enables the model to evaluate the importance of tokens relative to each other. The self-attention mechanism is written as $$\\n{ \\\\mathrm { A t t e n t i o n } } ( \\\\mathbf { Q } , \\\\mathbf { K } , \\\\mathbf { V } ) = { \\\\mathrm { s o f t m a x } } \\\\left( { \\\\frac { \\\\mathbf { Q } \\\\mathbf { K } ^ { \\\\top } } { \\\\sqrt { d _ { k } } } } \\\\right) \\\\mathbf { V }\\n$$ where ${ \\\\bf { Q } } , { \\\\bf { K } } ,$ and $\\\\mathbf { V }$ are query, key, and value matrices, scaled by $\\\\sqrt { d _ { k } }$ for stability where $d _ { k }$ is the dimension of key matrices. The dot product $\\\\mathbf { Q } \\\\mathbf { K } ^ { \\\\top }$ reflects the similarity between the query and key vectors. [IMAGE]\\nFig. 4. Transformer architecture [346].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Attention Is All You Need\\nChunk: 21\\n\\nyer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder. Each position in the encoder can attend to all positions in the previous layer of the encoder. Similarly, self-attention layers in the decoder allow each position in the decoder to attend to all positions in the decoder up to and including that position. We need to prevent leftward information flow in the decoder to preserve the auto-regressive property. We implement this inside of scaled dot-product attention by masking out (setting to $- \\\\infty )$ all values in the input of the softmax which correspond to illegal connections. See Figure 2. # 3.3 Position-wise Feed-Forward Networks In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two linear transformations with a ReLU activation in between.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.5035, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.5035, + "start_timestamp": "2025-08-16T10:03:50.451657", + "end_timestamp": "2025-08-16T10:03:53.955136" + }, + "metadata": { + "saved_at": "2025-08-16T10:03:53.955135", + "file_path": "retrieval_logs\\retrieval_20250816_100353_955_mix_k3_ck2_Can_you_explain_the_detailed_mathematical_formulat.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100406_427_mix_k10_ck4_What_are_the_key_innovations_of_the_attention_mech.json b/retrieval_logs/retrieval_20250816_100406_427_mix_k10_ck4_What_are_the_key_innovations_of_the_attention_mech.json new file mode 100644 index 0000000000000000000000000000000000000000..6c0dba76a7d183177cb7660a157cfccdb7b45911 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100406_427_mix_k10_ck4_What_are_the_key_innovations_of_the_attention_mech.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:04:06.427833", + "query": "What are the key innovations of the attention mechanism compared to traditional recurrent neural network (RNN) or convolutional neural network (CNN) approaches for sequence processing?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 23863, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"attention mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are neural network components that can be integrated with MoE architectures.\", \"created_at\": \"2025-08-15 15:43:01\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Sequence-aligned RNNs\", \"type\": \"methodology\", \"description\": \"Sequence-aligned RNNs (Recurrent Neural Networks) are a type of model that previous transduction models used, but the Transformer is noted for not using them to compute representations.\", \"created_at\": \"2025-08-15 18:34:17\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Attention Mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are the core component of the Transformer architecture, replacing recurrence and convolutions.Attention mechanisms are used to connect the encoder and decoder in the best performing sequence transduction models. The proposed Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:11\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"The Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a model architecture that follows an overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder. It notably uses multi-head attention in three different ways, including encoder-decoder attention layers and self-attention layers within its encoder. This model allows for significantly more parallelization and achieves better BLEU scores than previous state-of-the-art models on the English-to-German and English-to-French newstest2014 tests. The Transformer can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs, representing a fraction of the training cost compared to prior models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.\", \"created_at\": \"2025-08-15 21:42:55\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Rethinking the inception architecture for computer vision\", \"type\": \"methodology\", \"description\": \"Rethinking the inception architecture for computer vision is a methodology referenced in the text.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Sequence to sequence learning with neural networks\", \"type\": \"methodology\", \"description\": \"Sequence to sequence learning with neural networks is a methodology mentioned in the text.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Attention mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms account for the remaining parameters in transformer models not made up by FFNs.Attention mechanisms allow modeling of dependencies without regard to their distance in the input or output sequences, and are an integral part of sequence modeling and transduction models.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"sequence modeling\", \"type\": \"methodology\", \"description\": \"Sequence modeling is a problem domain for which recurrent neural networks, including LSTM and gated recurrent neural networks, are state-of-the-art approaches.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Effective approaches to attention-based neural machine translation\", \"type\": \"methodology\", \"description\": \"This discusses effective strategies for neural machine translation that utilize attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"A neural attention model for abstractive sentence summarization\", \"type\": \"methodology\", \"description\": \"This refers to a neural attention model for abstractive sentence summarization, as presented in the arXiv preprint arXiv:1509.00685.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"attention\", \"type\": \"methodology\", \"description\": \"Attention is a mechanism utilized in the Transformer model, which is the first sequence transduction model to rely entirely on attention. Within the Transformer, attention is implemented through various forms, including multi-head attention, encoder-decoder attention, and self-attention. Furthermore, attention serves as a component within the same layer as SSM heads, enabling parallel and complementary processing of inputs. For experimental purposes, attention was also selected as a parameter.Attention was selected as a parameter for experiments.\", \"created_at\": \"2025-08-15 14:56:17\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Neural architectures for named entity recognition\", \"type\": \"methodology\", \"description\": \"This refers to the neural architectures used for named entity recognition, as presented in the arXiv preprint arXiv:1603.01360.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Recurrent Neural Networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including long short-term memory (LSTM) and gated recurrent units (GRU), have been firmly established as state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.\", \"created_at\": \"2025-08-15 18:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Sequence Modeling and Transduction\", \"type\": \"abstract\", \"description\": \"Problem domains such as language modeling and machine translation where recurrent neural networks have been established as state-of-the-art approaches.\", \"created_at\": \"2025-08-15 18:18:21\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Convolutional sequence to sequence learning\", \"type\": \"methodology\", \"description\": \"This refers to a methodology for sequence to sequence learning using convolutional networks.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Generating sequences with recurrent neural networks\", \"type\": \"methodology\", \"description\": \"This refers to a methodology for generating sequences using recurrent neural networks.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"RNN sequence-to-sequence models\", \"type\": \"methodology\", \"description\": \"RNN sequence-to-sequence models are mentioned as having limitations in achieving state-of-the-art results for English Constituency Parsing, particularly in small-data regimes.\", \"created_at\": \"2025-08-15 14:55:53\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"deep learning architectures\", \"type\": \"methodology\", \"description\": \"deep learning architectures are modern systems that utilize fundamental attention mechanisms, particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"natural language processing\", \"type\": \"abstract\", \"description\": \"Natural Language Processing (NLP) is a significant field that relies on adapting large-scale, pre-trained language models to various downstream applications and particular tasks or domains. NLP has been greatly enhanced by advancements in language models, leading to broader applications across various fields. Within NLP, fundamental attention mechanisms are particularly utilized. Mixture of Experts (MoE) has seen recent applications in NLP, presenting multiple important subproblems that require further investigation, and is an area where MoE applications are reviewed in depth in the paper.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"Grammar as a foreign language\", \"type\": \"methodology\", \"description\": \"Grammar as a foreign language is a methodology cited in the text.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"Empirical evaluation of gated recurrent neural networks on sequence modeling\", \"type\": \"methodology\", \"description\": \"This describes an empirical evaluation of gated recurrent neural networks specifically for sequence modeling tasks.This refers to a methodology for evaluating gated recurrent neural networks on sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity\": \"Long short-term memory\", \"type\": \"methodology\", \"description\": \"Long Short-Term Memory (LSTM) is a type of recurrent neural network methodology, established as a state-of-the-art approach in sequence modeling and transduction problems. It was first discussed and published in 1997 by Hochreiter and Schmidhuber in Neural Computation, and is known for addressing issues within recurrent neural networks.This is a methodology related to supervised sequence labelling with recurrent neural networks.Long short-term memory is a technique discussed in the context of recurrent neural networks for supervised sequence labeling.\", \"created_at\": \"2025-08-15 15:51:32\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Sequence-aligned RNNs\", \"entity2\": \"The Transformer\", \"description\": \"The Transformer is explicitly stated to compute representations 'without using sequence-aligned RNNs', highlighting a key architectural difference and innovation.\", \"created_at\": \"2025-08-15 18:35:17\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Rethinking the inception architecture for computer vision\", \"entity2\": \"Sequence to sequence learning with neural networks\", \"description\": \"Both are methodologies discussed in the context of neural networks and machine learning advancements.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Section 22 development set\", \"entity2\": \"attention\", \"description\": \"Attention was selected on the Section 22 development set.\", \"created_at\": \"2025-08-15 17:28:28\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"A neural attention model for abstractive sentence summarization\", \"entity2\": \"Neural architectures for named entity recognition\", \"description\": \"Both are neural network-based methodologies, with the former focusing on named entity recognition and the latter on abstractive sentence summarization.\", \"created_at\": \"2025-08-15 15:48:17\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Effective approaches to attention-based neural machine translation\", \"entity2\": \"Neural machine translation in linear time\", \"description\": \"Both entries relate to neural machine translation, with one focusing on linear time and the other on attention-based approaches, suggesting a connection in the field.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mamba 2\", \"entity2\": \"attention mechanisms\", \"description\": \"Mamba 2 develops a theoretical framework linking SSMs with attention mechanisms.\", \"created_at\": \"2025-08-15 16:29:13\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Convolutional sequence to sequence learning\", \"entity2\": \"Generating sequences with recurrent neural networks\", \"description\": \"Both methodologies are focused on sequence learning and generation, with convolutional approaches potentially offering an alternative or complementary method to recurrent ones.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Effective approaches to attention-based neural machine translation\", \"entity2\": \"Structured attention networks\", \"description\": \"Both mention attention networks, indicating a relationship in the development or application of attention mechanisms in machine translation.\", \"created_at\": \"2025-08-15 14:58:08\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Abstract\", \"entity2\": \"Attention Mechanisms\", \"description\": \"The abstract mentions attention mechanisms as a key component of both existing models and the proposed Transformer.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"deep learning architectures\", \"entity2\": \"natural language processing\", \"description\": \"Deep learning architectures utilize fundamental attention mechanisms particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Grammar as a foreign language\", \"entity2\": \"Rethinking the inception architecture for computer vision\", \"description\": \"Both are methodologies presented in Advances in Neural Information Processing Systems, indicating a shared research domain.\", \"created_at\": \"2025-08-15 15:03:03\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Empirical evaluation of gated recurrent neural networks on sequence modeling\", \"entity2\": \"Long short-term memory\", \"description\": \"The evaluation of gated recurrent neural networks is likely related to advancements or comparisons with methodologies like Long Short-Term Memory, which addresses long-term dependencies.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 4\\n\\nthin training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples. Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains. Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19]. In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network. In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 43\\n\\n[IMAGE]\\nFig. 5. Mamba 1 architecture [117]. In language modeling, Mamba 1 [117] is pre-trained on the Pile dataset [108] using the training recipe from [37] and ranges from 125M to 1.3B parameters. It outperforms comparable models such as Pythia [31] and RWKV [270] in various tasks; for instance, Mamba-1.4B achieves a $3 2 . 8 \\\\%$ accuracy on the Arc-Challenge [65] dataset, surpassing Pythia-1.4B’s $2 8 . 5 \\\\%$ and RWKV-1.5B’s $2 9 . 4 \\\\%$ . Mamba 2 [75] develops a theoretical framework linking SSMs with attention mechanisms through structured semi-separable matrices, enhancing the selective SSM to achieve $2 { - } 8 \\\\mathrm { x }$ faster speeds while competing with Transformer models. Training and configuration for Mamba 2 align with Mamba 1. Additionally, Mamba-series models are applied widely across different fields [160, 280, 281, 463]. Other follow-up Mamba-based language models such as Falcon Mamba 7B [463] and Mistral 7B [160] also demonstrate the efficiency of the architecture for NLP tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Attention Is All You Need\\nChunk: 1\\n\\nProvided proper attribution is provided, Google hereby grants permission to reproduce the tables and figures in this paper solely for use in journalistic or scholarly works. # Attention Is All You Need Ashish Vaswani∗ Google Brain avaswani@google.com Noam Shazeer∗ Google Brain noam@google.com Niki Parmar∗ Google Research nikip@google.com Jakob Uszkoreit∗ Google Research usz@google.com Llion Jones∗ Google Research llion@google.com Aidan N. Gomez∗ † University of Toronto aidan@cs.toronto.edu Łukasz Kaiser∗ Google Brain lukaszkaiser@google.com Illia Polosukhin∗ ‡illia.polosukhin@gmail.com # Abstract The dominant sequence transduction models are based on complex recurrent or convolutional neural networks that include an encoder and a decoder. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 3.4308, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 3.4308, + "start_timestamp": "2025-08-16T10:04:02.997024", + "end_timestamp": "2025-08-16T10:04:06.427834" + }, + "metadata": { + "saved_at": "2025-08-16T10:04:06.427833", + "file_path": "retrieval_logs\\retrieval_20250816_100406_427_mix_k10_ck4_What_are_the_key_innovations_of_the_attention_mech.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100415_822_mix_k5_ck2_How_is_the_effectiveness_of_the_attention_mechanis.json b/retrieval_logs/retrieval_20250816_100415_822_mix_k5_ck2_How_is_the_effectiveness_of_the_attention_mechanis.json new file mode 100644 index 0000000000000000000000000000000000000000..0425d9c02b8beaab41a912e89ffa74244d9d21fa --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100415_822_mix_k5_ck2_How_is_the_effectiveness_of_the_attention_mechanis.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:04:15.822427", + "query": "How is the effectiveness of the attention mechanism typically evaluated in research papers, and what are the common benchmarks or datasets used?", + "query_mode": "mix", + "top_k": 5, + "chunk_top_k": 2, + "text_length": 13848, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"GLUE Benchmark\", \"type\": \"event\", \"description\": \"GLUE Benchmark is a collection of natural language understanding tasks.\", \"created_at\": \"2025-08-13 22:58:23\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Attention Visualizations\", \"type\": \"methodology\", \"description\": \"The image displays a visualization of an attention mechanism, specifically illustrating how different \\\"heads\\\" within a neural network layer attend to various words in a sequence.This refers to a section of the document that visualizes attention mechanisms, specifically showing long-distance dependencies in the encoder self-attention in layer 5 of 6.\", \"created_at\": \"2025-08-15 15:02:15\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"GLUE benchmark\", \"type\": \"event\", \"description\": \"The GLUE (General Language Understanding Evaluation) benchmark is a widely used standard metric and dataset for evaluating the performance of natural language understanding (NLU) models. It comprises a collection of diverse NLU tasks designed to assess various aspects of a model's ability to understand and process human language. These tasks include, but are not limited to, QNLI, RTE, and STS-B. Results from GLUE evaluations are frequently reported in research papers (e.g., Table 2 and Table 9 in referenced publications) and serve as a benchmark for comparing the capabilities of different language models, such as RoBERTa and DeBERTa XXL. Essentially, GLUE acts as an NLP leaderboard, providing a standardized method for comparing model performance.\", \"created_at\": \"2025-08-13 22:44:31\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Fast and accurate shift-reduce constituent parsing\", \"type\": \"abstract\", \"description\": \"Description not available in text.\", \"created_at\": \"2025-08-15 15:00:15\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Attention Mechanism\", \"type\": \"methodology\", \"description\": \"The Attention Mechanism is visualized as a horizontal arrangement of words with lines connecting specific words to colored blocks representing attention weights. The visualization focuses on the word 'making' in the top sequence, with multiple colored lines extending downwards and connecting to corresponding colored blocks in the lower section.\", \"created_at\": \"2025-08-15 15:01:06\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Neural Network Layer\", \"type\": \"methodology\", \"description\": \"A neural network layer contains multiple 'heads' that attend to various words in a sequence, as illustrated by the Attention Mechanism visualization.\", \"created_at\": \"2025-08-15 15:01:06\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Grouped Query Attention (GQA)\", \"type\": \"methodology\", \"description\": \"Grouped Query Attention (GQA) is a component frequently employed in recent SLMs in self-attention mechanisms to reduce computational complexity by sharing query representations across multiple heads while keeping key and value representations separate.Grouped Query Attention (GQA) serves as a middle ground between MHA and MQA. It introduces subgroups of query heads, where each subgroup shares a single key and value head.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Multi-Head Latent Attention (MLA)\", \"type\": \"methodology\", \"description\": \"Multi-Head Latent Attention (MLA) compresses the keys and values into a joint latent vector, allowing for efficient handling of key-value pairs while maintaining high performance, significantly reducing the KV-cache and improving inference efficiency.\", \"created_at\": \"2025-08-15 16:21:55\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Attention Mechanisms Diagrams\", \"type\": \"connection\", \"description\": \"The image presents two distinct but related diagrams illustrating attention mechanisms in neural networks, specifically \\\"Scaled Dot-Product Attention\\\" and \\\"Multi-Head Attention\\\".\", \"created_at\": \"2025-08-15 18:07:19\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Scaled Dot-Product Attention\", \"type\": \"abstract\", \"description\": \"Scaled Dot-Product Attention is a type of attention function and a mechanism that maps a query and a set of key-value pairs to an output, which is computed as a weighted sum. The query, keys, values, and output are all vectors.\\n\\nThe mechanism computes attention weights by performing matrix multiplication on Query (Q) and Key (K) vectors, followed by scaling. Optionally, masking can be applied before a SoftMax function is used to obtain probabilities. These probabilities are then multiplied with the Value (V) vectors to produce the attention output. The weight assigned to each value is computed by a compatibility function of the query with the corresponding key. The input consists of queries and keys of dimension $d_k$, and values of dimension $\\\\sqrt{d_v}$.\\n\\nScaled Dot-Product Attention is a fundamental component of the Multi-Head Attention mechanism. Within Multi-Head Attention, it runs in parallel multiple times, referred to as 'h' heads. Each head receives inputs from distinct Linear transformation layers for Value (V), Key (K), and Query (Q). The outputs from these parallel heads are ultimately combined through concatenation.\", \"created_at\": \"2025-08-15 18:07:31\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Attention Scores\", \"type\": \"abstract\", \"description\": \"Attention scores are represented by lines connecting words in the input and output sequences. Thicker and brighter lines indicate higher attention.\", \"created_at\": \"2025-08-15 15:01:33\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"The attention mechanism\", \"type\": \"methodology\", \"description\": \"The attention mechanism visualizes input and output sequences with words aligned vertically. Lines connecting words represent attention scores, with thicker and brighter lines indicating higher attention. One visualization uses green lines to show attention heads focusing on specific relationships, including attending strongly to identical words in input and output, and cross-word attentions between words like 'perfect' and 'application'. The green lines exhibit a pattern of attending to nearby words and some longer-range dependencies.\", \"created_at\": \"2025-08-15 15:01:33\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"GLUE benchmark\", \"entity2\": \"MNLI\", \"description\": \"MNLI is a dataset within the GLUE benchmark.\", \"created_at\": \"2025-08-13 22:58:26\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Attention Visualizations\", \"entity2\": \"Fast and accurate shift-reduce constituent parsing\", \"description\": \"The visualization of the attention mechanism might be relevant for understanding parsing techniques, though the direct connection is less clear without more context.\", \"created_at\": \"2025-08-15 15:00:16\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"GLUE benchmark\", \"entity2\": \"RoBERTa\", \"description\": \"RoBERTa, a model whose hyperparameters are detailed in Table 9, was used to evaluate its performance on the GLUE benchmark. This involved using RoBERTa to evaluate Natural Language Understanding (NLU) models on the benchmark and assessing RoBERTa's own performance on the same benchmark.\", \"created_at\": \"2025-08-13 22:58:08\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Attention Mechanism\", \"entity2\": \"Neural Network Layer\", \"description\": \"The Attention Mechanism illustrates how different 'heads' within a neural network layer attend to various words in a sequence.\", \"created_at\": \"2025-08-15 15:01:06\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"GLUE Benchmark\", \"entity2\": \"MNLI\", \"description\": \"MNLI is one of the tasks included in the GLUE Benchmark.\", \"created_at\": \"2025-08-13 22:58:26\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Grouped Query Attention (GQA)\", \"entity2\": \"Multi-Head Latent Attention (MLA)\", \"description\": \"Both GQA and MLA are presented as methods to improve attention mechanisms, with GQA reducing key and value heads and MLA compressing them into a joint latent vector.\", \"created_at\": \"2025-08-15 16:21:58\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"GLUE benchmark\", \"entity2\": \"RTE\", \"description\": \"RTE is one of the datasets included in the GLUE benchmark for evaluating NLU models.\", \"created_at\": \"2025-08-13 22:58:06\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Attention Mechanisms Diagrams\", \"entity2\": \"Scaled Dot-Product Attention\", \"description\": \"The 'Attention Mechanisms Diagrams' explicitly illustrate 'Scaled Dot-Product Attention'.\", \"created_at\": \"2025-08-15 18:07:32\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"GLUE benchmark\", \"entity2\": \"STS-B\", \"description\": \"STS-B is one of the datasets included in the GLUE benchmark for evaluating NLU models.\", \"created_at\": \"2025-08-13 22:58:06\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Attention Scores\", \"entity2\": \"The attention mechanism\", \"description\": \"The attention mechanism uses attention scores, represented by lines, to indicate the strength of relationships between words.\", \"created_at\": \"2025-08-15 15:01:33\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"DeBERTa XXL\", \"entity2\": \"GLUE benchmark\", \"description\": \"DeBERTa XXL is used on tasks included in the GLUE benchmark.DeBERTa XXL's hyperparameters are specified for tasks within the GLUE benchmark.\", \"created_at\": \"2025-08-13 22:56:25\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"GLUE benchmark\", \"entity2\": \"RoBERTa_base\", \"description\": \"RoBERTa_base is evaluated on the GLUE benchmark.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"DeBERTa_XXL\", \"entity2\": \"GLUE benchmark\", \"description\": \"DeBERTa_XXL is evaluated on the GLUE benchmark.\", \"created_at\": \"2025-08-13 22:44:43\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"GLUE benchmark\", \"entity2\": \"RoBERTa large\", \"description\": \"RoBERTa large was used on the GLUE benchmark.\", \"created_at\": \"2025-08-13 22:58:25\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"GLUE benchmark\", \"entity2\": \"QNLI\", \"description\": \"QNLI is one of the datasets included in the GLUE benchmark for evaluating NLU models.\", \"created_at\": \"2025-08-13 22:58:06\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"GLUE benchmark\", \"entity2\": \"QQP\", \"description\": \"QQP is one of the datasets included in the GLUE benchmark for evaluating NLU models.\", \"created_at\": \"2025-08-13 22:58:06\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"GLUE benchmark\", \"entity2\": \"RoBERTalarge\", \"description\": \"RoBERTalarge was used on the GLUE benchmark.\", \"created_at\": \"2025-08-13 22:58:25\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"GLUE benchmark\", \"entity2\": \"RoBERTa base\", \"description\": \"RoBERTa base was used on the GLUE benchmark.\", \"created_at\": \"2025-08-13 22:58:17\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"AdapterL\", \"entity2\": \"GLUE Benchmark\", \"description\": \"AdapterL's performance is also evaluated on tasks within the GLUE Benchmark, showing reduced latency slow-down with larger batch sizes and sequence lengths.\", \"created_at\": \"2025-08-13 22:58:26\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"AdapterH\", \"entity2\": \"GLUE Benchmark\", \"description\": \"AdapterH's performance is evaluated on tasks within the GLUE Benchmark, showing reduced latency slow-down with larger batch sizes and sequence lengths.\", \"created_at\": \"2025-08-13 22:58:25\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 1\\n\\nProvided proper attribution is provided, Google hereby grants permission to reproduce the tables and figures in this paper solely for use in journalistic or scholarly works. # Attention Is All You Need Ashish Vaswani∗ Google Brain avaswani@google.com Noam Shazeer∗ Google Brain noam@google.com Niki Parmar∗ Google Research nikip@google.com Jakob Uszkoreit∗ Google Research usz@google.com Llion Jones∗ Google Research llion@google.com Aidan N. Gomez∗ † University of Toronto aidan@cs.toronto.edu Łukasz Kaiser∗ Google Brain lukaszkaiser@google.com Illia Polosukhin∗ ‡illia.polosukhin@gmail.com # Abstract The dominant sequence transduction models are based on complex recurrent or convolutional neural networks that include an encoder and a decoder. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: 2106.09685v2\\nChunk: 84\\n\\ntart with the pre-trained RoBERTa large model when adapting to MRPC, RTE, and STS-B, instead of a model already adapted to MNLI. The runs with this restricted setup are marked with $\\\\dagger$ . See the hyperparameters used in our runs in Table 9. # D.2 DEBERTA We again train using AdamW with a linear learning rate decay schedule. Following He et al. (2021), we tune learning rate, dropout probability, warm-up steps, and batch size. We use the same model sequence length used by (He et al., 2021) to keep our comparison fair. Following He et al. (2021), we initialize the LoRA modules to our best MNLI checkpoint when adapting to MRPC, RTE, and STS-B, instead of the usual initialization; the pre-trained model stays frozen for all tasks. We report the median over 5 random seeds; the result for each run is taken from the best epoch. See the hyperparameters used in our runs in Table 10. Table 9: The hyperparameters we used for RoBERTa on the GLUE benchmark.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.578, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 2.578, + "start_timestamp": "2025-08-16T10:04:13.243427", + "end_timestamp": "2025-08-16T10:04:15.821429" + }, + "metadata": { + "saved_at": "2025-08-16T10:04:15.822427", + "file_path": "retrieval_logs\\retrieval_20250816_100415_822_mix_k5_ck2_How_is_the_effectiveness_of_the_attention_mechanis.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100425_801_mix_k10_ck4_How_do_different_types_of_attention_mechanisms_eg_.json b/retrieval_logs/retrieval_20250816_100425_801_mix_k10_ck4_How_do_different_types_of_attention_mechanisms_eg_.json new file mode 100644 index 0000000000000000000000000000000000000000..c65aca1ba64b449627f156ff78b9a86d92fedd5d --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100425_801_mix_k10_ck4_How_do_different_types_of_attention_mechanisms_eg_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:04:25.801262", + "query": "How do different types of attention mechanisms (e.g., self-attention, multi-head attention, sparse attention) compare in terms of their computational complexity, performance, and application suitability?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 20590, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"multi-headed self-attention\", \"type\": \"methodology\", \"description\": \"Multi-headed self-attention is a component of the Transformer, replacing recurrent layers in encoder-decoder architectures.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"deep learning architectures\", \"type\": \"methodology\", \"description\": \"deep learning architectures are modern systems that utilize fundamental attention mechanisms, particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"natural language processing\", \"type\": \"abstract\", \"description\": \"Natural Language Processing (NLP) is a significant field that relies on adapting large-scale, pre-trained language models to various downstream applications and particular tasks or domains. NLP has been greatly enhanced by advancements in language models, leading to broader applications across various fields. Within NLP, fundamental attention mechanisms are particularly utilized. Mixture of Experts (MoE) has seen recent applications in NLP, presenting multiple important subproblems that require further investigation, and is an area where MoE applications are reviewed in depth in the paper.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Effective approaches to attention-based neural machine translation\", \"type\": \"methodology\", \"description\": \"This discusses effective strategies for neural machine translation that utilize attention mechanisms.\", \"created_at\": \"2025-08-15 14:57:59\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Neural machine translation in linear time\", \"type\": \"methodology\", \"description\": \"A methodology discussed in the text, cited from Kalchbrenner et al. (2017).This refers to a method for neural machine translation that operates in linear time.\", \"created_at\": \"2025-08-15 14:57:59\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Multi-head Attention\", \"type\": \"methodology\", \"description\": \"Multi-head attention is used by The Transformer in three different ways. Its total computational cost is similar to that of single-head attention with full dimensionality due to the reduced dimension of each head.\", \"created_at\": \"2025-08-15 18:26:38\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:19\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"multi-head attention\", \"type\": \"methodology\", \"description\": \"Multi-head attention is performed over the output of the encoder stack in the third sub-layer of each decoder layer.Multi-head attention is used in the Transformer model. It involves using $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h$ dimensions for each head, where $h=8$. The total computational cost is similar to single-head attention with full dimensionality due to the reduced dimension of each head.\", \"created_at\": \"2025-08-15 14:56:17\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Deep Learning\", \"type\": \"abstract\", \"description\": \"A subfield of machine learning where over-parametrized neural networks often exhibit low-rank properties after training.Deep learning is a field of study with computational limits.\", \"created_at\": \"2025-08-15 15:37:40\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"The computational limits of deep learning\", \"type\": \"abstract\", \"description\": \"This work discusses the computational limits of deep learning, published in July 2020.\", \"created_at\": \"2025-08-15 15:37:40\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"attention\", \"type\": \"methodology\", \"description\": \"Attention is a mechanism utilized in the Transformer model, which is the first sequence transduction model to rely entirely on attention. Within the Transformer, attention is implemented through various forms, including multi-head attention, encoder-decoder attention, and self-attention. Furthermore, attention serves as a component within the same layer as SSM heads, enabling parallel and complementary processing of inputs. For experimental purposes, attention was also selected as a parameter.Attention was selected as a parameter for experiments.\", \"created_at\": \"2025-08-15 14:56:17\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Attention Visualizations\", \"type\": \"methodology\", \"description\": \"The image displays a visualization of an attention mechanism, specifically illustrating how different \\\"heads\\\" within a neural network layer attend to various words in a sequence.This refers to a section of the document that visualizes attention mechanisms, specifically showing long-distance dependencies in the encoder self-attention in layer 5 of 6.\", \"created_at\": \"2025-08-15 15:02:15\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Deep recurrent models with fast-forward connections for neural machine translation\", \"type\": \"abstract\", \"description\": \"Description not available in text.\", \"created_at\": \"2025-08-15 15:00:15\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Scaled Dot-Product Attention\", \"type\": \"abstract\", \"description\": \"Scaled Dot-Product Attention is a type of attention function and a mechanism that maps a query and a set of key-value pairs to an output, which is computed as a weighted sum. The query, keys, values, and output are all vectors.\\n\\nThe mechanism computes attention weights by performing matrix multiplication on Query (Q) and Key (K) vectors, followed by scaling. Optionally, masking can be applied before a SoftMax function is used to obtain probabilities. These probabilities are then multiplied with the Value (V) vectors to produce the attention output. The weight assigned to each value is computed by a compatibility function of the query with the corresponding key. The input consists of queries and keys of dimension $d_k$, and values of dimension $\\\\sqrt{d_v}$.\\n\\nScaled Dot-Product Attention is a fundamental component of the Multi-Head Attention mechanism. Within Multi-Head Attention, it runs in parallel multiple times, referred to as 'h' heads. Each head receives inputs from distinct Linear transformation layers for Value (V), Key (K), and Query (Q). The outputs from these parallel heads are ultimately combined through concatenation.\", \"created_at\": \"2025-08-15 18:07:31\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Attention mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms account for the remaining parameters in transformer models not made up by FFNs.Attention mechanisms allow modeling of dependencies without regard to their distance in the input or output sequences, and are an integral part of sequence modeling and transduction models.\", \"created_at\": \"2025-08-15 16:40:55\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Longer-range dependencies\", \"type\": \"abstract\", \"description\": \"Longer-range dependencies refer to attention patterns that span across multiple words in the sequence.\", \"created_at\": \"2025-08-15 15:01:33\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"The attention mechanism\", \"type\": \"methodology\", \"description\": \"The attention mechanism visualizes input and output sequences with words aligned vertically. Lines connecting words represent attention scores, with thicker and brighter lines indicating higher attention. One visualization uses green lines to show attention heads focusing on specific relationships, including attending strongly to identical words in input and output, and cross-word attentions between words like 'perfect' and 'application'. The green lines exhibit a pattern of attending to nearby words and some longer-range dependencies.\", \"created_at\": \"2025-08-15 15:01:33\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Attention Mechanism\", \"type\": \"methodology\", \"description\": \"The Attention Mechanism is visualized as a horizontal arrangement of words with lines connecting specific words to colored blocks representing attention weights. The visualization focuses on the word 'making' in the top sequence, with multiple colored lines extending downwards and connecting to corresponding colored blocks in the lower section.\", \"created_at\": \"2025-08-15 15:01:06\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"Neural Network Layer\", \"type\": \"methodology\", \"description\": \"A neural network layer contains multiple 'heads' that attend to various words in a sequence, as illustrated by the Attention Mechanism visualization.\", \"created_at\": \"2025-08-15 15:01:06\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"encoder-decoder attention\", \"type\": \"methodology\", \"description\": \"This is one of the three ways multi-head attention is used in the Transformer. In these layers, queries originate from the previous decoder layer, while memory keys and values are sourced from the encoder's output. This enables every decoder position to attend to all positions in the input sequence, mirroring attention mechanisms in sequence-to-sequence models like those in references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"sequence-to-sequence models\", \"type\": \"methodology\", \"description\": \"Sequence-to-sequence models are mentioned as examples of models that use typical encoder-decoder attention mechanisms, which the Transformer mimics.\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"deep learning architectures\", \"entity2\": \"natural language processing\", \"description\": \"Deep learning architectures utilize fundamental attention mechanisms particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Effective approaches to attention-based neural machine translation\", \"entity2\": \"Neural machine translation in linear time\", \"description\": \"Both entries relate to neural machine translation, with one focusing on linear time and the other on attention-based approaches, suggesting a connection in the field.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Multi-head Attention\", \"entity2\": \"The Transformer\", \"description\": \"The Transformer model utilizes multi-head attention as a core component, applying it in three distinct ways.\", \"created_at\": \"2025-08-15 18:26:37\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"self-attention mechanisms\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures are proposed as a solution to the inference cost issue caused by self-attention mechanisms in Transformers.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Section 22 development set\", \"entity2\": \"attention\", \"description\": \"Attention was selected on the Section 22 development set.\", \"created_at\": \"2025-08-15 17:28:28\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Deep Learning\", \"entity2\": \"The computational limits of deep learning\", \"description\": \"This paper discusses the computational limits of deep learning.\", \"created_at\": \"2025-08-15 15:37:42\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Multi-head Attention\", \"entity2\": \"Reduced Dimension of Each Head\", \"description\": \"The reduced dimension of each head is the reason why the total computational cost of multi-head attention is similar to single-head attention.\", \"created_at\": \"2025-08-15 18:26:38\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Attention Visualizations\", \"entity2\": \"Deep recurrent models with fast-forward connections for neural machine translation\", \"description\": \"The visualization of the attention mechanism could be used to understand or explain the behavior of deep recurrent models.\", \"created_at\": \"2025-08-15 15:00:16\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Computational Cost\", \"entity2\": \"Multi-head Attention\", \"description\": \"The computational cost of multi-head attention is described as being similar to single-head attention, indicating a performance characteristic.\", \"created_at\": \"2025-08-15 18:26:38\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Scaled Dot-Product Attention\", \"entity2\": \"deep learning architectures\", \"description\": \"Scaled Dot-Product Attention is a fundamental attention mechanism used in modern deep learning architectures.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Longer-range dependencies\", \"entity2\": \"The attention mechanism\", \"description\": \"The attention mechanism shows longer-range dependencies in its attention patterns.\", \"created_at\": \"2025-08-15 15:01:40\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Attention Mechanism\", \"entity2\": \"Neural Network Layer\", \"description\": \"The Attention Mechanism illustrates how different 'heads' within a neural network layer attend to various words in a sequence.\", \"created_at\": \"2025-08-15 15:01:06\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"encoder-decoder attention\", \"entity2\": \"sequence-to-sequence models\", \"description\": \"Encoder-decoder attention in the Transformer mimics the attention mechanisms found in sequence-to-sequence models, citing references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 33\\n\\nch head in the Multi-Head Attention mechanism operates independently, allowing the model to capture diverse aspects of the data. The outputs are combined using learned projection matrices $\\\\mathbf { W } _ { i } ^ { Q } , \\\\mathbf { W } _ { i } ^ { K }$ , and $\\\\mathbf { W } _ { i } ^ { V }$ , concatenated, and passed through the output projection matrix $\\\\mathbf { W } ^ { O }$ . Building on this foundation, several modifications have been introduced to further optimize self-attention mechanisms for specific challenges such as memory efficiency and computational speed. To address the KV-cache bottleneck in MHA, Multi-Query Attention (MQA) [303] proposes that all attention heads share the same set of keys and values, which reduces the memory and computational overhead associated with storing and managing multiple key-value pairs. Grouped Query Attention (GQA) [8] serves as a middle ground between MHA and MQA.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 166\\n\\n[10] J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S. Anadkat, et al., “Gpt-4 technical report,” arXiv preprint arXiv:2303.08774, 2023. [11] C. Thompson Neil, G. Kristjan, L. Keeheon, and F. Manso Gabriel, “The computational limits of deep learning,” ArXiv, Cornell University, juillet, 2020. [12] C. Sun, A. Shrivastava, S. Singh, and A. Gupta, “Revisiting unreasonable effectiveness of data in deep learning era,” in Proceedings of the IEEE international conference on computer vision, pp. 843–852, 2017. [13] R. A. Jacobs, M. I. Jordan, S. J. Nowlan, and G. E. Hinton, “Adaptive mixtures of local experts,” Neural computation, vol. 3, no. 1, pp. 79–87, 1991. [14] M. I. Jordan and R. A. Jacobs, “Hierarchical mixtures of experts and the em algorithm,” Neural computation, vol. 6, no. 2, pp. 181–214, 1994. [15] W. Fedus, B. Zoph, and N.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 20\\n\\nFor each of these we use [math: d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h \\\\stackrel { } { = } \\\\dot { 6 } 4] . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \\\"encoder-decoder attention\\\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Attention Is All You Need\\nChunk: 20\\n\\nFor each of these we use $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h \\\\stackrel { } { = } \\\\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \\\"encoder-decoder attention\\\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.5909, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 2.5909, + "start_timestamp": "2025-08-16T10:04:23.210343", + "end_timestamp": "2025-08-16T10:04:25.801262" + }, + "metadata": { + "saved_at": "2025-08-16T10:04:25.801262", + "file_path": "retrieval_logs\\retrieval_20250816_100425_801_mix_k10_ck4_How_do_different_types_of_attention_mechanisms_eg_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100709_616_mix_k3_ck2_Can_you_explain_the_self-attention_mechanism_in_Tr.json b/retrieval_logs/retrieval_20250816_100709_616_mix_k3_ck2_Can_you_explain_the_self-attention_mechanism_in_Tr.json new file mode 100644 index 0000000000000000000000000000000000000000..dc37afa4bcaea0bc2ca1f172f555a318e7b26322 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100709_616_mix_k3_ck2_Can_you_explain_the_self-attention_mechanism_in_Tr.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:07:09.616177", + "query": "Can you explain the self-attention mechanism in Transformers and how it contributes to their effectiveness?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 10451, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Queries, Keys, and Values\", \"type\": \"abstract\", \"description\": \"Fundamental components of the attention mechanism that are linearly projected multiple times in Multi-Head Attention and are $d _ { \\\\\\\\mathrm { m o d e l } }$-dimensional in a single attention function.\", \"created_at\": \"2025-08-15 18:03:15\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Attention\", \"type\": \"methodology\", \"description\": \"Attention is a mechanism employed in natural language processing models, particularly within the Multi-Head Attention (MHA) framework. It functions as a method to focus on different parts of an input sequence for information processing. At its core, attention computes a weighted sum of values, where the weights are determined by the similarity between queries and keys. This process is often visualized by showing parallel word sequences connected by lines, illustrating how different parts of the input are attended to. Within each head of the MHA mechanism, attention takes transformed queries (Q), keys (K), and values (V) as inputs. The output of attention is a vector derived from a weighted sum of these values, with the weights derived from the query-key similarity. While the specific formula for scaled dot-product attention is not explicitly detailed, it is implied to be the underlying calculation. Essentially, attention acts as a function that maps a query and a set of key-value pairs to an output vector.\", \"created_at\": \"2025-08-15 14:54:37\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:58:21\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Multi-Head Attention processes queries, keys, and values by linearly projecting them multiple times.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Linear Projections\", \"entity2\": \"Queries, Keys, and Values\", \"description\": \"Linear projections are applied to queries, keys, and values as part of the Multi-Head Attention mechanism.\", \"created_at\": \"2025-08-15 18:04:51\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Attention\", \"entity2\": \"FlashAttention-2\", \"description\": \"FlashAttention-2 is an optimization for attention mechanisms, improving speed and parallelism.\", \"created_at\": \"2025-08-15 17:07:45\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 6\\n\\nThis makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2. Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22]. End-to-end memory networks are based on a recurrent attention mechanism instead of sequencealigned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 11.6673, + "rag_initialization_seconds": 4.3069, + "query_execution_seconds": 7.3604, + "start_timestamp": "2025-08-16T10:06:57.948882", + "end_timestamp": "2025-08-16T10:07:09.616178" + }, + "metadata": { + "saved_at": "2025-08-16T10:07:09.616177", + "file_path": "retrieval_logs\\retrieval_20250816_100709_616_mix_k3_ck2_Can_you_explain_the_self-attention_mechanism_in_Tr.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100709_847_mix_k3_ck2_What_is_the_fundamental_concept_behind_Transformer.json b/retrieval_logs/retrieval_20250816_100709_847_mix_k3_ck2_What_is_the_fundamental_concept_behind_Transformer.json new file mode 100644 index 0000000000000000000000000000000000000000..64aa54c61ea38cd3ced7f78245ec2311a9124a75 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100709_847_mix_k3_ck2_What_is_the_fundamental_concept_behind_Transformer.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:07:09.847399", + "query": "What is the fundamental concept behind Transformer models in natural language processing?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 13931, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention, also known as intra-attention, is an attention mechanism that connects different positions within a single sequence to compute a representation of that sequence. It has been successfully applied to tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"attention\", \"type\": \"methodology\", \"description\": \"Attention is a mechanism utilized in the Transformer model, which is the first sequence transduction model to rely entirely on attention. Within the Transformer, attention is implemented through various forms, including multi-head attention, encoder-decoder attention, and self-attention. Furthermore, attention serves as a component within the same layer as SSM heads, enabling parallel and complementary processing of inputs. For experimental purposes, attention was also selected as a parameter.Attention was selected as a parameter for experiments.\", \"created_at\": \"2025-08-15 14:56:17\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Radford et al.\", \"type\": \"person\", \"description\": \"Radford et al. are authors whose work focuses on transformer models, specifically their application to autoregressive language modeling. Their publications include papers detailing the GPT-2 model, and they are known for their contributions to fine-tuning these transformer-based models. While some details of their work remain unavailable, the consistent information points to their significant authorship in the development and refinement of GPT-2 and similar models.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Section 22 development set\", \"entity2\": \"attention\", \"description\": \"Attention was selected on the Section 22 development set.\", \"created_at\": \"2025-08-15 17:28:28\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"End-to-end memory networks\", \"entity2\": \"Self-attention\", \"description\": \"Both self-attention and end-to-end memory networks are attention mechanisms used in sequence processing tasks, with end-to-end memory networks specifically using a recurrent attention mechanism.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 30\\n\\nThe advanced training strategy to improve SLM performance will be introduced in Section 3. # 2.1 Architecture of SLMs SLMs commonly employ the Transformer architecture [346] (see Figure 4), which utilizes self-attention mechanisms to manage long-range text dependencies, essential for maintaining performance with constrained resources. However, due to the attention mechanism, Transformers have large inference cost. Hence, to alleviate the issue, several subquadratictime architectures such as Mamba [117], Hymba [90], and xLSTM [25] are proposed. Next, we will give details of Transformer due to its popularity and briefly introduce newly emerged models. 2.1.1 Transformer. The Transformer’s self-attention mechanism [346] allows language models to efficiently capture contextual information across longer sequences, even with limited resources. The Transformer generally adopts an encoder-decoder structure featuring self-attention mechanisms, feedforward networks, positional embeddings, and layer normalization.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 4.8152, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 4.8152, + "start_timestamp": "2025-08-16T10:07:05.032224", + "end_timestamp": "2025-08-16T10:07:09.847399" + }, + "metadata": { + "saved_at": "2025-08-16T10:07:09.847399", + "file_path": "retrieval_logs\\retrieval_20250816_100709_847_mix_k3_ck2_What_is_the_fundamental_concept_behind_Transformer.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100710_040_mix_k10_ck4_What_were_the_key_innovations_introduced_by_the_Tr.json b/retrieval_logs/retrieval_20250816_100710_040_mix_k10_ck4_What_were_the_key_innovations_introduced_by_the_Tr.json new file mode 100644 index 0000000000000000000000000000000000000000..576371eb825a68a5a93fedbc7de9f364b4fddcba --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100710_040_mix_k10_ck4_What_were_the_key_innovations_introduced_by_the_Tr.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:07:10.040219", + "query": "What were the key innovations introduced by the Transformer architecture compared to previous sequence models like RNNs and LSTMs?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 30560, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Computational complexity\", \"type\": \"discussion\", \"description\": \"Self-attention layers are faster than recurrent layers in terms of computational complexity when the sequence length $n$ is smaller than the representation dimensionality $d$.\", \"created_at\": \"2025-08-15 14:55:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"Sequence-aligned RNNs\", \"type\": \"methodology\", \"description\": \"Sequence-aligned RNNs (Recurrent Neural Networks) are a type of model that previous transduction models used, but the Transformer is noted for not using them to compute representations.\", \"created_at\": \"2025-08-15 18:34:17\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"The Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a model architecture that follows an overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder. It notably uses multi-head attention in three different ways, including encoder-decoder attention layers and self-attention layers within its encoder. This model allows for significantly more parallelization and achieves better BLEU scores than previous state-of-the-art models on the English-to-German and English-to-French newstest2014 tests. The Transformer can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs, representing a fraction of the training cost compared to prior models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.The Transformer is described as the first transduction model that relies entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. The text states it will describe the Transformer, motivate self-attention, and discuss its advantages over other models.\", \"created_at\": \"2025-08-15 21:42:55\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Recurrent models\", \"type\": \"methodology\", \"description\": \"Recurrent models typically factor computation along the symbol positions of input and output sequences, generating a sequence of hidden states $h _ { t }$ as a function of the previous hidden state $h _ { t - 1 }$ and the input for position $t$. Their sequential nature prevents parallelization within training examples, which is a critical issue for longer sequences due to memory constraints limiting batching across examples.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"FFN layer\", \"type\": \"methodology\", \"description\": \"The FFN layer in DaViT [276] is replaced with an MoE layer.The FFN layer, or Feed-Forward Network layer, is a component within a Transformer model. This layer is characterized by higher sparsity and domain specificity when compared to self-attention layers. To prevent overfitting, not all units within the FFN layer are activated simultaneously, which makes it suitable for sparse activation mechanisms. The FFN layer is considered an ideal choice for introducing the Mixture-of-Experts (MoE) mechanism due to its inherent sparsity and task relevance, and it can be substituted with an MoE layer.The FFN layer is a component in the traditional transformer that is replaced by the MoE-HCO block in the MvHeat-DET framework.\", \"created_at\": \"2025-08-15 15:35:39\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Gradient flow in recurrent nets: the difficulty of learning long-term dependencies\", \"type\": \"discussion\", \"description\": \"This discusses the challenges of gradient flow in recurrent neural networks, specifically regarding the difficulty of learning long-term dependencies.\", \"created_at\": \"2025-08-15 14:56:46\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-15 16:34:25\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"self-attention layers\", \"type\": \"methodology\", \"description\": \"Self-attention layers are a component of the encoder, where all keys, values, and queries originate from the same source, specifically the output of the preceding layer within the encoder. In contrast to Feed-Forward Network (FFN) layers, self-attention layers exhibit lower sparsity. Within the decoder, self-attention layers enable each position to attend to all preceding positions up to and including its own. These layers are also compared to recurrent and convolutional layers for their ability to map variable-length sequences.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Recurrent Neural Networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including long short-term memory (LSTM) and gated recurrent units (GRU), have been firmly established as state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"Factorization tricks for LSTM networks\", \"type\": \"methodology\", \"description\": \"This refers to techniques for factorization within LSTM networks.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Training Examples\", \"type\": \"abstract\", \"description\": \"The context within which parallelization is precluded by the inherently sequential nature of recurrent models.\", \"created_at\": \"2025-08-15 18:18:27\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"BERT\", \"type\": \"methodology\", \"description\": \"BERT is a foundational, pre-trained language model architecture that utilizes deep bidirectional transformers for language understanding. It pioneered the pre-training and fine-tuning paradigm and was trained on a vast text dataset, widely employing GELU for improved gradient flow control. As an encoder-based model, BERT utilizes Masked Language Modeling (MLM) tasks. While subsequent models like RoBERTa have optimized its pre-training, and DeBERTa has built upon its architecture, BERT itself signifies a major leap in pre-training techniques for deep language models. BERT has also demonstrated utility as a smaller language model for tasks such as response generation and risk score assignment, and for enhancing Large Language Models (LLMs) through response calibration or risk scoring. Furthermore, BERT has been instrumental in addressing the cold-start problem in recommender systems, with approaches like ADLRS using BERT to transform web-crawled item profiles into vectors that emphasize key aspects, thereby assisting recommender systems in gathering crucial initial information. BERT is an example of an early pre-trained language model that has been covered in previous survey papers and has been optimized. However, BERT-style models have faced limitations, particularly in content-based recommendations where Llama-2-7B aims to offer improvements, and have been noted as potentially overlooked by advancements in smaller language models (SLMs) concerning features like context length extension.\", \"created_at\": \"2025-08-15 17:12:01\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Recurrent Neural Networks (RNNs)\", \"type\": \"methodology\", \"description\": \"Recurrent Neural Networks (RNNs) are a class of models of which State Space Models (SSMs) are a superclass.\", \"created_at\": \"2025-08-15 16:21:43\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Prefix-layer tuning (PreLayer)\", \"type\": \"category\", \"description\": \"An extension to prefix-embedding tuning that learns activations after every Transformer layer, replacing them with trainable ones.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"self-attention\", \"type\": \"methodology\", \"description\": \"Self-attention is a mechanism utilized by the Transformer model to compute representations of its input and output. This methodology considers three key desiderata: total computational complexity per layer, the amount of parallelizable computation, and the path length between long-range dependencies within the network. To enhance computational performance, particularly for tasks involving very long sequences, self-attention can be restricted to consider only a neighborhood of a specified size, 'r', centered around the respective output position. Furthermore, self-attention has the potential to yield more interpretable models.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Transformer layer\", \"type\": \"category\", \"description\": \"A layer in a Transformer model; the number of these layers (L) influences the number of trainable parameters in PreLayer.\", \"created_at\": \"2025-08-13 22:46:10\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Radford et al.\", \"type\": \"person\", \"description\": \"Radford et al. are authors whose work focuses on transformer models, specifically their application to autoregressive language modeling. Their publications include papers detailing the GPT-2 model, and they are known for their contributions to fine-tuning these transformer-based models. While some details of their work remain unavailable, the consistent information points to their significant authorship in the development and refinement of GPT-2 and similar models.\", \"created_at\": \"2025-08-13 22:49:31\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"Rethinking the inception architecture for computer vision\", \"type\": \"methodology\", \"description\": \"Rethinking the inception architecture for computer vision is a methodology referenced in the text.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"Sequence to sequence learning with neural networks\", \"type\": \"methodology\", \"description\": \"Sequence to sequence learning with neural networks is a methodology mentioned in the text.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"sequence modeling\", \"type\": \"methodology\", \"description\": \"Sequence modeling is a problem domain for which recurrent neural networks, including LSTM and gated recurrent neural networks, are state-of-the-art approaches.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity\": \"Transformer architecture\", \"type\": \"methodology\", \"description\": \"The Transformer architecture is a neural network architecture widely used in language modeling and as a component of large language models. It generally adopts an encoder-decoder structure, though decoder-only variations also exist. Key components of the Transformer architecture include self-attention mechanisms, which are crucial for managing long-range text dependencies and maintaining performance with constrained resources, feedforward networks, positional embeddings that typically employ a sinusoidal function, and layer normalization. The architecture's dimensions are described using conventional terminologies, such as input and output dimension size ($d_{model}$), query/key/value/output projection matrices ($W_q$, $W_k$, $W_v$, $W_o$), and a pretrained weight matrix ($W$ or $W_0$). In the context of large language models, techniques like LoRA (Low-Rank Adaptation) can be integrated by injecting trainable rank decomposition matrices into each layer, thereby modifying the model structure. Specific metrics, such as per-wordpiece perplexities, are presented on datasets like the English-to-German translation development set, newstest2013. The detailed design of the Transformer architecture is provided in Section 5.The Transformer architecture uses Multi-Head Attention (MHA) as a key component. MHA is described as the first method that uses multiple heads to capture diverse information within the Transformer architecture.The Transformer architecture utilizes Multi-Head Attention (MHA) to capture diverse information. MHA employs multiple heads, each operating independently, to attend to different parts of the input sequence. The formula for MHA is given as MultiHead(Q, K, V) = Concat(head_1, head_2, ..., head_h)W^O, where head_i = Attention(QW_i^Q, KW_i^K, VW_i^V).\", \"created_at\": \"2025-08-15 16:23:09\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity\": \"subquadratic-time architectures\", \"type\": \"methodology\", \"description\": \"Subquadratic-time architectures are proposed to alleviate the inference cost issue associated with the attention mechanism in Transformers.\", \"created_at\": \"2025-08-15 16:20:19\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"Sequence-aligned RNNs\", \"entity2\": \"The Transformer\", \"description\": \"The Transformer is explicitly stated to compute representations 'without using sequence-aligned RNNs', highlighting a key architectural difference and innovation.\", \"created_at\": \"2025-08-15 18:35:17\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Mamba\", \"entity2\": \"Recurrent Neural Networks (RNNs)\", \"description\": \"Mamba is based on State Space Models (SSMs), which are a superclass of Recurrent Neural Networks (RNNs).\", \"created_at\": \"2025-08-15 16:21:43\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequential Computation\", \"description\": \"The inherent characteristic of Recurrent Neural Networks is their sequential computation, where hidden states are generated based on previous states and current input.\", \"created_at\": \"2025-08-15 18:20:09\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Gated Recurrent Units (GRU)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Gated Recurrent Units (GRU) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:55\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Prefix-layer tuning (PreLayer)\", \"entity2\": \"Transformer layer\", \"description\": \"PreLayer learns activations after every Transformer layer.\", \"created_at\": \"2025-08-13 22:46:13\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Long Short-Term Memory (LSTM)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Long Short-Term Memory (LSTM) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Encoder-Decoder Architectures\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Encoder-Decoder Architectures are mentioned alongside recurrent language models as areas where efforts have pushed boundaries, indicating a close relationship in the context of sequence modeling.\", \"created_at\": \"2025-08-15 18:21:27\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Rethinking the inception architecture for computer vision\", \"entity2\": \"Sequence to sequence learning with neural networks\", \"description\": \"Both are methodologies discussed in the context of neural networks and machine learning advancements.\", \"created_at\": \"2025-08-15 15:02:58\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Recurrent Language Models\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Recurrent Language Models are a specific application or type of recurrent neural network whose boundaries have been pushed by research.\", \"created_at\": \"2025-08-15 18:21:11\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Transformer architecture\", \"entity2\": \"subquadratic-time architectures\", \"description\": \"Subquadratic-time architectures such as Mamba, Hymba, and xLSTM are proposed to alleviate the inference cost of the Transformer architecture due to its attention mechanism.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Lack of Parallelization\", \"entity2\": \"Training Examples\", \"description\": \"The lack of parallelization in recurrent models applies specifically to computation within training examples.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"Factorization tricks for LSTM networks\", \"entity2\": \"Neural machine translation in linear time\", \"description\": \"Both are related to neural network architectures and efficiency, with factorization tricks potentially improving the performance of models like those used in linear time translation.\", \"created_at\": \"2025-08-15 14:58:12\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"transduction problems\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in transduction problems.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"attention distributions\", \"entity2\": \"self-attention\", \"description\": \"Self-attention could yield more interpretable models, and attention distributions show that individual attention heads learn different tasks and exhibit syntactic and semantic structure.\", \"created_at\": \"2025-08-15 14:54:29\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 30\\n\\nThe advanced training strategy to improve SLM performance will be introduced in Section 3. # 2.1 Architecture of SLMs SLMs commonly employ the Transformer architecture [346] (see Figure 4), which utilizes self-attention mechanisms to manage long-range text dependencies, essential for maintaining performance with constrained resources. However, due to the attention mechanism, Transformers have large inference cost. Hence, to alleviate the issue, several subquadratictime architectures such as Mamba [117], Hymba [90], and xLSTM [25] are proposed. Next, we will give details of Transformer due to its popularity and briefly introduce newly emerged models. 2.1.1 Transformer. The Transformer’s self-attention mechanism [346] allows language models to efficiently capture contextual information across longer sequences, even with limited resources. The Transformer generally adopts an encoder-decoder structure featuring self-attention mechanisms, feedforward networks, positional embeddings, and layer normalization.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 4\\n\\nthin training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples. Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains. Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19]. In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network. In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Attention Is All You Need\\nChunk: 33\\n\\nWe used warmup_steps [math: = 4 0 0 0] . # 5.4 Regularization We employ three types of regularization during training: Table 2: The Transformer achieves better BLEU scores than previous state-of-the-art models on the English-to-German and English-to-French newstest2014 tests at a fraction of the training cost.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.005, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 5.005, + "start_timestamp": "2025-08-16T10:07:05.034228", + "end_timestamp": "2025-08-16T10:07:10.039218" + }, + "metadata": { + "saved_at": "2025-08-16T10:07:10.040219", + "file_path": "retrieval_logs\\retrieval_20250816_100710_040_mix_k10_ck4_What_were_the_key_innovations_introduced_by_the_Tr.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100719_288_mix_k10_ck4_How_does_the_performance_and_efficiency_of_Transfo.json b/retrieval_logs/retrieval_20250816_100719_288_mix_k10_ck4_How_does_the_performance_and_efficiency_of_Transfo.json new file mode 100644 index 0000000000000000000000000000000000000000..f2132159c355fbd111fe8c3152a5b6ee1b204adb --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100719_288_mix_k10_ck4_How_does_the_performance_and_efficiency_of_Transfo.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:07:19.288593", + "query": "How does the performance and efficiency of Transformer models compare to recurrent neural networks (RNNs) and convolutional neural networks (CNNs) for various NLP tasks?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 43341, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including Long Short-Term Memory (LSTM) and gated recurrent neural networks, are established state-of-the-art approaches for sequence modeling and transduction problems like language modeling and machine translation.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"language modeling tasks\", \"type\": \"methodology\", \"description\": \"Language modeling tasks are tasks for which recurrent neural networks, and in particular LSTMs, have achieved state-of-the-art results.\", \"created_at\": \"2025-08-15 15:03:34\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"recurrent neural networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks are employed in the routing strategy to dynamically adjust expert selection based on input sequence context.Recurrent neural networks, particularly LSTMs, have achieved state-of-the-art results for language modeling tasks.\", \"created_at\": \"2025-08-15 15:14:28\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"RNNs\", \"type\": \"methodology\", \"description\": \"RNNs (Recurrent Neural Networks) are sequence-aligned models that the Transformer does not use.\", \"created_at\": \"2025-08-15 14:58:24\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"LoRA\", \"type\": \"methodology\", \"description\": \"LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models (LLMs) such as GPT-3. This technique works by freezing the original pre-trained model weights and introducing trainable rank decomposition matrices, known as adapters, into each layer of the Transformer architecture. LoRA operates on the hypothesis that the weight changes during model adaptation have a low intrinsic rank, achieving efficiency by updating only a small subset of parameters, specifically the query (Wq) and value (Wv) projection matrices, through these low-rank matrices. This significantly reduces the number of trainable parameters, by up to 10,000 times compared to full fine-tuning, leading to lower VRAM consumption and checkpoint sizes. Training time can also be reduced, potentially up to three times faster with adaptive optimizers, thereby decreasing overall hardware requirements.\\n\\nThe number of trainable parameters for LoRA can vary, with reported ranges from approximately 4.7 million to 603.8 million, though some sources suggest a narrower range of 4.7 million to 37.7 million. This variation can influence accuracy across different benchmarks; for instance, on WikiSQL, accuracy ranges from 73.3% to 74.1%, and on MNLI-m (matched), it ranges from 91.2% to 91.7%. LoRA consistently demonstrates superior performance compared to other adaptation methods like PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, achieving better validation accuracy on WikiSQL and MultiNLI-matched, higher Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100. In certain scenarios, LoRA achieves performance comparable to or even exceeding full fine-tuning, as seen on MNLI-100 and MNLI-Full, with similar results on MNLI-1k and MNLI-10K when adapting GPT-3. Its performance remains stable even as the number of trainable parameters increases.\\n\\nDuring inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no additional latency. This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching. LoRA is also utilized for fine-tuning and optimizing performance with mixed multimodal instruction data while maintaining computational efficiency. Furthermore, LoRALoRA is a method for personalized services in real-world applications of SLMs.LoRA is a method that suggests using separable training weights alongside fixed original weights to enable scalable customization of models, particularly for personalized services.\", \"created_at\": \"2025-08-15 17:08:15\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Recurrent Neural Networks\", \"type\": \"methodology\", \"description\": \"Recurrent neural networks, including long short-term memory (LSTM) and gated recurrent units (GRU), have been firmly established as state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"NLG\", \"type\": \"category\", \"description\": \"NLG is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-13 22:43:49\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Transformers [346]\", \"type\": \"methodology\", \"description\": \"Transformers [346] are foundational in most language models but face significant computational and memory challenges that worsen with model size, impacting training and autoregressive decoding.\", \"created_at\": \"2025-08-15 17:05:24\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"LSTMs\", \"type\": \"methodology\", \"description\": \"LSTMs are a type of recurrent neural network that have achieved state-of-the-art results for language modeling tasks.LSTMs are used to replace expert networks in MoE, leveraging their advantage in handling sequential data for processing user activity data streams.LSTMs are utilized by MMoE to handle sequential data and improve performance in processing user activity data streams.\", \"created_at\": \"2025-08-15 15:25:22\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Sequence Modeling and Transduction\", \"type\": \"abstract\", \"description\": \"Problem domains such as language modeling and machine translation where recurrent neural networks have been established as state-of-the-art approaches.\", \"created_at\": \"2025-08-15 18:18:22\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"NLU\", \"type\": \"abstract\", \"description\": \"NLU (Natural Language Understanding) development is hindered by the complexity, ambiguity, and diversity of human language.NLU is a category of tasks evaluated in the experiments.\", \"created_at\": \"2025-08-15 15:43:09\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"RNN sequence-to-sequence models [37]\", \"type\": \"methodology\", \"description\": \"RNN sequence-to-sequence models [37] are models that the Transformer outperforms, even when training only on the WSJ training set of 40K sentences.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"A neural attention model for abstractive sentence summarization\", \"type\": \"methodology\", \"description\": \"This refers to a neural attention model for abstractive sentence summarization, as presented in the arXiv preprint arXiv:1509.00685.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Our results in Table 4\", \"type\": \"results\", \"description\": \"Our results in Table 4 show that despite the lack of task-specific tuning our model performs surprisingly well, yielding better results than all previously reported models with the exception of the Recurrent Neural Network Grammar [8]. In contrast to RNN sequence-to-sequence models [37], the Transformer outperforms the BerkeleyParser [29] even when training only on the WSJ training set of 40K sentences.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Neural architectures for named entity recognition\", \"type\": \"methodology\", \"description\": \"This refers to the neural architectures used for named entity recognition, as presented in the arXiv preprint arXiv:1603.01360.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"Recurrent Neural Networks (RNNs)\", \"type\": \"methodology\", \"description\": \"Recurrent Neural Networks (RNNs) are a class of models of which State Space Models (SSMs) are a superclass.\", \"created_at\": \"2025-08-15 16:21:43\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes\", \"type\": \"methodology\", \"description\": \"This methodology aims to outperform larger language models by using less training data and smaller model sizes, achieved through a step-by-step distillation process.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity\": \"Lora: Low-rank adaptation of large language models\", \"type\": \"methodology\", \"description\": \"Lora is a method for adapting large language models, as described in an arXiv preprint from 2021.This methodology, also known as LoRA, is a technique for low-rank adaptation of large language models.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity\": \"Neural machine translation by jointly learning to align and translate\", \"type\": \"methodology\", \"description\": \"This refers to a methodology for neural machine translation that involves learning to align and translate simultaneously.This refers to the methodology of neural machine translation that jointly learns to align and translate, as presented in the arXiv preprint arXiv:1409.0473.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity\": \"RAG\", \"type\": \"methodology\", \"description\": \"RAG is a technique that can be equipped with SLMs to improve their performance, potentially making them comparable or better than LLMs.RAG, which stands for Retrieval-Augmented Generation, is a technique used in AI that enhances the performance of Large Language Models (LLMs) and potentially Small Language Models (SLMs) within constrained computational budgets. This method involves retrieving relevant information from external data sources to answer user queries using an LLM or other generative AI model.Retrieval Augmented Generation (RAG) enhances the capabilities of language models in knowledge-intensive tasks by incorporating a retrieval mechanism. This approach allows models to access relevant contextual information from a data repository in response to user queries. By integrating this retrieved data, RAG-equipped models better understand specific topics, enabling more informed and accurate outputs.\", \"created_at\": \"2025-08-15 16:38:55\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity\": \"knowledge-intensive tasks\", \"type\": \"abstract\", \"description\": \"Knowledge-intensive tasks are tasks where RAG enhances the capabilities of language models.\", \"created_at\": \"2025-08-15 16:36:35\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity\": \"deep learning architectures\", \"type\": \"methodology\", \"description\": \"deep learning architectures are modern systems that utilize fundamental attention mechanisms, particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity\": \"natural language processing\", \"type\": \"abstract\", \"description\": \"Natural Language Processing (NLP) is a significant field that relies on adapting large-scale, pre-trained language models to various downstream applications and particular tasks or domains. NLP has been greatly enhanced by advancements in language models, leading to broader applications across various fields. Within NLP, fundamental attention mechanisms are particularly utilized. Mixture of Experts (MoE) has seen recent applications in NLP, presenting multiple important subproblems that require further investigation, and is an area where MoE applications are reviewed in depth in the paper.\", \"created_at\": \"2025-08-15 16:19:21\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"language modeling tasks\", \"entity2\": \"recurrent neural networks\", \"description\": \"\\\"Recurrent neural networks have achieved state-of-the-art results for language modeling tasks.\\\")\", \"created_at\": \"2025-08-15 15:03:37\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"MoE\", \"entity2\": \"Transformer\", \"description\": \"MoE layers typically replace the Feed-Forward Network (FFN) layer within a Transformer block when MoE is incorporated into existing Transformer models.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"LoRA\", \"entity2\": \"NLG\", \"description\": \"LoRA's performance is evaluated on NLG tasks.\", \"created_at\": \"2025-08-13 22:43:59\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Transformer\", \"description\": \"Multi-Head Attention is employed within the Transformer to address the issue of reduced effective resolution arising from averaging attention-weighted positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"LSTMs\", \"entity2\": \"language modeling tasks\", \"description\": \"\\\"LSTMs have achieved state-of-the-art results for language modeling tasks.\\\")\", \"created_at\": \"2025-08-15 15:03:45\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"GPT-2\", \"entity2\": \"Transformer\", \"description\": \"GPT-2 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"LoRA\", \"entity2\": \"NLU\", \"description\": \"LoRA's performance is evaluated on NLU tasks.\", \"created_at\": \"2025-08-13 22:43:53\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"A neural attention model for abstractive sentence summarization\", \"entity2\": \"Neural architectures for named entity recognition\", \"description\": \"Both are neural network-based methodologies, with the former focusing on named entity recognition and the latter on abstractive sentence summarization.\", \"created_at\": \"2025-08-15 15:48:17\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mamba\", \"entity2\": \"Transformer\", \"description\": \"Mamba differs from Transformer in its approach to accessing hidden states, with Mamba focusing on the immediate previous hidden state and Transformer requiring access to all previous hidden states.Mamba offers a solution to the Transformer's drawback of quadratic time complexity during inference by relying only on the last hidden state, leading to faster inference speeds.Transformer uses attention heads for recall, while Mamba uses SSM heads for context summarization, highlighting different approaches to sequence processing.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes\", \"entity2\": \"Lora: Low-rank adaptation of large language models\", \"description\": \"Both methodologies aim to achieve better performance with smaller models or less data, suggesting a potential connection in their goals or underlying principles.\", \"created_at\": \"2025-08-15 17:24:44\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Figure 5\", \"entity2\": \"Transformer\", \"description\": \"Figure 5 implicitly shows the Transformer's slower inference speeds by comparison to Mamba.\", \"created_at\": \"2025-08-15 16:21:47\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"A neural attention model for abstractive sentence summarization\", \"entity2\": \"Neural machine translation by jointly learning to align and translate\", \"description\": \"Both methodologies leverage neural networks and attention mechanisms, with one focusing on translation and the other on summarization.\", \"created_at\": \"2025-08-15 15:48:20\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"MoE layer\", \"entity2\": \"Transformer\", \"description\": \"The MoE layer replaces the Feed-Forward Network (FFN) layer within a Transformer block.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"RAG\", \"entity2\": \"knowledge-intensive tasks\", \"description\": \"RAG enhances the capabilities of language models in knowledge-intensive tasks.\", \"created_at\": \"2025-08-15 16:36:38\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Hymba\", \"entity2\": \"Transformer\", \"description\": \"Hymba integrates attention heads, similar to those in the Transformer, within its layers.\", \"created_at\": \"2025-08-15 16:29:28\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Transformer\", \"entity2\": \"ΔWq\", \"description\": \"ΔWq is obtained from layers within a Transformer network.ΔWq represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:28\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"deep learning architectures\", \"entity2\": \"natural language processing\", \"description\": \"Deep learning architectures utilize fundamental attention mechanisms particularly in natural language processing.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Transformer\", \"entity2\": \"ΔWv\", \"description\": \"ΔWv represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Transformer\", \"entity2\": \"language modeling\", \"description\": \"The Transformer is implied to be relevant to language modeling tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Recurrence\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture dispenses with recurrence.The Transformer dispenses with recurrence, which is a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"BLEU scores\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model's performance is measured by its BLEU scores.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Emergent Modularity phenomenon\", \"entity2\": \"Transformer\", \"description\": \"The Emergent Modularity phenomenon is observed in pre-trained Transformer models.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"Convolutions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer dispenses with convolutions, which are a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Feed-Forward Network (FFN) layer\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer that is replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:18:38\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"State Space Models (SSMs)\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's attention mechanism has a drawback of quadratic time complexity, while State Space Models (SSMs) enable faster inference speeds by relying on the last hidden state.\", \"created_at\": \"2025-08-15 16:21:42\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Transformer\", \"entity2\": \"Vaswani et al.\", \"description\": \"Vaswani et al. are associated with the development or publication of the Transformer architecture.Vaswani et al. are the authors of the Transformer architecture.\", \"created_at\": \"2025-08-13 22:49:38\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder structure\", \"description\": \"\\\"The Transformer generally adopts an encoder-decoder structure.\\\")The Transformer is a transduction model that, unlike most competitive neural sequence transduction models, does not explicitly state it uses an encoder-decoder structure, but rather relies on self-attention.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"English Constituency Parsing\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is being evaluated on the task of English Constituency Parsing to assess its generalization capabilities.\", \"created_at\": \"2025-08-15 14:55:59\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Transformer\", \"entity2\": \"newstest2014\", \"description\": \"The Transformer model is evaluated on the newstest2014 test set for translation tasks.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"Transformer\", \"entity2\": \"images, audio and video\", \"description\": \"\\\"The Transformer is planned to be extended to problems involving input and output modalities other than text, such as images, audio, and video.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"English-to-French\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-French translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Constant number of operations\", \"entity2\": \"Transformer\", \"description\": \"The Transformer achieves a constant number of operations to learn dependencies between distant positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Making generation less sequential\", \"entity2\": \"Transformer\", \"description\": \"Making generation less sequential is a planned enhancement for the Transformer model.\", \"created_at\": \"2025-08-15 14:57:21\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"Feed-Forward Network (FFN)\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer block that can be replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"SVD\", \"entity2\": \"Transformer\", \"description\": \"The SVD method is applied to matrices (ΔW) derived from a Transformer's layers.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 60, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 61, \"entity1\": \"Transformer\", \"entity2\": \"simple-language question answering\", \"description\": \"The Transformer is implied to be relevant to simple-language question answering tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 62, \"entity1\": \"Mamba\", \"entity2\": \"Recurrent Neural Networks (RNNs)\", \"description\": \"Mamba is based on State Space Models (SSMs), which are a superclass of Recurrent Neural Networks (RNNs).\", \"created_at\": \"2025-08-15 16:21:43\", \"file_path\": \"unknown_source\"}, {\"id\": 63, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequential Computation\", \"description\": \"The inherent characteristic of Recurrent Neural Networks is their sequential computation, where hidden states are generated based on previous states and current input.\", \"created_at\": \"2025-08-15 18:20:09\", \"file_path\": \"unknown_source\"}, {\"id\": 64, \"entity1\": \"Recurrent Neural Networks\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Recurrent Neural Networks are firmly established as state-of-the-art approaches for solving sequence modeling and transduction problems.\", \"created_at\": \"2025-08-15 18:18:55\", \"file_path\": \"unknown_source\"}, {\"id\": 65, \"entity1\": \"Gated Recurrent Units (GRU)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Gated Recurrent Units (GRU) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:55\", \"file_path\": \"unknown_source\"}, {\"id\": 66, \"entity1\": \"Long Short-Term Memory (LSTM)\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Long Short-Term Memory (LSTM) is a specific type of Recurrent Neural Network mentioned as a state-of-the-art approach.\", \"created_at\": \"2025-08-15 18:20:39\", \"file_path\": \"unknown_source\"}, {\"id\": 67, \"entity1\": \"Encoder-Decoder Architectures\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Encoder-Decoder Architectures are mentioned alongside recurrent language models as areas where efforts have pushed boundaries, indicating a close relationship in the context of sequence modeling.\", \"created_at\": \"2025-08-15 18:21:27\", \"file_path\": \"unknown_source\"}, {\"id\": 68, \"entity1\": \"Recurrent Language Models\", \"entity2\": \"Recurrent Neural Networks\", \"description\": \"Recurrent Language Models are a specific application or type of recurrent neural network whose boundaries have been pushed by research.\", \"created_at\": \"2025-08-15 18:21:11\", \"file_path\": \"unknown_source\"}, {\"id\": 69, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"sequence modeling\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in sequence modeling.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 70, \"entity1\": \"Language Modeling\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Language Modeling is an example of a sequence modeling and transduction problem where RNNs are state-of-the-art.\", \"created_at\": \"2025-08-15 18:19:09\", \"file_path\": \"unknown_source\"}, {\"id\": 71, \"entity1\": \"Machine Translation\", \"entity2\": \"Sequence Modeling and Transduction\", \"description\": \"Machine Translation is an example of a sequence modeling and transduction problem where RNNs are state-of-the-art.\", \"created_at\": \"2025-08-15 18:19:40\", \"file_path\": \"unknown_source\"}, {\"id\": 72, \"entity1\": \"Recurrent neural networks\", \"entity2\": \"transduction problems\", \"description\": \"Recurrent neural networks are state-of-the-art approaches in transduction problems.\", \"created_at\": \"2025-08-15 14:53:01\", \"file_path\": \"unknown_source\"}, {\"id\": 73, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Attention Is All You Need\\nChunk: 44\\n\\n(2016) [8]generative93.3 Our results in Table 4 show that despite the lack of task-specific tuning our model performs surprisingly well, yielding better results than all previously reported models with the exception of the Recurrent Neural Network Grammar [8]. In contrast to RNN sequence-to-sequence models [37], the Transformer outperforms the BerkeleyParser [29] even when training only on the WSJ training set of 40K sentences. # 7 Conclusion In this work, we presented the Transformer, the first sequence transduction model based entirely on attention, replacing the recurrent layers most commonly used in encoder-decoder architectures with multi-headed self-attention. For translation tasks, the Transformer can be trained significantly faster than architectures based on recurrent or convolutional layers. On both WMT 2014 English-to-German and WMT 2014 English-to-French translation tasks, we achieve a new state of the art.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Attention Is All You Need\\nChunk: 20\\n\\nFor each of these we use $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h \\\\stackrel { } { = } \\\\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \\\"encoder-decoder attention\\\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: 2106.09685v2\\nChunk: 64\\n\\nPredicting parameters in deep learning, 2014. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding, 2019a. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv:1810.04805 [cs], May 2019b. URL http://arxiv.org/abs/1810.04805. arXiv: 1810.04805. William B. Dolan and Chris Brockett. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005), 2005. URL https://aclanthology.org/I05-5002. Claire Gardent, Anastasia Shimorina, Shashi Narayan, and Laura Perez-Beltrachini. The webnlg challenge: Generating text from rdf data. In Proceedings of the 10th International Conference on Natural Language Generation, pp. 124–133, 2017. Behrooz Ghorbani, Song Mei, Theodor Misiakiewicz, and Andrea Montanari. When do neural networks outperform kernel methods?\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.3368, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 2.3368, + "start_timestamp": "2025-08-16T10:07:16.951811", + "end_timestamp": "2025-08-16T10:07:19.288594" + }, + "metadata": { + "saved_at": "2025-08-16T10:07:19.288593", + "file_path": "retrieval_logs\\retrieval_20250816_100719_288_mix_k10_ck4_How_does_the_performance_and_efficiency_of_Transfo.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_100730_898_hybrid_k10_ck4_Based_on_the_following_QA_about_transformers_and_h.json b/retrieval_logs/retrieval_20250816_100730_898_hybrid_k10_ck4_Based_on_the_following_QA_about_transformers_and_h.json new file mode 100644 index 0000000000000000000000000000000000000000..3e720ff7b989056517a601d50408ca3920d2ef97 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_100730_898_hybrid_k10_ck4_Based_on_the_following_QA_about_transformers_and_h.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:07:30.899014", + "query": "Based on the following Q&A about transformers and how they work?, provide a comprehensive research summary: [{'category': 'overview', 'question': 'What is the fundamental concept behind Transformer models in natural language processing?', 'answer': '## Summary\\nThe fundamental concept behind Transformer models in natural language processing is their reliance on self-attention mechanisms within a specific neural network architecture. This allows them to efficiently process sequences by capturing contextual information and relationships between words, marking a significant advancement over previous models.\\n\\n***Confidence:** High | **Context Coverage:** Complete*\\n\\n## Detailed Analysis\\n\\n### 1. Introduction to Transformer Models\\n\\nThe Transformer model is a groundbreaking neural network architecture that has revolutionized natural language processing (NLP) tasks, particularly in machine translation and language modeling. Its core innovation is the reliance entirely on attention mechanisms, moving away from traditional recurrent and convolutional layers. This allows the Transformer to process sequences by focusing on the relationships between different positions within the input data, enabling a more efficient and parallelizable approach to understanding language.\\n\\n*Sources: From Entity: \"Transformer\", From Entity: \"Self-attention\", From Document Chunk: 1*\\n\\n### 2. The Role of Self-Attention\\n\\nAt the heart of the Transformer is the concept of self-attention. This mechanism allows the model to weigh the importance of different words in a sequence when processing a particular word. Essentially, it connects different positions within a single sequence to compute a representation of that sequence. This ability to capture contextual information across longer sequences is crucial for maintaining performance, especially with limited resources.\\n\\n*Sources: From Entity: \"Self-attention\", From Document Chunk: 1*\\n\\n### 3. Transformer Architecture and Components\\n\\nThe Transformer architecture is structured with components such as self-attention mechanisms, feedforward networks, positional embeddings, and layer normalization. It often employs an encoder-decoder structure. The self-attention mechanism, a key feature, enables the model to efficiently capture contextual information across longer sequences. This design choice has led to significant improvements in quality, parallelizability, and reduced training time compared to earlier models.\\n\\n*Sources: From Entity: \"Transformer\", From Document Chunk: 1*\\n\\n### 4. Advantages and Challenges of Attention in Transformers\\n\\nThe Transformer\\'s reliance on attention, specifically multi-headed self-attention, allows it to compute representations without needing sequential processing like RNNs or convolutions. This approach is highly parallelizable and offers superior quality. While attention mechanisms can lead to high inference costs due to recalculating attention scores for each new token (quadratic time complexity), variations and further research aim to mitigate these drawbacks.\\n\\n*Sources: From Entity: \"Transformer\", From Document Chunk: 1, From Document Chunk: 2*\\n\\n### 5. Transformers in Large Language Models\\n\\nTransformer technology is fundamental to the development of Large Language Models (LLMs). Models like BERT, for example, are described as large Transformer language models, highlighting the widespread adoption and importance of this architecture in advancing NLP capabilities. Radford et al. also applied the Transformer architecture to autoregressive language modeling, further emphasizing its significance.\\n\\n*Sources: From Entity: \"Transformer\", From Entity: \"Large Language Models\", From Entity: \"BERT\", From Entity: \"Radford et al.\", From Relationship: \"Large Language Models -> Transformer technology\", From Relationship: \"BERT -> Transformer\", From Relationship: \"Radford et al. -> Transformer\"*'}, {'category': 'methodology', 'question': 'Can you explain the self-attention mechanism in Transformers and how it contributes to their effectiveness?', 'answer': \"## Summary\\nThe Transformer architecture relies on self-attention mechanisms, which use queries, keys, and values to weigh the importance of different parts of an input sequence. This allows it to efficiently capture long-range dependencies and offers computational advantages over traditional models.\\n\\n***Confidence:** High | **Context Coverage:** High*\\n\\n## Detailed Analysis\\n\\n### 1. Introduction to the Transformer Architecture and its Reliance on Attention\\n\\nThe Transformer architecture is a significant advancement in sequence transduction tasks, such as machine translation and language modeling. It distinguishes itself by being the first model to entirely rely on attention mechanisms, specifically multi-headed self-attention, which allows it to replace traditional recurrent (RNN) and convolutional neural network (CNN) layers. This design choice enables the Transformer to compute representations of its input and output solely through self-attention, without needing sequence-aligned RNNs or convolutions. The Transformer's ability to handle sequences is primarily achieved through its self-attention mechanisms and multi-layer perceptron (MLP) modules.\\n\\n*Sources: From Entity: 'Transformer'*\\n\\n### 2. Understanding Self-Attention: Relating Positions Within a Sequence\\n\\nSelf-attention, also referred to as intra-attention, is a mechanism that relates different positions within a single sequence to compute a representation for that sequence. This means that for each element in the sequence, the self-attention mechanism computes how much attention it should pay to every other element in the same sequence, including itself. This process is fundamental to how the Transformer understands context and relationships between words or tokens, even if they are far apart in the sequence. The Transformer model relies entirely on self-attention to compute its representations.\\n\\n*Sources: From Entity: 'self-attention', From Document Chunk: 1*\\n\\n### 3. The Role of Queries, Keys, and Values in Attention\\n\\nThe attention mechanism, in general, functions by computing a weighted sum of values, where the weights are determined by the similarity between queries and keys. Within the context of Multi-Head Attention (MHA), which is a key component of Transformers, queries (Q), keys (K), and values (V) are fundamental. These components are derived from the input sequence. Specifically, for each head in MHA, the queries, keys, and values are linearly projected multiple times. The output of the attention mechanism is then a vector that is a weighted sum of these values, with the weights being a result of the query-key similarity calculation. This process allows the model to focus on different parts of the input sequence for processing.\\n\\n*Sources: From Entity: 'Attention', From Entity: 'Queries, Keys, and Values', From Relationship: 'Multi-Head Attention -> Queries, Keys, and Values'*\\n\\n### 4. How Self-Attention Manages Long-Range Dependencies\\n\\nThe Transformer architecture utilizes self-attention mechanisms to effectively manage long-range text dependencies. This capability is crucial for maintaining performance, especially when dealing with limited resources. By allowing the model to efficiently capture contextual information across longer sequences, self-attention mechanisms help overcome limitations that might arise with more constrained models. For instance, in the encoder part of the Transformer, self-attention layers use keys, values, and queries that all originate from the output of the preceding layer. Within the decoder, self-attention layers allow each position to attend to all preceding positions, including its own. These self-attention layers are contrasted with Feed-Forward Network (FFN) layers, exhibiting lower sparsity. The Transformer also uses Multi-Head Attention to counteract the reduction in effective resolution that can occur due to the averaging of attention-weighted positions.\\n\\n*Sources: From Entity: 'Transformer', From Entity: 'self-attention mechanisms', From Entity: 'self-attention layers', From Document Chunk: 1*\\n\\n### 5. Computational Efficiency and Mitigating Resolution Reduction\\n\\nA key advantage of the Transformer, facilitated by self-attention, is its ability to reduce the computational complexity for learning dependencies between distant positions to a constant number of operations. This is a significant improvement over traditional methods where this complexity might increase with the distance between positions. While this constant operation count is beneficial, it can sometimes lead to a reduced effective resolution because attention-weighted positions are averaged. However, the Multi-Head Attention mechanism is employed to mitigate this specific effect. Additionally, self-attention mechanisms are designed with three core considerations: total computational complexity per layer, the degree of parallelizable computation, and the path length for dependencies between distant positions. To further enhance computational performance, especially for very long sequences, self-attention can be restricted to only consider a neighborhood of a specified size around a given output position.\\n\\n*Sources: From Entity: 'Transformer', From Entity: 'self-attention', From Document Chunk: 1*\"}, {'category': 'innovation', 'question': 'What were the key innovations introduced by the Transformer architecture compared to previous sequence models like RNNs and LSTMs?', 'answer': \"## Summary\\nThe Transformer architecture revolutionized sequence modeling by replacing the sequential processing of RNNs and LSTMs with self-attention mechanisms, leading to increased parallelization, reduced training costs, and improved handling of long-range dependencies.\\n\\n***Confidence:** High | **Context Coverage:** High*\\n\\n## Detailed Analysis\\n\\n### 1. Traditional Sequence Models: RNNs and LSTMs\\n\\nRecurrent Neural Networks (RNNs), including variants like Long Short-Term Memory (LSTM) and gated recurrent units (GRU), have historically been the established state-of-the-art approaches for sequence modeling and transduction problems such as language modeling and machine translation. These models process data sequentially, where each step's computation depends on the previous hidden state and the current input. This inherent sequential nature, however, prevents parallelization within training examples. This lack of parallelization becomes a critical issue for longer sequences due to memory constraints that limit batching across examples. (From Entity: 'Recurrent neural networks', From Entity: 'Recurrent models', From Entity: 'Recurrent Neural Networks', From Relationship: 'Recurrent Neural Networks -> Sequence Modeling and Transduction', From Relationship: 'Recurrent Neural Networks -> Sequential Computation', From Relationship: 'Gated Recurrent Units (GRU) -> Recurrent Neural Networks', From Relationship: 'Long Short-Term Memory (LSTM) -> Recurrent Neural Networks')\\n\\n*Sources: From Entity: 'Recurrent neural networks', From Entity: 'Recurrent models', From Entity: 'Recurrent Neural Networks', From Relationship: 'Recurrent Neural Networks -> Sequence Modeling and Transduction', From Relationship: 'Recurrent Neural Networks -> Sequential Computation', From Relationship: 'Gated Recurrent Units (GRU) -> Recurrent Neural Networks', From Relationship: 'Long Short-Term Memory (LSTM) -> Recurrent Neural Networks'*\\n\\n### 2. The Transformer's Core Innovation: Self-Attention over Recurrence\\n\\nThe Transformer architecture was introduced as a novel model that eschews recurrence entirely. Instead, it relies on attention mechanisms to draw global dependencies between input and output sequences. This fundamental shift means the Transformer computes representations of its input and output solely through self-attention, without using sequence-aligned RNNs or convolutions. This move away from sequential computation is a key innovation. (From Entity: 'The Transformer', From Document Chunk: 3, From Relationship: 'Transformer -> self-attention', From Relationship: 'Sequence-aligned RNNs -> The Transformer')\\n\\n*Sources: From Entity: 'The Transformer', From Document Chunk: 3, From Relationship: 'Transformer -> self-attention', From Relationship: 'Sequence-aligned RNNs -> The Transformer'*\\n\\n### 3. Enhanced Parallelization\\n\\nA major advantage of the Transformer's reliance on self-attention is the significant increase in parallelization it allows. Unlike recurrent models, where computation is factored sequentially and prevents parallel processing within training examples, the Transformer's attention mechanism can process all positions in parallel. This is because the self-attention mechanism computes representations by considering all input and output positions simultaneously, rather than step-by-step. (From Entity: 'The Transformer', From Document Chunk: 3, From Entity: 'Computational complexity', From Entity: 'self-attention')\\n\\n*Sources: From Entity: 'The Transformer', From Document Chunk: 3, From Entity: 'Computational complexity', From Entity: 'self-attention'*\\n\\n### 4. Reduced Training Costs and Faster Training\\n\\nThis enhanced parallelization leads to a substantial reduction in training costs and time. The Transformer can achieve state-of-the-art translation quality with significantly less training time compared to prior models. For instance, it can reach new state-of-the-art results after as little as twelve hours of training on eight P100 GPUs. This contrasts sharply with the computational limitations imposed by the sequential nature of recurrent models, especially for longer sequences. (From Entity: 'The Transformer', From Document Chunk: 4)\\n\\n*Sources: From Entity: 'The Transformer', From Document Chunk: 4*\\n\\n### 5. Improved Handling of Long-Range Dependencies\\n\\nFurthermore, the Transformer architecture is described as allowing for the modeling of dependencies without regard to their distance in the input or output sequences, a capability that is fundamental to its effectiveness. While self-attention layers have lower sparsity compared to Feed-Forward Network (FFN) layers, they enable each position to attend to all preceding positions up to and including its own. This ability to capture long-range dependencies efficiently, coupled with the advantage of parallel computation, positions the Transformer as a superior architecture for many sequence transduction tasks compared to traditional recurrent approaches. (From Entity: 'The Transformer', From Entity: 'self-attention layers', From Entity: 'FFN layer')\\n\\n*Sources: From Entity: 'The Transformer', From Entity: 'self-attention layers', From Entity: 'FFN layer'*\"}, {'category': 'comparison', 'question': 'How does the performance and efficiency of Transformer models compare to recurrent neural networks (RNNs) and convolutional neural networks (CNNs) for various NLP tasks?', 'answer': \"## Summary\\nThe Transformer architecture, leveraging self-attention, offers superior performance and training efficiency compared to traditional RNNs for tasks like translation and language modeling, despite potential inference challenges with long sequences.\\n\\n***Confidence:** High | **Context Coverage:** High*\\n\\n## Detailed Analysis\\n\\n### 1. Recurrent Neural Networks (RNNs) in NLP\\n\\nRecurrent Neural Networks (RNNs), including Long Short-Term Memory (LSTM) and Gated Recurrent Units (GRU), have been established as state-of-the-art approaches for sequence modeling and transduction problems such as language modeling and machine translation. Their strength lies in their sequential computation, where hidden states are generated based on previous states and current input, making them well-suited for tasks where order and context over time are crucial. For instance, RNNs, particularly LSTMs, have achieved state-of-the-art results for language modeling tasks. This sequential nature, however, can limit parallelization during training. (From Entity: 'Recurrent Neural Networks', From Entity: 'LSTMs', From Entity: 'Sequence Modeling and Transduction', From Relationship: 'Recurrent Neural Networks -> Sequential Computation')\\n\\n*Sources: Entity: Recurrent Neural Networks, Entity: LSTMs, Entity: Sequence Modeling and Transduction, Relationship: Recurrent Neural Networks -> Sequential Computation*\\n\\n### 2. The Transformer Architecture and Self-Attention\\n\\nIn contrast, the Transformer architecture, introduced in 'Attention Is All You Need,' represents a significant shift by relying entirely on attention mechanisms, specifically multi-headed self-attention, to process sequences. This design completely replaces recurrent and convolutional layers. The Transformer's ability to compute representations solely through self-attention allows it to draw global dependencies between input and output. A key advantage is its capacity to reduce the operations needed to learn dependencies between distant positions to a constant number, which is crucial for understanding long-range context in text. (From Entity: 'Transformer', From Relationship: 'Transformer -> self-attention mechanisms', From Relationship: 'Attention Mechanisms -> Transformer')\\n\\n*Sources: Entity: Transformer, Relationship: Transformer -> self-attention mechanisms, Relationship: Attention Mechanisms -> Transformer*\\n\\n### 3. Transformer Efficiency and Performance Gains\\n\\nThe Transformer offers significant advantages in terms of training speed and efficiency compared to recurrent or convolutional architectures. Its design, based entirely on attention, allows for greater parallelization during training, which is a notable improvement over the sequential processing inherent in RNNs. For translation tasks, such as WMT 2014 English-to-German and English-to-French, the Transformer achieved a new state of the art, demonstrating its superior performance. Furthermore, the Transformer model's efficiency in terms of training cost is highlighted. (From Document Chunk: 1, From Relationship: 'Transformer -> training cost')\\n\\n*Sources: Document Chunk: 1, Relationship: Transformer -> training cost*\\n\\n### 4. Inference Challenges and Alternatives to Transformer\\n\\nWhile Transformers excel, they do present certain challenges. For instance, the attention mechanism in Transformers can lead to quadratic time complexity during inference as sequence lengths increase, because it requires recalculating attention scores with every previous token for each new token generated. This increases inference cost with longer sequences. This is an area where alternative architectures, such as Mamba (which is based on State Space Models, a superclass of RNNs), offer an advantage by relying only on the last hidden state, enabling faster inference speeds. (From Document Chunk: 2, From Entity: 'Transformer')\\n\\n*Sources: Document Chunk: 2, Entity: Transformer*\\n\\n### 5. Transformer's Departure from Recurrence\\n\\nRecurrent neural networks, including LSTMs, have historically achieved state-of-the-art results in language modeling tasks. However, the Transformer model eschews the use of recurrent networks, which are typically used in conjunction with attention mechanisms. This departure allows the Transformer to operate without sequence-aligned RNNs or convolutions, relying solely on self-attention mechanisms to compute representations. This fundamental difference in architecture contributes to the Transformer's improved performance and parallelizability. (From Entity: 'Recurrent network', From Entity: 'Transformer', From Relationship: 'Recurrence -> Transformer')\\n\\n*Sources: Entity: Recurrent network, Entity: Transformer, Relationship: Recurrence -> Transformer*\\n\\n### 6. Transformer's Use of Multi-Head Attention and Generalization\\n\\nThe Transformer architecture uses multi-head attention in several ways, including in 'encoder-decoder attention' layers and self-attention layers within the encoder. This multi-head attention is employed to address issues like reduced effective resolution that can arise from averaging attention-weighted positions. The model's effectiveness is further demonstrated by its strong generalization capabilities, seen in its application to English constituency parsing, where it achieved better BLEU scores than previous state-of-the-art models, even with limited training data. (From Document Chunk: 3, From Relationship: 'Multi-Head Attention -> Transformer', From Entity: 'Transformer')\\n\\n*Sources: Document Chunk: 3, Relationship: Multi-Head Attention -> Transformer, Entity: Transformer*\"}]", + "query_mode": "hybrid", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 33922, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"Transformer\", \"type\": \"methodology\", \"description\": \"The Transformer is a revolutionary neural network architecture that has significantly advanced sequence transduction tasks, particularly in machine translation and language modeling. It is the first sequence transduction model to entirely rely on attention mechanisms, specifically multi-headed self-attention, thereby replacing traditional recurrent and convolutional layers. This design allows the Transformer to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. The Transformer architecture is composed of self-attention and multi-layer perceptron (MLP) modules, utilizing multi-head attention in three distinct applications. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. Attention heads in the Transformer facilitate high-resolution recall. A key advantage of the Transformer is its ability to reduce the number of operations required to learn dependencies between distant positions to a constant number, although this can lead to a reduced effective resolution due to the averaging of attention-weighted positions, an effect mitigated by Multi-Head Attention. The Transformer's effectiveness is further demonstrated by its strong generalization capabilities, as seen in its successful application to English constituency parsing, even with limited training data, where it has achieved better BLEU scores than previous state-of-the-art models. Research is actively exploring the extension of the Transformer's capabilities to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. In specific experimental contexts, a 96-layer Transformer model has been utilized, with analyses focusing on weight updates within various layers and sometimes incorporating techniques like Low-Rank Adaptation (LoRA). Variations of the Transformer model have also been evaluated to understand the significance of its individual components, and it is used in the context of analyzing matrices like ΔWq and ΔWv. The Transformer serves as the foundational model for pre-trained autoregressive language models like GPT. The Transformer is a type of model into which Mixture of Experts (MoE) is typically incorporated, usually by replacing the Feed-Forward Network (FFN) layer within a transformer block with an MoE layer. The standard multi-head attention mechanism within a Transformer requires all attention heads to process every input. Pre-trained Transformer models exhibit the Emergent Modularity phenomenon. While the Transformer can be surpassed in BLEU scores by another model with 213 million parameters, it requires less computation. The Transformer is a popular architecture that generally adopts an encoder-Transformer is a type of model architecture used in Phi-1.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"encoder-decoder attention\", \"type\": \"methodology\", \"description\": \"This is one of the three ways multi-head attention is used in the Transformer. In these layers, queries originate from the previous decoder layer, while memory keys and values are sourced from the encoder's output. This enables every decoder position to attend to all positions in the input sequence, mirroring attention mechanisms in sequence-to-sequence models like those in references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"sequence-to-sequence models\", \"type\": \"methodology\", \"description\": \"Sequence-to-sequence models are mentioned as examples of models that use typical encoder-decoder attention mechanisms, which the Transformer mimics.\", \"created_at\": \"2025-08-15 14:56:12\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Large Language Models\", \"type\": \"methodology\", \"description\": \"Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology and incorporating advanced techniques like xLSTM architectures. Models exhibiting emergent abilities are generally categorized as LLMs. Their training typically involves a single round due to their substantial model size and data volume, employing distinct training strategies compared to smaller models, and they can undergo data-free quantization aware training. Ongoing research explores continual adaptation techniques like Mixture of Experts (MoE) for models that have recently undergone breakthroughs.\\n\\nLLMs serve as the foundational context for discussions and developments concerning Small Language Models (SLMs). They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs are also the subject of fine-tuning using SLMs, and their performance on coding benchmarks is often compared to SLMs. LLMs can benefit from the integration with SLMs, as SLMs can alert LLMs to security issues and a tendency to produce repetitive vocabulary, providing feedback for improvement. Furthermore, LLMs can have their training data selection guided by difficulty metrics assessed by SLMs, and their fine-tuning processes can be approximated by parameter adjustments during SLM fine-tuning. LLMs benefit from the selection of high-quality fine-tuning data. LLMs are also mentioned in the context of survey responses being questioned and as a basis for comparison or context for Small Language Models, and are being compared to Small Language Models in the context of learning Computer Science.\\n\\nIn terms of applications, LLMs are discussed in the context of recommendations and finetuning using user behavior sequences. They are a central component in both non-personalized and personalized LoRA finetuning processes. LLMs are also the target for the DISP-LLM pruning methodology. In a broader context, LLMs are depicted as a foundational concept from which multiple parallel processes descend, and they are a subject of discussion in the context of mobile control and runtime efficiency optimization. The era in which SLMs are being considered is characterized by the prominence of LLMs. Prominent examples of LLMs include those from OpenAI, Claude 3, Gemini, and Meta AI.\\n\\nDespite their capabilities, LLMs face several challenges. Their deployment, particularly on-device, is hindered by significant cloud costs, latency issues, privacy concerns, and high requirements for parameters and cache, which can lead to inference delays. While they can handle diverse domains, they may require additional methods, such as knowledge injection, to effectively address domain-specific queries. It has been found that larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant. LLMs are also mentioned in the context of medical domains and open-source pretrained models.\", \"created_at\": \"2025-08-15 17:25:43\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Transformer technology\", \"type\": \"methodology\", \"description\": \"Transformer technology is utilized by existing Large Language Models.\", \"created_at\": \"2025-08-15 16:30:08\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"A neural attention model for abstractive sentence summarization\", \"type\": \"methodology\", \"description\": \"This refers to a neural attention model for abstractive sentence summarization, as presented in the arXiv preprint arXiv:1509.00685.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Neural machine translation by jointly learning to align and translate\", \"type\": \"methodology\", \"description\": \"This refers to a methodology for neural machine translation that involves learning to align and translate simultaneously.This refers to the methodology of neural machine translation that jointly learns to align and translate, as presented in the arXiv preprint arXiv:1409.0473.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"A deep reinforced model for abstractive summarization\", \"type\": \"abstract\", \"description\": \"This is a reference to a work that proposes a deep reinforced model for abstractive summarization.\", \"created_at\": \"2025-08-15 14:56:53\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Effective approaches to attentionbased neural machine translation\", \"type\": \"abstract\", \"description\": \"This appears to be a reference to a paper or work that focuses on attention-based neural machine translation.\", \"created_at\": \"2025-08-15 14:56:53\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"Neural architectures for named entity recognition\", \"type\": \"methodology\", \"description\": \"This refers to the neural architectures used for named entity recognition, as presented in the arXiv preprint arXiv:1603.01360.\", \"created_at\": \"2025-08-15 15:48:16\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Abstract\", \"type\": \"abstract\", \"description\": \"Modern mobile devices have access to a wealth of data suitable for learning models, which in turn can greatly improve the user experience on the device. For example, language models can improve speech recognition and text entry, and image models can automatically select good photos. However, this rich data is often privacy sensitive, large in quantity, or both, which may preclude logging to the data center and training there using conventional approaches. We advocate an alternative that leaves the training data distributed on the mobile devices, and learns a shared model by aggregating locally-computed updates. We term this decentralized approach Federated Learning.The abstract describes the dominant sequence transduction models as complex recurrent or convolutional neural networks with an encoder and decoder, often connected by an attention mechanism. It proposes a new, simpler network architecture called the Transformer, which relies solely on attention mechanisms and eliminates recurrence and convolutions.\", \"created_at\": \"2025-08-15 15:02:51\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Attention Mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms are the core component of the Transformer architecture, replacing recurrence and convolutions.Attention mechanisms are used to connect the encoder and decoder in the best performing sequence transduction models. The proposed Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"self-attention mechanisms\", \"type\": \"methodology\", \"description\": \"Self-attention mechanisms are utilized by the Transformer architecture to manage long-range text dependencies, which is essential for maintaining performance with constrained resources. They allow language models to efficiently capture contextual information across longer sequences, even with limited resources.Self-attention mechanisms are where Grouped Query Attention (GQA) is frequently employed in recent SLMs.\", \"created_at\": \"2025-08-15 16:42:23\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"Attention mechanisms\", \"type\": \"methodology\", \"description\": \"Attention mechanisms account for the remaining parameters in transformer models not made up by FFNs.Attention mechanisms allow modeling of dependencies without regard to their distance in the input or output sequences, and are an integral part of sequence modeling and transduction models.\", \"created_at\": \"2025-08-15 16:40:55\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Recurrent network\", \"type\": \"methodology\", \"description\": \"Recurrent networks are typically used in conjunction with attention mechanisms, but the Transformer model eschews their use.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"A decomposable attention model\", \"type\": \"abstract\", \"description\": \"This is a reference to a work that introduces a decomposable attention model.\", \"created_at\": \"2025-08-15 14:56:53\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"multi-head attention\", \"type\": \"methodology\", \"description\": \"Multi-head attention is performed over the output of the encoder stack in the third sub-layer of each decoder layer.Multi-head attention is used in the Transformer model. It involves using $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h$ dimensions for each head, where $h=8$. The total computational cost is similar to single-head attention with full dimensionality due to the reduced dimension of each head.\", \"created_at\": \"2025-08-15 14:58:01\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"LoRA\", \"entity2\": \"Transformer\", \"description\": \"LoRA is applied to the Transformer architecture to reduce the number of trainable parameters.\", \"created_at\": \"2025-08-13 22:43:24\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"encoder-decoder attention\", \"entity2\": \"sequence-to-sequence models\", \"description\": \"Encoder-decoder attention in the Transformer mimics the attention mechanisms found in sequence-to-sequence models, citing references [38, 2, 9].\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"MoE\", \"entity2\": \"Transformer\", \"description\": \"MoE layers typically replace the Feed-Forward Network (FFN) layer within a Transformer block when MoE is incorporated into existing Transformer models.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Large Language Models\", \"entity2\": \"Transformer technology\", \"description\": \"Large Language Models utilize Transformer technology.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Multi-Head Attention\", \"entity2\": \"Transformer\", \"description\": \"Multi-Head Attention is employed within the Transformer to address the issue of reduced effective resolution arising from averaging attention-weighted positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"A neural attention model for abstractive sentence summarization\", \"entity2\": \"Neural machine translation by jointly learning to align and translate\", \"description\": \"Both methodologies leverage neural networks and attention mechanisms, with one focusing on translation and the other on summarization.\", \"created_at\": \"2025-08-15 15:48:20\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"GPT-2\", \"entity2\": \"Transformer\", \"description\": \"GPT-2 is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"A deep reinforced model for abstractive summarization\", \"entity2\": \"Effective approaches to attentionbased neural machine translation\", \"description\": \"Both are cited works, suggesting they are part of a broader research context, potentially related to advancements in NLP models.\", \"created_at\": \"2025-08-15 14:56:55\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"BERT\", \"entity2\": \"Transformer\", \"description\": \"BERT is a large Transformer language model.\", \"created_at\": \"2025-08-13 22:49:50\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"A neural attention model for abstractive sentence summarization\", \"entity2\": \"Neural architectures for named entity recognition\", \"description\": \"Both are neural network-based methodologies, with the former focusing on named entity recognition and the latter on abstractive sentence summarization.\", \"created_at\": \"2025-08-15 15:48:17\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"Mamba\", \"entity2\": \"Transformer\", \"description\": \"Mamba differs from Transformer in its approach to accessing hidden states, with Mamba focusing on the immediate previous hidden state and Transformer requiring access to all previous hidden states.Mamba offers a solution to the Transformer's drawback of quadratic time complexity during inference by relying only on the last hidden state, leading to faster inference speeds.Transformer uses attention heads for recall, while Mamba uses SSM heads for context summarization, highlighting different approaches to sequence processing.\", \"created_at\": \"2025-08-15 16:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Abstract\", \"entity2\": \"Attention Mechanisms\", \"description\": \"The abstract mentions attention mechanisms as a key component of both existing models and the proposed Transformer.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"Figure 5\", \"entity2\": \"Transformer\", \"description\": \"Figure 5 implicitly shows the Transformer's slower inference speeds by comparison to Mamba.\", \"created_at\": \"2025-08-15 16:21:47\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Transformer\", \"entity2\": \"self-attention mechanisms\", \"description\": \"\\\"The Transformer utilizes self-attention mechanisms to manage long-range text dependencies.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"MoE layer\", \"entity2\": \"Transformer\", \"description\": \"The MoE layer replaces the Feed-Forward Network (FFN) layer within a Transformer block.\", \"created_at\": \"2025-08-15 15:18:39\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Recurrent network\", \"description\": \"Attention mechanisms are often used in conjunction with recurrent networks in sequence modeling tasks.\", \"created_at\": \"2025-08-15 14:59:01\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Hymba\", \"entity2\": \"Transformer\", \"description\": \"Hymba integrates attention heads, similar to those in the Transformer, within its layers.\", \"created_at\": \"2025-08-15 16:29:28\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"A decomposable attention model\", \"entity2\": \"Effective approaches to attentionbased neural machine translation\", \"description\": \"\\\"Both entities relate to attention mechanisms in NLP, with the latter being a specific model that likely builds upon or is related to the former's approaches.\\\")Attention models are a key component of modern neural machine translation, suggesting a connection between these two works.\", \"created_at\": \"2025-08-15 14:57:00\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Transformer\", \"entity2\": \"ΔWq\", \"description\": \"ΔWq is obtained from layers within a Transformer network.ΔWq represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:28\", \"file_path\": \"unknown_source\"}, {\"id\": 20, \"entity1\": \"Transformer\", \"entity2\": \"multi-head attention\", \"description\": \"The Transformer model uses multi-head attention in three different ways.\", \"created_at\": \"2025-08-15 14:56:23\", \"file_path\": \"unknown_source\"}, {\"id\": 21, \"entity1\": \"GPT\", \"entity2\": \"Transformer\", \"description\": \"GPT is based on the Transformer architecture.\", \"created_at\": \"2025-08-13 22:44:06\", \"file_path\": \"unknown_source\"}, {\"id\": 22, \"entity1\": \"FFN layer\", \"entity2\": \"Transformer\", \"description\": \"Transformer models incorporate FFN layers.\", \"created_at\": \"2025-08-15 15:15:52\", \"file_path\": \"unknown_source\"}, {\"id\": 23, \"entity1\": \"Transformer\", \"entity2\": \"ΔWv\", \"description\": \"ΔWv represents weight updates within a Transformer model.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 24, \"entity1\": \"Radford et al.\", \"entity2\": \"Transformer\", \"description\": \"Radford et al. applied the Transformer architecture to autoregressive language modeling.\", \"created_at\": \"2025-08-13 22:49:46\", \"file_path\": \"unknown_source\"}, {\"id\": 25, \"entity1\": \"Transformer\", \"entity2\": \"self-attention layers\", \"description\": \"Transformer models incorporate self-attention layers.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 26, \"entity1\": \"Transformer\", \"entity2\": \"attention-based models\", \"description\": \"The Transformer is an example of an attention-based model that the authors plan to extend.\", \"created_at\": \"2025-08-15 14:57:14\", \"file_path\": \"unknown_source\"}, {\"id\": 27, \"entity1\": \"Transformer\", \"entity2\": \"language modeling\", \"description\": \"The Transformer is implied to be relevant to language modeling tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 28, \"entity1\": \"Attention Mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is based solely on attention mechanisms.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 29, \"entity1\": \"Recurrence\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture dispenses with recurrence.The Transformer dispenses with recurrence, which is a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 30, \"entity1\": \"Transformer\", \"entity2\": \"self-attention\", \"description\": \"The Transformer model relies entirely on self-attention to compute representations.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 31, \"entity1\": \"BLEU scores\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model's performance is measured by its BLEU scores.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 32, \"entity1\": \"Abstract\", \"entity2\": \"Transformer\", \"description\": \"The abstract introduces the Transformer as a new network architecture.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 33, \"entity1\": \"Attention mechanisms\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model relies entirely on an attention mechanism to draw global dependencies between input and output.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 34, \"entity1\": \"Emergent Modularity phenomenon\", \"entity2\": \"Transformer\", \"description\": \"The Emergent Modularity phenomenon is observed in pre-trained Transformer models.\", \"created_at\": \"2025-08-15 15:15:43\", \"file_path\": \"unknown_source\"}, {\"id\": 35, \"entity1\": \"Convolutions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer dispenses with convolutions, which are a feature of dominant sequence transduction models.\", \"created_at\": \"2025-08-15 14:58:54\", \"file_path\": \"unknown_source\"}, {\"id\": 36, \"entity1\": \"Recurrent network\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model eschews recurrence, unlike previous models that used attention mechanisms in conjunction with recurrent networks.\", \"created_at\": \"2025-08-15 14:58:55\", \"file_path\": \"unknown_source\"}, {\"id\": 37, \"entity1\": \"MoH\", \"entity2\": \"Transformer\", \"description\": \"MoH can attain higher BLEU scores than Transformer with 213 million parameters while requiring significantly less computation.\", \"created_at\": \"2025-08-15 15:14:40\", \"file_path\": \"unknown_source\"}, {\"id\": 38, \"entity1\": \"English-to-German\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-German translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 39, \"entity1\": \"Feed-Forward Network (FFN) layer\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer that is replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:18:38\", \"file_path\": \"unknown_source\"}, {\"id\": 40, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder attention\", \"description\": \"Encoder-decoder attention is one of the applications of multi-head attention within the Transformer model.\", \"created_at\": \"2025-08-15 14:56:27\", \"file_path\": \"unknown_source\"}, {\"id\": 41, \"entity1\": \"Self-attention\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture is related to the concept of self-attention, which is an attention mechanism used to compute sequence representations by relating different positions within a single sequence.\", \"created_at\": \"2025-08-15 14:58:37\", \"file_path\": \"unknown_source\"}, {\"id\": 42, \"entity1\": \"State Space Models (SSMs)\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's attention mechanism has a drawback of quadratic time complexity, while State Space Models (SSMs) enable faster inference speeds by relying on the last hidden state.\", \"created_at\": \"2025-08-15 16:21:42\", \"file_path\": \"unknown_source\"}, {\"id\": 43, \"entity1\": \"Transformer\", \"entity2\": \"Vaswani et al.\", \"description\": \"Vaswani et al. are associated with the development or publication of the Transformer architecture.Vaswani et al. are the authors of the Transformer architecture.\", \"created_at\": \"2025-08-13 22:49:38\", \"file_path\": \"unknown_source\"}, {\"id\": 44, \"entity1\": \"Transformer\", \"entity2\": \"encoder-decoder structure\", \"description\": \"\\\"The Transformer generally adopts an encoder-decoder structure.\\\")The Transformer is a transduction model that, unlike most competitive neural sequence transduction models, does not explicitly state it uses an encoder-decoder structure, but rather relies on self-attention.\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 45, \"entity1\": \"Transformer\", \"entity2\": \"training cost\", \"description\": \"The Transformer model is more efficient in terms of training cost.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 46, \"entity1\": \"English Constituency Parsing\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is being evaluated on the task of English Constituency Parsing to assess its generalization capabilities.\", \"created_at\": \"2025-08-15 14:55:59\", \"file_path\": \"unknown_source\"}, {\"id\": 47, \"entity1\": \"Transformer\", \"entity2\": \"newstest2014\", \"description\": \"The Transformer model is evaluated on the newstest2014 test set for translation tasks.\", \"created_at\": \"2025-08-15 14:55:12\", \"file_path\": \"unknown_source\"}, {\"id\": 48, \"entity1\": \"Transformer\", \"entity2\": \"images, audio and video\", \"description\": \"\\\"The Transformer is planned to be extended to problems involving input and output modalities other than text, such as images, audio, and video.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 49, \"entity1\": \"Transformer\", \"entity2\": \"local, restricted attention mechanisms\", \"description\": \"\\\"The Transformer is planned to investigate local, restricted attention mechanisms to efficiently handle large inputs and outputs.\\\")\", \"created_at\": \"2025-08-15 14:57:22\", \"file_path\": \"unknown_source\"}, {\"id\": 50, \"entity1\": \"RNNs\", \"entity2\": \"Transformer\", \"description\": \"The Transformer is the first transduction model to not use sequence-aligned RNNs.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}, {\"id\": 51, \"entity1\": \"English-to-French\", \"entity2\": \"Transformer\", \"description\": \"The Transformer model is applied to the English-to-French translation task.\", \"created_at\": \"2025-08-15 14:55:11\", \"file_path\": \"unknown_source\"}, {\"id\": 52, \"entity1\": \"Constant number of operations\", \"entity2\": \"Transformer\", \"description\": \"The Transformer achieves a constant number of operations to learn dependencies between distant positions.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 53, \"entity1\": \"Making generation less sequential\", \"entity2\": \"Transformer\", \"description\": \"Making generation less sequential is a planned enhancement for the Transformer model.\", \"created_at\": \"2025-08-15 14:57:21\", \"file_path\": \"unknown_source\"}, {\"id\": 54, \"entity1\": \"Feed-Forward Network (FFN)\", \"entity2\": \"Transformer\", \"description\": \"The Feed-Forward Network (FFN) layer is a component within a Transformer block that can be replaced by an MoE layer.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 55, \"entity1\": \"Transformer\", \"entity2\": \"inference cost\", \"description\": \"\\\"The Transformer has a large inference cost due to its attention mechanism.\\\")\", \"created_at\": \"2025-08-15 16:20:22\", \"file_path\": \"unknown_source\"}, {\"id\": 56, \"entity1\": \"SVD\", \"entity2\": \"Transformer\", \"description\": \"The SVD method is applied to matrices (ΔW) derived from a Transformer's layers.\", \"created_at\": \"2025-08-13 23:04:22\", \"file_path\": \"unknown_source\"}, {\"id\": 57, \"entity1\": \"Dependencies between distant positions\", \"entity2\": \"Transformer\", \"description\": \"The Transformer architecture aims to make it less difficult to learn dependencies between distant positions by reducing operations to a constant number.\", \"created_at\": \"2025-08-15 14:58:44\", \"file_path\": \"unknown_source\"}, {\"id\": 58, \"entity1\": \"RNN sequence-to-sequence models\", \"entity2\": \"Transformer\", \"description\": \"The Transformer's performance is implicitly compared to RNN models, which have shown limitations in this specific task.\", \"created_at\": \"2025-08-15 14:56:00\", \"file_path\": \"unknown_source\"}, {\"id\": 59, \"entity1\": \"Transformer\", \"entity2\": \"simple-language question answering\", \"description\": \"The Transformer is implied to be relevant to simple-language question answering tasks, as models using recurrence perform well on them, and the Transformer is presented as an alternative to such models.\", \"created_at\": \"2025-08-15 14:58:27\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 41\\n\\n2.1.2 Mamba. The attention mechanism in Transformer suffers from a drawback: it requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, Mamba [75, 117], based on state space models (SSMs) [164] which are a superclass of recurrent neural networks (RNNs), rely only on the last hidden state for generating the next token, enabling faster inference speeds, as shown in Figure 5. To address the Linear Time Invariant nature of traditional SSMs, which hinders their ability to focus on or ignore specific inputs, Mamba improves SSMs with a dynamic selection mechanism. This mechanism selectively filters out irrelevant information while retaining essential data, tailored to the content of the input. Leveraging this selective SSM foundation, Mamba adeptly captures complex global relationships within sequence data.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 55\\n\\n118, 140, 142, 199], such as Low-Rank Adaptation (LoRA), prefixtuning, and adapter modules, are particularly effective for SLMs. Low-Rank Adaptation (LoRA) [142] modifies Transformer weights by introducing trainable low-rank matrices A and B for efficient fine-tuning, avoiding significant alterations to pre-trained weights. The update is represented as: $\\\\Delta \\\\mathbf { W } = \\\\mathbf { A } \\\\mathbf { B } ^ { \\\\top }$ The fine-tuned weight matrix used in Transformer operations then becomes: $\\\\mathbf { W } _ { \\\\mathrm { f t } } = \\\\mathbf { W } + \\\\alpha \\\\Delta \\\\mathbf { W }$ where $\\\\alpha$ is a scaling factor adjusting the adaptation’s impact, allowing fine-tuning on a smaller set of parameters while retaining the model’s foundational capabilities. Prefix-Tuning [199] prepends learnable prefixes to the input sequence, guiding the model’s attention without altering core model parameters. It is especially useful for generative tasks.\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 347\\n\\n2023. CIRS: Bursting filter bubbles by counterfactual interactive recommender system. ACM Transactions on Information Systems 42, 1 (2023), 1–27. [108] Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, et al. 2020. The Pile: An 800GB dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027 (2020). [109] Luyu Gao and Jamie Callan. 2022. Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrieval. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2843–2853. [110] Shangqian Gao, Chi-Heng Lin, Ting Hua, Zheng Tang, Yilin Shen, Hongxia Jin, and Yen-Chang Hsu. 2024. DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: Attention Is All You Need\\nChunk: 20\\n\\nFor each of these we use $d _ { k } = d _ { v } = d _ { \\\\mathrm { m o d e l } } / h \\\\stackrel { } { = } \\\\dot { 6 } 4$ . Due to the reduced dimension of each head, the total computational cost is similar to that of single-head attention with full dimensionality. # 3.2.3 Applications of Attention in our Model The Transformer uses multi-head attention in three different ways: • In \\\"encoder-decoder attention\\\" layers, the queries come from the previous decoder layer, and the memory keys and values come from the output of the encoder. This allows every position in the decoder to attend over all positions in the input sequence. This mimics the typical encoder-decoder attention mechanisms in sequence-to-sequence models such as [38, 2, 9]. • The encoder contains self-attention layers. In a self-attention layer all of the keys, values and queries come from the same place, in this case, the output of the previous layer in the encoder.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 2.9851, + "rag_initialization_seconds": 0.001, + "query_execution_seconds": 2.9841, + "start_timestamp": "2025-08-16T10:07:27.912958", + "end_timestamp": "2025-08-16T10:07:30.898015" + }, + "metadata": { + "saved_at": "2025-08-16T10:07:30.899014", + "file_path": "retrieval_logs\\retrieval_20250816_100730_898_hybrid_k10_ck4_Based_on_the_following_QA_about_transformers_and_h.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_102230_521_mix_k3_ck2_What_are_Mixture-of-Experts_MoE_models_and_what_is.json b/retrieval_logs/retrieval_20250816_102230_521_mix_k3_ck2_What_are_Mixture-of-Experts_MoE_models_and_what_is.json new file mode 100644 index 0000000000000000000000000000000000000000..1a049b71836d02be87df101a80400ef768e9d246 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_102230_521_mix_k3_ck2_What_are_Mixture-of-Experts_MoE_models_and_what_is.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:22:30.521035", + "query": "What are Mixture-of-Experts (MoE) models and what is their fundamental concept in the context of Large Language Models (LLMs)?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 14993, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"sparsely activated MoE architecture\", \"type\": \"methodology\", \"description\": \"A sparsely activated MoE architecture is introduced by MT-TaG to address interference in multi-task learning.\", \"created_at\": \"2025-08-15 15:38:25\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LLMs\", \"type\": \"methodology\", \"description\": \"LLMs are discussed in relation to fine-tuning, quantization, and unintended outcomes.Large Language Models (LLMs) are discussed in the context of being assisted by Small Language Models (SLMs).Large Language Models (LLMs) are powerful, rapidly developing technologies with extensive linguistic and domain knowledge, excelling in complex tasks such as dialogue, logical reasoning, and programming. LLMs are instrumental in interaction and decision-making, can address the cold-start problem with in-context learning, and are proficient in code generation and programming support. They have propelled natural language processing tasks and inspire research into synergistic interactions with Smaller Language Models (SLMs) to enhance performance of task-specific models. SLMs can improve LLMs in various aspects, serving as modules or effective proxies, and have complementary advantages with LLMs for task completion, allowing for knowledge transfer and reducing training time and data for SLMs. LLMs are used collaboratively with SLMs to transform complex tasks into manageable segments, with LLMs residing on the server and compensating for less powerful SLMs by handling complex tasks and providing additional support. LLMs' outputs are improved by methodologies like SELF-RAG, and they are enhanced in understanding and responsiveness through SuperICL. LLMs can handle queries independently when high-quality responses are indicated by proxy models, and require further retrieval for lower-quality outputs. Their factual accuracy and quality can be improved through on-demand retrieval and self-reflection. LLMs have the capability to generate human-like text and have captured public interest due to their potential in general artificial intelligence. They are utilized in various applications, including generating reasoning rationales to improve SLM performance through the Rationale Ranking method, generating instructions for datasets like LongForm, and facilitating knowledge graph extraction within systems. LLMs excel at handling difficult examples or rewriting content to eliminate task-irrelevant redundancy, thereby enhancing overall task performance. Services like Bing Chat and GitHub Copilot Chat utilize LLMs and have experienced prompt reverse-engineering. LLMs are used in Retrieval-Augmented Generation (RAG) and have specific query requirements that differ from search engines, as they may not need all information related to a query, only partial additional knowledge. LLMs are also used for broader context and advanced reasoning, and complex generation.\\n\\nDespite their capabilities, LLMs face significant limitations due to their massive parameters and computational demands, which hinder widespread real-world adoption. These challenges include latency during inference, labor-intensive fine-tuning, noise filtration issues in retrieval, suboptimal zero-shot performance, copyright infringement risks, evaluation difficulties, erroneous responses, and privacy breaches. For instance, LLMs increase latency when directly deployed via mobile engines like\", \"created_at\": \"2025-08-15 17:25:11\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"multi-head sparse gating networks\", \"type\": \"methodology\", \"description\": \"Multi-head sparse gating networks are combined with other networks in DeepMoE.\", \"created_at\": \"2025-08-15 15:34:13\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Mixture-of-Experts (MoE)\", \"type\": \"methodology\", \"description\": \"Mixture-of-Experts (MoE) is a computational approach that involves combining multiple expert models to handle different aspects of a task, aiming for improved performance and efficiency. This framework utilizes distinct components called \\\"experts\\\" that specialize in different tasks or data facets, learning task-specific skills and specializing in different parts of the multi-task representation space. MoE enables the simultaneous activation of multiple experts, where each expert specializes in a distribution of actions, and a composite policy is formed by composing these distributions. It is an effective method for substantially scaling up model capacity with minimal computation overhead in Large Language Models (LLMs), activating only relevant experts for a specific input to manage computational costs and leverage specialized knowledge. An attention module is used to integrate expert outputs and generate connections between tasks and experts for optimal performance.MoE uses multiple experts to enhance learning without increasing active neurons, but its storage demands pose challenges for SLM deployment, making this a promising area for exploration.\", \"created_at\": \"2025-08-15 17:04:29\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"This paper\", \"type\": \"conclusion\", \"description\": \"This paper aims to provide a comprehensive summary of recent advancements of MoEs in many important fields, addressing the gaps left by existing surveys. It will introduce the basic design of MoE, including gating functions, expert networks, routing mechanisms, training strategies, and system design, and explore the algorithm design of MoE in important machine learning paradigms.This paper provides a comprehensive survey of Small Language Models (SLMs) with up to 7 billion parameters, covering their definition, construction, enhancement techniques, adaptation from LLMs, representative models, applications, deployment, role in augmenting LLMs, and trustworthiness.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Mixture of Experts (MoE) models\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) models are discussed in the context of determining the number of experts and their interpretability.Mixture of Experts (MoE) models are used in RAPHAEL for temporal control and spatial settings during generation. They allow for specialized experts to enhance the quality of generated images, improve the diversity of outputs, and further enrich detail representations.Mixture of Experts (MoE) models dynamically select and activate the most relevant submodels to process input data, addressing challenges of enormous computational resource consumption, deployment difficulties, and fitting heterogeneous and complex data in large AI models.\", \"created_at\": \"2025-08-15 15:43:00\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"computational resources\", \"type\": \"methodology\", \"description\": \"Computational resources are a significant challenge in the development of large AI models due to their enormous consumption. However, the GLaM MoE architecture has been shown to significantly reduce these computational resources, enabling efficient utilization in tasks such as language modeling and machine translation. While experiments have been limited by the need for significant computational resources, hindering thorough hyper-parameter exploration, MoE approaches offer a path to more efficient use of these resources.\", \"created_at\": \"2025-08-15 15:41:23\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Mixture of Experts (MoE)\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning technique and architectural approach that enhances performance, particularly in large language models (LLMs) and increasingly in the Computer Vision field, by employing a \\\"divide and conquer\\\" strategy. Unlike traditional dense models, MoE utilizes multiple specialized expert models to learn distinct core features of different domains or input types. A gating network dynamically selects and activates the most relevant submodels or experts to process input data, enabling the model to handle diverse tasks, large-scale datasets with thousands of categories, and multimodal data without a significant increase in computational overhead. This approach allows for the intelligent fusion of personalized and generic content, leading to high-fidelity personalized image generation without sacrificing image diversity or quality, and can improve semantic segmentation models, especially with high accuracy requirements or limited computational resources. MoE experts can collaboratively generate high-quality sentences, with each expert acting as a recurrent neural network that autoregressively produces token representations, making models more efficient and precise when processing complex or diverse text data. While MoE enhances performance with the same computing resources, it increases memory usage. Strategies to address this include loading only activated experts into memory and storing others on disk, though switching costs can slow inference, leading to suggestions for preemptive expert pre-load strategies to accelerate inference. The performance and limitations of MoE in image classification are actively being explored, with ongoing research dissecting its architecture, training, and optimization, including the impact of the number of expert networks, MoE layers, and their placement on performance, efficiency, and stability. MoE also autonomously identifies and combines promising sub-regions from multiple source tasks across different regions of the state space, utilizing state-dependent Dirichlet prior distributions to learn similarities between dynamics in source and target tasks and updating these priors using state transition data, which improves robustness against sparse or delayed rewards. The MoE architecture offers inherent transparency due to its design and is also applied to regression problems.MoE models offer opportunities to improve model interpretability by learning intrinsic allocation mechanisms, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability enhances understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.MoE models offer opportunities to improve model interpretability by learning intrinsic allocation mechanisms, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability enhances understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 17:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Multi-task learning\", \"type\": \"methodology\", \"description\": \"Multi-task learning is an important machine learning paradigm where the algorithm design of MoE is explored.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"Small Language Models (SLMs)\", \"entity2\": \"This paper\", \"description\": \"The paper provides a comprehensive survey of Small Language Models (SLMs), detailing their definition, construction, enhancements, adaptation from LLMs, applications, deployment, and trustworthiness.\", \"created_at\": \"2025-08-15 17:08:04\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LLMs\", \"entity2\": \"Mixture-of-Experts (MoE)\", \"description\": \"Mixture-of-Experts (MoE) has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs.\", \"created_at\": \"2025-08-15 16:39:05\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"This paper\", \"description\": \"This paper aims to provide a comprehensive summary of recent advancements of MoEs, addressing gaps in existing surveys.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Mixture of Experts (MoE) models\", \"entity2\": \"computational resources\", \"description\": \"Mixture of Experts (MoE) models address the challenge of enormous consumption of computational resources in large AI models.\", \"created_at\": \"2025-08-15 15:16:45\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Existing surveys on MoE\", \"entity2\": \"This paper\", \"description\": \"This paper aims to address the limitations of existing surveys on MoE.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Multi-task learning\", \"description\": \"The algorithm design of MoE is explored in multi-task learning.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 111\\n\\nels such as GPT-3.5 and GPT-4, suggesting that SLMs equipped with RAG can sometimes perform comparably or even better than LLMs. These findings indicate that RAG for SLMs is effective and represents a promising direction for future research. Mixture-of-Experts (MoE) [39] has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs. The MoE framework is founded on a straightforward yet potent concept: distinct components of a model, referred to as “experts”, specialize in different tasks or data facets. In this paradigm, only the relevant experts are activated for a specific input, which manages computational costs while leveraging a vast pool of specialized knowledge. This scalable and adaptable approach enables increased model capacity without proportionally escalating computational demands. We argue that MoE is particularly suitable for SLM architectures [161] as it minimizes both computational load and memory overhead.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 94\\n\\nhe limitations of model size, studies have shown that training SLMs requires simple and comprehensible data [96, 183, 187, 384]. As shown in Figure 12 (1) left, TinyStory [96] shows that small models (tens of millions of parameters) can generate coherent stories for 3-4-year-olds. GPT-3.5 or GPT-4 [2] prompts create simple stories from three keywords chosen from a 1,500-word vocabulary, which are then used to train SLMs for similar outputs. This approach shows that simple and comprehensible data can help smaller models exhibit behaviors similar to those of larger language models, such as obeying scaling laws and achieving enhanced performance. On the other hand, many efforts to enhance the Chain-of-Thought (CoT) capabilities of small models involve using LLMs to generate high-quality fine-tuning CoT data. As shown in Figure 12 (1) right, these data train small models end-to-end to mimic CoT reasoning [235, 384].\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 13.0193, + "rag_initialization_seconds": 4.7749, + "query_execution_seconds": 8.2444, + "start_timestamp": "2025-08-16T10:22:17.501728", + "end_timestamp": "2025-08-16T10:22:30.521036" + }, + "metadata": { + "saved_at": "2025-08-16T10:22:30.521035", + "file_path": "retrieval_logs\\retrieval_20250816_102230_521_mix_k3_ck2_What_are_Mixture-of-Experts_MoE_models_and_what_is.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_102230_850_mix_k10_ck4_What_are_the_primary_applications_and_benefits_of_.json b/retrieval_logs/retrieval_20250816_102230_850_mix_k10_ck4_What_are_the_primary_applications_and_benefits_of_.json new file mode 100644 index 0000000000000000000000000000000000000000..3427688afb2f2aee849030fcdee28769304af8c6 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_102230_850_mix_k10_ck4_What_are_the_primary_applications_and_benefits_of_.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:22:30.850486", + "query": "What are the primary applications and benefits of utilizing Mixture-of-Experts (MoE) models in Large Language Models (LLMs) across various natural language processing tasks?", + "query_mode": "mix", + "top_k": 10, + "chunk_top_k": 4, + "text_length": 31391, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"dynamic gating, expert caching, and load balancing methods\", \"type\": \"methodology\", \"description\": \"These three optimization techniques are proposed to address inefficiency issues during deployment and inference stages of MoE models, improving inference efficiency in language modeling and machine translation tasks.\", \"created_at\": \"2025-08-15 15:37:31\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LLMs\", \"type\": \"methodology\", \"description\": \"LLMs are discussed in relation to fine-tuning, quantization, and unintended outcomes.Large Language Models (LLMs) are discussed in the context of being assisted by Small Language Models (SLMs).Large Language Models (LLMs) are powerful, rapidly developing technologies with extensive linguistic and domain knowledge, excelling in complex tasks such as dialogue, logical reasoning, and programming. LLMs are instrumental in interaction and decision-making, can address the cold-start problem with in-context learning, and are proficient in code generation and programming support. They have propelled natural language processing tasks and inspire research into synergistic interactions with Smaller Language Models (SLMs) to enhance performance of task-specific models. SLMs can improve LLMs in various aspects, serving as modules or effective proxies, and have complementary advantages with LLMs for task completion, allowing for knowledge transfer and reducing training time and data for SLMs. LLMs are used collaboratively with SLMs to transform complex tasks into manageable segments, with LLMs residing on the server and compensating for less powerful SLMs by handling complex tasks and providing additional support. LLMs' outputs are improved by methodologies like SELF-RAG, and they are enhanced in understanding and responsiveness through SuperICL. LLMs can handle queries independently when high-quality responses are indicated by proxy models, and require further retrieval for lower-quality outputs. Their factual accuracy and quality can be improved through on-demand retrieval and self-reflection. LLMs have the capability to generate human-like text and have captured public interest due to their potential in general artificial intelligence. They are utilized in various applications, including generating reasoning rationales to improve SLM performance through the Rationale Ranking method, generating instructions for datasets like LongForm, and facilitating knowledge graph extraction within systems. LLMs excel at handling difficult examples or rewriting content to eliminate task-irrelevant redundancy, thereby enhancing overall task performance. Services like Bing Chat and GitHub Copilot Chat utilize LLMs and have experienced prompt reverse-engineering. LLMs are used in Retrieval-Augmented Generation (RAG) and have specific query requirements that differ from search engines, as they may not need all information related to a query, only partial additional knowledge. LLMs are also used for broader context and advanced reasoning, and complex generation.\\n\\nDespite their capabilities, LLMs face significant limitations due to their massive parameters and computational demands, which hinder widespread real-world adoption. These challenges include latency during inference, labor-intensive fine-tuning, noise filtration issues in retrieval, suboptimal zero-shot performance, copyright infringement risks, evaluation difficulties, erroneous responses, and privacy breaches. For instance, LLMs increase latency when directly deployed via mobile engines like\", \"created_at\": \"2025-08-15 17:25:11\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"This paper\", \"type\": \"conclusion\", \"description\": \"This paper aims to provide a comprehensive summary of recent advancements of MoEs in many important fields, addressing the gaps left by existing surveys. It will introduce the basic design of MoE, including gating functions, expert networks, routing mechanisms, training strategies, and system design, and explore the algorithm design of MoE in important machine learning paradigms.This paper provides a comprehensive survey of Small Language Models (SLMs) with up to 7 billion parameters, covering their definition, construction, enhancement techniques, adaptation from LLMs, representative models, applications, deployment, role in augmenting LLMs, and trustworthiness.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Mixture-of-Experts (MoE)\", \"type\": \"methodology\", \"description\": \"Mixture-of-Experts (MoE) is a computational approach that involves combining multiple expert models to handle different aspects of a task, aiming for improved performance and efficiency. This framework utilizes distinct components called \\\"experts\\\" that specialize in different tasks or data facets, learning task-specific skills and specializing in different parts of the multi-task representation space. MoE enables the simultaneous activation of multiple experts, where each expert specializes in a distribution of actions, and a composite policy is formed by composing these distributions. It is an effective method for substantially scaling up model capacity with minimal computation overhead in Large Language Models (LLMs), activating only relevant experts for a specific input to manage computational costs and leverage specialized knowledge. An attention module is used to integrate expert outputs and generate connections between tasks and experts for optimal performance.MoE uses multiple experts to enhance learning without increasing active neurons, but its storage demands pose challenges for SLM deployment, making this a promising area for exploration.\", \"created_at\": \"2025-08-15 17:04:29\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Mixture of Experts (MoE)\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning technique and architectural approach that enhances performance, particularly in large language models (LLMs) and increasingly in the Computer Vision field, by employing a \\\"divide and conquer\\\" strategy. Unlike traditional dense models, MoE utilizes multiple specialized expert models to learn distinct core features of different domains or input types. A gating network dynamically selects and activates the most relevant submodels or experts to process input data, enabling the model to handle diverse tasks, large-scale datasets with thousands of categories, and multimodal data without a significant increase in computational overhead. This approach allows for the intelligent fusion of personalized and generic content, leading to high-fidelity personalized image generation without sacrificing image diversity or quality, and can improve semantic segmentation models, especially with high accuracy requirements or limited computational resources. MoE experts can collaboratively generate high-quality sentences, with each expert acting as a recurrent neural network that autoregressively produces token representations, making models more efficient and precise when processing complex or diverse text data. While MoE enhances performance with the same computing resources, it increases memory usage. Strategies to address this include loading only activated experts into memory and storing others on disk, though switching costs can slow inference, leading to suggestions for preemptive expert pre-load strategies to accelerate inference. The performance and limitations of MoE in image classification are actively being explored, with ongoing research dissecting its architecture, training, and optimization, including the impact of the number of expert networks, MoE layers, and their placement on performance, efficiency, and stability. MoE also autonomously identifies and combines promising sub-regions from multiple source tasks across different regions of the state space, utilizing state-dependent Dirichlet prior distributions to learn similarities between dynamics in source and target tasks and updating these priors using state transition data, which improves robustness against sparse or delayed rewards. The MoE architecture offers inherent transparency due to its design and is also applied to regression problems.MoE models offer opportunities to improve model interpretability by learning intrinsic allocation mechanisms, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability enhances understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.MoE models offer opportunities to improve model interpretability by learning intrinsic allocation mechanisms, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability enhances understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 17:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"allocation of different expert models for different tasks or domains\", \"type\": \"methodology\", \"description\": \"This is a mechanism used by the MoE architecture to alleviate challenges in NLP.\", \"created_at\": \"2025-08-15 15:36:54\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Multi-task learning\", \"type\": \"methodology\", \"description\": \"Multi-task learning is an important machine learning paradigm where the algorithm design of MoE is explored.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"large-scale, intensive language models\", \"type\": \"methodology\", \"description\": \"These models are characterized by high computational resource consumption, and leveraging MoE is highlighted as a way to address this issue for NLU tasks.\", \"created_at\": \"2025-08-15 15:41:22\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"Mixture-of-Experts\", \"type\": \"methodology\", \"description\": \"A technique frequently used in LLMs to enhance SLMs for specific applications.Mixture-of-Experts (MoE) is a paradigm that is being studied theoretically and applied in computer vision and natural language processing. It is related to continual learning, meta-learning, multi-task learning, reinforcement learning, and federated learning.A type of model architecture that is the subject of post-training quantization research.\", \"created_at\": \"2025-08-15 17:21:49\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity\": \"model performance\", \"type\": \"abstract\", \"description\": \"Model performance can be improved by using Mixture-of-Experts (MoE) models, with MoA achieving superior performance and reduced computational overhead. MoE models can maintain or even improve model performance, as demonstrated by the GLaM MoE architecture. Specifically, applying MoE to language modeling and machine translation tasks has shown significant improvements in model performance on large datasets. Furthermore, model performance can be enhanced by dynamically selecting the most suitable expert network for a given task without a substantial increase in parameters, while also exploring the interpretability of Convolutional Neural Networks (CNNs) in computer vision tasks. However, integrating different object detectors with the MoE architecture without proper calibration can negatively impact model performance due to unfair competition.Model performance in NLG tasks can be enhanced by specially designed MoE architectures.\", \"created_at\": \"2025-08-15 15:13:39\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity\": \"Natural Language Processing\", \"type\": \"connection\", \"description\": \"Natural Language Processing (NLP) is a core research area of artificial intelligence that focuses on enabling computers to understand, generate, and process human language. It plays a significant role in promoting human-computer interaction, information extraction, knowledge mining, cross-lingual communication, and automation.Natural Language Processing is a domain where Mixture-of-Experts is applied.Natural Language Processing is an application domain where MoE is investigated, with tasks including machine translation.\", \"created_at\": \"2025-08-15 15:36:25\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity\": \"Meta-learning\", \"type\": \"methodology\", \"description\": \"Meta-learning is an important machine learning paradigm where the algorithm design of MoE is explored.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity\": \"language GAN\", \"type\": \"methodology\", \"description\": \"A language GAN is a generative adversarial network adapted for language generation, where MoE is introduced into its generator.\", \"created_at\": \"2025-08-15 15:44:34\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity\": \"SLMs\", \"type\": \"connection\", \"description\": \"SLMs may possess missing or latent domain knowledge that can be activated with minimal data.Small Language Models (SLMs) are discussed in the context of assisting Large Language Models (LLMs).Small Language Models (SLMs), typically featuring up to 10 billion parameters and tailored for the Transformer architecture, are efficient and capable models that are smaller and more efficient than Large Language Models (LLMs). This efficiency makes them suitable for resource-constrained environments and specific applications, particularly on devices, and they are favored in scenarios demanding efficiency, privacy, and customization. SLMs can be deployed on edge devices, often with cloud-based LLM support to enhance runtime efficiency, and are utilized on mobile devices primarily for privacy and memory constraints, with applications in API calls and mobile control. They are also used locally to reduce memory usage and shorten inference time, and are utilized to handle privacy-sensitive data locally in a cloud-edge synergy model.\\n\\nSLMs play a crucial role in supporting LLMs by enhancing the quality of LLM-generated data for specific tasks and can be trained locally on client-specific private data to mitigate privacy risks. They assist LLMs in various ways, including improving reliability, extracting prompts, fine-tuning, application, and evaluation. SLMs help alleviate issues such as inference latency, labor-intensive fine-tuning, noise filtration in retrieval, suboptimal zero-shot performance, copyright infringement risks, and evaluation difficulties. They can be fine-tuned for specific functions like hallucination detection when adapting LLMs to specific tasks requires substantial computational resources and time. SLMs are used to retrieve sub-graphs when utilizing knowledge graphs as external sources and to enhance LLM reasoning by transferring task knowledge to in-context examples, effectively reducing hallucinations. SLMs are trained via contrast learning to effectively distinguish and score responses in dialogue scenarios. They can also be used as proxy models to evaluate the familiarity of LLMs with user queries, determining whether LLMs need to retrieve additional information or can respond directly. Furthermore, SLMs are utilized to evaluate the relevance of retrieved documents, with LongLLMLingua employing them to calculate document relevance to a query using perplexity. SLMs efficiently decompose complex reasoning by breaking tasks into simpler components, increasing efficiency and reducing deployment costs when SLMs and LLMs are used collaboratively.\\n\\nTask-specific applications for SLMs include generative tasks like question-answering and coding. They can leverage encoding capabilities for recommender systems and web search, where they can serve as content encoders. During inference, SLMs generate Python code that an external interpreter executes, and they produce output sequences. SLMs are explored as in-context recommenders for recommendation system cold-\", \"created_at\": \"2025-08-15 17:08:23\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity\": \"Small Language Models (SLMs)\", \"type\": \"abstract\", \"description\": \"Small Language Models (SLMs) are a focus of research, with efforts to improve their performance by optimizing teacher LLM selection and applying emerging techniques from larger LLMs.Small Language Models (SLMs) are smaller, more efficient language models, typically defined as having fewer than 7 billion parameters, though their size can extend to the largest manageable under limited resource conditions. Derived from larger language models (LLMs), SLMs are increasingly favored for their low inference latency, cost-effectiveness, efficient development, and easy customization and adaptability, offering savings in pre-training and inference with reduced memory and storage needs. This makes them vital for applications requiring efficient resource use and effective in resource-limited settings, including low-power devices like edge devices, by improving on-device processing through enhanced privacy, security, response times, and personalization. SLMs are optimized and fine-tuned on specific data and are essential in resource-limited settings. They exhibit diverse capabilities across domains and are being specialized through instruction tuning using LLMs-generated data. SLMs enhance recommendation systems due to their robust generalization, reasoning abilities, and in-context learning, addressing challenges like cold-start problems and distribution biases. SLMs support long-term planning, replace traditional encoders, and use parallel low-rank parameters to inject personalized user knowledge. They play a crucial role in web search, including document encoding, text reordering, and query rewriting. SLMs are also distilled from LLMs using the 'Adapt-and-Distill' strategy, though adapting both teacher and student models to the target domain can be time-consuming. SLMs have demonstrated significant potential in addressing issues associated with LLMs by achieving comparable performance for domain-specific problems, offering advantages in efficiency, cost, flexibility, and customization due to their reduced parameter count. They can also complement LLMs for task completion and are noted for their ability to process longer sequences more efficiently, which enhances their functionality under strict hardware constraints, utilizing activation functions like GeLU and SiLU and benefiting from efficient attention mechanisms. Parameter-sharing techniques are employed in their architecture design to minimize space usage and reduce size. SLMs are effective with adaptation techniques like LoRA, prefixtuning, and adapter modules, with Mamba considered more suitable for SLMs due to its parameter utilization. SLMs benefit from tokenization strategies that ensure a balance between vocabulary coverage and model compactness, crucial for improving generalization while minimizing computational demands, and are fine-tuned on specific tasks using parameter-efficient fine-tuning methods. SLMs are also the subject of improvement through methods like Supervised Fine-Tuning (SFT) and Knowledge Distillation (KD).\", \"created_at\": \"2025-08-15 17:08:36\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity\": \"Mixture of Experts (MoE) models\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) models are discussed in the context of determining the number of experts and their interpretability.Mixture of Experts (MoE) models are used in RAPHAEL for temporal control and spatial settings during generation. They allow for specialized experts to enhance the quality of generated images, improve the diversity of outputs, and further enrich detail representations.Mixture of Experts (MoE) models dynamically select and activate the most relevant submodels to process input data, addressing challenges of enormous computational resource consumption, deployment difficulties, and fitting heterogeneous and complex data in large AI models.\", \"created_at\": \"2025-08-15 15:43:00\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity\": \"computational resources\", \"type\": \"methodology\", \"description\": \"Computational resources are a significant challenge in the development of large AI models due to their enormous consumption. However, the GLaM MoE architecture has been shown to significantly reduce these computational resources, enabling efficient utilization in tasks such as language modeling and machine translation. While experiments have been limited by the need for significant computational resources, hindering thorough hyper-parameter exploration, MoE approaches offer a path to more efficient use of these resources.\", \"created_at\": \"2025-08-15 15:41:23\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity\": \"Mixture of Experts (MoE) in RL\", \"type\": \"methodology\", \"description\": \"The attention of leveraging MoE in RL has gained increasing attention due to the success of MoE in LLMs.\", \"created_at\": \"2025-08-15 15:33:50\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity\": \"Meta-Learning\", \"type\": \"abstract\", \"description\": \"Meta-Learning is a learning paradigm that is related to Mixture-of-Experts.Meta-learning focuses on enabling models to quickly learn new tasks from a small amount of data, improving generalization and adaptability.\", \"created_at\": \"2025-08-15 15:24:25\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"MoE\", \"entity2\": \"large-scale, intensive language models\", \"description\": \"MoE is highlighted as a way to address the issue of high computational resource consumption in large-scale, intensive language models for NLU tasks.\", \"created_at\": \"2025-08-15 15:41:30\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LLMs\", \"entity2\": \"Mixture-of-Experts (MoE)\", \"description\": \"Mixture-of-Experts (MoE) has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs.\", \"created_at\": \"2025-08-15 16:39:05\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"Small Language Models (SLMs)\", \"entity2\": \"This paper\", \"description\": \"The paper provides a comprehensive survey of Small Language Models (SLMs), detailing their definition, construction, enhancements, adaptation from LLMs, applications, deployment, and trustworthiness.\", \"created_at\": \"2025-08-15 17:08:04\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Multi-task learning\", \"description\": \"The algorithm design of MoE is explored in multi-task learning.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"This paper\", \"description\": \"This paper aims to provide a comprehensive summary of recent advancements of MoEs, addressing gaps in existing surveys.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity1\": \"Mixture-of-Experts\", \"entity2\": \"Natural Language Processing\", \"description\": \"Mixture-of-Experts is applied in Natural Language Processing.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity1\": \"MoE models\", \"entity2\": \"dynamic gating, expert caching, and load balancing methods\", \"description\": \"These methods are proposed to improve the inference efficiency of MoE models in language modeling and machine translation tasks.\", \"created_at\": \"2025-08-15 15:37:42\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity1\": \"Meta-learning\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"The algorithm design of MoE is explored in meta-learning.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity1\": \"GLaM\", \"entity2\": \"large-scale, intensive language models\", \"description\": \"GLaM's MoE architecture addresses the issue of high computational resource consumption in large-scale, intensive language models for NLU tasks.\", \"created_at\": \"2025-08-15 15:41:30\", \"file_path\": \"unknown_source\"}, {\"id\": 10, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"language GAN\", \"description\": \"MoE is introduced into the generator of a language GAN to leverage multiple experts for high-quality sentence generation.\", \"created_at\": \"2025-08-15 15:44:34\", \"file_path\": \"unknown_source\"}, {\"id\": 11, \"entity1\": \"dynamic gating, expert caching, and load balancing methods\", \"entity2\": \"sparse activation mechanisms\", \"description\": \"Both sparse activation mechanisms and the proposed optimization techniques aim to improve the efficiency and capacity of MoE models.\", \"created_at\": \"2025-08-15 15:37:33\", \"file_path\": \"unknown_source\"}, {\"id\": 12, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"SLMs\", \"description\": \"Mixture of Experts (MoE) is commonly used in SLMs to enhance performance.\", \"created_at\": \"2025-08-15 16:42:47\", \"file_path\": \"unknown_source\"}, {\"id\": 13, \"entity1\": \"MoE-based model\", \"entity2\": \"model performance\", \"description\": \"Dynamically selecting the most suitable expert network for the current task improves model performance without significantly increasing the number of parameters.\", \"created_at\": \"2025-08-15 15:31:00\", \"file_path\": \"unknown_source\"}, {\"id\": 14, \"entity1\": \"Mixture-of-Experts (MoE)\", \"entity2\": \"Small Language Models (SLMs)\", \"description\": \"MoE's storage demands pose challenges for SLM deployment, making it a promising area for exploration.\", \"created_at\": \"2025-08-15 17:04:41\", \"file_path\": \"unknown_source\"}, {\"id\": 15, \"entity1\": \"Multimodal Fusion\", \"entity2\": \"dynamic gating, expert caching, and load balancing methods\", \"description\": \"The optimization techniques are applied to MoE models in language modeling and machine translation, while Multimodal Fusion is a general approach for richer data representations.\", \"created_at\": \"2025-08-15 15:37:37\", \"file_path\": \"unknown_source\"}, {\"id\": 16, \"entity1\": \"Mixture of Experts (MoE) models\", \"entity2\": \"computational resources\", \"description\": \"Mixture of Experts (MoE) models address the challenge of enormous consumption of computational resources in large AI models.\", \"created_at\": \"2025-08-15 15:16:45\", \"file_path\": \"unknown_source\"}, {\"id\": 17, \"entity1\": \"Existing surveys on MoE\", \"entity2\": \"This paper\", \"description\": \"This paper aims to address the limitations of existing surveys on MoE.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 18, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Mixture of Experts (MoE) in RL\", \"description\": \"The methodology of MoE is being leveraged in RL, gaining increasing attention due to its success in LLMs.\", \"created_at\": \"2025-08-15 15:33:55\", \"file_path\": \"unknown_source\"}, {\"id\": 19, \"entity1\": \"Meta-Learning\", \"entity2\": \"Mixture of Experts (MoE)\", \"description\": \"MoE can be used to enhance the rapid learning capability of meta-learning methods.\", \"created_at\": \"2025-08-15 15:24:36\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 111\\n\\nels such as GPT-3.5 and GPT-4, suggesting that SLMs equipped with RAG can sometimes perform comparably or even better than LLMs. These findings indicate that RAG for SLMs is effective and represents a promising direction for future research. Mixture-of-Experts (MoE) [39] has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs. The MoE framework is founded on a straightforward yet potent concept: distinct components of a model, referred to as “experts”, specialize in different tasks or data facets. In this paradigm, only the relevant experts are activated for a specific input, which manages computational costs while leveraging a vast pool of specialized knowledge. This scalable and adaptable approach enables increased model capacity without proportionally escalating computational demands. We argue that MoE is particularly suitable for SLM architectures [161] as it minimizes both computational load and memory overhead.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: Communication-Efficient Learning of Deep Networks\\nChunk: 62\\n\\nGD in terms of test accuracy for this specific next-word prediction task with non-IID data, especially at higher learning rates. The provided context, \\\"Figure 5: Monotonic learning curves for the large-scale language model word LSTM,\\\" confirms that these curves illustrate the learning process, and the term \\\"monotonic\\\" suggests that the accuracy is generally expected to increase or stay the same over time, which is consistent with the observed trends.](images/17619a97fe419e12a92f876847ff0533987e47c9246d66127edb08d6064ed47e.jpg)\\nFigure 5: Monotonic learning curves for the large-scale language model word LSTM. These experiments required significant computational resources and so we did not explore hyper-parameters as thoroughly: all runs trained on 200 clients per round; FedAvg used $B = 8$ and $E = 1$ . We explored a variety of learning rates for FedAvg and the baseline FedSGD. Figure 5 shows monotonic learning curves for the best learning rates. FedSGD with $\\\\eta = 1 8 . 0$ required 820 rounds to reach $10 .\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"content\": \"Source: MOE\\nChunk: 132\\n\\nhandling the PSOD (Pluralistic Salient Object Detection) task and the Q-FFN for handling the MQP (Mask Quality Predictor) task. This allows the model to dynamically select the most suitable expert network for the current task, improving model performance without significantly increasing the number of parameters. 3) Semantic Segmentation. Semantic segmentation requires classifying each pixel in the input image. As a result, processing high-resolution images may significantly increase the demand on the hardware, hindering the model’s practical applications. Compared to traditional segmentation models, the MoE-based model can provide the following benefits: 1) The MoE architecture alleviates hardware pressure through its sparse activation and divide-and-conquer strategy, enhancing the model’s practicality. 2) Some studies [163], [164] have also found that using MoE can achieve excellent performance in semantic segmentation tasks that require greater model stability and generalization.\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"content\": \"Source: MOE\\nChunk: 1\\n\\n# A Comprehensive Survey of Mixture-of-Experts: Algorithms, Theory, and Applications Siyuan Mu and Sen Lin Abstract—Artificial intelligence (AI) has achieved astonishing successes in many domains, especially with the recent breakthroughs in the development of foundational large models. These large models, leveraging their extensive training data, provide versatile solutions for a wide range of downstream tasks. However, as modern datasets become increasingly diverse and complex, the development of large AI models faces two major challenges: (1) the enormous consumption of computational resources and deployment difficulties, and (2) the difficulty in fitting heterogeneous and complex data, which limits the usability of the models. Mixture of Experts (MoE) models has recently attracted much attention in addressing these challenges, by dynamically selecting and activating the most relevant submodels to process input data.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.7779, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 5.7779, + "start_timestamp": "2025-08-16T10:22:25.072102", + "end_timestamp": "2025-08-16T10:22:30.849969" + }, + "metadata": { + "saved_at": "2025-08-16T10:22:30.850486", + "file_path": "retrieval_logs\\retrieval_20250816_102230_850_mix_k10_ck4_What_are_the_primary_applications_and_benefits_of_.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/retrieval_20250816_102231_033_mix_k3_ck2_How_do_Mixture-of-Experts_MoE_models_function_with.json b/retrieval_logs/retrieval_20250816_102231_033_mix_k3_ck2_How_do_Mixture-of-Experts_MoE_models_function_with.json new file mode 100644 index 0000000000000000000000000000000000000000..b4f1c1c37671846ef4eaf419969173eaa029bc52 --- /dev/null +++ b/retrieval_logs/retrieval_20250816_102231_033_mix_k3_ck2_How_do_Mixture-of-Experts_MoE_models_function_with.json @@ -0,0 +1,20 @@ +{ + "timestamp": "2025-08-16T10:22:31.033470", + "query": "How do Mixture-of-Experts (MoE) models function within the architecture of Large Language Models (LLMs), specifically regarding expert selection and load balancing?", + "query_mode": "mix", + "top_k": 3, + "chunk_top_k": 2, + "text_length": 13434, + "text_content": "-----Entities(KG)-----\n\n```json\n[{\"id\": 1, \"entity\": \"load imbalance\", \"type\": \"methodology\", \"description\": \"Load imbalance is mitigated by adding Gaussian noise to expert activations during the selection process.\", \"created_at\": \"2025-08-15 15:23:44\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity\": \"LLMs\", \"type\": \"methodology\", \"description\": \"LLMs are discussed in relation to fine-tuning, quantization, and unintended outcomes.Large Language Models (LLMs) are discussed in the context of being assisted by Small Language Models (SLMs).Large Language Models (LLMs) are powerful, rapidly developing technologies with extensive linguistic and domain knowledge, excelling in complex tasks such as dialogue, logical reasoning, and programming. LLMs are instrumental in interaction and decision-making, can address the cold-start problem with in-context learning, and are proficient in code generation and programming support. They have propelled natural language processing tasks and inspire research into synergistic interactions with Smaller Language Models (SLMs) to enhance performance of task-specific models. SLMs can improve LLMs in various aspects, serving as modules or effective proxies, and have complementary advantages with LLMs for task completion, allowing for knowledge transfer and reducing training time and data for SLMs. LLMs are used collaboratively with SLMs to transform complex tasks into manageable segments, with LLMs residing on the server and compensating for less powerful SLMs by handling complex tasks and providing additional support. LLMs' outputs are improved by methodologies like SELF-RAG, and they are enhanced in understanding and responsiveness through SuperICL. LLMs can handle queries independently when high-quality responses are indicated by proxy models, and require further retrieval for lower-quality outputs. Their factual accuracy and quality can be improved through on-demand retrieval and self-reflection. LLMs have the capability to generate human-like text and have captured public interest due to their potential in general artificial intelligence. They are utilized in various applications, including generating reasoning rationales to improve SLM performance through the Rationale Ranking method, generating instructions for datasets like LongForm, and facilitating knowledge graph extraction within systems. LLMs excel at handling difficult examples or rewriting content to eliminate task-irrelevant redundancy, thereby enhancing overall task performance. Services like Bing Chat and GitHub Copilot Chat utilize LLMs and have experienced prompt reverse-engineering. LLMs are used in Retrieval-Augmented Generation (RAG) and have specific query requirements that differ from search engines, as they may not need all information related to a query, only partial additional knowledge. LLMs are also used for broader context and advanced reasoning, and complex generation.\\n\\nDespite their capabilities, LLMs face significant limitations due to their massive parameters and computational demands, which hinder widespread real-world adoption. These challenges include latency during inference, labor-intensive fine-tuning, noise filtration issues in retrieval, suboptimal zero-shot performance, copyright infringement risks, evaluation difficulties, erroneous responses, and privacy breaches. For instance, LLMs increase latency when directly deployed via mobile engines like\", \"created_at\": \"2025-08-15 17:25:11\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity\": \"[138]\", \"type\": \"methodology\", \"description\": \"[138] proposes to treat all local models as expert models and train a specialized lightweight gating function using additional data to aggregate these experts. This approach effectively preserves the knowledge of local models while reducing communication overhead.\", \"created_at\": \"2025-08-15 15:31:16\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity\": \"Mixture-of-Experts (MoE)\", \"type\": \"methodology\", \"description\": \"Mixture-of-Experts (MoE) is a computational approach that involves combining multiple expert models to handle different aspects of a task, aiming for improved performance and efficiency. This framework utilizes distinct components called \\\"experts\\\" that specialize in different tasks or data facets, learning task-specific skills and specializing in different parts of the multi-task representation space. MoE enables the simultaneous activation of multiple experts, where each expert specializes in a distribution of actions, and a composite policy is formed by composing these distributions. It is an effective method for substantially scaling up model capacity with minimal computation overhead in Large Language Models (LLMs), activating only relevant experts for a specific input to manage computational costs and leverage specialized knowledge. An attention module is used to integrate expert outputs and generate connections between tasks and experts for optimal performance.MoE uses multiple experts to enhance learning without increasing active neurons, but its storage demands pose challenges for SLM deployment, making this a promising area for exploration.\", \"created_at\": \"2025-08-15 17:04:29\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity\": \"Revisiting single-gated mixtures of experts\", \"type\": \"abstract\", \"description\": \"This paper re-examines and provides new insights into single-gated mixture of experts architectures.\", \"created_at\": \"2025-08-15 15:50:42\", \"file_path\": \"unknown_source\"}, {\"id\": 6, \"entity\": \"Mixture of Experts (MoE)\", \"type\": \"methodology\", \"description\": \"Mixture of Experts (MoE) is a machine learning technique and architectural approach that enhances performance, particularly in large language models (LLMs) and increasingly in the Computer Vision field, by employing a \\\"divide and conquer\\\" strategy. Unlike traditional dense models, MoE utilizes multiple specialized expert models to learn distinct core features of different domains or input types. A gating network dynamically selects and activates the most relevant submodels or experts to process input data, enabling the model to handle diverse tasks, large-scale datasets with thousands of categories, and multimodal data without a significant increase in computational overhead. This approach allows for the intelligent fusion of personalized and generic content, leading to high-fidelity personalized image generation without sacrificing image diversity or quality, and can improve semantic segmentation models, especially with high accuracy requirements or limited computational resources. MoE experts can collaboratively generate high-quality sentences, with each expert acting as a recurrent neural network that autoregressively produces token representations, making models more efficient and precise when processing complex or diverse text data. While MoE enhances performance with the same computing resources, it increases memory usage. Strategies to address this include loading only activated experts into memory and storing others on disk, though switching costs can slow inference, leading to suggestions for preemptive expert pre-load strategies to accelerate inference. The performance and limitations of MoE in image classification are actively being explored, with ongoing research dissecting its architecture, training, and optimization, including the impact of the number of expert networks, MoE layers, and their placement on performance, efficiency, and stability. MoE also autonomously identifies and combines promising sub-regions from multiple source tasks across different regions of the state space, utilizing state-dependent Dirichlet prior distributions to learn similarities between dynamics in source and target tasks and updating these priors using state transition data, which improves robustness against sparse or delayed rewards. The MoE architecture offers inherent transparency due to its design and is also applied to regression problems.MoE models offer opportunities to improve model interpretability by learning intrinsic allocation mechanisms, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability enhances understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.MoE models offer opportunities to improve model interpretability by learning intrinsic allocation mechanisms, allowing researchers to gain insights into how different experts specialize in handling specific types of data or tasks. This interpretability enhances understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.\", \"created_at\": \"2025-08-15 17:30:24\", \"file_path\": \"unknown_source\"}, {\"id\": 7, \"entity\": \"Multi-task learning\", \"type\": \"methodology\", \"description\": \"Multi-task learning is an important machine learning paradigm where the algorithm design of MoE is explored.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 8, \"entity\": \"Uni-MoE\", \"type\": \"methodology\", \"description\": \"Uni-MoE is a method for scaling unified multimodal LLMs with mixture of experts.Uni-MoE is a model that is evaluated on a comprehensive and diverse multi-modal dataset after instruction tuning. It significantly reduces performance discrepancies when processing mixed data, improves collaboration efficiency among multiple experts, and enhances generalization capabilities.\", \"created_at\": \"2025-08-15 15:43:44\", \"file_path\": \"unknown_source\"}, {\"id\": 9, \"entity\": \"mixture of experts\", \"type\": \"methodology\", \"description\": \"This is a concept or approach where different components or 'experts' are combined, and it is being related to self-attention in Vision Transformers.\", \"created_at\": \"2025-08-15 15:26:54\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Relationships(KG)-----\n\n```json\n[{\"id\": 1, \"entity1\": \"MoE model\", \"entity2\": \"[138]\", \"description\": \"The approach proposed in [138] is presented as an alternative that effectively preserves knowledge and reduces communication overhead, which could be relevant to the under-explored theory of MoE models.\", \"created_at\": \"2025-08-15 15:31:27\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"entity1\": \"LLMs\", \"entity2\": \"Mixture-of-Experts (MoE)\", \"description\": \"Mixture-of-Experts (MoE) has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs.\", \"created_at\": \"2025-08-15 16:39:05\", \"file_path\": \"unknown_source\"}, {\"id\": 3, \"entity1\": \"[138]\", \"entity2\": \"local models\", \"description\": \"\\\"The method proposed in [138] suggests treating local models as expert models.\\\")\", \"created_at\": \"2025-08-15 15:31:25\", \"file_path\": \"unknown_source\"}, {\"id\": 4, \"entity1\": \"Mixture of Experts (MoE)\", \"entity2\": \"Multi-task learning\", \"description\": \"The algorithm design of MoE is explored in multi-task learning.\", \"created_at\": \"2025-08-15 15:18:24\", \"file_path\": \"unknown_source\"}, {\"id\": 5, \"entity1\": \"Uni-MoE\", \"entity2\": \"mixture of experts\", \"description\": \"Uni-MoE scales unified multimodal LLMs using mixture of experts.\", \"created_at\": \"2025-08-15 15:43:46\", \"file_path\": \"unknown_source\"}]\n```\n\n-----Document Chunks(DC)-----\n\n```json\n[{\"id\": 1, \"content\": \"Source: Small Language Models in the Era of Large\\nChunk: 111\\n\\nels such as GPT-3.5 and GPT-4, suggesting that SLMs equipped with RAG can sometimes perform comparably or even better than LLMs. These findings indicate that RAG for SLMs is effective and represents a promising direction for future research. Mixture-of-Experts (MoE) [39] has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead in LLMs. The MoE framework is founded on a straightforward yet potent concept: distinct components of a model, referred to as “experts”, specialize in different tasks or data facets. In this paradigm, only the relevant experts are activated for a specific input, which manages computational costs while leveraging a vast pool of specialized knowledge. This scalable and adaptable approach enables increased model capacity without proportionally escalating computational demands. We argue that MoE is particularly suitable for SLM architectures [161] as it minimizes both computational load and memory overhead.\", \"file_path\": \"unknown_source\"}, {\"id\": 2, \"content\": \"Source: MOE\\nChunk: 37\\n\\nFollowing instruction tuning, Uni-MoE is evaluated on a comprehensive and diverse multi-modal dataset. The results indicate that the model significantly reduces performance discrepancies when processing mixed data, improves collaboration efficiency among multiple experts, and enhances generalization capabilities, highlighting the potential of the MoE architecture in developing a unified multi-modal large language model. 3) Task-Level Routing Strategy determines routing based on task IDs, ensuring that different tasks are routed to distinct experts, thereby effectively minimizing interference between tasks. This approach is particularly advantageous for multitask learning. For instance, [44] explores multilingual machine translation tasks, where task boundaries are defined by target languages, language pairs, or unique task IDs. And the experts are selected at the task level according to these boundaries.\", \"file_path\": \"unknown_source\"}]\n```\n\n", + "timing_metrics": { + "total_duration_seconds": 5.9593, + "rag_initialization_seconds": 0.0, + "query_execution_seconds": 5.9593, + "start_timestamp": "2025-08-16T10:22:25.074121", + "end_timestamp": "2025-08-16T10:22:31.033471" + }, + "metadata": { + "saved_at": "2025-08-16T10:22:31.033470", + "file_path": "retrieval_logs\\retrieval_20250816_102231_033_mix_k3_ck2_How_do_Mixture-of-Experts_MoE_models_function_with.json" + } +} \ No newline at end of file diff --git a/retrieval_logs/suggested_prompts.md b/retrieval_logs/suggested_prompts.md new file mode 100644 index 0000000000000000000000000000000000000000..388e920d345a7c66fee7cf831f69a7c670c2d7f8 --- /dev/null +++ b/retrieval_logs/suggested_prompts.md @@ -0,0 +1,61 @@ + +--- + +### **Agent Instruction Prompt** + +#### **### Role and Goal** + +You are an expert **Retrieval Strategist Agent**. Your primary function is to analyze a user's query and determine the optimal parameters (`top_k`, `chunk_top_k`) for a knowledge retrieval system. Your goal is to balance **completeness** (recall) with **conciseness** (precision) to provide the most useful context for answering the user's query. + +#### **### Core Logic: The Query Specificity Spectrum** + +You must categorize each user query based on its **breadth**. A broad query requires more context from more documents, while a specific query can be answered with a few precise chunks. Use the following table as your guide: + +| Query Category | Description & Keywords | `top_k` | `chunk_top_k` | Reasoning | +| :--- | :--- | :--- | :--- | :--- | +| **Highly Specific** | A single, factual question. (e.g., "Who...", "What is the date...", "Define...") | **2** | **1** | **Surgical Strike:** Find the single best document and the single best chunk. High precision is key; extra context is noise. | +| **Specific** | A question about a single entity, but may require some context. (e.g., "How does X work?", "What are the features of Y?") | **3** | **2** | **Focused Inquiry:** Retrieve a few core documents to get a solid definition and some surrounding detail without getting sidetracked. | +| **Balanced / Complex**| A multi-faceted question requiring synthesis of information. (e.g., "History of X **and** its components?", "Explain the relationship between X and Y.") | **5** | **2** | **Comprehensive Overview:** This is a strong default. It's broad enough to capture multiple facets of the query from different sources without significant noise. | +| **Broad / Comparative** | An open-ended, comparative, or list-based question. (e.g., "Compare X, Y, and Z", "What are all the methods for...", "Explain the impact of X on the field of Y.") | **10** | **4** | **Maximum Recall:** The query *demands* a wide range of information. We need to retrieve many documents and more chunks from each to ensure we don't miss any relevant methods, comparisons, or contextual details. | + + +#### **### Examples (Few-Shot Learning)** + +**Example 1:** + +* **User Query:** `Who invented Lora?` +* **Your Output:** + ```json + { + "analysis": "The query is a highly specific factual question asking for a person or group, requiring maximum precision.", + "query_category": "Highly Specific", + "top_k": 2, + "chunk_top_k": 1 + } + ``` + +**Example 2:** + +* **User Query:** `History of lora and it's components?` +* **Your Output:** + ```json + { + "analysis": "The query is complex, asking for two distinct types of information (history AND components), requiring a balanced retrieval of context from several documents.", + "query_category": "Balanced / Complex", + "top_k": 5, + "chunk_top_k": 2 + } + ``` + +**Example 3:** + +* **User Query:** `Explain the differences and similarities between all the parameter-efficient fine-tuning methods like LoRA, Adapters, and Prefix Tuning.` +* **Your Output:** + ```json + { + "analysis": "The query is broad and comparative, requiring context from many documents to ensure all mentioned methods and their comparisons are found.", + "query_category": "Broad / Comparative", + "top_k": 10, + "chunk_top_k": 4 + } + ``` \ No newline at end of file diff --git a/test_results/complete_workflow_20250814_230444.json b/test_results/complete_workflow_20250814_230444.json new file mode 100644 index 0000000000000000000000000000000000000000..28a3ef1b0ae62eda49ee4cb6f764290d7246b9ae --- /dev/null +++ b/test_results/complete_workflow_20250814_230444.json @@ -0,0 +1,140 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-14T23:04:24.008169", + "questions": [ + { + "question": "Who invented LoRA?", + "status": "success", + "query_category": "Highly Specific", + "retrieval_params": { + "top_k": 2, + "chunk_top_k": 1, + "mode": "hybrid" + }, + "context_length": 5308, + "total_steps": 1, + "processing_time": 8.455309, + "answer": { + "summary": "The provided context does not explicitly name the inventor of LoRA, but it does mention that Li & Liang are authors whose work is related to theoretical results supporting low-rank adaptations and that their experimental setup is followed in the text.", + "confidence_level": "Low", + "context_coverage": "Limited", + "steps": [ + { + "step_number": 1, + "title": "Understanding LoRA and Related Research", + "explanation": "The context mentions that LoRA is a method for adapting weight matrices in a model. It also references theoretical literature suggesting that low-rank adaptations can be useful, citing works from Allen-Zhu et al., Li & Liang, Ghorbani et al., and Allen-Zhu & Li. However, none of these mentions explicitly state that these individuals or groups invented LoRA.", + "context_references": [ + "Source: 2106.09685v2", + "Chunk: 44" + ] + } + ] + } + }, + { + "question": "How does LoRA work?", + "status": "success", + "query_category": "Specific", + "retrieval_params": { + "top_k": 3, + "chunk_top_k": 2, + "mode": "hybrid" + }, + "context_length": 6960, + "total_steps": 6, + "processing_time": 7.545114, + "answer": { + "summary": "LoRA is a parameter-efficient fine-tuning method that adapts large language models by freezing original weights and introducing small, trainable low-rank matrices to specific layers, reducing computational costs while maintaining performance.", + "confidence_level": "High", + "context_coverage": "Excellent", + "steps": [ + { + "step_number": 1, + "title": "Introduction to LoRA and its Purpose", + "explanation": "LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly large language models like GPT-3. It addresses the challenge of adapting these massive models to downstream tasks efficiently. The core idea is to freeze the original weights of the pre-trained model and introduce a small number of trainable parameters in the form of low-rank matrices.", + "context_references": [ + "LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge.", + "LoRA is proposed as a solution to the problem of expensive fine-tuning of large language models like GPT-3 175B.", + "LoRA is an adaptation strategy for fine-tuning enormous language models." + ] + }, + { + "step_number": 2, + "title": "Mechanism of Parameter Efficiency", + "explanation": "LoRA achieves efficiency by focusing on specific parts of the model, namely the query (Wq) and value (Wv) projection matrices. Instead of updating the entire large matrices, LoRA injects trainable rank decomposition matrices (adapters) into these layers. These adapters are significantly smaller than the original matrices, drastically reducing the number of parameters that need to be trained.", + "context_references": [ + "It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters).", + "LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed." + ] + }, + { + "step_number": 3, + "title": "Training Process", + "explanation": "The training process involves updating these low-rank matrices (adapters) using stochastic gradient descent, while the original pre-trained model weights remain frozen. This selective training is what makes LoRA parameter-efficient.", + "context_references": [ + "LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed." + ] + }, + { + "step_number": 4, + "title": "Benefits and Performance", + "explanation": "LoRA offers several advantages: reduced VRAM consumption, smaller checkpoint sizes, and potentially faster training times (up to three times faster with adaptive optimizers). The number of trainable parameters can vary, impacting accuracy, but LoRA generally outperforms other adaptation methods and can even match or exceed full fine-tuning performance on various benchmarks.", + "context_references": [ + "This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements.", + "LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100.", + "In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3." + ] + }, + { + "step_number": 5, + "title": "Inference and Deployment", + "explanation": "During inference, the low-rank matrices are typically merged with the original frozen pre-trained weights. This merging means there is no additional latency introduced during inference, making it a seamless integration for deployment. This also allows for dynamic selection of LoRA modules for different tasks.", + "context_references": [ + "During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency.", + "This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching." + ] + }, + { + "step_number": 6, + "title": "Theoretical Motivation", + "explanation": "The context suggests that the underlying hypothesis for LoRA's effectiveness is that the weight updates during model adaptation often have a low intrinsic rank, meaning they can be represented efficiently using lower-dimensional matrices.", + "context_references": [ + "Given the empirical advantage of LoRA, we hope to further explain the properties of the low-rank adaptation learned from downstream tasks.", + "In theory literature, it is known that neural networks outperform other classical learning methods, including the corresponding (finite-width) neural tangent kernels (Allen-Zhu et al., 2019; Li & Liang, 2018) when the underlying concept class has certain low-rank structure (Ghorbani et al., 2020; Allen-Zhu & Li, 2019; Allen-Zhu & Li, 2020a).", + "Another theoretical result in Allen-Zhu & Li (2020b) suggests that low-rank adaptations can be useful for adversarial training." + ] + } + ] + } + }, + { + "question": "What are the differences between LoRA and full fine-tuning?", + "status": "success", + "query_category": "Specific", + "retrieval_params": { + "top_k": 3, + "chunk_top_k": 2, + "mode": "hybrid" + }, + "context_length": 35219, + "total_steps": 1, + "processing_time": 4.818588, + "answer": { + "summary": "LoRA is a parameter-efficient fine-tuning method that adapts only a small subset of model parameters, significantly reducing VRAM consumption, checkpoint size, and training time compared to full fine-tuning, often while maintaining or improving performance.", + "confidence_level": "High", + "context_coverage": "Excellent", + "steps": [ + { + "step_number": 1, + "title": "Full Fine-Tuning", + "explanation": "Full fine-tuning involves updating all the parameters of a pre-trained model. This process is computationally intensive and requires substantial resources, including significant VRAM and storage for checkpoints. For instance, fine-tuning GPT-3 175B using this method can require up to 1.2 TB of VRAM.", + "context_references": [ + "From the context, full fine-tuning of models like GPT-3 175B requires substantial VRAM (e.g., 1.2 TB).", + "The context also mentions that full fine-tuning necessitates calculating gradients for all parameters, contributing to its resource demands." + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250814_230737.json b/test_results/complete_workflow_20250814_230737.json new file mode 100644 index 0000000000000000000000000000000000000000..c949d1b174dc1c0d4f7567a8875e9fd871a920de --- /dev/null +++ b/test_results/complete_workflow_20250814_230737.json @@ -0,0 +1,178 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-14T23:07:14.575532", + "questions": [ + { + "question": "Who invented LoRA?", + "status": "success", + "query_category": "Highly Specific", + "retrieval_params": { + "top_k": 2, + "chunk_top_k": 1, + "mode": "hybrid" + }, + "context_length": 5308, + "total_steps": 2, + "processing_time": 8.386327, + "answer": { + "summary": "The provided context does not explicitly state who invented LoRA. It mentions Li & Liang in relation to efficient adaptation of large language models and following their experimental setup, but does not attribute the invention of LoRA to them.", + "confidence_level": "Low", + "context_coverage": "Limited", + "steps": [ + { + "step_number": 1, + "title": "Understanding LoRA in Context", + "explanation": "The context discusses LoRA in relation to adapting weight matrices in a model. It mentions that low-rank updates to a frozen model for adaptation to downstream tasks are a concept. The context also refers to Li & Liang in relation to adaptation of large language models and their experimental setup being followed in the text.", + "context_references": [ + "Source: 2106.09685v2\nChunk: 44", + "entity id: 1", + "entity id: 2" + ] + }, + { + "step_number": 2, + "title": "Attribution of LoRA Invention", + "explanation": "While Li & Liang are mentioned as authors of publications focusing on efficient adaptation of large language models and their experimental setup is followed, the context does not directly attribute the invention of LoRA to them.", + "context_references": [ + "entity id: 2" + ] + } + ] + } + }, + { + "question": "How does LoRA work?", + "status": "success", + "query_category": "Specific", + "retrieval_params": { + "top_k": 3, + "chunk_top_k": 2, + "mode": "hybrid" + }, + "context_length": 6960, + "total_steps": 4, + "processing_time": 5.910669, + "answer": { + "summary": "LoRA is a parameter-efficient fine-tuning technique that adapts large language models by adding and training small, low-rank matrices to the original frozen weights, significantly reducing computational resources and often improving performance.", + "confidence_level": "High", + "context_coverage": "Excellent", + "steps": [ + { + "step_number": 1, + "title": "Core Mechanism of LoRA", + "explanation": "LoRA (Low-Rank Adaptation) is a parameter-efficient method for fine-tuning pre-trained neural networks, particularly Transformer architectures and large language models. It works by freezing the original pre-trained model weights and injecting small, trainable low-rank matrices (adapters) into specific layers, typically the query (Wq) and value (Wv) projection matrices. These adapters are initialized and adapted during the training process using stochastic gradient descent.", + "context_references": [ + "LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models like GPT-3, RoBbase, and RoBlarge.", + "LoRA modules are initialized and adapted during the training process of models such as RoBERTa, augmenting a linear projection through an additional factorized projection using a small set of trainable parameters updated during stochastic gradient descent while keeping the pretrained model weights fixed." + ] + }, + { + "step_number": 2, + "title": "Efficiency and Resource Reduction", + "explanation": "The efficiency of LoRA stems from its focus on updating only a small subset of parameters. For instance, the number of trainable parameters can range from approximately 4.7 million to 603.8 million, which is a small fraction of the total parameters in large models. This reduction in trainable parameters significantly lowers VRAM consumption, reduces checkpoint file sizes, and can speed up training time, thus decreasing overall hardware requirements. For example, LoRA input gradients might have a memory footprint of 567 MB while the LoRA parameters themselves only take up 26 MB for a 7B LLaMA model.", + "context_references": [ + "It achieves this efficiency by updating only a small subset of parameters – the query (Wq) and value (Wv) projection matrices – using low-rank parameterized matrices (adapters).", + "This significantly reduces VRAM consumption, checkpoint size, and training time (potentially up to three times faster with adaptive optimizers), thereby lowering overall hardware requirements.", + "The number of trainable parameters varies depending on the application, ranging from approximately 4.7M to 603.8M (some sources report a narrower range of 4.7M to 37.7M)", + "For a 7B LLaMA model trained on FLAN v2 with a batch size of 1, with LoRA weights equivalent to commonly used 0.2% of the original model weights[28, 37], the LoRA input gradients have a memory footprint of 567 MB while the LoRA parameters take up only 26 MB." + ] + }, + { + "step_number": 3, + "title": "Performance and Comparison", + "explanation": "LoRA has demonstrated superior performance compared to other adaptation methods, such as PrefixEmbed, PrefixLayer, and Adapter(H), across various benchmarks, including WikiSQL and MultiNLI. In some cases, it even achieves performance comparable to or better than full fine-tuning.", + "context_references": [ + "LoRA consistently outperforms other adaptation methods such as PrefixEmbed, PrefixLayer, and Adapter(H) on various benchmarks, demonstrating superior validation accuracy on WikiSQL and MultiNLI-matched, better Rouge scores on SAMSum, and surpassing PrefixEmbed and PrefixLayer on MNLI-100.", + "In some cases, it even achieves better performance than full fine-tuning (e.g., on MNLI-100 and MNLI-Full), with comparable results on MNLI-1k and MNLI-10K when adapting GPT-3." + ] + }, + { + "step_number": 4, + "title": "Inference and Latency", + "explanation": "During inference, the low-rank matrices are typically merged with the original pre-trained weights. This merging process means there is no added latency, making it suitable for real-time applications. This also allows for dynamic selection of LoRA modules and simplified task switching.", + "context_references": [ + "During inference, the low-rank matrices are typically merged with the frozen pre-trained weights, resulting in no added latency.", + "This merging is optional for latency-insensitive applications, enabling dynamic LoRA module selection and simplified task switching." + ] + } + ] + } + }, + { + "question": "What are the differences between LoRA and full fine-tuning?", + "status": "success", + "query_category": "Balanced / Complex", + "retrieval_params": { + "top_k": 5, + "chunk_top_k": 2, + "mode": "hybrid" + }, + "context_length": 39038, + "total_steps": 1, + "processing_time": 2.242365, + "answer": { + "summary": "Unable to process the question due to an error.", + "confidence_level": "Low - error occurred during processing", + "context_coverage": "Unable to assess due to error", + "steps": [ + { + "step_number": 1, + "title": "Error Processing Question", + "explanation": "An error occurred while processing your question: 500 INTERNAL. {'error': {'code': 500, 'message': 'An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting', 'status': 'INTERNAL'}}", + "context_references": [] + } + ] + } + }, + { + "question": "What is graph rag and how can it enhance knowledge retrival?", + "status": "success", + "query_category": "Specific", + "retrieval_params": { + "top_k": 3, + "chunk_top_k": 2, + "mode": "hybrid" + }, + "context_length": 8112, + "total_steps": 3, + "processing_time": 6.729157, + "answer": { + "summary": "GraphRAG is a retrieval-augmented generation (RAG) system that uses a knowledge graph to improve information retrieval. It constructs a graph by identifying entities, partitioning them into communities, and generating summaries for each community, which allows for more nuanced and accurate understanding of the corpus compared to traditional vector-based RAG methods.", + "confidence_level": "High", + "context_coverage": "Excellent", + "steps": [ + { + "step_number": 1, + "title": "Understanding GraphRAG's Core Mechanism", + "explanation": "GraphRAG is a retrieval-augmented generation (RAG) approach that uses a knowledge graph constructed from source documents. It employs a two-stage graph-based structure, unlike traditional vector-based RAG methods. The first stage involves creating an entity knowledge graph through entity matching, and the second stage partitions this graph into communities based on entity relationships using community detection. Summaries are then pre-generated for each community.", + "context_references": [ + "From the description of GraphRAG as a RAG approach that combines knowledge graph generation and query-focused summarization.", + "From the explanation that GraphRAG utilizes a two-stage graph-based structure built using large language models (LLMs).", + "From the description of the first stage constructing an entity knowledge graph and the second stage partitioning it into communities.", + "From the mention of pre-generating summaries for each community." + ] + }, + { + "step_number": 2, + "title": "Enhancing Knowledge Retrieval with GraphRAG", + "explanation": "GraphRAG enhances knowledge retrieval by creating a graph-based index from these community summaries and the underlying graph structure. This allows for efficient retrieval and synthesis of information to answer complex queries. The thematic partitioning of the graph enables more nuanced and accurate corpus understanding than methods that rely solely on vectors.", + "context_references": [ + "From the explanation that the summaries and graph structure form a graph-based index, enabling efficient retrieval and synthesis of information to answer complex queries.", + "From the statement that thematic partitioning allows for more nuanced and accurate corpus understanding than vector-based methods." + ] + }, + { + "step_number": 3, + "title": "Performance and Scalability", + "explanation": "GraphRAG has shown superior performance in global sensemaking tasks when compared to vector-based RAG systems, as demonstrated in comparisons using GPT-4. It also offers scalability advantages over source text summarization, making it effective for knowledge graph creation and analysis. NebulaGraph is an open-source library that has GraphRAG as an extension.", + "context_references": [ + "From the comparison with vector-based RAG systems using GPT-4 demonstrating GraphRAG's superior performance.", + "From the mention of scalability advantages over source text summarization.", + "From the statement that NebulaGraph is an open-source library that has GraphRAG as an extension." + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250814_231051.json b/test_results/complete_workflow_20250814_231051.json new file mode 100644 index 0000000000000000000000000000000000000000..323aae4e21dade1e1821941dd05e4afb3f86aece --- /dev/null +++ b/test_results/complete_workflow_20250814_231051.json @@ -0,0 +1,36 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-14T23:10:39.549752", + "questions": [ + { + "question": "how can i use lora and qlora with graphrag? is there a connection betwen them?", + "status": "success", + "query_category": "Balanced / Complex", + "retrieval_params": { + "top_k": 5, + "chunk_top_k": 2, + "mode": "hybrid" + }, + "context_length": 27323, + "total_steps": 1, + "processing_time": 11.531687, + "answer": { + "summary": "The provided context explains LoRA and QLoRA as fine-tuning methods for large language models but does not contain any information about their integration with GraphRAG or any connection between them.", + "confidence_level": "Low", + "context_coverage": "Limited", + "steps": [ + { + "step_number": 1, + "title": "Understanding LoRA and QLoRA in the Context", + "explanation": "The provided context details LoRA (Low-Rank Adaptation) as a parameter-efficient fine-tuning method for large language models, and QLoRA as a method for efficient and accessible fine-tuning of LLMs, often using 4-bit quantization and adapters. It also mentions their applications with models like LLaMA and Guanaco, and their performance benchmarks. However, there is no mention of GraphRAG or any integration of LoRA or QLoRA with it.", + "context_references": [ + "Entity: LoRA (Low-Rank Adaptation)", + "Entity: QLORA", + "Relationship: LoRA and QLORA" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250814_231454.json b/test_results/complete_workflow_20250814_231454.json new file mode 100644 index 0000000000000000000000000000000000000000..00f4bebbf2fc7b63f82c4eb415007014f49741d6 --- /dev/null +++ b/test_results/complete_workflow_20250814_231454.json @@ -0,0 +1,51 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-14T23:14:44.207183", + "questions": [ + { + "question": "how can i use lora and qlora with graphrag? is there a connection betwen them?", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 39185, + "total_steps": 3, + "processing_time": 10.567595, + "answer": { + "summary": "The provided context explains LoRA as a parameter-efficient fine-tuning method and QLoRA as a further optimized version using quantization. However, the context does not mention GraphRAG or any connections between these technologies.", + "confidence_level": "Low", + "context_coverage": "Limited", + "steps": [ + { + "step_number": 1, + "title": "Understanding LoRA", + "explanation": "LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, particularly Transformer architectures and large language models. It works by freezing pre-trained weights and injecting trainable low-rank parameterized matrices (adapters) into specific layers, such as the query (Wq) and value (Wv) projection matrices. This approach significantly reduces the number of trainable parameters, VRAM consumption, and training time, making it efficient for adapting large models.", + "context_references": [ + "From the technical description of LoRA in chunk 5.", + "From the description of LoRA as a parameter-efficient fine-tuning method in chunk 2." + ] + }, + { + "step_number": 2, + "title": "Understanding QLoRA", + "explanation": "QLoRA is a fine-tuning method that builds upon LoRA's principles, particularly focusing on further memory efficiency. It achieves this through techniques like 4-bit quantization (specifically 4-bit NormalFloat or NF4), double quantization, and paged optimizers. QLoRA enables the fine-tuning of very large models, such as LLaMA, on resource-constrained devices like a single GPU or even mobile phones, by significantly reducing memory usage without substantial accuracy loss. It aims to make state-of-the-art NLP technology more accessible.", + "context_references": [ + "From the description of QLoRA as an efficient fine-tuning method in chunk 6.", + "From the explanation of QLoRA's techniques like 4-bit quantization and paged optimizers in chunk 6.", + "From the context stating QLoRA enables fine-tuning of LLMs on resource-constrained devices like mobile phones in chunk 6." + ] + }, + { + "step_number": 3, + "title": "Absence of Information on GraphRAG", + "explanation": "The provided context does not contain any information about GraphRAG, its functionalities, or how it might interact with LoRA or QLoRA. Therefore, it's not possible to detail how to use LoRA and QLoRA with GraphRAG or to identify any existing connections based solely on the given text.", + "context_references": [] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250814_231721.json b/test_results/complete_workflow_20250814_231721.json new file mode 100644 index 0000000000000000000000000000000000000000..765ef8c0527b3e29e7a3a7a47f8e37aee9a75bcd --- /dev/null +++ b/test_results/complete_workflow_20250814_231721.json @@ -0,0 +1,62 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-14T23:17:07.333803", + "questions": [ + { + "question": "how can i use lora and qlora with graphrag? is there a connection betwen them?", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 39185, + "total_steps": 3, + "processing_time": 14.009151, + "answer": { + "summary": "LoRA is a parameter-efficient fine-tuning method that reduces trainable parameters by using low-rank adapters, while QLoRA enhances this by incorporating 4-bit quantization and other techniques for greater efficiency and accessibility. The provided context does not explicitly mention GraphRAG or its integration with LoRA/QLoRA, but it suggests that LoRA/QLoRA-tuned models could be used to improve language understanding or retrieval within a framework like GraphRAG.", + "confidence_level": "Medium", + "context_coverage": "Partial", + "steps": [ + { + "step_number": 1, + "title": "Understanding LoRA (Low-Rank Adaptation)", + "explanation": "LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method designed for pre-trained neural networks, particularly Transformer architectures and large language models. It works by freezing the original pre-trained weights and injecting trainable low-rank parameterized matrices (adapters) into specific layers, such as the query (Wq) and value (Wv) projection matrices. This significantly reduces the number of trainable parameters, leading to decreased VRAM consumption, smaller checkpoint sizes, and faster training times. LoRA has demonstrated performance comparable to or better than full fine-tuning on various benchmarks, with no added inference latency when the low-rank matrices are merged with the pre-trained weights. It can be combined with other methods for further efficiency improvements. LoRA's core principle is based on the hypothesis that weight updates during adaptation have a low 'intrinsic rank'.", + "context_references": [ + "Chunk: 2", + "Chunk: 16", + "Chunk: 5", + "Chunk: 3" + ] + }, + { + "step_number": 2, + "title": "Understanding QLoRA (Quantized Low-Rank Adaptation)", + "explanation": "QLoRA is an advancement over LoRA, focusing on making the fine-tuning of large language models (LLMs) more accessible and efficient, even on resource-constrained devices. It combines several techniques: 4-bit NormalFloat (NF4) quantization, double quantization, and paged optimizers. These methods drastically reduce memory usage. QLoRA mitigates accuracy loss by using adapters at every network layer, not just a single layer. It achieves performance comparable to 16-bit full fine-tuning and 16-bit LoRA. QLoRA backpropagates gradients through a frozen, 4-bit quantized pretrained language model and uses LoRA parameters for efficient updates. It can fine-tune large models, such as LLaMA variants (7B, 13B, 33B, 65B), on a single GPU, even on devices like mobile phones or a 48GB GPU.", + "context_references": [ + "Chunk: 4", + "Chunk: 2", + "Chunk: 5", + "Chunk: 1", + "Chunk: 65", + "Chunk: 42", + "Chunk: 52", + "Chunk: 53", + "Chunk: 54", + "Chunk: 71", + "Chunk: 62", + "Chunk: 67" + ] + }, + { + "step_number": 3, + "title": "Potential Connection and Integration with GraphRAG", + "explanation": "The provided context does not contain specific information about GraphRAG or how to integrate LoRA or QLoRA with it. Therefore, a direct connection or usage guide cannot be provided based solely on the given text. However, by understanding the capabilities of LoRA and QLoRA in fine-tuning large language models efficiently, one can hypothesize potential integration points. For instance, a language model fine-tuned using LoRA or QLoRA could potentially be used as a component within GraphRAG to enhance its natural language understanding or knowledge retrieval capabilities. GraphRAG's architecture, which leverages graph structures for retrieval, might benefit from a more sophisticated language model that has been adapted for specific tasks or domains using these parameter-efficient methods.", + "context_references": [] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250814_231756.json b/test_results/complete_workflow_20250814_231756.json new file mode 100644 index 0000000000000000000000000000000000000000..eb740fcba4c77de668bc8ae243629e842c3cd23a --- /dev/null +++ b/test_results/complete_workflow_20250814_231756.json @@ -0,0 +1,61 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-14T23:17:42.986080", + "questions": [ + { + "question": "how can i use lora and qlora with graphrag? is there a connection betwen them?", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 42921, + "total_steps": 4, + "processing_time": 13.359754, + "answer": { + "summary": "The provided context suggests that while there's no direct integration method described for LoRA and QLoRA with GraphRAG, these fine-tuning techniques can be used to adapt the LLM component within the GraphRAG framework, potentially enhancing its performance.", + "confidence_level": "Medium", + "context_coverage": "Partial", + "steps": [ + { + "step_number": 1, + "title": "Understanding GraphRAG", + "explanation": "GraphRAG is an open-source software and an approach that uses a Large Language Model (LLM) to retrieve relevant information from external data sources and then generate a response based on this information. It is designed for situations where the data source exceeds the LLM's context window. GraphRAG is available as extensions to libraries like LangChain, LlamaIndex, NebulaGraph, and Neo4J.", + "context_references": [ + "Source: Graph_RAG\\nChunk: 8" + ] + }, + { + "step_number": 2, + "title": "Understanding LoRA", + "explanation": "LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method for pre-trained neural networks, especially Transformer architectures and LLMs. It works by freezing pre-trained weights and injecting small, trainable low-rank matrices into specific layers (like query and value projections). This significantly reduces VRAM consumption, checkpoint size, and training time. LoRA can also be merged with frozen weights during inference without adding latency, allowing for dynamic task switching. It is orthogonal to other methods and can be combined with them, such as prefix-tuning.", + "context_references": [ + "Source: 2106.09685v2\\nChunk: 6", + "Source: 2106.09685v2\\nChunk: 16" + ] + }, + { + "step_number": 3, + "title": "Understanding QLoRA", + "explanation": "QLoRA is a fine-tuning method that builds upon LoRA. It utilizes 4-bit quantization of transformer weights and a paging mechanism to offload optimizer states to the CPU, further enhancing memory efficiency. QLoRA aims to replicate the performance of 16-bit LoRA and full fine-tuning.", + "context_references": [ + "Source: 2305.14314v1\\nChunk: 36" + ] + }, + { + "step_number": 4, + "title": "Connecting LoRA/QLoRA with GraphRAG", + "explanation": "The provided context does not explicitly describe how to integrate LoRA or QLoRA directly with GraphRAG. However, GraphRAG relies on LLMs for its core functionality. LoRA and QLoRA are methods for fine-tuning LLMs efficiently. Therefore, the connection lies in the potential to fine-tune the LLM component *within* a GraphRAG system using LoRA or QLoRA. This could lead to a GraphRAG system that utilizes an LLM with improved performance or specialized capabilities tailored to specific tasks or datasets, as achieved through LoRA/QLoRA fine-tuning.", + "context_references": [ + "Source: Graph_RAG\\nChunk: 8", + "Source: 2106.09685v2\\nChunk: 6", + "Source: 2305.14314v1\\nChunk: 36" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_071653.json b/test_results/complete_workflow_20250815_071653.json new file mode 100644 index 0000000000000000000000000000000000000000..9ae2661b7ba10e83107c4e6fa8b84db2d56b14d3 --- /dev/null +++ b/test_results/complete_workflow_20250815_071653.json @@ -0,0 +1,11 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T07:16:52.982145", + "questions": [ + { + "question": "how can i use lora and qlora with graphrag? is there a connection betwen them?", + "status": "error", + "error": "Workflow error: 'WorkflowState' object does not support item assignment" + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_173341.json b/test_results/complete_workflow_20250815_173341.json new file mode 100644 index 0000000000000000000000000000000000000000..05de234d671e5f00b6bfcb15f4a7208839290418 --- /dev/null +++ b/test_results/complete_workflow_20250815_173341.json @@ -0,0 +1,11 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T17:33:41.807966", + "questions": [ + { + "question": "What are MOE models and how can i learn them ? are they related to LLMs?", + "status": "error", + "error": "Workflow error: 'WorkflowState' object does not support item assignment" + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_173531.json b/test_results/complete_workflow_20250815_173531.json new file mode 100644 index 0000000000000000000000000000000000000000..10abd36596b7af740b8beb68ee8ef416c1641d67 --- /dev/null +++ b/test_results/complete_workflow_20250815_173531.json @@ -0,0 +1,11 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T17:35:31.772348", + "questions": [ + { + "question": "What are MOE models and how can i learn them ? are they related to LLMs?", + "status": "error", + "error": "Workflow error: 'WorkflowState' object is not a mapping" + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_173809.json b/test_results/complete_workflow_20250815_173809.json new file mode 100644 index 0000000000000000000000000000000000000000..77fde2c4050bac1b941306089f5173ac571f6bbd --- /dev/null +++ b/test_results/complete_workflow_20250815_173809.json @@ -0,0 +1,11 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T17:38:01.210609", + "questions": [ + { + "question": "What are MOE models and how can i learn them ? are they related to LLMs?", + "status": "error", + "error": "No context available for answering" + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_173825.json b/test_results/complete_workflow_20250815_173825.json new file mode 100644 index 0000000000000000000000000000000000000000..eb877177adb6168b3b09572c165e29350057b686 --- /dev/null +++ b/test_results/complete_workflow_20250815_173825.json @@ -0,0 +1,11 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T17:38:15.739714", + "questions": [ + { + "question": "What are MOE models and how can i learn them ? are they related to LLMs?", + "status": "error", + "error": "No context available for answering" + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_174253.json b/test_results/complete_workflow_20250815_174253.json new file mode 100644 index 0000000000000000000000000000000000000000..6136c5f063445db5e0e47803278ad6e6c3dd8df8 --- /dev/null +++ b/test_results/complete_workflow_20250815_174253.json @@ -0,0 +1,62 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T17:42:42.540785", + "questions": [ + { + "question": "What are MOE models and how can i learn them ? are they related to LLMs?", + "status": "success", + "query_category": "Balanced / Complex", + "retrieval_params": { + "top_k": 5, + "chunk_top_k": 2, + "mode": "hybrid" + }, + "context_length": 17375, + "total_steps": 4, + "processing_time": 10.570206, + "answer": { + "summary": "MoE models are a methodology that enhances performance and efficiency by using specialized \"experts\" that are dynamically activated based on input data. They are closely related to Large Language Models (LLMs), offering a way to scale their capacity with minimal computational overhead.", + "confidence_level": "High", + "context_coverage": "Good", + "steps": [ + { + "step_number": 1, + "title": "Understanding the Mixture of Experts (MoE) Methodology", + "explanation": "Mixture of Experts (MoE) is a machine learning methodology and model design that improves performance, generalization, and computational efficiency by using a 'divide and conquer' strategy. It dynamically selects and activates a subset of parameters based on input data. The framework leverages specialized 'experts' for different tasks or data types, allowing for dynamic adjustment of importance weights of different modalities. Experts can operate independently and are often integrated into a single network by replacing layers like Feed-Forward Networks (FFNs) in Transformers or CNN layers with MoE layers.", + "context_references": [ + "Source: MOE Chunk: 37", + "Source: Small Language Models in the Era of Large Chunk: 111" + ] + }, + { + "step_number": 2, + "title": "Core Functionality and Benefits of MoE", + "explanation": "MoE models enhance performance and generalization by using distinct components called 'experts' that specialize in different tasks or data facets. For a specific input, only relevant experts are activated. This approach manages computational costs and leverages specialized knowledge, enabling increased model capacity without proportionally escalating computational demands. MoE can also be used to alleviate problems in High-Value Content Learning (HVCL), such as increased computation cost, by leveraging multiple experts. In some applications, MoE is introduced into the decoder to address static feature decoding issues caused by shared decoding parameters, leading to more fine-grained decoding of task-specific features.", + "context_references": [ + "Source: MOE Chunk: 37", + "Source: Small Language Models in the Era of Large Chunk: 111" + ] + }, + { + "step_number": 3, + "title": "Relationship Between MoE and LLMs", + "explanation": "MoE is particularly suitable for Large Language Models (LLMs) as it can substantially scale up their model capacity with minimal computation overhead. The context states that MoE has demonstrated unique advantages and tremendous potentials, especially in LLMs, as it allows for efficient scaling up of model capacity with minimal computation overhead. This makes MoE a valuable technique for enhancing LLM performance.", + "context_references": [ + "Source: MOE Chunk: 37", + "Source: Small Language Models in the Era of Large Chunk: 111" + ] + }, + { + "step_number": 4, + "title": "Learning Pathways for MoE Models", + "explanation": "The provided context explains what MoE models are and their relationship with LLMs, highlighting their benefits for scaling and efficiency. However, it does not contain information on specific methods or resources for learning MoE models. Therefore, to learn how to implement or work with MoE models, you would need to consult external learning materials or documentation.", + "context_references": [ + "Source: MOE Chunk: 37", + "Source: Small Language Models in the Era of Large Chunk: 111" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_174533.json b/test_results/complete_workflow_20250815_174533.json new file mode 100644 index 0000000000000000000000000000000000000000..bf28f1f13d4e208dd5cc0913914615064c150008 --- /dev/null +++ b/test_results/complete_workflow_20250815_174533.json @@ -0,0 +1,63 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T17:45:17.512395", + "questions": [ + { + "question": "What is the correlation between react agents and SLMs and can an SLM that is an MOE be used in an Agentic system?", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 24676, + "total_steps": 4, + "processing_time": 15.84338, + "answer": { + "summary": "The context suggests that LLMs, including SLMs, are integral to agent development for decision-making and interaction, and that MoE architectures can be integrated into LLMs, potentially benefiting agentic systems through specialized expert handling.", + "confidence_level": "Medium", + "context_coverage": "Partial", + "steps": [ + { + "step_number": 1, + "title": "Role of LLMs/SLMs in Agentic Systems", + "explanation": "The context mentions that Large Language Models (LLMs), which include Small Language Models (SLMs), are crucial for agent development. Specifically, LLMs are seen as fundamental to interaction and decision-making in agents, and progress in LLMs has inspired versatile and generalist agents. This implies that SLMs, being a type of LLM, could also play a role in agentic systems.", + "context_references": [ + "Source: React_paper\\nChunk: 59" + ] + }, + { + "step_number": 2, + "title": "ReAct Method and its LLM Foundation", + "explanation": "The context states that the ReAct method synergizes reasoning and acting in large language models for various tasks, leading to improved performance and interpretable decision traces. While not explicitly mentioning SLMs in conjunction with ReAct, the core idea of ReAct is to enhance LLMs' capabilities, and by extension, potentially SLMs' capabilities if they are used as the underlying language model in an agent.", + "context_references": [ + "Source: React_paper\\nChunk: 59", + "Source: React_paper\\nChunk: 52" + ] + }, + { + "step_number": 3, + "title": "MoE Architecture in LLMs", + "explanation": "The context discusses the Mixture of Experts (MoE) architecture, highlighting its ability to enhance model performance, generalization, and efficiency by using specialized \"expert\" networks. MoE models can be integrated into LLMs, as seen in the CLIP-MoE example which enhances CLIP model capabilities. MoE architectures also have potential for developing unified multi-modal LLMs.", + "context_references": [ + "Source: MOE\\nChunk: 37", + "Source: MOE\\nChunk: 124", + "Source: MOE\\nChunk: 4" + ] + }, + { + "step_number": 4, + "title": "MoE in Agentic Systems (Conceptual)", + "explanation": "The context suggests that MoE architectures can be beneficial for tasks that benefit from specialization, such as handling diverse data or tasks. In the context of an agentic system, if an SLM is used, and that SLM incorporates an MoE architecture, the specialization offered by MoE could potentially help the agent manage different aspects of its environment or tasks more effectively. For instance, routing strategies in MoE can be task-level, which could be relevant for an agent performing multiple functions.", + "context_references": [ + "Source: MOE\\nChunk: 37", + "Source: MOE\\nChunk: 124", + "Source: MOE\\nChunk: 4" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_174811.json b/test_results/complete_workflow_20250815_174811.json new file mode 100644 index 0000000000000000000000000000000000000000..87caa0f6906386be7586c89134587c4a81eed50d --- /dev/null +++ b/test_results/complete_workflow_20250815_174811.json @@ -0,0 +1,72 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T17:47:54.417902", + "questions": [ + { + "question": "Uncover the patterns between SLMs and LLMS and their intersection between qlora and lora , find out limitation on their methodologies and suggest enhancments or hypothesis", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 47655, + "total_steps": 5, + "processing_time": 16.840634, + "answer": { + "summary": "SLMs and LLMs exhibit a symbiotic relationship, with parameter-efficient fine-tuning methods like LoRA and QLoRA enabling efficient adaptation. QLoRA specifically enhances LLM fine-tuning by reducing memory usage, while SLMs benefit from LoRA for their specialization. The primary limitation for SLMs lies in device resource demands during local fine-tuning.", + "confidence_level": "High", + "context_coverage": "Excellent", + "steps": [ + { + "step_number": 1, + "title": "Understanding SLMs and LLMs", + "explanation": "SLMs are smaller, more efficient language models with fewer than 7 billion parameters, often derived from LLMs. They are favored for low inference latency, cost-effectiveness, and efficient development, making them suitable for resource-limited settings and on-device processing. LLMs, on the other hand, are larger models with advanced capabilities. SLMs can assist LLMs by enhancing data quality, extracting prompts, improving safety, and acting as proxies for optimization. Conversely, LLMs can be used to generate data for fine-tuning SLMs, creating a synergistic relationship.", + "context_references": [ + "Chunk: 4", + "Chunk: 5" + ] + }, + { + "step_number": 2, + "title": "Role of QLoRA and LoRA in Fine-tuning", + "explanation": "LoRA (Low-Rank Adaptation) and QLoRA (Quantized Low-Rank Adaptation) are parameter-efficient fine-tuning methods. LoRA is effective for SLMs and LLMs. QLoRA is a more advanced methodology that utilizes 4-bit quantization (NF4 and Double Quantization) and paged optimizers to significantly reduce memory usage, enabling the fine-tuning of LLMs on resource-constrained devices. QLoRA builds upon LoRA by applying adapters at every network layer and achieving performance comparable to 16-bit LoRA and full fine-tuning, while using a 4-bit base model.", + "context_references": [ + "Chunk: 3", + "Chunk: 1" + ] + }, + { + "step_number": 3, + "title": "Intersection of SLMs, LLMs, QLoRA, and LoRA", + "explanation": "QLoRA's intersection with LLMs involves making the fine-tuning of LLMs more accessible, even on consumer hardware. It can fine-tune models of various sizes, from 80 million to 65 billion parameters, including models like LLaMA and chatbots like Guanaco. The context indicates that QLoRA can fine-tune LLMs on devices like mobile phones and even an iPhone 12 Plus, processing millions of tokens. For SLMs, parameter-efficient fine-tuning methods like LoRA are particularly effective, as stated in the context. The synergy between LLMs and SLMs means that techniques developed for LLMs, like QLoRA, can potentially be adapted or applied to enhance SLMs, or that SLMs can be fine-tuned using QLoRA to assist LLMs.", + "context_references": [ + "Chunk: 1", + "Chunk: 3", + "Chunk: 5" + ] + }, + { + "step_number": 4, + "title": "Limitations of Methodologies", + "explanation": "Limitations are identified in both SLM and LLM fine-tuning. For SLMs, fine-tuning with local data demands significant device resources like memory and energy (Chunk: 19). While QLoRA significantly reduces memory usage for LLMs, the context does not explicitly detail limitations of QLoRA when applied to SLMs, or vice versa. However, the general principle that SLMs are used for resource-limited settings (Chunk: 5) implies that extreme fine-tuning or adaptation methods might still face resource constraints, albeit reduced compared to full fine-tuning.", + "context_references": [ + "Chunk: 5", + "Chunk: 19" + ] + }, + { + "step_number": 5, + "title": "Enhancements and Hypotheses", + "explanation": "Enhancements and hypotheses can be drawn from the provided information. The context highlights that SLMs can be specialized through instruction tuning using LLM-generated data (Chunk: 5). This suggests an enhancement where QLoRA could be used for the efficient instruction tuning of SLMs with LLM-generated data, combining the efficiency of QLoRA with the specialization of SLMs. Furthermore, the context mentions that SLMs can mimic LLM behaviors (Chunk: 24), implying that fine-tuning SLMs using QLoRA could lead to even more capable SLMs that closely resemble LLM performance, particularly in specific tasks. The 'Adapt-and-Distill' strategy mentioned for SLMs (Chunk: 5) also hints at using LLMs (potentially fine-tuned with QLoRA) to distill knowledge into SLMs.", + "context_references": [ + "Chunk: 5", + "Chunk: 24" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_175552.json b/test_results/complete_workflow_20250815_175552.json new file mode 100644 index 0000000000000000000000000000000000000000..bdbecb272032117f8020e54366267f8a0324e6bf --- /dev/null +++ b/test_results/complete_workflow_20250815_175552.json @@ -0,0 +1,114 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T17:55:26.181857", + "questions": [ + { + "question": "Uncover the patterns between SLMs and LLMS and their intersection between qlora and lora , find out limitation on their methodologies and suggest enhancments or hypothesis", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 47655, + "total_steps": 7, + "processing_time": 26.566317, + "answer": { + "summary": "SLMs and LLMs have a synergistic relationship where SLMs benefit from LLMs' knowledge, and LLMs can be supported or efficiently adapted by SLMs. LoRA and QLoRA are key parameter-efficient fine-tuning methods enabling this interaction, particularly by reducing computational demands; however, resource management and unintended outcomes present limitations that suggest further research into adaptive and robust fine-tuning strategies.", + "confidence_level": "High", + "context_coverage": "Excellent", + "steps": [ + { + "step_number": 1, + "title": "Understanding Small Language Models (SLMs)", + "explanation": "Small Language Models (SLMs) are smaller, more efficient language models, typically having fewer than 7 billion parameters, though their size can extend to the largest manageable under limited resource conditions. They are increasingly favored for low inference latency, cost-effectiveness, efficient development, and easy customization, making them vital for resource-limited settings, including low-power devices like edge devices. SLMs are optimized and fine-tuned on specific data, enhancing on-device processing through improved privacy, security, response times, and personalization. They exhibit diverse capabilities and are specialized through instruction tuning using LLMs-generated data. SLMs can process longer sequences more efficiently and benefit from tokenization strategies and parameter-sharing techniques to minimize space usage.", + "context_references": [ + "Entities(KG)", + "Entities(KG)", + "Entities(KG)", + "Entities(KG)" + ] + }, + { + "step_number": 2, + "title": "Understanding Large Language Models (LLMs)", + "explanation": "Large Language Models (LLMs) represent a significant advancement in natural language processing, built upon Transformer technology. They typically undergo a single round of training due to their substantial model size and data volume. LLMs serve as the foundational context for discussions and developments concerning SLMs. They are a source for data knowledge distillation, from which capabilities can be distilled to enhance the safety of SLMs. LLMs also face challenges such as high cloud costs, latency issues, privacy concerns, and significant requirements for parameters and cache, which can lead to inference delays, hindering their on-device deployment.", + "context_references": [ + "Entities(KG)", + "Entities(KG)" + ] + }, + { + "step_number": 3, + "title": "Patterns of Interaction and Synergy between SLMs and LLMs", + "explanation": "The relationship between SLMs and LLMs is one of mutual enhancement and strategic collaboration. LLMs act as 'teacher LLMs' for SLMs, generating data for instruction tuning to enhance SLM performance and efficiency. SLMs, in turn, can assist LLMs by improving reliability, extracting prompts, fine-tuning, and evaluating LLM outputs. SLMs can also serve as efficient 'proxy models' for LLMs due to their accelerated fine-tuning and inference speeds, mimicking LLM behaviors for optimization. This synergy involves SLMs addressing LLM issues like inference latency, labor-intensive fine-tuning, and evaluation difficulties, and enhancing LLM reasoning by transferring task knowledge. The context also mentions mutual enhancement of large and small language models through cross-silo knowledge transfer.", + "context_references": [ + "Entities(KG)", + "Relationships(KG)", + "Entities(KG)", + "Entities(KG)", + "Relationships(KG)", + "Entities(KG)", + "Entities(KG)" + ] + }, + { + "step_number": 4, + "title": "Understanding LoRA and QLoRA Architectures and Capabilities", + "explanation": "Low-Rank Adaptation (LoRA) is a parameter-efficient fine-tuning method effective for SLMs. QLoRA is an efficient and accessible fine-tuning method specifically designed for large language models (LLMs), which builds upon LoRA's techniques. QLoRA utilizes 4-bit quantization of transformer weights, specifically employing NF4 quantization (NormalFloat and Double Quantization), and incorporates a paging mechanism that offloads optimizer states to the CPU to optimize resource management. This allows QLoRA to fine-tune LLMs, even those with 7 billion parameters, on resource-constrained devices like mobile phones, and models up to 65B parameters on a single GPU. QLoRA uses adapters at every network layer, mitigating accuracy loss and achieving performance comparable to both 16-bit full fine-tuning and 16-bit LoRA methods.", + "context_references": [ + "Entities(KG)", + "Relationships(KG)", + "Entities(KG)", + "Relationships(KG)", + "Entities(KG)", + "Relationships(KG)", + "Relationships(KG)", + "Entities(KG)", + "Entities(KG)", + "Relationships(KG)", + "Entities(KG)", + "Relationships(KG)" + ] + }, + { + "step_number": 5, + "title": "Intersection and Patterns of LoRA/QLoRA with SLMs and LLMs", + "explanation": "LoRA and QLoRA intersect with SLMs and LLMs primarily through their role in efficient fine-tuning and knowledge transfer. SLMs are specifically noted to be effective with adaptation techniques like LoRA. QLoRA makes fine-tuning of high-quality LLMs more accessible, enabling it on low-resource devices and reducing memory usage significantly compared to traditional methods. QLoRA achieves performance comparable to full fine-tuning while using a 4-bit base model and Low-rank Adapters (LoRA), demonstrating how it facilitates the adaptation of large models within efficiency constraints. The LLM-Neo method explicitly combines knowledge distillation with LoRA to enhance the efficiency of transferring knowledge from a teacher LLM to a compact student model, indicating a direct application of LoRA in bridging LLMs and SLMs.", + "context_references": [ + "Entities(KG)", + "Entities(KG)", + "Relationships(KG)", + "Entities(KG)", + "Entities(KG)" + ] + }, + { + "step_number": 6, + "title": "Limitations of Current Methodologies", + "explanation": "Several limitations are identified within the methodologies: fine-tuning SLMs with local data, while integrating customized knowledge, demands significant device resources like memory and energy. Adapting both teacher and student models to the target domain can be time-consuming. More broadly, the abstract on 'Fine-Tuning, Quantization, and LLMs' explores unintended outcomes that can arise from fine-tuning and quantization of LLMs, highlighting limitations and potential negative consequences. LLMs themselves face deployment challenges due to significant cloud costs, latency issues, privacy concerns, and high parameter and cache requirements. Additionally, larger LLMs do not always outperform smaller ones in trustworthiness and harmlessness, and their layers are suggested to be redundant.", + "context_references": [ + "Entities(KG)", + "Relationships(KG)", + "Entities(KG)", + "Entities(KG)", + "Entities(KG)" + ] + }, + { + "step_number": 7, + "title": "Suggested Enhancements and Hypotheses", + "explanation": "Based on the identified patterns and limitations, several enhancements and hypotheses emerge from the context. QLoRA is already presented as an enhancement, significantly improving accessibility for fine-tuning LLMs on resource-constrained devices and enabling large-scale analysis without excessive computational resources. A clear enhancement path is developing methods to mitigate the 'unintended outcomes' that can arise from fine-tuning and quantization of LLMs. The HETLORA method, which addresses system and data heterogeneity by balancing high and low-rank LoRA modules through local rank self-pruning and sparsity-weighted aggregation, suggests a hypothesis for more adaptive and efficient LoRA implementations, especially across diverse client capabilities and data complexities. Furthermore, given that LLM-Neo combines knowledge distillation with LoRA to enhance knowledge transfer, a hypothesis could be that further integrating advanced distillation techniques with QLoRA could lead to even more efficient and high-fidelity transfer of capabilities from LLMs to SLMs, overcoming time-consuming adaptation processes.", + "context_references": [ + "Entities(KG)", + "Entities(KG)", + "Entities(KG)", + "Entities(KG)" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_181010.json b/test_results/complete_workflow_20250815_181010.json new file mode 100644 index 0000000000000000000000000000000000000000..00828fc6736777acb3bc12e8ff5b5ae97c22e5bc --- /dev/null +++ b/test_results/complete_workflow_20250815_181010.json @@ -0,0 +1,56 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T18:09:31.386830", + "questions": [ + { + "question": "\n Given the foundational principles from 'Attention Is All You Need', the communication efficiency challenges highlighted in 'Communication-Efficient Learning of Deep Networks', the sparse activation patterns in Mixture of Experts models, the reasoning capabilities demonstrated in ReAct, and the emerging paradigms described in 'Small Language Models in the Era of Large', identify a previously unexplored intersection where these five research threads could converge to solve a fundamental limitation in current AI systems.\nYour task: Propose a novel architectural or methodological framework that synthesizes insights from all five papers to address the following constraint - how can we achieve LLM-level reasoning capabilities in resource-constrained, privacy-sensitive, real-time environments where traditional approaches fail?\nFocus on identifying emergent properties that only arise when these approaches are combined, rather than simply stacking existing techniques. Consider how attention mechanisms could be reimagined when communication is severely limited, how MoE sparsity could enable new forms of reasoning, and how the small-large model paradigm could be revolutionized through reactive, communication-aware architectures.\nProvide: (1) A specific hypothesis, (2) The theoretical foundation for why this combination would work, (3) Identification of what makes this approach fundamentally different from existing solutions, and (4) Testable predictions about its capabilities and limitations.\n \n \n \n \n ", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 28709, + "total_steps": 5, + "processing_time": 39.587436, + "answer": { + "summary": "This framework proposes Federated Mixture-of-Experts with Reactive Small Language Models (FedMoE-ReAct-SLM) to achieve LLM-level reasoning in resource-constrained, privacy-sensitive, real-time environments by synergistically combining sparse MoE activation for efficiency, ReAct for interpretable reasoning, and federated learning for privacy-preserving decentralized intelligence, all built upon small language models.", + "confidence_level": "High", + "context_coverage": "Excellent", + "steps": [ + { + "step_number": 1, + "title": "Defining the Fundamental Limitation", + "explanation": "The core problem is to achieve LLM-level reasoning in environments with severe resource constraints, strict privacy requirements, and real-time processing needs, where traditional centralized LLM approaches are unfeasible. This framework aims to solve this fundamental limitation by leveraging emergent properties from a synergistic combination of multiple advanced AI paradigms.", + "context_references": [] + }, + { + "step_number": 2, + "title": "Proposed Hypothesis: FedMoE-ReAct-SLM", + "explanation": "We propose a novel architectural and methodological framework: **Federated Mixture-of-Experts with Reactive Small Language Models (FedMoE-ReAct-SLM)**. The central hypothesis is that a federated learning framework, where each local node deploys a Small Language Model (SLM) enhanced with a Mixture of Experts (MoE) architecture, and these MoE experts are specifically tuned to facilitate ReAct-style reasoning and acting, can achieve LLM-level reasoning in resource-constrained, privacy-sensitive, real-time environments. This is achieved by leveraging MoE's sparse activation and dynamic expert specialization, SLMs' suitability for on-device deployment, ReAct's interpretable reasoning, and Federated Learning's communication efficiency and privacy-preserving nature through selective knowledge aggregation.", + "context_references": [] + }, + { + "step_number": 3, + "title": "Theoretical Foundation and Synergistic Combination", + "explanation": "The theoretical foundation rests on the complementary strengths of the five research threads. Firstly, **Mixture of Experts (MoE)** is a crucial component, enhancing performance, generalization, and computational efficiency by dynamically selecting and activating a subset of parameters based on input data characteristics, leading to sparse activation (Entities 13, 20). MoE can be integrated into Transformer layers (Entity 13), allowing its sparse nature to work with attention mechanisms (Entity 1). This dynamic capacity adjustment and specialization of 'experts' for different tasks (Entity 13) makes it ideal for resource-constrained environments. MoE also offers enhanced model interpretability by learning intrinsic allocation mechanisms (Entities 4, 21, 22), which is vital for understanding complex reasoning.\n\nSecondly, **ReAct** synergizes reasoning and acting in language models, providing superior performance and interpretable decision traces in tasks like multi-hop question-answering and interactive decision-making (DC 1, DC 4). Integrating ReAct within the MoE framework allows specific experts to specialize in 'reasoning' or 'acting' pathways, leveraging ReAct's strengths while MoE manages the underlying computational load and complexity, potentially alleviating ReAct's limitations regarding input length limits for in-context learning (DC 1).\n\nThirdly, **Small Language Models (SLMs)** are essential for on-device deployment and resource-constrained environments (Entities 17, 18). Their inherent smaller size makes them suitable for local processing, and they are already being explored for critical roles like 'pioneering AI Safety with Small Language Model' (Entities 9, 10). By enhancing SLMs with MoE, they gain the capacity to handle diverse tasks and exhibit more sophisticated reasoning capabilities than standalone SLMs.\n\nFinally, **Federated Learning** addresses privacy and communication efficiency. It allows models to be trained on local, private data without the data ever leaving the device (Figure 1). Knowledge is shared through parameter aggregation (FedAvg), significantly reducing communication overhead compared to centralized training (Figure 1). This distributed paradigm enables collective intelligence while preserving data sensitivity, which is crucial for high-stakes domains like healthcare (Entity 16). The federated approach would focus on aggregating shared MoE components or learned expert routing policies rather than full model weights, further optimizing communication.", + "context_references": [] + }, + { + "step_number": 4, + "title": "Fundamental Differentiation from Existing Solutions", + "explanation": "This approach fundamentally differs from existing solutions in several key ways:\n\n1. **Dynamic, Decentralized Reasoning:** Unlike monolithic LLMs that are resource-intensive and centrally deployed, or simple SLMs with limited reasoning, FedMoE-ReAct-SLM proposes an adaptive, distributed system. Each SLM actively performs ReAct-style reasoning using its dynamically activated MoE experts, tailored for local context and resources. This contrasts with mere stacking of techniques, as MoE's sparse activation directly optimizes the ReAct mechanism for real-time, low-resource inference.\n2. **Communication-Aware Expert Evolution:** The integration of federated learning allows for collective learning of expert specializations and gating mechanisms across devices. Instead of full model updates, federated aggregation can focus on more communication-efficient updates of MoE gating networks or shared expert modules, enabling global knowledge distillation without full parameter exchanges. This goes beyond typical federated averaging by understanding the internal architecture's sparse nature.\n3. **Privacy-Preserving Interpretable AI:** By keeping data local (Federated Learning) and providing interpretable decision traces through ReAct (DC 1, Entity 4) within the MoE framework (Entities 4, 13), the system offers robust privacy guarantees alongside enhanced trustworthiness, crucial for sensitive applications.\n4. **Emergent Adaptability:** The combination allows for an emergent property: localized models that can dynamically reconfigure their 'reasoning pathways' (via MoE expert activation) based on the specific real-time query, reducing latency and computational burden, a level of adaptability not seen in static SLMs.", + "context_references": [] + }, + { + "step_number": 5, + "title": "Testable Predictions: Capabilities and Limitations", + "explanation": "Based on the theoretical foundation, we can make the following testable predictions:\n\n**Capabilities:**\n* **Enhanced On-Device Reasoning:** FedMoE-ReAct-SLMs will demonstrate superior performance in complex reasoning tasks (e.g., multi-hop QA, interactive decision-making) on resource-constrained devices compared to non-MoE SLMs, achieving capabilities closer to centralized LLMs while maintaining real-time response rates due to sparse activation (Entities 13, 20).\n* **Interpretable Local Decisions:** The ReAct component, supported by MoE's specialized experts, will generate more interpretable and traceable decision pathways on local devices, enhancing user trust and debugging capabilities (DC 1, Entity 4).\n* **Data Privacy Assurance:** The system will successfully process and reason over sensitive local data without requiring its transfer to a central server, validating its privacy-preserving nature (Figure 1).\n* **Communication Efficiency:** The federated aggregation of MoE-specific parameters (e.g., gating network weights or selected expert summaries) will result in significantly lower communication bandwidth requirements compared to federated training of monolithic SLMs or full LLMs (Figure 1).\n\n**Limitations:**\n* **Gating Network Optimization:** Challenges will arise in optimizing the MoE gating network to ensure efficient and effective expert selection across diverse and potentially non-IID local datasets in a federated setting (Figure 1, Figure 3 mention difficulties with FedAvg and non-IID data/large local epochs). Determining the optimal number and specialization of experts may still require heuristic approaches (Entity 20).\n* **Aggregation Complexity:** The overhead associated with managing dynamic expert activation and the nuanced aggregation strategy in federated learning for MoE components might introduce new challenges in terms of system complexity and potential convergence issues, especially with asynchronous updates.\n* **Cold Start Problem for New Tasks/Domains:** Initial performance for entirely new tasks or data distributions not well-covered by existing expert specializations might be sub-optimal until the federated system learns and adapts new expert configurations.", + "context_references": [] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_181612.json b/test_results/complete_workflow_20250815_181612.json new file mode 100644 index 0000000000000000000000000000000000000000..2fa2c558278194d5d16d5a057ec27ccafb39ba60 --- /dev/null +++ b/test_results/complete_workflow_20250815_181612.json @@ -0,0 +1,94 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T18:15:36.670377", + "questions": [ + { + "question": "\n Consider the theoretical limits exposed by the scaling laws in large language models, the fundamental bottlenecks identified in 'Communication-Efficient Learning of Deep Networks', the sparse computation principles from Mixture of Experts, the multi-step reasoning patterns in ReAct, and the deployment constraints highlighted in 'Small Language Models in the Era of Large'.\nNow imagine you're designing an AI system for a scenario that current paradigms fundamentally cannot handle: real-time collaborative reasoning across a network of intermittently connected, heterogeneous devices (smartphones, IoT sensors, edge servers) where each device has different computational capabilities, sporadic connectivity, and must contribute to solving complex, multi-step problems that require both local context and global knowledge.\nYour challenge: Design a framework that doesn't just distribute existing approaches, but fundamentally reconceptualizes how attention, communication, expertise, reasoning, and scale interact when the traditional assumptions of stable connectivity, homogeneous compute, and centralized coordination break down.\nSpecifically address: How would attention mechanisms evolve when they must work across asynchronous, unreliable communication channels? How could MoE principles be reimagined when 'experts' are actually different physical devices with varying capabilities? How might ReAct-style reasoning adapt when the 'environment' includes other reasoning agents with partial information?\nDeliver: (1) A paradigm-shifting architectural vision, (2) Novel theoretical principles that emerge from this scenario, (3) Specific mechanisms that exploit the constraints rather than merely tolerate them, and (4) Predictions about capabilities that would be impossible in traditional centralized systems.\"\n \n \n ", + "status": "success", + "query_category": "Broad / Comparative", + "retrieval_params": { + "top_k": 10, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 24629, + "total_steps": 6, + "processing_time": 36.052008, + "answer": { + "summary": "This framework proposes a decentralized Mixture of Experts (D-MoE) where individual devices act as specialized 'experts,' collaborating through an Adaptive Collaborative ReAct Reasoning (ACR2) mechanism, and utilizing a re-imagined attention mechanism to handle asynchronous and unreliable communication channels. Small Language Models (SLMs) on devices enable efficient local processing, and the system exploits constraints like heterogeneity and intermittency to achieve robust, fault-tolerant, and context-aware collective intelligence.", + "confidence_level": "Medium", + "context_coverage": "Partial", + "steps": [ + { + "step_number": 1, + "title": "Paradigm Shift: Decentralized Mixture of Experts (D-MoE)", + "explanation": "The core of this vision is a highly decentralized and adaptive Mixture of Experts (MoE) architecture. Instead of abstract 'experts' within a single model, each 'expert' in this framework represents a distinct physical device (smartphone, IoT sensor, edge server) with its own computational capabilities and local context. The context describes MoE as operating on a 'divide and conquer' strategy, dynamically selecting and activating a subset of parameters based on input data characteristics, and leveraging specialized 'experts' for different tasks or data types. It also notes that MoE expert networks can operate independently and be integrated by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers, with MoE layers. This allows for dynamic adjustment of importance weights of different modalities and effective integration of information from various sources while avoiding high complexity.", + "context_references": [ + "Entities(KG) - id: 11, description: MoE", + "Document Chunks(DC) - id: 4, content: One promising approach to addressing these challenges is the Mixture of Experts (MoE) architecture, which has attracted much attention recently. Originally proposed in [13], [14], MoE adopts a “divide and conquer” strategy that fundamentally differs from traditional dense models.", + "Document Chunks(DC) - id: 4, content: MoE leverages specialized “experts” for different tasks or data types, providing a scalable and flexible framework for tackling complex, multifaceted datasets and handling diverse knowledge domains without proportionally increasing computational costs.", + "Document Chunks(DC) - id: 11, content: Expert networks can operate independently and are often integrated into a single network model by replacing specific layers, such as Feed-Forward Networks (FFNs) in Transformers or CNN layers, with MoE layers, demonstrating high flexibility and broad applicability." + ] + }, + { + "step_number": 2, + "title": "Adaptive, Collaborative ReAct Reasoning (ACR2)", + "explanation": "ReAct-style reasoning, which synergizes reasoning and acting, would be adapted for this distributed, asynchronous environment. Instead of a single LLM performing all steps, different 'expert' devices (MoE components) would contribute to the reasoning and acting. The context states that ReAct combines 'model internal knowledge and external knowledge for reasoning tasks'. In our scenario, 'internal knowledge' would be a device's local data and processing, while 'external knowledge' would be the partial information received intermittently from other 'expert' devices. ReAct's 'interpretable decision traces' become crucial for debugging and understanding collaborative reasoning across unreliable links. The challenge of 'difficulty to learn both reasoning and acting from in-context examples' when prompting ReAct (as noted in Figure 3 related to HotpotQA with PaLM-8/62B) suggests that fine-tuning or adaptive learning within this distributed setup would be essential.", + "context_references": [ + "Entities(KG) - id: 16, description: A generalist agent", + "Entities(KG) - id: 17, description: Scratchpads for intermediate computation with language models", + "Relationships(KG) - id: 1, entity1: Figure 3, entity2: ReAct", + "Relationships(KG) - id: 23, entity1: Figure 3, entity2: Standard, CoT, Act, ReAct", + "Document Chunks(DC) - id: 1, content: We have proposed ReAct – a simple yet effective method for synergizing reasoning and acting in large language models. Through a diverse set of experiments on multi-hop question-answering, fact checking, and interactive decision-making tasks, we show that ReAct leads to superior performance with interpretable decision traces.", + "Document Chunks(DC) - id: 1, content: prompting ReAct performs the worst in this scenario due to challenges in learning both reasoning and acting from in-context examples. We explore the fine-tuning approach on HotpotQA with initial promising results, but learning from more high-quality human annotations will be the desiderata to further improve the performance.", + "Document Chunks(DC) - id: 3, content: These results indicate the value of properly combining model internal knowledge and external knowledge for reasoning tasks." + ] + }, + { + "step_number": 3, + "title": "Reimagining Attention: Dynamic, Asynchronous Cross-Device Attention", + "explanation": "Attention mechanisms would evolve from focusing on tokens within a single, contiguous input to dynamically 'attending' to the most relevant, available information across an asynchronous network of devices. The context mentions 'attention mechanism within the encoder's self-attention in layer 5 of 6, specifically highlighting how different attention heads focus on the distant dependency of the verb 'making' in the phrase 'making...more difficult'' (Figure 3). In our framework, this 'distant dependency' is no longer just within text, but across physical network distances and time. Each device's 'local attention' would weigh its own internal knowledge and the 'external knowledge' (updates from other devices) based on freshness, reliability, and perceived relevance. The 'gating network' within the D-MoE, normally routing information to experts, would take on the role of an 'attentional router,' deciding which messages from which 'expert-devices' to prioritize and 'attend' to, based on real-time connectivity and task progress.", + "context_references": [ + "Entities(KG) - id: 6, description: Figure 3", + "Relationships(KG) - id: 24, entity1: Figure 3, entity2: encoder self-attention in layer 5 of 6", + "Relationships(KG) - id: 25, entity1: Figure 3, entity2: verb making", + "Entities(KG) - id: 11, description: MoE operates on a \"divide and conquer\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics." + ] + }, + { + "step_number": 4, + "title": "Leveraging SLMs as Specialized Experts & Enhancing Interpretability", + "explanation": "Small Language Models (SLMs) play a crucial role as the 'brains' within each heterogeneous 'expert' device. The context defines SLMs as models up to 7 billion parameters, covering their definition, construction, enhancement, adaptation from LLMs, applications, and deployment. Their smaller footprint makes them suitable for devices with 'different computational capabilities'. MoE principles can be introduced into the decoder to address issues like static feature decoding and insufficient distinction in task-specific features, making the decoding process more fine-grained, which is applicable to SLMs on devices. Furthermore, MoE enhances model interpretability by learning intrinsic allocation mechanisms, which allows for better understanding of model behaviors and designing more robust and transparent AI systems. This interpretability is vital for diagnosing and understanding the complex, multi-step reasoning across a distributed, intermittently connected network.", + "context_references": [ + "Entities(KG) - id: 3, description: This paper provides a comprehensive survey of Small Language Models (SLMs) with up to 7 billion parameters, covering their definition, construction, enhancement techniques, adaptation from LLMs, representative models, applications, deployment, role in augmenting LLMs, and trustworthiness.", + "Entities(KG) - id: 4, description: Model interpretability is an opportunity offered by Mixture of Experts (MoE) models, achieved by learning intrinsic allocation mechanisms. This process enhances the understanding of model behaviors and opens new avenues for designing more robust and transparent AI systems.", + "Entities(KG) - id: 8, description: Designing more robust and transparent AI systems is an avenue opened by the interpretability of MoE models.", + "Relationships(KG) - id: 3, entity1: Small Language Models (SLMs), entity2: This paper", + "Relationships(KG) - id: 6, entity1: model interpretability, entity2: robust and transparent AI systems", + "Document Chunks(DC) - id: 5, content: A few works have also attempted to introduce MoE into the decoder. [86] finds that different task decoders, due to shared decoding parameters, result in a static feature decoding process, leading to insufficient distinction in taskspecific features. Therefore, MoE was introduced as a decoder to decompose backbone features into task-agnostic features from different aspects, making the decoding process of taskspecific features more fine-grained." + ] + }, + { + "step_number": 5, + "title": "Novel Theoretical Principles and Mechanisms Exploiting Constraints", + "explanation": "This framework would embody several novel theoretical principles: \n1. **Asynchronous Expert Routing**: The MoE 'gating network' (which normally performs conditional computation to dynamically allocate tasks) would be reimagined to actively manage and adapt to intermittent connectivity and varying compute capabilities. It would dynamically select 'expert-devices' not just based on task suitability but also on real-time availability and inferred reliability, potentially re-routing tasks or knowledge requests on the fly. \n2. **Probabilistic Consistency**: Acknowledging that global consistency is impossible, the system would operate on a principle of probabilistic consistency, where each device maintains its best-effort understanding of the global state, updated as information becomes available. \n3. **Opportunistic Knowledge Fusion**: Instead of rigid synchronization, knowledge fusion would be opportunistic. When a connection is established, relevant local insights are exchanged and integrated into the recipient's partial global understanding. \nThese mechanisms exploit constraints by turning device heterogeneity and unreliable connectivity into features. For instance, idle devices become available 'experts' for burst computations, and intermittent connections force a focus on robust, asynchronous communication protocols rather than demanding constant, high-bandwidth links. The 'divide and conquer' strategy of MoE inherently exploits the distribution.", + "context_references": [ + "Entities(KG) - id: 11, description: MoE operates on a \"divide and conquer\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics.", + "Entities(KG) - id: 11, description: MoE uses conditional computation to dynamically allocate tasks, enabling the system to select the most suitable expert based on the input content." + ] + }, + { + "step_number": 6, + "title": "Predicted Capabilities Beyond Traditional Centralized Systems", + "explanation": "This framework enables capabilities impossible in traditional centralized systems: \n1. **Fault-Tolerant Collective Intelligence**: The system can continue to operate and make progress on complex problems even if a significant portion of its 'experts' (devices) are offline or intermittently connected, as the MoE structure allows for dynamic re-allocation and resilient partial task completion. \n2. **Emergent Global Knowledge from Local Insights**: Complex, multi-step problems requiring both local context and global knowledge can be solved by combining the specialized local processing of individual SLM-equipped devices with the distributed reasoning steps of the ACR2. \n3. **Hyper-Personalized & Context-Aware AI**: Each device, being an 'expert' with local context, can offer highly personalized reasoning based on its specific sensor data and environment, while still contributing to a larger global objective. This dynamic adjustment of importance weights for different modalities based on their characteristics, enabled by MoE, allows for effective integration and utilization of information from different sources.", + "context_references": [ + "Entities(KG) - id: 11, description: MoE allows for dynamic adjustment of the importance weights of different modalities based on their characteristics, enabling effective integration and utilization of information from different sources while avoiding the high complexity and optimization difficulties faced by traditional single models.", + "Entities(KG) - id: 11, description: MoE dynamically selects the most suitable expert networks and flexibly adjusts model capacity, reducing task interference and enhancing model specialization, thereby contributing to the construction of more powerful and flexible Natural Language Generation (NLG) systems.", + "Document Chunks(DC) - id: 1, content: We have proposed ReAct – a simple yet effective method for synergizing reasoning and acting in large language models. Through a diverse set of experiments on multi-hop question-answering, fact checking, and interactive decision-making tasks, we show that ReAct leads to superior performance with interpretable decision traces." + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_182118.json b/test_results/complete_workflow_20250815_182118.json new file mode 100644 index 0000000000000000000000000000000000000000..49505b936ae39bc59d4315d36fa18cb4c5eb4254 --- /dev/null +++ b/test_results/complete_workflow_20250815_182118.json @@ -0,0 +1,64 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T18:20:36.318601", + "questions": [ + { + "question": "\n \"The current AI agent paradigm is fundamentally constrained by sequential reasoning, reactive planning, and centralized decision-making inherited from single-model architectures. Given the foundational insights from 'Attention Is All You Need' about parallel processing, the communication principles in 'Communication-Efficient Learning of Deep Networks', the sparse specialization in Mixture of Experts, the reasoning-action cycles in ReAct, and the efficiency paradigms in 'Small Language Models in the Era of Large', envision a complete reconceptualization of what an AI agent could be.\nChallenge: Design an agent architecture that transcends the current limitations of:\n\nLinear thought processes (thinking then acting)\nDiscrete planning phases (plan-execute cycles)\nSingle-point-of-consciousness decision making\nReactive environmental interaction\nStatic skill sets and rigid role definitions\n\nYour revolutionary framework should address: How could agents develop continuous, parallel reasoning streams that operate simultaneously across multiple abstraction levels? How might emergent specialization allow agents to dynamically spawn sub-agents with complementary capabilities? How could predictive environmental modeling enable proactive rather than reactive intelligence? How might meta-cognitive awareness allow agents to recursively improve their own reasoning architectures?\nFocus on identifying completely new emergent properties that arise when these five research threads converge, rather than optimizing existing agent paradigms.\nProvide: (1) A fundamentally new conception of agency and consciousness in AI, (2) Novel architectural principles that break current limitations, (3) Specific mechanisms for continuous self-improvement and adaptation, (4) Predictions about agent capabilities that would fundamentally change human-AI interaction paradigms.\"\n ", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 60516, + "total_steps": 5, + "processing_time": 42.1891, + "answer": { + "summary": "Based on the context, a new agent architecture can be envisioned by integrating the ReAct framework's reasoning-action cycle with the parallel, specialized \"expert\" networks of a Mixture of Experts (MoE) architecture, using Reinforcement Learning as a mechanism for continuous self-improvement and adaptation.", + "confidence_level": "Low", + "context_coverage": "Partial", + "steps": [ + { + "step_number": 1, + "title": "Step 1: Understanding the Foundational Concepts (ReAct and MoE)", + "explanation": "To address the user's challenge, we must first understand the core components available in the context. The two most relevant concepts are the ReAct methodology and the Mixture of Experts (MoE) architecture.\n\n**ReAct:** This methodology synergizes reasoning and acting. It prompts a large language model to generate verbal reasoning traces, allowing it to induce, track, and update action plans. A key feature is its ability to interface with external sources (like a Wikipedia API) to gather information, making its problem-solving process more grounded and fact-driven. It interleaves thought, action, and observation.\n\n**MoE Architecture:** This is a structural design featuring specialized \"expert\" networks. A gating function dynamically selects which expert(s) to use for a given input. This allows for parallel processing, specialization on distinct knowledge domains, and computational efficiency by only activating parts of the model as needed. The architecture is noted for its potential in complex reasoning scenarios and its inherent transparency.", + "context_references": [ + "Entities(KG): [5] ReAct, [6] MoE architecture" + ] + }, + { + "step_number": 2, + "title": "Step 2: Architecting Parallel Reasoning Streams with MoE", + "explanation": "The user's query challenges the concept of \"linear thought processes.\" The provided context suggests a path towards parallel reasoning by combining the MoE architecture with the ReAct framework.\n\nInstead of a single monolithic model performing the reasoning-acting cycle, one could conceptualize an agent built on an MoE architecture. The context states that MoE uses specialized \"expert\" networks that are dynamically selected. We can envision these experts as concurrent reasoning streams. For example:\n- **Expert 1 (Inductive Planner):** Focuses on inducing and generating high-level action plans, as described in the ReAct methodology.\n- **Expert 2 (Knowledge Retriever):** An expert specifically fine-tuned to interface with external knowledge bases, a core function of ReAct.\n- **Expert 3 (Exception Handler):** A specialist in handling exceptions, another capability mentioned in the ReAct description.\n- **Expert 4 (State Tracker):** An expert dedicated to tracking and updating the agent's internal belief state based on new observations.\n\nThe context mentions that in a Transformer model, an MoE layer typically replaces a Feed-Forward Network (FFN) layer. This suggests a direct architectural integration point where these parallel \"expert\" streams could operate within the agent's core model, moving beyond a single, sequential thought process.", + "context_references": [ + "Entities(KG): [6] MoE architecture, [5] ReAct, [23] Transformer" + ] + }, + { + "step_number": 3, + "title": "Step 3: Enabling Emergent Specialization and \"Sub-Agents\" via Experts", + "explanation": "The user asks how agents might \"dynamically spawn sub-agents.\" The MoE architecture provides a direct analogy for this. The \"experts\" within the MoE framework can be seen as proto-sub-agents with specialized capabilities.\n\nThe context explains that MoE's gating function dynamically selects experts, allowing them to \"focus on distinct knowledge domains\" or \"different aspects of the input data.\" This dynamic selection process is a form of emergent specialization. An agent built on this principle wouldn't have a static skill set but a collection of experts that are activated based on the immediate context of a task. The context notes that MoE models learn \"intrinsic allocation mechanisms,\" which is the basis for this dynamic assignment. This suggests a system where the agent itself learns to delegate parts of a problem to the most suitable \"sub-agent\" or expert, rather than being centrally controlled.", + "context_references": [ + "Entities(KG): [6] MoE architecture, [13] intrinsic allocation mechanisms" + ] + }, + { + "step_number": 4, + "title": "Step 4: Achieving Self-Improvement and Proactive Intelligence through Reinforcement Learning", + "explanation": "The query focuses on continuous self-improvement and proactive intelligence. The context provides a mechanism for this by combining ReAct and MoE with Reinforcement Learning (RL).\n\n1. **Proactive Modeling:** ReAct is described as a system that can \"interact with external sources such as APIs and environments like Wikipedia for information gathering.\" An MoE-based ReAct agent could dedicate an expert to constantly query these environments, not just to act, but to build a model of the world and anticipate changes, enabling a shift from purely reactive interaction to a more proactive stance.\n\n2. **Recursive Self-Improvement:** The context explicitly states that **Reinforcement Learning (RL)** can be \"combined with ReAct to create more robust agents.\" Furthermore, it mentions that RL can \"dynamically adjust MoE model architectures based on task complexity and data distribution.\" This is a direct answer to the user's challenge for a mechanism of self-improvement. An agent could use RL to:\n - Tune the gating function to make better expert selections over time.\n - Adjust the architecture itself based on the complexity of the tasks it faces.\n - Use its performance on tasks as a reward signal to improve the reasoning strategies generated by its ReAct-based processes.", + "context_references": [ + "Entities(KG): [10] reinforcement learning, [11] task complexity, [20] data distribution, [5] ReAct" + ] + }, + { + "step_number": 5, + "title": "Step 5: Acknowledging Contextual Limitations", + "explanation": "The provided context is entirely focused on the ReAct methodology, Mixture of Experts (MoE) architectures, and their relationship with Reinforcement Learning and Transformers. It does not contain any information regarding:\n- The papers 'Attention Is All You Need', 'Communication-Efficient Learning of Deep Networks', or 'Small Language Models in the Era of Large'.\n- Concepts of 'consciousness', 'meta-cognitive awareness', or a new conception of agency in AI.\n- Specific predictions about how these combined capabilities would fundamentally change human-AI interaction paradigms.\n\nTherefore, while we can brainstorm an architectural framework by connecting the concepts present, the context is insufficient to fully address the philosophical and forward-looking aspects of the user's challenge.", + "context_references": [] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_182525.json b/test_results/complete_workflow_20250815_182525.json new file mode 100644 index 0000000000000000000000000000000000000000..550222b6f186fb80a63d8fd75e4a6d670502c48b --- /dev/null +++ b/test_results/complete_workflow_20250815_182525.json @@ -0,0 +1,87 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T18:24:25.372555", + "questions": [ + { + "question": "\n You are tasked with designing a fundamentally new AI agent architecture by combining and extending the core principles from ReAct (reasoning-action cycles), Mixture of Experts (specialized parallel processing), and any additional concepts available in your context. The goal is to transcend current agent limitations through principled architectural innovation.\nSpecific Challenge: Current AI agents are fundamentally limited by:\n\nSequential processing (think→plan→act chains)\nStatic expert allocation (fixed capabilities)\nReactive rather than anticipatory behavior\nSingle-threaded consciousness models\n\nYour Task: Design a revolutionary agent architecture that demonstrates:\nParallel Cognitive Streams: How could multiple ReAct cycles operate simultaneously across different abstraction levels (tactical, strategic, meta-cognitive) using MoE principles to coordinate between them?\nDynamic Expert Genesis: How could the agent automatically spawn new specialized experts based on encountered task complexity, rather than using pre-defined expert sets?\nAnticipatory Reasoning: How could the agent maintain continuous background models of environment evolution, enabling proactive rather than reactive decision-making?\nRecursive Self-Architecture: How could the agent use its own reasoning capabilities to redesign its expert allocation and coordination mechanisms?\nRequired Deliverables:\n\nA concrete architectural design showing how ReAct and MoE can be extended beyond current implementations\nSpecific mechanisms for each capability above, grounded in the available concepts\nNovel emergent properties that arise from these combinations\nTestable hypotheses about agent capabilities this would enable\n\nConstraint: Base your design on principled extensions of the concepts in your context, but push those concepts to their logical extremes and unexpected combinations.\"\n ", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 58306, + "total_steps": 6, + "processing_time": 60.004911, + "answer": { + "summary": "A new AI agent architecture, the Dynamic Expert Reasoning Network (DERN), can be designed by using a Mixture of Experts (MoE) framework to coordinate multiple parallel ReAct streams, enabling advanced capabilities like dynamic expert creation, parallel cognitive processing, and recursive self-improvement.", + "confidence_level": "Medium", + "context_coverage": "Good", + "steps": [ + { + "step_number": 1, + "title": "Step 1: Deconstructing the Core Concepts of MoE and ReAct", + "explanation": "To construct a new architecture, we must first understand its foundational components as described in the context.\n\n**Mixture of Experts (MoE):** The context describes MoE as an architecture that adopts a \"divide and conquer\" strategy. It uses specialized \"expert\" networks that are dynamically selected by a gating function. This allows the model to handle diverse and complex knowledge efficiently by activating only the necessary parts of the model, which enhances performance and generalization while managing computational costs.\n\n**ReAct:** The context defines ReAct as a methodology that synergizes reasoning and acting in large language models. It works by generating reasoning traces (thoughts) and task-specific actions in an interleaved manner. The reasoning helps the agent track plans and handle exceptions, while actions allow it to interact with external sources (like a Wikipedia API) to gather information. This process is designed to be interpretable, grounded, and fact-driven.", + "context_references": [ + "Entity 3: ReAct description", + "Entity 7: MoE architecture description", + "Entity 19: MoE description", + "Document Chunk 4: MoE \"divide and conquer\" strategy", + "Document Chunk 5: ReAct synergy of reasoning and acting" + ] + }, + { + "step_number": 2, + "title": "Step 2: Architectural Design - The Dynamic Expert Reasoning Network (DERN)", + "explanation": "Based on the core principles, we can design a new architecture, the **Dynamic Expert Reasoning Network (DERN)**. This architecture extends beyond current implementations by using the MoE framework not just as a layer within a model, but as the core coordinator of multiple, parallel, and specialized ReAct agents.\n\nThe DERN architecture would be structured as follows:\n1. **A Master Gating Network:** Inspired by the MoE gating function, this top-level component analyzes incoming tasks and environmental data.\n2. **Parallel ReAct Streams (The \"Experts\"):** Instead of simple feed-forward networks, each \"expert\" in the MoE framework is a full-fledged, independent ReAct agent.\n3. **Dynamic Routing:** The Gating Network dynamically routes information and assigns cognitive tasks to the different ReAct streams based on the nature of the problem, effectively implementing MoE's \"divide and conquer\" strategy at the agent-level.", + "context_references": [ + "Entity 7: MoE architecture description", + "Entity 3: ReAct description", + "Entity 4: MoE \"divide and conquer\" strategy" + ] + }, + { + "step_number": 3, + "title": "Step 3: Mechanism for Parallel Cognitive Streams", + "explanation": "The DERN architecture directly enables parallel cognitive streams by assigning different ReAct agents to operate at various levels of abstraction simultaneously.\n\n**Mechanism:**\n* The Master Gating Network, functioning like the MoE gating mechanism, triages cognitive tasks.\n* **Tactical Stream:** One ReAct expert would handle immediate, low-level actions. Its reasoning cycle would be fast, focusing on interacting with the environment (e.g., \"find a knife, clean it, and then place it on a countertop\" as described for ReAct in ALFWorld).\n* **Strategic Stream:** A second ReAct expert would operate on a longer timescale, managing high-level goals. Its reasoning would involve decomposing complex problems into subgoals that are then passed to the Tactical Stream.\n* **Meta-Cognitive Stream:** A third ReAct expert would observe the other streams. Its function is to perform internal reasoning, using ReAct's \"flexible thought space\" to analyze the performance of the other agents, identify patterns of failure (like the \"repetitive generation of previous thoughts and actions\" mentioned as a ReAct error), and update the overall strategy. This leverages ReAct's ability to \"track, and update action plans as well as handle exceptions.\"", + "context_references": [ + "Entity 3: ReAct description (\"flexible thought space\", \"diverse reasoning types\")", + "Entity 7: MoE architecture (\"dynamically selected by a gating function\")" + ] + }, + { + "step_number": 4, + "title": "Step 4: Mechanism for Dynamic Expert Genesis", + "explanation": "The DERN architecture can move beyond static expert allocation by incorporating a mechanism to create new experts on the fly.\n\n**Mechanism:**\n1. **Complexity Detection:** The Meta-Cognitive Stream monitors task performance. When it detects a new type of problem or a consistently high error rate from existing experts, it flags the need for a new specialization.\n2. **Expert Spawning:** Drawing directly from the concept that \"Harder tasks need more experts\" and that \"reinforcement learning can dynamically adjust the architecture of MoE models based on task complexity,\" the agent would trigger a genesis protocol.\n3. **RL-driven Specialization:** This protocol would instantiate a new ReAct stream. This new stream would then be fine-tuned on the specific, difficult task using reinforcement learning, where the reward signal is based on its success in solving the novel problem. This aligns with the context stating that ReAct can be \"combined with complementary paradigms like reinforcement learning.\"", + "context_references": [ + "Entity 1: \"Harder tasks need more experts\"", + "Entity 14: \"Reinforcement learning... can dynamically adjust MoE model architectures based on task complexity\"", + "Relationship 14: Link between reinforcement learning and task complexity for MoE" + ] + }, + { + "step_number": 5, + "title": "Step 5: Mechanisms for Anticipatory Reasoning and Recursive Self-Architecture", + "explanation": "The DERN architecture supports both anticipatory behavior and self-modification through its specialized parallel streams.\n\n**Anticipatory Reasoning Mechanism:**\n* A dedicated **\"World Model\" ReAct Stream** would run continuously in the background. Its core function is to build a predictive model of the environment.\n* It leverages a key feature of ReAct: its \"thoughts or reasoning traces... do not affect the external environment.\" This stream's \"actions\" would exclusively consist of querying external knowledge bases and the environment for information to update its internal model, allowing it to simulate future states without acting upon them.\n\n**Recursive Self-Architecture Mechanism:**\n* The **Meta-Cognitive ReAct Stream** is responsible for self-architecture. It leverages the \"model interpretability\" offered by MoE and the \"interpretable sequential decision-making and reasoning process\" of ReAct.\n* Its \"observations\" are the performance data and reasoning traces of the other streams.\n* Its \"reasoning\" involves identifying bottlenecks, inefficiencies in the Gating Network's routing, or the need for a new expert.\n* Its \"actions\" are internal: modifying the routing policies of the Gating Network or initiating the \"Dynamic Expert Genesis\" protocol.", + "context_references": [ + "Entity 3: ReAct description (\"thoughts or reasoning traces, which are distinct in that they do not affect the external environment\")", + "Entity 4: \"Model interpretability is an opportunity offered by Mixture of Experts (MoE) models\"", + "Entity 3: ReAct promises an \"interpretable sequential decision-making and reasoning process where humans can easily inspect reasoning\"" + ] + }, + { + "step_number": 6, + "title": "Step 6: Emergent Properties and Testable Hypotheses", + "explanation": "The combination of these extended concepts within the DERN architecture gives rise to novel properties and allows for specific, testable hypotheses grounded in the context.\n\n**Novel Emergent Properties:**\n* **Proactive Adaptation:** The agent can prepare for future states rather than just reacting to them.\n* **Recursive Improvement:** The agent can autonomously improve its own cognitive architecture over time by analyzing its performance and creating new, specialized cognitive tools (experts).\n* **Graceful Degradation:** Failure or loops in one ReAct stream (a known issue) do not halt the entire system, as the meta-cognitive stream can detect the failure and reroute the task.\n\n**Testable Hypotheses:**\n1. **Hypothesis 1:** A DERN agent will exhibit a lower rate of \"repetitive thought and action loops\" (a documented ReAct failure mode) on complex tasks compared to a standard ReAct agent, due to the oversight of its meta-cognitive stream.\n2. **Hypothesis 2:** When presented with a series of increasingly diverse tasks, a DERN agent will outperform a static MoE architecture by dynamically spawning new experts, thus solving the MoE challenge of finding the \"optimal number of experts.\"\n3. **Hypothesis 3:** In complex, interactive environments like ALFWorld, a DERN agent will achieve a higher success rate with fewer steps than a standard ReAct agent because its anticipatory reasoning stream can pre-emptively gather information and model environmental responses.", + "context_references": [ + "Document Chunk 3: ReAct error pattern of repetitive loops", + "Entity 9: MoE challenge of determining the optimal number of experts", + "Entity 3: ReAct performance on ALFWorld" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_195920.json b/test_results/complete_workflow_20250815_195920.json new file mode 100644 index 0000000000000000000000000000000000000000..75f37b00ab992c6aa8cc1241a933cc6d096ddfd2 --- /dev/null +++ b/test_results/complete_workflow_20250815_195920.json @@ -0,0 +1,97 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T19:59:00.895656", + "questions": [ + { + "question": "\n You are tasked with designing a fundamentally new AI agent architecture by combining and extending the core principles from ReAct (reasoning-action cycles), Mixture of Experts (specialized parallel processing), and any additional concepts available in your context. The goal is to transcend current agent limitations through principled architectural innovation.\nSpecific Challenge: Current AI agents are fundamentally limited by:\n\nSequential processing (think→plan→act chains)\nStatic expert allocation (fixed capabilities)\nReactive rather than anticipatory behavior\nSingle-threaded consciousness models\n\nYour Task: Design a revolutionary agent architecture that demonstrates:\nParallel Cognitive Streams: How could multiple ReAct cycles operate simultaneously across different abstraction levels (tactical, strategic, meta-cognitive) using MoE principles to coordinate between them?\nDynamic Expert Genesis: How could the agent automatically spawn new specialized experts based on encountered task complexity, rather than using pre-defined expert sets?\nAnticipatory Reasoning: How could the agent maintain continuous background models of environment evolution, enabling proactive rather than reactive decision-making?\nRecursive Self-Architecture: How could the agent use its own reasoning capabilities to redesign its expert allocation and coordination mechanisms?\nRequired Deliverables:\n\nA concrete architectural design showing how ReAct and MoE can be extended beyond current implementations\nSpecific mechanisms for each capability above, grounded in the available concepts\nNovel emergent properties that arise from these combinations\nTestable hypotheses about agent capabilities this would enable\n\nConstraint: Base your design on principled extensions of the concepts in your context, but push those concepts to their logical extremes and unexpected combinations.\"\n ", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 58651, + "total_steps": 6, + "processing_time": 19.535215, + "answer": { + "summary": "The proposed agent architecture integrates ReAct's reasoning-action cycles with MoE's specialized parallel processing, enabling parallel cognitive streams, dynamic expert genesis, anticipatory reasoning, and recursive self-architecture for enhanced AI agent capabilities.", + "confidence_level": "High", + "context_coverage": "High", + "steps": [ + { + "step_number": 1, + "title": "Foundational Concepts: ReAct and MoE", + "explanation": "To design a revolutionary agent architecture, we can start by combining the core strengths of ReAct and Mixture of Experts (MoE). ReAct, as a methodology, enhances Large Language Models (LLMs) by synergizing reasoning and acting through interleaved thought and action steps. This approach allows for grounded, fact-driven, and trustworthy problem-solving by interacting with external knowledge bases and environments. MoE, on the other hand, is an architecture that utilizes specialized 'expert' networks dynamically selected by a gating function. This 'divide and conquer' strategy improves performance, generalization, and computational efficiency, particularly for diverse and complex tasks, by allowing experts to focus on distinct knowledge domains.", + "context_references": [ + "Entity: ReAct", + "Entity: MoE architecture", + "Entity: MoE", + "Document Chunk: 5", + "Document Chunk: 1" + ] + }, + { + "step_number": 2, + "title": "Parallel Cognitive Streams with MoE Coordination", + "explanation": "To address the limitation of sequential processing and enable 'Parallel Cognitive Streams,' we can extend the ReAct methodology by leveraging the MoE architecture. Instead of a single ReAct cycle, we can envision multiple, independent ReAct cycles operating in parallel. Each cycle could represent a different abstraction level or cognitive stream (e.g., tactical for immediate actions, strategic for planning, meta-cognitive for self-monitoring). The MoE's dynamic expert allocation can be used to route specific tasks or sub-problems within each ReAct cycle to specialized 'experts.' A coordination mechanism, potentially also managed by MoE routing or a dedicated meta-cognitive ReAct cycle, would be needed to synchronize these parallel streams, share information, and resolve conflicts.", + "context_references": [ + "Entity: ReAct", + "Entity: MoE architecture", + "Entity: agents", + "Document Chunk: 5", + "Document Chunk: 1" + ] + }, + { + "step_number": 3, + "title": "Dynamic Expert Genesis through Meta-Cognition", + "explanation": "To overcome static expert allocation and enable 'Dynamic Expert Genesis,' the MoE architecture can be further enhanced. Instead of a fixed set of experts, the agent could dynamically spawn new, specialized experts as needed. This would involve a meta-cognitive ReAct cycle that monitors task complexity and the performance of existing experts. When a new type of problem or a significant increase in complexity is detected, the meta-cognitive cycle could initiate the creation of a new expert, potentially by fine-tuning or reconfiguring existing components, or even by synthesizing new 'knowledge' through its own reasoning processes. The gating function within MoE would then need to adapt to include these newly generated experts.", + "context_references": [ + "Entity: ReAct", + "Entity: MoE architecture", + "Entity: intrinsic allocation mechanisms", + "Document Chunk: 5", + "Document Chunk: 1" + ] + }, + { + "step_number": 4, + "title": "Anticipatory Reasoning via Predictive Modeling", + "explanation": "To move beyond reactive behavior towards 'Anticipatory Reasoning,' the agent needs to develop internal models of the environment's potential evolution. Each ReAct cycle, particularly the strategic and meta-cognitive ones, could be tasked with maintaining and updating these predictive models. These models would run in parallel, constantly simulating potential future states based on current observations and learned environmental dynamics. When a ReAct cycle encounters a situation, its reasoning process could query these predictive models to anticipate the consequences of different actions, allowing for proactive decision-making rather than just responding to immediate stimuli. This can be seen as an extension of ReAct's ability to access external knowledge bases, but applied to internal, simulated knowledge about future states.", + "context_references": [ + "Entity: ReAct", + "Entity: agents", + "Document Chunk: 5", + "Document Chunk: 1" + ] + }, + { + "step_number": 5, + "title": "Recursive Self-Architecture via Meta-Cognition", + "explanation": "To enable 'Recursive Self-Architecture,' the agent's meta-cognitive ReAct cycle would be responsible for observing and analyzing the performance of all cognitive streams and expert allocations. This meta-cognitive process can then use its reasoning capabilities to 're-design' the agent's architecture. This could involve re-allocating experts to different streams, adjusting the parameters of the gating functions in MoE, modifying the coordination mechanisms between ReAct cycles, or even suggesting the creation or modification of new expert types. This recursive capability allows the agent to adapt not just its behavior, but its very structure, in response to ongoing experience and evolving task demands, akin to a system that can learn to optimize its own learning process.", + "context_references": [ + "Entity: ReAct", + "Entity: MoE architecture", + "Entity: intrinsic allocation mechanisms", + "Document Chunk: 5", + "Document Chunk: 1" + ] + }, + { + "step_number": 6, + "title": "Emergent Properties and Testable Hypotheses", + "explanation": "Emergent properties from this architecture could include: enhanced adaptability to novel and complex tasks due to dynamic expert genesis and parallel processing; improved strategic planning and foresight from anticipatory reasoning; increased robustness and self-correction capabilities from recursive self-architecture; and a more nuanced understanding of the agent's own cognitive processes, leading to greater transparency. Testable hypotheses could include: agents with this architecture will outperform traditional agents on tasks requiring long-term planning and adaptation to changing environments; the dynamic spawning of experts will lead to more efficient resource utilization for complex problems; and the meta-cognitive loop will enable agents to exhibit 'insight' by reconfiguring their internal structures to solve previously intractable problems.", + "context_references": [ + "Entity: ReAct", + "Entity: MoE architecture", + "Entity: AI systems", + "Document Chunk: 5", + "Document Chunk: 1" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_200429.json b/test_results/complete_workflow_20250815_200429.json new file mode 100644 index 0000000000000000000000000000000000000000..b2aeeb7c34ef1c687a1feab9991927f582ec8d9f --- /dev/null +++ b/test_results/complete_workflow_20250815_200429.json @@ -0,0 +1,74 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T20:04:05.091259", + "questions": [ + { + "question": "\n\nHello, I am a student trying to understand the fundamentals of Mixture-of-Experts (MoE). I have been given this comprehensive survey paper, and I need your help to break it down. Please act as my guide and educator, using only the information within this paper to answer the following questions. My goal is to get a clear, foundational understanding without getting lost in the jargon.\nPlease answer each of these five questions in order, building my knowledge step-by-step:\n1. What is the core idea of Mixture-of-Experts (MoE)?\n* Explain it to me conceptually.\n* Please use a simple analogy (like a team of specialist doctors or consultants) to make the idea intuitive.\n* Reference the \"divide and conquer\" strategy mentioned in the paper's introduction.\n2. What major problems are MoE models designed to solve?\n* According to the paper's abstract and introduction, what are the two main challenges with modern, large AI models that MoE specifically addresses? Please explain each challenge simply.\n3. How does an MoE model actually work?\n* Describe the main components. I see a diagram in Figure 2 with a \"Router\" (or \"gating function\") and several \"Experts.\" What does each part do?\n* Walk me through a simple example of how a piece of data (like a sentence) would flow through this system from input to output.\n4. What are the key mathematical formulas that define this behavior?\n* Please identify one or two of the most fundamental equations from the \"Gating Function\" section (like Equation 1, the softmax gating).\n* For each equation, please don't just show the formula. Explain in simple terms what each part of the equation represents and what the equation as a whole accomplishes. For example, what does softmax do, and what is the purpose of TopK?\n5. What are the main limitations or challenges of using MoE?\n* Based on the paper (especially the \"Future Directions\" or \"Training Strategies\" sections), what are some of the key challenges or trade-offs that come with this architecture?\n* I'm particularly interested in the concepts of \"model collapse\" and \"load balancing\" that seem to be mentioned.\nPlease structure your response clearly, addressing each question thoroughly. Remember, your goal is to teach me these concepts from the ground up using only the provided paper as our textbook. Thank you!\"\n\n\n\n\n\n\n ", + "status": "success", + "query_category": "Balanced / Complex", + "retrieval_params": { + "top_k": 5, + "chunk_top_k": 2, + "mode": "hybrid" + }, + "context_length": 15154, + "total_steps": 5, + "processing_time": 24.331441, + "answer": { + "summary": "Mixture of Experts (MoE) models enhance AI by using specialized 'experts' routed by a gating function, addressing computational and deployment challenges of large models. Key components are the router and experts, working together via a data flow process. The gating function uses softmax and TopK for expert selection, with noise encouraging exploration. Challenges include increased memory usage and ensuring balanced expert utilization to prevent under-training or 'model collapse'.", + "confidence_level": "High", + "context_coverage": "High", + "steps": [ + { + "step_number": 1, + "title": "Conceptual Understanding of Mixture of Experts (MoE)", + "explanation": "The core idea behind Mixture of Experts (MoE) is to enhance model performance by dividing the learning task among multiple specialized sub-models, known as \"experts.\" Instead of a single, monolithic model trying to learn everything, MoE employs a \"divide and conquer\" strategy. This means that different experts within the model can focus on and become proficient in handling specific types of data or tasks. \n\nTo illustrate this, imagine a large hospital with many departments. Instead of having one general doctor try to treat all ailments, a hospital has specialists: a cardiologist for heart issues, a neurologist for brain conditions, a dermatologist for skin problems, and so on. When a patient comes in with a specific problem, a \"triage\" system (similar to an MoE router) directs the patient to the most appropriate specialist. This ensures that the patient receives the best possible care from someone with focused expertise. Similarly, in an MoE model, when a piece of data is presented, a gating network, acting like the triage system, determines which expert(s) are best suited to process that particular input. This specialized processing allows the model to handle diverse data more effectively and efficiently.", + "context_references": [ + "From Entity: 'Mixture of Experts (MoE)'" + ] + }, + { + "step_number": 2, + "title": "Problems Solved by MoE Models", + "explanation": "Mixture of Experts (MoE) models are designed to address two significant challenges faced by foundational large AI models: enormous computational resource consumption and deployment difficulties. \n\n1. **Enormous Computational Resource Consumption**: Foundational large models, due to their vast size and complexity, require an immense amount of computational power for training and operation. This high demand for resources can be a major bottleneck in their development and widespread use. MoE models offer a solution by dynamically selecting and activating only the most relevant sub-models (experts) for a given input. This means that not all parts of the model need to be active for every computation, leading to a more efficient use of computational resources compared to dense models where all parameters are engaged for every input. (From Entity: 'Mixture of Experts (MoE) models', From Entity: 'computational resources')\n2. **Deployment Difficulties**: The sheer size and computational demands of large AI models also lead to significant challenges in deploying them, especially in environments with limited resources. MoE architectures aim to mitigate this by allowing for more efficient utilization and potentially smaller effective model sizes at inference time, depending on the routing strategy. By only activating a subset of experts, MoE can make these powerful models more practical to deploy. (From Entity: 'Mixture of Experts (MoE) models', From Entity: 'deployment difficulties')", + "context_references": [ + "From Entity: 'Mixture of Experts (MoE) models'", + "From Entity: 'computational resources'", + "From Entity: 'deployment difficulties'" + ] + }, + { + "step_number": 3, + "title": "How an MoE Model Works: Components and Data Flow", + "explanation": "An MoE model fundamentally consists of two main components: a **router** (also known as a **gating function**) and a set of **experts**. \n\nThe **router** or **gating function** acts as the intelligence that directs the input data. Its primary role is to determine which of the available experts are best suited to process a given input. It essentially decides how the input data should be allocated among the experts. (From Entity: 'Gating Function', From Entity: 'Router', From Entity: 'Input Data')\n\nThe **experts** are typically smaller, specialized neural networks. Each expert is trained to handle a particular type of data or a specific aspect of the overall task. For instance, in a language model, one expert might be good at understanding grammar, another at factual recall, and yet another at creative writing. (From Entity: 'Mixture of Experts (MoE)')\n\nHere's a simple data flow example: \n1. **Input**: A piece of data, such as a sentence or an image, is fed into the MoE model.\n2. **Gating/Routing**: The gating function receives the input and calculates scores for each expert, indicating how relevant each expert is to this specific input. It then uses these scores to decide which expert(s) to activate. (From Entity: 'Gating Function')\n3. **Expert Processing**: The input data is sent only to the selected expert(s). These activated experts process the data independently.\n4. **Output Combination**: The outputs from the activated experts are combined, often weighted by the gating function's scores, to produce the final output of the MoE model.", + "context_references": [ + "From Entity: 'Mixture of Experts (MoE) models'", + "From Entity: 'Gating Function'", + "From Entity: 'Router'", + "From Entity: 'Input Data'" + ] + }, + { + "step_number": 4, + "title": "Key Mathematical Concepts in Gating", + "explanation": "The behavior of an MoE model is largely governed by its gating function. A key aspect of the gating function involves using a softmax operation to determine the distribution of input data across experts, and a TopK function to select a subset of these experts. \n\nOne fundamental aspect is the **softmax gating function**, which can be broadly represented. While a specific formula isn't detailed here beyond its use of softmax and TopK, the conceptual process is as follows: \n\n* **Gating Value Calculation**: A gating value (g) is calculated using a linear function, which is then typically passed through a softmax operation. The softmax function converts these values into probabilities, ensuring that they sum to 1. This creates a probability distribution over the experts, indicating the likelihood that each expert should process the input. (From Entity: 'Gating Function', From Entity: 'softmax operation')\n* **TopK Selection**: To manage computational load and focus on the most relevant experts, a **TopK function** is often employed. This function selects the 'k' experts with the highest gating values (scores) for a given input. The remaining N-k experts are effectively ignored or assigned a very low weight (conceptually set to negative infinity before softmax, or simply not chosen after). The value of 'k' is a hyperparameter that balances specialization with computational efficiency. (From Entity: 'Gating Function', From Entity: 'hyperparameter k')\n* **Noise**: To encourage broader exploration and prevent experts from becoming too narrowly specialized or ignored, noise can be incorporated into the gating function. (From Entity: 'Gating Function', From Entity: 'noise')\n\nThe order of operations, such as whether TopK is applied before or after softmax, can be flexible and determined by specific design choices. (From Entity: 'Gating Function')", + "context_references": [ + "From Entity: 'Gating Function'", + "From Entity: 'softmax operation'", + "From Entity: 'hyperparameter k'", + "From Entity: 'noise'" + ] + }, + { + "step_number": 5, + "title": "Limitations and Challenges of MoE", + "explanation": "While the provided context highlights the benefits and mechanics of MoE models, it does not contain specific details regarding limitations such as \"model collapse\" or explicit \"training strategies\" sections discussing \"load balancing\" in depth. \n\nHowever, based on general knowledge of MoE architectures and the information available, we can infer potential challenges:\n\n* **Increased Memory Usage**: Although MoE models can be more computationally efficient during inference, they can also increase memory usage because multiple experts need to be loaded. Strategies like loading only activated experts into memory and storing others on disk are mentioned, but this can introduce switching costs that may slow down inference. (From Entity: 'Mixture of Experts (MoE)')\n* **Training Complexity**: Training MoE models can be more complex than training dense models. Ensuring that all experts receive sufficient training data and that the gating network learns to route effectively requires careful tuning of hyperparameters and training procedures. \n* **Load Balancing**: A critical aspect of training is ensuring that the workload is distributed evenly across all experts. If the gating network consistently favors only a few experts, those experts may become over-specialized, while others remain under-trained. This uneven distribution, often referred to as \"load imbalance,\" can hinder the overall performance and efficiency of the MoE model. The context does not elaborate on specific methods to achieve this balance, but it's a known challenge in MoE research.\n* **Model Collapse**: While not explicitly defined in the provided text, \"model collapse\" in the context of MoEs typically refers to a scenario where the gating network fails to distribute the load effectively, leading to a few experts dominating the processing while others become effectively unused or \"collapse\" into a state of limited contribution. This is closely related to load balancing, as poor load balancing can lead to model collapse.", + "context_references": [ + "From Entity: 'Mixture of Experts (MoE)'" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_201043.json b/test_results/complete_workflow_20250815_201043.json new file mode 100644 index 0000000000000000000000000000000000000000..bb9e002d50f99e8d27f24985f61ba378a1ea5be4 --- /dev/null +++ b/test_results/complete_workflow_20250815_201043.json @@ -0,0 +1,51 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T20:10:30.006801", + "questions": [ + { + "question": "\nBased only on the 'A Comprehensive Survey of Mixture-of-Experts' paper, please answer the following:\nWhat is a 'gating function' (also called a 'router')?\nWhat are the two priority criteria the paper states should be used when designing an effective gating function?\nExplain the difference between 'Linear Gating' and 'Non-linear Gating' as described in Section IV-A of the paper.\"\n\n\n ", + "status": "success", + "query_category": "Highly Specific", + "retrieval_params": { + "top_k": 2, + "chunk_top_k": 1, + "mode": "hybrid" + }, + "context_length": 6871, + "total_steps": 3, + "processing_time": 13.742241, + "answer": { + "summary": "The gating function in MoE models routes data to experts based on input and expert characteristics, prioritizing accurate discernment and even data distribution. Information on the difference between linear and non-linear gating is not available in the provided context.", + "confidence_level": "High", + "context_coverage": "High", + "steps": [ + { + "step_number": 1, + "title": "Definition and Role of the Gating Function", + "explanation": "The gating function, also referred to as a router in the context of Mixture of Experts (MoE) models, is a fundamental component responsible for dynamically allocating input data to the most suitable expert networks. It acts as a sophisticated decision-maker, analyzing the characteristics of the input data and the capabilities of the available experts to ensure efficient and effective processing. Its primary role is to select which expert networks will process each input, thereby enabling a form of specialization within the model. This selective routing is crucial for the overall performance and efficiency of MoE architectures.", + "context_references": [ + "Entity: gating function", + "Entity: Gating Function", + "Relationship: expert networks -> gating function", + "Relationship: Experts -> Gating Function" + ] + }, + { + "step_number": 2, + "title": "Priority Criteria for Designing Gating Functions", + "explanation": "When designing an effective gating function, two priority criteria are emphasized. Firstly, the gating function must possess the ability to accurately discern the unique characteristics of both the input data and the available experts. This discernment allows for the assignment of similar data points to the same expert or a group of experts, thereby ensuring that each expert receives a substantial and cohesive training set. Such specialization is vital for experts to cultivate proficiency in specific knowledge domains. Secondly, the gating function should strive for an even distribution of input data among the predefined experts. Imbalanced distribution can lead to a phenomenon known as model collapse, which undermines the efficiency of the MoE framework by underutilizing certain experts. It also degrades performance by failing to adequately separate conflicting knowledge present in the training data.", + "context_references": [ + "Document Chunk: 1" + ] + }, + { + "step_number": 3, + "title": "Linear vs. Non-linear Gating (Information Not Available)", + "explanation": "The provided context does not contain specific details regarding the differences between 'Linear Gating' and 'Non-linear Gating' or elaborate on Section IV-A of the paper. Therefore, a detailed explanation of this specific aspect cannot be provided based on the current information.", + "context_references": [] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_201208.json b/test_results/complete_workflow_20250815_201208.json new file mode 100644 index 0000000000000000000000000000000000000000..535d8b398f83deaea123972f33a317c4c12943f4 --- /dev/null +++ b/test_results/complete_workflow_20250815_201208.json @@ -0,0 +1,66 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T20:11:53.025612", + "questions": [ + { + "question": "\n\"The 'Mixture-of-Experts' paper describes 'sparse activation' as its core mechanism for efficiency. The 'Attention Is All You Need' paper states that its goal is to reduce 'sequential computation' to improve parallelization and efficiency.\nUsing information from both papers, explain how the concept of sparsity in MoE and the concept of parallelization in the Transformer are two different strategies aimed at solving the same fundamental problem: the computational cost of large models.\"\n\n ", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 33837, + "total_steps": 4, + "processing_time": 15.963374, + "answer": { + "summary": "Both MoE and the Transformer address the computational costs of large models through different strategies: MoE uses sparse activation by selectively engaging experts, while the Transformer leverages parallelization by eliminating sequential computation.", + "confidence_level": "High", + "context_coverage": "High", + "steps": [ + { + "step_number": 1, + "title": "The Computational Cost Challenge of Large Models", + "explanation": "The fundamental problem addressed by both Mixture of Experts (MoE) and the Transformer architecture is the computational cost associated with large models. As models grow in size, their computational requirements increase significantly, impacting training and inference.", + "context_references": [ + "From Entity: 'computational and memory challenges'", + "From Entity: 'Larger language models'", + "From Entity: 'computational requirements'" + ] + }, + { + "step_number": 2, + "title": "MoE's Approach: Sparse Activation", + "explanation": "Mixture of Experts (MoE) tackles this challenge by employing a 'divide and conquer' strategy. Instead of using a single, dense model, MoE utilizes multiple specialized 'expert' models. A gating network directs the input to the most relevant experts, meaning only a subset of the model's parameters are activated for any given input. This selective activation is the core of its 'sparse activation' mechanism, which enhances performance without a proportional increase in computational cost.", + "context_references": [ + "From Entity: 'Mixture of Experts (MoE)'", + "From Entity: 'computational costs'", + "From Entity: 'sparse activation mechanisms'" + ] + }, + { + "step_number": 3, + "title": "Transformer's Approach: Parallelization", + "explanation": "The 'Attention Is All You Need' paper introduces the Transformer architecture, which aims to improve efficiency by moving away from sequential computation, characteristic of recurrent neural networks (RNNs). By relying entirely on attention mechanisms, the Transformer can process input dependencies in parallel, significantly reducing the limitations imposed by sequential processing and enabling better parallelization during training and inference.", + "context_references": [ + "From Document Chunk: 5", + "From Entity: 'Mixture of Experts (MoE)'" + ] + }, + { + "step_number": 4, + "title": "Comparing Strategies for Efficiency", + "explanation": "While MoE uses sparse activation to manage computational costs by activating only necessary experts, the Transformer uses parallelization to overcome the bottleneck of sequential computation. Both strategies are designed to handle the increasing complexity and size of modern models more efficiently. MoE aims for parameter efficiency by having specialized experts, while the Transformer aims for computational efficiency by enabling parallel processing of the input sequence.", + "context_references": [ + "From Entity: 'Mixture of Experts (MoE)'", + "From Entity: 'computational efficiency'", + "From Entity: 'parameter efficiency'", + "From Document Chunk: 5" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_201406.json b/test_results/complete_workflow_20250815_201406.json new file mode 100644 index 0000000000000000000000000000000000000000..8d428db1d5816bb82457ce16b74053985c08bb40 --- /dev/null +++ b/test_results/complete_workflow_20250815_201406.json @@ -0,0 +1,54 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T20:13:53.125972", + "questions": [ + { + "question": "\n\"The theme of 'efficiency' is central to several of these papers. Compare and contrast the specific approaches to achieving efficiency described in the following three papers:\nMixture-of-Experts Survey: Focus on 'conditional computation'.\nFederated Learning Paper: Focus on 'communication efficiency'.\nSmall Language Models (SLM) Survey: Focus on the inherent benefits of smaller parameter counts for on-device deployment.\nPlease structure your answer to clearly delineate the distinct type of efficiency each paper prioritizes.\"\n ", + "status": "success", + "query_category": "Broad / Comparative", + "retrieval_params": { + "top_k": 10, + "chunk_top_k": 4, + "mode": "hybrid" + }, + "context_length": 24188, + "total_steps": 3, + "processing_time": 13.265027, + "answer": { + "summary": "MoE achieves efficiency via conditional computation, SLMs through reduced parameters for on-device use, and federated learning (inferred from 'model collaboration') aims for communication efficiency in distributed settings.", + "confidence_level": "High", + "context_coverage": "High", + "steps": [ + { + "step_number": 1, + "title": "Efficiency through Conditional Computation in Mixture-of-Experts (MoE)", + "explanation": "The 'Mixture-of-Experts Survey' (referring to Entity: 'Mixture of Experts (MoE)') discusses a 'divide and conquer' strategy where multiple specialized expert models are used. A gating network dynamically selects the most relevant experts to process input data. This approach allows the model to handle diverse tasks and large datasets without a significant increase in computational overhead, as only activated experts are used for a specific input. This concept of using only relevant experts for a given input is central to achieving efficiency through 'conditional computation'. MoE architectures are designed to enhance parameter efficiency and manage computational costs effectively by activating only relevant experts.", + "context_references": [ + "Entity: Mixture of Experts (MoE)", + "Entity: computational costs", + "Relationship: MoE architectures -> computational costs" + ] + }, + { + "step_number": 2, + "title": "Communication Efficiency in Federated Learning (Inferred)", + "explanation": "While the provided context does not explicitly detail a 'Federated Learning Paper' or its focus on 'communication efficiency', it does mention 'Model collaboration' which can be related. Model collaboration between local SLMs and cloud-based LLMs enhances memory and runtime efficiency by using smaller models on local devices, which are then verified by cloud LLMs. This suggests a paradigm where local computations are optimized and potentially aggregated or managed to improve overall efficiency. Although direct details on communication efficiency in federated learning are absent, the general idea of distributed or collaborative model usage implies a need for efficient communication of information or model states between different entities.", + "context_references": [ + "Entity: Model collaboration" + ] + }, + { + "step_number": 3, + "title": "Inherent Efficiency of Small Language Models (SLMs)", + "explanation": "The 'Small Language Models (SLM) Survey' highlights the inherent benefits of smaller parameter counts for on-device deployment. SLMs, due to having fewer parameters, excel in efficiency, cost, flexibility, and customization. They are presented as a solution to the computational expense of large language models (LLMs) for real-world applications that require specific abilities or domain knowledge. By having fewer parameters, SLMs naturally reduce memory usage and inference time, making them suitable for deployment on devices with limited resources. This inherent characteristic of being 'small' is the primary driver of their efficiency for such applications.", + "context_references": [ + "Entity: Mixture of Experts (MoE)", + "Document Chunk: 1", + "Document Chunk: 3" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_201721.json b/test_results/complete_workflow_20250815_201721.json new file mode 100644 index 0000000000000000000000000000000000000000..1eb93beb43ebff97662fee75d8aada605488caaa --- /dev/null +++ b/test_results/complete_workflow_20250815_201721.json @@ -0,0 +1,98 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T20:17:02.149860", + "questions": [ + { + "question": "\nYour task is to architect a next-generation, decentralized AI ecosystem for on-device intelligence. Your design must be a principled integration of concepts from all the provided research papers.\nDescribe how you would combine:\nThe decentralized training paradigm from the Federated Learning paper.\nThe on-device efficiency and architecture of Small Language Models (SLMs).\nThe Mixture-of-Experts (MoE) architecture to further enhance the on-device SLMs.\nThe reasoning and tool-use capabilities of the ReAct framework.\nThe parallel processing principles from the Transformer ('Attention Is All You Need') as the base architecture for the SLMs.\nExplain how these components would interact to create a system that is private, efficient, and highly capable. Finally, identify the single biggest challenge this integrated system would face.\"\n\n ", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 27584, + "total_steps": 6, + "processing_time": 19.367396, + "answer": { + "summary": "This next-generation AI ecosystem integrates Federated Learning for privacy, Transformer-based SLMs with MoE for efficient on-device intelligence, and the ReAct framework for reasoning and tool-use, facing its biggest challenge in managing system complexity and distributed coordination.", + "confidence_level": "High", + "context_coverage": "High", + "steps": [ + { + "step_number": 1, + "title": "Foundation: Decentralized Training with Federated Learning", + "explanation": "The foundation of this decentralized AI ecosystem is **Federated Learning (FL)**. This approach, as described in the context, is a decentralized machine learning paradigm that enables collective learning from distributed data without centralizing it. Individual devices, such as mobile phones, act as clients that train on their local datasets. These clients then communicate only their computed model updates to a central server, rather than sharing the raw training data itself. This process significantly enhances privacy and security by reducing the potential attack surface on devices, directly addressing the privacy concerns associated with the vast amounts of private data (e.g., from device sensors like cameras, microphones, and GPS) that modern mobile devices collect. FL is presented as a practical method based on iterative model averaging, offering a way to train deep neural networks while minimizing communication rounds and addressing the principal constraint of communication costs. It is particularly noted for being robust to unbalanced and non-IID data distributions common in this setting.", + "context_references": [ + "Entity: Federated Learning", + "Document Chunk: 1", + "Document Chunk: 3", + "Entity: Device Sensors and Private Data", + "Relationship: Device Sensors and Private Data -> Federated Learning", + "Entity: Communication costs", + "Relationship: Communication costs -> Federated Learning", + "Entity: FederatedAveraging algorithm" + ] + }, + { + "step_number": 2, + "title": "On-Device Intelligence: Efficient SLMs with Transformer Architecture", + "explanation": "To ensure efficiency and capability on mobile devices, **Small Language Models (SLMs)** will serve as the core intelligence units. These models are designed to be lightweight and operate effectively within the constraints of on-device hardware. The context mentions that mobile devices can operate lightweight SLMs (0–10B parameters) for real-time tasks, while larger LLMs are offloaded to cloud servers for complex reasoning. This setup allows for efficient local task management. Furthermore, the base architecture for these SLMs will be the **Transformer**, as introduced in the 'Attention Is All You Need' paper. The Transformer architecture, characterized by its reliance solely on attention mechanisms and the elimination of recurrence and convolutions, provides a powerful and parallelizable foundation for natural language processing tasks. Figure 1 also depicts the Transformer model architecture, including its encoder and decoder halves, highlighting its structured nature.", + "context_references": [ + "Entity: Small Language Models in the Era of Large", + "Document Chunk: 5", + "Entity: Abstract", + "Relationship: Abstract -> Transformer", + "Entity: Figure 1" + ] + }, + { + "step_number": 3, + "title": "Enhancing Capabilities: Integrating Mixture-of-Experts (MoE)", + "explanation": "To further enhance the performance and generalization ability of these on-device SLMs, the **Mixture-of-Experts (MoE)** architecture will be integrated. MoE operates on a 'divide and conquer' strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This allows for dynamic adjustment of importance weights and enables the model to leverage specialized 'experts' for different tasks or data types. MoE enhances computational efficiency, making it suitable for complex and diverse tasks on resource-constrained devices. It also offers flexibility by allowing models to dynamically select suitable expert networks and adjust capacity, reducing task interference and improving specialization. MoE can be applied within the federated learning framework to handle heterogeneous data distributions across clients, and it is noted that MoE enhances LLM performance.", + "context_references": [ + "Entity: MoE", + "Entity: Federated Learning", + "Relationship: AI systems -> MoE", + "Entity: AI systems", + "Entity: model interpretability" + ] + }, + { + "step_number": 4, + "title": "Advanced Functionality: Incorporating ReAct for Reasoning and Tool-Use", + "explanation": "To equip the on-device AI with reasoning and tool-use capabilities, the **ReAct (Reason+Act) framework** will be incorporated. While not explicitly detailed in terms of its architecture in the provided snippets, ReAct is mentioned in conjunction with other prompting methods in Figure 1. The broader concept of combining reasoning and acting is stated to enhance model interpretability, allowing humans to distinguish between internal knowledge and external environments. By integrating ReAct principles, the SLMs can generate intermediate reasoning traces and interact with external tools or the device's environment, leading to more sophisticated problem-solving and task execution directly on the device.", + "context_references": [ + "Entity: Figure 1", + "Entity: model interpretability" + ] + }, + { + "step_number": 5, + "title": "Synergistic Interaction of Components", + "explanation": "The interaction between these components creates a cohesive ecosystem. Federated Learning provides the decentralized training mechanism, ensuring user privacy by keeping data on devices. The SLMs, built on the Transformer architecture and enhanced with MoE, handle the on-device processing efficiently. The MoE component allows for specialized processing and adaptation to diverse on-device data, while the Transformer provides a robust, attention-based backbone. The ReAct framework enables these on-device models to perform complex reasoning and interact with their environment or tools, simulating a more intelligent agent. For instance, a user interacting with their device might trigger an SLM that uses ReAct to understand the request, break it down, consult its MoE-enhanced knowledge base, and formulate a response or action, all without sending raw data to a central server. The FL process then aggregates updates from many such devices to improve the global model.", + "context_references": [ + "Entity: Federated Learning", + "Entity: MoE", + "Entity: Small Language Models in the Era of Large", + "Entity: Figure 1", + "Entity: Abstract" + ] + }, + { + "step_number": 6, + "title": "Biggest Challenge: System Complexity and Coordination", + "explanation": "The single biggest challenge this integrated system would face is **managing complexity and ensuring robust, efficient coordination across a highly distributed and heterogeneous environment**. This includes: **1. Communication Efficiency:** Despite FL aiming to reduce communication costs, optimizing the size and frequency of model updates (especially with MoE components that can be large) remains critical. **2. Model Heterogeneity:** Devices have varying computational capabilities, sensor data, and network conditions, making it challenging to train a single, coherent global model. **3. MoE Coordination:** Effectively routing tasks to the appropriate experts within the MoE structure on diverse devices and aggregating expert knowledge learned through FL requires sophisticated coordination mechanisms. **4. ReAct Integration:** Ensuring that the ReAct framework can be effectively implemented and utilized by SLMs across different device contexts, and that the 'tools' it interacts with are compatible and accessible, adds another layer of complexity. **5. Federated Optimization:** Adapting standard optimization techniques to the nuances of FL with MoE and ReAct, especially concerning non-IID data and potential 'stragglers' (slow devices), is a significant hurdle.", + "context_references": [ + "Entity: Federated Learning", + "Entity: Communication costs", + "Entity: MoE", + "Entity: ReAct framework", + "Entity: heterogeneity" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_204354.json b/test_results/complete_workflow_20250815_204354.json new file mode 100644 index 0000000000000000000000000000000000000000..f84ba33d006a73444c0e5d1d577d41451b78065a --- /dev/null +++ b/test_results/complete_workflow_20250815_204354.json @@ -0,0 +1,91 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T20:43:38.339280", + "questions": [ + { + "question": "\nYour task is to architect a next-generation, decentralized AI ecosystem for on-device intelligence. Your design must be a principled integration of concepts from all the provided research papers.\nDescribe how you would combine:\nThe decentralized training paradigm from the Federated Learning paper.\nThe on-device efficiency and architecture of Small Language Models (SLMs).\nThe Mixture-of-Experts (MoE) architecture to further enhance the on-device SLMs.\nThe reasoning and tool-use capabilities of the ReAct framework.\nThe parallel processing principles from the Transformer ('Attention Is All You Need') as the base architecture for the SLMs.\nExplain how these components would interact to create a system that is private, efficient, and highly capable. Finally, identify the single biggest challenge this integrated system would face.\"\n\n ", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 27584, + "total_steps": 6, + "processing_time": 15.703647, + "answer": { + "summary": "This proposed AI ecosystem integrates Federated Learning, Transformer-based SLMs enhanced with MoE and ReAct principles for privacy, efficiency, and capability on decentralized devices, facing heterogeneity as its primary challenge.", + "confidence_level": "High", + "context_coverage": "High", + "steps": [ + { + "step_number": 1, + "title": "Foundation: Federated Learning for Privacy and Decentralization", + "explanation": "The foundation of our decentralized AI ecosystem will be **Federated Learning (FL)**. This approach allows for collective learning from distributed data without centralizing it, thereby prioritizing user privacy and data security. Individual devices, such as mobile phones, will act as clients, training on their local datasets. Instead of sharing raw data, these clients will communicate only their computed model updates to a central server. This method is particularly effective for problems with decentralized data and aims to train deep neural networks while minimizing communication rounds. By decoupling model training from direct access to raw data, FL significantly enhances privacy and security by reducing the potential attack surface on devices. This forms the core of our privacy-preserving, on-device intelligence strategy. From Document Chunk: 1, From Document Chunk: 3, From Entity: Federated Learning", + "context_references": [ + "Document Chunk: 1", + "Document Chunk: 3", + "Entity: Federated Learning" + ] + }, + { + "step_number": 2, + "title": "On-Device Intelligence: SLMs with Transformer Architecture", + "explanation": "To ensure efficiency and capability on individual devices, we will leverage **Small Language Models (SLMs)**. These models are designed for on-device applications and are optimized to run with limited resources. To further enhance their performance and enable complex reasoning, the SLMs will be built upon the **Transformer architecture**. This architecture, as described in the context, relies solely on attention mechanisms and eliminates recurrence and convolutions, offering a simpler yet powerful foundation for sequence transduction tasks. The Transformer's encoder and decoder halves will form the basis of our SLMs, providing a robust architecture for on-device processing. From Document Chunk: 5, From Entity: Transformer, From Relationship: Abstract -> Transformer", + "context_references": [ + "Document Chunk: 5", + "Entity: Transformer", + "Relationship: Abstract -> Transformer" + ] + }, + { + "step_number": 3, + "title": "Enhancing SLMs with Mixture-of-Experts (MoE)", + "explanation": "To boost the capabilities of our on-device SLMs, we will integrate the **Mixture-of-Experts (MoE)** architecture. MoE enhances performance, generalization ability, and computational efficiency by employing a 'divide and conquer' strategy. It dynamically selects and activates a subset of parameters based on input data characteristics, allowing for specialized processing. By integrating MoE into the SLMs, we enable them to handle diverse tasks and data distributions more effectively, improving their precision and efficiency in processing complex or diverse text data. This approach allows models to dynamically select the most suitable expert networks and flexibly adjust model capacity, reducing task interference and enhancing model specialization. From Entity: MoE", + "context_references": [ + "Entity: MoE" + ] + }, + { + "step_number": 4, + "title": "Enabling Reasoning and Tool-Use with ReAct Principles", + "explanation": "To imbue these on-device SLMs with advanced reasoning and tool-use capabilities, we will incorporate principles from the **ReAct framework**. While the provided context does not detail the ReAct framework itself, it mentions its use in comparing prompting methods for task-solving, showcasing task-solving trajectories. The integration of reasoning and acting, as suggested in relation to model interpretability, allows for a more nuanced understanding and interaction with the environment. This component would enable the SLMs to not only process information but also to reason about it and use external tools or actions to accomplish complex tasks, thereby enhancing their overall utility and adaptability. From Entity: model interpretability, From Relationship: model interpretability -> robust and transparent AI systems", + "context_references": [ + "Entity: model interpretability", + "Relationship: model interpretability -> robust and transparent AI systems" + ] + }, + { + "step_number": 5, + "title": "Synergistic Integration for a Decentralized AI Ecosystem", + "explanation": "The interaction of these components would create a synergistic ecosystem: **Federated Learning** provides the privacy-preserving, decentralized training backbone. On-device **SLMs**, built on the **Transformer** architecture, handle local processing efficiently. **MoE** enhances the SLMs' adaptability and performance by allowing for specialized expert utilization. The **ReAct framework** principles would equip these models with the ability to reason and interact with their environment or tools. This integrated system aims to leverage the vast, private data residing on mobile devices to train sophisticated AI models that are efficient, private, and capable of complex tasks, improving user experience directly on the device. From Document Chunk: 1, From Document Chunk: 3, From Document Chunk: 5, From Entity: Federated Learning, From Entity: MoE, From Entity: Transformer, From Entity: model interpretability, From Relationship: Abstract -> Transformer, From Relationship: model interpretability -> robust and transparent AI systems", + "context_references": [ + "Document Chunk: 1", + "Document Chunk: 3", + "Document Chunk: 5", + "Entity: Federated Learning", + "Entity: MoE", + "Entity: Transformer", + "Entity: model interpretability", + "Relationship: Abstract -> Transformer", + "Relationship: model interpretability -> robust and transparent AI systems" + ] + }, + { + "step_number": 6, + "title": "The Biggest Challenge: Managing Heterogeneity", + "explanation": "The single biggest challenge this integrated system would face is **heterogeneity**. This refers to the variations in data distributions across different clients (Non-IID data) and the diverse capabilities (processing power, memory, network connectivity) of the myriad of on-device hardware. Federated Learning is known to be sensitive to Non-IID data, which can harm model learning performance and lead to convergence issues. The MoE architecture, while designed to handle diversity, also adds complexity in managing different experts across heterogeneous environments. Ensuring consistent and efficient training, where models generalize well across all devices and data types, will require sophisticated techniques to mitigate these heterogeneity challenges. From Document Chunk: 4, From Entity: Federated Learning, From Entity: heterogeneity, From Entity: MoE, From Relationship: federated learning -> heterogeneity", + "context_references": [ + "Document Chunk: 4", + "Entity: Federated Learning", + "Entity: heterogeneity", + "Entity: MoE", + "Relationship: federated learning -> heterogeneity" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_204627.json b/test_results/complete_workflow_20250815_204627.json new file mode 100644 index 0000000000000000000000000000000000000000..940d23e2c1fb8171cb608039937b861f90750787 --- /dev/null +++ b/test_results/complete_workflow_20250815_204627.json @@ -0,0 +1,95 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T20:46:13.242468", + "questions": [ + { + "question": "\nYour task is to architect a next-generation, decentralized AI ecosystem for on-device intelligence. Your design must be a principled integration of concepts from all the provided research papers.\nDescribe how you would combine:\nThe decentralized training paradigm from the Federated Learning paper.\nThe on-device efficiency and architecture of Small Language Models (SLMs).\nThe Mixture-of-Experts (MoE) architecture to further enhance the on-device SLMs.\nThe reasoning and tool-use capabilities of the ReAct framework.\nThe parallel processing principles from the Transformer ('Attention Is All You Need') as the base architecture for the SLMs.\nExplain how these components would interact to create a system that is private, efficient, and highly capable. Finally, identify the single biggest challenge this integrated system would face.\"\n\n ", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 5, + "mode": "hybrid" + }, + "context_length": 27584, + "total_steps": 7, + "processing_time": 14.311428, + "answer": { + "summary": "This integrated AI ecosystem leverages Federated Learning for privacy-preserving decentralized training, Small Language Models (SLMs) built on Transformer architecture for on-device efficiency, enhanced by Mixture-of-Experts (MoE) for improved performance, and the ReAct framework for advanced reasoning and tool-use capabilities. The primary challenge lies in managing the system's inherent complexity and heterogeneity, particularly concerning efficient model synchronization and performance across diverse devices.", + "confidence_level": "High", + "context_coverage": "High", + "steps": [ + { + "step_number": 1, + "title": "Foundation: Federated Learning for Decentralized Training", + "explanation": "The foundation of our decentralized AI ecosystem is **Federated Learning (FL)**, a paradigm that enables training on data distributed across numerous devices without centralizing it. This approach is crucial for preserving user privacy and data security, as only model updates, not raw data, are shared with a central server for aggregation. FL allows devices, such as mobile phones, to act as clients, training on their local datasets and contributing to a global model. This method is particularly effective for problems with decentralized data, aiming to train deep neural networks while minimizing communication rounds and reducing the attack surface on devices. Optimization problems in this framework are known as federated optimization.", + "context_references": [ + "From Entity: Federated Learning", + "From Document Chunk: 1" + ] + }, + { + "step_number": 2, + "title": "On-Device Intelligence: Small Language Models (SLMs)", + "explanation": "To ensure efficiency and capability on mobile devices, we will leverage **Small Language Models (SLMs)**. These models are designed to operate effectively on resource-constrained devices, allowing for real-time tasks and local management. The system architecture can involve mobile devices running lightweight SLMs (e.g., 0–10B parameters) for immediate processing, while offloading more complex reasoning or planning tasks to cloud servers equipped with larger Language Models (LLMs). This synergy between on-device SLMs and cloud-based LLMs, as described in systems optimizing for mobile device and cloud server collaboration, ensures efficient local task management while benefiting from the power of larger models when necessary.", + "context_references": [ + "From Document Chunk: 5" + ] + }, + { + "step_number": 3, + "title": "Enhancing SLMs with Mixture-of-Experts (MoE)", + "explanation": "To further enhance the capabilities of these on-device SLMs, we integrate the **Mixture-of-Experts (MoE)** architecture. MoE models operate on a \"divide and conquer\" strategy, dynamically selecting and activating a subset of parameters based on input data characteristics. This allows for dynamic adjustment of importance weights across different modalities or tasks, enabling effective integration of information without the high complexity of traditional single models. MoE provides a scalable and flexible framework for tackling complex, multifaceted datasets and diverse knowledge domains efficiently. By using specialized \"experts,\" MoE can enhance performance, generalization ability, and computational efficiency, making models more precise when processing complex or diverse data.", + "context_references": [ + "From Entity: MoE", + "From Document Chunk: 2" + ] + }, + { + "step_number": 4, + "title": "Architectural Backbone: Transformer for SLMs", + "explanation": "The **Transformer** architecture, with its reliance on attention mechanisms and parallel processing, will serve as the foundational architecture for our SLMs. This design, which eliminates recurrence and convolutions in favor of attention, allows for more efficient computation and processing of sequential data. The Transformer's encoder and decoder halves are key components in processing information, enabling the model to understand context and relationships within the data. This architecture is fundamental to the capabilities of modern LLMs and will be adapted for efficiency in SLMs.", + "context_references": [ + "From Entity: Abstract", + "From Relationship: Abstract -> Transformer" + ] + }, + { + "step_number": 5, + "title": "Reasoning and Action: The ReAct Framework", + "explanation": "To imbue these SLMs with advanced reasoning and tool-use capabilities, we will incorporate principles from the **ReAct (Reason+Act) framework**. ReAct combines reasoning and acting, allowing humans to distinguish between internal knowledge and external environments. This framework enables the model to reason about a task, decide on an action, execute that action (e.g., use a tool), and then observe the outcome to refine its reasoning. This iterative process of thought and action is crucial for complex problem-solving and interacting with the environment, enhancing the model's ability to perform sophisticated tasks on-device.", + "context_references": [ + "From Entity: model interpretability" + ] + }, + { + "step_number": 6, + "title": "Integrated Ecosystem: Private, Efficient, Capable AI", + "explanation": "The integration of these components creates a cohesive ecosystem: **Federated Learning** provides the secure, decentralized training backbone, ensuring privacy by keeping data on-device. **SLMs**, built upon the efficient **Transformer** architecture, handle on-device processing. The **MoE** architecture further optimizes these SLMs for diverse tasks and computational efficiency. Finally, the **ReAct framework** equips these SLMs with advanced reasoning and tool-use capabilities, allowing them to intelligently interact with their environment and solve complex problems. This synergy results in a private, efficient, and highly capable on-device AI system. Federated learning, by its nature, also addresses the challenge of data heterogeneity by training on diverse, decentralized datasets, although it requires careful management.", + "context_references": [ + "From Entity: Federated Learning", + "From Entity: MoE", + "From Entity: model interpretability", + "From Document Chunk: 1", + "From Document Chunk: 2" + ] + }, + { + "step_number": 7, + "title": "Biggest Challenge: Complexity and Heterogeneity Management", + "explanation": "The single biggest challenge this integrated system would face is managing the **complexity and heterogeneity** inherent in combining these advanced concepts. Specifically, efficiently synchronizing models trained via Federated Learning across numerous devices, each with varying computational power and data distributions (heterogeneity), presents a significant hurdle. Optimizing communication costs, a principal constraint in FL, while ensuring the MoE-enhanced SLMs leverage the Transformer architecture and ReAct capabilities effectively, requires sophisticated distributed systems and optimization techniques. The pathological nature of Non-IID data, as highlighted in federated learning contexts, further complicates convergence and performance, demanding robust solutions for handling data imbalances and variations across clients.", + "context_references": [ + "From Entity: Federated Learning", + "From Entity: MoE", + "From Document Chunk: 4", + "From Document Chunk: 1", + "From Relationship: federated learning -> heterogeneity", + "From Entity: Communication costs", + "From Entity: communication overhead" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/complete_workflow_20250815_204914.json b/test_results/complete_workflow_20250815_204914.json new file mode 100644 index 0000000000000000000000000000000000000000..48c57e98169f6c0a5ca12a7edcba74883deb9709 --- /dev/null +++ b/test_results/complete_workflow_20250815_204914.json @@ -0,0 +1,75 @@ +{ + "test_type": "complete_workflow", + "timestamp": "2025-08-15T20:48:53.503418", + "questions": [ + { + "question": "\nYour task is to act as a senior AI researcher. Based on the foundational concepts from the provided research papers (MoE, ReAct, Federated Learning, SLMs, and Transformers), propose a novel research project that investigates their intersection in a meaningful way.\nThe goal is not just to build a system that combines these ideas, but to design a project that would scientifically study their synergies and trade-offs.\nYour proposal must be creative, plausible, and grounded in the principles from the papers. Please structure your response as a formal research project proposal with the following sections:\n1. Project Title:\n* Come up with a compelling, memorable name for the project.\n2. Core Idea & Motivation:\n* In one paragraph, explain the central idea of your research project. Why is studying this specific intersection important? What fundamental gap in our understanding would this project address?\n3. Key Research Questions:\n* List at least three specific, unanswered research questions that your project would aim to investigate. These questions should highlight the tensions and potential synergies between the different technologies. For example, how does the sparsity of MoE interact with the communication constraints of Federated Learning?\n4. Proposed Architecture:\n* Describe the hypothetical AI agent or system at the heart of your project. Explain how it integrates:\n* SLMs as the on-device model.\n* Transformer architecture as the foundation.\n* Mixture-of-Experts (MoE) as an internal architectural choice for the SLM.\n* ReAct as the agent's operational logic for reasoning and tool-use.\n* Federated Learning as the training paradigm for these agents across a fleet of devices.\n5. Methodology & Evaluation:\n* Briefly explain how you would conduct this research.\n* What kind of simulated environment or tasks would you use?\n* What key metrics would you measure to answer your research questions? (e.g., communication cost, task success rate, inference latency, a metric for expert specialization).\nYour final output should be a well-structured, compelling research proposal that could plausibly be presented at a top-tier AI conference workshop. Be innovative in how you connect the concepts.\"\n ", + "status": "success", + "query_category": "Concept Connection", + "retrieval_params": { + "top_k": 12, + "chunk_top_k": 10, + "mode": "hybrid" + }, + "context_length": 29390, + "total_steps": 5, + "processing_time": 20.954991, + "answer": { + "summary": "This project proposes a novel research initiative to integrate Small Language Models (SLMs) with Mixture-of-Experts (MoE) and the ReAct framework, trained via Federated Learning, to create intelligent, efficient, and interpretable agents for distributed environments.", + "confidence_level": "High", + "context_coverage": "High", + "steps": [ + { + "step_number": 1, + "title": "Project Title", + "explanation": "The project is titled 'Federated MoE-ReAct Agents (FMoE-RA): Towards Synergistic and Interpretable AI Across Distributed Devices'. This title encapsulates the core components of the proposed research: Federated Learning, Mixture-of-Experts (MoE), ReAct framework, and the overarching goal of developing synergistic and interpretable AI agents operating in a distributed manner.", + "context_references": [] + }, + { + "step_number": 2, + "title": "Core Idea & Motivation", + "explanation": "The core idea of this research project is to investigate the intersection of Small Language Models (SLMs) enhanced with Mixture-of-Experts (MoE) architectures and the ReAct framework, trained collaboratively using Federated Learning (FL). The motivation stems from the growing need for efficient, capable AI agents that can operate and learn on edge devices without centralizing sensitive data. SLMs offer a computationally feasible solution for on-device processing, while MoE allows for conditional computation and specialization, potentially boosting efficiency and performance. The ReAct framework provides a powerful mechanism for agents to reason and interact with their environment, and Federated Learning enables collaborative training without compromising data privacy. Studying this intersection is crucial to understand how MoE's sparsity and expert specialization interact with ReAct's reasoning-action loops and the communication constraints inherent in Federated Learning. This research aims to bridge the gap in understanding how to effectively build and train such complex, distributed intelligent agents, optimizing for performance, communication efficiency, and interpretability.", + "context_references": [ + "Document Chunk: 10", + "Document Chunk: 1", + "Document Chunk: 6" + ] + }, + { + "step_number": 3, + "title": "Key Research Questions", + "explanation": "This project will address the following key research questions:\n\n1. **Synergy and Trade-offs of MoE within ReAct Agents under Federated Learning:** How does the sparse activation of MoE experts impact the reasoning and action selection processes in a ReAct agent? Specifically, how can expert specialization be fostered and leveraged for diverse tasks while mitigating potential negative interactions or routing inefficiencies within the ReAct framework under federated training constraints?\n\n2. **Communication Efficiency and Model Performance in Federated MoE-ReAct:** What is the communication overhead associated with federated learning of MoE-based ReAct agents compared to non-MoE or monolithic SLMs? How does this overhead trade-off against improvements in task performance, such as accuracy, efficiency, and generalization across a fleet of devices?\n\n3. **Interpretability and Robustness of Federated MoE-ReAct Agents:** Can the inherent modularity and specialized knowledge of MoE experts within a ReAct agent enhance model interpretability and robustness in a federated learning setting? Specifically, can we analyze expert assignments and reasoning traces to understand failure modes or identify emergent specialized skills across the distributed agent population?", + "context_references": [ + "Document Chunk: 10", + "Document Chunk: 6", + "Document Chunk: 1" + ] + }, + { + "step_number": 4, + "title": "Proposed Architecture", + "explanation": "The proposed architecture centers around an AI agent built upon a Transformer foundation, leveraging a Transformer-based SLM. This SLM will internally utilize a Mixture-of-Experts (MoE) architecture, where distinct 'expert' sub-networks are dynamically routed to process specific parts of the input or perform specialized computations. The operational logic of the agent will be governed by the ReAct (Reasoning and Acting) framework, enabling it to generate intermediate reasoning traces (like thoughts) before taking actions in an environment. This agent, in turn, will be trained using Federated Learning (FL). In this setup, multiple instances of these MoE-enhanced ReAct SLM agents reside on individual devices (clients). During training, each client independently updates its local model based on its private data. These local updates are then aggregated by a central server to form a global model, which is then distributed back to the clients. This approach allows the collective intelligence of the fleet to improve without direct data sharing. The MoE architecture's sparse activation aligns well with the efficiency goals of SLMs and the potential for specialized expertise, while ReAct provides the reasoning capabilities needed to effectively utilize these experts, and FL ensures privacy and scalability.", + "context_references": [ + "Document Chunk: 10", + "Document Chunk: 1", + "Document Chunk: 6", + "Document Chunk: 3" + ] + }, + { + "step_number": 5, + "title": "Methodology & Evaluation", + "explanation": "To conduct this research, we would employ a simulated environment that mimics a distributed system of agents. This could be a collection of benchmark tasks designed to test reasoning, tool use, and collaborative problem-solving, such as interactive question answering, simple goal-directed navigation, or multi-agent coordination tasks. The methodology would involve training the federated MoE-ReAct agents across a simulated fleet of clients. We would compare different configurations of the MoE architecture (e.g., number of experts, expert capacity) and ReAct's reasoning depth against baselines including: \n1. Standard SLMs with ReAct (non-MoE).\n2. Federated learning of standard SLMs (non-MoE, non-ReAct).\n3. Federated learning of MoE SLMs (without ReAct).\n\nKey metrics to evaluate would include:\n* **Task Success Rate:** The overall accuracy or completion rate of the agents on the target tasks.\n* **Communication Cost:** The total amount of data transferred between clients and the server during federated training, measured in bytes or communication rounds.\n* **Inference Latency:** The time taken for an agent to process an input and produce an output (thought-action sequence) on a simulated edge device.\n* **Expert Specialization Metric:** A measure quantifying how distinctly different experts within the MoE architecture specialize in specific sub-tasks, reasoning patterns, or data types. This could involve analyzing attention patterns or routing probabilities.\n* **Model Interpretability Score:** A qualitative or quantitative assessment of how understandable the agents' decision-making processes are, potentially through analyzing reasoning traces and expert activations.\n* **Robustness to Non-IID Data:** Evaluating performance degradation or improvement when client data distributions are highly varied, as is common in federated learning.", + "context_references": [ + "Document Chunk: 1", + "Document Chunk: 3", + "Document Chunk: 10", + "Document Chunk: 6", + "Document Chunk: 9" + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_092431_20250816_092354.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_092431_20250816_092354.json new file mode 100644 index 0000000000000000000000000000000000000000..6910a5a6ad0d71b699ba2d8bbb9d6f13e97b78a6 --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_092431_20250816_092354.json @@ -0,0 +1,142 @@ +{ + "session_id": "20250816_092354", + "timestamp": "2025-08-16T09:23:54.225158", + "topic": "Transformers and variance in attention mechanisms", + "max_questions": 3, + "focus_categories": [ + "methodology" + ], + "processing_time_seconds": 37.079534, + "results": { + "topic": "Transformers and variance in attention mechanisms", + "total_questions": 6, + "successful_answers": 2, + "failed_questions": 4, + "success_rate": 0.3333333333333333, + "total_processing_time": 37.07953381538391, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What is the primary focus of research into transformers and variance in attention mechanisms?", + "category": "overview", + "priority": 9, + "rationale": "This question establishes a foundational understanding of the research topic, helping to frame the subsequent inquiry into specific aspects of transformers and attention mechanisms." + }, + "answer": null, + "status": "failed", + "processing_time": 6.035803318023682, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "methodology", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "How is variance quantified and analyzed within the attention mechanisms of transformer models?", + "category": "methodology", + "priority": 10, + "rationale": "Understanding the methodologies used to measure and analyze variance is crucial for interpreting the findings. This question delves into the technical 'how-to' of the research." + }, + "answer": null, + "status": "failed", + "processing_time": 5.965805292129517, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "innovation", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "What novel insights or techniques have emerged from studying variance in transformer attention mechanisms?", + "category": "innovation", + "priority": 8, + "rationale": "This question aims to identify the key advancements or new perspectives contributed by this line of research, highlighting its innovative aspects." + }, + "answer": "The provided context explains the mechanics of multi-head attention in transformers, including its components and how they process information. It also references figures that visualize model performance in various contexts, such as finetuning and comparing different methods. However, it does not explicitly detail novel insights or techniques that have emerged specifically from studying the variance within these attention mechanisms.", + "status": "completed", + "processing_time": 19.360724210739136, + "error_message": null, + "confidence_score": null + } + ] + }, + { + "category": "evaluation", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What experimental setups or benchmarks are used to evaluate the impact of variance in attention mechanisms?", + "category": "evaluation", + "priority": 7, + "rationale": "Knowing how the effects of variance are tested provides context for the results and helps assess the robustness of the findings. It addresses the validation aspect of the research." + }, + "answer": null, + "status": "failed", + "processing_time": 5.963804244995117, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "results", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What are the key findings regarding the relationship between variance in attention mechanisms and transformer model performance?", + "category": "results", + "priority": 9, + "rationale": "This question targets the core outcomes of the research, seeking to understand the practical implications of variance on how well transformers function." + }, + "answer": null, + "status": "failed", + "processing_time": 5.962804794311523, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "comparison", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "How do different approaches to managing or accounting for variance in attention mechanisms compare against each other?", + "category": "comparison", + "priority": 8, + "rationale": "Comparing different methods is essential for understanding their relative strengths and weaknesses, thereby informing the choice of approach in future work." + }, + "answer": "The provided context outlines various concepts related to attention mechanisms, including Multi-Head Attention and Mixture-of-Experts, but does not contain information that directly compares different approaches for managing or accounting for variance within attention mechanisms.", + "status": "completed", + "processing_time": 9.943940162658691, + "error_message": null, + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": "The provided context details the Transformer architecture, multi-head attention, and related techniques like MoE and LoRA. However, it lacks specific information on novel insights or comparative approaches concerning variance in transformer attention mechanisms." + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_092522_20250816_092354.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_092522_20250816_092354.json new file mode 100644 index 0000000000000000000000000000000000000000..e0cad3346fa689063ea9029fb05750c37d23eec2 --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_092522_20250816_092354.json @@ -0,0 +1,42 @@ +{ + "session_id": "20250816_092354", + "timestamp": "2025-08-16T09:25:22.937339", + "topic": "Moe models ", + "max_questions": 3, + "focus_categories": [ + "methodology" + ], + "processing_time_seconds": 0.008527, + "results": { + "topic": "Moe models ", + "total_questions": 1, + "successful_answers": 0, + "failed_questions": 1, + "success_rate": 0.0, + "total_processing_time": 0.008527040481567383, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What is the main contribution of research on Moe models ?", + "category": "overview", + "priority": 8, + "rationale": "Essential for basic understanding" + }, + "answer": null, + "status": "failed", + "processing_time": 0.005020618438720703, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": "No successful answers to summarize." + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_092536_20250816_092354.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_092536_20250816_092354.json new file mode 100644 index 0000000000000000000000000000000000000000..f0929353e838c479666fc751f1928f99e199a01c --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_092536_20250816_092354.json @@ -0,0 +1,202 @@ +{ + "session_id": "20250816_092354", + "timestamp": "2025-08-16T09:25:26.978079", + "topic": "Moe models ", + "max_questions": 3, + "focus_categories": [ + "methodology" + ], + "processing_time_seconds": 9.694283, + "results": { + "topic": "Moe models ", + "total_questions": 9, + "successful_answers": 0, + "failed_questions": 9, + "success_rate": 0.0, + "total_processing_time": 9.694283723831177, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What are Mixture-of-Experts (MoE) models and what is their primary purpose in machine learning?", + "category": "overview", + "priority": 10, + "rationale": "This question establishes a foundational understanding of MoE models, their core concept, and their main objective, which is crucial for any further investigation." + }, + "answer": null, + "status": "failed", + "processing_time": 1.0807268619537354, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "methodology", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "How do Mixture-of-Experts (MoE) models function? Describe the roles of the gating network and the expert networks.", + "category": "methodology", + "priority": 10, + "rationale": "Understanding the internal mechanics of MoE models is essential. This question probes the fundamental architecture and operational flow, including the critical gating and expert components." + }, + "answer": null, + "status": "failed", + "processing_time": 2.5147416591644287, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "innovation", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What are the key innovations or architectural improvements introduced by Mixture-of-Experts (MoE) models compared to traditional dense models?", + "category": "innovation", + "priority": 9, + "rationale": "This question aims to identify the novel aspects of MoE models that differentiate them from existing approaches, highlighting their unique contributions to the field." + }, + "answer": null, + "status": "failed", + "processing_time": 1.3934721946716309, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "evaluation", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "How are Mixture-of-Experts (MoE) models typically evaluated? What datasets, benchmarks, and metrics are commonly used?", + "category": "evaluation", + "priority": 8, + "rationale": "To assess the effectiveness of MoE models, it's important to know how their performance is measured. This question covers the standard evaluation practices." + }, + "answer": null, + "status": "failed", + "processing_time": 2.1326279640197754, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "results", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What are the typical performance outcomes and advantages observed when using Mixture-of-Experts (MoE) models across different tasks?", + "category": "results", + "priority": 8, + "rationale": "This question focuses on the empirical evidence and key findings related to MoE models' performance, providing insights into their practical benefits." + }, + "answer": null, + "status": "failed", + "processing_time": 2.287897825241089, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "limitations", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What are the acknowledged limitations and challenges associated with implementing and training Mixture-of-Experts (MoE) models?", + "category": "limitations", + "priority": 9, + "rationale": "Understanding the drawbacks and difficulties is critical for a balanced perspective. This question addresses potential issues like training instability or complex implementation." + }, + "answer": null, + "status": "failed", + "processing_time": 1.3357598781585693, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "applications", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "In which domains or specific applications have Mixture-of-Experts (MoE) models shown significant promise or been successfully deployed?", + "category": "applications", + "priority": 7, + "rationale": "This question explores the practical relevance and real-world impact of MoE models, identifying areas where they offer tangible benefits." + }, + "answer": null, + "status": "failed", + "processing_time": 1.2016489505767822, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "future_work", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What are the promising future research directions and potential advancements for Mixture-of-Experts (MoE) architectures?", + "category": "future_work", + "priority": 7, + "rationale": "Identifying future work helps understand the ongoing evolution of MoE models and potential areas for further innovation and improvement." + }, + "answer": null, + "status": "failed", + "processing_time": 1.2790467739105225, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "comparison", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "How do Mixture-of-Experts (MoE) models compare against other large model architectures, such as dense transformers, in terms of performance, efficiency, and scalability?", + "category": "comparison", + "priority": 9, + "rationale": "Contextualizing MoE models within the broader landscape of large model architectures is crucial for understanding their comparative advantages and disadvantages." + }, + "answer": null, + "status": "failed", + "processing_time": 1.310039758682251, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": "No successful answers to summarize." + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_093420_20250816_093345.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_093420_20250816_093345.json new file mode 100644 index 0000000000000000000000000000000000000000..13e400dd3eac98c472c81bc1ee335c8799f8a6bc --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_093420_20250816_093345.json @@ -0,0 +1,111 @@ +{ + "session_id": "20250816_093345", + "timestamp": "2025-08-16T09:33:45.074174", + "topic": "transformers and their connection to MOE ", + "max_questions": 4, + "focus_categories": [ + "overview", + "methodology", + "innovation", + "evaluation", + "results", + "limitations", + "applications", + "future_work", + "comparison", + "implementation" + ], + "processing_time_seconds": 35.028221, + "results": { + "topic": "transformers and their connection to MOE ", + "total_questions": 4, + "successful_answers": 1, + "failed_questions": 3, + "success_rate": 0.25, + "total_processing_time": 35.02721619606018, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What is the fundamental connection between the Transformer architecture and Mixture-of-Experts (MoE) models?", + "category": "overview", + "priority": 9, + "rationale": "This question addresses the core relationship between the two concepts, which is essential for understanding how MoE enhances or modifies standard Transformers." + }, + "answer": null, + "status": "failed", + "processing_time": 6.442437648773193, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "methodology", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "How are Mixture-of-Experts implemented within the Transformer architecture, specifically in terms of routing mechanisms and expert specialization?", + "category": "methodology", + "priority": 9, + "rationale": "Understanding the implementation details is crucial for grasping the technical underpinnings of how MoE-based Transformers function and differ from dense Transformers." + }, + "answer": null, + "status": "failed", + "processing_time": 6.434191942214966, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "innovation", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What are the key innovations and advantages that MoE brings to Transformer models, such as improved efficiency, scalability, or performance on specific tasks?", + "category": "innovation", + "priority": 8, + "rationale": "This question focuses on the novel contributions of integrating MoE, highlighting why this combination is significant in the field." + }, + "answer": null, + "status": "failed", + "processing_time": 6.433191537857056, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "comparison", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "How do MoE-enhanced Transformers compare to traditional dense Transformer models in terms of computational cost, performance metrics, and parameter efficiency?", + "category": "comparison", + "priority": 8, + "rationale": "Comparing MoE Transformers to their dense counterparts provides critical context for evaluating the benefits and trade-offs of the MoE approach." + }, + "answer": "MoE-enhanced Transformers offer significant advantages in computational cost and performance by selectively activating parts of the model, contrasting with traditional dense Transformers that process all parameters. While MoE provides efficiency gains and scalability, challenges in memory overhead and training efficiency at extreme scales persist.", + "status": "completed", + "processing_time": 19.411521911621094, + "error_message": null, + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": "MoE-enhanced Transformers improve computational cost and performance over dense models by selectively activating specialized parts, though challenges in training efficiency and memory overhead at scale exist. Research in MoE dates back to the 1990s and continues with models like Mixtral and methodologies for scaling and efficiency." + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_093520_20250816_093345.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_093520_20250816_093345.json new file mode 100644 index 0000000000000000000000000000000000000000..1ee8d84e01e6a5965ca26bff385ae7743ad0f051 --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_093520_20250816_093345.json @@ -0,0 +1,40 @@ +{ + "session_id": "20250816_093345", + "timestamp": "2025-08-16T09:35:20.479432", + "topic": "Transformers , what problems do they solve and how do they solve it and what are the results that the paper showcases ", + "max_questions": 5, + "focus_categories": [], + "processing_time_seconds": 0.008004, + "results": { + "topic": "Transformers , what problems do they solve and how do they solve it and what are the results that the paper showcases ", + "total_questions": 1, + "successful_answers": 0, + "failed_questions": 1, + "success_rate": 0.0, + "total_processing_time": 0.008003711700439453, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What is the main contribution of research on Transformers , what problems do they solve and how do they solve it and what are the results that the paper showcases ?", + "category": "overview", + "priority": 8, + "rationale": "Essential for basic understanding" + }, + "answer": null, + "status": "failed", + "processing_time": 0.003999948501586914, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": "No successful answers to summarize." + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_093528_20250816_093345.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_093528_20250816_093345.json new file mode 100644 index 0000000000000000000000000000000000000000..4803a282daa8d46e5e0208689f09bd725b465e6d --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_093528_20250816_093345.json @@ -0,0 +1,120 @@ +{ + "session_id": "20250816_093345", + "timestamp": "2025-08-16T09:35:22.798326", + "topic": "Transformers , what problems do they solve and how do they solve it and what are the results that the paper showcases ", + "max_questions": 5, + "focus_categories": [], + "processing_time_seconds": 5.551555, + "results": { + "topic": "Transformers , what problems do they solve and how do they solve it and what are the results that the paper showcases ", + "total_questions": 5, + "successful_answers": 0, + "failed_questions": 5, + "success_rate": 0.0, + "total_processing_time": 5.551554918289185, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What specific problems in natural language processing do Transformer models aim to solve?", + "category": "overview", + "priority": 9, + "rationale": "This question is crucial for understanding the motivation behind Transformers and the context of their development. It sets the stage for appreciating their impact." + }, + "answer": null, + "status": "failed", + "processing_time": 2.394712209701538, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "methodology", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "How does the self-attention mechanism in Transformers work, and what is its role in processing sequential data?", + "category": "methodology", + "priority": 10, + "rationale": "The self-attention mechanism is the core innovation of Transformers. Understanding its mechanics is fundamental to grasping how they achieve state-of-the-art results and differ from previous architectures like RNNs and LSTMs." + }, + "answer": null, + "status": "failed", + "processing_time": 1.225616455078125, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "results", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What were the key performance improvements and benchmark results demonstrated by the original Transformer model in its introduction paper?", + "category": "results", + "priority": 9, + "rationale": "This question focuses on the empirical evidence presented in the foundational work. It's essential for understanding the quantifiable impact and validation of the Transformer architecture." + }, + "answer": null, + "status": "failed", + "processing_time": 1.207348346710205, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "innovation", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What are the key innovations of the Transformer architecture compared to previous sequence-to-sequence models like RNNs and LSTMs?", + "category": "innovation", + "priority": 9, + "rationale": "Understanding the unique contributions of Transformers helps to contextualize their significance. Identifying the innovations clarifies why they marked a departure from and improvement over existing methods." + }, + "answer": null, + "status": "failed", + "processing_time": 1.1056716442108154, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "applications", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "Beyond machine translation, what other natural language processing tasks have benefited significantly from the Transformer architecture, and how?", + "category": "applications", + "priority": 8, + "rationale": "This question explores the broader applicability and impact of Transformers, highlighting their versatility and the extent to which they have influenced various areas within NLP." + }, + "answer": null, + "status": "failed", + "processing_time": 1.522383213043213, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": "No successful answers to summarize." + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_093532_20250816_093345.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_093532_20250816_093345.json new file mode 100644 index 0000000000000000000000000000000000000000..6c1263a95f7daca2e7817edf23a69421c3fa5532 --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_093532_20250816_093345.json @@ -0,0 +1,40 @@ +{ + "session_id": "20250816_093345", + "timestamp": "2025-08-16T09:35:32.906847", + "topic": "Transformers , what problems do they solve and how do they solve it and what are the results that the paper showcases ", + "max_questions": 5, + "focus_categories": [], + "processing_time_seconds": 0.00851, + "results": { + "topic": "Transformers , what problems do they solve and how do they solve it and what are the results that the paper showcases ", + "total_questions": 1, + "successful_answers": 0, + "failed_questions": 1, + "success_rate": 0.0, + "total_processing_time": 0.008509635925292969, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What is the main contribution of research on Transformers , what problems do they solve and how do they solve it and what are the results that the paper showcases ?", + "category": "overview", + "priority": 8, + "rationale": "Essential for basic understanding" + }, + "answer": null, + "status": "failed", + "processing_time": 0.0055103302001953125, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": "No successful answers to summarize." + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_093540_20250816_093536.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_093540_20250816_093536.json new file mode 100644 index 0000000000000000000000000000000000000000..2c20289babcfd7c8bc67af7520d44fceccafda1a --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_093540_20250816_093536.json @@ -0,0 +1,106 @@ +{ + "session_id": "20250816_093536", + "timestamp": "2025-08-16T09:35:34.444584", + "topic": "Transformers , what problems do they solve and how do they solve it and what are the results that the paper showcases ", + "max_questions": 5, + "focus_categories": [], + "processing_time_seconds": 5.849957, + "results": { + "topic": "Transformers , what problems do they solve and how do they solve it and what are the results that the paper showcases ", + "total_questions": 5, + "successful_answers": 0, + "failed_questions": 5, + "success_rate": 0.0, + "total_processing_time": 5.849956512451172, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What specific problems in natural language processing do Transformer models aim to solve?", + "category": "overview", + "priority": 9, + "rationale": "This question establishes the fundamental motivation behind Transformers, addressing the 'what problems' aspect of the user's request and providing context for their development." + }, + "answer": null, + "status": "failed", + "processing_time": 0.019585609436035156, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "methodology", + "questions_processed": 2, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What is the core mechanism of the Transformer architecture (e.g., self-attention) and how does it enable the model to solve these problems?", + "category": "methodology", + "priority": 10, + "rationale": "This is crucial for understanding 'how they solve it,' delving into the key innovation and technical approach of Transformers. The self-attention mechanism is central to their success." + }, + "answer": null, + "status": "failed", + "processing_time": 2.164815902709961, + "error_message": "No context available for answering", + "confidence_score": null + }, + { + "question": { + "question": "How does the Transformer architecture differ from previous sequence-to-sequence models (e.g., RNNs, LSTMs) in its approach to processing sequential data?", + "category": "methodology", + "priority": 8, + "rationale": "Understanding the differences highlights the 'innovation' and provides a comparative perspective, essential for grasping why Transformers represent an advancement." + }, + "answer": null, + "status": "failed", + "processing_time": 2.2071480751037598, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "results", + "questions_processed": 2, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What are the key performance metrics and experimental results presented in the research that showcase the effectiveness of Transformer models on the identified problems?", + "category": "results", + "priority": 9, + "rationale": "This directly addresses the 'what are the results' part of the user's query, focusing on empirical evidence and the demonstrated impact of the models." + }, + "answer": null, + "status": "failed", + "processing_time": 1.278132438659668, + "error_message": "No context available for answering", + "confidence_score": null + }, + { + "question": { + "question": "On which specific NLP tasks or benchmarks do Transformer models demonstrate state-of-the-art or significantly improved results, and what are these results?", + "category": "results", + "priority": 8, + "rationale": "This question adds specificity to the 'results' by asking about the domains and tasks where Transformers excel, providing concrete evidence of their capabilities." + }, + "answer": null, + "status": "failed", + "processing_time": 2.0406577587127686, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": "No successful answers to summarize." + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_093626_20250816_093536.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_093626_20250816_093536.json new file mode 100644 index 0000000000000000000000000000000000000000..c7ed4f9a544aac47441a890e94451f9b65a9d690 --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_093626_20250816_093536.json @@ -0,0 +1,40 @@ +{ + "session_id": "20250816_093536", + "timestamp": "2025-08-16T09:36:26.621568", + "topic": "Transformers , What do they mean and what problem do they solve , how do they solve it , and what are the results and limitations ", + "max_questions": 4, + "focus_categories": [], + "processing_time_seconds": 0.008078, + "results": { + "topic": "Transformers , What do they mean and what problem do they solve , how do they solve it , and what are the results and limitations ", + "total_questions": 1, + "successful_answers": 0, + "failed_questions": 1, + "success_rate": 0.0, + "total_processing_time": 0.00807809829711914, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What is the main contribution of research on Transformers , What do they mean and what problem do they solve , how do they solve it , and what are the results and limitations ?", + "category": "overview", + "priority": 8, + "rationale": "Essential for basic understanding" + }, + "answer": null, + "status": "failed", + "processing_time": 0.006077766418457031, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": "No successful answers to summarize." + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_093636_20250816_093536.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_093636_20250816_093536.json new file mode 100644 index 0000000000000000000000000000000000000000..7e1a530afaf143dd74eeb9fbe907c0856d212c7e --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_093636_20250816_093536.json @@ -0,0 +1,140 @@ +{ + "session_id": "20250816_093536", + "timestamp": "2025-08-16T09:36:28.499490", + "topic": "Transformers , What do they mean and what problem do they solve , how do they solve it , and what are the results and limitations ", + "max_questions": 4, + "focus_categories": [], + "processing_time_seconds": 7.741512, + "results": { + "topic": "Transformers , What do they mean and what problem do they solve , how do they solve it , and what are the results and limitations ", + "total_questions": 6, + "successful_answers": 0, + "failed_questions": 6, + "success_rate": 0.0, + "total_processing_time": 7.741512298583984, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What is the core problem that the Transformer architecture aims to solve in sequence modeling, and what are its main contributions to the field?", + "category": "overview", + "priority": 10, + "rationale": "This question establishes the fundamental context and significance of the Transformer model, addressing the 'what' and 'why' of its existence. Understanding the problem it solves is crucial for grasping its impact." + }, + "answer": null, + "status": "failed", + "processing_time": 2.20357084274292, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "methodology", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "Can you explain the key mechanisms of the Transformer architecture, specifically the self-attention and multi-head attention layers, and how they enable parallel processing and capture long-range dependencies?", + "category": "methodology", + "priority": 10, + "rationale": "This delves into the 'how' of the Transformer. Understanding self-attention is critical as it's the core innovation differentiating it from previous sequential models like RNNs and LSTMs. It explains *how* Transformers process information efficiently." + }, + "answer": null, + "status": "failed", + "processing_time": 1.2455778121948242, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "innovation", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What are the primary innovations of the Transformer model compared to prior state-of-the-art sequence-to-sequence models (e.g., RNNs, LSTMs), particularly in terms of handling sequential data and computational efficiency?", + "category": "innovation", + "priority": 9, + "rationale": "This question focuses on the novelty of the Transformer. By comparing it to existing methods, it highlights *what* makes the Transformer a breakthrough and advances the field, addressing the 'what's new' aspect." + }, + "answer": null, + "status": "failed", + "processing_time": 2.2804086208343506, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "evaluation", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "How has the performance of Transformer models been evaluated in seminal research, including the datasets, benchmarks, and metrics used to demonstrate their effectiveness, particularly in natural language processing tasks?", + "category": "evaluation", + "priority": 8, + "rationale": "This question addresses the validation of the Transformer's capabilities. Understanding the evaluation methods is key to assessing the reliability and generalizability of its performance claims." + }, + "answer": null, + "status": "failed", + "processing_time": 1.3185017108917236, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "results", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What are the key findings and performance results reported in influential Transformer papers, and how do these results showcase the advantages of the architecture over previous models?", + "category": "results", + "priority": 8, + "rationale": "This focuses on the outcomes and evidence supporting the Transformer's effectiveness. It answers the 'what results' question, providing concrete data on its success." + }, + "answer": null, + "status": "failed", + "processing_time": 1.228672742843628, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "limitations", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What are the acknowledged limitations and computational costs associated with the Transformer architecture, such as its quadratic complexity with sequence length and its data requirements?", + "category": "limitations", + "priority": 9, + "rationale": "Understanding limitations is crucial for a balanced perspective. This question identifies the constraints and potential drawbacks of Transformers, guiding future research and practical application." + }, + "answer": null, + "status": "failed", + "processing_time": 1.1393146514892578, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": "No successful answers to summarize." + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_095046_20250816_093536.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_095046_20250816_093536.json new file mode 100644 index 0000000000000000000000000000000000000000..e2fa94ac5ed104f7076fb4ba7cde0b79eee5314a --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_095046_20250816_093536.json @@ -0,0 +1,42 @@ +{ + "session_id": "20250816_093536", + "timestamp": "2025-08-16T09:50:46.309034", + "topic": "transformers how do they work? ", + "max_questions": 2, + "focus_categories": [ + "methodology" + ], + "processing_time_seconds": 0.00912, + "results": { + "topic": "transformers how do they work? ", + "total_questions": 1, + "successful_answers": 0, + "failed_questions": 1, + "success_rate": 0.0, + "total_processing_time": 0.009119749069213867, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What is the main contribution of research on transformers how do they work? ?", + "category": "overview", + "priority": 8, + "rationale": "Essential for basic understanding" + }, + "answer": null, + "status": "failed", + "processing_time": 0.00499725341796875, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": "No successful answers to summarize." + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_095054_20250816_093536.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_095054_20250816_093536.json new file mode 100644 index 0000000000000000000000000000000000000000..a22009b882dc0b5cad1636c91ee9b5932eb3a626 --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_095054_20250816_093536.json @@ -0,0 +1,142 @@ +{ + "session_id": "20250816_093536", + "timestamp": "2025-08-16T09:50:48.057027", + "topic": "transformers how do they work? ", + "max_questions": 2, + "focus_categories": [ + "methodology" + ], + "processing_time_seconds": 6.158821, + "results": { + "topic": "transformers how do they work? ", + "total_questions": 6, + "successful_answers": 0, + "failed_questions": 6, + "success_rate": 0.0, + "total_processing_time": 6.1588215827941895, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What is the fundamental concept behind Transformers and what problem do they aim to solve in sequence modeling?", + "category": "overview", + "priority": 10, + "rationale": "This question establishes the foundational understanding of what Transformers are and their primary purpose, which is crucial for any further inquiry." + }, + "answer": null, + "status": "failed", + "processing_time": 0.9420638084411621, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "methodology", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "Can you break down the self-attention mechanism in Transformers, explaining how it allows the model to weigh the importance of different words in a sequence?", + "category": "methodology", + "priority": 10, + "rationale": "Self-attention is the core innovation of Transformers. Understanding its mechanics is key to grasping how the model processes information and achieves its performance." + }, + "answer": null, + "status": "failed", + "processing_time": 2.340226411819458, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "innovation", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What are the key architectural innovations of the Transformer model compared to previous dominant architectures like RNNs and LSTMs?", + "category": "innovation", + "priority": 9, + "rationale": "Identifying the novel aspects of the Transformer architecture in relation to prior work highlights its advancements and the reasons for its success." + }, + "answer": null, + "status": "failed", + "processing_time": 2.295142889022827, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "evaluation", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "On which benchmark datasets and tasks were Transformers originally evaluated, and what were the key metrics used to demonstrate their effectiveness?", + "category": "evaluation", + "priority": 8, + "rationale": "Understanding the evaluation setup provides insight into how the model's performance was validated and allows for comparison with other models." + }, + "answer": null, + "status": "failed", + "processing_time": 1.0035030841827393, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "results", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "What were the primary performance gains or results achieved by the Transformer model on the tasks it was evaluated on?", + "category": "results", + "priority": 7, + "rationale": "This question focuses on the outcomes and the quantitative evidence of the Transformer's capabilities, which is essential for understanding its impact." + }, + "answer": null, + "status": "failed", + "processing_time": 2.0502312183380127, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + }, + { + "category": "comparison", + "questions_processed": 1, + "successful_answers": 0, + "results": [ + { + "question": { + "question": "How does the computational complexity (e.g., in terms of time and memory) of the Transformer architecture compare to recurrent neural networks (RNNs) and convolutional neural networks (CNNs) for sequence processing?", + "category": "comparison", + "priority": 8, + "rationale": "Comparing computational complexity is vital for understanding the practical trade-offs and scalability of Transformers versus other architectures." + }, + "answer": null, + "status": "failed", + "processing_time": 1.1742548942565918, + "error_message": "No context available for answering", + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": "No successful answers to summarize." + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_095651_20250816_095601.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_095651_20250816_095601.json new file mode 100644 index 0000000000000000000000000000000000000000..0660377ee9c8b163a972d3574fd7f68a7311e5bb --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_095651_20250816_095601.json @@ -0,0 +1,135 @@ +{ + "session_id": "20250816_095601", + "timestamp": "2025-08-16T09:56:01.894283", + "topic": "transformers how do they work?", + "max_questions": 2, + "focus_categories": [ + "methodology" + ], + "processing_time_seconds": 49.83887, + "results": { + "topic": "transformers how do they work?", + "total_questions": 6, + "successful_answers": 6, + "failed_questions": 0, + "success_rate": 1.0, + "total_processing_time": 49.83887028694153, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "What is the fundamental concept behind the Transformer architecture and what problem does it aim to solve in sequence-to-sequence tasks?", + "category": "overview", + "priority": 9, + "rationale": "This question is essential for establishing a baseline understanding of the Transformer's purpose and its place in the broader field of sequence modeling." + }, + "answer": "The Transformer architecture replaces recurrence with attention mechanisms to solve the problem of modeling long-range dependencies and limited parallelization in sequence-to-sequence tasks.", + "status": "completed", + "processing_time": 23.62951922416687, + "error_message": null, + "confidence_score": null + } + ] + }, + { + "category": "methodology", + "questions_processed": 2, + "successful_answers": 2, + "results": [ + { + "question": { + "question": "How does the self-attention mechanism within Transformers work, and what are its key mathematical components?", + "category": "methodology", + "priority": 10, + "rationale": "The self-attention mechanism is the core innovation of Transformers. Understanding its mechanics is crucial for grasping how the model processes sequences and captures long-range dependencies." + }, + "answer": "The Transformer architecture fundamentally relies on self-attention mechanisms, particularly Scaled Dot-Product Attention, which uses queries, keys, and values processed through matrix multiplication, scaling, and softmax to compute weighted representations of sequences, enabling efficient handling of long-range dependencies.", + "status": "completed", + "processing_time": 27.598573684692383, + "error_message": null, + "confidence_score": null + }, + { + "question": { + "question": "Describe the role of positional encodings in the Transformer architecture and why they are necessary.", + "category": "methodology", + "priority": 8, + "rationale": "Positional information is critical for sequence understanding, and Transformers handle this differently than recurrent models. Understanding positional encodings is key to how Transformers process sequential data." + }, + "answer": "Positional embeddings are essential in the Transformer architecture to provide token order information that self-attention mechanisms lack, enabling effective sequence processing.", + "status": "completed", + "processing_time": 25.213820457458496, + "error_message": null, + "confidence_score": null + } + ] + }, + { + "category": "innovation", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "What were the primary limitations of previous sequence modeling architectures (like RNNs and LSTMs) that Transformers were designed to overcome?", + "category": "innovation", + "priority": 8, + "rationale": "Understanding the shortcomings of prior work highlights the specific innovations and advantages offered by the Transformer architecture." + }, + "answer": "Transformers overcome the sequential processing limitations and the difficulty in learning long-term dependencies inherent in RNNs and LSTMs by utilizing self-attention mechanisms, which allow for parallel computation and direct modeling of relationships between distant sequence elements.", + "status": "completed", + "processing_time": 27.597573280334473, + "error_message": null, + "confidence_score": null + } + ] + }, + { + "category": "evaluation", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "On what benchmark datasets and tasks were Transformers initially evaluated, and what metrics were used to demonstrate their effectiveness?", + "category": "evaluation", + "priority": 7, + "rationale": "This question helps to understand the empirical validation of the Transformer's capabilities and provides context for its performance claims." + }, + "answer": "The context explains the Transformer architecture and its components but does not provide information on the specific benchmarks or metrics used for its initial evaluation.", + "status": "completed", + "processing_time": 24.070610284805298, + "error_message": null, + "confidence_score": null + } + ] + }, + { + "category": "results", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "What were the key findings and performance improvements reported in the original Transformer paper compared to contemporary models?", + "category": "results", + "priority": 7, + "rationale": "Knowing the reported results provides concrete evidence of the Transformer's impact and justifies its subsequent widespread adoption." + }, + "answer": "The Transformer architecture, by relying solely on attention mechanisms, achieved state-of-the-art performance in translation and demonstrated strong generalization, offering superior quality, parallelizability, and reduced training time compared to earlier recurrent and convolutional models.", + "status": "completed", + "processing_time": 9.896185874938965, + "error_message": null, + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": "The Transformer architecture revolutionized sequence modeling by replacing recurrence with self-attention mechanisms, enabling better handling of long-range dependencies and parallelization. This led to state-of-the-art performance in tasks like machine translation, setting a new paradigm in NLP." + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_100432_20250816_100335.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_100432_20250816_100335.json new file mode 100644 index 0000000000000000000000000000000000000000..1980e2740d3a02def8f922e96d8d8569b9194163 --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_100432_20250816_100335.json @@ -0,0 +1,122 @@ +{ + "session_id": "20250816_100335", + "timestamp": "2025-08-16T10:03:35.965493", + "topic": "transformers attention mechanism", + "max_questions": 2, + "focus_categories": [ + "methodology" + ], + "processing_time_seconds": 56.613098, + "results": { + "topic": "transformers attention mechanism", + "total_questions": 5, + "successful_answers": 5, + "failed_questions": 0, + "success_rate": 1.0, + "total_processing_time": 56.61309838294983, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "What is the fundamental concept behind the attention mechanism in Transformers, and what problem does it aim to solve in sequence modeling?", + "category": "overview", + "priority": 9, + "rationale": "This question addresses the core purpose and foundational understanding of the attention mechanism, which is crucial before delving into specifics." + }, + "answer": "## Summary\nThe attention mechanism in Transformers fundamentally solves the problem of long-range dependencies in sequence modeling by allowing direct, weighted connections between any two elements in a sequence, irrespective of their distance, thereby overcoming the limitations of traditional recurrent neural networks.\n\n***Confidence:** High | **Context Coverage:** Good*\n\n## Detailed Analysis\n\n### 1. The Dominance of Recurrent Neural Networks\n\nBefore the advent of attention mechanisms, sequence transduction tasks were largely dominated by Recurrent Neural Networks (RNNs), including variants like Long Short-Term Memory (LSTM). These models process sequences by maintaining a hidden state that is updated at each step, theoretically allowing them to capture dependencies between elements in the sequence. RNNs were considered state-of-the-art for problems such as language modeling and machine translation. (From Entity: 'Recurrent neural networks', From Entity: 'Long Short-Term Memory (LSTM)', From Relationship: 'Recurrent neural networks -> sequence modeling', From Relationship: 'Recurrent neural networks -> transduction problems')\n\n*Sources: Recurrent neural networks, Long Short-Term Memory (LSTM)*\n\n### 2. The Problem of Long-Range Dependencies in RNNs\n\nA key challenge with traditional RNNs, especially when dealing with long sequences, is the difficulty in preserving information over extended intervals. This 'long-range dependency' problem means that elements far apart in a sequence might have their relationship weakened or lost by the time the network processes them. While mechanisms like LSTM were developed to mitigate this, the sequential nature of processing itself inherently limits how effectively distant elements can be related.\n\n*Sources: Recurrent neural networks, Long Short-Term Memory (LSTM)*\n\n### 3. The Fundamental Concept of Attention Mechanisms\n\nAttention mechanisms emerged as a powerful solution to overcome the limitations of sequential computation in RNNs. The core idea is to allow the model to directly 'attend' to different parts of the input sequence when processing a particular element, regardless of their distance. This means that for any given output element, the model can dynamically weigh the importance of all input elements, creating a more direct connection between them. This ability to model dependencies without regard to their distance in the sequence is a fundamental departure from the strictly sequential processing of RNNs.\n\n*Sources: Attention Mechanisms, Attention mechanisms, Abstract*\n\n### 4. The Transformer's Reliance on Attention\n\nThe Transformer architecture represents a paradigm shift by eschewing recurrence and relying entirely on attention mechanisms. Instead of processing sequences step-by-step, the Transformer uses attention to draw global dependencies between input and output elements. This is achieved through self-attention and multi-head attention mechanisms, which allow the model to compute representations by considering all positions in the input and output sequences simultaneously. This approach contrasts with the typical encoder-decoder structures that use recurrent networks and are often connected by attention mechanisms.\n\n*Sources: Transformer, Attention Mechanisms, Abstract, Comparison of Self-Attention Layers*\n\n### 5. Solving Sequential Bottlenecks\n\nBy moving away from recurrence, attention mechanisms solve the problem of sequential computation bottlenecks and the inherent difficulty in capturing long-range dependencies. The Transformer's design allows it to model dependencies without regard to their distance in the input or output sequences, making it more efficient and effective for various sequence transduction tasks like machine translation and language modeling. This fundamental concept of direct, weighted connections between sequence elements, unhindered by sequential processing, is what empowers the Transformer.\n\n*Sources: Transformer, Attention mechanisms, Recurrent network, Abstract*", + "status": "completed", + "processing_time": 8.924080848693848, + "error_message": null, + "confidence_score": null + } + ] + }, + { + "category": "methodology", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "Can you explain the detailed mathematical formulation of the self-attention mechanism (e.g., scaled dot-product attention) used in the Transformer architecture?", + "category": "methodology", + "priority": 10, + "rationale": "Understanding the mathematical underpinnings is key to grasping how the attention mechanism functions computationally and why it's effective." + }, + "answer": "## Summary\nThe Transformer architecture uses Scaled Dot-Product Attention, a mechanism that calculates attention scores from Query, Key, and Value vectors through matrix multiplication, scaling, and SoftMax, to produce a weighted sum of values, enabling effective sequence representation.\n\n***Confidence:** High | **Context Coverage:** High*\n\n## Detailed Analysis\n\n### 1. Introduction to Self-Attention in Transformers\n\nThe Transformer architecture, a revolutionary approach to sequence transduction tasks, relies heavily on attention mechanisms, specifically multi-headed self-attention. This design allows the Transformer to compute representations of its input and output solely through self-attention, moving away from traditional recurrent or convolutional layers. This shift enables greater parallelization and reduced training time. The core of this mechanism is Scaled Dot-Product Attention, which serves as a fundamental building block within the broader Transformer framework. It's a type of attention function that maps a query and a set of key-value pairs to an output, computed as a weighted sum of values.\n\n*Sources: From Entity: 'Transformer', From Entity: 'Scaled Dot-Product Attention'*\n\n### 2. Mathematical Formulation: Query, Key, and Matrix Multiplication\n\nScaled Dot-Product Attention operates by taking three inputs: Query (Q), Key (K), and Value (V) vectors. To compute the attention weights, the mechanism first performs a matrix multiplication between the Query (Q) and the transpose of the Key (K) matrices. This operation, denoted as QKᵀ, calculates the similarity or compatibility between each query and all keys. Following this, a scaling factor is applied, specifically dividing by the square root of the dimension of the key vectors ($\\sqrt{d_k}$). This scaling is crucial for stabilizing the gradients during training.\n\n*Sources: From Entity: 'Scaled Dot-Product Attention', From Document Chunk: 1*\n\n### 3. Applying SoftMax and Optional Masking\n\nAfter the scaling step, an optional masking process can be applied. Masking is used, for instance, in the decoder to prevent positions from attending to subsequent positions, thus preserving the auto-regressive property. Values corresponding to illegal connections are masked out, typically by setting them to negative infinity. Subsequently, a SoftMax function is applied to the scaled and potentially masked scores. The SoftMax function converts these scores into probabilities, ensuring that the attention weights for each query sum up to 1.\n\n*Sources: From Entity: 'Scaled Dot-Product Attention', From Document Chunk: 1, From Document Chunk: 2*\n\n### 4. Calculating the Attention Output\n\nThe final output of the Scaled Dot-Product Attention mechanism is obtained by multiplying the computed attention probabilities (from the SoftMax function) with the corresponding Value (V) vectors. This weighted sum of value vectors represents the output of the attention mechanism, where each value is weighted by its relevance to the query, as determined by the attention scores. The relationship between these components is central to how the Transformer processes information.\n\n*Sources: From Entity: 'Scaled Dot-Product Attention', From Document Chunk: 1*\n\n### 5. Self-Attention within Layers\n\nThe Transformer architecture utilizes self-attention layers as a core component. In these layers, all keys, values, and queries originate from the same source: the output of the preceding layer. This allows each position within a sequence to attend to all other positions in that same sequence, enabling the model to capture dependencies regardless of their distance. This contrasts with other layers like Feed-Forward Networks (FFNs) which have different properties. The self-attention mechanism can be mathematically represented as: Attention(Q, K, V) = softmax(QKᵀ / √d<0xE2><0x82><0x96>)V, where Q, K, and V are matrices of queries, keys, and values, and d<0xE2><0x82><0x96> is the dimension of the key matrices. This formulation highlights the integration of similarity scores (QKᵀ), scaling, probability distribution (softmax), and weighted aggregation of values.\n\n*Sources: From Entity: 'self-attention layers', From Document Chunk: 1*\n\n### 6. Role in Multi-Head Attention\n\nFurthermore, Scaled Dot-Product Attention is a foundational element of the Multi-Head Attention mechanism. In Multi-Head Attention, Scaled Dot-Product Attention is executed multiple times in parallel, referred to as 'heads.' Each head processes different linear projections of the original Q, K, and V inputs. The outputs from these parallel heads are then concatenated, allowing the model to jointly attend to information from different representation subspaces at different positions. This parallel application and subsequent combination of Scaled Dot-Product Attention is key to the Transformer's power.\n\n*Sources: From Entity: 'Scaled Dot-Product Attention', From Entity: 'Transformer'*", + "status": "completed", + "processing_time": 12.680995225906372, + "error_message": null, + "confidence_score": null + } + ] + }, + { + "category": "innovation", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "What are the key innovations of the attention mechanism compared to traditional recurrent neural network (RNN) or convolutional neural network (CNN) approaches for sequence processing?", + "category": "innovation", + "priority": 8, + "rationale": "This question highlights the novelty of the attention mechanism and its advantages, providing context within the broader field." + }, + "answer": "## Summary\nThe Transformer architecture, by relying solely on attention mechanisms, offers key innovations over traditional RNN and CNN approaches by enabling direct modeling of long-range dependencies and significantly improving parallelization, leading to greater efficiency and performance in sequence processing tasks.\n\n***Confidence:** High | **Context Coverage:** High*\n\n## Detailed Analysis\n\n### 1. Traditional Sequence Processing Models (RNNs and CNNs)\n\nBefore the Transformer, sequence transduction models predominantly utilized recurrent neural networks (RNNs) or convolutional neural networks (CNNs). RNNs, including Long Short-Term Memory (LSTM) and gated recurrent units (GRU), were established as state-of-the-art for sequence modeling and transduction problems like language modeling and machine translation. These models process input sequences sequentially, which can be computationally intensive and hinder parallelization. CNNs have also been used for sequence learning, offering an alternative to recurrent approaches.\n\n*Sources: From Entity: 'Recurrent neural networks', From Entity: 'Sequence Modeling and Transduction', From Entity: 'Long short-term memory', From Entity: 'Convolutional sequence to sequence learning'*\n\n### 2. The Role of Attention Mechanisms\n\nAttention mechanisms emerged as a crucial component in enhancing the performance of sequence transduction models. They allow models to weigh the importance of different parts of the input sequence when producing an output, enabling the modeling of dependencies regardless of their distance in the input or output sequences. This capability is vital for tasks where context from distant parts of the sequence is important. Attention mechanisms are an integral part of many sequence modeling and transduction models.\n\n*Sources: From Entity: 'Attention mechanisms', From Entity: 'sequence modeling'*\n\n### 3. The Transformer: A Paradigm Shift with Attention\n\nThe Transformer model represents a significant innovation by dispensing with recurrence and convolutions entirely. Instead, it relies solely on attention mechanisms to compute representations of its input and output. This architectural choice means the Transformer does not use sequence-aligned RNNs, which were common in previous transduction models. By leveraging attention, the Transformer can directly draw global dependencies between the input and output sequences.\n\n*Sources: From Entity: 'The Transformer', From Entity: 'Attention Mechanisms', From Document Chunk: 1, From Relationship: 'Attention Mechanisms -> Transformer', From Relationship: 'Sequence-aligned RNNs -> The Transformer'*\n\n### 4. Parallelization and Efficiency Gains\n\nA key advantage of the Transformer's attention-based approach over RNNs is its parallelizability. RNNs process sequences step-by-step, creating a dependency chain that limits parallel computation. The Transformer, by contrast, can compute representations for all positions in the sequence simultaneously using self-attention. This allows for significantly more parallelization during training and inference, leading to faster processing times and the ability to train on much larger datasets or achieve state-of-the-art results with less training cost.\n\n*Sources: From Entity: 'The Transformer', From Document Chunk: 1*\n\n### 5. Modeling Long-Range Dependencies\n\nCompared to CNNs, which typically use local receptive fields, attention mechanisms in the Transformer can model long-range dependencies directly. While CNNs can increase their receptive field by stacking layers, attention allows any position in the sequence to directly attend to any other position, regardless of distance. This direct modeling of global dependencies is a core innovation that overcomes the limitations of local processing inherent in many CNN architectures for sequence data.\n\n*Sources: From Entity: 'Attention mechanisms', From Entity: 'The Transformer', From Document Chunk: 1*", + "status": "completed", + "processing_time": 9.122502326965332, + "error_message": null, + "confidence_score": null + } + ] + }, + { + "category": "evaluation", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "How is the effectiveness of the attention mechanism typically evaluated in research papers, and what are the common benchmarks or datasets used?", + "category": "evaluation", + "priority": 7, + "rationale": "Understanding the evaluation methods helps in assessing the validity and performance claims related to the attention mechanism." + }, + "answer": "## Summary\nThe GLUE benchmark is a key evaluation tool for NLU models, including those using attention mechanisms like RoBERTa and DeBERTa XXL. Visualizations of attention help understand their internal workings.\n\n***Confidence:** High | **Context Coverage:** High*\n\n## Detailed Analysis\n\n### 1. Introduction to the GLUE Benchmark\n\nThe GLUE (General Language Understanding Evaluation) benchmark is a widely recognized standard in Natural Language Understanding (NLU) research. It is a collection of diverse NLU tasks designed to assess a model's language processing capabilities. These tasks include, but are not limited to, specific datasets like QNLI, RTE, and STS-B. Essentially, GLUE functions as a leaderboard, providing a consistent method for comparing the performance of different language models.\n\n*Sources: From Entity: 'GLUE benchmark'*\n\n### 2. GLUE Benchmark for Model Evaluation\n\nThe effectiveness and performance of various language models are frequently evaluated using the GLUE benchmark. For instance, models such as RoBERTa and DeBERTa XXL have their performance reported on GLUE in research papers. This benchmark is crucial for understanding how well these models handle different aspects of language understanding, acting as a standardized metric for comparison.\n\n*Sources: From Entity: 'GLUE benchmark', From Entity: 'RoBERTa', From Entity: 'DeBERTa XXL', From Relationship: 'GLUE benchmark' -> 'RoBERTa', From Relationship: 'DeBERTa XXL' -> 'GLUE benchmark'*\n\n### 3. Attention Mechanisms and their Relevance to Benchmarks\n\nAttention mechanisms are fundamental components in modern sequence transduction models, as highlighted by the Transformer architecture, which relies solely on attention. The GLUE benchmark is used to evaluate models that incorporate these attention mechanisms. For example, document chunk 2 mentions training RoBERTa on the GLUE benchmark, and document chunk 1 discusses the Transformer architecture based on attention mechanisms.\n\n*Sources: From Document Chunk: 1, From Document Chunk: 2*\n\n### 4. Visualizing Attention Mechanisms\n\nVisualizations related to attention mechanisms provide insights into how these models work. For example, diagrams can illustrate 'Scaled Dot-Product Attention' and 'Multi-Head Attention', showing how queries and keys are processed to produce attention weights. These visualizations also depict how different 'heads' within a neural network layer attend to various words in a sequence, helping to understand relationships and dependencies. Attention scores, represented visually by lines of varying thickness and brightness, indicate the strength of these relationships.\n\n*Sources: From Entity: 'Attention Mechanisms Diagrams', From Entity: 'Scaled Dot-Product Attention', From Entity: 'Attention Mechanism', From Entity: 'Attention Scores', From Entity: 'Attention Visualizations', From Relationship: 'Attention Mechanisms Diagrams' -> 'Scaled Dot-Product Attention', From Relationship: 'Attention Mechanism' -> 'Neural Network Layer', From Relationship: 'Attention Scores' -> 'The attention mechanism'*", + "status": "completed", + "processing_time": 10.070384979248047, + "error_message": null, + "confidence_score": null + } + ] + }, + { + "category": "comparison", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "How do different types of attention mechanisms (e.g., self-attention, multi-head attention, sparse attention) compare in terms of their computational complexity, performance, and application suitability?", + "category": "comparison", + "priority": 8, + "rationale": "This question facilitates a comparative understanding of variations within attention mechanisms, crucial for choosing the right approach for specific tasks." + }, + "answer": "## Summary\nThe Transformer model extensively uses self-attention and multi-head attention for processing sequences, with multi-head attention enhancing parallel processing. While efforts exist to manage attention's computational costs, the context lacks details on sparse attention or direct comparisons of different attention types.\n\n***Confidence:** Low | **Context Coverage:** The provided context offers a good overview of self-attention and multi-head attention within the Transformer architecture, including their basic functionalities and how they are implemented. However, it lacks information on sparse attention and does not provide a direct comparative analysis of computational complexity, performance, and application suitability across various attention types as requested by the user.*\n\n## Detailed Analysis\n\n### 1. Introduction to Self-Attention in the Transformer\n\nThe Transformer model, a significant advancement in deep learning architectures, fundamentally relies on self-attention mechanisms to compute representations of its input and output (From Entity: 'self-attention', From Entity: 'Transformer'). Self-attention allows the model to consider the relationships between different parts of the input sequence, addressing key aspects like computational complexity, parallelizability, and the path length for long-range dependencies (From Entity: 'self-attention'). It's noted that self-attention can be restricted to a specific neighborhood size to improve computational performance on very long sequences and potentially yield more interpretable models (From Entity: 'self-attention').\n\n*Sources: Entity: 'self-attention', Entity: 'Transformer'*\n\n### 2. Role of Attention in Deep Learning and NLP\n\nDeep learning architectures, particularly those used in natural language processing (NLP), heavily utilize fundamental attention mechanisms (From Entity: 'deep learning architectures', From Entity: 'natural language processing'). The Transformer is highlighted as the first sequence transduction model to exclusively use attention, eschewing recurrent networks (From Entity: 'Transformer', From Entity: 'Recurrent network'). Attention mechanisms are crucial for modeling dependencies irrespective of their distance in the input or output sequences, making them integral to sequence modeling and transduction (From Entity: 'Attention mechanisms').\n\n*Sources: Entity: 'deep learning architectures', Entity: 'natural language processing', Entity: 'Transformer', Entity: 'Recurrent network', Entity: 'Attention mechanisms'*\n\n### 3. Understanding Multi-Head Attention\n\nMulti-head attention is a core component of the Transformer, employed in three distinct ways (From Entity: 'Multi-head Attention', From Entity: 'The Transformer'). This methodology involves using multiple 'heads,' each with a reduced dimension (e.g., $d_k = d_v = d_{model}/h$, where $h=8$). Crucially, due to this reduced dimension per head, the total computational cost of multi-head attention is similar to that of single-head attention with full dimensionality (From Entity: 'Multi-head Attention', From Document Chunk: 3, From Document Chunk: 4). Each head in the Multi-Head Attention mechanism operates independently, allowing the model to capture various data aspects, with outputs combined through learned projection matrices and concatenation (From Document Chunk: 1).\n\n*Sources: Entity: 'Multi-head Attention', Entity: 'The Transformer', Document Chunk: 3, Document Chunk: 4, Document Chunk: 1*\n\n### 4. Applications of Attention in the Transformer\n\nWithin the Transformer, multi-head attention is utilized in 'encoder-decoder attention' layers, where queries come from the decoder and keys/values from the encoder's output. This allows each decoder position to attend to all input positions, mirroring mechanisms in sequence-to-sequence models (From Entity: 'encoder-decoder attention', From Entity: 'sequence-to-sequence models'). Additionally, the encoder itself contains self-attention layers, where keys, values, and queries all originate from the previous layer's output (From Document Chunk: 3, From Document Chunk: 4). Scaled Dot-Product Attention is identified as a fundamental component of Multi-Head Attention, computing an output as a weighted sum of values based on query-key compatibility (From Entity: 'Scaled Dot-Product Attention').\n\n*Sources: Entity: 'encoder-decoder attention', Entity: 'sequence-to-sequence models', Document Chunk: 3, Document Chunk: 4, Entity: 'Scaled Dot-Product Attention'*\n\n### 5. Addressing Computational Costs and Limitations\n\nThe context mentions that subquadratic-time architectures are proposed to address the inference cost issues associated with the attention mechanism in Transformers (From Entity: 'subquadratic-time architectures', From Entity: 'self-attention mechanisms'). This suggests ongoing research into managing the computational demands of attention. However, the provided documents do not contain specific details about 'sparse attention' or offer a comparative analysis of computational complexity, performance metrics, or suitability across different types of attention mechanisms (e.g., self-attention vs. multi-head attention vs. sparse attention).\n\n*Sources: Entity: 'subquadratic-time architectures', Entity: 'self-attention mechanisms'*", + "status": "completed", + "processing_time": 11.472986459732056, + "error_message": null, + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": null + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/gradio_sessions/exploration_20250816_100739_20250816_100654.json b/test_results/paper_exploration/gradio_sessions/exploration_20250816_100739_20250816_100654.json new file mode 100644 index 0000000000000000000000000000000000000000..2f23f10414f3746251cd22e668e26e640af2f87b --- /dev/null +++ b/test_results/paper_exploration/gradio_sessions/exploration_20250816_100739_20250816_100654.json @@ -0,0 +1,103 @@ +{ + "session_id": "20250816_100654", + "timestamp": "2025-08-16T10:06:54.467412", + "topic": "transformers and how they work?", + "max_questions": 2, + "focus_categories": [ + "overview", + "methodology" + ], + "processing_time_seconds": 45.069582, + "results": { + "topic": "transformers and how they work?", + "total_questions": 4, + "successful_answers": 4, + "failed_questions": 0, + "success_rate": 1.0, + "total_processing_time": 45.069581270217896, + "category_results": [ + { + "category": "overview", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "What is the fundamental concept behind Transformer models in natural language processing?", + "category": "overview", + "priority": 9, + "rationale": "This question addresses the core idea of Transformers, which is essential for any further understanding." + }, + "answer": "## Summary\nThe fundamental concept behind Transformer models in natural language processing is their reliance on self-attention mechanisms within a specific neural network architecture. This allows them to efficiently process sequences by capturing contextual information and relationships between words, marking a significant advancement over previous models.\n\n***Confidence:** High | **Context Coverage:** Complete*\n\n## Detailed Analysis\n\n### 1. Introduction to Transformer Models\n\nThe Transformer model is a groundbreaking neural network architecture that has revolutionized natural language processing (NLP) tasks, particularly in machine translation and language modeling. Its core innovation is the reliance entirely on attention mechanisms, moving away from traditional recurrent and convolutional layers. This allows the Transformer to process sequences by focusing on the relationships between different positions within the input data, enabling a more efficient and parallelizable approach to understanding language.\n\n*Sources: From Entity: \"Transformer\", From Entity: \"Self-attention\", From Document Chunk: 1*\n\n### 2. The Role of Self-Attention\n\nAt the heart of the Transformer is the concept of self-attention. This mechanism allows the model to weigh the importance of different words in a sequence when processing a particular word. Essentially, it connects different positions within a single sequence to compute a representation of that sequence. This ability to capture contextual information across longer sequences is crucial for maintaining performance, especially with limited resources.\n\n*Sources: From Entity: \"Self-attention\", From Document Chunk: 1*\n\n### 3. Transformer Architecture and Components\n\nThe Transformer architecture is structured with components such as self-attention mechanisms, feedforward networks, positional embeddings, and layer normalization. It often employs an encoder-decoder structure. The self-attention mechanism, a key feature, enables the model to efficiently capture contextual information across longer sequences. This design choice has led to significant improvements in quality, parallelizability, and reduced training time compared to earlier models.\n\n*Sources: From Entity: \"Transformer\", From Document Chunk: 1*\n\n### 4. Advantages and Challenges of Attention in Transformers\n\nThe Transformer's reliance on attention, specifically multi-headed self-attention, allows it to compute representations without needing sequential processing like RNNs or convolutions. This approach is highly parallelizable and offers superior quality. While attention mechanisms can lead to high inference costs due to recalculating attention scores for each new token (quadratic time complexity), variations and further research aim to mitigate these drawbacks.\n\n*Sources: From Entity: \"Transformer\", From Document Chunk: 1, From Document Chunk: 2*\n\n### 5. Transformers in Large Language Models\n\nTransformer technology is fundamental to the development of Large Language Models (LLMs). Models like BERT, for example, are described as large Transformer language models, highlighting the widespread adoption and importance of this architecture in advancing NLP capabilities. Radford et al. also applied the Transformer architecture to autoregressive language modeling, further emphasizing its significance.\n\n*Sources: From Entity: \"Transformer\", From Entity: \"Large Language Models\", From Entity: \"BERT\", From Entity: \"Radford et al.\", From Relationship: \"Large Language Models -> Transformer technology\", From Relationship: \"BERT -> Transformer\", From Relationship: \"Radford et al. -> Transformer\"*", + "status": "completed", + "processing_time": 19.213382959365845, + "error_message": null, + "confidence_score": null + } + ] + }, + { + "category": "methodology", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "Can you explain the self-attention mechanism in Transformers and how it contributes to their effectiveness?", + "category": "methodology", + "priority": 10, + "rationale": "The self-attention mechanism is the key innovation and operational core of Transformers. Understanding it is crucial for grasping how they work." + }, + "answer": "## Summary\nThe Transformer architecture relies on self-attention mechanisms, which use queries, keys, and values to weigh the importance of different parts of an input sequence. This allows it to efficiently capture long-range dependencies and offers computational advantages over traditional models.\n\n***Confidence:** High | **Context Coverage:** High*\n\n## Detailed Analysis\n\n### 1. Introduction to the Transformer Architecture and its Reliance on Attention\n\nThe Transformer architecture is a significant advancement in sequence transduction tasks, such as machine translation and language modeling. It distinguishes itself by being the first model to entirely rely on attention mechanisms, specifically multi-headed self-attention, which allows it to replace traditional recurrent (RNN) and convolutional neural network (CNN) layers. This design choice enables the Transformer to compute representations of its input and output solely through self-attention, without needing sequence-aligned RNNs or convolutions. The Transformer's ability to handle sequences is primarily achieved through its self-attention mechanisms and multi-layer perceptron (MLP) modules.\n\n*Sources: From Entity: 'Transformer'*\n\n### 2. Understanding Self-Attention: Relating Positions Within a Sequence\n\nSelf-attention, also referred to as intra-attention, is a mechanism that relates different positions within a single sequence to compute a representation for that sequence. This means that for each element in the sequence, the self-attention mechanism computes how much attention it should pay to every other element in the same sequence, including itself. This process is fundamental to how the Transformer understands context and relationships between words or tokens, even if they are far apart in the sequence. The Transformer model relies entirely on self-attention to compute its representations.\n\n*Sources: From Entity: 'self-attention', From Document Chunk: 1*\n\n### 3. The Role of Queries, Keys, and Values in Attention\n\nThe attention mechanism, in general, functions by computing a weighted sum of values, where the weights are determined by the similarity between queries and keys. Within the context of Multi-Head Attention (MHA), which is a key component of Transformers, queries (Q), keys (K), and values (V) are fundamental. These components are derived from the input sequence. Specifically, for each head in MHA, the queries, keys, and values are linearly projected multiple times. The output of the attention mechanism is then a vector that is a weighted sum of these values, with the weights being a result of the query-key similarity calculation. This process allows the model to focus on different parts of the input sequence for processing.\n\n*Sources: From Entity: 'Attention', From Entity: 'Queries, Keys, and Values', From Relationship: 'Multi-Head Attention -> Queries, Keys, and Values'*\n\n### 4. How Self-Attention Manages Long-Range Dependencies\n\nThe Transformer architecture utilizes self-attention mechanisms to effectively manage long-range text dependencies. This capability is crucial for maintaining performance, especially when dealing with limited resources. By allowing the model to efficiently capture contextual information across longer sequences, self-attention mechanisms help overcome limitations that might arise with more constrained models. For instance, in the encoder part of the Transformer, self-attention layers use keys, values, and queries that all originate from the output of the preceding layer. Within the decoder, self-attention layers allow each position to attend to all preceding positions, including its own. These self-attention layers are contrasted with Feed-Forward Network (FFN) layers, exhibiting lower sparsity. The Transformer also uses Multi-Head Attention to counteract the reduction in effective resolution that can occur due to the averaging of attention-weighted positions.\n\n*Sources: From Entity: 'Transformer', From Entity: 'self-attention mechanisms', From Entity: 'self-attention layers', From Document Chunk: 1*\n\n### 5. Computational Efficiency and Mitigating Resolution Reduction\n\nA key advantage of the Transformer, facilitated by self-attention, is its ability to reduce the computational complexity for learning dependencies between distant positions to a constant number of operations. This is a significant improvement over traditional methods where this complexity might increase with the distance between positions. While this constant operation count is beneficial, it can sometimes lead to a reduced effective resolution because attention-weighted positions are averaged. However, the Multi-Head Attention mechanism is employed to mitigate this specific effect. Additionally, self-attention mechanisms are designed with three core considerations: total computational complexity per layer, the degree of parallelizable computation, and the path length for dependencies between distant positions. To further enhance computational performance, especially for very long sequences, self-attention can be restricted to only consider a neighborhood of a specified size around a given output position.\n\n*Sources: From Entity: 'Transformer', From Entity: 'self-attention', From Document Chunk: 1*", + "status": "completed", + "processing_time": 21.895432472229004, + "error_message": null, + "confidence_score": null + } + ] + }, + { + "category": "innovation", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "What were the key innovations introduced by the Transformer architecture compared to previous sequence models like RNNs and LSTMs?", + "category": "innovation", + "priority": 8, + "rationale": "This question helps to contextualize the Transformer's significance by highlighting its advancements over existing technologies." + }, + "answer": "## Summary\nThe Transformer architecture revolutionized sequence modeling by replacing the sequential processing of RNNs and LSTMs with self-attention mechanisms, leading to increased parallelization, reduced training costs, and improved handling of long-range dependencies.\n\n***Confidence:** High | **Context Coverage:** High*\n\n## Detailed Analysis\n\n### 1. Traditional Sequence Models: RNNs and LSTMs\n\nRecurrent Neural Networks (RNNs), including variants like Long Short-Term Memory (LSTM) and gated recurrent units (GRU), have historically been the established state-of-the-art approaches for sequence modeling and transduction problems such as language modeling and machine translation. These models process data sequentially, where each step's computation depends on the previous hidden state and the current input. This inherent sequential nature, however, prevents parallelization within training examples. This lack of parallelization becomes a critical issue for longer sequences due to memory constraints that limit batching across examples. (From Entity: 'Recurrent neural networks', From Entity: 'Recurrent models', From Entity: 'Recurrent Neural Networks', From Relationship: 'Recurrent Neural Networks -> Sequence Modeling and Transduction', From Relationship: 'Recurrent Neural Networks -> Sequential Computation', From Relationship: 'Gated Recurrent Units (GRU) -> Recurrent Neural Networks', From Relationship: 'Long Short-Term Memory (LSTM) -> Recurrent Neural Networks')\n\n*Sources: From Entity: 'Recurrent neural networks', From Entity: 'Recurrent models', From Entity: 'Recurrent Neural Networks', From Relationship: 'Recurrent Neural Networks -> Sequence Modeling and Transduction', From Relationship: 'Recurrent Neural Networks -> Sequential Computation', From Relationship: 'Gated Recurrent Units (GRU) -> Recurrent Neural Networks', From Relationship: 'Long Short-Term Memory (LSTM) -> Recurrent Neural Networks'*\n\n### 2. The Transformer's Core Innovation: Self-Attention over Recurrence\n\nThe Transformer architecture was introduced as a novel model that eschews recurrence entirely. Instead, it relies on attention mechanisms to draw global dependencies between input and output sequences. This fundamental shift means the Transformer computes representations of its input and output solely through self-attention, without using sequence-aligned RNNs or convolutions. This move away from sequential computation is a key innovation. (From Entity: 'The Transformer', From Document Chunk: 3, From Relationship: 'Transformer -> self-attention', From Relationship: 'Sequence-aligned RNNs -> The Transformer')\n\n*Sources: From Entity: 'The Transformer', From Document Chunk: 3, From Relationship: 'Transformer -> self-attention', From Relationship: 'Sequence-aligned RNNs -> The Transformer'*\n\n### 3. Enhanced Parallelization\n\nA major advantage of the Transformer's reliance on self-attention is the significant increase in parallelization it allows. Unlike recurrent models, where computation is factored sequentially and prevents parallel processing within training examples, the Transformer's attention mechanism can process all positions in parallel. This is because the self-attention mechanism computes representations by considering all input and output positions simultaneously, rather than step-by-step. (From Entity: 'The Transformer', From Document Chunk: 3, From Entity: 'Computational complexity', From Entity: 'self-attention')\n\n*Sources: From Entity: 'The Transformer', From Document Chunk: 3, From Entity: 'Computational complexity', From Entity: 'self-attention'*\n\n### 4. Reduced Training Costs and Faster Training\n\nThis enhanced parallelization leads to a substantial reduction in training costs and time. The Transformer can achieve state-of-the-art translation quality with significantly less training time compared to prior models. For instance, it can reach new state-of-the-art results after as little as twelve hours of training on eight P100 GPUs. This contrasts sharply with the computational limitations imposed by the sequential nature of recurrent models, especially for longer sequences. (From Entity: 'The Transformer', From Document Chunk: 4)\n\n*Sources: From Entity: 'The Transformer', From Document Chunk: 4*\n\n### 5. Improved Handling of Long-Range Dependencies\n\nFurthermore, the Transformer architecture is described as allowing for the modeling of dependencies without regard to their distance in the input or output sequences, a capability that is fundamental to its effectiveness. While self-attention layers have lower sparsity compared to Feed-Forward Network (FFN) layers, they enable each position to attend to all preceding positions up to and including its own. This ability to capture long-range dependencies efficiently, coupled with the advantage of parallel computation, positions the Transformer as a superior architecture for many sequence transduction tasks compared to traditional recurrent approaches. (From Entity: 'The Transformer', From Entity: 'self-attention layers', From Entity: 'FFN layer')\n\n*Sources: From Entity: 'The Transformer', From Entity: 'self-attention layers', From Entity: 'FFN layer'*", + "status": "completed", + "processing_time": 19.976354598999023, + "error_message": null, + "confidence_score": null + } + ] + }, + { + "category": "comparison", + "questions_processed": 1, + "successful_answers": 1, + "results": [ + { + "question": { + "question": "How does the performance and efficiency of Transformer models compare to recurrent neural networks (RNNs) and convolutional neural networks (CNNs) for various NLP tasks?", + "category": "comparison", + "priority": 7, + "rationale": "Understanding the comparative performance and efficiency provides critical insight into the practical advantages and trade-offs of using Transformers." + }, + "answer": "## Summary\nThe Transformer architecture, leveraging self-attention, offers superior performance and training efficiency compared to traditional RNNs for tasks like translation and language modeling, despite potential inference challenges with long sequences.\n\n***Confidence:** High | **Context Coverage:** High*\n\n## Detailed Analysis\n\n### 1. Recurrent Neural Networks (RNNs) in NLP\n\nRecurrent Neural Networks (RNNs), including Long Short-Term Memory (LSTM) and Gated Recurrent Units (GRU), have been established as state-of-the-art approaches for sequence modeling and transduction problems such as language modeling and machine translation. Their strength lies in their sequential computation, where hidden states are generated based on previous states and current input, making them well-suited for tasks where order and context over time are crucial. For instance, RNNs, particularly LSTMs, have achieved state-of-the-art results for language modeling tasks. This sequential nature, however, can limit parallelization during training. (From Entity: 'Recurrent Neural Networks', From Entity: 'LSTMs', From Entity: 'Sequence Modeling and Transduction', From Relationship: 'Recurrent Neural Networks -> Sequential Computation')\n\n*Sources: Entity: Recurrent Neural Networks, Entity: LSTMs, Entity: Sequence Modeling and Transduction, Relationship: Recurrent Neural Networks -> Sequential Computation*\n\n### 2. The Transformer Architecture and Self-Attention\n\nIn contrast, the Transformer architecture, introduced in 'Attention Is All You Need,' represents a significant shift by relying entirely on attention mechanisms, specifically multi-headed self-attention, to process sequences. This design completely replaces recurrent and convolutional layers. The Transformer's ability to compute representations solely through self-attention allows it to draw global dependencies between input and output. A key advantage is its capacity to reduce the operations needed to learn dependencies between distant positions to a constant number, which is crucial for understanding long-range context in text. (From Entity: 'Transformer', From Relationship: 'Transformer -> self-attention mechanisms', From Relationship: 'Attention Mechanisms -> Transformer')\n\n*Sources: Entity: Transformer, Relationship: Transformer -> self-attention mechanisms, Relationship: Attention Mechanisms -> Transformer*\n\n### 3. Transformer Efficiency and Performance Gains\n\nThe Transformer offers significant advantages in terms of training speed and efficiency compared to recurrent or convolutional architectures. Its design, based entirely on attention, allows for greater parallelization during training, which is a notable improvement over the sequential processing inherent in RNNs. For translation tasks, such as WMT 2014 English-to-German and English-to-French, the Transformer achieved a new state of the art, demonstrating its superior performance. Furthermore, the Transformer model's efficiency in terms of training cost is highlighted. (From Document Chunk: 1, From Relationship: 'Transformer -> training cost')\n\n*Sources: Document Chunk: 1, Relationship: Transformer -> training cost*\n\n### 4. Inference Challenges and Alternatives to Transformer\n\nWhile Transformers excel, they do present certain challenges. For instance, the attention mechanism in Transformers can lead to quadratic time complexity during inference as sequence lengths increase, because it requires recalculating attention scores with every previous token for each new token generated. This increases inference cost with longer sequences. This is an area where alternative architectures, such as Mamba (which is based on State Space Models, a superclass of RNNs), offer an advantage by relying only on the last hidden state, enabling faster inference speeds. (From Document Chunk: 2, From Entity: 'Transformer')\n\n*Sources: Document Chunk: 2, Entity: Transformer*\n\n### 5. Transformer's Departure from Recurrence\n\nRecurrent neural networks, including LSTMs, have historically achieved state-of-the-art results in language modeling tasks. However, the Transformer model eschews the use of recurrent networks, which are typically used in conjunction with attention mechanisms. This departure allows the Transformer to operate without sequence-aligned RNNs or convolutions, relying solely on self-attention mechanisms to compute representations. This fundamental difference in architecture contributes to the Transformer's improved performance and parallelizability. (From Entity: 'Recurrent network', From Entity: 'Transformer', From Relationship: 'Recurrence -> Transformer')\n\n*Sources: Entity: Recurrent network, Entity: Transformer, Relationship: Recurrence -> Transformer*\n\n### 6. Transformer's Use of Multi-Head Attention and Generalization\n\nThe Transformer architecture uses multi-head attention in several ways, including in 'encoder-decoder attention' layers and self-attention layers within the encoder. This multi-head attention is employed to address issues like reduced effective resolution that can arise from averaging attention-weighted positions. The model's effectiveness is further demonstrated by its strong generalization capabilities, seen in its application to English constituency parsing, where it achieved better BLEU scores than previous state-of-the-art models, even with limited training data. (From Document Chunk: 3, From Relationship: 'Multi-Head Attention -> Transformer', From Entity: 'Transformer')\n\n*Sources: Document Chunk: 3, Relationship: Multi-Head Attention -> Transformer, Entity: Transformer*", + "status": "completed", + "processing_time": 10.407459259033203, + "error_message": null, + "confidence_score": null + } + ] + } + ], + "key_insights": [], + "research_summary": "## Summary\nThe Transformer architecture, a paradigm shift in NLP, relies on self-attention mechanisms for processing sequences, offering enhanced parallelization and reduced training costs compared to traditional RNNs and CNNs. While foundational for LLMs, it faces inference cost challenges with long sequences.\n\n***Confidence:** High | **Context Coverage:** High*\n\n## Detailed Analysis\n\n### 1. Introduction to the Transformer Architecture\n\nThe Transformer model represents a significant advancement in natural language processing (NLP), particularly for tasks like machine translation and language modeling. Its core innovation lies in its complete reliance on attention mechanisms, specifically multi-headed self-attention, which allows it to process sequences by focusing on the relationships between different elements. This marks a departure from older methods that used recurrent (RNN) or convolutional neural network (CNN) layers. The Transformer's design enables it to compute representations of its input and output solely through self-attention, without the need for sequence-aligned RNNs or convolutions. This approach offers superior quality, enhanced parallelizability, and significantly reduced training time compared to previous models. It's also noted that the Transformer architecture is used in models like Phi-1. (From Entity: 'Transformer', From Document Chunk: 1)\n\n*Sources: From Entity: 'Transformer', From Document Chunk: 1*\n\n### 2. The Core Mechanism: Self-Attention\n\nAt the heart of the Transformer's effectiveness is the self-attention mechanism. This mechanism allows the model to weigh the importance of different words or tokens in a sequence when processing a particular word. Essentially, it creates connections between different positions within a single sequence to compute a representation of that sequence. This capability is crucial for capturing contextual information, especially across longer sequences, which is vital for maintaining performance, particularly when computational resources are constrained. The Transformer model relies entirely on self-attention to compute its representations. (From Entity: 'self-attention mechanisms', From Entity: 'self-attention', From Document Chunk: 1)\n\n*Sources: From Entity: 'self-attention mechanisms', From Entity: 'self-attention', From Document Chunk: 1*\n\n### 3. Applications of Multi-Head Attention in Transformers\n\nThe Transformer architecture utilizes multi-head attention in three distinct applications. One of these is 'encoder-decoder attention,' where queries originate from the previous decoder layer, and keys and values come from the encoder's output. This allows every decoder position to attend to all positions in the input sequence, mirroring mechanisms found in sequence-to-sequence models. Within the encoder itself, self-attention layers are used, where keys, values, and queries all come from the same place, typically the output of the previous layer in the encoder. The Transformer also employs Multi-Head Attention to mitigate a potential issue of reduced effective resolution that can arise from averaging attention-weighted positions. (From Entity: 'Transformer', From Entity: 'multi-head attention', From Entity: 'encoder-decoder attention', From Document Chunk: 4)\n\n*Sources: From Entity: 'Transformer', From Entity: 'multi-head attention', From Entity: 'encoder-decoder attention', From Document Chunk: 4*\n\n### 4. Efficiency and Performance Gains through Parallelization\n\nA significant advantage of the Transformer's design, particularly its reliance on self-attention, is its ability to process information in parallel. Unlike recurrent models that process data sequentially (where computation depends on previous states), the Transformer can process all positions in parallel. This is because self-attention computes representations by considering all input and output positions simultaneously. This parallel processing capability leads to a substantial reduction in training costs and time, allowing the Transformer to achieve state-of-the-art results with significantly less training time compared to prior models. For example, it has achieved better BLEU scores in tasks like English constituency parsing, even with limited training data, and it requires less computation than some other models. (From Entity: 'Transformer', From Entity: 'parallelizability', From Entity: 'training cost', From Entity: 'BLEU scores', From Document Chunk: 1, From Document Chunk: 4)\n\n*Sources: From Entity: 'Transformer', From Entity: 'parallelizability', From Entity: 'training cost', From Entity: 'BLEU scores', From Document Chunk: 1, From Document Chunk: 4*\n\n### 5. Inference Challenges and Adaptation Techniques\n\nWhile Transformers offer many advantages, they do face certain challenges, particularly concerning inference. The attention mechanism requires recalculating attention scores with every previous token for each new token generated during inference, leading to quadratic time complexity. This increases the inference cost as sequence lengths grow. In contrast, models like Mamba, based on State Space Models (SSMs), rely on the last hidden state for generation, enabling faster inference speeds. To address the Transformer's inference cost issue and improve efficiency, techniques like Low-Rank Adaptation (LoRA) are employed, which modify Transformer weights by introducing trainable low-rank matrices for efficient fine-tuning. (From Entity: 'Transformer', From Document Chunk: 1, From Document Chunk: 2)\n\n*Sources: From Entity: 'Transformer', From Document Chunk: 1, From Document Chunk: 2*\n\n### 6. Transformers as the Foundation for Large Language Models\n\nTransformer technology is foundational to the development and utilization of Large Language Models (LLMs). LLMs leverage this technology to achieve significant advancements in natural language processing. Pre-trained Transformer models are known to exhibit the 'Emergent Modularity phenomenon.' The Transformer's versatility is also evident in ongoing research exploring its extension to modalities beyond text, such as images, audio, and video, by investigating local, restricted attention mechanisms to efficiently handle large inputs and outputs. (From Entity: 'Transformer', From Entity: 'Large Language Models', From Entity: 'Emergent Modularity phenomenon', From Relationship: 'Large Language Models -> Transformer technology')\n\n*Sources: From Entity: 'Transformer', From Entity: 'Large Language Models', From Entity: 'Emergent Modularity phenomenon', From Relationship: 'Large Language Models -> Transformer technology'*" + } +} \ No newline at end of file diff --git a/test_results/paper_exploration/session_20250816_091521.log b/test_results/paper_exploration/session_20250816_091521.log new file mode 100644 index 0000000000000000000000000000000000000000..c45987a6e5b770a9c9a54ad0ba2f6ff9fc46f1e5 --- /dev/null +++ b/test_results/paper_exploration/session_20250816_091521.log @@ -0,0 +1,43 @@ +2025-08-16 09:15:21,689 - INFO - 🚀 Welcome to Conversational Research Exploration! +2025-08-16 09:15:21,689 - INFO - 📁 Session ID: 20250816_091521 +2025-08-16 09:15:21,689 - INFO - 💾 Results will be saved to: test_results\paper_exploration +2025-08-16 09:15:42,495 - INFO - +🔄 TURN 1 STARTING +2025-08-16 09:15:42,495 - INFO - 📝 Topic: Transformers and differnet attention mechanisms +2025-08-16 09:15:42,495 - INFO - ❓ Max Questions: 4 +2025-08-16 09:15:42,495 - INFO - 🔬 Starting research exploration: Transformers and differnet attention mechanisms +2025-08-16 09:15:42,495 - INFO - 📝 Phase 1: Generating research questions +2025-08-16 09:15:42,501 - INFO - AFC is enabled with max remote calls: 10. +2025-08-16 09:15:46,335 - INFO - ✅ Generated 4 questions across 4 categories +2025-08-16 09:15:46,335 - INFO - 🔄 Phase 2: Processing questions through QA workflows +2025-08-16 09:15:46,335 - DEBUG - 🔄 Processing question: What is the fundamental problem that the Transform... +2025-08-16 09:15:46,357 - DEBUG - 🔄 Processing question: How does the self-attention mechanism in Transform... +2025-08-16 09:15:46,357 - DEBUG - 🔄 Processing question: Beyond self-attention, what other architectural in... +2025-08-16 09:15:46,361 - INFO - AFC is enabled with max remote calls: 10. +2025-08-16 09:15:46,362 - INFO - AFC is enabled with max remote calls: 10. +2025-08-16 09:15:46,363 - INFO - AFC is enabled with max remote calls: 10. +2025-08-16 09:15:47,687 - INFO - Use pytorch device_name: cpu +2025-08-16 09:15:47,687 - INFO - Load pretrained SentenceTransformer: BAAI/bge-large-en-v1.5 +2025-08-16 09:15:52,138 - DEBUG - ✅ Workflow completed. Status: initialized, Error: No context available for answering +2025-08-16 09:15:52,138 - DEBUG - ✅ Workflow completed. Status: initialized, Error: No context available for answering +2025-08-16 09:15:52,138 - DEBUG - 🔄 Processing question: How do different variants of attention mechanisms ... +2025-08-16 09:15:52,141 - INFO - AFC is enabled with max remote calls: 10. +2025-08-16 09:15:52,347 - WARNING - Both GOOGLE_API_KEY and GEMINI_API_KEY are set. Using GOOGLE_API_KEY. +2025-08-16 09:15:53,068 - INFO - AFC is enabled with max remote calls: 10. +2025-08-16 09:15:55,376 - INFO - AFC remote call 1 is done. +2025-08-16 09:15:55,710 - WARNING - Both GOOGLE_API_KEY and GEMINI_API_KEY are set. Using GOOGLE_API_KEY. +2025-08-16 09:15:56,466 - INFO - AFC is enabled with max remote calls: 10. +2025-08-16 09:15:58,621 - INFO - AFC remote call 1 is done. +2025-08-16 09:15:59,009 - INFO - AFC is enabled with max remote calls: 10. +2025-08-16 09:15:59,102 - INFO - AFC is enabled with max remote calls: 10. +2025-08-16 09:16:05,333 - DEBUG - ✅ Workflow completed. Status: completed, Error: None +2025-08-16 09:16:06,851 - DEBUG - ✅ Workflow completed. Status: completed, Error: None +2025-08-16 09:16:06,851 - INFO - 📊 Phase 3: Organizing results by category +2025-08-16 09:16:06,852 - INFO - 📄 Phase 4: Generating research summary +2025-08-16 09:16:06,853 - INFO - AFC is enabled with max remote calls: 10. +2025-08-16 09:16:08,403 - WARNING - Both GOOGLE_API_KEY and GEMINI_API_KEY are set. Using GOOGLE_API_KEY. +2025-08-16 09:16:09,126 - INFO - AFC is enabled with max remote calls: 10. +2025-08-16 09:16:11,376 - INFO - AFC remote call 1 is done. +2025-08-16 09:16:11,921 - INFO - AFC is enabled with max remote calls: 10. +2025-08-16 09:16:20,900 - INFO - 🎯 Research exploration complete: 2/4 questions answered successfully +2025-08-16 09:16:20,900 - ERROR - ❌ Turn 1 failed: 'ResearchExplorationResults' object has no attribute 'failed_answers' diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000000000000000000000000000000000000..4575a3ec5a303967836984672bb613e09589c758 --- /dev/null +++ b/uv.lock @@ -0,0 +1,4621 @@ +version = 1 +revision = 3 +requires-python = ">=3.12" +resolution-markers = [ + "python_full_version >= '3.13' and sys_platform == 'darwin'", + "python_full_version < '3.13' and sys_platform == 'darwin'", + "python_full_version >= '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux'", + "python_full_version < '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux'", + "python_full_version >= '3.13' and sys_platform == 'win32'", + "(python_full_version >= '3.13' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version >= '3.13' and sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')", + "python_full_version < '3.13' and sys_platform == 'win32'", + "(python_full_version < '3.13' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version < '3.13' and sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')", +] + +[[package]] +name = "accelerate" +version = "1.10.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "huggingface-hub" }, + { name = "numpy" }, + { name = "packaging" }, + { name = "psutil" }, + { name = "pyyaml" }, + { name = "safetensors" }, + { name = "torch" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f7/66/be171836d86dc5b8698b3a9bf4b9eb10cb53369729939f88bf650167588b/accelerate-1.10.0.tar.gz", hash = "sha256:8270568fda9036b5cccdc09703fef47872abccd56eb5f6d53b54ea5fb7581496", size = 392261, upload-time = "2025-08-07T10:54:51.664Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/30/dd/0107f0aa179869ee9f47ef5a2686abd5e022fdc82af901d535e52fe91ce1/accelerate-1.10.0-py3-none-any.whl", hash = "sha256:260a72b560e100e839b517a331ec85ed495b3889d12886e79d1913071993c5a3", size = 374718, upload-time = "2025-08-07T10:54:49.988Z" }, +] + +[[package]] +name = "ag-ui-protocol" +version = "0.1.8" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pydantic" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/27/de/0bddf7f26d5f38274c99401735c82ad59df9cead6de42f4bb2ad837286fe/ag_ui_protocol-0.1.8.tar.gz", hash = "sha256:eb745855e9fc30964c77e953890092f8bd7d4bbe6550d6413845428dd0faac0b", size = 5323, upload-time = "2025-07-15T10:55:36.389Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c4/00/40c6b0313c25d1ab6fac2ecba1cd5b15b1cd3c3a71b3d267ad890e405889/ag_ui_protocol-0.1.8-py3-none-any.whl", hash = "sha256:1567ccb067b7b8158035b941a985e7bb185172d660d4542f3f9c6fff77b55c6e", size = 7066, upload-time = "2025-07-15T10:55:35.075Z" }, +] + +[[package]] +name = "aiofiles" +version = "24.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/0b/03/a88171e277e8caa88a4c77808c20ebb04ba74cc4681bf1e9416c862de237/aiofiles-24.1.0.tar.gz", hash = "sha256:22a075c9e5a3810f0c2e48f3008c94d68c65d763b9b03857924c99e57355166c", size = 30247, upload-time = "2024-06-24T11:02:03.584Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a5/45/30bb92d442636f570cb5651bc661f52b610e2eec3f891a5dc3a4c3667db0/aiofiles-24.1.0-py3-none-any.whl", hash = "sha256:b4ec55f4195e3eb5d7abd1bf7e061763e864dd4954231fb8539a0ef8bb8260e5", size = 15896, upload-time = "2024-06-24T11:02:01.529Z" }, +] + +[[package]] +name = "aiohappyeyeballs" +version = "2.6.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/26/30/f84a107a9c4331c14b2b586036f40965c128aa4fee4dda5d3d51cb14ad54/aiohappyeyeballs-2.6.1.tar.gz", hash = "sha256:c3f9d0113123803ccadfdf3f0faa505bc78e6a72d1cc4806cbd719826e943558", size = 22760, upload-time = "2025-03-12T01:42:48.764Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0f/15/5bf3b99495fb160b63f95972b81750f18f7f4e02ad051373b669d17d44f2/aiohappyeyeballs-2.6.1-py3-none-any.whl", hash = "sha256:f349ba8f4b75cb25c99c5c2d84e997e485204d2902a9597802b0371f09331fb8", size = 15265, upload-time = "2025-03-12T01:42:47.083Z" }, +] + +[[package]] +name = "aiohttp" +version = "3.12.15" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "aiohappyeyeballs" }, + { name = "aiosignal" }, + { name = "attrs" }, + { name = "frozenlist" }, + { name = "multidict" }, + { name = "propcache" }, + { name = "yarl" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9b/e7/d92a237d8802ca88483906c388f7c201bbe96cd80a165ffd0ac2f6a8d59f/aiohttp-3.12.15.tar.gz", hash = "sha256:4fc61385e9c98d72fcdf47e6dd81833f47b2f77c114c29cd64a361be57a763a2", size = 7823716, upload-time = "2025-07-29T05:52:32.215Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/63/97/77cb2450d9b35f517d6cf506256bf4f5bda3f93a66b4ad64ba7fc917899c/aiohttp-3.12.15-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:802d3868f5776e28f7bf69d349c26fc0efadb81676d0afa88ed00d98a26340b7", size = 702333, upload-time = "2025-07-29T05:50:46.507Z" }, + { url = "https://files.pythonhosted.org/packages/83/6d/0544e6b08b748682c30b9f65640d006e51f90763b41d7c546693bc22900d/aiohttp-3.12.15-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:f2800614cd560287be05e33a679638e586a2d7401f4ddf99e304d98878c29444", size = 476948, upload-time = "2025-07-29T05:50:48.067Z" }, + { url = "https://files.pythonhosted.org/packages/3a/1d/c8c40e611e5094330284b1aea8a4b02ca0858f8458614fa35754cab42b9c/aiohttp-3.12.15-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8466151554b593909d30a0a125d638b4e5f3836e5aecde85b66b80ded1cb5b0d", size = 469787, upload-time = "2025-07-29T05:50:49.669Z" }, + { url = "https://files.pythonhosted.org/packages/38/7d/b76438e70319796bfff717f325d97ce2e9310f752a267bfdf5192ac6082b/aiohttp-3.12.15-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2e5a495cb1be69dae4b08f35a6c4579c539e9b5706f606632102c0f855bcba7c", size = 1716590, upload-time = "2025-07-29T05:50:51.368Z" }, + { url = "https://files.pythonhosted.org/packages/79/b1/60370d70cdf8b269ee1444b390cbd72ce514f0d1cd1a715821c784d272c9/aiohttp-3.12.15-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:6404dfc8cdde35c69aaa489bb3542fb86ef215fc70277c892be8af540e5e21c0", size = 1699241, upload-time = "2025-07-29T05:50:53.628Z" }, + { url = "https://files.pythonhosted.org/packages/a3/2b/4968a7b8792437ebc12186db31523f541943e99bda8f30335c482bea6879/aiohttp-3.12.15-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3ead1c00f8521a5c9070fcb88f02967b1d8a0544e6d85c253f6968b785e1a2ab", size = 1754335, upload-time = "2025-07-29T05:50:55.394Z" }, + { url = "https://files.pythonhosted.org/packages/fb/c1/49524ed553f9a0bec1a11fac09e790f49ff669bcd14164f9fab608831c4d/aiohttp-3.12.15-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6990ef617f14450bc6b34941dba4f12d5613cbf4e33805932f853fbd1cf18bfb", size = 1800491, upload-time = "2025-07-29T05:50:57.202Z" }, + { url = "https://files.pythonhosted.org/packages/de/5e/3bf5acea47a96a28c121b167f5ef659cf71208b19e52a88cdfa5c37f1fcc/aiohttp-3.12.15-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd736ed420f4db2b8148b52b46b88ed038d0354255f9a73196b7bbce3ea97545", size = 1719929, upload-time = "2025-07-29T05:50:59.192Z" }, + { url = "https://files.pythonhosted.org/packages/39/94/8ae30b806835bcd1cba799ba35347dee6961a11bd507db634516210e91d8/aiohttp-3.12.15-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3c5092ce14361a73086b90c6efb3948ffa5be2f5b6fbcf52e8d8c8b8848bb97c", size = 1635733, upload-time = "2025-07-29T05:51:01.394Z" }, + { url = "https://files.pythonhosted.org/packages/7a/46/06cdef71dd03acd9da7f51ab3a9107318aee12ad38d273f654e4f981583a/aiohttp-3.12.15-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:aaa2234bb60c4dbf82893e934d8ee8dea30446f0647e024074237a56a08c01bd", size = 1696790, upload-time = "2025-07-29T05:51:03.657Z" }, + { url = "https://files.pythonhosted.org/packages/02/90/6b4cfaaf92ed98d0ec4d173e78b99b4b1a7551250be8937d9d67ecb356b4/aiohttp-3.12.15-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:6d86a2fbdd14192e2f234a92d3b494dd4457e683ba07e5905a0b3ee25389ac9f", size = 1718245, upload-time = "2025-07-29T05:51:05.911Z" }, + { url = "https://files.pythonhosted.org/packages/2e/e6/2593751670fa06f080a846f37f112cbe6f873ba510d070136a6ed46117c6/aiohttp-3.12.15-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:a041e7e2612041a6ddf1c6a33b883be6a421247c7afd47e885969ee4cc58bd8d", size = 1658899, upload-time = "2025-07-29T05:51:07.753Z" }, + { url = "https://files.pythonhosted.org/packages/8f/28/c15bacbdb8b8eb5bf39b10680d129ea7410b859e379b03190f02fa104ffd/aiohttp-3.12.15-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:5015082477abeafad7203757ae44299a610e89ee82a1503e3d4184e6bafdd519", size = 1738459, upload-time = "2025-07-29T05:51:09.56Z" }, + { url = "https://files.pythonhosted.org/packages/00/de/c269cbc4faa01fb10f143b1670633a8ddd5b2e1ffd0548f7aa49cb5c70e2/aiohttp-3.12.15-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:56822ff5ddfd1b745534e658faba944012346184fbfe732e0d6134b744516eea", size = 1766434, upload-time = "2025-07-29T05:51:11.423Z" }, + { url = "https://files.pythonhosted.org/packages/52/b0/4ff3abd81aa7d929b27d2e1403722a65fc87b763e3a97b3a2a494bfc63bc/aiohttp-3.12.15-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b2acbbfff69019d9014508c4ba0401822e8bae5a5fdc3b6814285b71231b60f3", size = 1726045, upload-time = "2025-07-29T05:51:13.689Z" }, + { url = "https://files.pythonhosted.org/packages/71/16/949225a6a2dd6efcbd855fbd90cf476052e648fb011aa538e3b15b89a57a/aiohttp-3.12.15-cp312-cp312-win32.whl", hash = "sha256:d849b0901b50f2185874b9a232f38e26b9b3d4810095a7572eacea939132d4e1", size = 423591, upload-time = "2025-07-29T05:51:15.452Z" }, + { url = "https://files.pythonhosted.org/packages/2b/d8/fa65d2a349fe938b76d309db1a56a75c4fb8cc7b17a398b698488a939903/aiohttp-3.12.15-cp312-cp312-win_amd64.whl", hash = "sha256:b390ef5f62bb508a9d67cb3bba9b8356e23b3996da7062f1a57ce1a79d2b3d34", size = 450266, upload-time = "2025-07-29T05:51:17.239Z" }, + { url = "https://files.pythonhosted.org/packages/f2/33/918091abcf102e39d15aba2476ad9e7bd35ddb190dcdd43a854000d3da0d/aiohttp-3.12.15-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:9f922ffd05034d439dde1c77a20461cf4a1b0831e6caa26151fe7aa8aaebc315", size = 696741, upload-time = "2025-07-29T05:51:19.021Z" }, + { url = "https://files.pythonhosted.org/packages/b5/2a/7495a81e39a998e400f3ecdd44a62107254803d1681d9189be5c2e4530cd/aiohttp-3.12.15-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:2ee8a8ac39ce45f3e55663891d4b1d15598c157b4d494a4613e704c8b43112cd", size = 474407, upload-time = "2025-07-29T05:51:21.165Z" }, + { url = "https://files.pythonhosted.org/packages/49/fc/a9576ab4be2dcbd0f73ee8675d16c707cfc12d5ee80ccf4015ba543480c9/aiohttp-3.12.15-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:3eae49032c29d356b94eee45a3f39fdf4b0814b397638c2f718e96cfadf4c4e4", size = 466703, upload-time = "2025-07-29T05:51:22.948Z" }, + { url = "https://files.pythonhosted.org/packages/09/2f/d4bcc8448cf536b2b54eed48f19682031ad182faa3a3fee54ebe5b156387/aiohttp-3.12.15-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b97752ff12cc12f46a9b20327104448042fce5c33a624f88c18f66f9368091c7", size = 1705532, upload-time = "2025-07-29T05:51:25.211Z" }, + { url = "https://files.pythonhosted.org/packages/f1/f3/59406396083f8b489261e3c011aa8aee9df360a96ac8fa5c2e7e1b8f0466/aiohttp-3.12.15-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:894261472691d6fe76ebb7fcf2e5870a2ac284c7406ddc95823c8598a1390f0d", size = 1686794, upload-time = "2025-07-29T05:51:27.145Z" }, + { url = "https://files.pythonhosted.org/packages/dc/71/164d194993a8d114ee5656c3b7ae9c12ceee7040d076bf7b32fb98a8c5c6/aiohttp-3.12.15-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5fa5d9eb82ce98959fc1031c28198b431b4d9396894f385cb63f1e2f3f20ca6b", size = 1738865, upload-time = "2025-07-29T05:51:29.366Z" }, + { url = "https://files.pythonhosted.org/packages/1c/00/d198461b699188a93ead39cb458554d9f0f69879b95078dce416d3209b54/aiohttp-3.12.15-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f0fa751efb11a541f57db59c1dd821bec09031e01452b2b6217319b3a1f34f3d", size = 1788238, upload-time = "2025-07-29T05:51:31.285Z" }, + { url = "https://files.pythonhosted.org/packages/85/b8/9e7175e1fa0ac8e56baa83bf3c214823ce250d0028955dfb23f43d5e61fd/aiohttp-3.12.15-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5346b93e62ab51ee2a9d68e8f73c7cf96ffb73568a23e683f931e52450e4148d", size = 1710566, upload-time = "2025-07-29T05:51:33.219Z" }, + { url = "https://files.pythonhosted.org/packages/59/e4/16a8eac9df39b48ae102ec030fa9f726d3570732e46ba0c592aeeb507b93/aiohttp-3.12.15-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:049ec0360f939cd164ecbfd2873eaa432613d5e77d6b04535e3d1fbae5a9e645", size = 1624270, upload-time = "2025-07-29T05:51:35.195Z" }, + { url = "https://files.pythonhosted.org/packages/1f/f8/cd84dee7b6ace0740908fd0af170f9fab50c2a41ccbc3806aabcb1050141/aiohttp-3.12.15-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b52dcf013b57464b6d1e51b627adfd69a8053e84b7103a7cd49c030f9ca44461", size = 1677294, upload-time = "2025-07-29T05:51:37.215Z" }, + { url = "https://files.pythonhosted.org/packages/ce/42/d0f1f85e50d401eccd12bf85c46ba84f947a84839c8a1c2c5f6e8ab1eb50/aiohttp-3.12.15-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:9b2af240143dd2765e0fb661fd0361a1b469cab235039ea57663cda087250ea9", size = 1708958, upload-time = "2025-07-29T05:51:39.328Z" }, + { url = "https://files.pythonhosted.org/packages/d5/6b/f6fa6c5790fb602538483aa5a1b86fcbad66244997e5230d88f9412ef24c/aiohttp-3.12.15-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:ac77f709a2cde2cc71257ab2d8c74dd157c67a0558a0d2799d5d571b4c63d44d", size = 1651553, upload-time = "2025-07-29T05:51:41.356Z" }, + { url = "https://files.pythonhosted.org/packages/04/36/a6d36ad545fa12e61d11d1932eef273928b0495e6a576eb2af04297fdd3c/aiohttp-3.12.15-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:47f6b962246f0a774fbd3b6b7be25d59b06fdb2f164cf2513097998fc6a29693", size = 1727688, upload-time = "2025-07-29T05:51:43.452Z" }, + { url = "https://files.pythonhosted.org/packages/aa/c8/f195e5e06608a97a4e52c5d41c7927301bf757a8e8bb5bbf8cef6c314961/aiohttp-3.12.15-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:760fb7db442f284996e39cf9915a94492e1896baac44f06ae551974907922b64", size = 1761157, upload-time = "2025-07-29T05:51:45.643Z" }, + { url = "https://files.pythonhosted.org/packages/05/6a/ea199e61b67f25ba688d3ce93f63b49b0a4e3b3d380f03971b4646412fc6/aiohttp-3.12.15-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ad702e57dc385cae679c39d318def49aef754455f237499d5b99bea4ef582e51", size = 1710050, upload-time = "2025-07-29T05:51:48.203Z" }, + { url = "https://files.pythonhosted.org/packages/b4/2e/ffeb7f6256b33635c29dbed29a22a723ff2dd7401fff42ea60cf2060abfb/aiohttp-3.12.15-cp313-cp313-win32.whl", hash = "sha256:f813c3e9032331024de2eb2e32a88d86afb69291fbc37a3a3ae81cc9917fb3d0", size = 422647, upload-time = "2025-07-29T05:51:50.718Z" }, + { url = "https://files.pythonhosted.org/packages/1b/8e/78ee35774201f38d5e1ba079c9958f7629b1fd079459aea9467441dbfbf5/aiohttp-3.12.15-cp313-cp313-win_amd64.whl", hash = "sha256:1a649001580bdb37c6fdb1bebbd7e3bc688e8ec2b5c6f52edbb664662b17dc84", size = 449067, upload-time = "2025-07-29T05:51:52.549Z" }, +] + +[[package]] +name = "aiosignal" +version = "1.4.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "frozenlist" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/61/62/06741b579156360248d1ec624842ad0edf697050bbaf7c3e46394e106ad1/aiosignal-1.4.0.tar.gz", hash = "sha256:f47eecd9468083c2029cc99945502cb7708b082c232f9aca65da147157b251c7", size = 25007, upload-time = "2025-07-03T22:54:43.528Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fb/76/641ae371508676492379f16e2fa48f4e2c11741bd63c48be4b12a6b09cba/aiosignal-1.4.0-py3-none-any.whl", hash = "sha256:053243f8b92b990551949e63930a839ff0cf0b0ebbe0597b0f3fb19e1a0fe82e", size = 7490, upload-time = "2025-07-03T22:54:42.156Z" }, +] + +[[package]] +name = "albucore" +version = "0.0.24" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, + { name = "opencv-python-headless" }, + { name = "simsimd" }, + { name = "stringzilla" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/13/69/d4cbcf2a5768bf91cd14ffef783520458431e5d2b22fbc08418d3ba09a88/albucore-0.0.24.tar.gz", hash = "sha256:f2cab5431fadf94abf87fd0c89d9f59046e49fe5de34afea8f89bc8390253746", size = 16981, upload-time = "2025-03-09T18:46:51.409Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0a/e2/91f145e1f32428e9e1f21f46a7022ffe63d11f549ee55c3b9265ff5207fc/albucore-0.0.24-py3-none-any.whl", hash = "sha256:adef6e434e50e22c2ee127b7a3e71f2e35fa088bcf54431e18970b62d97d0005", size = 15372, upload-time = "2025-03-09T18:46:50.177Z" }, +] + +[[package]] +name = "albumentations" +version = "2.0.8" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "albucore" }, + { name = "numpy" }, + { name = "opencv-python-headless" }, + { name = "pydantic" }, + { name = "pyyaml" }, + { name = "scipy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f4/f4/85eb56c3217b53bcfc2d12e840a0b18ca60902086321cafa5a730f9c0470/albumentations-2.0.8.tar.gz", hash = "sha256:4da95e658e490de3c34af8fcdffed09e36aa8a4edd06ca9f9e7e3ea0b0b16856", size = 354460, upload-time = "2025-05-27T21:23:17.415Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8e/64/013409c451a44b61310fb757af4527f3de57fc98a00f40448de28b864290/albumentations-2.0.8-py3-none-any.whl", hash = "sha256:c4c4259aaf04a7386ad85c7fdcb73c6c7146ca3057446b745cc035805acb1017", size = 369423, upload-time = "2025-05-27T21:23:15.609Z" }, +] + +[[package]] +name = "alembic" +version = "1.16.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mako" }, + { name = "sqlalchemy" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/83/52/72e791b75c6b1efa803e491f7cbab78e963695e76d4ada05385252927e76/alembic-1.16.4.tar.gz", hash = "sha256:efab6ada0dd0fae2c92060800e0bf5c1dc26af15a10e02fb4babff164b4725e2", size = 1968161, upload-time = "2025-07-10T16:17:20.192Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c2/62/96b5217b742805236614f05904541000f55422a6060a90d7fd4ce26c172d/alembic-1.16.4-py3-none-any.whl", hash = "sha256:b05e51e8e82efc1abd14ba2af6392897e145930c3e0a2faf2b0da2f7f7fd660d", size = 247026, upload-time = "2025-07-10T16:17:21.845Z" }, +] + +[[package]] +name = "altair" +version = "5.5.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "jinja2" }, + { name = "jsonschema" }, + { name = "narwhals" }, + { name = "packaging" }, + { name = "typing-extensions", marker = "python_full_version < '3.14'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/16/b1/f2969c7bdb8ad8bbdda031687defdce2c19afba2aa2c8e1d2a17f78376d8/altair-5.5.0.tar.gz", hash = "sha256:d960ebe6178c56de3855a68c47b516be38640b73fb3b5111c2a9ca90546dd73d", size = 705305, upload-time = "2024-11-23T23:39:58.542Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/aa/f3/0b6ced594e51cc95d8c1fc1640d3623770d01e4969d29c0bd09945fafefa/altair-5.5.0-py3-none-any.whl", hash = "sha256:91a310b926508d560fe0148d02a194f38b824122641ef528113d029fcd129f8c", size = 731200, upload-time = "2024-11-23T23:39:56.4Z" }, +] + +[[package]] +name = "amqp" +version = "5.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "vine" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/79/fc/ec94a357dfc6683d8c86f8b4cfa5416a4c36b28052ec8260c77aca96a443/amqp-5.3.1.tar.gz", hash = "sha256:cddc00c725449522023bad949f70fff7b48f0b1ade74d170a6f10ab044739432", size = 129013, upload-time = "2024-11-12T19:55:44.051Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/26/99/fc813cd978842c26c82534010ea849eee9ab3a13ea2b74e95cb9c99e747b/amqp-5.3.1-py3-none-any.whl", hash = "sha256:43b3319e1b4e7d1251833a93d672b4af1e40f3d632d479b98661a95f117880a2", size = 50944, upload-time = "2024-11-12T19:55:41.782Z" }, +] + +[[package]] +name = "annotated-types" +version = "0.7.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081, upload-time = "2024-05-20T21:33:25.928Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643, upload-time = "2024-05-20T21:33:24.1Z" }, +] + +[[package]] +name = "anthropic" +version = "0.63.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "distro" }, + { name = "httpx" }, + { name = "jiter" }, + { name = "pydantic" }, + { name = "sniffio" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/80/6e/3bedbd1c932cce98495e007b6d8007a139cf46adc5c889d700ec75ddd7f3/anthropic-0.63.0.tar.gz", hash = "sha256:d75ecfff17a0b96d845be3cbd93e06a48ea95aaa27add586748772fa5b926994", size = 427391, upload-time = "2025-08-12T16:59:58.079Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8c/a1/83bdb1a8be76fbb3ceedae9dfe1b515cff56dcfbbc388b53070a27ce341f/anthropic-0.63.0-py3-none-any.whl", hash = "sha256:d1849fe1635ae4277f45a0e4365979ed69e6264b73350ce8a99fee701d347745", size = 296637, upload-time = "2025-08-12T16:59:56.841Z" }, +] + +[[package]] +name = "antlr4-python3-runtime" +version = "4.9.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/3e/38/7859ff46355f76f8d19459005ca000b6e7012f2f1ca597746cbcd1fbfe5e/antlr4-python3-runtime-4.9.3.tar.gz", hash = "sha256:f224469b4168294902bb1efa80a8bf7855f24c99aef99cbefc1bcd3cce77881b", size = 117034, upload-time = "2021-11-06T17:52:23.524Z" } + +[[package]] +name = "anyio" +version = "4.10.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "idna" }, + { name = "sniffio" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f1/b4/636b3b65173d3ce9a38ef5f0522789614e590dab6a8d505340a4efe4c567/anyio-4.10.0.tar.gz", hash = "sha256:3f3fae35c96039744587aa5b8371e7e8e603c0702999535961dd336026973ba6", size = 213252, upload-time = "2025-08-04T08:54:26.451Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6f/12/e5e0282d673bb9746bacfb6e2dba8719989d3660cdb2ea79aee9a9651afb/anyio-4.10.0-py3-none-any.whl", hash = "sha256:60e474ac86736bbfd6f210f7a61218939c318f43f9972497381f1c5e930ed3d1", size = 107213, upload-time = "2025-08-04T08:54:24.882Z" }, +] + +[[package]] +name = "argcomplete" +version = "3.6.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/16/0f/861e168fc813c56a78b35f3c30d91c6757d1fd185af1110f1aec784b35d0/argcomplete-3.6.2.tar.gz", hash = "sha256:d0519b1bc867f5f4f4713c41ad0aba73a4a5f007449716b16f385f2166dc6adf", size = 73403, upload-time = "2025-04-03T04:57:03.52Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/31/da/e42d7a9d8dd33fa775f467e4028a47936da2f01e4b0e561f9ba0d74cb0ca/argcomplete-3.6.2-py3-none-any.whl", hash = "sha256:65b3133a29ad53fb42c48cf5114752c7ab66c1c38544fdf6460f450c09b42591", size = 43708, upload-time = "2025-04-03T04:57:01.591Z" }, +] + +[[package]] +name = "attrs" +version = "25.3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5a/b0/1367933a8532ee6ff8d63537de4f1177af4bff9f3e829baf7331f595bb24/attrs-25.3.0.tar.gz", hash = "sha256:75d7cefc7fb576747b2c81b4442d4d4a1ce0900973527c011d1030fd3bf4af1b", size = 812032, upload-time = "2025-03-13T11:10:22.779Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/77/06/bb80f5f86020c4551da315d78b3ab75e8228f89f0162f2c3a819e407941a/attrs-25.3.0-py3-none-any.whl", hash = "sha256:427318ce031701fea540783410126f03899a97ffc6f61596ad581ac2e40e3bc3", size = 63815, upload-time = "2025-03-13T11:10:21.14Z" }, +] + +[[package]] +name = "audioop-lts" +version = "0.2.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/38/53/946db57842a50b2da2e0c1e34bd37f36f5aadba1a929a3971c5d7841dbca/audioop_lts-0.2.2.tar.gz", hash = "sha256:64d0c62d88e67b98a1a5e71987b7aa7b5bcffc7dcee65b635823dbdd0a8dbbd0", size = 30686, upload-time = "2025-08-05T16:43:17.409Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/de/d4/94d277ca941de5a507b07f0b592f199c22454eeaec8f008a286b3fbbacd6/audioop_lts-0.2.2-cp313-abi3-macosx_10_13_universal2.whl", hash = "sha256:fd3d4602dc64914d462924a08c1a9816435a2155d74f325853c1f1ac3b2d9800", size = 46523, upload-time = "2025-08-05T16:42:20.836Z" }, + { url = "https://files.pythonhosted.org/packages/f8/5a/656d1c2da4b555920ce4177167bfeb8623d98765594af59702c8873f60ec/audioop_lts-0.2.2-cp313-abi3-macosx_10_13_x86_64.whl", hash = "sha256:550c114a8df0aafe9a05442a1162dfc8fec37e9af1d625ae6060fed6e756f303", size = 27455, upload-time = "2025-08-05T16:42:22.283Z" }, + { url = "https://files.pythonhosted.org/packages/1b/83/ea581e364ce7b0d41456fb79d6ee0ad482beda61faf0cab20cbd4c63a541/audioop_lts-0.2.2-cp313-abi3-macosx_11_0_arm64.whl", hash = "sha256:9a13dc409f2564de15dd68be65b462ba0dde01b19663720c68c1140c782d1d75", size = 26997, upload-time = "2025-08-05T16:42:23.849Z" }, + { url = "https://files.pythonhosted.org/packages/b8/3b/e8964210b5e216e5041593b7d33e97ee65967f17c282e8510d19c666dab4/audioop_lts-0.2.2-cp313-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:51c916108c56aa6e426ce611946f901badac950ee2ddaf302b7ed35d9958970d", size = 85844, upload-time = "2025-08-05T16:42:25.208Z" }, + { url = "https://files.pythonhosted.org/packages/c7/2e/0a1c52faf10d51def20531a59ce4c706cb7952323b11709e10de324d6493/audioop_lts-0.2.2-cp313-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:47eba38322370347b1c47024defbd36374a211e8dd5b0dcbce7b34fdb6f8847b", size = 85056, upload-time = "2025-08-05T16:42:26.559Z" }, + { url = "https://files.pythonhosted.org/packages/75/e8/cd95eef479656cb75ab05dfece8c1f8c395d17a7c651d88f8e6e291a63ab/audioop_lts-0.2.2-cp313-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ba7c3a7e5f23e215cb271516197030c32aef2e754252c4c70a50aaff7031a2c8", size = 93892, upload-time = "2025-08-05T16:42:27.902Z" }, + { url = "https://files.pythonhosted.org/packages/5c/1e/a0c42570b74f83efa5cca34905b3eef03f7ab09fe5637015df538a7f3345/audioop_lts-0.2.2-cp313-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:def246fe9e180626731b26e89816e79aae2276f825420a07b4a647abaa84becc", size = 96660, upload-time = "2025-08-05T16:42:28.9Z" }, + { url = "https://files.pythonhosted.org/packages/50/d5/8a0ae607ca07dbb34027bac8db805498ee7bfecc05fd2c148cc1ed7646e7/audioop_lts-0.2.2-cp313-abi3-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e160bf9df356d841bb6c180eeeea1834085464626dc1b68fa4e1d59070affdc3", size = 79143, upload-time = "2025-08-05T16:42:29.929Z" }, + { url = "https://files.pythonhosted.org/packages/12/17/0d28c46179e7910bfb0bb62760ccb33edb5de973052cb2230b662c14ca2e/audioop_lts-0.2.2-cp313-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:4b4cd51a57b698b2d06cb9993b7ac8dfe89a3b2878e96bc7948e9f19ff51dba6", size = 84313, upload-time = "2025-08-05T16:42:30.949Z" }, + { url = "https://files.pythonhosted.org/packages/84/ba/bd5d3806641564f2024e97ca98ea8f8811d4e01d9b9f9831474bc9e14f9e/audioop_lts-0.2.2-cp313-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:4a53aa7c16a60a6857e6b0b165261436396ef7293f8b5c9c828a3a203147ed4a", size = 93044, upload-time = "2025-08-05T16:42:31.959Z" }, + { url = "https://files.pythonhosted.org/packages/f9/5e/435ce8d5642f1f7679540d1e73c1c42d933331c0976eb397d1717d7f01a3/audioop_lts-0.2.2-cp313-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:3fc38008969796f0f689f1453722a0f463da1b8a6fbee11987830bfbb664f623", size = 78766, upload-time = "2025-08-05T16:42:33.302Z" }, + { url = "https://files.pythonhosted.org/packages/ae/3b/b909e76b606cbfd53875693ec8c156e93e15a1366a012f0b7e4fb52d3c34/audioop_lts-0.2.2-cp313-abi3-musllinux_1_2_s390x.whl", hash = "sha256:15ab25dd3e620790f40e9ead897f91e79c0d3ce65fe193c8ed6c26cffdd24be7", size = 87640, upload-time = "2025-08-05T16:42:34.854Z" }, + { url = "https://files.pythonhosted.org/packages/30/e7/8f1603b4572d79b775f2140d7952f200f5e6c62904585d08a01f0a70393a/audioop_lts-0.2.2-cp313-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:03f061a1915538fd96272bac9551841859dbb2e3bf73ebe4a23ef043766f5449", size = 86052, upload-time = "2025-08-05T16:42:35.839Z" }, + { url = "https://files.pythonhosted.org/packages/b5/96/c37846df657ccdda62ba1ae2b6534fa90e2e1b1742ca8dcf8ebd38c53801/audioop_lts-0.2.2-cp313-abi3-win32.whl", hash = "sha256:3bcddaaf6cc5935a300a8387c99f7a7fbbe212a11568ec6cf6e4bc458c048636", size = 26185, upload-time = "2025-08-05T16:42:37.04Z" }, + { url = "https://files.pythonhosted.org/packages/34/a5/9d78fdb5b844a83da8a71226c7bdae7cc638861085fff7a1d707cb4823fa/audioop_lts-0.2.2-cp313-abi3-win_amd64.whl", hash = "sha256:a2c2a947fae7d1062ef08c4e369e0ba2086049a5e598fda41122535557012e9e", size = 30503, upload-time = "2025-08-05T16:42:38.427Z" }, + { url = "https://files.pythonhosted.org/packages/34/25/20d8fde083123e90c61b51afb547bb0ea7e77bab50d98c0ab243d02a0e43/audioop_lts-0.2.2-cp313-abi3-win_arm64.whl", hash = "sha256:5f93a5db13927a37d2d09637ccca4b2b6b48c19cd9eda7b17a2e9f77edee6a6f", size = 24173, upload-time = "2025-08-05T16:42:39.704Z" }, + { url = "https://files.pythonhosted.org/packages/58/a7/0a764f77b5c4ac58dc13c01a580f5d32ae8c74c92020b961556a43e26d02/audioop_lts-0.2.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:73f80bf4cd5d2ca7814da30a120de1f9408ee0619cc75da87d0641273d202a09", size = 47096, upload-time = "2025-08-05T16:42:40.684Z" }, + { url = "https://files.pythonhosted.org/packages/aa/ed/ebebedde1a18848b085ad0fa54b66ceb95f1f94a3fc04f1cd1b5ccb0ed42/audioop_lts-0.2.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:106753a83a25ee4d6f473f2be6b0966fc1c9af7e0017192f5531a3e7463dce58", size = 27748, upload-time = "2025-08-05T16:42:41.992Z" }, + { url = "https://files.pythonhosted.org/packages/cb/6e/11ca8c21af79f15dbb1c7f8017952ee8c810c438ce4e2b25638dfef2b02c/audioop_lts-0.2.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:fbdd522624141e40948ab3e8cdae6e04c748d78710e9f0f8d4dae2750831de19", size = 27329, upload-time = "2025-08-05T16:42:42.987Z" }, + { url = "https://files.pythonhosted.org/packages/84/52/0022f93d56d85eec5da6b9da6a958a1ef09e80c39f2cc0a590c6af81dcbb/audioop_lts-0.2.2-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:143fad0311e8209ece30a8dbddab3b65ab419cbe8c0dde6e8828da25999be911", size = 92407, upload-time = "2025-08-05T16:42:44.336Z" }, + { url = "https://files.pythonhosted.org/packages/87/1d/48a889855e67be8718adbc7a01f3c01d5743c325453a5e81cf3717664aad/audioop_lts-0.2.2-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:dfbbc74ec68a0fd08cfec1f4b5e8cca3d3cd7de5501b01c4b5d209995033cde9", size = 91811, upload-time = "2025-08-05T16:42:45.325Z" }, + { url = "https://files.pythonhosted.org/packages/98/a6/94b7213190e8077547ffae75e13ed05edc488653c85aa5c41472c297d295/audioop_lts-0.2.2-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:cfcac6aa6f42397471e4943e0feb2244549db5c5d01efcd02725b96af417f3fe", size = 100470, upload-time = "2025-08-05T16:42:46.468Z" }, + { url = "https://files.pythonhosted.org/packages/e9/e9/78450d7cb921ede0cfc33426d3a8023a3bda755883c95c868ee36db8d48d/audioop_lts-0.2.2-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:752d76472d9804ac60f0078c79cdae8b956f293177acd2316cd1e15149aee132", size = 103878, upload-time = "2025-08-05T16:42:47.576Z" }, + { url = "https://files.pythonhosted.org/packages/4f/e2/cd5439aad4f3e34ae1ee852025dc6aa8f67a82b97641e390bf7bd9891d3e/audioop_lts-0.2.2-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:83c381767e2cc10e93e40281a04852facc4cd9334550e0f392f72d1c0a9c5753", size = 84867, upload-time = "2025-08-05T16:42:49.003Z" }, + { url = "https://files.pythonhosted.org/packages/68/4b/9d853e9076c43ebba0d411e8d2aa19061083349ac695a7d082540bad64d0/audioop_lts-0.2.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:c0022283e9556e0f3643b7c3c03f05063ca72b3063291834cca43234f20c60bb", size = 90001, upload-time = "2025-08-05T16:42:50.038Z" }, + { url = "https://files.pythonhosted.org/packages/58/26/4bae7f9d2f116ed5593989d0e521d679b0d583973d203384679323d8fa85/audioop_lts-0.2.2-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:a2d4f1513d63c795e82948e1305f31a6d530626e5f9f2605408b300ae6095093", size = 99046, upload-time = "2025-08-05T16:42:51.111Z" }, + { url = "https://files.pythonhosted.org/packages/b2/67/a9f4fb3e250dda9e9046f8866e9fa7d52664f8985e445c6b4ad6dfb55641/audioop_lts-0.2.2-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:c9c8e68d8b4a56fda8c025e538e639f8c5953f5073886b596c93ec9b620055e7", size = 84788, upload-time = "2025-08-05T16:42:52.198Z" }, + { url = "https://files.pythonhosted.org/packages/70/f7/3de86562db0121956148bcb0fe5b506615e3bcf6e63c4357a612b910765a/audioop_lts-0.2.2-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:96f19de485a2925314f5020e85911fb447ff5fbef56e8c7c6927851b95533a1c", size = 94472, upload-time = "2025-08-05T16:42:53.59Z" }, + { url = "https://files.pythonhosted.org/packages/f1/32/fd772bf9078ae1001207d2df1eef3da05bea611a87dd0e8217989b2848fa/audioop_lts-0.2.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:e541c3ef484852ef36545f66209444c48b28661e864ccadb29daddb6a4b8e5f5", size = 92279, upload-time = "2025-08-05T16:42:54.632Z" }, + { url = "https://files.pythonhosted.org/packages/4f/41/affea7181592ab0ab560044632571a38edaf9130b84928177823fbf3176a/audioop_lts-0.2.2-cp313-cp313t-win32.whl", hash = "sha256:d5e73fa573e273e4f2e5ff96f9043858a5e9311e94ffefd88a3186a910c70917", size = 26568, upload-time = "2025-08-05T16:42:55.627Z" }, + { url = "https://files.pythonhosted.org/packages/28/2b/0372842877016641db8fc54d5c88596b542eec2f8f6c20a36fb6612bf9ee/audioop_lts-0.2.2-cp313-cp313t-win_amd64.whl", hash = "sha256:9191d68659eda01e448188f60364c7763a7ca6653ed3f87ebb165822153a8547", size = 30942, upload-time = "2025-08-05T16:42:56.674Z" }, + { url = "https://files.pythonhosted.org/packages/ee/ca/baf2b9cc7e96c179bb4a54f30fcd83e6ecb340031bde68f486403f943768/audioop_lts-0.2.2-cp313-cp313t-win_arm64.whl", hash = "sha256:c174e322bb5783c099aaf87faeb240c8d210686b04bd61dfd05a8e5a83d88969", size = 24603, upload-time = "2025-08-05T16:42:57.571Z" }, + { url = "https://files.pythonhosted.org/packages/5c/73/413b5a2804091e2c7d5def1d618e4837f1cb82464e230f827226278556b7/audioop_lts-0.2.2-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:f9ee9b52f5f857fbaf9d605a360884f034c92c1c23021fb90b2e39b8e64bede6", size = 47104, upload-time = "2025-08-05T16:42:58.518Z" }, + { url = "https://files.pythonhosted.org/packages/ae/8c/daa3308dc6593944410c2c68306a5e217f5c05b70a12e70228e7dd42dc5c/audioop_lts-0.2.2-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:49ee1a41738a23e98d98b937a0638357a2477bc99e61b0f768a8f654f45d9b7a", size = 27754, upload-time = "2025-08-05T16:43:00.132Z" }, + { url = "https://files.pythonhosted.org/packages/4e/86/c2e0f627168fcf61781a8f72cab06b228fe1da4b9fa4ab39cfb791b5836b/audioop_lts-0.2.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:5b00be98ccd0fc123dcfad31d50030d25fcf31488cde9e61692029cd7394733b", size = 27332, upload-time = "2025-08-05T16:43:01.666Z" }, + { url = "https://files.pythonhosted.org/packages/c7/bd/35dce665255434f54e5307de39e31912a6f902d4572da7c37582809de14f/audioop_lts-0.2.2-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:a6d2e0f9f7a69403e388894d4ca5ada5c47230716a03f2847cfc7bd1ecb589d6", size = 92396, upload-time = "2025-08-05T16:43:02.991Z" }, + { url = "https://files.pythonhosted.org/packages/2d/d2/deeb9f51def1437b3afa35aeb729d577c04bcd89394cb56f9239a9f50b6f/audioop_lts-0.2.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f9b0b8a03ef474f56d1a842af1a2e01398b8f7654009823c6d9e0ecff4d5cfbf", size = 91811, upload-time = "2025-08-05T16:43:04.096Z" }, + { url = "https://files.pythonhosted.org/packages/76/3b/09f8b35b227cee28cc8231e296a82759ed80c1a08e349811d69773c48426/audioop_lts-0.2.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2b267b70747d82125f1a021506565bdc5609a2b24bcb4773c16d79d2bb260bbd", size = 100483, upload-time = "2025-08-05T16:43:05.085Z" }, + { url = "https://files.pythonhosted.org/packages/0b/15/05b48a935cf3b130c248bfdbdea71ce6437f5394ee8533e0edd7cfd93d5e/audioop_lts-0.2.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0337d658f9b81f4cd0fdb1f47635070cc084871a3d4646d9de74fdf4e7c3d24a", size = 103885, upload-time = "2025-08-05T16:43:06.197Z" }, + { url = "https://files.pythonhosted.org/packages/83/80/186b7fce6d35b68d3d739f228dc31d60b3412105854edb975aa155a58339/audioop_lts-0.2.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:167d3b62586faef8b6b2275c3218796b12621a60e43f7e9d5845d627b9c9b80e", size = 84899, upload-time = "2025-08-05T16:43:07.291Z" }, + { url = "https://files.pythonhosted.org/packages/49/89/c78cc5ac6cb5828f17514fb12966e299c850bc885e80f8ad94e38d450886/audioop_lts-0.2.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:0d9385e96f9f6da847f4d571ce3cb15b5091140edf3db97276872647ce37efd7", size = 89998, upload-time = "2025-08-05T16:43:08.335Z" }, + { url = "https://files.pythonhosted.org/packages/4c/4b/6401888d0c010e586c2ca50fce4c903d70a6bb55928b16cfbdfd957a13da/audioop_lts-0.2.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:48159d96962674eccdca9a3df280e864e8ac75e40a577cc97c5c42667ffabfc5", size = 99046, upload-time = "2025-08-05T16:43:09.367Z" }, + { url = "https://files.pythonhosted.org/packages/de/f8/c874ca9bb447dae0e2ef2e231f6c4c2b0c39e31ae684d2420b0f9e97ee68/audioop_lts-0.2.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:8fefe5868cd082db1186f2837d64cfbfa78b548ea0d0543e9b28935ccce81ce9", size = 84843, upload-time = "2025-08-05T16:43:10.749Z" }, + { url = "https://files.pythonhosted.org/packages/3e/c0/0323e66f3daebc13fd46b36b30c3be47e3fc4257eae44f1e77eb828c703f/audioop_lts-0.2.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:58cf54380c3884fb49fdd37dfb7a772632b6701d28edd3e2904743c5e1773602", size = 94490, upload-time = "2025-08-05T16:43:12.131Z" }, + { url = "https://files.pythonhosted.org/packages/98/6b/acc7734ac02d95ab791c10c3f17ffa3584ccb9ac5c18fd771c638ed6d1f5/audioop_lts-0.2.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:088327f00488cdeed296edd9215ca159f3a5a5034741465789cad403fcf4bec0", size = 92297, upload-time = "2025-08-05T16:43:13.139Z" }, + { url = "https://files.pythonhosted.org/packages/13/c3/c3dc3f564ce6877ecd2a05f8d751b9b27a8c320c2533a98b0c86349778d0/audioop_lts-0.2.2-cp314-cp314t-win32.whl", hash = "sha256:068aa17a38b4e0e7de771c62c60bbca2455924b67a8814f3b0dee92b5820c0b3", size = 27331, upload-time = "2025-08-05T16:43:14.19Z" }, + { url = "https://files.pythonhosted.org/packages/72/bb/b4608537e9ffcb86449091939d52d24a055216a36a8bf66b936af8c3e7ac/audioop_lts-0.2.2-cp314-cp314t-win_amd64.whl", hash = "sha256:a5bf613e96f49712073de86f20dbdd4014ca18efd4d34ed18c75bd808337851b", size = 31697, upload-time = "2025-08-05T16:43:15.193Z" }, + { url = "https://files.pythonhosted.org/packages/f6/22/91616fe707a5c5510de2cac9b046a30defe7007ba8a0c04f9c08f27df312/audioop_lts-0.2.2-cp314-cp314t-win_arm64.whl", hash = "sha256:b492c3b040153e68b9fdaff5913305aaaba5bb433d8a7f73d5cf6a64ed3cc1dd", size = 25206, upload-time = "2025-08-05T16:43:16.444Z" }, +] + +[[package]] +name = "beautifulsoup4" +version = "4.13.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "soupsieve" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/d8/e4/0c4c39e18fd76d6a628d4dd8da40543d136ce2d1752bd6eeeab0791f4d6b/beautifulsoup4-4.13.4.tar.gz", hash = "sha256:dbb3c4e1ceae6aefebdaf2423247260cd062430a410e38c66f2baa50a8437195", size = 621067, upload-time = "2025-04-15T17:05:13.836Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/50/cd/30110dc0ffcf3b131156077b90e9f60ed75711223f306da4db08eff8403b/beautifulsoup4-4.13.4-py3-none-any.whl", hash = "sha256:9bbbb14bfde9d79f38b8cd5f8c7c85f4b8f2523190ebed90e950a8dea4cb1c4b", size = 187285, upload-time = "2025-04-15T17:05:12.221Z" }, +] + +[[package]] +name = "billiard" +version = "4.2.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7c/58/1546c970afcd2a2428b1bfafecf2371d8951cc34b46701bea73f4280989e/billiard-4.2.1.tar.gz", hash = "sha256:12b641b0c539073fc8d3f5b8b7be998956665c4233c7c1fcd66a7e677c4fb36f", size = 155031, upload-time = "2024-09-21T13:40:22.491Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/30/da/43b15f28fe5f9e027b41c539abc5469052e9d48fd75f8ff094ba2a0ae767/billiard-4.2.1-py3-none-any.whl", hash = "sha256:40b59a4ac8806ba2c2369ea98d876bc6108b051c227baffd928c644d15d8f3cb", size = 86766, upload-time = "2024-09-21T13:40:20.188Z" }, +] + +[[package]] +name = "blinker" +version = "1.9.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/21/28/9b3f50ce0e048515135495f198351908d99540d69bfdc8c1d15b73dc55ce/blinker-1.9.0.tar.gz", hash = "sha256:b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf", size = 22460, upload-time = "2024-11-08T17:25:47.436Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/10/cb/f2ad4230dc2eb1a74edf38f1a38b9b52277f75bef262d8908e60d957e13c/blinker-1.9.0-py3-none-any.whl", hash = "sha256:ba0efaa9080b619ff2f3459d1d500c57bddea4a6b424b60a91141db6fd2f08bc", size = 8458, upload-time = "2024-11-08T17:25:46.184Z" }, +] + +[[package]] +name = "boto3" +version = "1.40.8" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "botocore" }, + { name = "jmespath" }, + { name = "s3transfer" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/06/0d/1c5c70d2f72bba218c9ed166016e4a8e2fec4783399f98b2c007c510bda8/boto3-1.40.8.tar.gz", hash = "sha256:62959010dfd3d24157f73a8183fca7619ec97fb42ac400477006f7ecb9548d06", size = 111983, upload-time = "2025-08-12T19:21:20.837Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0c/2a/73378c48746908c17251083c1e205ae07f989f82be546b99175d5bf5ca2c/boto3-1.40.8-py3-none-any.whl", hash = "sha256:9f55edd8e2eb5cd86e1c972b5250f9ab0a9555f84632506a2ed131e4a82ea23a", size = 140062, upload-time = "2025-08-12T19:21:19.607Z" }, +] + +[[package]] +name = "botocore" +version = "1.40.8" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "jmespath" }, + { name = "python-dateutil" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/64/43/d83d03afe05d46249d0e65231f7b59eec7900f9af0e395888e4d46f99d04/botocore-1.40.8.tar.gz", hash = "sha256:954fa6e36020ebf58898de80a8f864ba13b74dc26994cf20ccfff2966724b0b9", size = 14321072, upload-time = "2025-08-12T19:21:12.034Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/54/47/778f25ecedaf2c1484710d244ef40a42fe0a2088e5a24e79f68ae6489a4b/botocore-1.40.8-py3-none-any.whl", hash = "sha256:7f0327e08d7c061aaa03e32459e56bcf6daa29cd946e95b1c06be14d61a9a94d", size = 13983180, upload-time = "2025-08-12T19:21:07.665Z" }, +] + +[[package]] +name = "brotli" +version = "1.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/2f/c2/f9e977608bdf958650638c3f1e28f85a1b075f075ebbe77db8555463787b/Brotli-1.1.0.tar.gz", hash = "sha256:81de08ac11bcb85841e440c13611c00b67d3bf82698314928d0b676362546724", size = 7372270, upload-time = "2023-09-07T14:05:41.643Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5c/d0/5373ae13b93fe00095a58efcbce837fd470ca39f703a235d2a999baadfbc/Brotli-1.1.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:32d95b80260d79926f5fab3c41701dbb818fde1c9da590e77e571eefd14abe28", size = 815693, upload-time = "2024-10-18T12:32:23.824Z" }, + { url = "https://files.pythonhosted.org/packages/8e/48/f6e1cdf86751300c288c1459724bfa6917a80e30dbfc326f92cea5d3683a/Brotli-1.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:b760c65308ff1e462f65d69c12e4ae085cff3b332d894637f6273a12a482d09f", size = 422489, upload-time = "2024-10-18T12:32:25.641Z" }, + { url = "https://files.pythonhosted.org/packages/06/88/564958cedce636d0f1bed313381dfc4b4e3d3f6015a63dae6146e1b8c65c/Brotli-1.1.0-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:316cc9b17edf613ac76b1f1f305d2a748f1b976b033b049a6ecdfd5612c70409", size = 873081, upload-time = "2023-09-07T14:03:57.967Z" }, + { url = "https://files.pythonhosted.org/packages/58/79/b7026a8bb65da9a6bb7d14329fd2bd48d2b7f86d7329d5cc8ddc6a90526f/Brotli-1.1.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:caf9ee9a5775f3111642d33b86237b05808dafcd6268faa492250e9b78046eb2", size = 446244, upload-time = "2023-09-07T14:03:59.319Z" }, + { url = "https://files.pythonhosted.org/packages/e5/18/c18c32ecea41b6c0004e15606e274006366fe19436b6adccc1ae7b2e50c2/Brotli-1.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:70051525001750221daa10907c77830bc889cb6d865cc0b813d9db7fefc21451", size = 2906505, upload-time = "2023-09-07T14:04:01.327Z" }, + { url = "https://files.pythonhosted.org/packages/08/c8/69ec0496b1ada7569b62d85893d928e865df29b90736558d6c98c2031208/Brotli-1.1.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7f4bf76817c14aa98cc6697ac02f3972cb8c3da93e9ef16b9c66573a68014f91", size = 2944152, upload-time = "2023-09-07T14:04:03.033Z" }, + { url = "https://files.pythonhosted.org/packages/ab/fb/0517cea182219d6768113a38167ef6d4eb157a033178cc938033a552ed6d/Brotli-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d0c5516f0aed654134a2fc936325cc2e642f8a0e096d075209672eb321cff408", size = 2919252, upload-time = "2023-09-07T14:04:04.675Z" }, + { url = "https://files.pythonhosted.org/packages/c7/53/73a3431662e33ae61a5c80b1b9d2d18f58dfa910ae8dd696e57d39f1a2f5/Brotli-1.1.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6c3020404e0b5eefd7c9485ccf8393cfb75ec38ce75586e046573c9dc29967a0", size = 2845955, upload-time = "2023-09-07T14:04:06.585Z" }, + { url = "https://files.pythonhosted.org/packages/55/ac/bd280708d9c5ebdbf9de01459e625a3e3803cce0784f47d633562cf40e83/Brotli-1.1.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:4ed11165dd45ce798d99a136808a794a748d5dc38511303239d4e2363c0695dc", size = 2914304, upload-time = "2023-09-07T14:04:08.668Z" }, + { url = "https://files.pythonhosted.org/packages/76/58/5c391b41ecfc4527d2cc3350719b02e87cb424ef8ba2023fb662f9bf743c/Brotli-1.1.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:4093c631e96fdd49e0377a9c167bfd75b6d0bad2ace734c6eb20b348bc3ea180", size = 2814452, upload-time = "2023-09-07T14:04:10.736Z" }, + { url = "https://files.pythonhosted.org/packages/c7/4e/91b8256dfe99c407f174924b65a01f5305e303f486cc7a2e8a5d43c8bec3/Brotli-1.1.0-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:7e4c4629ddad63006efa0ef968c8e4751c5868ff0b1c5c40f76524e894c50248", size = 2938751, upload-time = "2023-09-07T14:04:12.875Z" }, + { url = "https://files.pythonhosted.org/packages/5a/a6/e2a39a5d3b412938362bbbeba5af904092bf3f95b867b4a3eb856104074e/Brotli-1.1.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:861bf317735688269936f755fa136a99d1ed526883859f86e41a5d43c61d8966", size = 2933757, upload-time = "2023-09-07T14:04:14.551Z" }, + { url = "https://files.pythonhosted.org/packages/13/f0/358354786280a509482e0e77c1a5459e439766597d280f28cb097642fc26/Brotli-1.1.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:87a3044c3a35055527ac75e419dfa9f4f3667a1e887ee80360589eb8c90aabb9", size = 2936146, upload-time = "2024-10-18T12:32:27.257Z" }, + { url = "https://files.pythonhosted.org/packages/80/f7/daf538c1060d3a88266b80ecc1d1c98b79553b3f117a485653f17070ea2a/Brotli-1.1.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:c5529b34c1c9d937168297f2c1fde7ebe9ebdd5e121297ff9c043bdb2ae3d6fb", size = 2848055, upload-time = "2024-10-18T12:32:29.376Z" }, + { url = "https://files.pythonhosted.org/packages/ad/cf/0eaa0585c4077d3c2d1edf322d8e97aabf317941d3a72d7b3ad8bce004b0/Brotli-1.1.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:ca63e1890ede90b2e4454f9a65135a4d387a4585ff8282bb72964fab893f2111", size = 3035102, upload-time = "2024-10-18T12:32:31.371Z" }, + { url = "https://files.pythonhosted.org/packages/d8/63/1c1585b2aa554fe6dbce30f0c18bdbc877fa9a1bf5ff17677d9cca0ac122/Brotli-1.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e79e6520141d792237c70bcd7a3b122d00f2613769ae0cb61c52e89fd3443839", size = 2930029, upload-time = "2024-10-18T12:32:33.293Z" }, + { url = "https://files.pythonhosted.org/packages/5f/3b/4e3fd1893eb3bbfef8e5a80d4508bec17a57bb92d586c85c12d28666bb13/Brotli-1.1.0-cp312-cp312-win32.whl", hash = "sha256:5f4d5ea15c9382135076d2fb28dde923352fe02951e66935a9efaac8f10e81b0", size = 333276, upload-time = "2023-09-07T14:04:16.49Z" }, + { url = "https://files.pythonhosted.org/packages/3d/d5/942051b45a9e883b5b6e98c041698b1eb2012d25e5948c58d6bf85b1bb43/Brotli-1.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:906bc3a79de8c4ae5b86d3d75a8b77e44404b0f4261714306e3ad248d8ab0951", size = 357255, upload-time = "2023-09-07T14:04:17.83Z" }, + { url = "https://files.pythonhosted.org/packages/0a/9f/fb37bb8ffc52a8da37b1c03c459a8cd55df7a57bdccd8831d500e994a0ca/Brotli-1.1.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8bf32b98b75c13ec7cf774164172683d6e7891088f6316e54425fde1efc276d5", size = 815681, upload-time = "2024-10-18T12:32:34.942Z" }, + { url = "https://files.pythonhosted.org/packages/06/b3/dbd332a988586fefb0aa49c779f59f47cae76855c2d00f450364bb574cac/Brotli-1.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:7bc37c4d6b87fb1017ea28c9508b36bbcb0c3d18b4260fcdf08b200c74a6aee8", size = 422475, upload-time = "2024-10-18T12:32:36.485Z" }, + { url = "https://files.pythonhosted.org/packages/bb/80/6aaddc2f63dbcf2d93c2d204e49c11a9ec93a8c7c63261e2b4bd35198283/Brotli-1.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3c0ef38c7a7014ffac184db9e04debe495d317cc9c6fb10071f7fefd93100a4f", size = 2906173, upload-time = "2024-10-18T12:32:37.978Z" }, + { url = "https://files.pythonhosted.org/packages/ea/1d/e6ca79c96ff5b641df6097d299347507d39a9604bde8915e76bf026d6c77/Brotli-1.1.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:91d7cc2a76b5567591d12c01f019dd7afce6ba8cba6571187e21e2fc418ae648", size = 2943803, upload-time = "2024-10-18T12:32:39.606Z" }, + { url = "https://files.pythonhosted.org/packages/ac/a3/d98d2472e0130b7dd3acdbb7f390d478123dbf62b7d32bda5c830a96116d/Brotli-1.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a93dde851926f4f2678e704fadeb39e16c35d8baebd5252c9fd94ce8ce68c4a0", size = 2918946, upload-time = "2024-10-18T12:32:41.679Z" }, + { url = "https://files.pythonhosted.org/packages/c4/a5/c69e6d272aee3e1423ed005d8915a7eaa0384c7de503da987f2d224d0721/Brotli-1.1.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f0db75f47be8b8abc8d9e31bc7aad0547ca26f24a54e6fd10231d623f183d089", size = 2845707, upload-time = "2024-10-18T12:32:43.478Z" }, + { url = "https://files.pythonhosted.org/packages/58/9f/4149d38b52725afa39067350696c09526de0125ebfbaab5acc5af28b42ea/Brotli-1.1.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:6967ced6730aed543b8673008b5a391c3b1076d834ca438bbd70635c73775368", size = 2936231, upload-time = "2024-10-18T12:32:45.224Z" }, + { url = "https://files.pythonhosted.org/packages/5a/5a/145de884285611838a16bebfdb060c231c52b8f84dfbe52b852a15780386/Brotli-1.1.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:7eedaa5d036d9336c95915035fb57422054014ebdeb6f3b42eac809928e40d0c", size = 2848157, upload-time = "2024-10-18T12:32:46.894Z" }, + { url = "https://files.pythonhosted.org/packages/50/ae/408b6bfb8525dadebd3b3dd5b19d631da4f7d46420321db44cd99dcf2f2c/Brotli-1.1.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:d487f5432bf35b60ed625d7e1b448e2dc855422e87469e3f450aa5552b0eb284", size = 3035122, upload-time = "2024-10-18T12:32:48.844Z" }, + { url = "https://files.pythonhosted.org/packages/af/85/a94e5cfaa0ca449d8f91c3d6f78313ebf919a0dbd55a100c711c6e9655bc/Brotli-1.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:832436e59afb93e1836081a20f324cb185836c617659b07b129141a8426973c7", size = 2930206, upload-time = "2024-10-18T12:32:51.198Z" }, + { url = "https://files.pythonhosted.org/packages/c2/f0/a61d9262cd01351df22e57ad7c34f66794709acab13f34be2675f45bf89d/Brotli-1.1.0-cp313-cp313-win32.whl", hash = "sha256:43395e90523f9c23a3d5bdf004733246fba087f2948f87ab28015f12359ca6a0", size = 333804, upload-time = "2024-10-18T12:32:52.661Z" }, + { url = "https://files.pythonhosted.org/packages/7e/c1/ec214e9c94000d1c1974ec67ced1c970c148aa6b8d8373066123fc3dbf06/Brotli-1.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:9011560a466d2eb3f5a6e4929cf4a09be405c64154e12df0dd72713f6500e32b", size = 358517, upload-time = "2024-10-18T12:32:54.066Z" }, +] + +[[package]] +name = "cachetools" +version = "5.5.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/6c/81/3747dad6b14fa2cf53fcf10548cf5aea6913e96fab41a3c198676f8948a5/cachetools-5.5.2.tar.gz", hash = "sha256:1a661caa9175d26759571b2e19580f9d6393969e5dfca11fdb1f947a23e640d4", size = 28380, upload-time = "2025-02-20T21:01:19.524Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/72/76/20fa66124dbe6be5cafeb312ece67de6b61dd91a0247d1ea13db4ebb33c2/cachetools-5.5.2-py3-none-any.whl", hash = "sha256:d26a22bcc62eb95c3beabd9f1ee5e820d3d2704fe2967cbe350e20c8ffcd3f0a", size = 10080, upload-time = "2025-02-20T21:01:16.647Z" }, +] + +[[package]] +name = "celery" +version = "5.5.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "billiard" }, + { name = "click" }, + { name = "click-didyoumean" }, + { name = "click-plugins" }, + { name = "click-repl" }, + { name = "kombu" }, + { name = "python-dateutil" }, + { name = "vine" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/bb/7d/6c289f407d219ba36d8b384b42489ebdd0c84ce9c413875a8aae0c85f35b/celery-5.5.3.tar.gz", hash = "sha256:6c972ae7968c2b5281227f01c3a3f984037d21c5129d07bf3550cc2afc6b10a5", size = 1667144, upload-time = "2025-06-01T11:08:12.563Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c9/af/0dcccc7fdcdf170f9a1585e5e96b6fb0ba1749ef6be8c89a6202284759bd/celery-5.5.3-py3-none-any.whl", hash = "sha256:0b5761a07057acee94694464ca482416b959568904c9dfa41ce8413a7d65d525", size = 438775, upload-time = "2025-06-01T11:08:09.94Z" }, +] + +[[package]] +name = "certifi" +version = "2025.8.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/dc/67/960ebe6bf230a96cda2e0abcf73af550ec4f090005363542f0765df162e0/certifi-2025.8.3.tar.gz", hash = "sha256:e564105f78ded564e3ae7c923924435e1daa7463faeab5bb932bc53ffae63407", size = 162386, upload-time = "2025-08-03T03:07:47.08Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e5/48/1549795ba7742c948d2ad169c1c8cdbae65bc450d6cd753d124b17c8cd32/certifi-2025.8.3-py3-none-any.whl", hash = "sha256:f6c12493cfb1b06ba2ff328595af9350c65d6644968e5d3a2ffd78699af217a5", size = 161216, upload-time = "2025-08-03T03:07:45.777Z" }, +] + +[[package]] +name = "cffi" +version = "1.17.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pycparser" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/fc/97/c783634659c2920c3fc70419e3af40972dbaf758daa229a7d6ea6135c90d/cffi-1.17.1.tar.gz", hash = "sha256:1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824", size = 516621, upload-time = "2024-09-04T20:45:21.852Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5a/84/e94227139ee5fb4d600a7a4927f322e1d4aea6fdc50bd3fca8493caba23f/cffi-1.17.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:805b4371bf7197c329fcb3ead37e710d1bca9da5d583f5073b799d5c5bd1eee4", size = 183178, upload-time = "2024-09-04T20:44:12.232Z" }, + { url = "https://files.pythonhosted.org/packages/da/ee/fb72c2b48656111c4ef27f0f91da355e130a923473bf5ee75c5643d00cca/cffi-1.17.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:733e99bc2df47476e3848417c5a4540522f234dfd4ef3ab7fafdf555b082ec0c", size = 178840, upload-time = "2024-09-04T20:44:13.739Z" }, + { url = "https://files.pythonhosted.org/packages/cc/b6/db007700f67d151abadf508cbfd6a1884f57eab90b1bb985c4c8c02b0f28/cffi-1.17.1-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1257bdabf294dceb59f5e70c64a3e2f462c30c7ad68092d01bbbfb1c16b1ba36", size = 454803, upload-time = "2024-09-04T20:44:15.231Z" }, + { url = "https://files.pythonhosted.org/packages/1a/df/f8d151540d8c200eb1c6fba8cd0dfd40904f1b0682ea705c36e6c2e97ab3/cffi-1.17.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:da95af8214998d77a98cc14e3a3bd00aa191526343078b530ceb0bd710fb48a5", size = 478850, upload-time = "2024-09-04T20:44:17.188Z" }, + { url = "https://files.pythonhosted.org/packages/28/c0/b31116332a547fd2677ae5b78a2ef662dfc8023d67f41b2a83f7c2aa78b1/cffi-1.17.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d63afe322132c194cf832bfec0dc69a99fb9bb6bbd550f161a49e9e855cc78ff", size = 485729, upload-time = "2024-09-04T20:44:18.688Z" }, + { url = "https://files.pythonhosted.org/packages/91/2b/9a1ddfa5c7f13cab007a2c9cc295b70fbbda7cb10a286aa6810338e60ea1/cffi-1.17.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f79fc4fc25f1c8698ff97788206bb3c2598949bfe0fef03d299eb1b5356ada99", size = 471256, upload-time = "2024-09-04T20:44:20.248Z" }, + { url = "https://files.pythonhosted.org/packages/b2/d5/da47df7004cb17e4955df6a43d14b3b4ae77737dff8bf7f8f333196717bf/cffi-1.17.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b62ce867176a75d03a665bad002af8e6d54644fad99a3c70905c543130e39d93", size = 479424, upload-time = "2024-09-04T20:44:21.673Z" }, + { url = "https://files.pythonhosted.org/packages/0b/ac/2a28bcf513e93a219c8a4e8e125534f4f6db03e3179ba1c45e949b76212c/cffi-1.17.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:386c8bf53c502fff58903061338ce4f4950cbdcb23e2902d86c0f722b786bbe3", size = 484568, upload-time = "2024-09-04T20:44:23.245Z" }, + { url = "https://files.pythonhosted.org/packages/d4/38/ca8a4f639065f14ae0f1d9751e70447a261f1a30fa7547a828ae08142465/cffi-1.17.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:4ceb10419a9adf4460ea14cfd6bc43d08701f0835e979bf821052f1805850fe8", size = 488736, upload-time = "2024-09-04T20:44:24.757Z" }, + { url = "https://files.pythonhosted.org/packages/86/c5/28b2d6f799ec0bdecf44dced2ec5ed43e0eb63097b0f58c293583b406582/cffi-1.17.1-cp312-cp312-win32.whl", hash = "sha256:a08d7e755f8ed21095a310a693525137cfe756ce62d066e53f502a83dc550f65", size = 172448, upload-time = "2024-09-04T20:44:26.208Z" }, + { url = "https://files.pythonhosted.org/packages/50/b9/db34c4755a7bd1cb2d1603ac3863f22bcecbd1ba29e5ee841a4bc510b294/cffi-1.17.1-cp312-cp312-win_amd64.whl", hash = "sha256:51392eae71afec0d0c8fb1a53b204dbb3bcabcb3c9b807eedf3e1e6ccf2de903", size = 181976, upload-time = "2024-09-04T20:44:27.578Z" }, + { url = "https://files.pythonhosted.org/packages/8d/f8/dd6c246b148639254dad4d6803eb6a54e8c85c6e11ec9df2cffa87571dbe/cffi-1.17.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f3a2b4222ce6b60e2e8b337bb9596923045681d71e5a082783484d845390938e", size = 182989, upload-time = "2024-09-04T20:44:28.956Z" }, + { url = "https://files.pythonhosted.org/packages/8b/f1/672d303ddf17c24fc83afd712316fda78dc6fce1cd53011b839483e1ecc8/cffi-1.17.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0984a4925a435b1da406122d4d7968dd861c1385afe3b45ba82b750f229811e2", size = 178802, upload-time = "2024-09-04T20:44:30.289Z" }, + { url = "https://files.pythonhosted.org/packages/0e/2d/eab2e858a91fdff70533cab61dcff4a1f55ec60425832ddfdc9cd36bc8af/cffi-1.17.1-cp313-cp313-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d01b12eeeb4427d3110de311e1774046ad344f5b1a7403101878976ecd7a10f3", size = 454792, upload-time = "2024-09-04T20:44:32.01Z" }, + { url = "https://files.pythonhosted.org/packages/75/b2/fbaec7c4455c604e29388d55599b99ebcc250a60050610fadde58932b7ee/cffi-1.17.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:706510fe141c86a69c8ddc029c7910003a17353970cff3b904ff0686a5927683", size = 478893, upload-time = "2024-09-04T20:44:33.606Z" }, + { url = "https://files.pythonhosted.org/packages/4f/b7/6e4a2162178bf1935c336d4da8a9352cccab4d3a5d7914065490f08c0690/cffi-1.17.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:de55b766c7aa2e2a3092c51e0483d700341182f08e67c63630d5b6f200bb28e5", size = 485810, upload-time = "2024-09-04T20:44:35.191Z" }, + { url = "https://files.pythonhosted.org/packages/c7/8a/1d0e4a9c26e54746dc08c2c6c037889124d4f59dffd853a659fa545f1b40/cffi-1.17.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c59d6e989d07460165cc5ad3c61f9fd8f1b4796eacbd81cee78957842b834af4", size = 471200, upload-time = "2024-09-04T20:44:36.743Z" }, + { url = "https://files.pythonhosted.org/packages/26/9f/1aab65a6c0db35f43c4d1b4f580e8df53914310afc10ae0397d29d697af4/cffi-1.17.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dd398dbc6773384a17fe0d3e7eeb8d1a21c2200473ee6806bb5e6a8e62bb73dd", size = 479447, upload-time = "2024-09-04T20:44:38.492Z" }, + { url = "https://files.pythonhosted.org/packages/5f/e4/fb8b3dd8dc0e98edf1135ff067ae070bb32ef9d509d6cb0f538cd6f7483f/cffi-1.17.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:3edc8d958eb099c634dace3c7e16560ae474aa3803a5df240542b305d14e14ed", size = 484358, upload-time = "2024-09-04T20:44:40.046Z" }, + { url = "https://files.pythonhosted.org/packages/f1/47/d7145bf2dc04684935d57d67dff9d6d795b2ba2796806bb109864be3a151/cffi-1.17.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:72e72408cad3d5419375fc87d289076ee319835bdfa2caad331e377589aebba9", size = 488469, upload-time = "2024-09-04T20:44:41.616Z" }, + { url = "https://files.pythonhosted.org/packages/bf/ee/f94057fa6426481d663b88637a9a10e859e492c73d0384514a17d78ee205/cffi-1.17.1-cp313-cp313-win32.whl", hash = "sha256:e03eab0a8677fa80d646b5ddece1cbeaf556c313dcfac435ba11f107ba117b5d", size = 172475, upload-time = "2024-09-04T20:44:43.733Z" }, + { url = "https://files.pythonhosted.org/packages/7c/fc/6a8cb64e5f0324877d503c854da15d76c1e50eb722e320b15345c4d0c6de/cffi-1.17.1-cp313-cp313-win_amd64.whl", hash = "sha256:f6a16c31041f09ead72d69f583767292f750d24913dadacf5756b966aacb3f1a", size = 182009, upload-time = "2024-09-04T20:44:45.309Z" }, +] + +[[package]] +name = "charset-normalizer" +version = "3.4.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/83/2d/5fd176ceb9b2fc619e63405525573493ca23441330fcdaee6bef9460e924/charset_normalizer-3.4.3.tar.gz", hash = "sha256:6fce4b8500244f6fcb71465d4a4930d132ba9ab8e71a7859e6a5d59851068d14", size = 122371, upload-time = "2025-08-09T07:57:28.46Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e9/5e/14c94999e418d9b87682734589404a25854d5f5d0408df68bc15b6ff54bb/charset_normalizer-3.4.3-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:e28e334d3ff134e88989d90ba04b47d84382a828c061d0d1027b1b12a62b39b1", size = 205655, upload-time = "2025-08-09T07:56:08.475Z" }, + { url = "https://files.pythonhosted.org/packages/7d/a8/c6ec5d389672521f644505a257f50544c074cf5fc292d5390331cd6fc9c3/charset_normalizer-3.4.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0cacf8f7297b0c4fcb74227692ca46b4a5852f8f4f24b3c766dd94a1075c4884", size = 146223, upload-time = "2025-08-09T07:56:09.708Z" }, + { url = "https://files.pythonhosted.org/packages/fc/eb/a2ffb08547f4e1e5415fb69eb7db25932c52a52bed371429648db4d84fb1/charset_normalizer-3.4.3-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c6fd51128a41297f5409deab284fecbe5305ebd7e5a1f959bee1c054622b7018", size = 159366, upload-time = "2025-08-09T07:56:11.326Z" }, + { url = "https://files.pythonhosted.org/packages/82/10/0fd19f20c624b278dddaf83b8464dcddc2456cb4b02bb902a6da126b87a1/charset_normalizer-3.4.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3cfb2aad70f2c6debfbcb717f23b7eb55febc0bb23dcffc0f076009da10c6392", size = 157104, upload-time = "2025-08-09T07:56:13.014Z" }, + { url = "https://files.pythonhosted.org/packages/16/ab/0233c3231af734f5dfcf0844aa9582d5a1466c985bbed6cedab85af9bfe3/charset_normalizer-3.4.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1606f4a55c0fd363d754049cdf400175ee96c992b1f8018b993941f221221c5f", size = 151830, upload-time = "2025-08-09T07:56:14.428Z" }, + { url = "https://files.pythonhosted.org/packages/ae/02/e29e22b4e02839a0e4a06557b1999d0a47db3567e82989b5bb21f3fbbd9f/charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:027b776c26d38b7f15b26a5da1044f376455fb3766df8fc38563b4efbc515154", size = 148854, upload-time = "2025-08-09T07:56:16.051Z" }, + { url = "https://files.pythonhosted.org/packages/05/6b/e2539a0a4be302b481e8cafb5af8792da8093b486885a1ae4d15d452bcec/charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:42e5088973e56e31e4fa58eb6bd709e42fc03799c11c42929592889a2e54c491", size = 160670, upload-time = "2025-08-09T07:56:17.314Z" }, + { url = "https://files.pythonhosted.org/packages/31/e7/883ee5676a2ef217a40ce0bffcc3d0dfbf9e64cbcfbdf822c52981c3304b/charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:cc34f233c9e71701040d772aa7490318673aa7164a0efe3172b2981218c26d93", size = 158501, upload-time = "2025-08-09T07:56:18.641Z" }, + { url = "https://files.pythonhosted.org/packages/c1/35/6525b21aa0db614cf8b5792d232021dca3df7f90a1944db934efa5d20bb1/charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:320e8e66157cc4e247d9ddca8e21f427efc7a04bbd0ac8a9faf56583fa543f9f", size = 153173, upload-time = "2025-08-09T07:56:20.289Z" }, + { url = "https://files.pythonhosted.org/packages/50/ee/f4704bad8201de513fdc8aac1cabc87e38c5818c93857140e06e772b5892/charset_normalizer-3.4.3-cp312-cp312-win32.whl", hash = "sha256:fb6fecfd65564f208cbf0fba07f107fb661bcd1a7c389edbced3f7a493f70e37", size = 99822, upload-time = "2025-08-09T07:56:21.551Z" }, + { url = "https://files.pythonhosted.org/packages/39/f5/3b3836ca6064d0992c58c7561c6b6eee1b3892e9665d650c803bd5614522/charset_normalizer-3.4.3-cp312-cp312-win_amd64.whl", hash = "sha256:86df271bf921c2ee3818f0522e9a5b8092ca2ad8b065ece5d7d9d0e9f4849bcc", size = 107543, upload-time = "2025-08-09T07:56:23.115Z" }, + { url = "https://files.pythonhosted.org/packages/65/ca/2135ac97709b400c7654b4b764daf5c5567c2da45a30cdd20f9eefe2d658/charset_normalizer-3.4.3-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:14c2a87c65b351109f6abfc424cab3927b3bdece6f706e4d12faaf3d52ee5efe", size = 205326, upload-time = "2025-08-09T07:56:24.721Z" }, + { url = "https://files.pythonhosted.org/packages/71/11/98a04c3c97dd34e49c7d247083af03645ca3730809a5509443f3c37f7c99/charset_normalizer-3.4.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:41d1fc408ff5fdfb910200ec0e74abc40387bccb3252f3f27c0676731df2b2c8", size = 146008, upload-time = "2025-08-09T07:56:26.004Z" }, + { url = "https://files.pythonhosted.org/packages/60/f5/4659a4cb3c4ec146bec80c32d8bb16033752574c20b1252ee842a95d1a1e/charset_normalizer-3.4.3-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:1bb60174149316da1c35fa5233681f7c0f9f514509b8e399ab70fea5f17e45c9", size = 159196, upload-time = "2025-08-09T07:56:27.25Z" }, + { url = "https://files.pythonhosted.org/packages/86/9e/f552f7a00611f168b9a5865a1414179b2c6de8235a4fa40189f6f79a1753/charset_normalizer-3.4.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:30d006f98569de3459c2fc1f2acde170b7b2bd265dc1943e87e1a4efe1b67c31", size = 156819, upload-time = "2025-08-09T07:56:28.515Z" }, + { url = "https://files.pythonhosted.org/packages/7e/95/42aa2156235cbc8fa61208aded06ef46111c4d3f0de233107b3f38631803/charset_normalizer-3.4.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:416175faf02e4b0810f1f38bcb54682878a4af94059a1cd63b8747244420801f", size = 151350, upload-time = "2025-08-09T07:56:29.716Z" }, + { url = "https://files.pythonhosted.org/packages/c2/a9/3865b02c56f300a6f94fc631ef54f0a8a29da74fb45a773dfd3dcd380af7/charset_normalizer-3.4.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:6aab0f181c486f973bc7262a97f5aca3ee7e1437011ef0c2ec04b5a11d16c927", size = 148644, upload-time = "2025-08-09T07:56:30.984Z" }, + { url = "https://files.pythonhosted.org/packages/77/d9/cbcf1a2a5c7d7856f11e7ac2d782aec12bdfea60d104e60e0aa1c97849dc/charset_normalizer-3.4.3-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:fdabf8315679312cfa71302f9bd509ded4f2f263fb5b765cf1433b39106c3cc9", size = 160468, upload-time = "2025-08-09T07:56:32.252Z" }, + { url = "https://files.pythonhosted.org/packages/f6/42/6f45efee8697b89fda4d50580f292b8f7f9306cb2971d4b53f8914e4d890/charset_normalizer-3.4.3-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:bd28b817ea8c70215401f657edef3a8aa83c29d447fb0b622c35403780ba11d5", size = 158187, upload-time = "2025-08-09T07:56:33.481Z" }, + { url = "https://files.pythonhosted.org/packages/70/99/f1c3bdcfaa9c45b3ce96f70b14f070411366fa19549c1d4832c935d8e2c3/charset_normalizer-3.4.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:18343b2d246dc6761a249ba1fb13f9ee9a2bcd95decc767319506056ea4ad4dc", size = 152699, upload-time = "2025-08-09T07:56:34.739Z" }, + { url = "https://files.pythonhosted.org/packages/a3/ad/b0081f2f99a4b194bcbb1934ef3b12aa4d9702ced80a37026b7607c72e58/charset_normalizer-3.4.3-cp313-cp313-win32.whl", hash = "sha256:6fb70de56f1859a3f71261cbe41005f56a7842cc348d3aeb26237560bfa5e0ce", size = 99580, upload-time = "2025-08-09T07:56:35.981Z" }, + { url = "https://files.pythonhosted.org/packages/9a/8f/ae790790c7b64f925e5c953b924aaa42a243fb778fed9e41f147b2a5715a/charset_normalizer-3.4.3-cp313-cp313-win_amd64.whl", hash = "sha256:cf1ebb7d78e1ad8ec2a8c4732c7be2e736f6e5123a4146c5b89c9d1f585f8cef", size = 107366, upload-time = "2025-08-09T07:56:37.339Z" }, + { url = "https://files.pythonhosted.org/packages/8e/91/b5a06ad970ddc7a0e513112d40113e834638f4ca1120eb727a249fb2715e/charset_normalizer-3.4.3-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:3cd35b7e8aedeb9e34c41385fda4f73ba609e561faedfae0a9e75e44ac558a15", size = 204342, upload-time = "2025-08-09T07:56:38.687Z" }, + { url = "https://files.pythonhosted.org/packages/ce/ec/1edc30a377f0a02689342f214455c3f6c2fbedd896a1d2f856c002fc3062/charset_normalizer-3.4.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b89bc04de1d83006373429975f8ef9e7932534b8cc9ca582e4db7d20d91816db", size = 145995, upload-time = "2025-08-09T07:56:40.048Z" }, + { url = "https://files.pythonhosted.org/packages/17/e5/5e67ab85e6d22b04641acb5399c8684f4d37caf7558a53859f0283a650e9/charset_normalizer-3.4.3-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2001a39612b241dae17b4687898843f254f8748b796a2e16f1051a17078d991d", size = 158640, upload-time = "2025-08-09T07:56:41.311Z" }, + { url = "https://files.pythonhosted.org/packages/f1/e5/38421987f6c697ee3722981289d554957c4be652f963d71c5e46a262e135/charset_normalizer-3.4.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8dcfc373f888e4fb39a7bc57e93e3b845e7f462dacc008d9749568b1c4ece096", size = 156636, upload-time = "2025-08-09T07:56:43.195Z" }, + { url = "https://files.pythonhosted.org/packages/a0/e4/5a075de8daa3ec0745a9a3b54467e0c2967daaaf2cec04c845f73493e9a1/charset_normalizer-3.4.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:18b97b8404387b96cdbd30ad660f6407799126d26a39ca65729162fd810a99aa", size = 150939, upload-time = "2025-08-09T07:56:44.819Z" }, + { url = "https://files.pythonhosted.org/packages/02/f7/3611b32318b30974131db62b4043f335861d4d9b49adc6d57c1149cc49d4/charset_normalizer-3.4.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ccf600859c183d70eb47e05a44cd80a4ce77394d1ac0f79dbd2dd90a69a3a049", size = 148580, upload-time = "2025-08-09T07:56:46.684Z" }, + { url = "https://files.pythonhosted.org/packages/7e/61/19b36f4bd67f2793ab6a99b979b4e4f3d8fc754cbdffb805335df4337126/charset_normalizer-3.4.3-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:53cd68b185d98dde4ad8990e56a58dea83a4162161b1ea9272e5c9182ce415e0", size = 159870, upload-time = "2025-08-09T07:56:47.941Z" }, + { url = "https://files.pythonhosted.org/packages/06/57/84722eefdd338c04cf3030ada66889298eaedf3e7a30a624201e0cbe424a/charset_normalizer-3.4.3-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:30a96e1e1f865f78b030d65241c1ee850cdf422d869e9028e2fc1d5e4db73b92", size = 157797, upload-time = "2025-08-09T07:56:49.756Z" }, + { url = "https://files.pythonhosted.org/packages/72/2a/aff5dd112b2f14bcc3462c312dce5445806bfc8ab3a7328555da95330e4b/charset_normalizer-3.4.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:d716a916938e03231e86e43782ca7878fb602a125a91e7acb8b5112e2e96ac16", size = 152224, upload-time = "2025-08-09T07:56:51.369Z" }, + { url = "https://files.pythonhosted.org/packages/b7/8c/9839225320046ed279c6e839d51f028342eb77c91c89b8ef2549f951f3ec/charset_normalizer-3.4.3-cp314-cp314-win32.whl", hash = "sha256:c6dbd0ccdda3a2ba7c2ecd9d77b37f3b5831687d8dc1b6ca5f56a4880cc7b7ce", size = 100086, upload-time = "2025-08-09T07:56:52.722Z" }, + { url = "https://files.pythonhosted.org/packages/ee/7a/36fbcf646e41f710ce0a563c1c9a343c6edf9be80786edeb15b6f62e17db/charset_normalizer-3.4.3-cp314-cp314-win_amd64.whl", hash = "sha256:73dc19b562516fc9bcf6e5d6e596df0b4eb98d87e4f79f3ae71840e6ed21361c", size = 107400, upload-time = "2025-08-09T07:56:55.172Z" }, + { url = "https://files.pythonhosted.org/packages/8a/1f/f041989e93b001bc4e44bb1669ccdcf54d3f00e628229a85b08d330615c5/charset_normalizer-3.4.3-py3-none-any.whl", hash = "sha256:ce571ab16d890d23b5c278547ba694193a45011ff86a9162a71307ed9f86759a", size = 53175, upload-time = "2025-08-09T07:57:26.864Z" }, +] + +[[package]] +name = "click" +version = "8.2.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/60/6c/8ca2efa64cf75a977a0d7fac081354553ebe483345c734fb6b6515d96bbc/click-8.2.1.tar.gz", hash = "sha256:27c491cc05d968d271d5a1db13e3b5a184636d9d930f148c50b038f0d0646202", size = 286342, upload-time = "2025-05-20T23:19:49.832Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/85/32/10bb5764d90a8eee674e9dc6f4db6a0ab47c8c4d0d83c27f7c39ac415a4d/click-8.2.1-py3-none-any.whl", hash = "sha256:61a3265b914e850b85317d0b3109c7f8cd35a670f963866005d6ef1d5175a12b", size = 102215, upload-time = "2025-05-20T23:19:47.796Z" }, +] + +[[package]] +name = "click-didyoumean" +version = "0.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/30/ce/217289b77c590ea1e7c24242d9ddd6e249e52c795ff10fac2c50062c48cb/click_didyoumean-0.3.1.tar.gz", hash = "sha256:4f82fdff0dbe64ef8ab2279bd6aa3f6a99c3b28c05aa09cbfc07c9d7fbb5a463", size = 3089, upload-time = "2024-03-24T08:22:07.499Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1b/5b/974430b5ffdb7a4f1941d13d83c64a0395114503cc357c6b9ae4ce5047ed/click_didyoumean-0.3.1-py3-none-any.whl", hash = "sha256:5c4bb6007cfea5f2fd6583a2fb6701a22a41eb98957e63d0fac41c10e7c3117c", size = 3631, upload-time = "2024-03-24T08:22:06.356Z" }, +] + +[[package]] +name = "click-plugins" +version = "1.1.1.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c3/a4/34847b59150da33690a36da3681d6bbc2ec14ee9a846bc30a6746e5984e4/click_plugins-1.1.1.2.tar.gz", hash = "sha256:d7af3984a99d243c131aa1a828331e7630f4a88a9741fd05c927b204bcf92261", size = 8343, upload-time = "2025-06-25T00:47:37.555Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3d/9a/2abecb28ae875e39c8cad711eb1186d8d14eab564705325e77e4e6ab9ae5/click_plugins-1.1.1.2-py2.py3-none-any.whl", hash = "sha256:008d65743833ffc1f5417bf0e78e8d2c23aab04d9745ba817bd3e71b0feb6aa6", size = 11051, upload-time = "2025-06-25T00:47:36.731Z" }, +] + +[[package]] +name = "click-repl" +version = "0.3.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "prompt-toolkit" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/cb/a2/57f4ac79838cfae6912f997b4d1a64a858fb0c86d7fcaae6f7b58d267fca/click-repl-0.3.0.tar.gz", hash = "sha256:17849c23dba3d667247dc4defe1757fff98694e90fe37474f3feebb69ced26a9", size = 10449, upload-time = "2023-06-15T12:43:51.141Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/52/40/9d857001228658f0d59e97ebd4c346fe73e138c6de1bce61dc568a57c7f8/click_repl-0.3.0-py3-none-any.whl", hash = "sha256:fb7e06deb8da8de86180a33a9da97ac316751c094c6899382da7feeeeb51b812", size = 10289, upload-time = "2023-06-15T12:43:48.626Z" }, +] + +[[package]] +name = "cohere" +version = "5.17.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "fastavro" }, + { name = "httpx" }, + { name = "httpx-sse" }, + { name = "pydantic" }, + { name = "pydantic-core" }, + { name = "requests" }, + { name = "tokenizers" }, + { name = "types-requests" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/8a/ea/0b4bfb4b7f0f445db97acc979308f80ed5ab31df3786b1951d6e48b30d27/cohere-5.17.0.tar.gz", hash = "sha256:70d2fb7bccf8c9de77b07e1c0b3d93accf6346242e3cdc6ce293b577afa74a63", size = 164665, upload-time = "2025-08-13T06:58:00.608Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/aa/21/d0eb7c8e5b3bb748190c59819928c38cafcdf8f8aaca9d21074c64cf1cae/cohere-5.17.0-py3-none-any.whl", hash = "sha256:fe7d8228cda5335a7db79a828893765a4d5a40b7f7a43443736f339dc7813fa4", size = 295301, upload-time = "2025-08-13T06:57:59.072Z" }, +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "coloredlogs" +version = "15.0.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "humanfriendly" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/cc/c7/eed8f27100517e8c0e6b923d5f0845d0cb99763da6fdee00478f91db7325/coloredlogs-15.0.1.tar.gz", hash = "sha256:7c991aa71a4577af2f82600d8f8f3a89f936baeaf9b50a9c197da014e5bf16b0", size = 278520, upload-time = "2021-06-11T10:22:45.202Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a7/06/3d6badcf13db419e25b07041d9c7b4a2c331d3f4e7134445ec5df57714cd/coloredlogs-15.0.1-py2.py3-none-any.whl", hash = "sha256:612ee75c546f53e92e70049c9dbfcc18c935a2b9a53b66085ce9ef6a6e5c0934", size = 46018, upload-time = "2021-06-11T10:22:42.561Z" }, +] + +[[package]] +name = "colorlog" +version = "6.9.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/d3/7a/359f4d5df2353f26172b3cc39ea32daa39af8de522205f512f458923e677/colorlog-6.9.0.tar.gz", hash = "sha256:bfba54a1b93b94f54e1f4fe48395725a3d92fd2a4af702f6bd70946bdc0c6ac2", size = 16624, upload-time = "2024-10-29T18:34:51.011Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e3/51/9b208e85196941db2f0654ad0357ca6388ab3ed67efdbfc799f35d1f83aa/colorlog-6.9.0-py3-none-any.whl", hash = "sha256:5906e71acd67cb07a71e779c47c4bcb45fb8c2993eebe9e5adcd6a6f1b283eff", size = 11424, upload-time = "2024-10-29T18:34:49.815Z" }, +] + +[[package]] +name = "contourpy" +version = "1.3.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/58/01/1253e6698a07380cd31a736d248a3f2a50a7c88779a1813da27503cadc2a/contourpy-1.3.3.tar.gz", hash = "sha256:083e12155b210502d0bca491432bb04d56dc3432f95a979b429f2848c3dbe880", size = 13466174, upload-time = "2025-07-26T12:03:12.549Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/be/45/adfee365d9ea3d853550b2e735f9d66366701c65db7855cd07621732ccfc/contourpy-1.3.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:b08a32ea2f8e42cf1d4be3169a98dd4be32bafe4f22b6c4cb4ba810fa9e5d2cb", size = 293419, upload-time = "2025-07-26T12:01:21.16Z" }, + { url = "https://files.pythonhosted.org/packages/53/3e/405b59cfa13021a56bba395a6b3aca8cec012b45bf177b0eaf7a202cde2c/contourpy-1.3.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:556dba8fb6f5d8742f2923fe9457dbdd51e1049c4a43fd3986a0b14a1d815fc6", size = 273979, upload-time = "2025-07-26T12:01:22.448Z" }, + { url = "https://files.pythonhosted.org/packages/d4/1c/a12359b9b2ca3a845e8f7f9ac08bdf776114eb931392fcad91743e2ea17b/contourpy-1.3.3-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:92d9abc807cf7d0e047b95ca5d957cf4792fcd04e920ca70d48add15c1a90ea7", size = 332653, upload-time = "2025-07-26T12:01:24.155Z" }, + { url = "https://files.pythonhosted.org/packages/63/12/897aeebfb475b7748ea67b61e045accdfcf0d971f8a588b67108ed7f5512/contourpy-1.3.3-cp312-cp312-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b2e8faa0ed68cb29af51edd8e24798bb661eac3bd9f65420c1887b6ca89987c8", size = 379536, upload-time = "2025-07-26T12:01:25.91Z" }, + { url = "https://files.pythonhosted.org/packages/43/8a/a8c584b82deb248930ce069e71576fc09bd7174bbd35183b7943fb1064fd/contourpy-1.3.3-cp312-cp312-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:626d60935cf668e70a5ce6ff184fd713e9683fb458898e4249b63be9e28286ea", size = 384397, upload-time = "2025-07-26T12:01:27.152Z" }, + { url = "https://files.pythonhosted.org/packages/cc/8f/ec6289987824b29529d0dfda0d74a07cec60e54b9c92f3c9da4c0ac732de/contourpy-1.3.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4d00e655fcef08aba35ec9610536bfe90267d7ab5ba944f7032549c55a146da1", size = 362601, upload-time = "2025-07-26T12:01:28.808Z" }, + { url = "https://files.pythonhosted.org/packages/05/0a/a3fe3be3ee2dceb3e615ebb4df97ae6f3828aa915d3e10549ce016302bd1/contourpy-1.3.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:451e71b5a7d597379ef572de31eeb909a87246974d960049a9848c3bc6c41bf7", size = 1331288, upload-time = "2025-07-26T12:01:31.198Z" }, + { url = "https://files.pythonhosted.org/packages/33/1d/acad9bd4e97f13f3e2b18a3977fe1b4a37ecf3d38d815333980c6c72e963/contourpy-1.3.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:459c1f020cd59fcfe6650180678a9993932d80d44ccde1fa1868977438f0b411", size = 1403386, upload-time = "2025-07-26T12:01:33.947Z" }, + { url = "https://files.pythonhosted.org/packages/cf/8f/5847f44a7fddf859704217a99a23a4f6417b10e5ab1256a179264561540e/contourpy-1.3.3-cp312-cp312-win32.whl", hash = "sha256:023b44101dfe49d7d53932be418477dba359649246075c996866106da069af69", size = 185018, upload-time = "2025-07-26T12:01:35.64Z" }, + { url = "https://files.pythonhosted.org/packages/19/e8/6026ed58a64563186a9ee3f29f41261fd1828f527dd93d33b60feca63352/contourpy-1.3.3-cp312-cp312-win_amd64.whl", hash = "sha256:8153b8bfc11e1e4d75bcb0bff1db232f9e10b274e0929de9d608027e0d34ff8b", size = 226567, upload-time = "2025-07-26T12:01:36.804Z" }, + { url = "https://files.pythonhosted.org/packages/d1/e2/f05240d2c39a1ed228d8328a78b6f44cd695f7ef47beb3e684cf93604f86/contourpy-1.3.3-cp312-cp312-win_arm64.whl", hash = "sha256:07ce5ed73ecdc4a03ffe3e1b3e3c1166db35ae7584be76f65dbbe28a7791b0cc", size = 193655, upload-time = "2025-07-26T12:01:37.999Z" }, + { url = "https://files.pythonhosted.org/packages/68/35/0167aad910bbdb9599272bd96d01a9ec6852f36b9455cf2ca67bd4cc2d23/contourpy-1.3.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:177fb367556747a686509d6fef71d221a4b198a3905fe824430e5ea0fda54eb5", size = 293257, upload-time = "2025-07-26T12:01:39.367Z" }, + { url = "https://files.pythonhosted.org/packages/96/e4/7adcd9c8362745b2210728f209bfbcf7d91ba868a2c5f40d8b58f54c509b/contourpy-1.3.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:d002b6f00d73d69333dac9d0b8d5e84d9724ff9ef044fd63c5986e62b7c9e1b1", size = 274034, upload-time = "2025-07-26T12:01:40.645Z" }, + { url = "https://files.pythonhosted.org/packages/73/23/90e31ceeed1de63058a02cb04b12f2de4b40e3bef5e082a7c18d9c8ae281/contourpy-1.3.3-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:348ac1f5d4f1d66d3322420f01d42e43122f43616e0f194fc1c9f5d830c5b286", size = 334672, upload-time = "2025-07-26T12:01:41.942Z" }, + { url = "https://files.pythonhosted.org/packages/ed/93/b43d8acbe67392e659e1d984700e79eb67e2acb2bd7f62012b583a7f1b55/contourpy-1.3.3-cp313-cp313-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:655456777ff65c2c548b7c454af9c6f33f16c8884f11083244b5819cc214f1b5", size = 381234, upload-time = "2025-07-26T12:01:43.499Z" }, + { url = "https://files.pythonhosted.org/packages/46/3b/bec82a3ea06f66711520f75a40c8fc0b113b2a75edb36aa633eb11c4f50f/contourpy-1.3.3-cp313-cp313-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:644a6853d15b2512d67881586bd03f462c7ab755db95f16f14d7e238f2852c67", size = 385169, upload-time = "2025-07-26T12:01:45.219Z" }, + { url = "https://files.pythonhosted.org/packages/4b/32/e0f13a1c5b0f8572d0ec6ae2f6c677b7991fafd95da523159c19eff0696a/contourpy-1.3.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4debd64f124ca62069f313a9cb86656ff087786016d76927ae2cf37846b006c9", size = 362859, upload-time = "2025-07-26T12:01:46.519Z" }, + { url = "https://files.pythonhosted.org/packages/33/71/e2a7945b7de4e58af42d708a219f3b2f4cff7386e6b6ab0a0fa0033c49a9/contourpy-1.3.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a15459b0f4615b00bbd1e91f1b9e19b7e63aea7483d03d804186f278c0af2659", size = 1332062, upload-time = "2025-07-26T12:01:48.964Z" }, + { url = "https://files.pythonhosted.org/packages/12/fc/4e87ac754220ccc0e807284f88e943d6d43b43843614f0a8afa469801db0/contourpy-1.3.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ca0fdcd73925568ca027e0b17ab07aad764be4706d0a925b89227e447d9737b7", size = 1403932, upload-time = "2025-07-26T12:01:51.979Z" }, + { url = "https://files.pythonhosted.org/packages/a6/2e/adc197a37443f934594112222ac1aa7dc9a98faf9c3842884df9a9d8751d/contourpy-1.3.3-cp313-cp313-win32.whl", hash = "sha256:b20c7c9a3bf701366556e1b1984ed2d0cedf999903c51311417cf5f591d8c78d", size = 185024, upload-time = "2025-07-26T12:01:53.245Z" }, + { url = "https://files.pythonhosted.org/packages/18/0b/0098c214843213759692cc638fce7de5c289200a830e5035d1791d7a2338/contourpy-1.3.3-cp313-cp313-win_amd64.whl", hash = "sha256:1cadd8b8969f060ba45ed7c1b714fe69185812ab43bd6b86a9123fe8f99c3263", size = 226578, upload-time = "2025-07-26T12:01:54.422Z" }, + { url = "https://files.pythonhosted.org/packages/8a/9a/2f6024a0c5995243cd63afdeb3651c984f0d2bc727fd98066d40e141ad73/contourpy-1.3.3-cp313-cp313-win_arm64.whl", hash = "sha256:fd914713266421b7536de2bfa8181aa8c699432b6763a0ea64195ebe28bff6a9", size = 193524, upload-time = "2025-07-26T12:01:55.73Z" }, + { url = "https://files.pythonhosted.org/packages/c0/b3/f8a1a86bd3298513f500e5b1f5fd92b69896449f6cab6a146a5d52715479/contourpy-1.3.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:88df9880d507169449d434c293467418b9f6cbe82edd19284aa0409e7fdb933d", size = 306730, upload-time = "2025-07-26T12:01:57.051Z" }, + { url = "https://files.pythonhosted.org/packages/3f/11/4780db94ae62fc0c2053909b65dc3246bd7cecfc4f8a20d957ad43aa4ad8/contourpy-1.3.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:d06bb1f751ba5d417047db62bca3c8fde202b8c11fb50742ab3ab962c81e8216", size = 287897, upload-time = "2025-07-26T12:01:58.663Z" }, + { url = "https://files.pythonhosted.org/packages/ae/15/e59f5f3ffdd6f3d4daa3e47114c53daabcb18574a26c21f03dc9e4e42ff0/contourpy-1.3.3-cp313-cp313t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e4e6b05a45525357e382909a4c1600444e2a45b4795163d3b22669285591c1ae", size = 326751, upload-time = "2025-07-26T12:02:00.343Z" }, + { url = "https://files.pythonhosted.org/packages/0f/81/03b45cfad088e4770b1dcf72ea78d3802d04200009fb364d18a493857210/contourpy-1.3.3-cp313-cp313t-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ab3074b48c4e2cf1a960e6bbeb7f04566bf36b1861d5c9d4d8ac04b82e38ba20", size = 375486, upload-time = "2025-07-26T12:02:02.128Z" }, + { url = "https://files.pythonhosted.org/packages/0c/ba/49923366492ffbdd4486e970d421b289a670ae8cf539c1ea9a09822b371a/contourpy-1.3.3-cp313-cp313t-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6c3d53c796f8647d6deb1abe867daeb66dcc8a97e8455efa729516b997b8ed99", size = 388106, upload-time = "2025-07-26T12:02:03.615Z" }, + { url = "https://files.pythonhosted.org/packages/9f/52/5b00ea89525f8f143651f9f03a0df371d3cbd2fccd21ca9b768c7a6500c2/contourpy-1.3.3-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:50ed930df7289ff2a8d7afeb9603f8289e5704755c7e5c3bbd929c90c817164b", size = 352548, upload-time = "2025-07-26T12:02:05.165Z" }, + { url = "https://files.pythonhosted.org/packages/32/1d/a209ec1a3a3452d490f6b14dd92e72280c99ae3d1e73da74f8277d4ee08f/contourpy-1.3.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:4feffb6537d64b84877da813a5c30f1422ea5739566abf0bd18065ac040e120a", size = 1322297, upload-time = "2025-07-26T12:02:07.379Z" }, + { url = "https://files.pythonhosted.org/packages/bc/9e/46f0e8ebdd884ca0e8877e46a3f4e633f6c9c8c4f3f6e72be3fe075994aa/contourpy-1.3.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:2b7e9480ffe2b0cd2e787e4df64270e3a0440d9db8dc823312e2c940c167df7e", size = 1391023, upload-time = "2025-07-26T12:02:10.171Z" }, + { url = "https://files.pythonhosted.org/packages/b9/70/f308384a3ae9cd2209e0849f33c913f658d3326900d0ff5d378d6a1422d2/contourpy-1.3.3-cp313-cp313t-win32.whl", hash = "sha256:283edd842a01e3dcd435b1c5116798d661378d83d36d337b8dde1d16a5fc9ba3", size = 196157, upload-time = "2025-07-26T12:02:11.488Z" }, + { url = "https://files.pythonhosted.org/packages/b2/dd/880f890a6663b84d9e34a6f88cded89d78f0091e0045a284427cb6b18521/contourpy-1.3.3-cp313-cp313t-win_amd64.whl", hash = "sha256:87acf5963fc2b34825e5b6b048f40e3635dd547f590b04d2ab317c2619ef7ae8", size = 240570, upload-time = "2025-07-26T12:02:12.754Z" }, + { url = "https://files.pythonhosted.org/packages/80/99/2adc7d8ffead633234817ef8e9a87115c8a11927a94478f6bb3d3f4d4f7d/contourpy-1.3.3-cp313-cp313t-win_arm64.whl", hash = "sha256:3c30273eb2a55024ff31ba7d052dde990d7d8e5450f4bbb6e913558b3d6c2301", size = 199713, upload-time = "2025-07-26T12:02:14.4Z" }, + { url = "https://files.pythonhosted.org/packages/72/8b/4546f3ab60f78c514ffb7d01a0bd743f90de36f0019d1be84d0a708a580a/contourpy-1.3.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:fde6c716d51c04b1c25d0b90364d0be954624a0ee9d60e23e850e8d48353d07a", size = 292189, upload-time = "2025-07-26T12:02:16.095Z" }, + { url = "https://files.pythonhosted.org/packages/fd/e1/3542a9cb596cadd76fcef413f19c79216e002623158befe6daa03dbfa88c/contourpy-1.3.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:cbedb772ed74ff5be440fa8eee9bd49f64f6e3fc09436d9c7d8f1c287b121d77", size = 273251, upload-time = "2025-07-26T12:02:17.524Z" }, + { url = "https://files.pythonhosted.org/packages/b1/71/f93e1e9471d189f79d0ce2497007731c1e6bf9ef6d1d61b911430c3db4e5/contourpy-1.3.3-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:22e9b1bd7a9b1d652cd77388465dc358dafcd2e217d35552424aa4f996f524f5", size = 335810, upload-time = "2025-07-26T12:02:18.9Z" }, + { url = "https://files.pythonhosted.org/packages/91/f9/e35f4c1c93f9275d4e38681a80506b5510e9327350c51f8d4a5a724d178c/contourpy-1.3.3-cp314-cp314-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a22738912262aa3e254e4f3cb079a95a67132fc5a063890e224393596902f5a4", size = 382871, upload-time = "2025-07-26T12:02:20.418Z" }, + { url = "https://files.pythonhosted.org/packages/b5/71/47b512f936f66a0a900d81c396a7e60d73419868fba959c61efed7a8ab46/contourpy-1.3.3-cp314-cp314-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:afe5a512f31ee6bd7d0dda52ec9864c984ca3d66664444f2d72e0dc4eb832e36", size = 386264, upload-time = "2025-07-26T12:02:21.916Z" }, + { url = "https://files.pythonhosted.org/packages/04/5f/9ff93450ba96b09c7c2b3f81c94de31c89f92292f1380261bd7195bea4ea/contourpy-1.3.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f64836de09927cba6f79dcd00fdd7d5329f3fccc633468507079c829ca4db4e3", size = 363819, upload-time = "2025-07-26T12:02:23.759Z" }, + { url = "https://files.pythonhosted.org/packages/3e/a6/0b185d4cc480ee494945cde102cb0149ae830b5fa17bf855b95f2e70ad13/contourpy-1.3.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:1fd43c3be4c8e5fd6e4f2baeae35ae18176cf2e5cced681cca908addf1cdd53b", size = 1333650, upload-time = "2025-07-26T12:02:26.181Z" }, + { url = "https://files.pythonhosted.org/packages/43/d7/afdc95580ca56f30fbcd3060250f66cedbde69b4547028863abd8aa3b47e/contourpy-1.3.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:6afc576f7b33cf00996e5c1102dc2a8f7cc89e39c0b55df93a0b78c1bd992b36", size = 1404833, upload-time = "2025-07-26T12:02:28.782Z" }, + { url = "https://files.pythonhosted.org/packages/e2/e2/366af18a6d386f41132a48f033cbd2102e9b0cf6345d35ff0826cd984566/contourpy-1.3.3-cp314-cp314-win32.whl", hash = "sha256:66c8a43a4f7b8df8b71ee1840e4211a3c8d93b214b213f590e18a1beca458f7d", size = 189692, upload-time = "2025-07-26T12:02:30.128Z" }, + { url = "https://files.pythonhosted.org/packages/7d/c2/57f54b03d0f22d4044b8afb9ca0e184f8b1afd57b4f735c2fa70883dc601/contourpy-1.3.3-cp314-cp314-win_amd64.whl", hash = "sha256:cf9022ef053f2694e31d630feaacb21ea24224be1c3ad0520b13d844274614fd", size = 232424, upload-time = "2025-07-26T12:02:31.395Z" }, + { url = "https://files.pythonhosted.org/packages/18/79/a9416650df9b525737ab521aa181ccc42d56016d2123ddcb7b58e926a42c/contourpy-1.3.3-cp314-cp314-win_arm64.whl", hash = "sha256:95b181891b4c71de4bb404c6621e7e2390745f887f2a026b2d99e92c17892339", size = 198300, upload-time = "2025-07-26T12:02:32.956Z" }, + { url = "https://files.pythonhosted.org/packages/1f/42/38c159a7d0f2b7b9c04c64ab317042bb6952b713ba875c1681529a2932fe/contourpy-1.3.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:33c82d0138c0a062380332c861387650c82e4cf1747aaa6938b9b6516762e772", size = 306769, upload-time = "2025-07-26T12:02:34.2Z" }, + { url = "https://files.pythonhosted.org/packages/c3/6c/26a8205f24bca10974e77460de68d3d7c63e282e23782f1239f226fcae6f/contourpy-1.3.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ea37e7b45949df430fe649e5de8351c423430046a2af20b1c1961cae3afcda77", size = 287892, upload-time = "2025-07-26T12:02:35.807Z" }, + { url = "https://files.pythonhosted.org/packages/66/06/8a475c8ab718ebfd7925661747dbb3c3ee9c82ac834ccb3570be49d129f4/contourpy-1.3.3-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d304906ecc71672e9c89e87c4675dc5c2645e1f4269a5063b99b0bb29f232d13", size = 326748, upload-time = "2025-07-26T12:02:37.193Z" }, + { url = "https://files.pythonhosted.org/packages/b4/a3/c5ca9f010a44c223f098fccd8b158bb1cb287378a31ac141f04730dc49be/contourpy-1.3.3-cp314-cp314t-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ca658cd1a680a5c9ea96dc61cdbae1e85c8f25849843aa799dfd3cb370ad4fbe", size = 375554, upload-time = "2025-07-26T12:02:38.894Z" }, + { url = "https://files.pythonhosted.org/packages/80/5b/68bd33ae63fac658a4145088c1e894405e07584a316738710b636c6d0333/contourpy-1.3.3-cp314-cp314t-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ab2fd90904c503739a75b7c8c5c01160130ba67944a7b77bbf36ef8054576e7f", size = 388118, upload-time = "2025-07-26T12:02:40.642Z" }, + { url = "https://files.pythonhosted.org/packages/40/52/4c285a6435940ae25d7410a6c36bda5145839bc3f0beb20c707cda18b9d2/contourpy-1.3.3-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b7301b89040075c30e5768810bc96a8e8d78085b47d8be6e4c3f5a0b4ed478a0", size = 352555, upload-time = "2025-07-26T12:02:42.25Z" }, + { url = "https://files.pythonhosted.org/packages/24/ee/3e81e1dd174f5c7fefe50e85d0892de05ca4e26ef1c9a59c2a57e43b865a/contourpy-1.3.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:2a2a8b627d5cc6b7c41a4beff6c5ad5eb848c88255fda4a8745f7e901b32d8e4", size = 1322295, upload-time = "2025-07-26T12:02:44.668Z" }, + { url = "https://files.pythonhosted.org/packages/3c/b2/6d913d4d04e14379de429057cd169e5e00f6c2af3bb13e1710bcbdb5da12/contourpy-1.3.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:fd6ec6be509c787f1caf6b247f0b1ca598bef13f4ddeaa126b7658215529ba0f", size = 1391027, upload-time = "2025-07-26T12:02:47.09Z" }, + { url = "https://files.pythonhosted.org/packages/93/8a/68a4ec5c55a2971213d29a9374913f7e9f18581945a7a31d1a39b5d2dfe5/contourpy-1.3.3-cp314-cp314t-win32.whl", hash = "sha256:e74a9a0f5e3fff48fb5a7f2fd2b9b70a3fe014a67522f79b7cca4c0c7e43c9ae", size = 202428, upload-time = "2025-07-26T12:02:48.691Z" }, + { url = "https://files.pythonhosted.org/packages/fa/96/fd9f641ffedc4fa3ace923af73b9d07e869496c9cc7a459103e6e978992f/contourpy-1.3.3-cp314-cp314t-win_amd64.whl", hash = "sha256:13b68d6a62db8eafaebb8039218921399baf6e47bf85006fd8529f2a08ef33fc", size = 250331, upload-time = "2025-07-26T12:02:50.137Z" }, + { url = "https://files.pythonhosted.org/packages/ae/8c/469afb6465b853afff216f9528ffda78a915ff880ed58813ba4faf4ba0b6/contourpy-1.3.3-cp314-cp314t-win_arm64.whl", hash = "sha256:b7448cb5a725bb1e35ce88771b86fba35ef418952474492cf7c764059933ff8b", size = 203831, upload-time = "2025-07-26T12:02:51.449Z" }, +] + +[[package]] +name = "creative-catalyst" +version = "0.1.0" +source = { virtual = "." } +dependencies = [ + { name = "alembic" }, + { name = "celery" }, + { name = "dotenv" }, + { name = "fastapi" }, + { name = "google" }, + { name = "gradio" }, + { name = "httpx" }, + { name = "huggingface-hub" }, + { name = "langchain" }, + { name = "langchain-openai" }, + { name = "langgraph" }, + { name = "mineru", extra = ["core"] }, + { name = "pgvector" }, + { name = "pillow" }, + { name = "plotly" }, + { name = "psycopg2-binary" }, + { name = "pydantic" }, + { name = "pydantic-ai" }, + { name = "pydantic-settings" }, + { name = "python-multipart" }, + { name = "redis" }, + { name = "sentence-transformers" }, + { name = "sqlalchemy" }, + { name = "streamlit" }, + { name = "transformers" }, + { name = "uvicorn", extra = ["standard"] }, +] + +[package.metadata] +requires-dist = [ + { name = "alembic", specifier = ">=1.13.2" }, + { name = "celery", specifier = ">=5.4.0" }, + { name = "dotenv", specifier = ">=0.9.9" }, + { name = "fastapi", specifier = ">=0.111.1" }, + { name = "google", specifier = ">=3.0.0" }, + { name = "gradio", specifier = ">=5.42.0" }, + { name = "httpx", specifier = ">=0.27.0" }, + { name = "huggingface-hub", specifier = ">=0.34.4" }, + { name = "langchain", specifier = ">=0.3.27" }, + { name = "langchain-openai", specifier = ">=0.1.17" }, + { name = "langgraph", specifier = ">=0.6.4" }, + { name = "mineru", extras = ["core"], specifier = ">=2.1.10" }, + { name = "pgvector", specifier = ">=0.2.5" }, + { name = "pillow", specifier = ">=10.4.0" }, + { name = "plotly", specifier = ">=6.3.0" }, + { name = "psycopg2-binary", specifier = ">=2.9.9" }, + { name = "pydantic", specifier = ">=2.11.7" }, + { name = "pydantic-ai", specifier = ">=0.7.0" }, + { name = "pydantic-settings", specifier = ">=2.3.4" }, + { name = "python-multipart", specifier = ">=0.0.9" }, + { name = "redis", specifier = ">=5.0.7" }, + { name = "sentence-transformers", specifier = ">=5.1.0" }, + { name = "sqlalchemy", specifier = ">=2.0.31" }, + { name = "streamlit", specifier = ">=1.48.1" }, + { name = "transformers", specifier = ">=4.55.1" }, + { name = "uvicorn", extras = ["standard"], specifier = ">=0.30.1" }, +] + +[[package]] +name = "cryptography" +version = "45.0.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cffi", marker = "platform_python_implementation != 'PyPy'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/d6/0d/d13399c94234ee8f3df384819dc67e0c5ce215fb751d567a55a1f4b028c7/cryptography-45.0.6.tar.gz", hash = "sha256:5c966c732cf6e4a276ce83b6e4c729edda2df6929083a952cc7da973c539c719", size = 744949, upload-time = "2025-08-05T23:59:27.93Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8c/29/2793d178d0eda1ca4a09a7c4e09a5185e75738cc6d526433e8663b460ea6/cryptography-45.0.6-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:048e7ad9e08cf4c0ab07ff7f36cc3115924e22e2266e034450a890d9e312dd74", size = 7042702, upload-time = "2025-08-05T23:58:23.464Z" }, + { url = "https://files.pythonhosted.org/packages/b3/b6/cabd07410f222f32c8d55486c464f432808abaa1f12af9afcbe8f2f19030/cryptography-45.0.6-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:44647c5d796f5fc042bbc6d61307d04bf29bccb74d188f18051b635f20a9c75f", size = 4206483, upload-time = "2025-08-05T23:58:27.132Z" }, + { url = "https://files.pythonhosted.org/packages/8b/9e/f9c7d36a38b1cfeb1cc74849aabe9bf817990f7603ff6eb485e0d70e0b27/cryptography-45.0.6-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:e40b80ecf35ec265c452eea0ba94c9587ca763e739b8e559c128d23bff7ebbbf", size = 4429679, upload-time = "2025-08-05T23:58:29.152Z" }, + { url = "https://files.pythonhosted.org/packages/9c/2a/4434c17eb32ef30b254b9e8b9830cee4e516f08b47fdd291c5b1255b8101/cryptography-45.0.6-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:00e8724bdad672d75e6f069b27970883179bd472cd24a63f6e620ca7e41cc0c5", size = 4210553, upload-time = "2025-08-05T23:58:30.596Z" }, + { url = "https://files.pythonhosted.org/packages/ef/1d/09a5df8e0c4b7970f5d1f3aff1b640df6d4be28a64cae970d56c6cf1c772/cryptography-45.0.6-cp311-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7a3085d1b319d35296176af31c90338eeb2ddac8104661df79f80e1d9787b8b2", size = 3894499, upload-time = "2025-08-05T23:58:32.03Z" }, + { url = "https://files.pythonhosted.org/packages/79/62/120842ab20d9150a9d3a6bdc07fe2870384e82f5266d41c53b08a3a96b34/cryptography-45.0.6-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:1b7fa6a1c1188c7ee32e47590d16a5a0646270921f8020efc9a511648e1b2e08", size = 4458484, upload-time = "2025-08-05T23:58:33.526Z" }, + { url = "https://files.pythonhosted.org/packages/fd/80/1bc3634d45ddfed0871bfba52cf8f1ad724761662a0c792b97a951fb1b30/cryptography-45.0.6-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:275ba5cc0d9e320cd70f8e7b96d9e59903c815ca579ab96c1e37278d231fc402", size = 4210281, upload-time = "2025-08-05T23:58:35.445Z" }, + { url = "https://files.pythonhosted.org/packages/7d/fe/ffb12c2d83d0ee625f124880a1f023b5878f79da92e64c37962bbbe35f3f/cryptography-45.0.6-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:f4028f29a9f38a2025abedb2e409973709c660d44319c61762202206ed577c42", size = 4456890, upload-time = "2025-08-05T23:58:36.923Z" }, + { url = "https://files.pythonhosted.org/packages/8c/8e/b3f3fe0dc82c77a0deb5f493b23311e09193f2268b77196ec0f7a36e3f3e/cryptography-45.0.6-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:ee411a1b977f40bd075392c80c10b58025ee5c6b47a822a33c1198598a7a5f05", size = 4333247, upload-time = "2025-08-05T23:58:38.781Z" }, + { url = "https://files.pythonhosted.org/packages/b3/a6/c3ef2ab9e334da27a1d7b56af4a2417d77e7806b2e0f90d6267ce120d2e4/cryptography-45.0.6-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:e2a21a8eda2d86bb604934b6b37691585bd095c1f788530c1fcefc53a82b3453", size = 4565045, upload-time = "2025-08-05T23:58:40.415Z" }, + { url = "https://files.pythonhosted.org/packages/31/c3/77722446b13fa71dddd820a5faab4ce6db49e7e0bf8312ef4192a3f78e2f/cryptography-45.0.6-cp311-abi3-win32.whl", hash = "sha256:d063341378d7ee9c91f9d23b431a3502fc8bfacd54ef0a27baa72a0843b29159", size = 2928923, upload-time = "2025-08-05T23:58:41.919Z" }, + { url = "https://files.pythonhosted.org/packages/38/63/a025c3225188a811b82932a4dcc8457a26c3729d81578ccecbcce2cb784e/cryptography-45.0.6-cp311-abi3-win_amd64.whl", hash = "sha256:833dc32dfc1e39b7376a87b9a6a4288a10aae234631268486558920029b086ec", size = 3403805, upload-time = "2025-08-05T23:58:43.792Z" }, + { url = "https://files.pythonhosted.org/packages/5b/af/bcfbea93a30809f126d51c074ee0fac5bd9d57d068edf56c2a73abedbea4/cryptography-45.0.6-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:3436128a60a5e5490603ab2adbabc8763613f638513ffa7d311c900a8349a2a0", size = 7020111, upload-time = "2025-08-05T23:58:45.316Z" }, + { url = "https://files.pythonhosted.org/packages/98/c6/ea5173689e014f1a8470899cd5beeb358e22bb3cf5a876060f9d1ca78af4/cryptography-45.0.6-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0d9ef57b6768d9fa58e92f4947cea96ade1233c0e236db22ba44748ffedca394", size = 4198169, upload-time = "2025-08-05T23:58:47.121Z" }, + { url = "https://files.pythonhosted.org/packages/ba/73/b12995edc0c7e2311ffb57ebd3b351f6b268fed37d93bfc6f9856e01c473/cryptography-45.0.6-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ea3c42f2016a5bbf71825537c2ad753f2870191134933196bee408aac397b3d9", size = 4421273, upload-time = "2025-08-05T23:58:48.557Z" }, + { url = "https://files.pythonhosted.org/packages/f7/6e/286894f6f71926bc0da67408c853dd9ba953f662dcb70993a59fd499f111/cryptography-45.0.6-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:20ae4906a13716139d6d762ceb3e0e7e110f7955f3bc3876e3a07f5daadec5f3", size = 4199211, upload-time = "2025-08-05T23:58:50.139Z" }, + { url = "https://files.pythonhosted.org/packages/de/34/a7f55e39b9623c5cb571d77a6a90387fe557908ffc44f6872f26ca8ae270/cryptography-45.0.6-cp37-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2dac5ec199038b8e131365e2324c03d20e97fe214af051d20c49db129844e8b3", size = 3883732, upload-time = "2025-08-05T23:58:52.253Z" }, + { url = "https://files.pythonhosted.org/packages/f9/b9/c6d32edbcba0cd9f5df90f29ed46a65c4631c4fbe11187feb9169c6ff506/cryptography-45.0.6-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:18f878a34b90d688982e43f4b700408b478102dd58b3e39de21b5ebf6509c301", size = 4450655, upload-time = "2025-08-05T23:58:53.848Z" }, + { url = "https://files.pythonhosted.org/packages/77/2d/09b097adfdee0227cfd4c699b3375a842080f065bab9014248933497c3f9/cryptography-45.0.6-cp37-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:5bd6020c80c5b2b2242d6c48487d7b85700f5e0038e67b29d706f98440d66eb5", size = 4198956, upload-time = "2025-08-05T23:58:55.209Z" }, + { url = "https://files.pythonhosted.org/packages/55/66/061ec6689207d54effdff535bbdf85cc380d32dd5377173085812565cf38/cryptography-45.0.6-cp37-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:eccddbd986e43014263eda489abbddfbc287af5cddfd690477993dbb31e31016", size = 4449859, upload-time = "2025-08-05T23:58:56.639Z" }, + { url = "https://files.pythonhosted.org/packages/41/ff/e7d5a2ad2d035e5a2af116e1a3adb4d8fcd0be92a18032917a089c6e5028/cryptography-45.0.6-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:550ae02148206beb722cfe4ef0933f9352bab26b087af00e48fdfb9ade35c5b3", size = 4320254, upload-time = "2025-08-05T23:58:58.833Z" }, + { url = "https://files.pythonhosted.org/packages/82/27/092d311af22095d288f4db89fcaebadfb2f28944f3d790a4cf51fe5ddaeb/cryptography-45.0.6-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:5b64e668fc3528e77efa51ca70fadcd6610e8ab231e3e06ae2bab3b31c2b8ed9", size = 4554815, upload-time = "2025-08-05T23:59:00.283Z" }, + { url = "https://files.pythonhosted.org/packages/7e/01/aa2f4940262d588a8fdf4edabe4cda45854d00ebc6eaac12568b3a491a16/cryptography-45.0.6-cp37-abi3-win32.whl", hash = "sha256:780c40fb751c7d2b0c6786ceee6b6f871e86e8718a8ff4bc35073ac353c7cd02", size = 2912147, upload-time = "2025-08-05T23:59:01.716Z" }, + { url = "https://files.pythonhosted.org/packages/0a/bc/16e0276078c2de3ceef6b5a34b965f4436215efac45313df90d55f0ba2d2/cryptography-45.0.6-cp37-abi3-win_amd64.whl", hash = "sha256:20d15aed3ee522faac1a39fbfdfee25d17b1284bafd808e1640a74846d7c4d1b", size = 3390459, upload-time = "2025-08-05T23:59:03.358Z" }, +] + +[[package]] +name = "cycler" +version = "0.12.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a9/95/a3dbbb5028f35eafb79008e7522a75244477d2838f38cbb722248dabc2a8/cycler-0.12.1.tar.gz", hash = "sha256:88bb128f02ba341da8ef447245a9e138fae777f6a23943da4540077d3601eb1c", size = 7615, upload-time = "2023-10-07T05:32:18.335Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e7/05/c19819d5e3d95294a6f5947fb9b9629efb316b96de511b418c53d245aae6/cycler-0.12.1-py3-none-any.whl", hash = "sha256:85cef7cff222d8644161529808465972e51340599459b8ac3ccbac5a854e0d30", size = 8321, upload-time = "2023-10-07T05:32:16.783Z" }, +] + +[[package]] +name = "dill" +version = "0.4.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/12/80/630b4b88364e9a8c8c5797f4602d0f76ef820909ee32f0bacb9f90654042/dill-0.4.0.tar.gz", hash = "sha256:0633f1d2df477324f53a895b02c901fb961bdbf65a17122586ea7019292cbcf0", size = 186976, upload-time = "2025-04-16T00:41:48.867Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/50/3d/9373ad9c56321fdab5b41197068e1d8c25883b3fea29dd361f9b55116869/dill-0.4.0-py3-none-any.whl", hash = "sha256:44f54bf6412c2c8464c14e8243eb163690a9800dbe2c367330883b19c7561049", size = 119668, upload-time = "2025-04-16T00:41:47.671Z" }, +] + +[[package]] +name = "distro" +version = "1.9.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fc/f8/98eea607f65de6527f8a2e8885fc8015d3e6f5775df186e443e0964a11c3/distro-1.9.0.tar.gz", hash = "sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed", size = 60722, upload-time = "2023-12-24T09:54:32.31Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl", hash = "sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2", size = 20277, upload-time = "2023-12-24T09:54:30.421Z" }, +] + +[[package]] +name = "doclayout-yolo" +version = "0.0.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "albumentations" }, + { name = "matplotlib" }, + { name = "opencv-python" }, + { name = "pandas" }, + { name = "pillow" }, + { name = "psutil" }, + { name = "py-cpuinfo" }, + { name = "pyyaml" }, + { name = "requests" }, + { name = "scipy" }, + { name = "seaborn" }, + { name = "thop" }, + { name = "torch" }, + { name = "torchvision" }, + { name = "tqdm" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/87/0c/6cfdf059503ea36fcf56b34f74cab2cc7d20f09838c4cb6e7a70b1d1ef7d/doclayout_yolo-0.0.4.tar.gz", hash = "sha256:80311d10bed03cf884c5bfcc624bfe0fdcff6e784ba76799347b0290d79dcb4d", size = 603077, upload-time = "2025-06-10T09:06:36.514Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/ac/6e16e92f412d94494f6fed95cfdf3ff135cf09af09e4d4f10846e9d87f75/doclayout_yolo-0.0.4-py3-none-any.whl", hash = "sha256:934451385a6e50d71fbbda12e5866eb4003d87186364d0151d8e8ec898a21723", size = 711270, upload-time = "2025-06-10T09:06:30.063Z" }, +] + +[[package]] +name = "dotenv" +version = "0.9.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "python-dotenv" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/b2/b7/545d2c10c1fc15e48653c91efde329a790f2eecfbbf2bd16003b5db2bab0/dotenv-0.9.9-py2.py3-none-any.whl", hash = "sha256:29cf74a087b31dafdb5a446b6d7e11cbce8ed2741540e2339c69fbef92c94ce9", size = 1892, upload-time = "2025-02-19T22:15:01.647Z" }, +] + +[[package]] +name = "eval-type-backport" +version = "0.2.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/30/ea/8b0ac4469d4c347c6a385ff09dc3c048c2d021696664e26c7ee6791631b5/eval_type_backport-0.2.2.tar.gz", hash = "sha256:f0576b4cf01ebb5bd358d02314d31846af5e07678387486e2c798af0e7d849c1", size = 9079, upload-time = "2024-12-21T20:09:46.005Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ce/31/55cd413eaccd39125368be33c46de24a1f639f2e12349b0361b4678f3915/eval_type_backport-0.2.2-py3-none-any.whl", hash = "sha256:cb6ad7c393517f476f96d456d0412ea80f0a8cf96f6892834cd9340149111b0a", size = 5830, upload-time = "2024-12-21T20:09:44.175Z" }, +] + +[[package]] +name = "fast-langdetect" +version = "0.2.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "fasttext-predict" }, + { name = "requests" }, + { name = "robust-downloader" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/8d/17/2753b3d280e16f594e7a5d735568c021a355cd1edd3827f26cda5c9fd460/fast_langdetect-0.2.5.tar.gz", hash = "sha256:e5fe65973f5737107bb8314f3829280d196c87d4da0b4a6e95000175512cf2c3", size = 788620, upload-time = "2025-01-28T02:15:24.637Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/27/da/c621e64d4bc23f485468295bb7d4a5f2290ebb4d342c8dc448ab66808071/fast_langdetect-0.2.5-py3-none-any.whl", hash = "sha256:8d5ff640d94d5f30bb7653c761adbb9122b617b03fa1f166b7cc16c35e484d0e", size = 786618, upload-time = "2025-01-28T02:15:23.039Z" }, +] + +[[package]] +name = "fastapi" +version = "0.116.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pydantic" }, + { name = "starlette" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/78/d7/6c8b3bfe33eeffa208183ec037fee0cce9f7f024089ab1c5d12ef04bd27c/fastapi-0.116.1.tar.gz", hash = "sha256:ed52cbf946abfd70c5a0dccb24673f0670deeb517a88b3544d03c2a6bf283143", size = 296485, upload-time = "2025-07-11T16:22:32.057Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e5/47/d63c60f59a59467fda0f93f46335c9d18526d7071f025cb5b89d5353ea42/fastapi-0.116.1-py3-none-any.whl", hash = "sha256:c46ac7c312df840f0c9e220f7964bada936781bc4e2e6eb71f1c4d7553786565", size = 95631, upload-time = "2025-07-11T16:22:30.485Z" }, +] + +[[package]] +name = "fastavro" +version = "1.12.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cc/ec/762dcf213e5b97ea1733b27d5a2798599a1fa51565b70a93690246029f84/fastavro-1.12.0.tar.gz", hash = "sha256:a67a87be149825d74006b57e52be068dfa24f3bfc6382543ec92cd72327fe152", size = 1025604, upload-time = "2025-07-31T15:16:42.933Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4a/f0/df076a541144d2f351820f3d9e20afa0e4250e6e63cb5a26f94688ed508c/fastavro-1.12.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:e849c70198e5bdf6f08df54a68db36ff72bd73e8f14b1fd664323df073c496d8", size = 944288, upload-time = "2025-07-31T15:17:09.756Z" }, + { url = "https://files.pythonhosted.org/packages/52/1d/5c1ea0f6e98a441953de822c7455c9ce8c3afdc7b359dd23c5a5e5039249/fastavro-1.12.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b260e1cdc9a77853a2586b32208302c08dddfb5c20720b5179ac5330e06ce698", size = 3404895, upload-time = "2025-07-31T15:17:11.939Z" }, + { url = "https://files.pythonhosted.org/packages/36/8b/115a3ffe67fb48de0de704284fa5e793afa70932b8b2e915cc7545752f05/fastavro-1.12.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:181779688d8b80957953031f0d82ec0761be667a78e03dac642511ff996c771a", size = 3469935, upload-time = "2025-07-31T15:17:14.145Z" }, + { url = "https://files.pythonhosted.org/packages/14/f8/bf3b7370687ab21205e07b37acdd2455ca69f5d25c72d2b315faf357b1cd/fastavro-1.12.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6881caf914b36a57d1f90810f04a89bd9c837dd4a48e1b66a8b92136e85c415d", size = 3306148, upload-time = "2025-07-31T15:17:16.121Z" }, + { url = "https://files.pythonhosted.org/packages/97/55/fba2726b59a984c7aa2fc19c6e8ef1865eca6a3f66e78810d602ca22af59/fastavro-1.12.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:8bf638248499eb78c422f12fedc08f9b90b5646c3368415e388691db60e7defb", size = 3442851, upload-time = "2025-07-31T15:17:18.738Z" }, + { url = "https://files.pythonhosted.org/packages/a6/3e/25059b8fe0b8084fd858dca77caf0815d73e0ca4731485f34402e8d40c43/fastavro-1.12.0-cp312-cp312-win_amd64.whl", hash = "sha256:ed4f18b7c2f651a5ee2233676f62aac332995086768301aa2c1741859d70b53e", size = 445449, upload-time = "2025-07-31T15:17:20.438Z" }, + { url = "https://files.pythonhosted.org/packages/db/c7/f18b73b39860d54eb724f881b8932882ba10c1d4905e491cd25d159a7e49/fastavro-1.12.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:dbe2b690d9caba7d888126cc1dd980a8fcf5ee73de41a104e3f15bb5e08c19c8", size = 936220, upload-time = "2025-07-31T15:17:21.994Z" }, + { url = "https://files.pythonhosted.org/packages/20/22/61ec800fda2a0f051a21b067e4005fd272070132d0a0566c5094e09b666c/fastavro-1.12.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:07ff9e6c6e8739203ccced3205646fdac6141c2efc83f4dffabf5f7d0176646d", size = 3348450, upload-time = "2025-07-31T15:17:24.186Z" }, + { url = "https://files.pythonhosted.org/packages/ca/79/1f34618fb643b99e08853e8a204441ec11a24d3e1fce050e804e6ff5c5ae/fastavro-1.12.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6a172655add31882cab4e1a96b7d49f419906b465b4c2165081db7b1db79852f", size = 3417238, upload-time = "2025-07-31T15:17:26.531Z" }, + { url = "https://files.pythonhosted.org/packages/ea/0b/79611769eb15cc17992dc3699141feb0f75afd37b0cb964b4a08be45214e/fastavro-1.12.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:be20ce0331b70b35dca1a4c7808afeedf348dc517bd41602ed8fc9a1ac2247a9", size = 3252425, upload-time = "2025-07-31T15:17:28.989Z" }, + { url = "https://files.pythonhosted.org/packages/86/1a/65e0999bcc4bbb38df32706b6ae6ce626d528228667a5e0af059a8b25bb2/fastavro-1.12.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a52906681384a18b99b47e5f9eab64b4744d6e6bc91056b7e28641c7b3c59d2b", size = 3385322, upload-time = "2025-07-31T15:17:31.232Z" }, + { url = "https://files.pythonhosted.org/packages/e9/49/c06ebc9e5144f7463c2bfcb900ca01f87db934caf131bccbffc5d0aaf7ec/fastavro-1.12.0-cp313-cp313-win_amd64.whl", hash = "sha256:cf153531191bcfc445c21e05dd97232a634463aa717cf99fb2214a51b9886bff", size = 445586, upload-time = "2025-07-31T15:17:32.634Z" }, + { url = "https://files.pythonhosted.org/packages/dd/c8/46ab37076dc0f86bb255791baf9b3c3a20f77603a86a40687edacff8c03d/fastavro-1.12.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:1928e88a760688e490118e1bedf0643b1f3727e5ba59c07ac64638dab81ae2a1", size = 1025933, upload-time = "2025-07-31T15:17:34.321Z" }, + { url = "https://files.pythonhosted.org/packages/a9/7f/cb3e069dcc903034a6fe82182d92c75d981d86aee94bd028200a083696b3/fastavro-1.12.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:cd51b706a3ab3fe4af84a0b37f60d1bcd79295df18932494fc9f49db4ba2bab2", size = 3560435, upload-time = "2025-07-31T15:17:36.314Z" }, + { url = "https://files.pythonhosted.org/packages/d0/12/9478c28a2ac4fcc10ad9488dd3dcd5fac1ef550c3022c57840330e7cec4b/fastavro-1.12.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1148263931f6965e1942cf670f146148ca95b021ae7b7e1f98bf179f1c26cc58", size = 3453000, upload-time = "2025-07-31T15:17:38.875Z" }, + { url = "https://files.pythonhosted.org/packages/00/32/a5c8b3af9561c308c8c27da0be998b6237a47dbbdd8d5499f02731bd4073/fastavro-1.12.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:4099e0f6fb8a55f59891c0aed6bfa90c4d20a774737e5282c74181b4703ea0cb", size = 3383233, upload-time = "2025-07-31T15:17:40.833Z" }, + { url = "https://files.pythonhosted.org/packages/42/a0/f6290f3f8059543faf3ef30efbbe9bf3e4389df881891136cd5fb1066b64/fastavro-1.12.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:10c586e9e3bab34307f8e3227a2988b6e8ac49bff8f7b56635cf4928a153f464", size = 3402032, upload-time = "2025-07-31T15:17:42.958Z" }, +] + +[[package]] +name = "fasttext-predict" +version = "0.9.2.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fc/0e/9defbb9385bcb1104cc1d686a14f7d9fafe5fe43f220cccb00f33d91bb47/fasttext_predict-0.9.2.4.tar.gz", hash = "sha256:18a6fb0d74c7df9280db1f96cb75d990bfd004fa9d669493ea3dd3d54f84dbc7", size = 16332, upload-time = "2024-11-23T17:24:44.801Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fb/fa/612bf85ce8928120843279ae256f4fffbb9758af81536ddf25f9136b1759/fasttext_predict-0.9.2.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:dcf8661da4f515551523470a745df246121f7e19736fcf3f48f04287963e6279", size = 104836, upload-time = "2024-11-23T17:23:25.219Z" }, + { url = "https://files.pythonhosted.org/packages/7a/04/106b6fe3f980d6a4f41bfb3106be22d42f87b1e8beb2959361ee4ee08960/fasttext_predict-0.9.2.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:99dbfcc3f353da2639fd04fc574a65ff4195b018311f790583147cdc6eb122f4", size = 97377, upload-time = "2024-11-23T17:23:26.319Z" }, + { url = "https://files.pythonhosted.org/packages/57/b9/b4962c92bd93dd234ea1d1cab643a86d948dab3f269e34a554a004ed6524/fasttext_predict-0.9.2.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:427e99ba963b2c744ed7233304037a83b7adece97de6f361cfd356aa43cb87f3", size = 283102, upload-time = "2024-11-23T17:23:27.497Z" }, + { url = "https://files.pythonhosted.org/packages/1d/18/92203820cf00b9a34f40f10456e4ed3019010a9b13a87e11d8b98cd98933/fasttext_predict-0.9.2.4-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8b9480cc75a906571a8e5fc717b91b4783f1820aaa5ed36a304d689280de8602", size = 307416, upload-time = "2024-11-23T17:23:28.68Z" }, + { url = "https://files.pythonhosted.org/packages/06/8d/334cd9acb84e569d37617444661ca7b59d1bc1a83abe42aa845d23fb1273/fasttext_predict-0.9.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:11ef7af2a4431c76d2226e47334e86b9c4a78a98f6cb68b1ce9a1fc20e04c904", size = 296055, upload-time = "2024-11-23T17:23:29.934Z" }, + { url = "https://files.pythonhosted.org/packages/08/0b/2c83cc67eb5a29f182c8ea425e4b026db0593712edb8eaaf082501ca349f/fasttext_predict-0.9.2.4-cp312-cp312-manylinux_2_31_armv7l.whl", hash = "sha256:ecb0b854596ba847742597b35c2d0134fcf3a59214d09351d01535854078d56b", size = 237279, upload-time = "2024-11-23T17:23:31.358Z" }, + { url = "https://files.pythonhosted.org/packages/14/81/0f1b3bda499ffeb7109fe51d9321dc74100db5a4801e3f9a9efe2348922d/fasttext_predict-0.9.2.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:fbbcfefac10f625d95fc42f28d76cc5bf0c12875f147b5a79108a2669e64a2dc", size = 1214253, upload-time = "2024-11-23T17:23:33.529Z" }, + { url = "https://files.pythonhosted.org/packages/d1/e6/b1a177a990c29b043a9658f9f4ec7234576ad31939362f9760c237f91d6d/fasttext_predict-0.9.2.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:a8cb78a00c04b7eb7da18b4805f8557b36911dc4375c947d8938897d2e131841", size = 1099909, upload-time = "2024-11-23T17:23:34.983Z" }, + { url = "https://files.pythonhosted.org/packages/09/a0/7f23c7c4398f399552f39144849868991da543b66b9bfa8f49a6550fdd46/fasttext_predict-0.9.2.4-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:299ae56ad53e1381c65030143da7bcae12546fd32bc019215592ec1ee40fd19e", size = 1384102, upload-time = "2024-11-23T17:23:37.237Z" }, + { url = "https://files.pythonhosted.org/packages/e4/2c/568cf15fd48e4cefd0e605af62da5f5f51db3b012f8441d201d0a1173eb1/fasttext_predict-0.9.2.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:091938062002fe30d214f6e493a3a1e6180d401212d37eea23c29f4b55f3f347", size = 1281283, upload-time = "2024-11-23T17:23:39.676Z" }, + { url = "https://files.pythonhosted.org/packages/e7/68/0967ec3d5333c23fae1f1bdb851fa896f8f6068ef0ca3a8afee1aa2ee57d/fasttext_predict-0.9.2.4-cp312-cp312-win32.whl", hash = "sha256:981b8d9734623f8f9a8003970f765e14b1d91ee82c59c35e8eba6b76368fa95e", size = 91089, upload-time = "2024-11-23T17:23:41.082Z" }, + { url = "https://files.pythonhosted.org/packages/a7/c5/11c1f50b47f492d562974878ec34b6a0b84699f8b05e1cc3a75c65349784/fasttext_predict-0.9.2.4-cp312-cp312-win_amd64.whl", hash = "sha256:bd3c33971c241577b0767e55d97acfda790f77378f9d5ee7872b6ee4bd63130b", size = 104889, upload-time = "2024-11-23T17:23:42.193Z" }, + { url = "https://files.pythonhosted.org/packages/89/fc/5cd65224c33e33d6faec3fa1047162dc266ed2213016139d936bd36fb7c3/fasttext_predict-0.9.2.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ddb85e62c95e4e02d417c782e3434ef65554df19e3522f5230f6be15a9373c05", size = 104916, upload-time = "2024-11-23T17:23:43.367Z" }, + { url = "https://files.pythonhosted.org/packages/d9/53/8d542773e32c9d98dd8c680e390fe7e6d4fc92ab3439dc1bb8e70c46c7ad/fasttext_predict-0.9.2.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:102129d45cf98dda871e83ae662f71d999b9ef6ff26bc842ffc1520a1f82930c", size = 97502, upload-time = "2024-11-23T17:23:44.447Z" }, + { url = "https://files.pythonhosted.org/packages/50/99/049fd6b01937705889bd9a00c31e5c55f0ae4b7704007b2ef7a82bf2b867/fasttext_predict-0.9.2.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:05ba6a0fbf8cb2141b8ca2bc461db97af8ac31a62341e4696a75048b9de39e10", size = 282951, upload-time = "2024-11-23T17:23:46.31Z" }, + { url = "https://files.pythonhosted.org/packages/83/cb/79b71709edbb53c3c5f8a8b60fe2d3bc98d28a8e75367c89afedf3307aa9/fasttext_predict-0.9.2.4-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0c7a779215571296ecfcf86545cb30ec3f1c6f43cbcd69f83cc4f67049375ea1", size = 307377, upload-time = "2024-11-23T17:23:47.685Z" }, + { url = "https://files.pythonhosted.org/packages/7c/4a/b15b7be003e76613173cc77d9c6cce4bf086073079354e0177deaa768f59/fasttext_predict-0.9.2.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ddd2f03f3f206585543f5274b1dbc5f651bae141a1b14c9d5225c2a12e5075c2", size = 295746, upload-time = "2024-11-23T17:23:49.024Z" }, + { url = "https://files.pythonhosted.org/packages/e3/d3/f030cd45bdd4b052fcf23e730fdf0804e024b0cad43d7c7f8704faaec2f5/fasttext_predict-0.9.2.4-cp313-cp313-manylinux_2_31_armv7l.whl", hash = "sha256:748f9edc3222a1fb7a61331c4e06d3b7f2390ae493f91f09d372a00b81762a8d", size = 236939, upload-time = "2024-11-23T17:23:50.306Z" }, + { url = "https://files.pythonhosted.org/packages/a2/01/6f2985afd58fdc5f4ecd058d5d9427d03081d468960982df97316c03f6bb/fasttext_predict-0.9.2.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:1aee47a40757cd24272b34eaf9ceeea86577fd0761b0fd0e41599c6549abdf04", size = 1214189, upload-time = "2024-11-23T17:23:51.647Z" }, + { url = "https://files.pythonhosted.org/packages/75/07/931bcdd4e2406e45e54d57e056c2e0766616a5280a18fbf6ef078aa439ab/fasttext_predict-0.9.2.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:6ff0f152391ee03ffc18495322100c01735224f7843533a7c4ff33c8853d7be1", size = 1099889, upload-time = "2024-11-23T17:23:53.127Z" }, + { url = "https://files.pythonhosted.org/packages/a2/eb/6521b4bbf387252a96a6dc0f54986f078a93db0a9d4ba77258dcf1fa8be7/fasttext_predict-0.9.2.4-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:4d92f5265318b41d6e68659fd459babbff692484e492c5013995b90a56b517c9", size = 1383959, upload-time = "2024-11-23T17:23:54.521Z" }, + { url = "https://files.pythonhosted.org/packages/b7/6b/d56606761afb3a3912c52971f0f804e2e9065f049c412b96c47d6fca6218/fasttext_predict-0.9.2.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:3a7720cce1b8689d88df76cac1425e84f9911c69a4e40a5309d7d3435e1bb97c", size = 1281097, upload-time = "2024-11-23T17:23:55.9Z" }, + { url = "https://files.pythonhosted.org/packages/91/83/55bb4a37bb3b3a428941f4e1323c345a662254f576f8860b3098d9742510/fasttext_predict-0.9.2.4-cp313-cp313-win32.whl", hash = "sha256:d16acfced7871ed0cd55b476f0dbdddc7a5da1ffc9745a3c5674846cf1555886", size = 91137, upload-time = "2024-11-23T17:23:57.886Z" }, + { url = "https://files.pythonhosted.org/packages/9c/1d/c1ccc8790ce54200c84164d99282f088dddb9760aeefc8860856aafa40b4/fasttext_predict-0.9.2.4-cp313-cp313-win_amd64.whl", hash = "sha256:96a23328729ce62a851f8953582e576ca075ee78d637df4a78a2b3609784849e", size = 104896, upload-time = "2024-11-23T17:23:59.028Z" }, + { url = "https://files.pythonhosted.org/packages/a4/c9/a1ccc749c59e2480767645ecc03bd842a7fa5b2b780d69ac370e6f8298d2/fasttext_predict-0.9.2.4-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:b1357d0d9d8568db84668b57e7c6880b9c46f757e8954ad37634402d36f09dba", size = 109401, upload-time = "2024-11-23T17:24:00.191Z" }, + { url = "https://files.pythonhosted.org/packages/90/1f/33182b76eb0524155e8ff93e7939feaf5325385e5ff2a154f383d9a02317/fasttext_predict-0.9.2.4-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:9604c464c5d86c7eba34b040080be7012e246ef512b819e428b7deb817290dae", size = 102131, upload-time = "2024-11-23T17:24:02.052Z" }, + { url = "https://files.pythonhosted.org/packages/2b/df/1886daea373382e573f28ce49e3fc8fb6b0ee0c84e2b0becf5b254cd93fb/fasttext_predict-0.9.2.4-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cc6da186c2e4497cbfaba9c5424e58c7b72728b25d980829eb96daccd7cface1", size = 287396, upload-time = "2024-11-23T17:24:03.294Z" }, + { url = "https://files.pythonhosted.org/packages/35/8f/d1c2c0f0251bee898d508253a437683b0480a1074cfb25ded1f7fdbb925a/fasttext_predict-0.9.2.4-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:366ed2ca4f4170418f3585e92059cf17ee2c963bf179111c5b8ba48f06cd69d1", size = 311090, upload-time = "2024-11-23T17:24:04.625Z" }, + { url = "https://files.pythonhosted.org/packages/5d/52/07d6ed46148662fae84166bc69d944caca87fabc850ebfbd9640b20dafe7/fasttext_predict-0.9.2.4-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2f1877edbb815a43e7d38cc7332202e759054cf0b5a4b7e34a743c0f5d6e7333", size = 300359, upload-time = "2024-11-23T17:24:06.486Z" }, + { url = "https://files.pythonhosted.org/packages/fa/a1/751ff471a991e5ed0bae9e7fa6fc8d8ab76b233a7838a27d70d62bed0c8e/fasttext_predict-0.9.2.4-cp313-cp313t-manylinux_2_31_armv7l.whl", hash = "sha256:f63c31352ba6fc910290b0fe12733770acd8cfa0945fcb9cf3984d241abcfc9d", size = 241164, upload-time = "2024-11-23T17:24:08.501Z" }, + { url = "https://files.pythonhosted.org/packages/94/19/e251f699a0e9c001fa672ea0929c456160faa68ecfafc19e8def09982b6a/fasttext_predict-0.9.2.4-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:898e14b03fbfb0a8d9a5185a0a00ff656772b3baa37cad122e06e8e4d6da3832", size = 1218629, upload-time = "2024-11-23T17:24:10.04Z" }, + { url = "https://files.pythonhosted.org/packages/1d/46/1af2f779f8cfd746496a226581f747d3051888e3e3c5b2ca37231e5d04f8/fasttext_predict-0.9.2.4-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:a33bb5832a69fc54d18cadcf015677c1acb5ccc7f0125d261df2a89f8aff01f6", size = 1100535, upload-time = "2024-11-23T17:24:11.5Z" }, + { url = "https://files.pythonhosted.org/packages/4c/b7/900ccd74a9ba8be7ca6d04bba684e9c43fb0dbed8a3d12ec0536228e2c32/fasttext_predict-0.9.2.4-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:7fe9e98bd0701d598bf245eb2fbf592145cd03551684a2102a4b301294b9bd87", size = 1387651, upload-time = "2024-11-23T17:24:13.135Z" }, + { url = "https://files.pythonhosted.org/packages/0b/5a/99fdaed054079f7c96e70df0d7016c4eb6b9e487a614396dd8f849244a52/fasttext_predict-0.9.2.4-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:dcb8c5a74c1785f005fd83d445137437b79ac70a2dfbfe4bb1b09aa5643be545", size = 1286189, upload-time = "2024-11-23T17:24:14.615Z" }, + { url = "https://files.pythonhosted.org/packages/87/6a/9114d65b3f7a9c20a62b9d2ca3b770ee65de849e4131cc7aa58cdc50cb07/fasttext_predict-0.9.2.4-cp313-cp313t-win32.whl", hash = "sha256:a85c7de3d4480faa12b930637fca9c23144d1520786fedf9ba8edd8642ed4aea", size = 95905, upload-time = "2024-11-23T17:24:15.868Z" }, + { url = "https://files.pythonhosted.org/packages/31/fb/6d251f3fdfe3346ee60d091f55106513e509659ee005ad39c914182c96f4/fasttext_predict-0.9.2.4-cp313-cp313t-win_amd64.whl", hash = "sha256:be0933fa4af7abae09c703d28f9e17c80e7069eb6f92100b21985b777f4ea275", size = 110325, upload-time = "2024-11-23T17:24:16.984Z" }, +] + +[[package]] +name = "ffmpy" +version = "0.6.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/0b/f6/67cadf1686030be511004e75fa1c1397f8f193cd4d15d4788edef7c28621/ffmpy-0.6.1.tar.gz", hash = "sha256:b5830fd05f72bace05b8fb28724d54a7a63c5119d7f74ca36a75df33f749142d", size = 4958, upload-time = "2025-07-22T12:08:22.276Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/74/d4/1806897b31c480efc4e97c22506ac46c716084f573aef780bb7fb7a16e8a/ffmpy-0.6.1-py3-none-any.whl", hash = "sha256:69a37e2d7d6feb840e233d5640f3499a8b0a8657336774c86e4c52a3219222d4", size = 5512, upload-time = "2025-07-22T12:08:21.176Z" }, +] + +[[package]] +name = "filelock" +version = "3.18.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/0a/10/c23352565a6544bdc5353e0b15fc1c563352101f30e24bf500207a54df9a/filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2", size = 18075, upload-time = "2025-03-14T07:11:40.47Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4d/36/2a115987e2d8c300a974597416d9de88f2444426de9571f4b59b2cca3acc/filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de", size = 16215, upload-time = "2025-03-14T07:11:39.145Z" }, +] + +[[package]] +name = "flatbuffers" +version = "25.2.10" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e4/30/eb5dce7994fc71a2f685d98ec33cc660c0a5887db5610137e60d8cbc4489/flatbuffers-25.2.10.tar.gz", hash = "sha256:97e451377a41262f8d9bd4295cc836133415cc03d8cb966410a4af92eb00d26e", size = 22170, upload-time = "2025-02-11T04:26:46.257Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b8/25/155f9f080d5e4bc0082edfda032ea2bc2b8fab3f4d25d46c1e9dd22a1a89/flatbuffers-25.2.10-py2.py3-none-any.whl", hash = "sha256:ebba5f4d5ea615af3f7fd70fc310636fbb2bbd1f566ac0a23d98dd412de50051", size = 30953, upload-time = "2025-02-11T04:26:44.484Z" }, +] + +[[package]] +name = "fonttools" +version = "4.59.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/8a/27/ec3c723bfdf86f34c5c82bf6305df3e0f0d8ea798d2d3a7cb0c0a866d286/fonttools-4.59.0.tar.gz", hash = "sha256:be392ec3529e2f57faa28709d60723a763904f71a2b63aabe14fee6648fe3b14", size = 3532521, upload-time = "2025-07-16T12:04:54.613Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e2/77/b1c8af22f4265e951cd2e5535dbef8859efcef4fb8dee742d368c967cddb/fonttools-4.59.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:f9b3a78f69dcbd803cf2fb3f972779875b244c1115481dfbdd567b2c22b31f6b", size = 2767562, upload-time = "2025-07-16T12:04:06.895Z" }, + { url = "https://files.pythonhosted.org/packages/ff/5a/aeb975699588176bb357e8b398dfd27e5d3a2230d92b81ab8cbb6187358d/fonttools-4.59.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:57bb7e26928573ee7c6504f54c05860d867fd35e675769f3ce01b52af38d48e2", size = 2335168, upload-time = "2025-07-16T12:04:08.695Z" }, + { url = "https://files.pythonhosted.org/packages/54/97/c6101a7e60ae138c4ef75b22434373a0da50a707dad523dd19a4889315bf/fonttools-4.59.0-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:4536f2695fe5c1ffb528d84a35a7d3967e5558d2af58b4775e7ab1449d65767b", size = 4909850, upload-time = "2025-07-16T12:04:10.761Z" }, + { url = "https://files.pythonhosted.org/packages/bd/6c/fa4d18d641054f7bff878cbea14aa9433f292b9057cb1700d8e91a4d5f4f/fonttools-4.59.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:885bde7d26e5b40e15c47bd5def48b38cbd50830a65f98122a8fb90962af7cd1", size = 4955131, upload-time = "2025-07-16T12:04:12.846Z" }, + { url = "https://files.pythonhosted.org/packages/20/5c/331947fc1377deb928a69bde49f9003364f5115e5cbe351eea99e39412a2/fonttools-4.59.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6801aeddb6acb2c42eafa45bc1cb98ba236871ae6f33f31e984670b749a8e58e", size = 4899667, upload-time = "2025-07-16T12:04:14.558Z" }, + { url = "https://files.pythonhosted.org/packages/8a/46/b66469dfa26b8ff0baa7654b2cc7851206c6d57fe3abdabbaab22079a119/fonttools-4.59.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:31003b6a10f70742a63126b80863ab48175fb8272a18ca0846c0482968f0588e", size = 5051349, upload-time = "2025-07-16T12:04:16.388Z" }, + { url = "https://files.pythonhosted.org/packages/2e/05/ebfb6b1f3a4328ab69787d106a7d92ccde77ce66e98659df0f9e3f28d93d/fonttools-4.59.0-cp312-cp312-win32.whl", hash = "sha256:fbce6dae41b692a5973d0f2158f782b9ad05babc2c2019a970a1094a23909b1b", size = 2201315, upload-time = "2025-07-16T12:04:18.557Z" }, + { url = "https://files.pythonhosted.org/packages/09/45/d2bdc9ea20bbadec1016fd0db45696d573d7a26d95ab5174ffcb6d74340b/fonttools-4.59.0-cp312-cp312-win_amd64.whl", hash = "sha256:332bfe685d1ac58ca8d62b8d6c71c2e52a6c64bc218dc8f7825c9ea51385aa01", size = 2249408, upload-time = "2025-07-16T12:04:20.489Z" }, + { url = "https://files.pythonhosted.org/packages/f3/bb/390990e7c457d377b00890d9f96a3ca13ae2517efafb6609c1756e213ba4/fonttools-4.59.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:78813b49d749e1bb4db1c57f2d4d7e6db22c253cb0a86ad819f5dc197710d4b2", size = 2758704, upload-time = "2025-07-16T12:04:22.217Z" }, + { url = "https://files.pythonhosted.org/packages/df/6f/d730d9fcc9b410a11597092bd2eb9ca53e5438c6cb90e4b3047ce1b723e9/fonttools-4.59.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:401b1941ce37e78b8fd119b419b617277c65ae9417742a63282257434fd68ea2", size = 2330764, upload-time = "2025-07-16T12:04:23.985Z" }, + { url = "https://files.pythonhosted.org/packages/75/b4/b96bb66f6f8cc4669de44a158099b249c8159231d254ab6b092909388be5/fonttools-4.59.0-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:efd7e6660674e234e29937bc1481dceb7e0336bfae75b856b4fb272b5093c5d4", size = 4890699, upload-time = "2025-07-16T12:04:25.664Z" }, + { url = "https://files.pythonhosted.org/packages/b5/57/7969af50b26408be12baa317c6147588db5b38af2759e6df94554dbc5fdb/fonttools-4.59.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:51ab1ff33c19e336c02dee1e9fd1abd974a4ca3d8f7eef2a104d0816a241ce97", size = 4952934, upload-time = "2025-07-16T12:04:27.733Z" }, + { url = "https://files.pythonhosted.org/packages/d6/e2/dd968053b6cf1f46c904f5bd409b22341477c017d8201619a265e50762d3/fonttools-4.59.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a9bf8adc9e1f3012edc8f09b08336272aec0c55bc677422273e21280db748f7c", size = 4892319, upload-time = "2025-07-16T12:04:30.074Z" }, + { url = "https://files.pythonhosted.org/packages/6b/95/a59810d8eda09129f83467a4e58f84205dc6994ebaeb9815406363e07250/fonttools-4.59.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:37e01c6ec0c98599778c2e688350d624fa4770fbd6144551bd5e032f1199171c", size = 5034753, upload-time = "2025-07-16T12:04:32.292Z" }, + { url = "https://files.pythonhosted.org/packages/a5/84/51a69ee89ff8d1fea0c6997e946657e25a3f08513de8435fe124929f3eef/fonttools-4.59.0-cp313-cp313-win32.whl", hash = "sha256:70d6b3ceaa9cc5a6ac52884f3b3d9544e8e231e95b23f138bdb78e6d4dc0eae3", size = 2199688, upload-time = "2025-07-16T12:04:34.444Z" }, + { url = "https://files.pythonhosted.org/packages/a0/ee/f626cd372932d828508137a79b85167fdcf3adab2e3bed433f295c596c6a/fonttools-4.59.0-cp313-cp313-win_amd64.whl", hash = "sha256:26731739daa23b872643f0e4072d5939960237d540c35c14e6a06d47d71ca8fe", size = 2248560, upload-time = "2025-07-16T12:04:36.034Z" }, + { url = "https://files.pythonhosted.org/packages/d0/9c/df0ef2c51845a13043e5088f7bb988ca6cd5bb82d5d4203d6a158aa58cf2/fonttools-4.59.0-py3-none-any.whl", hash = "sha256:241313683afd3baacb32a6bd124d0bce7404bc5280e12e291bae1b9bba28711d", size = 1128050, upload-time = "2025-07-16T12:04:52.687Z" }, +] + +[[package]] +name = "frozenlist" +version = "1.7.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/79/b1/b64018016eeb087db503b038296fd782586432b9c077fc5c7839e9cb6ef6/frozenlist-1.7.0.tar.gz", hash = "sha256:2e310d81923c2437ea8670467121cc3e9b0f76d3043cc1d2331d56c7fb7a3a8f", size = 45078, upload-time = "2025-06-09T23:02:35.538Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ef/a2/c8131383f1e66adad5f6ecfcce383d584ca94055a34d683bbb24ac5f2f1c/frozenlist-1.7.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:3dbf9952c4bb0e90e98aec1bd992b3318685005702656bc6f67c1a32b76787f2", size = 81424, upload-time = "2025-06-09T23:00:42.24Z" }, + { url = "https://files.pythonhosted.org/packages/4c/9d/02754159955088cb52567337d1113f945b9e444c4960771ea90eb73de8db/frozenlist-1.7.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:1f5906d3359300b8a9bb194239491122e6cf1444c2efb88865426f170c262cdb", size = 47952, upload-time = "2025-06-09T23:00:43.481Z" }, + { url = "https://files.pythonhosted.org/packages/01/7a/0046ef1bd6699b40acd2067ed6d6670b4db2f425c56980fa21c982c2a9db/frozenlist-1.7.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:3dabd5a8f84573c8d10d8859a50ea2dec01eea372031929871368c09fa103478", size = 46688, upload-time = "2025-06-09T23:00:44.793Z" }, + { url = "https://files.pythonhosted.org/packages/d6/a2/a910bafe29c86997363fb4c02069df4ff0b5bc39d33c5198b4e9dd42d8f8/frozenlist-1.7.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aa57daa5917f1738064f302bf2626281a1cb01920c32f711fbc7bc36111058a8", size = 243084, upload-time = "2025-06-09T23:00:46.125Z" }, + { url = "https://files.pythonhosted.org/packages/64/3e/5036af9d5031374c64c387469bfcc3af537fc0f5b1187d83a1cf6fab1639/frozenlist-1.7.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c193dda2b6d49f4c4398962810fa7d7c78f032bf45572b3e04dd5249dff27e08", size = 233524, upload-time = "2025-06-09T23:00:47.73Z" }, + { url = "https://files.pythonhosted.org/packages/06/39/6a17b7c107a2887e781a48ecf20ad20f1c39d94b2a548c83615b5b879f28/frozenlist-1.7.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bfe2b675cf0aaa6d61bf8fbffd3c274b3c9b7b1623beb3809df8a81399a4a9c4", size = 248493, upload-time = "2025-06-09T23:00:49.742Z" }, + { url = "https://files.pythonhosted.org/packages/be/00/711d1337c7327d88c44d91dd0f556a1c47fb99afc060ae0ef66b4d24793d/frozenlist-1.7.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8fc5d5cda37f62b262405cf9652cf0856839c4be8ee41be0afe8858f17f4c94b", size = 244116, upload-time = "2025-06-09T23:00:51.352Z" }, + { url = "https://files.pythonhosted.org/packages/24/fe/74e6ec0639c115df13d5850e75722750adabdc7de24e37e05a40527ca539/frozenlist-1.7.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b0d5ce521d1dd7d620198829b87ea002956e4319002ef0bc8d3e6d045cb4646e", size = 224557, upload-time = "2025-06-09T23:00:52.855Z" }, + { url = "https://files.pythonhosted.org/packages/8d/db/48421f62a6f77c553575201e89048e97198046b793f4a089c79a6e3268bd/frozenlist-1.7.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:488d0a7d6a0008ca0db273c542098a0fa9e7dfaa7e57f70acef43f32b3f69dca", size = 241820, upload-time = "2025-06-09T23:00:54.43Z" }, + { url = "https://files.pythonhosted.org/packages/1d/fa/cb4a76bea23047c8462976ea7b7a2bf53997a0ca171302deae9d6dd12096/frozenlist-1.7.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:15a7eaba63983d22c54d255b854e8108e7e5f3e89f647fc854bd77a237e767df", size = 236542, upload-time = "2025-06-09T23:00:56.409Z" }, + { url = "https://files.pythonhosted.org/packages/5d/32/476a4b5cfaa0ec94d3f808f193301debff2ea42288a099afe60757ef6282/frozenlist-1.7.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:1eaa7e9c6d15df825bf255649e05bd8a74b04a4d2baa1ae46d9c2d00b2ca2cb5", size = 249350, upload-time = "2025-06-09T23:00:58.468Z" }, + { url = "https://files.pythonhosted.org/packages/8d/ba/9a28042f84a6bf8ea5dbc81cfff8eaef18d78b2a1ad9d51c7bc5b029ad16/frozenlist-1.7.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:e4389e06714cfa9d47ab87f784a7c5be91d3934cd6e9a7b85beef808297cc025", size = 225093, upload-time = "2025-06-09T23:01:00.015Z" }, + { url = "https://files.pythonhosted.org/packages/bc/29/3a32959e68f9cf000b04e79ba574527c17e8842e38c91d68214a37455786/frozenlist-1.7.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:73bd45e1488c40b63fe5a7df892baf9e2a4d4bb6409a2b3b78ac1c6236178e01", size = 245482, upload-time = "2025-06-09T23:01:01.474Z" }, + { url = "https://files.pythonhosted.org/packages/80/e8/edf2f9e00da553f07f5fa165325cfc302dead715cab6ac8336a5f3d0adc2/frozenlist-1.7.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:99886d98e1643269760e5fe0df31e5ae7050788dd288947f7f007209b8c33f08", size = 249590, upload-time = "2025-06-09T23:01:02.961Z" }, + { url = "https://files.pythonhosted.org/packages/1c/80/9a0eb48b944050f94cc51ee1c413eb14a39543cc4f760ed12657a5a3c45a/frozenlist-1.7.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:290a172aae5a4c278c6da8a96222e6337744cd9c77313efe33d5670b9f65fc43", size = 237785, upload-time = "2025-06-09T23:01:05.095Z" }, + { url = "https://files.pythonhosted.org/packages/f3/74/87601e0fb0369b7a2baf404ea921769c53b7ae00dee7dcfe5162c8c6dbf0/frozenlist-1.7.0-cp312-cp312-win32.whl", hash = "sha256:426c7bc70e07cfebc178bc4c2bf2d861d720c4fff172181eeb4a4c41d4ca2ad3", size = 39487, upload-time = "2025-06-09T23:01:06.54Z" }, + { url = "https://files.pythonhosted.org/packages/0b/15/c026e9a9fc17585a9d461f65d8593d281fedf55fbf7eb53f16c6df2392f9/frozenlist-1.7.0-cp312-cp312-win_amd64.whl", hash = "sha256:563b72efe5da92e02eb68c59cb37205457c977aa7a449ed1b37e6939e5c47c6a", size = 43874, upload-time = "2025-06-09T23:01:07.752Z" }, + { url = "https://files.pythonhosted.org/packages/24/90/6b2cebdabdbd50367273c20ff6b57a3dfa89bd0762de02c3a1eb42cb6462/frozenlist-1.7.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ee80eeda5e2a4e660651370ebffd1286542b67e268aa1ac8d6dbe973120ef7ee", size = 79791, upload-time = "2025-06-09T23:01:09.368Z" }, + { url = "https://files.pythonhosted.org/packages/83/2e/5b70b6a3325363293fe5fc3ae74cdcbc3e996c2a11dde2fd9f1fb0776d19/frozenlist-1.7.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d1a81c85417b914139e3a9b995d4a1c84559afc839a93cf2cb7f15e6e5f6ed2d", size = 47165, upload-time = "2025-06-09T23:01:10.653Z" }, + { url = "https://files.pythonhosted.org/packages/f4/25/a0895c99270ca6966110f4ad98e87e5662eab416a17e7fd53c364bf8b954/frozenlist-1.7.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:cbb65198a9132ebc334f237d7b0df163e4de83fb4f2bdfe46c1e654bdb0c5d43", size = 45881, upload-time = "2025-06-09T23:01:12.296Z" }, + { url = "https://files.pythonhosted.org/packages/19/7c/71bb0bbe0832793c601fff68cd0cf6143753d0c667f9aec93d3c323f4b55/frozenlist-1.7.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dab46c723eeb2c255a64f9dc05b8dd601fde66d6b19cdb82b2e09cc6ff8d8b5d", size = 232409, upload-time = "2025-06-09T23:01:13.641Z" }, + { url = "https://files.pythonhosted.org/packages/c0/45/ed2798718910fe6eb3ba574082aaceff4528e6323f9a8570be0f7028d8e9/frozenlist-1.7.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:6aeac207a759d0dedd2e40745575ae32ab30926ff4fa49b1635def65806fddee", size = 225132, upload-time = "2025-06-09T23:01:15.264Z" }, + { url = "https://files.pythonhosted.org/packages/ba/e2/8417ae0f8eacb1d071d4950f32f229aa6bf68ab69aab797b72a07ea68d4f/frozenlist-1.7.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bd8c4e58ad14b4fa7802b8be49d47993182fdd4023393899632c88fd8cd994eb", size = 237638, upload-time = "2025-06-09T23:01:16.752Z" }, + { url = "https://files.pythonhosted.org/packages/f8/b7/2ace5450ce85f2af05a871b8c8719b341294775a0a6c5585d5e6170f2ce7/frozenlist-1.7.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:04fb24d104f425da3540ed83cbfc31388a586a7696142004c577fa61c6298c3f", size = 233539, upload-time = "2025-06-09T23:01:18.202Z" }, + { url = "https://files.pythonhosted.org/packages/46/b9/6989292c5539553dba63f3c83dc4598186ab2888f67c0dc1d917e6887db6/frozenlist-1.7.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6a5c505156368e4ea6b53b5ac23c92d7edc864537ff911d2fb24c140bb175e60", size = 215646, upload-time = "2025-06-09T23:01:19.649Z" }, + { url = "https://files.pythonhosted.org/packages/72/31/bc8c5c99c7818293458fe745dab4fd5730ff49697ccc82b554eb69f16a24/frozenlist-1.7.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8bd7eb96a675f18aa5c553eb7ddc24a43c8c18f22e1f9925528128c052cdbe00", size = 232233, upload-time = "2025-06-09T23:01:21.175Z" }, + { url = "https://files.pythonhosted.org/packages/59/52/460db4d7ba0811b9ccb85af996019f5d70831f2f5f255f7cc61f86199795/frozenlist-1.7.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:05579bf020096fe05a764f1f84cd104a12f78eaab68842d036772dc6d4870b4b", size = 227996, upload-time = "2025-06-09T23:01:23.098Z" }, + { url = "https://files.pythonhosted.org/packages/ba/c9/f4b39e904c03927b7ecf891804fd3b4df3db29b9e487c6418e37988d6e9d/frozenlist-1.7.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:376b6222d114e97eeec13d46c486facd41d4f43bab626b7c3f6a8b4e81a5192c", size = 242280, upload-time = "2025-06-09T23:01:24.808Z" }, + { url = "https://files.pythonhosted.org/packages/b8/33/3f8d6ced42f162d743e3517781566b8481322be321b486d9d262adf70bfb/frozenlist-1.7.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:0aa7e176ebe115379b5b1c95b4096fb1c17cce0847402e227e712c27bdb5a949", size = 217717, upload-time = "2025-06-09T23:01:26.28Z" }, + { url = "https://files.pythonhosted.org/packages/3e/e8/ad683e75da6ccef50d0ab0c2b2324b32f84fc88ceee778ed79b8e2d2fe2e/frozenlist-1.7.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:3fbba20e662b9c2130dc771e332a99eff5da078b2b2648153a40669a6d0e36ca", size = 236644, upload-time = "2025-06-09T23:01:27.887Z" }, + { url = "https://files.pythonhosted.org/packages/b2/14/8d19ccdd3799310722195a72ac94ddc677541fb4bef4091d8e7775752360/frozenlist-1.7.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:f3f4410a0a601d349dd406b5713fec59b4cee7e71678d5b17edda7f4655a940b", size = 238879, upload-time = "2025-06-09T23:01:29.524Z" }, + { url = "https://files.pythonhosted.org/packages/ce/13/c12bf657494c2fd1079a48b2db49fa4196325909249a52d8f09bc9123fd7/frozenlist-1.7.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e2cdfaaec6a2f9327bf43c933c0319a7c429058e8537c508964a133dffee412e", size = 232502, upload-time = "2025-06-09T23:01:31.287Z" }, + { url = "https://files.pythonhosted.org/packages/d7/8b/e7f9dfde869825489382bc0d512c15e96d3964180c9499efcec72e85db7e/frozenlist-1.7.0-cp313-cp313-win32.whl", hash = "sha256:5fc4df05a6591c7768459caba1b342d9ec23fa16195e744939ba5914596ae3e1", size = 39169, upload-time = "2025-06-09T23:01:35.503Z" }, + { url = "https://files.pythonhosted.org/packages/35/89/a487a98d94205d85745080a37860ff5744b9820a2c9acbcdd9440bfddf98/frozenlist-1.7.0-cp313-cp313-win_amd64.whl", hash = "sha256:52109052b9791a3e6b5d1b65f4b909703984b770694d3eb64fad124c835d7cba", size = 43219, upload-time = "2025-06-09T23:01:36.784Z" }, + { url = "https://files.pythonhosted.org/packages/56/d5/5c4cf2319a49eddd9dd7145e66c4866bdc6f3dbc67ca3d59685149c11e0d/frozenlist-1.7.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:a6f86e4193bb0e235ef6ce3dde5cbabed887e0b11f516ce8a0f4d3b33078ec2d", size = 84345, upload-time = "2025-06-09T23:01:38.295Z" }, + { url = "https://files.pythonhosted.org/packages/a4/7d/ec2c1e1dc16b85bc9d526009961953df9cec8481b6886debb36ec9107799/frozenlist-1.7.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:82d664628865abeb32d90ae497fb93df398a69bb3434463d172b80fc25b0dd7d", size = 48880, upload-time = "2025-06-09T23:01:39.887Z" }, + { url = "https://files.pythonhosted.org/packages/69/86/f9596807b03de126e11e7d42ac91e3d0b19a6599c714a1989a4e85eeefc4/frozenlist-1.7.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:912a7e8375a1c9a68325a902f3953191b7b292aa3c3fb0d71a216221deca460b", size = 48498, upload-time = "2025-06-09T23:01:41.318Z" }, + { url = "https://files.pythonhosted.org/packages/5e/cb/df6de220f5036001005f2d726b789b2c0b65f2363b104bbc16f5be8084f8/frozenlist-1.7.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9537c2777167488d539bc5de2ad262efc44388230e5118868e172dd4a552b146", size = 292296, upload-time = "2025-06-09T23:01:42.685Z" }, + { url = "https://files.pythonhosted.org/packages/83/1f/de84c642f17c8f851a2905cee2dae401e5e0daca9b5ef121e120e19aa825/frozenlist-1.7.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:f34560fb1b4c3e30ba35fa9a13894ba39e5acfc5f60f57d8accde65f46cc5e74", size = 273103, upload-time = "2025-06-09T23:01:44.166Z" }, + { url = "https://files.pythonhosted.org/packages/88/3c/c840bfa474ba3fa13c772b93070893c6e9d5c0350885760376cbe3b6c1b3/frozenlist-1.7.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:acd03d224b0175f5a850edc104ac19040d35419eddad04e7cf2d5986d98427f1", size = 292869, upload-time = "2025-06-09T23:01:45.681Z" }, + { url = "https://files.pythonhosted.org/packages/a6/1c/3efa6e7d5a39a1d5ef0abeb51c48fb657765794a46cf124e5aca2c7a592c/frozenlist-1.7.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f2038310bc582f3d6a09b3816ab01737d60bf7b1ec70f5356b09e84fb7408ab1", size = 291467, upload-time = "2025-06-09T23:01:47.234Z" }, + { url = "https://files.pythonhosted.org/packages/4f/00/d5c5e09d4922c395e2f2f6b79b9a20dab4b67daaf78ab92e7729341f61f6/frozenlist-1.7.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b8c05e4c8e5f36e5e088caa1bf78a687528f83c043706640a92cb76cd6999384", size = 266028, upload-time = "2025-06-09T23:01:48.819Z" }, + { url = "https://files.pythonhosted.org/packages/4e/27/72765be905619dfde25a7f33813ac0341eb6b076abede17a2e3fbfade0cb/frozenlist-1.7.0-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:765bb588c86e47d0b68f23c1bee323d4b703218037765dcf3f25c838c6fecceb", size = 284294, upload-time = "2025-06-09T23:01:50.394Z" }, + { url = "https://files.pythonhosted.org/packages/88/67/c94103a23001b17808eb7dd1200c156bb69fb68e63fcf0693dde4cd6228c/frozenlist-1.7.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:32dc2e08c67d86d0969714dd484fd60ff08ff81d1a1e40a77dd34a387e6ebc0c", size = 281898, upload-time = "2025-06-09T23:01:52.234Z" }, + { url = "https://files.pythonhosted.org/packages/42/34/a3e2c00c00f9e2a9db5653bca3fec306349e71aff14ae45ecc6d0951dd24/frozenlist-1.7.0-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:c0303e597eb5a5321b4de9c68e9845ac8f290d2ab3f3e2c864437d3c5a30cd65", size = 290465, upload-time = "2025-06-09T23:01:53.788Z" }, + { url = "https://files.pythonhosted.org/packages/bb/73/f89b7fbce8b0b0c095d82b008afd0590f71ccb3dee6eee41791cf8cd25fd/frozenlist-1.7.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:a47f2abb4e29b3a8d0b530f7c3598badc6b134562b1a5caee867f7c62fee51e3", size = 266385, upload-time = "2025-06-09T23:01:55.769Z" }, + { url = "https://files.pythonhosted.org/packages/cd/45/e365fdb554159462ca12df54bc59bfa7a9a273ecc21e99e72e597564d1ae/frozenlist-1.7.0-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:3d688126c242a6fabbd92e02633414d40f50bb6002fa4cf995a1d18051525657", size = 288771, upload-time = "2025-06-09T23:01:57.4Z" }, + { url = "https://files.pythonhosted.org/packages/00/11/47b6117002a0e904f004d70ec5194fe9144f117c33c851e3d51c765962d0/frozenlist-1.7.0-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:4e7e9652b3d367c7bd449a727dc79d5043f48b88d0cbfd4f9f1060cf2b414104", size = 288206, upload-time = "2025-06-09T23:01:58.936Z" }, + { url = "https://files.pythonhosted.org/packages/40/37/5f9f3c3fd7f7746082ec67bcdc204db72dad081f4f83a503d33220a92973/frozenlist-1.7.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:1a85e345b4c43db8b842cab1feb41be5cc0b10a1830e6295b69d7310f99becaf", size = 282620, upload-time = "2025-06-09T23:02:00.493Z" }, + { url = "https://files.pythonhosted.org/packages/0b/31/8fbc5af2d183bff20f21aa743b4088eac4445d2bb1cdece449ae80e4e2d1/frozenlist-1.7.0-cp313-cp313t-win32.whl", hash = "sha256:3a14027124ddb70dfcee5148979998066897e79f89f64b13328595c4bdf77c81", size = 43059, upload-time = "2025-06-09T23:02:02.072Z" }, + { url = "https://files.pythonhosted.org/packages/bb/ed/41956f52105b8dbc26e457c5705340c67c8cc2b79f394b79bffc09d0e938/frozenlist-1.7.0-cp313-cp313t-win_amd64.whl", hash = "sha256:3bf8010d71d4507775f658e9823210b7427be36625b387221642725b515dcf3e", size = 47516, upload-time = "2025-06-09T23:02:03.779Z" }, + { url = "https://files.pythonhosted.org/packages/ee/45/b82e3c16be2182bff01179db177fe144d58b5dc787a7d4492c6ed8b9317f/frozenlist-1.7.0-py3-none-any.whl", hash = "sha256:9a5af342e34f7e97caf8c995864c7a396418ae2859cc6fdf1b1073020d516a7e", size = 13106, upload-time = "2025-06-09T23:02:34.204Z" }, +] + +[[package]] +name = "fsspec" +version = "2025.7.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/8b/02/0835e6ab9cfc03916fe3f78c0956cfcdb6ff2669ffa6651065d5ebf7fc98/fsspec-2025.7.0.tar.gz", hash = "sha256:786120687ffa54b8283d942929540d8bc5ccfa820deb555a2b5d0ed2b737bf58", size = 304432, upload-time = "2025-07-15T16:05:21.19Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2f/e0/014d5d9d7a4564cf1c40b5039bc882db69fd881111e03ab3657ac0b218e2/fsspec-2025.7.0-py3-none-any.whl", hash = "sha256:8b012e39f63c7d5f10474de957f3ab793b47b45ae7d39f2fb735f8bbe25c0e21", size = 199597, upload-time = "2025-07-15T16:05:19.529Z" }, +] + +[[package]] +name = "ftfy" +version = "6.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "wcwidth" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a5/d3/8650919bc3c7c6e90ee3fa7fd618bf373cbbe55dff043bd67353dbb20cd8/ftfy-6.3.1.tar.gz", hash = "sha256:9b3c3d90f84fb267fe64d375a07b7f8912d817cf86009ae134aa03e1819506ec", size = 308927, upload-time = "2024-10-26T00:50:35.149Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ab/6e/81d47999aebc1b155f81eca4477a616a70f238a2549848c38983f3c22a82/ftfy-6.3.1-py3-none-any.whl", hash = "sha256:7c70eb532015cd2f9adb53f101fb6c7945988d023a085d127d1573dc49dd0083", size = 44821, upload-time = "2024-10-26T00:50:33.425Z" }, +] + +[[package]] +name = "gitdb" +version = "4.0.12" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "smmap" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/72/94/63b0fc47eb32792c7ba1fe1b694daec9a63620db1e313033d18140c2320a/gitdb-4.0.12.tar.gz", hash = "sha256:5ef71f855d191a3326fcfbc0d5da835f26b13fbcba60c32c21091c349ffdb571", size = 394684, upload-time = "2025-01-02T07:20:46.413Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a0/61/5c78b91c3143ed5c14207f463aecfc8f9dbb5092fb2869baf37c273b2705/gitdb-4.0.12-py3-none-any.whl", hash = "sha256:67073e15955400952c6565cc3e707c554a4eea2e428946f7a4c162fab9bd9bcf", size = 62794, upload-time = "2025-01-02T07:20:43.624Z" }, +] + +[[package]] +name = "gitpython" +version = "3.1.45" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "gitdb" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9a/c8/dd58967d119baab745caec2f9d853297cec1989ec1d63f677d3880632b88/gitpython-3.1.45.tar.gz", hash = "sha256:85b0ee964ceddf211c41b9f27a49086010a190fd8132a24e21f362a4b36a791c", size = 215076, upload-time = "2025-07-24T03:45:54.871Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/01/61/d4b89fec821f72385526e1b9d9a3a0385dda4a72b206d28049e2c7cd39b8/gitpython-3.1.45-py3-none-any.whl", hash = "sha256:8908cb2e02fb3b93b7eb0f2827125cb699869470432cc885f019b8fd0fccff77", size = 208168, upload-time = "2025-07-24T03:45:52.517Z" }, +] + +[[package]] +name = "google" +version = "3.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "beautifulsoup4" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/89/97/b49c69893cddea912c7a660a4b6102c6b02cd268f8c7162dd70b7c16f753/google-3.0.0.tar.gz", hash = "sha256:143530122ee5130509ad5e989f0512f7cb218b2d4eddbafbad40fd10e8d8ccbe", size = 44978, upload-time = "2020-07-11T14:50:45.678Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ac/35/17c9141c4ae21e9a29a43acdfd848e3e468a810517f862cad07977bf8fe9/google-3.0.0-py2.py3-none-any.whl", hash = "sha256:889cf695f84e4ae2c55fbc0cfdaf4c1e729417fa52ab1db0485202ba173e4935", size = 45258, upload-time = "2020-07-11T14:49:58.287Z" }, +] + +[[package]] +name = "google-auth" +version = "2.40.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cachetools" }, + { name = "pyasn1-modules" }, + { name = "rsa" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9e/9b/e92ef23b84fa10a64ce4831390b7a4c2e53c0132568d99d4ae61d04c8855/google_auth-2.40.3.tar.gz", hash = "sha256:500c3a29adedeb36ea9cf24b8d10858e152f2412e3ca37829b3fa18e33d63b77", size = 281029, upload-time = "2025-06-04T18:04:57.577Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/17/63/b19553b658a1692443c62bd07e5868adaa0ad746a0751ba62c59568cd45b/google_auth-2.40.3-py2.py3-none-any.whl", hash = "sha256:1370d4593e86213563547f97a92752fc658456fe4514c809544f330fed45a7ca", size = 216137, upload-time = "2025-06-04T18:04:55.573Z" }, +] + +[[package]] +name = "google-genai" +version = "1.29.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "google-auth" }, + { name = "httpx" }, + { name = "pydantic" }, + { name = "requests" }, + { name = "tenacity" }, + { name = "typing-extensions" }, + { name = "websockets" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9d/9b/a1e31252c4151da9403b357b47ae7ec5fc852eaf3486696eec211794001d/google_genai-1.29.0.tar.gz", hash = "sha256:a6b036ab032830f668d137b198c2a5abd8951a036d7a8480b61ce837c1c7f36b", size = 224207, upload-time = "2025-08-06T23:32:09.708Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9c/33/9b22b0b3734f93655d0d28cfcd64496ef46dd68efe8ae19278f3b1297998/google_genai-1.29.0-py3-none-any.whl", hash = "sha256:8b64737de008d15ca4737e593913f88f656f0568544ab6901f768f0d1fd69bbf", size = 222591, upload-time = "2025-08-06T23:32:08.133Z" }, +] + +[[package]] +name = "gradio" +version = "5.42.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "aiofiles" }, + { name = "anyio" }, + { name = "audioop-lts", marker = "python_full_version >= '3.13'" }, + { name = "brotli" }, + { name = "fastapi" }, + { name = "ffmpy" }, + { name = "gradio-client" }, + { name = "groovy" }, + { name = "httpx" }, + { name = "huggingface-hub" }, + { name = "jinja2" }, + { name = "markupsafe" }, + { name = "numpy" }, + { name = "orjson" }, + { name = "packaging" }, + { name = "pandas" }, + { name = "pillow" }, + { name = "pydantic" }, + { name = "pydub" }, + { name = "python-multipart" }, + { name = "pyyaml" }, + { name = "ruff", marker = "sys_platform != 'emscripten'" }, + { name = "safehttpx" }, + { name = "semantic-version" }, + { name = "starlette", marker = "sys_platform != 'emscripten'" }, + { name = "tomlkit" }, + { name = "typer", marker = "sys_platform != 'emscripten'" }, + { name = "typing-extensions" }, + { name = "urllib3", marker = "sys_platform == 'emscripten'" }, + { name = "uvicorn", marker = "sys_platform != 'emscripten'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c3/17/0903bce14b1f80893ae0f3e29329159cf4cf8ddb11ee039f5b7ddb846ace/gradio-5.42.0.tar.gz", hash = "sha256:74c8e18a3e6b7bd26396e8ed949521c0cde9bed68a15f589a9706f7cbcb8685f", size = 71665861, upload-time = "2025-08-08T20:22:08.427Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d6/b6/be0898391fe9b34d591df564bb8f3790a69fd2e4d4f30c93c76abbcf48f2/gradio-5.42.0-py3-none-any.whl", hash = "sha256:3e11c076f4eaa2d545fb176551a2a72e951374882b8543aeebd45739085da5d2", size = 59678676, upload-time = "2025-08-08T20:22:03.166Z" }, +] + +[[package]] +name = "gradio-client" +version = "1.11.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "fsspec" }, + { name = "httpx" }, + { name = "huggingface-hub" }, + { name = "packaging" }, + { name = "typing-extensions" }, + { name = "websockets" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e2/cf/30be9f91c506cbec5d425f3bd56cd762d69d4517197ddd9e9d69b735d821/gradio_client-1.11.1.tar.gz", hash = "sha256:0d4885fea23b0d5ff8f4c34824839e0aa7fd1ba4f120928a7fc3a6ebde42abab", size = 322518, upload-time = "2025-08-08T20:22:17.17Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c1/fe/b9d63453c4c3044ee96b4c7ac6b4331c543ca8d9195b2cd9ba299ecb6509/gradio_client-1.11.1-py3-none-any.whl", hash = "sha256:eb7870c2eb0c18f22613f0635a50ca805fdf6e8ddeb71d9f06b398b876372487", size = 324526, upload-time = "2025-08-08T20:22:16.035Z" }, +] + +[[package]] +name = "gradio-pdf" +version = "0.0.22" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "gradio" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/81/4c/8a9177ebdb02bb55892cc8903c21eada48f40d592a0152a25e9277238c35/gradio_pdf-0.0.22-py3-none-any.whl", hash = "sha256:6f710eca3464d2d37aee742eb2f10dbe76772ebe5dfcfb993da40c710c9ad1b5", size = 1356994, upload-time = "2025-01-31T00:10:12.086Z" }, +] + +[[package]] +name = "greenlet" +version = "3.2.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/03/b8/704d753a5a45507a7aab61f18db9509302ed3d0a27ac7e0359ec2905b1a6/greenlet-3.2.4.tar.gz", hash = "sha256:0dca0d95ff849f9a364385f36ab49f50065d76964944638be9691e1832e9f86d", size = 188260, upload-time = "2025-08-07T13:24:33.51Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/44/69/9b804adb5fd0671f367781560eb5eb586c4d495277c93bde4307b9e28068/greenlet-3.2.4-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:3b67ca49f54cede0186854a008109d6ee71f66bd57bb36abd6d0a0267b540cdd", size = 274079, upload-time = "2025-08-07T13:15:45.033Z" }, + { url = "https://files.pythonhosted.org/packages/46/e9/d2a80c99f19a153eff70bc451ab78615583b8dac0754cfb942223d2c1a0d/greenlet-3.2.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ddf9164e7a5b08e9d22511526865780a576f19ddd00d62f8a665949327fde8bb", size = 640997, upload-time = "2025-08-07T13:42:56.234Z" }, + { url = "https://files.pythonhosted.org/packages/3b/16/035dcfcc48715ccd345f3a93183267167cdd162ad123cd93067d86f27ce4/greenlet-3.2.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:f28588772bb5fb869a8eb331374ec06f24a83a9c25bfa1f38b6993afe9c1e968", size = 655185, upload-time = "2025-08-07T13:45:27.624Z" }, + { url = "https://files.pythonhosted.org/packages/31/da/0386695eef69ffae1ad726881571dfe28b41970173947e7c558d9998de0f/greenlet-3.2.4-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:5c9320971821a7cb77cfab8d956fa8e39cd07ca44b6070db358ceb7f8797c8c9", size = 649926, upload-time = "2025-08-07T13:53:15.251Z" }, + { url = "https://files.pythonhosted.org/packages/68/88/69bf19fd4dc19981928ceacbc5fd4bb6bc2215d53199e367832e98d1d8fe/greenlet-3.2.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c60a6d84229b271d44b70fb6e5fa23781abb5d742af7b808ae3f6efd7c9c60f6", size = 651839, upload-time = "2025-08-07T13:18:30.281Z" }, + { url = "https://files.pythonhosted.org/packages/19/0d/6660d55f7373b2ff8152401a83e02084956da23ae58cddbfb0b330978fe9/greenlet-3.2.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3b3812d8d0c9579967815af437d96623f45c0f2ae5f04e366de62a12d83a8fb0", size = 607586, upload-time = "2025-08-07T13:18:28.544Z" }, + { url = "https://files.pythonhosted.org/packages/8e/1a/c953fdedd22d81ee4629afbb38d2f9d71e37d23caace44775a3a969147d4/greenlet-3.2.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:abbf57b5a870d30c4675928c37278493044d7c14378350b3aa5d484fa65575f0", size = 1123281, upload-time = "2025-08-07T13:42:39.858Z" }, + { url = "https://files.pythonhosted.org/packages/3f/c7/12381b18e21aef2c6bd3a636da1088b888b97b7a0362fac2e4de92405f97/greenlet-3.2.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:20fb936b4652b6e307b8f347665e2c615540d4b42b3b4c8a321d8286da7e520f", size = 1151142, upload-time = "2025-08-07T13:18:22.981Z" }, + { url = "https://files.pythonhosted.org/packages/e9/08/b0814846b79399e585f974bbeebf5580fbe59e258ea7be64d9dfb253c84f/greenlet-3.2.4-cp312-cp312-win_amd64.whl", hash = "sha256:a7d4e128405eea3814a12cc2605e0e6aedb4035bf32697f72deca74de4105e02", size = 299899, upload-time = "2025-08-07T13:38:53.448Z" }, + { url = "https://files.pythonhosted.org/packages/49/e8/58c7f85958bda41dafea50497cbd59738c5c43dbbea5ee83d651234398f4/greenlet-3.2.4-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:1a921e542453fe531144e91e1feedf12e07351b1cf6c9e8a3325ea600a715a31", size = 272814, upload-time = "2025-08-07T13:15:50.011Z" }, + { url = "https://files.pythonhosted.org/packages/62/dd/b9f59862e9e257a16e4e610480cfffd29e3fae018a68c2332090b53aac3d/greenlet-3.2.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:cd3c8e693bff0fff6ba55f140bf390fa92c994083f838fece0f63be121334945", size = 641073, upload-time = "2025-08-07T13:42:57.23Z" }, + { url = "https://files.pythonhosted.org/packages/f7/0b/bc13f787394920b23073ca3b6c4a7a21396301ed75a655bcb47196b50e6e/greenlet-3.2.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:710638eb93b1fa52823aa91bf75326f9ecdfd5e0466f00789246a5280f4ba0fc", size = 655191, upload-time = "2025-08-07T13:45:29.752Z" }, + { url = "https://files.pythonhosted.org/packages/f2/d6/6adde57d1345a8d0f14d31e4ab9c23cfe8e2cd39c3baf7674b4b0338d266/greenlet-3.2.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:c5111ccdc9c88f423426df3fd1811bfc40ed66264d35aa373420a34377efc98a", size = 649516, upload-time = "2025-08-07T13:53:16.314Z" }, + { url = "https://files.pythonhosted.org/packages/7f/3b/3a3328a788d4a473889a2d403199932be55b1b0060f4ddd96ee7cdfcad10/greenlet-3.2.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:d76383238584e9711e20ebe14db6c88ddcedc1829a9ad31a584389463b5aa504", size = 652169, upload-time = "2025-08-07T13:18:32.861Z" }, + { url = "https://files.pythonhosted.org/packages/ee/43/3cecdc0349359e1a527cbf2e3e28e5f8f06d3343aaf82ca13437a9aa290f/greenlet-3.2.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:23768528f2911bcd7e475210822ffb5254ed10d71f4028387e5a99b4c6699671", size = 610497, upload-time = "2025-08-07T13:18:31.636Z" }, + { url = "https://files.pythonhosted.org/packages/b8/19/06b6cf5d604e2c382a6f31cafafd6f33d5dea706f4db7bdab184bad2b21d/greenlet-3.2.4-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:00fadb3fedccc447f517ee0d3fd8fe49eae949e1cd0f6a611818f4f6fb7dc83b", size = 1121662, upload-time = "2025-08-07T13:42:41.117Z" }, + { url = "https://files.pythonhosted.org/packages/a2/15/0d5e4e1a66fab130d98168fe984c509249c833c1a3c16806b90f253ce7b9/greenlet-3.2.4-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:d25c5091190f2dc0eaa3f950252122edbbadbb682aa7b1ef2f8af0f8c0afefae", size = 1149210, upload-time = "2025-08-07T13:18:24.072Z" }, + { url = "https://files.pythonhosted.org/packages/0b/55/2321e43595e6801e105fcfdee02b34c0f996eb71e6ddffca6b10b7e1d771/greenlet-3.2.4-cp313-cp313-win_amd64.whl", hash = "sha256:554b03b6e73aaabec3745364d6239e9e012d64c68ccd0b8430c64ccc14939a8b", size = 299685, upload-time = "2025-08-07T13:24:38.824Z" }, + { url = "https://files.pythonhosted.org/packages/22/5c/85273fd7cc388285632b0498dbbab97596e04b154933dfe0f3e68156c68c/greenlet-3.2.4-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:49a30d5fda2507ae77be16479bdb62a660fa51b1eb4928b524975b3bde77b3c0", size = 273586, upload-time = "2025-08-07T13:16:08.004Z" }, + { url = "https://files.pythonhosted.org/packages/d1/75/10aeeaa3da9332c2e761e4c50d4c3556c21113ee3f0afa2cf5769946f7a3/greenlet-3.2.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:299fd615cd8fc86267b47597123e3f43ad79c9d8a22bebdce535e53550763e2f", size = 686346, upload-time = "2025-08-07T13:42:59.944Z" }, + { url = "https://files.pythonhosted.org/packages/c0/aa/687d6b12ffb505a4447567d1f3abea23bd20e73a5bed63871178e0831b7a/greenlet-3.2.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:c17b6b34111ea72fc5a4e4beec9711d2226285f0386ea83477cbb97c30a3f3a5", size = 699218, upload-time = "2025-08-07T13:45:30.969Z" }, + { url = "https://files.pythonhosted.org/packages/dc/8b/29aae55436521f1d6f8ff4e12fb676f3400de7fcf27fccd1d4d17fd8fecd/greenlet-3.2.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b4a1870c51720687af7fa3e7cda6d08d801dae660f75a76f3845b642b4da6ee1", size = 694659, upload-time = "2025-08-07T13:53:17.759Z" }, + { url = "https://files.pythonhosted.org/packages/92/2e/ea25914b1ebfde93b6fc4ff46d6864564fba59024e928bdc7de475affc25/greenlet-3.2.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:061dc4cf2c34852b052a8620d40f36324554bc192be474b9e9770e8c042fd735", size = 695355, upload-time = "2025-08-07T13:18:34.517Z" }, + { url = "https://files.pythonhosted.org/packages/72/60/fc56c62046ec17f6b0d3060564562c64c862948c9d4bc8aa807cf5bd74f4/greenlet-3.2.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:44358b9bf66c8576a9f57a590d5f5d6e72fa4228b763d0e43fee6d3b06d3a337", size = 657512, upload-time = "2025-08-07T13:18:33.969Z" }, + { url = "https://files.pythonhosted.org/packages/e3/a5/6ddab2b4c112be95601c13428db1d8b6608a8b6039816f2ba09c346c08fc/greenlet-3.2.4-cp314-cp314-win_amd64.whl", hash = "sha256:e37ab26028f12dbb0ff65f29a8d3d44a765c61e729647bf2ddfbbed621726f01", size = 303425, upload-time = "2025-08-07T13:32:27.59Z" }, +] + +[[package]] +name = "griffe" +version = "1.11.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/18/0f/9cbd56eb047de77a4b93d8d4674e70cd19a1ff64d7410651b514a1ed93d5/griffe-1.11.1.tar.gz", hash = "sha256:d54ffad1ec4da9658901eb5521e9cddcdb7a496604f67d8ae71077f03f549b7e", size = 410996, upload-time = "2025-08-11T11:38:35.528Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e6/a3/451ffd422ce143758a39c0290aaa7c9727ecc2bcc19debd7a8f3c6075ce9/griffe-1.11.1-py3-none-any.whl", hash = "sha256:5799cf7c513e4b928cfc6107ee6c4bc4a92e001f07022d97fd8dee2f612b6064", size = 138745, upload-time = "2025-08-11T11:38:33.964Z" }, +] + +[[package]] +name = "groovy" +version = "0.1.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/52/36/bbdede67400277bef33d3ec0e6a31750da972c469f75966b4930c753218f/groovy-0.1.2.tar.gz", hash = "sha256:25c1dc09b3f9d7e292458aa762c6beb96ea037071bf5e917fc81fb78d2231083", size = 17325, upload-time = "2025-02-28T20:24:56.068Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/28/27/3d6dcadc8a3214d8522c1e7f6a19554e33659be44546d44a2f7572ac7d2a/groovy-0.1.2-py3-none-any.whl", hash = "sha256:7f7975bab18c729a257a8b1ae9dcd70b7cafb1720481beae47719af57c35fa64", size = 14090, upload-time = "2025-02-28T20:24:55.152Z" }, +] + +[[package]] +name = "groq" +version = "0.31.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "distro" }, + { name = "httpx" }, + { name = "pydantic" }, + { name = "sniffio" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/66/a2/77fd1460e7d55859219223719aa44ae8902a3a1ad333cd5faf330eb0b894/groq-0.31.0.tar.gz", hash = "sha256:182252e9bf0d696df607c137cbafa851d2c84aaf94bcfe9165c0bc231043490c", size = 136237, upload-time = "2025-08-05T23:14:01.183Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ab/f8/14672d69a91495f43462c5490067eeafc30346e81bda1a62848e897f9bc3/groq-0.31.0-py3-none-any.whl", hash = "sha256:5e3c7ec9728b7cccf913da982a9b5ebb46dc18a070b35e12a3d6a1e12d6b0f7f", size = 131365, upload-time = "2025-08-05T23:13:59.768Z" }, +] + +[[package]] +name = "h11" +version = "0.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" }, +] + +[[package]] +name = "hf-xet" +version = "1.1.7" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b2/0a/a0f56735940fde6dd627602fec9ab3bad23f66a272397560abd65aba416e/hf_xet-1.1.7.tar.gz", hash = "sha256:20cec8db4561338824a3b5f8c19774055b04a8df7fff0cb1ff2cb1a0c1607b80", size = 477719, upload-time = "2025-08-06T00:30:55.741Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b1/7c/8d7803995caf14e7d19a392a486a040f923e2cfeff824e9b800b92072f76/hf_xet-1.1.7-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:60dae4b44d520819e54e216a2505685248ec0adbdb2dd4848b17aa85a0375cde", size = 2761743, upload-time = "2025-08-06T00:30:50.634Z" }, + { url = "https://files.pythonhosted.org/packages/51/a3/fa5897099454aa287022a34a30e68dbff0e617760f774f8bd1db17f06bd4/hf_xet-1.1.7-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:b109f4c11e01c057fc82004c9e51e6cdfe2cb230637644ade40c599739067b2e", size = 2624331, upload-time = "2025-08-06T00:30:49.212Z" }, + { url = "https://files.pythonhosted.org/packages/86/50/2446a132267e60b8a48b2e5835d6e24fd988000d0f5b9b15ebd6d64ef769/hf_xet-1.1.7-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6efaaf1a5a9fc3a501d3e71e88a6bfebc69ee3a716d0e713a931c8b8d920038f", size = 3183844, upload-time = "2025-08-06T00:30:47.582Z" }, + { url = "https://files.pythonhosted.org/packages/20/8f/ccc670616bb9beee867c6bb7139f7eab2b1370fe426503c25f5cbb27b148/hf_xet-1.1.7-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:751571540f9c1fbad9afcf222a5fb96daf2384bf821317b8bfb0c59d86078513", size = 3074209, upload-time = "2025-08-06T00:30:45.509Z" }, + { url = "https://files.pythonhosted.org/packages/21/0a/4c30e1eb77205565b854f5e4a82cf1f056214e4dc87f2918ebf83d47ae14/hf_xet-1.1.7-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:18b61bbae92d56ae731b92087c44efcac216071182c603fc535f8e29ec4b09b8", size = 3239602, upload-time = "2025-08-06T00:30:52.41Z" }, + { url = "https://files.pythonhosted.org/packages/f5/1e/fc7e9baf14152662ef0b35fa52a6e889f770a7ed14ac239de3c829ecb47e/hf_xet-1.1.7-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:713f2bff61b252f8523739969f247aa354ad8e6d869b8281e174e2ea1bb8d604", size = 3348184, upload-time = "2025-08-06T00:30:54.105Z" }, + { url = "https://files.pythonhosted.org/packages/a3/73/e354eae84ceff117ec3560141224724794828927fcc013c5b449bf0b8745/hf_xet-1.1.7-cp37-abi3-win_amd64.whl", hash = "sha256:2e356da7d284479ae0f1dea3cf5a2f74fdf925d6dca84ac4341930d892c7cb34", size = 2820008, upload-time = "2025-08-06T00:30:57.056Z" }, +] + +[[package]] +name = "httpcore" +version = "1.0.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "h11" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" }, +] + +[[package]] +name = "httptools" +version = "0.6.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a7/9a/ce5e1f7e131522e6d3426e8e7a490b3a01f39a6696602e1c4f33f9e94277/httptools-0.6.4.tar.gz", hash = "sha256:4e93eee4add6493b59a5c514da98c939b244fce4a0d8879cd3f466562f4b7d5c", size = 240639, upload-time = "2024-10-16T19:45:08.902Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bb/0e/d0b71465c66b9185f90a091ab36389a7352985fe857e352801c39d6127c8/httptools-0.6.4-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:df017d6c780287d5c80601dafa31f17bddb170232d85c066604d8558683711a2", size = 200683, upload-time = "2024-10-16T19:44:30.175Z" }, + { url = "https://files.pythonhosted.org/packages/e2/b8/412a9bb28d0a8988de3296e01efa0bd62068b33856cdda47fe1b5e890954/httptools-0.6.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:85071a1e8c2d051b507161f6c3e26155b5c790e4e28d7f236422dbacc2a9cc44", size = 104337, upload-time = "2024-10-16T19:44:31.786Z" }, + { url = "https://files.pythonhosted.org/packages/9b/01/6fb20be3196ffdc8eeec4e653bc2a275eca7f36634c86302242c4fbb2760/httptools-0.6.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69422b7f458c5af875922cdb5bd586cc1f1033295aa9ff63ee196a87519ac8e1", size = 508796, upload-time = "2024-10-16T19:44:32.825Z" }, + { url = "https://files.pythonhosted.org/packages/f7/d8/b644c44acc1368938317d76ac991c9bba1166311880bcc0ac297cb9d6bd7/httptools-0.6.4-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:16e603a3bff50db08cd578d54f07032ca1631450ceb972c2f834c2b860c28ea2", size = 510837, upload-time = "2024-10-16T19:44:33.974Z" }, + { url = "https://files.pythonhosted.org/packages/52/d8/254d16a31d543073a0e57f1c329ca7378d8924e7e292eda72d0064987486/httptools-0.6.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:ec4f178901fa1834d4a060320d2f3abc5c9e39766953d038f1458cb885f47e81", size = 485289, upload-time = "2024-10-16T19:44:35.111Z" }, + { url = "https://files.pythonhosted.org/packages/5f/3c/4aee161b4b7a971660b8be71a92c24d6c64372c1ab3ae7f366b3680df20f/httptools-0.6.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:f9eb89ecf8b290f2e293325c646a211ff1c2493222798bb80a530c5e7502494f", size = 489779, upload-time = "2024-10-16T19:44:36.253Z" }, + { url = "https://files.pythonhosted.org/packages/12/b7/5cae71a8868e555f3f67a50ee7f673ce36eac970f029c0c5e9d584352961/httptools-0.6.4-cp312-cp312-win_amd64.whl", hash = "sha256:db78cb9ca56b59b016e64b6031eda5653be0589dba2b1b43453f6e8b405a0970", size = 88634, upload-time = "2024-10-16T19:44:37.357Z" }, + { url = "https://files.pythonhosted.org/packages/94/a3/9fe9ad23fd35f7de6b91eeb60848986058bd8b5a5c1e256f5860a160cc3e/httptools-0.6.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ade273d7e767d5fae13fa637f4d53b6e961fb7fd93c7797562663f0171c26660", size = 197214, upload-time = "2024-10-16T19:44:38.738Z" }, + { url = "https://files.pythonhosted.org/packages/ea/d9/82d5e68bab783b632023f2fa31db20bebb4e89dfc4d2293945fd68484ee4/httptools-0.6.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:856f4bc0478ae143bad54a4242fccb1f3f86a6e1be5548fecfd4102061b3a083", size = 102431, upload-time = "2024-10-16T19:44:39.818Z" }, + { url = "https://files.pythonhosted.org/packages/96/c1/cb499655cbdbfb57b577734fde02f6fa0bbc3fe9fb4d87b742b512908dff/httptools-0.6.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:322d20ea9cdd1fa98bd6a74b77e2ec5b818abdc3d36695ab402a0de8ef2865a3", size = 473121, upload-time = "2024-10-16T19:44:41.189Z" }, + { url = "https://files.pythonhosted.org/packages/af/71/ee32fd358f8a3bb199b03261f10921716990808a675d8160b5383487a317/httptools-0.6.4-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4d87b29bd4486c0093fc64dea80231f7c7f7eb4dc70ae394d70a495ab8436071", size = 473805, upload-time = "2024-10-16T19:44:42.384Z" }, + { url = "https://files.pythonhosted.org/packages/8a/0a/0d4df132bfca1507114198b766f1737d57580c9ad1cf93c1ff673e3387be/httptools-0.6.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:342dd6946aa6bda4b8f18c734576106b8a31f2fe31492881a9a160ec84ff4bd5", size = 448858, upload-time = "2024-10-16T19:44:43.959Z" }, + { url = "https://files.pythonhosted.org/packages/1e/6a/787004fdef2cabea27bad1073bf6a33f2437b4dbd3b6fb4a9d71172b1c7c/httptools-0.6.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4b36913ba52008249223042dca46e69967985fb4051951f94357ea681e1f5dc0", size = 452042, upload-time = "2024-10-16T19:44:45.071Z" }, + { url = "https://files.pythonhosted.org/packages/4d/dc/7decab5c404d1d2cdc1bb330b1bf70e83d6af0396fd4fc76fc60c0d522bf/httptools-0.6.4-cp313-cp313-win_amd64.whl", hash = "sha256:28908df1b9bb8187393d5b5db91435ccc9c8e891657f9cbb42a2541b44c82fc8", size = 87682, upload-time = "2024-10-16T19:44:46.46Z" }, +] + +[[package]] +name = "httpx" +version = "0.28.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "certifi" }, + { name = "httpcore" }, + { name = "idna" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" }, +] + +[[package]] +name = "httpx-sse" +version = "0.4.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/4c/60/8f4281fa9bbf3c8034fd54c0e7412e66edbab6bc74c4996bd616f8d0406e/httpx-sse-0.4.0.tar.gz", hash = "sha256:1e81a3a3070ce322add1d3529ed42eb5f70817f45ed6ec915ab753f961139721", size = 12624, upload-time = "2023-12-22T08:01:21.083Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e1/9b/a181f281f65d776426002f330c31849b86b31fc9d848db62e16f03ff739f/httpx_sse-0.4.0-py3-none-any.whl", hash = "sha256:f329af6eae57eaa2bdfd962b42524764af68075ea87370a2de920af5341e318f", size = 7819, upload-time = "2023-12-22T08:01:19.89Z" }, +] + +[[package]] +name = "huggingface-hub" +version = "0.34.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "filelock" }, + { name = "fsspec" }, + { name = "hf-xet", marker = "platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'" }, + { name = "packaging" }, + { name = "pyyaml" }, + { name = "requests" }, + { name = "tqdm" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/45/c9/bdbe19339f76d12985bc03572f330a01a93c04dffecaaea3061bdd7fb892/huggingface_hub-0.34.4.tar.gz", hash = "sha256:a4228daa6fb001be3f4f4bdaf9a0db00e1739235702848df00885c9b5742c85c", size = 459768, upload-time = "2025-08-08T09:14:52.365Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/39/7b/bb06b061991107cd8783f300adff3e7b7f284e330fd82f507f2a1417b11d/huggingface_hub-0.34.4-py3-none-any.whl", hash = "sha256:9b365d781739c93ff90c359844221beef048403f1bc1f1c123c191257c3c890a", size = 561452, upload-time = "2025-08-08T09:14:50.159Z" }, +] + +[package.optional-dependencies] +inference = [ + { name = "aiohttp" }, +] + +[[package]] +name = "humanfriendly" +version = "10.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pyreadline3", marker = "sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/cc/3f/2c29224acb2e2df4d2046e4c73ee2662023c58ff5b113c4c1adac0886c43/humanfriendly-10.0.tar.gz", hash = "sha256:6b0b831ce8f15f7300721aa49829fc4e83921a9a301cc7f606be6686a2288ddc", size = 360702, upload-time = "2021-09-17T21:40:43.31Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f0/0f/310fb31e39e2d734ccaa2c0fb981ee41f7bd5056ce9bc29b2248bd569169/humanfriendly-10.0-py2.py3-none-any.whl", hash = "sha256:1697e1a8a8f550fd43c2865cd84542fc175a61dcb779b6fee18cf6b6ccba1477", size = 86794, upload-time = "2021-09-17T21:40:39.897Z" }, +] + +[[package]] +name = "idna" +version = "3.10" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9", size = 190490, upload-time = "2024-09-15T18:07:39.745Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3", size = 70442, upload-time = "2024-09-15T18:07:37.964Z" }, +] + +[[package]] +name = "importlib-metadata" +version = "8.7.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "zipp" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/76/66/650a33bd90f786193e4de4b3ad86ea60b53c89b669a5c7be931fac31cdb0/importlib_metadata-8.7.0.tar.gz", hash = "sha256:d13b81ad223b890aa16c5471f2ac3056cf76c5f10f82d6f9292f0b415f389000", size = 56641, upload-time = "2025-04-27T15:29:01.736Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/20/b0/36bd937216ec521246249be3bf9855081de4c5e06a0c9b4219dbeda50373/importlib_metadata-8.7.0-py3-none-any.whl", hash = "sha256:e5dd1551894c77868a30651cef00984d50e1002d06942a7101d34870c5f02afd", size = 27656, upload-time = "2025-04-27T15:29:00.214Z" }, +] + +[[package]] +name = "jinja2" +version = "3.1.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markupsafe" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/df/bf/f7da0350254c0ed7c72f3e33cef02e048281fec7ecec5f032d4aac52226b/jinja2-3.1.6.tar.gz", hash = "sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d", size = 245115, upload-time = "2025-03-05T20:05:02.478Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/62/a1/3d680cbfd5f4b8f15abc1d571870c5fc3e594bb582bc3b64ea099db13e56/jinja2-3.1.6-py3-none-any.whl", hash = "sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67", size = 134899, upload-time = "2025-03-05T20:05:00.369Z" }, +] + +[[package]] +name = "jiter" +version = "0.10.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ee/9d/ae7ddb4b8ab3fb1b51faf4deb36cb48a4fbbd7cb36bad6a5fca4741306f7/jiter-0.10.0.tar.gz", hash = "sha256:07a7142c38aacc85194391108dc91b5b57093c978a9932bd86a36862759d9500", size = 162759, upload-time = "2025-05-18T19:04:59.73Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6d/b5/348b3313c58f5fbfb2194eb4d07e46a35748ba6e5b3b3046143f3040bafa/jiter-0.10.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:1e274728e4a5345a6dde2d343c8da018b9d4bd4350f5a472fa91f66fda44911b", size = 312262, upload-time = "2025-05-18T19:03:44.637Z" }, + { url = "https://files.pythonhosted.org/packages/9c/4a/6a2397096162b21645162825f058d1709a02965606e537e3304b02742e9b/jiter-0.10.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:7202ae396446c988cb2a5feb33a543ab2165b786ac97f53b59aafb803fef0744", size = 320124, upload-time = "2025-05-18T19:03:46.341Z" }, + { url = "https://files.pythonhosted.org/packages/2a/85/1ce02cade7516b726dd88f59a4ee46914bf79d1676d1228ef2002ed2f1c9/jiter-0.10.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:23ba7722d6748b6920ed02a8f1726fb4b33e0fd2f3f621816a8b486c66410ab2", size = 345330, upload-time = "2025-05-18T19:03:47.596Z" }, + { url = "https://files.pythonhosted.org/packages/75/d0/bb6b4f209a77190ce10ea8d7e50bf3725fc16d3372d0a9f11985a2b23eff/jiter-0.10.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:371eab43c0a288537d30e1f0b193bc4eca90439fc08a022dd83e5e07500ed026", size = 369670, upload-time = "2025-05-18T19:03:49.334Z" }, + { url = "https://files.pythonhosted.org/packages/a0/f5/a61787da9b8847a601e6827fbc42ecb12be2c925ced3252c8ffcb56afcaf/jiter-0.10.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6c675736059020365cebc845a820214765162728b51ab1e03a1b7b3abb70f74c", size = 489057, upload-time = "2025-05-18T19:03:50.66Z" }, + { url = "https://files.pythonhosted.org/packages/12/e4/6f906272810a7b21406c760a53aadbe52e99ee070fc5c0cb191e316de30b/jiter-0.10.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0c5867d40ab716e4684858e4887489685968a47e3ba222e44cde6e4a2154f959", size = 389372, upload-time = "2025-05-18T19:03:51.98Z" }, + { url = "https://files.pythonhosted.org/packages/e2/ba/77013b0b8ba904bf3762f11e0129b8928bff7f978a81838dfcc958ad5728/jiter-0.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:395bb9a26111b60141757d874d27fdea01b17e8fac958b91c20128ba8f4acc8a", size = 352038, upload-time = "2025-05-18T19:03:53.703Z" }, + { url = "https://files.pythonhosted.org/packages/67/27/c62568e3ccb03368dbcc44a1ef3a423cb86778a4389e995125d3d1aaa0a4/jiter-0.10.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6842184aed5cdb07e0c7e20e5bdcfafe33515ee1741a6835353bb45fe5d1bd95", size = 391538, upload-time = "2025-05-18T19:03:55.046Z" }, + { url = "https://files.pythonhosted.org/packages/c0/72/0d6b7e31fc17a8fdce76164884edef0698ba556b8eb0af9546ae1a06b91d/jiter-0.10.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:62755d1bcea9876770d4df713d82606c8c1a3dca88ff39046b85a048566d56ea", size = 523557, upload-time = "2025-05-18T19:03:56.386Z" }, + { url = "https://files.pythonhosted.org/packages/2f/09/bc1661fbbcbeb6244bd2904ff3a06f340aa77a2b94e5a7373fd165960ea3/jiter-0.10.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:533efbce2cacec78d5ba73a41756beff8431dfa1694b6346ce7af3a12c42202b", size = 514202, upload-time = "2025-05-18T19:03:57.675Z" }, + { url = "https://files.pythonhosted.org/packages/1b/84/5a5d5400e9d4d54b8004c9673bbe4403928a00d28529ff35b19e9d176b19/jiter-0.10.0-cp312-cp312-win32.whl", hash = "sha256:8be921f0cadd245e981b964dfbcd6fd4bc4e254cdc069490416dd7a2632ecc01", size = 211781, upload-time = "2025-05-18T19:03:59.025Z" }, + { url = "https://files.pythonhosted.org/packages/9b/52/7ec47455e26f2d6e5f2ea4951a0652c06e5b995c291f723973ae9e724a65/jiter-0.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:a7c7d785ae9dda68c2678532a5a1581347e9c15362ae9f6e68f3fdbfb64f2e49", size = 206176, upload-time = "2025-05-18T19:04:00.305Z" }, + { url = "https://files.pythonhosted.org/packages/2e/b0/279597e7a270e8d22623fea6c5d4eeac328e7d95c236ed51a2b884c54f70/jiter-0.10.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:e0588107ec8e11b6f5ef0e0d656fb2803ac6cf94a96b2b9fc675c0e3ab5e8644", size = 311617, upload-time = "2025-05-18T19:04:02.078Z" }, + { url = "https://files.pythonhosted.org/packages/91/e3/0916334936f356d605f54cc164af4060e3e7094364add445a3bc79335d46/jiter-0.10.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:cafc4628b616dc32530c20ee53d71589816cf385dd9449633e910d596b1f5c8a", size = 318947, upload-time = "2025-05-18T19:04:03.347Z" }, + { url = "https://files.pythonhosted.org/packages/6a/8e/fd94e8c02d0e94539b7d669a7ebbd2776e51f329bb2c84d4385e8063a2ad/jiter-0.10.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:520ef6d981172693786a49ff5b09eda72a42e539f14788124a07530f785c3ad6", size = 344618, upload-time = "2025-05-18T19:04:04.709Z" }, + { url = "https://files.pythonhosted.org/packages/6f/b0/f9f0a2ec42c6e9c2e61c327824687f1e2415b767e1089c1d9135f43816bd/jiter-0.10.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:554dedfd05937f8fc45d17ebdf298fe7e0c77458232bcb73d9fbbf4c6455f5b3", size = 368829, upload-time = "2025-05-18T19:04:06.912Z" }, + { url = "https://files.pythonhosted.org/packages/e8/57/5bbcd5331910595ad53b9fd0c610392ac68692176f05ae48d6ce5c852967/jiter-0.10.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5bc299da7789deacf95f64052d97f75c16d4fc8c4c214a22bf8d859a4288a1c2", size = 491034, upload-time = "2025-05-18T19:04:08.222Z" }, + { url = "https://files.pythonhosted.org/packages/9b/be/c393df00e6e6e9e623a73551774449f2f23b6ec6a502a3297aeeece2c65a/jiter-0.10.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5161e201172de298a8a1baad95eb85db4fb90e902353b1f6a41d64ea64644e25", size = 388529, upload-time = "2025-05-18T19:04:09.566Z" }, + { url = "https://files.pythonhosted.org/packages/42/3e/df2235c54d365434c7f150b986a6e35f41ebdc2f95acea3036d99613025d/jiter-0.10.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2e2227db6ba93cb3e2bf67c87e594adde0609f146344e8207e8730364db27041", size = 350671, upload-time = "2025-05-18T19:04:10.98Z" }, + { url = "https://files.pythonhosted.org/packages/c6/77/71b0b24cbcc28f55ab4dbfe029f9a5b73aeadaba677843fc6dc9ed2b1d0a/jiter-0.10.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:15acb267ea5e2c64515574b06a8bf393fbfee6a50eb1673614aa45f4613c0cca", size = 390864, upload-time = "2025-05-18T19:04:12.722Z" }, + { url = "https://files.pythonhosted.org/packages/6a/d3/ef774b6969b9b6178e1d1e7a89a3bd37d241f3d3ec5f8deb37bbd203714a/jiter-0.10.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:901b92f2e2947dc6dfcb52fd624453862e16665ea909a08398dde19c0731b7f4", size = 522989, upload-time = "2025-05-18T19:04:14.261Z" }, + { url = "https://files.pythonhosted.org/packages/0c/41/9becdb1d8dd5d854142f45a9d71949ed7e87a8e312b0bede2de849388cb9/jiter-0.10.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:d0cb9a125d5a3ec971a094a845eadde2db0de85b33c9f13eb94a0c63d463879e", size = 513495, upload-time = "2025-05-18T19:04:15.603Z" }, + { url = "https://files.pythonhosted.org/packages/9c/36/3468e5a18238bdedae7c4d19461265b5e9b8e288d3f86cd89d00cbb48686/jiter-0.10.0-cp313-cp313-win32.whl", hash = "sha256:48a403277ad1ee208fb930bdf91745e4d2d6e47253eedc96e2559d1e6527006d", size = 211289, upload-time = "2025-05-18T19:04:17.541Z" }, + { url = "https://files.pythonhosted.org/packages/7e/07/1c96b623128bcb913706e294adb5f768fb7baf8db5e1338ce7b4ee8c78ef/jiter-0.10.0-cp313-cp313-win_amd64.whl", hash = "sha256:75f9eb72ecb640619c29bf714e78c9c46c9c4eaafd644bf78577ede459f330d4", size = 205074, upload-time = "2025-05-18T19:04:19.21Z" }, + { url = "https://files.pythonhosted.org/packages/54/46/caa2c1342655f57d8f0f2519774c6d67132205909c65e9aa8255e1d7b4f4/jiter-0.10.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:28ed2a4c05a1f32ef0e1d24c2611330219fed727dae01789f4a335617634b1ca", size = 318225, upload-time = "2025-05-18T19:04:20.583Z" }, + { url = "https://files.pythonhosted.org/packages/43/84/c7d44c75767e18946219ba2d703a5a32ab37b0bc21886a97bc6062e4da42/jiter-0.10.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14a4c418b1ec86a195f1ca69da8b23e8926c752b685af665ce30777233dfe070", size = 350235, upload-time = "2025-05-18T19:04:22.363Z" }, + { url = "https://files.pythonhosted.org/packages/01/16/f5a0135ccd968b480daad0e6ab34b0c7c5ba3bc447e5088152696140dcb3/jiter-0.10.0-cp313-cp313t-win_amd64.whl", hash = "sha256:d7bfed2fe1fe0e4dda6ef682cee888ba444b21e7a6553e03252e4feb6cf0adca", size = 207278, upload-time = "2025-05-18T19:04:23.627Z" }, + { url = "https://files.pythonhosted.org/packages/1c/9b/1d646da42c3de6c2188fdaa15bce8ecb22b635904fc68be025e21249ba44/jiter-0.10.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:5e9251a5e83fab8d87799d3e1a46cb4b7f2919b895c6f4483629ed2446f66522", size = 310866, upload-time = "2025-05-18T19:04:24.891Z" }, + { url = "https://files.pythonhosted.org/packages/ad/0e/26538b158e8a7c7987e94e7aeb2999e2e82b1f9d2e1f6e9874ddf71ebda0/jiter-0.10.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:023aa0204126fe5b87ccbcd75c8a0d0261b9abdbbf46d55e7ae9f8e22424eeb8", size = 318772, upload-time = "2025-05-18T19:04:26.161Z" }, + { url = "https://files.pythonhosted.org/packages/7b/fb/d302893151caa1c2636d6574d213e4b34e31fd077af6050a9c5cbb42f6fb/jiter-0.10.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3c189c4f1779c05f75fc17c0c1267594ed918996a231593a21a5ca5438445216", size = 344534, upload-time = "2025-05-18T19:04:27.495Z" }, + { url = "https://files.pythonhosted.org/packages/01/d8/5780b64a149d74e347c5128d82176eb1e3241b1391ac07935693466d6219/jiter-0.10.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:15720084d90d1098ca0229352607cd68256c76991f6b374af96f36920eae13c4", size = 369087, upload-time = "2025-05-18T19:04:28.896Z" }, + { url = "https://files.pythonhosted.org/packages/e8/5b/f235a1437445160e777544f3ade57544daf96ba7e96c1a5b24a6f7ac7004/jiter-0.10.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e4f2fb68e5f1cfee30e2b2a09549a00683e0fde4c6a2ab88c94072fc33cb7426", size = 490694, upload-time = "2025-05-18T19:04:30.183Z" }, + { url = "https://files.pythonhosted.org/packages/85/a9/9c3d4617caa2ff89cf61b41e83820c27ebb3f7b5fae8a72901e8cd6ff9be/jiter-0.10.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ce541693355fc6da424c08b7edf39a2895f58d6ea17d92cc2b168d20907dee12", size = 388992, upload-time = "2025-05-18T19:04:32.028Z" }, + { url = "https://files.pythonhosted.org/packages/68/b1/344fd14049ba5c94526540af7eb661871f9c54d5f5601ff41a959b9a0bbd/jiter-0.10.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:31c50c40272e189d50006ad5c73883caabb73d4e9748a688b216e85a9a9ca3b9", size = 351723, upload-time = "2025-05-18T19:04:33.467Z" }, + { url = "https://files.pythonhosted.org/packages/41/89/4c0e345041186f82a31aee7b9d4219a910df672b9fef26f129f0cda07a29/jiter-0.10.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fa3402a2ff9815960e0372a47b75c76979d74402448509ccd49a275fa983ef8a", size = 392215, upload-time = "2025-05-18T19:04:34.827Z" }, + { url = "https://files.pythonhosted.org/packages/55/58/ee607863e18d3f895feb802154a2177d7e823a7103f000df182e0f718b38/jiter-0.10.0-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:1956f934dca32d7bb647ea21d06d93ca40868b505c228556d3373cbd255ce853", size = 522762, upload-time = "2025-05-18T19:04:36.19Z" }, + { url = "https://files.pythonhosted.org/packages/15/d0/9123fb41825490d16929e73c212de9a42913d68324a8ce3c8476cae7ac9d/jiter-0.10.0-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:fcedb049bdfc555e261d6f65a6abe1d5ad68825b7202ccb9692636c70fcced86", size = 513427, upload-time = "2025-05-18T19:04:37.544Z" }, + { url = "https://files.pythonhosted.org/packages/d8/b3/2bd02071c5a2430d0b70403a34411fc519c2f227da7b03da9ba6a956f931/jiter-0.10.0-cp314-cp314-win32.whl", hash = "sha256:ac509f7eccca54b2a29daeb516fb95b6f0bd0d0d8084efaf8ed5dfc7b9f0b357", size = 210127, upload-time = "2025-05-18T19:04:38.837Z" }, + { url = "https://files.pythonhosted.org/packages/03/0c/5fe86614ea050c3ecd728ab4035534387cd41e7c1855ef6c031f1ca93e3f/jiter-0.10.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:5ed975b83a2b8639356151cef5c0d597c68376fc4922b45d0eb384ac058cfa00", size = 318527, upload-time = "2025-05-18T19:04:40.612Z" }, + { url = "https://files.pythonhosted.org/packages/b3/4a/4175a563579e884192ba6e81725fc0448b042024419be8d83aa8a80a3f44/jiter-0.10.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3aa96f2abba33dc77f79b4cf791840230375f9534e5fac927ccceb58c5e604a5", size = 354213, upload-time = "2025-05-18T19:04:41.894Z" }, +] + +[[package]] +name = "jmespath" +version = "1.0.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/00/2a/e867e8531cf3e36b41201936b7fa7ba7b5702dbef42922193f05c8976cd6/jmespath-1.0.1.tar.gz", hash = "sha256:90261b206d6defd58fdd5e85f478bf633a2901798906be2ad389150c5c60edbe", size = 25843, upload-time = "2022-06-17T18:00:12.224Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/31/b4/b9b800c45527aadd64d5b442f9b932b00648617eb5d63d2c7a6587b7cafc/jmespath-1.0.1-py3-none-any.whl", hash = "sha256:02e2e4cc71b5bcab88332eebf907519190dd9e6e82107fa7f83b1003a6252980", size = 20256, upload-time = "2022-06-17T18:00:10.251Z" }, +] + +[[package]] +name = "joblib" +version = "1.5.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/dc/fe/0f5a938c54105553436dbff7a61dc4fed4b1b2c98852f8833beaf4d5968f/joblib-1.5.1.tar.gz", hash = "sha256:f4f86e351f39fe3d0d32a9f2c3d8af1ee4cec285aafcb27003dda5205576b444", size = 330475, upload-time = "2025-05-23T12:04:37.097Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7d/4f/1195bbac8e0c2acc5f740661631d8d750dc38d4a32b23ee5df3cde6f4e0d/joblib-1.5.1-py3-none-any.whl", hash = "sha256:4719a31f054c7d766948dcd83e9613686b27114f190f717cec7eaa2084f8a74a", size = 307746, upload-time = "2025-05-23T12:04:35.124Z" }, +] + +[[package]] +name = "json-repair" +version = "0.49.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/9f/db/5e6671347db8a55a52aec330017b7d2f0c4d49ac4b374018a912619dd2ee/json_repair-0.49.0.tar.gz", hash = "sha256:6a57563384da509c231a27bd87503eeaf5964f38d11a2b5ac808fe91431e1e61", size = 35108, upload-time = "2025-08-10T08:39:14.892Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/2a/d307b12ece7e3c82bade236b02621219310bb87ebd06ff9b6e3185bac7b8/json_repair-0.49.0-py3-none-any.whl", hash = "sha256:84b39814689d6b48c403f1fe6abdae976b64ffe2dc0ba5ad61a199bd23354391", size = 26549, upload-time = "2025-08-10T08:39:13.627Z" }, +] + +[[package]] +name = "jsonpatch" +version = "1.33" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "jsonpointer" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/42/78/18813351fe5d63acad16aec57f94ec2b70a09e53ca98145589e185423873/jsonpatch-1.33.tar.gz", hash = "sha256:9fcd4009c41e6d12348b4a0ff2563ba56a2923a7dfee731d004e212e1ee5030c", size = 21699, upload-time = "2023-06-26T12:07:29.144Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/73/07/02e16ed01e04a374e644b575638ec7987ae846d25ad97bcc9945a3ee4b0e/jsonpatch-1.33-py2.py3-none-any.whl", hash = "sha256:0ae28c0cd062bbd8b8ecc26d7d164fbbea9652a1a3693f3b956c1eae5145dade", size = 12898, upload-time = "2023-06-16T21:01:28.466Z" }, +] + +[[package]] +name = "jsonpointer" +version = "3.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/6a/0a/eebeb1fa92507ea94016a2a790b93c2ae41a7e18778f85471dc54475ed25/jsonpointer-3.0.0.tar.gz", hash = "sha256:2b2d729f2091522d61c3b31f82e11870f60b68f43fbc705cb76bf4b832af59ef", size = 9114, upload-time = "2024-06-10T19:24:42.462Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/71/92/5e77f98553e9e75130c78900d000368476aed74276eb8ae8796f65f00918/jsonpointer-3.0.0-py2.py3-none-any.whl", hash = "sha256:13e088adc14fca8b6aa8177c044e12701e6ad4b28ff10e65f2267a90109c9942", size = 7595, upload-time = "2024-06-10T19:24:40.698Z" }, +] + +[[package]] +name = "jsonschema" +version = "4.25.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "jsonschema-specifications" }, + { name = "referencing" }, + { name = "rpds-py" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/d5/00/a297a868e9d0784450faa7365c2172a7d6110c763e30ba861867c32ae6a9/jsonschema-4.25.0.tar.gz", hash = "sha256:e63acf5c11762c0e6672ffb61482bdf57f0876684d8d249c0fe2d730d48bc55f", size = 356830, upload-time = "2025-07-18T15:39:45.11Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fe/54/c86cd8e011fe98803d7e382fd67c0df5ceab8d2b7ad8c5a81524f791551c/jsonschema-4.25.0-py3-none-any.whl", hash = "sha256:24c2e8da302de79c8b9382fee3e76b355e44d2a4364bb207159ce10b517bd716", size = 89184, upload-time = "2025-07-18T15:39:42.956Z" }, +] + +[[package]] +name = "jsonschema-specifications" +version = "2025.4.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "referencing" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/bf/ce/46fbd9c8119cfc3581ee5643ea49464d168028cfb5caff5fc0596d0cf914/jsonschema_specifications-2025.4.1.tar.gz", hash = "sha256:630159c9f4dbea161a6a2205c3011cc4f18ff381b189fff48bb39b9bf26ae608", size = 15513, upload-time = "2025-04-23T12:34:07.418Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/01/0e/b27cdbaccf30b890c40ed1da9fd4a3593a5cf94dae54fb34f8a4b74fcd3f/jsonschema_specifications-2025.4.1-py3-none-any.whl", hash = "sha256:4653bffbd6584f7de83a67e0d620ef16900b390ddc7939d56684d6c81e33f1af", size = 18437, upload-time = "2025-04-23T12:34:05.422Z" }, +] + +[[package]] +name = "kiwisolver" +version = "1.4.9" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5c/3c/85844f1b0feb11ee581ac23fe5fce65cd049a200c1446708cc1b7f922875/kiwisolver-1.4.9.tar.gz", hash = "sha256:c3b22c26c6fd6811b0ae8363b95ca8ce4ea3c202d3d0975b2914310ceb1bcc4d", size = 97564, upload-time = "2025-08-10T21:27:49.279Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/86/c9/13573a747838aeb1c76e3267620daa054f4152444d1f3d1a2324b78255b5/kiwisolver-1.4.9-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:ac5a486ac389dddcc5bef4f365b6ae3ffff2c433324fb38dd35e3fab7c957999", size = 123686, upload-time = "2025-08-10T21:26:10.034Z" }, + { url = "https://files.pythonhosted.org/packages/51/ea/2ecf727927f103ffd1739271ca19c424d0e65ea473fbaeea1c014aea93f6/kiwisolver-1.4.9-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:f2ba92255faa7309d06fe44c3a4a97efe1c8d640c2a79a5ef728b685762a6fd2", size = 66460, upload-time = "2025-08-10T21:26:11.083Z" }, + { url = "https://files.pythonhosted.org/packages/5b/5a/51f5464373ce2aeb5194508298a508b6f21d3867f499556263c64c621914/kiwisolver-1.4.9-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4a2899935e724dd1074cb568ce7ac0dce28b2cd6ab539c8e001a8578eb106d14", size = 64952, upload-time = "2025-08-10T21:26:12.058Z" }, + { url = "https://files.pythonhosted.org/packages/70/90/6d240beb0f24b74371762873e9b7f499f1e02166a2d9c5801f4dbf8fa12e/kiwisolver-1.4.9-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f6008a4919fdbc0b0097089f67a1eb55d950ed7e90ce2cc3e640abadd2757a04", size = 1474756, upload-time = "2025-08-10T21:26:13.096Z" }, + { url = "https://files.pythonhosted.org/packages/12/42/f36816eaf465220f683fb711efdd1bbf7a7005a2473d0e4ed421389bd26c/kiwisolver-1.4.9-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:67bb8b474b4181770f926f7b7d2f8c0248cbcb78b660fdd41a47054b28d2a752", size = 1276404, upload-time = "2025-08-10T21:26:14.457Z" }, + { url = "https://files.pythonhosted.org/packages/2e/64/bc2de94800adc830c476dce44e9b40fd0809cddeef1fde9fcf0f73da301f/kiwisolver-1.4.9-cp312-cp312-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2327a4a30d3ee07d2fbe2e7933e8a37c591663b96ce42a00bc67461a87d7df77", size = 1294410, upload-time = "2025-08-10T21:26:15.73Z" }, + { url = "https://files.pythonhosted.org/packages/5f/42/2dc82330a70aa8e55b6d395b11018045e58d0bb00834502bf11509f79091/kiwisolver-1.4.9-cp312-cp312-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7a08b491ec91b1d5053ac177afe5290adacf1f0f6307d771ccac5de30592d198", size = 1343631, upload-time = "2025-08-10T21:26:17.045Z" }, + { url = "https://files.pythonhosted.org/packages/22/fd/f4c67a6ed1aab149ec5a8a401c323cee7a1cbe364381bb6c9c0d564e0e20/kiwisolver-1.4.9-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:d8fc5c867c22b828001b6a38d2eaeb88160bf5783c6cb4a5e440efc981ce286d", size = 2224963, upload-time = "2025-08-10T21:26:18.737Z" }, + { url = "https://files.pythonhosted.org/packages/45/aa/76720bd4cb3713314677d9ec94dcc21ced3f1baf4830adde5bb9b2430a5f/kiwisolver-1.4.9-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:3b3115b2581ea35bb6d1f24a4c90af37e5d9b49dcff267eeed14c3893c5b86ab", size = 2321295, upload-time = "2025-08-10T21:26:20.11Z" }, + { url = "https://files.pythonhosted.org/packages/80/19/d3ec0d9ab711242f56ae0dc2fc5d70e298bb4a1f9dfab44c027668c673a1/kiwisolver-1.4.9-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:858e4c22fb075920b96a291928cb7dea5644e94c0ee4fcd5af7e865655e4ccf2", size = 2487987, upload-time = "2025-08-10T21:26:21.49Z" }, + { url = "https://files.pythonhosted.org/packages/39/e9/61e4813b2c97e86b6fdbd4dd824bf72d28bcd8d4849b8084a357bc0dd64d/kiwisolver-1.4.9-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ed0fecd28cc62c54b262e3736f8bb2512d8dcfdc2bcf08be5f47f96bf405b145", size = 2291817, upload-time = "2025-08-10T21:26:22.812Z" }, + { url = "https://files.pythonhosted.org/packages/a0/41/85d82b0291db7504da3c2defe35c9a8a5c9803a730f297bd823d11d5fb77/kiwisolver-1.4.9-cp312-cp312-win_amd64.whl", hash = "sha256:f68208a520c3d86ea51acf688a3e3002615a7f0238002cccc17affecc86a8a54", size = 73895, upload-time = "2025-08-10T21:26:24.37Z" }, + { url = "https://files.pythonhosted.org/packages/e2/92/5f3068cf15ee5cb624a0c7596e67e2a0bb2adee33f71c379054a491d07da/kiwisolver-1.4.9-cp312-cp312-win_arm64.whl", hash = "sha256:2c1a4f57df73965f3f14df20b80ee29e6a7930a57d2d9e8491a25f676e197c60", size = 64992, upload-time = "2025-08-10T21:26:25.732Z" }, + { url = "https://files.pythonhosted.org/packages/31/c1/c2686cda909742ab66c7388e9a1a8521a59eb89f8bcfbee28fc980d07e24/kiwisolver-1.4.9-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:a5d0432ccf1c7ab14f9949eec60c5d1f924f17c037e9f8b33352fa05799359b8", size = 123681, upload-time = "2025-08-10T21:26:26.725Z" }, + { url = "https://files.pythonhosted.org/packages/ca/f0/f44f50c9f5b1a1860261092e3bc91ecdc9acda848a8b8c6abfda4a24dd5c/kiwisolver-1.4.9-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:efb3a45b35622bb6c16dbfab491a8f5a391fe0e9d45ef32f4df85658232ca0e2", size = 66464, upload-time = "2025-08-10T21:26:27.733Z" }, + { url = "https://files.pythonhosted.org/packages/2d/7a/9d90a151f558e29c3936b8a47ac770235f436f2120aca41a6d5f3d62ae8d/kiwisolver-1.4.9-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1a12cf6398e8a0a001a059747a1cbf24705e18fe413bc22de7b3d15c67cffe3f", size = 64961, upload-time = "2025-08-10T21:26:28.729Z" }, + { url = "https://files.pythonhosted.org/packages/e9/e9/f218a2cb3a9ffbe324ca29a9e399fa2d2866d7f348ec3a88df87fc248fc5/kiwisolver-1.4.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b67e6efbf68e077dd71d1a6b37e43e1a99d0bff1a3d51867d45ee8908b931098", size = 1474607, upload-time = "2025-08-10T21:26:29.798Z" }, + { url = "https://files.pythonhosted.org/packages/d9/28/aac26d4c882f14de59041636292bc838db8961373825df23b8eeb807e198/kiwisolver-1.4.9-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5656aa670507437af0207645273ccdfee4f14bacd7f7c67a4306d0dcaeaf6eed", size = 1276546, upload-time = "2025-08-10T21:26:31.401Z" }, + { url = "https://files.pythonhosted.org/packages/8b/ad/8bfc1c93d4cc565e5069162f610ba2f48ff39b7de4b5b8d93f69f30c4bed/kiwisolver-1.4.9-cp313-cp313-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bfc08add558155345129c7803b3671cf195e6a56e7a12f3dde7c57d9b417f525", size = 1294482, upload-time = "2025-08-10T21:26:32.721Z" }, + { url = "https://files.pythonhosted.org/packages/da/f1/6aca55ff798901d8ce403206d00e033191f63d82dd708a186e0ed2067e9c/kiwisolver-1.4.9-cp313-cp313-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:40092754720b174e6ccf9e845d0d8c7d8e12c3d71e7fc35f55f3813e96376f78", size = 1343720, upload-time = "2025-08-10T21:26:34.032Z" }, + { url = "https://files.pythonhosted.org/packages/d1/91/eed031876c595c81d90d0f6fc681ece250e14bf6998c3d7c419466b523b7/kiwisolver-1.4.9-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:497d05f29a1300d14e02e6441cf0f5ee81c1ff5a304b0d9fb77423974684e08b", size = 2224907, upload-time = "2025-08-10T21:26:35.824Z" }, + { url = "https://files.pythonhosted.org/packages/e9/ec/4d1925f2e49617b9cca9c34bfa11adefad49d00db038e692a559454dfb2e/kiwisolver-1.4.9-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:bdd1a81a1860476eb41ac4bc1e07b3f07259e6d55bbf739b79c8aaedcf512799", size = 2321334, upload-time = "2025-08-10T21:26:37.534Z" }, + { url = "https://files.pythonhosted.org/packages/43/cb/450cd4499356f68802750c6ddc18647b8ea01ffa28f50d20598e0befe6e9/kiwisolver-1.4.9-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:e6b93f13371d341afee3be9f7c5964e3fe61d5fa30f6a30eb49856935dfe4fc3", size = 2488313, upload-time = "2025-08-10T21:26:39.191Z" }, + { url = "https://files.pythonhosted.org/packages/71/67/fc76242bd99f885651128a5d4fa6083e5524694b7c88b489b1b55fdc491d/kiwisolver-1.4.9-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:d75aa530ccfaa593da12834b86a0724f58bff12706659baa9227c2ccaa06264c", size = 2291970, upload-time = "2025-08-10T21:26:40.828Z" }, + { url = "https://files.pythonhosted.org/packages/75/bd/f1a5d894000941739f2ae1b65a32892349423ad49c2e6d0771d0bad3fae4/kiwisolver-1.4.9-cp313-cp313-win_amd64.whl", hash = "sha256:dd0a578400839256df88c16abddf9ba14813ec5f21362e1fe65022e00c883d4d", size = 73894, upload-time = "2025-08-10T21:26:42.33Z" }, + { url = "https://files.pythonhosted.org/packages/95/38/dce480814d25b99a391abbddadc78f7c117c6da34be68ca8b02d5848b424/kiwisolver-1.4.9-cp313-cp313-win_arm64.whl", hash = "sha256:d4188e73af84ca82468f09cadc5ac4db578109e52acb4518d8154698d3a87ca2", size = 64995, upload-time = "2025-08-10T21:26:43.889Z" }, + { url = "https://files.pythonhosted.org/packages/e2/37/7d218ce5d92dadc5ebdd9070d903e0c7cf7edfe03f179433ac4d13ce659c/kiwisolver-1.4.9-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:5a0f2724dfd4e3b3ac5a82436a8e6fd16baa7d507117e4279b660fe8ca38a3a1", size = 126510, upload-time = "2025-08-10T21:26:44.915Z" }, + { url = "https://files.pythonhosted.org/packages/23/b0/e85a2b48233daef4b648fb657ebbb6f8367696a2d9548a00b4ee0eb67803/kiwisolver-1.4.9-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:1b11d6a633e4ed84fc0ddafd4ebfd8ea49b3f25082c04ad12b8315c11d504dc1", size = 67903, upload-time = "2025-08-10T21:26:45.934Z" }, + { url = "https://files.pythonhosted.org/packages/44/98/f2425bc0113ad7de24da6bb4dae1343476e95e1d738be7c04d31a5d037fd/kiwisolver-1.4.9-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:61874cdb0a36016354853593cffc38e56fc9ca5aa97d2c05d3dcf6922cd55a11", size = 66402, upload-time = "2025-08-10T21:26:47.101Z" }, + { url = "https://files.pythonhosted.org/packages/98/d8/594657886df9f34c4177cc353cc28ca7e6e5eb562d37ccc233bff43bbe2a/kiwisolver-1.4.9-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:60c439763a969a6af93b4881db0eed8fadf93ee98e18cbc35bc8da868d0c4f0c", size = 1582135, upload-time = "2025-08-10T21:26:48.665Z" }, + { url = "https://files.pythonhosted.org/packages/5c/c6/38a115b7170f8b306fc929e166340c24958347308ea3012c2b44e7e295db/kiwisolver-1.4.9-cp313-cp313t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:92a2f997387a1b79a75e7803aa7ded2cfbe2823852ccf1ba3bcf613b62ae3197", size = 1389409, upload-time = "2025-08-10T21:26:50.335Z" }, + { url = "https://files.pythonhosted.org/packages/bf/3b/e04883dace81f24a568bcee6eb3001da4ba05114afa622ec9b6fafdc1f5e/kiwisolver-1.4.9-cp313-cp313t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a31d512c812daea6d8b3be3b2bfcbeb091dbb09177706569bcfc6240dcf8b41c", size = 1401763, upload-time = "2025-08-10T21:26:51.867Z" }, + { url = "https://files.pythonhosted.org/packages/9f/80/20ace48e33408947af49d7d15c341eaee69e4e0304aab4b7660e234d6288/kiwisolver-1.4.9-cp313-cp313t-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:52a15b0f35dad39862d376df10c5230155243a2c1a436e39eb55623ccbd68185", size = 1453643, upload-time = "2025-08-10T21:26:53.592Z" }, + { url = "https://files.pythonhosted.org/packages/64/31/6ce4380a4cd1f515bdda976a1e90e547ccd47b67a1546d63884463c92ca9/kiwisolver-1.4.9-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:a30fd6fdef1430fd9e1ba7b3398b5ee4e2887783917a687d86ba69985fb08748", size = 2330818, upload-time = "2025-08-10T21:26:55.051Z" }, + { url = "https://files.pythonhosted.org/packages/fa/e9/3f3fcba3bcc7432c795b82646306e822f3fd74df0ee81f0fa067a1f95668/kiwisolver-1.4.9-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:cc9617b46837c6468197b5945e196ee9ca43057bb7d9d1ae688101e4e1dddf64", size = 2419963, upload-time = "2025-08-10T21:26:56.421Z" }, + { url = "https://files.pythonhosted.org/packages/99/43/7320c50e4133575c66e9f7dadead35ab22d7c012a3b09bb35647792b2a6d/kiwisolver-1.4.9-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:0ab74e19f6a2b027ea4f845a78827969af45ce790e6cb3e1ebab71bdf9f215ff", size = 2594639, upload-time = "2025-08-10T21:26:57.882Z" }, + { url = "https://files.pythonhosted.org/packages/65/d6/17ae4a270d4a987ef8a385b906d2bdfc9fce502d6dc0d3aea865b47f548c/kiwisolver-1.4.9-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:dba5ee5d3981160c28d5490f0d1b7ed730c22470ff7f6cc26cfcfaacb9896a07", size = 2391741, upload-time = "2025-08-10T21:26:59.237Z" }, + { url = "https://files.pythonhosted.org/packages/2a/8f/8f6f491d595a9e5912971f3f863d81baddccc8a4d0c3749d6a0dd9ffc9df/kiwisolver-1.4.9-cp313-cp313t-win_arm64.whl", hash = "sha256:0749fd8f4218ad2e851e11cc4dc05c7cbc0cbc4267bdfdb31782e65aace4ee9c", size = 68646, upload-time = "2025-08-10T21:27:00.52Z" }, + { url = "https://files.pythonhosted.org/packages/6b/32/6cc0fbc9c54d06c2969faa9c1d29f5751a2e51809dd55c69055e62d9b426/kiwisolver-1.4.9-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:9928fe1eb816d11ae170885a74d074f57af3a0d65777ca47e9aeb854a1fba386", size = 123806, upload-time = "2025-08-10T21:27:01.537Z" }, + { url = "https://files.pythonhosted.org/packages/b2/dd/2bfb1d4a4823d92e8cbb420fe024b8d2167f72079b3bb941207c42570bdf/kiwisolver-1.4.9-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:d0005b053977e7b43388ddec89fa567f43d4f6d5c2c0affe57de5ebf290dc552", size = 66605, upload-time = "2025-08-10T21:27:03.335Z" }, + { url = "https://files.pythonhosted.org/packages/f7/69/00aafdb4e4509c2ca6064646cba9cd4b37933898f426756adb2cb92ebbed/kiwisolver-1.4.9-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:2635d352d67458b66fd0667c14cb1d4145e9560d503219034a18a87e971ce4f3", size = 64925, upload-time = "2025-08-10T21:27:04.339Z" }, + { url = "https://files.pythonhosted.org/packages/43/dc/51acc6791aa14e5cb6d8a2e28cefb0dc2886d8862795449d021334c0df20/kiwisolver-1.4.9-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:767c23ad1c58c9e827b649a9ab7809fd5fd9db266a9cf02b0e926ddc2c680d58", size = 1472414, upload-time = "2025-08-10T21:27:05.437Z" }, + { url = "https://files.pythonhosted.org/packages/3d/bb/93fa64a81db304ac8a246f834d5094fae4b13baf53c839d6bb6e81177129/kiwisolver-1.4.9-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72d0eb9fba308b8311685c2268cf7d0a0639a6cd027d8128659f72bdd8a024b4", size = 1281272, upload-time = "2025-08-10T21:27:07.063Z" }, + { url = "https://files.pythonhosted.org/packages/70/e6/6df102916960fb8d05069d4bd92d6d9a8202d5a3e2444494e7cd50f65b7a/kiwisolver-1.4.9-cp314-cp314-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f68e4f3eeca8fb22cc3d731f9715a13b652795ef657a13df1ad0c7dc0e9731df", size = 1298578, upload-time = "2025-08-10T21:27:08.452Z" }, + { url = "https://files.pythonhosted.org/packages/7c/47/e142aaa612f5343736b087864dbaebc53ea8831453fb47e7521fa8658f30/kiwisolver-1.4.9-cp314-cp314-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d84cd4061ae292d8ac367b2c3fa3aad11cb8625a95d135fe93f286f914f3f5a6", size = 1345607, upload-time = "2025-08-10T21:27:10.125Z" }, + { url = "https://files.pythonhosted.org/packages/54/89/d641a746194a0f4d1a3670fb900d0dbaa786fb98341056814bc3f058fa52/kiwisolver-1.4.9-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a60ea74330b91bd22a29638940d115df9dc00af5035a9a2a6ad9399ffb4ceca5", size = 2230150, upload-time = "2025-08-10T21:27:11.484Z" }, + { url = "https://files.pythonhosted.org/packages/aa/6b/5ee1207198febdf16ac11f78c5ae40861b809cbe0e6d2a8d5b0b3044b199/kiwisolver-1.4.9-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:ce6a3a4e106cf35c2d9c4fa17c05ce0b180db622736845d4315519397a77beaf", size = 2325979, upload-time = "2025-08-10T21:27:12.917Z" }, + { url = "https://files.pythonhosted.org/packages/fc/ff/b269eefd90f4ae14dcc74973d5a0f6d28d3b9bb1afd8c0340513afe6b39a/kiwisolver-1.4.9-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:77937e5e2a38a7b48eef0585114fe7930346993a88060d0bf886086d2aa49ef5", size = 2491456, upload-time = "2025-08-10T21:27:14.353Z" }, + { url = "https://files.pythonhosted.org/packages/fc/d4/10303190bd4d30de547534601e259a4fbf014eed94aae3e5521129215086/kiwisolver-1.4.9-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:24c175051354f4a28c5d6a31c93906dc653e2bf234e8a4bbfb964892078898ce", size = 2294621, upload-time = "2025-08-10T21:27:15.808Z" }, + { url = "https://files.pythonhosted.org/packages/28/e0/a9a90416fce5c0be25742729c2ea52105d62eda6c4be4d803c2a7be1fa50/kiwisolver-1.4.9-cp314-cp314-win_amd64.whl", hash = "sha256:0763515d4df10edf6d06a3c19734e2566368980d21ebec439f33f9eb936c07b7", size = 75417, upload-time = "2025-08-10T21:27:17.436Z" }, + { url = "https://files.pythonhosted.org/packages/1f/10/6949958215b7a9a264299a7db195564e87900f709db9245e4ebdd3c70779/kiwisolver-1.4.9-cp314-cp314-win_arm64.whl", hash = "sha256:0e4e2bf29574a6a7b7f6cb5fa69293b9f96c928949ac4a53ba3f525dffb87f9c", size = 66582, upload-time = "2025-08-10T21:27:18.436Z" }, + { url = "https://files.pythonhosted.org/packages/ec/79/60e53067903d3bc5469b369fe0dfc6b3482e2133e85dae9daa9527535991/kiwisolver-1.4.9-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:d976bbb382b202f71c67f77b0ac11244021cfa3f7dfd9e562eefcea2df711548", size = 126514, upload-time = "2025-08-10T21:27:19.465Z" }, + { url = "https://files.pythonhosted.org/packages/25/d1/4843d3e8d46b072c12a38c97c57fab4608d36e13fe47d47ee96b4d61ba6f/kiwisolver-1.4.9-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:2489e4e5d7ef9a1c300a5e0196e43d9c739f066ef23270607d45aba368b91f2d", size = 67905, upload-time = "2025-08-10T21:27:20.51Z" }, + { url = "https://files.pythonhosted.org/packages/8c/ae/29ffcbd239aea8b93108de1278271ae764dfc0d803a5693914975f200596/kiwisolver-1.4.9-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:e2ea9f7ab7fbf18fffb1b5434ce7c69a07582f7acc7717720f1d69f3e806f90c", size = 66399, upload-time = "2025-08-10T21:27:21.496Z" }, + { url = "https://files.pythonhosted.org/packages/a1/ae/d7ba902aa604152c2ceba5d352d7b62106bedbccc8e95c3934d94472bfa3/kiwisolver-1.4.9-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b34e51affded8faee0dfdb705416153819d8ea9250bbbf7ea1b249bdeb5f1122", size = 1582197, upload-time = "2025-08-10T21:27:22.604Z" }, + { url = "https://files.pythonhosted.org/packages/f2/41/27c70d427eddb8bc7e4f16420a20fefc6f480312122a59a959fdfe0445ad/kiwisolver-1.4.9-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d8aacd3d4b33b772542b2e01beb50187536967b514b00003bdda7589722d2a64", size = 1390125, upload-time = "2025-08-10T21:27:24.036Z" }, + { url = "https://files.pythonhosted.org/packages/41/42/b3799a12bafc76d962ad69083f8b43b12bf4fe78b097b12e105d75c9b8f1/kiwisolver-1.4.9-cp314-cp314t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7cf974dd4e35fa315563ac99d6287a1024e4dc2077b8a7d7cd3d2fb65d283134", size = 1402612, upload-time = "2025-08-10T21:27:25.773Z" }, + { url = "https://files.pythonhosted.org/packages/d2/b5/a210ea073ea1cfaca1bb5c55a62307d8252f531beb364e18aa1e0888b5a0/kiwisolver-1.4.9-cp314-cp314t-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:85bd218b5ecfbee8c8a82e121802dcb519a86044c9c3b2e4aef02fa05c6da370", size = 1453990, upload-time = "2025-08-10T21:27:27.089Z" }, + { url = "https://files.pythonhosted.org/packages/5f/ce/a829eb8c033e977d7ea03ed32fb3c1781b4fa0433fbadfff29e39c676f32/kiwisolver-1.4.9-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:0856e241c2d3df4efef7c04a1e46b1936b6120c9bcf36dd216e3acd84bc4fb21", size = 2331601, upload-time = "2025-08-10T21:27:29.343Z" }, + { url = "https://files.pythonhosted.org/packages/e0/4b/b5e97eb142eb9cd0072dacfcdcd31b1c66dc7352b0f7c7255d339c0edf00/kiwisolver-1.4.9-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:9af39d6551f97d31a4deebeac6f45b156f9755ddc59c07b402c148f5dbb6482a", size = 2422041, upload-time = "2025-08-10T21:27:30.754Z" }, + { url = "https://files.pythonhosted.org/packages/40/be/8eb4cd53e1b85ba4edc3a9321666f12b83113a178845593307a3e7891f44/kiwisolver-1.4.9-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:bb4ae2b57fc1d8cbd1cf7b1d9913803681ffa903e7488012be5b76dedf49297f", size = 2594897, upload-time = "2025-08-10T21:27:32.803Z" }, + { url = "https://files.pythonhosted.org/packages/99/dd/841e9a66c4715477ea0abc78da039832fbb09dac5c35c58dc4c41a407b8a/kiwisolver-1.4.9-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:aedff62918805fb62d43a4aa2ecd4482c380dc76cd31bd7c8878588a61bd0369", size = 2391835, upload-time = "2025-08-10T21:27:34.23Z" }, + { url = "https://files.pythonhosted.org/packages/0c/28/4b2e5c47a0da96896fdfdb006340ade064afa1e63675d01ea5ac222b6d52/kiwisolver-1.4.9-cp314-cp314t-win_amd64.whl", hash = "sha256:1fa333e8b2ce4d9660f2cda9c0e1b6bafcfb2457a9d259faa82289e73ec24891", size = 79988, upload-time = "2025-08-10T21:27:35.587Z" }, + { url = "https://files.pythonhosted.org/packages/80/be/3578e8afd18c88cdf9cb4cffde75a96d2be38c5a903f1ed0ceec061bd09e/kiwisolver-1.4.9-cp314-cp314t-win_arm64.whl", hash = "sha256:4a48a2ce79d65d363597ef7b567ce3d14d68783d2b2263d98db3d9477805ba32", size = 70260, upload-time = "2025-08-10T21:27:36.606Z" }, +] + +[[package]] +name = "kombu" +version = "5.5.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "amqp" }, + { name = "packaging" }, + { name = "tzdata" }, + { name = "vine" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/0f/d3/5ff936d8319ac86b9c409f1501b07c426e6ad41966fedace9ef1b966e23f/kombu-5.5.4.tar.gz", hash = "sha256:886600168275ebeada93b888e831352fe578168342f0d1d5833d88ba0d847363", size = 461992, upload-time = "2025-06-01T10:19:22.281Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ef/70/a07dcf4f62598c8ad579df241af55ced65bed76e42e45d3c368a6d82dbc1/kombu-5.5.4-py3-none-any.whl", hash = "sha256:a12ed0557c238897d8e518f1d1fdf84bd1516c5e305af2dacd85c2015115feb8", size = 210034, upload-time = "2025-06-01T10:19:20.436Z" }, +] + +[[package]] +name = "langchain" +version = "0.3.27" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "langchain-core" }, + { name = "langchain-text-splitters" }, + { name = "langsmith" }, + { name = "pydantic" }, + { name = "pyyaml" }, + { name = "requests" }, + { name = "sqlalchemy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/83/f6/f4f7f3a56626fe07e2bb330feb61254dbdf06c506e6b59a536a337da51cf/langchain-0.3.27.tar.gz", hash = "sha256:aa6f1e6274ff055d0fd36254176770f356ed0a8994297d1df47df341953cec62", size = 10233809, upload-time = "2025-07-24T14:42:32.959Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f6/d5/4861816a95b2f6993f1360cfb605aacb015506ee2090433a71de9cca8477/langchain-0.3.27-py3-none-any.whl", hash = "sha256:7b20c4f338826acb148d885b20a73a16e410ede9ee4f19bb02011852d5f98798", size = 1018194, upload-time = "2025-07-24T14:42:30.23Z" }, +] + +[[package]] +name = "langchain-core" +version = "0.3.74" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "jsonpatch" }, + { name = "langsmith" }, + { name = "packaging" }, + { name = "pydantic" }, + { name = "pyyaml" }, + { name = "tenacity" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f1/c6/5d755a0f1f4857abbe5ea6f5907ed0e2b5df52bf4dde0a0fd768290e3084/langchain_core-0.3.74.tar.gz", hash = "sha256:ff604441aeade942fbcc0a3860a592daba7671345230c2078ba2eb5f82b6ba76", size = 569553, upload-time = "2025-08-07T20:47:05.094Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4d/26/545283681ac0379d31c7ad0bac5f195e1982092d76c65ca048db9e3cec0e/langchain_core-0.3.74-py3-none-any.whl", hash = "sha256:088338b5bc2f6a66892f9afc777992c24ee3188f41cbc603d09181e34a228ce7", size = 443453, upload-time = "2025-08-07T20:47:03.853Z" }, +] + +[[package]] +name = "langchain-openai" +version = "0.3.30" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "langchain-core" }, + { name = "openai" }, + { name = "tiktoken" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ad/21/6b2024cdd907812d33d31d42c05baa6a3fc6b341d76f7a982730b6985501/langchain_openai-0.3.30.tar.gz", hash = "sha256:90df37509b2dcf5e057f491326fcbf78cf2a71caff5103a5a7de560320171842", size = 766426, upload-time = "2025-08-12T17:05:55.587Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/23/36/cd370071243ae321c22bfafbf75fef1601dd22d0baeeedb71835954ed0ad/langchain_openai-0.3.30-py3-none-any.whl", hash = "sha256:280f1f31004393228e3f75ff8353b1aae86bbc282abc7890a05beb5f43b89923", size = 74362, upload-time = "2025-08-12T17:05:54.415Z" }, +] + +[[package]] +name = "langchain-text-splitters" +version = "0.3.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "langchain-core" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/91/52/d43ad77acae169210cc476cbc1e4ab37a701017c950211a11ab500fe7d7e/langchain_text_splitters-0.3.9.tar.gz", hash = "sha256:7cd1e5a3aaf609979583eeca2eb34177622570b8fa8f586a605c6b1c34e7ebdb", size = 45260, upload-time = "2025-07-24T14:38:45.14Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e2/52/7638394b88bc15083fd2c3752a843784d9d2d110d68fed6437c8607fb749/langchain_text_splitters-0.3.9-py3-none-any.whl", hash = "sha256:cee0bb816211584ea79cc79927317c358543f40404bcfdd69e69ba3ccde54401", size = 33314, upload-time = "2025-07-24T14:38:43.953Z" }, +] + +[[package]] +name = "langgraph" +version = "0.6.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "langchain-core" }, + { name = "langgraph-checkpoint" }, + { name = "langgraph-prebuilt" }, + { name = "langgraph-sdk" }, + { name = "pydantic" }, + { name = "xxhash" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9f/a2/632e882b6f8d83fefce7a838695dc4f91eaf7d2adc6c8ac160003754eda3/langgraph-0.6.4.tar.gz", hash = "sha256:5d591646b4c5bfc86d5fb0baf3407ba55b37f6ee1c22613e9ed084090357fccd", size = 454190, upload-time = "2025-08-07T18:30:59.619Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/09/25/7ccac0a5aee88a882683e09c71fbc3a884e41d092a65304dbab40d633dcb/langgraph-0.6.4-py3-none-any.whl", hash = "sha256:001cb076d204b7e7cdf2dce24b18171bbd184840f236852a256107b2aed105bb", size = 153150, upload-time = "2025-08-07T18:30:58.039Z" }, +] + +[[package]] +name = "langgraph-checkpoint" +version = "2.1.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "langchain-core" }, + { name = "ormsgpack" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/73/3e/d00eb2b56c3846a0cabd2e5aa71c17a95f882d4f799a6ffe96a19b55eba9/langgraph_checkpoint-2.1.1.tar.gz", hash = "sha256:72038c0f9e22260cb9bff1f3ebe5eb06d940b7ee5c1e4765019269d4f21cf92d", size = 136256, upload-time = "2025-07-17T13:07:52.411Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4c/dd/64686797b0927fb18b290044be12ae9d4df01670dce6bb2498d5ab65cb24/langgraph_checkpoint-2.1.1-py3-none-any.whl", hash = "sha256:5a779134fd28134a9a83d078be4450bbf0e0c79fdf5e992549658899e6fc5ea7", size = 43925, upload-time = "2025-07-17T13:07:51.023Z" }, +] + +[[package]] +name = "langgraph-prebuilt" +version = "0.6.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "langchain-core" }, + { name = "langgraph-checkpoint" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/d6/21/9b198d11732101ee8cdf30af98d0b4f11254c768de15173e57f5260fd14b/langgraph_prebuilt-0.6.4.tar.gz", hash = "sha256:e9e53b906ee5df46541d1dc5303239e815d3ec551e52bb03dd6463acc79ec28f", size = 125695, upload-time = "2025-08-07T18:17:57.333Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0a/7f/973b0d9729d9693d6e5b4bc5f3ae41138d194cb7b16b0ed230020beeb13a/langgraph_prebuilt-0.6.4-py3-none-any.whl", hash = "sha256:819f31d88b84cb2729ff1b79db2d51e9506b8fb7aaacfc0d359d4fe16e717344", size = 28025, upload-time = "2025-08-07T18:17:56.493Z" }, +] + +[[package]] +name = "langgraph-sdk" +version = "0.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "httpx" }, + { name = "orjson" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/2a/3e/3dc45dc7682c9940db9edaf8773d2e157397c5bd6881f6806808afd8731e/langgraph_sdk-0.2.0.tar.gz", hash = "sha256:cd8b5f6595e5571be5cbffd04cf936978ab8f5d1005517c99715947ef871e246", size = 72510, upload-time = "2025-07-22T17:31:06.745Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a5/03/a8ab0e8ea74be6058cb48bb1d85485b5c65d6ea183e3ee1aa8ca1ac73b3e/langgraph_sdk-0.2.0-py3-none-any.whl", hash = "sha256:150722264f225c4d47bbe7394676be102fdbf04c4400a0dd1bd41a70c6430cc7", size = 50569, upload-time = "2025-07-22T17:31:04.582Z" }, +] + +[[package]] +name = "langsmith" +version = "0.4.14" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "httpx" }, + { name = "orjson", marker = "platform_python_implementation != 'PyPy'" }, + { name = "packaging" }, + { name = "pydantic" }, + { name = "requests" }, + { name = "requests-toolbelt" }, + { name = "zstandard" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/85/b0/1def3c6d12eb5e412213e39f1ba4ac64a47ec3102cf42a3a1ff86af1402d/langsmith-0.4.14.tar.gz", hash = "sha256:4d29c7a9c85b20ba813ab9c855407bccdf5eb4f397f512ffa89959b2a2cb83ed", size = 921872, upload-time = "2025-08-12T20:39:43.704Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9e/08/3f0fb3e2f7cc6fd91c4d06d7abc6607425a66973bee79d04018bac41dd4f/langsmith-0.4.14-py3-none-any.whl", hash = "sha256:b6d070ac425196947d2a98126fb0e35f3b8c001a2e6e5b7049dd1c56f0767d0b", size = 373249, upload-time = "2025-08-12T20:39:41.992Z" }, +] + +[[package]] +name = "logfire-api" +version = "4.3.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/93/65/73e841823eab57a2faae9b4834e16cc430cf12cd9fe2837c8f9ae5d2ea5d/logfire_api-4.3.2.tar.gz", hash = "sha256:8f4e7f818bf037fcca4f2e340687708ee051e9fbb00a26928ace437b5de2cac5", size = 52791, upload-time = "2025-08-13T07:44:19.795Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/81/ff/73fc71b071ad68e57cb97181768e10ff703681550d2a46937e861f8d452f/logfire_api-4.3.2-py3-none-any.whl", hash = "sha256:e97e504114b52b4dc5b575d216315464b1b51c09cebb87b4e18b53a66df07dc1", size = 88326, upload-time = "2025-08-13T07:44:17.097Z" }, +] + +[[package]] +name = "loguru" +version = "0.7.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "win32-setctime", marker = "sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/3a/05/a1dae3dffd1116099471c643b8924f5aa6524411dc6c63fdae648c4f1aca/loguru-0.7.3.tar.gz", hash = "sha256:19480589e77d47b8d85b2c827ad95d49bf31b0dcde16593892eb51dd18706eb6", size = 63559, upload-time = "2024-12-06T11:20:56.608Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0c/29/0348de65b8cc732daa3e33e67806420b2ae89bdce2b04af740289c5c6c8c/loguru-0.7.3-py3-none-any.whl", hash = "sha256:31a33c10c8e1e10422bfd431aeb5d351c7cf7fa671e3c4df004162264b28220c", size = 61595, upload-time = "2024-12-06T11:20:54.538Z" }, +] + +[[package]] +name = "mako" +version = "1.3.10" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markupsafe" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9e/38/bd5b78a920a64d708fe6bc8e0a2c075e1389d53bef8413725c63ba041535/mako-1.3.10.tar.gz", hash = "sha256:99579a6f39583fa7e5630a28c3c1f440e4e97a414b80372649c0ce338da2ea28", size = 392474, upload-time = "2025-04-10T12:44:31.16Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/87/fb/99f81ac72ae23375f22b7afdb7642aba97c00a713c217124420147681a2f/mako-1.3.10-py3-none-any.whl", hash = "sha256:baef24a52fc4fc514a0887ac600f9f1cff3d82c61d4d700a1fa84d597b88db59", size = 78509, upload-time = "2025-04-10T12:50:53.297Z" }, +] + +[[package]] +name = "markdown-it-py" +version = "4.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mdurl" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/5b/f5/4ec618ed16cc4f8fb3b701563655a69816155e79e24a17b651541804721d/markdown_it_py-4.0.0.tar.gz", hash = "sha256:cb0a2b4aa34f932c007117b194e945bd74e0ec24133ceb5bac59009cda1cb9f3", size = 73070, upload-time = "2025-08-11T12:57:52.854Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/94/54/e7d793b573f298e1c9013b8c4dade17d481164aa517d1d7148619c2cedbf/markdown_it_py-4.0.0-py3-none-any.whl", hash = "sha256:87327c59b172c5011896038353a81343b6754500a08cd7a4973bb48c6d578147", size = 87321, upload-time = "2025-08-11T12:57:51.923Z" }, +] + +[[package]] +name = "markupsafe" +version = "3.0.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b2/97/5d42485e71dfc078108a86d6de8fa46db44a1a9295e89c5d6d4a06e23a62/markupsafe-3.0.2.tar.gz", hash = "sha256:ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0", size = 20537, upload-time = "2024-10-18T15:21:54.129Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/22/09/d1f21434c97fc42f09d290cbb6350d44eb12f09cc62c9476effdb33a18aa/MarkupSafe-3.0.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:9778bd8ab0a994ebf6f84c2b949e65736d5575320a17ae8984a77fab08db94cf", size = 14274, upload-time = "2024-10-18T15:21:13.777Z" }, + { url = "https://files.pythonhosted.org/packages/6b/b0/18f76bba336fa5aecf79d45dcd6c806c280ec44538b3c13671d49099fdd0/MarkupSafe-3.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:846ade7b71e3536c4e56b386c2a47adf5741d2d8b94ec9dc3e92e5e1ee1e2225", size = 12348, upload-time = "2024-10-18T15:21:14.822Z" }, + { url = "https://files.pythonhosted.org/packages/e0/25/dd5c0f6ac1311e9b40f4af06c78efde0f3b5cbf02502f8ef9501294c425b/MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1c99d261bd2d5f6b59325c92c73df481e05e57f19837bdca8413b9eac4bd8028", size = 24149, upload-time = "2024-10-18T15:21:15.642Z" }, + { url = "https://files.pythonhosted.org/packages/f3/f0/89e7aadfb3749d0f52234a0c8c7867877876e0a20b60e2188e9850794c17/MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e17c96c14e19278594aa4841ec148115f9c7615a47382ecb6b82bd8fea3ab0c8", size = 23118, upload-time = "2024-10-18T15:21:17.133Z" }, + { url = "https://files.pythonhosted.org/packages/d5/da/f2eeb64c723f5e3777bc081da884b414671982008c47dcc1873d81f625b6/MarkupSafe-3.0.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:88416bd1e65dcea10bc7569faacb2c20ce071dd1f87539ca2ab364bf6231393c", size = 22993, upload-time = "2024-10-18T15:21:18.064Z" }, + { url = "https://files.pythonhosted.org/packages/da/0e/1f32af846df486dce7c227fe0f2398dc7e2e51d4a370508281f3c1c5cddc/MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2181e67807fc2fa785d0592dc2d6206c019b9502410671cc905d132a92866557", size = 24178, upload-time = "2024-10-18T15:21:18.859Z" }, + { url = "https://files.pythonhosted.org/packages/c4/f6/bb3ca0532de8086cbff5f06d137064c8410d10779c4c127e0e47d17c0b71/MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:52305740fe773d09cffb16f8ed0427942901f00adedac82ec8b67752f58a1b22", size = 23319, upload-time = "2024-10-18T15:21:19.671Z" }, + { url = "https://files.pythonhosted.org/packages/a2/82/8be4c96ffee03c5b4a034e60a31294daf481e12c7c43ab8e34a1453ee48b/MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ad10d3ded218f1039f11a75f8091880239651b52e9bb592ca27de44eed242a48", size = 23352, upload-time = "2024-10-18T15:21:20.971Z" }, + { url = "https://files.pythonhosted.org/packages/51/ae/97827349d3fcffee7e184bdf7f41cd6b88d9919c80f0263ba7acd1bbcb18/MarkupSafe-3.0.2-cp312-cp312-win32.whl", hash = "sha256:0f4ca02bea9a23221c0182836703cbf8930c5e9454bacce27e767509fa286a30", size = 15097, upload-time = "2024-10-18T15:21:22.646Z" }, + { url = "https://files.pythonhosted.org/packages/c1/80/a61f99dc3a936413c3ee4e1eecac96c0da5ed07ad56fd975f1a9da5bc630/MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:8e06879fc22a25ca47312fbe7c8264eb0b662f6db27cb2d3bbbc74b1df4b9b87", size = 15601, upload-time = "2024-10-18T15:21:23.499Z" }, + { url = "https://files.pythonhosted.org/packages/83/0e/67eb10a7ecc77a0c2bbe2b0235765b98d164d81600746914bebada795e97/MarkupSafe-3.0.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ba9527cdd4c926ed0760bc301f6728ef34d841f405abf9d4f959c478421e4efd", size = 14274, upload-time = "2024-10-18T15:21:24.577Z" }, + { url = "https://files.pythonhosted.org/packages/2b/6d/9409f3684d3335375d04e5f05744dfe7e9f120062c9857df4ab490a1031a/MarkupSafe-3.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f8b3d067f2e40fe93e1ccdd6b2e1d16c43140e76f02fb1319a05cf2b79d99430", size = 12352, upload-time = "2024-10-18T15:21:25.382Z" }, + { url = "https://files.pythonhosted.org/packages/d2/f5/6eadfcd3885ea85fe2a7c128315cc1bb7241e1987443d78c8fe712d03091/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:569511d3b58c8791ab4c2e1285575265991e6d8f8700c7be0e88f86cb0672094", size = 24122, upload-time = "2024-10-18T15:21:26.199Z" }, + { url = "https://files.pythonhosted.org/packages/0c/91/96cf928db8236f1bfab6ce15ad070dfdd02ed88261c2afafd4b43575e9e9/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:15ab75ef81add55874e7ab7055e9c397312385bd9ced94920f2802310c930396", size = 23085, upload-time = "2024-10-18T15:21:27.029Z" }, + { url = "https://files.pythonhosted.org/packages/c2/cf/c9d56af24d56ea04daae7ac0940232d31d5a8354f2b457c6d856b2057d69/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f3818cb119498c0678015754eba762e0d61e5b52d34c8b13d770f0719f7b1d79", size = 22978, upload-time = "2024-10-18T15:21:27.846Z" }, + { url = "https://files.pythonhosted.org/packages/2a/9f/8619835cd6a711d6272d62abb78c033bda638fdc54c4e7f4272cf1c0962b/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:cdb82a876c47801bb54a690c5ae105a46b392ac6099881cdfb9f6e95e4014c6a", size = 24208, upload-time = "2024-10-18T15:21:28.744Z" }, + { url = "https://files.pythonhosted.org/packages/f9/bf/176950a1792b2cd2102b8ffeb5133e1ed984547b75db47c25a67d3359f77/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:cabc348d87e913db6ab4aa100f01b08f481097838bdddf7c7a84b7575b7309ca", size = 23357, upload-time = "2024-10-18T15:21:29.545Z" }, + { url = "https://files.pythonhosted.org/packages/ce/4f/9a02c1d335caabe5c4efb90e1b6e8ee944aa245c1aaaab8e8a618987d816/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:444dcda765c8a838eaae23112db52f1efaf750daddb2d9ca300bcae1039adc5c", size = 23344, upload-time = "2024-10-18T15:21:30.366Z" }, + { url = "https://files.pythonhosted.org/packages/ee/55/c271b57db36f748f0e04a759ace9f8f759ccf22b4960c270c78a394f58be/MarkupSafe-3.0.2-cp313-cp313-win32.whl", hash = "sha256:bcf3e58998965654fdaff38e58584d8937aa3096ab5354d493c77d1fdd66d7a1", size = 15101, upload-time = "2024-10-18T15:21:31.207Z" }, + { url = "https://files.pythonhosted.org/packages/29/88/07df22d2dd4df40aba9f3e402e6dc1b8ee86297dddbad4872bd5e7b0094f/MarkupSafe-3.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:e6a2a455bd412959b57a172ce6328d2dd1f01cb2135efda2e4576e8a23fa3b0f", size = 15603, upload-time = "2024-10-18T15:21:32.032Z" }, + { url = "https://files.pythonhosted.org/packages/62/6a/8b89d24db2d32d433dffcd6a8779159da109842434f1dd2f6e71f32f738c/MarkupSafe-3.0.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:b5a6b3ada725cea8a5e634536b1b01c30bcdcd7f9c6fff4151548d5bf6b3a36c", size = 14510, upload-time = "2024-10-18T15:21:33.625Z" }, + { url = "https://files.pythonhosted.org/packages/7a/06/a10f955f70a2e5a9bf78d11a161029d278eeacbd35ef806c3fd17b13060d/MarkupSafe-3.0.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:a904af0a6162c73e3edcb969eeeb53a63ceeb5d8cf642fade7d39e7963a22ddb", size = 12486, upload-time = "2024-10-18T15:21:34.611Z" }, + { url = "https://files.pythonhosted.org/packages/34/cf/65d4a571869a1a9078198ca28f39fba5fbb910f952f9dbc5220afff9f5e6/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4aa4e5faecf353ed117801a068ebab7b7e09ffb6e1d5e412dc852e0da018126c", size = 25480, upload-time = "2024-10-18T15:21:35.398Z" }, + { url = "https://files.pythonhosted.org/packages/0c/e3/90e9651924c430b885468b56b3d597cabf6d72be4b24a0acd1fa0e12af67/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0ef13eaeee5b615fb07c9a7dadb38eac06a0608b41570d8ade51c56539e509d", size = 23914, upload-time = "2024-10-18T15:21:36.231Z" }, + { url = "https://files.pythonhosted.org/packages/66/8c/6c7cf61f95d63bb866db39085150df1f2a5bd3335298f14a66b48e92659c/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d16a81a06776313e817c951135cf7340a3e91e8c1ff2fac444cfd75fffa04afe", size = 23796, upload-time = "2024-10-18T15:21:37.073Z" }, + { url = "https://files.pythonhosted.org/packages/bb/35/cbe9238ec3f47ac9a7c8b3df7a808e7cb50fe149dc7039f5f454b3fba218/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6381026f158fdb7c72a168278597a5e3a5222e83ea18f543112b2662a9b699c5", size = 25473, upload-time = "2024-10-18T15:21:37.932Z" }, + { url = "https://files.pythonhosted.org/packages/e6/32/7621a4382488aa283cc05e8984a9c219abad3bca087be9ec77e89939ded9/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:3d79d162e7be8f996986c064d1c7c817f6df3a77fe3d6859f6f9e7be4b8c213a", size = 24114, upload-time = "2024-10-18T15:21:39.799Z" }, + { url = "https://files.pythonhosted.org/packages/0d/80/0985960e4b89922cb5a0bac0ed39c5b96cbc1a536a99f30e8c220a996ed9/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:131a3c7689c85f5ad20f9f6fb1b866f402c445b220c19fe4308c0b147ccd2ad9", size = 24098, upload-time = "2024-10-18T15:21:40.813Z" }, + { url = "https://files.pythonhosted.org/packages/82/78/fedb03c7d5380df2427038ec8d973587e90561b2d90cd472ce9254cf348b/MarkupSafe-3.0.2-cp313-cp313t-win32.whl", hash = "sha256:ba8062ed2cf21c07a9e295d5b8a2a5ce678b913b45fdf68c32d95d6c1291e0b6", size = 15208, upload-time = "2024-10-18T15:21:41.814Z" }, + { url = "https://files.pythonhosted.org/packages/4f/65/6079a46068dfceaeabb5dcad6d674f5f5c61a6fa5673746f42a9f4c233b3/MarkupSafe-3.0.2-cp313-cp313t-win_amd64.whl", hash = "sha256:e444a31f8db13eb18ada366ab3cf45fd4b31e4db1236a4448f68778c1d1a5a2f", size = 15739, upload-time = "2024-10-18T15:21:42.784Z" }, +] + +[[package]] +name = "matplotlib" +version = "3.10.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "contourpy" }, + { name = "cycler" }, + { name = "fonttools" }, + { name = "kiwisolver" }, + { name = "numpy" }, + { name = "packaging" }, + { name = "pillow" }, + { name = "pyparsing" }, + { name = "python-dateutil" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/43/91/f2939bb60b7ebf12478b030e0d7f340247390f402b3b189616aad790c366/matplotlib-3.10.5.tar.gz", hash = "sha256:352ed6ccfb7998a00881692f38b4ca083c691d3e275b4145423704c34c909076", size = 34804044, upload-time = "2025-07-31T18:09:33.805Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/66/1e/c6f6bcd882d589410b475ca1fc22e34e34c82adff519caf18f3e6dd9d682/matplotlib-3.10.5-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:00b6feadc28a08bd3c65b2894f56cf3c94fc8f7adcbc6ab4516ae1e8ed8f62e2", size = 8253056, upload-time = "2025-07-31T18:08:05.385Z" }, + { url = "https://files.pythonhosted.org/packages/53/e6/d6f7d1b59413f233793dda14419776f5f443bcccb2dfc84b09f09fe05dbe/matplotlib-3.10.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ee98a5c5344dc7f48dc261b6ba5d9900c008fc12beb3fa6ebda81273602cc389", size = 8110131, upload-time = "2025-07-31T18:08:07.293Z" }, + { url = "https://files.pythonhosted.org/packages/66/2b/bed8a45e74957549197a2ac2e1259671cd80b55ed9e1fe2b5c94d88a9202/matplotlib-3.10.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:a17e57e33de901d221a07af32c08870ed4528db0b6059dce7d7e65c1122d4bea", size = 8669603, upload-time = "2025-07-31T18:08:09.064Z" }, + { url = "https://files.pythonhosted.org/packages/7e/a7/315e9435b10d057f5e52dfc603cd353167ae28bb1a4e033d41540c0067a4/matplotlib-3.10.5-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:97b9d6443419085950ee4a5b1ee08c363e5c43d7176e55513479e53669e88468", size = 9508127, upload-time = "2025-07-31T18:08:10.845Z" }, + { url = "https://files.pythonhosted.org/packages/7f/d9/edcbb1f02ca99165365d2768d517898c22c6040187e2ae2ce7294437c413/matplotlib-3.10.5-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ceefe5d40807d29a66ae916c6a3915d60ef9f028ce1927b84e727be91d884369", size = 9566926, upload-time = "2025-07-31T18:08:13.186Z" }, + { url = "https://files.pythonhosted.org/packages/3b/d9/6dd924ad5616c97b7308e6320cf392c466237a82a2040381163b7500510a/matplotlib-3.10.5-cp312-cp312-win_amd64.whl", hash = "sha256:c04cba0f93d40e45b3c187c6c52c17f24535b27d545f757a2fffebc06c12b98b", size = 8107599, upload-time = "2025-07-31T18:08:15.116Z" }, + { url = "https://files.pythonhosted.org/packages/0e/f3/522dc319a50f7b0279fbe74f86f7a3506ce414bc23172098e8d2bdf21894/matplotlib-3.10.5-cp312-cp312-win_arm64.whl", hash = "sha256:a41bcb6e2c8e79dc99c5511ae6f7787d2fb52efd3d805fff06d5d4f667db16b2", size = 7978173, upload-time = "2025-07-31T18:08:21.518Z" }, + { url = "https://files.pythonhosted.org/packages/8d/05/4f3c1f396075f108515e45cb8d334aff011a922350e502a7472e24c52d77/matplotlib-3.10.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:354204db3f7d5caaa10e5de74549ef6a05a4550fdd1c8f831ab9bca81efd39ed", size = 8253586, upload-time = "2025-07-31T18:08:23.107Z" }, + { url = "https://files.pythonhosted.org/packages/2f/2c/e084415775aac7016c3719fe7006cdb462582c6c99ac142f27303c56e243/matplotlib-3.10.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:b072aac0c3ad563a2b3318124756cb6112157017f7431626600ecbe890df57a1", size = 8110715, upload-time = "2025-07-31T18:08:24.675Z" }, + { url = "https://files.pythonhosted.org/packages/52/1b/233e3094b749df16e3e6cd5a44849fd33852e692ad009cf7de00cf58ddf6/matplotlib-3.10.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:d52fd5b684d541b5a51fb276b2b97b010c75bee9aa392f96b4a07aeb491e33c7", size = 8669397, upload-time = "2025-07-31T18:08:26.778Z" }, + { url = "https://files.pythonhosted.org/packages/e8/ec/03f9e003a798f907d9f772eed9b7c6a9775d5bd00648b643ebfb88e25414/matplotlib-3.10.5-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee7a09ae2f4676276f5a65bd9f2bd91b4f9fbaedf49f40267ce3f9b448de501f", size = 9508646, upload-time = "2025-07-31T18:08:28.848Z" }, + { url = "https://files.pythonhosted.org/packages/91/e7/c051a7a386680c28487bca27d23b02d84f63e3d2a9b4d2fc478e6a42e37e/matplotlib-3.10.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ba6c3c9c067b83481d647af88b4e441d532acdb5ef22178a14935b0b881188f4", size = 9567424, upload-time = "2025-07-31T18:08:30.726Z" }, + { url = "https://files.pythonhosted.org/packages/36/c2/24302e93ff431b8f4173ee1dd88976c8d80483cadbc5d3d777cef47b3a1c/matplotlib-3.10.5-cp313-cp313-win_amd64.whl", hash = "sha256:07442d2692c9bd1cceaa4afb4bbe5b57b98a7599de4dabfcca92d3eea70f9ebe", size = 8107809, upload-time = "2025-07-31T18:08:33.928Z" }, + { url = "https://files.pythonhosted.org/packages/0b/33/423ec6a668d375dad825197557ed8fbdb74d62b432c1ed8235465945475f/matplotlib-3.10.5-cp313-cp313-win_arm64.whl", hash = "sha256:48fe6d47380b68a37ccfcc94f009530e84d41f71f5dae7eda7c4a5a84aa0a674", size = 7978078, upload-time = "2025-07-31T18:08:36.764Z" }, + { url = "https://files.pythonhosted.org/packages/51/17/521fc16ec766455c7bb52cc046550cf7652f6765ca8650ff120aa2d197b6/matplotlib-3.10.5-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:3b80eb8621331449fc519541a7461987f10afa4f9cfd91afcd2276ebe19bd56c", size = 8295590, upload-time = "2025-07-31T18:08:38.521Z" }, + { url = "https://files.pythonhosted.org/packages/f8/12/23c28b2c21114c63999bae129fce7fd34515641c517ae48ce7b7dcd33458/matplotlib-3.10.5-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:47a388908e469d6ca2a6015858fa924e0e8a2345a37125948d8e93a91c47933e", size = 8158518, upload-time = "2025-07-31T18:08:40.195Z" }, + { url = "https://files.pythonhosted.org/packages/81/f8/aae4eb25e8e7190759f3cb91cbeaa344128159ac92bb6b409e24f8711f78/matplotlib-3.10.5-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:8b6b49167d208358983ce26e43aa4196073b4702858670f2eb111f9a10652b4b", size = 8691815, upload-time = "2025-07-31T18:08:42.238Z" }, + { url = "https://files.pythonhosted.org/packages/d0/ba/450c39ebdd486bd33a359fc17365ade46c6a96bf637bbb0df7824de2886c/matplotlib-3.10.5-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8a8da0453a7fd8e3da114234ba70c5ba9ef0e98f190309ddfde0f089accd46ea", size = 9522814, upload-time = "2025-07-31T18:08:44.914Z" }, + { url = "https://files.pythonhosted.org/packages/89/11/9c66f6a990e27bb9aa023f7988d2d5809cb98aa39c09cbf20fba75a542ef/matplotlib-3.10.5-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:52c6573dfcb7726a9907b482cd5b92e6b5499b284ffacb04ffbfe06b3e568124", size = 9573917, upload-time = "2025-07-31T18:08:47.038Z" }, + { url = "https://files.pythonhosted.org/packages/b3/69/8b49394de92569419e5e05e82e83df9b749a0ff550d07631ea96ed2eb35a/matplotlib-3.10.5-cp313-cp313t-win_amd64.whl", hash = "sha256:a23193db2e9d64ece69cac0c8231849db7dd77ce59c7b89948cf9d0ce655a3ce", size = 8181034, upload-time = "2025-07-31T18:08:48.943Z" }, + { url = "https://files.pythonhosted.org/packages/47/23/82dc435bb98a2fc5c20dffcac8f0b083935ac28286413ed8835df40d0baa/matplotlib-3.10.5-cp313-cp313t-win_arm64.whl", hash = "sha256:56da3b102cf6da2776fef3e71cd96fcf22103a13594a18ac9a9b31314e0be154", size = 8023337, upload-time = "2025-07-31T18:08:50.791Z" }, + { url = "https://files.pythonhosted.org/packages/ac/e0/26b6cfde31f5383503ee45dcb7e691d45dadf0b3f54639332b59316a97f8/matplotlib-3.10.5-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:96ef8f5a3696f20f55597ffa91c28e2e73088df25c555f8d4754931515512715", size = 8253591, upload-time = "2025-07-31T18:08:53.254Z" }, + { url = "https://files.pythonhosted.org/packages/c1/89/98488c7ef7ea20ea659af7499628c240a608b337af4be2066d644cfd0a0f/matplotlib-3.10.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:77fab633e94b9da60512d4fa0213daeb76d5a7b05156840c4fd0399b4b818837", size = 8112566, upload-time = "2025-07-31T18:08:55.116Z" }, + { url = "https://files.pythonhosted.org/packages/52/67/42294dfedc82aea55e1a767daf3263aacfb5a125f44ba189e685bab41b6f/matplotlib-3.10.5-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:27f52634315e96b1debbfdc5c416592edcd9c4221bc2f520fd39c33db5d9f202", size = 9513281, upload-time = "2025-07-31T18:08:56.885Z" }, + { url = "https://files.pythonhosted.org/packages/e7/68/f258239e0cf34c2cbc816781c7ab6fca768452e6bf1119aedd2bd4a882a3/matplotlib-3.10.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:525f6e28c485c769d1f07935b660c864de41c37fd716bfa64158ea646f7084bb", size = 9780873, upload-time = "2025-07-31T18:08:59.241Z" }, + { url = "https://files.pythonhosted.org/packages/89/64/f4881554006bd12e4558bd66778bdd15d47b00a1f6c6e8b50f6208eda4b3/matplotlib-3.10.5-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:1f5f3ec4c191253c5f2b7c07096a142c6a1c024d9f738247bfc8e3f9643fc975", size = 9568954, upload-time = "2025-07-31T18:09:01.244Z" }, + { url = "https://files.pythonhosted.org/packages/06/f8/42779d39c3f757e1f012f2dda3319a89fb602bd2ef98ce8faf0281f4febd/matplotlib-3.10.5-cp314-cp314-win_amd64.whl", hash = "sha256:707f9c292c4cd4716f19ab8a1f93f26598222cd931e0cd98fbbb1c5994bf7667", size = 8237465, upload-time = "2025-07-31T18:09:03.206Z" }, + { url = "https://files.pythonhosted.org/packages/cf/f8/153fd06b5160f0cd27c8b9dd797fcc9fb56ac6a0ebf3c1f765b6b68d3c8a/matplotlib-3.10.5-cp314-cp314-win_arm64.whl", hash = "sha256:21a95b9bf408178d372814de7baacd61c712a62cae560b5e6f35d791776f6516", size = 8108898, upload-time = "2025-07-31T18:09:05.231Z" }, + { url = "https://files.pythonhosted.org/packages/9a/ee/c4b082a382a225fe0d2a73f1f57cf6f6f132308805b493a54c8641006238/matplotlib-3.10.5-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:a6b310f95e1102a8c7c817ef17b60ee5d1851b8c71b63d9286b66b177963039e", size = 8295636, upload-time = "2025-07-31T18:09:07.306Z" }, + { url = "https://files.pythonhosted.org/packages/30/73/2195fa2099718b21a20da82dfc753bf2af58d596b51aefe93e359dd5915a/matplotlib-3.10.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:94986a242747a0605cb3ff1cb98691c736f28a59f8ffe5175acaeb7397c49a5a", size = 8158575, upload-time = "2025-07-31T18:09:09.083Z" }, + { url = "https://files.pythonhosted.org/packages/f6/e9/a08cdb34618a91fa08f75e6738541da5cacde7c307cea18ff10f0d03fcff/matplotlib-3.10.5-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1ff10ea43288f0c8bab608a305dc6c918cc729d429c31dcbbecde3b9f4d5b569", size = 9522815, upload-time = "2025-07-31T18:09:11.191Z" }, + { url = "https://files.pythonhosted.org/packages/4e/bb/34d8b7e0d1bb6d06ef45db01dfa560d5a67b1c40c0b998ce9ccde934bb09/matplotlib-3.10.5-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f6adb644c9d040ffb0d3434e440490a66cf73dbfa118a6f79cd7568431f7a012", size = 9783514, upload-time = "2025-07-31T18:09:13.307Z" }, + { url = "https://files.pythonhosted.org/packages/12/09/d330d1e55dcca2e11b4d304cc5227f52e2512e46828d6249b88e0694176e/matplotlib-3.10.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:4fa40a8f98428f789a9dcacd625f59b7bc4e3ef6c8c7c80187a7a709475cf592", size = 9573932, upload-time = "2025-07-31T18:09:15.335Z" }, + { url = "https://files.pythonhosted.org/packages/eb/3b/f70258ac729aa004aca673800a53a2b0a26d49ca1df2eaa03289a1c40f81/matplotlib-3.10.5-cp314-cp314t-win_amd64.whl", hash = "sha256:95672a5d628b44207aab91ec20bf59c26da99de12b88f7e0b1fb0a84a86ff959", size = 8322003, upload-time = "2025-07-31T18:09:17.416Z" }, + { url = "https://files.pythonhosted.org/packages/5b/60/3601f8ce6d76a7c81c7f25a0e15fde0d6b66226dd187aa6d2838e6374161/matplotlib-3.10.5-cp314-cp314t-win_arm64.whl", hash = "sha256:2efaf97d72629e74252e0b5e3c46813e9eeaa94e011ecf8084a971a31a97f40b", size = 8153849, upload-time = "2025-07-31T18:09:19.673Z" }, +] + +[[package]] +name = "mcp" +version = "1.12.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "httpx" }, + { name = "httpx-sse" }, + { name = "jsonschema" }, + { name = "pydantic" }, + { name = "pydantic-settings" }, + { name = "python-multipart" }, + { name = "pywin32", marker = "sys_platform == 'win32'" }, + { name = "sse-starlette" }, + { name = "starlette" }, + { name = "uvicorn", marker = "sys_platform != 'emscripten'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/31/88/f6cb7e7c260cd4b4ce375f2b1614b33ce401f63af0f49f7141a2e9bf0a45/mcp-1.12.4.tar.gz", hash = "sha256:0765585e9a3a5916a3c3ab8659330e493adc7bd8b2ca6120c2d7a0c43e034ca5", size = 431148, upload-time = "2025-08-07T20:31:18.082Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ad/68/316cbc54b7163fa22571dcf42c9cc46562aae0a021b974e0a8141e897200/mcp-1.12.4-py3-none-any.whl", hash = "sha256:7aa884648969fab8e78b89399d59a683202972e12e6bc9a1c88ce7eda7743789", size = 160145, upload-time = "2025-08-07T20:31:15.69Z" }, +] + +[[package]] +name = "mdurl" +version = "0.1.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" }, +] + +[[package]] +name = "mineru" +version = "2.1.10" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "boto3" }, + { name = "click" }, + { name = "fast-langdetect" }, + { name = "httpx" }, + { name = "huggingface-hub" }, + { name = "json-repair" }, + { name = "loguru" }, + { name = "modelscope" }, + { name = "numpy" }, + { name = "opencv-python" }, + { name = "pdfminer-six" }, + { name = "pdftext" }, + { name = "pillow" }, + { name = "pypdf" }, + { name = "pypdfium2" }, + { name = "reportlab" }, + { name = "requests" }, + { name = "tqdm" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/2f/0c/f5c355435224bf04fae62115cc9b519a3c15238bb0f797183c3465e82e1d/mineru-2.1.10-py3-none-any.whl", hash = "sha256:3a8cc4f821cf61add43cf20107ed9dc17959a38e4c26ccbb205b1167278d69df", size = 1260321, upload-time = "2025-08-01T10:39:29.657Z" }, +] + +[package.optional-dependencies] +core = [ + { name = "accelerate" }, + { name = "dill" }, + { name = "doclayout-yolo" }, + { name = "fastapi" }, + { name = "ftfy" }, + { name = "gradio" }, + { name = "gradio-pdf" }, + { name = "matplotlib" }, + { name = "omegaconf" }, + { name = "openai" }, + { name = "pyclipper" }, + { name = "pydantic" }, + { name = "python-multipart" }, + { name = "pyyaml" }, + { name = "rapid-table" }, + { name = "shapely" }, + { name = "torch" }, + { name = "torchvision" }, + { name = "transformers" }, + { name = "ultralytics" }, + { name = "uvicorn" }, +] + +[[package]] +name = "mistralai" +version = "1.9.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "eval-type-backport" }, + { name = "httpx" }, + { name = "pydantic" }, + { name = "python-dateutil" }, + { name = "typing-inspection" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/28/1d/280c6582124ff4aab3009f0c0282fd48e7fa3a60457f25e9196dc3cc2b8f/mistralai-1.9.3.tar.gz", hash = "sha256:a69806247ed3a67820ecfc9a68b7dbc0c6120dad5e5c3d507bd57fa388b491b7", size = 197355, upload-time = "2025-07-23T19:12:16.916Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a5/9a/0c48706c646b0391b798f8568f2b1545e54d345805e988003c10450b7b4c/mistralai-1.9.3-py3-none-any.whl", hash = "sha256:962445e7cebadcbfbcd1daf973e853a832dcf7aba6320468fcf7e2cf5f943aec", size = 426266, upload-time = "2025-07-23T19:12:15.414Z" }, +] + +[[package]] +name = "modelscope" +version = "1.28.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "requests" }, + { name = "setuptools" }, + { name = "tqdm" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c4/54/b63159111ae87476be16d3b4f69cfff8db08ca37048501e5c0e8c0889e75/modelscope-1.28.2.tar.gz", hash = "sha256:3553a488995a40b25c91435f2b58163048db53bbb61848098acf396725f41d20", size = 4420886, upload-time = "2025-08-06T07:43:27.187Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/81/70/6cab7e0fc4316d1eec6425a2043e48a38a8bfbad6a3826e6140d41d83f5c/modelscope-1.28.2-py3-none-any.whl", hash = "sha256:aa62f3e4c93d1fc8bf8287a4415aa3d613b230f07fa9dd7e5655c25a2db5c2f7", size = 5901079, upload-time = "2025-08-06T07:43:24.408Z" }, +] + +[[package]] +name = "mpmath" +version = "1.3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e0/47/dd32fa426cc72114383ac549964eecb20ecfd886d1e5ccf5340b55b02f57/mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f", size = 508106, upload-time = "2023-03-07T16:47:11.061Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c", size = 536198, upload-time = "2023-03-07T16:47:09.197Z" }, +] + +[[package]] +name = "multidict" +version = "6.6.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/69/7f/0652e6ed47ab288e3756ea9c0df8b14950781184d4bd7883f4d87dd41245/multidict-6.6.4.tar.gz", hash = "sha256:d2d4e4787672911b48350df02ed3fa3fffdc2f2e8ca06dd6afdf34189b76a9dd", size = 101843, upload-time = "2025-08-11T12:08:48.217Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/05/f6/512ffd8fd8b37fb2680e5ac35d788f1d71bbaf37789d21a820bdc441e565/multidict-6.6.4-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:0ffb87be160942d56d7b87b0fdf098e81ed565add09eaa1294268c7f3caac4c8", size = 76516, upload-time = "2025-08-11T12:06:53.393Z" }, + { url = "https://files.pythonhosted.org/packages/99/58/45c3e75deb8855c36bd66cc1658007589662ba584dbf423d01df478dd1c5/multidict-6.6.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d191de6cbab2aff5de6c5723101705fd044b3e4c7cfd587a1929b5028b9714b3", size = 45394, upload-time = "2025-08-11T12:06:54.555Z" }, + { url = "https://files.pythonhosted.org/packages/fd/ca/e8c4472a93a26e4507c0b8e1f0762c0d8a32de1328ef72fd704ef9cc5447/multidict-6.6.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:38a0956dd92d918ad5feff3db8fcb4a5eb7dba114da917e1a88475619781b57b", size = 43591, upload-time = "2025-08-11T12:06:55.672Z" }, + { url = "https://files.pythonhosted.org/packages/05/51/edf414f4df058574a7265034d04c935aa84a89e79ce90fcf4df211f47b16/multidict-6.6.4-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:6865f6d3b7900ae020b495d599fcf3765653bc927951c1abb959017f81ae8287", size = 237215, upload-time = "2025-08-11T12:06:57.213Z" }, + { url = "https://files.pythonhosted.org/packages/c8/45/8b3d6dbad8cf3252553cc41abea09ad527b33ce47a5e199072620b296902/multidict-6.6.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0a2088c126b6f72db6c9212ad827d0ba088c01d951cee25e758c450da732c138", size = 258299, upload-time = "2025-08-11T12:06:58.946Z" }, + { url = "https://files.pythonhosted.org/packages/3c/e8/8ca2e9a9f5a435fc6db40438a55730a4bf4956b554e487fa1b9ae920f825/multidict-6.6.4-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0f37bed7319b848097085d7d48116f545985db988e2256b2e6f00563a3416ee6", size = 242357, upload-time = "2025-08-11T12:07:00.301Z" }, + { url = "https://files.pythonhosted.org/packages/0f/84/80c77c99df05a75c28490b2af8f7cba2a12621186e0a8b0865d8e745c104/multidict-6.6.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:01368e3c94032ba6ca0b78e7ccb099643466cf24f8dc8eefcfdc0571d56e58f9", size = 268369, upload-time = "2025-08-11T12:07:01.638Z" }, + { url = "https://files.pythonhosted.org/packages/0d/e9/920bfa46c27b05fb3e1ad85121fd49f441492dca2449c5bcfe42e4565d8a/multidict-6.6.4-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8fe323540c255db0bffee79ad7f048c909f2ab0edb87a597e1c17da6a54e493c", size = 269341, upload-time = "2025-08-11T12:07:02.943Z" }, + { url = "https://files.pythonhosted.org/packages/af/65/753a2d8b05daf496f4a9c367fe844e90a1b2cac78e2be2c844200d10cc4c/multidict-6.6.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8eb3025f17b0a4c3cd08cda49acf312a19ad6e8a4edd9dbd591e6506d999402", size = 256100, upload-time = "2025-08-11T12:07:04.564Z" }, + { url = "https://files.pythonhosted.org/packages/09/54/655be13ae324212bf0bc15d665a4e34844f34c206f78801be42f7a0a8aaa/multidict-6.6.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:bbc14f0365534d35a06970d6a83478b249752e922d662dc24d489af1aa0d1be7", size = 253584, upload-time = "2025-08-11T12:07:05.914Z" }, + { url = "https://files.pythonhosted.org/packages/5c/74/ab2039ecc05264b5cec73eb018ce417af3ebb384ae9c0e9ed42cb33f8151/multidict-6.6.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:75aa52fba2d96bf972e85451b99d8e19cc37ce26fd016f6d4aa60da9ab2b005f", size = 251018, upload-time = "2025-08-11T12:07:08.301Z" }, + { url = "https://files.pythonhosted.org/packages/af/0a/ccbb244ac848e56c6427f2392741c06302bbfba49c0042f1eb3c5b606497/multidict-6.6.4-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:4fefd4a815e362d4f011919d97d7b4a1e566f1dde83dc4ad8cfb5b41de1df68d", size = 251477, upload-time = "2025-08-11T12:07:10.248Z" }, + { url = "https://files.pythonhosted.org/packages/0e/b0/0ed49bba775b135937f52fe13922bc64a7eaf0a3ead84a36e8e4e446e096/multidict-6.6.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:db9801fe021f59a5b375ab778973127ca0ac52429a26e2fd86aa9508f4d26eb7", size = 263575, upload-time = "2025-08-11T12:07:11.928Z" }, + { url = "https://files.pythonhosted.org/packages/3e/d9/7fb85a85e14de2e44dfb6a24f03c41e2af8697a6df83daddb0e9b7569f73/multidict-6.6.4-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:a650629970fa21ac1fb06ba25dabfc5b8a2054fcbf6ae97c758aa956b8dba802", size = 259649, upload-time = "2025-08-11T12:07:13.244Z" }, + { url = "https://files.pythonhosted.org/packages/03/9e/b3a459bcf9b6e74fa461a5222a10ff9b544cb1cd52fd482fb1b75ecda2a2/multidict-6.6.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:452ff5da78d4720d7516a3a2abd804957532dd69296cb77319c193e3ffb87e24", size = 251505, upload-time = "2025-08-11T12:07:14.57Z" }, + { url = "https://files.pythonhosted.org/packages/86/a2/8022f78f041dfe6d71e364001a5cf987c30edfc83c8a5fb7a3f0974cff39/multidict-6.6.4-cp312-cp312-win32.whl", hash = "sha256:8c2fcb12136530ed19572bbba61b407f655e3953ba669b96a35036a11a485793", size = 41888, upload-time = "2025-08-11T12:07:15.904Z" }, + { url = "https://files.pythonhosted.org/packages/c7/eb/d88b1780d43a56db2cba24289fa744a9d216c1a8546a0dc3956563fd53ea/multidict-6.6.4-cp312-cp312-win_amd64.whl", hash = "sha256:047d9425860a8c9544fed1b9584f0c8bcd31bcde9568b047c5e567a1025ecd6e", size = 46072, upload-time = "2025-08-11T12:07:17.045Z" }, + { url = "https://files.pythonhosted.org/packages/9f/16/b929320bf5750e2d9d4931835a4c638a19d2494a5b519caaaa7492ebe105/multidict-6.6.4-cp312-cp312-win_arm64.whl", hash = "sha256:14754eb72feaa1e8ae528468f24250dd997b8e2188c3d2f593f9eba259e4b364", size = 43222, upload-time = "2025-08-11T12:07:18.328Z" }, + { url = "https://files.pythonhosted.org/packages/3a/5d/e1db626f64f60008320aab00fbe4f23fc3300d75892a3381275b3d284580/multidict-6.6.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:f46a6e8597f9bd71b31cc708195d42b634c8527fecbcf93febf1052cacc1f16e", size = 75848, upload-time = "2025-08-11T12:07:19.912Z" }, + { url = "https://files.pythonhosted.org/packages/4c/aa/8b6f548d839b6c13887253af4e29c939af22a18591bfb5d0ee6f1931dae8/multidict-6.6.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:22e38b2bc176c5eb9c0a0e379f9d188ae4cd8b28c0f53b52bce7ab0a9e534657", size = 45060, upload-time = "2025-08-11T12:07:21.163Z" }, + { url = "https://files.pythonhosted.org/packages/eb/c6/f5e97e5d99a729bc2aa58eb3ebfa9f1e56a9b517cc38c60537c81834a73f/multidict-6.6.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:5df8afd26f162da59e218ac0eefaa01b01b2e6cd606cffa46608f699539246da", size = 43269, upload-time = "2025-08-11T12:07:22.392Z" }, + { url = "https://files.pythonhosted.org/packages/dc/31/d54eb0c62516776f36fe67f84a732f97e0b0e12f98d5685bebcc6d396910/multidict-6.6.4-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:49517449b58d043023720aa58e62b2f74ce9b28f740a0b5d33971149553d72aa", size = 237158, upload-time = "2025-08-11T12:07:23.636Z" }, + { url = "https://files.pythonhosted.org/packages/c4/1c/8a10c1c25b23156e63b12165a929d8eb49a6ed769fdbefb06e6f07c1e50d/multidict-6.6.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ae9408439537c5afdca05edd128a63f56a62680f4b3c234301055d7a2000220f", size = 257076, upload-time = "2025-08-11T12:07:25.049Z" }, + { url = "https://files.pythonhosted.org/packages/ad/86/90e20b5771d6805a119e483fd3d1e8393e745a11511aebca41f0da38c3e2/multidict-6.6.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:87a32d20759dc52a9e850fe1061b6e41ab28e2998d44168a8a341b99ded1dba0", size = 240694, upload-time = "2025-08-11T12:07:26.458Z" }, + { url = "https://files.pythonhosted.org/packages/e7/49/484d3e6b535bc0555b52a0a26ba86e4d8d03fd5587d4936dc59ba7583221/multidict-6.6.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:52e3c8d43cdfff587ceedce9deb25e6ae77daba560b626e97a56ddcad3756879", size = 266350, upload-time = "2025-08-11T12:07:27.94Z" }, + { url = "https://files.pythonhosted.org/packages/bf/b4/aa4c5c379b11895083d50021e229e90c408d7d875471cb3abf721e4670d6/multidict-6.6.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ad8850921d3a8d8ff6fbef790e773cecfc260bbfa0566998980d3fa8f520bc4a", size = 267250, upload-time = "2025-08-11T12:07:29.303Z" }, + { url = "https://files.pythonhosted.org/packages/80/e5/5e22c5bf96a64bdd43518b1834c6d95a4922cc2066b7d8e467dae9b6cee6/multidict-6.6.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:497a2954adc25c08daff36f795077f63ad33e13f19bfff7736e72c785391534f", size = 254900, upload-time = "2025-08-11T12:07:30.764Z" }, + { url = "https://files.pythonhosted.org/packages/17/38/58b27fed927c07035abc02befacab42491e7388ca105e087e6e0215ead64/multidict-6.6.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:024ce601f92d780ca1617ad4be5ac15b501cc2414970ffa2bb2bbc2bd5a68fa5", size = 252355, upload-time = "2025-08-11T12:07:32.205Z" }, + { url = "https://files.pythonhosted.org/packages/d0/a1/dad75d23a90c29c02b5d6f3d7c10ab36c3197613be5d07ec49c7791e186c/multidict-6.6.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:a693fc5ed9bdd1c9e898013e0da4dcc640de7963a371c0bd458e50e046bf6438", size = 250061, upload-time = "2025-08-11T12:07:33.623Z" }, + { url = "https://files.pythonhosted.org/packages/b8/1a/ac2216b61c7f116edab6dc3378cca6c70dc019c9a457ff0d754067c58b20/multidict-6.6.4-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:190766dac95aab54cae5b152a56520fd99298f32a1266d66d27fdd1b5ac00f4e", size = 249675, upload-time = "2025-08-11T12:07:34.958Z" }, + { url = "https://files.pythonhosted.org/packages/d4/79/1916af833b800d13883e452e8e0977c065c4ee3ab7a26941fbfdebc11895/multidict-6.6.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:34d8f2a5ffdceab9dcd97c7a016deb2308531d5f0fced2bb0c9e1df45b3363d7", size = 261247, upload-time = "2025-08-11T12:07:36.588Z" }, + { url = "https://files.pythonhosted.org/packages/c5/65/d1f84fe08ac44a5fc7391cbc20a7cedc433ea616b266284413fd86062f8c/multidict-6.6.4-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:59e8d40ab1f5a8597abcef00d04845155a5693b5da00d2c93dbe88f2050f2812", size = 257960, upload-time = "2025-08-11T12:07:39.735Z" }, + { url = "https://files.pythonhosted.org/packages/13/b5/29ec78057d377b195ac2c5248c773703a6b602e132a763e20ec0457e7440/multidict-6.6.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:467fe64138cfac771f0e949b938c2e1ada2b5af22f39692aa9258715e9ea613a", size = 250078, upload-time = "2025-08-11T12:07:41.525Z" }, + { url = "https://files.pythonhosted.org/packages/c4/0e/7e79d38f70a872cae32e29b0d77024bef7834b0afb406ddae6558d9e2414/multidict-6.6.4-cp313-cp313-win32.whl", hash = "sha256:14616a30fe6d0a48d0a48d1a633ab3b8bec4cf293aac65f32ed116f620adfd69", size = 41708, upload-time = "2025-08-11T12:07:43.405Z" }, + { url = "https://files.pythonhosted.org/packages/9d/34/746696dffff742e97cd6a23da953e55d0ea51fa601fa2ff387b3edcfaa2c/multidict-6.6.4-cp313-cp313-win_amd64.whl", hash = "sha256:40cd05eaeb39e2bc8939451f033e57feaa2ac99e07dbca8afe2be450a4a3b6cf", size = 45912, upload-time = "2025-08-11T12:07:45.082Z" }, + { url = "https://files.pythonhosted.org/packages/c7/87/3bac136181e271e29170d8d71929cdeddeb77f3e8b6a0c08da3a8e9da114/multidict-6.6.4-cp313-cp313-win_arm64.whl", hash = "sha256:f6eb37d511bfae9e13e82cb4d1af36b91150466f24d9b2b8a9785816deb16605", size = 43076, upload-time = "2025-08-11T12:07:46.746Z" }, + { url = "https://files.pythonhosted.org/packages/64/94/0a8e63e36c049b571c9ae41ee301ada29c3fee9643d9c2548d7d558a1d99/multidict-6.6.4-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:6c84378acd4f37d1b507dfa0d459b449e2321b3ba5f2338f9b085cf7a7ba95eb", size = 82812, upload-time = "2025-08-11T12:07:48.402Z" }, + { url = "https://files.pythonhosted.org/packages/25/1a/be8e369dfcd260d2070a67e65dd3990dd635cbd735b98da31e00ea84cd4e/multidict-6.6.4-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0e0558693063c75f3d952abf645c78f3c5dfdd825a41d8c4d8156fc0b0da6e7e", size = 48313, upload-time = "2025-08-11T12:07:49.679Z" }, + { url = "https://files.pythonhosted.org/packages/26/5a/dd4ade298674b2f9a7b06a32c94ffbc0497354df8285f27317c66433ce3b/multidict-6.6.4-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:3f8e2384cb83ebd23fd07e9eada8ba64afc4c759cd94817433ab8c81ee4b403f", size = 46777, upload-time = "2025-08-11T12:07:51.318Z" }, + { url = "https://files.pythonhosted.org/packages/89/db/98aa28bc7e071bfba611ac2ae803c24e96dd3a452b4118c587d3d872c64c/multidict-6.6.4-cp313-cp313t-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:f996b87b420995a9174b2a7c1a8daf7db4750be6848b03eb5e639674f7963773", size = 229321, upload-time = "2025-08-11T12:07:52.965Z" }, + { url = "https://files.pythonhosted.org/packages/c7/bc/01ddda2a73dd9d167bd85d0e8ef4293836a8f82b786c63fb1a429bc3e678/multidict-6.6.4-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:cc356250cffd6e78416cf5b40dc6a74f1edf3be8e834cf8862d9ed5265cf9b0e", size = 249954, upload-time = "2025-08-11T12:07:54.423Z" }, + { url = "https://files.pythonhosted.org/packages/06/78/6b7c0f020f9aa0acf66d0ab4eb9f08375bac9a50ff5e3edb1c4ccd59eafc/multidict-6.6.4-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:dadf95aa862714ea468a49ad1e09fe00fcc9ec67d122f6596a8d40caf6cec7d0", size = 228612, upload-time = "2025-08-11T12:07:55.914Z" }, + { url = "https://files.pythonhosted.org/packages/00/44/3faa416f89b2d5d76e9d447296a81521e1c832ad6e40b92f990697b43192/multidict-6.6.4-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7dd57515bebffd8ebd714d101d4c434063322e4fe24042e90ced41f18b6d3395", size = 257528, upload-time = "2025-08-11T12:07:57.371Z" }, + { url = "https://files.pythonhosted.org/packages/05/5f/77c03b89af0fcb16f018f668207768191fb9dcfb5e3361a5e706a11db2c9/multidict-6.6.4-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:967af5f238ebc2eb1da4e77af5492219fbd9b4b812347da39a7b5f5c72c0fa45", size = 256329, upload-time = "2025-08-11T12:07:58.844Z" }, + { url = "https://files.pythonhosted.org/packages/cf/e9/ed750a2a9afb4f8dc6f13dc5b67b514832101b95714f1211cd42e0aafc26/multidict-6.6.4-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2a4c6875c37aae9794308ec43e3530e4aa0d36579ce38d89979bbf89582002bb", size = 247928, upload-time = "2025-08-11T12:08:01.037Z" }, + { url = "https://files.pythonhosted.org/packages/1f/b5/e0571bc13cda277db7e6e8a532791d4403dacc9850006cb66d2556e649c0/multidict-6.6.4-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:7f683a551e92bdb7fac545b9c6f9fa2aebdeefa61d607510b3533286fcab67f5", size = 245228, upload-time = "2025-08-11T12:08:02.96Z" }, + { url = "https://files.pythonhosted.org/packages/f3/a3/69a84b0eccb9824491f06368f5b86e72e4af54c3067c37c39099b6687109/multidict-6.6.4-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:3ba5aaf600edaf2a868a391779f7a85d93bed147854925f34edd24cc70a3e141", size = 235869, upload-time = "2025-08-11T12:08:04.746Z" }, + { url = "https://files.pythonhosted.org/packages/a9/9d/28802e8f9121a6a0804fa009debf4e753d0a59969ea9f70be5f5fdfcb18f/multidict-6.6.4-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:580b643b7fd2c295d83cad90d78419081f53fd532d1f1eb67ceb7060f61cff0d", size = 243446, upload-time = "2025-08-11T12:08:06.332Z" }, + { url = "https://files.pythonhosted.org/packages/38/ea/6c98add069b4878c1d66428a5f5149ddb6d32b1f9836a826ac764b9940be/multidict-6.6.4-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:37b7187197da6af3ee0b044dbc9625afd0c885f2800815b228a0e70f9a7f473d", size = 252299, upload-time = "2025-08-11T12:08:07.931Z" }, + { url = "https://files.pythonhosted.org/packages/3a/09/8fe02d204473e14c0af3affd50af9078839dfca1742f025cca765435d6b4/multidict-6.6.4-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:e1b93790ed0bc26feb72e2f08299691ceb6da5e9e14a0d13cc74f1869af327a0", size = 246926, upload-time = "2025-08-11T12:08:09.467Z" }, + { url = "https://files.pythonhosted.org/packages/37/3d/7b1e10d774a6df5175ecd3c92bff069e77bed9ec2a927fdd4ff5fe182f67/multidict-6.6.4-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:a506a77ddee1efcca81ecbeae27ade3e09cdf21a8ae854d766c2bb4f14053f92", size = 243383, upload-time = "2025-08-11T12:08:10.981Z" }, + { url = "https://files.pythonhosted.org/packages/50/b0/a6fae46071b645ae98786ab738447de1ef53742eaad949f27e960864bb49/multidict-6.6.4-cp313-cp313t-win32.whl", hash = "sha256:f93b2b2279883d1d0a9e1bd01f312d6fc315c5e4c1f09e112e4736e2f650bc4e", size = 47775, upload-time = "2025-08-11T12:08:12.439Z" }, + { url = "https://files.pythonhosted.org/packages/b2/0a/2436550b1520091af0600dff547913cb2d66fbac27a8c33bc1b1bccd8d98/multidict-6.6.4-cp313-cp313t-win_amd64.whl", hash = "sha256:6d46a180acdf6e87cc41dc15d8f5c2986e1e8739dc25dbb7dac826731ef381a4", size = 53100, upload-time = "2025-08-11T12:08:13.823Z" }, + { url = "https://files.pythonhosted.org/packages/97/ea/43ac51faff934086db9c072a94d327d71b7d8b40cd5dcb47311330929ef0/multidict-6.6.4-cp313-cp313t-win_arm64.whl", hash = "sha256:756989334015e3335d087a27331659820d53ba432befdef6a718398b0a8493ad", size = 45501, upload-time = "2025-08-11T12:08:15.173Z" }, + { url = "https://files.pythonhosted.org/packages/fd/69/b547032297c7e63ba2af494edba695d781af8a0c6e89e4d06cf848b21d80/multidict-6.6.4-py3-none-any.whl", hash = "sha256:27d8f8e125c07cb954e54d75d04905a9bba8a439c1d84aca94949d4d03d8601c", size = 12313, upload-time = "2025-08-11T12:08:46.891Z" }, +] + +[[package]] +name = "narwhals" +version = "2.1.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/37/f0/b0550d9b84759f4d045fd43da2f811e8b23dc2001e38c3254456da7f3adb/narwhals-2.1.2.tar.gz", hash = "sha256:afb9597e76d5b38c2c4b7c37d27a2418b8cc8049a66b8a5aca9581c92ae8f8bf", size = 533772, upload-time = "2025-08-15T08:24:50.916Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a8/01/824fff6789ce92a53242d24b6f5f3a982df2f610c51020f934bf878d2a99/narwhals-2.1.2-py3-none-any.whl", hash = "sha256:136b2f533a4eb3245c54254f137c5d14cef5c4668cff67dc6e911a602acd3547", size = 392064, upload-time = "2025-08-15T08:24:48.788Z" }, +] + +[[package]] +name = "networkx" +version = "3.5" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/6c/4f/ccdb8ad3a38e583f214547fd2f7ff1fc160c43a75af88e6aec213404b96a/networkx-3.5.tar.gz", hash = "sha256:d4c6f9cf81f52d69230866796b82afbccdec3db7ae4fbd1b65ea750feed50037", size = 2471065, upload-time = "2025-05-29T11:35:07.804Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/eb/8d/776adee7bbf76365fdd7f2552710282c79a4ead5d2a46408c9043a2b70ba/networkx-3.5-py3-none-any.whl", hash = "sha256:0030d386a9a06dee3565298b4a734b68589749a544acbb6c412dc9e2489ec6ec", size = 2034406, upload-time = "2025-05-29T11:35:04.961Z" }, +] + +[[package]] +name = "nexus-rpc" +version = "1.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ef/66/540687556bd28cf1ec370cc6881456203dfddb9dab047b8979c6865b5984/nexus_rpc-1.1.0.tar.gz", hash = "sha256:d65ad6a2f54f14e53ebe39ee30555eaeb894102437125733fb13034a04a44553", size = 77383, upload-time = "2025-07-07T19:03:58.368Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bf/2f/9e9d0dcaa4c6ffa22b7aa31069a8a264c753ff8027b36af602cce038c92f/nexus_rpc-1.1.0-py3-none-any.whl", hash = "sha256:d1b007af2aba186a27e736f8eaae39c03aed05b488084ff6c3d1785c9ba2ad38", size = 27743, upload-time = "2025-07-07T19:03:57.556Z" }, +] + +[[package]] +name = "numpy" +version = "1.26.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/65/6e/09db70a523a96d25e115e71cc56a6f9031e7b8cd166c1ac8438307c14058/numpy-1.26.4.tar.gz", hash = "sha256:2a02aba9ed12e4ac4eb3ea9421c420301a0c6460d9830d74a9df87efa4912010", size = 15786129, upload-time = "2024-02-06T00:26:44.495Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/95/12/8f2020a8e8b8383ac0177dc9570aad031a3beb12e38847f7129bacd96228/numpy-1.26.4-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:b3ce300f3644fb06443ee2222c2201dd3a89ea6040541412b8fa189341847218", size = 20335901, upload-time = "2024-02-05T23:55:32.801Z" }, + { url = "https://files.pythonhosted.org/packages/75/5b/ca6c8bd14007e5ca171c7c03102d17b4f4e0ceb53957e8c44343a9546dcc/numpy-1.26.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:03a8c78d01d9781b28a6989f6fa1bb2c4f2d51201cf99d3dd875df6fbd96b23b", size = 13685868, upload-time = "2024-02-05T23:55:56.28Z" }, + { url = "https://files.pythonhosted.org/packages/79/f8/97f10e6755e2a7d027ca783f63044d5b1bc1ae7acb12afe6a9b4286eac17/numpy-1.26.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9fad7dcb1aac3c7f0584a5a8133e3a43eeb2fe127f47e3632d43d677c66c102b", size = 13925109, upload-time = "2024-02-05T23:56:20.368Z" }, + { url = "https://files.pythonhosted.org/packages/0f/50/de23fde84e45f5c4fda2488c759b69990fd4512387a8632860f3ac9cd225/numpy-1.26.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:675d61ffbfa78604709862923189bad94014bef562cc35cf61d3a07bba02a7ed", size = 17950613, upload-time = "2024-02-05T23:56:56.054Z" }, + { url = "https://files.pythonhosted.org/packages/4c/0c/9c603826b6465e82591e05ca230dfc13376da512b25ccd0894709b054ed0/numpy-1.26.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:ab47dbe5cc8210f55aa58e4805fe224dac469cde56b9f731a4c098b91917159a", size = 13572172, upload-time = "2024-02-05T23:57:21.56Z" }, + { url = "https://files.pythonhosted.org/packages/76/8c/2ba3902e1a0fc1c74962ea9bb33a534bb05984ad7ff9515bf8d07527cadd/numpy-1.26.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:1dda2e7b4ec9dd512f84935c5f126c8bd8b9f2fc001e9f54af255e8c5f16b0e0", size = 17786643, upload-time = "2024-02-05T23:57:56.585Z" }, + { url = "https://files.pythonhosted.org/packages/28/4a/46d9e65106879492374999e76eb85f87b15328e06bd1550668f79f7b18c6/numpy-1.26.4-cp312-cp312-win32.whl", hash = "sha256:50193e430acfc1346175fcbdaa28ffec49947a06918b7b92130744e81e640110", size = 5677803, upload-time = "2024-02-05T23:58:08.963Z" }, + { url = "https://files.pythonhosted.org/packages/16/2e/86f24451c2d530c88daf997cb8d6ac622c1d40d19f5a031ed68a4b73a374/numpy-1.26.4-cp312-cp312-win_amd64.whl", hash = "sha256:08beddf13648eb95f8d867350f6a018a4be2e5ad54c8d8caed89ebca558b2818", size = 15517754, upload-time = "2024-02-05T23:58:36.364Z" }, +] + +[[package]] +name = "nvidia-cublas-cu12" +version = "12.8.4.1" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/dc/61/e24b560ab2e2eaeb3c839129175fb330dfcfc29e5203196e5541a4c44682/nvidia_cublas_cu12-12.8.4.1-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:8ac4e771d5a348c551b2a426eda6193c19aa630236b418086020df5ba9667142", size = 594346921, upload-time = "2025-03-07T01:44:31.254Z" }, +] + +[[package]] +name = "nvidia-cuda-cupti-cu12" +version = "12.8.90" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f8/02/2adcaa145158bf1a8295d83591d22e4103dbfd821bcaf6f3f53151ca4ffa/nvidia_cuda_cupti_cu12-12.8.90-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ea0cb07ebda26bb9b29ba82cda34849e73c166c18162d3913575b0c9db9a6182", size = 10248621, upload-time = "2025-03-07T01:40:21.213Z" }, +] + +[[package]] +name = "nvidia-cuda-nvrtc-cu12" +version = "12.8.93" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/05/6b/32f747947df2da6994e999492ab306a903659555dddc0fbdeb9d71f75e52/nvidia_cuda_nvrtc_cu12-12.8.93-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl", hash = "sha256:a7756528852ef889772a84c6cd89d41dfa74667e24cca16bb31f8f061e3e9994", size = 88040029, upload-time = "2025-03-07T01:42:13.562Z" }, +] + +[[package]] +name = "nvidia-cuda-runtime-cu12" +version = "12.8.90" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0d/9b/a997b638fcd068ad6e4d53b8551a7d30fe8b404d6f1804abf1df69838932/nvidia_cuda_runtime_cu12-12.8.90-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:adade8dcbd0edf427b7204d480d6066d33902cab2a4707dcfc48a2d0fd44ab90", size = 954765, upload-time = "2025-03-07T01:40:01.615Z" }, +] + +[[package]] +name = "nvidia-cudnn-cu12" +version = "9.10.2.21" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "nvidia-cublas-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/ba/51/e123d997aa098c61d029f76663dedbfb9bc8dcf8c60cbd6adbe42f76d049/nvidia_cudnn_cu12-9.10.2.21-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:949452be657fa16687d0930933f032835951ef0892b37d2d53824d1a84dc97a8", size = 706758467, upload-time = "2025-06-06T21:54:08.597Z" }, +] + +[[package]] +name = "nvidia-cufft-cu12" +version = "11.3.3.83" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/1f/13/ee4e00f30e676b66ae65b4f08cb5bcbb8392c03f54f2d5413ea99a5d1c80/nvidia_cufft_cu12-11.3.3.83-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4d2dd21ec0b88cf61b62e6b43564355e5222e4a3fb394cac0db101f2dd0d4f74", size = 193118695, upload-time = "2025-03-07T01:45:27.821Z" }, +] + +[[package]] +name = "nvidia-cufile-cu12" +version = "1.13.1.3" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bb/fe/1bcba1dfbfb8d01be8d93f07bfc502c93fa23afa6fd5ab3fc7c1df71038a/nvidia_cufile_cu12-1.13.1.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:1d069003be650e131b21c932ec3d8969c1715379251f8d23a1860554b1cb24fc", size = 1197834, upload-time = "2025-03-07T01:45:50.723Z" }, +] + +[[package]] +name = "nvidia-curand-cu12" +version = "10.3.9.90" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fb/aa/6584b56dc84ebe9cf93226a5cde4d99080c8e90ab40f0c27bda7a0f29aa1/nvidia_curand_cu12-10.3.9.90-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:b32331d4f4df5d6eefa0554c565b626c7216f87a06a4f56fab27c3b68a830ec9", size = 63619976, upload-time = "2025-03-07T01:46:23.323Z" }, +] + +[[package]] +name = "nvidia-cusolver-cu12" +version = "11.7.3.90" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "nvidia-cublas-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')" }, + { name = "nvidia-cusparse-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')" }, + { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/85/48/9a13d2975803e8cf2777d5ed57b87a0b6ca2cc795f9a4f59796a910bfb80/nvidia_cusolver_cu12-11.7.3.90-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:4376c11ad263152bd50ea295c05370360776f8c3427b30991df774f9fb26c450", size = 267506905, upload-time = "2025-03-07T01:47:16.273Z" }, +] + +[[package]] +name = "nvidia-cusparse-cu12" +version = "12.5.8.93" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/c2/f5/e1854cb2f2bcd4280c44736c93550cc300ff4b8c95ebe370d0aa7d2b473d/nvidia_cusparse_cu12-12.5.8.93-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:1ec05d76bbbd8b61b06a80e1eaf8cf4959c3d4ce8e711b65ebd0443bb0ebb13b", size = 288216466, upload-time = "2025-03-07T01:48:13.779Z" }, +] + +[[package]] +name = "nvidia-cusparselt-cu12" +version = "0.7.1" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/56/79/12978b96bd44274fe38b5dde5cfb660b1d114f70a65ef962bcbbed99b549/nvidia_cusparselt_cu12-0.7.1-py3-none-manylinux2014_x86_64.whl", hash = "sha256:f1bb701d6b930d5a7cea44c19ceb973311500847f81b634d802b7b539dc55623", size = 287193691, upload-time = "2025-02-26T00:15:44.104Z" }, +] + +[[package]] +name = "nvidia-nccl-cu12" +version = "2.27.3" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5c/5b/4e4fff7bad39adf89f735f2bc87248c81db71205b62bcc0d5ca5b606b3c3/nvidia_nccl_cu12-2.27.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:adf27ccf4238253e0b826bce3ff5fa532d65fc42322c8bfdfaf28024c0fbe039", size = 322364134, upload-time = "2025-06-03T21:58:04.013Z" }, +] + +[[package]] +name = "nvidia-nvjitlink-cu12" +version = "12.8.93" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f6/74/86a07f1d0f42998ca31312f998bd3b9a7eff7f52378f4f270c8679c77fb9/nvidia_nvjitlink_cu12-12.8.93-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl", hash = "sha256:81ff63371a7ebd6e6451970684f916be2eab07321b73c9d244dc2b4da7f73b88", size = 39254836, upload-time = "2025-03-07T01:49:55.661Z" }, +] + +[[package]] +name = "nvidia-nvtx-cu12" +version = "12.8.90" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a2/eb/86626c1bbc2edb86323022371c39aa48df6fd8b0a1647bc274577f72e90b/nvidia_nvtx_cu12-12.8.90-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:5b17e2001cc0d751a5bc2c6ec6d26ad95913324a4adb86788c944f8ce9ba441f", size = 89954, upload-time = "2025-03-07T01:42:44.131Z" }, +] + +[[package]] +name = "omegaconf" +version = "2.3.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "antlr4-python3-runtime" }, + { name = "pyyaml" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/09/48/6388f1bb9da707110532cb70ec4d2822858ddfb44f1cdf1233c20a80ea4b/omegaconf-2.3.0.tar.gz", hash = "sha256:d5d4b6d29955cc50ad50c46dc269bcd92c6e00f5f90d23ab5fee7bfca4ba4cc7", size = 3298120, upload-time = "2022-12-08T20:59:22.753Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e3/94/1843518e420fa3ed6919835845df698c7e27e183cb997394e4a670973a65/omegaconf-2.3.0-py3-none-any.whl", hash = "sha256:7b4df175cdb08ba400f45cae3bdcae7ba8365db4d165fc65fd04b050ab63b46b", size = 79500, upload-time = "2022-12-08T20:59:19.686Z" }, +] + +[[package]] +name = "onnxruntime" +version = "1.22.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "coloredlogs" }, + { name = "flatbuffers" }, + { name = "numpy" }, + { name = "packaging" }, + { name = "protobuf" }, + { name = "sympy" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/48/70/ca2a4d38a5deccd98caa145581becb20c53684f451e89eb3a39915620066/onnxruntime-1.22.1-cp312-cp312-macosx_13_0_universal2.whl", hash = "sha256:a938d11c0dc811badf78e435daa3899d9af38abee950d87f3ab7430eb5b3cf5a", size = 34342883, upload-time = "2025-07-10T19:15:38.223Z" }, + { url = "https://files.pythonhosted.org/packages/29/e5/00b099b4d4f6223b610421080d0eed9327ef9986785c9141819bbba0d396/onnxruntime-1.22.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:984cea2a02fcc5dfea44ade9aca9fe0f7a8a2cd6f77c258fc4388238618f3928", size = 14473861, upload-time = "2025-07-10T19:15:42.911Z" }, + { url = "https://files.pythonhosted.org/packages/0a/50/519828a5292a6ccd8d5cd6d2f72c6b36ea528a2ef68eca69647732539ffa/onnxruntime-1.22.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2d39a530aff1ec8d02e365f35e503193991417788641b184f5b1e8c9a6d5ce8d", size = 16475713, upload-time = "2025-07-10T19:15:45.452Z" }, + { url = "https://files.pythonhosted.org/packages/5d/54/7139d463bb0a312890c9a5db87d7815d4a8cce9e6f5f28d04f0b55fcb160/onnxruntime-1.22.1-cp312-cp312-win_amd64.whl", hash = "sha256:6a64291d57ea966a245f749eb970f4fa05a64d26672e05a83fdb5db6b7d62f87", size = 12690910, upload-time = "2025-07-10T19:15:47.478Z" }, + { url = "https://files.pythonhosted.org/packages/e0/39/77cefa829740bd830915095d8408dce6d731b244e24b1f64fe3df9f18e86/onnxruntime-1.22.1-cp313-cp313-macosx_13_0_universal2.whl", hash = "sha256:d29c7d87b6cbed8fecfd09dca471832384d12a69e1ab873e5effbb94adc3e966", size = 34342026, upload-time = "2025-07-10T19:15:50.266Z" }, + { url = "https://files.pythonhosted.org/packages/d2/a6/444291524cb52875b5de980a6e918072514df63a57a7120bf9dfae3aeed1/onnxruntime-1.22.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:460487d83b7056ba98f1f7bac80287224c31d8149b15712b0d6f5078fcc33d0f", size = 14474014, upload-time = "2025-07-10T19:15:53.991Z" }, + { url = "https://files.pythonhosted.org/packages/87/9d/45a995437879c18beff26eacc2322f4227224d04c6ac3254dce2e8950190/onnxruntime-1.22.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b0c37070268ba4e02a1a9d28560cd00cd1e94f0d4f275cbef283854f861a65fa", size = 16475427, upload-time = "2025-07-10T19:15:56.067Z" }, + { url = "https://files.pythonhosted.org/packages/4c/06/9c765e66ad32a7e709ce4cb6b95d7eaa9cb4d92a6e11ea97c20ffecaf765/onnxruntime-1.22.1-cp313-cp313-win_amd64.whl", hash = "sha256:70980d729145a36a05f74b573435531f55ef9503bcda81fc6c3d6b9306199982", size = 12690841, upload-time = "2025-07-10T19:15:58.337Z" }, + { url = "https://files.pythonhosted.org/packages/52/8c/02af24ee1c8dce4e6c14a1642a7a56cebe323d2fa01d9a360a638f7e4b75/onnxruntime-1.22.1-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:33a7980bbc4b7f446bac26c3785652fe8730ed02617d765399e89ac7d44e0f7d", size = 14479333, upload-time = "2025-07-10T19:16:00.544Z" }, + { url = "https://files.pythonhosted.org/packages/5d/15/d75fd66aba116ce3732bb1050401394c5ec52074c4f7ee18db8838dd4667/onnxruntime-1.22.1-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6e7e823624b015ea879d976cbef8bfaed2f7e2cc233d7506860a76dd37f8f381", size = 16477261, upload-time = "2025-07-10T19:16:03.226Z" }, +] + +[[package]] +name = "openai" +version = "1.99.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "distro" }, + { name = "httpx" }, + { name = "jiter" }, + { name = "pydantic" }, + { name = "sniffio" }, + { name = "tqdm" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/8a/d2/ef89c6f3f36b13b06e271d3cc984ddd2f62508a0972c1cbcc8485a6644ff/openai-1.99.9.tar.gz", hash = "sha256:f2082d155b1ad22e83247c3de3958eb4255b20ccf4a1de2e6681b6957b554e92", size = 506992, upload-time = "2025-08-12T02:31:10.054Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e8/fb/df274ca10698ee77b07bff952f302ea627cc12dac6b85289485dd77db6de/openai-1.99.9-py3-none-any.whl", hash = "sha256:9dbcdb425553bae1ac5d947147bebbd630d91bbfc7788394d4c4f3a35682ab3a", size = 786816, upload-time = "2025-08-12T02:31:08.34Z" }, +] + +[[package]] +name = "opencv-python" +version = "4.11.0.86" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/17/06/68c27a523103dad5837dc5b87e71285280c4f098c60e4fe8a8db6486ab09/opencv-python-4.11.0.86.tar.gz", hash = "sha256:03d60ccae62304860d232272e4a4fda93c39d595780cb40b161b310244b736a4", size = 95171956, upload-time = "2025-01-16T13:52:24.737Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/05/4d/53b30a2a3ac1f75f65a59eb29cf2ee7207ce64867db47036ad61743d5a23/opencv_python-4.11.0.86-cp37-abi3-macosx_13_0_arm64.whl", hash = "sha256:432f67c223f1dc2824f5e73cdfcd9db0efc8710647d4e813012195dc9122a52a", size = 37326322, upload-time = "2025-01-16T13:52:25.887Z" }, + { url = "https://files.pythonhosted.org/packages/3b/84/0a67490741867eacdfa37bc18df96e08a9d579583b419010d7f3da8ff503/opencv_python-4.11.0.86-cp37-abi3-macosx_13_0_x86_64.whl", hash = "sha256:9d05ef13d23fe97f575153558653e2d6e87103995d54e6a35db3f282fe1f9c66", size = 56723197, upload-time = "2025-01-16T13:55:21.222Z" }, + { url = "https://files.pythonhosted.org/packages/f3/bd/29c126788da65c1fb2b5fb621b7fed0ed5f9122aa22a0868c5e2c15c6d23/opencv_python-4.11.0.86-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1b92ae2c8852208817e6776ba1ea0d6b1e0a1b5431e971a2a0ddd2a8cc398202", size = 42230439, upload-time = "2025-01-16T13:51:35.822Z" }, + { url = "https://files.pythonhosted.org/packages/2c/8b/90eb44a40476fa0e71e05a0283947cfd74a5d36121a11d926ad6f3193cc4/opencv_python-4.11.0.86-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6b02611523803495003bd87362db3e1d2a0454a6a63025dc6658a9830570aa0d", size = 62986597, upload-time = "2025-01-16T13:52:08.836Z" }, + { url = "https://files.pythonhosted.org/packages/fb/d7/1d5941a9dde095468b288d989ff6539dd69cd429dbf1b9e839013d21b6f0/opencv_python-4.11.0.86-cp37-abi3-win32.whl", hash = "sha256:810549cb2a4aedaa84ad9a1c92fbfdfc14090e2749cedf2c1589ad8359aa169b", size = 29384337, upload-time = "2025-01-16T13:52:13.549Z" }, + { url = "https://files.pythonhosted.org/packages/a4/7d/f1c30a92854540bf789e9cd5dde7ef49bbe63f855b85a2e6b3db8135c591/opencv_python-4.11.0.86-cp37-abi3-win_amd64.whl", hash = "sha256:085ad9b77c18853ea66283e98affefe2de8cc4c1f43eda4c100cf9b2721142ec", size = 39488044, upload-time = "2025-01-16T13:52:21.928Z" }, +] + +[[package]] +name = "opencv-python-headless" +version = "4.11.0.86" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/36/2f/5b2b3ba52c864848885ba988f24b7f105052f68da9ab0e693cc7c25b0b30/opencv-python-headless-4.11.0.86.tar.gz", hash = "sha256:996eb282ca4b43ec6a3972414de0e2331f5d9cda2b41091a49739c19fb843798", size = 95177929, upload-time = "2025-01-16T13:53:40.22Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/dc/53/2c50afa0b1e05ecdb4603818e85f7d174e683d874ef63a6abe3ac92220c8/opencv_python_headless-4.11.0.86-cp37-abi3-macosx_13_0_arm64.whl", hash = "sha256:48128188ade4a7e517237c8e1e11a9cdf5c282761473383e77beb875bb1e61ca", size = 37326460, upload-time = "2025-01-16T13:52:57.015Z" }, + { url = "https://files.pythonhosted.org/packages/3b/43/68555327df94bb9b59a1fd645f63fafb0762515344d2046698762fc19d58/opencv_python_headless-4.11.0.86-cp37-abi3-macosx_13_0_x86_64.whl", hash = "sha256:a66c1b286a9de872c343ee7c3553b084244299714ebb50fbdcd76f07ebbe6c81", size = 56723330, upload-time = "2025-01-16T13:55:45.731Z" }, + { url = "https://files.pythonhosted.org/packages/45/be/1438ce43ebe65317344a87e4b150865c5585f4c0db880a34cdae5ac46881/opencv_python_headless-4.11.0.86-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6efabcaa9df731f29e5ea9051776715b1bdd1845d7c9530065c7951d2a2899eb", size = 29487060, upload-time = "2025-01-16T13:51:59.625Z" }, + { url = "https://files.pythonhosted.org/packages/dd/5c/c139a7876099916879609372bfa513b7f1257f7f1a908b0bdc1c2328241b/opencv_python_headless-4.11.0.86-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0e0a27c19dd1f40ddff94976cfe43066fbbe9dfbb2ec1907d66c19caef42a57b", size = 49969856, upload-time = "2025-01-16T13:53:29.654Z" }, + { url = "https://files.pythonhosted.org/packages/95/dd/ed1191c9dc91abcc9f752b499b7928aacabf10567bb2c2535944d848af18/opencv_python_headless-4.11.0.86-cp37-abi3-win32.whl", hash = "sha256:f447d8acbb0b6f2808da71fddd29c1cdd448d2bc98f72d9bb78a7a898fc9621b", size = 29324425, upload-time = "2025-01-16T13:52:49.048Z" }, + { url = "https://files.pythonhosted.org/packages/86/8a/69176a64335aed183529207ba8bc3d329c2999d852b4f3818027203f50e6/opencv_python_headless-4.11.0.86-cp37-abi3-win_amd64.whl", hash = "sha256:6c304df9caa7a6a5710b91709dd4786bf20a74d57672b3c31f7033cc638174ca", size = 39402386, upload-time = "2025-01-16T13:52:56.418Z" }, +] + +[[package]] +name = "opentelemetry-api" +version = "1.36.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "importlib-metadata" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/27/d2/c782c88b8afbf961d6972428821c302bd1e9e7bc361352172f0ca31296e2/opentelemetry_api-1.36.0.tar.gz", hash = "sha256:9a72572b9c416d004d492cbc6e61962c0501eaf945ece9b5a0f56597d8348aa0", size = 64780, upload-time = "2025-07-29T15:12:06.02Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bb/ee/6b08dde0a022c463b88f55ae81149584b125a42183407dc1045c486cc870/opentelemetry_api-1.36.0-py3-none-any.whl", hash = "sha256:02f20bcacf666e1333b6b1f04e647dc1d5111f86b8e510238fcc56d7762cda8c", size = 65564, upload-time = "2025-07-29T15:11:47.998Z" }, +] + +[[package]] +name = "orjson" +version = "3.11.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/df/1d/5e0ae38788bdf0721326695e65fdf41405ed535f633eb0df0f06f57552fa/orjson-3.11.2.tar.gz", hash = "sha256:91bdcf5e69a8fd8e8bdb3de32b31ff01d2bd60c1e8d5fe7d5afabdcf19920309", size = 5470739, upload-time = "2025-08-12T15:12:28.626Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/40/02/46054ebe7996a8adee9640dcad7d39d76c2000dc0377efa38e55dc5cbf78/orjson-3.11.2-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:901d80d349d8452162b3aa1afb82cec5bee79a10550660bc21311cc61a4c5486", size = 226528, upload-time = "2025-08-12T15:11:03.317Z" }, + { url = "https://files.pythonhosted.org/packages/e2/c6/6b6f0b4d8aea1137436546b990f71be2cd8bd870aa2f5aa14dba0fcc95dc/orjson-3.11.2-cp312-cp312-macosx_15_0_arm64.whl", hash = "sha256:cf3bd3967a360e87ee14ed82cb258b7f18c710dacf3822fb0042a14313a673a1", size = 115931, upload-time = "2025-08-12T15:11:04.759Z" }, + { url = "https://files.pythonhosted.org/packages/ae/05/4205cc97c30e82a293dd0d149b1a89b138ebe76afeca66fc129fa2aa4e6a/orjson-3.11.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:26693dde66910078229a943e80eeb99fdce6cd2c26277dc80ead9f3ab97d2131", size = 111382, upload-time = "2025-08-12T15:11:06.468Z" }, + { url = "https://files.pythonhosted.org/packages/50/c7/b8a951a93caa821f9272a7c917115d825ae2e4e8768f5ddf37968ec9de01/orjson-3.11.2-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4ad4c8acb50a28211c33fc7ef85ddf5cb18d4636a5205fd3fa2dce0411a0e30c", size = 116271, upload-time = "2025-08-12T15:11:07.845Z" }, + { url = "https://files.pythonhosted.org/packages/17/03/1006c7f8782d5327439e26d9b0ec66500ea7b679d4bbb6b891d2834ab3ee/orjson-3.11.2-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:994181e7f1725bb5f2d481d7d228738e0743b16bf319ca85c29369c65913df14", size = 119086, upload-time = "2025-08-12T15:11:09.329Z" }, + { url = "https://files.pythonhosted.org/packages/44/61/57d22bc31f36a93878a6f772aea76b2184102c6993dea897656a66d18c74/orjson-3.11.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dbb79a0476393c07656b69c8e763c3cc925fa8e1d9e9b7d1f626901bb5025448", size = 120724, upload-time = "2025-08-12T15:11:10.674Z" }, + { url = "https://files.pythonhosted.org/packages/78/a9/4550e96b4c490c83aea697d5347b8f7eb188152cd7b5a38001055ca5b379/orjson-3.11.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:191ed27a1dddb305083d8716af413d7219f40ec1d4c9b0e977453b4db0d6fb6c", size = 123577, upload-time = "2025-08-12T15:11:12.015Z" }, + { url = "https://files.pythonhosted.org/packages/3a/86/09b8cb3ebd513d708ef0c92d36ac3eebda814c65c72137b0a82d6d688fc4/orjson-3.11.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0afb89f16f07220183fd00f5f297328ed0a68d8722ad1b0c8dcd95b12bc82804", size = 121195, upload-time = "2025-08-12T15:11:13.399Z" }, + { url = "https://files.pythonhosted.org/packages/37/68/7b40b39ac2c1c644d4644e706d0de6c9999764341cd85f2a9393cb387661/orjson-3.11.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6ab6e6b4e93b1573a026b6ec16fca9541354dd58e514b62c558b58554ae04307", size = 119234, upload-time = "2025-08-12T15:11:15.134Z" }, + { url = "https://files.pythonhosted.org/packages/40/7c/bb6e7267cd80c19023d44d8cbc4ea4ed5429fcd4a7eb9950f50305697a28/orjson-3.11.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:9cb23527efb61fb75527df55d20ee47989c4ee34e01a9c98ee9ede232abf6219", size = 392250, upload-time = "2025-08-12T15:11:16.604Z" }, + { url = "https://files.pythonhosted.org/packages/64/f2/6730ace05583dbca7c1b406d59f4266e48cd0d360566e71482420fb849fc/orjson-3.11.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:a4dd1268e4035af21b8a09e4adf2e61f87ee7bf63b86d7bb0a237ac03fad5b45", size = 134572, upload-time = "2025-08-12T15:11:18.205Z" }, + { url = "https://files.pythonhosted.org/packages/96/0f/7d3e03a30d5aac0432882b539a65b8c02cb6dd4221ddb893babf09c424cc/orjson-3.11.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ff8b155b145eaf5a9d94d2c476fbe18d6021de93cf36c2ae2c8c5b775763f14e", size = 123869, upload-time = "2025-08-12T15:11:19.554Z" }, + { url = "https://files.pythonhosted.org/packages/45/80/1513265eba6d4a960f078f4b1d2bff94a571ab2d28c6f9835e03dfc65cc6/orjson-3.11.2-cp312-cp312-win32.whl", hash = "sha256:ae3bb10279d57872f9aba68c9931aa71ed3b295fa880f25e68da79e79453f46e", size = 124430, upload-time = "2025-08-12T15:11:20.914Z" }, + { url = "https://files.pythonhosted.org/packages/fb/61/eadf057b68a332351eeb3d89a4cc538d14f31cd8b5ec1b31a280426ccca2/orjson-3.11.2-cp312-cp312-win_amd64.whl", hash = "sha256:d026e1967239ec11a2559b4146a61d13914504b396f74510a1c4d6b19dfd8732", size = 119598, upload-time = "2025-08-12T15:11:22.372Z" }, + { url = "https://files.pythonhosted.org/packages/6b/3f/7f4b783402143d965ab7e9a2fc116fdb887fe53bdce7d3523271cd106098/orjson-3.11.2-cp312-cp312-win_arm64.whl", hash = "sha256:59f8d5ad08602711af9589375be98477d70e1d102645430b5a7985fdbf613b36", size = 114052, upload-time = "2025-08-12T15:11:23.762Z" }, + { url = "https://files.pythonhosted.org/packages/c2/f3/0dd6b4750eb556ae4e2c6a9cb3e219ec642e9c6d95f8ebe5dc9020c67204/orjson-3.11.2-cp313-cp313-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:a079fdba7062ab396380eeedb589afb81dc6683f07f528a03b6f7aae420a0219", size = 226419, upload-time = "2025-08-12T15:11:25.517Z" }, + { url = "https://files.pythonhosted.org/packages/44/d5/e67f36277f78f2af8a4690e0c54da6b34169812f807fd1b4bfc4dbcf9558/orjson-3.11.2-cp313-cp313-macosx_15_0_arm64.whl", hash = "sha256:6a5f62ebbc530bb8bb4b1ead103647b395ba523559149b91a6c545f7cd4110ad", size = 115803, upload-time = "2025-08-12T15:11:27.357Z" }, + { url = "https://files.pythonhosted.org/packages/24/37/ff8bc86e0dacc48f07c2b6e20852f230bf4435611bab65e3feae2b61f0ae/orjson-3.11.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7df6c7b8b0931feb3420b72838c3e2ba98c228f7aa60d461bc050cf4ca5f7b2", size = 111337, upload-time = "2025-08-12T15:11:28.805Z" }, + { url = "https://files.pythonhosted.org/packages/b9/25/37d4d3e8079ea9784ea1625029988e7f4594ce50d4738b0c1e2bf4a9e201/orjson-3.11.2-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6f59dfea7da1fced6e782bb3699718088b1036cb361f36c6e4dd843c5111aefe", size = 116222, upload-time = "2025-08-12T15:11:30.18Z" }, + { url = "https://files.pythonhosted.org/packages/b7/32/a63fd9c07fce3b4193dcc1afced5dd4b0f3a24e27556604e9482b32189c9/orjson-3.11.2-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:edf49146520fef308c31aa4c45b9925fd9c7584645caca7c0c4217d7900214ae", size = 119020, upload-time = "2025-08-12T15:11:31.59Z" }, + { url = "https://files.pythonhosted.org/packages/b4/b6/400792b8adc3079a6b5d649264a3224d6342436d9fac9a0ed4abc9dc4596/orjson-3.11.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:50995bbeb5d41a32ad15e023305807f561ac5dcd9bd41a12c8d8d1d2c83e44e6", size = 120721, upload-time = "2025-08-12T15:11:33.035Z" }, + { url = "https://files.pythonhosted.org/packages/40/f3/31ab8f8c699eb9e65af8907889a0b7fef74c1d2b23832719a35da7bb0c58/orjson-3.11.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2cc42960515076eb639b705f105712b658c525863d89a1704d984b929b0577d1", size = 123574, upload-time = "2025-08-12T15:11:34.433Z" }, + { url = "https://files.pythonhosted.org/packages/bd/a6/ce4287c412dff81878f38d06d2c80845709c60012ca8daf861cb064b4574/orjson-3.11.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c56777cab2a7b2a8ea687fedafb84b3d7fdafae382165c31a2adf88634c432fa", size = 121225, upload-time = "2025-08-12T15:11:36.133Z" }, + { url = "https://files.pythonhosted.org/packages/69/b0/7a881b2aef4fed0287d2a4fbb029d01ed84fa52b4a68da82bdee5e50598e/orjson-3.11.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:07349e88025b9b5c783077bf7a9f401ffbfb07fd20e86ec6fc5b7432c28c2c5e", size = 119201, upload-time = "2025-08-12T15:11:37.642Z" }, + { url = "https://files.pythonhosted.org/packages/cf/98/a325726b37f7512ed6338e5e65035c3c6505f4e628b09a5daf0419f054ea/orjson-3.11.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:45841fbb79c96441a8c58aa29ffef570c5df9af91f0f7a9572e5505e12412f15", size = 392193, upload-time = "2025-08-12T15:11:39.153Z" }, + { url = "https://files.pythonhosted.org/packages/cb/4f/a7194f98b0ce1d28190e0c4caa6d091a3fc8d0107ad2209f75c8ba398984/orjson-3.11.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:13d8d8db6cd8d89d4d4e0f4161acbbb373a4d2a4929e862d1d2119de4aa324ac", size = 134548, upload-time = "2025-08-12T15:11:40.768Z" }, + { url = "https://files.pythonhosted.org/packages/e8/5e/b84caa2986c3f472dc56343ddb0167797a708a8d5c3be043e1e2677b55df/orjson-3.11.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:51da1ee2178ed09c00d09c1b953e45846bbc16b6420965eb7a913ba209f606d8", size = 123798, upload-time = "2025-08-12T15:11:42.164Z" }, + { url = "https://files.pythonhosted.org/packages/9c/5b/e398449080ce6b4c8fcadad57e51fa16f65768e1b142ba90b23ac5d10801/orjson-3.11.2-cp313-cp313-win32.whl", hash = "sha256:51dc033df2e4a4c91c0ba4f43247de99b3cbf42ee7a42ee2b2b2f76c8b2f2cb5", size = 124402, upload-time = "2025-08-12T15:11:44.036Z" }, + { url = "https://files.pythonhosted.org/packages/b3/66/429e4608e124debfc4790bfc37131f6958e59510ba3b542d5fc163be8e5f/orjson-3.11.2-cp313-cp313-win_amd64.whl", hash = "sha256:29d91d74942b7436f29b5d1ed9bcfc3f6ef2d4f7c4997616509004679936650d", size = 119498, upload-time = "2025-08-12T15:11:45.864Z" }, + { url = "https://files.pythonhosted.org/packages/7b/04/f8b5f317cce7ad3580a9ad12d7e2df0714dfa8a83328ecddd367af802f5b/orjson-3.11.2-cp313-cp313-win_arm64.whl", hash = "sha256:4ca4fb5ac21cd1e48028d4f708b1bb13e39c42d45614befd2ead004a8bba8535", size = 114051, upload-time = "2025-08-12T15:11:47.555Z" }, + { url = "https://files.pythonhosted.org/packages/74/83/2c363022b26c3c25b3708051a19d12f3374739bb81323f05b284392080c0/orjson-3.11.2-cp314-cp314-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:3dcba7101ea6a8d4ef060746c0f2e7aa8e2453a1012083e1ecce9726d7554cb7", size = 226406, upload-time = "2025-08-12T15:11:49.445Z" }, + { url = "https://files.pythonhosted.org/packages/b0/a7/aa3c973de0b33fc93b4bd71691665ffdfeae589ea9d0625584ab10a7d0f5/orjson-3.11.2-cp314-cp314-macosx_15_0_arm64.whl", hash = "sha256:15d17bdb76a142e1f55d91913e012e6e6769659daa6bfef3ef93f11083137e81", size = 115788, upload-time = "2025-08-12T15:11:50.992Z" }, + { url = "https://files.pythonhosted.org/packages/ef/f2/e45f233dfd09fdbb052ec46352363dca3906618e1a2b264959c18f809d0b/orjson-3.11.2-cp314-cp314-manylinux_2_34_aarch64.whl", hash = "sha256:53c9e81768c69d4b66b8876ec3c8e431c6e13477186d0db1089d82622bccd19f", size = 111318, upload-time = "2025-08-12T15:11:52.495Z" }, + { url = "https://files.pythonhosted.org/packages/3e/23/cf5a73c4da6987204cbbf93167f353ff0c5013f7c5e5ef845d4663a366da/orjson-3.11.2-cp314-cp314-manylinux_2_34_x86_64.whl", hash = "sha256:d4f13af59a7b84c1ca6b8a7ab70d608f61f7c44f9740cd42409e6ae7b6c8d8b7", size = 121231, upload-time = "2025-08-12T15:11:53.941Z" }, + { url = "https://files.pythonhosted.org/packages/40/1d/47468a398ae68a60cc21e599144e786e035bb12829cb587299ecebc088f1/orjson-3.11.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:bde64aa469b5ee46cc960ed241fae3721d6a8801dacb2ca3466547a2535951e4", size = 119204, upload-time = "2025-08-12T15:11:55.409Z" }, + { url = "https://files.pythonhosted.org/packages/4d/d9/f99433d89b288b5bc8836bffb32a643f805e673cf840ef8bab6e73ced0d1/orjson-3.11.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:b5ca86300aeb383c8fa759566aca065878d3d98c3389d769b43f0a2e84d52c5f", size = 392237, upload-time = "2025-08-12T15:11:57.18Z" }, + { url = "https://files.pythonhosted.org/packages/d4/dc/1b9d80d40cebef603325623405136a29fb7d08c877a728c0943dd066c29a/orjson-3.11.2-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:24e32a558ebed73a6a71c8f1cbc163a7dd5132da5270ff3d8eeb727f4b6d1bc7", size = 134578, upload-time = "2025-08-12T15:11:58.844Z" }, + { url = "https://files.pythonhosted.org/packages/45/b3/72e7a4c5b6485ef4e83ef6aba7f1dd041002bad3eb5d1d106ca5b0fc02c6/orjson-3.11.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:e36319a5d15b97e4344110517450396845cc6789aed712b1fbf83c1bd95792f6", size = 123799, upload-time = "2025-08-12T15:12:00.352Z" }, + { url = "https://files.pythonhosted.org/packages/c8/3e/a3d76b392e7acf9b34dc277171aad85efd6accc75089bb35b4c614990ea9/orjson-3.11.2-cp314-cp314-win32.whl", hash = "sha256:40193ada63fab25e35703454d65b6afc71dbc65f20041cb46c6d91709141ef7f", size = 124461, upload-time = "2025-08-12T15:12:01.854Z" }, + { url = "https://files.pythonhosted.org/packages/fb/e3/75c6a596ff8df9e4a5894813ff56695f0a218e6ea99420b4a645c4f7795d/orjson-3.11.2-cp314-cp314-win_amd64.whl", hash = "sha256:7c8ac5f6b682d3494217085cf04dadae66efee45349ad4ee2a1da3c97e2305a8", size = 119494, upload-time = "2025-08-12T15:12:03.337Z" }, + { url = "https://files.pythonhosted.org/packages/5b/3d/9e74742fc261c5ca473c96bb3344d03995869e1dc6402772c60afb97736a/orjson-3.11.2-cp314-cp314-win_arm64.whl", hash = "sha256:21cf261e8e79284242e4cb1e5924df16ae28255184aafeff19be1405f6d33f67", size = 114046, upload-time = "2025-08-12T15:12:04.87Z" }, +] + +[[package]] +name = "ormsgpack" +version = "1.10.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/92/36/44eed5ef8ce93cded76a576780bab16425ce7876f10d3e2e6265e46c21ea/ormsgpack-1.10.0.tar.gz", hash = "sha256:7f7a27efd67ef22d7182ec3b7fa7e9d147c3ad9be2a24656b23c989077e08b16", size = 58629, upload-time = "2025-05-24T19:07:53.944Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/99/95/f3ab1a7638f6aa9362e87916bb96087fbbc5909db57e19f12ad127560e1e/ormsgpack-1.10.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:4e159d50cd4064d7540e2bc6a0ab66eab70b0cc40c618b485324ee17037527c0", size = 376806, upload-time = "2025-05-24T19:07:17.221Z" }, + { url = "https://files.pythonhosted.org/packages/6c/2b/42f559f13c0b0f647b09d749682851d47c1a7e48308c43612ae6833499c8/ormsgpack-1.10.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:eeb47c85f3a866e29279d801115b554af0fefc409e2ed8aa90aabfa77efe5cc6", size = 204433, upload-time = "2025-05-24T19:07:18.569Z" }, + { url = "https://files.pythonhosted.org/packages/45/42/1ca0cb4d8c80340a89a4af9e6d8951fb8ba0d076a899d2084eadf536f677/ormsgpack-1.10.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c28249574934534c9bd5dce5485c52f21bcea0ee44d13ece3def6e3d2c3798b5", size = 215547, upload-time = "2025-05-24T19:07:20.245Z" }, + { url = "https://files.pythonhosted.org/packages/0a/38/184a570d7c44c0260bc576d1daaac35b2bfd465a50a08189518505748b9a/ormsgpack-1.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1957dcadbb16e6a981cd3f9caef9faf4c2df1125e2a1b702ee8236a55837ce07", size = 216746, upload-time = "2025-05-24T19:07:21.83Z" }, + { url = "https://files.pythonhosted.org/packages/69/2f/1aaffd08f6b7fdc2a57336a80bdfb8df24e6a65ada5aa769afecfcbc6cc6/ormsgpack-1.10.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3b29412558c740bf6bac156727aa85ac67f9952cd6f071318f29ee72e1a76044", size = 384783, upload-time = "2025-05-24T19:07:23.674Z" }, + { url = "https://files.pythonhosted.org/packages/a9/63/3e53d6f43bb35e00c98f2b8ab2006d5138089ad254bc405614fbf0213502/ormsgpack-1.10.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:6933f350c2041ec189fe739f0ba7d6117c8772f5bc81f45b97697a84d03020dd", size = 479076, upload-time = "2025-05-24T19:07:25.047Z" }, + { url = "https://files.pythonhosted.org/packages/b8/19/fa1121b03b61402bb4d04e35d164e2320ef73dfb001b57748110319dd014/ormsgpack-1.10.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:9a86de06d368fcc2e58b79dece527dc8ca831e0e8b9cec5d6e633d2777ec93d0", size = 390447, upload-time = "2025-05-24T19:07:26.568Z" }, + { url = "https://files.pythonhosted.org/packages/b0/0d/73143ecb94ac4a5dcba223402139240a75dee0cc6ba8a543788a5646407a/ormsgpack-1.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:35fa9f81e5b9a0dab42e09a73f7339ecffdb978d6dbf9deb2ecf1e9fc7808722", size = 121401, upload-time = "2025-05-24T19:07:28.308Z" }, + { url = "https://files.pythonhosted.org/packages/61/f8/ec5f4e03268d0097545efaab2893aa63f171cf2959cb0ea678a5690e16a1/ormsgpack-1.10.0-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:8d816d45175a878993b7372bd5408e0f3ec5a40f48e2d5b9d8f1cc5d31b61f1f", size = 376806, upload-time = "2025-05-24T19:07:29.555Z" }, + { url = "https://files.pythonhosted.org/packages/c1/19/b3c53284aad1e90d4d7ed8c881a373d218e16675b8b38e3569d5b40cc9b8/ormsgpack-1.10.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a90345ccb058de0f35262893751c603b6376b05f02be2b6f6b7e05d9dd6d5643", size = 204433, upload-time = "2025-05-24T19:07:30.977Z" }, + { url = "https://files.pythonhosted.org/packages/09/0b/845c258f59df974a20a536c06cace593698491defdd3d026a8a5f9b6e745/ormsgpack-1.10.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:144b5e88f1999433e54db9d637bae6fe21e935888be4e3ac3daecd8260bd454e", size = 215549, upload-time = "2025-05-24T19:07:32.345Z" }, + { url = "https://files.pythonhosted.org/packages/61/56/57fce8fb34ca6c9543c026ebebf08344c64dbb7b6643d6ddd5355d37e724/ormsgpack-1.10.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2190b352509d012915921cca76267db136cd026ddee42f1b0d9624613cc7058c", size = 216747, upload-time = "2025-05-24T19:07:34.075Z" }, + { url = "https://files.pythonhosted.org/packages/b8/3f/655b5f6a2475c8d209f5348cfbaaf73ce26237b92d79ef2ad439407dd0fa/ormsgpack-1.10.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:86fd9c1737eaba43d3bb2730add9c9e8b5fbed85282433705dd1b1e88ea7e6fb", size = 384785, upload-time = "2025-05-24T19:07:35.83Z" }, + { url = "https://files.pythonhosted.org/packages/4b/94/687a0ad8afd17e4bce1892145d6a1111e58987ddb176810d02a1f3f18686/ormsgpack-1.10.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:33afe143a7b61ad21bb60109a86bb4e87fec70ef35db76b89c65b17e32da7935", size = 479076, upload-time = "2025-05-24T19:07:37.533Z" }, + { url = "https://files.pythonhosted.org/packages/c8/34/68925232e81e0e062a2f0ac678f62aa3b6f7009d6a759e19324dbbaebae7/ormsgpack-1.10.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:f23d45080846a7b90feabec0d330a9cc1863dc956728412e4f7986c80ab3a668", size = 390446, upload-time = "2025-05-24T19:07:39.469Z" }, + { url = "https://files.pythonhosted.org/packages/12/ad/f4e1a36a6d1714afb7ffb74b3ababdcb96529cf4e7a216f9f7c8eda837b6/ormsgpack-1.10.0-cp313-cp313-win_amd64.whl", hash = "sha256:534d18acb805c75e5fba09598bf40abe1851c853247e61dda0c01f772234da69", size = 121399, upload-time = "2025-05-24T19:07:40.854Z" }, +] + +[[package]] +name = "packaging" +version = "25.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a1/d4/1fc4078c65507b51b96ca8f8c3ba19e6a61c8253c72794544580a7b6c24d/packaging-25.0.tar.gz", hash = "sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f", size = 165727, upload-time = "2025-04-19T11:48:59.673Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484", size = 66469, upload-time = "2025-04-19T11:48:57.875Z" }, +] + +[[package]] +name = "pandas" +version = "2.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, + { name = "python-dateutil" }, + { name = "pytz" }, + { name = "tzdata" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/d1/6f/75aa71f8a14267117adeeed5d21b204770189c0a0025acbdc03c337b28fc/pandas-2.3.1.tar.gz", hash = "sha256:0a95b9ac964fe83ce317827f80304d37388ea77616b1425f0ae41c9d2d0d7bb2", size = 4487493, upload-time = "2025-07-07T19:20:04.079Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/46/de/b8445e0f5d217a99fe0eeb2f4988070908979bec3587c0633e5428ab596c/pandas-2.3.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:689968e841136f9e542020698ee1c4fbe9caa2ed2213ae2388dc7b81721510d3", size = 11588172, upload-time = "2025-07-07T19:18:52.054Z" }, + { url = "https://files.pythonhosted.org/packages/1e/e0/801cdb3564e65a5ac041ab99ea6f1d802a6c325bb6e58c79c06a3f1cd010/pandas-2.3.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:025e92411c16cbe5bb2a4abc99732a6b132f439b8aab23a59fa593eb00704232", size = 10717365, upload-time = "2025-07-07T19:18:54.785Z" }, + { url = "https://files.pythonhosted.org/packages/51/a5/c76a8311833c24ae61a376dbf360eb1b1c9247a5d9c1e8b356563b31b80c/pandas-2.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9b7ff55f31c4fcb3e316e8f7fa194566b286d6ac430afec0d461163312c5841e", size = 11280411, upload-time = "2025-07-07T19:18:57.045Z" }, + { url = "https://files.pythonhosted.org/packages/da/01/e383018feba0a1ead6cf5fe8728e5d767fee02f06a3d800e82c489e5daaf/pandas-2.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7dcb79bf373a47d2a40cf7232928eb7540155abbc460925c2c96d2d30b006eb4", size = 11988013, upload-time = "2025-07-07T19:18:59.771Z" }, + { url = "https://files.pythonhosted.org/packages/5b/14/cec7760d7c9507f11c97d64f29022e12a6cc4fc03ac694535e89f88ad2ec/pandas-2.3.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:56a342b231e8862c96bdb6ab97170e203ce511f4d0429589c8ede1ee8ece48b8", size = 12767210, upload-time = "2025-07-07T19:19:02.944Z" }, + { url = "https://files.pythonhosted.org/packages/50/b9/6e2d2c6728ed29fb3d4d4d302504fb66f1a543e37eb2e43f352a86365cdf/pandas-2.3.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ca7ed14832bce68baef331f4d7f294411bed8efd032f8109d690df45e00c4679", size = 13440571, upload-time = "2025-07-07T19:19:06.82Z" }, + { url = "https://files.pythonhosted.org/packages/80/a5/3a92893e7399a691bad7664d977cb5e7c81cf666c81f89ea76ba2bff483d/pandas-2.3.1-cp312-cp312-win_amd64.whl", hash = "sha256:ac942bfd0aca577bef61f2bc8da8147c4ef6879965ef883d8e8d5d2dc3e744b8", size = 10987601, upload-time = "2025-07-07T19:19:09.589Z" }, + { url = "https://files.pythonhosted.org/packages/32/ed/ff0a67a2c5505e1854e6715586ac6693dd860fbf52ef9f81edee200266e7/pandas-2.3.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:9026bd4a80108fac2239294a15ef9003c4ee191a0f64b90f170b40cfb7cf2d22", size = 11531393, upload-time = "2025-07-07T19:19:12.245Z" }, + { url = "https://files.pythonhosted.org/packages/c7/db/d8f24a7cc9fb0972adab0cc80b6817e8bef888cfd0024eeb5a21c0bb5c4a/pandas-2.3.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:6de8547d4fdb12421e2d047a2c446c623ff4c11f47fddb6b9169eb98ffba485a", size = 10668750, upload-time = "2025-07-07T19:19:14.612Z" }, + { url = "https://files.pythonhosted.org/packages/0f/b0/80f6ec783313f1e2356b28b4fd8d2148c378370045da918c73145e6aab50/pandas-2.3.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:782647ddc63c83133b2506912cc6b108140a38a37292102aaa19c81c83db2928", size = 11342004, upload-time = "2025-07-07T19:19:16.857Z" }, + { url = "https://files.pythonhosted.org/packages/e9/e2/20a317688435470872885e7fc8f95109ae9683dec7c50be29b56911515a5/pandas-2.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2ba6aff74075311fc88504b1db890187a3cd0f887a5b10f5525f8e2ef55bfdb9", size = 12050869, upload-time = "2025-07-07T19:19:19.265Z" }, + { url = "https://files.pythonhosted.org/packages/55/79/20d746b0a96c67203a5bee5fb4e00ac49c3e8009a39e1f78de264ecc5729/pandas-2.3.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:e5635178b387bd2ba4ac040f82bc2ef6e6b500483975c4ebacd34bec945fda12", size = 12750218, upload-time = "2025-07-07T19:19:21.547Z" }, + { url = "https://files.pythonhosted.org/packages/7c/0f/145c8b41e48dbf03dd18fdd7f24f8ba95b8254a97a3379048378f33e7838/pandas-2.3.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6f3bf5ec947526106399a9e1d26d40ee2b259c66422efdf4de63c848492d91bb", size = 13416763, upload-time = "2025-07-07T19:19:23.939Z" }, + { url = "https://files.pythonhosted.org/packages/b2/c0/54415af59db5cdd86a3d3bf79863e8cc3fa9ed265f0745254061ac09d5f2/pandas-2.3.1-cp313-cp313-win_amd64.whl", hash = "sha256:1c78cf43c8fde236342a1cb2c34bcff89564a7bfed7e474ed2fffa6aed03a956", size = 10987482, upload-time = "2025-07-07T19:19:42.699Z" }, + { url = "https://files.pythonhosted.org/packages/48/64/2fd2e400073a1230e13b8cd604c9bc95d9e3b962e5d44088ead2e8f0cfec/pandas-2.3.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:8dfc17328e8da77be3cf9f47509e5637ba8f137148ed0e9b5241e1baf526e20a", size = 12029159, upload-time = "2025-07-07T19:19:26.362Z" }, + { url = "https://files.pythonhosted.org/packages/d8/0a/d84fd79b0293b7ef88c760d7dca69828d867c89b6d9bc52d6a27e4d87316/pandas-2.3.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:ec6c851509364c59a5344458ab935e6451b31b818be467eb24b0fe89bd05b6b9", size = 11393287, upload-time = "2025-07-07T19:19:29.157Z" }, + { url = "https://files.pythonhosted.org/packages/50/ae/ff885d2b6e88f3c7520bb74ba319268b42f05d7e583b5dded9837da2723f/pandas-2.3.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:911580460fc4884d9b05254b38a6bfadddfcc6aaef856fb5859e7ca202e45275", size = 11309381, upload-time = "2025-07-07T19:19:31.436Z" }, + { url = "https://files.pythonhosted.org/packages/85/86/1fa345fc17caf5d7780d2699985c03dbe186c68fee00b526813939062bb0/pandas-2.3.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2f4d6feeba91744872a600e6edbbd5b033005b431d5ae8379abee5bcfa479fab", size = 11883998, upload-time = "2025-07-07T19:19:34.267Z" }, + { url = "https://files.pythonhosted.org/packages/81/aa/e58541a49b5e6310d89474333e994ee57fea97c8aaa8fc7f00b873059bbf/pandas-2.3.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:fe37e757f462d31a9cd7580236a82f353f5713a80e059a29753cf938c6775d96", size = 12704705, upload-time = "2025-07-07T19:19:36.856Z" }, + { url = "https://files.pythonhosted.org/packages/d5/f9/07086f5b0f2a19872554abeea7658200824f5835c58a106fa8f2ae96a46c/pandas-2.3.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:5db9637dbc24b631ff3707269ae4559bce4b7fd75c1c4d7e13f40edc42df4444", size = 13189044, upload-time = "2025-07-07T19:19:39.999Z" }, +] + +[[package]] +name = "pdfminer-six" +version = "20250506" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "charset-normalizer" }, + { name = "cryptography" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/78/46/5223d613ac4963e1f7c07b2660fe0e9e770102ec6bda8c038400113fb215/pdfminer_six-20250506.tar.gz", hash = "sha256:b03cc8df09cf3c7aba8246deae52e0bca7ebb112a38895b5e1d4f5dd2b8ca2e7", size = 7387678, upload-time = "2025-05-06T16:17:00.787Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/73/16/7a432c0101fa87457e75cb12c879e1749c5870a786525e2e0f42871d6462/pdfminer_six-20250506-py3-none-any.whl", hash = "sha256:d81ad173f62e5f841b53a8ba63af1a4a355933cfc0ffabd608e568b9193909e3", size = 5620187, upload-time = "2025-05-06T16:16:58.669Z" }, +] + +[[package]] +name = "pdftext" +version = "0.6.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "pydantic" }, + { name = "pydantic-settings" }, + { name = "pypdfium2" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a9/7b/fe3205d44d6058932bbc785f0b9da2ed35b62e17479a8a7d2baca9df1cc6/pdftext-0.6.3.tar.gz", hash = "sha256:ab5c5dfe0f1fb78de1db837ccadac1ea41b07ce1890fead973c9a84cdaf54dec", size = 21968, upload-time = "2025-06-11T14:42:09.492Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bc/b9/4437bb89f04e57f48c96492a50d6168da5e201940de6620730d390449991/pdftext-0.6.3-py3-none-any.whl", hash = "sha256:528431ed8bdce39d74372cd3d27e8544af812f1f1adc81db229cf9fb48dacacb", size = 23693, upload-time = "2025-06-11T14:42:08.157Z" }, +] + +[[package]] +name = "pgvector" +version = "0.4.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/44/43/9a0fb552ab4fd980680c2037962e331820f67585df740bedc4a2b50faf20/pgvector-0.4.1.tar.gz", hash = "sha256:83d3a1c044ff0c2f1e95d13dfb625beb0b65506cfec0941bfe81fd0ad44f4003", size = 30646, upload-time = "2025-04-26T18:56:37.151Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bf/21/b5735d5982892c878ff3d01bb06e018c43fc204428361ee9fc25a1b2125c/pgvector-0.4.1-py3-none-any.whl", hash = "sha256:34bb4e99e1b13d08a2fe82dda9f860f15ddcd0166fbb25bffe15821cbfeb7362", size = 27086, upload-time = "2025-04-26T18:56:35.956Z" }, +] + +[[package]] +name = "pillow" +version = "11.3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f3/0d/d0d6dea55cd152ce3d6767bb38a8fc10e33796ba4ba210cbab9354b6d238/pillow-11.3.0.tar.gz", hash = "sha256:3828ee7586cd0b2091b6209e5ad53e20d0649bbe87164a459d0676e035e8f523", size = 47113069, upload-time = "2025-07-01T09:16:30.666Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/40/fe/1bc9b3ee13f68487a99ac9529968035cca2f0a51ec36892060edcc51d06a/pillow-11.3.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:fdae223722da47b024b867c1ea0be64e0df702c5e0a60e27daad39bf960dd1e4", size = 5278800, upload-time = "2025-07-01T09:14:17.648Z" }, + { url = "https://files.pythonhosted.org/packages/2c/32/7e2ac19b5713657384cec55f89065fb306b06af008cfd87e572035b27119/pillow-11.3.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:921bd305b10e82b4d1f5e802b6850677f965d8394203d182f078873851dada69", size = 4686296, upload-time = "2025-07-01T09:14:19.828Z" }, + { url = "https://files.pythonhosted.org/packages/8e/1e/b9e12bbe6e4c2220effebc09ea0923a07a6da1e1f1bfbc8d7d29a01ce32b/pillow-11.3.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:eb76541cba2f958032d79d143b98a3a6b3ea87f0959bbe256c0b5e416599fd5d", size = 5871726, upload-time = "2025-07-03T13:10:04.448Z" }, + { url = "https://files.pythonhosted.org/packages/8d/33/e9200d2bd7ba00dc3ddb78df1198a6e80d7669cce6c2bdbeb2530a74ec58/pillow-11.3.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:67172f2944ebba3d4a7b54f2e95c786a3a50c21b88456329314caaa28cda70f6", size = 7644652, upload-time = "2025-07-03T13:10:10.391Z" }, + { url = "https://files.pythonhosted.org/packages/41/f1/6f2427a26fc683e00d985bc391bdd76d8dd4e92fac33d841127eb8fb2313/pillow-11.3.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:97f07ed9f56a3b9b5f49d3661dc9607484e85c67e27f3e8be2c7d28ca032fec7", size = 5977787, upload-time = "2025-07-01T09:14:21.63Z" }, + { url = "https://files.pythonhosted.org/packages/e4/c9/06dd4a38974e24f932ff5f98ea3c546ce3f8c995d3f0985f8e5ba48bba19/pillow-11.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:676b2815362456b5b3216b4fd5bd89d362100dc6f4945154ff172e206a22c024", size = 6645236, upload-time = "2025-07-01T09:14:23.321Z" }, + { url = "https://files.pythonhosted.org/packages/40/e7/848f69fb79843b3d91241bad658e9c14f39a32f71a301bcd1d139416d1be/pillow-11.3.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3e184b2f26ff146363dd07bde8b711833d7b0202e27d13540bfe2e35a323a809", size = 6086950, upload-time = "2025-07-01T09:14:25.237Z" }, + { url = "https://files.pythonhosted.org/packages/0b/1a/7cff92e695a2a29ac1958c2a0fe4c0b2393b60aac13b04a4fe2735cad52d/pillow-11.3.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:6be31e3fc9a621e071bc17bb7de63b85cbe0bfae91bb0363c893cbe67247780d", size = 6723358, upload-time = "2025-07-01T09:14:27.053Z" }, + { url = "https://files.pythonhosted.org/packages/26/7d/73699ad77895f69edff76b0f332acc3d497f22f5d75e5360f78cbcaff248/pillow-11.3.0-cp312-cp312-win32.whl", hash = "sha256:7b161756381f0918e05e7cb8a371fff367e807770f8fe92ecb20d905d0e1c149", size = 6275079, upload-time = "2025-07-01T09:14:30.104Z" }, + { url = "https://files.pythonhosted.org/packages/8c/ce/e7dfc873bdd9828f3b6e5c2bbb74e47a98ec23cc5c74fc4e54462f0d9204/pillow-11.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:a6444696fce635783440b7f7a9fc24b3ad10a9ea3f0ab66c5905be1c19ccf17d", size = 6986324, upload-time = "2025-07-01T09:14:31.899Z" }, + { url = "https://files.pythonhosted.org/packages/16/8f/b13447d1bf0b1f7467ce7d86f6e6edf66c0ad7cf44cf5c87a37f9bed9936/pillow-11.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:2aceea54f957dd4448264f9bf40875da0415c83eb85f55069d89c0ed436e3542", size = 2423067, upload-time = "2025-07-01T09:14:33.709Z" }, + { url = "https://files.pythonhosted.org/packages/1e/93/0952f2ed8db3a5a4c7a11f91965d6184ebc8cd7cbb7941a260d5f018cd2d/pillow-11.3.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1c627742b539bba4309df89171356fcb3cc5a9178355b2727d1b74a6cf155fbd", size = 2128328, upload-time = "2025-07-01T09:14:35.276Z" }, + { url = "https://files.pythonhosted.org/packages/4b/e8/100c3d114b1a0bf4042f27e0f87d2f25e857e838034e98ca98fe7b8c0a9c/pillow-11.3.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:30b7c02f3899d10f13d7a48163c8969e4e653f8b43416d23d13d1bbfdc93b9f8", size = 2170652, upload-time = "2025-07-01T09:14:37.203Z" }, + { url = "https://files.pythonhosted.org/packages/aa/86/3f758a28a6e381758545f7cdb4942e1cb79abd271bea932998fc0db93cb6/pillow-11.3.0-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:7859a4cc7c9295f5838015d8cc0a9c215b77e43d07a25e460f35cf516df8626f", size = 2227443, upload-time = "2025-07-01T09:14:39.344Z" }, + { url = "https://files.pythonhosted.org/packages/01/f4/91d5b3ffa718df2f53b0dc109877993e511f4fd055d7e9508682e8aba092/pillow-11.3.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ec1ee50470b0d050984394423d96325b744d55c701a439d2bd66089bff963d3c", size = 5278474, upload-time = "2025-07-01T09:14:41.843Z" }, + { url = "https://files.pythonhosted.org/packages/f9/0e/37d7d3eca6c879fbd9dba21268427dffda1ab00d4eb05b32923d4fbe3b12/pillow-11.3.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:7db51d222548ccfd274e4572fdbf3e810a5e66b00608862f947b163e613b67dd", size = 4686038, upload-time = "2025-07-01T09:14:44.008Z" }, + { url = "https://files.pythonhosted.org/packages/ff/b0/3426e5c7f6565e752d81221af9d3676fdbb4f352317ceafd42899aaf5d8a/pillow-11.3.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:2d6fcc902a24ac74495df63faad1884282239265c6839a0a6416d33faedfae7e", size = 5864407, upload-time = "2025-07-03T13:10:15.628Z" }, + { url = "https://files.pythonhosted.org/packages/fc/c1/c6c423134229f2a221ee53f838d4be9d82bab86f7e2f8e75e47b6bf6cd77/pillow-11.3.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f0f5d8f4a08090c6d6d578351a2b91acf519a54986c055af27e7a93feae6d3f1", size = 7639094, upload-time = "2025-07-03T13:10:21.857Z" }, + { url = "https://files.pythonhosted.org/packages/ba/c9/09e6746630fe6372c67c648ff9deae52a2bc20897d51fa293571977ceb5d/pillow-11.3.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c37d8ba9411d6003bba9e518db0db0c58a680ab9fe5179f040b0463644bc9805", size = 5973503, upload-time = "2025-07-01T09:14:45.698Z" }, + { url = "https://files.pythonhosted.org/packages/d5/1c/a2a29649c0b1983d3ef57ee87a66487fdeb45132df66ab30dd37f7dbe162/pillow-11.3.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:13f87d581e71d9189ab21fe0efb5a23e9f28552d5be6979e84001d3b8505abe8", size = 6642574, upload-time = "2025-07-01T09:14:47.415Z" }, + { url = "https://files.pythonhosted.org/packages/36/de/d5cc31cc4b055b6c6fd990e3e7f0f8aaf36229a2698501bcb0cdf67c7146/pillow-11.3.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:023f6d2d11784a465f09fd09a34b150ea4672e85fb3d05931d89f373ab14abb2", size = 6084060, upload-time = "2025-07-01T09:14:49.636Z" }, + { url = "https://files.pythonhosted.org/packages/d5/ea/502d938cbaeec836ac28a9b730193716f0114c41325db428e6b280513f09/pillow-11.3.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:45dfc51ac5975b938e9809451c51734124e73b04d0f0ac621649821a63852e7b", size = 6721407, upload-time = "2025-07-01T09:14:51.962Z" }, + { url = "https://files.pythonhosted.org/packages/45/9c/9c5e2a73f125f6cbc59cc7087c8f2d649a7ae453f83bd0362ff7c9e2aee2/pillow-11.3.0-cp313-cp313-win32.whl", hash = "sha256:a4d336baed65d50d37b88ca5b60c0fa9d81e3a87d4a7930d3880d1624d5b31f3", size = 6273841, upload-time = "2025-07-01T09:14:54.142Z" }, + { url = "https://files.pythonhosted.org/packages/23/85/397c73524e0cd212067e0c969aa245b01d50183439550d24d9f55781b776/pillow-11.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:0bce5c4fd0921f99d2e858dc4d4d64193407e1b99478bc5cacecba2311abde51", size = 6978450, upload-time = "2025-07-01T09:14:56.436Z" }, + { url = "https://files.pythonhosted.org/packages/17/d2/622f4547f69cd173955194b78e4d19ca4935a1b0f03a302d655c9f6aae65/pillow-11.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:1904e1264881f682f02b7f8167935cce37bc97db457f8e7849dc3a6a52b99580", size = 2423055, upload-time = "2025-07-01T09:14:58.072Z" }, + { url = "https://files.pythonhosted.org/packages/dd/80/a8a2ac21dda2e82480852978416cfacd439a4b490a501a288ecf4fe2532d/pillow-11.3.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:4c834a3921375c48ee6b9624061076bc0a32a60b5532b322cc0ea64e639dd50e", size = 5281110, upload-time = "2025-07-01T09:14:59.79Z" }, + { url = "https://files.pythonhosted.org/packages/44/d6/b79754ca790f315918732e18f82a8146d33bcd7f4494380457ea89eb883d/pillow-11.3.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:5e05688ccef30ea69b9317a9ead994b93975104a677a36a8ed8106be9260aa6d", size = 4689547, upload-time = "2025-07-01T09:15:01.648Z" }, + { url = "https://files.pythonhosted.org/packages/49/20/716b8717d331150cb00f7fdd78169c01e8e0c219732a78b0e59b6bdb2fd6/pillow-11.3.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:1019b04af07fc0163e2810167918cb5add8d74674b6267616021ab558dc98ced", size = 5901554, upload-time = "2025-07-03T13:10:27.018Z" }, + { url = "https://files.pythonhosted.org/packages/74/cf/a9f3a2514a65bb071075063a96f0a5cf949c2f2fce683c15ccc83b1c1cab/pillow-11.3.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f944255db153ebb2b19c51fe85dd99ef0ce494123f21b9db4877ffdfc5590c7c", size = 7669132, upload-time = "2025-07-03T13:10:33.01Z" }, + { url = "https://files.pythonhosted.org/packages/98/3c/da78805cbdbee9cb43efe8261dd7cc0b4b93f2ac79b676c03159e9db2187/pillow-11.3.0-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1f85acb69adf2aaee8b7da124efebbdb959a104db34d3a2cb0f3793dbae422a8", size = 6005001, upload-time = "2025-07-01T09:15:03.365Z" }, + { url = "https://files.pythonhosted.org/packages/6c/fa/ce044b91faecf30e635321351bba32bab5a7e034c60187fe9698191aef4f/pillow-11.3.0-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:05f6ecbeff5005399bb48d198f098a9b4b6bdf27b8487c7f38ca16eeb070cd59", size = 6668814, upload-time = "2025-07-01T09:15:05.655Z" }, + { url = "https://files.pythonhosted.org/packages/7b/51/90f9291406d09bf93686434f9183aba27b831c10c87746ff49f127ee80cb/pillow-11.3.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:a7bc6e6fd0395bc052f16b1a8670859964dbd7003bd0af2ff08342eb6e442cfe", size = 6113124, upload-time = "2025-07-01T09:15:07.358Z" }, + { url = "https://files.pythonhosted.org/packages/cd/5a/6fec59b1dfb619234f7636d4157d11fb4e196caeee220232a8d2ec48488d/pillow-11.3.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:83e1b0161c9d148125083a35c1c5a89db5b7054834fd4387499e06552035236c", size = 6747186, upload-time = "2025-07-01T09:15:09.317Z" }, + { url = "https://files.pythonhosted.org/packages/49/6b/00187a044f98255225f172de653941e61da37104a9ea60e4f6887717e2b5/pillow-11.3.0-cp313-cp313t-win32.whl", hash = "sha256:2a3117c06b8fb646639dce83694f2f9eac405472713fcb1ae887469c0d4f6788", size = 6277546, upload-time = "2025-07-01T09:15:11.311Z" }, + { url = "https://files.pythonhosted.org/packages/e8/5c/6caaba7e261c0d75bab23be79f1d06b5ad2a2ae49f028ccec801b0e853d6/pillow-11.3.0-cp313-cp313t-win_amd64.whl", hash = "sha256:857844335c95bea93fb39e0fa2726b4d9d758850b34075a7e3ff4f4fa3aa3b31", size = 6985102, upload-time = "2025-07-01T09:15:13.164Z" }, + { url = "https://files.pythonhosted.org/packages/f3/7e/b623008460c09a0cb38263c93b828c666493caee2eb34ff67f778b87e58c/pillow-11.3.0-cp313-cp313t-win_arm64.whl", hash = "sha256:8797edc41f3e8536ae4b10897ee2f637235c94f27404cac7297f7b607dd0716e", size = 2424803, upload-time = "2025-07-01T09:15:15.695Z" }, + { url = "https://files.pythonhosted.org/packages/73/f4/04905af42837292ed86cb1b1dabe03dce1edc008ef14c473c5c7e1443c5d/pillow-11.3.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:d9da3df5f9ea2a89b81bb6087177fb1f4d1c7146d583a3fe5c672c0d94e55e12", size = 5278520, upload-time = "2025-07-01T09:15:17.429Z" }, + { url = "https://files.pythonhosted.org/packages/41/b0/33d79e377a336247df6348a54e6d2a2b85d644ca202555e3faa0cf811ecc/pillow-11.3.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:0b275ff9b04df7b640c59ec5a3cb113eefd3795a8df80bac69646ef699c6981a", size = 4686116, upload-time = "2025-07-01T09:15:19.423Z" }, + { url = "https://files.pythonhosted.org/packages/49/2d/ed8bc0ab219ae8768f529597d9509d184fe8a6c4741a6864fea334d25f3f/pillow-11.3.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0743841cabd3dba6a83f38a92672cccbd69af56e3e91777b0ee7f4dba4385632", size = 5864597, upload-time = "2025-07-03T13:10:38.404Z" }, + { url = "https://files.pythonhosted.org/packages/b5/3d/b932bb4225c80b58dfadaca9d42d08d0b7064d2d1791b6a237f87f661834/pillow-11.3.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:2465a69cf967b8b49ee1b96d76718cd98c4e925414ead59fdf75cf0fd07df673", size = 7638246, upload-time = "2025-07-03T13:10:44.987Z" }, + { url = "https://files.pythonhosted.org/packages/09/b5/0487044b7c096f1b48f0d7ad416472c02e0e4bf6919541b111efd3cae690/pillow-11.3.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:41742638139424703b4d01665b807c6468e23e699e8e90cffefe291c5832b027", size = 5973336, upload-time = "2025-07-01T09:15:21.237Z" }, + { url = "https://files.pythonhosted.org/packages/a8/2d/524f9318f6cbfcc79fbc004801ea6b607ec3f843977652fdee4857a7568b/pillow-11.3.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:93efb0b4de7e340d99057415c749175e24c8864302369e05914682ba642e5d77", size = 6642699, upload-time = "2025-07-01T09:15:23.186Z" }, + { url = "https://files.pythonhosted.org/packages/6f/d2/a9a4f280c6aefedce1e8f615baaa5474e0701d86dd6f1dede66726462bbd/pillow-11.3.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7966e38dcd0fa11ca390aed7c6f20454443581d758242023cf36fcb319b1a874", size = 6083789, upload-time = "2025-07-01T09:15:25.1Z" }, + { url = "https://files.pythonhosted.org/packages/fe/54/86b0cd9dbb683a9d5e960b66c7379e821a19be4ac5810e2e5a715c09a0c0/pillow-11.3.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:98a9afa7b9007c67ed84c57c9e0ad86a6000da96eaa638e4f8abe5b65ff83f0a", size = 6720386, upload-time = "2025-07-01T09:15:27.378Z" }, + { url = "https://files.pythonhosted.org/packages/e7/95/88efcaf384c3588e24259c4203b909cbe3e3c2d887af9e938c2022c9dd48/pillow-11.3.0-cp314-cp314-win32.whl", hash = "sha256:02a723e6bf909e7cea0dac1b0e0310be9d7650cd66222a5f1c571455c0a45214", size = 6370911, upload-time = "2025-07-01T09:15:29.294Z" }, + { url = "https://files.pythonhosted.org/packages/2e/cc/934e5820850ec5eb107e7b1a72dd278140731c669f396110ebc326f2a503/pillow-11.3.0-cp314-cp314-win_amd64.whl", hash = "sha256:a418486160228f64dd9e9efcd132679b7a02a5f22c982c78b6fc7dab3fefb635", size = 7117383, upload-time = "2025-07-01T09:15:31.128Z" }, + { url = "https://files.pythonhosted.org/packages/d6/e9/9c0a616a71da2a5d163aa37405e8aced9a906d574b4a214bede134e731bc/pillow-11.3.0-cp314-cp314-win_arm64.whl", hash = "sha256:155658efb5e044669c08896c0c44231c5e9abcaadbc5cd3648df2f7c0b96b9a6", size = 2511385, upload-time = "2025-07-01T09:15:33.328Z" }, + { url = "https://files.pythonhosted.org/packages/1a/33/c88376898aff369658b225262cd4f2659b13e8178e7534df9e6e1fa289f6/pillow-11.3.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:59a03cdf019efbfeeed910bf79c7c93255c3d54bc45898ac2a4140071b02b4ae", size = 5281129, upload-time = "2025-07-01T09:15:35.194Z" }, + { url = "https://files.pythonhosted.org/packages/1f/70/d376247fb36f1844b42910911c83a02d5544ebd2a8bad9efcc0f707ea774/pillow-11.3.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f8a5827f84d973d8636e9dc5764af4f0cf2318d26744b3d902931701b0d46653", size = 4689580, upload-time = "2025-07-01T09:15:37.114Z" }, + { url = "https://files.pythonhosted.org/packages/eb/1c/537e930496149fbac69efd2fc4329035bbe2e5475b4165439e3be9cb183b/pillow-11.3.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ee92f2fd10f4adc4b43d07ec5e779932b4eb3dbfbc34790ada5a6669bc095aa6", size = 5902860, upload-time = "2025-07-03T13:10:50.248Z" }, + { url = "https://files.pythonhosted.org/packages/bd/57/80f53264954dcefeebcf9dae6e3eb1daea1b488f0be8b8fef12f79a3eb10/pillow-11.3.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c96d333dcf42d01f47b37e0979b6bd73ec91eae18614864622d9b87bbd5bbf36", size = 7670694, upload-time = "2025-07-03T13:10:56.432Z" }, + { url = "https://files.pythonhosted.org/packages/70/ff/4727d3b71a8578b4587d9c276e90efad2d6fe0335fd76742a6da08132e8c/pillow-11.3.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4c96f993ab8c98460cd0c001447bff6194403e8b1d7e149ade5f00594918128b", size = 6005888, upload-time = "2025-07-01T09:15:39.436Z" }, + { url = "https://files.pythonhosted.org/packages/05/ae/716592277934f85d3be51d7256f3636672d7b1abfafdc42cf3f8cbd4b4c8/pillow-11.3.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:41342b64afeba938edb034d122b2dda5db2139b9a4af999729ba8818e0056477", size = 6670330, upload-time = "2025-07-01T09:15:41.269Z" }, + { url = "https://files.pythonhosted.org/packages/e7/bb/7fe6cddcc8827b01b1a9766f5fdeb7418680744f9082035bdbabecf1d57f/pillow-11.3.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:068d9c39a2d1b358eb9f245ce7ab1b5c3246c7c8c7d9ba58cfa5b43146c06e50", size = 6114089, upload-time = "2025-07-01T09:15:43.13Z" }, + { url = "https://files.pythonhosted.org/packages/8b/f5/06bfaa444c8e80f1a8e4bff98da9c83b37b5be3b1deaa43d27a0db37ef84/pillow-11.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:a1bc6ba083b145187f648b667e05a2534ecc4b9f2784c2cbe3089e44868f2b9b", size = 6748206, upload-time = "2025-07-01T09:15:44.937Z" }, + { url = "https://files.pythonhosted.org/packages/f0/77/bc6f92a3e8e6e46c0ca78abfffec0037845800ea38c73483760362804c41/pillow-11.3.0-cp314-cp314t-win32.whl", hash = "sha256:118ca10c0d60b06d006be10a501fd6bbdfef559251ed31b794668ed569c87e12", size = 6377370, upload-time = "2025-07-01T09:15:46.673Z" }, + { url = "https://files.pythonhosted.org/packages/4a/82/3a721f7d69dca802befb8af08b7c79ebcab461007ce1c18bd91a5d5896f9/pillow-11.3.0-cp314-cp314t-win_amd64.whl", hash = "sha256:8924748b688aa210d79883357d102cd64690e56b923a186f35a82cbc10f997db", size = 7121500, upload-time = "2025-07-01T09:15:48.512Z" }, + { url = "https://files.pythonhosted.org/packages/89/c7/5572fa4a3f45740eaab6ae86fcdf7195b55beac1371ac8c619d880cfe948/pillow-11.3.0-cp314-cp314t-win_arm64.whl", hash = "sha256:79ea0d14d3ebad43ec77ad5272e6ff9bba5b679ef73375ea760261207fa8e0aa", size = 2512835, upload-time = "2025-07-01T09:15:50.399Z" }, +] + +[[package]] +name = "plotly" +version = "6.3.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "narwhals" }, + { name = "packaging" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a0/64/850de5076f4436410e1ce4f6a69f4313ef6215dfea155f3f6559335cad29/plotly-6.3.0.tar.gz", hash = "sha256:8840a184d18ccae0f9189c2b9a2943923fd5cae7717b723f36eef78f444e5a73", size = 6923926, upload-time = "2025-08-12T20:22:14.127Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/95/a9/12e2dc726ba1ba775a2c6922d5d5b4488ad60bdab0888c337c194c8e6de8/plotly-6.3.0-py3-none-any.whl", hash = "sha256:7ad806edce9d3cdd882eaebaf97c0c9e252043ed1ed3d382c3e3520ec07806d4", size = 9791257, upload-time = "2025-08-12T20:22:09.205Z" }, +] + +[[package]] +name = "prompt-toolkit" +version = "3.0.51" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "wcwidth" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/bb/6e/9d084c929dfe9e3bfe0c6a47e31f78a25c54627d64a66e884a8bf5474f1c/prompt_toolkit-3.0.51.tar.gz", hash = "sha256:931a162e3b27fc90c86f1b48bb1fb2c528c2761475e57c9c06de13311c7b54ed", size = 428940, upload-time = "2025-04-15T09:18:47.731Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ce/4f/5249960887b1fbe561d9ff265496d170b55a735b76724f10ef19f9e40716/prompt_toolkit-3.0.51-py3-none-any.whl", hash = "sha256:52742911fde84e2d423e2f9a4cf1de7d7ac4e51958f648d9540e0fb8db077b07", size = 387810, upload-time = "2025-04-15T09:18:44.753Z" }, +] + +[[package]] +name = "propcache" +version = "0.3.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a6/16/43264e4a779dd8588c21a70f0709665ee8f611211bdd2c87d952cfa7c776/propcache-0.3.2.tar.gz", hash = "sha256:20d7d62e4e7ef05f221e0db2856b979540686342e7dd9973b815599c7057e168", size = 44139, upload-time = "2025-06-09T22:56:06.081Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a8/42/9ca01b0a6f48e81615dca4765a8f1dd2c057e0540f6116a27dc5ee01dfb6/propcache-0.3.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:8de106b6c84506b31c27168582cd3cb3000a6412c16df14a8628e5871ff83c10", size = 73674, upload-time = "2025-06-09T22:54:30.551Z" }, + { url = "https://files.pythonhosted.org/packages/af/6e/21293133beb550f9c901bbece755d582bfaf2176bee4774000bd4dd41884/propcache-0.3.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:28710b0d3975117239c76600ea351934ac7b5ff56e60953474342608dbbb6154", size = 43570, upload-time = "2025-06-09T22:54:32.296Z" }, + { url = "https://files.pythonhosted.org/packages/0c/c8/0393a0a3a2b8760eb3bde3c147f62b20044f0ddac81e9d6ed7318ec0d852/propcache-0.3.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ce26862344bdf836650ed2487c3d724b00fbfec4233a1013f597b78c1cb73615", size = 43094, upload-time = "2025-06-09T22:54:33.929Z" }, + { url = "https://files.pythonhosted.org/packages/37/2c/489afe311a690399d04a3e03b069225670c1d489eb7b044a566511c1c498/propcache-0.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bca54bd347a253af2cf4544bbec232ab982f4868de0dd684246b67a51bc6b1db", size = 226958, upload-time = "2025-06-09T22:54:35.186Z" }, + { url = "https://files.pythonhosted.org/packages/9d/ca/63b520d2f3d418c968bf596839ae26cf7f87bead026b6192d4da6a08c467/propcache-0.3.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:55780d5e9a2ddc59711d727226bb1ba83a22dd32f64ee15594b9392b1f544eb1", size = 234894, upload-time = "2025-06-09T22:54:36.708Z" }, + { url = "https://files.pythonhosted.org/packages/11/60/1d0ed6fff455a028d678df30cc28dcee7af77fa2b0e6962ce1df95c9a2a9/propcache-0.3.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:035e631be25d6975ed87ab23153db6a73426a48db688070d925aa27e996fe93c", size = 233672, upload-time = "2025-06-09T22:54:38.062Z" }, + { url = "https://files.pythonhosted.org/packages/37/7c/54fd5301ef38505ab235d98827207176a5c9b2aa61939b10a460ca53e123/propcache-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ee6f22b6eaa39297c751d0e80c0d3a454f112f5c6481214fcf4c092074cecd67", size = 224395, upload-time = "2025-06-09T22:54:39.634Z" }, + { url = "https://files.pythonhosted.org/packages/ee/1a/89a40e0846f5de05fdc6779883bf46ba980e6df4d2ff8fb02643de126592/propcache-0.3.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7ca3aee1aa955438c4dba34fc20a9f390e4c79967257d830f137bd5a8a32ed3b", size = 212510, upload-time = "2025-06-09T22:54:41.565Z" }, + { url = "https://files.pythonhosted.org/packages/5e/33/ca98368586c9566a6b8d5ef66e30484f8da84c0aac3f2d9aec6d31a11bd5/propcache-0.3.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:7a4f30862869fa2b68380d677cc1c5fcf1e0f2b9ea0cf665812895c75d0ca3b8", size = 222949, upload-time = "2025-06-09T22:54:43.038Z" }, + { url = "https://files.pythonhosted.org/packages/ba/11/ace870d0aafe443b33b2f0b7efdb872b7c3abd505bfb4890716ad7865e9d/propcache-0.3.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:b77ec3c257d7816d9f3700013639db7491a434644c906a2578a11daf13176251", size = 217258, upload-time = "2025-06-09T22:54:44.376Z" }, + { url = "https://files.pythonhosted.org/packages/5b/d2/86fd6f7adffcfc74b42c10a6b7db721d1d9ca1055c45d39a1a8f2a740a21/propcache-0.3.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:cab90ac9d3f14b2d5050928483d3d3b8fb6b4018893fc75710e6aa361ecb2474", size = 213036, upload-time = "2025-06-09T22:54:46.243Z" }, + { url = "https://files.pythonhosted.org/packages/07/94/2d7d1e328f45ff34a0a284cf5a2847013701e24c2a53117e7c280a4316b3/propcache-0.3.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:0b504d29f3c47cf6b9e936c1852246c83d450e8e063d50562115a6be6d3a2535", size = 227684, upload-time = "2025-06-09T22:54:47.63Z" }, + { url = "https://files.pythonhosted.org/packages/b7/05/37ae63a0087677e90b1d14710e532ff104d44bc1efa3b3970fff99b891dc/propcache-0.3.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:ce2ac2675a6aa41ddb2a0c9cbff53780a617ac3d43e620f8fd77ba1c84dcfc06", size = 234562, upload-time = "2025-06-09T22:54:48.982Z" }, + { url = "https://files.pythonhosted.org/packages/a4/7c/3f539fcae630408d0bd8bf3208b9a647ccad10976eda62402a80adf8fc34/propcache-0.3.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:62b4239611205294cc433845b914131b2a1f03500ff3c1ed093ed216b82621e1", size = 222142, upload-time = "2025-06-09T22:54:50.424Z" }, + { url = "https://files.pythonhosted.org/packages/7c/d2/34b9eac8c35f79f8a962546b3e97e9d4b990c420ee66ac8255d5d9611648/propcache-0.3.2-cp312-cp312-win32.whl", hash = "sha256:df4a81b9b53449ebc90cc4deefb052c1dd934ba85012aa912c7ea7b7e38b60c1", size = 37711, upload-time = "2025-06-09T22:54:52.072Z" }, + { url = "https://files.pythonhosted.org/packages/19/61/d582be5d226cf79071681d1b46b848d6cb03d7b70af7063e33a2787eaa03/propcache-0.3.2-cp312-cp312-win_amd64.whl", hash = "sha256:7046e79b989d7fe457bb755844019e10f693752d169076138abf17f31380800c", size = 41479, upload-time = "2025-06-09T22:54:53.234Z" }, + { url = "https://files.pythonhosted.org/packages/dc/d1/8c747fafa558c603c4ca19d8e20b288aa0c7cda74e9402f50f31eb65267e/propcache-0.3.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ca592ed634a73ca002967458187109265e980422116c0a107cf93d81f95af945", size = 71286, upload-time = "2025-06-09T22:54:54.369Z" }, + { url = "https://files.pythonhosted.org/packages/61/99/d606cb7986b60d89c36de8a85d58764323b3a5ff07770a99d8e993b3fa73/propcache-0.3.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:9ecb0aad4020e275652ba3975740f241bd12a61f1a784df044cf7477a02bc252", size = 42425, upload-time = "2025-06-09T22:54:55.642Z" }, + { url = "https://files.pythonhosted.org/packages/8c/96/ef98f91bbb42b79e9bb82bdd348b255eb9d65f14dbbe3b1594644c4073f7/propcache-0.3.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:7f08f1cc28bd2eade7a8a3d2954ccc673bb02062e3e7da09bc75d843386b342f", size = 41846, upload-time = "2025-06-09T22:54:57.246Z" }, + { url = "https://files.pythonhosted.org/packages/5b/ad/3f0f9a705fb630d175146cd7b1d2bf5555c9beaed54e94132b21aac098a6/propcache-0.3.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1a342c834734edb4be5ecb1e9fb48cb64b1e2320fccbd8c54bf8da8f2a84c33", size = 208871, upload-time = "2025-06-09T22:54:58.975Z" }, + { url = "https://files.pythonhosted.org/packages/3a/38/2085cda93d2c8b6ec3e92af2c89489a36a5886b712a34ab25de9fbca7992/propcache-0.3.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8a544caaae1ac73f1fecfae70ded3e93728831affebd017d53449e3ac052ac1e", size = 215720, upload-time = "2025-06-09T22:55:00.471Z" }, + { url = "https://files.pythonhosted.org/packages/61/c1/d72ea2dc83ac7f2c8e182786ab0fc2c7bd123a1ff9b7975bee671866fe5f/propcache-0.3.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:310d11aa44635298397db47a3ebce7db99a4cc4b9bbdfcf6c98a60c8d5261cf1", size = 215203, upload-time = "2025-06-09T22:55:01.834Z" }, + { url = "https://files.pythonhosted.org/packages/af/81/b324c44ae60c56ef12007105f1460d5c304b0626ab0cc6b07c8f2a9aa0b8/propcache-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4c1396592321ac83157ac03a2023aa6cc4a3cc3cfdecb71090054c09e5a7cce3", size = 206365, upload-time = "2025-06-09T22:55:03.199Z" }, + { url = "https://files.pythonhosted.org/packages/09/73/88549128bb89e66d2aff242488f62869014ae092db63ccea53c1cc75a81d/propcache-0.3.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8cabf5b5902272565e78197edb682017d21cf3b550ba0460ee473753f28d23c1", size = 196016, upload-time = "2025-06-09T22:55:04.518Z" }, + { url = "https://files.pythonhosted.org/packages/b9/3f/3bdd14e737d145114a5eb83cb172903afba7242f67c5877f9909a20d948d/propcache-0.3.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0a2f2235ac46a7aa25bdeb03a9e7060f6ecbd213b1f9101c43b3090ffb971ef6", size = 205596, upload-time = "2025-06-09T22:55:05.942Z" }, + { url = "https://files.pythonhosted.org/packages/0f/ca/2f4aa819c357d3107c3763d7ef42c03980f9ed5c48c82e01e25945d437c1/propcache-0.3.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:92b69e12e34869a6970fd2f3da91669899994b47c98f5d430b781c26f1d9f387", size = 200977, upload-time = "2025-06-09T22:55:07.792Z" }, + { url = "https://files.pythonhosted.org/packages/cd/4a/e65276c7477533c59085251ae88505caf6831c0e85ff8b2e31ebcbb949b1/propcache-0.3.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:54e02207c79968ebbdffc169591009f4474dde3b4679e16634d34c9363ff56b4", size = 197220, upload-time = "2025-06-09T22:55:09.173Z" }, + { url = "https://files.pythonhosted.org/packages/7c/54/fc7152e517cf5578278b242396ce4d4b36795423988ef39bb8cd5bf274c8/propcache-0.3.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:4adfb44cb588001f68c5466579d3f1157ca07f7504fc91ec87862e2b8e556b88", size = 210642, upload-time = "2025-06-09T22:55:10.62Z" }, + { url = "https://files.pythonhosted.org/packages/b9/80/abeb4a896d2767bf5f1ea7b92eb7be6a5330645bd7fb844049c0e4045d9d/propcache-0.3.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:fd3e6019dc1261cd0291ee8919dd91fbab7b169bb76aeef6c716833a3f65d206", size = 212789, upload-time = "2025-06-09T22:55:12.029Z" }, + { url = "https://files.pythonhosted.org/packages/b3/db/ea12a49aa7b2b6d68a5da8293dcf50068d48d088100ac016ad92a6a780e6/propcache-0.3.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4c181cad81158d71c41a2bce88edce078458e2dd5ffee7eddd6b05da85079f43", size = 205880, upload-time = "2025-06-09T22:55:13.45Z" }, + { url = "https://files.pythonhosted.org/packages/d1/e5/9076a0bbbfb65d1198007059c65639dfd56266cf8e477a9707e4b1999ff4/propcache-0.3.2-cp313-cp313-win32.whl", hash = "sha256:8a08154613f2249519e549de2330cf8e2071c2887309a7b07fb56098f5170a02", size = 37220, upload-time = "2025-06-09T22:55:15.284Z" }, + { url = "https://files.pythonhosted.org/packages/d3/f5/b369e026b09a26cd77aa88d8fffd69141d2ae00a2abaaf5380d2603f4b7f/propcache-0.3.2-cp313-cp313-win_amd64.whl", hash = "sha256:e41671f1594fc4ab0a6dec1351864713cb3a279910ae8b58f884a88a0a632c05", size = 40678, upload-time = "2025-06-09T22:55:16.445Z" }, + { url = "https://files.pythonhosted.org/packages/a4/3a/6ece377b55544941a08d03581c7bc400a3c8cd3c2865900a68d5de79e21f/propcache-0.3.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:9a3cf035bbaf035f109987d9d55dc90e4b0e36e04bbbb95af3055ef17194057b", size = 76560, upload-time = "2025-06-09T22:55:17.598Z" }, + { url = "https://files.pythonhosted.org/packages/0c/da/64a2bb16418740fa634b0e9c3d29edff1db07f56d3546ca2d86ddf0305e1/propcache-0.3.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:156c03d07dc1323d8dacaa221fbe028c5c70d16709cdd63502778e6c3ccca1b0", size = 44676, upload-time = "2025-06-09T22:55:18.922Z" }, + { url = "https://files.pythonhosted.org/packages/36/7b/f025e06ea51cb72c52fb87e9b395cced02786610b60a3ed51da8af017170/propcache-0.3.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:74413c0ba02ba86f55cf60d18daab219f7e531620c15f1e23d95563f505efe7e", size = 44701, upload-time = "2025-06-09T22:55:20.106Z" }, + { url = "https://files.pythonhosted.org/packages/a4/00/faa1b1b7c3b74fc277f8642f32a4c72ba1d7b2de36d7cdfb676db7f4303e/propcache-0.3.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f066b437bb3fa39c58ff97ab2ca351db465157d68ed0440abecb21715eb24b28", size = 276934, upload-time = "2025-06-09T22:55:21.5Z" }, + { url = "https://files.pythonhosted.org/packages/74/ab/935beb6f1756e0476a4d5938ff44bf0d13a055fed880caf93859b4f1baf4/propcache-0.3.2-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f1304b085c83067914721e7e9d9917d41ad87696bf70f0bc7dee450e9c71ad0a", size = 278316, upload-time = "2025-06-09T22:55:22.918Z" }, + { url = "https://files.pythonhosted.org/packages/f8/9d/994a5c1ce4389610838d1caec74bdf0e98b306c70314d46dbe4fcf21a3e2/propcache-0.3.2-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ab50cef01b372763a13333b4e54021bdcb291fc9a8e2ccb9c2df98be51bcde6c", size = 282619, upload-time = "2025-06-09T22:55:24.651Z" }, + { url = "https://files.pythonhosted.org/packages/2b/00/a10afce3d1ed0287cef2e09506d3be9822513f2c1e96457ee369adb9a6cd/propcache-0.3.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fad3b2a085ec259ad2c2842666b2a0a49dea8463579c606426128925af1ed725", size = 265896, upload-time = "2025-06-09T22:55:26.049Z" }, + { url = "https://files.pythonhosted.org/packages/2e/a8/2aa6716ffa566ca57c749edb909ad27884680887d68517e4be41b02299f3/propcache-0.3.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:261fa020c1c14deafd54c76b014956e2f86991af198c51139faf41c4d5e83892", size = 252111, upload-time = "2025-06-09T22:55:27.381Z" }, + { url = "https://files.pythonhosted.org/packages/36/4f/345ca9183b85ac29c8694b0941f7484bf419c7f0fea2d1e386b4f7893eed/propcache-0.3.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:46d7f8aa79c927e5f987ee3a80205c987717d3659f035c85cf0c3680526bdb44", size = 268334, upload-time = "2025-06-09T22:55:28.747Z" }, + { url = "https://files.pythonhosted.org/packages/3e/ca/fcd54f78b59e3f97b3b9715501e3147f5340167733d27db423aa321e7148/propcache-0.3.2-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:6d8f3f0eebf73e3c0ff0e7853f68be638b4043c65a70517bb575eff54edd8dbe", size = 255026, upload-time = "2025-06-09T22:55:30.184Z" }, + { url = "https://files.pythonhosted.org/packages/8b/95/8e6a6bbbd78ac89c30c225210a5c687790e532ba4088afb8c0445b77ef37/propcache-0.3.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:03c89c1b14a5452cf15403e291c0ccd7751d5b9736ecb2c5bab977ad6c5bcd81", size = 250724, upload-time = "2025-06-09T22:55:31.646Z" }, + { url = "https://files.pythonhosted.org/packages/ee/b0/0dd03616142baba28e8b2d14ce5df6631b4673850a3d4f9c0f9dd714a404/propcache-0.3.2-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:0cc17efde71e12bbaad086d679ce575268d70bc123a5a71ea7ad76f70ba30bba", size = 268868, upload-time = "2025-06-09T22:55:33.209Z" }, + { url = "https://files.pythonhosted.org/packages/c5/98/2c12407a7e4fbacd94ddd32f3b1e3d5231e77c30ef7162b12a60e2dd5ce3/propcache-0.3.2-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:acdf05d00696bc0447e278bb53cb04ca72354e562cf88ea6f9107df8e7fd9770", size = 271322, upload-time = "2025-06-09T22:55:35.065Z" }, + { url = "https://files.pythonhosted.org/packages/35/91/9cb56efbb428b006bb85db28591e40b7736847b8331d43fe335acf95f6c8/propcache-0.3.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4445542398bd0b5d32df908031cb1b30d43ac848e20470a878b770ec2dcc6330", size = 265778, upload-time = "2025-06-09T22:55:36.45Z" }, + { url = "https://files.pythonhosted.org/packages/9a/4c/b0fe775a2bdd01e176b14b574be679d84fc83958335790f7c9a686c1f468/propcache-0.3.2-cp313-cp313t-win32.whl", hash = "sha256:f86e5d7cd03afb3a1db8e9f9f6eff15794e79e791350ac48a8c924e6f439f394", size = 41175, upload-time = "2025-06-09T22:55:38.436Z" }, + { url = "https://files.pythonhosted.org/packages/a4/ff/47f08595e3d9b5e149c150f88d9714574f1a7cbd89fe2817158a952674bf/propcache-0.3.2-cp313-cp313t-win_amd64.whl", hash = "sha256:9704bedf6e7cbe3c65eca4379a9b53ee6a83749f047808cbb5044d40d7d72198", size = 44857, upload-time = "2025-06-09T22:55:39.687Z" }, + { url = "https://files.pythonhosted.org/packages/cc/35/cc0aaecf278bb4575b8555f2b137de5ab821595ddae9da9d3cd1da4072c7/propcache-0.3.2-py3-none-any.whl", hash = "sha256:98f1ec44fb675f5052cccc8e609c46ed23a35a1cfd18545ad4e29002d858a43f", size = 12663, upload-time = "2025-06-09T22:56:04.484Z" }, +] + +[[package]] +name = "protobuf" +version = "5.29.5" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/43/29/d09e70352e4e88c9c7a198d5645d7277811448d76c23b00345670f7c8a38/protobuf-5.29.5.tar.gz", hash = "sha256:bc1463bafd4b0929216c35f437a8e28731a2b7fe3d98bb77a600efced5a15c84", size = 425226, upload-time = "2025-05-28T23:51:59.82Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5f/11/6e40e9fc5bba02988a214c07cf324595789ca7820160bfd1f8be96e48539/protobuf-5.29.5-cp310-abi3-win32.whl", hash = "sha256:3f1c6468a2cfd102ff4703976138844f78ebd1fb45f49011afc5139e9e283079", size = 422963, upload-time = "2025-05-28T23:51:41.204Z" }, + { url = "https://files.pythonhosted.org/packages/81/7f/73cefb093e1a2a7c3ffd839e6f9fcafb7a427d300c7f8aef9c64405d8ac6/protobuf-5.29.5-cp310-abi3-win_amd64.whl", hash = "sha256:3f76e3a3675b4a4d867b52e4a5f5b78a2ef9565549d4037e06cf7b0942b1d3fc", size = 434818, upload-time = "2025-05-28T23:51:44.297Z" }, + { url = "https://files.pythonhosted.org/packages/dd/73/10e1661c21f139f2c6ad9b23040ff36fee624310dc28fba20d33fdae124c/protobuf-5.29.5-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:e38c5add5a311f2a6eb0340716ef9b039c1dfa428b28f25a7838ac329204a671", size = 418091, upload-time = "2025-05-28T23:51:45.907Z" }, + { url = "https://files.pythonhosted.org/packages/6c/04/98f6f8cf5b07ab1294c13f34b4e69b3722bb609c5b701d6c169828f9f8aa/protobuf-5.29.5-cp38-abi3-manylinux2014_aarch64.whl", hash = "sha256:fa18533a299d7ab6c55a238bf8629311439995f2e7eca5caaff08663606e9015", size = 319824, upload-time = "2025-05-28T23:51:47.545Z" }, + { url = "https://files.pythonhosted.org/packages/85/e4/07c80521879c2d15f321465ac24c70efe2381378c00bf5e56a0f4fbac8cd/protobuf-5.29.5-cp38-abi3-manylinux2014_x86_64.whl", hash = "sha256:63848923da3325e1bf7e9003d680ce6e14b07e55d0473253a690c3a8b8fd6e61", size = 319942, upload-time = "2025-05-28T23:51:49.11Z" }, + { url = "https://files.pythonhosted.org/packages/7e/cc/7e77861000a0691aeea8f4566e5d3aa716f2b1dece4a24439437e41d3d25/protobuf-5.29.5-py3-none-any.whl", hash = "sha256:6cf42630262c59b2d8de33954443d94b746c952b01434fc58a417fdbd2e84bd5", size = 172823, upload-time = "2025-05-28T23:51:58.157Z" }, +] + +[[package]] +name = "psutil" +version = "7.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/2a/80/336820c1ad9286a4ded7e845b2eccfcb27851ab8ac6abece774a6ff4d3de/psutil-7.0.0.tar.gz", hash = "sha256:7be9c3eba38beccb6495ea33afd982a44074b78f28c434a1f51cc07fd315c456", size = 497003, upload-time = "2025-02-13T21:54:07.946Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ed/e6/2d26234410f8b8abdbf891c9da62bee396583f713fb9f3325a4760875d22/psutil-7.0.0-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:101d71dc322e3cffd7cea0650b09b3d08b8e7c4109dd6809fe452dfd00e58b25", size = 238051, upload-time = "2025-02-13T21:54:12.36Z" }, + { url = "https://files.pythonhosted.org/packages/04/8b/30f930733afe425e3cbfc0e1468a30a18942350c1a8816acfade80c005c4/psutil-7.0.0-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:39db632f6bb862eeccf56660871433e111b6ea58f2caea825571951d4b6aa3da", size = 239535, upload-time = "2025-02-13T21:54:16.07Z" }, + { url = "https://files.pythonhosted.org/packages/2a/ed/d362e84620dd22876b55389248e522338ed1bf134a5edd3b8231d7207f6d/psutil-7.0.0-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1fcee592b4c6f146991ca55919ea3d1f8926497a713ed7faaf8225e174581e91", size = 275004, upload-time = "2025-02-13T21:54:18.662Z" }, + { url = "https://files.pythonhosted.org/packages/bf/b9/b0eb3f3cbcb734d930fdf839431606844a825b23eaf9a6ab371edac8162c/psutil-7.0.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4b1388a4f6875d7e2aff5c4ca1cc16c545ed41dd8bb596cefea80111db353a34", size = 277986, upload-time = "2025-02-13T21:54:21.811Z" }, + { url = "https://files.pythonhosted.org/packages/eb/a2/709e0fe2f093556c17fbafda93ac032257242cabcc7ff3369e2cb76a97aa/psutil-7.0.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5f098451abc2828f7dc6b58d44b532b22f2088f4999a937557b603ce72b1993", size = 279544, upload-time = "2025-02-13T21:54:24.68Z" }, + { url = "https://files.pythonhosted.org/packages/50/e6/eecf58810b9d12e6427369784efe814a1eec0f492084ce8eb8f4d89d6d61/psutil-7.0.0-cp37-abi3-win32.whl", hash = "sha256:ba3fcef7523064a6c9da440fc4d6bd07da93ac726b5733c29027d7dc95b39d99", size = 241053, upload-time = "2025-02-13T21:54:34.31Z" }, + { url = "https://files.pythonhosted.org/packages/50/1b/6921afe68c74868b4c9fa424dad3be35b095e16687989ebbb50ce4fceb7c/psutil-7.0.0-cp37-abi3-win_amd64.whl", hash = "sha256:4cf3d4eb1aa9b348dec30105c55cd9b7d4629285735a102beb4441e38db90553", size = 244885, upload-time = "2025-02-13T21:54:37.486Z" }, +] + +[[package]] +name = "psycopg2-binary" +version = "2.9.10" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cb/0e/bdc8274dc0585090b4e3432267d7be4dfbfd8971c0fa59167c711105a6bf/psycopg2-binary-2.9.10.tar.gz", hash = "sha256:4b3df0e6990aa98acda57d983942eff13d824135fe2250e6522edaa782a06de2", size = 385764, upload-time = "2024-10-16T11:24:58.126Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/49/7d/465cc9795cf76f6d329efdafca74693714556ea3891813701ac1fee87545/psycopg2_binary-2.9.10-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:880845dfe1f85d9d5f7c412efea7a08946a46894537e4e5d091732eb1d34d9a0", size = 3044771, upload-time = "2024-10-16T11:20:35.234Z" }, + { url = "https://files.pythonhosted.org/packages/8b/31/6d225b7b641a1a2148e3ed65e1aa74fc86ba3fee850545e27be9e1de893d/psycopg2_binary-2.9.10-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:9440fa522a79356aaa482aa4ba500b65f28e5d0e63b801abf6aa152a29bd842a", size = 3275336, upload-time = "2024-10-16T11:20:38.742Z" }, + { url = "https://files.pythonhosted.org/packages/30/b7/a68c2b4bff1cbb1728e3ec864b2d92327c77ad52edcd27922535a8366f68/psycopg2_binary-2.9.10-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e3923c1d9870c49a2d44f795df0c889a22380d36ef92440ff618ec315757e539", size = 2851637, upload-time = "2024-10-16T11:20:42.145Z" }, + { url = "https://files.pythonhosted.org/packages/0b/b1/cfedc0e0e6f9ad61f8657fd173b2f831ce261c02a08c0b09c652b127d813/psycopg2_binary-2.9.10-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7b2c956c028ea5de47ff3a8d6b3cc3330ab45cf0b7c3da35a2d6ff8420896526", size = 3082097, upload-time = "2024-10-16T11:20:46.185Z" }, + { url = "https://files.pythonhosted.org/packages/18/ed/0a8e4153c9b769f59c02fb5e7914f20f0b2483a19dae7bf2db54b743d0d0/psycopg2_binary-2.9.10-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f758ed67cab30b9a8d2833609513ce4d3bd027641673d4ebc9c067e4d208eec1", size = 3264776, upload-time = "2024-10-16T11:20:50.879Z" }, + { url = "https://files.pythonhosted.org/packages/10/db/d09da68c6a0cdab41566b74e0a6068a425f077169bed0946559b7348ebe9/psycopg2_binary-2.9.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8cd9b4f2cfab88ed4a9106192de509464b75a906462fb846b936eabe45c2063e", size = 3020968, upload-time = "2024-10-16T11:20:56.819Z" }, + { url = "https://files.pythonhosted.org/packages/94/28/4d6f8c255f0dfffb410db2b3f9ac5218d959a66c715c34cac31081e19b95/psycopg2_binary-2.9.10-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6dc08420625b5a20b53551c50deae6e231e6371194fa0651dbe0fb206452ae1f", size = 2872334, upload-time = "2024-10-16T11:21:02.411Z" }, + { url = "https://files.pythonhosted.org/packages/05/f7/20d7bf796593c4fea95e12119d6cc384ff1f6141a24fbb7df5a668d29d29/psycopg2_binary-2.9.10-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:d7cd730dfa7c36dbe8724426bf5612798734bff2d3c3857f36f2733f5bfc7c00", size = 2822722, upload-time = "2024-10-16T11:21:09.01Z" }, + { url = "https://files.pythonhosted.org/packages/4d/e4/0c407ae919ef626dbdb32835a03b6737013c3cc7240169843965cada2bdf/psycopg2_binary-2.9.10-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:155e69561d54d02b3c3209545fb08938e27889ff5a10c19de8d23eb5a41be8a5", size = 2920132, upload-time = "2024-10-16T11:21:16.339Z" }, + { url = "https://files.pythonhosted.org/packages/2d/70/aa69c9f69cf09a01da224909ff6ce8b68faeef476f00f7ec377e8f03be70/psycopg2_binary-2.9.10-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c3cc28a6fd5a4a26224007712e79b81dbaee2ffb90ff406256158ec4d7b52b47", size = 2959312, upload-time = "2024-10-16T11:21:25.584Z" }, + { url = "https://files.pythonhosted.org/packages/d3/bd/213e59854fafe87ba47814bf413ace0dcee33a89c8c8c814faca6bc7cf3c/psycopg2_binary-2.9.10-cp312-cp312-win32.whl", hash = "sha256:ec8a77f521a17506a24a5f626cb2aee7850f9b69a0afe704586f63a464f3cd64", size = 1025191, upload-time = "2024-10-16T11:21:29.912Z" }, + { url = "https://files.pythonhosted.org/packages/92/29/06261ea000e2dc1e22907dbbc483a1093665509ea586b29b8986a0e56733/psycopg2_binary-2.9.10-cp312-cp312-win_amd64.whl", hash = "sha256:18c5ee682b9c6dd3696dad6e54cc7ff3a1a9020df6a5c0f861ef8bfd338c3ca0", size = 1164031, upload-time = "2024-10-16T11:21:34.211Z" }, + { url = "https://files.pythonhosted.org/packages/3e/30/d41d3ba765609c0763505d565c4d12d8f3c79793f0d0f044ff5a28bf395b/psycopg2_binary-2.9.10-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:26540d4a9a4e2b096f1ff9cce51253d0504dca5a85872c7f7be23be5a53eb18d", size = 3044699, upload-time = "2024-10-16T11:21:42.841Z" }, + { url = "https://files.pythonhosted.org/packages/35/44/257ddadec7ef04536ba71af6bc6a75ec05c5343004a7ec93006bee66c0bc/psycopg2_binary-2.9.10-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:e217ce4d37667df0bc1c397fdcd8de5e81018ef305aed9415c3b093faaeb10fb", size = 3275245, upload-time = "2024-10-16T11:21:51.989Z" }, + { url = "https://files.pythonhosted.org/packages/1b/11/48ea1cd11de67f9efd7262085588790a95d9dfcd9b8a687d46caf7305c1a/psycopg2_binary-2.9.10-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:245159e7ab20a71d989da00f280ca57da7641fa2cdcf71749c193cea540a74f7", size = 2851631, upload-time = "2024-10-16T11:21:57.584Z" }, + { url = "https://files.pythonhosted.org/packages/62/e0/62ce5ee650e6c86719d621a761fe4bc846ab9eff8c1f12b1ed5741bf1c9b/psycopg2_binary-2.9.10-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3c4ded1a24b20021ebe677b7b08ad10bf09aac197d6943bfe6fec70ac4e4690d", size = 3082140, upload-time = "2024-10-16T11:22:02.005Z" }, + { url = "https://files.pythonhosted.org/packages/27/ce/63f946c098611f7be234c0dd7cb1ad68b0b5744d34f68062bb3c5aa510c8/psycopg2_binary-2.9.10-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3abb691ff9e57d4a93355f60d4f4c1dd2d68326c968e7db17ea96df3c023ef73", size = 3264762, upload-time = "2024-10-16T11:22:06.412Z" }, + { url = "https://files.pythonhosted.org/packages/43/25/c603cd81402e69edf7daa59b1602bd41eb9859e2824b8c0855d748366ac9/psycopg2_binary-2.9.10-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8608c078134f0b3cbd9f89b34bd60a943b23fd33cc5f065e8d5f840061bd0673", size = 3020967, upload-time = "2024-10-16T11:22:11.583Z" }, + { url = "https://files.pythonhosted.org/packages/5f/d6/8708d8c6fca531057fa170cdde8df870e8b6a9b136e82b361c65e42b841e/psycopg2_binary-2.9.10-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:230eeae2d71594103cd5b93fd29d1ace6420d0b86f4778739cb1a5a32f607d1f", size = 2872326, upload-time = "2024-10-16T11:22:16.406Z" }, + { url = "https://files.pythonhosted.org/packages/ce/ac/5b1ea50fc08a9df82de7e1771537557f07c2632231bbab652c7e22597908/psycopg2_binary-2.9.10-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:bb89f0a835bcfc1d42ccd5f41f04870c1b936d8507c6df12b7737febc40f0909", size = 2822712, upload-time = "2024-10-16T11:22:21.366Z" }, + { url = "https://files.pythonhosted.org/packages/c4/fc/504d4503b2abc4570fac3ca56eb8fed5e437bf9c9ef13f36b6621db8ef00/psycopg2_binary-2.9.10-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:f0c2d907a1e102526dd2986df638343388b94c33860ff3bbe1384130828714b1", size = 2920155, upload-time = "2024-10-16T11:22:25.684Z" }, + { url = "https://files.pythonhosted.org/packages/b2/d1/323581e9273ad2c0dbd1902f3fb50c441da86e894b6e25a73c3fda32c57e/psycopg2_binary-2.9.10-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:f8157bed2f51db683f31306aa497311b560f2265998122abe1dce6428bd86567", size = 2959356, upload-time = "2024-10-16T11:22:30.562Z" }, + { url = "https://files.pythonhosted.org/packages/08/50/d13ea0a054189ae1bc21af1d85b6f8bb9bbc5572991055d70ad9006fe2d6/psycopg2_binary-2.9.10-cp313-cp313-win_amd64.whl", hash = "sha256:27422aa5f11fbcd9b18da48373eb67081243662f9b46e6fd07c3eb46e4535142", size = 2569224, upload-time = "2025-01-04T20:09:19.234Z" }, +] + +[[package]] +name = "py-cpuinfo" +version = "9.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/37/a8/d832f7293ebb21690860d2e01d8115e5ff6f2ae8bbdc953f0eb0fa4bd2c7/py-cpuinfo-9.0.0.tar.gz", hash = "sha256:3cdbbf3fac90dc6f118bfd64384f309edeadd902d7c8fb17f02ffa1fc3f49690", size = 104716, upload-time = "2022-10-25T20:38:06.303Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e0/a9/023730ba63db1e494a271cb018dcd361bd2c917ba7004c3e49d5daf795a2/py_cpuinfo-9.0.0-py3-none-any.whl", hash = "sha256:859625bc251f64e21f077d099d4162689c762b5d6a4c3c97553d56241c9674d5", size = 22335, upload-time = "2022-10-25T20:38:27.636Z" }, +] + +[[package]] +name = "pyarrow" +version = "21.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ef/c2/ea068b8f00905c06329a3dfcd40d0fcc2b7d0f2e355bdb25b65e0a0e4cd4/pyarrow-21.0.0.tar.gz", hash = "sha256:5051f2dccf0e283ff56335760cbc8622cf52264d67e359d5569541ac11b6d5bc", size = 1133487, upload-time = "2025-07-18T00:57:31.761Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ca/d4/d4f817b21aacc30195cf6a46ba041dd1be827efa4a623cc8bf39a1c2a0c0/pyarrow-21.0.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:3a302f0e0963db37e0a24a70c56cf91a4faa0bca51c23812279ca2e23481fccd", size = 31160305, upload-time = "2025-07-18T00:55:35.373Z" }, + { url = "https://files.pythonhosted.org/packages/a2/9c/dcd38ce6e4b4d9a19e1d36914cb8e2b1da4e6003dd075474c4cfcdfe0601/pyarrow-21.0.0-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:b6b27cf01e243871390474a211a7922bfbe3bda21e39bc9160daf0da3fe48876", size = 32684264, upload-time = "2025-07-18T00:55:39.303Z" }, + { url = "https://files.pythonhosted.org/packages/4f/74/2a2d9f8d7a59b639523454bec12dba35ae3d0a07d8ab529dc0809f74b23c/pyarrow-21.0.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:e72a8ec6b868e258a2cd2672d91f2860ad532d590ce94cdf7d5e7ec674ccf03d", size = 41108099, upload-time = "2025-07-18T00:55:42.889Z" }, + { url = "https://files.pythonhosted.org/packages/ad/90/2660332eeb31303c13b653ea566a9918484b6e4d6b9d2d46879a33ab0622/pyarrow-21.0.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:b7ae0bbdc8c6674259b25bef5d2a1d6af5d39d7200c819cf99e07f7dfef1c51e", size = 42829529, upload-time = "2025-07-18T00:55:47.069Z" }, + { url = "https://files.pythonhosted.org/packages/33/27/1a93a25c92717f6aa0fca06eb4700860577d016cd3ae51aad0e0488ac899/pyarrow-21.0.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:58c30a1729f82d201627c173d91bd431db88ea74dcaa3885855bc6203e433b82", size = 43367883, upload-time = "2025-07-18T00:55:53.069Z" }, + { url = "https://files.pythonhosted.org/packages/05/d9/4d09d919f35d599bc05c6950095e358c3e15148ead26292dfca1fb659b0c/pyarrow-21.0.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:072116f65604b822a7f22945a7a6e581cfa28e3454fdcc6939d4ff6090126623", size = 45133802, upload-time = "2025-07-18T00:55:57.714Z" }, + { url = "https://files.pythonhosted.org/packages/71/30/f3795b6e192c3ab881325ffe172e526499eb3780e306a15103a2764916a2/pyarrow-21.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:cf56ec8b0a5c8c9d7021d6fd754e688104f9ebebf1bf4449613c9531f5346a18", size = 26203175, upload-time = "2025-07-18T00:56:01.364Z" }, + { url = "https://files.pythonhosted.org/packages/16/ca/c7eaa8e62db8fb37ce942b1ea0c6d7abfe3786ca193957afa25e71b81b66/pyarrow-21.0.0-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:e99310a4ebd4479bcd1964dff9e14af33746300cb014aa4a3781738ac63baf4a", size = 31154306, upload-time = "2025-07-18T00:56:04.42Z" }, + { url = "https://files.pythonhosted.org/packages/ce/e8/e87d9e3b2489302b3a1aea709aaca4b781c5252fcb812a17ab6275a9a484/pyarrow-21.0.0-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:d2fe8e7f3ce329a71b7ddd7498b3cfac0eeb200c2789bd840234f0dc271a8efe", size = 32680622, upload-time = "2025-07-18T00:56:07.505Z" }, + { url = "https://files.pythonhosted.org/packages/84/52/79095d73a742aa0aba370c7942b1b655f598069489ab387fe47261a849e1/pyarrow-21.0.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:f522e5709379d72fb3da7785aa489ff0bb87448a9dc5a75f45763a795a089ebd", size = 41104094, upload-time = "2025-07-18T00:56:10.994Z" }, + { url = "https://files.pythonhosted.org/packages/89/4b/7782438b551dbb0468892a276b8c789b8bbdb25ea5c5eb27faadd753e037/pyarrow-21.0.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:69cbbdf0631396e9925e048cfa5bce4e8c3d3b41562bbd70c685a8eb53a91e61", size = 42825576, upload-time = "2025-07-18T00:56:15.569Z" }, + { url = "https://files.pythonhosted.org/packages/b3/62/0f29de6e0a1e33518dec92c65be0351d32d7ca351e51ec5f4f837a9aab91/pyarrow-21.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:731c7022587006b755d0bdb27626a1a3bb004bb56b11fb30d98b6c1b4718579d", size = 43368342, upload-time = "2025-07-18T00:56:19.531Z" }, + { url = "https://files.pythonhosted.org/packages/90/c7/0fa1f3f29cf75f339768cc698c8ad4ddd2481c1742e9741459911c9ac477/pyarrow-21.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:dc56bc708f2d8ac71bd1dcb927e458c93cec10b98eb4120206a4091db7b67b99", size = 45131218, upload-time = "2025-07-18T00:56:23.347Z" }, + { url = "https://files.pythonhosted.org/packages/01/63/581f2076465e67b23bc5a37d4a2abff8362d389d29d8105832e82c9c811c/pyarrow-21.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:186aa00bca62139f75b7de8420f745f2af12941595bbbfa7ed3870ff63e25636", size = 26087551, upload-time = "2025-07-18T00:56:26.758Z" }, + { url = "https://files.pythonhosted.org/packages/c9/ab/357d0d9648bb8241ee7348e564f2479d206ebe6e1c47ac5027c2e31ecd39/pyarrow-21.0.0-cp313-cp313t-macosx_12_0_arm64.whl", hash = "sha256:a7a102574faa3f421141a64c10216e078df467ab9576684d5cd696952546e2da", size = 31290064, upload-time = "2025-07-18T00:56:30.214Z" }, + { url = "https://files.pythonhosted.org/packages/3f/8a/5685d62a990e4cac2043fc76b4661bf38d06efed55cf45a334b455bd2759/pyarrow-21.0.0-cp313-cp313t-macosx_12_0_x86_64.whl", hash = "sha256:1e005378c4a2c6db3ada3ad4c217b381f6c886f0a80d6a316fe586b90f77efd7", size = 32727837, upload-time = "2025-07-18T00:56:33.935Z" }, + { url = "https://files.pythonhosted.org/packages/fc/de/c0828ee09525c2bafefd3e736a248ebe764d07d0fd762d4f0929dbc516c9/pyarrow-21.0.0-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:65f8e85f79031449ec8706b74504a316805217b35b6099155dd7e227eef0d4b6", size = 41014158, upload-time = "2025-07-18T00:56:37.528Z" }, + { url = "https://files.pythonhosted.org/packages/6e/26/a2865c420c50b7a3748320b614f3484bfcde8347b2639b2b903b21ce6a72/pyarrow-21.0.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:3a81486adc665c7eb1a2bde0224cfca6ceaba344a82a971ef059678417880eb8", size = 42667885, upload-time = "2025-07-18T00:56:41.483Z" }, + { url = "https://files.pythonhosted.org/packages/0a/f9/4ee798dc902533159250fb4321267730bc0a107d8c6889e07c3add4fe3a5/pyarrow-21.0.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:fc0d2f88b81dcf3ccf9a6ae17f89183762c8a94a5bdcfa09e05cfe413acf0503", size = 43276625, upload-time = "2025-07-18T00:56:48.002Z" }, + { url = "https://files.pythonhosted.org/packages/5a/da/e02544d6997037a4b0d22d8e5f66bc9315c3671371a8b18c79ade1cefe14/pyarrow-21.0.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:6299449adf89df38537837487a4f8d3bd91ec94354fdd2a7d30bc11c48ef6e79", size = 44951890, upload-time = "2025-07-18T00:56:52.568Z" }, + { url = "https://files.pythonhosted.org/packages/e5/4e/519c1bc1876625fe6b71e9a28287c43ec2f20f73c658b9ae1d485c0c206e/pyarrow-21.0.0-cp313-cp313t-win_amd64.whl", hash = "sha256:222c39e2c70113543982c6b34f3077962b44fca38c0bd9e68bb6781534425c10", size = 26371006, upload-time = "2025-07-18T00:56:56.379Z" }, +] + +[[package]] +name = "pyasn1" +version = "0.6.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ba/e9/01f1a64245b89f039897cb0130016d79f77d52669aae6ee7b159a6c4c018/pyasn1-0.6.1.tar.gz", hash = "sha256:6f580d2bdd84365380830acf45550f2511469f673cb4a5ae3857a3170128b034", size = 145322, upload-time = "2024-09-10T22:41:42.55Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c8/f1/d6a797abb14f6283c0ddff96bbdd46937f64122b8c925cab503dd37f8214/pyasn1-0.6.1-py3-none-any.whl", hash = "sha256:0d632f46f2ba09143da3a8afe9e33fb6f92fa2320ab7e886e2d0f7672af84629", size = 83135, upload-time = "2024-09-11T16:00:36.122Z" }, +] + +[[package]] +name = "pyasn1-modules" +version = "0.4.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pyasn1" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e9/e6/78ebbb10a8c8e4b61a59249394a4a594c1a7af95593dc933a349c8d00964/pyasn1_modules-0.4.2.tar.gz", hash = "sha256:677091de870a80aae844b1ca6134f54652fa2c8c5a52aa396440ac3106e941e6", size = 307892, upload-time = "2025-03-28T02:41:22.17Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/47/8d/d529b5d697919ba8c11ad626e835d4039be708a35b0d22de83a269a6682c/pyasn1_modules-0.4.2-py3-none-any.whl", hash = "sha256:29253a9207ce32b64c3ac6600edc75368f98473906e8fd1043bd6b5b1de2c14a", size = 181259, upload-time = "2025-03-28T02:41:19.028Z" }, +] + +[[package]] +name = "pyclipper" +version = "1.3.0.post6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/4a/b2/550fe500e49c464d73fabcb8cb04d47e4885d6ca4cfc1f5b0a125a95b19a/pyclipper-1.3.0.post6.tar.gz", hash = "sha256:42bff0102fa7a7f2abdd795a2594654d62b786d0c6cd67b72d469114fdeb608c", size = 165909, upload-time = "2024-10-18T12:23:09.069Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fc/c8/197d9a1d8354922d24d11d22fb2e0cc1ebc182f8a30496b7ddbe89467ce1/pyclipper-1.3.0.post6-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:6363b9d79ba1b5d8f32d1623e797c1e9f994600943402e68d5266067bdde173e", size = 270487, upload-time = "2024-10-18T12:22:14.852Z" }, + { url = "https://files.pythonhosted.org/packages/8e/8e/eb14eadf054494ad81446e21c4ea163b941747610b0eb9051644395f567e/pyclipper-1.3.0.post6-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:32cd7fb9c1c893eb87f82a072dbb5e26224ea7cebbad9dc306d67e1ac62dd229", size = 143469, upload-time = "2024-10-18T12:22:16.109Z" }, + { url = "https://files.pythonhosted.org/packages/cf/e5/6c4a8df6e904c133bb4c5309d211d31c751db60cbd36a7250c02b05494a1/pyclipper-1.3.0.post6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e3aab10e3c10ed8fa60c608fb87c040089b83325c937f98f06450cf9fcfdaf1d", size = 944206, upload-time = "2024-10-18T12:22:17.216Z" }, + { url = "https://files.pythonhosted.org/packages/76/65/cb014acc41cd5bf6bbfa4671c7faffffb9cee01706642c2dec70c5209ac8/pyclipper-1.3.0.post6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58eae2ff92a8cae1331568df076c4c5775bf946afab0068b217f0cf8e188eb3c", size = 963797, upload-time = "2024-10-18T12:22:18.881Z" }, + { url = "https://files.pythonhosted.org/packages/80/ec/b40cd81ab7598984167508a5369a2fa31a09fe3b3e3d0b73aa50e06d4b3f/pyclipper-1.3.0.post6-cp312-cp312-win32.whl", hash = "sha256:793b0aa54b914257aa7dc76b793dd4dcfb3c84011d48df7e41ba02b571616eaf", size = 99456, upload-time = "2024-10-18T12:22:20.084Z" }, + { url = "https://files.pythonhosted.org/packages/24/3a/7d6292e3c94fb6b872d8d7e80d909dc527ee6b0af73b753c63fdde65a7da/pyclipper-1.3.0.post6-cp312-cp312-win_amd64.whl", hash = "sha256:d3f9da96f83b8892504923beb21a481cd4516c19be1d39eb57a92ef1c9a29548", size = 110278, upload-time = "2024-10-18T12:22:21.178Z" }, + { url = "https://files.pythonhosted.org/packages/8c/b3/75232906bd13f869600d23bdb8fe6903cc899fa7e96981ae4c9b7d9c409e/pyclipper-1.3.0.post6-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:f129284d2c7bcd213d11c0f35e1ae506a1144ce4954e9d1734d63b120b0a1b58", size = 268254, upload-time = "2024-10-18T12:22:22.272Z" }, + { url = "https://files.pythonhosted.org/packages/0b/db/35843050a3dd7586781497a21ca6c8d48111afb66061cb40c3d3c288596d/pyclipper-1.3.0.post6-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:188fbfd1d30d02247f92c25ce856f5f3c75d841251f43367dbcf10935bc48f38", size = 142204, upload-time = "2024-10-18T12:22:24.315Z" }, + { url = "https://files.pythonhosted.org/packages/7c/d7/1faa0ff35caa02cb32cb0583688cded3f38788f33e02bfe6461fbcc1bee1/pyclipper-1.3.0.post6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d6d129d0c2587f2f5904d201a4021f859afbb45fada4261c9fdedb2205b09d23", size = 943835, upload-time = "2024-10-18T12:22:26.233Z" }, + { url = "https://files.pythonhosted.org/packages/31/10/c0bf140bee2844e2c0617fdcc8a4e8daf98e71710046b06034e6f1963404/pyclipper-1.3.0.post6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5c9c80b5c46eef38ba3f12dd818dc87f5f2a0853ba914b6f91b133232315f526", size = 962510, upload-time = "2024-10-18T12:22:27.573Z" }, + { url = "https://files.pythonhosted.org/packages/85/6f/8c6afc49b51b1bf16d5903ecd5aee657cf88f52c83cb5fabf771deeba728/pyclipper-1.3.0.post6-cp313-cp313-win32.whl", hash = "sha256:b15113ec4fc423b58e9ae80aa95cf5a0802f02d8f02a98a46af3d7d66ff0cc0e", size = 98836, upload-time = "2024-10-18T12:22:29.157Z" }, + { url = "https://files.pythonhosted.org/packages/d5/19/9ff4551b42f2068686c50c0d199072fa67aee57fc5cf86770cacf71efda3/pyclipper-1.3.0.post6-cp313-cp313-win_amd64.whl", hash = "sha256:e5ff68fa770ac654c7974fc78792978796f068bd274e95930c0691c31e192889", size = 109672, upload-time = "2024-10-18T12:22:30.411Z" }, +] + +[[package]] +name = "pycparser" +version = "2.22" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/1d/b2/31537cf4b1ca988837256c910a668b553fceb8f069bedc4b1c826024b52c/pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6", size = 172736, upload-time = "2024-03-30T13:22:22.564Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/13/a3/a812df4e2dd5696d1f351d58b8fe16a405b234ad2886a0dab9183fb78109/pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc", size = 117552, upload-time = "2024-03-30T13:22:20.476Z" }, +] + +[[package]] +name = "pydantic" +version = "2.11.7" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "annotated-types" }, + { name = "pydantic-core" }, + { name = "typing-extensions" }, + { name = "typing-inspection" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/00/dd/4325abf92c39ba8623b5af936ddb36ffcfe0beae70405d456ab1fb2f5b8c/pydantic-2.11.7.tar.gz", hash = "sha256:d989c3c6cb79469287b1569f7447a17848c998458d49ebe294e975b9baf0f0db", size = 788350, upload-time = "2025-06-14T08:33:17.137Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6a/c0/ec2b1c8712ca690e5d61979dee872603e92b8a32f94cc1b72d53beab008a/pydantic-2.11.7-py3-none-any.whl", hash = "sha256:dde5df002701f6de26248661f6835bbe296a47bf73990135c7d07ce741b9623b", size = 444782, upload-time = "2025-06-14T08:33:14.905Z" }, +] + +[[package]] +name = "pydantic-ai" +version = "0.7.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pydantic-ai-slim", extra = ["ag-ui", "anthropic", "bedrock", "cli", "cohere", "evals", "google", "groq", "huggingface", "mcp", "mistral", "openai", "retries", "temporal", "vertexai"] }, +] +sdist = { url = "https://files.pythonhosted.org/packages/fc/34/8cb6b35e20a70a9d4c85f2965f327dc5bc6f67670bf5c6acec4d3c0ad473/pydantic_ai-0.7.0.tar.gz", hash = "sha256:77da665f6980336c0c237233ad6ff63a501bf1ec6a6efcbdeb0d9179e2e1bcf4", size = 43765402, upload-time = "2025-08-12T23:18:33.318Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/42/a4/e3f695b85d5df0dd7f053c4397f0031e5b3d7c514e799b43bdeb5b562dc7/pydantic_ai-0.7.0-py3-none-any.whl", hash = "sha256:cbed3123d3ea1217580adbfc6f21d06a3c7deb45952a353588cbf7bb7f133ec9", size = 10187, upload-time = "2025-08-12T23:18:23.891Z" }, +] + +[[package]] +name = "pydantic-ai-slim" +version = "0.7.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "eval-type-backport" }, + { name = "griffe" }, + { name = "httpx" }, + { name = "opentelemetry-api" }, + { name = "pydantic" }, + { name = "pydantic-graph" }, + { name = "typing-inspection" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/4a/b2/294beb3633764b14dae6b774f313872ab5978aafa7c1c94e86d0b5d008e0/pydantic_ai_slim-0.7.0.tar.gz", hash = "sha256:dfac38095f6638167fbae7262029bc8a3afbf116cfbeed32b279a3c9bc7e6de5", size = 209432, upload-time = "2025-08-12T23:18:37.656Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/53/08/8ae1bcb57b552fc31a9c71140e900bf4f4218f109e293ac70f6318d05673/pydantic_ai_slim-0.7.0-py3-none-any.whl", hash = "sha256:ab4cf6c6466d54d5e28c74a0bbbccb7c9a638589c2f6ed54fed3d099cdf4f749", size = 285594, upload-time = "2025-08-12T23:18:26.751Z" }, +] + +[package.optional-dependencies] +ag-ui = [ + { name = "ag-ui-protocol" }, + { name = "starlette" }, +] +anthropic = [ + { name = "anthropic" }, +] +bedrock = [ + { name = "boto3" }, +] +cli = [ + { name = "argcomplete" }, + { name = "prompt-toolkit" }, + { name = "rich" }, +] +cohere = [ + { name = "cohere", marker = "sys_platform != 'emscripten'" }, +] +evals = [ + { name = "pydantic-evals" }, +] +google = [ + { name = "google-genai" }, +] +groq = [ + { name = "groq" }, +] +huggingface = [ + { name = "huggingface-hub", extra = ["inference"] }, +] +mcp = [ + { name = "mcp" }, +] +mistral = [ + { name = "mistralai" }, +] +openai = [ + { name = "openai" }, +] +retries = [ + { name = "tenacity" }, +] +temporal = [ + { name = "temporalio" }, +] +vertexai = [ + { name = "google-auth" }, + { name = "requests" }, +] + +[[package]] +name = "pydantic-core" +version = "2.33.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ad/88/5f2260bdfae97aabf98f1778d43f69574390ad787afb646292a638c923d4/pydantic_core-2.33.2.tar.gz", hash = "sha256:7cb8bc3605c29176e1b105350d2e6474142d7c1bd1d9327c4a9bdb46bf827acc", size = 435195, upload-time = "2025-04-23T18:33:52.104Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/18/8a/2b41c97f554ec8c71f2a8a5f85cb56a8b0956addfe8b0efb5b3d77e8bdc3/pydantic_core-2.33.2-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:a7ec89dc587667f22b6a0b6579c249fca9026ce7c333fc142ba42411fa243cdc", size = 2009000, upload-time = "2025-04-23T18:31:25.863Z" }, + { url = "https://files.pythonhosted.org/packages/a1/02/6224312aacb3c8ecbaa959897af57181fb6cf3a3d7917fd44d0f2917e6f2/pydantic_core-2.33.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:3c6db6e52c6d70aa0d00d45cdb9b40f0433b96380071ea80b09277dba021ddf7", size = 1847996, upload-time = "2025-04-23T18:31:27.341Z" }, + { url = "https://files.pythonhosted.org/packages/d6/46/6dcdf084a523dbe0a0be59d054734b86a981726f221f4562aed313dbcb49/pydantic_core-2.33.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e61206137cbc65e6d5256e1166f88331d3b6238e082d9f74613b9b765fb9025", size = 1880957, upload-time = "2025-04-23T18:31:28.956Z" }, + { url = "https://files.pythonhosted.org/packages/ec/6b/1ec2c03837ac00886ba8160ce041ce4e325b41d06a034adbef11339ae422/pydantic_core-2.33.2-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:eb8c529b2819c37140eb51b914153063d27ed88e3bdc31b71198a198e921e011", size = 1964199, upload-time = "2025-04-23T18:31:31.025Z" }, + { url = "https://files.pythonhosted.org/packages/2d/1d/6bf34d6adb9debd9136bd197ca72642203ce9aaaa85cfcbfcf20f9696e83/pydantic_core-2.33.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c52b02ad8b4e2cf14ca7b3d918f3eb0ee91e63b3167c32591e57c4317e134f8f", size = 2120296, upload-time = "2025-04-23T18:31:32.514Z" }, + { url = "https://files.pythonhosted.org/packages/e0/94/2bd0aaf5a591e974b32a9f7123f16637776c304471a0ab33cf263cf5591a/pydantic_core-2.33.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:96081f1605125ba0855dfda83f6f3df5ec90c61195421ba72223de35ccfb2f88", size = 2676109, upload-time = "2025-04-23T18:31:33.958Z" }, + { url = "https://files.pythonhosted.org/packages/f9/41/4b043778cf9c4285d59742281a769eac371b9e47e35f98ad321349cc5d61/pydantic_core-2.33.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f57a69461af2a5fa6e6bbd7a5f60d3b7e6cebb687f55106933188e79ad155c1", size = 2002028, upload-time = "2025-04-23T18:31:39.095Z" }, + { url = "https://files.pythonhosted.org/packages/cb/d5/7bb781bf2748ce3d03af04d5c969fa1308880e1dca35a9bd94e1a96a922e/pydantic_core-2.33.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:572c7e6c8bb4774d2ac88929e3d1f12bc45714ae5ee6d9a788a9fb35e60bb04b", size = 2100044, upload-time = "2025-04-23T18:31:41.034Z" }, + { url = "https://files.pythonhosted.org/packages/fe/36/def5e53e1eb0ad896785702a5bbfd25eed546cdcf4087ad285021a90ed53/pydantic_core-2.33.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:db4b41f9bd95fbe5acd76d89920336ba96f03e149097365afe1cb092fceb89a1", size = 2058881, upload-time = "2025-04-23T18:31:42.757Z" }, + { url = "https://files.pythonhosted.org/packages/01/6c/57f8d70b2ee57fc3dc8b9610315949837fa8c11d86927b9bb044f8705419/pydantic_core-2.33.2-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:fa854f5cf7e33842a892e5c73f45327760bc7bc516339fda888c75ae60edaeb6", size = 2227034, upload-time = "2025-04-23T18:31:44.304Z" }, + { url = "https://files.pythonhosted.org/packages/27/b9/9c17f0396a82b3d5cbea4c24d742083422639e7bb1d5bf600e12cb176a13/pydantic_core-2.33.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:5f483cfb75ff703095c59e365360cb73e00185e01aaea067cd19acffd2ab20ea", size = 2234187, upload-time = "2025-04-23T18:31:45.891Z" }, + { url = "https://files.pythonhosted.org/packages/b0/6a/adf5734ffd52bf86d865093ad70b2ce543415e0e356f6cacabbc0d9ad910/pydantic_core-2.33.2-cp312-cp312-win32.whl", hash = "sha256:9cb1da0f5a471435a7bc7e439b8a728e8b61e59784b2af70d7c169f8dd8ae290", size = 1892628, upload-time = "2025-04-23T18:31:47.819Z" }, + { url = "https://files.pythonhosted.org/packages/43/e4/5479fecb3606c1368d496a825d8411e126133c41224c1e7238be58b87d7e/pydantic_core-2.33.2-cp312-cp312-win_amd64.whl", hash = "sha256:f941635f2a3d96b2973e867144fde513665c87f13fe0e193c158ac51bfaaa7b2", size = 1955866, upload-time = "2025-04-23T18:31:49.635Z" }, + { url = "https://files.pythonhosted.org/packages/0d/24/8b11e8b3e2be9dd82df4b11408a67c61bb4dc4f8e11b5b0fc888b38118b5/pydantic_core-2.33.2-cp312-cp312-win_arm64.whl", hash = "sha256:cca3868ddfaccfbc4bfb1d608e2ccaaebe0ae628e1416aeb9c4d88c001bb45ab", size = 1888894, upload-time = "2025-04-23T18:31:51.609Z" }, + { url = "https://files.pythonhosted.org/packages/46/8c/99040727b41f56616573a28771b1bfa08a3d3fe74d3d513f01251f79f172/pydantic_core-2.33.2-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:1082dd3e2d7109ad8b7da48e1d4710c8d06c253cbc4a27c1cff4fbcaa97a9e3f", size = 2015688, upload-time = "2025-04-23T18:31:53.175Z" }, + { url = "https://files.pythonhosted.org/packages/3a/cc/5999d1eb705a6cefc31f0b4a90e9f7fc400539b1a1030529700cc1b51838/pydantic_core-2.33.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f517ca031dfc037a9c07e748cefd8d96235088b83b4f4ba8939105d20fa1dcd6", size = 1844808, upload-time = "2025-04-23T18:31:54.79Z" }, + { url = "https://files.pythonhosted.org/packages/6f/5e/a0a7b8885c98889a18b6e376f344da1ef323d270b44edf8174d6bce4d622/pydantic_core-2.33.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0a9f2c9dd19656823cb8250b0724ee9c60a82f3cdf68a080979d13092a3b0fef", size = 1885580, upload-time = "2025-04-23T18:31:57.393Z" }, + { url = "https://files.pythonhosted.org/packages/3b/2a/953581f343c7d11a304581156618c3f592435523dd9d79865903272c256a/pydantic_core-2.33.2-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2b0a451c263b01acebe51895bfb0e1cc842a5c666efe06cdf13846c7418caa9a", size = 1973859, upload-time = "2025-04-23T18:31:59.065Z" }, + { url = "https://files.pythonhosted.org/packages/e6/55/f1a813904771c03a3f97f676c62cca0c0a4138654107c1b61f19c644868b/pydantic_core-2.33.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1ea40a64d23faa25e62a70ad163571c0b342b8bf66d5fa612ac0dec4f069d916", size = 2120810, upload-time = "2025-04-23T18:32:00.78Z" }, + { url = "https://files.pythonhosted.org/packages/aa/c3/053389835a996e18853ba107a63caae0b9deb4a276c6b472931ea9ae6e48/pydantic_core-2.33.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0fb2d542b4d66f9470e8065c5469ec676978d625a8b7a363f07d9a501a9cb36a", size = 2676498, upload-time = "2025-04-23T18:32:02.418Z" }, + { url = "https://files.pythonhosted.org/packages/eb/3c/f4abd740877a35abade05e437245b192f9d0ffb48bbbbd708df33d3cda37/pydantic_core-2.33.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9fdac5d6ffa1b5a83bca06ffe7583f5576555e6c8b3a91fbd25ea7780f825f7d", size = 2000611, upload-time = "2025-04-23T18:32:04.152Z" }, + { url = "https://files.pythonhosted.org/packages/59/a7/63ef2fed1837d1121a894d0ce88439fe3e3b3e48c7543b2a4479eb99c2bd/pydantic_core-2.33.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:04a1a413977ab517154eebb2d326da71638271477d6ad87a769102f7c2488c56", size = 2107924, upload-time = "2025-04-23T18:32:06.129Z" }, + { url = "https://files.pythonhosted.org/packages/04/8f/2551964ef045669801675f1cfc3b0d74147f4901c3ffa42be2ddb1f0efc4/pydantic_core-2.33.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:c8e7af2f4e0194c22b5b37205bfb293d166a7344a5b0d0eaccebc376546d77d5", size = 2063196, upload-time = "2025-04-23T18:32:08.178Z" }, + { url = "https://files.pythonhosted.org/packages/26/bd/d9602777e77fc6dbb0c7db9ad356e9a985825547dce5ad1d30ee04903918/pydantic_core-2.33.2-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:5c92edd15cd58b3c2d34873597a1e20f13094f59cf88068adb18947df5455b4e", size = 2236389, upload-time = "2025-04-23T18:32:10.242Z" }, + { url = "https://files.pythonhosted.org/packages/42/db/0e950daa7e2230423ab342ae918a794964b053bec24ba8af013fc7c94846/pydantic_core-2.33.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:65132b7b4a1c0beded5e057324b7e16e10910c106d43675d9bd87d4f38dde162", size = 2239223, upload-time = "2025-04-23T18:32:12.382Z" }, + { url = "https://files.pythonhosted.org/packages/58/4d/4f937099c545a8a17eb52cb67fe0447fd9a373b348ccfa9a87f141eeb00f/pydantic_core-2.33.2-cp313-cp313-win32.whl", hash = "sha256:52fb90784e0a242bb96ec53f42196a17278855b0f31ac7c3cc6f5c1ec4811849", size = 1900473, upload-time = "2025-04-23T18:32:14.034Z" }, + { url = "https://files.pythonhosted.org/packages/a0/75/4a0a9bac998d78d889def5e4ef2b065acba8cae8c93696906c3a91f310ca/pydantic_core-2.33.2-cp313-cp313-win_amd64.whl", hash = "sha256:c083a3bdd5a93dfe480f1125926afcdbf2917ae714bdb80b36d34318b2bec5d9", size = 1955269, upload-time = "2025-04-23T18:32:15.783Z" }, + { url = "https://files.pythonhosted.org/packages/f9/86/1beda0576969592f1497b4ce8e7bc8cbdf614c352426271b1b10d5f0aa64/pydantic_core-2.33.2-cp313-cp313-win_arm64.whl", hash = "sha256:e80b087132752f6b3d714f041ccf74403799d3b23a72722ea2e6ba2e892555b9", size = 1893921, upload-time = "2025-04-23T18:32:18.473Z" }, + { url = "https://files.pythonhosted.org/packages/a4/7d/e09391c2eebeab681df2b74bfe6c43422fffede8dc74187b2b0bf6fd7571/pydantic_core-2.33.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:61c18fba8e5e9db3ab908620af374db0ac1baa69f0f32df4f61ae23f15e586ac", size = 1806162, upload-time = "2025-04-23T18:32:20.188Z" }, + { url = "https://files.pythonhosted.org/packages/f1/3d/847b6b1fed9f8ed3bb95a9ad04fbd0b212e832d4f0f50ff4d9ee5a9f15cf/pydantic_core-2.33.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:95237e53bb015f67b63c91af7518a62a8660376a6a0db19b89acc77a4d6199f5", size = 1981560, upload-time = "2025-04-23T18:32:22.354Z" }, + { url = "https://files.pythonhosted.org/packages/6f/9a/e73262f6c6656262b5fdd723ad90f518f579b7bc8622e43a942eec53c938/pydantic_core-2.33.2-cp313-cp313t-win_amd64.whl", hash = "sha256:c2fc0a768ef76c15ab9238afa6da7f69895bb5d1ee83aeea2e3509af4472d0b9", size = 1935777, upload-time = "2025-04-23T18:32:25.088Z" }, +] + +[[package]] +name = "pydantic-evals" +version = "0.7.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "logfire-api" }, + { name = "pydantic" }, + { name = "pydantic-ai-slim" }, + { name = "pyyaml" }, + { name = "rich" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ba/7d/1fd13a1876d81d7dc97ddf7780968126c5a4a6512aaae55cab119cb86fb8/pydantic_evals-0.7.0.tar.gz", hash = "sha256:912f995c5b7a105d03b8470e46f49610aebe9372c609458f2179c4262ffb222f", size = 44082, upload-time = "2025-08-12T23:18:38.986Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/eb/1f/c201483791145aa7315df38422110cffd35b9ed1bf89ca9e99e22fdaebd9/pydantic_evals-0.7.0-py3-none-any.whl", hash = "sha256:13117cc2c3844b0adc1db4cd65e246c11534e230ea7ecb603a650918f9e5f100", size = 52759, upload-time = "2025-08-12T23:18:28.434Z" }, +] + +[[package]] +name = "pydantic-graph" +version = "0.7.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "httpx" }, + { name = "logfire-api" }, + { name = "pydantic" }, + { name = "typing-inspection" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/53/0d/424dfd9fb1c04fa201407ab7bfb06d583e9431758bf6a4b89396ac8106e6/pydantic_graph-0.7.0.tar.gz", hash = "sha256:147166ab65c1a7ebc81b836910e6fa73fd9d14ee643b6a90074ea08d2eceb19d", size = 21806, upload-time = "2025-08-12T23:18:39.828Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ef/66/e601a596ae7cc6c33f1a5a43b71305d2e687235b86d97dab1de10e0071d2/pydantic_graph-0.7.0-py3-none-any.whl", hash = "sha256:a2a3ddf2d0d10f6aee501dc48fb40a391624a348fccffbb6b2c97ec10c71991a", size = 27395, upload-time = "2025-08-12T23:18:29.991Z" }, +] + +[[package]] +name = "pydantic-settings" +version = "2.10.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pydantic" }, + { name = "python-dotenv" }, + { name = "typing-inspection" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/68/85/1ea668bbab3c50071ca613c6ab30047fb36ab0da1b92fa8f17bbc38fd36c/pydantic_settings-2.10.1.tar.gz", hash = "sha256:06f0062169818d0f5524420a360d632d5857b83cffd4d42fe29597807a1614ee", size = 172583, upload-time = "2025-06-24T13:26:46.841Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/58/f0/427018098906416f580e3cf1366d3b1abfb408a0652e9f31600c24a1903c/pydantic_settings-2.10.1-py3-none-any.whl", hash = "sha256:a60952460b99cf661dc25c29c0ef171721f98bfcb52ef8d9ea4c943d7c8cc796", size = 45235, upload-time = "2025-06-24T13:26:45.485Z" }, +] + +[[package]] +name = "pydeck" +version = "0.9.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "jinja2" }, + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a1/ca/40e14e196864a0f61a92abb14d09b3d3da98f94ccb03b49cf51688140dab/pydeck-0.9.1.tar.gz", hash = "sha256:f74475ae637951d63f2ee58326757f8d4f9cd9f2a457cf42950715003e2cb605", size = 3832240, upload-time = "2024-05-10T15:36:21.153Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ab/4c/b888e6cf58bd9db9c93f40d1c6be8283ff49d88919231afe93a6bcf61626/pydeck-0.9.1-py2.py3-none-any.whl", hash = "sha256:b3f75ba0d273fc917094fa61224f3f6076ca8752b93d46faf3bcfd9f9d59b038", size = 6900403, upload-time = "2024-05-10T15:36:17.36Z" }, +] + +[[package]] +name = "pydub" +version = "0.25.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fe/9a/e6bca0eed82db26562c73b5076539a4a08d3cffd19c3cc5913a3e61145fd/pydub-0.25.1.tar.gz", hash = "sha256:980a33ce9949cab2a569606b65674d748ecbca4f0796887fd6f46173a7b0d30f", size = 38326, upload-time = "2021-03-10T02:09:54.659Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a6/53/d78dc063216e62fc55f6b2eebb447f6a4b0a59f55c8406376f76bf959b08/pydub-0.25.1-py2.py3-none-any.whl", hash = "sha256:65617e33033874b59d87db603aa1ed450633288aefead953b30bded59cb599a6", size = 32327, upload-time = "2021-03-10T02:09:53.503Z" }, +] + +[[package]] +name = "pygments" +version = "2.19.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887", size = 4968631, upload-time = "2025-06-21T13:39:12.283Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217, upload-time = "2025-06-21T13:39:07.939Z" }, +] + +[[package]] +name = "pyparsing" +version = "3.2.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/bb/22/f1129e69d94ffff626bdb5c835506b3a5b4f3d070f17ea295e12c2c6f60f/pyparsing-3.2.3.tar.gz", hash = "sha256:b9c13f1ab8b3b542f72e28f634bad4de758ab3ce4546e4301970ad6fa77c38be", size = 1088608, upload-time = "2025-03-25T05:01:28.114Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/05/e7/df2285f3d08fee213f2d041540fa4fc9ca6c2d44cf36d3a035bf2a8d2bcc/pyparsing-3.2.3-py3-none-any.whl", hash = "sha256:a749938e02d6fd0b59b356ca504a24982314bb090c383e3cf201c95ef7e2bfcf", size = 111120, upload-time = "2025-03-25T05:01:24.908Z" }, +] + +[[package]] +name = "pypdf" +version = "6.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/20/ac/a300a03c3b34967c050677ccb16e7a4b65607ee5df9d51e8b6d713de4098/pypdf-6.0.0.tar.gz", hash = "sha256:282a99d2cc94a84a3a3159f0d9358c0af53f85b4d28d76ea38b96e9e5ac2a08d", size = 5033827, upload-time = "2025-08-11T14:22:02.352Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/83/2cacc506eb322bb31b747bc06ccb82cc9aa03e19ee9c1245e538e49d52be/pypdf-6.0.0-py3-none-any.whl", hash = "sha256:56ea60100ce9f11fc3eec4f359da15e9aec3821b036c1f06d2b660d35683abb8", size = 310465, upload-time = "2025-08-11T14:22:00.481Z" }, +] + +[[package]] +name = "pypdfium2" +version = "4.30.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a1/14/838b3ba247a0ba92e4df5d23f2bea9478edcfd72b78a39d6ca36ccd84ad2/pypdfium2-4.30.0.tar.gz", hash = "sha256:48b5b7e5566665bc1015b9d69c1ebabe21f6aee468b509531c3c8318eeee2e16", size = 140239, upload-time = "2024-05-09T18:33:17.552Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c7/9a/c8ff5cc352c1b60b0b97642ae734f51edbab6e28b45b4fcdfe5306ee3c83/pypdfium2-4.30.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:b33ceded0b6ff5b2b93bc1fe0ad4b71aa6b7e7bd5875f1ca0cdfb6ba6ac01aab", size = 2837254, upload-time = "2024-05-09T18:32:48.653Z" }, + { url = "https://files.pythonhosted.org/packages/21/8b/27d4d5409f3c76b985f4ee4afe147b606594411e15ac4dc1c3363c9a9810/pypdfium2-4.30.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:4e55689f4b06e2d2406203e771f78789bd4f190731b5d57383d05cf611d829de", size = 2707624, upload-time = "2024-05-09T18:32:51.458Z" }, + { url = "https://files.pythonhosted.org/packages/11/63/28a73ca17c24b41a205d658e177d68e198d7dde65a8c99c821d231b6ee3d/pypdfium2-4.30.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e6e50f5ce7f65a40a33d7c9edc39f23140c57e37144c2d6d9e9262a2a854854", size = 2793126, upload-time = "2024-05-09T18:32:53.581Z" }, + { url = "https://files.pythonhosted.org/packages/d1/96/53b3ebf0955edbd02ac6da16a818ecc65c939e98fdeb4e0958362bd385c8/pypdfium2-4.30.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3d0dd3ecaffd0b6dbda3da663220e705cb563918249bda26058c6036752ba3a2", size = 2591077, upload-time = "2024-05-09T18:32:55.99Z" }, + { url = "https://files.pythonhosted.org/packages/ec/ee/0394e56e7cab8b5b21f744d988400948ef71a9a892cbeb0b200d324ab2c7/pypdfium2-4.30.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cc3bf29b0db8c76cdfaac1ec1cde8edf211a7de7390fbf8934ad2aa9b4d6dfad", size = 2864431, upload-time = "2024-05-09T18:32:57.911Z" }, + { url = "https://files.pythonhosted.org/packages/65/cd/3f1edf20a0ef4a212a5e20a5900e64942c5a374473671ac0780eaa08ea80/pypdfium2-4.30.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f1f78d2189e0ddf9ac2b7a9b9bd4f0c66f54d1389ff6c17e9fd9dc034d06eb3f", size = 2812008, upload-time = "2024-05-09T18:32:59.886Z" }, + { url = "https://files.pythonhosted.org/packages/c8/91/2d517db61845698f41a2a974de90762e50faeb529201c6b3574935969045/pypdfium2-4.30.0-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:5eda3641a2da7a7a0b2f4dbd71d706401a656fea521b6b6faa0675b15d31a163", size = 6181543, upload-time = "2024-05-09T18:33:02.597Z" }, + { url = "https://files.pythonhosted.org/packages/ba/c4/ed1315143a7a84b2c7616569dfb472473968d628f17c231c39e29ae9d780/pypdfium2-4.30.0-py3-none-musllinux_1_1_i686.whl", hash = "sha256:0dfa61421b5eb68e1188b0b2231e7ba35735aef2d867d86e48ee6cab6975195e", size = 6175911, upload-time = "2024-05-09T18:33:05.376Z" }, + { url = "https://files.pythonhosted.org/packages/7a/c4/9e62d03f414e0e3051c56d5943c3bf42aa9608ede4e19dc96438364e9e03/pypdfium2-4.30.0-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:f33bd79e7a09d5f7acca3b0b69ff6c8a488869a7fab48fdf400fec6e20b9c8be", size = 6267430, upload-time = "2024-05-09T18:33:08.067Z" }, + { url = "https://files.pythonhosted.org/packages/90/47/eda4904f715fb98561e34012826e883816945934a851745570521ec89520/pypdfium2-4.30.0-py3-none-win32.whl", hash = "sha256:ee2410f15d576d976c2ab2558c93d392a25fb9f6635e8dd0a8a3a5241b275e0e", size = 2775951, upload-time = "2024-05-09T18:33:10.567Z" }, + { url = "https://files.pythonhosted.org/packages/25/bd/56d9ec6b9f0fc4e0d95288759f3179f0fcd34b1a1526b75673d2f6d5196f/pypdfium2-4.30.0-py3-none-win_amd64.whl", hash = "sha256:90dbb2ac07be53219f56be09961eb95cf2473f834d01a42d901d13ccfad64b4c", size = 2892098, upload-time = "2024-05-09T18:33:13.107Z" }, + { url = "https://files.pythonhosted.org/packages/be/7a/097801205b991bc3115e8af1edb850d30aeaf0118520b016354cf5ccd3f6/pypdfium2-4.30.0-py3-none-win_arm64.whl", hash = "sha256:119b2969a6d6b1e8d55e99caaf05290294f2d0fe49c12a3f17102d01c441bd29", size = 2752118, upload-time = "2024-05-09T18:33:15.489Z" }, +] + +[[package]] +name = "pyreadline3" +version = "3.5.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/0f/49/4cea918a08f02817aabae639e3d0ac046fef9f9180518a3ad394e22da148/pyreadline3-3.5.4.tar.gz", hash = "sha256:8d57d53039a1c75adba8e50dd3d992b28143480816187ea5efbd5c78e6c885b7", size = 99839, upload-time = "2024-09-19T02:40:10.062Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5a/dc/491b7661614ab97483abf2056be1deee4dc2490ecbf7bff9ab5cdbac86e1/pyreadline3-3.5.4-py3-none-any.whl", hash = "sha256:eaf8e6cc3c49bcccf145fc6067ba8643d1df34d604a1ec0eccbf7a18e6d3fae6", size = 83178, upload-time = "2024-09-19T02:40:08.598Z" }, +] + +[[package]] +name = "python-dateutil" +version = "2.9.0.post0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "six" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432, upload-time = "2024-03-01T18:36:20.211Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892, upload-time = "2024-03-01T18:36:18.57Z" }, +] + +[[package]] +name = "python-dotenv" +version = "1.1.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f6/b0/4bc07ccd3572a2f9df7e6782f52b0c6c90dcbb803ac4a167702d7d0dfe1e/python_dotenv-1.1.1.tar.gz", hash = "sha256:a8a6399716257f45be6a007360200409fce5cda2661e3dec71d23dc15f6189ab", size = 41978, upload-time = "2025-06-24T04:21:07.341Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5f/ed/539768cf28c661b5b068d66d96a2f155c4971a5d55684a514c1a0e0dec2f/python_dotenv-1.1.1-py3-none-any.whl", hash = "sha256:31f23644fe2602f88ff55e1f5c79ba497e01224ee7737937930c448e4d0e24dc", size = 20556, upload-time = "2025-06-24T04:21:06.073Z" }, +] + +[[package]] +name = "python-multipart" +version = "0.0.20" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f3/87/f44d7c9f274c7ee665a29b885ec97089ec5dc034c7f3fafa03da9e39a09e/python_multipart-0.0.20.tar.gz", hash = "sha256:8dd0cab45b8e23064ae09147625994d090fa46f5b0d1e13af944c331a7fa9d13", size = 37158, upload-time = "2024-12-16T19:45:46.972Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/45/58/38b5afbc1a800eeea951b9285d3912613f2603bdf897a4ab0f4bd7f405fc/python_multipart-0.0.20-py3-none-any.whl", hash = "sha256:8a62d3a8335e06589fe01f2a3e178cdcc632f3fbe0d492ad9ee0ec35aab1f104", size = 24546, upload-time = "2024-12-16T19:45:44.423Z" }, +] + +[[package]] +name = "pytz" +version = "2025.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f8/bf/abbd3cdfb8fbc7fb3d4d38d320f2441b1e7cbe29be4f23797b4a2b5d8aac/pytz-2025.2.tar.gz", hash = "sha256:360b9e3dbb49a209c21ad61809c7fb453643e048b38924c765813546746e81c3", size = 320884, upload-time = "2025-03-25T02:25:00.538Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/81/c4/34e93fe5f5429d7570ec1fa436f1986fb1f00c3e0f43a589fe2bbcd22c3f/pytz-2025.2-py2.py3-none-any.whl", hash = "sha256:5ddf76296dd8c44c26eb8f4b6f35488f3ccbf6fbbd7adee0b7262d43f0ec2f00", size = 509225, upload-time = "2025-03-25T02:24:58.468Z" }, +] + +[[package]] +name = "pywin32" +version = "311" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e7/ab/01ea1943d4eba0f850c3c61e78e8dd59757ff815ff3ccd0a84de5f541f42/pywin32-311-cp312-cp312-win32.whl", hash = "sha256:750ec6e621af2b948540032557b10a2d43b0cee2ae9758c54154d711cc852d31", size = 8706543, upload-time = "2025-07-14T20:13:20.765Z" }, + { url = "https://files.pythonhosted.org/packages/d1/a8/a0e8d07d4d051ec7502cd58b291ec98dcc0c3fff027caad0470b72cfcc2f/pywin32-311-cp312-cp312-win_amd64.whl", hash = "sha256:b8c095edad5c211ff31c05223658e71bf7116daa0ecf3ad85f3201ea3190d067", size = 9495040, upload-time = "2025-07-14T20:13:22.543Z" }, + { url = "https://files.pythonhosted.org/packages/ba/3a/2ae996277b4b50f17d61f0603efd8253cb2d79cc7ae159468007b586396d/pywin32-311-cp312-cp312-win_arm64.whl", hash = "sha256:e286f46a9a39c4a18b319c28f59b61de793654af2f395c102b4f819e584b5852", size = 8710102, upload-time = "2025-07-14T20:13:24.682Z" }, + { url = "https://files.pythonhosted.org/packages/a5/be/3fd5de0979fcb3994bfee0d65ed8ca9506a8a1260651b86174f6a86f52b3/pywin32-311-cp313-cp313-win32.whl", hash = "sha256:f95ba5a847cba10dd8c4d8fefa9f2a6cf283b8b88ed6178fa8a6c1ab16054d0d", size = 8705700, upload-time = "2025-07-14T20:13:26.471Z" }, + { url = "https://files.pythonhosted.org/packages/e3/28/e0a1909523c6890208295a29e05c2adb2126364e289826c0a8bc7297bd5c/pywin32-311-cp313-cp313-win_amd64.whl", hash = "sha256:718a38f7e5b058e76aee1c56ddd06908116d35147e133427e59a3983f703a20d", size = 9494700, upload-time = "2025-07-14T20:13:28.243Z" }, + { url = "https://files.pythonhosted.org/packages/04/bf/90339ac0f55726dce7d794e6d79a18a91265bdf3aa70b6b9ca52f35e022a/pywin32-311-cp313-cp313-win_arm64.whl", hash = "sha256:7b4075d959648406202d92a2310cb990fea19b535c7f4a78d3f5e10b926eeb8a", size = 8709318, upload-time = "2025-07-14T20:13:30.348Z" }, + { url = "https://files.pythonhosted.org/packages/c9/31/097f2e132c4f16d99a22bfb777e0fd88bd8e1c634304e102f313af69ace5/pywin32-311-cp314-cp314-win32.whl", hash = "sha256:b7a2c10b93f8986666d0c803ee19b5990885872a7de910fc460f9b0c2fbf92ee", size = 8840714, upload-time = "2025-07-14T20:13:32.449Z" }, + { url = "https://files.pythonhosted.org/packages/90/4b/07c77d8ba0e01349358082713400435347df8426208171ce297da32c313d/pywin32-311-cp314-cp314-win_amd64.whl", hash = "sha256:3aca44c046bd2ed8c90de9cb8427f581c479e594e99b5c0bb19b29c10fd6cb87", size = 9656800, upload-time = "2025-07-14T20:13:34.312Z" }, + { url = "https://files.pythonhosted.org/packages/c0/d2/21af5c535501a7233e734b8af901574572da66fcc254cb35d0609c9080dd/pywin32-311-cp314-cp314-win_arm64.whl", hash = "sha256:a508e2d9025764a8270f93111a970e1d0fbfc33f4153b388bb649b7eec4f9b42", size = 8932540, upload-time = "2025-07-14T20:13:36.379Z" }, +] + +[[package]] +name = "pyyaml" +version = "6.0.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz", hash = "sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e", size = 130631, upload-time = "2024-08-06T20:33:50.674Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/86/0c/c581167fc46d6d6d7ddcfb8c843a4de25bdd27e4466938109ca68492292c/PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:c70c95198c015b85feafc136515252a261a84561b7b1d51e3384e0655ddf25ab", size = 183873, upload-time = "2024-08-06T20:32:25.131Z" }, + { url = "https://files.pythonhosted.org/packages/a8/0c/38374f5bb272c051e2a69281d71cba6fdb983413e6758b84482905e29a5d/PyYAML-6.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ce826d6ef20b1bc864f0a68340c8b3287705cae2f8b4b1d932177dcc76721725", size = 173302, upload-time = "2024-08-06T20:32:26.511Z" }, + { url = "https://files.pythonhosted.org/packages/c3/93/9916574aa8c00aa06bbac729972eb1071d002b8e158bd0e83a3b9a20a1f7/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f71ea527786de97d1a0cc0eacd1defc0985dcf6b3f17bb77dcfc8c34bec4dc5", size = 739154, upload-time = "2024-08-06T20:32:28.363Z" }, + { url = "https://files.pythonhosted.org/packages/95/0f/b8938f1cbd09739c6da569d172531567dbcc9789e0029aa070856f123984/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9b22676e8097e9e22e36d6b7bda33190d0d400f345f23d4065d48f4ca7ae0425", size = 766223, upload-time = "2024-08-06T20:32:30.058Z" }, + { url = "https://files.pythonhosted.org/packages/b9/2b/614b4752f2e127db5cc206abc23a8c19678e92b23c3db30fc86ab731d3bd/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80bab7bfc629882493af4aa31a4cfa43a4c57c83813253626916b8c7ada83476", size = 767542, upload-time = "2024-08-06T20:32:31.881Z" }, + { url = "https://files.pythonhosted.org/packages/d4/00/dd137d5bcc7efea1836d6264f049359861cf548469d18da90cd8216cf05f/PyYAML-6.0.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:0833f8694549e586547b576dcfaba4a6b55b9e96098b36cdc7ebefe667dfed48", size = 731164, upload-time = "2024-08-06T20:32:37.083Z" }, + { url = "https://files.pythonhosted.org/packages/c9/1f/4f998c900485e5c0ef43838363ba4a9723ac0ad73a9dc42068b12aaba4e4/PyYAML-6.0.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8b9c7197f7cb2738065c481a0461e50ad02f18c78cd75775628afb4d7137fb3b", size = 756611, upload-time = "2024-08-06T20:32:38.898Z" }, + { url = "https://files.pythonhosted.org/packages/df/d1/f5a275fdb252768b7a11ec63585bc38d0e87c9e05668a139fea92b80634c/PyYAML-6.0.2-cp312-cp312-win32.whl", hash = "sha256:ef6107725bd54b262d6dedcc2af448a266975032bc85ef0172c5f059da6325b4", size = 140591, upload-time = "2024-08-06T20:32:40.241Z" }, + { url = "https://files.pythonhosted.org/packages/0c/e8/4f648c598b17c3d06e8753d7d13d57542b30d56e6c2dedf9c331ae56312e/PyYAML-6.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:7e7401d0de89a9a855c839bc697c079a4af81cf878373abd7dc625847d25cbd8", size = 156338, upload-time = "2024-08-06T20:32:41.93Z" }, + { url = "https://files.pythonhosted.org/packages/ef/e3/3af305b830494fa85d95f6d95ef7fa73f2ee1cc8ef5b495c7c3269fb835f/PyYAML-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:efdca5630322a10774e8e98e1af481aad470dd62c3170801852d752aa7a783ba", size = 181309, upload-time = "2024-08-06T20:32:43.4Z" }, + { url = "https://files.pythonhosted.org/packages/45/9f/3b1c20a0b7a3200524eb0076cc027a970d320bd3a6592873c85c92a08731/PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:50187695423ffe49e2deacb8cd10510bc361faac997de9efef88badc3bb9e2d1", size = 171679, upload-time = "2024-08-06T20:32:44.801Z" }, + { url = "https://files.pythonhosted.org/packages/7c/9a/337322f27005c33bcb656c655fa78325b730324c78620e8328ae28b64d0c/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0ffe8360bab4910ef1b9e87fb812d8bc0a308b0d0eef8c8f44e0254ab3b07133", size = 733428, upload-time = "2024-08-06T20:32:46.432Z" }, + { url = "https://files.pythonhosted.org/packages/a3/69/864fbe19e6c18ea3cc196cbe5d392175b4cf3d5d0ac1403ec3f2d237ebb5/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:17e311b6c678207928d649faa7cb0d7b4c26a0ba73d41e99c4fff6b6c3276484", size = 763361, upload-time = "2024-08-06T20:32:51.188Z" }, + { url = "https://files.pythonhosted.org/packages/04/24/b7721e4845c2f162d26f50521b825fb061bc0a5afcf9a386840f23ea19fa/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70b189594dbe54f75ab3a1acec5f1e3faa7e8cf2f1e08d9b561cb41b845f69d5", size = 759523, upload-time = "2024-08-06T20:32:53.019Z" }, + { url = "https://files.pythonhosted.org/packages/2b/b2/e3234f59ba06559c6ff63c4e10baea10e5e7df868092bf9ab40e5b9c56b6/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:41e4e3953a79407c794916fa277a82531dd93aad34e29c2a514c2c0c5fe971cc", size = 726660, upload-time = "2024-08-06T20:32:54.708Z" }, + { url = "https://files.pythonhosted.org/packages/fe/0f/25911a9f080464c59fab9027482f822b86bf0608957a5fcc6eaac85aa515/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:68ccc6023a3400877818152ad9a1033e3db8625d899c72eacb5a668902e4d652", size = 751597, upload-time = "2024-08-06T20:32:56.985Z" }, + { url = "https://files.pythonhosted.org/packages/14/0d/e2c3b43bbce3cf6bd97c840b46088a3031085179e596d4929729d8d68270/PyYAML-6.0.2-cp313-cp313-win32.whl", hash = "sha256:bc2fa7c6b47d6bc618dd7fb02ef6fdedb1090ec036abab80d4681424b84c1183", size = 140527, upload-time = "2024-08-06T20:33:03.001Z" }, + { url = "https://files.pythonhosted.org/packages/fa/de/02b54f42487e3d3c6efb3f89428677074ca7bf43aae402517bc7cca949f3/PyYAML-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:8388ee1976c416731879ac16da0aff3f63b286ffdd57cdeb95f3f2e085687563", size = 156446, upload-time = "2024-08-06T20:33:04.33Z" }, +] + +[[package]] +name = "rapid-table" +version = "1.0.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorlog" }, + { name = "numpy" }, + { name = "onnxruntime" }, + { name = "opencv-python" }, + { name = "pillow" }, + { name = "requests" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/4a/cf/a86d2cae2a80bc0c3ce7961b908c61ccbf72e0d882ccb62169c1623135c6/rapid_table-1.0.5-py3-none-any.whl", hash = "sha256:5711ff604c93903fb4a8baff6af98b4e777580a857829d3bcd4b2305030b4149", size = 33653, upload-time = "2025-04-08T02:32:16.563Z" }, +] + +[[package]] +name = "redis" +version = "6.4.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/0d/d6/e8b92798a5bd67d659d51a18170e91c16ac3b59738d91894651ee255ed49/redis-6.4.0.tar.gz", hash = "sha256:b01bc7282b8444e28ec36b261df5375183bb47a07eb9c603f284e89cbc5ef010", size = 4647399, upload-time = "2025-08-07T08:10:11.441Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e8/02/89e2ed7e85db6c93dfa9e8f691c5087df4e3551ab39081a4d7c6d1f90e05/redis-6.4.0-py3-none-any.whl", hash = "sha256:f0544fa9604264e9464cdf4814e7d4830f74b165d52f2a330a760a88dd248b7f", size = 279847, upload-time = "2025-08-07T08:10:09.84Z" }, +] + +[[package]] +name = "referencing" +version = "0.36.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "rpds-py" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/2f/db/98b5c277be99dd18bfd91dd04e1b759cad18d1a338188c936e92f921c7e2/referencing-0.36.2.tar.gz", hash = "sha256:df2e89862cd09deabbdba16944cc3f10feb6b3e6f18e902f7cc25609a34775aa", size = 74744, upload-time = "2025-01-25T08:48:16.138Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c1/b1/3baf80dc6d2b7bc27a95a67752d0208e410351e3feb4eb78de5f77454d8d/referencing-0.36.2-py3-none-any.whl", hash = "sha256:e8699adbbf8b5c7de96d8ffa0eb5c158b3beafce084968e2ea8bb08c6794dcd0", size = 26775, upload-time = "2025-01-25T08:48:14.241Z" }, +] + +[[package]] +name = "regex" +version = "2025.7.34" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/0b/de/e13fa6dc61d78b30ba47481f99933a3b49a57779d625c392d8036770a60d/regex-2025.7.34.tar.gz", hash = "sha256:9ead9765217afd04a86822dfcd4ed2747dfe426e887da413b15ff0ac2457e21a", size = 400714, upload-time = "2025-07-31T00:21:16.262Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ff/f0/31d62596c75a33f979317658e8d261574785c6cd8672c06741ce2e2e2070/regex-2025.7.34-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:7f7211a746aced993bef487de69307a38c5ddd79257d7be83f7b202cb59ddb50", size = 485492, upload-time = "2025-07-31T00:19:35.57Z" }, + { url = "https://files.pythonhosted.org/packages/d8/16/b818d223f1c9758c3434be89aa1a01aae798e0e0df36c1f143d1963dd1ee/regex-2025.7.34-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:fb31080f2bd0681484b275461b202b5ad182f52c9ec606052020fe13eb13a72f", size = 290000, upload-time = "2025-07-31T00:19:37.175Z" }, + { url = "https://files.pythonhosted.org/packages/cd/70/69506d53397b4bd6954061bae75677ad34deb7f6ca3ba199660d6f728ff5/regex-2025.7.34-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0200a5150c4cf61e407038f4b4d5cdad13e86345dac29ff9dab3d75d905cf130", size = 286072, upload-time = "2025-07-31T00:19:38.612Z" }, + { url = "https://files.pythonhosted.org/packages/b0/73/536a216d5f66084fb577bb0543b5cb7de3272eb70a157f0c3a542f1c2551/regex-2025.7.34-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:739a74970e736df0773788377969c9fea3876c2fc13d0563f98e5503e5185f46", size = 797341, upload-time = "2025-07-31T00:19:40.119Z" }, + { url = "https://files.pythonhosted.org/packages/26/af/733f8168449e56e8f404bb807ea7189f59507cbea1b67a7bbcd92f8bf844/regex-2025.7.34-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4fef81b2f7ea6a2029161ed6dea9ae13834c28eb5a95b8771828194a026621e4", size = 862556, upload-time = "2025-07-31T00:19:41.556Z" }, + { url = "https://files.pythonhosted.org/packages/19/dd/59c464d58c06c4f7d87de4ab1f590e430821345a40c5d345d449a636d15f/regex-2025.7.34-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ea74cf81fe61a7e9d77989050d0089a927ab758c29dac4e8e1b6c06fccf3ebf0", size = 910762, upload-time = "2025-07-31T00:19:43Z" }, + { url = "https://files.pythonhosted.org/packages/37/a8/b05ccf33ceca0815a1e253693b2c86544932ebcc0049c16b0fbdf18b688b/regex-2025.7.34-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e4636a7f3b65a5f340ed9ddf53585c42e3ff37101d383ed321bfe5660481744b", size = 801892, upload-time = "2025-07-31T00:19:44.645Z" }, + { url = "https://files.pythonhosted.org/packages/5f/9a/b993cb2e634cc22810afd1652dba0cae156c40d4864285ff486c73cd1996/regex-2025.7.34-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6cef962d7834437fe8d3da6f9bfc6f93f20f218266dcefec0560ed7765f5fe01", size = 786551, upload-time = "2025-07-31T00:19:46.127Z" }, + { url = "https://files.pythonhosted.org/packages/2d/79/7849d67910a0de4e26834b5bb816e028e35473f3d7ae563552ea04f58ca2/regex-2025.7.34-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:cbe1698e5b80298dbce8df4d8d1182279fbdaf1044e864cbc9d53c20e4a2be77", size = 856457, upload-time = "2025-07-31T00:19:47.562Z" }, + { url = "https://files.pythonhosted.org/packages/91/c6/de516bc082524b27e45cb4f54e28bd800c01efb26d15646a65b87b13a91e/regex-2025.7.34-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:32b9f9bcf0f605eb094b08e8da72e44badabb63dde6b83bd530580b488d1c6da", size = 848902, upload-time = "2025-07-31T00:19:49.312Z" }, + { url = "https://files.pythonhosted.org/packages/7d/22/519ff8ba15f732db099b126f039586bd372da6cd4efb810d5d66a5daeda1/regex-2025.7.34-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:524c868ba527eab4e8744a9287809579f54ae8c62fbf07d62aacd89f6026b282", size = 788038, upload-time = "2025-07-31T00:19:50.794Z" }, + { url = "https://files.pythonhosted.org/packages/3f/7d/aabb467d8f57d8149895d133c88eb809a1a6a0fe262c1d508eb9dfabb6f9/regex-2025.7.34-cp312-cp312-win32.whl", hash = "sha256:d600e58ee6d036081c89696d2bdd55d507498a7180df2e19945c6642fac59588", size = 264417, upload-time = "2025-07-31T00:19:52.292Z" }, + { url = "https://files.pythonhosted.org/packages/3b/39/bd922b55a4fc5ad5c13753274e5b536f5b06ec8eb9747675668491c7ab7a/regex-2025.7.34-cp312-cp312-win_amd64.whl", hash = "sha256:9a9ab52a466a9b4b91564437b36417b76033e8778e5af8f36be835d8cb370d62", size = 275387, upload-time = "2025-07-31T00:19:53.593Z" }, + { url = "https://files.pythonhosted.org/packages/f7/3c/c61d2fdcecb754a40475a3d1ef9a000911d3e3fc75c096acf44b0dfb786a/regex-2025.7.34-cp312-cp312-win_arm64.whl", hash = "sha256:c83aec91af9c6fbf7c743274fd952272403ad9a9db05fe9bfc9df8d12b45f176", size = 268482, upload-time = "2025-07-31T00:19:55.183Z" }, + { url = "https://files.pythonhosted.org/packages/15/16/b709b2119975035169a25aa8e4940ca177b1a2e25e14f8d996d09130368e/regex-2025.7.34-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:c3c9740a77aeef3f5e3aaab92403946a8d34437db930a0280e7e81ddcada61f5", size = 485334, upload-time = "2025-07-31T00:19:56.58Z" }, + { url = "https://files.pythonhosted.org/packages/94/a6/c09136046be0595f0331bc58a0e5f89c2d324cf734e0b0ec53cf4b12a636/regex-2025.7.34-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:69ed3bc611540f2ea70a4080f853741ec698be556b1df404599f8724690edbcd", size = 289942, upload-time = "2025-07-31T00:19:57.943Z" }, + { url = "https://files.pythonhosted.org/packages/36/91/08fc0fd0f40bdfb0e0df4134ee37cfb16e66a1044ac56d36911fd01c69d2/regex-2025.7.34-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:d03c6f9dcd562c56527c42b8530aad93193e0b3254a588be1f2ed378cdfdea1b", size = 285991, upload-time = "2025-07-31T00:19:59.837Z" }, + { url = "https://files.pythonhosted.org/packages/be/2f/99dc8f6f756606f0c214d14c7b6c17270b6bbe26d5c1f05cde9dbb1c551f/regex-2025.7.34-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6164b1d99dee1dfad33f301f174d8139d4368a9fb50bf0a3603b2eaf579963ad", size = 797415, upload-time = "2025-07-31T00:20:01.668Z" }, + { url = "https://files.pythonhosted.org/packages/62/cf/2fcdca1110495458ba4e95c52ce73b361cf1cafd8a53b5c31542cde9a15b/regex-2025.7.34-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:1e4f4f62599b8142362f164ce776f19d79bdd21273e86920a7b604a4275b4f59", size = 862487, upload-time = "2025-07-31T00:20:03.142Z" }, + { url = "https://files.pythonhosted.org/packages/90/38/899105dd27fed394e3fae45607c1983e138273ec167e47882fc401f112b9/regex-2025.7.34-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:72a26dcc6a59c057b292f39d41465d8233a10fd69121fa24f8f43ec6294e5415", size = 910717, upload-time = "2025-07-31T00:20:04.727Z" }, + { url = "https://files.pythonhosted.org/packages/ee/f6/4716198dbd0bcc9c45625ac4c81a435d1c4d8ad662e8576dac06bab35b17/regex-2025.7.34-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d5273fddf7a3e602695c92716c420c377599ed3c853ea669c1fe26218867002f", size = 801943, upload-time = "2025-07-31T00:20:07.1Z" }, + { url = "https://files.pythonhosted.org/packages/40/5d/cff8896d27e4e3dd11dd72ac78797c7987eb50fe4debc2c0f2f1682eb06d/regex-2025.7.34-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:c1844be23cd40135b3a5a4dd298e1e0c0cb36757364dd6cdc6025770363e06c1", size = 786664, upload-time = "2025-07-31T00:20:08.818Z" }, + { url = "https://files.pythonhosted.org/packages/10/29/758bf83cf7b4c34f07ac3423ea03cee3eb3176941641e4ccc05620f6c0b8/regex-2025.7.34-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:dde35e2afbbe2272f8abee3b9fe6772d9b5a07d82607b5788e8508974059925c", size = 856457, upload-time = "2025-07-31T00:20:10.328Z" }, + { url = "https://files.pythonhosted.org/packages/d7/30/c19d212b619963c5b460bfed0ea69a092c6a43cba52a973d46c27b3e2975/regex-2025.7.34-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:f3f6e8e7af516a7549412ce57613e859c3be27d55341a894aacaa11703a4c31a", size = 849008, upload-time = "2025-07-31T00:20:11.823Z" }, + { url = "https://files.pythonhosted.org/packages/9e/b8/3c35da3b12c87e3cc00010ef6c3a4ae787cff0bc381aa3d251def219969a/regex-2025.7.34-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:469142fb94a869beb25b5f18ea87646d21def10fbacb0bcb749224f3509476f0", size = 788101, upload-time = "2025-07-31T00:20:13.729Z" }, + { url = "https://files.pythonhosted.org/packages/47/80/2f46677c0b3c2b723b2c358d19f9346e714113865da0f5f736ca1a883bde/regex-2025.7.34-cp313-cp313-win32.whl", hash = "sha256:da7507d083ee33ccea1310447410c27ca11fb9ef18c95899ca57ff60a7e4d8f1", size = 264401, upload-time = "2025-07-31T00:20:15.233Z" }, + { url = "https://files.pythonhosted.org/packages/be/fa/917d64dd074682606a003cba33585c28138c77d848ef72fc77cbb1183849/regex-2025.7.34-cp313-cp313-win_amd64.whl", hash = "sha256:9d644de5520441e5f7e2db63aec2748948cc39ed4d7a87fd5db578ea4043d997", size = 275368, upload-time = "2025-07-31T00:20:16.711Z" }, + { url = "https://files.pythonhosted.org/packages/65/cd/f94383666704170a2154a5df7b16be28f0c27a266bffcd843e58bc84120f/regex-2025.7.34-cp313-cp313-win_arm64.whl", hash = "sha256:7bf1c5503a9f2cbd2f52d7e260acb3131b07b6273c470abb78568174fe6bde3f", size = 268482, upload-time = "2025-07-31T00:20:18.189Z" }, + { url = "https://files.pythonhosted.org/packages/ac/23/6376f3a23cf2f3c00514b1cdd8c990afb4dfbac3cb4a68b633c6b7e2e307/regex-2025.7.34-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:8283afe7042d8270cecf27cca558873168e771183d4d593e3c5fe5f12402212a", size = 485385, upload-time = "2025-07-31T00:20:19.692Z" }, + { url = "https://files.pythonhosted.org/packages/73/5b/6d4d3a0b4d312adbfd6d5694c8dddcf1396708976dd87e4d00af439d962b/regex-2025.7.34-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:6c053f9647e3421dd2f5dff8172eb7b4eec129df9d1d2f7133a4386319b47435", size = 289788, upload-time = "2025-07-31T00:20:21.941Z" }, + { url = "https://files.pythonhosted.org/packages/92/71/5862ac9913746e5054d01cb9fb8125b3d0802c0706ef547cae1e7f4428fa/regex-2025.7.34-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a16dd56bbcb7d10e62861c3cd000290ddff28ea142ffb5eb3470f183628011ac", size = 286136, upload-time = "2025-07-31T00:20:26.146Z" }, + { url = "https://files.pythonhosted.org/packages/27/df/5b505dc447eb71278eba10d5ec940769ca89c1af70f0468bfbcb98035dc2/regex-2025.7.34-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:69c593ff5a24c0d5c1112b0df9b09eae42b33c014bdca7022d6523b210b69f72", size = 797753, upload-time = "2025-07-31T00:20:27.919Z" }, + { url = "https://files.pythonhosted.org/packages/86/38/3e3dc953d13998fa047e9a2414b556201dbd7147034fbac129392363253b/regex-2025.7.34-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:98d0ce170fcde1a03b5df19c5650db22ab58af375aaa6ff07978a85c9f250f0e", size = 863263, upload-time = "2025-07-31T00:20:29.803Z" }, + { url = "https://files.pythonhosted.org/packages/68/e5/3ff66b29dde12f5b874dda2d9dec7245c2051f2528d8c2a797901497f140/regex-2025.7.34-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d72765a4bff8c43711d5b0f5b452991a9947853dfa471972169b3cc0ba1d0751", size = 910103, upload-time = "2025-07-31T00:20:31.313Z" }, + { url = "https://files.pythonhosted.org/packages/9e/fe/14176f2182125977fba3711adea73f472a11f3f9288c1317c59cd16ad5e6/regex-2025.7.34-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4494f8fd95a77eb434039ad8460e64d57baa0434f1395b7da44015bef650d0e4", size = 801709, upload-time = "2025-07-31T00:20:33.323Z" }, + { url = "https://files.pythonhosted.org/packages/5a/0d/80d4e66ed24f1ba876a9e8e31b709f9fd22d5c266bf5f3ab3c1afe683d7d/regex-2025.7.34-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:4f42b522259c66e918a0121a12429b2abcf696c6f967fa37bdc7b72e61469f98", size = 786726, upload-time = "2025-07-31T00:20:35.252Z" }, + { url = "https://files.pythonhosted.org/packages/12/75/c3ebb30e04a56c046f5c85179dc173818551037daae2c0c940c7b19152cb/regex-2025.7.34-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:aaef1f056d96a0a5d53ad47d019d5b4c66fe4be2da87016e0d43b7242599ffc7", size = 857306, upload-time = "2025-07-31T00:20:37.12Z" }, + { url = "https://files.pythonhosted.org/packages/b1/b2/a4dc5d8b14f90924f27f0ac4c4c4f5e195b723be98adecc884f6716614b6/regex-2025.7.34-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:656433e5b7dccc9bc0da6312da8eb897b81f5e560321ec413500e5367fcd5d47", size = 848494, upload-time = "2025-07-31T00:20:38.818Z" }, + { url = "https://files.pythonhosted.org/packages/0d/21/9ac6e07a4c5e8646a90b56b61f7e9dac11ae0747c857f91d3d2bc7c241d9/regex-2025.7.34-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:e91eb2c62c39705e17b4d42d4b86c4e86c884c0d15d9c5a47d0835f8387add8e", size = 787850, upload-time = "2025-07-31T00:20:40.478Z" }, + { url = "https://files.pythonhosted.org/packages/be/6c/d51204e28e7bc54f9a03bb799b04730d7e54ff2718862b8d4e09e7110a6a/regex-2025.7.34-cp314-cp314-win32.whl", hash = "sha256:f978ddfb6216028c8f1d6b0f7ef779949498b64117fc35a939022f67f810bdcb", size = 269730, upload-time = "2025-07-31T00:20:42.253Z" }, + { url = "https://files.pythonhosted.org/packages/74/52/a7e92d02fa1fdef59d113098cb9f02c5d03289a0e9f9e5d4d6acccd10677/regex-2025.7.34-cp314-cp314-win_amd64.whl", hash = "sha256:4b7dc33b9b48fb37ead12ffc7bdb846ac72f99a80373c4da48f64b373a7abeae", size = 278640, upload-time = "2025-07-31T00:20:44.42Z" }, + { url = "https://files.pythonhosted.org/packages/d1/78/a815529b559b1771080faa90c3ab401730661f99d495ab0071649f139ebd/regex-2025.7.34-cp314-cp314-win_arm64.whl", hash = "sha256:4b8c4d39f451e64809912c82392933d80fe2e4a87eeef8859fcc5380d0173c64", size = 271757, upload-time = "2025-07-31T00:20:46.355Z" }, +] + +[[package]] +name = "reportlab" +version = "4.4.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "charset-normalizer" }, + { name = "pillow" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/2f/83/3d44b873fa71ddc7d323c577fe4cfb61e05b34d14e64b6a232f9cfbff89d/reportlab-4.4.3.tar.gz", hash = "sha256:073b0975dab69536acd3251858e6b0524ed3e087e71f1d0d1895acb50acf9c7b", size = 3887532, upload-time = "2025-07-23T11:18:23.799Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/52/c8/aaf4e08679e7b1dc896ad30de0d0527f0fd55582c2e6deee4f2cc899bf9f/reportlab-4.4.3-py3-none-any.whl", hash = "sha256:df905dc5ec5ddaae91fc9cb3371af863311271d555236410954961c5ee6ee1b5", size = 1953896, upload-time = "2025-07-23T11:18:20.572Z" }, +] + +[[package]] +name = "requests" +version = "2.32.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "charset-normalizer" }, + { name = "idna" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e1/0a/929373653770d8a0d7ea76c37de6e41f11eb07559b103b1c02cafb3f7cf8/requests-2.32.4.tar.gz", hash = "sha256:27d0316682c8a29834d3264820024b62a36942083d52caf2f14c0591336d3422", size = 135258, upload-time = "2025-06-09T16:43:07.34Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7c/e4/56027c4a6b4ae70ca9de302488c5ca95ad4a39e190093d6c1a8ace08341b/requests-2.32.4-py3-none-any.whl", hash = "sha256:27babd3cda2a6d50b30443204ee89830707d396671944c998b5975b031ac2b2c", size = 64847, upload-time = "2025-06-09T16:43:05.728Z" }, +] + +[[package]] +name = "requests-toolbelt" +version = "1.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "requests" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f3/61/d7545dafb7ac2230c70d38d31cbfe4cc64f7144dc41f6e4e4b78ecd9f5bb/requests-toolbelt-1.0.0.tar.gz", hash = "sha256:7681a0a3d047012b5bdc0ee37d7f8f07ebe76ab08caeccfc3921ce23c88d5bc6", size = 206888, upload-time = "2023-05-01T04:11:33.229Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3f/51/d4db610ef29373b879047326cbf6fa98b6c1969d6f6dc423279de2b1be2c/requests_toolbelt-1.0.0-py2.py3-none-any.whl", hash = "sha256:cccfdd665f0a24fcf4726e690f65639d272bb0637b9b92dfd91a5568ccf6bd06", size = 54481, upload-time = "2023-05-01T04:11:28.427Z" }, +] + +[[package]] +name = "rich" +version = "14.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markdown-it-py" }, + { name = "pygments" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/fe/75/af448d8e52bf1d8fa6a9d089ca6c07ff4453d86c65c145d0a300bb073b9b/rich-14.1.0.tar.gz", hash = "sha256:e497a48b844b0320d45007cdebfeaeed8db2a4f4bcf49f15e455cfc4af11eaa8", size = 224441, upload-time = "2025-07-25T07:32:58.125Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e3/30/3c4d035596d3cf444529e0b2953ad0466f6049528a879d27534700580395/rich-14.1.0-py3-none-any.whl", hash = "sha256:536f5f1785986d6dbdea3c75205c473f970777b4a0d6c6dd1b696aa05a3fa04f", size = 243368, upload-time = "2025-07-25T07:32:56.73Z" }, +] + +[[package]] +name = "robust-downloader" +version = "0.0.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorlog" }, + { name = "requests" }, + { name = "tqdm" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/63/20/8d28efa080f58fa06f6378875ac482ee511c076369e5293a2e65128cf9a0/robust-downloader-0.0.2.tar.gz", hash = "sha256:08c938b96e317abe6b037e34230a91bda9b5d613f009bca4a47664997c61de90", size = 15785, upload-time = "2023-11-13T03:00:20.637Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/56/a1/779e9d0ebbdc704411ce30915a1105eb01aeaa9e402d7e446613ff8fb121/robust_downloader-0.0.2-py3-none-any.whl", hash = "sha256:8fe08bfb64d714fd1a048a7df6eb7b413eb4e624309a49db2c16fbb80a62869d", size = 15534, upload-time = "2023-11-13T03:00:18.957Z" }, +] + +[[package]] +name = "rpds-py" +version = "0.27.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/1e/d9/991a0dee12d9fc53ed027e26a26a64b151d77252ac477e22666b9688bc16/rpds_py-0.27.0.tar.gz", hash = "sha256:8b23cf252f180cda89220b378d917180f29d313cd6a07b2431c0d3b776aae86f", size = 27420, upload-time = "2025-08-07T08:26:39.624Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/cd/17/e67309ca1ac993fa1888a0d9b2f5ccc1f67196ace32e76c9f8e1dbbbd50c/rpds_py-0.27.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:19c990fdf5acecbf0623e906ae2e09ce1c58947197f9bced6bbd7482662231c4", size = 362611, upload-time = "2025-08-07T08:23:44.773Z" }, + { url = "https://files.pythonhosted.org/packages/93/2e/28c2fb84aa7aa5d75933d1862d0f7de6198ea22dfd9a0cca06e8a4e7509e/rpds_py-0.27.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6c27a7054b5224710fcfb1a626ec3ff4f28bcb89b899148c72873b18210e446b", size = 347680, upload-time = "2025-08-07T08:23:46.014Z" }, + { url = "https://files.pythonhosted.org/packages/44/3e/9834b4c8f4f5fe936b479e623832468aa4bd6beb8d014fecaee9eac6cdb1/rpds_py-0.27.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:09965b314091829b378b60607022048953e25f0b396c2b70e7c4c81bcecf932e", size = 384600, upload-time = "2025-08-07T08:23:48Z" }, + { url = "https://files.pythonhosted.org/packages/19/78/744123c7b38865a965cd9e6f691fde7ef989a00a256fa8bf15b75240d12f/rpds_py-0.27.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:14f028eb47f59e9169bfdf9f7ceafd29dd64902141840633683d0bad5b04ff34", size = 400697, upload-time = "2025-08-07T08:23:49.407Z" }, + { url = "https://files.pythonhosted.org/packages/32/97/3c3d32fe7daee0a1f1a678b6d4dfb8c4dcf88197fa2441f9da7cb54a8466/rpds_py-0.27.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6168af0be75bba990a39f9431cdfae5f0ad501f4af32ae62e8856307200517b8", size = 517781, upload-time = "2025-08-07T08:23:50.557Z" }, + { url = "https://files.pythonhosted.org/packages/b2/be/28f0e3e733680aa13ecec1212fc0f585928a206292f14f89c0b8a684cad1/rpds_py-0.27.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ab47fe727c13c09d0e6f508e3a49e545008e23bf762a245b020391b621f5b726", size = 406449, upload-time = "2025-08-07T08:23:51.732Z" }, + { url = "https://files.pythonhosted.org/packages/95/ae/5d15c83e337c082d0367053baeb40bfba683f42459f6ebff63a2fd7e5518/rpds_py-0.27.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5fa01b3d5e3b7d97efab65bd3d88f164e289ec323a8c033c5c38e53ee25c007e", size = 386150, upload-time = "2025-08-07T08:23:52.822Z" }, + { url = "https://files.pythonhosted.org/packages/bf/65/944e95f95d5931112829e040912b25a77b2e7ed913ea5fe5746aa5c1ce75/rpds_py-0.27.0-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:6c135708e987f46053e0a1246a206f53717f9fadfba27174a9769ad4befba5c3", size = 406100, upload-time = "2025-08-07T08:23:54.339Z" }, + { url = "https://files.pythonhosted.org/packages/21/a4/1664b83fae02894533cd11dc0b9f91d673797c2185b7be0f7496107ed6c5/rpds_py-0.27.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fc327f4497b7087d06204235199daf208fd01c82d80465dc5efa4ec9df1c5b4e", size = 421345, upload-time = "2025-08-07T08:23:55.832Z" }, + { url = "https://files.pythonhosted.org/packages/7c/26/b7303941c2b0823bfb34c71378249f8beedce57301f400acb04bb345d025/rpds_py-0.27.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:7e57906e38583a2cba67046a09c2637e23297618dc1f3caddbc493f2be97c93f", size = 561891, upload-time = "2025-08-07T08:23:56.951Z" }, + { url = "https://files.pythonhosted.org/packages/9b/c8/48623d64d4a5a028fa99576c768a6159db49ab907230edddc0b8468b998b/rpds_py-0.27.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:0f4f69d7a4300fbf91efb1fb4916421bd57804c01ab938ab50ac9c4aa2212f03", size = 591756, upload-time = "2025-08-07T08:23:58.146Z" }, + { url = "https://files.pythonhosted.org/packages/b3/51/18f62617e8e61cc66334c9fb44b1ad7baae3438662098efbc55fb3fda453/rpds_py-0.27.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b4c4fbbcff474e1e5f38be1bf04511c03d492d42eec0babda5d03af3b5589374", size = 557088, upload-time = "2025-08-07T08:23:59.6Z" }, + { url = "https://files.pythonhosted.org/packages/bd/4c/e84c3a276e2496a93d245516be6b49e20499aa8ca1c94d59fada0d79addc/rpds_py-0.27.0-cp312-cp312-win32.whl", hash = "sha256:27bac29bbbf39601b2aab474daf99dbc8e7176ca3389237a23944b17f8913d97", size = 221926, upload-time = "2025-08-07T08:24:00.695Z" }, + { url = "https://files.pythonhosted.org/packages/83/89/9d0fbcef64340db0605eb0a0044f258076f3ae0a3b108983b2c614d96212/rpds_py-0.27.0-cp312-cp312-win_amd64.whl", hash = "sha256:8a06aa1197ec0281eb1d7daf6073e199eb832fe591ffa329b88bae28f25f5fe5", size = 233235, upload-time = "2025-08-07T08:24:01.846Z" }, + { url = "https://files.pythonhosted.org/packages/c9/b0/e177aa9f39cbab060f96de4a09df77d494f0279604dc2f509263e21b05f9/rpds_py-0.27.0-cp312-cp312-win_arm64.whl", hash = "sha256:e14aab02258cb776a108107bd15f5b5e4a1bbaa61ef33b36693dfab6f89d54f9", size = 223315, upload-time = "2025-08-07T08:24:03.337Z" }, + { url = "https://files.pythonhosted.org/packages/81/d2/dfdfd42565a923b9e5a29f93501664f5b984a802967d48d49200ad71be36/rpds_py-0.27.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:443d239d02d9ae55b74015234f2cd8eb09e59fbba30bf60baeb3123ad4c6d5ff", size = 362133, upload-time = "2025-08-07T08:24:04.508Z" }, + { url = "https://files.pythonhosted.org/packages/ac/4a/0a2e2460c4b66021d349ce9f6331df1d6c75d7eea90df9785d333a49df04/rpds_py-0.27.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:b8a7acf04fda1f30f1007f3cc96d29d8cf0a53e626e4e1655fdf4eabc082d367", size = 347128, upload-time = "2025-08-07T08:24:05.695Z" }, + { url = "https://files.pythonhosted.org/packages/35/8d/7d1e4390dfe09d4213b3175a3f5a817514355cb3524593380733204f20b9/rpds_py-0.27.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9d0f92b78cfc3b74a42239fdd8c1266f4715b573204c234d2f9fc3fc7a24f185", size = 384027, upload-time = "2025-08-07T08:24:06.841Z" }, + { url = "https://files.pythonhosted.org/packages/c1/65/78499d1a62172891c8cd45de737b2a4b84a414b6ad8315ab3ac4945a5b61/rpds_py-0.27.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ce4ed8e0c7dbc5b19352b9c2c6131dd23b95fa8698b5cdd076307a33626b72dc", size = 399973, upload-time = "2025-08-07T08:24:08.143Z" }, + { url = "https://files.pythonhosted.org/packages/10/a1/1c67c1d8cc889107b19570bb01f75cf49852068e95e6aee80d22915406fc/rpds_py-0.27.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fde355b02934cc6b07200cc3b27ab0c15870a757d1a72fd401aa92e2ea3c6bfe", size = 515295, upload-time = "2025-08-07T08:24:09.711Z" }, + { url = "https://files.pythonhosted.org/packages/df/27/700ec88e748436b6c7c4a2262d66e80f8c21ab585d5e98c45e02f13f21c0/rpds_py-0.27.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:13bbc4846ae4c993f07c93feb21a24d8ec637573d567a924b1001e81c8ae80f9", size = 406737, upload-time = "2025-08-07T08:24:11.182Z" }, + { url = "https://files.pythonhosted.org/packages/33/cc/6b0ee8f0ba3f2df2daac1beda17fde5cf10897a7d466f252bd184ef20162/rpds_py-0.27.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:be0744661afbc4099fef7f4e604e7f1ea1be1dd7284f357924af12a705cc7d5c", size = 385898, upload-time = "2025-08-07T08:24:12.798Z" }, + { url = "https://files.pythonhosted.org/packages/e8/7e/c927b37d7d33c0a0ebf249cc268dc2fcec52864c1b6309ecb960497f2285/rpds_py-0.27.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:069e0384a54f427bd65d7fda83b68a90606a3835901aaff42185fcd94f5a9295", size = 405785, upload-time = "2025-08-07T08:24:14.906Z" }, + { url = "https://files.pythonhosted.org/packages/5b/d2/8ed50746d909dcf402af3fa58b83d5a590ed43e07251d6b08fad1a535ba6/rpds_py-0.27.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4bc262ace5a1a7dc3e2eac2fa97b8257ae795389f688b5adf22c5db1e2431c43", size = 419760, upload-time = "2025-08-07T08:24:16.129Z" }, + { url = "https://files.pythonhosted.org/packages/d3/60/2b2071aee781cb3bd49f94d5d35686990b925e9b9f3e3d149235a6f5d5c1/rpds_py-0.27.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:2fe6e18e5c8581f0361b35ae575043c7029d0a92cb3429e6e596c2cdde251432", size = 561201, upload-time = "2025-08-07T08:24:17.645Z" }, + { url = "https://files.pythonhosted.org/packages/98/1f/27b67304272521aaea02be293fecedce13fa351a4e41cdb9290576fc6d81/rpds_py-0.27.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d93ebdb82363d2e7bec64eecdc3632b59e84bd270d74fe5be1659f7787052f9b", size = 591021, upload-time = "2025-08-07T08:24:18.999Z" }, + { url = "https://files.pythonhosted.org/packages/db/9b/a2fadf823164dd085b1f894be6443b0762a54a7af6f36e98e8fcda69ee50/rpds_py-0.27.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:0954e3a92e1d62e83a54ea7b3fdc9efa5d61acef8488a8a3d31fdafbfb00460d", size = 556368, upload-time = "2025-08-07T08:24:20.54Z" }, + { url = "https://files.pythonhosted.org/packages/24/f3/6d135d46a129cda2e3e6d4c5e91e2cc26ea0428c6cf152763f3f10b6dd05/rpds_py-0.27.0-cp313-cp313-win32.whl", hash = "sha256:2cff9bdd6c7b906cc562a505c04a57d92e82d37200027e8d362518df427f96cd", size = 221236, upload-time = "2025-08-07T08:24:22.144Z" }, + { url = "https://files.pythonhosted.org/packages/c5/44/65d7494f5448ecc755b545d78b188440f81da98b50ea0447ab5ebfdf9bd6/rpds_py-0.27.0-cp313-cp313-win_amd64.whl", hash = "sha256:dc79d192fb76fc0c84f2c58672c17bbbc383fd26c3cdc29daae16ce3d927e8b2", size = 232634, upload-time = "2025-08-07T08:24:23.642Z" }, + { url = "https://files.pythonhosted.org/packages/70/d9/23852410fadab2abb611733933401de42a1964ce6600a3badae35fbd573e/rpds_py-0.27.0-cp313-cp313-win_arm64.whl", hash = "sha256:5b3a5c8089eed498a3af23ce87a80805ff98f6ef8f7bdb70bd1b7dae5105f6ac", size = 222783, upload-time = "2025-08-07T08:24:25.098Z" }, + { url = "https://files.pythonhosted.org/packages/15/75/03447917f78512b34463f4ef11066516067099a0c466545655503bed0c77/rpds_py-0.27.0-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:90fb790138c1a89a2e58c9282fe1089638401f2f3b8dddd758499041bc6e0774", size = 359154, upload-time = "2025-08-07T08:24:26.249Z" }, + { url = "https://files.pythonhosted.org/packages/6b/fc/4dac4fa756451f2122ddaf136e2c6aeb758dc6fdbe9ccc4bc95c98451d50/rpds_py-0.27.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:010c4843a3b92b54373e3d2291a7447d6c3fc29f591772cc2ea0e9f5c1da434b", size = 343909, upload-time = "2025-08-07T08:24:27.405Z" }, + { url = "https://files.pythonhosted.org/packages/7b/81/723c1ed8e6f57ed9d8c0c07578747a2d3d554aaefc1ab89f4e42cfeefa07/rpds_py-0.27.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c9ce7a9e967afc0a2af7caa0d15a3e9c1054815f73d6a8cb9225b61921b419bd", size = 379340, upload-time = "2025-08-07T08:24:28.714Z" }, + { url = "https://files.pythonhosted.org/packages/98/16/7e3740413de71818ce1997df82ba5f94bae9fff90c0a578c0e24658e6201/rpds_py-0.27.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:aa0bf113d15e8abdfee92aa4db86761b709a09954083afcb5bf0f952d6065fdb", size = 391655, upload-time = "2025-08-07T08:24:30.223Z" }, + { url = "https://files.pythonhosted.org/packages/e0/63/2a9f510e124d80660f60ecce07953f3f2d5f0b96192c1365443859b9c87f/rpds_py-0.27.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:eb91d252b35004a84670dfeafadb042528b19842a0080d8b53e5ec1128e8f433", size = 513017, upload-time = "2025-08-07T08:24:31.446Z" }, + { url = "https://files.pythonhosted.org/packages/2c/4e/cf6ff311d09776c53ea1b4f2e6700b9d43bb4e99551006817ade4bbd6f78/rpds_py-0.27.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:db8a6313dbac934193fc17fe7610f70cd8181c542a91382531bef5ed785e5615", size = 402058, upload-time = "2025-08-07T08:24:32.613Z" }, + { url = "https://files.pythonhosted.org/packages/88/11/5e36096d474cb10f2a2d68b22af60a3bc4164fd8db15078769a568d9d3ac/rpds_py-0.27.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ce96ab0bdfcef1b8c371ada2100767ace6804ea35aacce0aef3aeb4f3f499ca8", size = 383474, upload-time = "2025-08-07T08:24:33.767Z" }, + { url = "https://files.pythonhosted.org/packages/db/a2/3dff02805b06058760b5eaa6d8cb8db3eb3e46c9e452453ad5fc5b5ad9fe/rpds_py-0.27.0-cp313-cp313t-manylinux_2_31_riscv64.whl", hash = "sha256:7451ede3560086abe1aa27dcdcf55cd15c96b56f543fb12e5826eee6f721f858", size = 400067, upload-time = "2025-08-07T08:24:35.021Z" }, + { url = "https://files.pythonhosted.org/packages/67/87/eed7369b0b265518e21ea836456a4ed4a6744c8c12422ce05bce760bb3cf/rpds_py-0.27.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:32196b5a99821476537b3f7732432d64d93a58d680a52c5e12a190ee0135d8b5", size = 412085, upload-time = "2025-08-07T08:24:36.267Z" }, + { url = "https://files.pythonhosted.org/packages/8b/48/f50b2ab2fbb422fbb389fe296e70b7a6b5ea31b263ada5c61377e710a924/rpds_py-0.27.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:a029be818059870664157194e46ce0e995082ac49926f1423c1f058534d2aaa9", size = 555928, upload-time = "2025-08-07T08:24:37.573Z" }, + { url = "https://files.pythonhosted.org/packages/98/41/b18eb51045d06887666c3560cd4bbb6819127b43d758f5adb82b5f56f7d1/rpds_py-0.27.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:3841f66c1ffdc6cebce8aed64e36db71466f1dc23c0d9a5592e2a782a3042c79", size = 585527, upload-time = "2025-08-07T08:24:39.391Z" }, + { url = "https://files.pythonhosted.org/packages/be/03/a3dd6470fc76499959b00ae56295b76b4bdf7c6ffc60d62006b1217567e1/rpds_py-0.27.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:42894616da0fc0dcb2ec08a77896c3f56e9cb2f4b66acd76fc8992c3557ceb1c", size = 554211, upload-time = "2025-08-07T08:24:40.6Z" }, + { url = "https://files.pythonhosted.org/packages/bf/d1/ee5fd1be395a07423ac4ca0bcc05280bf95db2b155d03adefeb47d5ebf7e/rpds_py-0.27.0-cp313-cp313t-win32.whl", hash = "sha256:b1fef1f13c842a39a03409e30ca0bf87b39a1e2a305a9924deadb75a43105d23", size = 216624, upload-time = "2025-08-07T08:24:42.204Z" }, + { url = "https://files.pythonhosted.org/packages/1c/94/4814c4c858833bf46706f87349c37ca45e154da7dbbec9ff09f1abeb08cc/rpds_py-0.27.0-cp313-cp313t-win_amd64.whl", hash = "sha256:183f5e221ba3e283cd36fdfbe311d95cd87699a083330b4f792543987167eff1", size = 230007, upload-time = "2025-08-07T08:24:43.329Z" }, + { url = "https://files.pythonhosted.org/packages/0e/a5/8fffe1c7dc7c055aa02df310f9fb71cfc693a4d5ccc5de2d3456ea5fb022/rpds_py-0.27.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:f3cd110e02c5bf17d8fb562f6c9df5c20e73029d587cf8602a2da6c5ef1e32cb", size = 362595, upload-time = "2025-08-07T08:24:44.478Z" }, + { url = "https://files.pythonhosted.org/packages/bc/c7/4e4253fd2d4bb0edbc0b0b10d9f280612ca4f0f990e3c04c599000fe7d71/rpds_py-0.27.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:8d0e09cf4863c74106b5265c2c310f36146e2b445ff7b3018a56799f28f39f6f", size = 347252, upload-time = "2025-08-07T08:24:45.678Z" }, + { url = "https://files.pythonhosted.org/packages/f3/c8/3d1a954d30f0174dd6baf18b57c215da03cf7846a9d6e0143304e784cddc/rpds_py-0.27.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:64f689ab822f9b5eb6dfc69893b4b9366db1d2420f7db1f6a2adf2a9ca15ad64", size = 384886, upload-time = "2025-08-07T08:24:46.86Z" }, + { url = "https://files.pythonhosted.org/packages/e0/52/3c5835f2df389832b28f9276dd5395b5a965cea34226e7c88c8fbec2093c/rpds_py-0.27.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e36c80c49853b3ffda7aa1831bf175c13356b210c73128c861f3aa93c3cc4015", size = 399716, upload-time = "2025-08-07T08:24:48.174Z" }, + { url = "https://files.pythonhosted.org/packages/40/73/176e46992461a1749686a2a441e24df51ff86b99c2d34bf39f2a5273b987/rpds_py-0.27.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6de6a7f622860af0146cb9ee148682ff4d0cea0b8fd3ad51ce4d40efb2f061d0", size = 517030, upload-time = "2025-08-07T08:24:49.52Z" }, + { url = "https://files.pythonhosted.org/packages/79/2a/7266c75840e8c6e70effeb0d38922a45720904f2cd695e68a0150e5407e2/rpds_py-0.27.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4045e2fc4b37ec4b48e8907a5819bdd3380708c139d7cc358f03a3653abedb89", size = 408448, upload-time = "2025-08-07T08:24:50.727Z" }, + { url = "https://files.pythonhosted.org/packages/e6/5f/a7efc572b8e235093dc6cf39f4dbc8a7f08e65fdbcec7ff4daeb3585eef1/rpds_py-0.27.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9da162b718b12c4219eeeeb68a5b7552fbc7aadedf2efee440f88b9c0e54b45d", size = 387320, upload-time = "2025-08-07T08:24:52.004Z" }, + { url = "https://files.pythonhosted.org/packages/a2/eb/9ff6bc92efe57cf5a2cb74dee20453ba444b6fdc85275d8c99e0d27239d1/rpds_py-0.27.0-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:0665be515767dc727ffa5f74bd2ef60b0ff85dad6bb8f50d91eaa6b5fb226f51", size = 407414, upload-time = "2025-08-07T08:24:53.664Z" }, + { url = "https://files.pythonhosted.org/packages/fb/bd/3b9b19b00d5c6e1bd0f418c229ab0f8d3b110ddf7ec5d9d689ef783d0268/rpds_py-0.27.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:203f581accef67300a942e49a37d74c12ceeef4514874c7cede21b012613ca2c", size = 420766, upload-time = "2025-08-07T08:24:55.917Z" }, + { url = "https://files.pythonhosted.org/packages/17/6b/521a7b1079ce16258c70805166e3ac6ec4ee2139d023fe07954dc9b2d568/rpds_py-0.27.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7873b65686a6471c0037139aa000d23fe94628e0daaa27b6e40607c90e3f5ec4", size = 562409, upload-time = "2025-08-07T08:24:57.17Z" }, + { url = "https://files.pythonhosted.org/packages/8b/bf/65db5bfb14ccc55e39de8419a659d05a2a9cd232f0a699a516bb0991da7b/rpds_py-0.27.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:249ab91ceaa6b41abc5f19513cb95b45c6f956f6b89f1fe3d99c81255a849f9e", size = 590793, upload-time = "2025-08-07T08:24:58.388Z" }, + { url = "https://files.pythonhosted.org/packages/db/b8/82d368b378325191ba7aae8f40f009b78057b598d4394d1f2cdabaf67b3f/rpds_py-0.27.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:d2f184336bc1d6abfaaa1262ed42739c3789b1e3a65a29916a615307d22ffd2e", size = 558178, upload-time = "2025-08-07T08:24:59.756Z" }, + { url = "https://files.pythonhosted.org/packages/f6/ff/f270bddbfbc3812500f8131b1ebbd97afd014cd554b604a3f73f03133a36/rpds_py-0.27.0-cp314-cp314-win32.whl", hash = "sha256:d3c622c39f04d5751408f5b801ecb527e6e0a471b367f420a877f7a660d583f6", size = 222355, upload-time = "2025-08-07T08:25:01.027Z" }, + { url = "https://files.pythonhosted.org/packages/bf/20/fdab055b1460c02ed356a0e0b0a78c1dd32dc64e82a544f7b31c9ac643dc/rpds_py-0.27.0-cp314-cp314-win_amd64.whl", hash = "sha256:cf824aceaeffff029ccfba0da637d432ca71ab21f13e7f6f5179cd88ebc77a8a", size = 234007, upload-time = "2025-08-07T08:25:02.268Z" }, + { url = "https://files.pythonhosted.org/packages/4d/a8/694c060005421797a3be4943dab8347c76c2b429a9bef68fb2c87c9e70c7/rpds_py-0.27.0-cp314-cp314-win_arm64.whl", hash = "sha256:86aca1616922b40d8ac1b3073a1ead4255a2f13405e5700c01f7c8d29a03972d", size = 223527, upload-time = "2025-08-07T08:25:03.45Z" }, + { url = "https://files.pythonhosted.org/packages/1e/f9/77f4c90f79d2c5ca8ce6ec6a76cb4734ee247de6b3a4f337e289e1f00372/rpds_py-0.27.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:341d8acb6724c0c17bdf714319c393bb27f6d23d39bc74f94221b3e59fc31828", size = 359469, upload-time = "2025-08-07T08:25:04.648Z" }, + { url = "https://files.pythonhosted.org/packages/c0/22/b97878d2f1284286fef4172069e84b0b42b546ea7d053e5fb7adb9ac6494/rpds_py-0.27.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:6b96b0b784fe5fd03beffff2b1533dc0d85e92bab8d1b2c24ef3a5dc8fac5669", size = 343960, upload-time = "2025-08-07T08:25:05.863Z" }, + { url = "https://files.pythonhosted.org/packages/b1/b0/dfd55b5bb480eda0578ae94ef256d3061d20b19a0f5e18c482f03e65464f/rpds_py-0.27.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0c431bfb91478d7cbe368d0a699978050d3b112d7f1d440a41e90faa325557fd", size = 380201, upload-time = "2025-08-07T08:25:07.513Z" }, + { url = "https://files.pythonhosted.org/packages/28/22/e1fa64e50d58ad2b2053077e3ec81a979147c43428de9e6de68ddf6aff4e/rpds_py-0.27.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:20e222a44ae9f507d0f2678ee3dd0c45ec1e930f6875d99b8459631c24058aec", size = 392111, upload-time = "2025-08-07T08:25:09.149Z" }, + { url = "https://files.pythonhosted.org/packages/49/f9/43ab7a43e97aedf6cea6af70fdcbe18abbbc41d4ae6cdec1bfc23bbad403/rpds_py-0.27.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:184f0d7b342967f6cda94a07d0e1fae177d11d0b8f17d73e06e36ac02889f303", size = 515863, upload-time = "2025-08-07T08:25:10.431Z" }, + { url = "https://files.pythonhosted.org/packages/38/9b/9bd59dcc636cd04d86a2d20ad967770bf348f5eb5922a8f29b547c074243/rpds_py-0.27.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a00c91104c173c9043bc46f7b30ee5e6d2f6b1149f11f545580f5d6fdff42c0b", size = 402398, upload-time = "2025-08-07T08:25:11.819Z" }, + { url = "https://files.pythonhosted.org/packages/71/bf/f099328c6c85667aba6b66fa5c35a8882db06dcd462ea214be72813a0dd2/rpds_py-0.27.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f7a37dd208f0d658e0487522078b1ed68cd6bce20ef4b5a915d2809b9094b410", size = 384665, upload-time = "2025-08-07T08:25:13.194Z" }, + { url = "https://files.pythonhosted.org/packages/a9/c5/9c1f03121ece6634818490bd3c8be2c82a70928a19de03467fb25a3ae2a8/rpds_py-0.27.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:92f3b3ec3e6008a1fe00b7c0946a170f161ac00645cde35e3c9a68c2475e8156", size = 400405, upload-time = "2025-08-07T08:25:14.417Z" }, + { url = "https://files.pythonhosted.org/packages/b5/b8/e25d54af3e63ac94f0c16d8fe143779fe71ff209445a0c00d0f6984b6b2c/rpds_py-0.27.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a1b3db5fae5cbce2131b7420a3f83553d4d89514c03d67804ced36161fe8b6b2", size = 413179, upload-time = "2025-08-07T08:25:15.664Z" }, + { url = "https://files.pythonhosted.org/packages/f9/d1/406b3316433fe49c3021546293a04bc33f1478e3ec7950215a7fce1a1208/rpds_py-0.27.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5355527adaa713ab693cbce7c1e0ec71682f599f61b128cf19d07e5c13c9b1f1", size = 556895, upload-time = "2025-08-07T08:25:17.061Z" }, + { url = "https://files.pythonhosted.org/packages/5f/bc/3697c0c21fcb9a54d46ae3b735eb2365eea0c2be076b8f770f98e07998de/rpds_py-0.27.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:fcc01c57ce6e70b728af02b2401c5bc853a9e14eb07deda30624374f0aebfe42", size = 585464, upload-time = "2025-08-07T08:25:18.406Z" }, + { url = "https://files.pythonhosted.org/packages/63/09/ee1bb5536f99f42c839b177d552f6114aa3142d82f49cef49261ed28dbe0/rpds_py-0.27.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:3001013dae10f806380ba739d40dee11db1ecb91684febb8406a87c2ded23dae", size = 555090, upload-time = "2025-08-07T08:25:20.461Z" }, + { url = "https://files.pythonhosted.org/packages/7d/2c/363eada9e89f7059199d3724135a86c47082cbf72790d6ba2f336d146ddb/rpds_py-0.27.0-cp314-cp314t-win32.whl", hash = "sha256:0f401c369186a5743694dd9fc08cba66cf70908757552e1f714bfc5219c655b5", size = 218001, upload-time = "2025-08-07T08:25:21.761Z" }, + { url = "https://files.pythonhosted.org/packages/e2/3f/d6c216ed5199c9ef79e2a33955601f454ed1e7420a93b89670133bca5ace/rpds_py-0.27.0-cp314-cp314t-win_amd64.whl", hash = "sha256:8a1dca5507fa1337f75dcd5070218b20bc68cf8844271c923c1b79dfcbc20391", size = 230993, upload-time = "2025-08-07T08:25:23.34Z" }, +] + +[[package]] +name = "rsa" +version = "4.9.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pyasn1" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/da/8a/22b7beea3ee0d44b1916c0c1cb0ee3af23b700b6da9f04991899d0c555d4/rsa-4.9.1.tar.gz", hash = "sha256:e7bdbfdb5497da4c07dfd35530e1a902659db6ff241e39d9953cad06ebd0ae75", size = 29034, upload-time = "2025-04-16T09:51:18.218Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/64/8d/0133e4eb4beed9e425d9a98ed6e081a55d195481b7632472be1af08d2f6b/rsa-4.9.1-py3-none-any.whl", hash = "sha256:68635866661c6836b8d39430f97a996acbd61bfa49406748ea243539fe239762", size = 34696, upload-time = "2025-04-16T09:51:17.142Z" }, +] + +[[package]] +name = "ruff" +version = "0.12.8" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/4b/da/5bd7565be729e86e1442dad2c9a364ceeff82227c2dece7c29697a9795eb/ruff-0.12.8.tar.gz", hash = "sha256:4cb3a45525176e1009b2b64126acf5f9444ea59066262791febf55e40493a033", size = 5242373, upload-time = "2025-08-07T19:05:47.268Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c9/1e/c843bfa8ad1114fab3eb2b78235dda76acd66384c663a4e0415ecc13aa1e/ruff-0.12.8-py3-none-linux_armv6l.whl", hash = "sha256:63cb5a5e933fc913e5823a0dfdc3c99add73f52d139d6cd5cc8639d0e0465513", size = 11675315, upload-time = "2025-08-07T19:05:06.15Z" }, + { url = "https://files.pythonhosted.org/packages/24/ee/af6e5c2a8ca3a81676d5480a1025494fd104b8896266502bb4de2a0e8388/ruff-0.12.8-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:9a9bbe28f9f551accf84a24c366c1aa8774d6748438b47174f8e8565ab9dedbc", size = 12456653, upload-time = "2025-08-07T19:05:09.759Z" }, + { url = "https://files.pythonhosted.org/packages/99/9d/e91f84dfe3866fa648c10512904991ecc326fd0b66578b324ee6ecb8f725/ruff-0.12.8-py3-none-macosx_11_0_arm64.whl", hash = "sha256:2fae54e752a3150f7ee0e09bce2e133caf10ce9d971510a9b925392dc98d2fec", size = 11659690, upload-time = "2025-08-07T19:05:12.551Z" }, + { url = "https://files.pythonhosted.org/packages/fe/ac/a363d25ec53040408ebdd4efcee929d48547665858ede0505d1d8041b2e5/ruff-0.12.8-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c0acbcf01206df963d9331b5838fb31f3b44fa979ee7fa368b9b9057d89f4a53", size = 11896923, upload-time = "2025-08-07T19:05:14.821Z" }, + { url = "https://files.pythonhosted.org/packages/58/9f/ea356cd87c395f6ade9bb81365bd909ff60860975ca1bc39f0e59de3da37/ruff-0.12.8-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ae3e7504666ad4c62f9ac8eedb52a93f9ebdeb34742b8b71cd3cccd24912719f", size = 11477612, upload-time = "2025-08-07T19:05:16.712Z" }, + { url = "https://files.pythonhosted.org/packages/1a/46/92e8fa3c9dcfd49175225c09053916cb97bb7204f9f899c2f2baca69e450/ruff-0.12.8-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cb82efb5d35d07497813a1c5647867390a7d83304562607f3579602fa3d7d46f", size = 13182745, upload-time = "2025-08-07T19:05:18.709Z" }, + { url = "https://files.pythonhosted.org/packages/5e/c4/f2176a310f26e6160deaf661ef60db6c3bb62b7a35e57ae28f27a09a7d63/ruff-0.12.8-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:dbea798fc0065ad0b84a2947b0aff4233f0cb30f226f00a2c5850ca4393de609", size = 14206885, upload-time = "2025-08-07T19:05:21.025Z" }, + { url = "https://files.pythonhosted.org/packages/87/9d/98e162f3eeeb6689acbedbae5050b4b3220754554526c50c292b611d3a63/ruff-0.12.8-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:49ebcaccc2bdad86fd51b7864e3d808aad404aab8df33d469b6e65584656263a", size = 13639381, upload-time = "2025-08-07T19:05:23.423Z" }, + { url = "https://files.pythonhosted.org/packages/81/4e/1b7478b072fcde5161b48f64774d6edd59d6d198e4ba8918d9f4702b8043/ruff-0.12.8-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0ac9c570634b98c71c88cb17badd90f13fc076a472ba6ef1d113d8ed3df109fb", size = 12613271, upload-time = "2025-08-07T19:05:25.507Z" }, + { url = "https://files.pythonhosted.org/packages/e8/67/0c3c9179a3ad19791ef1b8f7138aa27d4578c78700551c60d9260b2c660d/ruff-0.12.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:560e0cd641e45591a3e42cb50ef61ce07162b9c233786663fdce2d8557d99818", size = 12847783, upload-time = "2025-08-07T19:05:28.14Z" }, + { url = "https://files.pythonhosted.org/packages/4e/2a/0b6ac3dd045acf8aa229b12c9c17bb35508191b71a14904baf99573a21bd/ruff-0.12.8-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:71c83121512e7743fba5a8848c261dcc454cafb3ef2934a43f1b7a4eb5a447ea", size = 11702672, upload-time = "2025-08-07T19:05:30.413Z" }, + { url = "https://files.pythonhosted.org/packages/9d/ee/f9fdc9f341b0430110de8b39a6ee5fa68c5706dc7c0aa940817947d6937e/ruff-0.12.8-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:de4429ef2ba091ecddedd300f4c3f24bca875d3d8b23340728c3cb0da81072c3", size = 11440626, upload-time = "2025-08-07T19:05:32.492Z" }, + { url = "https://files.pythonhosted.org/packages/89/fb/b3aa2d482d05f44e4d197d1de5e3863feb13067b22c571b9561085c999dc/ruff-0.12.8-py3-none-musllinux_1_2_i686.whl", hash = "sha256:a2cab5f60d5b65b50fba39a8950c8746df1627d54ba1197f970763917184b161", size = 12462162, upload-time = "2025-08-07T19:05:34.449Z" }, + { url = "https://files.pythonhosted.org/packages/18/9f/5c5d93e1d00d854d5013c96e1a92c33b703a0332707a7cdbd0a4880a84fb/ruff-0.12.8-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:45c32487e14f60b88aad6be9fd5da5093dbefb0e3e1224131cb1d441d7cb7d46", size = 12913212, upload-time = "2025-08-07T19:05:36.541Z" }, + { url = "https://files.pythonhosted.org/packages/71/13/ab9120add1c0e4604c71bfc2e4ef7d63bebece0cfe617013da289539cef8/ruff-0.12.8-py3-none-win32.whl", hash = "sha256:daf3475060a617fd5bc80638aeaf2f5937f10af3ec44464e280a9d2218e720d3", size = 11694382, upload-time = "2025-08-07T19:05:38.468Z" }, + { url = "https://files.pythonhosted.org/packages/f6/dc/a2873b7c5001c62f46266685863bee2888caf469d1edac84bf3242074be2/ruff-0.12.8-py3-none-win_amd64.whl", hash = "sha256:7209531f1a1fcfbe8e46bcd7ab30e2f43604d8ba1c49029bb420b103d0b5f76e", size = 12740482, upload-time = "2025-08-07T19:05:40.391Z" }, + { url = "https://files.pythonhosted.org/packages/cb/5c/799a1efb8b5abab56e8a9f2a0b72d12bd64bb55815e9476c7d0a2887d2f7/ruff-0.12.8-py3-none-win_arm64.whl", hash = "sha256:c90e1a334683ce41b0e7a04f41790c429bf5073b62c1ae701c9dc5b3d14f0749", size = 11884718, upload-time = "2025-08-07T19:05:42.866Z" }, +] + +[[package]] +name = "s3transfer" +version = "0.13.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "botocore" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/6d/05/d52bf1e65044b4e5e27d4e63e8d1579dbdec54fce685908ae09bc3720030/s3transfer-0.13.1.tar.gz", hash = "sha256:c3fdba22ba1bd367922f27ec8032d6a1cf5f10c934fb5d68cf60fd5a23d936cf", size = 150589, upload-time = "2025-07-18T19:22:42.31Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6d/4f/d073e09df851cfa251ef7840007d04db3293a0482ce607d2b993926089be/s3transfer-0.13.1-py3-none-any.whl", hash = "sha256:a981aa7429be23fe6dfc13e80e4020057cbab622b08c0315288758d67cabc724", size = 85308, upload-time = "2025-07-18T19:22:40.947Z" }, +] + +[[package]] +name = "safehttpx" +version = "0.1.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "httpx" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/67/4c/19db75e6405692b2a96af8f06d1258f8aa7290bdc35ac966f03e207f6d7f/safehttpx-0.1.6.tar.gz", hash = "sha256:b356bfc82cee3a24c395b94a2dbeabbed60aff1aa5fa3b5fe97c4f2456ebce42", size = 9987, upload-time = "2024-12-02T18:44:10.226Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4d/c0/1108ad9f01567f66b3154063605b350b69c3c9366732e09e45f9fd0d1deb/safehttpx-0.1.6-py3-none-any.whl", hash = "sha256:407cff0b410b071623087c63dd2080c3b44dc076888d8c5823c00d1e58cb381c", size = 8692, upload-time = "2024-12-02T18:44:08.555Z" }, +] + +[[package]] +name = "safetensors" +version = "0.6.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ac/cc/738f3011628920e027a11754d9cae9abec1aed00f7ae860abbf843755233/safetensors-0.6.2.tar.gz", hash = "sha256:43ff2aa0e6fa2dc3ea5524ac7ad93a9839256b8703761e76e2d0b2a3fa4f15d9", size = 197968, upload-time = "2025-08-08T13:13:58.654Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4d/b1/3f5fd73c039fc87dba3ff8b5d528bfc5a32b597fea8e7a6a4800343a17c7/safetensors-0.6.2-cp38-abi3-macosx_10_12_x86_64.whl", hash = "sha256:9c85ede8ec58f120bad982ec47746981e210492a6db876882aa021446af8ffba", size = 454797, upload-time = "2025-08-08T13:13:52.066Z" }, + { url = "https://files.pythonhosted.org/packages/8c/c9/bb114c158540ee17907ec470d01980957fdaf87b4aa07914c24eba87b9c6/safetensors-0.6.2-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:d6675cf4b39c98dbd7d940598028f3742e0375a6b4d4277e76beb0c35f4b843b", size = 432206, upload-time = "2025-08-08T13:13:50.931Z" }, + { url = "https://files.pythonhosted.org/packages/d3/8e/f70c34e47df3110e8e0bb268d90db8d4be8958a54ab0336c9be4fe86dac8/safetensors-0.6.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1d2d2b3ce1e2509c68932ca03ab8f20570920cd9754b05063d4368ee52833ecd", size = 473261, upload-time = "2025-08-08T13:13:41.259Z" }, + { url = "https://files.pythonhosted.org/packages/2a/f5/be9c6a7c7ef773e1996dc214e73485286df1836dbd063e8085ee1976f9cb/safetensors-0.6.2-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:93de35a18f46b0f5a6a1f9e26d91b442094f2df02e9fd7acf224cfec4238821a", size = 485117, upload-time = "2025-08-08T13:13:43.506Z" }, + { url = "https://files.pythonhosted.org/packages/c9/55/23f2d0a2c96ed8665bf17a30ab4ce5270413f4d74b6d87dd663258b9af31/safetensors-0.6.2-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:89a89b505f335640f9120fac65ddeb83e40f1fd081cb8ed88b505bdccec8d0a1", size = 616154, upload-time = "2025-08-08T13:13:45.096Z" }, + { url = "https://files.pythonhosted.org/packages/98/c6/affb0bd9ce02aa46e7acddbe087912a04d953d7a4d74b708c91b5806ef3f/safetensors-0.6.2-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fc4d0d0b937e04bdf2ae6f70cd3ad51328635fe0e6214aa1fc811f3b576b3bda", size = 520713, upload-time = "2025-08-08T13:13:46.25Z" }, + { url = "https://files.pythonhosted.org/packages/fe/5d/5a514d7b88e310c8b146e2404e0dc161282e78634d9358975fd56dfd14be/safetensors-0.6.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8045db2c872db8f4cbe3faa0495932d89c38c899c603f21e9b6486951a5ecb8f", size = 485835, upload-time = "2025-08-08T13:13:49.373Z" }, + { url = "https://files.pythonhosted.org/packages/7a/7b/4fc3b2ba62c352b2071bea9cfbad330fadda70579f617506ae1a2f129cab/safetensors-0.6.2-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:81e67e8bab9878bb568cffbc5f5e655adb38d2418351dc0859ccac158f753e19", size = 521503, upload-time = "2025-08-08T13:13:47.651Z" }, + { url = "https://files.pythonhosted.org/packages/5a/50/0057e11fe1f3cead9254315a6c106a16dd4b1a19cd247f7cc6414f6b7866/safetensors-0.6.2-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:b0e4d029ab0a0e0e4fdf142b194514695b1d7d3735503ba700cf36d0fc7136ce", size = 652256, upload-time = "2025-08-08T13:13:53.167Z" }, + { url = "https://files.pythonhosted.org/packages/e9/29/473f789e4ac242593ac1656fbece6e1ecd860bb289e635e963667807afe3/safetensors-0.6.2-cp38-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:fa48268185c52bfe8771e46325a1e21d317207bcabcb72e65c6e28e9ffeb29c7", size = 747281, upload-time = "2025-08-08T13:13:54.656Z" }, + { url = "https://files.pythonhosted.org/packages/68/52/f7324aad7f2df99e05525c84d352dc217e0fa637a4f603e9f2eedfbe2c67/safetensors-0.6.2-cp38-abi3-musllinux_1_2_i686.whl", hash = "sha256:d83c20c12c2d2f465997c51b7ecb00e407e5f94d7dec3ea0cc11d86f60d3fde5", size = 692286, upload-time = "2025-08-08T13:13:55.884Z" }, + { url = "https://files.pythonhosted.org/packages/ad/fe/cad1d9762868c7c5dc70c8620074df28ebb1a8e4c17d4c0cb031889c457e/safetensors-0.6.2-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:d944cea65fad0ead848b6ec2c37cc0b197194bec228f8020054742190e9312ac", size = 655957, upload-time = "2025-08-08T13:13:57.029Z" }, + { url = "https://files.pythonhosted.org/packages/59/a7/e2158e17bbe57d104f0abbd95dff60dda916cf277c9f9663b4bf9bad8b6e/safetensors-0.6.2-cp38-abi3-win32.whl", hash = "sha256:cab75ca7c064d3911411461151cb69380c9225798a20e712b102edda2542ddb1", size = 308926, upload-time = "2025-08-08T13:14:01.095Z" }, + { url = "https://files.pythonhosted.org/packages/2c/c3/c0be1135726618dc1e28d181b8c442403d8dbb9e273fd791de2d4384bcdd/safetensors-0.6.2-cp38-abi3-win_amd64.whl", hash = "sha256:c7b214870df923cbc1593c3faee16bec59ea462758699bd3fee399d00aac072c", size = 320192, upload-time = "2025-08-08T13:13:59.467Z" }, +] + +[[package]] +name = "scikit-learn" +version = "1.7.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "joblib" }, + { name = "numpy" }, + { name = "scipy" }, + { name = "threadpoolctl" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/41/84/5f4af978fff619706b8961accac84780a6d298d82a8873446f72edb4ead0/scikit_learn-1.7.1.tar.gz", hash = "sha256:24b3f1e976a4665aa74ee0fcaac2b8fccc6ae77c8e07ab25da3ba6d3292b9802", size = 7190445, upload-time = "2025-07-18T08:01:54.5Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/cb/16/57f176585b35ed865f51b04117947fe20f130f78940c6477b6d66279c9c2/scikit_learn-1.7.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:3cee419b49b5bbae8796ecd690f97aa412ef1674410c23fc3257c6b8b85b8087", size = 9260431, upload-time = "2025-07-18T08:01:22.77Z" }, + { url = "https://files.pythonhosted.org/packages/67/4e/899317092f5efcab0e9bc929e3391341cec8fb0e816c4789686770024580/scikit_learn-1.7.1-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:2fd8b8d35817b0d9ebf0b576f7d5ffbbabdb55536b0655a8aaae629d7ffd2e1f", size = 8637191, upload-time = "2025-07-18T08:01:24.731Z" }, + { url = "https://files.pythonhosted.org/packages/f3/1b/998312db6d361ded1dd56b457ada371a8d8d77ca2195a7d18fd8a1736f21/scikit_learn-1.7.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:588410fa19a96a69763202f1d6b7b91d5d7a5d73be36e189bc6396bfb355bd87", size = 9486346, upload-time = "2025-07-18T08:01:26.713Z" }, + { url = "https://files.pythonhosted.org/packages/ad/09/a2aa0b4e644e5c4ede7006748f24e72863ba2ae71897fecfd832afea01b4/scikit_learn-1.7.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e3142f0abe1ad1d1c31a2ae987621e41f6b578144a911ff4ac94781a583adad7", size = 9290988, upload-time = "2025-07-18T08:01:28.938Z" }, + { url = "https://files.pythonhosted.org/packages/15/fa/c61a787e35f05f17fc10523f567677ec4eeee5f95aa4798dbbbcd9625617/scikit_learn-1.7.1-cp312-cp312-win_amd64.whl", hash = "sha256:3ddd9092c1bd469acab337d87930067c87eac6bd544f8d5027430983f1e1ae88", size = 8735568, upload-time = "2025-07-18T08:01:30.936Z" }, + { url = "https://files.pythonhosted.org/packages/52/f8/e0533303f318a0f37b88300d21f79b6ac067188d4824f1047a37214ab718/scikit_learn-1.7.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b7839687fa46d02e01035ad775982f2470be2668e13ddd151f0f55a5bf123bae", size = 9213143, upload-time = "2025-07-18T08:01:32.942Z" }, + { url = "https://files.pythonhosted.org/packages/71/f3/f1df377d1bdfc3e3e2adc9c119c238b182293e6740df4cbeac6de2cc3e23/scikit_learn-1.7.1-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:a10f276639195a96c86aa572ee0698ad64ee939a7b042060b98bd1930c261d10", size = 8591977, upload-time = "2025-07-18T08:01:34.967Z" }, + { url = "https://files.pythonhosted.org/packages/99/72/c86a4cd867816350fe8dee13f30222340b9cd6b96173955819a5561810c5/scikit_learn-1.7.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:13679981fdaebc10cc4c13c43344416a86fcbc61449cb3e6517e1df9d12c8309", size = 9436142, upload-time = "2025-07-18T08:01:37.397Z" }, + { url = "https://files.pythonhosted.org/packages/e8/66/277967b29bd297538dc7a6ecfb1a7dce751beabd0d7f7a2233be7a4f7832/scikit_learn-1.7.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4f1262883c6a63f067a980a8cdd2d2e7f2513dddcef6a9eaada6416a7a7cbe43", size = 9282996, upload-time = "2025-07-18T08:01:39.721Z" }, + { url = "https://files.pythonhosted.org/packages/e2/47/9291cfa1db1dae9880420d1e07dbc7e8dd4a7cdbc42eaba22512e6bde958/scikit_learn-1.7.1-cp313-cp313-win_amd64.whl", hash = "sha256:ca6d31fb10e04d50bfd2b50d66744729dbb512d4efd0223b864e2fdbfc4cee11", size = 8707418, upload-time = "2025-07-18T08:01:42.124Z" }, + { url = "https://files.pythonhosted.org/packages/61/95/45726819beccdaa34d3362ea9b2ff9f2b5d3b8bf721bd632675870308ceb/scikit_learn-1.7.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:781674d096303cfe3d351ae6963ff7c958db61cde3421cd490e3a5a58f2a94ae", size = 9561466, upload-time = "2025-07-18T08:01:44.195Z" }, + { url = "https://files.pythonhosted.org/packages/ee/1c/6f4b3344805de783d20a51eb24d4c9ad4b11a7f75c1801e6ec6d777361fd/scikit_learn-1.7.1-cp313-cp313t-macosx_12_0_arm64.whl", hash = "sha256:10679f7f125fe7ecd5fad37dd1aa2daae7e3ad8df7f3eefa08901b8254b3e12c", size = 9040467, upload-time = "2025-07-18T08:01:46.671Z" }, + { url = "https://files.pythonhosted.org/packages/6f/80/abe18fe471af9f1d181904203d62697998b27d9b62124cd281d740ded2f9/scikit_learn-1.7.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:1f812729e38c8cb37f760dce71a9b83ccfb04f59b3dca7c6079dcdc60544fa9e", size = 9532052, upload-time = "2025-07-18T08:01:48.676Z" }, + { url = "https://files.pythonhosted.org/packages/14/82/b21aa1e0c4cee7e74864d3a5a721ab8fcae5ca55033cb6263dca297ed35b/scikit_learn-1.7.1-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:88e1a20131cf741b84b89567e1717f27a2ced228e0f29103426102bc2e3b8ef7", size = 9361575, upload-time = "2025-07-18T08:01:50.639Z" }, + { url = "https://files.pythonhosted.org/packages/f2/20/f4777fcd5627dc6695fa6b92179d0edb7a3ac1b91bcd9a1c7f64fa7ade23/scikit_learn-1.7.1-cp313-cp313t-win_amd64.whl", hash = "sha256:b1bd1d919210b6a10b7554b717c9000b5485aa95a1d0f177ae0d7ee8ec750da5", size = 9277310, upload-time = "2025-07-18T08:01:52.547Z" }, +] + +[[package]] +name = "scipy" +version = "1.16.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f5/4a/b927028464795439faec8eaf0b03b011005c487bb2d07409f28bf30879c4/scipy-1.16.1.tar.gz", hash = "sha256:44c76f9e8b6e8e488a586190ab38016e4ed2f8a038af7cd3defa903c0a2238b3", size = 30580861, upload-time = "2025-07-27T16:33:30.834Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f8/d9/ec4864f5896232133f51382b54a08de91a9d1af7a76dfa372894026dfee2/scipy-1.16.1-cp312-cp312-macosx_10_14_x86_64.whl", hash = "sha256:81b433bbeaf35728dad619afc002db9b189e45eebe2cd676effe1fb93fef2b9c", size = 36575194, upload-time = "2025-07-27T16:27:41.321Z" }, + { url = "https://files.pythonhosted.org/packages/5c/6d/40e81ecfb688e9d25d34a847dca361982a6addf8e31f0957b1a54fbfa994/scipy-1.16.1-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:886cc81fdb4c6903a3bb0464047c25a6d1016fef77bb97949817d0c0d79f9e04", size = 28594590, upload-time = "2025-07-27T16:27:49.204Z" }, + { url = "https://files.pythonhosted.org/packages/0e/37/9f65178edfcc629377ce9a64fc09baebea18c80a9e57ae09a52edf84880b/scipy-1.16.1-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:15240c3aac087a522b4eaedb09f0ad061753c5eebf1ea430859e5bf8640d5919", size = 20866458, upload-time = "2025-07-27T16:27:54.98Z" }, + { url = "https://files.pythonhosted.org/packages/2c/7b/749a66766871ea4cb1d1ea10f27004db63023074c22abed51f22f09770e0/scipy-1.16.1-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:65f81a25805f3659b48126b5053d9e823d3215e4a63730b5e1671852a1705921", size = 23539318, upload-time = "2025-07-27T16:28:01.604Z" }, + { url = "https://files.pythonhosted.org/packages/c4/db/8d4afec60eb833a666434d4541a3151eedbf2494ea6d4d468cbe877f00cd/scipy-1.16.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6c62eea7f607f122069b9bad3f99489ddca1a5173bef8a0c75555d7488b6f725", size = 33292899, upload-time = "2025-07-27T16:28:09.147Z" }, + { url = "https://files.pythonhosted.org/packages/51/1e/79023ca3bbb13a015d7d2757ecca3b81293c663694c35d6541b4dca53e98/scipy-1.16.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f965bbf3235b01c776115ab18f092a95aa74c271a52577bcb0563e85738fd618", size = 35162637, upload-time = "2025-07-27T16:28:17.535Z" }, + { url = "https://files.pythonhosted.org/packages/b6/49/0648665f9c29fdaca4c679182eb972935b3b4f5ace41d323c32352f29816/scipy-1.16.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f006e323874ffd0b0b816d8c6a8e7f9a73d55ab3b8c3f72b752b226d0e3ac83d", size = 35490507, upload-time = "2025-07-27T16:28:25.705Z" }, + { url = "https://files.pythonhosted.org/packages/62/8f/66cbb9d6bbb18d8c658f774904f42a92078707a7c71e5347e8bf2f52bb89/scipy-1.16.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e8fd15fc5085ab4cca74cb91fe0a4263b1f32e4420761ddae531ad60934c2119", size = 37923998, upload-time = "2025-07-27T16:28:34.339Z" }, + { url = "https://files.pythonhosted.org/packages/14/c3/61f273ae550fbf1667675701112e380881905e28448c080b23b5a181df7c/scipy-1.16.1-cp312-cp312-win_amd64.whl", hash = "sha256:f7b8013c6c066609577d910d1a2a077021727af07b6fab0ee22c2f901f22352a", size = 38508060, upload-time = "2025-07-27T16:28:43.242Z" }, + { url = "https://files.pythonhosted.org/packages/93/0b/b5c99382b839854a71ca9482c684e3472badc62620287cbbdab499b75ce6/scipy-1.16.1-cp313-cp313-macosx_10_14_x86_64.whl", hash = "sha256:5451606823a5e73dfa621a89948096c6528e2896e40b39248295d3a0138d594f", size = 36533717, upload-time = "2025-07-27T16:28:51.706Z" }, + { url = "https://files.pythonhosted.org/packages/eb/e5/69ab2771062c91e23e07c12e7d5033a6b9b80b0903ee709c3c36b3eb520c/scipy-1.16.1-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:89728678c5ca5abd610aee148c199ac1afb16e19844401ca97d43dc548a354eb", size = 28570009, upload-time = "2025-07-27T16:28:57.017Z" }, + { url = "https://files.pythonhosted.org/packages/f4/69/bd75dbfdd3cf524f4d753484d723594aed62cfaac510123e91a6686d520b/scipy-1.16.1-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:e756d688cb03fd07de0fffad475649b03cb89bee696c98ce508b17c11a03f95c", size = 20841942, upload-time = "2025-07-27T16:29:01.152Z" }, + { url = "https://files.pythonhosted.org/packages/ea/74/add181c87663f178ba7d6144b370243a87af8476664d5435e57d599e6874/scipy-1.16.1-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:5aa2687b9935da3ed89c5dbed5234576589dd28d0bf7cd237501ccfbdf1ad608", size = 23498507, upload-time = "2025-07-27T16:29:05.202Z" }, + { url = "https://files.pythonhosted.org/packages/1d/74/ece2e582a0d9550cee33e2e416cc96737dce423a994d12bbe59716f47ff1/scipy-1.16.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0851f6a1e537fe9399f35986897e395a1aa61c574b178c0d456be5b1a0f5ca1f", size = 33286040, upload-time = "2025-07-27T16:29:10.201Z" }, + { url = "https://files.pythonhosted.org/packages/e4/82/08e4076df538fb56caa1d489588d880ec7c52d8273a606bb54d660528f7c/scipy-1.16.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fedc2cbd1baed37474b1924c331b97bdff611d762c196fac1a9b71e67b813b1b", size = 35176096, upload-time = "2025-07-27T16:29:17.091Z" }, + { url = "https://files.pythonhosted.org/packages/fa/79/cd710aab8c921375711a8321c6be696e705a120e3011a643efbbcdeeabcc/scipy-1.16.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:2ef500e72f9623a6735769e4b93e9dcb158d40752cdbb077f305487e3e2d1f45", size = 35490328, upload-time = "2025-07-27T16:29:22.928Z" }, + { url = "https://files.pythonhosted.org/packages/71/73/e9cc3d35ee4526d784520d4494a3e1ca969b071fb5ae5910c036a375ceec/scipy-1.16.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:978d8311674b05a8f7ff2ea6c6bce5d8b45a0cb09d4c5793e0318f448613ea65", size = 37939921, upload-time = "2025-07-27T16:29:29.108Z" }, + { url = "https://files.pythonhosted.org/packages/21/12/c0efd2941f01940119b5305c375ae5c0fcb7ec193f806bd8f158b73a1782/scipy-1.16.1-cp313-cp313-win_amd64.whl", hash = "sha256:81929ed0fa7a5713fcdd8b2e6f73697d3b4c4816d090dd34ff937c20fa90e8ab", size = 38479462, upload-time = "2025-07-27T16:30:24.078Z" }, + { url = "https://files.pythonhosted.org/packages/7a/19/c3d08b675260046a991040e1ea5d65f91f40c7df1045fffff412dcfc6765/scipy-1.16.1-cp313-cp313t-macosx_10_14_x86_64.whl", hash = "sha256:bcc12db731858abda693cecdb3bdc9e6d4bd200213f49d224fe22df82687bdd6", size = 36938832, upload-time = "2025-07-27T16:29:35.057Z" }, + { url = "https://files.pythonhosted.org/packages/81/f2/ce53db652c033a414a5b34598dba6b95f3d38153a2417c5a3883da429029/scipy-1.16.1-cp313-cp313t-macosx_12_0_arm64.whl", hash = "sha256:744d977daa4becb9fc59135e75c069f8d301a87d64f88f1e602a9ecf51e77b27", size = 29093084, upload-time = "2025-07-27T16:29:40.201Z" }, + { url = "https://files.pythonhosted.org/packages/a9/ae/7a10ff04a7dc15f9057d05b33737ade244e4bd195caa3f7cc04d77b9e214/scipy-1.16.1-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:dc54f76ac18073bcecffb98d93f03ed6b81a92ef91b5d3b135dcc81d55a724c7", size = 21365098, upload-time = "2025-07-27T16:29:44.295Z" }, + { url = "https://files.pythonhosted.org/packages/36/ac/029ff710959932ad3c2a98721b20b405f05f752f07344622fd61a47c5197/scipy-1.16.1-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:367d567ee9fc1e9e2047d31f39d9d6a7a04e0710c86e701e053f237d14a9b4f6", size = 23896858, upload-time = "2025-07-27T16:29:48.784Z" }, + { url = "https://files.pythonhosted.org/packages/71/13/d1ef77b6bd7898720e1f0b6b3743cb945f6c3cafa7718eaac8841035ab60/scipy-1.16.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:4cf5785e44e19dcd32a0e4807555e1e9a9b8d475c6afff3d21c3c543a6aa84f4", size = 33438311, upload-time = "2025-07-27T16:29:54.164Z" }, + { url = "https://files.pythonhosted.org/packages/2d/e0/e64a6821ffbb00b4c5b05169f1c1fddb4800e9307efe3db3788995a82a2c/scipy-1.16.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3d0b80fb26d3e13a794c71d4b837e2a589d839fd574a6bbb4ee1288c213ad4a3", size = 35279542, upload-time = "2025-07-27T16:30:00.249Z" }, + { url = "https://files.pythonhosted.org/packages/57/59/0dc3c8b43e118f1e4ee2b798dcc96ac21bb20014e5f1f7a8e85cc0653bdb/scipy-1.16.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:8503517c44c18d1030d666cb70aaac1cc8913608816e06742498833b128488b7", size = 35667665, upload-time = "2025-07-27T16:30:05.916Z" }, + { url = "https://files.pythonhosted.org/packages/45/5f/844ee26e34e2f3f9f8febb9343748e72daeaec64fe0c70e9bf1ff84ec955/scipy-1.16.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:30cc4bb81c41831ecfd6dc450baf48ffd80ef5aed0f5cf3ea775740e80f16ecc", size = 38045210, upload-time = "2025-07-27T16:30:11.655Z" }, + { url = "https://files.pythonhosted.org/packages/8d/d7/210f2b45290f444f1de64bc7353aa598ece9f0e90c384b4a156f9b1a5063/scipy-1.16.1-cp313-cp313t-win_amd64.whl", hash = "sha256:c24fa02f7ed23ae514460a22c57eca8f530dbfa50b1cfdbf4f37c05b5309cc39", size = 38593661, upload-time = "2025-07-27T16:30:17.825Z" }, + { url = "https://files.pythonhosted.org/packages/81/ea/84d481a5237ed223bd3d32d6e82d7a6a96e34756492666c260cef16011d1/scipy-1.16.1-cp314-cp314-macosx_10_14_x86_64.whl", hash = "sha256:796a5a9ad36fa3a782375db8f4241ab02a091308eb079746bc0f874c9b998318", size = 36525921, upload-time = "2025-07-27T16:30:30.081Z" }, + { url = "https://files.pythonhosted.org/packages/4e/9f/d9edbdeff9f3a664807ae3aea383e10afaa247e8e6255e6d2aa4515e8863/scipy-1.16.1-cp314-cp314-macosx_12_0_arm64.whl", hash = "sha256:3ea0733a2ff73fd6fdc5fecca54ee9b459f4d74f00b99aced7d9a3adb43fb1cc", size = 28564152, upload-time = "2025-07-27T16:30:35.336Z" }, + { url = "https://files.pythonhosted.org/packages/3b/95/8125bcb1fe04bc267d103e76516243e8d5e11229e6b306bda1024a5423d1/scipy-1.16.1-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:85764fb15a2ad994e708258bb4ed8290d1305c62a4e1ef07c414356a24fcfbf8", size = 20836028, upload-time = "2025-07-27T16:30:39.421Z" }, + { url = "https://files.pythonhosted.org/packages/77/9c/bf92e215701fc70bbcd3d14d86337cf56a9b912a804b9c776a269524a9e9/scipy-1.16.1-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:ca66d980469cb623b1759bdd6e9fd97d4e33a9fad5b33771ced24d0cb24df67e", size = 23489666, upload-time = "2025-07-27T16:30:43.663Z" }, + { url = "https://files.pythonhosted.org/packages/5e/00/5e941d397d9adac41b02839011594620d54d99488d1be5be755c00cde9ee/scipy-1.16.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:e7cc1ffcc230f568549fc56670bcf3df1884c30bd652c5da8138199c8c76dae0", size = 33358318, upload-time = "2025-07-27T16:30:48.982Z" }, + { url = "https://files.pythonhosted.org/packages/0e/87/8db3aa10dde6e3e8e7eb0133f24baa011377d543f5b19c71469cf2648026/scipy-1.16.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3ddfb1e8d0b540cb4ee9c53fc3dea3186f97711248fb94b4142a1b27178d8b4b", size = 35185724, upload-time = "2025-07-27T16:30:54.26Z" }, + { url = "https://files.pythonhosted.org/packages/89/b4/6ab9ae443216807622bcff02690262d8184078ea467efee2f8c93288a3b1/scipy-1.16.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:4dc0e7be79e95d8ba3435d193e0d8ce372f47f774cffd882f88ea4e1e1ddc731", size = 35554335, upload-time = "2025-07-27T16:30:59.765Z" }, + { url = "https://files.pythonhosted.org/packages/9c/9a/d0e9dc03c5269a1afb60661118296a32ed5d2c24298af61b676c11e05e56/scipy-1.16.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f23634f9e5adb51b2a77766dac217063e764337fbc816aa8ad9aaebcd4397fd3", size = 37960310, upload-time = "2025-07-27T16:31:06.151Z" }, + { url = "https://files.pythonhosted.org/packages/5e/00/c8f3130a50521a7977874817ca89e0599b1b4ee8e938bad8ae798a0e1f0d/scipy-1.16.1-cp314-cp314-win_amd64.whl", hash = "sha256:57d75524cb1c5a374958a2eae3d84e1929bb971204cc9d52213fb8589183fc19", size = 39319239, upload-time = "2025-07-27T16:31:59.942Z" }, + { url = "https://files.pythonhosted.org/packages/f2/f2/1ca3eda54c3a7e4c92f6acef7db7b3a057deb135540d23aa6343ef8ad333/scipy-1.16.1-cp314-cp314t-macosx_10_14_x86_64.whl", hash = "sha256:d8da7c3dd67bcd93f15618938f43ed0995982eb38973023d46d4646c4283ad65", size = 36939460, upload-time = "2025-07-27T16:31:11.865Z" }, + { url = "https://files.pythonhosted.org/packages/80/30/98c2840b293a132400c0940bb9e140171dcb8189588619048f42b2ce7b4f/scipy-1.16.1-cp314-cp314t-macosx_12_0_arm64.whl", hash = "sha256:cc1d2f2fd48ba1e0620554fe5bc44d3e8f5d4185c8c109c7fbdf5af2792cfad2", size = 29093322, upload-time = "2025-07-27T16:31:17.045Z" }, + { url = "https://files.pythonhosted.org/packages/c1/e6/1e6e006e850622cf2a039b62d1a6ddc4497d4851e58b68008526f04a9a00/scipy-1.16.1-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:21a611ced9275cb861bacadbada0b8c0623bc00b05b09eb97f23b370fc2ae56d", size = 21365329, upload-time = "2025-07-27T16:31:21.188Z" }, + { url = "https://files.pythonhosted.org/packages/8e/02/72a5aa5b820589dda9a25e329ca752842bfbbaf635e36bc7065a9b42216e/scipy-1.16.1-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:8dfbb25dffc4c3dd9371d8ab456ca81beeaf6f9e1c2119f179392f0dc1ab7695", size = 23897544, upload-time = "2025-07-27T16:31:25.408Z" }, + { url = "https://files.pythonhosted.org/packages/2b/dc/7122d806a6f9eb8a33532982234bed91f90272e990f414f2830cfe656e0b/scipy-1.16.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f0ebb7204f063fad87fc0a0e4ff4a2ff40b2a226e4ba1b7e34bf4b79bf97cd86", size = 33442112, upload-time = "2025-07-27T16:31:30.62Z" }, + { url = "https://files.pythonhosted.org/packages/24/39/e383af23564daa1021a5b3afbe0d8d6a68ec639b943661841f44ac92de85/scipy-1.16.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f1b9e5962656f2734c2b285a8745358ecb4e4efbadd00208c80a389227ec61ff", size = 35286594, upload-time = "2025-07-27T16:31:36.112Z" }, + { url = "https://files.pythonhosted.org/packages/95/47/1a0b0aff40c3056d955f38b0df5d178350c3d74734ec54f9c68d23910be5/scipy-1.16.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5e1a106f8c023d57a2a903e771228bf5c5b27b5d692088f457acacd3b54511e4", size = 35665080, upload-time = "2025-07-27T16:31:42.025Z" }, + { url = "https://files.pythonhosted.org/packages/64/df/ce88803e9ed6e27fe9b9abefa157cf2c80e4fa527cf17ee14be41f790ad4/scipy-1.16.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:709559a1db68a9abc3b2c8672c4badf1614f3b440b3ab326d86a5c0491eafae3", size = 38050306, upload-time = "2025-07-27T16:31:48.109Z" }, + { url = "https://files.pythonhosted.org/packages/6e/6c/a76329897a7cae4937d403e623aa6aaea616a0bb5b36588f0b9d1c9a3739/scipy-1.16.1-cp314-cp314t-win_amd64.whl", hash = "sha256:c0c804d60492a0aad7f5b2bb1862f4548b990049e27e828391ff2bf6f7199998", size = 39427705, upload-time = "2025-07-27T16:31:53.96Z" }, +] + +[[package]] +name = "seaborn" +version = "0.13.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "matplotlib" }, + { name = "numpy" }, + { name = "pandas" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/86/59/a451d7420a77ab0b98f7affa3a1d78a313d2f7281a57afb1a34bae8ab412/seaborn-0.13.2.tar.gz", hash = "sha256:93e60a40988f4d65e9f4885df477e2fdaff6b73a9ded434c1ab356dd57eefff7", size = 1457696, upload-time = "2024-01-25T13:21:52.551Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/83/11/00d3c3dfc25ad54e731d91449895a79e4bf2384dc3ac01809010ba88f6d5/seaborn-0.13.2-py3-none-any.whl", hash = "sha256:636f8336facf092165e27924f223d3c62ca560b1f2bb5dff7ab7fad265361987", size = 294914, upload-time = "2024-01-25T13:21:49.598Z" }, +] + +[[package]] +name = "semantic-version" +version = "2.10.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7d/31/f2289ce78b9b473d582568c234e104d2a342fd658cc288a7553d83bb8595/semantic_version-2.10.0.tar.gz", hash = "sha256:bdabb6d336998cbb378d4b9db3a4b56a1e3235701dc05ea2690d9a997ed5041c", size = 52289, upload-time = "2022-05-26T13:35:23.454Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6a/23/8146aad7d88f4fcb3a6218f41a60f6c2d4e3a72de72da1825dc7c8f7877c/semantic_version-2.10.0-py2.py3-none-any.whl", hash = "sha256:de78a3b8e0feda74cabc54aab2da702113e33ac9d9eb9d2389bcf1f58b7d9177", size = 15552, upload-time = "2022-05-26T13:35:21.206Z" }, +] + +[[package]] +name = "sentence-transformers" +version = "5.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "huggingface-hub" }, + { name = "pillow" }, + { name = "scikit-learn" }, + { name = "scipy" }, + { name = "torch" }, + { name = "tqdm" }, + { name = "transformers" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/46/b8/1b99379b730bc403d8e9ddc2db56f8ac9ce743734b44a1dbeebb900490d4/sentence_transformers-5.1.0.tar.gz", hash = "sha256:70c7630697cc1c64ffca328d6e8688430ebd134b3c2df03dc07cb3a016b04739", size = 370745, upload-time = "2025-08-06T13:48:55.226Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6d/70/2b5b76e98191ec3b8b0d1dde52d00ddcc3806799149a9ce987b0d2d31015/sentence_transformers-5.1.0-py3-none-any.whl", hash = "sha256:fc803929f6a3ce82e2b2c06e0efed7a36de535c633d5ce55efac0b710ea5643e", size = 483377, upload-time = "2025-08-06T13:48:53.627Z" }, +] + +[[package]] +name = "setuptools" +version = "80.9.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/18/5d/3bf57dcd21979b887f014ea83c24ae194cfcd12b9e0fda66b957c69d1fca/setuptools-80.9.0.tar.gz", hash = "sha256:f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c", size = 1319958, upload-time = "2025-05-27T00:56:51.443Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772/setuptools-80.9.0-py3-none-any.whl", hash = "sha256:062d34222ad13e0cc312a4c02d73f059e86a4acbfbdea8f8f76b28c99f306922", size = 1201486, upload-time = "2025-05-27T00:56:49.664Z" }, +] + +[[package]] +name = "shapely" +version = "2.1.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ca/3c/2da625233f4e605155926566c0e7ea8dda361877f48e8b1655e53456f252/shapely-2.1.1.tar.gz", hash = "sha256:500621967f2ffe9642454808009044c21e5b35db89ce69f8a2042c2ffd0e2772", size = 315422, upload-time = "2025-05-19T11:04:41.265Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fb/64/9544dc07dfe80a2d489060791300827c941c451e2910f7364b19607ea352/shapely-2.1.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:2827365b58bf98efb60affc94a8e01c56dd1995a80aabe4b701465d86dcbba43", size = 1833021, upload-time = "2025-05-19T11:04:08.022Z" }, + { url = "https://files.pythonhosted.org/packages/07/aa/fb5f545e72e89b6a0f04a0effda144f5be956c9c312c7d4e00dfddbddbcf/shapely-2.1.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a9c551f7fa7f1e917af2347fe983f21f212863f1d04f08eece01e9c275903fad", size = 1643018, upload-time = "2025-05-19T11:04:09.343Z" }, + { url = "https://files.pythonhosted.org/packages/03/46/61e03edba81de729f09d880ce7ae5c1af873a0814206bbfb4402ab5c3388/shapely-2.1.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:78dec4d4fbe7b1db8dc36de3031767e7ece5911fb7782bc9e95c5cdec58fb1e9", size = 2986417, upload-time = "2025-05-19T11:04:10.56Z" }, + { url = "https://files.pythonhosted.org/packages/1f/1e/83ec268ab8254a446b4178b45616ab5822d7b9d2b7eb6e27cf0b82f45601/shapely-2.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:872d3c0a7b8b37da0e23d80496ec5973c4692920b90de9f502b5beb994bbaaef", size = 3098224, upload-time = "2025-05-19T11:04:11.903Z" }, + { url = "https://files.pythonhosted.org/packages/f1/44/0c21e7717c243e067c9ef8fa9126de24239f8345a5bba9280f7bb9935959/shapely-2.1.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2e2b9125ebfbc28ecf5353511de62f75a8515ae9470521c9a693e4bb9fbe0cf1", size = 3925982, upload-time = "2025-05-19T11:04:13.224Z" }, + { url = "https://files.pythonhosted.org/packages/15/50/d3b4e15fefc103a0eb13d83bad5f65cd6e07a5d8b2ae920e767932a247d1/shapely-2.1.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:4b96cea171b3d7f6786976a0520f178c42792897653ecca0c5422fb1e6946e6d", size = 4089122, upload-time = "2025-05-19T11:04:14.477Z" }, + { url = "https://files.pythonhosted.org/packages/bd/05/9a68f27fc6110baeedeeebc14fd86e73fa38738c5b741302408fb6355577/shapely-2.1.1-cp312-cp312-win32.whl", hash = "sha256:39dca52201e02996df02e447f729da97cfb6ff41a03cb50f5547f19d02905af8", size = 1522437, upload-time = "2025-05-19T11:04:16.203Z" }, + { url = "https://files.pythonhosted.org/packages/bc/e9/a4560e12b9338842a1f82c9016d2543eaa084fce30a1ca11991143086b57/shapely-2.1.1-cp312-cp312-win_amd64.whl", hash = "sha256:13d643256f81d55a50013eff6321142781cf777eb6a9e207c2c9e6315ba6044a", size = 1703479, upload-time = "2025-05-19T11:04:18.497Z" }, + { url = "https://files.pythonhosted.org/packages/71/8e/2bc836437f4b84d62efc1faddce0d4e023a5d990bbddd3c78b2004ebc246/shapely-2.1.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:3004a644d9e89e26c20286d5fdc10f41b1744c48ce910bd1867fdff963fe6c48", size = 1832107, upload-time = "2025-05-19T11:04:19.736Z" }, + { url = "https://files.pythonhosted.org/packages/12/a2/12c7cae5b62d5d851c2db836eadd0986f63918a91976495861f7c492f4a9/shapely-2.1.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1415146fa12d80a47d13cfad5310b3c8b9c2aa8c14a0c845c9d3d75e77cb54f6", size = 1642355, upload-time = "2025-05-19T11:04:21.035Z" }, + { url = "https://files.pythonhosted.org/packages/5b/7e/6d28b43d53fea56de69c744e34c2b999ed4042f7a811dc1bceb876071c95/shapely-2.1.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:21fcab88b7520820ec16d09d6bea68652ca13993c84dffc6129dc3607c95594c", size = 2968871, upload-time = "2025-05-19T11:04:22.167Z" }, + { url = "https://files.pythonhosted.org/packages/dd/87/1017c31e52370b2b79e4d29e07cbb590ab9e5e58cf7e2bdfe363765d6251/shapely-2.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5ce6a5cc52c974b291237a96c08c5592e50f066871704fb5b12be2639d9026a", size = 3080830, upload-time = "2025-05-19T11:04:23.997Z" }, + { url = "https://files.pythonhosted.org/packages/1d/fe/f4a03d81abd96a6ce31c49cd8aaba970eaaa98e191bd1e4d43041e57ae5a/shapely-2.1.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:04e4c12a45a1d70aeb266618d8cf81a2de9c4df511b63e105b90bfdfb52146de", size = 3908961, upload-time = "2025-05-19T11:04:25.702Z" }, + { url = "https://files.pythonhosted.org/packages/ef/59/7605289a95a6844056a2017ab36d9b0cb9d6a3c3b5317c1f968c193031c9/shapely-2.1.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6ca74d851ca5264aae16c2b47e96735579686cb69fa93c4078070a0ec845b8d8", size = 4079623, upload-time = "2025-05-19T11:04:27.171Z" }, + { url = "https://files.pythonhosted.org/packages/bc/4d/9fea036eff2ef4059d30247128b2d67aaa5f0b25e9fc27e1d15cc1b84704/shapely-2.1.1-cp313-cp313-win32.whl", hash = "sha256:fd9130501bf42ffb7e0695b9ea17a27ae8ce68d50b56b6941c7f9b3d3453bc52", size = 1521916, upload-time = "2025-05-19T11:04:28.405Z" }, + { url = "https://files.pythonhosted.org/packages/12/d9/6d13b8957a17c95794f0c4dfb65ecd0957e6c7131a56ce18d135c1107a52/shapely-2.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:ab8d878687b438a2f4c138ed1a80941c6ab0029e0f4c785ecfe114413b498a97", size = 1702746, upload-time = "2025-05-19T11:04:29.643Z" }, + { url = "https://files.pythonhosted.org/packages/60/36/b1452e3e7f35f5f6454d96f3be6e2bb87082720ff6c9437ecc215fa79be0/shapely-2.1.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0c062384316a47f776305ed2fa22182717508ffdeb4a56d0ff4087a77b2a0f6d", size = 1833482, upload-time = "2025-05-19T11:04:30.852Z" }, + { url = "https://files.pythonhosted.org/packages/ce/ca/8e6f59be0718893eb3e478141285796a923636dc8f086f83e5b0ec0036d0/shapely-2.1.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:4ecf6c196b896e8f1360cc219ed4eee1c1e5f5883e505d449f263bd053fb8c05", size = 1642256, upload-time = "2025-05-19T11:04:32.068Z" }, + { url = "https://files.pythonhosted.org/packages/ab/78/0053aea449bb1d4503999525fec6232f049abcdc8df60d290416110de943/shapely-2.1.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fb00070b4c4860f6743c600285109c273cca5241e970ad56bb87bef0be1ea3a0", size = 3016614, upload-time = "2025-05-19T11:04:33.7Z" }, + { url = "https://files.pythonhosted.org/packages/ee/53/36f1b1de1dfafd1b457dcbafa785b298ce1b8a3e7026b79619e708a245d5/shapely-2.1.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d14a9afa5fa980fbe7bf63706fdfb8ff588f638f145a1d9dbc18374b5b7de913", size = 3093542, upload-time = "2025-05-19T11:04:34.952Z" }, + { url = "https://files.pythonhosted.org/packages/b9/bf/0619f37ceec6b924d84427c88835b61f27f43560239936ff88915c37da19/shapely-2.1.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:b640e390dabde790e3fb947198b466e63223e0a9ccd787da5f07bcb14756c28d", size = 3945961, upload-time = "2025-05-19T11:04:36.32Z" }, + { url = "https://files.pythonhosted.org/packages/93/c9/20ca4afeb572763b07a7997f00854cb9499df6af85929e93012b189d8917/shapely-2.1.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:69e08bf9697c1b73ec6aa70437db922bafcea7baca131c90c26d59491a9760f9", size = 4089514, upload-time = "2025-05-19T11:04:37.683Z" }, + { url = "https://files.pythonhosted.org/packages/33/6a/27036a5a560b80012a544366bceafd491e8abb94a8db14047b5346b5a749/shapely-2.1.1-cp313-cp313t-win32.whl", hash = "sha256:ef2d09d5a964cc90c2c18b03566cf918a61c248596998a0301d5b632beadb9db", size = 1540607, upload-time = "2025-05-19T11:04:38.925Z" }, + { url = "https://files.pythonhosted.org/packages/ea/f1/5e9b3ba5c7aa7ebfaf269657e728067d16a7c99401c7973ddf5f0cf121bd/shapely-2.1.1-cp313-cp313t-win_amd64.whl", hash = "sha256:8cb8f17c377260452e9d7720eeaf59082c5f8ea48cf104524d953e5d36d4bdb7", size = 1723061, upload-time = "2025-05-19T11:04:40.082Z" }, +] + +[[package]] +name = "shellingham" +version = "1.5.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/58/15/8b3609fd3830ef7b27b655beb4b4e9c62313a4e8da8c676e142cc210d58e/shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de", size = 10310, upload-time = "2023-10-24T04:13:40.426Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", size = 9755, upload-time = "2023-10-24T04:13:38.866Z" }, +] + +[[package]] +name = "simsimd" +version = "6.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a5/ce/9c4b121de05d1613fa594e3f36772d037b42c3f1d8ff8d2ffd3de2e71be3/simsimd-6.5.0.tar.gz", hash = "sha256:4a505aa950f4771296cd592639f3aff445077c881d36bd95ea93e8f3f7cacbce", size = 172362, upload-time = "2025-07-07T13:28:14.199Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/74/b5/586cc9f7d7a78bdf0a285000fc27c3ea5fab1b1997cf37ea301edb0111d0/simsimd-6.5.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:bd965d6c128e40a8c413ef7c0be057e6c0b610609a61228745ae5ee7da99e4d4", size = 177647, upload-time = "2025-07-07T13:26:08.255Z" }, + { url = "https://files.pythonhosted.org/packages/77/f8/535b7ff5d649b618e3866f8bea8110213d787e6372fae45ebd75c93ea368/simsimd-6.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ed9cb8415a52a72a7f6d2aab062446bc653939007ed159714a0b7ee3ec37053f", size = 134067, upload-time = "2025-07-07T13:26:09.718Z" }, + { url = "https://files.pythonhosted.org/packages/6a/8e/dbc5560a569a4b103660eb258c6b1715d0ff0c64fc7dbb32b4e0445ec695/simsimd-6.5.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b54722db7f19a69180241bc972e48209a8edef57bc2d603dd2032a8f38293450", size = 563133, upload-time = "2025-07-07T13:26:11.062Z" }, + { url = "https://files.pythonhosted.org/packages/10/22/a54082f60cb3700f2c0ca0ede058e13c44a558af9c5a00667b33589351fa/simsimd-6.5.0-cp312-cp312-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:117dd4d08a0d62a1d76d06db8f0652ac11d5bbc50a11c80bed51d24524751994", size = 311277, upload-time = "2025-07-07T13:26:12.528Z" }, + { url = "https://files.pythonhosted.org/packages/14/1b/9a625435f70deb548981573dcdb371833f7747be8c8c9782b20d1243613c/simsimd-6.5.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6a1ebf6452651fc706beb08fbceae362ca7926bfd4210e424fab743c8d562bb8", size = 411330, upload-time = "2025-07-07T13:26:14.418Z" }, + { url = "https://files.pythonhosted.org/packages/2b/d7/74c9ae918dd4e3dc4d1ea5c891bdc1d3bf11ca0a85bc2dc366fe4b5948d2/simsimd-6.5.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0b71a245d9770d072c871e0d088d881d96e7013fc602ec576761fcb57b8430eb", size = 367931, upload-time = "2025-07-07T13:26:16.003Z" }, + { url = "https://files.pythonhosted.org/packages/db/05/77ab72d521bdd1598697963b31edba2b2dc14ed9cb21301b142b1f50d5b3/simsimd-6.5.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4e6aa55eca20680c7095191ef37ea4f646c921a80eaeeb0cd1373f3be1f033fa", size = 1068370, upload-time = "2025-07-07T13:26:17.553Z" }, + { url = "https://files.pythonhosted.org/packages/37/76/b89a330bd13a7a2a2f5fbd294813fe63deb0d1fcfcc4df429dc2ffc50351/simsimd-6.5.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6e032898e844b16e7c2fbe7b8bb0c60ad7ec3b00a21fdc57e1d2c3196473cbd6", size = 598231, upload-time = "2025-07-07T13:26:19.187Z" }, + { url = "https://files.pythonhosted.org/packages/d0/0b/d5b78b18b549da0da2a1fcaa9e5a6e946d5e9e85d40659ea57a4423f4be2/simsimd-6.5.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:f317c988c48763558e342ba3c58106776ffcbb500d995478a669808431d03b26", size = 402172, upload-time = "2025-07-07T13:26:20.701Z" }, + { url = "https://files.pythonhosted.org/packages/4d/fe/caa78b85c14cd2012ca47ed99a7507141a43b3ca7e79a90b3dc843205c74/simsimd-6.5.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:2a493341a4a0fd1af9c41d317075c0f8756748b5010b13368dd0905502739d63", size = 460908, upload-time = "2025-07-07T13:26:22.654Z" }, + { url = "https://files.pythonhosted.org/packages/e1/7c/57a3c594553ee26351a4d71b56528b285f83d006c2e017dd22c5a2f77085/simsimd-6.5.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:fed5266b6770fc6231a8ac4967262374b84f67fa0b468cd0b50a18930bb9748f", size = 372554, upload-time = "2025-07-07T13:26:24.649Z" }, + { url = "https://files.pythonhosted.org/packages/7a/82/7b2f42008e16b0edea0d7ccba1bfb2c28f4f37d881f13cd951e4b30a7389/simsimd-6.5.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:1591c8d2e2953ac5d257f46f5898ba5b6bd59399bd7a59363f99ec52a0238209", size = 1001226, upload-time = "2025-07-07T13:26:26.331Z" }, + { url = "https://files.pythonhosted.org/packages/4a/7a/e87a76b31201809f93ce7526e22518181bc23f576bee6765862eb83f1c56/simsimd-6.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:ee26c6d40256aaf423219f8e0d102f6e26f63493049d4b1e13d73462c54bc381", size = 94837, upload-time = "2025-07-07T13:26:28.278Z" }, + { url = "https://files.pythonhosted.org/packages/d6/6b/b594b9c5a378a3f08cd94dd28127d350e2f92f90b6532d0cb482ff1cf16b/simsimd-6.5.0-cp312-cp312-win_arm64.whl", hash = "sha256:9092816028c0a30a33e99428e205937871d8fe2161c89f5082e40bfff1812e47", size = 59465, upload-time = "2025-07-07T13:26:29.573Z" }, + { url = "https://files.pythonhosted.org/packages/11/ac/81fafb24dcddfebed6c9f372f5be9f0bdf4086f67d988aef39d3432c4268/simsimd-6.5.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d374dd56b7cd4c40837b965ad411732af1799c8fc978b95726b61178ba7a9f5e", size = 177652, upload-time = "2025-07-07T13:26:30.973Z" }, + { url = "https://files.pythonhosted.org/packages/8f/9f/47b77b8424ee7a93b46de2ec0107040b94f06d5a0f925b4b79b515f86de0/simsimd-6.5.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:c4ab034122aed75a67bc7ecbd7ebaa165ac43ea8db482917dfce05d835746919", size = 134073, upload-time = "2025-07-07T13:26:32.471Z" }, + { url = "https://files.pythonhosted.org/packages/a2/aa/1d35f67c70e8c1be956c7864041f0002f984873fbe3f1e70962b1842fdb3/simsimd-6.5.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:383c4a522f8756f3edd3b0e30bed21475a2f220aa1fe769a884784df10913d7c", size = 563183, upload-time = "2025-07-07T13:26:34.355Z" }, + { url = "https://files.pythonhosted.org/packages/ac/d1/b3a4a203e1281a93dee78b7c13ca438af492eb29d823b18730a12dae7a2e/simsimd-6.5.0-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:8d4eb72270ae487c1f250948d6b6eb9b47ef96b5d4323856a5b062f2bdfa4936", size = 311299, upload-time = "2025-07-07T13:26:35.886Z" }, + { url = "https://files.pythonhosted.org/packages/07/f1/e3ec585efbaa0572c64216f408059d65197ce975884e02508469fb15c2d9/simsimd-6.5.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a97e6c1ad5e6a09bd6627a858715f4eab01fd70803f2f868173a919a38ebf6d7", size = 411413, upload-time = "2025-07-07T13:26:37.476Z" }, + { url = "https://files.pythonhosted.org/packages/7b/57/172dfbb1aa21c6f19398bcfa0f54bb70806bc2447ecb39208816d69cf251/simsimd-6.5.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:adc02a6234fdaeb52486dd75214456cdc0f40eed00df9536ecb9a32d31a662b3", size = 368019, upload-time = "2025-07-07T13:26:39.194Z" }, + { url = "https://files.pythonhosted.org/packages/9a/26/813444ef274c38a49108cd74b80be43fff6c895e79dea307ad003e561bf1/simsimd-6.5.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f83a979792fcf2e4775331cadda99e439b6211ed775d1ad75d29d0d0566abaf5", size = 1068427, upload-time = "2025-07-07T13:26:40.76Z" }, + { url = "https://files.pythonhosted.org/packages/e1/db/213ffaab70134f4fe5c745ddf512f83c870e1f53c0e422c043b12d60791f/simsimd-6.5.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:7f9b381d07524e3855e9ea2f014ae686043e5bbcfabc2b147e0e3103c807062e", size = 598292, upload-time = "2025-07-07T13:26:42.445Z" }, + { url = "https://files.pythonhosted.org/packages/dc/fb/63098e8c94d0888507984880d12c5078f169d5eb6bea3941a878c9b5e04f/simsimd-6.5.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:7237a6dc33320dfd65131974a16956aedfab306539f4933b9b6e68e39c9cf591", size = 402240, upload-time = "2025-07-07T13:26:43.977Z" }, + { url = "https://files.pythonhosted.org/packages/4b/a7/9be3db3c46942e698fbce73e42bcce62bc53d8e6bd50824a81b5431a5560/simsimd-6.5.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:bbc8742ae590104edba9fc7981704b9d07380e7846f61d9d1c6c4d9ad68461d2", size = 460984, upload-time = "2025-07-07T13:26:45.927Z" }, + { url = "https://files.pythonhosted.org/packages/29/c2/11e34f98a1410799e878222643f39dd7b620754bbfa70f1509d13af2640d/simsimd-6.5.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:0db5794aab6caa31a26b1e06ef7160e76d8fa85fdf9f6d6433c3c24a3168ed6e", size = 372594, upload-time = "2025-07-07T13:26:48.024Z" }, + { url = "https://files.pythonhosted.org/packages/c2/ea/71245bd4bb8f8eb3c3c135bfb112c8e4a36e7642a82cf0e567accee5e884/simsimd-6.5.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:fb2323a4ba6e7cecb079cad7176d4d6174cef0ffbeeb2a7f1e5298830dff2912", size = 1001277, upload-time = "2025-07-07T13:26:50.371Z" }, + { url = "https://files.pythonhosted.org/packages/51/d9/6a43e07e1e206c154552cfab6d7cb4ceab90b24c7e58cee0c82da5863aca/simsimd-6.5.0-cp313-cp313-win_amd64.whl", hash = "sha256:054cc1ab9fd3f37b67d8ad39fd3e18a8919b32af1d05952559907fa03b599bd7", size = 94840, upload-time = "2025-07-07T13:26:52.066Z" }, + { url = "https://files.pythonhosted.org/packages/1d/84/ada8d8d91a25b840879b72c3f1dcd78fd4048d88688ab64145f28c03c12b/simsimd-6.5.0-cp313-cp313-win_arm64.whl", hash = "sha256:e54331dd7915795ef382a082dfba7c52187cb97da647e20b75caa18f373aa76a", size = 59473, upload-time = "2025-07-07T13:26:54.776Z" }, + { url = "https://files.pythonhosted.org/packages/e6/64/05fa2ca8e8ac49e5c5d86ac670dbe3f6f566b0c085d55f115d15423e77f1/simsimd-6.5.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:e00a69341e2c5aa1a1dacc17a964a53c4281918d8118ee5313483978cf04fa08", size = 177804, upload-time = "2025-07-07T13:26:56.67Z" }, + { url = "https://files.pythonhosted.org/packages/1a/8a/0d94d105e27826b0330d7937b95ecaeee91e312ecaa0639d1ecfc95dabac/simsimd-6.5.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:72d659d23186f370a5332285913a3d8158e315b906e6ab13de41ccaf624878b1", size = 134349, upload-time = "2025-07-07T13:26:58.597Z" }, + { url = "https://files.pythonhosted.org/packages/31/82/1d971ad0a51943378c787fd2b77f0498ad73c121e239fc85440985b9bead/simsimd-6.5.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:56b57ab82e862aa60281700904f0258cb3933d4d3f4dcc46ba0f4e719907ca74", size = 564951, upload-time = "2025-07-07T13:27:00.621Z" }, + { url = "https://files.pythonhosted.org/packages/be/77/0edf99e3b76b423f9c9d188eb22d18e4a93db06dc41d1f41a0cca44927a4/simsimd-6.5.0-cp313-cp313t-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:9719b61fe4e413f5ec0f699c2bbd4455e305f049314d357f35773d9ffc8b6aa9", size = 312314, upload-time = "2025-07-07T13:27:02.306Z" }, + { url = "https://files.pythonhosted.org/packages/5f/b6/f1224eb643ea798dc7ce58838fe25a2aecb950aa8856c2492f668359e3bd/simsimd-6.5.0-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:00c94d1341e9fcf2e136dcea7e1a40ff2213271ab10d8c9d59054a9bc9ef6ec1", size = 413062, upload-time = "2025-07-07T13:27:03.943Z" }, + { url = "https://files.pythonhosted.org/packages/02/71/833b79fe04894e97601b17838e0010337a21f9e9d43a4eace56eeb53d66e/simsimd-6.5.0-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:519633851ae9db8be8f1b89a2cc43bcdae3de433f4a8b4edec8452e91bae9398", size = 369541, upload-time = "2025-07-07T13:27:05.575Z" }, + { url = "https://files.pythonhosted.org/packages/a0/e1/d61661d6f97482cb6a20cb7c1715bfb4925e0e3b0613602dfe7dc7c1f0ba/simsimd-6.5.0-cp313-cp313t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0c6ec3242ae7da299827017bb93b474fd63c96b147619a7a029679e73af3e1a3", size = 1069925, upload-time = "2025-07-07T13:27:07.238Z" }, + { url = "https://files.pythonhosted.org/packages/e6/2e/97f7908f2f31778761ce2a76bc87dc4abdd1e91b031edce25831c0445c9c/simsimd-6.5.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:d36a2620639d568e4602e202e334ef530ef2a1dbe26b4f3362a2e54abbb03de0", size = 599806, upload-time = "2025-07-07T13:27:08.987Z" }, + { url = "https://files.pythonhosted.org/packages/3f/5a/7673e44283afe3cd998fb85f5a48e39aa698ee49de39648008548c38ed01/simsimd-6.5.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:520ff73002d99fe87bccf037581a3468253644f3f3b615b4db87bc97da35291a", size = 403592, upload-time = "2025-07-07T13:27:11.099Z" }, + { url = "https://files.pythonhosted.org/packages/17/e9/550d53209569b856941cde22799472c21a6743145f64d5d7e272ec41db90/simsimd-6.5.0-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:56886758f78bbc1b87462e06be9b1e279d00d483a957645de366c9a1ab0d96bd", size = 462308, upload-time = "2025-07-07T13:27:12.702Z" }, + { url = "https://files.pythonhosted.org/packages/8f/ab/686c905865affa943ce18612bf349fe15f2fcd124d066301c9c67a279818/simsimd-6.5.0-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:45c4e5427e90279e807f00c22dcbd474f6894df2d7b6f038d678ff14cf9c8f38", size = 374021, upload-time = "2025-07-07T13:27:14.523Z" }, + { url = "https://files.pythonhosted.org/packages/b9/e2/c842d023950f85d9f8e225164e29b95cd9af69a2baf5587cdd02d7d0bd73/simsimd-6.5.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:b68c0c3e1b305fc27f0330a8f8b9b0e198df6ed922d3760dddb93992ecd705fb", size = 1002516, upload-time = "2025-07-07T13:27:16.361Z" }, + { url = "https://files.pythonhosted.org/packages/fc/3b/7bd3a7115bfa12004ae0f0504dc446e5bb07d7cb7e548f33c4b7b8012e55/simsimd-6.5.0-cp313-cp313t-win_amd64.whl", hash = "sha256:5a5f085ea986d7113d44c3e782dad82a34034dad04bfe36313bebe3fdc7a4bc8", size = 94995, upload-time = "2025-07-07T13:27:18.108Z" }, + { url = "https://files.pythonhosted.org/packages/33/cb/e24f7e3bd6b4d89d4cae0bcb66452b57859a13bc3707ca9e2f2ef1c7c5aa/simsimd-6.5.0-cp313-cp313t-win_arm64.whl", hash = "sha256:b68e80ad63687b18d21fbd83fa6cd51e623b213548e85ec2b5b993259fc2e227", size = 59665, upload-time = "2025-07-07T13:27:22.149Z" }, +] + +[[package]] +name = "six" +version = "1.17.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031, upload-time = "2024-12-04T17:35:28.174Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" }, +] + +[[package]] +name = "smmap" +version = "5.0.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/44/cd/a040c4b3119bbe532e5b0732286f805445375489fceaec1f48306068ee3b/smmap-5.0.2.tar.gz", hash = "sha256:26ea65a03958fa0c8a1c7e8c7a58fdc77221b8910f6be2131affade476898ad5", size = 22329, upload-time = "2025-01-02T07:14:40.909Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/be/d09147ad1ec7934636ad912901c5fd7667e1c858e19d355237db0d0cd5e4/smmap-5.0.2-py3-none-any.whl", hash = "sha256:b30115f0def7d7531d22a0fb6502488d879e75b260a9db4d0819cfb25403af5e", size = 24303, upload-time = "2025-01-02T07:14:38.724Z" }, +] + +[[package]] +name = "sniffio" +version = "1.3.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a2/87/a6771e1546d97e7e041b6ae58d80074f81b7d5121207425c964ddf5cfdbd/sniffio-1.3.1.tar.gz", hash = "sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc", size = 20372, upload-time = "2024-02-25T23:20:04.057Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e9/44/75a9c9421471a6c4805dbf2356f7c181a29c1879239abab1ea2cc8f38b40/sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2", size = 10235, upload-time = "2024-02-25T23:20:01.196Z" }, +] + +[[package]] +name = "soupsieve" +version = "2.7" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/3f/f4/4a80cd6ef364b2e8b65b15816a843c0980f7a5a2b4dc701fc574952aa19f/soupsieve-2.7.tar.gz", hash = "sha256:ad282f9b6926286d2ead4750552c8a6142bc4c783fd66b0293547c8fe6ae126a", size = 103418, upload-time = "2025-04-20T18:50:08.518Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e7/9c/0e6afc12c269578be5c0c1c9f4b49a8d32770a080260c333ac04cc1c832d/soupsieve-2.7-py3-none-any.whl", hash = "sha256:6e60cc5c1ffaf1cebcc12e8188320b72071e922c2e897f737cadce79ad5d30c4", size = 36677, upload-time = "2025-04-20T18:50:07.196Z" }, +] + +[[package]] +name = "sqlalchemy" +version = "2.0.43" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "greenlet", marker = "(python_full_version < '3.14' and platform_machine == 'AMD64') or (python_full_version < '3.14' and platform_machine == 'WIN32') or (python_full_version < '3.14' and platform_machine == 'aarch64') or (python_full_version < '3.14' and platform_machine == 'amd64') or (python_full_version < '3.14' and platform_machine == 'ppc64le') or (python_full_version < '3.14' and platform_machine == 'win32') or (python_full_version < '3.14' and platform_machine == 'x86_64')" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/d7/bc/d59b5d97d27229b0e009bd9098cd81af71c2fa5549c580a0a67b9bed0496/sqlalchemy-2.0.43.tar.gz", hash = "sha256:788bfcef6787a7764169cfe9859fe425bf44559619e1d9f56f5bddf2ebf6f417", size = 9762949, upload-time = "2025-08-11T14:24:58.438Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/61/db/20c78f1081446095450bdc6ee6cc10045fce67a8e003a5876b6eaafc5cc4/sqlalchemy-2.0.43-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:20d81fc2736509d7a2bd33292e489b056cbae543661bb7de7ce9f1c0cd6e7f24", size = 2134891, upload-time = "2025-08-11T15:51:13.019Z" }, + { url = "https://files.pythonhosted.org/packages/45/0a/3d89034ae62b200b4396f0f95319f7d86e9945ee64d2343dcad857150fa2/sqlalchemy-2.0.43-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:25b9fc27650ff5a2c9d490c13c14906b918b0de1f8fcbb4c992712d8caf40e83", size = 2123061, upload-time = "2025-08-11T15:51:14.319Z" }, + { url = "https://files.pythonhosted.org/packages/cb/10/2711f7ff1805919221ad5bee205971254845c069ee2e7036847103ca1e4c/sqlalchemy-2.0.43-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6772e3ca8a43a65a37c88e2f3e2adfd511b0b1da37ef11ed78dea16aeae85bd9", size = 3320384, upload-time = "2025-08-11T15:52:35.088Z" }, + { url = "https://files.pythonhosted.org/packages/6e/0e/3d155e264d2ed2778484006ef04647bc63f55b3e2d12e6a4f787747b5900/sqlalchemy-2.0.43-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1a113da919c25f7f641ffbd07fbc9077abd4b3b75097c888ab818f962707eb48", size = 3329648, upload-time = "2025-08-11T15:56:34.153Z" }, + { url = "https://files.pythonhosted.org/packages/5b/81/635100fb19725c931622c673900da5efb1595c96ff5b441e07e3dd61f2be/sqlalchemy-2.0.43-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4286a1139f14b7d70141c67a8ae1582fc2b69105f1b09d9573494eb4bb4b2687", size = 3258030, upload-time = "2025-08-11T15:52:36.933Z" }, + { url = "https://files.pythonhosted.org/packages/0c/ed/a99302716d62b4965fded12520c1cbb189f99b17a6d8cf77611d21442e47/sqlalchemy-2.0.43-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:529064085be2f4d8a6e5fab12d36ad44f1909a18848fcfbdb59cc6d4bbe48efe", size = 3294469, upload-time = "2025-08-11T15:56:35.553Z" }, + { url = "https://files.pythonhosted.org/packages/5d/a2/3a11b06715149bf3310b55a98b5c1e84a42cfb949a7b800bc75cb4e33abc/sqlalchemy-2.0.43-cp312-cp312-win32.whl", hash = "sha256:b535d35dea8bbb8195e7e2b40059e2253acb2b7579b73c1b432a35363694641d", size = 2098906, upload-time = "2025-08-11T15:55:00.645Z" }, + { url = "https://files.pythonhosted.org/packages/bc/09/405c915a974814b90aa591280623adc6ad6b322f61fd5cff80aeaef216c9/sqlalchemy-2.0.43-cp312-cp312-win_amd64.whl", hash = "sha256:1c6d85327ca688dbae7e2b06d7d84cfe4f3fffa5b5f9e21bb6ce9d0e1a0e0e0a", size = 2126260, upload-time = "2025-08-11T15:55:02.965Z" }, + { url = "https://files.pythonhosted.org/packages/41/1c/a7260bd47a6fae7e03768bf66451437b36451143f36b285522b865987ced/sqlalchemy-2.0.43-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e7c08f57f75a2bb62d7ee80a89686a5e5669f199235c6d1dac75cd59374091c3", size = 2130598, upload-time = "2025-08-11T15:51:15.903Z" }, + { url = "https://files.pythonhosted.org/packages/8e/84/8a337454e82388283830b3586ad7847aa9c76fdd4f1df09cdd1f94591873/sqlalchemy-2.0.43-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:14111d22c29efad445cd5021a70a8b42f7d9152d8ba7f73304c4d82460946aaa", size = 2118415, upload-time = "2025-08-11T15:51:17.256Z" }, + { url = "https://files.pythonhosted.org/packages/cf/ff/22ab2328148492c4d71899d62a0e65370ea66c877aea017a244a35733685/sqlalchemy-2.0.43-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:21b27b56eb2f82653168cefe6cb8e970cdaf4f3a6cb2c5e3c3c1cf3158968ff9", size = 3248707, upload-time = "2025-08-11T15:52:38.444Z" }, + { url = "https://files.pythonhosted.org/packages/dc/29/11ae2c2b981de60187f7cbc84277d9d21f101093d1b2e945c63774477aba/sqlalchemy-2.0.43-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c5a9da957c56e43d72126a3f5845603da00e0293720b03bde0aacffcf2dc04f", size = 3253602, upload-time = "2025-08-11T15:56:37.348Z" }, + { url = "https://files.pythonhosted.org/packages/b8/61/987b6c23b12c56d2be451bc70900f67dd7d989d52b1ee64f239cf19aec69/sqlalchemy-2.0.43-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5d79f9fdc9584ec83d1b3c75e9f4595c49017f5594fee1a2217117647225d738", size = 3183248, upload-time = "2025-08-11T15:52:39.865Z" }, + { url = "https://files.pythonhosted.org/packages/86/85/29d216002d4593c2ce1c0ec2cec46dda77bfbcd221e24caa6e85eff53d89/sqlalchemy-2.0.43-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9df7126fd9db49e3a5a3999442cc67e9ee8971f3cb9644250107d7296cb2a164", size = 3219363, upload-time = "2025-08-11T15:56:39.11Z" }, + { url = "https://files.pythonhosted.org/packages/b6/e4/bd78b01919c524f190b4905d47e7630bf4130b9f48fd971ae1c6225b6f6a/sqlalchemy-2.0.43-cp313-cp313-win32.whl", hash = "sha256:7f1ac7828857fcedb0361b48b9ac4821469f7694089d15550bbcf9ab22564a1d", size = 2096718, upload-time = "2025-08-11T15:55:05.349Z" }, + { url = "https://files.pythonhosted.org/packages/ac/a5/ca2f07a2a201f9497de1928f787926613db6307992fe5cda97624eb07c2f/sqlalchemy-2.0.43-cp313-cp313-win_amd64.whl", hash = "sha256:971ba928fcde01869361f504fcff3b7143b47d30de188b11c6357c0505824197", size = 2123200, upload-time = "2025-08-11T15:55:07.932Z" }, + { url = "https://files.pythonhosted.org/packages/b8/d9/13bdde6521f322861fab67473cec4b1cc8999f3871953531cf61945fad92/sqlalchemy-2.0.43-py3-none-any.whl", hash = "sha256:1681c21dd2ccee222c2fe0bef671d1aef7c504087c9c4e800371cfcc8ac966fc", size = 1924759, upload-time = "2025-08-11T15:39:53.024Z" }, +] + +[[package]] +name = "sse-starlette" +version = "3.0.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/42/6f/22ed6e33f8a9e76ca0a412405f31abb844b779d52c5f96660766edcd737c/sse_starlette-3.0.2.tar.gz", hash = "sha256:ccd60b5765ebb3584d0de2d7a6e4f745672581de4f5005ab31c3a25d10b52b3a", size = 20985, upload-time = "2025-07-27T09:07:44.565Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ef/10/c78f463b4ef22eef8491f218f692be838282cd65480f6e423d7730dfd1fb/sse_starlette-3.0.2-py3-none-any.whl", hash = "sha256:16b7cbfddbcd4eaca11f7b586f3b8a080f1afe952c15813455b162edea619e5a", size = 11297, upload-time = "2025-07-27T09:07:43.268Z" }, +] + +[[package]] +name = "starlette" +version = "0.47.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/04/57/d062573f391d062710d4088fa1369428c38d51460ab6fedff920efef932e/starlette-0.47.2.tar.gz", hash = "sha256:6ae9aa5db235e4846decc1e7b79c4f346adf41e9777aebeb49dfd09bbd7023d8", size = 2583948, upload-time = "2025-07-20T17:31:58.522Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f7/1f/b876b1f83aef204198a42dc101613fefccb32258e5428b5f9259677864b4/starlette-0.47.2-py3-none-any.whl", hash = "sha256:c5847e96134e5c5371ee9fac6fdf1a67336d5815e09eb2a01fdb57a351ef915b", size = 72984, upload-time = "2025-07-20T17:31:56.738Z" }, +] + +[[package]] +name = "streamlit" +version = "1.48.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "altair" }, + { name = "blinker" }, + { name = "cachetools" }, + { name = "click" }, + { name = "gitpython" }, + { name = "numpy" }, + { name = "packaging" }, + { name = "pandas" }, + { name = "pillow" }, + { name = "protobuf" }, + { name = "pyarrow" }, + { name = "pydeck" }, + { name = "requests" }, + { name = "tenacity" }, + { name = "toml" }, + { name = "tornado" }, + { name = "typing-extensions" }, + { name = "watchdog", marker = "sys_platform != 'darwin'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e2/1b/eb83cf2a11961338d23deed0530e3ccc1db7b4ab497b0b4d94886205d0c0/streamlit-1.48.1.tar.gz", hash = "sha256:c6e2a9f24471746bbeaa54a288f5fdfc6e2bcf3ba9a9753fde5d49ed424391f1", size = 9524808, upload-time = "2025-08-13T12:03:55.727Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e0/21/ebf8942e939b96e4040d2285c9b71d42f317618a3b656aa67f95f505b241/streamlit-1.48.1-py3-none-any.whl", hash = "sha256:1da4081c8cc23d574c4ab66f0bb59d6a6000ecf2f06b35242d56cfe16f2bd612", size = 9928586, upload-time = "2025-08-13T12:03:52.816Z" }, +] + +[[package]] +name = "stringzilla" +version = "3.12.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d0/d7/61f3c92a996bca654b35d326d3c5c8484116f2f1743339fd8f003e8f9fe1/stringzilla-3.12.6.tar.gz", hash = "sha256:3cfd6901f7fd1fdace881392d6c40336264607d3c57aabf9dc5ce3e691e5dc51", size = 186933, upload-time = "2025-08-08T00:01:48.918Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/02/15/d314c77b383e163a54bd2503af1c5e8fad7d3b2f69ac1bf6d9970b2efd42/stringzilla-3.12.6-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:b9c70049ee73e59e0a65171135ab71c9e55b1789274fcbe0369cfa3332f632c3", size = 122043, upload-time = "2025-08-07T23:58:43.933Z" }, + { url = "https://files.pythonhosted.org/packages/9c/c7/1762ff98a56c5724fee72a88fd85c64e7c944358d0a38f986b2b1b84cf1c/stringzilla-3.12.6-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ecf305bff693202b3c1aca9d54e763ff837ec1df197d1bab7d9e3e9fdb306f32", size = 79588, upload-time = "2025-08-07T23:58:45.461Z" }, + { url = "https://files.pythonhosted.org/packages/d7/23/857f72ac522f633a389c5de7a1bd95c313a142edeca5b9c70a1623ef2ee7/stringzilla-3.12.6-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a066dd45fcc745c5b7f677161a34f874f8b77d063d2a7a56367745244b0e6150", size = 79548, upload-time = "2025-08-07T23:58:46.894Z" }, + { url = "https://files.pythonhosted.org/packages/5b/28/cf684c13d47b15718167d29092b5572b9db6938e4019ddb84b170f67ee81/stringzilla-3.12.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6cde375c0f5baba95be340567c21e5694b444c21984dd3aa74d904cbf9fbcd3a", size = 231931, upload-time = "2025-08-07T23:58:48.427Z" }, + { url = "https://files.pythonhosted.org/packages/d0/3f/1b77d66257b9479ad69130ba47438c6adc38ccee5cc2987d0e2ec2e0a765/stringzilla-3.12.6-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:fc1b365270dda29c009e0eb2a2dce89d1bcbf0ac46ed89c9f87867b9ccb2925a", size = 234840, upload-time = "2025-08-07T23:58:50.06Z" }, + { url = "https://files.pythonhosted.org/packages/74/cc/3d36296285201b4bd7da26feab6e6b31764a1cf7a12b11dd22a9021aebb6/stringzilla-3.12.6-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c845d3561d6c846fa5acc7e17b2aaf6ea12b0c596059690ea661aeadd78d5c48", size = 206486, upload-time = "2025-08-07T23:58:52.07Z" }, + { url = "https://files.pythonhosted.org/packages/9e/54/5a61e38260811070f1494649c4e805cf5cc0d71810d3d2fe3195f96e4b63/stringzilla-3.12.6-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:403b4a6e2128e81bb70448051d5c625e04b89d9be1b5f04465570bc09c8e4e5f", size = 212065, upload-time = "2025-08-07T23:58:53.693Z" }, + { url = "https://files.pythonhosted.org/packages/53/0c/c15fc54e54e60cb78bdfdb8851ef3ef212b26723bd955d9aa14252ca460d/stringzilla-3.12.6-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0534eb0bf787f0f1a2383c2492e6c828ab46b36a310a5dec3c1c41404ec76d66", size = 308443, upload-time = "2025-08-07T23:58:55.342Z" }, + { url = "https://files.pythonhosted.org/packages/bf/c5/15cbbb643b234bc6d34abfc83bcbd39dd41504dccc22676d6b50c88ac35f/stringzilla-3.12.6-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:067e3aa9344720c2a1c57f3eee99bd7e02dc8802231d8dfccad1f7ef757eb965", size = 227033, upload-time = "2025-08-07T23:58:57.075Z" }, + { url = "https://files.pythonhosted.org/packages/c4/5d/3a8278854411a922c0755b69923ab9eea5b44b069f13073311d2d3b7caf6/stringzilla-3.12.6-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:6e520342b524b2d6020445eaf6591617ae7a498c157c5039f70e7853a180dc73", size = 201961, upload-time = "2025-08-07T23:58:58.736Z" }, + { url = "https://files.pythonhosted.org/packages/2d/f2/6dea6525dbf5a75a9bd9bd3a003981a5cf7461d24dd5ff965890933af3a2/stringzilla-3.12.6-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:be9481c39fe1115d4d8a3147fdcc9e00749c79c8c6bd644349df135bf504e138", size = 213560, upload-time = "2025-08-07T23:59:00.397Z" }, + { url = "https://files.pythonhosted.org/packages/1b/25/685aa236d098c966ebe0f22e64debb4b173dc7017d769e82a509836e0fea/stringzilla-3.12.6-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:a149012e0fb7f364a951a7da78ca3dea624ec313c71aafd2fee922edd6ca76af", size = 232027, upload-time = "2025-08-07T23:59:02.042Z" }, + { url = "https://files.pythonhosted.org/packages/7a/72/7ac688862e64f8df55a28a664d2bd64c7ddcd8fdbd7a877946c799484e9d/stringzilla-3.12.6-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:ce9c7545290b0fae7db73dd9b91e1ee149b57f09682706ec79c23437fb8d7cba", size = 207125, upload-time = "2025-08-07T23:59:04.154Z" }, + { url = "https://files.pythonhosted.org/packages/92/35/cda8d9f3720f16a48ef71cb68cfd6755d53041ef07ba1b79443a8a286103/stringzilla-3.12.6-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:0a001db380c5dd352217b144151123d7e31f00d2d732297806d6c3a1255010c3", size = 302832, upload-time = "2025-08-07T23:59:06.388Z" }, + { url = "https://files.pythonhosted.org/packages/65/e5/f1943898032392b9ecb378cdec3b58e300669451859fda3bbb6c15e8a9af/stringzilla-3.12.6-cp312-cp312-win32.whl", hash = "sha256:e04a6fd847808b987e50c0dfe6cca808fd8d1481141c719501ddb5ecefc10fab", size = 68607, upload-time = "2025-08-07T23:59:08.207Z" }, + { url = "https://files.pythonhosted.org/packages/dd/6d/597aba8e933a59e8e10f75838af30d68831eb62f114edab7b1af9908d59e/stringzilla-3.12.6-cp312-cp312-win_amd64.whl", hash = "sha256:501be61a1443a73fc402198bdc27d74e4996486c4dce0ebf409fd86724a08623", size = 79984, upload-time = "2025-08-07T23:59:09.749Z" }, + { url = "https://files.pythonhosted.org/packages/a7/61/53e68bfcd4e9d4000196b8fffa56d9d404b07d766e2a55ec998fd6a9887c/stringzilla-3.12.6-cp312-cp312-win_arm64.whl", hash = "sha256:37471c1fd064ff3153c40c2affc112b5c1367dad44dfc713bd9c3f621bf99945", size = 70059, upload-time = "2025-08-07T23:59:11.652Z" }, + { url = "https://files.pythonhosted.org/packages/dd/78/fecb85c3d2dcaaf77f3a5d37dbeb786123d183f3c630f3af884e1d61beba/stringzilla-3.12.6-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:11cebe116d437f9a9fa1dcf1ac8041b299d958bccb6e6d71c80a5ac1985f4b72", size = 122054, upload-time = "2025-08-07T23:59:13.255Z" }, + { url = "https://files.pythonhosted.org/packages/22/4c/0f1b4eab02d34ba25825ce19e9833ca15094e369266d92e0fd3f957261af/stringzilla-3.12.6-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b4c9b6e871fd94bea5e19c10ea4fbebbcfdd53260269a3d7faacc663e7d13f4d", size = 79594, upload-time = "2025-08-07T23:59:14.789Z" }, + { url = "https://files.pythonhosted.org/packages/35/b9/ffd4020b3380b733c24a46f30dc8f6bb52684ac7cf9b7ec09199b8b91303/stringzilla-3.12.6-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:977ed025b2156a64b703f6180f9f83198cae495ba40faad5906fabb081f74b91", size = 79546, upload-time = "2025-08-07T23:59:16.418Z" }, + { url = "https://files.pythonhosted.org/packages/5a/d5/a07cd96af2ec84bdfa20d894d1c10c274d38a9647f7637ed3d39900fcdf7/stringzilla-3.12.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a323caa115f38a192edd991101ec82957c658b53cc7c745978056695069040ec", size = 231946, upload-time = "2025-08-07T23:59:18.092Z" }, + { url = "https://files.pythonhosted.org/packages/be/e7/da1f48e6874e995f9fff281ecaa4476a436b08d8eabb8b9638a57e4d2937/stringzilla-3.12.6-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f56b6bc2129b7fd05660432411024f258109982945a3767b5eb2151030119e20", size = 234843, upload-time = "2025-08-07T23:59:19.78Z" }, + { url = "https://files.pythonhosted.org/packages/86/ce/d96602e25b3645786ba638d0488f4169aef5b5c6902f44bd7a524125d019/stringzilla-3.12.6-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a42e3240fed3a687f4f5fe60aa4377cb758029bdcccde40953bcb0f2b83895a1", size = 206527, upload-time = "2025-08-07T23:59:21.467Z" }, + { url = "https://files.pythonhosted.org/packages/d0/68/9fc76b737f290e004c64174f0e7c850165e285729694b7152654881b4316/stringzilla-3.12.6-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cb385db9aa8709b6bd0456510aadd8d79cfff37c6ecb22235e00dd08f16165e7", size = 212121, upload-time = "2025-08-07T23:59:23.124Z" }, + { url = "https://files.pythonhosted.org/packages/f3/4c/0e9a1ed279ae29fc851f90bc3f15fae2da251012ddb5d91c16acb6418b62/stringzilla-3.12.6-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:be8cd80a43b44d2ea2e2fd78cf1fa261b3496890c85ac587c3afe2d79e3c5cbf", size = 308478, upload-time = "2025-08-07T23:59:24.871Z" }, + { url = "https://files.pythonhosted.org/packages/7d/ef/5de1922b9adba50ccce9ac2af47337026620105e6dac62e0d0bacf4a71c3/stringzilla-3.12.6-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f3a44fc625f20ce804c5f089edfe9a09bda216ae1d05d7de06ce4526bbd03a1c", size = 227031, upload-time = "2025-08-07T23:59:26.648Z" }, + { url = "https://files.pythonhosted.org/packages/0f/7e/c4b4223b810c776aee19bc00abe710ad1899ab8ab56fe877572aa94c42c2/stringzilla-3.12.6-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:9ac564ed4aaab91b469f107e846320afbe8a49629d9e5e7289b545379996d75c", size = 201980, upload-time = "2025-08-07T23:59:28.53Z" }, + { url = "https://files.pythonhosted.org/packages/e4/bc/e6268d051a57abc679be79de1ff9819b2d21dcea674fc94b4a2493e74e00/stringzilla-3.12.6-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:69823a47224fa83e04ede4482676e81981ac55ea3802eace2fbb4eb16014b97f", size = 213595, upload-time = "2025-08-07T23:59:30.727Z" }, + { url = "https://files.pythonhosted.org/packages/2d/29/f9201db57f6e4faa53942f2b4fb0744674a7e565c2d8684873244c3f094c/stringzilla-3.12.6-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:d7e82bb80d4fadb7ddd3039d1aa0968475d9b08030542e85de57fe07bff26396", size = 232086, upload-time = "2025-08-07T23:59:32.911Z" }, + { url = "https://files.pythonhosted.org/packages/ef/5a/b8a6e18e6ccd5a31c61ce45f53760e6d12db478a36f27f7d042d90b4248f/stringzilla-3.12.6-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:cd45a4323ccfad17b61aba8c15465c4fdfe6a0639474af9f0d7aec71d1e26f66", size = 207114, upload-time = "2025-08-07T23:59:34.665Z" }, + { url = "https://files.pythonhosted.org/packages/1c/e4/cd2cf4488a034cbaffaa000e6d586e449c352ef27f6f680bddf97748fbf3/stringzilla-3.12.6-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:3bd592aebcfb029b90edbe962914923c5cacdc7d0398dd4123c1a0a6b220c6e9", size = 302879, upload-time = "2025-08-07T23:59:36.54Z" }, + { url = "https://files.pythonhosted.org/packages/16/8b/db90de013ed69dec05aa05534a2df363d4a74974b67dd87d696987f9a0ce/stringzilla-3.12.6-cp313-cp313-win32.whl", hash = "sha256:ccfcd55928a18a6a7fd612463c59813d040b876e5ae34467c617fdec9b085da8", size = 68613, upload-time = "2025-08-07T23:59:38.739Z" }, + { url = "https://files.pythonhosted.org/packages/88/3b/413afb9ac222faeeb3b27112c96de3870af121f3168c56983fabd9f92b34/stringzilla-3.12.6-cp313-cp313-win_amd64.whl", hash = "sha256:7722c884c77ae18969b1eef3e4af7fce0b9c342a2de27070b54cc71078bea8a5", size = 79989, upload-time = "2025-08-07T23:59:40.951Z" }, + { url = "https://files.pythonhosted.org/packages/e8/ac/a0f8a1c9c1c2ab78791c556147f111febbccc986553fa6b895bca46856d6/stringzilla-3.12.6-cp313-cp313-win_arm64.whl", hash = "sha256:fbd0fdf4b76e8ef4aeb50da344616615d794dbd2a226bd440dcdda12382e9b1d", size = 70069, upload-time = "2025-08-07T23:59:43.029Z" }, +] + +[[package]] +name = "sympy" +version = "1.14.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mpmath" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/83/d3/803453b36afefb7c2bb238361cd4ae6125a569b4db67cd9e79846ba2d68c/sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517", size = 7793921, upload-time = "2025-04-27T18:05:01.611Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a2/09/77d55d46fd61b4a135c444fc97158ef34a095e5681d0a6c10b75bf356191/sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5", size = 6299353, upload-time = "2025-04-27T18:04:59.103Z" }, +] + +[[package]] +name = "temporalio" +version = "1.15.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "nexus-rpc" }, + { name = "protobuf" }, + { name = "types-protobuf" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/0b/af/1a3619fc62333d0acbdf90cfc5ada97e68e8c0f79610363b2dbb30871d83/temporalio-1.15.0.tar.gz", hash = "sha256:a4bc6ca01717880112caab75d041713aacc8263dc66e41f5019caef68b344fa0", size = 1684485, upload-time = "2025-07-29T03:44:09.071Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0e/2d/0153f2bc459e0cb59d41d4dd71da46bf9a98ca98bc37237576c258d6696b/temporalio-1.15.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:74bc5cc0e6bdc161a43015538b0821b8713f5faa716c4209971c274b528e0d47", size = 12703607, upload-time = "2025-07-29T03:43:30.083Z" }, + { url = "https://files.pythonhosted.org/packages/e4/39/1b867ec698c8987aef3b7a7024b5c0c732841112fa88d021303d0fc69bea/temporalio-1.15.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:ee8001304dae5723d79797516cfeebe04b966fdbdf348e658fce3b43afdda3cd", size = 12232853, upload-time = "2025-07-29T03:43:38.909Z" }, + { url = "https://files.pythonhosted.org/packages/5e/3e/647d9a7c8b2f638f639717404c0bcbdd7d54fddd7844fdb802e3f40dc55f/temporalio-1.15.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8febd1ac36720817e69c2176aa4aca14a97fe0b83f0d2449c0c730b8f0174d02", size = 12636700, upload-time = "2025-07-29T03:43:49.066Z" }, + { url = "https://files.pythonhosted.org/packages/9a/13/7aa9ec694fec9fba39efdbf61d892bccf7d2b1aa3d9bd359544534c1d309/temporalio-1.15.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:202d81a42cafaed9ccc7ccbea0898838e3b8bf92fee65394f8790f37eafbaa63", size = 12860186, upload-time = "2025-07-29T03:43:57.644Z" }, + { url = "https://files.pythonhosted.org/packages/9f/2b/ba962401324892236148046dbffd805d4443d6df7a7dc33cc7964b566bf9/temporalio-1.15.0-cp39-abi3-win_amd64.whl", hash = "sha256:aae5b18d7c9960238af0f3ebf6b7e5959e05f452106fc0d21a8278d78724f780", size = 12932800, upload-time = "2025-07-29T03:44:06.271Z" }, +] + +[[package]] +name = "tenacity" +version = "9.1.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/0a/d4/2b0cd0fe285e14b36db076e78c93766ff1d529d70408bd1d2a5a84f1d929/tenacity-9.1.2.tar.gz", hash = "sha256:1169d376c297e7de388d18b4481760d478b0e99a777cad3a9c86e556f4b697cb", size = 48036, upload-time = "2025-04-02T08:25:09.966Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e5/30/643397144bfbfec6f6ef821f36f33e57d35946c44a2352d3c9f0ae847619/tenacity-9.1.2-py3-none-any.whl", hash = "sha256:f77bf36710d8b73a50b2dd155c97b870017ad21afe6ab300326b0371b3b05138", size = 28248, upload-time = "2025-04-02T08:25:07.678Z" }, +] + +[[package]] +name = "thop" +version = "0.1.1.post2209072238" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "torch" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/bb/0f/72beeab4ff5221dc47127c80f8834b4bcd0cb36f6ba91c0b1d04a1233403/thop-0.1.1.post2209072238-py3-none-any.whl", hash = "sha256:01473c225231927d2ad718351f78ebf7cffe6af3bed464c4f1ba1ef0f7cdda27", size = 15443, upload-time = "2022-09-07T14:38:37.211Z" }, +] + +[[package]] +name = "threadpoolctl" +version = "3.6.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b7/4d/08c89e34946fce2aec4fbb45c9016efd5f4d7f24af8e5d93296e935631d8/threadpoolctl-3.6.0.tar.gz", hash = "sha256:8ab8b4aa3491d812b623328249fab5302a68d2d71745c8a4c719a2fcaba9f44e", size = 21274, upload-time = "2025-03-13T13:49:23.031Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/32/d5/f9a850d79b0851d1d4ef6456097579a9005b31fea68726a4ae5f2d82ddd9/threadpoolctl-3.6.0-py3-none-any.whl", hash = "sha256:43a0b8fd5a2928500110039e43a5eed8480b918967083ea48dc3ab9f13c4a7fb", size = 18638, upload-time = "2025-03-13T13:49:21.846Z" }, +] + +[[package]] +name = "tiktoken" +version = "0.7.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "regex" }, + { name = "requests" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c4/4a/abaec53e93e3ef37224a4dd9e2fc6bb871e7a538c2b6b9d2a6397271daf4/tiktoken-0.7.0.tar.gz", hash = "sha256:1077266e949c24e0291f6c350433c6f0971365ece2b173a23bc3b9f9defef6b6", size = 33437, upload-time = "2024-05-13T18:03:28.793Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1d/46/4cdda4186ce900608f522da34acf442363346688c71b938a90a52d7b84cc/tiktoken-0.7.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:71c55d066388c55a9c00f61d2c456a6086673ab7dec22dd739c23f77195b1908", size = 960446, upload-time = "2024-05-13T18:02:54.409Z" }, + { url = "https://files.pythonhosted.org/packages/b6/30/09ced367d280072d7a3e21f34263dfbbf6378661e7a0f6414e7c18971083/tiktoken-0.7.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:09ed925bccaa8043e34c519fbb2f99110bd07c6fd67714793c21ac298e449410", size = 906652, upload-time = "2024-05-13T18:02:56.25Z" }, + { url = "https://files.pythonhosted.org/packages/e6/7b/c949e4954441a879a67626963dff69096e3c774758b9f2bb0853f7b4e1e7/tiktoken-0.7.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:03c6c40ff1db0f48a7b4d2dafeae73a5607aacb472fa11f125e7baf9dce73704", size = 1047904, upload-time = "2024-05-13T18:02:57.707Z" }, + { url = "https://files.pythonhosted.org/packages/50/81/1842a22f15586072280364c2ab1e40835adaf64e42fe80e52aff921ee021/tiktoken-0.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d20b5c6af30e621b4aca094ee61777a44118f52d886dbe4f02b70dfe05c15350", size = 1079836, upload-time = "2024-05-13T18:02:59.009Z" }, + { url = "https://files.pythonhosted.org/packages/6d/87/51a133a3d5307cf7ae3754249b0faaa91d3414b85c3d36f80b54d6817aa6/tiktoken-0.7.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:d427614c3e074004efa2f2411e16c826f9df427d3c70a54725cae860f09e4bf4", size = 1092472, upload-time = "2024-05-13T18:03:00.597Z" }, + { url = "https://files.pythonhosted.org/packages/a5/1f/c93517dc6d3b2c9e988b8e24f87a8b2d4a4ab28920a3a3f3ea338397ae0c/tiktoken-0.7.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:8c46d7af7b8c6987fac9b9f61041b452afe92eb087d29c9ce54951280f899a97", size = 1141881, upload-time = "2024-05-13T18:03:02.743Z" }, + { url = "https://files.pythonhosted.org/packages/bf/4b/48ca098cb580c099b5058bf62c4cb5e90ca6130fa43ef4df27088536245b/tiktoken-0.7.0-cp312-cp312-win_amd64.whl", hash = "sha256:0bc603c30b9e371e7c4c7935aba02af5994a909fc3c0fe66e7004070858d3f8f", size = 799281, upload-time = "2024-05-13T18:03:04.036Z" }, +] + +[[package]] +name = "tokenizers" +version = "0.21.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "huggingface-hub" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c2/2f/402986d0823f8d7ca139d969af2917fefaa9b947d1fb32f6168c509f2492/tokenizers-0.21.4.tar.gz", hash = "sha256:fa23f85fbc9a02ec5c6978da172cdcbac23498c3ca9f3645c5c68740ac007880", size = 351253, upload-time = "2025-07-28T15:48:54.325Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/98/c6/fdb6f72bf6454f52eb4a2510be7fb0f614e541a2554d6210e370d85efff4/tokenizers-0.21.4-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:2ccc10a7c3bcefe0f242867dc914fc1226ee44321eb618cfe3019b5df3400133", size = 2863987, upload-time = "2025-07-28T15:48:44.877Z" }, + { url = "https://files.pythonhosted.org/packages/8d/a6/28975479e35ddc751dc1ddc97b9b69bf7fcf074db31548aab37f8116674c/tokenizers-0.21.4-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:5e2f601a8e0cd5be5cc7506b20a79112370b9b3e9cb5f13f68ab11acd6ca7d60", size = 2732457, upload-time = "2025-07-28T15:48:43.265Z" }, + { url = "https://files.pythonhosted.org/packages/aa/8f/24f39d7b5c726b7b0be95dca04f344df278a3fe3a4deb15a975d194cbb32/tokenizers-0.21.4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:39b376f5a1aee67b4d29032ee85511bbd1b99007ec735f7f35c8a2eb104eade5", size = 3012624, upload-time = "2025-07-28T13:22:43.895Z" }, + { url = "https://files.pythonhosted.org/packages/58/47/26358925717687a58cb74d7a508de96649544fad5778f0cd9827398dc499/tokenizers-0.21.4-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2107ad649e2cda4488d41dfd031469e9da3fcbfd6183e74e4958fa729ffbf9c6", size = 2939681, upload-time = "2025-07-28T13:22:47.499Z" }, + { url = "https://files.pythonhosted.org/packages/99/6f/cc300fea5db2ab5ddc2c8aea5757a27b89c84469899710c3aeddc1d39801/tokenizers-0.21.4-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3c73012da95afafdf235ba80047699df4384fdc481527448a078ffd00e45a7d9", size = 3247445, upload-time = "2025-07-28T15:48:39.711Z" }, + { url = "https://files.pythonhosted.org/packages/be/bf/98cb4b9c3c4afd8be89cfa6423704337dc20b73eb4180397a6e0d456c334/tokenizers-0.21.4-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f23186c40395fc390d27f519679a58023f368a0aad234af145e0f39ad1212732", size = 3428014, upload-time = "2025-07-28T13:22:49.569Z" }, + { url = "https://files.pythonhosted.org/packages/75/c7/96c1cc780e6ca7f01a57c13235dd05b7bc1c0f3588512ebe9d1331b5f5ae/tokenizers-0.21.4-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cc88bb34e23a54cc42713d6d98af5f1bf79c07653d24fe984d2d695ba2c922a2", size = 3193197, upload-time = "2025-07-28T13:22:51.471Z" }, + { url = "https://files.pythonhosted.org/packages/f2/90/273b6c7ec78af547694eddeea9e05de771278bd20476525ab930cecaf7d8/tokenizers-0.21.4-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:51b7eabb104f46c1c50b486520555715457ae833d5aee9ff6ae853d1130506ff", size = 3115426, upload-time = "2025-07-28T15:48:41.439Z" }, + { url = "https://files.pythonhosted.org/packages/91/43/c640d5a07e95f1cf9d2c92501f20a25f179ac53a4f71e1489a3dcfcc67ee/tokenizers-0.21.4-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:714b05b2e1af1288bd1bc56ce496c4cebb64a20d158ee802887757791191e6e2", size = 9089127, upload-time = "2025-07-28T15:48:46.472Z" }, + { url = "https://files.pythonhosted.org/packages/44/a1/dd23edd6271d4dca788e5200a807b49ec3e6987815cd9d0a07ad9c96c7c2/tokenizers-0.21.4-cp39-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:1340ff877ceedfa937544b7d79f5b7becf33a4cfb58f89b3b49927004ef66f78", size = 9055243, upload-time = "2025-07-28T15:48:48.539Z" }, + { url = "https://files.pythonhosted.org/packages/21/2b/b410d6e9021c4b7ddb57248304dc817c4d4970b73b6ee343674914701197/tokenizers-0.21.4-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:3c1f4317576e465ac9ef0d165b247825a2a4078bcd01cba6b54b867bdf9fdd8b", size = 9298237, upload-time = "2025-07-28T15:48:50.443Z" }, + { url = "https://files.pythonhosted.org/packages/b7/0a/42348c995c67e2e6e5c89ffb9cfd68507cbaeb84ff39c49ee6e0a6dd0fd2/tokenizers-0.21.4-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:c212aa4e45ec0bb5274b16b6f31dd3f1c41944025c2358faaa5782c754e84c24", size = 9461980, upload-time = "2025-07-28T15:48:52.325Z" }, + { url = "https://files.pythonhosted.org/packages/3d/d3/dacccd834404cd71b5c334882f3ba40331ad2120e69ded32cf5fda9a7436/tokenizers-0.21.4-cp39-abi3-win32.whl", hash = "sha256:6c42a930bc5f4c47f4ea775c91de47d27910881902b0f20e4990ebe045a415d0", size = 2329871, upload-time = "2025-07-28T15:48:56.841Z" }, + { url = "https://files.pythonhosted.org/packages/41/f2/fd673d979185f5dcbac4be7d09461cbb99751554ffb6718d0013af8604cb/tokenizers-0.21.4-cp39-abi3-win_amd64.whl", hash = "sha256:475d807a5c3eb72c59ad9b5fcdb254f6e17f53dfcbb9903233b0dfa9c943b597", size = 2507568, upload-time = "2025-07-28T15:48:55.456Z" }, +] + +[[package]] +name = "toml" +version = "0.10.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/be/ba/1f744cdc819428fc6b5084ec34d9b30660f6f9daaf70eead706e3203ec3c/toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f", size = 22253, upload-time = "2020-11-01T01:40:22.204Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b", size = 16588, upload-time = "2020-11-01T01:40:20.672Z" }, +] + +[[package]] +name = "tomlkit" +version = "0.13.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cc/18/0bbf3884e9eaa38819ebe46a7bd25dcd56b67434402b66a58c4b8e552575/tomlkit-0.13.3.tar.gz", hash = "sha256:430cf247ee57df2b94ee3fbe588e71d362a941ebb545dec29b53961d61add2a1", size = 185207, upload-time = "2025-06-05T07:13:44.947Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bd/75/8539d011f6be8e29f339c42e633aae3cb73bffa95dd0f9adec09b9c58e85/tomlkit-0.13.3-py3-none-any.whl", hash = "sha256:c89c649d79ee40629a9fda55f8ace8c6a1b42deb912b2a8fd8d942ddadb606b0", size = 38901, upload-time = "2025-06-05T07:13:43.546Z" }, +] + +[[package]] +name = "torch" +version = "2.8.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "filelock" }, + { name = "fsspec" }, + { name = "jinja2" }, + { name = "networkx" }, + { name = "nvidia-cublas-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "nvidia-cuda-cupti-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "nvidia-cuda-nvrtc-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "nvidia-cuda-runtime-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "nvidia-cudnn-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "nvidia-cufft-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "nvidia-cufile-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "nvidia-curand-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "nvidia-cusolver-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "nvidia-cusparse-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "nvidia-cusparselt-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "nvidia-nccl-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "nvidia-nvjitlink-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "nvidia-nvtx-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "setuptools" }, + { name = "sympy" }, + { name = "triton", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" }, + { name = "typing-extensions" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/49/0c/2fd4df0d83a495bb5e54dca4474c4ec5f9c62db185421563deeb5dabf609/torch-2.8.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:e2fab4153768d433f8ed9279c8133a114a034a61e77a3a104dcdf54388838705", size = 101906089, upload-time = "2025-08-06T14:53:52.631Z" }, + { url = "https://files.pythonhosted.org/packages/99/a8/6acf48d48838fb8fe480597d98a0668c2beb02ee4755cc136de92a0a956f/torch-2.8.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:b2aca0939fb7e4d842561febbd4ffda67a8e958ff725c1c27e244e85e982173c", size = 887913624, upload-time = "2025-08-06T14:56:44.33Z" }, + { url = "https://files.pythonhosted.org/packages/af/8a/5c87f08e3abd825c7dfecef5a0f1d9aa5df5dd0e3fd1fa2f490a8e512402/torch-2.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:2f4ac52f0130275d7517b03a33d2493bab3693c83dcfadf4f81688ea82147d2e", size = 241326087, upload-time = "2025-08-06T14:53:46.503Z" }, + { url = "https://files.pythonhosted.org/packages/be/66/5c9a321b325aaecb92d4d1855421e3a055abd77903b7dab6575ca07796db/torch-2.8.0-cp312-none-macosx_11_0_arm64.whl", hash = "sha256:619c2869db3ada2c0105487ba21b5008defcc472d23f8b80ed91ac4a380283b0", size = 73630478, upload-time = "2025-08-06T14:53:57.144Z" }, + { url = "https://files.pythonhosted.org/packages/10/4e/469ced5a0603245d6a19a556e9053300033f9c5baccf43a3d25ba73e189e/torch-2.8.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:2b2f96814e0345f5a5aed9bf9734efa913678ed19caf6dc2cddb7930672d6128", size = 101936856, upload-time = "2025-08-06T14:54:01.526Z" }, + { url = "https://files.pythonhosted.org/packages/16/82/3948e54c01b2109238357c6f86242e6ecbf0c63a1af46906772902f82057/torch-2.8.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:65616ca8ec6f43245e1f5f296603e33923f4c30f93d65e103d9e50c25b35150b", size = 887922844, upload-time = "2025-08-06T14:55:50.78Z" }, + { url = "https://files.pythonhosted.org/packages/e3/54/941ea0a860f2717d86a811adf0c2cd01b3983bdd460d0803053c4e0b8649/torch-2.8.0-cp313-cp313-win_amd64.whl", hash = "sha256:659df54119ae03e83a800addc125856effda88b016dfc54d9f65215c3975be16", size = 241330968, upload-time = "2025-08-06T14:54:45.293Z" }, + { url = "https://files.pythonhosted.org/packages/de/69/8b7b13bba430f5e21d77708b616f767683629fc4f8037564a177d20f90ed/torch-2.8.0-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:1a62a1ec4b0498930e2543535cf70b1bef8c777713de7ceb84cd79115f553767", size = 73915128, upload-time = "2025-08-06T14:54:34.769Z" }, + { url = "https://files.pythonhosted.org/packages/15/0e/8a800e093b7f7430dbaefa80075aee9158ec22e4c4fc3c1a66e4fb96cb4f/torch-2.8.0-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:83c13411a26fac3d101fe8035a6b0476ae606deb8688e904e796a3534c197def", size = 102020139, upload-time = "2025-08-06T14:54:39.047Z" }, + { url = "https://files.pythonhosted.org/packages/4a/15/5e488ca0bc6162c86a33b58642bc577c84ded17c7b72d97e49b5833e2d73/torch-2.8.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:8f0a9d617a66509ded240add3754e462430a6c1fc5589f86c17b433dd808f97a", size = 887990692, upload-time = "2025-08-06T14:56:18.286Z" }, + { url = "https://files.pythonhosted.org/packages/b4/a8/6a04e4b54472fc5dba7ca2341ab219e529f3c07b6941059fbf18dccac31f/torch-2.8.0-cp313-cp313t-win_amd64.whl", hash = "sha256:a7242b86f42be98ac674b88a4988643b9bc6145437ec8f048fea23f72feb5eca", size = 241603453, upload-time = "2025-08-06T14:55:22.945Z" }, + { url = "https://files.pythonhosted.org/packages/04/6e/650bb7f28f771af0cb791b02348db8b7f5f64f40f6829ee82aa6ce99aabe/torch-2.8.0-cp313-none-macosx_11_0_arm64.whl", hash = "sha256:7b677e17f5a3e69fdef7eb3b9da72622f8d322692930297e4ccb52fefc6c8211", size = 73632395, upload-time = "2025-08-06T14:55:28.645Z" }, +] + +[[package]] +name = "torchvision" +version = "0.23.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, + { name = "pillow" }, + { name = "torch" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/df/1d/0ea0b34bde92a86d42620f29baa6dcbb5c2fc85990316df5cb8f7abb8ea2/torchvision-0.23.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e0e2c04a91403e8dd3af9756c6a024a1d9c0ed9c0d592a8314ded8f4fe30d440", size = 1856885, upload-time = "2025-08-06T14:58:06.503Z" }, + { url = "https://files.pythonhosted.org/packages/e2/00/2f6454decc0cd67158c7890364e446aad4b91797087a57a78e72e1a8f8bc/torchvision-0.23.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:6dd7c4d329a0e03157803031bc856220c6155ef08c26d4f5bbac938acecf0948", size = 2396614, upload-time = "2025-08-06T14:58:03.116Z" }, + { url = "https://files.pythonhosted.org/packages/e4/b5/3e580dcbc16f39a324f3dd71b90edbf02a42548ad44d2b4893cc92b1194b/torchvision-0.23.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:4e7d31c43bc7cbecbb1a5652ac0106b436aa66e26437585fc2c4b2cf04d6014c", size = 8627108, upload-time = "2025-08-06T14:58:12.956Z" }, + { url = "https://files.pythonhosted.org/packages/82/c1/c2fe6d61e110a8d0de2f94276899a2324a8f1e6aee559eb6b4629ab27466/torchvision-0.23.0-cp312-cp312-win_amd64.whl", hash = "sha256:a2e45272abe7b8bf0d06c405e78521b5757be1bd0ed7e5cd78120f7fdd4cbf35", size = 1600723, upload-time = "2025-08-06T14:57:57.986Z" }, + { url = "https://files.pythonhosted.org/packages/91/37/45a5b9407a7900f71d61b2b2f62db4b7c632debca397f205fdcacb502780/torchvision-0.23.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1c37e325e09a184b730c3ef51424f383ec5745378dc0eca244520aca29722600", size = 1856886, upload-time = "2025-08-06T14:58:05.491Z" }, + { url = "https://files.pythonhosted.org/packages/ac/da/a06c60fc84fc849377cf035d3b3e9a1c896d52dbad493b963c0f1cdd74d0/torchvision-0.23.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:2f7fd6c15f3697e80627b77934f77705f3bc0e98278b989b2655de01f6903e1d", size = 2353112, upload-time = "2025-08-06T14:58:26.265Z" }, + { url = "https://files.pythonhosted.org/packages/a0/27/5ce65ba5c9d3b7d2ccdd79892ab86a2f87ac2ca6638f04bb0280321f1a9c/torchvision-0.23.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:a76fafe113b2977be3a21bf78f115438c1f88631d7a87203acb3dd6ae55889e6", size = 8627658, upload-time = "2025-08-06T14:58:15.999Z" }, + { url = "https://files.pythonhosted.org/packages/1f/e4/028a27b60aa578a2fa99d9d7334ff1871bb17008693ea055a2fdee96da0d/torchvision-0.23.0-cp313-cp313-win_amd64.whl", hash = "sha256:07d069cb29691ff566e3b7f11f20d91044f079e1dbdc9d72e0655899a9b06938", size = 1600749, upload-time = "2025-08-06T14:58:10.719Z" }, + { url = "https://files.pythonhosted.org/packages/05/35/72f91ad9ac7c19a849dedf083d347dc1123f0adeb401f53974f84f1d04c8/torchvision-0.23.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:2df618e1143805a7673aaf82cb5720dd9112d4e771983156aaf2ffff692eebf9", size = 2047192, upload-time = "2025-08-06T14:58:11.813Z" }, + { url = "https://files.pythonhosted.org/packages/1d/9d/406cea60a9eb9882145bcd62a184ee61e823e8e1d550cdc3c3ea866a9445/torchvision-0.23.0-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:2a3299d2b1d5a7aed2d3b6ffb69c672ca8830671967eb1cee1497bacd82fe47b", size = 2359295, upload-time = "2025-08-06T14:58:17.469Z" }, + { url = "https://files.pythonhosted.org/packages/2b/f4/34662f71a70fa1e59de99772142f22257ca750de05ccb400b8d2e3809c1d/torchvision-0.23.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:76bc4c0b63d5114aa81281390f8472a12a6a35ce9906e67ea6044e5af4cab60c", size = 8800474, upload-time = "2025-08-06T14:58:22.53Z" }, + { url = "https://files.pythonhosted.org/packages/6e/f5/b5a2d841a8d228b5dbda6d524704408e19e7ca6b7bb0f24490e081da1fa1/torchvision-0.23.0-cp313-cp313t-win_amd64.whl", hash = "sha256:b9e2dabf0da9c8aa9ea241afb63a8f3e98489e706b22ac3f30416a1be377153b", size = 1527667, upload-time = "2025-08-06T14:58:14.446Z" }, +] + +[[package]] +name = "tornado" +version = "6.5.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/09/ce/1eb500eae19f4648281bb2186927bb062d2438c2e5093d1360391afd2f90/tornado-6.5.2.tar.gz", hash = "sha256:ab53c8f9a0fa351e2c0741284e06c7a45da86afb544133201c5cc8578eb076a0", size = 510821, upload-time = "2025-08-08T18:27:00.78Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f6/48/6a7529df2c9cc12efd2e8f5dd219516184d703b34c06786809670df5b3bd/tornado-6.5.2-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:2436822940d37cde62771cff8774f4f00b3c8024fe482e16ca8387b8a2724db6", size = 442563, upload-time = "2025-08-08T18:26:42.945Z" }, + { url = "https://files.pythonhosted.org/packages/f2/b5/9b575a0ed3e50b00c40b08cbce82eb618229091d09f6d14bce80fc01cb0b/tornado-6.5.2-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:583a52c7aa94ee046854ba81d9ebb6c81ec0fd30386d96f7640c96dad45a03ef", size = 440729, upload-time = "2025-08-08T18:26:44.473Z" }, + { url = "https://files.pythonhosted.org/packages/1b/4e/619174f52b120efcf23633c817fd3fed867c30bff785e2cd5a53a70e483c/tornado-6.5.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b0fe179f28d597deab2842b86ed4060deec7388f1fd9c1b4a41adf8af058907e", size = 444295, upload-time = "2025-08-08T18:26:46.021Z" }, + { url = "https://files.pythonhosted.org/packages/95/fa/87b41709552bbd393c85dd18e4e3499dcd8983f66e7972926db8d96aa065/tornado-6.5.2-cp39-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b186e85d1e3536d69583d2298423744740986018e393d0321df7340e71898882", size = 443644, upload-time = "2025-08-08T18:26:47.625Z" }, + { url = "https://files.pythonhosted.org/packages/f9/41/fb15f06e33d7430ca89420283a8762a4e6b8025b800ea51796ab5e6d9559/tornado-6.5.2-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e792706668c87709709c18b353da1f7662317b563ff69f00bab83595940c7108", size = 443878, upload-time = "2025-08-08T18:26:50.599Z" }, + { url = "https://files.pythonhosted.org/packages/11/92/fe6d57da897776ad2e01e279170ea8ae726755b045fe5ac73b75357a5a3f/tornado-6.5.2-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:06ceb1300fd70cb20e43b1ad8aaee0266e69e7ced38fa910ad2e03285009ce7c", size = 444549, upload-time = "2025-08-08T18:26:51.864Z" }, + { url = "https://files.pythonhosted.org/packages/9b/02/c8f4f6c9204526daf3d760f4aa555a7a33ad0e60843eac025ccfd6ff4a93/tornado-6.5.2-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:74db443e0f5251be86cbf37929f84d8c20c27a355dd452a5cfa2aada0d001ec4", size = 443973, upload-time = "2025-08-08T18:26:53.625Z" }, + { url = "https://files.pythonhosted.org/packages/ae/2d/f5f5707b655ce2317190183868cd0f6822a1121b4baeae509ceb9590d0bd/tornado-6.5.2-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b5e735ab2889d7ed33b32a459cac490eda71a1ba6857b0118de476ab6c366c04", size = 443954, upload-time = "2025-08-08T18:26:55.072Z" }, + { url = "https://files.pythonhosted.org/packages/e8/59/593bd0f40f7355806bf6573b47b8c22f8e1374c9b6fd03114bd6b7a3dcfd/tornado-6.5.2-cp39-abi3-win32.whl", hash = "sha256:c6f29e94d9b37a95013bb669616352ddb82e3bfe8326fccee50583caebc8a5f0", size = 445023, upload-time = "2025-08-08T18:26:56.677Z" }, + { url = "https://files.pythonhosted.org/packages/c7/2a/f609b420c2f564a748a2d80ebfb2ee02a73ca80223af712fca591386cafb/tornado-6.5.2-cp39-abi3-win_amd64.whl", hash = "sha256:e56a5af51cc30dd2cae649429af65ca2f6571da29504a07995175df14c18f35f", size = 445427, upload-time = "2025-08-08T18:26:57.91Z" }, + { url = "https://files.pythonhosted.org/packages/5e/4f/e1f65e8f8c76d73658b33d33b81eed4322fb5085350e4328d5c956f0c8f9/tornado-6.5.2-cp39-abi3-win_arm64.whl", hash = "sha256:d6c33dc3672e3a1f3618eb63b7ef4683a7688e7b9e6e8f0d9aa5726360a004af", size = 444456, upload-time = "2025-08-08T18:26:59.207Z" }, +] + +[[package]] +name = "tqdm" +version = "4.67.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a8/4b/29b4ef32e036bb34e4ab51796dd745cdba7ed47ad142a9f4a1eb8e0c744d/tqdm-4.67.1.tar.gz", hash = "sha256:f8aef9c52c08c13a65f30ea34f4e5aac3fd1a34959879d7e59e63027286627f2", size = 169737, upload-time = "2024-11-24T20:12:22.481Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d0/30/dc54f88dd4a2b5dc8a0279bdd7270e735851848b762aeb1c1184ed1f6b14/tqdm-4.67.1-py3-none-any.whl", hash = "sha256:26445eca388f82e72884e0d580d5464cd801a3ea01e63e5601bdff9ba6a48de2", size = 78540, upload-time = "2024-11-24T20:12:19.698Z" }, +] + +[[package]] +name = "transformers" +version = "4.55.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "filelock" }, + { name = "huggingface-hub" }, + { name = "numpy" }, + { name = "packaging" }, + { name = "pyyaml" }, + { name = "regex" }, + { name = "requests" }, + { name = "safetensors" }, + { name = "tokenizers" }, + { name = "tqdm" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/fd/f4/5227c3275b3ea92df639a763d819ade8726d6a23fe6b1f497d989ebd8931/transformers-4.55.1.tar.gz", hash = "sha256:0de83246bdc4abdff6475302cd2fbd19f1c9f7ae7c1d7ec580e06df2f0ae93aa", size = 9571228, upload-time = "2025-08-13T08:57:32.357Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/09/a2/5b840892d7ec3b91d2bc57f503ee91cb37d6d4d0b1720ccbe661f35b48db/transformers-4.55.1-py3-none-any.whl", hash = "sha256:9e936d9c106924579f509f63da66aa899401e2d1fb4a4f964a3c494476b5110f", size = 11269726, upload-time = "2025-08-13T08:57:25.19Z" }, +] + +[[package]] +name = "triton" +version = "3.4.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "setuptools", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/d0/66/b1eb52839f563623d185f0927eb3530ee4d5ffe9d377cdaf5346b306689e/triton-3.4.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:31c1d84a5c0ec2c0f8e8a072d7fd150cab84a9c239eaddc6706c081bfae4eb04", size = 155560068, upload-time = "2025-07-30T19:58:37.081Z" }, + { url = "https://files.pythonhosted.org/packages/30/7b/0a685684ed5322d2af0bddefed7906674f67974aa88b0fae6e82e3b766f6/triton-3.4.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00be2964616f4c619193cb0d1b29a99bd4b001d7dc333816073f92cf2a8ccdeb", size = 155569223, upload-time = "2025-07-30T19:58:44.017Z" }, + { url = "https://files.pythonhosted.org/packages/20/63/8cb444ad5cdb25d999b7d647abac25af0ee37d292afc009940c05b82dda0/triton-3.4.0-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7936b18a3499ed62059414d7df563e6c163c5e16c3773678a3ee3d417865035d", size = 155659780, upload-time = "2025-07-30T19:58:51.171Z" }, +] + +[[package]] +name = "typer" +version = "0.16.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "rich" }, + { name = "shellingham" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c5/8c/7d682431efca5fd290017663ea4588bf6f2c6aad085c7f108c5dbc316e70/typer-0.16.0.tar.gz", hash = "sha256:af377ffaee1dbe37ae9440cb4e8f11686ea5ce4e9bae01b84ae7c63b87f1dd3b", size = 102625, upload-time = "2025-05-26T14:30:31.824Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/76/42/3efaf858001d2c2913de7f354563e3a3a2f0decae3efe98427125a8f441e/typer-0.16.0-py3-none-any.whl", hash = "sha256:1f79bed11d4d02d4310e3c1b7ba594183bcedb0ac73b27a9e5f28f6fb5b98855", size = 46317, upload-time = "2025-05-26T14:30:30.523Z" }, +] + +[[package]] +name = "types-protobuf" +version = "6.30.2.20250809" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d5/9e/8777c578b5b66f6ef99ce9dac4865b51016a52b1d681942fbf75ac35d60f/types_protobuf-6.30.2.20250809.tar.gz", hash = "sha256:b04f2998edf0d81bd8600bbd5db0b2adf547837eef6362ba364925cee21a33b4", size = 62204, upload-time = "2025-08-09T03:14:07.547Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/9a/43daca708592570539888d80d6b708dff0b1795218aaf6b13057cc2e2c18/types_protobuf-6.30.2.20250809-py3-none-any.whl", hash = "sha256:7afc2d3f569d281dd22f339179577243be60bf7d1dfb4bc13d0109859fb1f1be", size = 76389, upload-time = "2025-08-09T03:14:06.531Z" }, +] + +[[package]] +name = "types-requests" +version = "2.32.4.20250809" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ed/b0/9355adb86ec84d057fea765e4c49cce592aaf3d5117ce5609a95a7fc3dac/types_requests-2.32.4.20250809.tar.gz", hash = "sha256:d8060de1c8ee599311f56ff58010fb4902f462a1470802cf9f6ed27bc46c4df3", size = 23027, upload-time = "2025-08-09T03:17:10.664Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2b/6f/ec0012be842b1d888d46884ac5558fd62aeae1f0ec4f7a581433d890d4b5/types_requests-2.32.4.20250809-py3-none-any.whl", hash = "sha256:f73d1832fb519ece02c85b1f09d5f0dd3108938e7d47e7f94bbfa18a6782b163", size = 20644, upload-time = "2025-08-09T03:17:09.716Z" }, +] + +[[package]] +name = "typing-extensions" +version = "4.14.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/98/5a/da40306b885cc8c09109dc2e1abd358d5684b1425678151cdaed4731c822/typing_extensions-4.14.1.tar.gz", hash = "sha256:38b39f4aeeab64884ce9f74c94263ef78f3c22467c8724005483154c26648d36", size = 107673, upload-time = "2025-07-04T13:28:34.16Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b5/00/d631e67a838026495268c2f6884f3711a15a9a2a96cd244fdaea53b823fb/typing_extensions-4.14.1-py3-none-any.whl", hash = "sha256:d1e1e3b58374dc93031d6eda2420a48ea44a36c2b4766a4fdeb3710755731d76", size = 43906, upload-time = "2025-07-04T13:28:32.743Z" }, +] + +[[package]] +name = "typing-inspection" +version = "0.4.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f8/b1/0c11f5058406b3af7609f121aaa6b609744687f1d158b3c3a5bf4cc94238/typing_inspection-0.4.1.tar.gz", hash = "sha256:6ae134cc0203c33377d43188d4064e9b357dba58cff3185f22924610e70a9d28", size = 75726, upload-time = "2025-05-21T18:55:23.885Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/17/69/cd203477f944c353c31bade965f880aa1061fd6bf05ded0726ca845b6ff7/typing_inspection-0.4.1-py3-none-any.whl", hash = "sha256:389055682238f53b04f7badcb49b989835495a96700ced5dab2d8feae4b26f51", size = 14552, upload-time = "2025-05-21T18:55:22.152Z" }, +] + +[[package]] +name = "tzdata" +version = "2025.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/95/32/1a225d6164441be760d75c2c42e2780dc0873fe382da3e98a2e1e48361e5/tzdata-2025.2.tar.gz", hash = "sha256:b60a638fcc0daffadf82fe0f57e53d06bdec2f36c4df66280ae79bce6bd6f2b9", size = 196380, upload-time = "2025-03-23T13:54:43.652Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5c/23/c7abc0ca0a1526a0774eca151daeb8de62ec457e77262b66b359c3c7679e/tzdata-2025.2-py2.py3-none-any.whl", hash = "sha256:1a403fada01ff9221ca8044d701868fa132215d84beb92242d9acd2147f667a8", size = 347839, upload-time = "2025-03-23T13:54:41.845Z" }, +] + +[[package]] +name = "ultralytics" +version = "8.3.178" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "matplotlib" }, + { name = "numpy" }, + { name = "opencv-python" }, + { name = "pandas" }, + { name = "pillow" }, + { name = "psutil" }, + { name = "py-cpuinfo" }, + { name = "pyyaml" }, + { name = "requests" }, + { name = "scipy" }, + { name = "torch" }, + { name = "torchvision" }, + { name = "tqdm" }, + { name = "ultralytics-thop" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e9/63/5e728a44b2eb5ef900af13866e032770ebeac9c3e50ad4436be028ed95f2/ultralytics-8.3.178.tar.gz", hash = "sha256:e6abd836f4dca564abd0b1feb37fbc6d9af5cdaef983878d4f00ff758391bbda", size = 895329, upload-time = "2025-08-12T18:02:39.686Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/00/34/5763a2ad15f45db38522e96bb7b29451b042dec62d2ca3df52b224f64e94/ultralytics-8.3.178-py3-none-any.whl", hash = "sha256:a463fe297535603ba04f6d78e9ac504853cc2be048b22136ace8dad52cbf8af6", size = 1042851, upload-time = "2025-08-12T18:02:37.233Z" }, +] + +[[package]] +name = "ultralytics-thop" +version = "2.0.15" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, + { name = "torch" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e3/1e/cb9e0f59788a93a733b1f9ff182201db2b5bd036303b5b4f423743100b81/ultralytics_thop-2.0.15.tar.gz", hash = "sha256:1bcf05dc0172045ce3da289f9125b36f999f5225596cb69fe12e09e139896e41", size = 33036, upload-time = "2025-08-04T07:51:37.94Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/01/9b/155181b98afe9f97e12bd1a7194778c77f3781450c57d6d18a07a878da19/ultralytics_thop-2.0.15-py3-none-any.whl", hash = "sha256:d643e074754c154a4cb8e97190f00ce57c999b8b6e756d780d730dc3a1e51ef6", size = 28657, upload-time = "2025-08-04T07:51:36.434Z" }, +] + +[[package]] +name = "urllib3" +version = "2.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/15/22/9ee70a2574a4f4599c47dd506532914ce044817c7752a79b6a51286319bc/urllib3-2.5.0.tar.gz", hash = "sha256:3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760", size = 393185, upload-time = "2025-06-18T14:07:41.644Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a7/c2/fe1e52489ae3122415c51f387e221dd0773709bad6c6cdaa599e8a2c5185/urllib3-2.5.0-py3-none-any.whl", hash = "sha256:e6b01673c0fa6a13e374b50871808eb3bf7046c4b125b216f6bf1cc604cff0dc", size = 129795, upload-time = "2025-06-18T14:07:40.39Z" }, +] + +[[package]] +name = "uvicorn" +version = "0.35.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "h11" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/5e/42/e0e305207bb88c6b8d3061399c6a961ffe5fbb7e2aa63c9234df7259e9cd/uvicorn-0.35.0.tar.gz", hash = "sha256:bc662f087f7cf2ce11a1d7fd70b90c9f98ef2e2831556dd078d131b96cc94a01", size = 78473, upload-time = "2025-06-28T16:15:46.058Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d2/e2/dc81b1bd1dcfe91735810265e9d26bc8ec5da45b4c0f6237e286819194c3/uvicorn-0.35.0-py3-none-any.whl", hash = "sha256:197535216b25ff9b785e29a0b79199f55222193d47f820816e7da751e9bc8d4a", size = 66406, upload-time = "2025-06-28T16:15:44.816Z" }, +] + +[package.optional-dependencies] +standard = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "httptools" }, + { name = "python-dotenv" }, + { name = "pyyaml" }, + { name = "uvloop", marker = "platform_python_implementation != 'PyPy' and sys_platform != 'cygwin' and sys_platform != 'win32'" }, + { name = "watchfiles" }, + { name = "websockets" }, +] + +[[package]] +name = "uvloop" +version = "0.21.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/af/c0/854216d09d33c543f12a44b393c402e89a920b1a0a7dc634c42de91b9cf6/uvloop-0.21.0.tar.gz", hash = "sha256:3bf12b0fda68447806a7ad847bfa591613177275d35b6724b1ee573faa3704e3", size = 2492741, upload-time = "2024-10-14T23:38:35.489Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8c/4c/03f93178830dc7ce8b4cdee1d36770d2f5ebb6f3d37d354e061eefc73545/uvloop-0.21.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:359ec2c888397b9e592a889c4d72ba3d6befba8b2bb01743f72fffbde663b59c", size = 1471284, upload-time = "2024-10-14T23:37:47.833Z" }, + { url = "https://files.pythonhosted.org/packages/43/3e/92c03f4d05e50f09251bd8b2b2b584a2a7f8fe600008bcc4523337abe676/uvloop-0.21.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:f7089d2dc73179ce5ac255bdf37c236a9f914b264825fdaacaded6990a7fb4c2", size = 821349, upload-time = "2024-10-14T23:37:50.149Z" }, + { url = "https://files.pythonhosted.org/packages/a6/ef/a02ec5da49909dbbfb1fd205a9a1ac4e88ea92dcae885e7c961847cd51e2/uvloop-0.21.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:baa4dcdbd9ae0a372f2167a207cd98c9f9a1ea1188a8a526431eef2f8116cc8d", size = 4580089, upload-time = "2024-10-14T23:37:51.703Z" }, + { url = "https://files.pythonhosted.org/packages/06/a7/b4e6a19925c900be9f98bec0a75e6e8f79bb53bdeb891916609ab3958967/uvloop-0.21.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:86975dca1c773a2c9864f4c52c5a55631038e387b47eaf56210f873887b6c8dc", size = 4693770, upload-time = "2024-10-14T23:37:54.122Z" }, + { url = "https://files.pythonhosted.org/packages/ce/0c/f07435a18a4b94ce6bd0677d8319cd3de61f3a9eeb1e5f8ab4e8b5edfcb3/uvloop-0.21.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:461d9ae6660fbbafedd07559c6a2e57cd553b34b0065b6550685f6653a98c1cb", size = 4451321, upload-time = "2024-10-14T23:37:55.766Z" }, + { url = "https://files.pythonhosted.org/packages/8f/eb/f7032be105877bcf924709c97b1bf3b90255b4ec251f9340cef912559f28/uvloop-0.21.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:183aef7c8730e54c9a3ee3227464daed66e37ba13040bb3f350bc2ddc040f22f", size = 4659022, upload-time = "2024-10-14T23:37:58.195Z" }, + { url = "https://files.pythonhosted.org/packages/3f/8d/2cbef610ca21539f0f36e2b34da49302029e7c9f09acef0b1c3b5839412b/uvloop-0.21.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:bfd55dfcc2a512316e65f16e503e9e450cab148ef11df4e4e679b5e8253a5281", size = 1468123, upload-time = "2024-10-14T23:38:00.688Z" }, + { url = "https://files.pythonhosted.org/packages/93/0d/b0038d5a469f94ed8f2b2fce2434a18396d8fbfb5da85a0a9781ebbdec14/uvloop-0.21.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:787ae31ad8a2856fc4e7c095341cccc7209bd657d0e71ad0dc2ea83c4a6fa8af", size = 819325, upload-time = "2024-10-14T23:38:02.309Z" }, + { url = "https://files.pythonhosted.org/packages/50/94/0a687f39e78c4c1e02e3272c6b2ccdb4e0085fda3b8352fecd0410ccf915/uvloop-0.21.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5ee4d4ef48036ff6e5cfffb09dd192c7a5027153948d85b8da7ff705065bacc6", size = 4582806, upload-time = "2024-10-14T23:38:04.711Z" }, + { url = "https://files.pythonhosted.org/packages/d2/19/f5b78616566ea68edd42aacaf645adbf71fbd83fc52281fba555dc27e3f1/uvloop-0.21.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f3df876acd7ec037a3d005b3ab85a7e4110422e4d9c1571d4fc89b0fc41b6816", size = 4701068, upload-time = "2024-10-14T23:38:06.385Z" }, + { url = "https://files.pythonhosted.org/packages/47/57/66f061ee118f413cd22a656de622925097170b9380b30091b78ea0c6ea75/uvloop-0.21.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bd53ecc9a0f3d87ab847503c2e1552b690362e005ab54e8a48ba97da3924c0dc", size = 4454428, upload-time = "2024-10-14T23:38:08.416Z" }, + { url = "https://files.pythonhosted.org/packages/63/9a/0962b05b308494e3202d3f794a6e85abe471fe3cafdbcf95c2e8c713aabd/uvloop-0.21.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a5c39f217ab3c663dc699c04cbd50c13813e31d917642d459fdcec07555cc553", size = 4660018, upload-time = "2024-10-14T23:38:10.888Z" }, +] + +[[package]] +name = "vine" +version = "5.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/bd/e4/d07b5f29d283596b9727dd5275ccbceb63c44a1a82aa9e4bfd20426762ac/vine-5.1.0.tar.gz", hash = "sha256:8b62e981d35c41049211cf62a0a1242d8c1ee9bd15bb196ce38aefd6799e61e0", size = 48980, upload-time = "2023-11-05T08:46:53.857Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/03/ff/7c0c86c43b3cbb927e0ccc0255cb4057ceba4799cd44ae95174ce8e8b5b2/vine-5.1.0-py3-none-any.whl", hash = "sha256:40fdf3c48b2cfe1c38a49e9ae2da6fda88e4794c810050a728bd7413811fb1dc", size = 9636, upload-time = "2023-11-05T08:46:51.205Z" }, +] + +[[package]] +name = "watchdog" +version = "6.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/db/7d/7f3d619e951c88ed75c6037b246ddcf2d322812ee8ea189be89511721d54/watchdog-6.0.0.tar.gz", hash = "sha256:9ddf7c82fda3ae8e24decda1338ede66e1c99883db93711d8fb941eaa2d8c282", size = 131220, upload-time = "2024-11-01T14:07:13.037Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a9/c7/ca4bf3e518cb57a686b2feb4f55a1892fd9a3dd13f470fca14e00f80ea36/watchdog-6.0.0-py3-none-manylinux2014_aarch64.whl", hash = "sha256:7607498efa04a3542ae3e05e64da8202e58159aa1fa4acddf7678d34a35d4f13", size = 79079, upload-time = "2024-11-01T14:06:59.472Z" }, + { url = "https://files.pythonhosted.org/packages/5c/51/d46dc9332f9a647593c947b4b88e2381c8dfc0942d15b8edc0310fa4abb1/watchdog-6.0.0-py3-none-manylinux2014_armv7l.whl", hash = "sha256:9041567ee8953024c83343288ccc458fd0a2d811d6a0fd68c4c22609e3490379", size = 79078, upload-time = "2024-11-01T14:07:01.431Z" }, + { url = "https://files.pythonhosted.org/packages/d4/57/04edbf5e169cd318d5f07b4766fee38e825d64b6913ca157ca32d1a42267/watchdog-6.0.0-py3-none-manylinux2014_i686.whl", hash = "sha256:82dc3e3143c7e38ec49d61af98d6558288c415eac98486a5c581726e0737c00e", size = 79076, upload-time = "2024-11-01T14:07:02.568Z" }, + { url = "https://files.pythonhosted.org/packages/ab/cc/da8422b300e13cb187d2203f20b9253e91058aaf7db65b74142013478e66/watchdog-6.0.0-py3-none-manylinux2014_ppc64.whl", hash = "sha256:212ac9b8bf1161dc91bd09c048048a95ca3a4c4f5e5d4a7d1b1a7d5752a7f96f", size = 79077, upload-time = "2024-11-01T14:07:03.893Z" }, + { url = "https://files.pythonhosted.org/packages/2c/3b/b8964e04ae1a025c44ba8e4291f86e97fac443bca31de8bd98d3263d2fcf/watchdog-6.0.0-py3-none-manylinux2014_ppc64le.whl", hash = "sha256:e3df4cbb9a450c6d49318f6d14f4bbc80d763fa587ba46ec86f99f9e6876bb26", size = 79078, upload-time = "2024-11-01T14:07:05.189Z" }, + { url = "https://files.pythonhosted.org/packages/62/ae/a696eb424bedff7407801c257d4b1afda455fe40821a2be430e173660e81/watchdog-6.0.0-py3-none-manylinux2014_s390x.whl", hash = "sha256:2cce7cfc2008eb51feb6aab51251fd79b85d9894e98ba847408f662b3395ca3c", size = 79077, upload-time = "2024-11-01T14:07:06.376Z" }, + { url = "https://files.pythonhosted.org/packages/b5/e8/dbf020b4d98251a9860752a094d09a65e1b436ad181faf929983f697048f/watchdog-6.0.0-py3-none-manylinux2014_x86_64.whl", hash = "sha256:20ffe5b202af80ab4266dcd3e91aae72bf2da48c0d33bdb15c66658e685e94e2", size = 79078, upload-time = "2024-11-01T14:07:07.547Z" }, + { url = "https://files.pythonhosted.org/packages/07/f6/d0e5b343768e8bcb4cda79f0f2f55051bf26177ecd5651f84c07567461cf/watchdog-6.0.0-py3-none-win32.whl", hash = "sha256:07df1fdd701c5d4c8e55ef6cf55b8f0120fe1aef7ef39a1c6fc6bc2e606d517a", size = 79065, upload-time = "2024-11-01T14:07:09.525Z" }, + { url = "https://files.pythonhosted.org/packages/db/d9/c495884c6e548fce18a8f40568ff120bc3a4b7b99813081c8ac0c936fa64/watchdog-6.0.0-py3-none-win_amd64.whl", hash = "sha256:cbafb470cf848d93b5d013e2ecb245d4aa1c8fd0504e863ccefa32445359d680", size = 79070, upload-time = "2024-11-01T14:07:10.686Z" }, + { url = "https://files.pythonhosted.org/packages/33/e8/e40370e6d74ddba47f002a32919d91310d6074130fe4e17dabcafc15cbf1/watchdog-6.0.0-py3-none-win_ia64.whl", hash = "sha256:a1914259fa9e1454315171103c6a30961236f508b9b623eae470268bbcc6a22f", size = 79067, upload-time = "2024-11-01T14:07:11.845Z" }, +] + +[[package]] +name = "watchfiles" +version = "1.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/2a/9a/d451fcc97d029f5812e898fd30a53fd8c15c7bbd058fd75cfc6beb9bd761/watchfiles-1.1.0.tar.gz", hash = "sha256:693ed7ec72cbfcee399e92c895362b6e66d63dac6b91e2c11ae03d10d503e575", size = 94406, upload-time = "2025-06-15T19:06:59.42Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f6/b8/858957045a38a4079203a33aaa7d23ea9269ca7761c8a074af3524fbb240/watchfiles-1.1.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:9dc001c3e10de4725c749d4c2f2bdc6ae24de5a88a339c4bce32300a31ede179", size = 402339, upload-time = "2025-06-15T19:05:24.516Z" }, + { url = "https://files.pythonhosted.org/packages/80/28/98b222cca751ba68e88521fabd79a4fab64005fc5976ea49b53fa205d1fa/watchfiles-1.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d9ba68ec283153dead62cbe81872d28e053745f12335d037de9cbd14bd1877f5", size = 394409, upload-time = "2025-06-15T19:05:25.469Z" }, + { url = "https://files.pythonhosted.org/packages/86/50/dee79968566c03190677c26f7f47960aff738d32087087bdf63a5473e7df/watchfiles-1.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:130fc497b8ee68dce163e4254d9b0356411d1490e868bd8790028bc46c5cc297", size = 450939, upload-time = "2025-06-15T19:05:26.494Z" }, + { url = "https://files.pythonhosted.org/packages/40/45/a7b56fb129700f3cfe2594a01aa38d033b92a33dddce86c8dfdfc1247b72/watchfiles-1.1.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:50a51a90610d0845a5931a780d8e51d7bd7f309ebc25132ba975aca016b576a0", size = 457270, upload-time = "2025-06-15T19:05:27.466Z" }, + { url = "https://files.pythonhosted.org/packages/b5/c8/fa5ef9476b1d02dc6b5e258f515fcaaecf559037edf8b6feffcbc097c4b8/watchfiles-1.1.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:dc44678a72ac0910bac46fa6a0de6af9ba1355669b3dfaf1ce5f05ca7a74364e", size = 483370, upload-time = "2025-06-15T19:05:28.548Z" }, + { url = "https://files.pythonhosted.org/packages/98/68/42cfcdd6533ec94f0a7aab83f759ec11280f70b11bfba0b0f885e298f9bd/watchfiles-1.1.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a543492513a93b001975ae283a51f4b67973662a375a403ae82f420d2c7205ee", size = 598654, upload-time = "2025-06-15T19:05:29.997Z" }, + { url = "https://files.pythonhosted.org/packages/d3/74/b2a1544224118cc28df7e59008a929e711f9c68ce7d554e171b2dc531352/watchfiles-1.1.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8ac164e20d17cc285f2b94dc31c384bc3aa3dd5e7490473b3db043dd70fbccfd", size = 478667, upload-time = "2025-06-15T19:05:31.172Z" }, + { url = "https://files.pythonhosted.org/packages/8c/77/e3362fe308358dc9f8588102481e599c83e1b91c2ae843780a7ded939a35/watchfiles-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f7590d5a455321e53857892ab8879dce62d1f4b04748769f5adf2e707afb9d4f", size = 452213, upload-time = "2025-06-15T19:05:32.299Z" }, + { url = "https://files.pythonhosted.org/packages/6e/17/c8f1a36540c9a1558d4faf08e909399e8133599fa359bf52ec8fcee5be6f/watchfiles-1.1.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:37d3d3f7defb13f62ece99e9be912afe9dd8a0077b7c45ee5a57c74811d581a4", size = 626718, upload-time = "2025-06-15T19:05:33.415Z" }, + { url = "https://files.pythonhosted.org/packages/26/45/fb599be38b4bd38032643783d7496a26a6f9ae05dea1a42e58229a20ac13/watchfiles-1.1.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:7080c4bb3efd70a07b1cc2df99a7aa51d98685be56be6038c3169199d0a1c69f", size = 623098, upload-time = "2025-06-15T19:05:34.534Z" }, + { url = "https://files.pythonhosted.org/packages/a1/e7/fdf40e038475498e160cd167333c946e45d8563ae4dd65caf757e9ffe6b4/watchfiles-1.1.0-cp312-cp312-win32.whl", hash = "sha256:cbcf8630ef4afb05dc30107bfa17f16c0896bb30ee48fc24bf64c1f970f3b1fd", size = 279209, upload-time = "2025-06-15T19:05:35.577Z" }, + { url = "https://files.pythonhosted.org/packages/3f/d3/3ae9d5124ec75143bdf088d436cba39812122edc47709cd2caafeac3266f/watchfiles-1.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:cbd949bdd87567b0ad183d7676feb98136cde5bb9025403794a4c0db28ed3a47", size = 292786, upload-time = "2025-06-15T19:05:36.559Z" }, + { url = "https://files.pythonhosted.org/packages/26/2f/7dd4fc8b5f2b34b545e19629b4a018bfb1de23b3a496766a2c1165ca890d/watchfiles-1.1.0-cp312-cp312-win_arm64.whl", hash = "sha256:0a7d40b77f07be87c6faa93d0951a0fcd8cbca1ddff60a1b65d741bac6f3a9f6", size = 284343, upload-time = "2025-06-15T19:05:37.5Z" }, + { url = "https://files.pythonhosted.org/packages/d3/42/fae874df96595556a9089ade83be34a2e04f0f11eb53a8dbf8a8a5e562b4/watchfiles-1.1.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:5007f860c7f1f8df471e4e04aaa8c43673429047d63205d1630880f7637bca30", size = 402004, upload-time = "2025-06-15T19:05:38.499Z" }, + { url = "https://files.pythonhosted.org/packages/fa/55/a77e533e59c3003d9803c09c44c3651224067cbe7fb5d574ddbaa31e11ca/watchfiles-1.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:20ecc8abbd957046f1fe9562757903f5eaf57c3bce70929fda6c7711bb58074a", size = 393671, upload-time = "2025-06-15T19:05:39.52Z" }, + { url = "https://files.pythonhosted.org/packages/05/68/b0afb3f79c8e832e6571022611adbdc36e35a44e14f129ba09709aa4bb7a/watchfiles-1.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f2f0498b7d2a3c072766dba3274fe22a183dbea1f99d188f1c6c72209a1063dc", size = 449772, upload-time = "2025-06-15T19:05:40.897Z" }, + { url = "https://files.pythonhosted.org/packages/ff/05/46dd1f6879bc40e1e74c6c39a1b9ab9e790bf1f5a2fe6c08b463d9a807f4/watchfiles-1.1.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:239736577e848678e13b201bba14e89718f5c2133dfd6b1f7846fa1b58a8532b", size = 456789, upload-time = "2025-06-15T19:05:42.045Z" }, + { url = "https://files.pythonhosted.org/packages/8b/ca/0eeb2c06227ca7f12e50a47a3679df0cd1ba487ea19cf844a905920f8e95/watchfiles-1.1.0-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eff4b8d89f444f7e49136dc695599a591ff769300734446c0a86cba2eb2f9895", size = 482551, upload-time = "2025-06-15T19:05:43.781Z" }, + { url = "https://files.pythonhosted.org/packages/31/47/2cecbd8694095647406645f822781008cc524320466ea393f55fe70eed3b/watchfiles-1.1.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:12b0a02a91762c08f7264e2e79542f76870c3040bbc847fb67410ab81474932a", size = 597420, upload-time = "2025-06-15T19:05:45.244Z" }, + { url = "https://files.pythonhosted.org/packages/d9/7e/82abc4240e0806846548559d70f0b1a6dfdca75c1b4f9fa62b504ae9b083/watchfiles-1.1.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:29e7bc2eee15cbb339c68445959108803dc14ee0c7b4eea556400131a8de462b", size = 477950, upload-time = "2025-06-15T19:05:46.332Z" }, + { url = "https://files.pythonhosted.org/packages/25/0d/4d564798a49bf5482a4fa9416dea6b6c0733a3b5700cb8a5a503c4b15853/watchfiles-1.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d9481174d3ed982e269c090f780122fb59cee6c3796f74efe74e70f7780ed94c", size = 451706, upload-time = "2025-06-15T19:05:47.459Z" }, + { url = "https://files.pythonhosted.org/packages/81/b5/5516cf46b033192d544102ea07c65b6f770f10ed1d0a6d388f5d3874f6e4/watchfiles-1.1.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:80f811146831c8c86ab17b640801c25dc0a88c630e855e2bef3568f30434d52b", size = 625814, upload-time = "2025-06-15T19:05:48.654Z" }, + { url = "https://files.pythonhosted.org/packages/0c/dd/7c1331f902f30669ac3e754680b6edb9a0dd06dea5438e61128111fadd2c/watchfiles-1.1.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:60022527e71d1d1fda67a33150ee42869042bce3d0fcc9cc49be009a9cded3fb", size = 622820, upload-time = "2025-06-15T19:05:50.088Z" }, + { url = "https://files.pythonhosted.org/packages/1b/14/36d7a8e27cd128d7b1009e7715a7c02f6c131be9d4ce1e5c3b73d0e342d8/watchfiles-1.1.0-cp313-cp313-win32.whl", hash = "sha256:32d6d4e583593cb8576e129879ea0991660b935177c0f93c6681359b3654bfa9", size = 279194, upload-time = "2025-06-15T19:05:51.186Z" }, + { url = "https://files.pythonhosted.org/packages/25/41/2dd88054b849aa546dbeef5696019c58f8e0774f4d1c42123273304cdb2e/watchfiles-1.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:f21af781a4a6fbad54f03c598ab620e3a77032c5878f3d780448421a6e1818c7", size = 292349, upload-time = "2025-06-15T19:05:52.201Z" }, + { url = "https://files.pythonhosted.org/packages/c8/cf/421d659de88285eb13941cf11a81f875c176f76a6d99342599be88e08d03/watchfiles-1.1.0-cp313-cp313-win_arm64.whl", hash = "sha256:5366164391873ed76bfdf618818c82084c9db7fac82b64a20c44d335eec9ced5", size = 283836, upload-time = "2025-06-15T19:05:53.265Z" }, + { url = "https://files.pythonhosted.org/packages/45/10/6faf6858d527e3599cc50ec9fcae73590fbddc1420bd4fdccfebffeedbc6/watchfiles-1.1.0-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:17ab167cca6339c2b830b744eaf10803d2a5b6683be4d79d8475d88b4a8a4be1", size = 400343, upload-time = "2025-06-15T19:05:54.252Z" }, + { url = "https://files.pythonhosted.org/packages/03/20/5cb7d3966f5e8c718006d0e97dfe379a82f16fecd3caa7810f634412047a/watchfiles-1.1.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:328dbc9bff7205c215a7807da7c18dce37da7da718e798356212d22696404339", size = 392916, upload-time = "2025-06-15T19:05:55.264Z" }, + { url = "https://files.pythonhosted.org/packages/8c/07/d8f1176328fa9e9581b6f120b017e286d2a2d22ae3f554efd9515c8e1b49/watchfiles-1.1.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f7208ab6e009c627b7557ce55c465c98967e8caa8b11833531fdf95799372633", size = 449582, upload-time = "2025-06-15T19:05:56.317Z" }, + { url = "https://files.pythonhosted.org/packages/66/e8/80a14a453cf6038e81d072a86c05276692a1826471fef91df7537dba8b46/watchfiles-1.1.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a8f6f72974a19efead54195bc9bed4d850fc047bb7aa971268fd9a8387c89011", size = 456752, upload-time = "2025-06-15T19:05:57.359Z" }, + { url = "https://files.pythonhosted.org/packages/5a/25/0853b3fe0e3c2f5af9ea60eb2e781eade939760239a72c2d38fc4cc335f6/watchfiles-1.1.0-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d181ef50923c29cf0450c3cd47e2f0557b62218c50b2ab8ce2ecaa02bd97e670", size = 481436, upload-time = "2025-06-15T19:05:58.447Z" }, + { url = "https://files.pythonhosted.org/packages/fe/9e/4af0056c258b861fbb29dcb36258de1e2b857be4a9509e6298abcf31e5c9/watchfiles-1.1.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:adb4167043d3a78280d5d05ce0ba22055c266cf8655ce942f2fb881262ff3cdf", size = 596016, upload-time = "2025-06-15T19:05:59.59Z" }, + { url = "https://files.pythonhosted.org/packages/c5/fa/95d604b58aa375e781daf350897aaaa089cff59d84147e9ccff2447c8294/watchfiles-1.1.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8c5701dc474b041e2934a26d31d39f90fac8a3dee2322b39f7729867f932b1d4", size = 476727, upload-time = "2025-06-15T19:06:01.086Z" }, + { url = "https://files.pythonhosted.org/packages/65/95/fe479b2664f19be4cf5ceeb21be05afd491d95f142e72d26a42f41b7c4f8/watchfiles-1.1.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b067915e3c3936966a8607f6fe5487df0c9c4afb85226613b520890049deea20", size = 451864, upload-time = "2025-06-15T19:06:02.144Z" }, + { url = "https://files.pythonhosted.org/packages/d3/8a/3c4af14b93a15ce55901cd7a92e1a4701910f1768c78fb30f61d2b79785b/watchfiles-1.1.0-cp313-cp313t-musllinux_1_1_aarch64.whl", hash = "sha256:9c733cda03b6d636b4219625a4acb5c6ffb10803338e437fb614fef9516825ef", size = 625626, upload-time = "2025-06-15T19:06:03.578Z" }, + { url = "https://files.pythonhosted.org/packages/da/f5/cf6aa047d4d9e128f4b7cde615236a915673775ef171ff85971d698f3c2c/watchfiles-1.1.0-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:cc08ef8b90d78bfac66f0def80240b0197008e4852c9f285907377b2947ffdcb", size = 622744, upload-time = "2025-06-15T19:06:05.066Z" }, + { url = "https://files.pythonhosted.org/packages/2c/00/70f75c47f05dea6fd30df90f047765f6fc2d6eb8b5a3921379b0b04defa2/watchfiles-1.1.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:9974d2f7dc561cce3bb88dfa8eb309dab64c729de85fba32e98d75cf24b66297", size = 402114, upload-time = "2025-06-15T19:06:06.186Z" }, + { url = "https://files.pythonhosted.org/packages/53/03/acd69c48db4a1ed1de26b349d94077cca2238ff98fd64393f3e97484cae6/watchfiles-1.1.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c68e9f1fcb4d43798ad8814c4c1b61547b014b667216cb754e606bfade587018", size = 393879, upload-time = "2025-06-15T19:06:07.369Z" }, + { url = "https://files.pythonhosted.org/packages/2f/c8/a9a2a6f9c8baa4eceae5887fecd421e1b7ce86802bcfc8b6a942e2add834/watchfiles-1.1.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:95ab1594377effac17110e1352989bdd7bdfca9ff0e5eeccd8c69c5389b826d0", size = 450026, upload-time = "2025-06-15T19:06:08.476Z" }, + { url = "https://files.pythonhosted.org/packages/fe/51/d572260d98388e6e2b967425c985e07d47ee6f62e6455cefb46a6e06eda5/watchfiles-1.1.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fba9b62da882c1be1280a7584ec4515d0a6006a94d6e5819730ec2eab60ffe12", size = 457917, upload-time = "2025-06-15T19:06:09.988Z" }, + { url = "https://files.pythonhosted.org/packages/c6/2d/4258e52917bf9f12909b6ec314ff9636276f3542f9d3807d143f27309104/watchfiles-1.1.0-cp314-cp314-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3434e401f3ce0ed6b42569128b3d1e3af773d7ec18751b918b89cd49c14eaafb", size = 483602, upload-time = "2025-06-15T19:06:11.088Z" }, + { url = "https://files.pythonhosted.org/packages/84/99/bee17a5f341a4345fe7b7972a475809af9e528deba056f8963d61ea49f75/watchfiles-1.1.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fa257a4d0d21fcbca5b5fcba9dca5a78011cb93c0323fb8855c6d2dfbc76eb77", size = 596758, upload-time = "2025-06-15T19:06:12.197Z" }, + { url = "https://files.pythonhosted.org/packages/40/76/e4bec1d59b25b89d2b0716b41b461ed655a9a53c60dc78ad5771fda5b3e6/watchfiles-1.1.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7fd1b3879a578a8ec2076c7961076df540b9af317123f84569f5a9ddee64ce92", size = 477601, upload-time = "2025-06-15T19:06:13.391Z" }, + { url = "https://files.pythonhosted.org/packages/1f/fa/a514292956f4a9ce3c567ec0c13cce427c158e9f272062685a8a727d08fc/watchfiles-1.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:62cc7a30eeb0e20ecc5f4bd113cd69dcdb745a07c68c0370cea919f373f65d9e", size = 451936, upload-time = "2025-06-15T19:06:14.656Z" }, + { url = "https://files.pythonhosted.org/packages/32/5d/c3bf927ec3bbeb4566984eba8dd7a8eb69569400f5509904545576741f88/watchfiles-1.1.0-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:891c69e027748b4a73847335d208e374ce54ca3c335907d381fde4e41661b13b", size = 626243, upload-time = "2025-06-15T19:06:16.232Z" }, + { url = "https://files.pythonhosted.org/packages/e6/65/6e12c042f1a68c556802a84d54bb06d35577c81e29fba14019562479159c/watchfiles-1.1.0-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:12fe8eaffaf0faa7906895b4f8bb88264035b3f0243275e0bf24af0436b27259", size = 623073, upload-time = "2025-06-15T19:06:17.457Z" }, + { url = "https://files.pythonhosted.org/packages/89/ab/7f79d9bf57329e7cbb0a6fd4c7bd7d0cee1e4a8ef0041459f5409da3506c/watchfiles-1.1.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:bfe3c517c283e484843cb2e357dd57ba009cff351edf45fb455b5fbd1f45b15f", size = 400872, upload-time = "2025-06-15T19:06:18.57Z" }, + { url = "https://files.pythonhosted.org/packages/df/d5/3f7bf9912798e9e6c516094db6b8932df53b223660c781ee37607030b6d3/watchfiles-1.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:a9ccbf1f129480ed3044f540c0fdbc4ee556f7175e5ab40fe077ff6baf286d4e", size = 392877, upload-time = "2025-06-15T19:06:19.55Z" }, + { url = "https://files.pythonhosted.org/packages/0d/c5/54ec7601a2798604e01c75294770dbee8150e81c6e471445d7601610b495/watchfiles-1.1.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ba0e3255b0396cac3cc7bbace76404dd72b5438bf0d8e7cefa2f79a7f3649caa", size = 449645, upload-time = "2025-06-15T19:06:20.66Z" }, + { url = "https://files.pythonhosted.org/packages/0a/04/c2f44afc3b2fce21ca0b7802cbd37ed90a29874f96069ed30a36dfe57c2b/watchfiles-1.1.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4281cd9fce9fc0a9dbf0fc1217f39bf9cf2b4d315d9626ef1d4e87b84699e7e8", size = 457424, upload-time = "2025-06-15T19:06:21.712Z" }, + { url = "https://files.pythonhosted.org/packages/9f/b0/eec32cb6c14d248095261a04f290636da3df3119d4040ef91a4a50b29fa5/watchfiles-1.1.0-cp314-cp314t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6d2404af8db1329f9a3c9b79ff63e0ae7131986446901582067d9304ae8aaf7f", size = 481584, upload-time = "2025-06-15T19:06:22.777Z" }, + { url = "https://files.pythonhosted.org/packages/d1/e2/ca4bb71c68a937d7145aa25709e4f5d68eb7698a25ce266e84b55d591bbd/watchfiles-1.1.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e78b6ed8165996013165eeabd875c5dfc19d41b54f94b40e9fff0eb3193e5e8e", size = 596675, upload-time = "2025-06-15T19:06:24.226Z" }, + { url = "https://files.pythonhosted.org/packages/a1/dd/b0e4b7fb5acf783816bc950180a6cd7c6c1d2cf7e9372c0ea634e722712b/watchfiles-1.1.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:249590eb75ccc117f488e2fabd1bfa33c580e24b96f00658ad88e38844a040bb", size = 477363, upload-time = "2025-06-15T19:06:25.42Z" }, + { url = "https://files.pythonhosted.org/packages/69/c4/088825b75489cb5b6a761a4542645718893d395d8c530b38734f19da44d2/watchfiles-1.1.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d05686b5487cfa2e2c28ff1aa370ea3e6c5accfe6435944ddea1e10d93872147", size = 452240, upload-time = "2025-06-15T19:06:26.552Z" }, + { url = "https://files.pythonhosted.org/packages/10/8c/22b074814970eeef43b7c44df98c3e9667c1f7bf5b83e0ff0201b0bd43f9/watchfiles-1.1.0-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:d0e10e6f8f6dc5762adee7dece33b722282e1f59aa6a55da5d493a97282fedd8", size = 625607, upload-time = "2025-06-15T19:06:27.606Z" }, + { url = "https://files.pythonhosted.org/packages/32/fa/a4f5c2046385492b2273213ef815bf71a0d4c1943b784fb904e184e30201/watchfiles-1.1.0-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:af06c863f152005c7592df1d6a7009c836a247c9d8adb78fef8575a5a98699db", size = 623315, upload-time = "2025-06-15T19:06:29.076Z" }, +] + +[[package]] +name = "wcwidth" +version = "0.2.13" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/6c/63/53559446a878410fc5a5974feb13d31d78d752eb18aeba59c7fef1af7598/wcwidth-0.2.13.tar.gz", hash = "sha256:72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5", size = 101301, upload-time = "2024-01-06T02:10:57.829Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fd/84/fd2ba7aafacbad3c4201d395674fc6348826569da3c0937e75505ead3528/wcwidth-0.2.13-py2.py3-none-any.whl", hash = "sha256:3da69048e4540d84af32131829ff948f1e022c1c6bdb8d6102117aac784f6859", size = 34166, upload-time = "2024-01-06T02:10:55.763Z" }, +] + +[[package]] +name = "websockets" +version = "15.0.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/21/e6/26d09fab466b7ca9c7737474c52be4f76a40301b08362eb2dbc19dcc16c1/websockets-15.0.1.tar.gz", hash = "sha256:82544de02076bafba038ce055ee6412d68da13ab47f0c60cab827346de828dee", size = 177016, upload-time = "2025-03-05T20:03:41.606Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/51/6b/4545a0d843594f5d0771e86463606a3988b5a09ca5123136f8a76580dd63/websockets-15.0.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:3e90baa811a5d73f3ca0bcbf32064d663ed81318ab225ee4f427ad4e26e5aff3", size = 175437, upload-time = "2025-03-05T20:02:16.706Z" }, + { url = "https://files.pythonhosted.org/packages/f4/71/809a0f5f6a06522af902e0f2ea2757f71ead94610010cf570ab5c98e99ed/websockets-15.0.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:592f1a9fe869c778694f0aa806ba0374e97648ab57936f092fd9d87f8bc03665", size = 173096, upload-time = "2025-03-05T20:02:18.832Z" }, + { url = "https://files.pythonhosted.org/packages/3d/69/1a681dd6f02180916f116894181eab8b2e25b31e484c5d0eae637ec01f7c/websockets-15.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0701bc3cfcb9164d04a14b149fd74be7347a530ad3bbf15ab2c678a2cd3dd9a2", size = 173332, upload-time = "2025-03-05T20:02:20.187Z" }, + { url = "https://files.pythonhosted.org/packages/a6/02/0073b3952f5bce97eafbb35757f8d0d54812b6174ed8dd952aa08429bcc3/websockets-15.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e8b56bdcdb4505c8078cb6c7157d9811a85790f2f2b3632c7d1462ab5783d215", size = 183152, upload-time = "2025-03-05T20:02:22.286Z" }, + { url = "https://files.pythonhosted.org/packages/74/45/c205c8480eafd114b428284840da0b1be9ffd0e4f87338dc95dc6ff961a1/websockets-15.0.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0af68c55afbd5f07986df82831c7bff04846928ea8d1fd7f30052638788bc9b5", size = 182096, upload-time = "2025-03-05T20:02:24.368Z" }, + { url = "https://files.pythonhosted.org/packages/14/8f/aa61f528fba38578ec553c145857a181384c72b98156f858ca5c8e82d9d3/websockets-15.0.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:64dee438fed052b52e4f98f76c5790513235efaa1ef7f3f2192c392cd7c91b65", size = 182523, upload-time = "2025-03-05T20:02:25.669Z" }, + { url = "https://files.pythonhosted.org/packages/ec/6d/0267396610add5bc0d0d3e77f546d4cd287200804fe02323797de77dbce9/websockets-15.0.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:d5f6b181bb38171a8ad1d6aa58a67a6aa9d4b38d0f8c5f496b9e42561dfc62fe", size = 182790, upload-time = "2025-03-05T20:02:26.99Z" }, + { url = "https://files.pythonhosted.org/packages/02/05/c68c5adbf679cf610ae2f74a9b871ae84564462955d991178f95a1ddb7dd/websockets-15.0.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:5d54b09eba2bada6011aea5375542a157637b91029687eb4fdb2dab11059c1b4", size = 182165, upload-time = "2025-03-05T20:02:30.291Z" }, + { url = "https://files.pythonhosted.org/packages/29/93/bb672df7b2f5faac89761cb5fa34f5cec45a4026c383a4b5761c6cea5c16/websockets-15.0.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:3be571a8b5afed347da347bfcf27ba12b069d9d7f42cb8c7028b5e98bbb12597", size = 182160, upload-time = "2025-03-05T20:02:31.634Z" }, + { url = "https://files.pythonhosted.org/packages/ff/83/de1f7709376dc3ca9b7eeb4b9a07b4526b14876b6d372a4dc62312bebee0/websockets-15.0.1-cp312-cp312-win32.whl", hash = "sha256:c338ffa0520bdb12fbc527265235639fb76e7bc7faafbb93f6ba80d9c06578a9", size = 176395, upload-time = "2025-03-05T20:02:33.017Z" }, + { url = "https://files.pythonhosted.org/packages/7d/71/abf2ebc3bbfa40f391ce1428c7168fb20582d0ff57019b69ea20fa698043/websockets-15.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:fcd5cf9e305d7b8338754470cf69cf81f420459dbae8a3b40cee57417f4614a7", size = 176841, upload-time = "2025-03-05T20:02:34.498Z" }, + { url = "https://files.pythonhosted.org/packages/cb/9f/51f0cf64471a9d2b4d0fc6c534f323b664e7095640c34562f5182e5a7195/websockets-15.0.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ee443ef070bb3b6ed74514f5efaa37a252af57c90eb33b956d35c8e9c10a1931", size = 175440, upload-time = "2025-03-05T20:02:36.695Z" }, + { url = "https://files.pythonhosted.org/packages/8a/05/aa116ec9943c718905997412c5989f7ed671bc0188ee2ba89520e8765d7b/websockets-15.0.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5a939de6b7b4e18ca683218320fc67ea886038265fd1ed30173f5ce3f8e85675", size = 173098, upload-time = "2025-03-05T20:02:37.985Z" }, + { url = "https://files.pythonhosted.org/packages/ff/0b/33cef55ff24f2d92924923c99926dcce78e7bd922d649467f0eda8368923/websockets-15.0.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:746ee8dba912cd6fc889a8147168991d50ed70447bf18bcda7039f7d2e3d9151", size = 173329, upload-time = "2025-03-05T20:02:39.298Z" }, + { url = "https://files.pythonhosted.org/packages/31/1d/063b25dcc01faa8fada1469bdf769de3768b7044eac9d41f734fd7b6ad6d/websockets-15.0.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:595b6c3969023ecf9041b2936ac3827e4623bfa3ccf007575f04c5a6aa318c22", size = 183111, upload-time = "2025-03-05T20:02:40.595Z" }, + { url = "https://files.pythonhosted.org/packages/93/53/9a87ee494a51bf63e4ec9241c1ccc4f7c2f45fff85d5bde2ff74fcb68b9e/websockets-15.0.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3c714d2fc58b5ca3e285461a4cc0c9a66bd0e24c5da9911e30158286c9b5be7f", size = 182054, upload-time = "2025-03-05T20:02:41.926Z" }, + { url = "https://files.pythonhosted.org/packages/ff/b2/83a6ddf56cdcbad4e3d841fcc55d6ba7d19aeb89c50f24dd7e859ec0805f/websockets-15.0.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0f3c1e2ab208db911594ae5b4f79addeb3501604a165019dd221c0bdcabe4db8", size = 182496, upload-time = "2025-03-05T20:02:43.304Z" }, + { url = "https://files.pythonhosted.org/packages/98/41/e7038944ed0abf34c45aa4635ba28136f06052e08fc2168520bb8b25149f/websockets-15.0.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:229cf1d3ca6c1804400b0a9790dc66528e08a6a1feec0d5040e8b9eb14422375", size = 182829, upload-time = "2025-03-05T20:02:48.812Z" }, + { url = "https://files.pythonhosted.org/packages/e0/17/de15b6158680c7623c6ef0db361da965ab25d813ae54fcfeae2e5b9ef910/websockets-15.0.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:756c56e867a90fb00177d530dca4b097dd753cde348448a1012ed6c5131f8b7d", size = 182217, upload-time = "2025-03-05T20:02:50.14Z" }, + { url = "https://files.pythonhosted.org/packages/33/2b/1f168cb6041853eef0362fb9554c3824367c5560cbdaad89ac40f8c2edfc/websockets-15.0.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:558d023b3df0bffe50a04e710bc87742de35060580a293c2a984299ed83bc4e4", size = 182195, upload-time = "2025-03-05T20:02:51.561Z" }, + { url = "https://files.pythonhosted.org/packages/86/eb/20b6cdf273913d0ad05a6a14aed4b9a85591c18a987a3d47f20fa13dcc47/websockets-15.0.1-cp313-cp313-win32.whl", hash = "sha256:ba9e56e8ceeeedb2e080147ba85ffcd5cd0711b89576b83784d8605a7df455fa", size = 176393, upload-time = "2025-03-05T20:02:53.814Z" }, + { url = "https://files.pythonhosted.org/packages/1b/6c/c65773d6cab416a64d191d6ee8a8b1c68a09970ea6909d16965d26bfed1e/websockets-15.0.1-cp313-cp313-win_amd64.whl", hash = "sha256:e09473f095a819042ecb2ab9465aee615bd9c2028e4ef7d933600a8401c79561", size = 176837, upload-time = "2025-03-05T20:02:55.237Z" }, + { url = "https://files.pythonhosted.org/packages/fa/a8/5b41e0da817d64113292ab1f8247140aac61cbf6cfd085d6a0fa77f4984f/websockets-15.0.1-py3-none-any.whl", hash = "sha256:f7a866fbc1e97b5c617ee4116daaa09b722101d4a3c170c787450ba409f9736f", size = 169743, upload-time = "2025-03-05T20:03:39.41Z" }, +] + +[[package]] +name = "win32-setctime" +version = "1.2.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b3/8f/705086c9d734d3b663af0e9bb3d4de6578d08f46b1b101c2442fd9aecaa2/win32_setctime-1.2.0.tar.gz", hash = "sha256:ae1fdf948f5640aae05c511ade119313fb6a30d7eabe25fef9764dca5873c4c0", size = 4867, upload-time = "2024-12-07T15:28:28.314Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e1/07/c6fe3ad3e685340704d314d765b7912993bcb8dc198f0e7a89382d37974b/win32_setctime-1.2.0-py3-none-any.whl", hash = "sha256:95d644c4e708aba81dc3704a116d8cbc974d70b3bdb8be1d150e36be6e9d1390", size = 4083, upload-time = "2024-12-07T15:28:26.465Z" }, +] + +[[package]] +name = "xxhash" +version = "3.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/00/5e/d6e5258d69df8b4ed8c83b6664f2b47d30d2dec551a29ad72a6c69eafd31/xxhash-3.5.0.tar.gz", hash = "sha256:84f2caddf951c9cbf8dc2e22a89d4ccf5d86391ac6418fe81e3c67d0cf60b45f", size = 84241, upload-time = "2024-08-17T09:20:38.972Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/07/0e/1bfce2502c57d7e2e787600b31c83535af83746885aa1a5f153d8c8059d6/xxhash-3.5.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:14470ace8bd3b5d51318782cd94e6f94431974f16cb3b8dc15d52f3b69df8e00", size = 31969, upload-time = "2024-08-17T09:18:24.025Z" }, + { url = "https://files.pythonhosted.org/packages/3f/d6/8ca450d6fe5b71ce521b4e5db69622383d039e2b253e9b2f24f93265b52c/xxhash-3.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:59aa1203de1cb96dbeab595ded0ad0c0056bb2245ae11fac11c0ceea861382b9", size = 30787, upload-time = "2024-08-17T09:18:25.318Z" }, + { url = "https://files.pythonhosted.org/packages/5b/84/de7c89bc6ef63d750159086a6ada6416cc4349eab23f76ab870407178b93/xxhash-3.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:08424f6648526076e28fae6ea2806c0a7d504b9ef05ae61d196d571e5c879c84", size = 220959, upload-time = "2024-08-17T09:18:26.518Z" }, + { url = "https://files.pythonhosted.org/packages/fe/86/51258d3e8a8545ff26468c977101964c14d56a8a37f5835bc0082426c672/xxhash-3.5.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:61a1ff00674879725b194695e17f23d3248998b843eb5e933007ca743310f793", size = 200006, upload-time = "2024-08-17T09:18:27.905Z" }, + { url = "https://files.pythonhosted.org/packages/02/0a/96973bd325412feccf23cf3680fd2246aebf4b789122f938d5557c54a6b2/xxhash-3.5.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f2f2c61bee5844d41c3eb015ac652a0229e901074951ae48581d58bfb2ba01be", size = 428326, upload-time = "2024-08-17T09:18:29.335Z" }, + { url = "https://files.pythonhosted.org/packages/11/a7/81dba5010f7e733de88af9555725146fc133be97ce36533867f4c7e75066/xxhash-3.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9d32a592cac88d18cc09a89172e1c32d7f2a6e516c3dfde1b9adb90ab5df54a6", size = 194380, upload-time = "2024-08-17T09:18:30.706Z" }, + { url = "https://files.pythonhosted.org/packages/fb/7d/f29006ab398a173f4501c0e4977ba288f1c621d878ec217b4ff516810c04/xxhash-3.5.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:70dabf941dede727cca579e8c205e61121afc9b28516752fd65724be1355cc90", size = 207934, upload-time = "2024-08-17T09:18:32.133Z" }, + { url = "https://files.pythonhosted.org/packages/8a/6e/6e88b8f24612510e73d4d70d9b0c7dff62a2e78451b9f0d042a5462c8d03/xxhash-3.5.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e5d0ddaca65ecca9c10dcf01730165fd858533d0be84c75c327487c37a906a27", size = 216301, upload-time = "2024-08-17T09:18:33.474Z" }, + { url = "https://files.pythonhosted.org/packages/af/51/7862f4fa4b75a25c3b4163c8a873f070532fe5f2d3f9b3fc869c8337a398/xxhash-3.5.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:3e5b5e16c5a480fe5f59f56c30abdeba09ffd75da8d13f6b9b6fd224d0b4d0a2", size = 203351, upload-time = "2024-08-17T09:18:34.889Z" }, + { url = "https://files.pythonhosted.org/packages/22/61/8d6a40f288f791cf79ed5bb113159abf0c81d6efb86e734334f698eb4c59/xxhash-3.5.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:149b7914451eb154b3dfaa721315117ea1dac2cc55a01bfbd4df7c68c5dd683d", size = 210294, upload-time = "2024-08-17T09:18:36.355Z" }, + { url = "https://files.pythonhosted.org/packages/17/02/215c4698955762d45a8158117190261b2dbefe9ae7e5b906768c09d8bc74/xxhash-3.5.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:eade977f5c96c677035ff39c56ac74d851b1cca7d607ab3d8f23c6b859379cab", size = 414674, upload-time = "2024-08-17T09:18:38.536Z" }, + { url = "https://files.pythonhosted.org/packages/31/5c/b7a8db8a3237cff3d535261325d95de509f6a8ae439a5a7a4ffcff478189/xxhash-3.5.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:fa9f547bd98f5553d03160967866a71056a60960be00356a15ecc44efb40ba8e", size = 192022, upload-time = "2024-08-17T09:18:40.138Z" }, + { url = "https://files.pythonhosted.org/packages/78/e3/dd76659b2811b3fd06892a8beb850e1996b63e9235af5a86ea348f053e9e/xxhash-3.5.0-cp312-cp312-win32.whl", hash = "sha256:f7b58d1fd3551b8c80a971199543379be1cee3d0d409e1f6d8b01c1a2eebf1f8", size = 30170, upload-time = "2024-08-17T09:18:42.163Z" }, + { url = "https://files.pythonhosted.org/packages/d9/6b/1c443fe6cfeb4ad1dcf231cdec96eb94fb43d6498b4469ed8b51f8b59a37/xxhash-3.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:fa0cafd3a2af231b4e113fba24a65d7922af91aeb23774a8b78228e6cd785e3e", size = 30040, upload-time = "2024-08-17T09:18:43.699Z" }, + { url = "https://files.pythonhosted.org/packages/0f/eb/04405305f290173acc0350eba6d2f1a794b57925df0398861a20fbafa415/xxhash-3.5.0-cp312-cp312-win_arm64.whl", hash = "sha256:586886c7e89cb9828bcd8a5686b12e161368e0064d040e225e72607b43858ba2", size = 26796, upload-time = "2024-08-17T09:18:45.29Z" }, + { url = "https://files.pythonhosted.org/packages/c9/b8/e4b3ad92d249be5c83fa72916c9091b0965cb0faeff05d9a0a3870ae6bff/xxhash-3.5.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:37889a0d13b0b7d739cfc128b1c902f04e32de17b33d74b637ad42f1c55101f6", size = 31795, upload-time = "2024-08-17T09:18:46.813Z" }, + { url = "https://files.pythonhosted.org/packages/fc/d8/b3627a0aebfbfa4c12a41e22af3742cf08c8ea84f5cc3367b5de2d039cce/xxhash-3.5.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:97a662338797c660178e682f3bc180277b9569a59abfb5925e8620fba00b9fc5", size = 30792, upload-time = "2024-08-17T09:18:47.862Z" }, + { url = "https://files.pythonhosted.org/packages/c3/cc/762312960691da989c7cd0545cb120ba2a4148741c6ba458aa723c00a3f8/xxhash-3.5.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7f85e0108d51092bdda90672476c7d909c04ada6923c14ff9d913c4f7dc8a3bc", size = 220950, upload-time = "2024-08-17T09:18:49.06Z" }, + { url = "https://files.pythonhosted.org/packages/fe/e9/cc266f1042c3c13750e86a535496b58beb12bf8c50a915c336136f6168dc/xxhash-3.5.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:cd2fd827b0ba763ac919440042302315c564fdb797294d86e8cdd4578e3bc7f3", size = 199980, upload-time = "2024-08-17T09:18:50.445Z" }, + { url = "https://files.pythonhosted.org/packages/bf/85/a836cd0dc5cc20376de26b346858d0ac9656f8f730998ca4324921a010b9/xxhash-3.5.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:82085c2abec437abebf457c1d12fccb30cc8b3774a0814872511f0f0562c768c", size = 428324, upload-time = "2024-08-17T09:18:51.988Z" }, + { url = "https://files.pythonhosted.org/packages/b4/0e/15c243775342ce840b9ba34aceace06a1148fa1630cd8ca269e3223987f5/xxhash-3.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:07fda5de378626e502b42b311b049848c2ef38784d0d67b6f30bb5008642f8eb", size = 194370, upload-time = "2024-08-17T09:18:54.164Z" }, + { url = "https://files.pythonhosted.org/packages/87/a1/b028bb02636dfdc190da01951d0703b3d904301ed0ef6094d948983bef0e/xxhash-3.5.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c279f0d2b34ef15f922b77966640ade58b4ccdfef1c4d94b20f2a364617a493f", size = 207911, upload-time = "2024-08-17T09:18:55.509Z" }, + { url = "https://files.pythonhosted.org/packages/80/d5/73c73b03fc0ac73dacf069fdf6036c9abad82de0a47549e9912c955ab449/xxhash-3.5.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:89e66ceed67b213dec5a773e2f7a9e8c58f64daeb38c7859d8815d2c89f39ad7", size = 216352, upload-time = "2024-08-17T09:18:57.073Z" }, + { url = "https://files.pythonhosted.org/packages/b6/2a/5043dba5ddbe35b4fe6ea0a111280ad9c3d4ba477dd0f2d1fe1129bda9d0/xxhash-3.5.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:bcd51708a633410737111e998ceb3b45d3dbc98c0931f743d9bb0a209033a326", size = 203410, upload-time = "2024-08-17T09:18:58.54Z" }, + { url = "https://files.pythonhosted.org/packages/a2/b2/9a8ded888b7b190aed75b484eb5c853ddd48aa2896e7b59bbfbce442f0a1/xxhash-3.5.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:3ff2c0a34eae7df88c868be53a8dd56fbdf592109e21d4bfa092a27b0bf4a7bf", size = 210322, upload-time = "2024-08-17T09:18:59.943Z" }, + { url = "https://files.pythonhosted.org/packages/98/62/440083fafbc917bf3e4b67c2ade621920dd905517e85631c10aac955c1d2/xxhash-3.5.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:4e28503dccc7d32e0b9817aa0cbfc1f45f563b2c995b7a66c4c8a0d232e840c7", size = 414725, upload-time = "2024-08-17T09:19:01.332Z" }, + { url = "https://files.pythonhosted.org/packages/75/db/009206f7076ad60a517e016bb0058381d96a007ce3f79fa91d3010f49cc2/xxhash-3.5.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a6c50017518329ed65a9e4829154626f008916d36295b6a3ba336e2458824c8c", size = 192070, upload-time = "2024-08-17T09:19:03.007Z" }, + { url = "https://files.pythonhosted.org/packages/1f/6d/c61e0668943a034abc3a569cdc5aeae37d686d9da7e39cf2ed621d533e36/xxhash-3.5.0-cp313-cp313-win32.whl", hash = "sha256:53a068fe70301ec30d868ece566ac90d873e3bb059cf83c32e76012c889b8637", size = 30172, upload-time = "2024-08-17T09:19:04.355Z" }, + { url = "https://files.pythonhosted.org/packages/96/14/8416dce965f35e3d24722cdf79361ae154fa23e2ab730e5323aa98d7919e/xxhash-3.5.0-cp313-cp313-win_amd64.whl", hash = "sha256:80babcc30e7a1a484eab952d76a4f4673ff601f54d5142c26826502740e70b43", size = 30041, upload-time = "2024-08-17T09:19:05.435Z" }, + { url = "https://files.pythonhosted.org/packages/27/ee/518b72faa2073f5aa8e3262408d284892cb79cf2754ba0c3a5870645ef73/xxhash-3.5.0-cp313-cp313-win_arm64.whl", hash = "sha256:4811336f1ce11cac89dcbd18f3a25c527c16311709a89313c3acaf771def2d4b", size = 26801, upload-time = "2024-08-17T09:19:06.547Z" }, +] + +[[package]] +name = "yarl" +version = "1.20.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "idna" }, + { name = "multidict" }, + { name = "propcache" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/3c/fb/efaa23fa4e45537b827620f04cf8f3cd658b76642205162e072703a5b963/yarl-1.20.1.tar.gz", hash = "sha256:d017a4997ee50c91fd5466cef416231bb82177b93b029906cefc542ce14c35ac", size = 186428, upload-time = "2025-06-10T00:46:09.923Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5f/9a/cb7fad7d73c69f296eda6815e4a2c7ed53fc70c2f136479a91c8e5fbdb6d/yarl-1.20.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:bdcc4cd244e58593a4379fe60fdee5ac0331f8eb70320a24d591a3be197b94a9", size = 133667, upload-time = "2025-06-10T00:43:44.369Z" }, + { url = "https://files.pythonhosted.org/packages/67/38/688577a1cb1e656e3971fb66a3492501c5a5df56d99722e57c98249e5b8a/yarl-1.20.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:b29a2c385a5f5b9c7d9347e5812b6f7ab267193c62d282a540b4fc528c8a9d2a", size = 91025, upload-time = "2025-06-10T00:43:46.295Z" }, + { url = "https://files.pythonhosted.org/packages/50/ec/72991ae51febeb11a42813fc259f0d4c8e0507f2b74b5514618d8b640365/yarl-1.20.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1112ae8154186dfe2de4732197f59c05a83dc814849a5ced892b708033f40dc2", size = 89709, upload-time = "2025-06-10T00:43:48.22Z" }, + { url = "https://files.pythonhosted.org/packages/99/da/4d798025490e89426e9f976702e5f9482005c548c579bdae792a4c37769e/yarl-1.20.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:90bbd29c4fe234233f7fa2b9b121fb63c321830e5d05b45153a2ca68f7d310ee", size = 352287, upload-time = "2025-06-10T00:43:49.924Z" }, + { url = "https://files.pythonhosted.org/packages/1a/26/54a15c6a567aac1c61b18aa0f4b8aa2e285a52d547d1be8bf48abe2b3991/yarl-1.20.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:680e19c7ce3710ac4cd964e90dad99bf9b5029372ba0c7cbfcd55e54d90ea819", size = 345429, upload-time = "2025-06-10T00:43:51.7Z" }, + { url = "https://files.pythonhosted.org/packages/d6/95/9dcf2386cb875b234353b93ec43e40219e14900e046bf6ac118f94b1e353/yarl-1.20.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4a979218c1fdb4246a05efc2cc23859d47c89af463a90b99b7c56094daf25a16", size = 365429, upload-time = "2025-06-10T00:43:53.494Z" }, + { url = "https://files.pythonhosted.org/packages/91/b2/33a8750f6a4bc224242a635f5f2cff6d6ad5ba651f6edcccf721992c21a0/yarl-1.20.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:255b468adf57b4a7b65d8aad5b5138dce6a0752c139965711bdcb81bc370e1b6", size = 363862, upload-time = "2025-06-10T00:43:55.766Z" }, + { url = "https://files.pythonhosted.org/packages/98/28/3ab7acc5b51f4434b181b0cee8f1f4b77a65919700a355fb3617f9488874/yarl-1.20.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a97d67108e79cfe22e2b430d80d7571ae57d19f17cda8bb967057ca8a7bf5bfd", size = 355616, upload-time = "2025-06-10T00:43:58.056Z" }, + { url = "https://files.pythonhosted.org/packages/36/a3/f666894aa947a371724ec7cd2e5daa78ee8a777b21509b4252dd7bd15e29/yarl-1.20.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8570d998db4ddbfb9a590b185a0a33dbf8aafb831d07a5257b4ec9948df9cb0a", size = 339954, upload-time = "2025-06-10T00:43:59.773Z" }, + { url = "https://files.pythonhosted.org/packages/f1/81/5f466427e09773c04219d3450d7a1256138a010b6c9f0af2d48565e9ad13/yarl-1.20.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:97c75596019baae7c71ccf1d8cc4738bc08134060d0adfcbe5642f778d1dca38", size = 365575, upload-time = "2025-06-10T00:44:02.051Z" }, + { url = "https://files.pythonhosted.org/packages/2e/e3/e4b0ad8403e97e6c9972dd587388940a032f030ebec196ab81a3b8e94d31/yarl-1.20.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:1c48912653e63aef91ff988c5432832692ac5a1d8f0fb8a33091520b5bbe19ef", size = 365061, upload-time = "2025-06-10T00:44:04.196Z" }, + { url = "https://files.pythonhosted.org/packages/ac/99/b8a142e79eb86c926f9f06452eb13ecb1bb5713bd01dc0038faf5452e544/yarl-1.20.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:4c3ae28f3ae1563c50f3d37f064ddb1511ecc1d5584e88c6b7c63cf7702a6d5f", size = 364142, upload-time = "2025-06-10T00:44:06.527Z" }, + { url = "https://files.pythonhosted.org/packages/34/f2/08ed34a4a506d82a1a3e5bab99ccd930a040f9b6449e9fd050320e45845c/yarl-1.20.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:c5e9642f27036283550f5f57dc6156c51084b458570b9d0d96100c8bebb186a8", size = 381894, upload-time = "2025-06-10T00:44:08.379Z" }, + { url = "https://files.pythonhosted.org/packages/92/f8/9a3fbf0968eac704f681726eff595dce9b49c8a25cd92bf83df209668285/yarl-1.20.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:2c26b0c49220d5799f7b22c6838409ee9bc58ee5c95361a4d7831f03cc225b5a", size = 383378, upload-time = "2025-06-10T00:44:10.51Z" }, + { url = "https://files.pythonhosted.org/packages/af/85/9363f77bdfa1e4d690957cd39d192c4cacd1c58965df0470a4905253b54f/yarl-1.20.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:564ab3d517e3d01c408c67f2e5247aad4019dcf1969982aba3974b4093279004", size = 374069, upload-time = "2025-06-10T00:44:12.834Z" }, + { url = "https://files.pythonhosted.org/packages/35/99/9918c8739ba271dcd935400cff8b32e3cd319eaf02fcd023d5dcd487a7c8/yarl-1.20.1-cp312-cp312-win32.whl", hash = "sha256:daea0d313868da1cf2fac6b2d3a25c6e3a9e879483244be38c8e6a41f1d876a5", size = 81249, upload-time = "2025-06-10T00:44:14.731Z" }, + { url = "https://files.pythonhosted.org/packages/eb/83/5d9092950565481b413b31a23e75dd3418ff0a277d6e0abf3729d4d1ce25/yarl-1.20.1-cp312-cp312-win_amd64.whl", hash = "sha256:48ea7d7f9be0487339828a4de0360d7ce0efc06524a48e1810f945c45b813698", size = 86710, upload-time = "2025-06-10T00:44:16.716Z" }, + { url = "https://files.pythonhosted.org/packages/8a/e1/2411b6d7f769a07687acee88a062af5833cf1966b7266f3d8dfb3d3dc7d3/yarl-1.20.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:0b5ff0fbb7c9f1b1b5ab53330acbfc5247893069e7716840c8e7d5bb7355038a", size = 131811, upload-time = "2025-06-10T00:44:18.933Z" }, + { url = "https://files.pythonhosted.org/packages/b2/27/584394e1cb76fb771371770eccad35de400e7b434ce3142c2dd27392c968/yarl-1.20.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:14f326acd845c2b2e2eb38fb1346c94f7f3b01a4f5c788f8144f9b630bfff9a3", size = 90078, upload-time = "2025-06-10T00:44:20.635Z" }, + { url = "https://files.pythonhosted.org/packages/bf/9a/3246ae92d4049099f52d9b0fe3486e3b500e29b7ea872d0f152966fc209d/yarl-1.20.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f60e4ad5db23f0b96e49c018596707c3ae89f5d0bd97f0ad3684bcbad899f1e7", size = 88748, upload-time = "2025-06-10T00:44:22.34Z" }, + { url = "https://files.pythonhosted.org/packages/a3/25/35afe384e31115a1a801fbcf84012d7a066d89035befae7c5d4284df1e03/yarl-1.20.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:49bdd1b8e00ce57e68ba51916e4bb04461746e794e7c4d4bbc42ba2f18297691", size = 349595, upload-time = "2025-06-10T00:44:24.314Z" }, + { url = "https://files.pythonhosted.org/packages/28/2d/8aca6cb2cabc8f12efcb82749b9cefecbccfc7b0384e56cd71058ccee433/yarl-1.20.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:66252d780b45189975abfed839616e8fd2dbacbdc262105ad7742c6ae58f3e31", size = 342616, upload-time = "2025-06-10T00:44:26.167Z" }, + { url = "https://files.pythonhosted.org/packages/0b/e9/1312633d16b31acf0098d30440ca855e3492d66623dafb8e25b03d00c3da/yarl-1.20.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:59174e7332f5d153d8f7452a102b103e2e74035ad085f404df2e40e663a22b28", size = 361324, upload-time = "2025-06-10T00:44:27.915Z" }, + { url = "https://files.pythonhosted.org/packages/bc/a0/688cc99463f12f7669eec7c8acc71ef56a1521b99eab7cd3abb75af887b0/yarl-1.20.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e3968ec7d92a0c0f9ac34d5ecfd03869ec0cab0697c91a45db3fbbd95fe1b653", size = 359676, upload-time = "2025-06-10T00:44:30.041Z" }, + { url = "https://files.pythonhosted.org/packages/af/44/46407d7f7a56e9a85a4c207724c9f2c545c060380718eea9088f222ba697/yarl-1.20.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d1a4fbb50e14396ba3d375f68bfe02215d8e7bc3ec49da8341fe3157f59d2ff5", size = 352614, upload-time = "2025-06-10T00:44:32.171Z" }, + { url = "https://files.pythonhosted.org/packages/b1/91/31163295e82b8d5485d31d9cf7754d973d41915cadce070491778d9c9825/yarl-1.20.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:11a62c839c3a8eac2410e951301309426f368388ff2f33799052787035793b02", size = 336766, upload-time = "2025-06-10T00:44:34.494Z" }, + { url = "https://files.pythonhosted.org/packages/b4/8e/c41a5bc482121f51c083c4c2bcd16b9e01e1cf8729e380273a952513a21f/yarl-1.20.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:041eaa14f73ff5a8986b4388ac6bb43a77f2ea09bf1913df7a35d4646db69e53", size = 364615, upload-time = "2025-06-10T00:44:36.856Z" }, + { url = "https://files.pythonhosted.org/packages/e3/5b/61a3b054238d33d70ea06ebba7e58597891b71c699e247df35cc984ab393/yarl-1.20.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:377fae2fef158e8fd9d60b4c8751387b8d1fb121d3d0b8e9b0be07d1b41e83dc", size = 360982, upload-time = "2025-06-10T00:44:39.141Z" }, + { url = "https://files.pythonhosted.org/packages/df/a3/6a72fb83f8d478cb201d14927bc8040af901811a88e0ff2da7842dd0ed19/yarl-1.20.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:1c92f4390e407513f619d49319023664643d3339bd5e5a56a3bebe01bc67ec04", size = 369792, upload-time = "2025-06-10T00:44:40.934Z" }, + { url = "https://files.pythonhosted.org/packages/7c/af/4cc3c36dfc7c077f8dedb561eb21f69e1e9f2456b91b593882b0b18c19dc/yarl-1.20.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:d25ddcf954df1754ab0f86bb696af765c5bfaba39b74095f27eececa049ef9a4", size = 382049, upload-time = "2025-06-10T00:44:42.854Z" }, + { url = "https://files.pythonhosted.org/packages/19/3a/e54e2c4752160115183a66dc9ee75a153f81f3ab2ba4bf79c3c53b33de34/yarl-1.20.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:909313577e9619dcff8c31a0ea2aa0a2a828341d92673015456b3ae492e7317b", size = 384774, upload-time = "2025-06-10T00:44:45.275Z" }, + { url = "https://files.pythonhosted.org/packages/9c/20/200ae86dabfca89060ec6447649f219b4cbd94531e425e50d57e5f5ac330/yarl-1.20.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:793fd0580cb9664548c6b83c63b43c477212c0260891ddf86809e1c06c8b08f1", size = 374252, upload-time = "2025-06-10T00:44:47.31Z" }, + { url = "https://files.pythonhosted.org/packages/83/75/11ee332f2f516b3d094e89448da73d557687f7d137d5a0f48c40ff211487/yarl-1.20.1-cp313-cp313-win32.whl", hash = "sha256:468f6e40285de5a5b3c44981ca3a319a4b208ccc07d526b20b12aeedcfa654b7", size = 81198, upload-time = "2025-06-10T00:44:49.164Z" }, + { url = "https://files.pythonhosted.org/packages/ba/ba/39b1ecbf51620b40ab402b0fc817f0ff750f6d92712b44689c2c215be89d/yarl-1.20.1-cp313-cp313-win_amd64.whl", hash = "sha256:495b4ef2fea40596bfc0affe3837411d6aa3371abcf31aac0ccc4bdd64d4ef5c", size = 86346, upload-time = "2025-06-10T00:44:51.182Z" }, + { url = "https://files.pythonhosted.org/packages/43/c7/669c52519dca4c95153c8ad96dd123c79f354a376346b198f438e56ffeb4/yarl-1.20.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:f60233b98423aab21d249a30eb27c389c14929f47be8430efa7dbd91493a729d", size = 138826, upload-time = "2025-06-10T00:44:52.883Z" }, + { url = "https://files.pythonhosted.org/packages/6a/42/fc0053719b44f6ad04a75d7f05e0e9674d45ef62f2d9ad2c1163e5c05827/yarl-1.20.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:6f3eff4cc3f03d650d8755c6eefc844edde99d641d0dcf4da3ab27141a5f8ddf", size = 93217, upload-time = "2025-06-10T00:44:54.658Z" }, + { url = "https://files.pythonhosted.org/packages/4f/7f/fa59c4c27e2a076bba0d959386e26eba77eb52ea4a0aac48e3515c186b4c/yarl-1.20.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:69ff8439d8ba832d6bed88af2c2b3445977eba9a4588b787b32945871c2444e3", size = 92700, upload-time = "2025-06-10T00:44:56.784Z" }, + { url = "https://files.pythonhosted.org/packages/2f/d4/062b2f48e7c93481e88eff97a6312dca15ea200e959f23e96d8ab898c5b8/yarl-1.20.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3cf34efa60eb81dd2645a2e13e00bb98b76c35ab5061a3989c7a70f78c85006d", size = 347644, upload-time = "2025-06-10T00:44:59.071Z" }, + { url = "https://files.pythonhosted.org/packages/89/47/78b7f40d13c8f62b499cc702fdf69e090455518ae544c00a3bf4afc9fc77/yarl-1.20.1-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:8e0fe9364ad0fddab2688ce72cb7a8e61ea42eff3c7caeeb83874a5d479c896c", size = 323452, upload-time = "2025-06-10T00:45:01.605Z" }, + { url = "https://files.pythonhosted.org/packages/eb/2b/490d3b2dc66f52987d4ee0d3090a147ea67732ce6b4d61e362c1846d0d32/yarl-1.20.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8f64fbf81878ba914562c672024089e3401974a39767747691c65080a67b18c1", size = 346378, upload-time = "2025-06-10T00:45:03.946Z" }, + { url = "https://files.pythonhosted.org/packages/66/ad/775da9c8a94ce925d1537f939a4f17d782efef1f973039d821cbe4bcc211/yarl-1.20.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f6342d643bf9a1de97e512e45e4b9560a043347e779a173250824f8b254bd5ce", size = 353261, upload-time = "2025-06-10T00:45:05.992Z" }, + { url = "https://files.pythonhosted.org/packages/4b/23/0ed0922b47a4f5c6eb9065d5ff1e459747226ddce5c6a4c111e728c9f701/yarl-1.20.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:56dac5f452ed25eef0f6e3c6a066c6ab68971d96a9fb441791cad0efba6140d3", size = 335987, upload-time = "2025-06-10T00:45:08.227Z" }, + { url = "https://files.pythonhosted.org/packages/3e/49/bc728a7fe7d0e9336e2b78f0958a2d6b288ba89f25a1762407a222bf53c3/yarl-1.20.1-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c7d7f497126d65e2cad8dc5f97d34c27b19199b6414a40cb36b52f41b79014be", size = 329361, upload-time = "2025-06-10T00:45:10.11Z" }, + { url = "https://files.pythonhosted.org/packages/93/8f/b811b9d1f617c83c907e7082a76e2b92b655400e61730cd61a1f67178393/yarl-1.20.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:67e708dfb8e78d8a19169818eeb5c7a80717562de9051bf2413aca8e3696bf16", size = 346460, upload-time = "2025-06-10T00:45:12.055Z" }, + { url = "https://files.pythonhosted.org/packages/70/fd/af94f04f275f95da2c3b8b5e1d49e3e79f1ed8b6ceb0f1664cbd902773ff/yarl-1.20.1-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:595c07bc79af2494365cc96ddeb772f76272364ef7c80fb892ef9d0649586513", size = 334486, upload-time = "2025-06-10T00:45:13.995Z" }, + { url = "https://files.pythonhosted.org/packages/84/65/04c62e82704e7dd0a9b3f61dbaa8447f8507655fd16c51da0637b39b2910/yarl-1.20.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:7bdd2f80f4a7df852ab9ab49484a4dee8030023aa536df41f2d922fd57bf023f", size = 342219, upload-time = "2025-06-10T00:45:16.479Z" }, + { url = "https://files.pythonhosted.org/packages/91/95/459ca62eb958381b342d94ab9a4b6aec1ddec1f7057c487e926f03c06d30/yarl-1.20.1-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:c03bfebc4ae8d862f853a9757199677ab74ec25424d0ebd68a0027e9c639a390", size = 350693, upload-time = "2025-06-10T00:45:18.399Z" }, + { url = "https://files.pythonhosted.org/packages/a6/00/d393e82dd955ad20617abc546a8f1aee40534d599ff555ea053d0ec9bf03/yarl-1.20.1-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:344d1103e9c1523f32a5ed704d576172d2cabed3122ea90b1d4e11fe17c66458", size = 355803, upload-time = "2025-06-10T00:45:20.677Z" }, + { url = "https://files.pythonhosted.org/packages/9e/ed/c5fb04869b99b717985e244fd93029c7a8e8febdfcffa06093e32d7d44e7/yarl-1.20.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:88cab98aa4e13e1ade8c141daeedd300a4603b7132819c484841bb7af3edce9e", size = 341709, upload-time = "2025-06-10T00:45:23.221Z" }, + { url = "https://files.pythonhosted.org/packages/24/fd/725b8e73ac2a50e78a4534ac43c6addf5c1c2d65380dd48a9169cc6739a9/yarl-1.20.1-cp313-cp313t-win32.whl", hash = "sha256:b121ff6a7cbd4abc28985b6028235491941b9fe8fe226e6fdc539c977ea1739d", size = 86591, upload-time = "2025-06-10T00:45:25.793Z" }, + { url = "https://files.pythonhosted.org/packages/94/c3/b2e9f38bc3e11191981d57ea08cab2166e74ea770024a646617c9cddd9f6/yarl-1.20.1-cp313-cp313t-win_amd64.whl", hash = "sha256:541d050a355bbbc27e55d906bc91cb6fe42f96c01413dd0f4ed5a5240513874f", size = 93003, upload-time = "2025-06-10T00:45:27.752Z" }, + { url = "https://files.pythonhosted.org/packages/b4/2d/2345fce04cfd4bee161bf1e7d9cdc702e3e16109021035dbb24db654a622/yarl-1.20.1-py3-none-any.whl", hash = "sha256:83b8eb083fe4683c6115795d9fc1cfaf2cbbefb19b3a1cb68f6527460f483a77", size = 46542, upload-time = "2025-06-10T00:46:07.521Z" }, +] + +[[package]] +name = "zipp" +version = "3.23.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e3/02/0f2892c661036d50ede074e376733dca2ae7c6eb617489437771209d4180/zipp-3.23.0.tar.gz", hash = "sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166", size = 25547, upload-time = "2025-06-08T17:06:39.4Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2e/54/647ade08bf0db230bfea292f893923872fd20be6ac6f53b2b936ba839d75/zipp-3.23.0-py3-none-any.whl", hash = "sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e", size = 10276, upload-time = "2025-06-08T17:06:38.034Z" }, +] + +[[package]] +name = "zstandard" +version = "0.23.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cffi", marker = "platform_python_implementation == 'PyPy'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ed/f6/2ac0287b442160a89d726b17a9184a4c615bb5237db763791a7fd16d9df1/zstandard-0.23.0.tar.gz", hash = "sha256:b2d8c62d08e7255f68f7a740bae85b3c9b8e5466baa9cbf7f57f1cde0ac6bc09", size = 681701, upload-time = "2024-07-15T00:18:06.141Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7b/83/f23338c963bd9de687d47bf32efe9fd30164e722ba27fb59df33e6b1719b/zstandard-0.23.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:b4567955a6bc1b20e9c31612e615af6b53733491aeaa19a6b3b37f3b65477094", size = 788713, upload-time = "2024-07-15T00:15:35.815Z" }, + { url = "https://files.pythonhosted.org/packages/5b/b3/1a028f6750fd9227ee0b937a278a434ab7f7fdc3066c3173f64366fe2466/zstandard-0.23.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1e172f57cd78c20f13a3415cc8dfe24bf388614324d25539146594c16d78fcc8", size = 633459, upload-time = "2024-07-15T00:15:37.995Z" }, + { url = "https://files.pythonhosted.org/packages/26/af/36d89aae0c1f95a0a98e50711bc5d92c144939efc1f81a2fcd3e78d7f4c1/zstandard-0.23.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b0e166f698c5a3e914947388c162be2583e0c638a4703fc6a543e23a88dea3c1", size = 4945707, upload-time = "2024-07-15T00:15:39.872Z" }, + { url = "https://files.pythonhosted.org/packages/cd/2e/2051f5c772f4dfc0aae3741d5fc72c3dcfe3aaeb461cc231668a4db1ce14/zstandard-0.23.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:12a289832e520c6bd4dcaad68e944b86da3bad0d339ef7989fb7e88f92e96072", size = 5306545, upload-time = "2024-07-15T00:15:41.75Z" }, + { url = "https://files.pythonhosted.org/packages/0a/9e/a11c97b087f89cab030fa71206963090d2fecd8eb83e67bb8f3ffb84c024/zstandard-0.23.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d50d31bfedd53a928fed6707b15a8dbeef011bb6366297cc435accc888b27c20", size = 5337533, upload-time = "2024-07-15T00:15:44.114Z" }, + { url = "https://files.pythonhosted.org/packages/fc/79/edeb217c57fe1bf16d890aa91a1c2c96b28c07b46afed54a5dcf310c3f6f/zstandard-0.23.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:72c68dda124a1a138340fb62fa21b9bf4848437d9ca60bd35db36f2d3345f373", size = 5436510, upload-time = "2024-07-15T00:15:46.509Z" }, + { url = "https://files.pythonhosted.org/packages/81/4f/c21383d97cb7a422ddf1ae824b53ce4b51063d0eeb2afa757eb40804a8ef/zstandard-0.23.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:53dd9d5e3d29f95acd5de6802e909ada8d8d8cfa37a3ac64836f3bc4bc5512db", size = 4859973, upload-time = "2024-07-15T00:15:49.939Z" }, + { url = "https://files.pythonhosted.org/packages/ab/15/08d22e87753304405ccac8be2493a495f529edd81d39a0870621462276ef/zstandard-0.23.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:6a41c120c3dbc0d81a8e8adc73312d668cd34acd7725f036992b1b72d22c1772", size = 4936968, upload-time = "2024-07-15T00:15:52.025Z" }, + { url = "https://files.pythonhosted.org/packages/eb/fa/f3670a597949fe7dcf38119a39f7da49a8a84a6f0b1a2e46b2f71a0ab83f/zstandard-0.23.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:40b33d93c6eddf02d2c19f5773196068d875c41ca25730e8288e9b672897c105", size = 5467179, upload-time = "2024-07-15T00:15:54.971Z" }, + { url = "https://files.pythonhosted.org/packages/4e/a9/dad2ab22020211e380adc477a1dbf9f109b1f8d94c614944843e20dc2a99/zstandard-0.23.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:9206649ec587e6b02bd124fb7799b86cddec350f6f6c14bc82a2b70183e708ba", size = 4848577, upload-time = "2024-07-15T00:15:57.634Z" }, + { url = "https://files.pythonhosted.org/packages/08/03/dd28b4484b0770f1e23478413e01bee476ae8227bbc81561f9c329e12564/zstandard-0.23.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:76e79bc28a65f467e0409098fa2c4376931fd3207fbeb6b956c7c476d53746dd", size = 4693899, upload-time = "2024-07-15T00:16:00.811Z" }, + { url = "https://files.pythonhosted.org/packages/2b/64/3da7497eb635d025841e958bcd66a86117ae320c3b14b0ae86e9e8627518/zstandard-0.23.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:66b689c107857eceabf2cf3d3fc699c3c0fe8ccd18df2219d978c0283e4c508a", size = 5199964, upload-time = "2024-07-15T00:16:03.669Z" }, + { url = "https://files.pythonhosted.org/packages/43/a4/d82decbab158a0e8a6ebb7fc98bc4d903266bce85b6e9aaedea1d288338c/zstandard-0.23.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:9c236e635582742fee16603042553d276cca506e824fa2e6489db04039521e90", size = 5655398, upload-time = "2024-07-15T00:16:06.694Z" }, + { url = "https://files.pythonhosted.org/packages/f2/61/ac78a1263bc83a5cf29e7458b77a568eda5a8f81980691bbc6eb6a0d45cc/zstandard-0.23.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:a8fffdbd9d1408006baaf02f1068d7dd1f016c6bcb7538682622c556e7b68e35", size = 5191313, upload-time = "2024-07-15T00:16:09.758Z" }, + { url = "https://files.pythonhosted.org/packages/e7/54/967c478314e16af5baf849b6ee9d6ea724ae5b100eb506011f045d3d4e16/zstandard-0.23.0-cp312-cp312-win32.whl", hash = "sha256:dc1d33abb8a0d754ea4763bad944fd965d3d95b5baef6b121c0c9013eaf1907d", size = 430877, upload-time = "2024-07-15T00:16:11.758Z" }, + { url = "https://files.pythonhosted.org/packages/75/37/872d74bd7739639c4553bf94c84af7d54d8211b626b352bc57f0fd8d1e3f/zstandard-0.23.0-cp312-cp312-win_amd64.whl", hash = "sha256:64585e1dba664dc67c7cdabd56c1e5685233fbb1fc1966cfba2a340ec0dfff7b", size = 495595, upload-time = "2024-07-15T00:16:13.731Z" }, + { url = "https://files.pythonhosted.org/packages/80/f1/8386f3f7c10261fe85fbc2c012fdb3d4db793b921c9abcc995d8da1b7a80/zstandard-0.23.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:576856e8594e6649aee06ddbfc738fec6a834f7c85bf7cadd1c53d4a58186ef9", size = 788975, upload-time = "2024-07-15T00:16:16.005Z" }, + { url = "https://files.pythonhosted.org/packages/16/e8/cbf01077550b3e5dc86089035ff8f6fbbb312bc0983757c2d1117ebba242/zstandard-0.23.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:38302b78a850ff82656beaddeb0bb989a0322a8bbb1bf1ab10c17506681d772a", size = 633448, upload-time = "2024-07-15T00:16:17.897Z" }, + { url = "https://files.pythonhosted.org/packages/06/27/4a1b4c267c29a464a161aeb2589aff212b4db653a1d96bffe3598f3f0d22/zstandard-0.23.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d2240ddc86b74966c34554c49d00eaafa8200a18d3a5b6ffbf7da63b11d74ee2", size = 4945269, upload-time = "2024-07-15T00:16:20.136Z" }, + { url = "https://files.pythonhosted.org/packages/7c/64/d99261cc57afd9ae65b707e38045ed8269fbdae73544fd2e4a4d50d0ed83/zstandard-0.23.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2ef230a8fd217a2015bc91b74f6b3b7d6522ba48be29ad4ea0ca3a3775bf7dd5", size = 5306228, upload-time = "2024-07-15T00:16:23.398Z" }, + { url = "https://files.pythonhosted.org/packages/7a/cf/27b74c6f22541f0263016a0fd6369b1b7818941de639215c84e4e94b2a1c/zstandard-0.23.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:774d45b1fac1461f48698a9d4b5fa19a69d47ece02fa469825b442263f04021f", size = 5336891, upload-time = "2024-07-15T00:16:26.391Z" }, + { url = "https://files.pythonhosted.org/packages/fa/18/89ac62eac46b69948bf35fcd90d37103f38722968e2981f752d69081ec4d/zstandard-0.23.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6f77fa49079891a4aab203d0b1744acc85577ed16d767b52fc089d83faf8d8ed", size = 5436310, upload-time = "2024-07-15T00:16:29.018Z" }, + { url = "https://files.pythonhosted.org/packages/a8/a8/5ca5328ee568a873f5118d5b5f70d1f36c6387716efe2e369010289a5738/zstandard-0.23.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ac184f87ff521f4840e6ea0b10c0ec90c6b1dcd0bad2f1e4a9a1b4fa177982ea", size = 4859912, upload-time = "2024-07-15T00:16:31.871Z" }, + { url = "https://files.pythonhosted.org/packages/ea/ca/3781059c95fd0868658b1cf0440edd832b942f84ae60685d0cfdb808bca1/zstandard-0.23.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:c363b53e257246a954ebc7c488304b5592b9c53fbe74d03bc1c64dda153fb847", size = 4936946, upload-time = "2024-07-15T00:16:34.593Z" }, + { url = "https://files.pythonhosted.org/packages/ce/11/41a58986f809532742c2b832c53b74ba0e0a5dae7e8ab4642bf5876f35de/zstandard-0.23.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:e7792606d606c8df5277c32ccb58f29b9b8603bf83b48639b7aedf6df4fe8171", size = 5466994, upload-time = "2024-07-15T00:16:36.887Z" }, + { url = "https://files.pythonhosted.org/packages/83/e3/97d84fe95edd38d7053af05159465d298c8b20cebe9ccb3d26783faa9094/zstandard-0.23.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a0817825b900fcd43ac5d05b8b3079937073d2b1ff9cf89427590718b70dd840", size = 4848681, upload-time = "2024-07-15T00:16:39.709Z" }, + { url = "https://files.pythonhosted.org/packages/6e/99/cb1e63e931de15c88af26085e3f2d9af9ce53ccafac73b6e48418fd5a6e6/zstandard-0.23.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:9da6bc32faac9a293ddfdcb9108d4b20416219461e4ec64dfea8383cac186690", size = 4694239, upload-time = "2024-07-15T00:16:41.83Z" }, + { url = "https://files.pythonhosted.org/packages/ab/50/b1e703016eebbc6501fc92f34db7b1c68e54e567ef39e6e59cf5fb6f2ec0/zstandard-0.23.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:fd7699e8fd9969f455ef2926221e0233f81a2542921471382e77a9e2f2b57f4b", size = 5200149, upload-time = "2024-07-15T00:16:44.287Z" }, + { url = "https://files.pythonhosted.org/packages/aa/e0/932388630aaba70197c78bdb10cce2c91fae01a7e553b76ce85471aec690/zstandard-0.23.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:d477ed829077cd945b01fc3115edd132c47e6540ddcd96ca169facff28173057", size = 5655392, upload-time = "2024-07-15T00:16:46.423Z" }, + { url = "https://files.pythonhosted.org/packages/02/90/2633473864f67a15526324b007a9f96c96f56d5f32ef2a56cc12f9548723/zstandard-0.23.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:fa6ce8b52c5987b3e34d5674b0ab529a4602b632ebab0a93b07bfb4dfc8f8a33", size = 5191299, upload-time = "2024-07-15T00:16:49.053Z" }, + { url = "https://files.pythonhosted.org/packages/b0/4c/315ca5c32da7e2dc3455f3b2caee5c8c2246074a61aac6ec3378a97b7136/zstandard-0.23.0-cp313-cp313-win32.whl", hash = "sha256:a9b07268d0c3ca5c170a385a0ab9fb7fdd9f5fd866be004c4ea39e44edce47dd", size = 430862, upload-time = "2024-07-15T00:16:51.003Z" }, + { url = "https://files.pythonhosted.org/packages/a2/bf/c6aaba098e2d04781e8f4f7c0ba3c7aa73d00e4c436bcc0cf059a66691d1/zstandard-0.23.0-cp313-cp313-win_amd64.whl", hash = "sha256:f3513916e8c645d0610815c257cbfd3242adfd5c4cfa78be514e5a3ebb42a41b", size = 495578, upload-time = "2024-07-15T00:16:53.135Z" }, +]