Meta-AC:超越单维度优化的AI智能体自适应框架 AI Engineer 2025-11-24

引言:Meta-AC框架概述

大家好。今天我将介绍Meta-Adaptive Context Engineering(Meta-AC:元自适应上下文工程),这是一个旨在超越单一维度方法优化AI智能体的新框架。我们将探讨如何协调多种适应策略,以克服现有上下文工程方法的局限性。

View/Hide Original English

Hello everyone. Today I will present meta-adaptive context engineering, or Meta-AC for short, which is a new framework designed to optimize AI agents beyond single dimension approaches. We will explore how orchestrating multiple adaptation strategies can overcome the limitations of existing context engineering methods.

接下来,我将简单介绍一下自己。我是Alberto Romero,Jointly的联合创始人兼首席执行官。在Jointly,我们为受监管行业构建专业的智能体,这些行业对政策合规性的要求尤为严格。我们的大部分研究工作都集中在使用系统方法构建自优化智能体架构领域。

View/Hide Original English

Now a little introduction about myself. So I'm Alberto Romero, I'm the co-founder and CEO at jointly. And for context at jointly we build the main specialized agents for regulated industries where policy adherance constraints are particularly strict. Most of our research work is in the area of self-optimizing agent architectures using systematic approaches.

关于我个人,我在AI和数据交叉领域工作了20多年。我最近的一些经验包括担任Human AI的首席技术官和联合创始人,该公司专注于为移动出行提供基于机器学习的风险预测,并于2023年被AON收购。在此之前,我曾领导花旗银行的生成式AI工程团队。

View/Hide Original English

Now about myself, I have spent 20 plus years at the intersection of AI and data. Some of my recent experience includes being the CTO and co-founder of human AI, think ML-based risk prediction for mobility, which was acquired by AON in 2023 and in my previous role I headed up city bank's genai engineering team.

这是我们今天的议程。我们将首先探讨当前系统面临的动机和问题,然后回顾Agentic Context Engineering(AC:智能体上下文工程)框架及其局限性。

View/Hide Original English

Now here's our agenda for today. We'll begin with the motivation and problems that current systems face. Then we'll review the AC framework and its limitations.

在调研了最新的研究成果后,我们将介绍Meta-AC方法。我们将讨论其架构和策略工具箱,展示一些结果,并以未来的方向和挑战作为结束。

View/Hide Original English

After surveying recent research insights, we'll introduce the Meta-AC approach. We'll discuss its architecture and strategy toolbox, show some results and finish with future directions on challenges.

智能体上下文工程(AC)框架及其局限性

智能体上下文工程(AC)框架,其论文链接已在幻灯片上提供,是一个非常流行的框架,其论文在几个月前发布。它基本上将智能体组织成三个角色:首先是生成器(Generator: 负责产生推理路径的组件),它产生推理路径;其次是反射器(Reflector: 负责从执行中提取经验教训的组件),它提取经验教训;最后是策展人(Curator: 负责将经验教训合成为增量更新的组件),它将这些经验教训合成为增量更新。

View/Hide Original English

Now the agentic context engineering framework or AC for short, for which you've got the paper link on the slide there. So it's it's very popular framework and the paper came out a few months ago. Basically organizes a patient into three roles. First of all there's a generator that produces reasoning paths. Then there's a reflector that extracts lessons. And finally, there is a curator that synthesizes these lessons into incremental updates.

AC使用增量式Delta更新(Delta Updates: 仅更新变化部分)和“增长与完善”机制来防止上下文崩溃(Context Collapse: 上下文信息变得冗余或不相关)并保持相关性。

View/Hide Original English

AC uses incremental delta updates and a grow and refine mechanism to prevent context collapse and maintain relevance.

最重要的是,它可以通过直接从执行反馈中学习,在没有标签数据的情况下进行改进。

View/Hide Original English

Now, most importantly, it can improve without label data by learning directly from execution feedback.

AC已经相当成功,并在一些最流行的语言模型基准测试(如Upworld或Finer)中取得了显著的进步,与Japa或DC等之前的最先进方法相比,性能提升了近11%。

View/Hide Original English

Now so AC has been quite successful and has achieved substantial gains across some of the most popular HM benchmarks like Upworld or finer almost an 11% compared to previous state-of-the-art approaches such as Japa or DC.

它还在金融推理任务中取得了8.6%的提升。

View/Hide Original English

Um and it's also achieved an 8.6% um gain on financial reasoning tasks.

然而,AC存在四个基本局限性,我将在下一张幻灯片中进行反思和讨论。这些局限性基本上构成了Meta-AC的基础。

View/Hide Original English

Um there are four fundamental limitations um for AC that I'm going to reflect on and um just discuss on the next slide. Um and those form the basis for um for meta AC basically.

正如我所说,尽管AC具有优势,但它有四个关键的失效模式。首先,它高度依赖于反射器。因此,当反射失败时,上下文会变得嘈杂甚至有害。

View/Hide Original English

Now as I was saying um despite it strength AC has got four critical failure modes. First it is highly dependent on the reflector. Um so when reflection fails the context becomes noisy and even harmful.

其次,存在反馈脆性(Feedback Brittleness: 系统对弱或缺失的反馈信号敏感),这意味着当真实信号(Ground Truth Signals: 准确的、未经加工的原始数据或信息)微弱或缺失时,AC可能会强化不正确的行为。

View/Hide Original English

Uh secondly there's feedback brittleleness which means that when ground truth signals are weak or absent AC may reinforce incorrect behaviors.

第三,是任务复杂性盲区(Task Complexity Blindness),这导致它对简单和复杂的任务一视同仁,这可能会浪费资源,并错过优化的机会。

View/Hide Original English

Third, the the task complexity blindness um which leads to treat simple and complex tasks the same which can be a waste of resource uh and also a miss of opportunities um for optimization

最后,AC只优化上下文维度,因此忽略了计算、内存和参数更新。

View/Hide Original English

and then finally um AC optimizes only the context dimension so ignores compute memory and parameter updates.

2024-2025年研究格局与Meta-AC的引入

2024年和2025年的研究格局提供了四个关键见解。首先,验证机制,如自我评估、多模型共识(Multimodel Consensus: 综合多个模型输出以提高鲁棒性)和执行检查,对于任何解决方案的鲁棒性都非常重要。

View/Hide Original English

Now the 24 and 25 research landscape offers um four key insights in my views. First of all uh verification me mechanisms uh like self evaluation, multimodel consensus and execution checks are really important for robustness of any solution.

其次,自适应计算分配表明,通过选择性地增加推理步骤,小型模型可以超越大型模型。

View/Hide Original English

Secondly, uh adaptive compute allocation shows that small models can outperform much larger ones by selectively increasing inference steps.

第三,结构化内存架构通过将事实组织成图或多粒度内存,优于线性上下文积累。

View/Hide Original English

The third one is that structured memory architectures outperform linear context context accumulation by organizing facts as graphs or multi-randular memories.

最后,测试时训练(Test-Time Training: 在推理阶段对模型参数进行临时更新)弥合了推理和学习之间的鸿沟,并能够通过临时参数更新获得巨大的准确性提升。

View/Hide Original English

Then finally, test time training bridges inference and learning uh and enables temporary parameter updates to yield large accuracy gains.

这些进展表明我们需要一个混合的多维度系统。

View/Hide Original English

So these advances suggest that we need a hybrid multi-dimensional system.

Meta-AC通过添加一个元控制器(Meta Controller: 学习协调多种适应策略的顶层控制器)来解决AC的局限性,该控制器根据任务的复杂性、不确定性、可验证性以及资源限制,学习协调多种适应策略。因此,Meta-AC不再对每个问题应用相同的程序,而是对每个任务进行画像,并在上下文、计算、验证、记忆和参数维度上分配正确的策略组合。

View/Hide Original English

Now, MetaC um addresses AC's limitation by adding a meta controller that learns to orchestrate multiple adaptation strategies based on a task's complexity, uncertainty, verifiability, and also resource constraints. So instead of applying the same procedure to every problem, Metaac profiles each task and allocates the right combination of strategies across context, compute, verification, memory and parameter dimensions.

这种自适应的、学习到的协调能力使其能够超越单一维度的方法。

View/Hide Original English

Um so this adaptive uh learned coordination is what enables it to outperform single dimension methods.

Meta-AC的架构

Meta-AC框架由四个层组成。

View/Hide Original English

Now the the meta framework consists of four layers. So getting into the architecture

第一层是任务画像(Task Profiling: 评估任务特征的模块),它评估复杂性、不确定性、可验证性和资源预算。

View/Hide Original English

um the first layer is the task profiling one which assesses complexity uncertainty verifiability and resource budgets.

然后是一个轻量级的元控制器,它相应地选择和分配适应策略。

View/Hide Original English

Then there is a lightweight meta controller that selects and allocates adaptation strategies accordingly.

下一层是策略执行(Strategy Execution: 执行具体适应策略的模块),它执行反射、自适应计算、分层验证、结构化内存检索和选择性测试时训练。最后是反馈聚合(Feedback Aggregation: 收集结果并更新元控制器策略的模块)层,它收集结果并通过元学习(Metalearning: 学习如何学习)更新元控制器的策略。

View/Hide Original English

The next layer down is a strategy execution one and the carries out the reflection, adaptive compute, hierarchical verification, structure memory retrieval and selective uh test time training. And then finally uh there's a feedback aggregation layer that collects the outcomes and updates the meta controllers policy through metalarning.

这种分层设计使得系统能够从经验中学习,并不断完善其决策过程。

View/Hide Original English

So this layer design allows the system to learn from its experience and uh continuously refine its decision making.

在任务画像方面,评估了四个关键维度。第一个是语义复杂性(Semantic Complexity),这基本上是基于嵌入的相似性,用于已知的任务分布。

View/Hide Original English

Now in terms of the task profiling um there are four key dimensions that are being assessed. The first one is uh semantic complexity. So this is basically an embedding based similarity to uh known dash distributions that gets produced.

第二个是不确定性量化(Uncertainty Quantification),可以将其视为预测模型置信度的相对Softmax评分。

View/Hide Original English

Uh second one is uncertainty quantification. Uh think of it as a relative softmax uh scoring that predicts model confidence.

第三个是可验证性评估(Verifiability Assessment),即我们是否可以执行和验证输出。

View/Hide Original English

The third one is verifiability assessment. So whether we can execute and validate the output.

第四个是资源可用性(Resource Availability),我们考虑了上下文窗口、计算预算,甚至其他限制,如时间。

View/Hide Original English

And then the fourth one is resource availability. So we take into consideration the context window, the compute budget and even other constraints such as time.

任务画像层的输出是一个32维的任务嵌入,它作为输入传递给元控制器。

View/Hide Original English

So the output of this layer of the task profiling layer is a 32dimensional task embedding which is what fits as input into the meta controller.

Meta-AC的策略工具箱

Meta-AC借鉴了六种策略。第一种是最小上下文(Minimal Context),它为简单任务使用简洁的提示。

View/Hide Original English

Now in terms of the strategy toolbox um meta draws from six strategies. First one is minimal context which uses concise prompts for simple tasks.

然后,我们使用AC反射,它保留了生成器-反射器-策展人循环,用于增量知识积累,这由标准AC建立。

View/Hide Original English

Um then we use AC reflection uh which retains the generator reflector curator loop for incremental knowledge accumulation um as established by uh standard AC.

我们还使用自适应计算(Adaptive Compute),它根据任务难度调整推理步骤或样本的数量。

View/Hide Original English

Then we also use adaptive compute which scales the number of reasoning steps or samples based on the task difficulty.

我们还使用分层验证(Hierarchical Verification),它结合了自我评估、多模型共识和执行检查。

View/Hide Original English

We also use hierarchical verification that combines self-evaluation multimodal consensus and execution checks.

自适应记忆(Adaptive Memory)从结构化的多粒度记忆中检索相关信息,最后我们使用选择性测试时训练(Selective Test-Time Training),它对高风险任务应用临时参数更新,例如低秩适配器(Lower Adapters: 一种参数高效的微调技术)。

View/Hide Original English

uh adaptive memory uh that retrieves relevant information from structured multi granular memories and then finally we use selective test time training which applies temporary parameter updates such as lower adapters for high stakes tasks.

元控制器会随着时间的推移学习有效地组合这些工具。

View/Hide Original English

So the meta controller learns to combine these tools effectively over time.

元学习循环与奖励公式

选择学习策略所依据的奖励公式考虑了以下组成部分:首先是行动或预测的正确性,即准确性。

View/Hide Original English

Now the um reward formula um upon which the the learning strategy is selected accounts for the following components. Um the first one is the correctness of an action or prediction which is accuracy.

其次是与所用资源或负面结果相关的惩罚,即“1减去成本”。然后是模型的可信度(Trustworthiness),即自我表达的确定性。

View/Hide Original English

Then we also have the penalty associated um with resources used or negative outcomes. So one minus cost and then is the trustworthiness of the models which is self-expressed certainty.

这基本上是置信度校准,其加权重要性由超参数Alpha、Beta和Gamma决定。

View/Hide Original English

So the confidence calibration basically uh with weighted importance determined by the hyperparameters alpha, beta and gamma.

在元学习循环方面,我们有四个反馈收集来源。首先是任务结果,即任务的成功、失败或正确性。其次是策略性能,即每种策略对任务整体性能的个体贡献。

View/Hide Original English

In terms of the uh metalarning loop um we have four sources of feedback collection. Uh first of all is task outcomes. The success failure or correctness um of the task. Then we've got the strategy performance. So what is the individual contribution of each strategy to the overall performance of the task?

然后,我们还有效率指标,如计算、延迟、内存。最后是置信度校准,即预测的准确性。

View/Hide Original English

Then we also have efficiency metrics such as the compute, latency, memory. And then finally we've got confidence calibration. So where predictions are accurate.

Meta-AC如何解决AC的局限性

现在,我们来讨论如何解决AC的局限性。第一个问题是弱反射器问题(Weak Reflector Problem)。AC的问题在于,当反射器质量下降时,性能会下降50%到60%。通过Meta-AC,我们主要引入了三项改进。首先是质量门(Quality Gates: 阻止有害更新的分类器),这是一个学习分类器,可以阻止有害的Delta更新。

View/Hide Original English

Um so moving on to um how we go on about uh solving the uh the limitations from AC. The first one was the weak reflector problem. So AC's issue is that there is a a 50 to 60% performance drop when reflector quality degrades. Um with beta AC we introduce um uh three things basically. So first of all is quality gates. Um so it's a learned classifier that blocks harmful deltas and secondly

其次是多信号反射(Multi-Signal Reflection),它基本上是专家模型的集合,用于处理不确定性。

View/Hide Original English

there's a multi- signal reflector uh or reflection which basically um is an ensemble of specialist models uh when there is a level of uncertainty.

第三是自适应策略分配(Adaptive Strategy Allocation)。元控制器学习何时反射失败,然后转而使用验证或测试时计算。

View/Hide Original English

Uh and then the third one is adaptive strategy allocation. So the meta controller learns when reflection fails and then it roots to verification or test time compute instead.

因此,即使反射器性能下降约30%,我们也可以期望保持80%以上的性能。

View/Hide Original English

Um so we can expect to maintain an 80% plus performance even when the uh reflector degrades around 30%.

我们遇到的第二个局限性是反馈质量脆性(Feedback Quality Brittleness)。

View/Hide Original English

Now the the second um limitation we had was um the feedback quality brittleleness.

我们观察到,在没有可靠的真实信号的情况下,AC可能会出现显著的性能下降。通过Meta-AC,我们引入了分层验证级联(Hierarchical Verification Cascade: 多层验证机制),通过三个层级,我们可以将不良反馈导致的错误减少50%到60%。

View/Hide Original English

So what we observe with AC is that there can be significant degradation without reliable ground truth signals. Uh with beta AC we introduce a hierarchical verification cascade um where we can expect a 50 to 60% reduction in errors from poor feedback and that's through three tiers.

第一层是自我验证(Self-Verification),它只是一个快速过滤器。如果置信度超过某个值,我们就接受。第二层是多模型共识,我们利用各种模型,如GPT-4、Claude和Dips,并进行置信度加权投票。第三层是基于执行的验证,我们利用代码沙盒、API验证和模式合规性。

View/Hide Original English

The first tier is self verification which is just fast filter. We just accept if the confidence level is over a certain value. Second tier is a multimodel consensus. So we leverage a diverse range of models such as GBT4, claude and dips and we do confidence weighted voting. And then the tier three is execution based verification uh where we leverage code sandbox APA API validation and schema compliance.

我们遇到的第三个局限性是任务复杂性不匹配(Task Complexity Mismatch)。从某种意义上说,AC对简单任务也使用统一处理,这可能是一种资源浪费。因此,Meta-AC动态地调整策略分配,而不是对所有任务都使用相同的繁重流程。Alpha值代表六种优化策略的分配权重,它们表示在给定任务中分配给每种策略的计算预算。

View/Hide Original English

Um the the third um limitation we had was uh task complexity mismatch. Um so in a sense the fact that AC uses uniform processing um also for simple tasks which can be a waste of resource. So meta adapts uh strategy allocation dynamically rather than using the same heavy pipeline for everything. The alphas are allocation weights for the six optimization strategies and they represent how much computational budget is assigned to each strategy for a given task.

因此,需要最少处理的简单任务可以比标准AC节省约90%的计算量。中等任务采用更平衡的方法,包括AC加验证。而复杂任务则基本上需要大量的测试时计算、多次尝试和内存检索。

View/Hide Original English

So simple tasks um require minimal processing can save n around a 90% uh compute compared to standard AC. moderate tasks um is more of a balanced approach um that include AC plus verification and then complex tasks um basically heavy test time compute multiple attempts and memory retrieval.

结果与未来方向

总结一下我们的一些初步结果,我们观察到智能体基准测试中约8%到11%的改进。

View/Hide Original English

Um so just to conclude with some results um and and these are initial results uh we have observed um around an 8 to 11% uh improvement on agent benchmarks.

我们还在一些特定领域任务中观察到6到8个百分点的改进。此外,通过自适应策略的分配,计算成本降低了30%到40%。

View/Hide Original English

Um we have also observed a six to eight points improvement on on some domain specific tasks. um also a 30 to 40% reduction in compute costs um through the allocation of um adaptive strategies

总的来说,系统具有更高的鲁棒性、更强的一致性,并且可以更好地泛化。我们可以在各种领域中使用该框架。因此,结论是Meta-AC可以协调上下文、计算、验证、记忆和参数适应,并为智能体提供一个鲁棒的自改进框架。

View/Hide Original English

um and overall there's um there's more robustness more consistency um and you know we can generalize better we can use the framework across a a diverse range of of domains so the conclusion is that um meta can can orchestrate ates a context compute and verification and memory and parameter adaptation and produce a robust uh self-improvement um framework for agents.

未来的工作将包括在更广泛的领域中实施和评估整个系统,我们将继续探索元学习,这也将涉及纳入额外的策略。

View/Hide Original English

Um future work will implement uh and evaluate the full system across uh a a more diverse range of domains and we'll continue exploring metalarning and this will involve also incorporating um additional strategies as well.

Meta-AC的额外应用

我还想谈谈Meta-AC的一些我认为非常相关的额外应用。首先是用于多模态AI系统。例如,决定何时使用视觉处理而非语言处理,这可以是一个元自适应策略决策。

View/Hide Original English

Now I also wanted to touch on um additional applications of meta that I think are quite relevant. Um so first one is um for multimodel AI systems. So for example deciding when to use vision versus uh language processing again can be um a like a a meta adaptive uh strategy decisioning.

此外,当您拥有需要不同模型处理不同阶段的复合AI系统,并且复杂性很高时,我们实际上可以以元自适应的方式选择最有效的策略来端到端地解决任务。

View/Hide Original English

Um also when you have uh compound AI systems that um require different models for different stages um and the complexity is um you know is substantial uh we can actually um uh in a in a meta adaptive manner uh select the most effective uh strategies to to resolve a task and to end.

此外,它还可以用于人机协作,即决定何时让人类参与循环,以及用于持续学习系统,在这些系统中我们平衡探索与利用。

View/Hide Original English

um also um for human collaboration um so in other words to determine when to have a human in the loop and also for continual learning systems um where we are balancing exploration versus exploitation.

因此,核心的启示是优化需要一个元智能层,并且这个层需要经过训练,需要大量的试错才能达到正确的性能水平。

View/Hide Original English

Um so the the core takeaway is that optimization requires a meta layer of intelligence and and that has to be trained um and you know um it requires um a lot of trial and error before it can actually um perform at the right level.

未来方向与挑战

在未来方向和挑战方面,仍然存在一些挑战。元控制器的训练可能不稳定,因为奖励稀疏,这可以通过课程学习(Curriculum Learning: 逐步增加任务难度以提高学习效率)、鲁棒的优势估计和熵正则化(Regularization of Entropy: 鼓励模型输出分布更均匀,避免过度自信)来缓解。

View/Hide Original English

In terms of the future direction and challenges um there are still several challenges that remain. So the meta controllers training u may be unstable um due to sparse rewards and that this can be mitigated through curriculum learning. Uh also robust advantage estimation and um regularization of entropy.

此外,画像和多种策略带来的计算开销需要通过高效模型来减少。我们可以利用惰性执行(Lazy Execution: 延迟计算直到结果真正需要时)、批处理(Batching: 将多个操作打包一起处理)和缓存(Caching: 存储常用数据以加快访问速度)等技术。

View/Hide Original English

Also computational overhead from profiling and multiple uh strategies um needs to be reduced with efficient models. Um we can leverage things like lazy execution, batching and caching.

此外,如果所有模型都犯同样的错误,验证级联可能会很脆弱。因此,我们需要多样化的模型,并结合置信度加权、人工监督以及主动学习(Active Learning: 模型主动选择最有用的数据进行学习)。元学习循环需要大量数据。合成任务生成、策略学习、从相关领域进行迁移以及样本高效算法也可以提供帮助。最后,解决这些挑战将是扩展Meta-AC并将其应用于广泛领域。

View/Hide Original English

Um also uh the ver verification uh cascades can be brittle if all models um make the same mistake. So we need diverse models um with confidence waiting and human oversight um as well as active learning. uh metalarning loops require substantial data. Uh synthetic task uh task generation of policy learning uh transfer from related domains and sample efficient algorithms uh can also help as well. And finally uh addressing these ch these challenges um is going to be key to scaling meta and applying it across um a wide range of domains.

非常感谢大家的聆听。感谢您的参与。

View/Hide Original English

So that was all from me. Thank you very much for listening. Um, and yeah, uh, appreciate you being there. Thank you.

📌 文中提及的人物和组织

公司/组织: Citibank

产品/模型: GPT-4, Claude

关键字: ai-agent-optimization context-engineering learning resource-allocation strategy