Franck Dernoncourt, Thien Nguyen, Hieu Man, Nghia Ngo
We lifted 3 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| nlp-uoregon/ullme | canonical | 3 of 3 |
| Function | Status | Where it lives |
|---|---|---|
| find_all_linear_names | Ran | nlp-uoregon/ullme/ullme/model/utils.py code served (permissive licence) · get_code("fc0a74d3e37f075a") |
| get_wrapping_policy | Ran | nlp-uoregon/ullme/ullme/model/utils.py code served (permissive licence) · get_code("a858408f48378023") |
| mismatched_sizes_all_gather | Ran | nlp-uoregon/ullme/ullme/trainer/loss.py code served (permissive licence) · get_code("09cc652dc806e659") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Large Language Models (LLMs) 1 excel in various natural language processing tasks, but leveraging them for dense passage embedding remains challenging. This is due to their causal attention mechanism and the misalignment between their pre-training objectives and the text ranking tasks. Despite some recent efforts to address these issues, existing frameworks for LLM-based text embeddings have been limited by their support for only a limited range of LLM architectures and fine-tuning strategies, limiting their practical application and versatility. In this work, we introduce the Unified framework for Large Language Model Embedding (ULLME), a flexible, plug-andplay implementation that enables bidirectional attention across various LLMs and supports a range of fine-tuning strategies. We also propose Generation-augmented Representation Learning (GRL), a novel fine-tuning method to boost LLMs for text embedding tasks. GRL enforces consistency between representationbased and generation-based relevance scores, leveraging LLMs' powerful generative abilities for learning passage embeddings. To showcase our framework's flexibility and effectiveness, we release three pre-trained models from ULLME with different backbone architectures, ranging from 1.5B to 8B parameters, all of which demonstrate strong performance on the Massive Text Embedding Benchmark.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2408.03402")
get_code_for_paper("2408.03402")
have("2408.03402")
Connect an agent — have() is free.