インコンテキスト検索の限界とBlockSearch:Siddharth Gollapudi氏との対話(Weaviate Podcast #146)

In-Context Retrieval with Siddharth Gollapudi - Weaviate Podcast #146!

Weaviate Podcast55分
インコンテキスト検索の限界とBlockSearch:Siddharth Gollapudi氏との対話(Weaviate Podcast #146)

インコンテキスト検索の限界とBlockSearch:Siddharth Gollapudi氏との対話(Weaviate Podcast #146)

Weaviate Podcast

0:0055:07

要約

UC BerkeleyのSiddharth Gollapudi氏が、コーパス全体をLLMのコンテキストに入れ、アテンション自体を検索器として使う「インコンテキスト検索」を解説した。0.6BパラメータのBlockSearchでは500文書規模は比較的容易だが、100万トークン級では性能が崩れる。アテンション希釈への対策として温度スケーリングとスパースアテンションを併用し、密検索と同等水準に達したという。ベクトルDBにとっての劣線形なアテンションという課題も議論された。

この回のポイント

  • ●インコンテキスト検索は埋め込みや近傍探索インデックスを使わず、コンテキスト内の文書からアテンションで関連文書を選ぶ手法で、パラメータに文書を記憶させる生成的検索とは異なり、コーパス更新時に再学習が不要だと説明された。
  • ●リストワイズ再ランキングは、数万〜10万トークン程度で済む第一段階検索の易しい部分集合だと位置づけられた。「Lost in the Middle」は、今回の実験では大きな問題にならなかったという。
  • ●BlockSearchの学習では、位置コードよりランダムな文書コードの方が、モデルに文書を実際に読ませる効果があった。自分のロールアウトを修正するオンポリシー損失は、1,000〜2,500文書規模で特に効いたという。
  • ●100万トークン規模ではソフトマックスの分母が大きくなりすぎるアテンション希釈が起きる。長さ依存の温度スケーリングと、無関係な文書を事前に落とすスパースアテンションを併用し、密検索と同程度まで到達した。
  • ●課題は、検索エンジン的な前処理を含むスパースアテンションを、事前学習から端から端まで学習できる形にすること。劣線形でANN的なアテンションが作れるかという問いが示された。
  • ●LLMベースの再ランカーが既にあってもおかしくないが、レイテンシが障壁になりうるという議論があった。長いコンテキストのLLMが、教師なしで新しい関連性や発見を生む可能性への期待も語られた。

章立て

  1. インコンテキスト検索の定義と位置づけ

    アテンションを検索器として使う考え方と、生成的検索との違いを説明。Lost in the Middleは今のモデルでは問題になりにくいという見方も示された。

  2. 再ランキングとの関係と規模の壁

    リストワイズ再ランキングは第一段階検索の部分問題だと整理。500文書までは容易だが、1,000文書を超えると急に崩れると語られた。

  3. BlockSearchの学習上の工夫

    ランダムな文書コード、オンポリシー学習、学習データの構成(MS MARCOのRLHN版とBEIR混合)などを解説した。

  4. アテンション希釈と対策

    ソフトマックスの分母が大きくなり、スコアが似通ってしまう問題を説明。温度スケーリングとスパースアテンションで密検索と同等に達した。

  5. ベクトルDBと劣線形アテンション

    ReFragやColBERTの後期相互作用に触れつつ、検索エンジンをモデルに組み込み端から端まで学習する課題を議論した。

  6. 再ランカーの見通しとレイテンシ

    計算資源の必要性や、LLMベース再ランカーの登場時期、高レイテンシ検索の用途を話した。

  7. LLMはデータベースを置き換えるか

    長文脈LLMの複雑なタスクでの弱さや、教師なしの関連性による新発見の可能性を議論した。

  8. 期待する方向:未解決問題への挑戦

    定理証明のような創造的発見に向け、モデルに新しい関連性の概念を教えられるかが関心事として語られた。

解説記事

UC BerkeleyのSiddharth Gollapudi氏が、Weaviate Podcast #146に登場した。テーマは、コーパス全体をLLMのコンテキストに入れて検索を行う「インコンテキスト検索」だ。論文「Can Language Models Actually Retrieve In-Context? Drowning in Documents at Million Token Scale」の内容を軸に、モデル学習の工夫と、ベクトルデータベースへの示唆が語られた。

インコンテキスト検索とは何か

Gollapudi氏の説明では、エンコーダで埋め込みを作り近傍探索インデックスを構築する代わりに、全文書をLLMのコンテキストへ入れ、その後にクエリを与える。そして、コンテキスト内で最も関連する文書をアテンションで選ばせる。

似て見える手法との違いも整理された。生成的検索は文書をモデルのパラメータに記憶させるため、コーパスが変わるたびに勾配更新が必要になる。さらに、必要な文書を正確に引ける保証がなく、ノイズも多いという。インコンテキスト検索なら、文書を原文のまま扱える。

また、リストワイズ再ランキングは、第一段階検索の「易しい部分集合」だとされた。再ランキングなら数万〜10万トークンで済むため、固定幅のコンテキストでの学習を考えればよい。本当に長文脈の問題を解ければ、第一段階検索から再ランキングまでを一度の生成でこなせるはずだ、というのが同氏の見方である。

「Lost in the Middle」(文脈の中ほどの情報を使えなくなる現象)については、2025年末〜2026年初めの実験ではあまり問題にならなかったという。同氏は検証済みの研究ではなく仮説だと断りつつ、人間が作った学習データの位置バイアスや、アテンションの設計の成熟が背景にあるのではないかと述べている。

BlockSearchの学習:500文書から100万トークンへ

同氏らが作ったBlockSearchは、0.6Bパラメータのインコンテキスト検索モデルである。学習データは、LLMでクリーニングされたMS MARCO(RLHN)に、BEIRの複数データセットを混ぜたものだ。MS MARCO単独でもある程度は機能したが、誤った負例が多いためクリーニング版を使った。他のBEIRデータセットを足した効果は「大きくはなかった」としている。ColBERT v2もMS MARCOだけで学習して分布外でも健闘した、という例を引いて、関連性のアルゴリズム自体は汎化するのだろうと推測した。

同氏は、500文書規模までは、8枚程度のGPUがあれば多くのプロジェクトでうまくいくと語る。1,000、2,500、5,000、1万文書(約100万トークン)と進むにつれて、性能は急速に崩れる。ここが研究として面白い部分だという。ウェブ規模までは学習を直接スケールできないため、長さへの汎化が不可欠になる。

工夫の一つは、文書を指すコードにある。位置コードだとモデルが特定位置に特定の文書を期待してしまい、性能が落ちた。コードが長すぎるとノイズが増えて幻覚も出た。ランダムなコードにすると文書本文へのアテンションが増え、モデルが文書を読むようになったという。

もう一つはオンポリシー学習だ。学習時にモデル自身にコードを何度か生成させ、間違えたステップごとに修正する。難しい負例があると、コードの途中で別の文書に気を取られて逸れることが多かった。最初の桁で複数候補が同じ数字を持ち、迷うケースも挙げられた。この修正は1,000〜2,500文書では効いたが、100万トークン級では十分ではなかった。なお、構造化出力による制約は、長いコンテキストでは幻覚やノイズのリスクを高めるため採用しなかったという。また、同氏は、今回のモデルは約100万トークン分のデータによるポストトレーニングにとどまると述べ、実用的な頑健さを求めるなら桁違いのトークン数での継続事前学習やスクラッチ学習が望ましいと述べた。

アテンション希釈と二つの対策

学習や損失関数の工夫だけでは100万トークンに届かず、次はアーキテクチャの問題に向かった。核心は「アテンション希釈」である。ソフトマックスの分母がトークン数とともに大きくなる一方、分子は変わらないため、どのトークンのスコアも似通ってしまう。

対策は二つ示された。一つは、長さに依存するパラメータを指数部に入れる温度スケーリングで、スコアの分布を長さに対して安定させる。固定温度では、分母の大きさによって最適値が変わる問題があるためだ。もう一つはスパースアテンションで、文書ごとにトークンを区切り、クエリとの内積スコアが低い文書をアテンション計算の前に落とす。両者を組み合わせて、100万トークンでも密検索と同程度の水準に達した。ただし同氏は、強力なデコーダ型LLMなら密検索を大きく上回ってもよいはずで、これは「まだ良い出発点」にすぎないと述べている。Qwen 3世代のアーキテクチャでは、アテンションがある点を超えると使えなくなるという見方も示した。

ベクトルDBへの問い:劣線形なアテンション

対談の中心的な問いは、アテンションの二乗のボトルネックを、劣線形でANN(近似最近傍探索)的な仕組みに置き換えられないか、というものだ。ReFragの、チャンクを1ベクトルに圧縮し必要なら展開するという発想や、ColBERTの後期相互作用も関連するものとして話題に上った。Gollapudi氏は、ColBERTを今回の手法の緩い近似とみなせると述べている。

現状の課題は、多くの手法が事後的な処理にとどまり、事前学習に組み込まれていないことだ。順方向の処理は書けても、検索エンジンを通した逆伝播がどうなるのかが分からない、というのが同氏の説明である。これが解ければ、効率と精度の両面でLLMの長文脈能力が改善しうると期待を述べた。ホストも、モデルに事前計算済みの表現を注入する方向がベクトルDBの有望な未来ではないかと応じた。

実用面の見通しと、LLMはDBを食うのか

再ランカーについては、500〜1,000文書規模のLLMベースのものがまだ出ていないことにGollapudi氏自身が驚いている。コンテキスト長が固定でき、データ品質と学習の問題に集中できるからだという。ホストは、Weaviateが扱うような50ミリ秒未満のレイテンシ要件と、LLM再ランカーの遅さが障壁だろうと指摘した。同氏もレイテンシが大きな課題だと認めつつ、AIモードのような難しい質問では待ってもらえる余地があると述べた。

また、同氏の研究室仲間の論文「No More Free Lunch」にも言及があった。長文脈LLMは、NIAHやMRCRなど検索型タスクに偏って訓練されており、より複雑なタスクが苦手だという内容だ。一方で同氏は、大量の情報を渡して教師なしに関連性を見つけさせれば、人間が気づかない関連が見つかるかもしれないという可能性に期待を示した。ホストは、Alex Zhang氏との回で扱った再帰的言語モデルとの対比も挙げた。

まとめ

今回の対談は、インコンテキスト検索が500文書程度では実用的でも、100万トークンでは学習の工夫だけでは足りず、アーキテクチャの課題が残ることを示している。日本の読者にとっては、検索と生成の境界が、アテンションの設計という形でインデックス技術と交わりつつある点が注目される。再ランキングを担う小型LLMの登場や、劣線形アテンションの研究動向は、RAGやベクトル検索を運用するエンジニアにとって注視すべき論点だろう。なお、語られた見通しの多くは同氏自身が仮説と断ったものである点には留意したい。

文字起こし(英語・自動生成)

Sid Harth, welcome to the WeVA podcast. Thank you so much for joining. Yeah, I'm really excited to be here. Yeah, excited to get talking. Awesome. Yeah, well, I think your paper is so interesting, this topic of in-context retrieval. I think there are so many different flavors of it. The search world has the whole, like, you know, is RAG dead, is search dead, and the long-context LLMs versus search. I'm really excited to dive into that aspect of the story. I'm also really excited about re-ranking and the idea of using this for re-ranking and I guess generally just learning more about the models you're building, the experiments you're putting, it all just seems really interesting. So yeah, thanks so much for joining. Yeah, I'm excited to get chatting about this. Yeah, this is a great project. Awesome. So can we kick it off for our audience? How do you define in-context retrieval? Yeah, so the idea behind in-context retrieval is, you know, it's similar to a lot of like other, you know, retrieval settings in that like given a bunch of documents, you have a query, you want to get the most kind of relevant document. So, for the query, that is. But in this case, you know,

instead of saying, you know, using like an encoder model to get embeddings or something, we're actually just going to put all the documents into the context of like an LLM. And then given like a query kind of prompted into the LLM afterwards, we're going to just find the most relevant document within the context. So essentially we're going to use like kind of attention as the retriever here, rather than like building like a nearest neighbor index or something like that. Yeah. yeah that's probably the easiest way to explain it yeah so like one thing in your paper is differentiating it from generative search i think this the little distinction there is really interesting because generative search is like you have to train a model to predict ids compared to this setting where it's more flexible and it reminds me more of a re-ranker yeah so the general i would say general retrieval is like You're right in there. It's super similar to this setting in that it also kind of spits out an ID. It's based on also using an LLM as well.

But the key difference, of course, I think, like you mentioned, is that it's quite inflexible because you have to train the model to put documents essentially into its parameters. And so every time you just want to update the corpus, you have to train the model again. You have to do gradient updates, which is really, really unwieldy, especially at scale. And it's also really, really noisy. Like, in general, for parametric retrieval, I guess because, like, general retrieval pulls the information from the parameters, like, you can't really, like, guarantee that you're going to get the right information every single time. You might be able to, like, kind of vaguely get something in that ballpark. But, you know, like, if I want to, like, exactly figure out which doc, like, which textbook I'm getting, you know, a math theorem from, there's no guarantee that like I can pull that exact information even though I might be able to pull the theorem so in that sense you know contextual retrieval maybe is a bit more exact and like you can get things verbatim yeah yeah I think maybe just like with a helicopter view

before diving in further I'm also curious how you think about the sort of lost in the middle phenomenon I think that paper came out in 2023 and has like over 5,000 citations that showed that But back then with these 4,000 input, like I think GPT 3.5 models, they had this U-shaped curve where basically if you gave them more than five search results, it was like hope. And then particularly if the answer wasn't, if the right document wasn't just right number one, it was hopeless. So maybe you're curious just what do you think about the loss in the middle problem here in 2026, almost 2027? Yeah, it's not, I would say like we didn't actually experience like a lot of issues with this when we were playing around with in-context retrieval. I think over the years, and this is maybe, like, more hypothesizing than, like, you know, true, you know, research has been verified and so on. But my guess here is that, like, so I guess originally Lost in the Middle was, like, this, as you said, like, this phenomenon that kind of was appearing in some of the earlier LLMs

where, you know, like, language models are really good at getting information from really early on in their context and towards the end of their context. So there was kind of just basically this positional bias that came about. And my hypothesis there was like, okay, first of all, the human data kind of led to this. So basically maybe their instruction following data, maybe even their pre-training data, you would find the most relevant information for solving or doing tasks was probably towards the start of, like, some document or samples in a corpus or towards the end. And that kind of maybe led to one kind of positional bias. The other thing is maybe, like, attention itself was not, you know, like, as heavily engineered as it is today. So, yeah, like, I think as a result of that, you know, like, late 2025, early 2026 when we were working on this project, we didn't really see as many issues with this as we, you know, maybe we would have expected.

because like you said, this paper was pretty famous. But I guess it also maybe spurred a lot of improvement into long context and making sure that models can address every part of their context at the same level. I'm so excited to dive into the new neural architectures and what you're finding with attention. It reminds me of a podcast I did with Ophir Press about alibi attention. I think it was like 67. I can't even remember what number of podcasts. It was so long ago. but it was like the way that length generalization was achieved just by changing the positional encoding. It was like so straightforward sort of that it was – and then what you say about the training data, that also was interesting. And I guess just maybe also I want to just kind of set the stage more on in-context retrieval. How do you think this differs from re-ranking, like a list-wise re-ranker? Yeah, so I'd say – so there's actually been like a lot of prior work on using LLMs as like re-rankers, as you said, like list-wise re-rankers. In fact, our paper was based on, like, kind of built on some earlier work that took 100 documents and tried to re-rank them.

But, like, I'd say re-ranking is just generally a much easier task than, you know, first stage retrieval here because, you know, you only maybe need, like, 50,000 to 100,000 tokens worth of documents, at least in, like, this, like, standard, like, academic retrieval settings. and it's like because of that you don't really have that long context issue, you just have to worry about how we train the model for this fixed width context and that kind of makes the problem a bit easier probably the only place where I'd say that the problem might be a little bit trickier is where you know that all the documents that you're looking at are going to be hard negatives but I would say argue that if we're able to truly solve this long context issue an LLM should be good enough given a sufficient number of forward passes some good chain of thought it should be able to do this first stage retrieval into re-ranking in one fell swoop one set generation we just kind of have to train it properly

yeah so it's definitely like a super set problem we also have to be able to solve this long context problem to do first stage retrieval but it's not like So re-ranking is definitely a part of that. My context of how I first became aware of your paper is I met with Omar at a blue bottle in Cambridge, and we were talking about drowning in documents, and this work from Matthew Jacob and Omar also. And he recommended me your paper, and you happened to be a VLDB. It was just perfect to be able to meet and talk about this a bit. But that's how I became aware of this context is, like, this is a solution to drowning in documents. And I looked at it from, I've been looking at it from that angle that it's like, can we list-wise re-rank up to 500? I would say like, I would actually like kind of argue that this paper really tries to go beyond that because 500 documents, I think like our paper actually does really, really well at that 500 document scale.

I would actually say that a lot of projects can really nail that 500 document scale because it's really easy to take AGPUs, 8A100s, H100s, and train on 256 document or 500 document corpus scale. But once you get to that 1,000 documents, 2,500 documents, 5,000, that 10,000, like a million tokens basically, things really start to collapse really fast. I think that's really where the exciting kind of research is. How do we generalize? Because there's no way, even if we eventually wanted to get to web scale, billion documents, there's no really good way to scale training to that scale. So we would actually want to be able – we need this generalization to kind of get even to that point. so just like like even kind of like moving beyond re-ranking you know how do we get to that just

like length generalization point yeah it sounds really ambitious i think the intermediate goal is also really exciting like i think just uh list wise i think people would like to take away from the drowning and documents paper that um you know cross encoders can't really scale that well and that you expect to just be able to re-rank more and get better search but i'm i don't think there are many papers that explore like a list-wise re-rank or like LLM set-wise however you want to call the problem but like an LLM re-ranking like a hundred documents at a time I think just that right there is actually where the state of the art is yeah I'm only aware of maybe like a couple there's a couple of papers out there that do kind of like kind of think about list-wise be ranking but i would say it's it's definitely i would say like probably a lot easier now that context windows especially for frontier models um are like so good at this like 100 to like 250k

context window you know like i could probably pass in you know that many documents to like a frontier model like gemini or claude um and get pretty good results at this point it's it's still very much like that stage beyond like just not even you know like just like doubling the number of tokens like 500 000 or a million tokens and then like trying to do re-ranking or trying to do like first stage retrieval even um that's like still really really hard because that generalization problem hasn't really been solved yeah and then i think maybe like almost into coming into block search in the model you've trained, but I think like just getting, you know, a 600 million parameter model to do this, I think like probably you could get this to work with Opus 5.5 or like GPT-6 Sol, but then the question, the more interesting question is like 6 Luna with like this 10 cents per 1 million token pricing. And so the idea of also already ambitious to be scaling re-ranking, even though I'm not sure like where the cutting edge LLMs are. And then I think there's

also like little work on really training these kind of models. I think it's just kind of interesting how underexplored this is. Yeah, that was actually probably one of the first things that we were looking at too when we started looking at this problem, which is that nobody's really looked at this. We've seen a little bit of work on re-ranking, as you've said. We've seen a little bit of work on language models do how good are language models, I guess, at search. Nothing really kind of, you know, end-to-end evaluation, how do we make this work, so on and so forth. Like, there was some work from a few years ago on, like, how do frontier models do at search, but you can't really train or, like, look at attention scores for frontier models. Like, no frontier level ever published that nowadays. So I think, like, how exactly the science works here has been, like, woefully underexplored, as you say. Yeah, and so I think probably, you know, without ripping too much, I think our audience would love to learn more about the models you're training.

And you mentioned, you know, the attention scores and going into it. I think this is absolutely one of the most captivating things about this paper. Yeah, so I would say, like, something that we really kind of tried to, like, drill down on. So when we were first, I guess, like, playing around with how to best kind of get past this, like, get into this, like, length generalization setup. So just to maybe kind of set the stage here, you know, we probably had enough GPU memory to train on 256 Document Corporate. So given just standard MS Marco data, we had probably enough space to train on 256 documents. So we really needed, but we really wanted a way to get to that million token scale. That million token was this really nice kind of wow factor point. So getting to that was a huge challenge. So we kind of like went about it in stages, like first coming into like 500 documents, then coming into a thousand documents, like get good performance at 2,500 and so on. And so like just in getting to like 500 documents, we found like a boatload of challenges.

So like you know prior work in like list wise re you know they used for example like there was some work out there that would use like positional codes We actually found that you know if you use positional codes like the model learns to like expect certain documents at certain positions and you know, you get worse performance. And if you use like, you know, codes of like way too long a length, you know, it would like get way too noisy, like start hallucinating, you know, answers to the codes, answers to the queries, sorry. And so we found in general just like kind of just using random codes, It's forcing the model, like, basically encouraging the model, I should say, to, like, read the documents. And, like, you could see this actually, like, the attention to the documents, like, go kind of up versus, like, to the codes, like, once you, like, kind of randomize them. So, yeah, we found that, like, randomizing the codes, like, initially led to, like, pretty good generalization. Like, we were able to see, like, much better performance at, like, you know, this, like, 500 to, like, 1,000 document scale.

Moving beyond that was a bit of a challenge, though. So, like, that's really where we started to, like, really have to engineer this, like, the model training. So, my memory is, like, a bit fuzzy on this. So, like, maybe, like, 1,000 to 2,500 documents. Like, this is really where we have to, like, start playing around with, you know, like, making sure, like, all of our learning rate and, like, hyperparameter tuning was, like, super set. And we also have to start playing around with, like, some sort of on-policy learning. So basically, like, you know, where are we messing up in the code generation? So to give an example here, you know, if I had, like, some query and, you know, a thousand documents, it was pretty common for the model to, like, get kind of close. Like, it would spit out maybe, like, part of the right code, but then, like, the rest of the code would be kind of wrong. and this is where maybe like I thought some sort of like on policy modeling could help

in that you know at training time we like ask the models like roll out a couple of generations just to see how well it's like kind of staying on track and then like sort of like correct it at each like generation step in case it like made any mistakes on the logit level and this actually helped a little bit it didn't help as much as I thought it would at like true like million token scale but like that 1000 to 2500 document scale it helped quite a bit um it's it's it was it was surprising actually i would say that just like correcting the rollouts was was so helpful um yeah but despite like i guess all of these changes um getting to that like 5 000 and like 10 000 documents so like a million token scale um was like really really hard uh we we couldn't really figure it out and we just like using plain you know like the way we trained our model uh so far like used like kind of like post hoc changes like oh you know can we change the codes you know can we like change the way we train the model like

optimizer or like loss function stuff like that objectives um so like that's a that's at the point where we like started thinking about okay you know can we change the architecture of the model and that's what I guess kind of what led to that second half of the paper where we discussed what's going wrong with the model internally and how can we justify changes to it yeah first thing you're mentioning about the IDs that reminds me of the semantic ID work that's popular in generative retrieval where you use a VQVAE and you have discrete identifiers and a hierarchy of that to help with that problem And, yeah, I guess, yeah, and the other thing you mentioned about the kind of bias of the first stage retriever, I think, you know, expecting certain documents somewhere, I think that's a super fascinating entanglement. Probably also with what, as we talked about, loss in the middle, that idea that the models might expect, like, hey, here are the results from a search engine. It's probably going to expect, like, them to be ranked properly, and, like, you cannot,

you can never underestimate the biases and priors in these models. And I guess maybe even before coming into the architecture, I'm a little curious further into how you use the term on policy and just how you're kind of thinking about on policy versus off policy with training these particular kinds of models. Yeah. So the, like, main idea behind on policy is that, like, I actually wanted the model to generate codes just to, like, see, you know, just to, like, kind of give the, like, and I guess, like, in this sense, we kind of had a vague idea of like you know what was going wrong here so like every once in a while maybe like there's like a super hard negative or like a couple of hard negatives or something in the corpus and you know the model like starts out good but then like maybe gets derailed because it sees like another possibly relevant um document so like it kind of like gets split like stuck between a rock and a hard play sort of thing where you know it outputs like part of the code for like the right document maybe, and then sort of gets distracted by another document, like,

midway through or something, for example. Yeah, like, this is, it was pretty funny. And the most common, like, failure mode here, I would say, was, like, it would usually, like, it would, at the very first digit, it would, like, say, oh, you know, I've got, like, a couple of documents here that seem pretty good, but, you know, this one seems the best. Let me generate this document. Let me generate the code for this document. And this like usually would like cascade down, like maybe it would generate another code, but then like, it would like sort of get like distracted and, you know, go off to like generate the code for another document. Another failure mode would be, you know, at that very first digit, you know, there's like, again, five, like five really good looking documents. Like a couple of them all have the same first digit. So like, it's not really sure which one to pick. Like they all look pretty good. So, you know, It'll generate, like, one of them. And because of that confusion at that first digit, it, like, kind of percolates to the next step, even if they have separate digits.

So, like, that tie-breaking also, like, sort of led to, like, some sort of internal strife, I guess, within the model. That's, like, a bit of a hypothesizing thing. But I guess, like, the kind of the key takeaway here for us was, you know, how do we make sure the model, like, stays disciplined and, like, outputs the code for, like, the document it, like, first latches onto? Even if it's, like, kind of wrong, you know, if it's problematic, just, like, staying disciplined and, like, outputting real codes. And that's really where, like, the on-police, that was, like, kind of, like, big motivation for the on-police, like, on-police a lot. So, like, during the training, you know, we had the model do, like, a couple of rollouts on, like, some of the questions and the queries in the batch. And just based on those codes, we're able to, like, correct it kind of step by step, like, which parts go wrong. And that, like, it actually helped quite a bit. We'll see these kind of smaller scales, like 1,000 to 2,500 documents. Past that, you know, there are other issues. But we actually did see quite a bit of improvement there just by including this on policy change.

That reminds me of like structured outputs or constrained generation for list-wise re-ranking where, yeah, I guess you usually have a document identifier. And I've actually only seen pretty simple cases where it's just like square brackets one, square brackets two, and then you're just constraining that it's a list of ints. And then the really tricky thing is making sure each one is uniquely appearing once. That's like the Galaxy Brain version of structured outputs there. Yeah. We played around actually with structured outputs a little bit. We actually found quite curiously in this case, we needed to minimize this generation as much as possible because especially at these super long context lengths, Like, the possibilities of, you know, hallucination and noisy outputs just keeps going up. And, like, we couldn't afford to, like, take that chance with, like, enforcing structure. Like, we just needed to get the code and, like, kind of be done. Yeah.

Yeah, I'm curious just further into that point. I mean, we've seen some things where, like, we do a lot, like, with WeVS query agent, we parse schemas and we give some pretty complicated JSON schemas that we then ask for structured outputs with like solving text SQL that way. And is that what you mean by that? Like you have the constrained generation is so complex that, or is it kind of like the let me speak freely idea where it's like just constraining the model like that complicates the training? I wouldn't say it's like the latter. It's like it's a little bit of the former in that, you know, it's difficult to train. It's definitely difficult to train. I will say that maybe one kind of small caveat I would say to our paper is that it was only post-trained so we only took maybe a million tokens worth of data and as a result we were kind of constrained in what we could do which I think was also a good thing

it led to some interesting research but I think at an engineering level if you really wanted a good model for this that could you know check all the boxes like do the generalization um like be super robust for re-ranking so on and so forth you'd actually really want to you know get like a billion two billion like way more tokens order magnitude more tokens um and like do like some sort of continued pre-training or even like just like start from scratch pre-training um that way you just like you can get exactly the behavior you want like if you do want like a good constrained structured output um you can expect that to be like a lot more robust and consistent over, like based on a pre-trained model rather than a post-trained one. Yeah, that's a super cool like foundation model for search. Exactly. Yeah. I guess I'm just quickly curious, like, you know, think about the million token scale. I'm curious about overfitting and how you think about generalization, because if you have the same corpus that you're always sort of embedding, and then you have these queries and just, and you switch out the corpus

for a different one and just, I guess, just how you think about, because now you have to, like, your data mix has to, like, mix in different corpora. Is that how you think about that? Yeah. So we actually originally were using only MS Marco. So, yeah, I guess, like, just broadly training data. We were originally only using MS Marco. This actually worked, like, decently well, but I think, like, the issue with, like, raw, like, just, like, plain MS Marco is that it's a bit noisy. There's a lot of false negatives in it. And to maybe give the community credit, there's been a lot of good work out there on cleaning it up. So there was some recent work at the time from Nandan Takur on RLHN, I believe, where they used LLMs to clean the data. And it was a pretty rigorous system. And so we used that data, and we saw much, much better performance. just, like, purely on, like, how well this retrieval do on MS Marco.

But then we, like, also saw the issue that you're saying, you know, where, like, okay, if we only use MS Marco, like, how do we do on, like, other bear data sets, like, HopPotQA and, you know, NQ and stuff. And, like, there, you know, performance wasn't great, so, like, okay, let's mix in a little bit of, like, data across the entire bear suite into, like, our kind of RLHN training mix. And then we found, like, okay, we're able to get, like, a little bit more kind of on-par performance with like just using plain MSMARCO but the performance improvement I would say from doing this was like not you know that big so like I mean we've seen this I guess in like training models like Colbert and like other single vector retrievers but especially Colbert where you know like for example Colbert v2 only had like an MSMARCO trading mix but it still performed pretty well like out of distribution on like other bare data sets and I suspect it was like a similar thing here and they're like okay yeah while the performance was like slightly worse and like including like the extra data did help at the end of the day you know the models like learn this like

algorithm of relevance so like and their data sets are anyways like pretty similar across the board so yeah I think like it definitely did help to like include extra training data but it was like not this like big you know needle moving thing yeah so interesting yeah I guess I think like it probably like once it learns and embedding of a word in a broad scale, like, web search context, that probably generalizes pretty well. And you can maybe argue that there's, like, some contextual generalization that happens in, like, particular domains. I don't know if fine-tuning embedding models is – I heard a great argument that fine-tuning Colbert models is particularly really, like, a really powerful thing to do because of how you have the per-token representations. Yeah. Yeah, it's just taking me into that type of thinking. But, yeah, I'd love to maybe come back into this kind of, you know, digging into the neural architecture, I think that's, yeah, really unique, you know, to go that deep. Actually, I wonder, you mentioned Colbert having this, like, per-token representation. You actually have that here as well.

In fact, like, I guess, like, the whole point of Colbert is that it would approximate something like this and that, you know, like, you get these, like, representations of all these documents at the very end rather than, like, going through, like, this, like, huge forward pass where, like, you keep studying, like, interactions with attention between all these tokens. So I'd say, you know, maybe Colbert is like this like loose, like late interaction type approximation of, you know, what we were doing here, actually. Yeah. And I wanted to bring up like the refrag model architecture. Yeah And I guess like this late interaction concept I guess there so many different flavors of it And I think like when Omar is explaining Cobra he really vocal about you know maxim is just one kind of late interaction Yeah That a pretty cool idea I guess I'd love to maybe start talking about the attention dilution effect you find and I guess just understanding, like, neural architectures for long context. Yeah, so attention dilution, part of the big problem, I guess, with, like, scaling models into these, like, ultra-long context settings is that, you know,

there's, like, this, like, ultimate, like, this, like, fundamental, let me put it that way, like, upper bound on performance. And it's basically, like, hardware-based, you know, where you're just limited by how much information, like, a BF-16 or, like, FP-16 data can, data type can, like, hold. And to, like, that end, you know, attention dilution basically says, like, you know, the more information you have because of how softmax works um the scores are just going to get like very very similar to one another because the denominator gets so large relative to the numerator at some point that regardless of what you do you know you're just going to end up with like super super similar um looking scores for all of your tokens okay i said like regardless of what you do but that there's a cut there there are some things you can do actually um so usually what people do when they see issues like this is that they do like one of two things. The first one

is, you know, you can like make the softmax more peaky again. And so like there's like pretty simple, you know, you just like divide the numerator and the denominator, like in the exponential bits with like a flat temperature, like just a simple scalar. And that'll like make it you know peaky again uh but like the problem with doing that is that you know temperature it kind of varies depending on like how much like quote-unquote stuff is in the denominator like if you if you don't have a lot of stuff then maybe you want a different temperature versus when you have a lot of stuff so like now you have to worry about like making a dynamic so like that's like kind of like something people have been looking at in the context in this like long context setting um i probably will go a little bit maybe into that i'll go a little bit into that in a bit um but the other thing that i did want to mention was um this like notion of i guess okay you've got a lot of stuff in your denominator now what if we could just like pre-process quote-unquote pre-process the denominator and like get rid of like a decent chunk of the stuff right and so the

motivation here is that you know like for attention like the vast majority of the tokens that like a query token when I tend to probably aren't that useful you know like you really only need like a small subset of them like very very few of them in some sense like to the like re-ranking point you know you probably only actually need to worry about a few of these tokens like you probably could just pre-process like a whole boatload of them just worry about like a small subset of them um and this is like I guess like pretty similar to RAG in that you know we could like segment the tokens document in fact this is actually what we did we tested this you could like segment the tokens document by document um and then like take the query tokens and like before you actually run attention basically you know you could like like look at all of the tokens uh corresponding to each document and based on the ones that like have like these like low you know dot product scores or like low maximum scores you could you can pick your you know notion of still married um based on that you could just like decide okay these are the ones that like have no relevance

we're going to actually just drop them from the attention computation these are ones that have high relevance you know we're going to actually use them in attention computation um and from that from that sense like you know things actually work pretty well uh that's that was like one of the big like kind of performance improvement things in like the latter half of our paper once we were like all right you know million tokens doesn't really work with our base model what needs to change so that was one of the things that really seems to work the other thing is of course this like messing around with temperature scaling so like there's been some prior work that's like also kind of identified this attention dilution issue like for example like the the the prior drowning in documents paper that you were mentioning did also like kind of allude to this problem um the issue that so like i guess like the issue like like this temperature scaling compared to, so I guess like maybe I should actually first explain what the temperature scaling works here. So the idea here is that basically like you can add like a parameter or like some sort

of function that's like parametrized by length into the Softmax numerator. And so the reason you want to do this is because even though the denominator scales with the length, right, you're just like, you're summing up over all of your tokens, the numerator doesn't scale with the length. And that's what really leads to that, like, kind of washout effect where, like, all the scores end up looking really, really similar. So you could just add, like, some, you know, multiplicative or, like, parameter into the exponential that's, you know, as a function of the length n, right? And as a result, like, the scores, like, stay, like, relatively consistent, like, with respect to length. And that seems to also help performance quite a bit. So, like, we actually put both of these together, and by the end of the paper, you know, we actually found that it was, like, at about the same level as dense retrieval, which is, like, still really not great. You know, like, you'd expect, like, at million tokens, that is, you know, you'd expect, like, this, like, all-powerful, you know, really well-trained decoder language model to be able to, like, significantly outperform a, you know, dense retriever.

but I think that was like a, it's a pretty good start, I would say. Like there's definitely like a lot more interesting research to be done here about architecture because, you know, I feel like we did like a pretty good job in this paper establishing that, you know, there are like cool tricks you can do with respect to the data and the training, but at some point like it's like the architectures of like the Quen 3 generation just aren't enough to, you know, get past that like, there's like certain like inflection point where attention just becomes impossible for the model to use. Yeah, and I definitely want to anchor with your thoughts on just like what kind of timeline you think is reasonable for that kind of thing. But if you don't mind me just nerding out on the details a little further on the kind of sparse attention you're mentioning. So I guess the only idea I'm really familiar with that I feel like I understand well is with refrag, you have this idea where like you take a chunk of like you have a document chunk and you either represent it with one vector or you have a policy in the middle. that's like choosing when to expand some of these chunks into a higher,

you know, more fine grained representation from say like one vector into 32 vectors. And so that kind of like policy expansion, that's all I really understand for like this kind of, I don't know if you'd call it sparse attention. I mean, it kind of is the same like concept. Yes, I guess if you don't mind just like, I know you just explained it well, but if you don't mind just kind of explaining a little further, like what do you mean by the, like you you can throw away certain chunks yeah so i you actually kind of like brought up i guess like the high level idea behind this which is is like you know it's farce attention right and this is where i really uh you know because you mentioned that you know it's like vector db workshop where at vldb you know this is like really like a great opportunity i think for you know like retrieval research because this because i think like on a multiple multitude of levels like as far as not just like attention dilution. Sparse attention is like a great opportunity for, you know, speeding up attention in the first place. Like attention is like this like quadratic like bottleneck basically on, you know, LLM deficiency at scale, right? So

the idea behind sparse attention in general is like, you know, for example, with Refrag, you know, what we were talking about with these like document-based kind of token aggregations and so on, is that we can like basically just pre-process the tokens that go into attention. So we want to make sure that attention sees a very limited set of tokens, because if you see more than that, then you run into this dilution issue. It gets really, really slow. There's a whole host of issues. So we want to be able to pre-process the number of tokens that go into the attention mechanism. And there are great sublinear methods that we could come up with that like vector search has been playing around with for you know gazillions of years um but like i guess like the the true kind of challenge here is that you know a lot of the approaches that you see today um are kind of post hoc they're not really like completely and utterly baked into the model at pre-training um and the reason for that i think uh and this is like again

like hypothesizing i'm not really like completely 100 sure about the current state-of-the-art literature here is that like there's no like good pre-trained way to like load this these like some sort of retrieval engine into a model like how do we do like you know we could do a forward pass right like just simply like do the pre-processing but then how do we do the backwards pass through something like this you know like what would a backwards pass through a retrieval engine even look like um and so in that sense and like what's really exciting here is that you know So sparse attention could solve a lot of problems with LLM generation in that we could make your way faster. We can significantly improve long-context capabilities. We could solve all of these issues, both the efficiency and accuracy sides of the tradeoff. But we still haven't really figured out how to really make it part of an end-to-end trade model. So that's a huge kind of open challenge, I would say. yeah that inspires so many so many ideas for me i guess just like the first thing is i remember

back when hallucination with rag was such a big deal and i'm just like citing times i've met people in cambridge i was talking to nathan lambert about this at the diesel cafe in somerville but this idea of like why don't we train the models with rag with retrieval in the input and that would probably fix that problem and then remember me with contextual ai and they were trying to do, they used to call it rag like Frankenstein rag and we need to put gradients from the generator into the retriever. But then you have this horrible problem that you're describing of like, you need to keep updating the retriever as you're training it. And then that becomes a problem because the index is stale. And I mean, right, I'm totally distracted myself, but right now there's a lot of cool work on updating the index with a new embedding without re-indexing the whole thing. And so that's an interesting tab to open. But then, And, yeah, I guess just coming back home, this idea of how do we inject pre-computed representations into the models, it sounds like the most compelling future for vector databases. It sounds like just, yeah, pretty cool option.

You know, even more than just, like, even to, like, so pre-computed representations into the models, like, so that's, like, maybe a bit more, that's definitely, like, interesting, you know. Like, RAG in general is, like, still, like, I would say alive and well, and, you know, you still need it to, like, issue, like, handle, like, tail queries. but like even just like simpler than that you know um if we have a lot of information in a context like how do we identify what's the most important parts of that context like it like maybe going back to this like icr setting of you know we're just dumping all of our documents into the context we don't know what's the most important so in that sense even like retrieval suddenly becomes really important because like as you know like you and i like we've worked on vector search for quite some time. It seems like a classic sublinear time, like A&M type problem where most of this stuff is useless. We should be able to very efficiently get rid of it so that we can focus on the important parts. But people really haven't figured that out yet. In that sense, in fact, it doesn't even matter if we keep an index fresh or not. Just quite simply

is there a sublinear version of attention? Yeah, super cool. I mean, such a cool topic. and yeah, absolutely, definitely. I mean, I guess for me, it's like, is OpenAI or Anthropic, can they just, are they just going to train one of these models? But yeah, I mean, the work that you're leading. We've seen a little bit of it from DeepSeq and some of the other Chinese labs, like Alibaba for Quen. But it's getting there, you know, it's getting there. Maybe we might see something within the next year or so, yeah. Yeah, we need the vector database number. Yeah. I was like, we're going to do that. Yeah, awesome. So, yeah, I guess I'd love to come back to kind of, you know, we were talking a bit about, like, the current state of the experiments is it's difficult to scale this long context re-ranking from 500 tokens to 1,000 tokens. And I guess I'd just love to know your current sentiment on, like, you know, you mentioned, like, working with eight GPUs. You think it's just a matter of scaling up the resources?

Like, what do you think is needed to push it? So I think at the time, let's see, let's need to push it. Excuse me. So I guess the idea here that I would kind of push on is we really want to essentially just really make this well-engineered. So I actually think you could squeeze out quite a bit more performance from a properly trained model on a GPUs. but I guess like training the model you would want like a bit more GPUs so that you could like efficiently pre-train at you know some really large token scale so not even like larger more parameters per se but you know if I want to train on a trillion tokens you know doing that on a GPUs is like kind of annoying you know you could do it don get me wrong but it like it take take a couple weeks so I don really want to do that On the flip side you could just if we had more GPUs

you could really nicely, efficiently prototype and iterate, and see, okay, these are the architectural improvements that do help, these are the architectural improvements that don't help. Excuse me. And that would really help in just getting from that 500 to 1,000, to like 2500 scale. Yeah. I mean, like, yeah, I think like the big point here that I definitely want to drive home is that, you know, less so from like an engineering perspective, we really just want to be able to like see like, okay, how do things work at pre-training? So in that sense, we would want more GPUs, but don't get me wrong, you would also be able to like really, really use them for like better engineering and stuff. Yeah, I almost feel, well, yeah, I remember like in the early neural architecture search papers with like Kwok Lee from Google and he'd be like, we figured out how to use all these GPUs. And then it almost reminds me of thinking like having more agents. It's almost like this question of do you want more cloud code usage?

And just like, yeah, to do more research, of course, like to have more resources, like more resources would be great. Yeah, you can never go around with more resources. Like I could, you know, we could always come up with like, we could always, we could sit here like all day brainstorming, you know, oh yeah, what we could do with more and more GPUs. So, like, yeah, if I had to pick one thing, you know, it would be like, okay, yeah, great, now we can pre-train a little faster. That could open up some more possibilities. Yeah, and I guess, like, just how much would it surprise you? Maybe that's, like, an interesting way to phrase the question. Like, how surprised would you be if a re-ranker on the scale of, say, yeah, 500 to 1,000 comes out before the end of 2027? I'm actually really surprised there already isn't a re-ranker because I think because for example we were talking about retrieval and we were kind of under the impression that re-ranking already is probably not too far off so my suspicion here is that more so than a retrieval having not come out

people are still pretty happy with how current re-rankers already work so maybe they haven't put a lot of effort into some big fancy LLM-based one. But I would say that, yeah, I would say, so maybe I'm actually kind of surprised that one isn't already out. It seems like, relatively speaking, it's a much simpler task. You really have to just worry about the data quality, how you train the model. You don't have to worry too much about model architecture, I feel, because you have a very fixed context length, and you know that you're always going to be looking at, you know, 500 to 1,000 documents at most probably for a re-ranker. And, you know, that regime is obviously, like, pretty well captured by, like, a lot of, like, open LLMs. Like, you know, Gemma, I think, has, like, 128,000 context length now. So, like, it is kind of surprising that people haven't, like, like there aren't re-rankers out there already. And, in fact, I'm sure there might be, so.

Yeah, and I guess I think, like, probably the search world objection would be like the latency of it is probably why not. Because I guess like in our world at WeVA, we deal with a lot of like, you know, sub 50 millisecond latency, that type of thing. And so I feel like that's probably like, this kind of like what's the application of high latency search? Like, we have like search mode with a query agent. We're really interested in pursuing this. And it's like with deep research agents or I don't think like code and code and search is an interesting one because like grep is so powerful there. And I don't think like vector servers. Agentec is definitely more powerful there, yeah. Yeah, I agree. So I think maybe the latency is the big issue here. You definitely, I mean, I guess if you don't mind me asking, what are the parameter sizes of the re-rankers that you use in production at Weaviate? I don't know if we've been open about that. Oh, yeah.

I guess, like, on that scale, like, I'm trying to, like, think, like, parameter scale, you know. Like, that's probably, at least, like, the latency issues for, like, these, like, LLM-based re-rankers. But, yeah, I could totally see them being, like, super relevant for these, like, harder questions. Like, these, like, AI mode style questions, maybe, to, like, put it in, like, Google terms. these AI mode style questions where you still need like to be able to recover a lot of information, but the user is going to give you a little bit more leeway in terms of like how fast they want. Yeah. And then so that motivates me. Another question I think is really interesting as we talk about like applications of high latency search or maybe like multi-hop search or deep research style use cases. And then but then it's like, well, if you have a long context LLM, can it just do this kind of multi-hop search in one pass? I even saw a really cool paper this morning from your advisor at Berkeley

that's titled No More Free Lunch, Corpus Task, Complexity Matters as Corporate Grow. And I think it's on this topic of like, you know, can LLMs really like, long context LLMs like eat the database away and what like a database does for you. Yeah, that was a great paper out of, so the paper you mentioned is a great paper out of my lab mate, Prasant. He did a lot of great work on that over the past year. And I actually think that's really where we want long context LLMs to be. I guess he kind of pointed out they're not very good at it right now because long context training tends to focus a lot on search-based tasks like NIA and MRCR and so on. And tool use, I guess, and long chats. So, like, there are these, like, these, like, much more complicated tasks, these, like, quote, unquote, higher complexity tasks that, like, long context language models aren't really good at. And I think that's really where, like, we want long context language models to be.

Like, that's really where they could shine. Because, like, when we kind of train models to do things, like, the way we want them to do it, I guess, like, that kind of introduces, like, inductive bias of, like, how humans do things, the models should mimic it. but like I guess like maybe like part of the allure of a long context model is that you know you could possibly just dump all a bunch of information to the language model and then like sort of let the language model go ham in an unsupervised fashion maybe like actually is able to like discover something new from like all of its all the like training it's done that you know we as humans would have not been able to notice so I think that's really the promise like it can discover these uncovered connections between different pieces of data that you might not be able to get if, for example, you were using agentic search, you're talking about grep, you're using agentic search and you grep for one thing and you grep for another thing, and there's an expectation of the relationship between those two pieces

of grep information. Here, we can just give it a bunch of information, and it has to figure out what's relevant. In doing so, it might uncover something super interesting. And that's kind of a big takeaway I had from hosting Alex Zhang on the podcast about recursive language models. And, yeah, it's like they learn, like, decomposition, like, in the long context. Yeah. I really like this, like, notion of unsupervised, like, learning here because, you know, I think we're, like, very quickly, like, at the frontier level, you know, like, we're very quickly reaching this, like, point where, you know, these models are able to do so many things really, really, really well. It would be super cool to see, like, okay, how do we, like, kind of move beyond that? How are we, like, consistently going to build and get new information out of these language models? Yeah. Yeah, and I guess, like, this idea of just, well, I guess there's, like, two things. Because at Alex's, like, with the recursive language models, you have, like, the decomposition that's very interpretable.

whereas I think like the way you're thinking about like directly in the vector space of the models it's more like you know uninterpretable if you just make it that simple and then I think about like is everything I do with intelligence broken down into like very simple things and I kind of think yes yeah you all but you could also argue you know that vectors you know they're they're these are pretty high dimensional vectors nowadays you know like it's like it's just more information The higher the dimension, the more the information. And so there's so many things encoded in these vectors. It's hard to really track. And I think in being able to encode that much information, there are interesting insights that these models find just by interacting with features at such high scale. Yeah, I love TSNE embedding visualizations. I just use them for random things. Even just going my way back, or to me still blows my mind. Yeah, the king minus, is it?

Yeah, the king minus queen thing, plus like men, yeah, really, really mind-blowing. Yeah. Awesome. Well, Sidharth, this has been such a cool conversation. I've loved learning more about this work and just all these things really have been just really exciting. So a question I love to anchor the WeVA podcast with is, like, in addition to your work, but as well as just outside of work as an AI researcher, what directions for AI excite you the most? Yeah, I think we were just kind of, like, talking about this, like, these unsupervised notions of relevance. Like, maybe to, like, kind of, like, motivate this a little bit. You know, if, like, we're seeing a lot of news about this, like, when it comes to, like, proving theorems, you know. Like, if I want to prove, like, some super ambitious, like, conjecture, right, or, sorry, resolve some super ambitious conjecture or, like, prove some, like, unsolved, like, theorem or something or unproven theorem or something like that. and I just want to like give this to a language more like so prove x or like you know resolve y something like that and this requires like these like really kind of these like brand new

directions of mathematics like you know you have to like maybe discover connections between like two kind of different fields you know you have to like like really come up with some sort of like new technology or like new like proof methods to like to solve this you know like basically we have to like come up with completely new knowledge like in that sense you know like how do we get language models to that point you know is it like just like a lot of like inference time test time search capabilities you know like do we have to like really bake that into the model more so i can like find interesting things um do we have to like like teach it new notions of relevance like how do we get the model in some sense to be creative here? This is something that I've been kind of thinking about a little more over maybe the past just month or so because we've seen a lot of these remarkable discoveries come out just over the past few months. So I think how do we move beyond that? That seems really, really exciting to me.

Yeah. Yeah, I guess like I'm kind of splitting what you're saying into like the sort of improvements in verifiable and non-verifiable. I don't know why I've just been thinking about it a lot that way. But like in terms of like, you know, a novel way to solve a conjecture, it's like maybe you need like causal inference and like more neurosymbolic innovation there, I think. Yeah. Something interesting actually that you mentioned like verifiable versus non-verifiable is that like I guess here you really want the only like good way to benchmark, how well you're doing here is, you know, are you discovering new things? And that reminds me of someone, I think it was actually at the VectDB workshop where someone was saying, you know, they were working on this health-based vector search task and something about proteins or something. And they took it to this workshop on health at ICML or ICLR this past year or something. and you know basically those those guys were like yeah this is cool you know you like do really well

in all these benchmarks but like you need to discover new stuff and like in that sense it's like okay like a real true test here like okay if we are able to find this like like interesting notion of creativity or like these like like more unsupervised notions of relevance like it comes down to you know are we discovering new things with it so yeah i guess it's maybe like the cost of rollouts when you talk about like going from coding to something like proteins i think that's like one thing i think like the biological machine is so complex that you can't afford to just test it like how you can with coding and that's yeah but it's still verifiable it is absolutely yeah like and you know even in the case of math like we can always just like this is a bit dangerous but you can always just like say okay here we've got a preprint here can like the mathematicians you know verify it uh yeah they might know they're not really too happy about that right now but i agree with the point for whatever it's worth i think he makes good

points yeah yeah awesome well uh sidhar thank you so much for joining the weba podcast it's been such a fun conversation i've learned so much and so awesome to meet you thanks again yeah likewise thank you so much for having me on

番組の概要欄(原文)

<p>Siddharth Gollapudi, a researcher at UC Berkeley, joins the Weaviate Podcast to discuss in-context retrieval and his paper &quot;Can Language Models Actually Retrieve In-Context? Drowning in Documents at Million Token Scale.&quot; The idea is simple and radical: instead of encoding documents into embeddings and building a nearest neighbor index, put the entire corpus into an LLM&#39;s context window and use attention itself as the retriever. The conversation opens by separating this from generative retrieval, which memorizes documents into model parameters and needs gradient updates every time the corpus changes, and from listwise re-ranking, which Siddharth frames as an easier subset of first-stage retrieval. Lost in the middle, he argues, turned out to be much less of a problem with today&#39;s long-context models.The discussion then dives into BlockSearch, a 0.6B parameter in-context retriever trained on MS MARCO (cleaned with RLHN) plus a mix of BEIR datasets. Reaching 500 documents was relatively easy; scaling to 2,500, 5,000, and 10,000 documents, or roughly a million tokens, is where things break. Siddharth explains why random document codes beat positional codes (they force the model to actually read the documents), and how an on-policy loss that corrects the model&#39;s own rollouts keeps it disciplined when hard negatives pull it off course midway through generating a code.From there, the conversation moves to attention dilution: as the corpus grows, the softmax denominator swamps the relevant document&#39;s score. Two fixes help, length-dependent temperature scaling and sparse attention that drops irrelevant documents before attention runs, bringing BlockSearch roughly level with dense retrieval at a million tokens. This opens a big question for vector databases: is there a sublinear, ANN-style version of attention that can be trained end to end, in the spirit of ReFrag and ColBERT&#39;s late interaction?The episode closes on timelines for LLM-based re-rankers, the latency trade-offs of high-latency search, &quot;No More Free Lunch&quot; and whether long-context LLMs can eat the database, recursive language models, and Siddharth&#39;s excitement for unsupervised notions of relevance that could help models make genuinely new discoveries, such as proving open theorems.</p><p>Chapters0:00 Welcome Siddharth!1:21 In-Context Retrieval8:16 Drowning in Documents and Reranker Scaling13:05 BlockSearch, 0.6B In-Context Retriever28:21 Vector Databases for LLM Inference40:46 Timelines for In-Context Retrievers46:54 Will LLMs eat Databases?51:38 Exciting Directions for AI</p>

出典・この記事について

番組
Weaviate Podcast(Weaviate)
元の回
In-Context Retrieval with Siddharth Gollapudi - Weaviate Podcast #146!
配信日
要約作成日
公式サイト
weaviate.io

この要約・解説記事は、元の音声を文字起こしした内容をもとに AI(Claude)が日本語で作成したものです。 固有名詞や数値に誤りを含む場合があるため、正確な内容は元の音声でご確認ください。制作方法について

X でシェアApple Podcasts で聴く

関連エピソード